/* MultiGifts のサービスページ。見た目は「宛名ラベル」: クラフト紙の地・生成りの伝票・杏色の帯・荷札
   色はこの :root にだけ書く。クラフト紙の地の文字は --ink（8.7:1）だけ。--ink-soft は伝票（--paper）の上だけ（7.5:1）
   杏色の文字は --apricot-ink（伝票の上で 5.2:1）。--apricot は面と帯だけ。動きは transform と opacity だけで、reduced-motion で止める */
:root {
  --kraft: #d8bb94;
  --kraft-dark: #b8956a;
  --paper: #fffaf2;
  --ink: #2a211a;
  --ink-soft: #5e5044;
  --apricot: #e2703f;
  --apricot-ink: #b4471c;
  --line: rgb(42 33 26 / 0.25);
  --shadow: 0 2px 0 var(--kraft-dark), 0 22px 36px rgb(42 33 26 / 0.18);
  --font-body: 'Zen Kaku Gothic Antique', 'Hiragino Sans', sans-serif;
  --font-mono: 'Martian Mono', ui-monospace, var(--font-body);
  --gutter: clamp(16px, 5vw, 72px);
  --section: clamp(72px, 10vw, 136px);
  --ease-out: cubic-bezier(0.215, 0.61, 0.355, 1);
}
html:lang(zh-CN) { --font-body: 'Noto Sans SC', 'PingFang SC', sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; background: var(--kraft); }
body {
  margin: 0;
  background: var(--kraft);
  background-image: repeating-linear-gradient(8deg, rgb(255 255 255 / 0.05) 0 2px, transparent 2px 6px);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.9;
  letter-spacing: 0.03em;
  overflow-wrap: anywhere;
  -webkit-text-size-adjust: 100%;
}
html:not(:lang(ja)):not(:lang(zh-CN)) body { letter-spacing: 0.005em; }
:lang(ja) { line-break: strict; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 30; background: var(--ink); color: var(--paper); padding: 8px 14px; text-decoration: none; }
.skip-link:focus { top: 8px; }
p, li, dd, summary { text-wrap: pretty; }
/* 見出しは行の長さをそろえ、最後の行に1〜2字だけ残さない（中国語・欧文で目立った） */
.hero__title, .section-head__title { text-wrap: balance; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- 部品 ---------- */
.code { margin: 0; font: 400 11px/1.7 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; }
.section-head { margin-bottom: clamp(28px, 4vw, 48px); }
.section-head__title { margin: 10px 0 0; font-weight: 900; font-size: clamp(28px, 3.6vw, 50px); line-height: 1.35; }
:lang(ja) .section-head__title, :lang(ja) .hero__title { word-break: keep-all; overflow-wrap: normal; }
html:not(:lang(ja)):not(:lang(zh-CN)) .section-head__title { font-size: clamp(26px, 3.2vw, 44px); line-height: 1.2; hyphens: auto; }
.section-intro { max-width: 46em; margin: 0 0 clamp(24px, 3vw, 36px); }
section { padding: var(--section) var(--gutter) 0; }
.sheet { position: relative; background: var(--paper); padding: clamp(24px, 3.4vw, 48px); box-shadow: var(--shadow); }
.cta { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 14px 24px; border: 1.5px solid var(--ink); background: var(--ink); color: var(--paper); font-weight: 700; font-size: 15px; line-height: 1.4; text-decoration: none; transition: transform 0.2s var(--ease-out); }
.btn::after { content: '→'; font-family: var(--font-mono); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost::after { content: none; }
@media (any-hover: hover) { .btn:hover { transform: translateY(-2px); } }
.link-arrow { display: inline-flex; gap: 8px; align-items: baseline; font-weight: 700; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.link-arrow::after { content: '↗'; text-decoration: none; }
.links { display: flex; flex-wrap: wrap; gap: 12px 32px; margin: 22px 0 0; font-size: 14px; }
.notes { margin: 24px 0 0; padding-left: 1.2em; font-size: 13px; }

/* ---------- ヘッダー ---------- */
.bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 20px; padding: 12px var(--gutter); background: var(--paper); border-bottom: 2px dashed var(--line); }
.bar__brand { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 20px; color: var(--apricot-ink); text-decoration: none; }
.bar__icon { width: 34px; height: 34px; border-radius: 8px; }
.bar__by { font-size: 12px; color: var(--ink-soft); text-decoration: none; }
@media (any-hover: hover) { .bar__by:hover { text-decoration: underline; } }
.bar__nav { margin-left: auto; }
.bar__nav ul { display: flex; gap: 22px; margin: 0; padding: 0; list-style: none; }
.bar__nav a { font-size: 13px; font-weight: 700; text-decoration: none; }
@media (any-hover: hover) { .bar__nav a:hover { text-decoration: underline; text-underline-offset: 6px; } }
.lang { position: relative; }
.lang__button { list-style: none; cursor: pointer; border: 1.5px solid var(--ink); padding: 3px 12px; font: 600 11px/1.8 var(--font-mono); }
.lang__button::-webkit-details-marker { display: none; }
.lang__button::after { content: ' ▾'; }
.lang__list { position: absolute; right: 0; top: calc(100% + 8px); min-width: 200px; margin: 0; padding: 8px 0; list-style: none; background: var(--paper); border: 1.5px solid var(--ink); box-shadow: var(--shadow); }
.lang__link { display: block; padding: 6px 16px; font-size: 14px; text-decoration: none; }
.lang__link[aria-current='page'] { font-weight: 700; text-decoration: underline; text-underline-offset: 5px; }
@media (any-hover: hover) { .lang__link:hover { background: rgb(226 112 63 / 0.12); } }
@media (max-width: 960px) { .bar__nav { display: none; } .lang { margin-left: auto; } }
@media (max-width: 600px) { .bar__by { display: none; } }

/* ---------- FV ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 72px); align-items: center; padding-top: clamp(40px, 6vw, 88px); }
.hero__sheet::before { content: 'GIFT'; position: absolute; right: 18px; top: -13px; background: var(--apricot); color: var(--ink); font: 600 10px var(--font-mono); letter-spacing: 0.14em; padding: 5px 12px; }
.hero__sheet .code { color: var(--ink-soft); }
.hero__title { margin: 12px 0 18px; font-weight: 900; font-size: clamp(30px, 3.6vw, 54px); line-height: 1.3; }
.hero__title mark { display: block; background: none; color: var(--apricot-ink); }
html:not(:lang(ja)):not(:lang(zh-CN)) .hero__title { font-size: clamp(28px, 3.2vw, 46px); line-height: 1.18; }
.hero__lead { margin: 0; color: var(--ink-soft); }
.hero .cta { margin-top: 26px; }
.hero__note { margin: 16px 0 0; font-size: 12px; color: var(--ink-soft); }
.hero__parcel { margin: 0; }
.parcel { position: relative; height: clamp(400px, 40vw, 540px); }
.box { position: absolute; left: 50%; top: 50%; width: 150px; height: 120px; margin: -60px 0 0 -75px; background: var(--kraft-dark); border-radius: 6px; box-shadow: inset 0 -16px 0 rgb(0 0 0 / 0.06), 0 20px 30px rgb(42 33 26 / 0.25); }
.box::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 18px; margin-left: -9px; background: var(--apricot); }
.box span { position: absolute; left: 0; right: 0; bottom: -30px; text-align: center; font: 600 11px var(--font-mono); }
.tag { position: absolute; width: min(210px, 46%); padding: 10px 12px 10px 28px; background: var(--paper); box-shadow: 0 8px 18px rgb(42 33 26 / 0.18); font-size: 12px; line-height: 1.6; animation: fly 0.8s var(--ease-out) both; }
.tag::before { content: ''; position: absolute; left: 9px; top: 50%; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%; border: 1.5px solid var(--ink); }
.tag b { display: block; font-size: 13px; }
.tag span { color: var(--ink-soft); }
.tag--1 { left: 0; top: 4%; transform: rotate(-5deg); }
.tag--2 { right: 0; top: 0; transform: rotate(5deg); animation-delay: 0.1s; }
.tag--3 { left: 2%; bottom: 8%; transform: rotate(4deg); animation-delay: 0.2s; }
.tag--4 { right: 2%; bottom: 2%; transform: rotate(-4deg); animation-delay: 0.3s; }
.parcel__more { position: absolute; left: 50%; top: 18%; transform: translateX(-50%); background: var(--ink); color: var(--paper); font-size: 12px; font-weight: 700; padding: 4px 12px; white-space: nowrap; }
.parcel__stamp { position: absolute; left: 50%; bottom: 22%; transform: translateX(-50%) rotate(-6deg); border: 1.5px dashed var(--ink); padding: 0 10px; font-size: 11px; font-weight: 700; }
@keyframes fly { from { opacity: 0; translate: 0 18px; } }

/* ---------- 課題 ---------- */
.quotes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
.quote { position: relative; padding: 24px 24px 24px 28px; background: var(--paper); box-shadow: var(--shadow); font-weight: 700; font-size: clamp(16px, 1.4vw, 19px); line-height: 1.7; border-left: 6px solid var(--apricot); }
.quote__who { display: block; margin-bottom: 6px; font-size: 12px; color: var(--apricot-ink); }
.problem__body { max-width: 46em; margin: clamp(24px, 3vw, 36px) 0 0; }

/* ---------- 使い方 ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.step { position: relative; padding: 22px 22px 24px; background: var(--paper); box-shadow: var(--shadow); }
.step + .step::before { content: '→'; position: absolute; left: -16px; top: 50%; width: 16px; text-align: center; font: 600 14px var(--font-mono); transform: translateY(-50%); }
.step__no { display: inline-block; background: var(--ink); color: var(--paper); font: 600 11px var(--font-mono); padding: 2px 10px; letter-spacing: 0.08em; }
.step__title { margin: 12px 0 0; font-size: 18px; font-weight: 900; }
.step__body { margin: 6px 0 0; font-size: 14px; color: var(--ink-soft); }
.how__after { max-width: 46em; margin: 24px 0 0; padding: 14px 18px; border: 2px dashed var(--ink); font-weight: 700; }

/* ---------- 機能 ---------- */
.feature-group + .feature-group { margin-top: clamp(36px, 5vw, 60px); }
.feature-group__title { display: inline-block; margin: 0 0 16px; padding: 2px 14px; background: var(--ink); color: var(--paper); font-size: clamp(15px, 1.3vw, 18px); font-weight: 900; }
.feature-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.feature { position: relative; padding: 20px 20px 20px 34px; background: var(--paper); box-shadow: var(--shadow); }
.feature::before { content: ''; position: absolute; left: 12px; top: 26px; width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--ink); }
.feature__title { margin: 0; font-size: 16px; font-weight: 900; line-height: 1.6; }
:lang(ja) .feature__title, :lang(ja) .step__title { word-break: auto-phrase; }
.feature__text { margin: 6px 0 0; font-size: 14px; line-height: 1.85; color: var(--ink-soft); }

/* ---------- 画面 ---------- */
.screens__note { margin: -18px 0 22px; font-size: 13px; }
.screens__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin: 0; padding: 0; list-style: none; }
.screens__item { padding: 10px; background: var(--paper); box-shadow: var(--shadow); }

/* ---------- 料金 ---------- */
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.plan { display: flex; flex-direction: column; padding: 24px 20px 22px; background: var(--paper); box-shadow: var(--shadow); border-top: 8px solid var(--apricot); }
.plan--enterprise { background: var(--ink); color: var(--paper); border-top-color: var(--paper); }
.plan p { margin: 0; }
.plan__name { font-weight: 900; font-size: 13px; }
.plan__name span { font-size: 22px; margin-right: 4px; }
.plan__price { display: flex; align-items: baseline; gap: 6px; margin-top: 10px !important; padding-bottom: 16px; border-bottom: 2px dashed var(--line); }
.plan--enterprise .plan__price { border-color: rgb(255 250 242 / 0.3); }
.plan__amount { font-weight: 900; font-size: clamp(32px, 2.8vw, 42px); line-height: 1; }
.plan__per { font-size: 13px; }
.plan__rows { margin: 14px 0 0; }
.plan__rows div { display: grid; gap: 2px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.plan--enterprise .plan__rows div { border-color: rgb(255 250 242 / 0.2); }
.plan__rows dt { font-size: 11px; color: var(--ink-soft); }
.plan--enterprise .plan__rows dt { color: rgb(255 250 242 / 0.75); }
.plan__rows dd { margin: 0; font-weight: 700; font-size: 14px; }
.plan__rows div:first-child dd { font: 600 20px var(--font-mono); }
.plan__body { margin-top: 14px !important; font-size: 13px; line-height: 1.8; }
.plan--enterprise :focus-visible { outline-color: var(--paper); }

/* ---------- よくある質問 ---------- */
.faq__list { display: grid; gap: 10px; max-width: 960px; }
.qa { background: var(--paper); box-shadow: var(--shadow); }
.qa__q { display: flex; justify-content: space-between; gap: 16px; padding: 16px 20px; font-weight: 700; cursor: pointer; list-style: none; }
.qa__q::-webkit-details-marker { display: none; }
.qa__q::after { content: '+'; font: 600 18px/1.4 var(--font-mono); flex: none; transition: transform 0.2s var(--ease-out); }
.qa[open] .qa__q::after { transform: rotate(45deg); }
.qa__a { margin: 0; padding: 0 20px 18px; color: var(--ink-soft); border-top: 1px dashed var(--line); padding-top: 14px; }

/* ---------- はじめる ---------- */
.closing { padding-bottom: 0; }
.closing__sheet .code { color: var(--ink-soft); }
.checklist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 24px; margin: 0 0 28px; padding: 0; list-style: none; counter-reset: check; }
.checklist li { counter-increment: check; display: flex; gap: 12px; align-items: baseline; padding: 10px 0; border-bottom: 1px dashed var(--line); font-weight: 700; }
.checklist li::before { content: counter(check, decimal-leading-zero); font: 600 12px var(--font-mono); color: var(--apricot-ink); }
.closing__enterprise { margin: 24px 0 0; font-size: 14px; color: var(--ink-soft); }
.closing__enterprise a { color: var(--ink); text-underline-offset: 5px; }

/* ---------- フッター ---------- */
.foot { padding: 56px var(--gutter) 48px; font-size: 13px; }
.foot__about { margin: 0; font-weight: 700; }
.foot__links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 14px 0 0; padding: 0; list-style: none; }
.foot__copy { margin: 20px 0 0; font: 400 11px var(--font-mono); }

/* ---------- 幅ごと ---------- */
@media (max-width: 1100px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .quotes, .steps, .screens__list, .checklist { grid-template-columns: minmax(0, 1fr); }
  .step + .step::before { content: '↓'; left: 50%; top: -16px; transform: translateX(-50%); }
}
@media (max-width: 560px) {
  .plans { grid-template-columns: minmax(0, 1fr); }
  .parcel { height: 400px; }
  .tag { width: 48%; }
  .parcel__more { top: 33%; }
  .btn { width: 100%; }
}
