/**
 * ALVARA 下層ページ共通（member_plans.html 準拠）
 * 参照: swell_child/member_plans.html
 */

/* ========== Anchor ========== */
.anchor-wrap {
      position: sticky; top: var(--header-h); z-index: 60;
      background: rgba(250,250,249,0.96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
      border-bottom: 1px solid var(--line);
}
.anchor-list { max-width: 1320px; margin: 0 auto !important; padding: 0.9rem var(--space); list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1.5rem; }
.anchor-list a { font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.anchor-list a:hover { color: var(--ink); opacity: 1; }

/* ========== Section ========== */
.section { padding: clamp(4rem, 9vw, 7rem) var(--space); border-top: 1px solid var(--line-soft); }
.section:first-of-type { border-top: none; }
.section--warm { background: var(--paper-warm); }
.section-inner { max-width: 1040px; margin: 0 auto !important; }
.section-inner--narrow { max-width: 720px; }
.eyebrow { font-size: 10.5px; font-weight: 500; letter-spacing: 0.32em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.5rem !important; }
.sec-title { font-family: var(--font-serif); font-weight: 400; letter-spacing: 0.03em; line-height: 1.25; font-size: clamp(1.6rem, 3.4vw, 2.4rem); color: var(--ink); margin-bottom: 1.5rem !important; }
.sec-lead { font-size: 14px; font-weight: 300; line-height: 2; color: var(--ink-soft); max-width: 42em; margin-bottom: 2.5rem !important; }
#personal .sec-lead {
      text-align: justify;
      text-align-last: left;
}
.u-text-justify {
      text-align: justify;
      text-align-last: left;
}

/* ========== Buttons ========== */
.alvara-site-page .btn,
.alvara-site-page a.btn { display: inline-block; font-size: 11px; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; padding: 1.1em 2.5em; border: 1px solid currentColor; cursor: pointer; white-space: nowrap; transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease); }
.alvara-site-page a.btn--primary { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.alvara-site-page a.btn--primary:hover { background: transparent; color: var(--ink); opacity: 1; }
.alvara-site-page a.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.alvara-site-page a.btn--ghost:hover { background: var(--ink); color: var(--paper); opacity: 1; }
.alvara-site-page .cta a.btn--primary { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.alvara-site-page .cta a.btn--primary:hover { background: transparent; color: var(--paper); opacity: 1; }
.alvara-site-page .cta a.btn--ghost { color: var(--paper); border-color: rgba(255,255,255,0.45); }
.alvara-site-page .cta a.btn--ghost:hover { background: rgba(255,255,255,0.08); border-color: var(--paper); opacity: 1; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; margin-top: 2.5rem !important; }

/* ========== Plan grid（コンパクトビジュアル＋料金） ========== */
.plan-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; margin-top: 1rem !important; }
@media (max-width: 900px) { .plan-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .plan-grid { grid-template-columns: 1fr; } }
.plan-cell { display: flex; flex-direction: column; gap: 0.75rem; }
.plan-card { border: 1px solid var(--line-soft); background: var(--paper); display: flex; flex-direction: column; transition: border-color 0.3s var(--ease); flex: 1; }
.plan-card:hover { border-color: var(--line); }
.plan-card-visual {
      aspect-ratio: 5 / 3;
      max-height: 7.5rem;
      display: flex; flex-direction: column;
      align-items: center; justify-content: center; gap: 0.3rem;
      padding: 0.85rem 0.75rem;
      background: var(--paper-warm); border-bottom: 1px solid var(--line-soft);
}
.plan-card-num {
      font-family: var(--font-system);
      font-weight: 400;
      font-size: clamp(1.85rem, 3.2vw, 2.5rem); line-height: 1;
      color: var(--ink);
}
.plan-card-unit {
      font-family: var(--font-sans); font-size: 10px; font-weight: 400;
      letter-spacing: 0.18em; color: var(--muted);
}
.plan-card-body { padding: 1.15rem 1.15rem 1.35rem; display: flex; flex-direction: column; flex: 1; }
.plan-badge {
      display: block; text-align: center; margin: 0 !important;
      font-size: 14px; font-weight: 400; letter-spacing: 0.16em;
      color: var(--ink); line-height: 1.4;
}
.plan-badge--spacer { visibility: hidden; user-select: none; pointer-events: none; }
.plan-card-body h3 {
      font-family: var(--font-sans); font-size: 1.05rem; font-weight: 400;
      letter-spacing: 0.08em; color: var(--ink); margin-bottom: 0.75rem !important;
}
.plan-price { font-family: var(--font-system); font-size: 1.75rem; font-weight: 500; color: var(--ink); line-height: 1; }
.plan-price-sub { font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-top: 0.35rem !important; }
.plan-summary { font-size: 12.5px; font-weight: 300; line-height: 1.8; color: var(--muted); margin: 1rem 0 !important; text-align: justify; text-align-last: left; }

/* SP：回数ラベル内だけ「4」「回／月」を横並び */
@media (max-width: 720px) {
      .plan-card-visual {
        flex-direction: row;
        align-items: baseline;
        justify-content: flex-start;
        gap: 0.35rem;
        aspect-ratio: auto;
        max-height: none;
        padding: 0.7rem 1.15rem;
      }
      .plan-card-unit { letter-spacing: 0.1em; }
}
.plan-acc { border-top: 1px solid var(--line-soft); margin-top: auto !important; }
.plan-acc summary { cursor: pointer; list-style: none; padding: 0.85rem 0 0.35rem; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); display: flex; justify-content: space-between; align-items: center; }
.plan-acc summary::-webkit-details-marker { display: none; }
.plan-acc summary::after { content: "+"; font-size: 1.1rem; }
.plan-acc[open] summary::after { content: "–"; }
.plan-acc-body { font-size: 12px; font-weight: 300; line-height: 1.8; color: var(--muted); padding-bottom: 0.5rem; }
.plan-cta { margin-top: 1.25rem !important; }
.alvara-site-page a.btn-block { display: block; text-align: center; font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; padding: 0.9em 1em; border: 1px solid var(--ink); color: var(--ink); }
.alvara-site-page a.btn-block:hover { background: var(--ink); color: var(--paper); opacity: 1; }

/* ========== 初回無料 CTA（個人プラン直下） ========== */
.first-free-cta {
      margin-top: clamp(2.5rem, 5vw, 3.5rem) !important;
      border: 1px solid var(--line-soft);
      border-left: 3px solid #6f7f6e;
      background: #fff;
      padding: clamp(2.25rem, 5vw, 3rem) clamp(1.75rem, 4vw, 2.75rem);
      text-align: center;
}
.first-free-cta .eyebrow { margin-bottom: 1rem !important; color: #6f7f6e; }
.first-free-cta .sec-title {
      font-size: clamp(1.45rem, 3.2vw, 2rem);
      margin-bottom: 1rem !important;
}
.first-free-cta__lead {
      font-size: 14px;
      font-weight: 300;
      line-height: 2;
      color: var(--ink-soft);
      max-width: 36em;
      margin: 0 auto 1.75rem !important;
}
.first-free-cta .btn-row { justify-content: center; margin-top: 0 !important; }
.first-free-cta__note {
      margin-top: 1.25rem !important;
      font-size: 11px;
      letter-spacing: 0.06em;
      color: var(--muted);
}

/* ========== EAP box ========== */
.eap-box { border: 1px solid var(--line); border-left: 3px solid var(--ink); padding: 2rem 2.25rem; background: var(--paper); margin-top: 1rem !important; }
.eap-price-row {
      display: flex;
      flex-wrap: wrap;
      align-items: baseline;
      justify-content: space-between;
      gap: 0.5rem 1.5rem;
}
.eap-price { font-family: var(--font-system); font-size: 2.5rem; font-weight: 500; color: var(--ink); line-height: 1; margin: 0 !important; }
.eap-contract-note { font-size: 12px; color: var(--muted); letter-spacing: 0.04em; margin: 0 !important; white-space: nowrap; }
.eap-box > p { font-size: 13.5px; font-weight: 300; line-height: 1.9; color: var(--ink-soft); margin-top: 1rem !important; }
.eap-price-unit { font-family: var(--font-sans); font-size: 0.3em; font-weight: 400; color: var(--muted); letter-spacing: 0.08em; }

/* ========== 心理検査（料金表＋詳細） ========== */
.price-table--exam { margin-top: 1rem !important; }
.price-table--exam > li {
      padding-top: 1.15rem;
      padding-bottom: 1.25rem;
}
.exam-lead {
      width: 100%;
      margin: 0.45rem 0 0 !important;
      font-size: 12.5px;
      font-weight: 300;
      line-height: 1.75;
      color: var(--muted);
}
.exam-acc { width: 100%; margin-top: 0.65rem !important; }
.exam-acc summary {
      cursor: pointer;
      list-style: none;
      font-size: 11px;
      letter-spacing: 0.1em;
      color: var(--ink);
      display: inline-flex;
      align-items: center;
      gap: 0.35rem;
}
.exam-acc summary::-webkit-details-marker { display: none; }
.exam-acc summary::after { content: "+"; font-size: 1.05rem; color: var(--muted); }
.exam-acc[open] summary::after { content: "–"; }
.exam-acc-body {
      margin-top: 0.65rem !important;
      font-size: 12px;
      font-weight: 300;
      line-height: 1.85;
      color: var(--muted);
}

/* ========== 追加料金・料金表 ========== */
.price-table { list-style: none; margin: 1.25rem 0 0 !important; border-top: 1px solid var(--line-soft); }
.price-table li {
      display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 0.75rem 1rem;
      padding: 1.1rem 0; border-bottom: 1px solid var(--line-soft);
      font-size: 13.5px; font-weight: 300; line-height: 1.85; color: var(--ink-soft);
}
.price-table li:last-child { border-bottom: none; }
.price-table__name {
      flex: 1 1 12rem;
      font-family: var(--font-sans);
      font-size: 1.05rem;
      font-weight: 400;
      color: var(--ink);
      letter-spacing: 0.08em;
      line-height: 1.5;
}
.price-table__name-block {
      flex: 1 1 12rem;
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      min-width: 0;
      padding-right: 0.5rem;
}
.price-table__name-block .price-table__name {
      flex: none;
      width: 100%;
}
.price-table__sub {
      display: block;
      width: 100%;
      margin: 0.5rem 0 0 !important;
      padding: 0;
      font-size: 11px;
      font-weight: 300;
      color: var(--muted);
      letter-spacing: 0.04em;
      line-height: 1.65;
}
.price-table__row--multi {
      padding-top: 1.15rem;
      padding-bottom: 1.25rem;
}
.text-block p:not(.price-table__price):not(.price-table__price-note) { font-size: 14px; font-weight: 300; line-height: 1.95; color: var(--ink-soft); margin-bottom: 1rem !important; }
.text-block p:last-child { margin-bottom: 0 !important; }
.pricing-note {
      margin-top: 1.75rem !important;
      border: 1px solid var(--line-soft);
      border-left: 3px solid var(--ink);
      padding: 1.25rem 1.35rem;
      background: var(--paper);
}
.pricing-note p { font-size: 13px; font-weight: 300; line-height: 1.9; color: var(--ink-soft); margin: 0 !important; }
.pricing-note p + p { margin-top: 0.65rem !important; }
.pricing-note strong { font-weight: 500; color: var(--ink); }

/* ========== FAQ details ========== */
.faq-link { border-bottom: 1px solid var(--line-soft); }
.faq-link summary { cursor: pointer; list-style: none; padding: 1.25rem 0; font-family: var(--font-serif); font-size: 1.1rem; font-weight: 500; letter-spacing: 0.04em; color: var(--ink); display: flex; justify-content: space-between; align-items: center; }
.faq-link summary::-webkit-details-marker { display: none; }
.faq-link summary::after { content: "+"; font-size: 1.3rem; color: var(--muted); }
.faq-link[open] summary::after { content: "–"; }
.faq-link p { font-size: 13px; font-weight: 300; line-height: 1.9; color: var(--muted); padding-bottom: 1.25rem; }

/* ========== Related grid ========== */
/* ========== Related grid（2×2・背景画像対応） ========== */
/* 関連ページ（ご利用方法と同幅 920px） */
#related.section { padding: clamp(4rem, 9vw, 7rem) var(--space); }
#related .section-inner { max-width: 920px; }

.related-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; margin-top: 1.5rem !important; }
@media (max-width: 600px) { .related-grid { grid-template-columns: 1fr; } }
.related-card {
      position: relative; overflow: hidden; isolation: isolate; min-height: 250px;
      display: flex; flex-direction: column; justify-content: flex-end;
      padding: 1.85rem; color: #fff; background: var(--ink);
}
.related-card .rc-bg {
      position: absolute; inset: 0; z-index: -2; background-color: #3a352f;
      background-size: cover; background-position: center; transition: transform 0.9s var(--ease);
}
.related-card::after {
      content: ""; position: absolute; inset: 0; z-index: -1;
      background: linear-gradient(180deg, rgba(26,26,26,0.12) 0%, rgba(26,26,26,0.45) 45%, rgba(26,26,26,0.82) 100%);
}
.related-card:hover { opacity: 1; }
.related-card:hover .rc-bg { transform: scale(1.06); }
.related-card strong { display: block; font-family: var(--font-serif); font-size: 1.45rem; font-weight: 500; letter-spacing: 0.04em; color: #fff; margin-bottom: 0.65rem !important; }
.related-card p { font-size: 12.5px; font-weight: 300; color: rgba(255,255,255,0.82); line-height: 1.85; margin-bottom: 1.15rem !important; }
/* ========== CTA ========== */
.cta { position: relative; isolation: isolate; overflow: hidden; background: var(--ink); color: var(--paper); text-align: center; padding: clamp(4rem, 9vw, 6rem) var(--space); }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url('../images/cta-bg.jpg') center/cover no-repeat; }
.cta::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(26,26,26,0.74) 0%, rgba(26,26,26,0.82) 100%); }
.cta-inner { max-width: 640px; margin: 0 auto !important; }
.cta .eyebrow { color: var(--muted-on-dark); }
.cta h2 { font-family: var(--font-serif); font-weight: 300; font-size: clamp(1.6rem, 4vw, 2.6rem); line-height: 1.3; color: var(--paper); margin-bottom: 1.25rem !important; }
.cta p { font-size: 13.5px; font-weight: 300; line-height: 1.9; color: var(--muted-on-dark); margin-bottom: 2rem !important; }
.cta .btn-row { justify-content: center; margin-top: 0 !important; }

@media (max-width: 860px) {
	.anchor-wrap { display: none; }
	.sec-title { font-size: clamp(1.5rem, 6.5vw, 2rem); }
}

/* 料金表：追加カウンセリング・心理検査で同一（外部CSSより後に固定） */
.price-table__price-col {
      flex: 0 0 auto;
      text-align: right;
      align-self: flex-start;
}
.price-table__price-col .price-table__price {
      margin: 0 !important;
      font-family: var(--font-system) !important;
      font-size: 16px !important;
      font-weight: 500 !important;
      font-style: normal !important;
      color: var(--ink) !important;
      line-height: 1 !important;
      letter-spacing: 0.03em !important;
      white-space: nowrap;
}
.price-table__price-col .price-table__price-note {
      margin: 0.35rem 0 0 !important;
      font-family: var(--font-sans) !important;
      font-size: 10.5px !important;
      font-weight: 400 !important;
      font-style: normal !important;
      letter-spacing: 0.12em !important;
      text-transform: uppercase !important;
      color: var(--muted) !important;
      line-height: 1.4 !important;
      white-space: nowrap;
}
