/* ============================================================
   RSフィルナ LP スタイルシート
   コンセプト:「月夜の苗床」— 和モダン・オーガニックエディトリアル
   生成りの紙 × 深緑（根）× 若葉（芽）× 月の金 × 夜藍
   ============================================================ */

/* ---------- デザイントークン ---------- */
:root {
  --paper: #f6f1e6;        /* 生成りの紙 */
  --paper-deep: #ece4d2;   /* 紙の影 */
  --ink: #33302a;          /* 墨 */
  --ink-soft: #5c574c;     /* 薄墨 */
  --root: #2e4632;         /* 根の深緑 */
  --root-soft: #52704f;    /* 深緑の中間 */
  --sprout: #7d9b4e;       /* 若葉 */
  --luna: #c29a45;         /* 月の金 */
  --luna-pale: #e5d3a1;    /* 月光 */
  --night: #1d2a33;        /* 夜藍 */
  --night-soft: #2b3c48;   /* 夜藍の明 */
  --night-ink: #ece6d8;    /* 夜での文字色 */
  --font-display: "Shippori Mincho B1", "Hiragino Mincho ProN", serif;
  --font-body: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", sans-serif;
  --w-content: 1060px;
}

/* ---------- リセット・ベース ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 2;
  font-size: 16px;
  letter-spacing: 0.04em;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
ul, ol { list-style: none; }

/* 紙の質感（粒子ノイズを全面に薄く重ねる） */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- 共通部品 ---------- */
.section-inner {
  max-width: var(--w-content);
  margin: 0 auto;
  padding: 0 24px;
}
section { padding: 96px 0; position: relative; }

.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.6;
  margin-bottom: 40px;
}
.section-en {
  display: block;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--luna);
  margin-bottom: 10px;
}
.section-title::after {
  content: "";
  display: block;
  width: 64px; height: 2px;
  margin-top: 18px;
  background: linear-gradient(90deg, var(--luna), transparent);
}
.section-title-invert { color: var(--night-ink); }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 30px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.6;
  text-decoration: none;
  border-radius: 999px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}
.btn-arrow { display: inline-flex; width: 24px; }
.btn-arrow svg { width: 100%; }
.btn:hover { transform: translateY(-2px); }
.btn:hover .btn-arrow { animation: arrow-nudge 0.6s ease infinite alternate; }
@keyframes arrow-nudge { from { transform: translateX(0); } to { transform: translateX(5px); } }

.btn-primary {
  background: var(--root);
  color: var(--paper);
  box-shadow: 0 6px 18px rgba(46, 70, 50, 0.28);
}
.btn-primary:hover { background: var(--root-soft); }
.btn-outline {
  border: 1.5px solid var(--luna);
  color: var(--ink);
  background: transparent;
}
.btn-outline:hover { background: var(--luna-pale); }

/* ---------- スクロール表示アニメーション ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 14px 28px;
  background: rgba(246, 241, 230, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(51, 48, 42, 0.08);
}
.brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  color: var(--root);
}
.brand-logo { width: 46px; height: 46px; }
.site-nav { display: flex; gap: 26px; margin-left: auto; }
.site-nav a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding-bottom: 4px;
}
.site-nav a::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1.5px;
  background: var(--luna);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.site-nav a:hover::after { transform: scaleX(1); }
.header-cta {
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  color: var(--paper);
  background: var(--root);
  padding: 9px 20px;
  border-radius: 999px;
  transition: background-color 0.25s ease;
}
.header-cta:hover { background: var(--root-soft); }

/* ---------- フッター ---------- */
.site-footer {
  background: var(--night);
  color: var(--night-ink);
  padding: 56px 24px 40px;
  text-align: center;
}
.footer-brand { font-family: var(--font-display); font-size: 17px; letter-spacing: 0.08em; }
.footer-sep { color: var(--luna); }
.footer-nav { display: flex; justify-content: center; gap: 28px; margin: 22px 0; flex-wrap: wrap; }
.footer-nav a { font-size: 13px; color: rgba(236, 230, 216, 0.75); text-decoration: none; }
.footer-nav a:hover { color: var(--luna-pale); text-decoration: underline; }
.footer-copy { font-size: 12px; color: rgba(236, 230, 216, 0.5); letter-spacing: 0.1em; }

/* ============================================================
   ヒーロー
   ============================================================ */
.hero {
  position: relative;
  min-height: calc(100vh - 62px);
  display: flex;
  align-items: center;
  padding: 80px 0 100px;
  background:
    radial-gradient(ellipse 90% 60% at 85% 15%, rgba(229, 211, 161, 0.35), transparent 60%),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-deep) 100%);
  overflow: hidden;
}
.hero-inner {
  max-width: var(--w-content);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  position: relative;
  z-index: 2;
}
.hero-role {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.3em;
  color: var(--root);
  border: 1px solid var(--luna);
  border-radius: 999px;
  padding: 6px 22px;
  margin-bottom: 34px;
  background: rgba(246, 241, 230, 0.7);
}
.hero-catch {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 5.4vw, 56px);
  line-height: 1.75;
  letter-spacing: 0.06em;
}
.hero-catch span { display: block; }
.hero-catch-em {
  color: var(--root);
  /* 月の金の下線をゆるく引く */
  background: linear-gradient(transparent 78%, var(--luna-pale) 78%, var(--luna-pale) 94%, transparent 94%);
  width: fit-content;
}
.hero-lead {
  margin-top: 36px;
  font-size: clamp(15px, 1.6vw, 17px);
  color: var(--ink-soft);
  line-height: 2.3;
}
.hero-sub {
  margin-top: 22px;
  font-family: var(--font-display);
  font-size: clamp(15px, 1.8vw, 19px);
  color: var(--root);
  letter-spacing: 0.12em;
}
.hero-cta { margin-top: 44px; display: flex; gap: 18px; flex-wrap: wrap; }

/* 縦書きの理念（右端の装飾） */
.hero-tategaki {
  position: absolute;
  top: 50%;
  right: clamp(12px, 4vw, 64px);
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  font-family: var(--font-display);
  font-size: clamp(18px, 2.4vw, 28px);
  letter-spacing: 0.42em;
  color: rgba(46, 70, 50, 0.34);
  z-index: 1;
  user-select: none;
}
/* 月の弧（背景の円） */
.hero-moon {
  position: absolute;
  top: -90px;
  right: -70px;
  width: clamp(280px, 36vw, 460px);
  color: var(--luna);
  opacity: 0.5;
  z-index: 0;
  animation: moon-drift 14s ease-in-out infinite alternate;
}
@keyframes moon-drift { from { transform: translateY(0) rotate(0deg); } to { transform: translateY(14px) rotate(4deg); } }

/* ============================================================
   理念（根・芽・月）
   ============================================================ */
.philosophy { background: var(--paper); }
.philosophy-intro {
  font-family: var(--font-display);
  font-size: clamp(15px, 1.7vw, 18px);
  line-height: 2.4;
  margin-bottom: 56px;
}
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.pillar {
  position: relative;
  padding: 40px 30px 36px;
  background: #fffdf7;
  border: 1px solid rgba(51, 48, 42, 0.09);
  border-radius: 4px 22px 4px 22px;   /* 不揃いの角丸で有機的に */
  box-shadow: 0 10px 26px rgba(51, 48, 42, 0.06);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.pillar:hover { transform: translateY(-6px); box-shadow: 0 18px 34px rgba(51, 48, 42, 0.1); }
.pillar-icon { display: block; width: 56px; margin-bottom: 20px; }
.pillar-icon svg { width: 100%; }
.pillar-name {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.pillar-ja { font-size: 15px; color: var(--ink-soft); font-weight: 400; }
.pillar-title { font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.pillar-body { font-size: 14px; color: var(--ink-soft); }

.pillar-roots { color: var(--ink); }
.pillar-roots .pillar-icon, .pillar-roots .pillar-name { color: var(--root); }
.pillar-sprout .pillar-icon, .pillar-sprout .pillar-name { color: var(--sprout); }
/* Luna だけ夜藍の反転カード：月が夜に浮かぶ */
.pillar-luna {
  background: linear-gradient(160deg, var(--night) 0%, var(--night-soft) 100%);
  border-color: transparent;
  color: var(--night-ink);
}
.pillar-luna .pillar-icon, .pillar-luna .pillar-name { color: var(--luna); }
.pillar-luna .pillar-ja, .pillar-luna .pillar-body { color: rgba(236, 230, 216, 0.72); }
.pillar-luna .pillar-title { color: var(--night-ink); }

/* ============================================================
   悩み（About）
   ============================================================ */
.about { background: var(--paper-deep); }
.about-intro {
  font-size: clamp(14px, 1.6vw, 16px);
  line-height: 2.4;
  margin-bottom: 52px;
}
.worries {
  counter-reset: worry;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.worry {
  counter-increment: worry;
  position: relative;
  background: #fffdf7;
  border-left: 3px solid var(--sprout);
  border-radius: 0 14px 14px 0;
  padding: 30px 28px 26px 66px;
  box-shadow: 0 8px 20px rgba(51, 48, 42, 0.05);
}
/* 5件目は横幅いっぱいに（奇数調整） */
.worry:last-child { grid-column: 1 / -1; }
.worry::before {
  content: counter(worry, decimal-leading-zero);
  position: absolute;
  left: 20px; top: 26px;
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--luna);
  line-height: 1;
}
.worry-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}
.worry-body { font-size: 14px; color: var(--ink-soft); margin-bottom: 14px; }
.worry-answer {
  position: relative;
  font-size: 14px;
  font-weight: 700;
  color: var(--root);
  padding: 12px 14px 12px 34px;
  background: rgba(125, 155, 78, 0.1);
  border-radius: 10px;
}
.worry-answer::before {
  content: "";
  position: absolute;
  left: 14px; top: 20px;
  width: 12px; height: 12px;
  border-left: 1.8px solid var(--sprout);
  border-bottom: 1.8px solid var(--sprout);
  border-radius: 0 0 0 4px;
}
.about-outro {
  margin-top: 56px;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(17px, 2.2vw, 23px);
  font-weight: 600;
  line-height: 2.2;
  color: var(--root);
}

/* ============================================================
   サービス
   ============================================================ */
.services { background: var(--paper); }
.service-list { display: flex; flex-direction: column; gap: 34px; }
.service {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 8px 26px;
  padding: 40px 38px;
  background: #fffdf7;
  border: 1px solid rgba(51, 48, 42, 0.09);
  border-radius: 4px 26px 4px 26px;
  box-shadow: 0 10px 26px rgba(51, 48, 42, 0.05);
}
.service-num {
  font-family: var(--font-display);
  font-size: 54px;
  font-weight: 400;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.2px var(--luna);   /* 数字は月の金の輪郭線 */
  letter-spacing: 0.05em;
}
.service-name {
  font-family: var(--font-display);
  font-size: clamp(19px, 2.2vw, 24px);
  font-weight: 600;
  color: var(--root);
  margin-bottom: 4px;
}
.service-slogan {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--luna);
  letter-spacing: 0.14em;
  margin-bottom: 16px;
}
.service-body { font-size: 15px; color: var(--ink-soft); margin-bottom: 18px; }
.service-points { display: flex; flex-direction: column; gap: 8px; }
.service-points li {
  position: relative;
  font-size: 14px;
  padding-left: 24px;
}
.service-points li::before {
  content: "";
  position: absolute;
  left: 2px; top: 12px;
  width: 12px; height: 5px;
  border-bottom: 1.8px solid var(--sprout);
  border-radius: 0 0 4px 0;
  transform: rotate(-8deg);   /* 手描きのチェック風 */
}
.services-outro {
  margin-top: 56px;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(15px, 1.9vw, 19px);
  line-height: 2.3;
  color: var(--ink);
}

/* ============================================================
   プロフィール（夜藍の月バンド）
   ============================================================ */
.profile {
  background:
    radial-gradient(ellipse 70% 50% at 15% 0%, rgba(194, 154, 69, 0.14), transparent 55%),
    linear-gradient(170deg, var(--night) 0%, var(--night-soft) 100%);
  color: var(--night-ink);
  overflow: hidden;
}
.profile-sky {
  position: absolute;
  top: 40px; right: 4%;
  width: clamp(120px, 16vw, 200px);
  color: var(--luna);
  opacity: 0.5;
  pointer-events: none;
}
.profile-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 56px;
  align-items: start;
}
.profile-photo {
  width: 100%;
  border-radius: 4px 26px 4px 26px;
  object-fit: cover;
  border: 1px solid rgba(236, 230, 216, 0.2);
}
.profile-name {
  margin-top: 20px;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
}
.profile-kana { font-size: 13px; font-weight: 400; color: rgba(236, 230, 216, 0.7); }
.profile-role { font-size: 13px; color: var(--luna-pale); margin-top: 4px; }
.profile-statement {
  font-family: var(--font-display);
  font-size: clamp(19px, 2.4vw, 26px);
  font-weight: 600;
  color: var(--luna-pale);
  margin-bottom: 26px;
  line-height: 1.9;
}
.profile-text p { font-size: 15px; line-height: 2.2; color: rgba(236, 230, 216, 0.88); margin-bottom: 1.2em; }
.profile-values {
  margin-top: 34px;
  padding: 26px 30px;
  border: 1px solid rgba(194, 154, 69, 0.4);
  border-radius: 4px 18px 4px 18px;
  background: rgba(29, 42, 51, 0.5);
}
.profile-values-heading {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--luna);
  margin-bottom: 14px;
}
.profile-values li {
  position: relative;
  font-size: 14px;
  line-height: 2.1;
  padding-left: 22px;
  color: rgba(236, 230, 216, 0.88);
}
.profile-values li::before {
  content: "";
  position: absolute;
  left: 0; top: 11px;
  width: 9px; height: 9px;
  border: 1.5px solid var(--luna);
  border-radius: 50% 50% 50% 0;   /* 月の雫 */
}

/* ============================================================
   CTA
   ============================================================ */
.cta { background: var(--paper); padding: 110px 0; }
.cta-box {
  text-align: center;
  padding: 64px 34px;
  background:
    radial-gradient(ellipse 60% 80% at 50% 0%, rgba(229, 211, 161, 0.35), transparent 65%),
    #fffdf7;
  border: 1px solid rgba(194, 154, 69, 0.45);
  border-radius: 4px 30px 4px 30px;
  box-shadow: 0 16px 40px rgba(51, 48, 42, 0.08);
}
.cta-lead {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.4vw, 25px);
  font-weight: 600;
  color: var(--root);
  margin-bottom: 34px;
}
.cta-buttons { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; }

/* ============================================================
   下層ページ（法務・セミナー）
   ============================================================ */
.section-inner-narrow { max-width: 760px; }
.legal, .seminar { padding: 72px 0 96px; background: var(--paper); }
.legal h1, .seminar h1 { margin-bottom: 16px; }
.legal-updated { font-size: 13px; color: var(--ink-soft); margin-bottom: 40px; }
.legal-section { margin-bottom: 36px; padding: 0; }
.legal-heading {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--root);
  margin-bottom: 10px;
  padding-left: 14px;
  border-left: 3px solid var(--luna);
}
.legal-section p { font-size: 14px; line-height: 2.1; color: var(--ink-soft); margin-bottom: 0.8em; }

.seminar-label {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--root);
  border: 1px solid var(--luna);
  border-radius: 999px;
  padding: 5px 18px;
  margin-bottom: 24px;
}
.seminar-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1.7;
  margin-bottom: 10px;
}
.seminar-subtitle {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--luna);
  letter-spacing: 0.1em;
  margin-bottom: 36px;
}
.seminar-meta {
  background: #fffdf7;
  border: 1px solid rgba(51, 48, 42, 0.09);
  border-radius: 4px 18px 4px 18px;
  padding: 22px 28px;
  margin-bottom: 36px;
}
.seminar-meta-row { display: flex; gap: 20px; padding: 6px 0; }
.seminar-meta-row dt {
  flex: 0 0 64px;
  font-weight: 700;
  color: var(--root);
  font-size: 14px;
}
.seminar-meta-row dd { font-size: 14px; }
.seminar-body { margin-bottom: 40px; }
.seminar-body p { font-size: 15px; line-height: 2.2; margin-bottom: 1em; }
.seminar-heading {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  color: var(--root);
  margin: 36px 0 16px;
}
.seminar-heading::after {
  content: "";
  display: block;
  width: 48px; height: 2px;
  margin-top: 10px;
  background: linear-gradient(90deg, var(--luna), transparent);
}
.seminar-topics { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.seminar-topics li { position: relative; font-size: 14px; padding-left: 24px; }
.seminar-topics li::before {
  content: "";
  position: absolute;
  left: 2px; top: 12px;
  width: 12px; height: 5px;
  border-bottom: 1.8px solid var(--sprout);
  border-radius: 0 0 4px 0;
  transform: rotate(-8deg);
}
.seminar .cta-box { margin-top: 48px; }
.seminar-note { margin-top: 18px; font-size: 12px; color: var(--ink-soft); }

/* ============================================================
   レスポンシブ（スマホ）
   ============================================================ */
@media (max-width: 860px) {
  section { padding: 68px 0; }
  .site-header { gap: 16px; padding: 12px 18px; }
  .site-nav { display: none; }   /* スマホはブランド＋無料相談ボタンのみ */
  .hero { min-height: auto; padding: 72px 0 84px; }
  .hero-tategaki { display: none; }
  .hero-moon { top: -60px; right: -80px; opacity: 0.32; }
  .pillars { grid-template-columns: 1fr; }
  .worries { grid-template-columns: 1fr; }
  .service { grid-template-columns: 1fr; padding: 30px 24px; gap: 14px; }
  .service-num { font-size: 42px; }
  .profile-grid { grid-template-columns: 1fr; gap: 36px; }
  .profile-photo-wrap { max-width: 320px; }
  .btn { width: 100%; justify-content: center; }
  .hero-cta, .cta-buttons { flex-direction: column; align-items: stretch; }
  .cta-box { padding: 44px 22px; }
}
