/* ==============================================
   CSS変数
   ============================================== */
:root {
    --color-primary: #4FC3F7;
    --color-accent: #CEF92E;
    --color-text: #313131;
    --color-white: #FFF;
    --color-border: #D9D9D9;
    --font-main: "Noto Sans JP", sans-serif;
}


/* ==============================================
   共通
   ============================================== */
body {
    padding-top: 160px;
}

.sp-only {
    display: none;
}

@media (max-width: 1024px) {
    .sp-only {
        display: inline;
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==============================================
   ヘッダー
   ============================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: linear-gradient(180deg, #FFF 0%, rgba(255, 255, 255, 0.30) 100%);
}

body.admin-bar {
    padding-top: 192px; /* 160px + 32px admin bar */
}

body.admin-bar .header {
    top: 32px;
}

.header__inner {
    display: flex;
    height: 160px;
    padding: 15px clamp(20px, 3vw, 52px) 27px;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
}

/* --- ロゴ＋メインナビ --- */
.header__left {
    display: inline-flex;
    align-items: center;
    gap: clamp(16px, 2vw, 60px);
}

/* --- ロゴエリア --- */
.header__logo-area {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.header__logo-subtitle {
    color: var(--color-text);
    text-align: center;
    font-family: var(--font-main);
    font-size: 14px;
    font-weight: 800;
    line-height: normal;
    letter-spacing: 0.56px;
}

.header__logo-link {
    display: block;
}

.header__logo-img {
    display: block;
    height: var(--logo_size_sp, 48px);
    width: auto;
}

@media screen and (min-width: 960px) {
    .header__logo-img {
        height: var(--logo_size_pc, 40px);
    }
}

/* --- メインナビ --- */
.header__nav {
    flex: 1;
}

.header__nav-list {
    display: flex;
    align-items: center;
    gap: clamp(4px, 1.2vw, 20px);
}

.header__nav-list li {
    list-style: none;
    text-align: center;
}

.header__nav-list li a {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--color-text);
    text-align: center;
    font-family: var(--font-main);
    font-size: 14px;
    font-weight: 700;
    line-height: normal;
    letter-spacing: 0.56px;
    white-space: nowrap;
    transition: opacity 0.3s;
}

.header__nav-list li a:hover {
    opacity: 0.7;
}

/* --- サブメニュー（ドロップダウン）--- */
.header__nav-list > li {
    position: relative;
}

.header__nav-list .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 180px;
    padding: 8px 0;
    margin: 0;
    list-style: none;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    border-radius: 4px;
    z-index: 100;
}

.header__nav-list > li:hover > .sub-menu {
    display: block;
}

.header__nav-list .sub-menu li {
    text-align: left;
}

.header__nav-list .sub-menu li a {
    display: block;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    text-align: left;
    white-space: nowrap;
}

.header__nav-list .sub-menu li a:hover {
    background: #F5F5F5;
    opacity: 1;
}

/* --- 右側ラッパー（ユーティリティナビ＋CTA） --- */
.header__right {
    display: flex;
    width: clamp(260px, 24vw, 340px);
    flex-direction: column;
    align-items: stretch;
    gap: 9px;
    flex-shrink: 1;
    min-width: 240px;
}

/* --- ユーティリティナビ --- */
.header__utility {
    width: 100%;
}

.header__utility-list {
    display: flex;
    align-items: center;
}

.header__utility-list li {
    list-style: none;
    flex: 1;
}

.header__utility-list li a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 4px 12px;
    color: var(--color-text);
    text-align: center;
    font-family: var(--font-main);
    font-size: 14px;
    font-weight: 700;
    line-height: normal;
    letter-spacing: 0.56px;
    white-space: nowrap;
    transition: opacity 0.3s;
}

.header__utility-list li a:hover {
    opacity: 0.7;
}

.header__utility-list li + li {
    border-left: 1px solid var(--color-border);
}

.header__utility-icon {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

/* --- ヘッダーCTA --- */
.header__cta {
    display: flex;
    height: 72px;
    padding: 12px clamp(8px, 1.2vw, 24px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    background: var(--color-primary);
    box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.25);
    transition: opacity 0.3s;
}

.header__cta:hover {
    opacity: 0.85;
}

.header__cta-label {
    color: var(--color-white);
    text-align: center;
    font-family: var(--font-main);
    font-size: 14px;
    font-weight: 700;
    line-height: normal;
    letter-spacing: 0.48px;
}

.header__cta-main {
    display: flex;
    align-items: center;
    gap: 6px;
}

.header__cta-text {
    width: auto;
    color: var(--color-white);
    text-align: center;
    font-family: var(--font-main);
    font-size: clamp(16px, 1.4vw, 20px);
    white-space: nowrap;
    font-weight: 700;
    line-height: normal;
    letter-spacing: 0.8px;
}

.header__cta-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}


/* --- ヘッダー レスポンシブ補完 --- */
@media screen and (max-width: 1500px) {
    .header__left {
        gap: clamp(16px, 2vw, 40px);
    }
    .header__nav-list {
        gap: clamp(2px, 1vw, 16px);
    }
    .header__nav-list li a {
        font-size: clamp(12px, 1vw, 14px);
        letter-spacing: 0.28px;
    }
}

@media screen and (max-width: 1200px) {
    .header__right {
        width: 280px;
        min-width: 240px;
    }
    .header__cta {
        height: 60px;
    }
}


/* ==============================================
   フッター
   ============================================== */
.footer {
    position: relative;
    overflow: hidden;
}

.footer__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.footer__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.footer__inner {
    position: relative;
    display: flex;
    height: 270px;
    align-items: center;
    gap: clamp(32px, 4vw, 62px);
    align-self: stretch;
    justify-content: center;
    padding: 0 clamp(20px, 3vw, 52px);
}

/* --- ロゴエリア --- */
.footer__logo-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

.footer__logo-subtitle {
    color: var(--color-text);
    text-align: center;
    font-family: var(--font-main);
    font-size: 14px;
    font-weight: 800;
    line-height: normal;
    letter-spacing: 0.56px;
}

.footer__logo-link {
    display: block;
}

.footer__logo-img {
    display: block;
    height: var(--logo_size_sp, 48px);
    width: auto;
}

@media screen and (min-width: 960px) {
    .footer__logo-img {
        height: var(--logo_size_pc, 40px);
    }
}

/* --- フッターナビ --- */
.footer__nav {
    display: flex;
    gap: 0;
}

.footer__nav-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 0 clamp(20px, 3vw, 40px);
    list-style: none;
    margin: 0;
}

.footer__nav-list--bordered {
    border-left: 1px solid #E9EDF0;
}

.footer__nav-list li {
    list-style: none;
}

.footer__nav-list li a {
    color: #313131;
    text-align: center;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    letter-spacing: 0.56px;
    white-space: nowrap;
    transition: opacity 0.3s;
}

.footer__nav-list li a:hover {
    opacity: 0.7;
}

/* --- コピーライト --- */
.footer__copyright {
    position: relative;
    color: #313131;
    text-align: center;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    letter-spacing: 0.56px;
    padding: 20px 0;
}


/* ==============================================
   トップに戻るボタン（SWELL上書き）
   ============================================== */
#pagetop.c-fixBtn {
    background-color: var(--color-primary);
    color: var(--color-white);
    border: none;
    transition: background-color 0.3s;
}

#pagetop.c-fixBtn:hover {
    background-color: #3db8f0;
}


/* ==============================================
   ハンバーガーボタン（デスクトップでは非表示）
   ============================================== */
.header__hamburger {
    display: none;
    width: 40px;
    height: 40px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-shrink: 0;
}

.header__hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    transition: transform 0.3s, opacity 0.3s;
}

.header__hamburger.is-open .header__hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.header__hamburger.is-open .header__hamburger-line:nth-child(2) {
    opacity: 0;
}

.header__hamburger.is-open .header__hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}


/* ==============================================
   モバイルメニュー（デスクトップでは非表示）
   ============================================== */
.mobile-menu {
    display: none;
}

.mobile-menu__overlay {
    display: none;
}

/* --- body スクロール防止 --- */
body.is-menu-open {
    overflow: hidden;
}


/* ==============================================
   レスポンシブ（スマートフォン: 1024px以下）
   ============================================== */
@media screen and (max-width: 1024px) {

    /* --- body --- */
    body {
        padding-top: 60px;
    }

    body.admin-bar {
        padding-top: 106px;
    }

    body.admin-bar .header {
        top: 46px;
    }

    /* --- ヘッダー --- */
    .header__inner {
        display: flex;
        height: auto;
        padding: 10px 22px 7px 20px;
        justify-content: space-between;
        align-items: center;
        gap: 0;
        background: #FFF;
    }

    .header__logo-subtitle {
        display: block;
        align-self: stretch;
        color: #313131;
        text-align: center;
        font-family: "Noto Sans JP";
        font-size: 12px;
        font-style: normal;
        font-weight: 700;
        line-height: normal;
        letter-spacing: 0.48px;
    }

    .header__logo-img {
        height: 26px !important;
    }

    .header__nav {
        display: none;
    }

    .header__right {
        display: none;
    }

    .header__hamburger {
        display: flex;
        align-items: flex-end;
    }

    /* ハンバーガー線: 水色・太さ3px・長さ段階的・右端揃え */
    .header__hamburger-line {
        background: #4FC3F7;
        height: 3px;
        border-radius: 1.5px;
        transform-origin: center;
    }
    .header__hamburger-line:nth-child(1) {
        width: 26px;
    }
    .header__hamburger-line:nth-child(2) {
        width: 22px;
    }
    .header__hamburger-line:nth-child(3) {
        width: 18px;
    }
    /* is-open時: 中央揃え・全線同幅でX字を左右対称に */
    .header__hamburger.is-open {
        align-items: center;
    }
    .header__hamburger.is-open .header__hamburger-line {
        width: 24px;
    }
    .header__hamburger.is-open .header__hamburger-line:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .header__hamburger.is-open .header__hamburger-line:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    /* トップページのみ: FV背景にヘッダーをオーバーラップ */
    body.home {
        padding-top: 0 !important;
    }
    body.home.admin-bar {
        padding-top: 46px !important;
    }

    /* --- モバイルメニュー --- */
    .mobile-menu {
        display: block;
        position: fixed;
        top: 60px;
        right: 0;
        width: 80%;
        max-width: 320px;
        height: calc(100vh - 60px);
        background: rgba(255, 255, 255, 0.97);
        z-index: 999;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    body.admin-bar .mobile-menu {
        top: 106px;
        height: calc(100vh - 106px);
    }

    .mobile-menu.is-open {
        transform: translateX(0);
    }

    .mobile-menu__overlay {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        height: calc(100vh - 60px);
        background: rgba(0, 0, 0, 0.4);
        z-index: 998;
    }

    .mobile-menu__overlay.is-open {
        display: block;
    }

    .mobile-menu__inner {
        display: flex;
        flex-direction: column;
        min-height: 100%;
    }

    /* --- メニューナビ --- */
    .mobile-menu__list {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .mobile-menu__list li {
        border-bottom: 1px solid #E9EDF0;
    }

    .mobile-menu__list li a {
        display: block;
        padding: 16px 24px;
        color: var(--color-text);
        font-family: var(--font-main);
        font-size: 16px;
        font-weight: 700;
        line-height: normal;
        letter-spacing: 0.64px;
        transition: background 0.2s;
    }

    .mobile-menu__list li a:hover {
        background: #F5F5F5;
    }

    /* --- モバイル サブメニュー --- */
    .mobile-menu__list .menu-item-has-children {
        position: relative;
    }

    .mobile-menu__list .menu-item-has-children > a {
        padding-right: 56px;
    }

    .mobile-menu__submenu-toggle {
        position: absolute;
        top: 0;
        right: 0;
        width: 56px;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        background: none;
        border: none;
        border-left: 1px solid #E9EDF0;
        cursor: pointer;
        padding: 0;
    }

    .mobile-menu__submenu-toggle::after {
        content: "";
        display: block;
        width: 8px;
        height: 8px;
        border-right: 2px solid var(--color-text);
        border-bottom: 2px solid var(--color-text);
        transform: rotate(45deg);
        transition: transform 0.3s;
    }

    .mobile-menu__submenu-toggle.is-open::after {
        transform: rotate(-135deg);
    }

    .mobile-menu__list .sub-menu {
        display: none;
        list-style: none;
        margin: 0;
        padding: 0;
        background: #F9F9F9;
    }

    .mobile-menu__list .sub-menu.is-open {
        display: block;
    }

    .mobile-menu__list .sub-menu li a {
        padding-left: 40px;
        font-size: 14px;
        font-weight: 500;
    }

    /* --- ユーティリティナビ --- */
    .mobile-menu__utility {
        padding: 8px 0;
        border-bottom: 1px solid #E9EDF0;
    }

    .mobile-menu__utility-list {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .mobile-menu__utility-list li a {
        display: block;
        padding: 12px 24px;
        color: var(--color-text);
        font-family: var(--font-main);
        font-size: 14px;
        font-weight: 700;
        line-height: normal;
        letter-spacing: 0.56px;
        transition: background 0.2s;
    }

    .mobile-menu__utility-list li a:hover {
        background: #F5F5F5;
    }

    /* --- モバイルメニューCTA --- */
    .mobile-menu__cta {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        margin: auto 16px 24px;
        padding: 16px;
        background: var(--color-primary);
        box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.25);
        text-align: center;
    }

    .mobile-menu__cta-label {
        color: var(--color-white);
        font-family: var(--font-main);
        font-size: 14px;
        font-weight: 700;
        line-height: normal;
    }

    .mobile-menu__cta-text {
        color: var(--color-white);
        font-family: var(--font-main);
        font-size: 18px;
        font-weight: 700;
        line-height: normal;
        letter-spacing: 0.72px;
    }

    /* --- フッター --- */
    .footer__inner {
        height: auto;
        flex-direction: column;
        padding: 40px 20px;
        gap: 24px;
    }

    .footer__nav {
        flex-direction: column;
        gap: 0;
    }

    .footer__nav-list {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0;
        padding: 16px 0;
    }

    .footer__nav-list--bordered {
        border-left: none;
        border-top: 1px solid #E9EDF0;
    }

    .footer__nav-list li {
        padding: 4px 12px;
    }

    .footer__nav-list li a {
        font-size: 14px;
        white-space: normal;
        text-align: center;
    }

    .footer__copyright {
        font-size: 14px;
    }
}


/* ==============================================
   共通セクションパーツ
   ============================================== */

/* --- 英語ラベル（SCHOOL/FEATURE等と同パターン） --- */
.section-label {
    color: #E9EDF0;
    font-family: "Jost", sans-serif;
    font-size: 120px;
    font-style: italic;
    font-weight: 700;
    line-height: 40px;
    letter-spacing: 6.4px;
    text-align: left;
    margin: 0;
    padding-top: 30px;
    max-width: 1280px;
    margin: 0 auto;
    padding-left: 20px;
}

.section-label--white {
    color: #FFF;
}

/* --- 日本語タイトル見出し --- */
.section-header {
    display: inline-flex;
    padding: 14px 10px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 60px;
}

.section-header--blue {
    border-bottom: 2px solid #4FC3F7;
}

.section-header--green {
    border-bottom: 2px solid #CEF92E;
}

.section-title {
    color: #313131;
    text-align: center;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 40px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    letter-spacing: 1.6px;
    margin: 0;
}

/* --- もっとみる / 一覧ボタン --- */
.section-more {
    margin-top: 40px;
    text-align: center;
}

.section-more a {
    color: #313131;
    text-align: center;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 22px;
    font-weight: 700;
    line-height: normal;
    letter-spacing: 0.88px;
    text-decoration: none;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.section-more a svg {
    display: block;
}

/* --- セクションパーツ レスポンシブ --- */
@media (max-width: 1024px) {
    .section-label {
        font-size: 50px;
        line-height: 30px;
        letter-spacing: 3px;
    }

    .section-title {
        font-size: 28px;
    }

    .section-header {
        margin-bottom: 30px;
    }

    .section-more a {
        font-size: 18px;
    }
}


/* ==============================================
   CTA（コールトゥアクション）セクション
   ============================================== */
.cta {
    position: relative;
    overflow: hidden;
}

/* --- 背景画像（全幅） --- */
.cta__bg {
    width: 100%;
}

.cta__bg img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* --- 右側コンテンツ --- */
.cta__inner {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    box-sizing: border-box;
}

/* --- ラベルテキスト --- */
.cta__label {
    color: #FFF;
    text-align: center;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 26px;
    font-weight: 700;
    line-height: normal;
    letter-spacing: 1.04px;
    white-space: nowrap;
    margin: 0 0 24px;
}

/* --- CTAボタン --- */
.cta__button {
    display: inline-flex;
    width: 540px;
    max-width: 100%;
    height: 80px;
    padding: 12px 20px;
    justify-content: center;
    align-items: center;
    gap: 20px;
    border-radius: 39px;
    border: 2px solid #CEF92E;
    background: #FFF;
    box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.20);
    text-decoration: none;
    transition: opacity 0.3s;
    box-sizing: border-box;
}

.cta__button:hover {
    opacity: 0.85;
}

/* --- ボタンテキスト --- */
.cta__button-text {
    flex-shrink: 0;
    color: #313131;
    text-align: center;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 26px;
    font-weight: 700;
    line-height: normal;
    letter-spacing: 1.04px;
}

/* --- ペンタゴンアイコン --- */
.cta__button-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* --- 補足テキスト --- */
.cta__note {
    color: #FFF;
    text-align: center;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: normal;
    letter-spacing: 0.72px;
    margin: 16px 0 0;
}

/* --- CTA レスポンシブ（タブレット） --- */
@media (max-width: 1024px) {
    .cta__inner {
        width: 55%;
        padding: 30px 16px;
    }

    .cta__label {
        font-size: 22px;
        letter-spacing: 0.88px;
    }

    .cta__button {
        width: 440px;
        height: 70px;
    }

    .cta__button-text {
        font-size: 22px;
        letter-spacing: 0.88px;
    }
}

/* --- CTA レスポンシブ（スマートフォン） --- */
@media (max-width: 1024px) {
    .cta__bg img {
        min-height: 360px;
        object-position: right center;
    }

    .cta__inner {
        position: absolute;
        width: 100%;
        top: 0;
        left: 0;
        right: auto;
        height: 100%;
        padding: 32px 24px;
    }

    .cta__label {
        font-size: 14px;
        white-space: nowrap;
        padding: 0;
    }

    .cta__button {
        width: 100%;
        max-width: 340px;
        height: 56px;
    }

    .cta__button-text {
        font-size: 18px;
    }

    .cta__note {
        font-size: 14px;
        padding: 0 16px;
    }
}


/* ==============================================
   コンテンツヘッダー（SWELLタイトルエリア）- 全ページ共通
   ============================================== */
.l-topTitleArea {
    position: relative;
    background-image: url('../../img/common/content-bg.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.l-topTitleArea .l-topTitleArea__img {
    display: none;
}

.l-topTitleArea .l-topTitleArea__body .c-pageTitle {
    color: #FFF;
    text-align: center;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 48px;
    font-weight: 700;
    line-height: normal;
    letter-spacing: 1.92px;
}

@media (max-width: 1024px) {
    .l-topTitleArea .l-topTitleArea__body .c-pageTitle {
        font-size: 28px;
        letter-spacing: 1.12px;
    }
}


/* ==============================================
   パンくずリスト（SWELL標準オーバーライド）- 全ページ共通
   ============================================== */
.p-breadcrumb {
    background: #4FC3F7;
}

.l-topTitleArea + .p-breadcrumb {
    background: #4FC3F7 !important;
}

.p-breadcrumb .p-breadcrumb__list {
    justify-content: flex-start;
}

.p-breadcrumb .p-breadcrumb__item,
.p-breadcrumb .p-breadcrumb__text,
.p-breadcrumb .p-breadcrumb__text span,
.p-breadcrumb a.p-breadcrumb__text,
.p-breadcrumb a.p-breadcrumb__text span {
    color: #FFF;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: normal;
    letter-spacing: 0.64px;
}

.p-breadcrumb a.p-breadcrumb__text:hover {
    opacity: 0.7;
}


/* ==============================================
   ウィジェットタイトル アンダーライン色修正
   ============================================== */
.c-widget__title::before,
.c-widget__title::after {
    background: #4FC3F7 !important;
}
