/* =========================================================
   ARBOL LLC. Home — style.css
   §2 Design Tokens / §5 Components / §6 Sections / §4 Responsive
   モバイルファースト：基本＝スマホ → @media でタブレット/PC を上書き
   ========================================================= */

/* ---------- Design Tokens (§2) ---------- */
:root {
  /* Brand colors */
  --navy-900: #16294D;
  --navy-700: #2D4979;
  --gold:     #D7AF3E;
  --gold-deep:#C9A227;
  --red:      #E24A35;
  --cream:    #FFF4EC;
  --beige:    #F8F1DE;
  --ink:      #333333;
  --ink-sub:  #6B6B6B;
  --white:    #FFFFFF;

  /* Typography */
  --font-base: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --font-en:   "Montserrat", "Poppins", sans-serif;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  /* Spacing */
  --gap: 24px;
  --section-py: 56px;      /* モバイル基準（PCは@mediaで96pxに） */

  /* Shadow */
  --shadow-card: 0 10px 30px rgba(22, 41, 77, .08);

  /* Layout */
  --container: 1120px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-base);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.8;
  background: var(--white);
  overflow-wrap: break-word;
}
h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; cursor: pointer; }

/* ---------- Layout helper ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(16px, 5vw, 40px);
}

/* ---------- Utility color ---------- */
.c-navy { color: var(--navy-900); }
.c-gold { color: var(--gold); }
.c-white { color: var(--white); }
.c-white-sub { color: rgba(255, 255, 255, .82); }

/* =========================================================
   §5 共通コンポーネント
   ========================================================= */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4em;
  border-radius: var(--radius-pill);
  padding: 14px 28px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  border: 2px solid transparent;
  transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease, color .18s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(22, 41, 77, .18); }
.btn:active { transform: translateY(0); }

.btn--red   { background: var(--red);       color: var(--white); border-color: var(--red); }
.btn--red:hover   { background: #c93d29; border-color: #c93d29; }
.btn--gold  { background: var(--gold-deep);  color: var(--navy-900); border-color: var(--gold-deep); }
.btn--gold:hover  { background: #b58f1f; border-color: #b58f1f; }
.btn--outline { background: transparent; color: var(--navy-900); border-color: var(--navy-900); }
.btn--outline:hover { background: var(--navy-900); color: var(--white); }
.btn--white { background: var(--white); color: var(--navy-900); border-color: var(--white); }
.btn--white:hover { background: #eef1f7; border-color: #eef1f7; }

.btn-group { display: flex; flex-wrap: wrap; gap: 14px; }
.btn-group--center { justify-content: center; }

/* Card */
.card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 28px;
}
.card--topgold { border-top: 4px solid var(--gold); }

/* Eyebrow (英字ラベル) */
.eyebrow {
  display: inline-block;
  font-family: var(--font-en);
  font-weight: 700;
  color: var(--gold);
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

/* Chip */
.chip {
  display: inline-flex;
  align-items: center;
  gap: .35em;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: .9rem;
  font-weight: 700;
  background: var(--white);
  border: 1px solid rgba(22, 41, 77, .14);
  color: var(--ink);
}
.chip--onnavy {
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .28);
  color: var(--white);
}
.chip-list { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 28px; }

/* Section head (eyebrow + title + lead) */
.section-head { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.section-title {
  font-weight: 900;
  color: var(--navy-900);
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  line-height: 1.35;
  margin-bottom: 14px;
}
.section-lead { color: var(--ink-sub); font-size: 1rem; }
.section-head .eyebrow { margin-bottom: 8px; }

/* Grid */
.grid { display: grid; gap: var(--gap); }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr; }

/* Badge (hero small pill) */
.badge {
  display: inline-block;
  background: var(--navy-900);
  color: var(--white);
  font-family: var(--font-en);
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 18px;
}

/* Focus visibility (§9) */
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}

/* =========================================================
   S0. ヘッダー
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream);
  border-bottom: 1px solid rgba(22, 41, 77, .10);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__logo { display: inline-flex; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name {
  font-weight: 900;
  color: var(--navy-900);
  font-size: 1.15rem;
  letter-spacing: .02em;
}
.brand__sub {
  font-family: var(--font-en);
  font-size: .58rem;
  letter-spacing: .16em;
  color: var(--ink-sub);
  text-transform: uppercase;
}

/* Hamburger */
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 0;
}
.nav-toggle__bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--navy-900);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Nav (mobile: slide-down panel) */
.primary-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--cream);
  border-bottom: 1px solid rgba(22, 41, 77, .10);
  box-shadow: var(--shadow-card);
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}
.primary-nav.is-open { max-height: 380px; }
.primary-nav__list { display: flex; flex-direction: column; padding: 8px 0; }
.primary-nav__link {
  display: block;
  padding: 13px clamp(16px, 5vw, 40px);
  font-weight: 700;
  color: var(--navy-900);
}
.primary-nav__link:hover { background: rgba(22, 41, 77, .05); }
.primary-nav__link.is-current { background: rgba(22, 41, 77, .07); border-radius: 6px; }

/* =========================================================
   S1. ヒーロー（淡：cream→beige グラデ）
   ========================================================= */
.hero {
  background: linear-gradient(160deg, var(--cream) 0%, var(--beige) 100%);
  padding-block: var(--section-py);
}
.hero__inner { display: grid; gap: 36px; align-items: center; }
.hero__title {
  font-weight: 900;
  font-size: clamp(2rem, 9vw, 3.4rem);
  line-height: 1.25;
  margin-bottom: 22px;
}
.hero__lead { color: var(--ink); margin-bottom: 28px; }

.hero__photo {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 30% 25%, rgba(215,175,62,.35), transparent 45%),
    radial-gradient(circle at 78% 70%, rgba(226,74,53,.30), transparent 45%),
    linear-gradient(135deg, var(--navy-700), var(--navy-900));
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.hero__try {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy-900);
  font-family: var(--font-en);
  font-weight: 700;
  letter-spacing: .06em;
  transform: rotate(-8deg);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .2);
}
.hero__overlay {
  position: absolute;
  left: 16px;
  bottom: 16px;
  right: 16px;
  background: rgba(22, 41, 77, .82);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  backdrop-filter: blur(2px);
}
.hero__overlay-title { font-weight: 700; margin-bottom: 4px; }
.hero__overlay-sub { font-size: .86rem; color: rgba(255, 255, 255, .82); line-height: 1.6; }

/* =========================================================
   S2. フェスタ告知（濃：navy-900）
   ========================================================= */
.festa {
  background: var(--navy-900);
  color: var(--white);
  padding-block: var(--section-py);
}
.festa__inner { display: grid; gap: 36px; align-items: center; }
.festa__photo {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 70% 30%, rgba(215,175,62,.45), transparent 50%),
    linear-gradient(135deg, #24406f, #101f3c);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .35);
}
.festa__title {
  font-weight: 900;
  font-size: clamp(1.7rem, 6vw, 2.6rem);
  line-height: 1.35;
  margin-bottom: 18px;
}
.festa__desc { color: rgba(255, 255, 255, .86); }

/* =========================================================
   S3. 学びのプロセス（淡：beige）
   ========================================================= */
.process { background: var(--beige); padding-block: var(--section-py); }
.card__step {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 8px;
}
.card__num {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 1.7rem;
  color: var(--gold-deep);
  line-height: 1;
}
.card__en {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: .74rem;
  letter-spacing: .14em;
  color: var(--ink-sub);
  text-transform: uppercase;
}
.card__title { font-weight: 900; color: var(--navy-900); font-size: 1.2rem; margin-bottom: 10px; }
.card__body { color: var(--ink-sub); font-size: .95rem; }

/* =========================================================
   S4. 8つの力（白背景＋濃紺カード）
   ========================================================= */
.skills { background: var(--white); padding-block: var(--section-py); }
.skill-card {
  background: var(--navy-900);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: transform .2s ease, box-shadow .2s ease;
}
.skill-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(22, 41, 77, .22); }
.skill-card__icon { font-size: 2.6rem; line-height: 1; display: block; margin-bottom: 14px; }
.skill-card__label { font-weight: 700; font-size: 1rem; }

/* =========================================================
   S5. 3つのコース（淡：cream）
   ========================================================= */
.courses { background: var(--cream); padding-block: var(--section-py); }
.course-card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 30px 26px;
  border-top: 5px solid var(--navy-700);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.course-card--red  { border-top-color: var(--red); }
.course-card--navy { border-top-color: var(--navy-700); }
.course-card--gold { border-top-color: var(--gold); }
.course-card__icon {
  width: 60px; height: 60px;
  display: grid; place-items: center;
  border-radius: var(--radius-md);
  background: var(--beige);
  font-size: 1.8rem;
  margin-bottom: 12px;
}
.course-card .eyebrow { margin-bottom: 6px; }
.course-card__title { font-weight: 900; color: var(--navy-900); font-size: 1.3rem; margin-bottom: 10px; }
.course-card__body { color: var(--ink-sub); font-size: .95rem; margin-bottom: 18px; flex-grow: 1; }
.tag {
  align-self: flex-start;
  display: inline-block;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(22, 41, 77, .07);
  color: var(--navy-900);
  font-weight: 700;
  font-size: .82rem;
}

.course-banner {
  margin-top: 36px;
  background: var(--navy-900);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  text-align: center;
}
.course-banner__title { font-weight: 900; font-size: clamp(1.2rem, 4vw, 1.6rem); margin-bottom: 8px; }
.course-banner__sub { color: rgba(255, 255, 255, .84); font-size: .98rem; }

/* =========================================================
   S6. 学びを実際の社会へ（濃：navy-700）
   ========================================================= */
.practice { background: var(--navy-700); padding-block: var(--section-py); }
.step-card {
  background: rgba(255, 255, 255, .10);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  color: var(--white);
  text-align: center;
}
.step-card__step {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .12em;
  color: var(--gold);
  margin-bottom: 10px;
}
.step-card__title { font-weight: 900; font-size: 1.25rem; margin-bottom: 8px; }
.step-card__body { color: rgba(255, 255, 255, .82); font-size: .9rem; }
.practice__cta { text-align: center; margin-top: 36px; }

/* =========================================================
   S7. 最終CTA（濃：濃紺グラデ）
   ========================================================= */
.final-cta {
  background: linear-gradient(150deg, var(--navy-700) 0%, var(--navy-900) 100%);
  padding-block: calc(var(--section-py) + 8px);
  text-align: center;
}
.final-cta__title {
  font-weight: 900;
  color: var(--white);
  font-size: clamp(1.7rem, 6vw, 2.7rem);
  line-height: 1.35;
  margin-bottom: 18px;
}
.final-cta__lead { color: rgba(255, 255, 255, .84); margin-bottom: 30px; }

/* =========================================================
   S8. フッター（淡：cream）
   ========================================================= */
.site-footer { background: var(--cream); border-top: 1px solid rgba(22, 41, 77, .10); }
.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 28px;
}
.site-footer__copy { color: var(--ink-sub); font-size: .85rem; }
.site-footer__deco {
  width: 48px; height: 28px;
  border-radius: 6px;
  background: var(--navy-900);
  flex-shrink: 0;
}

/* =========================================================
   §4 レスポンシブ
   ========================================================= */

/* タブレット 768px 以上 */
@media (min-width: 768px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }  /* 8つの力=2列, STEP=2列 */
  .festa__inner { grid-template-columns: 1fr 1fr; }
  .hero__inner  { grid-template-columns: 1fr 1fr; }
}

/* PC 1024px 以上 */
@media (min-width: 1024px) {
  :root { --section-py: 96px; }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }  /* 8つの力=4列, STEP=4列 */

  /* ナビをPC横並びに、ハンバーガーを隠す */
  .nav-toggle { display: none; }
  .primary-nav {
    position: static;
    max-height: none;
    overflow: visible;
    background: transparent;
    border: 0;
    box-shadow: none;
  }
  .primary-nav__list { flex-direction: row; align-items: center; gap: 4px; padding: 0; }
  .primary-nav__link { padding: 8px 12px; font-size: .92rem; border-radius: 6px; }

  .section-head { margin-bottom: 52px; }
}

/* 大画面でヒーローを少し詰める調整 */
@media (min-width: 1024px) {
  .hero__inner { gap: 56px; }
  .festa__inner { gap: 56px; }
}

/* 動きを減らす設定への配慮 */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
