/* The EC page's chapter 「サービスと費用」 (structure 2, 2026-11-17; owner: 「2かな」, then 「いったんそれで公開していいよ」).
   The plan cards (who the plan is for, the fee, the period, three points, a way to the form), on colour B: the
   contact section's opal light behind frosted cards, the middle card solid white with a light rim (owner's pick of
   the colour options: 「オパールの光に、すりガラスのカード」). Under the cards, one band that is always open (what
   every plan includes / what is paid apart / what changes the amount), then the steps with the period and AI visuals
   in one row. The words are written by tools/ec-pricing/build.py. The thermal receipt, the strengths and flow
   sections and the other colour options stayed on the preview branch (preview/sales-20261116). */

.plans {
  --paper: #f0eee7; /* the Top page's paper */
  --card: #faf8f3; /* a shade lighter */
  --ink: #111;
  --soft: #6b655d; /* warm grey */
  display: grid;
  gap: 38px;
  margin: 0;
  padding: 86px var(--campaign-pad) 92px;
  background: var(--paper);
  color: var(--ink);
}

/* The heading: label, promise, one line of reassurance under it (Deacon's order), centred */
.plans-head {
  display: grid;
  justify-items: center;
  gap: 14px;
  text-align: center;
}
.plans-label {
  margin: 0;
  color: var(--soft);
  font-size: 13px;
  letter-spacing: 0.12em;
}

/* The cards: a shade lighter than the paper, large corners, no line, no shadow; only who, how much and how long */
.plans-track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  width: min(100%, 1240px);
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin: 0; /* Web Awesome gives every li a margin */
  padding: 36px 34px 32px;
  border-radius: 24px;
  background: var(--card);
}
.plan-name {
  margin: 0 0 22px;
  color: var(--ink);
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-weight: 400;
  font-size: 23px;
  line-height: 1.5;
  letter-spacing: 0.04em;
}
/* each phrase wraps whole (make_html2: 「ブランドの／売り場を設計する」, never 「ブランドの売／り場」) */
.plan-name > span {
  display: inline-block;
}
.plan-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0 6px;
  margin: auto 0 10px;
}
.plan-amount {
  font-family: Manrope, "Noto Sans JP", sans-serif;
  font-weight: 300;
  font-size: 60px;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.plan-unit {
  font-size: 16px;
  letter-spacing: 0.04em;
}
.plan-tax {
  color: var(--soft);
  font-size: 12px;
  letter-spacing: 0.04em;
}
.plan-period {
  display: flex;
  flex-wrap: wrap;
  gap: 0 12px;
  margin: 0 0 22px;
  color: var(--soft);
  font-size: 13px;
  letter-spacing: 0.04em;
}
.plan-period > span {
  white-space: nowrap;
}
.plan-period > span:last-child {
  color: var(--ink);
}
/* What the plan makes, in three short points, so the cards read at a glance (owner 2026-11-16: 「情報が視覚的に
   入ってこない」) */
.plan-points {
  display: grid;
  gap: 7px;
  margin: 0 0 26px;
  padding: 18px 0 0;
  border-top: 1px solid var(--rule-soft, rgb(17 17 17 / 0.08));
  list-style: none;
  font-size: 13.5px;
  line-height: 1.5;
  letter-spacing: 0.04em;
}
.plan-points li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0;
}
.plan-points li::before {
  content: "";
  flex: none;
  width: 11px;
  height: 7px;
  translate: 0 -2px;
  border: solid var(--accent, var(--ink));
  border-width: 0 0 1.75px 1.75px;
  rotate: -45deg;
}
/* Each card's own way to the form (owner: 「これじゃCTA作れないよ」), and the statement as the quieter second */
.plan-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin-top: auto;
}
a.plan-consult:not(.wa-button) {
  color: #fff;
}
.plan-consult {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color 0.2s ease,
    scale 0.2s ease;
}
.plan-consult::after {
  content: "";
  width: 7px;
  height: 7px;
  border: solid currentColor;
  border-width: 1.5px 1.5px 0 0;
  rotate: 45deg;
}
@media (hover: hover) {
  .plan-consult:hover {
    background: #2c2f2f;
  }
}
.plan-consult:active {
  scale: 0.97;
}
.plan-consult:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
/* From 761px the three cards share their rows (subgrid), so the fees and periods line up when one card's words run longer */
@media (min-width: 761px) {
  .plans-track {
    grid-template-rows: repeat(5, auto);
    row-gap: 0;
  }
  .plan {
    display: grid;
    grid-row: span 5;
    grid-template-rows: subgrid;
    row-gap: 0;
  }
  .plan-price {
    align-self: end;
    margin-top: 0;
  }
}
@media (min-width: 761px) and (max-width: 1100px) {
  .plans {
    gap: 34px;
    padding-block: 72px 80px;
  }
  .plans-track {
    gap: 14px;
  }
  .plan {
    padding: 28px 22px 24px;
  }
  .plan-name {
    font-size: 19px;
  }
  .plan-amount {
    font-size: 46px;
  }
  /* the narrow three columns: the consult button keeps its words on one line inside the card */
  .plan-consult {
    gap: 0;
    padding: 0 14px;
    font-size: 12.5px;
    letter-spacing: 0.02em;
  }
  .plan-consult::after {
    display: none;
  }
}

/* Phones: the cards slide from the first one, the next one showing at the edge (about 70px); no dots, no arrows */
@media (max-width: 760px) {
  .plans {
    gap: 22px;
    padding: 50px var(--campaign-pad) 54px;
  }
  .plans-head {
    justify-items: start;
    gap: 12px;
    text-align: left;
  }
  .plans-label {
    font-size: 12.5px;
  }
  .plans-track {
    display: flex;
    gap: 12px;
    width: auto;
    margin-inline: calc(-1 * var(--campaign-pad));
    padding: 0 var(--campaign-pad) 6px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--campaign-pad);
    scrollbar-width: none;
  }
  .plans-track::-webkit-scrollbar {
    display: none;
  }
  .plan {
    flex: 0 0 calc(100vw - 2 * var(--campaign-pad) - 58px);
    scroll-snap-align: start;
    padding: 24px 20px 22px;
  }
  .plan-points {
    margin-bottom: 20px;
    padding-top: 14px;
  }
  .plan-actions {
    gap: 4px 12px;
  }
  .plan-consult {
    gap: 8px;
    min-height: 46px;
    padding: 0 16px;
    font-size: 13px;
    letter-spacing: 0.04em;
  }
  .plan-name {
    margin-bottom: 16px;
    font-size: 20px;
  }
  /* one card at a time: the words from the top, the button at the foot (the cards keep one height) */
  .plan-price {
    margin: 0 0 10px;
  }
  .plan-amount {
    font-size: 52px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .plans-track {
    scroll-behavior: smooth;
  }
}
/* B: オパールの光 — the contact section's opal light behind frosted cards; the middle card solid white with a light
   rim; a grey-blue accent (the page's focus colour) */
.plans[data-band="b"] {
  --paper: #eef1f4;
  --card: rgb(255 255 255 / 0.58);
  --soft: #5f6873;
  --accent: #556274;
  background:
    radial-gradient(ellipse 60% 70% at 0% 0%, #c4d7e4 0%, #dce7ec99 48%, #dce7ec00 85%),
    radial-gradient(ellipse 60% 60% at 100% 0%, #cdc6e1 0%, #e9e0e780 50%, #e9e0e700 85%),
    radial-gradient(ellipse 50% 60% at 40% 100%, #f2e4d6aa 0%, #f2e4d600 80%),
    linear-gradient(165deg, #edf0f4, #f3f4f5 55%, #e7ecf2);
}
.plans[data-band="b"] .plan {
  -webkit-backdrop-filter: blur(22px) saturate(1.25);
  backdrop-filter: blur(22px) saturate(1.25);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.7);
}
.plans[data-band="b"] .plan[data-plan="brand"] {
  background: #fff;
  box-shadow:
    0 0 0 1.5px #b9c6d6,
    0 18px 40px -22px rgb(40 60 90 / 0.35);
}
.plans[data-band="b"] .plan-amount {
  font-weight: 400;
}
/* ---------------------------------------------------------------------------------------------------------------
   Structure 2 (2026-11-17, owner: 「2かな」): 「サービスと費用」, the services and the fees in one chapter on colour B
   (「オパールの光に、すりガラスのカード」). 2026-11-23, option 2 (owner: 「案2で」「下のちょこっとした文字もしっかり
   こだわってね　AI感ないように」): the three cards, then three short sentences in place of the band, the steps and the
   AI visuals box. Written by tools/ec-pricing/build.py. */
.offer {
  --campaign-pad: max(clamp(24px, 5vw, 96px), calc((100% - 1600px) / 2));
  gap: 30px;
}
/* the chapter's heading is the second half's one large thing: a sum, in words (hp-lp visual-rhythm, principle 5) */
.offer-head h2 {
  margin: 0;
  color: var(--ink);
  font-weight: 450;
  font-size: clamp(36px, 4vw, 60px);
  line-height: 1.3;
  letter-spacing: -0.04em;
}
.offer-head h2 > span {
  display: inline-block;
}
.offer .plans-track {
  padding-bottom: 0;
}
/* Three plain sentences under the cards, quieter than the cards and still easy to read: the body's grey on the
   opal light, one sentence to a line on wide screens, and on phones a break only between phrases (the page's <wbr>,
   keep-all) with the lines evened out (text-wrap: balance, Modern Web Guidance: improve-text-layout-and-legibility).
   No arrows, no dots, no box. */
.offer-notes {
  display: grid;
  justify-items: center;
  gap: 2px;
  width: min(100%, 1240px);
  margin: 6px auto 0;
  text-align: center;
}
.offer-notes p {
  margin: 0;
  color: var(--soft);
  font-size: 14px;
  line-height: 2;
  letter-spacing: 0.04em;
  word-break: keep-all;
  overflow-wrap: anywhere;
  text-wrap: balance;
}
@media (max-width: 760px) {
  .offer {
    --campaign-pad: 20px;
    gap: 22px;
  }
  .offer-head h2 {
    font-size: 32px;
    line-height: 1.35;
  }
  .offer-notes {
    justify-items: start;
    gap: 8px;
    margin-top: 4px;
    text-align: left;
  }
  .offer-notes p {
    font-size: 13.5px;
    line-height: 1.85;
  }
}
