
/* =====================================================
   マナビTREE Design System — Sky & Sparkle Edition
   Current site (manabitree.jp) inspired design
   ===================================================== */
:root {
  /* Brand Green — DIC172 */
  --tree: #009B4E;
  --tree-d: #007A3D;
  --tree-l: #2DB866;
  --tree-pale: #B0E4C7;
  --tree-bg: #E6F7ED;

  /* Light Green — DIC172 30% */
  --leaf: #C2E8B4;
  --leaf-bg: #EDF7E9;

  /* Brand Brown — DIC2275 */
  --brown: #4A3728;
  --brown-l: #6B5A4A;

  /* Sky */
  --sky: #87CEEB;
  --sky-l: #C8E9F5;
  --sky-bg: #EEF8FC;
  --sky-top: #B8DFF6;
  --sky-mid: #D4EEFC;
  --sky-bot: #E8F4FC;

  /* Sunshine */
  --sun: #FFD86E;
  --sun-pale: #FFF5D0;

  /* CTA — Yellow-green matching current site */
  --cta: #7CBB2D;
  --cta-hover: #6AA324;
  --cta-shadow: rgba(124,187,45,0.35);

  /* LINE */
  --line: #06C755;
  --line-hover: #05B04A;

  /* Neutral — warm-toned */
  --n900: #3A2E23;
  --n700: #5C4E42;
  --n500: #8A7D72;
  --n300: #C4BAB0;
  --n100: #E8E2DC;
  --n50: #F6F3F0;
  --white: #FFFFFF;

  /* Typography */
  --fd: 'Noto Serif JP', serif;
  --fb: 'Noto Sans JP', sans-serif;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(74,55,40,0.06);
  --shadow-md: 0 4px 20px rgba(74,55,40,0.08);
  --shadow-lg: 0 8px 40px rgba(74,55,40,0.12);
  --shadow-card: 0 8px 32px rgba(135,206,235,0.15), 0 2px 8px rgba(74,55,40,0.05);
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  font-size: 16px;
  scroll-behavior: smooth;
  background: #DFF0D8;            /* 375px外の余白 — 薄い緑 */
}
body {
  font-family: var(--fb);
  color: var(--n900);
  -webkit-font-smoothing: antialiased;
  line-height: 1.8;
  overflow-x: hidden;
  max-width: 430px;
  margin: 0 auto;
  background: linear-gradient(180deg,
    /* — 1周目 — */
    #bbdef6 0%,
    #d0e8f4 3%,
    #e6f2ec 5%,
    #fcffe3 7%,        /* ヒーロー下半分あたり */
    #fcffe3 10%,
    #f9f5d2 14%,
    #f9f1c1 20%,
    #f2f6c8 28%,
    #eaf9d0 36%,
    #f3ffd5 44%,
    /* — つなぎ → 2周目 — */
    #e0f4e4 47%,
    #c8e6ee 50%,
    #bbdef6 53%,
    #d0e8f4 56%,
    #e6f2ec 58%,
    #fcffe3 60%,
    #fcffe3 63%,
    #f9f5d2 67%,
    #f9f1c1 73%,
    #f2f6c8 80%,
    #eaf9d0 90%,
    #f3ffd5 100%
  );
  box-shadow: 0 0 30px rgba(0,0,0,0.08);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* --- Sky Background --- */
.sky-bg {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg,
    var(--sky-top) 0%,
    var(--sky-mid) 35%,
    var(--sky-bot) 65%,
    #F0F8FF 100%
  );
  z-index: -2;
}

/* --- Cloud Layer --- */
.cloud-layer {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.cloud {
  position: absolute;
  background: radial-gradient(ellipse, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0) 70%);
  border-radius: 50%;
  animation: cloud-drift linear infinite;
}
.cloud:nth-child(1) { width: 300px; height: 100px; top: 8%; left: -10%; animation-duration: 60s; opacity: 0.5; }
.cloud:nth-child(2) { width: 400px; height: 130px; top: 22%; left: -15%; animation-duration: 80s; animation-delay: -20s; opacity: 0.4; }
.cloud:nth-child(3) { width: 250px; height: 80px; top: 40%; left: -8%; animation-duration: 70s; animation-delay: -35s; opacity: 0.35; }
.cloud:nth-child(4) { width: 350px; height: 110px; top: 55%; left: -12%; animation-duration: 90s; animation-delay: -50s; opacity: 0.3; }
.cloud:nth-child(5) { width: 280px; height: 90px; top: 75%; left: -10%; animation-duration: 65s; animation-delay: -10s; opacity: 0.25; }

@keyframes cloud-drift {
  from { transform: translateX(0); }
  to { transform: translateX(calc(100vw + 400px)); }
}

/* --- Sparkle Particles --- */
.sparkle-layer {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.sparkle {
  position: absolute;
  width: 4px; height: 4px;
  background: var(--white);
  border-radius: 50%;
  opacity: 0;
  animation: sparkle-float linear infinite;
}
@keyframes sparkle-float {
  0%   { opacity: 0; transform: translateY(0) scale(0.5); }
  15%  { opacity: 0.8; }
  50%  { opacity: 0.4; transform: translateY(-40vh) scale(1); }
  85%  { opacity: 0.7; }
  100% { opacity: 0; transform: translateY(-80vh) scale(0.3); }
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- White Card --- */
.content-card {
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 2px 12px rgba(74,55,40,0.06);
  padding: 32px 24px;
}

/* --- Section Titles --- */
.sec-eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--tree); margin-bottom: 6px;
}
.sec-title {
  font-size: 24px; font-weight: 900; color: var(--brown);
  font-family: var(--fd); line-height: 1.35; margin-bottom: 8px;
}
.sec-title em { color: var(--tree); font-style: normal; }
.sec-sub {
  font-size: 16px; color: var(--n500); line-height: 1.7; margin-bottom: 24px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-family: var(--fb); font-weight: 700; border-radius: 999px;
  border: none; cursor: pointer; transition: all 0.25s ease;
  text-decoration: none; line-height: 1;
}
.btn-cta {
  background: linear-gradient(135deg, var(--cta), #8BC34A);
  color: var(--white); font-size: 16px; padding: 14px 28px;
  box-shadow: 0 4px 16px var(--cta-shadow);
}
.btn-cta:hover { transform: translateY(-2px); box-shadow: 0 6px 24px var(--cta-shadow); }
.btn-line {
  background: var(--line); color: var(--white); font-size: 16px; padding: 16px 32px;
  box-shadow: 0 4px 16px rgba(6,199,85,0.30);
}
.btn-line:hover { background: var(--line-hover); transform: translateY(-2px); }
.btn-outline {
  background: transparent; color: var(--tree); font-size: 16px; padding: 12px 24px;
  border: 2px solid var(--tree-pale);
}
.btn-outline:hover { background: var(--tree-bg); border-color: var(--tree-l); }
.btn-green {
  background: linear-gradient(135deg, var(--tree), var(--tree-l));
  color: var(--white); font-size: 16px; padding: 10px 20px;
}
.btn-green:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }

/* ===== NAVIGATION ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,155,78,0.12);
  box-shadow: 0 2px 16px rgba(0,155,78,0.06);
  transition: box-shadow 0.3s ease;
}
.site-header.is-scrolled {
  box-shadow: 0 4px 24px rgba(0,155,78,0.10);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 10px 20px;
  display: flex; align-items: center; justify-content: space-between;
}

/* Logo */
.nav-logo { display: flex; align-items: center; flex-shrink: 0; }
.nav-logo-img { height: 28px; width: auto; display: block; }

/* Right side */
.nav-right { display: flex; gap: 10px; align-items: center; }
.nav-line-btn { font-size: 16px; padding: 9px 18px; white-space: nowrap; }

/* Desktop nav */
.nav-desktop { display: none; gap: 4px; align-items: center; }
.nav-desktop > a,
.nav-dropdown-trigger {
  font-size: 16px; font-weight: 600; color: var(--n700);
  padding: 8px 12px; border-radius: 8px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.nav-desktop > a:hover,
.nav-dropdown-trigger:hover {
  color: var(--tree); background: var(--tree-bg);
}

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-trigger { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.nav-arrow { font-size: 12px; transition: transform 0.2s; }
.nav-dropdown-menu {
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(74,55,40,0.12), 0 0 0 1px rgba(0,155,78,0.08);
  padding: 8px 0;
  min-width: 170px;
  opacity: 0; visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  transform: translateX(-50%) translateY(4px);
}
.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1; visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown:hover .nav-arrow { transform: rotate(180deg); }
.nav-dropdown-menu a {
  display: block; padding: 10px 20px;
  font-size: 16px; font-weight: 600; color: var(--n700);
  transition: background 0.15s, color 0.15s;
}
.nav-dropdown-menu a:hover {
  background: var(--tree-bg); color: var(--tree);
}

/* Hamburger */
.nav-toggle {
  display: flex; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px;
  border-radius: 8px; transition: background 0.2s;
}
.nav-toggle:hover { background: var(--n50); }
.nav-toggle span {
  width: 20px; height: 2px; background: var(--brown);
  border-radius: 2px; transition: all 0.3s ease;
  display: block;
}
.nav-toggle.is-open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
/* Mobile menu */
.nav-mobile {
  display: none; flex-direction: column; gap: 0;
  background: var(--white);
  border-top: 1px solid var(--n100);
  padding: 8px 20px 20px;
  max-height: 0; overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}
.nav-mobile.is-open {
  display: flex;
  max-height: 500px;
  padding: 12px 20px 20px;
}
.nav-mobile a {
  padding: 13px 0; font-size: 16px; font-weight: 600; color: var(--n700);
  border-bottom: 1px solid var(--n100);
  transition: color 0.2s;
}
.nav-mobile a:hover { color: var(--tree); }
.nav-mobile a:last-of-type { border-bottom: none; }
.nav-mobile a.btn-line { color: #FFFFFF; border-bottom: none; }

/* ===== HERO (Mobile First — current site layout) ===== */
.hero {
  padding: 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: transparent;
}

/* ふわふわ装飾ドット — 画像の下レイヤー */
.hero-deco {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}
.hero-deco.d1  { width: 10px; height: 10px; background: var(--tree-pale); top: 6%; left: 8%;   animation: hf1 4.2s ease-in-out infinite; }
.hero-deco.d2  { width: 6px;  height: 6px;  background: var(--sun);       top: 4%; right: 12%; animation: hf2 3.6s ease-in-out 0.4s infinite; }
.hero-deco.d3  { width: 13px; height: 13px; background: var(--sky-l);     top: 42%; left: 5%;  animation: hf3 5.4s ease-in-out 1.2s infinite; }
.hero-deco.d4  { width: 5px;  height: 5px;  background: var(--tree-l);    top: 30%; right: 7%; animation: hf1 3.9s ease-in-out 0.7s infinite; }
.hero-deco.d5  { width: 8px;  height: 8px;  background: var(--sun-pale);  top: 18%; left: 22%; animation: hf2 4.8s ease-in-out 1.8s infinite; }
.hero-deco.d6  { width: 9px;  height: 9px;  background: var(--tree-pale); top: 52%; right: 10%; animation: hf3 4.1s ease-in-out 0.2s infinite; }
.hero-deco.d7  { width: 7px;  height: 7px;  background: var(--sky);       top: 12%; right: 25%; animation: hf1 5.1s ease-in-out 2.1s infinite; }
.hero-deco.d8  { width: 11px; height: 11px; background: var(--leaf);      top: 60%; left: 15%; animation: hf2 4.6s ease-in-out 0.9s infinite; }
.hero-deco.d9  { width: 4px;  height: 4px;  background: var(--sun);       top: 25%; left: 4%;  animation: hf3 3.3s ease-in-out 1.5s infinite; }
.hero-deco.d10 { width: 8px;  height: 8px;  background: var(--tree-pale); top: 68%; right: 18%; animation: hf1 5.7s ease-in-out 0.5s infinite; }
.hero-deco.d11 { width: 6px;  height: 6px;  background: var(--sky-l);     top: 38%; left: 28%; animation: hf2 4.3s ease-in-out 2.4s infinite; }
.hero-deco.d12 { width: 10px; height: 10px; background: var(--sun-pale);  top: 75%; left: 8%;  animation: hf3 5.0s ease-in-out 1.0s infinite; }

@keyframes hf1 {
  0%, 100% { transform: translate(0, 0); opacity: 0.4; }
  30% { transform: translate(4px, -12px); opacity: 0.8; }
  70% { transform: translate(-3px, -6px); opacity: 0.5; }
}
@keyframes hf2 {
  0%, 100% { transform: translate(0, 0); opacity: 0.5; }
  40% { transform: translate(-5px, -8px); opacity: 0.9; }
  80% { transform: translate(2px, -14px); opacity: 0.4; }
}
@keyframes hf3 {
  0%, 100% { transform: translate(0, 0); opacity: 0.35; }
  25% { transform: translate(6px, -10px); opacity: 0.7; }
  60% { transform: translate(-4px, -5px); opacity: 0.6; }
  85% { transform: translate(2px, -12px); opacity: 0.45; }
}

/* Banner wrap */
.hero-banner-wrap {
  position: relative;
  margin-top: 6px;
}
.hero-banner-img {
  width: 100%;
  display: block;
  position: relative;
  z-index: 1;
}
.hero-mv-container {
  position: relative;
  width: 100%;
}
.hero-mv-tree {
  width: 100%;
  display: block;
  position: relative;
  z-index: 1;
}
.hero-mv-girl {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 2;
  transition: opacity 1s ease;
}
.hero-mv-girl.is-hidden {
  opacity: 0;
}
.hero-mv-girl.is-visible {
  opacity: 1;
}

/* Tagline — "じぶんを育てるって楽しい！" */
.hero-tagline {
  font-size: 12px; font-weight: 700;
  color: var(--brown);
  font-family: var(--fb);
  padding: 16px 20px 4px;
  letter-spacing: 0.04em;
}

/* Large logo */
.hero-logo {
  padding: 0 50px;
  margin-bottom: 0;
}
.hero-logo img {
  width: 100%; max-width: 240px; height: auto;
  margin: 0 auto; display: block;
}

/* Visual area — woman + tree illustration composite */
.hero-visual {
  position: relative;
  width: 100%;
  min-height: 380px;
  overflow: hidden;
}
.hero-visual-woman {
  position: absolute;
  left: 0; bottom: 0;
  width: 55%; height: 100%;
  z-index: 2;
}
.hero-visual-woman img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: right top;
}
.hero-visual-tree {
  position: absolute;
  right: -5%; top: 0;
  width: 65%; height: 100%;
  z-index: 1;
}
.hero-visual-tree img {
  width: 100%; height: 100%;
  object-fit: contain;
  object-position: right top;
  /* mix-blend-mode: multiply; — enable for JPG backgrounds */
}

/* 画像下のキャッチ＋CTAエリア */
.hero-bottom-gradient {
  padding-top: 0;
}

/* Catch text overlay — 画像に重ねて配置 */
.hero-catch-area {
  position: relative;
  z-index: 3;
  padding: 0 16px 8px;
  margin-top: -90px;
}
.hero-catch-line {
  display: inline-block;
  font-size: 20px; font-weight: 900;
  font-family: var(--fb);
  line-height: 1.8;
  color: var(--brown);
}
.hero-catch-line .hero-accent {
  color: #E84D7A;
  font-style: normal;
}
/* Spacer between catch lines */
.hero-catch-spacer {
  display: block;
  height: 10px;
}
/* White rectangle background behind catch text */
.hero-catch-bg {
  display: inline;
  background: rgba(255,255,255,0.92);
  padding: 5px 12px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* CTA button — matching current site's green rounded button */
.hero-btns {
  padding: 20px 24px 32px;
  display: flex; justify-content: center;
}
.hero-main-cta {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; max-width: 320px;
  font-size: 16px; font-weight: 700; padding: 18px 24px;
  background: linear-gradient(135deg, #7CBB2D, #8BC34A);
  color: var(--white);
  border-radius: 999px; border: none;
  box-shadow: 0 4px 16px rgba(124,187,45,0.30);
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: all 0.25s;
}
.hero-main-cta::after {
  content: '>';
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  background: rgba(255,255,255,0.3);
  border-radius: 50%;
  font-size: 16px;
  flex-shrink: 0;
}
.hero-main-cta:hover {
  box-shadow: 0 6px 24px rgba(124,187,45,0.40);
  transform: translateY(-2px);
}

/* --- Tablet --- */
/* --- Desktop --- */
/* ===== ABOUT ===== */
.about-section {
  padding: 12px 16px;
}
.about-card {
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 2px 12px rgba(74,55,40,0.06);
  max-width: 1080px; margin: 0 auto;
  overflow: hidden;
}
.about-top {
  padding: 40px 24px; text-align: center;
}
/* Heading image — "マナビTREEとは？" */
.about-head-img {
  margin-bottom: 20px;
}
.about-head-img img {
  height: auto; width: 180px; margin: 0 auto; display: block;
}
/* Lead image — "じぶんを育てるって楽しい！" */
.about-lead-img {
  margin-bottom: 24px;
}
.about-lead-img img {
  height: auto; width: 260px; margin: 0 auto; display: block;
}
.about-divider {
  width: 40px; height: 3px;
  background: linear-gradient(90deg, var(--sky), var(--tree-l));
  margin: 0 auto 24px; border-radius: 2px;
}
.about-body {
  font-size: 16px; color: var(--n700); line-height: 2.2;
  text-align: center; margin-bottom: 24px;
}
.about-body p {
  margin-bottom: 20px;
}
.about-body p:last-child { margin-bottom: 0; }
.about-body em {
  color: var(--tree); font-style: normal; font-weight: 700;
}
/* Lower text image — "太陽の光で…" */
.about-lower-text {
  margin-top: 28px; margin-bottom: -30px;
  position: relative;
  z-index: 2;
}
.about-lower-text img {
  height: auto; width: 280px; margin: 0 auto; display: block;
}
/* Tree illustration */
.tree-visual {
  position: relative; overflow: hidden;
  margin-top: -50px;
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(237,247,233,0.5) 100%);
}
.tree-visual img {
  width: 100%; max-width: 800px; display: block;
  margin: 0 auto;
}

/* ===== RECOMMEND ===== */
.recommend-section { padding: 12px 16px; }
.recommend-cards { display: flex; gap: 12px; margin-bottom: 16px; }
.recommend-card {
  flex: 1; background: var(--white);
  border: 2px solid var(--tree-pale);
  border-radius: 14px; padding: 20px 14px; text-align: center;
  box-shadow: 0 3px 14px rgba(0,155,78,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}
.recommend-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.recommend-icon { font-size: 32px; margin-bottom: 10px; }
.recommend-label { font-size: 16px; font-weight: 700; color: var(--brown); line-height: 1.5; }
.recommend-desc {
  font-size: 15px; color: var(--n700); line-height: 1.8; text-align: center;
  background: rgba(255,255,255,0.7); border-radius: 12px; padding: 18px 16px;
}
.recommend-desc .block { display: block; margin-bottom: 0.6em; }
.recommend-desc .block:last-child { margin-bottom: 0; }
/* ===== COURSE CARDS ===== */
.course-section { padding: 12px 16px; }
.course-list { display: flex; flex-direction: column; gap: 16px; }
.course-card {
  background: var(--white); border: 1.5px solid var(--n100);
  border-radius: 16px; overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  transition: all 0.25s;
}
.course-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.course-thumb { width: 100%; overflow: hidden; background: var(--tree-bg); aspect-ratio: 1 / 1; }
.course-thumb img { width: 100%; height: 100%; object-fit: cover; }
.course-thumb-ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 48px; background: var(--sky-bg); }
.course-card-title {
  font-size: 17px; font-weight: 900;
  text-align: center; padding: 14px 16px;
  line-height: 1.5; font-family: var(--fb);
}
.course-card-title.color-pink { color: #FF5874; }
.course-card-title.color-blue { color: #2A7DE1; }
.course-body { padding: 12px 18px 16px; display: flex; flex-direction: column; text-align: center; }
.course-catch { font-size: 16px; color: var(--brown); font-weight: 700; line-height: 1.6; margin-bottom: 8px; }
.course-desc { font-size: 16px; color: var(--n700); line-height: 1.8; margin-bottom: 10px; text-align: left; }
.course-inst { font-size: 16px; color: var(--n500); margin-bottom: 12px; }
.course-btn {
  font-size: 16px; font-weight: 700; padding: 16px 24px;
  border-radius: 999px; text-align: center;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(135deg, #7CBB2D, #8BC34A);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(124,187,45,0.30);
  letter-spacing: 0.04em;
  transition: all 0.25s;
}
.course-btn::after {
  content: '>';
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  background: rgba(255,255,255,0.3);
  border-radius: 50%;
  font-size: 16px;
  flex-shrink: 0;
}
.course-btn:hover {
  box-shadow: 0 6px 24px rgba(124,187,45,0.40);
  transform: translateY(-2px);
}
/* Course section title — matches おすすめ style */
.course-section-title {
  font-size: 36px; font-weight: 900;
  font-family: var(--fb); text-align: center;
  margin-bottom: 12px; line-height: 1.3;
  background: linear-gradient(180deg, #35A45C, #89D35B 50%, #D8CF18);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
/* ===== MERIT ===== */
.merit-list { display: flex; flex-direction: column; gap: 20px; }
.merit-item {
  background: var(--white); border-radius: 16px; overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1.5px solid var(--n100);
}
.merit-item-img {
  width: 100%; aspect-ratio: 16 / 9; overflow: hidden;
}
.merit-item-img img {
  width: 100%; height: 100%; object-fit: cover;
}
.merit-item-body {
  padding: 18px 20px;
}
.merit-num {
  font-size: 14px; font-weight: 700; color: var(--white);
  background: var(--tree); display: inline-block;
  padding: 3px 14px; border-radius: 999px; margin-bottom: 10px;
}
.merit-text-h {
  font-size: 18px; font-weight: 900; color: var(--brown);
  margin-bottom: 8px; line-height: 1.5;
}
.merit-text-p { font-size: 16px; color: var(--n700); line-height: 1.8; }
/* ===== INSTRUCTORS ===== */
.instructor-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
}
.instructor-card {
  background: var(--white); border-radius: 16px; overflow: hidden;
  box-shadow: 0 3px 12px rgba(74,55,40,0.12), 0 1px 4px rgba(74,55,40,0.08); transition: all 0.25s; text-align: center;
}
.instructor-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.instructor-img { width: 100%; aspect-ratio: 1 / 1; overflow: hidden; background: var(--tree-bg); }
.instructor-img img { width: 100%; height: 100%; object-fit: cover; }
.instructor-info { padding: 12px 10px; }
.instructor-name { font-size: 14px; font-weight: 700; color: var(--brown); margin-bottom: 2px; }
.instructor-role { font-size: 12px; color: var(--n500); line-height: 1.5; }
.instructor-card.selected {
  border: 2px solid var(--tree);
  box-shadow: 0 4px 16px rgba(0,155,78,0.2);
}

/* ===== Instructor Modal ===== */
.inst-modal-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.5); z-index: 1000;
  display: none; align-items: flex-end; justify-content: center;
}
.inst-modal-overlay.is-open { display: flex; }
.inst-modal {
  background: var(--white); width: 100%; max-width: 480px;
  border-radius: 20px 20px 0 0; padding: 28px 20px 32px;
  height: 66vh; overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
}
.inst-modal-overlay.is-open .inst-modal { transform: translateY(0); }
.inst-modal-close {
  position: absolute; top: 16px; right: 16px; width: 32px; height: 32px;
  border: none; background: var(--n100); border-radius: 50%;
  font-size: 18px; color: var(--n500); cursor: pointer;
  display: flex; align-items: center; justify-content: center; z-index: 1;
}
/* Profile area */
.inst-modal-profile {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; margin-bottom: 24px; padding-bottom: 20px;
  border-bottom: 1px solid var(--n100);
}
.inst-modal-photo {
  width: 96px; height: 96px; border-radius: 50%; overflow: hidden;
  background: var(--tree-bg); margin-bottom: 12px;
  border: 3px solid var(--tree-pale);
}
.inst-modal-photo img { width: 100%; height: 100%; object-fit: cover; }
.inst-modal-name { font-size: 22px; font-weight: 900; color: var(--brown); font-family: var(--fb); margin-bottom: 4px; }
.inst-modal-role { font-size: 14px; color: var(--tree); font-weight: 700; margin-bottom: 10px; }
.inst-modal-bio { font-size: 14px; color: var(--n700); line-height: 1.7; }
/* Section labels */
.inst-modal-section-label {
  font-size: 14px; font-weight: 900; color: var(--white);
  padding: 5px 14px; border-radius: 999px; display: inline-block; margin-bottom: 12px;
}
.inst-modal-section-label.cert { background: var(--tree); }
.inst-modal-section-label.single { background: var(--tree); }
.inst-modal-section-group { margin-bottom: 20px; }
.inst-modal-section-group:last-child { margin-bottom: 0; }
/* Course cards with thumbnail */
.inst-modal-courses { display: flex; flex-direction: column; gap: 10px; }
.inst-modal-course-card {
  background: var(--white); border-radius: 12px; overflow: hidden;
  border: 1.5px solid var(--n100); display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: inherit; transition: all 0.2s;
}
.inst-modal-course-card:active { transform: scale(0.98); }
.inst-modal-course-thumb {
  width: 80px; height: 80px; flex-shrink: 0; overflow: hidden; background: var(--tree-bg);
}
.inst-modal-course-thumb img { width: 100%; height: 100%; object-fit: cover; }
.inst-modal-course-body { flex: 1; padding: 10px 12px 10px 0; }
.inst-modal-course-title {
  font-size: 14px; font-weight: 700; color: var(--brown); line-height: 1.4; margin-bottom: 4px;
}
.inst-modal-course-arrow {
  color: var(--tree); font-size: 13px; font-weight: 700;
}
.inst-modal-empty {
  text-align: center; padding: 20px; color: var(--n500); font-size: 14px;
  background: var(--n50); border-radius: 12px;
}

/* ===== NEWS ===== */
.news-list { display: flex; flex-direction: column; gap: 10px; }
.news-item {
  display: flex; flex-direction: column; gap: 4px;
  padding: 14px 16px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}
.news-date { font-size: 13px; color: var(--n500); flex-shrink: 0; white-space: nowrap; }
.news-title { font-size: 15px; color: var(--brown); font-weight: 600; line-height: 1.5; text-decoration: none; }
.news-title:hover { color: var(--tree); }

/* --- お知らせ カルーセル --- */
.news-carousel {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 4px 16px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.news-carousel::-webkit-scrollbar { display: none; }
.news-card-c {
  flex: 0 0 200px;
  scroll-snap-align: start;
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  border: 1.5px solid var(--n100);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all 0.25s;
  text-decoration: none;
  color: inherit;
}
.news-card-c:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.news-thumb-c {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--sky-bg);
}
.news-thumb-c img { width: 100%; height: 100%; object-fit: cover; }
.news-thumb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--tree-bg), var(--sky-bg));
}
.news-thumb-placeholder span { font-size: 32px; }
.news-body-c {
  padding: 10px 12px 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.news-card-date {
  font-size: 11px;
  color: var(--n500);
  margin-bottom: 4px;
  font-weight: 500;
}
.news-card-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--brown);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== TRIAL BANNER ===== */
.trial-section { padding: 0 20px 24px; }
.trial-card {
  background: linear-gradient(135deg, var(--tree-bg), var(--sky-bg));
  border-radius: 20px; padding: 32px 24px; text-align: center;
  border: 2px solid var(--tree-pale);
  max-width: 1080px; margin: 0 auto;
}
.trial-badge {
  display: inline-block; font-size: 16px; font-weight: 700;
  background: var(--sun-pale); color: #B8860B; padding: 5px 16px;
  border-radius: 999px; margin-bottom: 12px;
}
.trial-title {
  font-size: 22px; font-weight: 900; color: var(--brown);
  font-family: var(--fd); line-height: 1.4; margin-bottom: 8px;
}
.trial-sub {
  font-size: 16px; color: var(--n700); line-height: 1.7; margin-bottom: 20px;
}
/* ===== SINGLE LESSONS ===== */
.lesson-section { padding: 12px 16px; }
.lesson-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.lesson-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  border: 1.5px solid var(--n100);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all 0.25s;
  text-decoration: none;
  color: inherit;
}
.lesson-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.lesson-card.is-hidden { display: none; }
.lesson-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--sky-bg);
}
.lesson-thumb img { width: 100%; height: 100%; object-fit: cover; }
.lesson-body {
  padding: 10px 10px 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.lesson-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--brown);
  line-height: 1.45;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.lesson-inst {
  font-size: 11px;
  color: var(--n500);
  margin-bottom: 4px;
}
.lesson-price {
  font-size: 15px;
  font-weight: 700;
  color: var(--tree);
  margin-top: auto;
}

/* --- 単発講座 カルーセル --- */
.lesson-category-label {
  font-size: 15px;
  font-weight: 700;
  color: var(--brown);
  font-family: var(--fb);
  margin: 18px 0 10px;
  border-left: 4px solid var(--tree);
  padding-left: 10px;
  line-height: 1.4;
}
.lesson-carousel {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 4px 16px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.lesson-carousel::-webkit-scrollbar { display: none; }
.lesson-card-c {
  flex: 0 0 220px;
  scroll-snap-align: start;
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  border: 1.5px solid var(--n100);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all 0.25s;
  text-decoration: none;
  color: inherit;
}
.lesson-card-c:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.lesson-thumb-c {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--sky-bg);
}
.lesson-thumb-c img { width: 100%; height: 100%; object-fit: cover; }
.lesson-body-c {
  padding: 10px 10px 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.lesson-title-c {
  font-size: 14px;
  font-weight: 700;
  color: var(--brown);
  line-height: 1.45;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.lesson-inst-c {
  font-size: 12px;
  color: var(--n500);
  margin-bottom: 4px;
}
.lesson-price-c {
  font-size: 15px;
  font-weight: 700;
  color: var(--tree);
  margin-top: auto;
}
.lesson-more-card {
  flex: 0 0 100px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255,255,255,0.7);
  border-radius: 12px;
  border: 1.5px solid var(--n100);
  text-decoration: none;
  color: var(--tree);
  transition: all 0.25s;
}
.lesson-more-card:hover { background: rgba(255,255,255,0.95); transform: translateY(-1px); }
.lesson-more-arrow {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--tree);
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-size: 18px;
  font-weight: 700;
}
.lesson-more-text {
  font-size: 12px;
  font-weight: 700;
  color: var(--tree);
  white-space: nowrap;
}

.genre-tabs {
  display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px;
}
.genre-tab {
  font-size: 14px; font-weight: 600; padding: 7px 14px;
  border-radius: 999px; cursor: pointer; transition: all 0.2s;
  background: var(--white); color: var(--n700);
  border: 1.5px solid var(--n100);
}
.genre-tab.active {
  background: var(--tree); color: var(--white);
  border-color: var(--tree);
}
/* 資格講座タブ色分け */
.course-tab-all.active { background: var(--tree); border-color: var(--tree); }
.course-tab-publish.active { background: #2A7DE1; border-color: #2A7DE1; }
.course-tab-yoga.active { background: #FF5874; border-color: #FF5874; }
.genre-tab:hover:not(.active) {
  background: var(--tree-bg); border-color: var(--tree-pale);
}
/* ===== FINAL CTA ===== */
.final-cta {
  padding: 40px 20px 48px; text-align: center;
}
.final-cta-inner {
  max-width: 600px; margin: 0 auto;
}
.final-cta-title {
  font-size: 22px; font-weight: 900; color: var(--brown);
  font-family: var(--fd); line-height: 1.4; margin-bottom: 12px;
}
.final-cta-title em { color: var(--tree); font-style: normal; }
.final-cta-sub {
  font-size: 16px; color: var(--n700); line-height: 1.8; margin-bottom: 24px;
}
/* ===== SIDE NAV (PC only) ===== */
.side-nav {
  display: none;
}
@media (min-width: 800px) {
  .side-nav {
    display: block;
    position: fixed;
    left: 0;
    top: 0;
    width: calc(50% - 187.5px);
    height: 100vh;
    z-index: 100;
    padding: 58px 50px 20px;
    box-sizing: border-box;
  }
  .side-nav-logo {
    margin-bottom: 38px;
    text-align: center;
  }
  .side-nav-logo img {
    width: 160px;
    height: auto;
    display: block;
    margin: 0 auto;
  }
  .side-nav-links {
    display: flex;
    flex-direction: column;
    gap: 18px;
    text-align: center;
  }
  .side-nav-links a {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #4E4E4E;
    text-decoration: none;
    font-family: var(--fb);
    transition: color 0.2s;
  }
  .side-nav-links a:hover {
    color: var(--tree);
  }
  .side-nav-links a.is-active {
    color: var(--tree);
    font-weight: 700;
  }
}

/* ===== FOOTER ===== */
.site-footer {
  background: #D4EEF8; color: var(--n700);
  padding: 30px 16px 24px;
}
.footer-inner {
  max-width: 1080px; margin: 0 auto;
}
.footer-links a { display: block; font-size: 14px; padding: 6px 0; color: var(--n700); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--tree); }
.footer-copy {
  font-size: 10px; color: var(--n500); text-align: center;
}
/* ===== Animations ===== */
.fade-in-up {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in-up.is-visible {
  opacity: 1; transform: translateY(0);
}

/* ===== FAQ Accordion ===== */
.faq-section-bg {
  background: #F0EAE0;
  border-radius: 16px;
  padding: 24px 16px;
  max-width: 1080px;
  margin: 0 auto;
}
.faq-item {
  background: var(--white);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.faq-item:last-child { margin-bottom: 0; }
.faq-item summary {
  padding: 16px 20px;
  font-size: 16px;
  font-weight: 700;
  color: var(--brown);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 20px;
  color: var(--tree);
  font-weight: 700;
  flex-shrink: 0;
  margin-left: 12px;
  transition: transform 0.3s;
}
.faq-item[open] summary::after {
  content: '−';
}
.faq-answer {
  padding: 0 20px 16px;
  font-size: 16px;
  color: var(--n700);
  line-height: 1.8;
}


/* ===== Search Section ===== */
.search-section { padding: 0 20px 24px; }
.search-card {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.6);
  box-shadow: var(--shadow-card);
  padding: 32px 24px;
  text-align: center;
  max-width: 1080px;
  margin: 0 auto;
}
.search-card img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}
.search-head { margin-bottom: 20px; }
.search-head img { width: 200px; }
.search-image { margin-bottom: 24px; }
.search-image img { width: 100%; max-width: 400px; }

/* ===== Recommend (current site style) ===== */
.recommend-head-img { margin-bottom: 24px; }
.recommend-head-img img { width: 220px; margin: 0 auto; display: block; }
.recommend-icons { display: flex; gap: 16px; justify-content: center; margin-bottom: 20px; }
.recommend-icons img { width: 140px; height: auto; }

/* ===== Section Heading Bubble (マナビTREE + 吹き出し) ===== */
.section-heading-bubble {
  text-align: center; margin-bottom: 24px;
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 4px;
}
.section-heading-logo {
  height: 28px; width: auto; display: inline-block; vertical-align: middle;
}
.section-heading-text {
  font-size: 18px; font-weight: 700; color: var(--brown);
  vertical-align: middle; margin-right: 4px;
}
.section-heading-balloon {
  display: inline-block;
  font-size: 20px; font-weight: 900; color: var(--tree);
  font-family: var(--fb);
  background: var(--tree-bg);
  border: 2px solid var(--tree-pale);
  border-radius: 20px;
  padding: 6px 20px;
  position: relative;
  line-height: 1.4;
}
.section-heading-balloon::before {
  content: '';
  position: absolute; left: -10px; top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-right-color: var(--tree-pale);
}
.section-heading-balloon::after {
  content: '';
  position: absolute; left: -7px; top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-right-color: var(--tree-bg);
}

/* ===== Merit (current site style) ===== */
.merit-head-img { margin-bottom: 24px; }
.merit-head-img img { width: 200px; margin: 0 auto; display: block; }
.merit-icon-img { width: 100%; max-width: 200px; height: auto; margin: 0 auto 12px; display: block; }
.merit-movie { margin-top: 32px; text-align: center; }
.merit-movie-head { margin-bottom: 16px; }
.merit-movie-head img { width: 240px; margin: 0 auto; display: block; }
.merit-movie-thumb { position: relative; display: inline-block; cursor: pointer; }
.merit-movie-thumb img { width: 100%; max-width: 500px; border-radius: 12px; box-shadow: var(--shadow-md); }
.merit-movie-play {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 64px; height: 64px;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg);
}
.merit-movie-play::after {
  content: '▶';
  font-size: 24px;
  color: var(--tree);
  margin-left: 4px;
}

/* --- 投稿詳細ページ --- */
.single-post {
  background: var(--white);
  padding-bottom: 40px;
}
.single-post__hero {
  width: 100%;
  overflow: hidden;
}
.single-post__hero-img {
  width: 100%;
  height: auto;
  display: block;
}
.single-post__header {
  padding: 20px 20px 0;
}
.single-post__date {
  font-size: 13px;
  color: var(--n500);
  font-weight: 500;
  display: block;
  margin-bottom: 8px;
}
.single-post__categories {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.single-post__cat {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--tree);
  background: var(--tree-bg);
  padding: 3px 10px;
  border-radius: 20px;
  line-height: 1.4;
}
.single-post__title {
  font-size: 22px;
  font-weight: 900;
  color: var(--brown);
  font-family: var(--fd);
  line-height: 1.6;
  margin: 0;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--n100);
}
.single-post__content {
  padding: 24px 20px;
  font-size: 15px;
  line-height: 2;
  color: var(--n700);
}
.single-post__content p {
  margin-bottom: 1.5em;
}
.single-post__content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 16px 0;
}
.single-post__content h2 {
  font-size: 18px;
  font-weight: 900;
  color: var(--brown);
  margin: 2em 0 0.8em;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--tree-bg);
}
.single-post__content h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--brown);
  margin: 1.5em 0 0.6em;
  padding-left: 12px;
  border-left: 4px solid var(--tree);
}
.single-post__content a {
  color: var(--tree);
  text-decoration: underline;
}
.single-post__content a:hover {
  color: var(--tree-d);
}
.single-post__content blockquote {
  border-left: 4px solid var(--n100);
  padding: 12px 16px;
  margin: 1.5em 0;
  background: var(--n50);
  border-radius: 0 8px 8px 0;
  font-size: 14px;
  color: var(--n700);
}
.single-post__content ul,
.single-post__content ol {
  padding-left: 1.5em;
  margin-bottom: 1.5em;
}
.single-post__content li {
  margin-bottom: 0.5em;
}
.single-post__nav {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--n100);
  margin: 0 20px;
  border-radius: 12px;
  overflow: hidden;
}
.single-post__nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: var(--n50);
  text-decoration: none;
  color: var(--brown);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  transition: background 0.2s;
}
.single-post__nav-link:hover {
  background: var(--tree-bg);
}
.single-post__nav-link.next {
  justify-content: flex-end;
  text-align: right;
}
.single-post__nav-arrow {
  flex-shrink: 0;
  font-size: 16px;
  color: var(--tree);
  font-weight: 700;
}
.single-post__nav-label {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.single-post__back {
  text-align: center;
  padding: 24px 20px;
}
.single-post__back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--tree);
  text-decoration: none;
  padding: 10px 20px;
  border: 2px solid var(--tree);
  border-radius: 999px;
  transition: all 0.2s;
}
.single-post__back-link:hover {
  background: var(--tree);
  color: var(--white);
}

/* =====================================================
   News Archive (home.php) — お知らせ一覧
   ===================================================== */
.news-archive {
  padding: 120px 20px 80px;
  max-width: 900px;
  margin: 0 auto;
  min-height: 60vh;
}
.news-archive__inner { width: 100%; }
.news-archive__title {
  text-align: center;
  font-size: 28px;
  font-weight: 900;
  color: var(--brown);
  margin-bottom: 4px;
}
.news-archive__sub {
  text-align: center;
  font-size: 14px;
  color: var(--n500);
  margin-bottom: 40px;
}
.news-archive__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.news-archive__card {
  display: flex;
  gap: 20px;
  background: var(--white);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, transform 0.15s;
}
.news-archive__card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.news-archive__thumb {
  flex-shrink: 0;
  width: 200px;
  min-height: 140px;
  background: var(--n100);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.news-archive__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.news-archive__thumb-placeholder {
  font-size: 36px;
  opacity: 0.4;
}
.news-archive__body {
  flex: 1;
  padding: 16px 20px 16px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}
.news-archive__date {
  font-size: 12px;
  color: var(--n500);
  letter-spacing: 0.04em;
}
.news-archive__cats {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.news-archive__cat {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--tree-bg);
  color: var(--tree);
}
.news-archive__cat--external {
  background: #FFF3E0;
  color: #E65100;
}
.news-archive__card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--brown);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-archive__excerpt {
  font-size: 13px;
  color: var(--n600);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-archive__external-icon {
  display: inline-block;
  font-size: 11px;
  margin-left: 4px;
  vertical-align: middle;
  opacity: 0.6;
}
.news-archive__back {
  text-align: center;
  margin-top: 48px;
}
.news-archive__back-link {
  display: inline-block;
  color: var(--tree);
  font-weight: 600;
  font-size: 14px;
  padding: 10px 20px;
  border: 2px solid var(--tree);
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.2s;
}
.news-archive__back-link:hover {
  background: var(--tree);
  color: var(--white);
}

/* News card external badge in carousel */
.news-card-c .news-external-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(230, 81, 0, 0.85);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  z-index: 1;
}
.news-card-c { position: relative; }

@media (max-width: 600px) {
  .news-archive { padding: 100px 16px 60px; }
  .news-archive__card {
    flex-direction: column;
    gap: 0;
  }
  .news-archive__thumb {
    width: 100%;
    height: 180px;
    min-height: auto;
  }
  .news-archive__body {
    padding: 14px 16px 16px;
  }
  .news-archive__card-title { font-size: 15px; }
}
