/* 共通CSS - ヘッダー・フッター */

/* 基本設定 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Zen Kaku Gothic New", sans-serif;
    font-weight: 400;
    font-style: normal;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

/* buttonやinputなどのフォーム要素はbodyのfont-familyを継承しないため明示的に指定 */
button, input, select, textarea {
    font-family: inherit;
}

/* ヘッダースタイル */
.site-header {
    background: #fff;
    position: relative;
    z-index: 1001;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 25px 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.header-logo {
    display: flex;
    align-items: center;
}

.logo-image {
    height: 60px;
    width: auto;
}

.header-right {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    margin-top: -25px;
    width: 100%;
    max-width: 300px;
}

.header-buttons {
    display: flex;
    gap: 8px;
    width: 100%;
    justify-content: space-between;
}

.header-btn {
    padding: 14px 24px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s;
    color: white;
    background: #35BAD3;
    border: none;
    flex: 1;
    text-align: center;
}

.header-btn:first-child {
    border-radius: 0 0 8px 8px;
}

.header-btn:last-child {
    border-radius: 0 0 8px 8px;
}

.btn-members:hover,
.btn-contact:hover {
    background: #2a9ab0;
}

.header-social-search {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-social {
    display: flex;
    gap: 8px;
}

.social-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: opacity 0.3s;
}

.social-icon svg {
    width: 100%;
    height: 100%;
}

.social-icon:hover {
    opacity: 0.8;
}

.social-icon.facebook {
    background: transparent;
}

.social-icon.twitter {
    background: transparent;
}

.header-search {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 12px;
    padding: 5px 10px;
    border: 1px solid #8C8C8C;
}

.search-input {
    border: none;
    background: transparent;
    padding: 5px;
    width: 175px;
    outline: none;
    font-size: 14px;
}

.search-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    display: flex;
    align-items: center;
}

.main-nav {
    max-width: 1150px;
    border-top: 1px solid #cccccc;
    border-bottom: 1px solid #cccccc;
    margin: 0 auto;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
}

.nav-menu {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1%;
}

.nav-item {
    position: relative;
    flex: 1;
    min-width: 0;
}

.nav-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px 0 20px;
    color: #333;
    font-size: 14px;
    font-weight: 700;
    background: none;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
    width: 100%;
    height: 80px;
    box-sizing: border-box;
    position: relative;
}

.nav-toggle .nav-text {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.nav-item:hover .nav-toggle {
    background: #ffffff;
}

.nav-item.active .nav-toggle {
    background: #ffffff;
}

.nav-arrow {
    font-size: 12px;
    color: #2154A0;
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
}

/* HOMEリンク（nav-toggle風） */
a.nav-toggle {
    text-decoration: none;
    line-height: 1.5;
}

/* モバイルHOMEリンク */
a.mobile-nav-toggle {
    text-decoration: none;
    color: #333;
}

/* メガメニュー */
.dropdown-menu {
    display: none;
    position: fixed;
    top: var(--dropdown-top, 218px);
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1100px;
    background: white;
    z-index: 1000;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.08), 0 -12px 24px rgba(0, 0, 0, 0.05), 12px 0 24px rgba(0, 0, 0, 0.05), -12px 0 24px rgba(0, 0, 0, 0.05);
    max-height: 70vh;
    overflow-y: auto;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out;
    background-image: url('../assets/background-pc-nav-l.webp'), url('../assets/background-pc-nav-r1.webp');
    background-position: left center, right center;
    background-repeat: no-repeat, no-repeat;
    background-size: auto 100%, auto 100%;
}

.nav-item.active .dropdown-menu {
    display: block;
    opacity: 1;
    pointer-events: auto;
}

/* 各メニューごとの右側背景（HOMEが1番目なので+1） */
.nav-item:nth-child(2) .dropdown-menu {
    background-image: url('../assets/background-pc-nav-l.webp'), url('../assets/background-pc-nav-r1.webp');
}

.nav-item:nth-child(3) .dropdown-menu {
    background-image: url('../assets/background-pc-nav-l.webp'), url('../assets/background-pc-nav-r2.webp');
}

.nav-item:nth-child(4) .dropdown-menu {
    background-image: url('../assets/background-pc-nav-l.webp'), url('../assets/background-pc-nav-r3.webp');
}

.nav-item:nth-child(5) .dropdown-menu {
    background-image: url('../assets/background-pc-nav-l.webp'), url('../assets/background-pc-nav-r4.webp');
}

.nav-item:nth-child(6) .dropdown-menu {
    background-image: url('../assets/background-pc-nav-l.webp'), url('../assets/background-pc-nav-r5.webp');
}

.nav-item:nth-child(7) .dropdown-menu {
    background-image: url('../assets/background-pc-nav-l.webp'), url('../assets/background-pc-nav-r6.webp');
}

.nav-item:nth-child(8) .dropdown-menu {
    background-image: url('../assets/background-pc-nav-l.webp'), url('../assets/background-pc-nav-r7.webp');
}

.nav-item:nth-child(9) .dropdown-menu {
    background-image: url('../assets/background-pc-nav-l.webp'), url('../assets/background-pc-nav-r8.webp');
}

.dropdown-content {
    padding: 20px 40px;
    height: 260px;
    overflow-y: auto;
}

.dropdown-section {
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    min-height: 130px;
}

.dropdown-section:last-child {
    margin-bottom: 0;
}

.dropdown-section h3 {
    color:rgb(0, 0, 0);
    font-size: 24px;
    font-weight: 900;
    margin-bottom: 10px;
    padding-bottom: 5px;
    writing-mode: vertical-rl;
    text-orientation: upright;
    text-align: left;
    width: 24px;
    height: 180px;
    margin-right: 80px;
    flex-shrink: 0;
    letter-spacing: 0.1em;
}

/* 2行のh3（改行あり）は幅を広げる */
.dropdown-section h3.two-lines {
    width: 60px;
}

.dropdown-section-content {
    flex: 1;
    min-height: 130px;
}

/* 項目が多いメニュー用の2列レイアウト */
.dropdown-section-content.two-columns {
    display: flex;
    justify-content: flex-start;
    gap: 0 60px;
}

.dropdown-section-content.two-columns .menu-column-left,
.dropdown-section-content.two-columns .menu-column-right {
    flex: 0 0 auto;
    min-width: 200px;
}

.menu-group {
    margin-bottom: 15px;
}

.menu-group h4 {
    color: #333;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 4px;
}

.dropdown-section ul {
    list-style: none;
    padding: 0;
    margin: 0 0 0 15px;
}

.dropdown-section li {
    margin: 0 0 5px 0;
}

.dropdown-menu a {
    display: block;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    transition: all 0.3s;
}

.dropdown-menu a:hover {
    padding-left: 5px;
}

/* フッタースタイル */
.site-footer {
    background: #F7F7F7;
    padding: 0;
    color: #333;
}

/* 上段：グレー背景 */
.footer-upper {
    background: #F7F7F7;
    padding: 60px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 80px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-logo-image {
    height: 50px;
    width: auto;
}

.footer-logo-text {
    display: flex;
    flex-direction: column;
}

.footer-logo-text .logo-association {
    font-size: 12px;
    color: #666;
}

.footer-logo-text .logo-name {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.footer-info {
    text-align: left;
    font-size: 13px;
    line-height: 1.6;
    color: #333;
}

.footer-info p {
    margin: 2px 0;
}

/* 下段：緑背景 */
.footer-lower {
    background: #9DD3C5;
    padding: 15px 0;
    text-align: center;
    width: 100%;
}

.footer-lower p {
    font-size: 13px;
    color: #333;
    margin: 0;
}

/* ハンバーガーメニュー */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    -webkit-tap-highlight-color: transparent;
}

.mobile-menu-toggle:active {
    background: none;
}

.hamburger-icon {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 30px;
}

.hamburger-icon span {
    display: block;
    width: 100%;
    height: 3px;
    background: #00A5C7;
    transition: all 0.3s;
}

.mobile-menu-toggle.active .hamburger-icon span:nth-child(1) {
    transform: translateY(13px) rotate(45deg);
}

.mobile-menu-toggle.active .hamburger-icon span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-icon span:nth-child(3) {
    transform: translateY(-13px) rotate(-45deg);
}

/* モバイルメニュー */
.mobile-menu {
    display: block;
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: calc(100vh - 70px);
    background: white;
    z-index: 999;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    padding: 0 25px;
}

.mobile-nav-menu {
    list-style: none;
    padding: 5px;
    margin: 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

.mobile-nav-item {
}

.mobile-nav-toggle {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    cursor: pointer;
    color: #333;
    font-size: 15px;
    font-weight: 500;
    background: none;
    border: none;
    -webkit-tap-highlight-color: transparent;
}

.mobile-nav-toggle:active {
    background: none;
}

.mobile-nav-arrow {
    color: #2154A0;
    margin-right: 10px;
    font-size: 12px;
}

.mobile-nav-text {
    flex: 1;
    font-weight: 700;
}

.mobile-nav-expand {
    color: #2154A0;
    font-size: 12px;
    transition: transform 0.3s;
}

.mobile-nav-toggle.active .mobile-nav-expand {
    transform: rotate(180deg);
}

.mobile-submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
}

.mobile-submenu.active {
    max-height: 500px;
}

.mobile-submenu li {
}

.mobile-submenu li:last-child {
    border-bottom: none;
}

.mobile-submenu-group {
    margin-bottom: 10px;
}

.mobile-submenu-group h4 {
    font-size: 12px;
    font-weight: bold;
    color: #333;
    margin: 0 0 2px 0;
    padding: 0 30px;
}

.mobile-submenu-group ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-submenu a {
    display: block;
    padding: 1px 42px;
    color: #666;
    text-decoration: none;
    font-size: 12px;
    transition: background-color 0.3s;
}

.mobile-buttons {
    display: flex;
    gap: 10px;
    margin: 30px 0 20px;
}

.mobile-btn {
    flex: 1;
    padding: 14px 20px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    color: white;
    background: #35BAD3;
    border-radius: 22px;
    transition: all 0.3s;
}

.mobile-btn:hover {
    background: #2a9ab0;
}

.mobile-search {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 12px;
    padding: 10px 10px;
    border: 1px solid #8C8C8C;
    margin-top: 20px;
}

.mobile-search .search-input {
    width: 100%;
}

.mobile-search .search-btn svg,
.header-search .search-btn svg {
    width: 20px;
    height: 20px;
    color: #8C8C8C;
}

.desktop-only {
    display: flex;
}

.mobile-social {
    display: none;
}

.mobile-menu.active .mobile-social {
    display: none !important;
}

body.mobile-menu-open .mobile-social {
    display: none !important;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .header-container {
        padding: clamp(10px, 3vw, 15px) clamp(10px, 4vw, 20px);
        align-items: center;
        position: relative;
        gap: clamp(5px, 2vw, 10px);
    }

    .header-logo {
        flex-shrink: 1;
        min-width: 0;
    }

    .logo-image {
        height: clamp(32px, 10vw, 40px);
        width: auto;
    }

    .header-right {
        display: none;
    }

    .header-buttons {
        display: none;
    }

    .desktop-only {
        display: none !important;
    }

    .mobile-social {
        display: flex !important;
        gap: clamp(4px, 1.5vw, 8px);
        position: absolute;
        right: clamp(48px, 15vw, 62px);
        top: 50%;
        transform: translateY(-50%);
        flex-shrink: 0;
    }

    .mobile-social .social-icon {
        width: clamp(28px, 8vw, 32px);
        height: clamp(28px, 8vw, 32px);
        flex-shrink: 0;
    }

    .mobile-social .social-icon svg {
        width: 100%;
        height: 100%;
    }

    .mobile-social .social-icon.twitter {
        font-size: clamp(14px, 4.5vw, 18px);
    }

    .mobile-menu-toggle {
        display: block;
        position: absolute;
        right: clamp(10px, 3vw, 15px);
        top: 50%;
        transform: translateY(-50%);
        padding: clamp(5px, 2vw, 10px);
        flex-shrink: 0;
    }

    .mobile-menu {
        display: block;
        top: clamp(65px, 16vw, 70px);
    }

    .main-nav {
        display: none;
    }

    .footer-upper {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
        text-align: left;
        padding: 40px 20px;
    }

    .footer-info {
        text-align: left;
    }

    /* スマホサイズでの住所改行 */
    .footer-info p:nth-child(3) {
        white-space: pre-line;
    }
}

/* ========================================
   TOPボタン
======================================== */
.top-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #00A8FF;
    color: white;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0px;
    font-size: 12px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 1000;
}

.top-button::before {
    content: "";
    width: 18px;
    height: 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M5 15l7-7 7 7' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-bottom: -4px;
}

.top-button:hover {
    transform: translateY(-1px);
}



/* ========================================  文字装飾関連 */
.fontRedBold {color:#FF3333;font-weight:bold;}
.fontGryBold {color:#666666;font-weight:bold;}
.fontOreBold {color:#FFA500;font-weight:bold;}
.fontBlueBold {color:#0000a0;font-weight:bold;}
.fontRedBold13px {color:#FF3333;font-weight:bold;font-size:13px;}
.font12Bold{font-size:1.2em; font-weight:bold;}
.p_small{font-size:0.8em;}
.fontGry {color:#666666;}
.fontBoldCenter25px {font-weight:bold;text-align:center;font-size:25px;}
.fontBoldCenter {font-weight:bold;text-align:center;}
.fontUnderL{ text-decoration:underline;}
.fontItalic{font-style: italic;}
.fontRight{text-align:right;}
.fontLeft{text-align:left;}
.fontCnt{text-align:center;}
.fontBold{font-weight:bold;}
.fontBold14rem{font-weight:bold; font-size:1.4rem;}
.fontLineTH{text-decoration: line-through;} /*取り消し線*/
.fontLineTHred{text-decoration: line-through;text-decoration-color:red;} /*赤い取り消し線*/
.fontTop{vertical-align: top;font-size: 0.7em;}/*上付き*/
.my-gray {color: gray}
.my-skyblue {color: skyblue}
.my-green {color: green;}
.my-orange {color: #fecb81}
.my-red {color: #FF3333}
.my-mr10 {margin-right:10px;}
.my-ml10 {margin-left:10px;}
.my-cl04 {color:#EB8B3D;}
.my-cl03 {color:#93ca76;}
.my-cl02 {color:#338dbf;}
.my-cl04b {background-color:#EB8B3D !important;}
.my-cl03b {background-color:#93ca76 !important;}
.my-cl02b {background-color:#338dbf !important;}
.under1 {background: linear-gradient(transparent  70%, #ffc037  70%);}
.under2 {background: linear-gradient(transparent  50%, #ffc037  50%);}
.wd20p{width:20%;}
.pding-l{padding-left:15px;}
