/* /pricing page. Loaded after the LP's brand-lp.css and reuses its tokens
   (--pink, --coral, --ink, --paper), type (Arial + Hiragino, 600/800/900),
   header, marquee, section-kicker, faq-list and footer. Light-only, like the LP.
   Plan colors: 無料 = ink, スタンダード (おすすめ) = the selected gender's color
   (女性 pink / 男性 teal, as on the LP), プレミアム = gold, which neither gender uses. */
:root {
  --teal: #1593aa;      /* LP "男性" price color */
  --teal-ink: #0f7a8d;  /* teal for small text, 4.9:1 on white */
  --teal-tint: #eaf6f8;
  --pink-tint: #fff2f8;
  --gold: #f2c94c;      /* premium fills, with ink text on top */
  --gold-deep: #c99412; /* premium marks and borders */
  --gold-ink: #8a6400;  /* premium text on white, 5.3:1 */
  --gold-tint: #fdf7e3;
  --lime: #d1ff1d;      /* LP registration-banner lime */
  --muted: #8a8f93;     /* × marks, used at 600+ weight */
  --line: #e7e8ea;
  --white: #fff;
  --header-h: 70px;
  --crown: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23c99412' d='M3 8l4.5 3.5L12 5l4.5 6.5L21 8l-2 10H5z'/%3E%3C/svg%3E");
}
[hidden] { display: none !important; }
html { scroll-padding-top: calc(var(--header-h) + 16px); }
.site-header { top: env(safe-area-inset-top, 0px); }
.header-inner > a:first-child { width: 110px; }
.sp { display: none; }
@media (max-width: 700px) { .sp { display: inline; } .pc { display: none; } }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.nw { display: inline-block; }

/* ---------- Shared section bits ---------- */
.pr-section h2, .plans-title { margin-bottom: 14px; }
.plans-title { font-size: clamp(30px, 3.9vw, 48px); }
.pr-section--white { background: var(--white); }
.pr-intro { font-size: clamp(16px, 1.8vw, 18px); font-weight: 800; margin-bottom: 32px; }
#plans { padding-top: clamp(40px, 5vw, 64px); }

/* Gender-dependent bits: accent for スタンダード, permission cells. */
.plan-panel { --accent: var(--pink); --accent-ink: var(--pink); --accent-tint: var(--pink-tint); }
.plan-panel[data-gender="male"] { --accent: var(--teal); --accent-ink: var(--teal-ink); --accent-tint: var(--teal-tint); }
[data-gender-scope][data-gender="female"] .g-m,
[data-gender-scope][data-gender="male"] .g-f { display: none; }

/* ---------- Gender tabs ---------- */
.gender-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 560px;
  margin: 0 auto;
  border-bottom: 4px solid var(--tab-color, var(--pink));
}
.gender-tabs:has(.gender-tab--male[aria-selected="true"]) { --tab-color: var(--teal); }
.gender-tab {
  border: 0;
  border-radius: 18px 18px 0 0;
  padding: 14px 10px 12px;
  background: #e9eaec;
  color: #666;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: .12em;
  transition: background .15s ease, color .15s ease;
}
.gender-tab + .gender-tab { margin-left: 6px; }
.gender-tab[aria-selected="true"] { color: var(--white); }
.gender-tab--female[aria-selected="true"] { background: var(--pink); }
.gender-tab--male[aria-selected="true"] { background: var(--teal); }
.gender-tab:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.period-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; max-width: 320px; margin: 12px auto 0; }
.period-tab { border: 0; border-radius: 10px; padding: 8px 10px; background: #e9eaec; color: #666; font-size: 14px; font-weight: 900; }
.period-tab[aria-selected="true"] { background: var(--pink); color: var(--white); }
.period-tabs[data-gender="male"] .period-tab[aria-selected="true"] { background: var(--teal); }
.period-tab:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }

/* ---------- 3 plan cards ---------- */
.plans3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
  max-width: 1040px;
  margin: 40px auto 24px;
}
.pl {
  position: relative;
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: 24px;
  padding: 28px 22px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.pl--free { border-color: var(--ink); }
.pl--std {
  border: 4px solid var(--accent);
  transform: translateY(-14px);
  padding-top: 34px;
}
.pl--pre { border-color: var(--gold-deep); background: linear-gradient(var(--gold-tint), var(--white) 55%); }
.pl__badge {
  position: absolute;
  top: -17px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--lime);
  color: #111;
  border: 2px solid #111;
  border-radius: 999px;
  padding: 3px 18px;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .1em;
  white-space: nowrap;
}
.pl__ribbon {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--gold);
  border-radius: 999px;
  padding: 3px 14px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}
.pl .pl__name { margin: 0; font-size: 22px; line-height: 1.25; }
.pl.pl--std .pl__name { color: var(--accent-ink); font-size: 26px; }
.pl--pre .pl__name { color: var(--gold-ink); }
.pl__lead { margin: 2px 0 14px; font-size: 14px; font-weight: 800; line-height: 1.5; min-height: 1.5em; }
.pl__price { margin: 0; display: flex; align-items: baseline; justify-content: center; gap: 2px; line-height: 1; }
.pl__price strong { font-size: clamp(40px, 4.4vw, 52px); font-weight: 900; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.pl--std .pl__price strong { color: var(--accent); font-size: clamp(46px, 5vw, 60px); }
.pl--pre .pl__price strong { color: var(--gold-ink); }
.pl__yen { font-size: 18px; font-weight: 900; }
.pl__unit { font-size: 13px; font-weight: 900; white-space: nowrap; }
.pl__price small { font-size: 13px; font-weight: 900; margin-right: 4px; }
.pl__meta { margin: 8px 0 0; font-size: 12px; font-weight: 800; color: #666; }
.pl--std .pl__meta { color: var(--accent-ink); }
.pl__value {
  margin: 12px 0 0;
  padding: 6px 12px;
  border-radius: 10px;
  background: var(--accent-tint);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
}
.pl__value b { color: var(--accent-ink); font-size: 16px; }
.pl__points {
  list-style: none;
  margin: 18px 0 0;
  padding: 16px 0 0;
  border-top: 1px dashed var(--line);
  width: 100%;
  display: grid;
  gap: 8px;
  text-align: left;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.55;
}
.pl__points li { position: relative; padding-left: 24px; }
.pl__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 16px;
  height: 16px;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.2l2.6 2.5L12 5.4' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}
.pl--std .pl__points li::before { background-color: var(--accent); }
.pl--pre .pl__points li::before { background-color: var(--gold-deep); }
.pl__points b { font-weight: 900; }
.pl--std .pl__points b { color: var(--accent-ink); }
.pl--pre .pl__points b { color: var(--gold-ink); }

.crown {
  display: inline-block;
  flex: none;
  width: 1.05em;
  height: 1.05em;
  background: var(--crown) center / contain no-repeat;
  vertical-align: -.12em;
}
.pl__points .crown { position: absolute; left: 0; top: 3px; width: 16px; height: 16px; }
.pl__points li:has(.crown)::before { display: none; }

/* ---------- Campaign banner (inside the plan panel; opens the details dialog) ---------- */
.camp { max-width: 1040px; margin: 0 auto 28px; }
.camp__banner { display: block; width: min(520px, 100%); margin: 0 auto; padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: var(--lime); cursor: pointer; }
.camp__banner img { display: block; width: 100%; height: auto; }
.camp__banner:focus-visible { outline: 4px solid var(--ink); outline-offset: 4px; }

/* ---------- Comparison table (4 columns) ---------- */
.cmp-wrap { max-width: 1040px; margin-inline: auto; background: var(--white); border-radius: 24px; padding: 8px 8px 12px; }
.cmp { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.cmp__c-plan { width: 19%; }
.cmp thead th {
  position: sticky;
  top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
  z-index: 2;
  background: var(--white);
  padding: 8px 5px 10px;
  vertical-align: bottom;
}
.cmp__corner { text-align: left; }
.cmp__legend { display: grid; gap: 4px; font-size: 12px; font-weight: 800; line-height: 1.4; }
.cmp__legend > span:first-child { color: var(--accent-ink); }
.cmp__legend > span:last-child { color: var(--gold-ink); }
.cmp__legend .crown { margin-right: 4px; }
/* Plain text headers: plan name in its column color, price in ink. */
.cmp__head > span { display: block; }
.cmp__head .cmp__rec { display: inline-block; margin-bottom: 4px; padding: 1px 10px; border-radius: 999px; background: var(--lime); color: #111; font-size: 11px; font-weight: 900; letter-spacing: .04em; }
.cmp__head .cmp__plan { font-size: 17px; font-weight: 900; line-height: 1.35; }
.cmp__head .cmp__price { margin-top: 2px; font-size: 13px; font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--ink); }
.cmp__head--free .cmp__plan { color: var(--ink); }
.cmp__head--std .cmp__plan { color: var(--accent-ink); }
.cmp__head--pre .cmp__plan { color: var(--gold-ink); }
.cmp__group th {
  text-align: left;
  padding: 22px 14px 8px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .06em;
  color: #666;
  border-bottom: 2px solid var(--ink);
}
.cmp tbody:first-of-type .cmp__group th { padding-top: 12px; }
.cmp tbody th[scope="row"], .cmp tbody td { border-bottom: 1px solid var(--line); padding: 15px 12px; }
.cmp tbody th[scope="row"] { text-align: left; font-size: 16px; font-weight: 800; line-height: 1.5; }
.cmp tbody td { text-align: center; }
.cmp tbody td:nth-child(3) { background: var(--accent-tint); }
.cmp tbody td:nth-child(4) { background: var(--gold-tint); }
/* ★ + accent only where スタンダード adds the feature for the selected gender; crown = プレミアム限定. */
.cmp__star { font-style: normal; color: var(--accent-ink); margin-right: 6px; font-size: .9em; }
.cmp tr.up-both th[scope="row"],
.plan-panel[data-gender="male"] .cmp tr.up-male th[scope="row"] { color: var(--accent-ink); }
.plan-panel[data-gender="female"] .cmp tr.up-male .cmp__star { display: none; }
.cmp tr.pre-only th[scope="row"] { color: var(--gold-ink); }
.cmp tr.pre-only .crown { margin-right: 6px; }
.ok { display: inline-block; width: 26px; height: 26px; border: 3px solid var(--ink); border-radius: 50%; vertical-align: middle; }
.ok--std { border-color: var(--accent); background: var(--accent); box-shadow: inset 0 0 0 4px var(--white); }
.ok--pre { border-color: var(--gold-deep); background: var(--gold-deep); box-shadow: inset 0 0 0 4px var(--white); }
.no { color: var(--muted); font-size: 22px; font-weight: 600; line-height: 1; }
.cmp__text { font-size: 14px; font-weight: 900; line-height: 1.35; display: inline-block; }
.cmp__text--std { color: var(--accent-ink); }
.cmp__text--pre { color: var(--gold-ink); }

/* ---------- Payment terms (smaller type: reference information) ---------- */
.fee-terms {
  max-width: 1040px;
  margin: 36px auto 0;
  padding: 22px 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
}
.fee-terms h3 { font-size: 15px; margin: 0 0 8px; }
.fee-terms dl { margin: 0; display: grid; }
.fee-terms dl > div { display: grid; grid-template-columns: 9em 1fr; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); }
.fee-terms dt { font-size: 12px; font-weight: 900; }
.fee-terms dd { margin: 0; font-size: 12px; font-weight: 600; line-height: 1.75; min-width: 0; }
.fee-terms__link { margin: 12px 0 0; font-size: 12px; font-weight: 700; }
.fee-terms__link a { color: var(--pink); font-weight: 900; text-underline-offset: 4px; }

/* ---------- Campaign details dialog ---------- */
.camp-dialog {
  width: min(560px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  margin: auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 3px solid var(--gold-deep);
  border-radius: 24px;
  background: var(--white);
  color: var(--ink);
}
.camp-dialog::backdrop { background: rgba(10, 10, 10, .6); }
.camp-dialog__inner { position: relative; padding: 28px 26px 22px; }
.camp-dialog__x { position: absolute; top: 10px; right: 12px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--paper); color: var(--ink); font-size: 24px; line-height: 1; }
.camp-dialog__kicker { display: inline-block; margin: 0 0 8px; padding: 2px 12px; border-radius: 999px; background: var(--ink); color: var(--gold); font-size: 12px; font-weight: 900; }
.camp-dialog h2 { margin: 0 0 12px; font-size: 22px; }
.camp-dialog dl { margin: 0; display: grid; }
.camp-dialog dl > div { display: grid; grid-template-columns: 6.5em 1fr; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.camp-dialog dt { font-size: 13px; font-weight: 900; }
.camp-dialog dd { margin: 0; font-size: 14px; font-weight: 600; line-height: 1.75; min-width: 0; }
.camp-dialog__cta { display: block; margin-top: 18px; padding: 14px; border-radius: 999px; background: var(--pink); color: var(--white); text-align: center; text-decoration: none; font-size: 16px; font-weight: 900; }
.camp-dialog__close { display: block; width: 100%; margin-top: 10px; padding: 12px; border: 2px solid var(--ink); border-radius: 999px; background: var(--white); color: var(--ink); font-size: 15px; font-weight: 900; }
.camp-dialog__x:focus-visible, .camp-dialog__close:focus-visible, .camp-dialog__cta:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

/* ---------- FAQ (LP .faq-list) + caution ---------- */
.pr-caution { margin-top: 32px; padding: 22px 26px; border-radius: 20px; border: 1px solid var(--line); background: var(--white); }
.pr-caution h3 { margin: 0 0 8px; font-size: 16px; }
.pr-caution ul { margin: 0; padding-left: 1.3em; display: grid; gap: 2px; font-size: 12px; font-weight: 600; color: #777; line-height: 1.75; }

/* ---------- Trial banner (bottom) ---------- */
.pr-cta { padding-bottom: clamp(70px, 8vw, 112px); }
.pr-cta .content-narrow { margin-top: clamp(40px, 6vw, 70px); }
.pr-trial { display: block; width: min(650px, 100%); margin: 0 auto; border-radius: 20px; }
.pr-trial img { display: block; width: 100%; height: auto; }
.pr-trial:focus-visible { outline: 4px solid var(--ink); outline-offset: 5px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .plans3 { grid-template-columns: 1fr; gap: 26px; max-width: 520px; }
  .pl--std { transform: none; }
}
@media (max-width: 700px) {
  .header-inner > a:first-child { width: 90px; }
  .pr-section h2, .plans-title { font-size: 30px; }

  .gender-tab { font-size: 18px; padding: 12px 8px 10px; border-radius: 14px 14px 0 0; }
  .plans3 { margin-top: 34px; }
  .pl { padding: 24px 18px 20px; border-radius: 20px; }
  .pl--std { padding-top: 28px; }


  .cmp-wrap { margin-inline: -14px; padding: 4px 2px 10px; border-radius: 18px; }
  .cmp__c-plan { width: 22.5%; }
  .cmp thead th { padding: 6px 2px 8px; }
  .cmp__legend { font-size: 10px; gap: 3px; }
  .cmp__head .cmp__rec { font-size: 9px; padding: 0 6px; }
  .cmp__head .cmp__plan { font-size: 13px; letter-spacing: -.03em; }
  .cmp__head .cmp__price { font-size: 10px; letter-spacing: -.02em; }
  .cmp__group th { padding: 18px 8px 6px; font-size: 12px; }
  .cmp tbody th[scope="row"], .cmp tbody td { padding: 12px 4px; }
  .cmp tbody th[scope="row"] { font-size: 13px; padding-left: 8px; line-height: 1.45; }
  .cmp__star, .cmp tr.pre-only .crown { margin-right: 2px; }
  .ok { width: 20px; height: 20px; border-width: 2.5px; }
  .ok--std, .ok--pre { box-shadow: inset 0 0 0 3px var(--white); }
  .no { font-size: 18px; }
  .cmp__text { font-size: 12px; }
  
  .fee-terms { padding: 18px 16px; }
  .fee-terms dl > div { grid-template-columns: 1fr; gap: 2px; }
  .camp-dialog__inner { padding: 24px 18px 18px; }
  .camp-dialog h2 { font-size: 20px; padding-right: 40px; }
  .camp-dialog dl > div { grid-template-columns: 1fr; gap: 2px; }

  .pr-caution { padding: 18px; }
}
@media (max-width: 370px) {
  .cmp tbody th[scope="row"] { font-size: 12px; }
}
