/* Atelier Delivery 販売ページ */

:root {
  --bg: #f6f3ee;
  --paper: #fffdf9;
  --soft: #ece6dc;
  --ink: #1f1c19;
  --body: #3d3832;
  --muted: #6b645b;
  --line: #e3ddd3;
  --accent: #9a7b55;
  --accent-ink: #6f5538;
  --serif: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "Noto Serif JP", "BIZ UDMincho", serif;
  --sans: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", "Meiryo", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.85;
  -webkit-text-size-adjust: 100%;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 600; line-height: 1.4; letter-spacing: .02em; }
figure { margin: 0; }
main { overflow: hidden; }

/* 見出しの帯 */
.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 24px;
  padding: 12px clamp(16px, 4vw, 40px);
  background: rgba(246, 243, 238, .92);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.wordmark { font-family: var(--serif); font-size: 21px; font-weight: 600; letter-spacing: .03em; text-decoration: none; }
.top nav { display: flex; gap: 22px; margin-left: auto; font-size: 14px; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover { color: var(--ink); }

/* ボタン */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px;
  border: 1px solid var(--ink); border-radius: 999px;
  background: var(--ink); color: #fff;
  font-size: 16px; font-weight: 700; text-decoration: none;
  transition: transform .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-1px); background: #000; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--paper); }
.btn-small { min-height: 40px; padding: 0 18px; font-size: 14px; }

.eyebrow { margin: 0 0 12px; color: var(--accent-ink); font-size: 13px; font-weight: 700; letter-spacing: .12em; }
.note { margin: 10px 0 0; color: var(--muted); font-size: 14px; }
.small { margin: 14px 0 0; color: var(--muted); font-size: 13px; line-height: 1.7; }

/* 最初の画面 */
.hero {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(28px, 5vw, 64px); align-items: center;
  max-width: 1200px; margin: 0 auto;
  padding: clamp(40px, 7vw, 96px) clamp(16px, 4vw, 40px);
}
.hero h1 { font-size: clamp(34px, 4.2vw, 52px); }
.lead { margin: 22px 0 0; color: var(--body); font-size: clamp(15px, 1.6vw, 17px); }
.formats { margin: 20px 0 0; padding: 13px 16px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--paper); color: var(--muted); font-size: 13px; line-height: 1.95; }
.formats b { display: inline-block; min-width: 5.5em; color: var(--ink); font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 0; padding: 0; list-style: none; }
.chips li { padding: 5px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); font-size: 14px; }
.chips li:first-child { border-color: var(--ink); background: var(--ink); color: #fff; font-weight: 700; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.hero-visual { position: relative; padding: 0 5% 44px 0; }
.browser {
  overflow: hidden; border-radius: 12px; background: #fff;
  box-shadow: 0 30px 60px -30px rgba(40, 30, 20, .45), 0 0 0 1px rgba(0, 0, 0, .06);
}
.browser::before {
  content: ""; display: block; height: 26px;
  background:
    radial-gradient(circle at 16px 13px, #e0685b 4px, transparent 5px),
    radial-gradient(circle at 32px 13px, #e8b44f 4px, transparent 5px),
    radial-gradient(circle at 48px 13px, #6cbf66 4px, transparent 5px),
    #ebe6de;
}
.phone {
  position: absolute; right: 0; bottom: 0; width: 29%;
  overflow: hidden; border: 7px solid var(--ink); border-radius: 28px; background: var(--ink);
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .5);
}
.phone img { width: 100%; aspect-ratio: 390 / 780; object-fit: cover; object-position: top; }

/* 自社ブランドで納品 */
.eyebrow-lg { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 18px;
  padding: 7px 18px 7px 16px; border-radius: 999px; background: var(--ink); color: #f3efe8;
  font-size: 15px; letter-spacing: .14em; }
.eyebrow-lg::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

.cv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin: 40px 0 0; align-items: start; }
.cv-panel { position: relative; margin: 0; }
.cv-panel > svg, .cv-panel > img { position: relative; }
/* 下端は「まだ続く」ことを示すために、地の色へ溶かす */
.cv-fade { display: block; position: relative; }
.cv-fade::after { content: ""; position: absolute; left: 1px; right: 1px; bottom: 1px; height: 84px;
  border-radius: 0 0 17px 17px; pointer-events: none;
  background: linear-gradient(to bottom, rgba(246, 243, 238, 0), var(--bg)); }
.cv-panel svg, .cv-panel img { display: block; width: 100%; height: auto; border-radius: 18px;
  aspect-ratio: 390 / 700; object-fit: cover; object-position: top; }
.cv-before svg { border: 1px solid var(--line); background: #fff; }
.cv-after img { border: 1px solid var(--line); }
.cv-panel figcaption { margin-top: 16px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.cv-panel figcaption b { display: block; margin-bottom: 4px; color: var(--ink); font-size: 17px; }
.cv-panel figcaption small { display: block; margin-top: 6px; color: #9a958c; font-size: 12px; }
.cv-after figcaption b { color: var(--accent-ink); }

.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px;
  margin: 34px 0 0; padding: 0; list-style: none; }
.trio li { padding-top: 15px; border-top: 2px solid var(--ink); }
.trio b { display: block; margin-bottom: 7px; font-size: 16px; }
.trio span { color: var(--muted); font-size: 14px; line-height: 1.8; }
.trio small { display: block; margin-top: 4px; color: #9a958c; font-size: 12px; }

/* 買い切りの帯 */
.band { background: var(--ink); color: #f3efe8; }
.band-inner { max-width: 1120px; margin: 0 auto; padding: clamp(56px, 8vw, 96px) clamp(16px, 4vw, 40px); }
.band h2 { font-size: clamp(28px, 3.8vw, 44px); }
.band .eyebrow { color: #d6b98e; }
.once { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin: 40px 0 0; padding: 0; list-style: none; }
.once li { padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .22); }
.once b { display: block; margin-bottom: 8px; font-size: 18px; line-height: 1.5; }
.once span { color: #cfc8bd; font-size: 15px; }

/* 段落のまとまり */
.section { max-width: 1120px; margin: 0 auto; padding: clamp(56px, 8vw, 104px) clamp(16px, 4vw, 40px); }
.section h2 { font-size: clamp(26px, 3.4vw, 38px); }
.mt { margin-top: 80px; }
.soft { background: var(--soft); }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 40px 0 0; padding: 0; list-style: none; }
.steps li { padding: 26px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
.num {
  display: inline-grid; place-items: center; width: 34px; height: 34px; margin-bottom: 14px;
  border-radius: 50%; background: var(--ink); color: #fff; font-weight: 700; line-height: 1;
}
.steps b { display: block; margin-bottom: 6px; font-size: 18px; line-height: 1.5; }
.steps p { margin: 0; color: var(--muted); font-size: 15px; }

.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 32px; margin: 36px 0 0; padding: 0; list-style: none; }
.features li { position: relative; padding-left: 26px; color: var(--body); font-size: 15px; line-height: 1.7; }
.features li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

/* 画面 */
.shots { display: grid; gap: 28px; margin-top: 32px; }
.shots.two { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.shot img { border-radius: 12px; box-shadow: 0 20px 40px -24px rgba(40, 30, 20, .35), 0 0 0 1px rgba(0, 0, 0, .06); }
.shot.wide { margin-top: 40px; }
.shots.phones { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 920px; }
.shots.phones img {
  width: 100%; aspect-ratio: 390 / 780; object-fit: cover; object-position: top;
  border: 6px solid var(--ink); border-radius: 26px;
}
figcaption { margin-top: 14px; color: var(--muted); font-size: 15px; line-height: 1.7; }
figcaption b { display: block; margin-bottom: 4px; color: var(--ink); font-size: 17px; }

/* 料金 */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 40px; }
.plan { position: relative; padding: 32px; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); }
.plan.is-pro { border: 2px solid var(--ink); }
.plan h3 { font-size: 22px; }
.price { margin: 10px 0 4px; font-size: 46px; font-weight: 700; line-height: 1.3; }
.price small { margin-left: 4px; font-size: 16px; font-weight: 600; }
.plan-meta { margin: 0 0 22px; color: var(--muted); }
.tag {
  position: absolute; top: -14px; left: 28px; margin: 0; padding: 2px 14px;
  border-radius: 999px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 700;
}

.table-wrap { overflow-x: auto; margin-top: 36px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
.compare { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; }
.compare th, .compare td { padding: 14px 18px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.compare thead th { background: #f3eee6; font-size: 14px; }
.compare th[scope="row"] { font-weight: 500; }
.compare td, .compare thead th + th { width: 22%; text-align: center; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare small { display: block; color: var(--muted); font-size: 12px; font-weight: 400; }
.yes { color: var(--accent-ink); font-weight: 700; }
.no { color: #b9b1a6; }

/* 無料版で試す */
.try { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 36px 0 32px; padding: 0; list-style: none; counter-reset: step; }
.try li { padding: 22px; border-radius: 14px; background: var(--paper); color: var(--muted); font-size: 15px; line-height: 1.7; counter-increment: step; }
.try li::before { content: counter(step); display: block; color: var(--accent); font-family: var(--serif); font-size: 30px; line-height: 1.3; }
.try b { display: block; margin-bottom: 6px; color: var(--ink); font-size: 16px; }

/* サポート */
.cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px; margin-top: 30px; }
.cols h3 { margin-bottom: 10px; font-size: 20px; }
.cols ul { margin: 0; padding-left: 1.2em; color: var(--body); font-size: 15px; }
.cols li { margin-bottom: 8px; }

/* よくある質問 */
.faq { margin-top: 28px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; padding: 18px 40px 18px 0; font-weight: 700; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; top: 12px; right: 8px; color: var(--accent); font-size: 24px; }
.faq details[open] summary::after { content: "−"; }
.faq p { margin: 0 0 20px; color: var(--body); }

/* 規約のページ。読むためだけの組み。飾らない。 */
.doc { max-width: 760px; margin: 0 auto; padding: clamp(40px, 6vw, 72px) clamp(16px, 4vw, 40px) clamp(56px, 8vw, 88px); }
.doc h1 { font-size: clamp(26px, 3.4vw, 34px); }
.doc h2 { margin: 44px 0 14px; font-size: clamp(19px, 2.2vw, 22px); padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.doc h3 { margin: 26px 0 8px; font-size: 17px; }
.doc p, .doc li { color: var(--body); font-size: 15px; line-height: 1.9; }
.doc p { margin: 12px 0; }
.doc ul, .doc ol { margin: 12px 0; padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc .updated { margin: 10px 0 0; color: var(--muted); font-size: 13px; }
.doc .back { display: inline-block; margin: 0 0 18px; color: var(--muted); font-size: 14px; }
.doc table { width: 100%; margin: 16px 0; border-collapse: collapse; font-size: 15px; }
.doc th, .doc td { padding: 13px 14px; border: 1px solid var(--line); text-align: left; vertical-align: top; line-height: 1.85; }
.doc th { width: 34%; background: var(--soft); color: var(--ink); font-weight: 600; }
.doc td { background: var(--paper); color: var(--body); }
.doc .tight { margin: 6px 0 0; color: var(--muted); font-size: 13px; line-height: 1.8; }
.doc .box { margin: 20px 0; padding: 18px 20px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.doc .box p:first-child { margin-top: 0; }
.doc .box p:last-child { margin-bottom: 0; }
.doc-nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 30px 0 0; padding-top: 22px; border-top: 1px solid var(--line); font-size: 14px; }
@media (max-width: 560px) {
  .doc table, .doc tbody, .doc tr, .doc th, .doc td { display: block; width: auto; }
  .doc tr { margin: 0 0 12px; border: 1px solid var(--line); }
  .doc th, .doc td { border: 0; }
  .doc th { padding-bottom: 0; }
}

/* 足もと */
.foot { padding: 52px clamp(16px, 4vw, 40px); background: var(--ink); color: #cfc8bd; font-size: 14px; text-align: center; }
.foot .wordmark { margin: 0 0 10px; color: #fff; font-size: 24px; }
.foot a { color: #fff; }
.legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin: 18px 0; }
.foot .small { color: #9d968b; }

@media (max-width: 900px) {
  .top nav { display: none; }
  .top .btn-small { margin-left: auto; }
  .hero { grid-template-columns: 1fr; }
  .once { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps, .shots.two, .plans, .cols { grid-template-columns: 1fr; }
  .trio { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cv { gap: 34px; }
  .warn { align-items: flex-start; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .try { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .once, .features, .try { grid-template-columns: 1fr; }
  .cta { flex-direction: column; }
  .cta .btn, #try .btn { width: 100%; }
  .shots.phones { gap: 10px; }
  .shots.phones img { border-width: 4px; border-radius: 16px; }
  .shots.phones figcaption { font-size: 12px; }
  .shots.phones figcaption b { font-size: 13px; }
  .plan { padding: 26px 22px; }
  .price { font-size: 38px; }
  .cv { grid-template-columns: 1fr; }
  .trio { grid-template-columns: 1fr; gap: 16px; }
  .cv-panel { max-width: 330px; margin-inline: auto; }
  .compare { min-width: 0; font-size: 13px; }
  .compare th, .compare td { padding: 12px 10px; }
  .compare td, .compare thead th + th { width: 21%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
