/* website-E: FV は website-D のまま。ここから下は E の組み。
   FV の主役は、架空サイト（サンプル製作所）の完成画面の写真。
   ブラウザ枠をビューポートの右と下にはみ出させ、手前にスマホ枠を重ねる。
   名前・リード・価格・CTA は左の細い列に小さくまとめる。 */

/* ===== D: 「発注から最短4時間で納品」 =====
   価格のすぐ下に、価格と同じ黒で1行。左に細い罫線を1本だけ。
   塗り、バッジ、アイコンは使わない。 */
.d-fast {
  margin-top: .875rem !important;
  padding: .0625rem 0 .0625rem .75rem;
  border-left: 1px solid var(--ink);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: var(--ls);
  color: var(--ink);
}
.offer-c-web .c-price-list { margin-top: 1rem; }

/* 範囲の下に、期間の目安を1行（契約ブロックと同じ組み） */
.d-term {
  display: grid;
  gap: .5rem;
  margin: 2rem 0 0;
  padding: 1.5rem 2.75rem;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  font-size: .9375rem;
  line-height: 1.8;
}
.d-term-label { font-size: 1.0625rem; font-weight: 700; }
/* 価格パネルが1行ぶん伸びて FV が高くなった分、スマホ枠を上端基準で C と同じ高さに留める */
@media (min-width: 64rem) {
  .offer-c-web .w-hero-phone { top: 20.5rem; bottom: auto; }
}
@media (min-width: 48rem) {
  .d-term { grid-template-columns: 10rem minmax(0, 1fr); gap: 2rem; align-items: baseline; }
}
@media (max-width: 47.99rem) {
  .d-fast { font-size: 1rem; margin-top: .75rem !important; }
  .d-term { padding: 1.25rem 0; }
}

/* ---------- FV ---------- */
.offer-c-web .c-hero .c-caption { align-self: end; }

.w-hero-browser {
  position: absolute;
  top: .5rem;
  left: 0;
  width: calc(100% + 7rem);
  height: calc(100% + 3rem);
}

.w-hero-phone {
  position: absolute;
  right: 6rem;
  bottom: 2.5rem;
  width: 14.5rem;
}

/* ---------- アウトプット ---------- */
.w-gallery {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 4rem 2.5rem;
  margin-top: 5rem;
}
.w-shot { margin: 0; min-width: 0; }
.w-shot figcaption {
  margin-top: 1rem;
  font-size: .8125rem;
  line-height: 1.6;
  color: var(--ink-60);
}
.w-shot-top { grid-column: 1 / span 8; }
.w-shot-top .c-browser { aspect-ratio: 1440 / 1560; }
.w-shot-phone { grid-column: 9 / span 4; align-self: end; padding-inline: 2.5rem; }
.w-shot-company { grid-column: 1 / span 6; }
.w-shot-service { grid-column: 7 / span 6; }
.w-shot-company .c-browser,
.w-shot-service .c-browser { aspect-ratio: 1440 / 1180; }

/* ページ構成の図。実線の4枚 + 点線の2枚で「最大6ページ」を見せる */
.w-map {
  display: grid;
  gap: 2rem 4rem;
  margin-top: 5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--rule);
}
.w-map-label { margin: 0; font-size: 1.0625rem; font-weight: 700; line-height: 1.6; }
.w-map-label span { display: block; margin-top: .25rem; font-family: var(--font-display); font-size: .8125rem; font-weight: 400; letter-spacing: var(--ls); color: var(--ink-50); }
.w-map-pages {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: .75rem;
}
.w-map-pages li {
  position: relative;
  display: flex;
  align-items: flex-end;
  aspect-ratio: 4 / 3;
  padding: .75rem .875rem;
  background: var(--paper);
  border: 1px solid var(--paper);
  border-radius: 4px;
  font-size: .875rem;
  font-weight: 500;
  line-height: 1.5;
}
/* ページの頭を示す1本の罫線 */
.w-map-pages li::before {
  content: '';
  position: absolute;
  top: .875rem;
  left: .875rem;
  right: .875rem;
  height: 1px;
  background: var(--rule);
}
.w-map-pages li.is-add { background: transparent; border: 1px dashed var(--ink-30); color: var(--ink-60); }
.w-map-pages li.is-add::before { display: none; }
.w-map-add { position: absolute; left: calc(-100% - .75rem + .875rem); bottom: .75rem; white-space: nowrap; }
.w-map-caption { grid-column: 1 / -1; }

@media (min-width: 64rem) {
  .w-output-desc { margin-top: 3.1rem; }
  .w-map { grid-template-columns: 14rem minmax(0, 1fr); align-items: start; }
  .w-map-caption { grid-column: 2; }
}

/* ---------- 狭い画面 ---------- */
@media (max-width: 63.99rem) {
  /* FV は幅 8.25rem 固定なので 1.25rem（15.15%）で実機 iPhone に寄せる。
     中盤の枠はグリッドで幅が変わる。1.25rem を大きい枠に足すと角が尖り、
     2.25rem を小さい枠に残すとカプセルになる。親を container にして
     その枠の幅の 15.15% を円半径にする（% の border-radius は楕円になるので使わない）。 */
  .w-hero-phone {
    --phone-pad: .3125rem;
    --phone-r: 1.25rem;
  }
  .e-spread-phone,
  .e-frag-phone,
  .w-shot-phone {
    container-type: inline-size;
  }
  .e-spread-phone .c-phone,
  .e-frag-phone .c-phone,
  .w-shot-phone .c-phone {
    --phone-r: 15.15cqw;
    --phone-pad: calc(var(--phone-r) * 0.25);
  }
  .w-visual { min-height: 0; height: 24rem; margin: 1.5rem calc(var(--gutter) * -1) 0 0; }
  .w-hero-browser { top: 0; left: 1.5rem; width: auto; right: -3rem; height: 15.5rem; }
  .w-hero-phone { left: auto; right: 1rem; top: 5.5rem; bottom: auto; width: 8.25rem; }
  .w-gallery { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 2.5rem 1rem; margin-top: 3rem; }
  .w-shot-top { grid-column: 1 / -1; }
  .w-shot-top .c-browser { aspect-ratio: 1440 / 1100; }
  .w-shot-phone { grid-column: 1 / span 3; padding-inline: 0; }
  .w-shot-company, .w-shot-service { grid-column: 4 / span 3; }
  .w-shot-company .c-browser, .w-shot-service .c-browser { aspect-ratio: 1440 / 1500; }
  .w-shot-service { grid-row: 3; }
  .w-shot-company { grid-row: 2; align-self: start; }
  .w-shot-phone { grid-row: 2 / span 2; align-self: start; }
}

@media (max-width: 47.99rem) {
  .w-map-pages { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
  .w-map-pages li { font-size: .75rem; padding: .5rem .625rem; }
  .w-map-pages li::before { top: .625rem; left: .625rem; right: .625rem; }
  .w-map-add { left: calc(-100% - .5rem + .625rem); bottom: .5rem; }
  .c-browser-bar { height: 1.5rem; padding: 0 .5rem; gap: .25rem; }
  .c-browser-bar i { width: .375rem; height: .375rem; }
  .c-browser-bar span { display: none; }
  /* 「問い合わせ」の途中で折れないように、句読点で折る */
  .e-who-list p { word-break: keep-all; }
}

/* ---------- Output ---------- */
.e-output { padding-block: var(--e-pad) calc(var(--e-pad) + 8rem); overflow: hidden; }
.e-out-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: 5rem; align-items: end; }
.e-out-head .label { grid-column: 1 / -1; margin-bottom: 2rem; }
.e-out-head h2 { font-size: clamp(2.5rem, 5.4vw, 5.25rem); font-weight: 500; line-height: 1.25; letter-spacing: .02em; }
.e-out-desc { font-size: 1rem; line-height: 2.1; color: rgba(255, 255, 255, .72); max-width: 28rem; padding-bottom: .5rem; }

.e-spread {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 1.5rem;
  max-width: 100rem;
  margin: 5.5rem auto 0;
  padding-inline: var(--gutter);
}
.e-spread figure { position: relative; }
.e-spread figcaption { display: flex; gap: .75rem; margin-top: .875rem; font-size: .8125rem; color: var(--paper-60); letter-spacing: var(--ls); }
.e-spread figcaption span { font-family: var(--font-display); color: var(--paper-30); }
.e-spread .c-browser { border-color: rgba(255, 255, 255, .12); }
.e-spread-main { grid-column: 1 / span 9; grid-row: 1; }
.e-spread-main .c-browser { height: 46rem; }
.e-spread-main .c-browser img { object-position: center 31%; }
.e-spread-phone { grid-column: 9 / span 3; grid-row: 1; z-index: 2; align-self: end; margin: 0 0 -6rem 2.5rem; }
.e-spread-phone .c-phone { --phone-bw: 1px; background: #000; border: 1px solid rgba(255, 255, 255, .14); }
.e-spread-phone .c-phone img { object-position: center 44%; }
.e-spread-company { grid-column: 2 / span 5; grid-row: 2; margin-top: 7rem; }
.e-spread-company .c-browser { height: 30rem; }
.e-spread-company .c-browser img { object-position: center 18%; }
.e-spread-service { grid-column: 7 / span 6; grid-row: 2; margin-top: 15rem; }
.e-spread-service .c-browser { height: 34rem; }
.e-spread-service .c-browser img { object-position: center 22%; }

/* ページ構成: 手に入る6ページを、実物の縮小として並べる */
.e-map { display: grid; grid-template-columns: 17rem minmax(0, 1fr); column-gap: 3rem; margin-top: 8rem; padding-top: 3rem; border-top: 1px solid var(--rule-dark); }
.e-map-label { display: flex; align-items: flex-end; gap: 1.25rem; }
.e-map-big { font-family: var(--font-display); font-weight: 300; font-size: 11rem; line-height: .78; letter-spacing: -.02em; color: var(--paper); }
.e-map-txt { display: grid; gap: .375rem; font-size: .9375rem; color: var(--paper-60); }
.e-map-txt b { font-weight: 500; color: var(--paper); font-size: 1.0625rem; }
.e-map-pages { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1rem; }
.e-map-pages li { display: grid; gap: .75rem; font-size: .875rem; font-weight: 500; color: var(--paper); }
.e-pg { display: block; aspect-ratio: 3 / 4; border-radius: 3px; background: var(--paper); overflow: hidden; position: relative; }
.e-pg-img { background: var(--paper) var(--img) top center / 100% auto no-repeat; }
.e-pg-img.e-pg-top { --img: url(/assets/offers/shot-top-desktop.png); }
.e-pg-img.e-pg-company { --img: url(/assets/offers/shot-company-desktop.png); }
.e-pg-img.e-pg-service { --img: url(/assets/offers/shot-service-desktop.png); }
.e-pg-form { padding: 18% 14%; display: grid; align-content: start; gap: 9%; }
.e-pg-form b { display: block; height: .5rem; border: 1px solid var(--ink-30); border-radius: 1px; }
.e-pg-form b:first-child { width: 55%; height: .375rem; border: 0; background: var(--ink); }
.e-pg-form b.is-area { height: 2.75rem; }
.e-pg-form b.is-btn { width: 40%; height: .75rem; border: 0; background: var(--ink); border-radius: 1rem; }
.e-map-pages li.is-add { color: var(--paper-60); }
.e-map-pages li.is-add .e-pg { background: transparent; border: 1px dashed rgba(255, 255, 255, .35); }
.e-map-caption { grid-column: 2; margin-top: 2rem !important; color: var(--paper-60); }

/* ---------- Scope: 紙の明細書 ---------- */
.e-scope { background: var(--bg); padding-bottom: var(--e-pad); }
.e-scope-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 1.5rem; }
.e-scope-label { grid-column: 1 / -1; grid-row: 1; position: relative; z-index: 2; margin: -6.5rem 0 0 !important; color: var(--paper-60); }
.e-bill {
  grid-column: 1 / span 8;
  grid-row: 2;
  position: relative;
  z-index: 2;
  margin-top: -5rem;
  padding: 4.5rem 5rem 4rem;
  background: var(--paper);
  border-radius: 2px;
  box-shadow: 0 2rem 4rem rgba(0, 0, 0, .1);
}
.e-bill-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 2rem; padding-bottom: 3rem; }
.e-bill-head h2 { font-size: clamp(2rem, 3.6vw, 3.375rem); font-weight: 500; line-height: 1.32; letter-spacing: .02em; }
.e-bill-name { padding-top: .75rem; font-size: .8125rem; color: var(--ink-50); white-space: nowrap; }
.e-bill-h { padding: 1rem 0; border-top: 2px solid var(--ink); font-size: .875rem; font-weight: 500; letter-spacing: var(--ls); }
.e-bill-list { list-style: none; padding: 0; }
.e-bill-list li { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); align-items: baseline; padding: 1.5rem 0 1.625rem; border-top: 1px solid var(--rule); }
.e-bill-n { font-family: var(--font-display); font-weight: 300; font-size: 1.125rem; color: var(--ink-50); }
.e-bill-item { font-size: clamp(1.375rem, 2.1vw, 1.875rem); font-weight: 500; line-height: 1.45; letter-spacing: .03em; }
.e-bill-item small { display: block; margin-top: .375rem; font-size: .9375rem; font-weight: 400; color: var(--ink-60); letter-spacing: var(--ls); }
.e-bill-total { display: flex; justify-content: flex-end; align-items: baseline; padding: 2rem 0 2.25rem; border-top: 2px solid var(--ink); line-height: 1; }
.e-bill-total .c-num { font-size: 5.5rem; }
.e-bill-total .c-unit { font-size: 2rem; }
.e-bill-total .c-tax { font-size: 1rem; }
.e-bill-term { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); padding-top: 1.5rem; border-top: 1px solid var(--rule); font-size: 1rem; line-height: 1.9; font-weight: 500; }
.e-bill-term-label { color: var(--ink-50); font-weight: 400; font-size: .875rem; }

.e-out { grid-column: 9 / span 4; grid-row: 2; padding: 9rem 0 0 1rem; }
.e-out h3 { padding-bottom: 1rem; border-bottom: 1px solid var(--ink-30); font-size: .9375rem; font-weight: 500; color: var(--ink-60); }
.e-out ul { list-style: none; padding: 0; }
.e-out li { position: relative; padding: .875rem 0 .875rem 1.25rem; border-bottom: 1px solid var(--rule); font-size: .9375rem; line-height: 1.75; color: var(--ink-60); }
.e-out li::before { content: ''; position: absolute; left: 0; top: 1.75em; width: .625rem; height: 1px; background: var(--ink-50); }

/* ---------- Process: 大きな番号の階段 ---------- */
.e-process { background: var(--paper); padding-block: var(--e-pad); overflow: hidden; }
.e-proc-head { margin-bottom: 4rem; }
.e-proc-head .label { margin-bottom: 1.5rem; }
.e-proc-head h2 { font-size: clamp(2.5rem, 5.4vw, 5.25rem); font-weight: 500; line-height: 1.2; letter-spacing: .02em; }
.e-steps { list-style: none; padding: 0; }
.e-step {
  --i: 0;
  position: relative;
  display: grid;
  grid-template-columns: 11rem minmax(0, 26rem);
  column-gap: 2rem;
  align-items: start;
  margin-left: calc(var(--i) * 8.5%);
  padding: 2rem 0 2.75rem;
  border-top: 1px solid var(--ink);
}
.e-step:nth-child(2) { --i: 1; }
.e-step:nth-child(3) { --i: 2; }
.e-step:nth-child(4) { --i: 3; }
.e-step:nth-child(5) { --i: 4; }
.e-step-n { font-family: var(--font-display); font-weight: 300; font-size: 7.5rem; line-height: .82; letter-spacing: -.02em; }
.e-step-t b { display: block; padding-top: .25rem; font-size: clamp(1.375rem, 2vw, 1.875rem); font-weight: 500; letter-spacing: .03em; }
.e-step-t p { margin-top: .875rem !important; font-size: 1rem; line-height: 2; color: var(--ink-60); }
.e-frag { position: absolute; }
.e-frag-browser { right: 0; top: -5rem; width: 27rem; }
.e-frag-browser .c-browser { height: 17rem; box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, .08); }
.e-frag-browser .c-browser img { object-position: center 30%; }
.e-frag-phone { right: 4rem; top: -9rem; width: 9.5rem; }
.e-frag-phone .c-phone img { object-position: center 62%; }
.e-steps-note { margin: 2.5rem 0 0 calc(4 * 8.5%) !important; max-width: 34rem; padding-left: 1.5rem; border-left: 2px solid var(--ink); font-size: 1.125rem; line-height: 1.95; font-weight: 500; }

/* ---------- Contact: 会社概要の画面の端が紙の後ろからのぞく ---------- */
.e-peek-web { right: -9rem; top: 1.5rem; width: 46rem; transform: rotate(-4deg); }
.e-peek-web .c-browser { height: 30rem; border-color: rgba(255, 255, 255, .1); }
.e-peek-web .c-browser img { object-position: center 30%; }
.e-contact { padding-bottom: 0; }
.e-contact-grid { padding-bottom: 0; }
.e-form-paper { margin-bottom: -1px; border-radius: 2px 2px 0 0; padding-bottom: 6rem; }

/* ---------- 狭い画面 ---------- */
@media (max-width: 63.99rem) {
  .e-out-head { grid-template-columns: minmax(0, 1fr); row-gap: 2rem; }
  .e-spread { column-gap: .75rem; margin-top: 3.5rem; }
  .e-spread-main { grid-column: 1 / -1; margin-right: calc(var(--gutter) * -1); }
  .e-spread-main .c-browser { height: 26rem; border-radius: 8px 0 0 8px; }
  .e-spread-phone { grid-column: 8 / span 5; grid-row: 2; margin: -9rem 0 0 0; align-self: start; }
  .e-spread-company { grid-column: 1 / span 7; grid-row: 2; margin-top: 2.5rem; }
  .e-spread-company .c-browser { height: 18rem; }
  .e-spread-service { grid-column: 2 / span 11; grid-row: 3; margin-top: 2.5rem; }
  .e-spread-service .c-browser { height: 20rem; }
  .e-map { grid-template-columns: minmax(0, 1fr); row-gap: 2rem; margin-top: 5rem; }
  .e-map-caption { grid-column: 1; }
  .e-scope-grid { display: block; }
  .e-scope-label { margin-top: -5rem !important; }
  .e-bill { margin: 0 calc(var(--gutter) * -.5) 0; margin-top: -3.5rem; }
  .e-out { padding: 3.5rem 0 0; }
  .e-step { grid-template-columns: 5.5rem minmax(0, 1fr); margin-left: calc(var(--i) * 1.25rem); }
  .e-step-n { font-size: 4.5rem; }
  .e-frag { position: relative; right: auto; top: auto; grid-column: 2; margin-top: 1.5rem; }
  .e-frag-browser { width: 100%; }
  .e-frag-browser .c-browser { height: 12rem; }
  .e-frag-phone { width: 7.5rem; }
  .e-steps-note { margin-left: 0 !important; }
  .e-peek-web { right: -7rem; top: 3.5rem; width: 26rem; }
}
@media (max-width: 47.99rem) {
  .e-output { padding-block: 5.5rem 9rem; }
  .e-out-head h2 { font-size: 2.375rem; }
  .e-out-desc { font-size: .9375rem; }
  .e-spread-main .c-browser { height: 20rem; }
  .e-spread-phone { margin-top: -6rem; padding-left: 1.5rem; }
  .e-spread-company .c-browser { height: 13rem; }
  .e-spread-service .c-browser { height: 14rem; }
  .e-spread figcaption { font-size: .75rem; }
  .e-map-big { font-size: 7rem; }
  .e-map-pages { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem .75rem; }
  .e-map-pages li { font-size: .75rem; }
  .e-pg-form b.is-area { height: 1.75rem; }
  .e-bill { padding: 2.75rem 1.5rem 2.25rem; }
  .e-bill-head { display: block; padding-bottom: 2rem; }
  .e-bill-head h2 { font-size: 1.875rem; }
  .e-bill-name { padding-top: 1rem; }
  .e-bill-list li { grid-template-columns: 2.5rem minmax(0, 1fr); padding: 1.125rem 0 1.25rem; }
  .e-bill-item { font-size: 1.25rem; }
  .e-bill-item small { font-size: .8125rem; }
  .e-bill-total .c-num { font-size: 4rem; }
  .e-bill-total .c-unit { font-size: 1.5rem; }
  .e-bill-term { grid-template-columns: 2.5rem minmax(0, 1fr); font-size: .9375rem; }
  .e-process { padding-block: 5.5rem; }
  .e-proc-head h2 { font-size: 2.75rem; }
  .e-step { grid-template-columns: 4.25rem minmax(0, 1fr); column-gap: 1rem; padding: 1.5rem 0 2rem; margin-left: calc(var(--i) * .75rem); }
  .e-step-n { font-size: 3.5rem; }
  .e-step-t b { font-size: 1.3125rem; }
  .e-step-t p { font-size: .9375rem; }
  .e-steps-note { font-size: 1rem; }
  .e-peek-web { right: -6rem; width: 20rem; top: 4rem; }
  .e-peek-web .c-browser { height: 15rem; }
}

/* ---------- 本番ページへの接続 ----------
   送信ボタンは <a> ではなく <button>。site.css の .button-light を流用する。
   モバイルの width:100% は FV の CTA をモックの短いピル型からずらすので戻す。 */
.offer button.button-light {
  appearance: none;
  font-family: inherit;
  border: 0;
  cursor: pointer;
  color: var(--paper);
}
.offer .offer-action .button-light { width: auto; }
.offer .e-form-paper .contact-form { position: relative; }
.offer .e-form-paper .honeypots { position: absolute; }
