/* ============================================================
   京才塾 LP 共通スタイルシート
   ============================================================ */

/* ---------- Design Tokens ---------- */
:root {
  /* 色: ロゴ実測値に基づく */
  --orange: #F5820A;        /* ブランドオレンジ(ロゴ色) */
  --orange-deep: #D96D00;   /* hover/強調 */
  --orange-pale: #FDF1E3;   /* 淡い帯背景 */
  --ink: #1E1A16;           /* 本文・見出し(黒に近い焦茶) */
  --ink-soft: #57504A;      /* サブテキスト */
  --paper: #FBF8F3;         /* ページ背景(生成り) */
  --white: #FFFFFF;
  --line: #E5DFD6;          /* 罫線 */
  --ph-bg: #ECE7DF;         /* 画像プレースホルダー背景 */
  --ph-text: #A39A8E;

  /* タイポグラフィ */
  --font-serif: "Shippori Mincho", "Hiragino Mincho ProN", serif;   /* 見出し */
  --font-sans: "Zen Kaku Gothic New", "Hiragino Sans", sans-serif;  /* 本文 */

  --max-w: 1120px;

  --section-pad: clamp(72px, 10vw, 140px);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.9;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* ---------- Page wrapper (stacking above suminagashi-layer) ---------- */
header.site-header,
main,
footer.site-footer {
  position: relative;
  z-index: 1;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, h4, p, figure {
  margin: 0;
}

button {
  font: inherit;
  cursor: pointer;
}

table {
  border-collapse: collapse;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Focus visibility (D-1) ---------- */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

@media (max-width: 599px) {
  .container {
    padding: 0 20px;
  }
}

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: block;
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: 0.25em;
  color: var(--orange);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.sec-num {
  display: block;
  font-family: var(--font-serif);
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

h1, h2, h3 {
  font-family: var(--font-serif);
  letter-spacing: 0.06em;
  font-weight: 600;
  color: var(--ink);
}

h1 {
  font-size: clamp(30px, 5vw, 50px);
  line-height: 1.5;
}

h2 {
  font-size: clamp(28px, 4.5vw, 44px);
  line-height: 1.5;
}

h3 {
  font-size: clamp(20px, 2.6vw, 26px);
  line-height: 1.6;
}

.lead {
  font-size: clamp(16px, 1.6vw, 18px);
  color: var(--ink-soft);
  line-height: 1.9;
}

.section-head {
  margin-bottom: clamp(40px, 6vw, 64px);
}

.section-head.center {
  text-align: center;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 32px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.04em;
  border-radius: 2px;
  border: 1px solid transparent;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--orange-deep);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn-outline:hover {
  background: var(--ink);
  color: var(--white);
}

.btn-arrow::after {
  content: "";
  width: 16px;
  height: 10px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 10'%3E%3Cpath d='M9.3.3a1 1 0 0 1 1.4 0l4 4a1 1 0 0 1 0 1.4l-4 4a1 1 0 1 1-1.4-1.4L11.6 6H1a1 1 0 1 1 0-2h10.6L9.3 1.7a1 1 0 0 1 0-1.4z'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 10'%3E%3Cpath d='M9.3.3a1 1 0 0 1 1.4 0l4 4a1 1 0 0 1 0 1.4l-4 4a1 1 0 1 1-1.4-1.4L11.6 6H1a1 1 0 1 1 0-2h10.6L9.3 1.7a1 1 0 0 1 0-1.4z'/%3E%3C/svg%3E") no-repeat center / contain;
}

.btn-block {
  width: 100%;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 248, 243, 0.88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header.is-scrolled {
  box-shadow: 0 4px 16px rgba(30, 26, 22, 0.06);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.header-logo img {
  height: 38px;
  width: auto;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.header-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  padding-bottom: 4px;
}

.header-links a:hover {
  color: var(--orange-deep);
}

/* ---------- B-1. 現在ページインジケータ ---------- */
.header-links a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -3px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--orange);
  transform: translateX(-50%) scale(0);
  opacity: 0;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s ease;
}

.header-links a:hover::after {
  transform: translateX(-50%) scale(1);
  opacity: 0.6;
}

.header-links a.is-current::after {
  transform: translateX(-50%) scale(1);
  opacity: 1;
}

.header-cta .btn {
  padding: 12px 24px;
  font-size: 14px;
}

@media (max-width: 1023px) {
  .header-links {
    display: none;
  }
  .site-header .container {
    height: 64px;
  }
  .header-logo img {
    height: 30px;
  }
  .header-cta .btn {
    padding: 10px 18px;
    font-size: 13px;
  }
  .header-sns {
    display: none;
  }
}

/* ---------- SNSボタン(header/footer共通) ---------- */
.header-sns,
.footer-sns-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-sns {
  padding-left: 4px;
}

.sns-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid currentColor;
  color: inherit;
  flex: none;
  transition: color 0.3s ease, border-color 0.3s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.sns-btn svg {
  width: 16px;
  height: 16px;
  position: relative;
  z-index: 2;
}

.sns-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 50%;
  background: var(--orange);
  transform: scale(0);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
}

.sns-btn::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid var(--orange);
  opacity: 0;
  transform: scale(0.7);
  pointer-events: none;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.45s ease;
}

.sns-btn:hover,
.sns-btn:focus-visible {
  color: #fff;
  border-color: var(--orange);
  transform: translateY(-3px);
}

.sns-btn:hover::before,
.sns-btn:focus-visible::before {
  transform: scale(1);
  opacity: 1;
}

.sns-btn:hover::after,
.sns-btn:focus-visible::after {
  transform: scale(1);
  opacity: 0.45;
}

.header-sns .sns-btn {
  color: var(--ink-soft);
}

.footer-sns-row .sns-btn {
  color: rgba(245, 241, 234, 0.7);
}

/* ---------- Footer ---------- */
.site-footer {
  background: #26211B;
  color: var(--white);
  padding: 0 0 32px;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

/* B-2. 筆のかすれエッジ(ページ→フッターへのにじみ) */
.footer-edge {
  display: block;
  width: 100%;
  height: 28px;
  margin-bottom: 8px;
}

.footer-edge svg {
  display: block;
  width: 100%;
  height: 100%;
}

.footer-edge path {
  fill: var(--orange-pale);
}

/* B-2. 才マークwatermark */
.footer-watermark {
  position: absolute;
  right: clamp(-20px, 4vw, 40px);
  bottom: 0;
  height: 200px;
  width: auto;
  opacity: 0.05;
  pointer-events: none;
  z-index: 0;
}

/* B-2. 薄い墨流しリング */
.footer-ring {
  position: absolute;
  left: clamp(-40px, 8vw, 80px);
  top: 10%;
  width: clamp(140px, 18vw, 220px);
  height: clamp(140px, 18vw, 220px);
  opacity: 0.06;
  pointer-events: none;
  z-index: 0;
}

.footer-ring svg,
.footer-watermark svg {
  display: block;
  width: 100%;
  height: 100%;
}

.footer-ring ellipse {
  fill: none;
  stroke: #FBF8F3;
  stroke-width: 1;
}

.site-footer .container {
  position: relative;
  z-index: 1;
}

/* B-2. 一行CTA(フッター最上段) */
.footer-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding-bottom: 36px;
  margin-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
}

.footer-cta-row p {
  font-family: var(--font-serif);
  font-size: 16px;
  letter-spacing: 0.04em;
  color: #F5F1EA;
}

.footer-cta-row .btn {
  padding: 10px 22px;
  font-size: 13px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand img {
  height: 32px;
  width: auto;
}

.footer-brand span {
  font-family: var(--font-serif);
  font-size: 20px;
  letter-spacing: 0.08em;
  color: #F5F1EA;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 32px;
}

.footer-nav a {
  font-size: 14px;
  color: #F5F1EA;
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 2px 0;
}

.footer-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 12px;
  width: 100%;
  height: 1px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.footer-nav a:hover {
  color: var(--orange);
}

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

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  font-size: 13px;
  color: rgba(245, 241, 234, 0.6);
}

/* B-2. ページ上部へ戻るリンク */
.footer-to-top {
  text-align: center;
  padding-top: 20px;
}

.footer-to-top a {
  font-size: 13px;
  color: rgba(245, 241, 234, 0.7);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 6px 4px;
}

.footer-to-top a:hover {
  color: var(--orange);
}

@media (max-width: 599px) {
  .footer-top {
    flex-direction: column;
  }
  .footer-bottom {
    flex-direction: column;
  }
  .footer-cta-row {
    flex-direction: column;
  }
  .footer-sns-row {
    align-self: flex-start;
  }
}

/* ---------- Image placeholder (PHOTO枠: 実写後日差し替え) ---------- */
.ph {
  background: var(--ph-bg);
  border: 1px dashed var(--ph-text);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  overflow: hidden;
}

/* ---------- Illustration (SVG枠) ---------- */
.illust {
  display: block;
  width: 100%;
  overflow: hidden;
}

.illust svg {
  display: block;
  width: 100%;
  height: 100%;
}

.illust.is-pale {
  background: var(--orange-pale);
  border-radius: 4px;
}

/* ---------- C. イラスト画像(illust-*.png)差し替え用 ---------- */
.illust.is-photo {
  position: relative;
  background: transparent;
  border-radius: 0;
  border: none;
  overflow: hidden;
  isolation: isolate;
}

.illust.is-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 0;
  mix-blend-mode: multiply;
}

.ph-inner {
  text-align: center;
  color: var(--ph-text);
  font-family: var(--font-sans);
}

.ph-id {
  display: block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.ph-label {
  display: block;
  font-size: 12px;
  line-height: 1.6;
  padding: 0 16px;
}

/* ---------- Hero ---------- */
.hero {
  padding: clamp(56px, 8vw, 96px) 0 clamp(48px, 6vw, 72px);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}

.hero-text h1 {
  margin: 12px 0 28px;
}

.hero-vertical {
  writing-mode: vertical-rl;
  font-family: var(--font-serif);
  font-size: 15px;
  letter-spacing: 0.3em;
  color: var(--orange-deep);
  position: absolute;
  right: 0;
  top: 0;
  white-space: nowrap;
}

.hero-vertical-wrap {
  height: auto;
}

.hero-vertical-wrap::before,
.hero-vertical-wrap::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(30, 26, 22, 0.08);
  border-radius: 50%;
  pointer-events: none;
}

.hero-vertical-wrap::before {
  right: -36px;
  top: -42px;
  width: 172px;
  height: 150px;
  transform: rotate(-8deg);
}

.hero-vertical-wrap::after {
  right: 18px;
  top: 88px;
  width: 96px;
  height: 84px;
  border-color: rgba(245, 130, 10, 0.24);
  transform: rotate(12deg);
}

@media (max-width: 599px) {
  .hero-vertical-wrap {
    display: none;
  }
}

.hero-bottom-image {
  margin-top: clamp(40px, 6vw, 64px);
}

@media (max-width: 1023px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Sections ---------- */
.section {
  position: relative;
  padding: var(--section-pad) 0;
  overflow: hidden;
}

.section-alt {
  background: transparent;
}

.section-pale {
  background: var(--orange-pale);
}

/* ---------- Index: branch cards ---------- */
.branch-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: stretch;
}

.branch-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: clamp(24px, 3vw, 40px);
  height: 100%;
}

.branch-card-link {
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: 100%;
}

.branch-card .btn {
  margin-top: auto;
}

.branch-card .ph,
.branch-card .illust {
  aspect-ratio: 3 / 2;
}

.branch-card h2 {
  font-size: clamp(22px, 3vw, 28px);
}

.branch-card .card-sub {
  font-weight: 700;
  color: var(--ink);
  font-size: 15px;
}

.branch-card p {
  color: var(--ink-soft);
}

@media (max-width: 1023px) {
  .branch-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Values row (index sec 02) ---------- */
.values-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.values-row li {
  padding: 0 32px;
  text-align: center;
  font-family: var(--font-serif);
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 1.8;
  border-left: 1px solid var(--line);
}

.values-row li:first-child {
  border-left: none;
}

@media (max-width: 1023px) {
  .values-row {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .values-row li {
    border-left: none;
    border-top: 1px solid var(--line);
    padding: 32px 0 0;
  }
  .values-row li:first-child {
    border-top: none;
    padding-top: 0;
  }
}

/* ---------- Generic list with markers ---------- */
.marker-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 18px;
  color: var(--ink-soft);
}

.marker-list li::before {
  content: "─";
  position: absolute;
  left: 0;
  color: var(--orange);
  font-weight: 700;
}

.marker-list li:last-child {
  margin-bottom: 0;
}

/* ---------- Two-column compare block ---------- */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.compare-col {
  background: var(--white);
  padding: clamp(28px, 3vw, 40px);
}

.compare-col h4 {
  font-family: var(--font-serif);
  font-size: 18px;
  letter-spacing: 0.04em;
  margin-bottom: 20px;
  color: var(--ink);
}

.compare-col.is-fixed h4 {
  color: var(--ink-soft);
}

.compare-col.is-flex h4 {
  color: var(--orange-deep);
}

@media (max-width: 1023px) {
  .compare-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Card grid (3 cols) ---------- */
.card-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 32px);
}

.info-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: clamp(24px, 3vw, 32px);
}

.info-card .card-num {
  font-family: var(--font-serif);
  font-size: 13px;
  color: var(--orange);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 12px;
}

.info-card h3 {
  margin-bottom: 14px;
}

.info-card p {
  color: var(--ink-soft);
  font-size: 15px;
}

@media (max-width: 1023px) {
  .card-grid-3 {
    grid-template-columns: 1fr;
  }
}

/* ---------- Grid 6 (system items) ---------- */
.grid-6 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.grid-6 .sys-item {
  background: var(--white);
  padding: clamp(24px, 3vw, 32px);
}

.grid-6 .sys-item .item-num {
  font-family: var(--font-serif);
  font-size: 13px;
  color: var(--orange);
  display: block;
  margin-bottom: 10px;
}

.grid-6 .sys-item h4 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--ink);
}

.grid-6 .sys-item p {
  font-size: 14px;
  color: var(--ink-soft);
}

@media (max-width: 1023px) {
  .grid-6 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 599px) {
  .grid-6 {
    grid-template-columns: 1fr;
  }
}

/* ---------- Pricing table (laptop/tablet) ---------- */
.price-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.price-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  background: var(--white);
  font-size: 15px;
}

.price-table th,
.price-table td {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.price-table thead th {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--ink);
}

.price-table tbody tr:last-child td {
  border-bottom: none;
}

.price-table .price {
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--ink);
  white-space: nowrap;
}

.price-table .price-old {
  font-size: 13px;
  color: var(--ink-soft);
  margin-left: 8px;
}

.price-note {
  margin-top: 20px;
  font-size: 13px;
  color: var(--ink-soft);
}

.price-note p {
  margin-bottom: 4px;
}

.price-block + .price-block {
  margin-top: 48px;
}

.price-block-title {
  font-family: var(--font-serif);
  font-size: 20px;
  margin-bottom: 20px;
  letter-spacing: 0.04em;
}

/* Card-type price table for phone */
.price-cards {
  display: none;
}

@media (max-width: 599px) {
  .price-table-wrap {
    display: none;
  }
  .price-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .price-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 20px;
  }
  .price-card .pc-name {
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 10px;
    color: var(--ink);
  }
  .price-card dl {
    display: grid;
    grid-template-columns: 88px 1fr;
    row-gap: 10px;
    column-gap: 12px;
    margin: 0;
  }
  .price-card dt {
    font-size: 12px;
    color: var(--ink-soft);
    letter-spacing: 0.04em;
  }
  .price-card dd {
    margin: 0;
    font-size: 14px;
  }
  .price-card dd.pc-price {
    font-family: var(--font-serif);
    font-size: 20px;
  }
  .price-card .price-old {
    display: block;
    margin-left: 0;
    margin-top: 2px;
  }
}

/* ---------- Timeline ---------- */
.timeline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 40px;
  position: relative;
}

.timeline-item {
  flex: 1;
  position: relative;
  padding-left: 20px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: -46px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--orange);
}

.timeline-item .tl-date {
  font-family: var(--font-serif);
  font-size: 14px;
  color: var(--orange-deep);
  display: block;
  margin-bottom: 8px;
}

.timeline-item p {
  font-size: 14px;
  color: var(--ink-soft);
}

@media (max-width: 1023px) {
  .timeline {
    flex-direction: column;
    gap: 32px;
  }
  .timeline-item::before {
    top: 4px;
  }
  .timeline-item {
    padding-left: 24px;
    padding-top: 0;
  }
}

/* ---------- Honesty list ---------- */
.honesty-box {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: clamp(28px, 4vw, 48px);
}

.honesty-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 32px;
  margin-bottom: 28px;
}

.honesty-list li {
  position: relative;
  padding-left: 24px;
  font-weight: 500;
}

.honesty-list li::before {
  content: "×";
  position: absolute;
  left: 0;
  color: var(--orange-deep);
  font-weight: 700;
}

.honesty-note {
  color: var(--ink-soft);
  font-size: 15px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

@media (max-width: 599px) {
  .honesty-list {
    grid-template-columns: 1fr;
  }
}

/* ---------- Profile section ---------- */
.profile-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

.profile-grid .ph {
  aspect-ratio: 4 / 5;
}

.profile-name {
  font-family: var(--font-serif);
  font-size: 20px;
  margin-bottom: 12px;
}

.profile-title {
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 20px;
  line-height: 1.7;
}

.profile-text {
  color: var(--ink-soft);
}

.profile-text p {
  margin-bottom: 16px;
}

.profile-text p:last-child {
  margin-bottom: 0;
}

/* 続きを読む/閉じる: grid-template-rowsで高さアニメーション(JS側の高さ計算不要) */
.profile-text-more {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.profile-text.is-expanded .profile-text-more {
  grid-template-rows: 1fr;
}

.profile-text-more-inner {
  overflow: hidden;
}

.profile-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  padding: 0;
  min-height: 44px;
  background: none;
  border: none;
  color: var(--orange-deep);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.profile-toggle-icon {
  width: 12px;
  height: 8px;
  flex-shrink: 0;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 10'%3E%3Cpath d='M9.3.3a1 1 0 0 1 1.4 0l4 4a1 1 0 0 1 0 1.4l-4 4a1 1 0 1 1-1.4-1.4L11.6 6H1a1 1 0 1 1 0-2h10.6L9.3 1.7a1 1 0 0 1 0-1.4z'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 10'%3E%3Cpath d='M9.3.3a1 1 0 0 1 1.4 0l4 4a1 1 0 0 1 0 1.4l-4 4a1 1 0 1 1-1.4-1.4L11.6 6H1a1 1 0 1 1 0-2h10.6L9.3 1.7a1 1 0 0 1 0-1.4z'/%3E%3C/svg%3E") no-repeat center / contain;
  transform: rotate(90deg);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.profile-toggle[aria-expanded="true"] .profile-toggle-icon {
  transform: rotate(-90deg);
}

@media (max-width: 599px) {
  .profile-grid {
    grid-template-columns: 1fr;
  }
  .profile-grid .ph {
    max-width: 220px;
  }
}

/* ---------- LINE CTA section ---------- */
.line-cta {
  text-align: center;
}

.line-cta h2 {
  margin-bottom: 20px;
}

.line-cta .btn {
  margin: 28px 0 20px;
}

.line-cta .cta-note {
  color: var(--ink-soft);
  font-size: 14px;
  max-width: 34em;
  margin: 0 auto;
  text-wrap: balance;
}

.line-cta .cta-sub {
  font-size: 15px;
  color: var(--ink-soft);
  margin-bottom: 24px;
}

/* ---------- Notes ---------- */
.note-small {
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 20px;
}

/* ---------- Legal pages ---------- */
.legal-main {
  padding: clamp(56px, 8vw, 96px) 0;
}

.legal-wrap {
  max-width: 760px;
  margin: 0 auto;
}

.legal-wrap h1 {
  margin-bottom: 32px;
  font-size: clamp(26px, 4vw, 34px);
}

.legal-intro {
  color: var(--ink-soft);
  margin-bottom: 40px;
}

.legal-section {
  margin-bottom: 36px;
}

.legal-section h2 {
  font-size: 19px;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
  display: flex;
  gap: 12px;
  align-items: baseline;
}

.legal-section h2 .legal-num {
  font-size: 14px;
  color: var(--orange-deep);
}

.legal-section p,
.legal-section li {
  color: var(--ink-soft);
  font-size: 15px;
}

.legal-section ul {
  margin-top: 8px;
}

.legal-section li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
}

.legal-section li::before {
  content: "・";
  position: absolute;
  left: 0;
}

.legal-date {
  margin-top: 48px;
  font-size: 14px;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.legal-disclaimer {
  margin-top: 24px;
  font-size: 13px;
  color: var(--ph-text);
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.legal-table th,
.legal-table td {
  border: 1px solid var(--line);
  padding: 16px;
  text-align: left;
  vertical-align: top;
}

.legal-table th {
  width: 30%;
  background: var(--orange-pale);
  font-weight: 700;
  color: var(--ink);
}

.legal-table td {
  color: var(--ink-soft);
}

@media (max-width: 599px) {
  .legal-table,
  .legal-table thead,
  .legal-table tbody,
  .legal-table th,
  .legal-table td,
  .legal-table tr {
    display: block;
    width: 100%;
  }
  .legal-table th {
    border-bottom: none;
    width: 100%;
  }
  .legal-table td {
    border-top: none;
    margin-bottom: 8px;
  }
  .legal-table tr {
    margin-bottom: 4px;
    border-bottom: 2px solid var(--line);
  }
}

/* ---------- Fade-in (JS controlled / legacy) ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Reveal (scroll motion) ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* stagger children get their transition-delay set inline by JS (--reveal-delay) */
[data-reveal] {
  transition-delay: var(--reveal-delay, 0s);
}

/* ---------- Sumi (ink) background system: hero blobs (existing, dimmed per v2.0) ---------- */
.sumi-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.sumi-bg svg {
  position: absolute;
  display: block;
}

.sumi-blob {
  fill: #1E1A16;
}

.sumi-blob.is-blob-a {
  opacity: 0.04;
  width: min(46vw, 560px);
  height: auto;
  top: -10%;
  right: -10%;
  animation: sumi-drift-a 22s cubic-bezier(0.45, 0, 0.55, 1) infinite alternate;
}

.sumi-blob.is-blob-b {
  opacity: 0.04;
  width: min(52vw, 620px);
  height: auto;
  bottom: -18%;
  left: -12%;
  animation: sumi-drift-b 26s cubic-bezier(0.45, 0, 0.55, 1) infinite alternate;
}

.sumi-blob.is-blob-course {
  opacity: 0.04;
  width: min(56vw, 680px);
  height: auto;
  top: -16%;
  right: -16%;
  animation: sumi-drift-a 24s cubic-bezier(0.45, 0, 0.55, 1) infinite alternate;
}

@keyframes sumi-drift-a {
  0% { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(-2.5%, 2%) rotate(2.5deg); }
}

@keyframes sumi-drift-b {
  0% { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(2%, -2%) rotate(-2deg); }
}

/* Ensure hero/course hero clip the sumi blobs, never causing overflow */
.hero {
  position: relative;
  overflow: hidden;
}

/* ============================================================
   A. 墨流し(suminagashi)背景システム — ページ全体レイヤー
   ============================================================ */
.suminagashi-layer {
  position: fixed;
  inset: -14% 0 -6% 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.suminagashi-layer svg {
  display: block;
  width: 100%;
  height: 100%;
}

.suminagashi-ring {
  fill: none;
  stroke: #1E1A16;
}

.suminagashi-ring.is-group-tl {
  stroke-width: 1.1;
  opacity: 0.065;
}

.suminagashi-ring.is-group-br {
  stroke-width: 1;
  opacity: 0.065;
}

.suminagashi-tail {
  fill: none;
  stroke: #1E1A16;
  stroke-width: 1.1;
  opacity: 0.04;
  stroke-linecap: round;
}

.suminagashi-drop {
  fill: var(--orange);
  opacity: 0.5;
}

/* 呼吸(breathing) scale: 左右で周期・方向を変える */
.suminagashi-g-a {
  transform-origin: 78% 18%;
  animation: suminagashi-breathe-a 24s ease-in-out infinite alternate;
}

.suminagashi-g-b {
  transform-origin: 14% 86%;
  animation: suminagashi-breathe-b 28s ease-in-out infinite alternate;
}

@keyframes suminagashi-breathe-a {
  0% { transform: scale(1); }
  100% { transform: scale(1.04); }
}

@keyframes suminagashi-breathe-b {
  0% { transform: scale(1.04); }
  100% { transform: scale(1); }
}

/* 法務ページ: 静止・より薄い表示 */
.suminagashi-layer.is-static .suminagashi-g-a,
.suminagashi-layer.is-static .suminagashi-g-b {
  animation: none;
}

.suminagashi-layer.is-static .suminagashi-ring.is-group-tl,
.suminagashi-layer.is-static .suminagashi-ring.is-group-br {
  opacity: 0.03;
}

.suminagashi-layer.is-static .suminagashi-tail {
  opacity: 0.025;
}

.suminagashi-layer.is-static .suminagashi-drop {
  opacity: 0.35;
}

/* ---------- A-2. セクション見出しの小さな墨流しリング ---------- */
.section-head-ring {
  position: absolute;
  width: clamp(90px, 12vw, 150px);
  height: clamp(90px, 12vw, 150px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.05;
}

.section-head-ring svg {
  display: block;
  width: 100%;
  height: 100%;
}

.section-head-ring ellipse {
  fill: none;
  stroke: #1E1A16;
  stroke-width: 1;
}

.section-head-ring.is-left {
  left: clamp(-40px, -4vw, -10px);
  top: -20%;
}

.section-head-ring.is-right {
  right: clamp(-40px, -4vw, -10px);
  top: -20%;
}

@media (max-width: 599px) {
  .section-head-ring {
    display: none;
  }
}

/* ---------- CTAセクション: 薄いリング+オレンジの一滴 ---------- */
.cta-ring {
  position: absolute;
  right: clamp(-30px, 6vw, 60px);
  top: clamp(-10px, 4vw, 20px);
  width: clamp(120px, 16vw, 200px);
  height: clamp(120px, 16vw, 200px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.06;
}

.cta-ring svg {
  display: block;
  width: 100%;
  height: 100%;
}

.cta-ring ellipse {
  fill: none;
  stroke: #1E1A16;
  stroke-width: 1;
}

.cta-ring .cta-drop {
  fill: var(--orange);
  opacity: 0.5;
}

.line-cta {
  position: relative;
  overflow: hidden;
}

.line-cta::before {
  height: 26px;
  background: linear-gradient(180deg, transparent, rgba(245, 130, 10, 0.14));
}

.line-cta::after {
  width: clamp(120px, 18vw, 240px);
  opacity: 0.8;
}

@media (max-width: 599px) {
  .cta-ring {
    width: 110px;
    height: 110px;
  }
}

/* ---------- Sumi dot (section-head accent) ---------- */
.section-head {
  position: relative;
}

.eyebrow-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.sumi-dot {
  display: inline-block;
  width: 10px;
  height: 8px;
  flex-shrink: 0;
}

.sumi-dot path {
  fill: #1E1A16;
  opacity: 0.08;
}

/* ---------- Brush stroke (H1 accent) ---------- */
.brush-stroke {
  display: block;
  overflow: visible;
}

.brush-stroke path {
  fill: none;
  stroke: var(--orange);
  opacity: 0.85;
  stroke-linecap: round;
}

.brush-underline {
  width: clamp(120px, 20vw, 220px);
  height: 14px;
  margin-top: 12px;
}

.hero-text {
  position: relative;
}

.hero-text h1 {
  position: relative;
  z-index: 1;
}

/* 「戦略を。」の行: 筆致SVGの位置決め基準(独立したスタッキングコンテキストにして、負のz-indexを局所化) */
.reveal-line-brush {
  position: relative;
  z-index: 0;
}

.brush-behind {
  position: absolute;
  left: -4%;
  width: 108%;
  top: 0.86em;
  height: 0.38em;
  z-index: -1;
  pointer-events: none;
}

.brush-behind path {
  opacity: 0.45;
}

/* ---------- H1 line reveal ---------- */
.reveal-line-wrap {
  display: block;
  overflow: hidden;
}

.reveal-line {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.is-hero-ready .reveal-line {
  transform: translateY(0);
  opacity: 1;
}

.hero-text .eyebrow,
.hero-text .lead,
.hero-text .btn,
.hero-vertical-wrap,
.hero-image,
.hero-bottom-image {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.is-hero-ready .hero-text .eyebrow,
.is-hero-ready .hero-text .lead,
.is-hero-ready .hero-text .btn,
.is-hero-ready .hero-vertical-wrap {
  opacity: 1;
  transform: translateY(0);
}

.hero-text .eyebrow {
  transition-delay: 0s;
}

.hero-text .lead {
  transition-delay: 0.55s;
}

.hero-text .btn {
  transition-delay: 0.7s;
}

.hero-vertical-wrap {
  transition-delay: 0.55s;
}

/* Hero illustration: entrance + float */
.hero-image,
.hero-bottom-image {
  transition-delay: 0.5s;
}

.is-hero-ready .hero-image,
.is-hero-ready .hero-bottom-image {
  opacity: 1;
  transform: translateY(0);
}

.is-hero-ready .hero-image .illust,
.is-hero-ready .hero-bottom-image .illust {
  animation: illust-float 6.5s ease-in-out 1.2s infinite alternate;
}

@keyframes illust-float {
  0% { transform: translateY(-6px); }
  100% { transform: translateY(6px); }
}

/* Orange accent pulse inside hero illustrations */
.illust-pulse {
  transform-origin: center;
  animation: illust-pulse 4s ease-in-out infinite;
}

@keyframes illust-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

/* ---------- Scroll hint (index hero) ---------- */
.scroll-hint {
  position: absolute;
  left: max(24px, calc((100% - var(--max-w)) / 2 + 24px));
  bottom: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 1;
}

.scroll-hint .sh-line {
  width: 1px;
  height: 32px;
  background: var(--ink-soft);
  transform-origin: top center;
  animation: sh-stretch 2.5s ease-in-out infinite;
}

.scroll-hint .sh-label {
  font-size: 10px;
  letter-spacing: 0.25em;
  color: var(--ink-soft);
  writing-mode: vertical-rl;
}

@keyframes sh-stretch {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(0.55); }
}

@media (max-width: 1023px) {
  .scroll-hint {
    display: none;
  }
}

/* ---------- Card hover micro-interactions ---------- */
.branch-card {
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
}

.branch-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
}

.branch-card:hover,
.branch-card:focus-within {
  transform: translateY(-8px);
  border-color: var(--orange);
  box-shadow: 0 24px 48px -32px rgba(30, 26, 22, 0.25);
}

.branch-card .illust {
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.branch-card:hover .illust,
.branch-card:focus-within .illust {
  transform: scale(1.04);
}

.branch-card .btn-arrow::after {
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.branch-card:hover .btn-arrow::after,
.branch-card:focus-within .btn-arrow::after {
  transform: translateX(6px);
}

/* info-card (3方式 / 対象カード) top-line hover */
.info-card {
  position: relative;
  overflow: hidden;
}

.info-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.info-card:hover::before {
  transform: scaleX(1);
}

/* ---------- CTA button sheen ---------- */
.btn-primary {
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.55) 50%, rgba(255, 255, 255, 0) 100%);
  transform: translateX(-250%) skewX(-20deg);
  opacity: 0;
  pointer-events: none;
}

.btn-primary:hover::after {
  animation: btn-sheen 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes btn-sheen {
  0% { transform: translateX(-250%) skewX(-20deg); opacity: 1; }
  100% { transform: translateX(400%) skewX(-20deg); opacity: 0; }
}

/* ---------- Header scroll blur (B-1: スクロール時はblur(14px)+ごく薄い影) ---------- */
.site-header.is-scrolled {
  background: rgba(251, 248, 243, 0.92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 4px 16px rgba(30, 26, 22, 0.06);
  transition: background-color 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

.site-header {
  transition: background-color 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

/* ---------- Timeline scroll motion ---------- */
.timeline {
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--line);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.timeline.is-visible::before {
  transform: scaleX(1);
}

.timeline-item::before {
  transform: scale(0);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0s);
}

.timeline.is-visible .timeline-item::before {
  transform: scale(1);
}

@media (max-width: 1023px) {
  .timeline::before {
    top: 0;
    left: 0;
    width: 1px;
    height: 100%;
    transform: scaleY(0);
  }
  .timeline.is-visible::before {
    transform: scaleY(1);
  }
}

/* ---------- Section number opacity reveal ---------- */
.sec-num,
.card-num,
.item-num {
  opacity: 0.2;
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.is-visible .sec-num,
.sec-num.is-visible,
.is-visible .card-num,
.card-num.is-visible,
.is-visible .item-num,
.item-num.is-visible {
  opacity: 1;
}

/* ============================================================
   D. UI/UX改善
   ============================================================ */

/* D-3. モバイル固定CTA(コースページのみ・phone幅) */
.mobile-fixed-cta {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  padding: 12px 20px calc(12px + env(safe-area-inset-bottom, 0px));
  background: rgba(251, 248, 243, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.mobile-fixed-cta .btn {
  width: 100%;
}

@media (max-width: 599px) {
  .mobile-fixed-cta {
    display: block;
  }
}

.mobile-fixed-cta.is-visible {
  transform: translateY(0);
}

/* D-4. おすすめプラン タグ */
.price-table tbody tr.is-recommended,
.price-card.is-recommended {
  border-left: 2px solid var(--orange);
}

.price-table tbody tr.is-recommended td:first-child {
  position: relative;
  padding-left: 16px;
}

.recommend-tag {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 7px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--orange-deep);
  border: 1px solid var(--orange);
  background: var(--white);
  border-radius: 2px;
  vertical-align: middle;
  white-space: nowrap;
}

.price-card.is-recommended {
  padding-left: 18px;
}

/* D-4b. 価格表示仕様(v5): 通常価格の打ち消し線/モニター価格/非アクティブ */
.price-regular {
  display: inline-block;
  color: var(--ink-soft);
  font-size: 13px;
  text-decoration: line-through;
  text-decoration-color: var(--orange);
  text-decoration-thickness: 2px;
}

.price-monitor {
  display: block;
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--orange);
  margin-top: 2px;
}

.price-table tbody tr.is-inactive,
.price-card.is-inactive {
  opacity: 0.45;
  filter: saturate(0.6);
}

.price-table tbody tr.is-inactive:hover {
  background: transparent;
  transform: none;
}

.price-card.is-inactive:hover {
  transform: none;
}

.inactive-tag {
  display: inline-block;
  margin-bottom: 4px;
  padding: 1px 7px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  border: 1px solid var(--ink-soft);
  background: var(--white);
  border-radius: 2px;
  vertical-align: middle;
  white-space: nowrap;
}

.price-table .price .inactive-tag,
.price-card .pc-price .inactive-tag {
  display: block;
  width: fit-content;
}

/* D-5. 料金表後の逡巡フォロー */
.price-hesitate {
  margin-top: 20px;
  font-size: 14px;
}

.price-hesitate a {
  color: var(--orange-deep);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

/* D-6. コースページ相互リンク */
.cross-link {
  text-align: center;
  margin-bottom: clamp(32px, 5vw, 48px);
}

.cross-link a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--orange-deep);
  min-height: 44px;
  padding: 8px 4px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.cross-link a:hover {
  border-color: var(--orange-deep);
}

/* D-7. タップ領域(モバイル ナビ・フッターリンク) */
@media (max-width: 1023px) {
  .header-links a,
  .header-cta .btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}

/* ---------- Reduced motion: disable everything ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  html {
    scroll-behavior: auto !important;
  }

  .sumi-blob,
  .scroll-hint .sh-line,
  .is-hero-ready .hero-image .illust,
  .is-hero-ready .hero-bottom-image .illust,
  .illust-pulse,
  .suminagashi-g-a,
  .suminagashi-g-b {
    animation: none !important;
  }

  .suminagashi-layer animate,
  .suminagashi-layer animateTransform,
  .sumi-bg animate,
  .brush-stroke animate {
    display: none !important;
  }

  [data-reveal],
  .fade-in,
  .reveal-line,
  .hero-text .eyebrow,
  .hero-text .lead,
  .hero-text .btn,
  .hero-vertical-wrap,
  .hero-image,
  .hero-bottom-image {
    opacity: 1 !important;
    transform: none !important;
  }

  .sec-num,
  .card-num,
  .item-num {
    opacity: 1 !important;
  }

  .branch-card:hover,
  .branch-card:focus-within {
    transform: none !important;
  }

  .btn-primary:hover::after {
    animation: none !important;
    opacity: 0 !important;
  }

  .mobile-fixed-cta {
    transition: none !important;
  }
}

/* ---------- Utility ---------- */
.text-center {
  text-align: center;
}

.mt-lg {
  margin-top: clamp(40px, 6vw, 64px);
}

@media (max-width: 599px) {
  h1, h2, h3 {
    letter-spacing: 0.04em;
  }
}


/* ============================================================
   E. Organic dividers, transparent illustrations, and customer language layout
   ============================================================ */
.section > .container,
.hero > .container {
  position: relative;
  z-index: 1;
}

.section-alt {
  background: transparent;
}

.section-pale {
  background: var(--orange-pale);
}

.section-head::after {
  content: "";
  display: block;
  width: 42px;
  height: 1px;
  margin-top: 18px;
  background: var(--orange);
  transform-origin: left;
  opacity: 0.72;
}

.section-head.center::after,
.line-cta .section-head::after {
  margin-left: auto;
  margin-right: auto;
}

.info-card,
.compare-col,
.grid-6 .sys-item,
.honesty-box,
.price-table-wrap,
.price-card,
.branch-card {
  background: rgba(255, 255, 255, 0.72);
}

.price-block {
  position: relative;
}

.price-block::before {
  content: "";
  position: absolute;
  left: -18px;
  top: 0.7em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  opacity: 0.72;
}

.price-table tbody tr,
.price-card {
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.35s ease;
}

.price-table tbody tr:hover {
  background: rgba(253, 241, 227, 0.58);
}

.price-card:hover {
  transform: translateY(-3px);
}

.illust.is-photo {
  animation: illust-soft-sway 9s ease-in-out infinite alternate;
}

@keyframes illust-soft-sway {
  0% { transform: translateY(-4px); }
  100% { transform: translateY(6px); }
}

.hero-bottom-image .illust.is-photo {
  margin-inline: auto;
  max-width: min(100%, 1040px);
}

@media (max-width: 1023px) {
  .section::after {
    opacity: 0.55;
  }
  .price-block::before {
    left: 0;
    top: -14px;
  }
}

@media (max-width: 599px) {
  .section::before,
  .section::after {
    display: none;
  }
  .illust.is-photo::before,
  .illust.is-photo::after {
    opacity: 0.7;
  }
}

@media (prefers-reduced-motion: reduce) {
  .section::after,
  .hero-vertical-wrap::before,
  .hero-vertical-wrap::after,
  .illust.is-photo,
  .illust.is-photo::before,
  .illust.is-photo::after {
    animation: none !important;
  }
}


/* ============================================================
   F'. v3 意匠システム(Fable5): 波紋・波・図の生命化
   ============================================================ */

/* ---- 1. 波紋のセクション区切り(水面のリング) ---- */
.section {
  position: relative;
}

.section::before,
.section::after {
  content: "";
  position: absolute;
  top: clamp(22px, 3.5vw, 44px);
  left: 50%;
  width: clamp(110px, 14vw, 170px);
  height: clamp(26px, 3.4vw, 42px);
  transform: translateX(-50%) scale(0.2);
  border: 1px solid rgba(30, 26, 22, 0.55);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  z-index: 0;
  animation: ripple-expand 8s cubic-bezier(0.16, 0.7, 0.3, 1) infinite;
}

.section::after {
  animation-delay: 4s;
}

@keyframes ripple-expand {
  0%   { opacity: 0; transform: translateX(-50%) scale(0.18); }
  10%  { opacity: 0.3; }
  62%  { opacity: 0; transform: translateX(-50%) scale(1); }
  100% { opacity: 0; transform: translateX(-50%) scale(1); }
}

/* CTA帯は波形境界を使うため波紋を出さない */
.line-cta::before,
.line-cta::after {
  animation: none;
  border: 0;
}

/* ---- 2. 水面の境界(CTA帯の上下・ゆっくり流れる波) ---- */
.line-cta {
  position: relative;
  overflow: hidden;
}

.line-cta::before,
.line-cta::after {
  content: "";
  position: absolute;
  left: 0;
  width: 200%;
  height: 28px;
  opacity: 1;
  border-radius: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 720 28' preserveAspectRatio='none'%3E%3Cpath d='M0 14 C60 5 120 5 180 14 C240 23 300 23 360 14 C420 5 480 5 540 14 C600 23 660 23 720 14 L720 0 L0 0 Z' fill='%23FBF8F3'/%3E%3Cpath d='M0 20 C60 11 120 11 180 20 C240 29 300 29 360 20 C420 11 480 11 540 20 C600 29 660 29 720 20' fill='none' stroke='%231E1A16' stroke-opacity='0.10' stroke-width='1'/%3E%3C/svg%3E") repeat-x;
  background-size: 720px 28px;
  pointer-events: none;
  z-index: 0;
}

.line-cta::before {
  top: -1px;
  animation: wave-drift 52s linear infinite;
}

.line-cta::after {
  top: auto;
  bottom: -1px;
  animation: wave-drift-flip 64s linear infinite;
}

@keyframes wave-drift {
  from { transform: translateX(0); }
  to   { transform: translateX(-720px); }
}

@keyframes wave-drift-flip {
  from { transform: translateX(-720px) scaleY(-1); }
  to   { transform: translateX(0) scaleY(-1); }
}

/* ---- 3. 図の生命化: ケンバーンズ+焦点からの波紋 ---- */
.illust.is-photo img {
  animation: kenburns 16s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes kenburns {
  from { transform: scale(1); }
  to   { transform: scale(1.045); }
}

.fig-ripple {
  position: absolute;
  left: var(--fx, 50%);
  top: var(--fy, 50%);
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  pointer-events: none;
  z-index: 2;
}

.fig-ripple::before,
.fig-ripple::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(245, 130, 10, 0.6);
  opacity: 0;
  animation: fig-ripple 5.5s cubic-bezier(0.16, 0.7, 0.3, 1) infinite;
}

.fig-ripple::after {
  animation-delay: 2.75s;
}

@keyframes fig-ripple {
  0%   { opacity: 0; transform: scale(0.4); }
  9%   { opacity: 0.65; }
  60%  { opacity: 0; transform: scale(5.2); }
  100% { opacity: 0; transform: scale(5.2); }
}

/* ---- 4. 写真プレースホルダーの品位 ---- */
.ph {
  background: transparent;
  border: 1px dashed rgba(30, 26, 22, 0.22);
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

.ph::before {
  content: "";
  position: absolute;
  right: 8%;
  bottom: 12%;
  width: 72px;
  height: 20px;
  border: 1px solid rgba(30, 26, 22, 0.10);
  border-radius: 50%;
  pointer-events: none;
}

/* ---- 5. reduced-motion ---- */
@media (prefers-reduced-motion: reduce) {
  .section::before,
  .section::after,
  .line-cta::before,
  .line-cta::after,
  .illust.is-photo img,
  .fig-ripple::before,
  .fig-ripple::after {
    animation: none !important;
  }
}


/* ---------- v4: 改行制御 ---------- */
.section-head h2, .branch-card h2, .info-card h3, .line-cta h2, .hero-grid h2 {
  text-wrap: balance;
}

h1 .reveal-line {
  word-break: keep-all;
  overflow-wrap: normal;
}

.lead, .cta-note, .card-sub, .info-card p, .sys-item p {
  text-wrap: pretty;
}

.price, .pc-price, .recommend-tag, .price-old {
  white-space: nowrap;
}

/* v5: 通常価格+モニター価格の2行表示は折返しを許可(3幅共通) */
.price:has(.price-monitor),
.pc-price:has(.price-monitor) {
  white-space: normal;
}

/* ===== 3本柱目：AI×朝活コミュニティ 先行受付バンド（index） ===== */
.branch-note {
  margin-top: clamp(24px, 4vw, 48px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: clamp(24px, 3vw, 40px);
}
.branch-note-link { display: block; color: inherit; text-decoration: none; }
.branch-note h3 {
  margin: .4em 0 .7em;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .6em;
}
.branch-note-tag {
  font-size: .62em;
  font-weight: 500;
  letter-spacing: .04em;
  padding: .25em .8em;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft, #6b625a);
  white-space: nowrap;
}
.branch-note p { margin-bottom: 1.2em; }

/* ===== COURSE 01 コミュニティ特集カード（index・全幅） ===== */
.branch-feature {
  margin-bottom: clamp(24px, 4vw, 48px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: clamp(24px, 3vw, 40px);
}
.branch-feature .branch-card-link { display: block; color: inherit; text-decoration: none; }

/* ===== 3コース横並び（コミュニティ COURSE 01 追加に伴う3カラム化） ===== */
.branch-grid.branch-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 860px) {
  .branch-grid.branch-grid-3 { grid-template-columns: 1fr; }
}

/* ===== 代表ポートレート: 波紋円・動きを無効化 ===== */
.illust.is-photo.is-static { animation: none; }
.illust.is-photo.is-static img { animation: none; }
