/*
 * YGH Header (Final) - ä»£ãæ¨ã°ã­ã¼ãã«é«ç­å­¦é¢ å±éãããã¼CSS
 * Version: Refactor 2026-08-12 (button-width parity + matching-pair)
 * Colors: navy #003C8C / green #009E96
 * Asset path: assets/css/header.css
 */
:root {
    --ygh-color-navy: #003C8C;
    --ygh-color-navy-deep: #002E6C;
    --ygh-color-green: #009E96;
    --ygh-color-green-deep: #007D75;
    --ygh-color-white: #FFFFFF;
    --ygh-color-text: #13233F;
    --ygh-color-text-light: #5B6B82;
    --ygh-color-border: #D8E5E2;
    --ygh-color-border-strong: #B7D4CF;
    --ygh-color-surface: #F6FBFB;
    --ygh-shadow-soft: 0 10px 30px rgba(0, 46, 108, 0.10);
    --ygh-shadow-panel: 0 18px 50px rgba(0, 46, 108, 0.16);
    --ygh-radius-sm: 12px;
    --ygh-radius-md: 18px;
    --ygh-radius-pill: 999px;
    --ygh-header-height: 90px;
    --ygh-button-min-width: 9.5rem;
    --ygh-transition: 0.28s ease;
    --ygh-accordion-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --ygh-accordion-duration: 0.4s;
    --ygh-page-gutter: clamp(16px, 4vw, 40px);
    --ygh-hero-min-h: clamp(320px, 56vh, 640px);
    --ygh-hero-ar: 16 / 7;
}

html, body {
    overflow-x: clip;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", "Noto Sans JP", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    font-feature-settings: "palt";
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Header / Hero globals */
.ygh-site-header,
.ygh-site-header *,
.ygh-hero,
.ygh-hero *,
h1, h2, h3, h4, p, ul, ol {
    font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", "Noto Sans JP", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    margin-block-start: 0;
    margin-block-end: 0;
}

.ygh-site-header,
.ygh-site-header *,
.ygh-hero,
.ygh-hero * {
    box-sizing: border-box;
}

/* ==========================================================
 * HEADER (full-width)
 * ========================================================== */
.ygh-site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: none;
    z-index: 300;
    background: transparent;
    border-bottom: 1px solid transparent;
    overflow: visible;
    transition: background-color var(--ygh-transition), border-color var(--ygh-transition), box-shadow var(--ygh-transition), backdrop-filter var(--ygh-transition);
}

/* スクロール後（またはヒーローが無いページ）は白背景に切り替え */
.ygh-site-header.is-scrolled,
body:not(.has-header-overlay) .ygh-site-header {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom-color: rgba(216, 229, 226, 0.9);
    box-shadow: 0 10px 30px rgba(0, 46, 108, 0.08);
}
.ygh-site-header:not(.is-scrolled) {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.ygh-site-header__inner {
    width: 100%;
    max-width: none;
    min-height: var(--ygh-header-height);
    margin: 0;
    display: grid;
    grid-template-columns:
        minmax(180px, clamp(220px, 22vw, 320px))
        minmax(0, 1fr)
        auto;
    align-items: center;
    gap: clamp(10px, 1.2vw, 18px);
    padding: 14px var(--ygh-page-gutter);
}

.ygh-site-header__brand { display: inline-flex; align-items: center; min-width: 0; max-width: 280px; }
.ygh-site-header__brand img { display: block; width: 100%; height: auto; }

/* パソコン時のロゴサイズ */
@media screen and (min-width: 769px) {
    .ygh-site-header__brand img {
        width: 320px;
        height: auto;
    }
}

.ygh-gnav { min-width: 0; }
.ygh-gnav__list,
.ygh-gnav__dropdown-list,
.ygh-drawer-nav__list,
.ygh-drawer-nav__panel ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ygh-gnav__list {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(6px, 0.8vw, 16px);
}
.ygh-gnav__item { position: relative; }
.ygh-gnav__item.is-has-children::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 18px;
}

.ygh-gnav__link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 14px 5px;
    color: var(--ygh-color-text);
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.3;
	letter-spacing: 0.05em;
    text-decoration: none;
    white-space: nowrap;
    transition: color var(--ygh-transition);
}

.ygh-gnav__link::after { content: ""; position: absolute; left: 0; bottom: 6px; width: 100%; height: 2px; border-radius: var(--ygh-radius-pill); background: var(--ygh-color-green); transform: scaleX(0); transform-origin: left center; transition: transform var(--ygh-transition); }
.ygh-gnav__item:hover > .ygh-gnav__link,
.ygh-gnav__item:focus-within > .ygh-gnav__link {
    color: var(--ygh-color-navy);
    text-decoration: none;   /* ← 追加：Bootstrapのa:hover下線を消す */
}
.ygh-gnav__item:hover > .ygh-gnav__link::after,
.ygh-gnav__item:focus-within > .ygh-gnav__link::after { transform: scaleX(1); }

.ygh-gnav__caret { width: 9px; height: 6px; transition: transform var(--ygh-transition); }
.ygh-gnav__item.is-open > .ygh-gnav__link .ygh-gnav__caret { transform: rotate(180deg); }

.ygh-gnav__dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translate(-50%, 6px);
    min-width: 250px;
    background: #fff;
    border: 1px solid rgba(216, 229, 226, 0.9);
    border-top: 1px solid rgba(183, 212, 207, 0.9);
    border-radius: 0 0 var(--ygh-radius-md) var(--ygh-radius-md);
    box-shadow: var(--ygh-shadow-panel);
    padding: 14px 18px;
    opacity: 0;
    min-width: max-content;
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--ygh-transition), transform var(--ygh-transition), visibility var(--ygh-transition);
    z-index: 60;
}
.ygh-gnav__item:hover > .ygh-gnav__dropdown,
.ygh-gnav__item:focus-within > .ygh-gnav__dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);
}
.ygh-gnav__dropdown-list { display: grid; gap: 6px; }
.ygh-gnav__dropdown-list a {
    display: block;
    padding: 8px 6px;
    color: var(--ygh-color-text);
    font-size: 0.86rem;
    font-weight: 600;
	letter-spacing: 0.05em;
    text-decoration: none;
    border-radius: 8px;
    transition: background var(--ygh-transition), color var(--ygh-transition);
}
.ygh-gnav__dropdown-list a:hover,
.ygh-gnav__dropdown-list a:focus-visible { background: var(--ygh-color-surface); color: var(--ygh-color-navy); }
.ygh-gnav__dropdown-list--multi { grid-template-columns: 1fr 1fr; gap: 4px 14px; }

.ygh-gnav__item.is-open > .ygh-gnav__dropdown { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0); }

/* スマートフォンでは資料請求・オープンスクールボタンを非表示 */
@media screen and (max-width: 768px) {
    .ygh-site-header__actions .ygh-btn--outline,
    .ygh-site-header__actions .ygh-btn--filled {
        display: none !important;
    }
}

/* ==========================================================
 * BUTTON PAIR â equal widths (header AND footer)
 * Both buttons in the pair must share min-width/padding
 * so è³æè«æ± matches ãªã¼ãã³ã¹ã¯ã¼ã« visually.
 * ========================================================== */
.ygh-cta-pair {
    display: inline-flex;
    align-items: stretch;
    gap: 10px;
}
.ygh-cta-pair .ygh-btn,
.ygh-cta-pair .ygh-footer__cta {
    flex: 1 1 0;
    min-width: var(--ygh-button-min-width);
    justify-content: center;
    text-align: center;
}

/* ===== Buttons ===== */
.ygh-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 22px;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: var(--ygh-radius-pill);
    border: 1.5px solid transparent;
    transition: color var(--ygh-transition), background var(--ygh-transition), border-color var(--ygh-transition), transform var(--ygh-transition), box-shadow var(--ygh-transition);
    line-height: 1.1;
    white-space: nowrap;
}
.ygh-btn__icon { width: 18px; height: 18px; display: block; }

.ygh-btn--outline {
    color: var(--ygh-color-navy);
    border-color: var(--ygh-color-navy);
    background: transparent;
}
.ygh-btn--outline:hover,
.ygh-btn--outline:focus-visible {
    color: var(--ygh-color-white);
    background: var(--ygh-color-green);
}
.ygh-btn--filled {
    color: var(--ygh-color-white);
   
    box-shadow: 0 10px 22px rgba(0, 60, 140, 0.16);
}

.ygh-btn--block {
    width: 100%;
    min-width: 0;
}

.ygh-menu-toggle,
.ygh-drawer__close,
.ygh-drawer__overlay,
.ygh-drawer-nav__toggle {
    appearance: none;
    font: inherit;
    cursor: pointer;
}

/* ===== Header action area ===== */
.ygh-site-header__actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-width: 0;
    flex-wrap: nowrap;
}
.ygh-site-header__actions .ygh-btn {
    width: clamp(8.6rem, 10.2vw, 10.4rem);
    min-width: 0;
    padding-inline: 16px;
    justify-content: center;
    text-align: center;
    flex: 0 1 auto;
}

.ygh-menu-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    min-width: 52px;
    height: 52px;
    overflow: hidden;
    border-radius: 50%;
    border: 1px solid var(--ygh-color-border-strong);
    background: var(--ygh-color-white);
    color: var(--ygh-color-navy);
    isolation: isolate;
    transition: transform var(--ygh-transition), box-shadow var(--ygh-transition), border-color var(--ygh-transition), color var(--ygh-transition);
}
.ygh-menu-toggle:hover,
.ygh-menu-toggle:focus-visible {
    transform: translateY(-1px);
    border-color: var(--ygh-color-green);
    box-shadow: 0 10px 22px rgba(0, 46, 108, 0.08);
}
.ygh-menu-toggle__line,
.ygh-menu-toggle__line::before,
.ygh-menu-toggle__line::after {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: var(--ygh-radius-pill);
    background: currentColor;
    transform-origin: center center;
    transition: transform var(--ygh-transition), opacity var(--ygh-transition), top var(--ygh-transition), background-color var(--ygh-transition), width var(--ygh-transition);
}
.ygh-menu-toggle__line { position: absolute; top: 16px; left: 50%; transform: translateX(-50%); }
.ygh-menu-toggle__line::before, .ygh-menu-toggle__line::after { content: ""; position: absolute; left: 0; }
.ygh-menu-toggle__line::before { top: -6px; }
.ygh-menu-toggle__line::after { top: 6px; }
.ygh-menu-toggle__text {
    position: absolute;
    left: 50%;
    bottom: 9px;
    transform: translateX(-50%);
    font-size: 0.56rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    line-height: 1;
    transition: opacity var(--ygh-transition), transform var(--ygh-transition);
}
body.ygh-menu-is-open,
body.is-ygh-menu-open { overflow: hidden; }
.ygh-menu-toggle[aria-expanded="true"] { border-color: var(--ygh-color-navy); background: var(--ygh-color-navy); color: var(--ygh-color-white); box-shadow: 0 10px 22px rgba(0, 46, 108, 0.2); }
.ygh-menu-toggle[aria-expanded="true"] .ygh-menu-toggle__line { width: 0; background: transparent; }
.ygh-menu-toggle[aria-expanded="true"] .ygh-menu-toggle__line::before { top: 0; width: 20px; transform: rotate(45deg); }
.ygh-menu-toggle[aria-expanded="true"] .ygh-menu-toggle__line::after { top: 0; width: 20px; transform: rotate(-45deg); }
.ygh-menu-toggle[aria-expanded="true"] .ygh-menu-toggle__text { opacity: 0; transform: translate(-50%, 4px); }

/* ==========================================================
 * HEADER OVERLAY — ヒーロー上の透過ヘッダー表示
 * スクロール前（ヒーロー上）は背景透過＋白系のロゴ・ナビ・ボタン、
 * スクロール後は .is-scrolled で白背景＋通常配色に戻る
 * ========================================================== */
body.has-header-overlay .ygh-site-header:not(.is-scrolled) .ygh-site-header__brand img {
    filter: brightness(0) invert(1) drop-shadow(0 2px 6px rgba(0, 30, 70, 0.35));
}
body.has-header-overlay .ygh-site-header:not(.is-scrolled) .ygh-gnav__link { color: #ffffff; }
body.has-header-overlay .ygh-site-header:not(.is-scrolled) .ygh-gnav__item:hover > .ygh-gnav__link,
body.has-header-overlay .ygh-site-header:not(.is-scrolled) .ygh-gnav__item:focus-within > .ygh-gnav__link {
    color: rgba(255, 255, 255, 0.78);
}
body.has-header-overlay .ygh-site-header:not(.is-scrolled) .ygh-btn--outline {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.12);
}
body.has-header-overlay .ygh-site-header:not(.is-scrolled) .ygh-btn--outline:hover,
body.has-header-overlay .ygh-site-header:not(.is-scrolled) .ygh-btn--outline:focus-visible {
    background: var(--ygh-color-green);
    border-color: transparent;
    color: #ffffff;
}
body.has-header-overlay .ygh-site-header:not(.is-scrolled) .ygh-btn--filled {
    background: rgba(255, 255, 255, 0.95);
    color: var(--ygh-color-navy);
    box-shadow: 0 10px 22px rgba(0, 40, 90, 0.20);
}
body.has-header-overlay .ygh-site-header:not(.is-scrolled) .ygh-btn--filled:hover,
body.has-header-overlay .ygh-site-header:not(.is-scrolled) .ygh-btn--filled:focus-visible {
    background: #ffffff;
    color: var(--ygh-color-navy);
}
body.has-header-overlay .ygh-site-header:not(.is-scrolled) .ygh-menu-toggle {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.55);
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(0, 40, 90, 0.18);
}

/* スライダー全枚共通:ヘッダーは透過・白帯なし、濃紺のソリッド表示(白文字・白ロゴ) */
body.has-header-overlay .ygh-site-header:not(.is-scrolled) {
    background: linear-gradient(180deg, var(--ygh-color-navy) 0%, var(--ygh-color-navy-deep) 100%) !important;
}

/* ==========================================================
 * DRAWER (SP)
 * ========================================================== */
.ygh-drawer { position: fixed; inset: 0; z-index: 400; visibility: hidden; }
body.ygh-menu-is-open .ygh-drawer,
body.is-ygh-menu-open .ygh-drawer { visibility: visible; }
.ygh-drawer__overlay {
    position: absolute; inset: 0; width: 100%; height: 100%;
    background: rgba(0, 46, 108, 0.55);
    opacity: 0;
    transition: opacity var(--ygh-transition);
    border: 0; padding: 0;
}
body.ygh-menu-is-open .ygh-drawer__overlay,
body.is-ygh-menu-open .ygh-drawer__overlay { opacity: 1; }

.ygh-drawer__panel {
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: min(420px, 92%);
    background: var(--ygh-color-white);
    box-shadow: -16px 0 40px rgba(0, 46, 108, 0.16);
    transform: translateX(100%);
    transition: transform var(--ygh-transition);
    display: flex;
    flex-direction: column;
    isolation: isolate;
}
body.ygh-menu-is-open .ygh-drawer__panel,
body.is-ygh-menu-open .ygh-drawer__panel { transform: translateX(0); }

.ygh-drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 20px 20px 16px;
    border-bottom: 1px solid var(--ygh-color-border);
    background: #ffffff;
    color: var(--ygh-color-navy);
}
.ygh-drawer__brand { display: inline-flex; align-items: center; min-width: 0; }
.ygh-drawer__brand img { display: block; width: 260px; max-width: 60vw; height: auto; }
.ygh-drawer__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    position: relative;
    flex-shrink: 0;
    border-radius: 50%;
    border: 1px solid var(--ygh-color-navy);
    background: var(--ygh-color-navy);
    color: var(--ygh-color-white);
    box-shadow: 0 6px 16px rgba(0, 46, 108, 0.18);
    transition: background var(--ygh-transition), border-color var(--ygh-transition), color var(--ygh-transition), box-shadow var(--ygh-transition), transform var(--ygh-transition);
}
.ygh-drawer__close:hover,
.ygh-drawer__close:focus-visible {
    background: var(--ygh-color-green);
    border-color: var(--ygh-color-green);
    color: var(--ygh-color-white);
    box-shadow: 0 8px 20px rgba(0, 60, 140, 0.25);
    transform: translateY(-1px);
}
.ygh-drawer__close span,
.ygh-drawer__close span::before,
.ygh-drawer__close span::after {
    display: block;
    width: 22px;
    height: 3px;
    background: currentColor;
    border-radius: var(--ygh-radius-pill);
    position: absolute;
    top: 50%; left: 50%;
    transform-origin: center center;
    transition: opacity var(--ygh-transition), background var(--ygh-transition);
}
.ygh-drawer__close span::before,
.ygh-drawer__close span::after {
    content: "";
}
.ygh-drawer__close span { transform: translate(-50%, -50%) rotate(45deg); }
.ygh-drawer__close span::before { transform: translate(-50%, -50%) rotate(-90deg); }
.ygh-drawer__close span::after { display: none; }
.ygh-drawer__body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 20px 28px;
    background: linear-gradient(180deg, #f7fbff 0%, #ffffff 100%);
}
.ygh-drawer__eyebrow {
    margin: 0 0 14px;
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--ygh-color-green);
    letter-spacing: 0.12em;
}
.ygh-drawer-nav__list { display: grid; gap: 10px; }
.ygh-drawer-nav__item { border: 1px solid rgba(216, 229, 226, 0.9); border-radius: 16px; background: var(--ygh-color-white); box-shadow: 0 8px 20px rgba(0, 46, 108, 0.05); overflow: hidden; }
.ygh-drawer-nav__toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 16px;
    background: transparent;
    border: 0;
    color: var(--ygh-color-text);
    font-size: 1rem;
    font-weight: 800;
    text-align: left;
}
.ygh-drawer-nav__item.is-open > .ygh-drawer-nav__toggle {
    background: rgba(0, 158, 150, 0.08);
    color: var(--ygh-color-navy);
}
.ygh-drawer-nav__toggle span,
.ygh-drawer-nav__toggle span a {
    color: inherit;
    font: inherit;
    text-decoration: none;
}
.ygh-drawer-nav__toggle svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--ygh-color-green); transition: transform var(--ygh-transition), color var(--ygh-transition); }
.ygh-drawer-nav__item.is-open > .ygh-drawer-nav__toggle svg { transform: rotate(45deg); color: var(--ygh-color-navy); }
.ygh-drawer-nav__panel {
    overflow: hidden;
    max-height: 0;
    transition: max-height var(--ygh-accordion-duration) var(--ygh-accordion-ease);
}
.ygh-drawer-nav__panel ul { display: grid; gap: 6px; padding: 0 12px 14px 12px; }
.ygh-drawer-nav__panel a {
    display: block;
    padding: 10px 12px;
    color: var(--ygh-color-text);
    font-size: 0.92rem;
    text-decoration: none;
    border-radius: 10px;
    background: #f8fbfd;
    border-left: 3px solid rgba(0, 158, 150, 0.25);
    transition: background var(--ygh-transition), color var(--ygh-transition), border-color var(--ygh-transition), transform var(--ygh-transition);
}
.ygh-drawer-nav__panel a:hover,
.ygh-drawer-nav__panel a:focus-visible { background: var(--ygh-color-surface); color: var(--ygh-color-navy); border-left-color: var(--ygh-color-green); transform: translateX(2px); }
.ygh-drawer-nav__item.is-open > .ygh-drawer-nav__panel {
    max-height: 600px;
}

.ygh-drawer__cta {
    margin-top: 22px;
    display: grid;
    gap: 10px;
}
.ygh-drawer__cta .ygh-btn { width: 100%; justify-content: center; }
.ygh-drawer__info {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--ygh-color-border);
    color: var(--ygh-color-text);
    font-size: 0.92rem;
}
.ygh-drawer__info a { color: inherit; text-decoration: none; font-weight: 700; }

/* ==========================================================
 * HERO
 * ========================================================== */
.ygh-hero {
    position: relative;
    width: 100%;
    background: linear-gradient(180deg, var(--ygh-color-navy-deep) 0%, var(--ygh-color-navy) 100%);
    overflow: hidden;
    min-height: var(--ygh-hero-min-h);
    aspect-ratio: var(--ygh-hero-ar);
    --ygh-current-slide: 0;
}
.ygh-hero__viewport {
    position: relative;
    width: 100%;
    height: 100%;
}
.ygh-hero__track {
    position: absolute;
    inset: 0;
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
}
.ygh-hero__slide {
    grid-area: 1 / 1;
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}
.ygh-hero__slide.is-active {
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
}
.ygh-hero__link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    color: var(--ygh-color-white);
    text-decoration: none;
}
.ygh-hero__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
.ygh-hero__caption {
    position: absolute;
    z-index: 2;
    left: clamp(20px, 4vw, 64px);
    right: clamp(20px, 4vw, 64px);
    bottom: clamp(20px, 4vw, 56px);
    padding: 14px 18px;
    background: rgba(0, 46, 108, 0.55);
    backdrop-filter: blur(4px);
    color: var(--ygh-color-white);
    font-size: clamp(0.95rem, 1.4vw, 1.35rem);
    font-weight: 700;
    border-radius: var(--ygh-radius-sm);
    line-height: 1.35;
}
.ygh-hero__dots {
    position: absolute;
    z-index: 5;
    left: 50%;
    bottom: clamp(12px, 2vw, 22px);
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.ygh-hero__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
    border: 0;
    appearance: none;
    cursor: pointer;
    padding: 0;
    transition: background var(--ygh-transition), transform var(--ygh-transition);
}
.ygh-hero__dot.is-active { background: var(--ygh-color-white); transform: scale(1.25); }

/* ヒーロー左側のコピー・サブテキスト・ボタン(参考サイト風) */
.ygh-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(24, 118, 230, 0.0) 0%, rgba(24, 118, 230, 0.00) 32%, rgba(24, 118, 230, 0) 58%);
}
.ygh-hero__content {
    position: absolute;
    top: 50%;
    left: clamp(24px, 5vw, 84px);
    transform: translateY(-50%);
    z-index: 4;
    max-width: min(1320px, calc(100% - 48px));
    color: #ffffff;
    text-shadow: 0 2px 14px rgba(4, 22, 52, 0.4);
}
.ygh-hero__eyebrow {
    margin: 0 0 12px;
    font-size: clamp(0.72rem, 0.95vw, 0.95rem);
    font-weight: 800;
    letter-spacing: 0.22em;
    color: #002E6C;
}
.ygh-hero__copy {
    margin: 0;
    font-size: clamp(1.75rem, 3.2vw, 3.0rem);
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: 0.04em;
    color: #ffffff;
    text-wrap: balance;
}
.ygh-hero__sub {
    margin: 16px 0 0;
    max-width: 900px;
    font-size: clamp(1.1rem, 1.25vw, 1.3rem);
    font-weight: 800;
    line-height: 1.85;
    color: rgba(255, 255, 255, 1); 
	letter-spacing: 0.04em;
}
.ygh-hero__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 28px;
    padding: 16px 34px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--ygh-color-green) 0%, var(--ygh-color-green-deep) 100%);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-decoration: none;
    box-shadow: 0 14px 30px rgba(0, 60, 140, 0.35);
    transition: transform var(--ygh-transition), box-shadow var(--ygh-transition), background var(--ygh-transition);
}
.ygh-hero__btn:hover,
.ygh-hero__btn:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(0, 60, 140, 0.45);
    background: linear-gradient(135deg, var(--ygh-color-green-deep) 0%, #00736d 100%);
}
.ygh-hero__btn-arrow { font-weight: 700; transition: transform var(--ygh-transition); }
.ygh-hero__btn:hover .ygh-hero__btn-arrow { transform: translateX(4px); }

@media screen and (max-width: 768px) {
    .ygh-hero__content {
        top: auto;
        bottom: 86px;
        left: 20px;
        right: 20px;
        transform: none;
        max-width: none;
    }
    .ygh-hero__copy { font-size: clamp(1.12rem, 4.6vw, 1.45rem); }
    .ygh-hero__sub { font-size: 0.86rem; margin-top: 12px; }
    .ygh-hero__btn { margin-top: 20px; padding: 13px 24px; font-size: 0.9rem; }
    .ygh-hero__eyebrow { margin-bottom: 8px; font-size: 0.66rem; }
}

/* ==========================================================
 * HERO (SP) 2026-10-05
 * スマホ時は専用画像(4:3)に差し替え、画像が切れすぎない高さに調整
 * ========================================================== */
@media screen and (max-width: 768px) {
    /* 高さ: 専用画像(4:3)に合わせてトリミングを最小化 */
    .ygh-hero {
        aspect-ratio: 4 / 3;
        min-height: clamp(300px, 80vw, 430px);
    }
    /* 画像差し替え: <img>は隠し、スライドごとにSP画像を背景として表示 */
    .ygh-hero__image { visibility: hidden; }
    .ygh-hero__link {
        background-position: center center;
        background-repeat: no-repeat;
        background-size: cover;
    }
    .ygh-hero__slide:nth-child(1) .ygh-hero__link { background-image: url('/assets/img/slide1-sp.jpg'); }
    .ygh-hero__slide:nth-child(2) .ygh-hero__link { background-image: url('/assets/img/slide2-sp.jpg'); }
    .ygh-hero__slide:nth-child(3) .ygh-hero__link { background-image: url('/assets/img/slide3-sp.jpg'); }
    /* 画像下部を暗くして白文字の可読性を確保 */
    .ygh-hero::after {
        content: "";
        position: absolute;
        inset: auto 0 0 0;
        height: 80%;
        z-index: 3;
        pointer-events: none;
        background: linear-gradient(180deg, rgba(4,22,48,0) 0%, rgba(4,22,48,0) 45%, rgba(4,22,48,0) 100%);
    }
    .ygh-hero__content {
        top: auto;
        bottom: clamp(70px, 22vw, 120px);
        left: 18px;
        right: 18px;
        transform: none;
        max-width: none;
    }
    .ygh-hero__copy { font-size: 1.08rem; }
    .ygh-hero__sub  { font-size: 0.8rem; margin-top: 8px; }
    .ygh-hero__btn  { margin-top: 14px; padding: 11px 20px; font-size: 0.84rem; }
}

/* ==========================================================
 * SECTION (the main)
 * ========================================================== */
main.ygh-main { width: 100%; }
.ygh-section {
    width: min(1320px, calc(100% - var(--ygh-page-gutter) * 2));
    margin-inline: auto;
    padding: clamp(40px, 6vw, 72px) 0;
}
.ygh-section__heading {
    margin: 0 0 18px;
    font-size: clamp(1.4rem, 2.4vw, 2rem);
    font-weight: 800;
    color: var(--ygh-color-navy, #003C8C);
    line-height: 1.4;
}
.ygh-section__lead {
    margin: 0 0 28px;
    max-width: 1320px;
    color: var(--ygh-color-text-light, #5B6B82);
    font-size: clamp(0.95rem, 1vw, 1.05rem);
    line-height: 1.7;
}
.ygh-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
    gap: clamp(16px, 2vw, 24px);
}
.ygh-card {
    display: block;
    padding: clamp(20px, 2vw, 28px);
    background: var(--ygh-color-white);
    border: 1px solid var(--ygh-color-border);
    border-left: 4px solid var(--ygh-color-green);
    border-radius: var(--ygh-radius-md);
    text-decoration: none;
    color: inherit;
    transition: transform var(--ygh-transition), box-shadow var(--ygh-transition), border-color var(--ygh-transition);
}
.ygh-card:hover, .ygh-card:focus-visible {
    transform: translateY(-2px);
    box-shadow: var(--ygh-shadow-soft);
    border-color: var(--ygh-color-green);
}
.ygh-card__eyebrow {
    display: block;
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--ygh-color-green);
    letter-spacing: 0.12em;
}
.ygh-card__title {
    display: block;
    margin-top: 6px;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--ygh-color-navy);
}
.ygh-card__desc {
    margin: 10px 0 0;
    color: var(--ygh-color-text-light);
    font-size: 0.92rem;
    line-height: 1.65;
    font-weight: 500;
}
.ygh-cta-row {
    margin-top: clamp(28px, 4vw, 48px);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.ygh-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-radius: var(--ygh-radius-md);
    background: var(--ygh-color-surface);
    color: var(--ygh-color-navy);
    font-weight: 800;
    text-decoration: none;
    border: 1px solid var(--ygh-color-border);
    transition: background var(--ygh-transition), color var(--ygh-transition), transform var(--ygh-transition);
}
.ygh-cta small {
    color: var(--ygh-color-green);
    font-weight: 800;
    letter-spacing: 0.1em;
}
.ygh-cta:hover, .ygh-cta:focus-visible {
    background: var(--ygh-color-navy);
    color: var(--ygh-color-white);
    transform: translateY(-1px);
}
.ygh-cta:hover small, .ygh-cta:focus-visible small { color: var(--ygh-color-white); }
.ygh-cta--filled {
    background: linear-gradient(135deg, var(--ygh-color-navy) 0%, var(--ygh-color-navy-deep) 100%);
    color: var(--ygh-color-white);
}
.ygh-cta--filled small { color: var(--ygh-color-green); }

/* ==========================================================
 * Responsive: tighten breakpoints
 * ========================================================== */
@media (max-width: 1199px) {
    .ygh-gnav__link { font-size: 0.86rem; }
    .ygh-site-header__actions .ygh-btn { width: 8.8rem; }
}

@media (max-width: 1024px) {
    .ygh-gnav__list { gap: 4px; }
    .ygh-gnav__link { font-size: 0.84rem; }
    .ygh-cta-pair .ygh-btn,
    .ygh-cta-pair .ygh-footer__cta {
        min-width: 7.5rem;
    }
}
@media (max-width: 899px) {
    .ygh-gnav { display: none; }
    .ygh-site-header__inner {
        grid-template-columns: minmax(0, 1fr) auto;
    }
    .ygh-site-header__actions { gap: 6px; }
    .ygh-site-header__actions .ygh-btn {
        width: min(8.2rem, 30vw);
        padding-inline: 12px;
        font-size: 0.82rem;
    }
    .ygh-site-header__actions .ygh-btn__icon { display: none; }
}
@media (max-width: 559px) {
    .ygh-site-header__actions .ygh-btn {
        width: min(7rem, 28vw);
        padding-inline: 8px;
        font-size: 0.76rem;
    }
    .ygh-hero__caption { padding: 10px 12px; font-size: 0.85rem; }
}
@media (max-width: 399px) {
    .ygh-btn { min-height: 40px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  width: 100%;
  background: transparent;
}

.header-logo img {
  display: block;
  width: auto;
  height: 70px;
  transition: opacity 0.3s ease;
}

.ygh-floating-cta {
    position: fixed;
    top: 50%;
    right: 0;
    z-index: 1100;
    display: flex;
    flex-direction: row;
    transform: translateY(-50%);
}

@media screen and (max-width: 768px) {
    .ygh-floating-cta {
        top: auto;
        right: 0;
        bottom: 0;
        left: 0;
        width: 100%;
        transform: none;
    }

    .ygh-floating-cta .ygh-btn {
        flex: 1 1 50%;
    }
}

.ygh-floating-cta {
    position: fixed;
    top: 50%;
    right: 0;
    z-index: 1100;
    display: flex;
    flex-direction: row;
    transform: translateY(-50%);
}

@media screen and (max-width: 768px) {
    .ygh-floating-cta {
        top: auto;
        right: 0;
        bottom: 0;
        left: 0;
        width: 100%;
        transform: none;
    }

    .ygh-floating-cta .ygh-btn {
        flex: 1 1 50%;
    }
}
/* 下層ページ：デフォルト時はヘッダー背景を透過 */
body.ygh-page:not(.has-header-overlay) .ygh-site-header:not(.is-scrolled) {
    background: transparent !important;
    border-bottom-color: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* スクロール後は白背景を表示 */
body.ygh-page .ygh-site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.96) !important;
    border-bottom-color: rgba(216, 229, 226, 0.9) !important;
    box-shadow: 0 10px 30px rgba(0, 46, 108, 0.08) !important;
}
/* ハンバーガーメニューの開閉状態 */
.ygh-drawer[aria-hidden="true"] {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.ygh-drawer[aria-hidden="false"],
.ygh-drawer.is-open {
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

body.ygh-menu-is-open {
    overflow: hidden;
}


/* ドロワー表示中は画面右下/下部の固定CTAを非表示（開いたメニューに重なるため） */
body.ygh-menu-is-open .ygh-floating-cta,
body.is-ygh-menu-open .ygh-floating-cta {
    display: none;
}

html {
    scroll-behavior: smooth;   /* なめらかにスクロール */
    scroll-padding-top: 110px; /* 固定ヘッダーの高さ分を確保（実測に合わせて調整） */
}

/* ===== コピー(キャッチコピー) ===== 
   fs-0 = スマホ(〜767px)  /  fs-lg-1 = lg(992px〜)の大きさ */
.fs-0   { font-size: 1.0rem; }   /* 例: 16px */
.fs-lg-1{ font-size: 1.25rem; }  /* 例: 20px */

/* ===== 科名タイトル(韓国語科 など) ===== */
.fs-3   { font-size: 1.25rem; }  /* 例: 20px */
.fs-lg-5{ font-size: 1.5rem; }   /* 例: 24px */

/* ===== 太さ ===== */
.fw-bold{ font-weight: 700; }    /* 700=太字 */


/* ==========================================================
 * 2026-09-26 修正: ヒーロー上のヘッダーの「ぼかし帯」をなくす
 * ----------------------------------------------------------
 * トップページのヘッダーは、1枚目のスライドでは空の写真と同化して
 * 見えず、2枚目・3枚目では薄い帯（ヘッダー背景）が見えていました。
 * 原因は body に .has-header-overlay が付いておらず、
 *   body:not(.has-header-overlay) .ygh-site-header { backdrop-filter: blur(14px); }
 * だけが効いているためです（背景色はページ内インラインstyleの
 *   .ygh-site-header { background-color: transparent !important; }
 * が勝つため透明）。
 * つまりヘッダーは「透明 + ぼかし」状態で、背後写真のディテールが
 * つぶれて白っぽい帯として見えていました。空のように一様な1枚目では
 * 目立たず、室内写真の2枚目・3枚目では帯が目立つ、という差でした。
 * → ぼかし（と残っている白背景）を無効化し、全スライドで
 *    「写真がそのまま透けるだけ」の同じ見え方に統一します。
 * スクロール後の白ヘッダー（.is-scrolled）は従来通りです。
 * body に .has-header-overlay が付く／付かない どちらでも同じ結果になる
 * よう、セレクタを両対応にしてあります。
 * ========================================================== */
.ygh-site-header:not(.is-scrolled),
body:not(.has-header-overlay) .ygh-site-header:not(.is-scrolled),
body.has-header-overlay .ygh-site-header:not(.is-scrolled) {
    background: transparent !important;
    background-color: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom-color: transparent !important;
    box-shadow: none !important;
}

/* ==========================================================
 * 2026-11-12 スマートフォン表示の修正
 * ロゴ・見出し・MENUボタンの表示領域を確保し、重なりを防ぐ
 * ========================================================== */
@media screen and (max-width: 899px) {
    .ygh-site-header__inner {
        display: flex !important;
        align-items: center;
        gap: 10px;
        padding: 10px 14px;
    }
    .ygh-site-header__brand {
        flex: 0 1 auto;
        min-width: 0;
        max-width: calc(100% - 84px);
    }
    .ygh-site-header__brand img {
        display: block;
        width: auto;
        max-width: 100%;
        height: auto;
        max-height: 46px;
        object-fit: contain;
    }
    .ygh-site-header__actions {
        flex: 0 0 auto;
        margin-left: auto;
    }
    .ygh-menu-toggle { flex: 0 0 auto; }
}
/* トップのヒーロー見出しがヘッダーに隠れないよう上余白を確保 */
@media screen and (max-width: 768px) {
    .ygh-hero__content {
        padding-top: calc(var(--ygh-header-height, 72px) + 14px);
    }
    .ygh-hero__copy { font-size: clamp(1.45rem, 6.2vw, 2rem); }
    .ygh-hero__sub { font-size: 0.9rem; }
}

/* ==========================================================
 * 2026-11-12 補正：スマホでMENUボタンが画面右端からはみ出す／
 * ロゴが縮まずボタンを押し出す問題を解消（全ページ共通）
 * ========================================================== */
@media screen and (max-width: 899px) {
    .ygh-site-header { overflow-x: clip !important; }
    .ygh-site-header__inner {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 10px 14px !important;
        gap: 10px !important;
        box-sizing: border-box !important;
    }
    .ygh-site-header__brand {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        max-width: none !important;
        overflow: hidden !important;
    }
    .ygh-site-header__brand img {
        width: auto !important;
        max-width: 100% !important;
        max-height: 44px !important;
        height: auto !important;
        object-fit: contain;
    }
    .ygh-site-header__actions {
        flex: 0 0 auto !important;
        margin-left: auto !important;
        margin-right: 0 !important;
    }
    .ygh-menu-toggle { flex: 0 0 auto !important; }
    .ygh-menu-toggle__text { font-size: 10.5px !important; }
}

/* 2026-11-12 補正2：ロゴ画像の高さを固定し、MENUボタンが必ず画面内に収まるようにする */
@media screen and (max-width: 899px) {
    .ygh-site-header__brand img {
        height: 40px !important;
        width: auto !important;
        max-width: 100% !important;
        max-height: 40px !important;
        object-fit: contain !important;
    }
    .ygh-site-header__brand { flex: 0 1 auto !important; }
    .ygh-site-header__actions { flex: 0 0 auto !important; margin-left: auto !important; }
}

/* ==========================================================
 * 2026-11-12 補正4：ヒーロー見出しが固定ヘッダーの裏に隠れる問題
 * 320〜768px でヘッダー高さ＋余白の下から本文を開始する
 * ========================================================== */
@media screen and (max-width: 768px) {
    .ygh-hero {
        min-height: calc(var(--ygh-header-height, 90px) + 300px) !important;
        height: auto !important;
    }
    .ygh-hero__content {
        top: calc(var(--ygh-header-height, 90px) + 14px) !important;
        bottom: auto !important;
        left: 16px !important;
        right: 16px !important;
        transform: none !important;
        padding-top: 0 !important;
        max-width: none !important;
    }
    .ygh-hero__copy { font-size: clamp(1.02rem, 5.4vw, 1.3rem) !important; line-height: 1.35 !important; }
    .ygh-hero__sub  { font-size: 0.78rem !important; line-height: 1.6 !important; margin-top: 8px !important; }
    .ygh-hero__btn  { margin-top: 12px !important; padding: 11px 18px !important; font-size: 0.82rem !important; }
}

/* ===== 2026-11-12 コンテンツ幅統一：トップの本文領域を下層ページと同じ1200pxに揃える ===== */
.ygh-section { width: min(1200px, calc(100% - var(--ygh-page-gutter) * 2)) !important; }
/* Bootstrap の row が負マージンで広がる分も打ち消す */
.ygh-section > .row, .ygh-section .row { margin-left: 0; margin-right: 0; }
.ygh-section > .row > [class*="col-"], .ygh-section .row > [class*="col-"] { padding-left: 10px; padding-right: 10px; }

/* ==========================================================================
 * 2026-11-12 コンテンツ幅の統一（トップページ）
 * 下層ページと同じ「最大1200px／左右32px（スマホ24px）」に揃える。
 * ========================================================================== */
.ygh-section { width: min(1200px, calc(100% - 32px)) !important; }
@media screen and (max-width: 767px) {
    .ygh-section { width: calc(100% - 24px) !important; }
}
