@charset "UTF-8";

/* サイト全体 */
:root {
    --font1: "Noto Sans JP";
    --font2: "Noto Serif JP";
    --font3: "Google Sans Flex",
        sans-serif;
    --color-main: #0FC9F7;
    --color-main-b: #16b1f4;
    --color-sab: #409fde;
    --color-1: linear-gradient(135deg, #0FC9F7, #2574EB);
    --transition-speed: 0.3s;
}

body {
    font-family: "Google Sans Flex", "Noto Sans JP", "Noto Serif JP", "ヒラギノ角ゴ ProN W3", "Hiragino Kaku Gothic ProN", "メイリオ", Meiryo, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.wrapper {
    width: 90%;
    max-width: 1080px;
    margin: 0 auto;
}


/* ヘッダーの基本形 */
.top_bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 40px 4px;
}

.header_logo {
    position: relative;
    z-index: 999;
    /* スマホメニューより手前に出す */
}

.tel_fax {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.tel_fax_inner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    background: #16b1f4;
    padding: 6px 12px;
    border-radius: 24px;
}

.tel_fax_inner p {
    color: #fff;
    font-size: 20px;
    font-family: var(--font3);
    font-weight: 500;
    margin-top: 3px;
}

.contact_info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}


/* コンタクト */
/* Contactセクション全体 */
.contact {
    position: relative;
    width: 100%;
    min-height: 500px;
    background: url(../image/top/top_mv_2.jpg);
    background-position: center 100%;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 80px 0;
    color: #fff;
    display: flex;
    align-items: center;
}

/* 背景のフィルター（オーバーレイ） */
.contact::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.contact_inner {
    position: relative;
    z-index: 2;
    max-width: 1080px;
    margin: 0 auto;
    width: 100%;
    padding: 0 40px;
    text-align: center;
}

.contact_title {
    font-size: 32px;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
    font-family: var(--font3);
    font-weight: 500;
}

.contact_lead {
    font-size: clamp(1rem, 0.804rem + 0.98vw, 1.688rem);
    margin-bottom: 10px;
    line-height: 1.8;
}

.contact_time {
    font-size: 14px;
    margin-bottom: 70px;
}

/* 横並びのボタンエリア */
.contact_button-wrap {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    font-family: var(--font3);
}

/* 各項目のスタイル（mail, phone, fax共通） */
.contact_button-wrap>div {
    flex: 1;
    padding: 0 20px;
    position: relative;
    /* 縦線の基準 */
}

/* 白い縦線（要素の間に配置） */
.contact_button-wrap>div:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 1px;
    height: 100%;
    background-color: #fff;
}

.contact_button-wrap img {
    margin-bottom: 15px;
}

.contact_button-wrap p {
    font-size: 15px;
    margin-bottom: 5px;
}

.contact_button-wrap a {
    color: #fff;
    text-decoration: none;
    font-size: 28px;
    letter-spacing: 0.08em;
    font-weight: bold;
}

.fax .fax_n {
    color: #fff;
    text-decoration: none;
    font-size: 28px;
    letter-spacing: 0.08em;
    font-weight: bold;
}

#to_top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    /* 他の要素に隠れないよう大きな数字に */
}

.to_top {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #0FC9F7, #2574EB);
    color: #fff;
    font-size: 13px;
    font-weight: bold;
    border-radius: 4px;
}

/* 山型 */
.to_top::before {
    content: "";
    width: 12px;
    height: 12px;
    border-top: 2px solid #fff;
    border-left: 2px solid #fff;
    transform: rotate(45deg);
    margin-bottom: 5px;
    margin-top: 5px;
}

/* --- フッター基本 --- */
.footer {
    background-color: #f4f4f4;
    padding-top: 40px;
}

.footer_inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- 1段目：ナビゲーション --- */
.footer_nav {
    border-bottom: 1px solid #ddd;
    padding-bottom: 30px;
    margin-bottom: 40px;
}

.footer_nav ul {
    display: flex;
    justify-content: center;
    gap: 40px;
    list-style: none;
    padding: 0;
}

.footer_nav a {
    font-weight: 500;
    font-size: 15px;
    padding: 15px 0;
    position: relative;
}

.footer_nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #16b1f4;
    transition: 0.3s;
    transform: translateX(-50%);
}

.footer_nav a:hover::after {
    width: 100%;
}

.footer_nav a:hover {
    font-weight: 700;
}

.mobile_contact {
    display: none;
}

/* --- 2段目：会社情報とマップの横並び --- */
.footer_main_row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;
}

.footer_main_content {
    flex: 1;
}

.company_name {
    font-weight: bold;
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.info_unit {
    margin-bottom: 15px;
    font-size: 13px;
}

.footer_base {
    font-weight: bold;
    margin-bottom: 3px;
}

.footer_map {
    flex-shrink: 0;
    /* マップのサイズを固定的に守る */
}

/* --- 3段目：コピーライト（3等分配置） --- */
.copyright {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-top: 1px solid #ddd;
    margin-top: 50px;
}

.copyright span,
.copyright small,
.copyright .pp {
    flex: 1;
}

.copyright small {
    text-align: center;
    font-size: 12px;
    color: #888;
}

.copyright .pp {
    text-align: right;
    font-size: 12px;
    color: #888;
}

/* ---  PC用（769px以上）の上書き --- */
@media (min-width: 769px) {
    .hamburger {
        display: none;
    }

    .main_nav {
        border-top: 1px solid #eee;
    }

    .main_nav>ul {
        display: flex;
        justify-content: center;
        max-width: 1200px;
        margin: 0 auto;
    }

    .main_nav li {
        position: relative;
    }

    .main_nav li span {
        position: absolute;
        top: 50%;
        right: 5%;
        transform: translateY(-80%);
        font-size: 22px;
        font-weight: 600;
        color: #16b1f4;
    }

    /* Desktop styles for dropdown */
    .main_nav .dropdown_menu {
        display: block;
        /* Force vertical stack (override inherited flex) */
        position: absolute;
        top: 100%;
        left: 0;
        width: 240px;
        background: #fff;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        transition: all var(--transition-speed) ease;
        pointer-events: none;
    }

    .has_dropdown:hover .dropdown_menu,
    .has_dropdown.is_active .dropdown_menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }

    .dropdown_menu li {
        width: 100%;
        height: auto;
    }

    .dropdown_menu a {
        display: block;
        padding: 15px 24px;
        font-size: 0.9rem;
        font-weight: 500;
        border-bottom: 1px solid #eee;
        transition: background-color 0.2s, color 0.2s;
    }

    .dropdown_menu a:hover {
        color: #fff;
        background-color: #3a6b96;
    }

    .dropdown_menu li:last-child a {
        border-bottom: none;
    }

    /* ナビ取扱商品▼キャレット */
    .caret {
        display: inline-block;
        width: 0;
        height: 0;
        margin-left: 8px;
        vertical-align: middle;
        border-top: 6px solid #16b1f4;
        border-right: 6px solid transparent;
        border-left: 6px solid transparent;
        transition: transform var(--transition-speed) ease;
    }

    .main_nav>ul>li:hover .caret,
    .has_dropdown.is_active .caret {
        transform: rotate(180deg);
        border-top-color: #3a6b96;
    }
}

/* Only apply to top-level links */
.main_nav>ul>li>a {
    font-weight: 600;
    display: block;
    padding: 15px 20px;
    position: relative;
}

/* Underline animation - Top level only */
.main_nav>ul>li>a::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #16b1f4;
    transition: 0.3s;
    transform: translateX(-50%);
}

.main_nav>ul>li>a:hover::after {
    width: 80%;
}

.main_nav>ul>li>a:hover {
    font-weight: 700;
}

.mobile_contact {
    display: none;
}

/* タブレット用 */
@media (max-width: 768px) {
    .top_bar {
        padding: 10px 30px 4px;
    }

    .tel_fax {
        gap: 4px;
    }

    .tel_fax_inner {
        gap: 4px;
        padding: 6px 6px;
    }

    .tel_fax_inner p {
        font-size: 16px;
        font-weight: 500;
    }

    .tel_fax_inner img {
        width: 24px;
        height: 24px;
    }

    .hamburger {
        display: block;
        width: 30px;
        height: 24px;
        padding: 10px;
        /* タップ領域を拡大 */
        box-sizing: content-box;
        /* padding分を外側に広げ、タップしやすくする */
        position: relative;
        cursor: pointer;
        z-index: 2100;
        margin-right: -10px;
        /* paddingで右にずれる分を補正（任意） */
        /* ロゴよりさらに手前に */
    }

    .hamburger span {
        position: absolute;
        left: 10px;
        width: 30px;
        height: 2px;
        background: #333;
        transition: 0.4s;
    }

    .hamburger span:nth-child(1) {
        top: 10px;
    }

    .hamburger span:nth-child(2) {
        top: 21px;
    }

    .hamburger span:nth-child(3) {
        bottom: 10px;
    }

    /* ×印アニメーション */
    .hamburger.is_active span:nth-child(1) {
        transform: translateY(11px) rotate(45deg);
    }

    .hamburger.is_active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.is_active span:nth-child(3) {
        transform: translateY(-11px) rotate(-45deg);
    }

    .main_nav {
        position: fixed;
        top: 0;
        right: 0;
        transform: translateX(100%);
        /* 画面右外へ移動 */
        width: 100%;
        height: 100vh;
        background: #fff;
        transition: transform 0.5s ease, visibility 0.5s ease;
        visibility: hidden;
        /* 通常時は非表示 */
        /* transformのみアニメーション */
        z-index: 1500;
        padding-top: 80px;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }

    /* activeクラスがついたら表示 */
    .main_nav.is_active {
        transform: translateX(0);
        visibility: visible;
        /* 元の位置（画面内）へ */
    }

    .main_nav ul {
        flex-direction: column;
    }

    .main_nav li {
        width: 100%;
        border-bottom: 1px solid #eee;
    }

    .main_nav a {
        display: block;
        padding: 20px;
        text-align: center;
        font-weight: 600;
    }

    .contact_info {
        display: none;
    }

    .mobile_contact {
        display: block;
        padding: 20px;
        text-align: center;
    }

    .tel_fax {
        flex-direction: column;
        align-items: center;
        gap: 30px;
        margin-top: 10px;
    }

    .tel_fax_inner {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        /* 左揃え（アイコンの位置を合わせる） */
        gap: 12px;
        padding: 8px 16px;
        background: #16b1f4;
        color: #fff;
        border-radius: 30px;
        box-sizing: border-box;
        /* パディングを含めた幅計算にする */
    }

    .tel_fax_inner a {
        font-size: 20px;
        margin: 0;
        padding: 6px 4px;
    }

    .tel_fax_inner p {
        font-size: 18px;
        margin: 0;
        line-height: 1;
    }

    .tel_fax_inner img {
        width: 32px;
        height: auto;
    }

    /* footerコンタクト */
    .contact {
        background: url(../image/top/top_mv_2.jpg);
        background-repeat: no-repeat;
        background-size: cover;
    }

    .contact_button-wrap {
        flex-direction: column;
        align-items: center;
        gap: 40px;
        background: rgba(255, 255, 255, 0.3);
        padding: 30px 0;
        margin: 0 80px;
    }

    /* 縦並びの時は縦線を消す、または横線に変える */
    .contact_button-wrap>div:not(:last-child)::after {
        display: none;
        /* 縦並びでは不要なため非表示 */
    }

    .contact_inner {
        padding: 0 20px;
    }

    .footer_nav ul {
        gap: 20px;
    }

    .footer_main_row {
        gap: 20px;
    }

    .footer_map iframe {
        width: 280px;
    }

    /* Mobile Dropdown Styles - Accordion */
    .dropdown_menu {
        /* Mobile styles: hidden by default for accordion */
        display: block;
        /* Height transition needs block or flex */
        height: 0;
        overflow: hidden;
        background: #fbfbfb;
        transition: height var(--transition-speed) ease;
        padding: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
    }

    .dropdown_menu.is_open {
        border-top: 1px solid #eee;
    }

    .dropdown_menu li {
        width: 100%;
        border-bottom: 1px solid #eee;
    }

    .dropdown_menu a {
        display: block;
        font-size: 0.9rem;
        padding: 12px 10px;
        text-align: center;
    }

    .dropdown_menu li:last-child a {
        padding-bottom: 12px;
        border-bottom: 1px solid #fff;
    }

    /* Mobile Caret */
    .caret {
        display: inline-block;
        width: 10px;
        height: 10px;
        border-right: 2px solid #333;
        border-bottom: 2px solid #333;
        transform: rotate(45deg);
        margin-left: 10px;
        transition: transform var(--transition-speed) ease;
        margin-bottom: 3px;
    }

    .has_dropdown>a {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Rotate caret when open */
    .has_dropdown.is_active .caret {
        transform: rotate(225deg);
        border-color: #16b1f4;
    }
}

/* スマホ用 */
@media (max-width: 580px) {

    #to_top {
        bottom: 10px;
        right: 10px;
    }

    .header_logo img {
        width: 70%;
        height: auto;
    }

    .to_top {
        width: 45px;
        height: 45px;
        font-size: 12px;
    }

    /* 山型 */
    .to_top::before {
        content: "";
        width: 10px;
        height: 10px;
        margin-bottom: 0;
        margin-top: 0;
    }

    .contact_info {
        display: none;
    }

    .contact_button-wrap {
        margin: 0 20px;
    }

    .footer_nav ul {
        flex-wrap: wrap;
        gap: 15px;
    }

    .footer_main_row {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer_map {
        width: 80%;
        margin-top: 30px;
    }

    .footer_map iframe {
        width: 100%;
        height: 250px;
    }

    .copyright {
        flex-direction: column;
        gap: 10px;
    }

    .copyright span {
        display: none;
    }

    .copyright .pp {
        text-align: center;
    }
}