@charset "UTF-8";

/* ============================================================
   TSUNABeeeeee! eスポーツアカデミー — Header Styles
   参照デザイン: chuodai-kindergarten.jp
   ============================================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --side-sync-width: clamp(180px, 16vw, 240px);
}

body {
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
  background: #f5f5f5;
}

/* ============================================================
   HEADER BASE
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: #ffffff;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.10);
}

/* header-inner: ロゴ・ナビ・CTAを横並びにする親コンテナ
   CTAは header-inner 右端に align-self: stretch で天地フルに */
html {
  scroll-padding-top: 56px;
}

.header-inner {
  display: flex;
  align-items: stretch;       /* 子要素を天地いっぱいに伸ばす */
  justify-content: space-between;
  max-width: 100%;            /* 全幅 */
  height: 146px;
  gap: 0;
  padding-left: 32px;         /* 左側だけ余白（CTAは端まで伸ばすため右パディングなし） */
}

/* ============================================================
   LOGO エリア
   ============================================================ */
.header-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding-right: 24px;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  text-decoration: none;
  line-height: 1;
}

.logo-image {
  display: block;
  width: auto;
  height: 45px;
  max-width: 300px;
  object-fit: contain;
}

/* ============================================================
   PC NAVIGATION
   ============================================================ */
.header-nav {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;  /* 右揃え */
  min-width: 0;
  padding-right: 12px;
}


.nav-list {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 0;
  min-width: 0;
}


.nav-item {
  position: relative;
}

.nav-link {
  display: block;
  padding: 6px 11px;
  font-size: 14px;
  font-weight: 500;
  color: #2c3e6b;
  text-decoration: none;
  white-space: nowrap;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}

.nav-link:hover {
  color: #155BD9;
  background: rgba(21, 91, 217, 0.06);
}

.nav-link::after {
  content: '';
  display: block;
  height: 2px;
  background: #155BD9;
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform 0.2s;
  margin-top: 2px;
}

.nav-link:hover::after {
  transform: scaleX(1);
}

/* ============================================================
   CTA BUTTON — 右端に上下隙間なくフラッシュ配置
   参照: chuodai-kindergarten.jp「お問い合わせ」ボタン
   ============================================================ */
.cta-btn {
  /* header-inner の高さいっぱいに伸ばす */
  align-self: stretch;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;

  /* スライダー右側白パネルと幅を同期 */
  width: var(--side-sync-width);
  min-width: var(--side-sync-width);
  max-width: var(--side-sync-width);
  padding: 0 14px;
  box-sizing: border-box;

  /* 見た目 */
  background: #155BD9;
  color: #ffffff;
  text-decoration: none;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  text-align: center;

  /* 角丸なし（端まで完全にフラッシュ） */
  border-radius: 0;

  /* hover */
  transition: background 0.2s;

  /* flexスペーサーとして最後尾へ */
  flex-shrink: 0;
}

.cta-btn:hover {
  background: #0f4ab8;
}

.cta-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.95;
}

.cta-icon svg {
  width: 24px;
  height: 24px;
}

.cta-text {
  display: block;
  text-align: center;
  white-space: nowrap;
}

/* ============================================================
   HAMBURGER BUTTON — PC時は阤0
   ============================================================ */
.hamburger {
  /* PCでは小さくたんで隐す */
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 48px;
  height: 48px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 4px;
  flex-shrink: 0;
  transition: background 0.2s;
  align-self: center;
  /* CTAの代わりに右端に寄せるため margin-right */
  margin-right: 14px;
}

.hamburger:hover {
  background: rgba(21, 91, 217, 0.08);
}

.hamburger-line {
  display: block;
  width: 26px;
  height: 2.5px;
  background: #1a2b5e;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

/* ハンバーガー → × 変形 */
.hamburger.is-open .hamburger-line:nth-child(1) {
  transform: translateY(8.5px) rotate(45deg);
}
.hamburger.is-open .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger.is-open .hamburger-line:nth-child(3) {
  transform: translateY(-8.5px) rotate(-45deg);
}

/* ============================================================
   MOBILE NAV DRAWER
   PC時は完全に非表示、スマホ/タブレット時にハンバーガーボタンで開閉
   ============================================================ */
.mobile-nav {
  /* PC宽域では完全に阤0 */
  display: none;
  overflow: hidden;
  max-height: 0;
  background: #ffffff;
  border-top: 2px solid #e8eaf0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: max-height 0.38s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav.is-open {
  max-height: 540px;
}

.mobile-nav-list {
  list-style: none;
  padding: 6px 0 20px;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 28px;
  font-size: 15px;
  font-weight: 500;
  color: #2c3e6b;
  text-decoration: none;
  border-bottom: 1px solid #f0f2f8;
  transition: background 0.15s, color 0.15s;
}

.mobile-nav-link::after {
  content: '›';
  font-size: 18px;
  color: #155BD9;
  opacity: 0.7;
}

.mobile-nav-link:hover {
  background: #f5f7ff;
  color: #155BD9;
}

.mobile-cta-item {
  padding: 18px 24px 10px;
}

.mobile-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 20px;
  background: #155BD9;
  color: #ffffff;
  text-decoration: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  transition: background 0.2s;
  box-shadow: 0 2px 8px rgba(21,91,217,0.25);
}

.mobile-cta-btn:hover {
  background: #0f4ab8;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* タブレット (~ 1024px) */
@media (max-width: 1024px) {
  .header-inner {
    padding-left: 24px;
  }
  .nav-link {
    padding: 6px 10px;
    font-size: 14.5px;
  }
}

@media (max-width: 1360px) {
  .header-inner {
    padding-left: 24px;
  }

  .nav-link {
    padding: 6px 8px;
    font-size: 12.5px;
  }

  .nav-item + .nav-item {
    margin-left: 6px;
    padding-left: 12px;
  }

  .nav-item + .nav-item::before {
    height: 16px;
  }

  .cta-btn {
    width: clamp(170px, 14vw, 210px);
    min-width: clamp(170px, 14vw, 210px);
    max-width: clamp(170px, 14vw, 210px);
    padding: 0 10px;
    font-size: 14px;
  }

  .cta-arrow {
    width: 24px;
    height: 24px;
  }
}

/* タブレット・スマホ (~ 900px)
   ロゴ + ハンバーガーのみ表示、ナビ・CTAは阤0 */
@media (max-width: 1100px) {
  html {
    scroll-padding-top: 22px;
  }

  .header-inner {
    padding-left: 20px;
    height: 114px;
    /* ロゴを左、ハンバーガーを右に寄せる */
    justify-content: space-between;
  }

  /* PCナビ・デスクトップCTA 非表示 */
  .header-nav {
    display: none;
  }
  .cta-btn {
    display: none;
  }

  /* ハンバーガーボタン 表示 */
  .hamburger {
    display: flex;
    margin-right: 10px;
  }

  /* ドロワーはブロック要素として関知させる */
  .mobile-nav {
    display: block;
  }
}

/* スマホ (~ 480px) */
@media (max-width: 480px) {
  .header-inner {
    padding-left: 16px;
    height: 60px;
  }

  .logo-image {
    height: 40px;
    max-width: 220px;
  }

  .hamburger {
    width: 42px;
    height: 42px;
    margin-right: 8px;
  }

  .hamburger-line {
    width: 22px;
  }

  .mobile-nav-link {
    padding: 14px 20px;
    font-size: 14px;
  }

  .mobile-cta-btn {
    font-size: 14px;
    padding: 13px 16px;
  }
}

/* ============================================================
   MAIN SPACER (fixed header 分のオフセット)
   ============================================================ */
main {
  margin-top: 146px;
}

@media (max-width: 1100px) {
  main {
    margin-top: 114px;
  }
}

@media (max-width: 768px) {
  main {
    margin-top: 99px;
  }
}

@media (max-width: 480px) {
  main {
    margin-top: 88px;
  }
}

/* ============================================================
   Header tweak — CTA arrow and nav separators
   ============================================================ */
.nav-item + .nav-item {
  margin-left: 10px;
  padding-left: 18px;
}

.nav-item + .nav-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 20px;
  background: rgba(21, 51, 111, 0.18);
}

.cta-btn {
  flex-direction: row;
  gap: 14px;
  padding: 0 20px;
}

.cta-text {
	 font-size: 16px;
  line-height: 1.35;
}

.cta-arrow {
  flex-shrink: 0;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #ffffff;
  color: #155BD9;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(12, 28, 84, 0.16);
}

.cta-arrow svg {
  width: 13px;
  height: 13px;
}

@media (max-width: 1024px) {
  .nav-item + .nav-item {
    margin-left: 8px;
    padding-left: 14px;
  }

  .nav-item + .nav-item::before {
    height: 18px;
  }

  .cta-btn {
    gap: 10px;
    padding: 0 14px;
  }

  .cta-arrow {
    width: 24px;
    height: 24px;
  }
}

/* ============================================================
   Mobile optimization — header
   ============================================================ */
@media (max-width: 768px) {
  html {
    scroll-padding-top: 8px;
  }

  .site-header {
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.08);
  }

  .header-inner {
    padding-left: 14px;
    padding-right: 6px;
    height: 99px;
  }

  .header-logo {
    padding-right: 12px;
  }

  .logo-image {
    height: 36px;
    max-width: 188px;
  }

  .hamburger {
    width: 40px;
    height: 40px;
    margin-right: 0;
  }

  .mobile-nav-list {
    padding: 4px 0 16px;
  }

  .mobile-nav-link {
    padding: 14px 18px;
    font-size: 14px;
    line-height: 1.45;
  }

  .mobile-cta-item {
    padding: 14px 16px 8px;
  }

  .mobile-cta-btn {
    min-height: 48px;
    font-size: 14px;
    padding: 12px 14px;
  }
}

@media (max-width: 480px) {
  html {
    scroll-padding-top: 0px;
  }

  .header-inner {
    height: 88px;
    padding-left: 12px;
    padding-right: 4px;
  }

  .logo-image {
    height: 32px;
    max-width: 170px;
  }

  .hamburger {
    width: 38px;
    height: 38px;
  }

  .mobile-nav-link {
    padding: 13px 16px;
    font-size: 13.5px;
  }
}


/* v31 final header breakpoint tuning */
.header-logo,
.header-nav,
.cta-btn {
  min-width: 0;
}

.nav-list {
  flex-wrap: nowrap;
}

.cta-text {
  overflow-wrap: anywhere;
}

@media (max-width: 1366px) {
  .header-inner {
    gap: 0;
    padding-left: 20px;
  }

  .header-nav {
    padding-right: 8px;
  }

  .nav-link {
    padding: 6px 8px;
    font-size: 12.5px;
  }

  .nav-item + .nav-item {
    margin-left: 6px;
    padding-left: 12px;
  }

  .nav-item + .nav-item::before {
    height: 16px;
  }

  .cta-btn {
    width: clamp(160px, 12.5vw, 190px);
    min-width: clamp(160px, 12.5vw, 190px);
    max-width: clamp(160px, 12.5vw, 190px);
    gap: 8px;
    padding: 0 10px;
    font-size: 14px;
  }

  .cta-arrow {
    width: 24px;
    height: 24px;
  }
}

@media (max-width: 1280px) {
  .header-inner {
    padding-left: 16px;
  }

  .nav-link {
    padding: 6px 7px;
    font-size: 11.5px;
  }

  .nav-item + .nav-item {
    margin-left: 5px;
    padding-left: 10px;
  }

  .cta-btn {
    width: 150px;
    min-width: 150px;
    max-width: 150px;
    gap: 6px;
    padding: 0 8px;
    font-size: 13px;
  }

  .cta-arrow {
    width: 22px;
    height: 22px;
  }
}


/* v32 arrow stability and 110 percent menu scale */
.cta-btn {
  align-items: center;
}

.cta-text {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.cta-arrow {
  flex: 0 0 26px;
  width: 26px;
  min-width: 26px;
  height: 26px;
  min-height: 26px;
  line-height: 1;
}

.cta-arrow svg {
  display: block;
}

.nav-link {
  font-size: 15.4px;
}

@media (max-width: 1366px) {
  .cta-arrow {
    flex-basis: 24px;
    width: 24px;
    min-width: 24px;
    height: 24px;
    min-height: 24px;
  }
}

@media (max-width: 1280px) {
  .cta-arrow {
    flex-basis: 22px;
    width: 22px;
    min-width: 22px;
    height: 22px;
    min-height: 22px;
  }
}
