/* ひと名刺の営業用ページ（紹介・型カタログ・問い合わせ）。紙のパンフレットに寄せ、カードや影より罫線と余白で区切る。 */
:root {
  --paper: #F5F2EC; --paper-light: #FBF9F5; --ink: #22201C; --ink-soft: #4A463F; --muted: #776F63;
  --rule: #D6CFC2; --rule-strong: #22201C; --vermilion: #B4452F;
  --serif: "Shippori Mincho B1", "Hiragino Mincho ProN", serif;
  --sans: "Zen Kaku Gothic New", "Hiragino Sans", sans-serif;
  --phone-scale: .78; --phone-screen-width: 390px; --phone-screen-height: 844px; --phone-bezel: 8px;
  --phone-width: calc(var(--phone-screen-width) * var(--phone-scale) + var(--phone-bezel) * 2);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.9; word-break: auto-phrase; overflow-wrap: anywhere; }
h1, h2, h3, p, dl, dd, ol, ul, figure { margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 700; letter-spacing: .04em; line-height: 1.5; }
a { color: inherit; }
img, svg { display: block; }
.wrap { width: 100%; max-width: 1080px; margin-inline: auto; padding-inline: 16px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 28px;
  background: var(--ink); color: var(--paper-light); text-decoration: none; font-weight: 700; letter-spacing: .08em; border: 0; border-radius: 2px; font: inherit; font-weight: 700; cursor: pointer;
}
.button:hover { background: #000; }
.button:disabled { opacity: .5; cursor: wait; }
.text-link { color: var(--ink); text-decoration: underline; text-decoration-color: var(--vermilion); text-decoration-thickness: 2px; text-underline-offset: 6px; font-weight: 700; }
.aside-note { font-size: 13px; color: var(--muted); }
.aside-note a { text-decoration-color: var(--vermilion); }

/* ヘッダー・フッター */
.site-head { border-bottom: 1px solid var(--rule); background: var(--paper); }
.site-head-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.site-name { display: inline-flex; align-items: center; gap: 8px; font-family: var(--serif); font-weight: 700; font-size: 19px; letter-spacing: .12em; text-decoration: none; }
.site-head nav { display: flex; gap: 20px; font-size: 14px; }
.site-head nav a { text-decoration: none; padding-block: 6px; }
.site-head nav a[aria-current="page"], .site-head nav a:hover { box-shadow: inset 0 -2px 0 var(--vermilion); }
.site-foot { border-top: 1px solid var(--rule); margin-top: 0; }
.site-foot-inner { padding-block: 32px 48px; display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.foot-name { font-family: var(--serif); font-weight: 700; color: var(--ink); font-size: 16px; letter-spacing: .12em; }

/* ヒーロー：左に言葉、右に名刺の表裏 */
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding-block: 64px 72px; }
.hero h1 { font-size: clamp(34px, 5.2vw, 54px); line-height: 1.45; letter-spacing: .02em; }
.hero-text { display: grid; gap: 20px; }
.hero-lead { font-size: 18px; color: var(--ink); }
.hero-text p:not(.hero-lead) { color: var(--ink-soft); }
.hero-actions, .closing-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 8px; }
.hero-figure { display: grid; gap: 14px; }
.hero-figure figcaption { font-size: 12px; color: var(--muted); padding-left: 4px; }

.meishi-pair { position: relative; height: 460px; }
.meishi {
  position: absolute; width: 80%; max-width: 400px; aspect-ratio: 91 / 55; background: var(--paper-light);
  box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 10px 24px rgba(60,48,30,.12); padding: 6% 7%;
}
.meishi-front { top: 0; left: 0; transform: rotate(-2.5deg); display: grid; align-content: start; }
.meishi-back { bottom: 0; right: 0; transform: rotate(1.5deg); display: flex; align-items: center; gap: 7%; background: #FFFFFF; }
.meishi-company { font-family: var(--serif); font-weight: 700; font-size: 15px; letter-spacing: .1em; color: #1D5540; }
.meishi-role { font-size: 10px; color: var(--muted); margin-top: 14%; line-height: 1.5; }
.meishi-name { font-family: var(--serif); font-weight: 700; font-size: 26px; letter-spacing: .2em; line-height: 1.4; }
.meishi-roman { font-size: 10px; letter-spacing: .14em; color: var(--muted); }
.meishi-contact { position: absolute; right: 7%; bottom: 8%; font-size: 9.5px; text-align: right; line-height: 1.6; color: var(--ink-soft); }
.meishi-qr { width: 38%; flex: none; }
.meishi-qr svg, .card-qr-blank { width: 100%; height: auto; aspect-ratio: 1; }
.card-qr-blank { display: block; background: repeating-linear-gradient(45deg, #ddd 0 4px, #eee 4px 8px); }
.meishi-back p { font-family: var(--serif); font-size: 15px; line-height: 1.8; }

/* セクション共通 */
.section { padding-block: 72px; border-top: 1px solid var(--rule); }
.section h2 { font-size: clamp(24px, 3.4vw, 32px); }
.section-lead { margin-top: 12px; max-width: 42em; color: var(--ink-soft); }

/* 表の名前が隠れないよう、裏面は右下へずらして重ねる */
.meishi-back { z-index: 1; }

/* 名刺交換のあとの表 */
.table-scroll { margin-top: 32px; overflow-x: auto; }
.exchange { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 15px; }
.exchange th, .exchange td { text-align: left; vertical-align: top; padding: 18px 16px; border-bottom: 1px solid var(--rule); }
.exchange thead th { font-size: 13px; color: var(--muted); font-weight: 500; border-bottom: 2px solid var(--rule-strong); }
.exchange thead th:last-child { color: var(--vermilion); font-weight: 700; }
.exchange tbody th { font-family: var(--serif); font-size: 17px; white-space: nowrap; width: 6.5em; }
.exchange td:nth-child(2) { color: var(--muted); width: 40%; }
.exchange td:last-child { font-weight: 500; }

/* スマホの実寸プレビュー */
.phone-screen {
  width: var(--phone-width); height: calc(var(--phone-screen-height) * var(--phone-scale) + var(--phone-bezel) * 2);
  padding: var(--phone-bezel); background: #1A1917; border-radius: 34px; overflow: hidden; flex: none;
}
.phone-screen iframe {
  width: var(--phone-screen-width); height: var(--phone-screen-height); border: 0; display: block; border-radius: 30px;
  transform: scale(var(--phone-scale)); transform-origin: 0 0; background: #fff;
}

.demo-section { background: var(--paper-light); }
.demo-inner { display: grid; grid-template-columns: var(--phone-width) 1fr; gap: 56px; align-items: center; }
.demo-text { display: grid; gap: 18px; max-width: 34em; }
.demo-text p { color: var(--ink-soft); }

/* 載せられること */
.contents-list { margin-top: 28px; display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; border-top: 2px solid var(--rule-strong); }
.contents-list div { display: grid; grid-template-columns: 11em 1fr; gap: 16px; padding-block: 16px; border-bottom: 1px solid var(--rule); }
.contents-list dt { font-weight: 700; }
.contents-list dd { color: var(--ink-soft); font-size: 15px; }
.contents-list + .aside-note { margin-top: 14px; }

/* 型の一覧（紹介ページ内） */
.themes-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.themes-inner > div { display: grid; gap: 16px; }
.themes-inner > div p { color: var(--ink-soft); }
.themes-list { list-style: none; padding: 0; border-top: 2px solid var(--rule-strong); }
.themes-list li { display: flex; justify-content: space-between; gap: 16px; padding-block: 14px; border-bottom: 1px solid var(--rule); }
.themes-list a { font-family: var(--serif); font-weight: 700; font-size: 18px; text-decoration: none; }
.themes-list a:hover { text-decoration: underline; text-decoration-color: var(--vermilion); }
.themes-list span { font-size: 13px; color: var(--muted); text-align: right; }

/* 進め方 */
.steps { list-style: none; padding: 0; margin-top: 32px; counter-reset: step; display: grid; gap: 0; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 3.2em 12em 1fr; gap: 16px; padding-block: 20px; border-top: 1px solid var(--rule); }
.steps li:last-child { border-bottom: 1px solid var(--rule); }
.steps li::before { content: counter(step); font-family: var(--serif); font-size: 28px; line-height: 1.2; color: var(--vermilion); }
.steps h3 { font-size: 17px; line-height: 1.6; margin: 0; }
.steps p { color: var(--ink-soft); font-size: 15px; }

.price-section .wrap { display: grid; gap: 14px; max-width: 760px; margin-left: max(16px, calc((100% - 1080px) / 2)); }
.price-section p { color: var(--ink-soft); }

/* よくある質問 */
.faq { margin-top: 28px; border-top: 2px solid var(--rule-strong); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; padding: 18px 36px 18px 0; font-weight: 700; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "＋"; position: absolute; right: 4px; top: 18px; color: var(--vermilion); font-weight: 400; }
.faq details[open] summary::after { content: "－"; }
.faq details p { padding: 0 0 20px; color: var(--ink-soft); font-size: 15px; max-width: 46em; }

/* 締め */
.closing { background: var(--ink); color: var(--paper-light); }
.closing-inner { padding-block: 64px; display: grid; gap: 14px; }
.closing h2 { font-size: clamp(24px, 3.4vw, 32px); }
.closing p { color: rgba(251,249,245,.78); max-width: 40em; }
.closing .button { background: var(--paper-light); color: var(--ink); }
.closing .text-link { color: var(--paper-light); }

/* 型カタログ */
.kata-intro .wrap, .contact-intro .wrap { padding-block: 56px 40px; display: grid; gap: 14px; max-width: 1080px; }
.kata-intro h1, .contact-intro h1 { font-size: clamp(30px, 4.4vw, 44px); }
.kata-intro p, .contact-intro p { max-width: 40em; color: var(--ink-soft); }
.kata-list { display: grid; padding-bottom: 72px; }
.kata { display: grid; grid-template-columns: var(--phone-width) 1fr; gap: 56px; align-items: center; padding-block: 48px; border-top: 1px solid var(--rule); }
.kata:nth-child(even) { grid-template-columns: 1fr var(--phone-width); }
.kata:nth-child(even) .kata-phone { order: 2; }
.kata-text { display: grid; gap: 16px; min-width: 0; max-width: 520px; }
.kata h2 { font-size: 30px; }
.kata-concept { font-size: 16px; color: var(--ink-soft); }
.kata-spec { border-collapse: collapse; font-size: 14px; border-top: 2px solid var(--rule-strong); }
.kata-spec th, .kata-spec td { text-align: left; vertical-align: top; padding: 11px 0; border-bottom: 1px solid var(--rule); }
.kata-spec th { width: 8.5em; color: var(--muted); font-weight: 500; padding-right: 12px; }
.kata-colors { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.kata-colors li { display: inline-flex; align-items: center; gap: 6px; }
.kata-colors span { width: 14px; height: 14px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.kata-links { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 4px; }
.kata-qr { display: grid; gap: 4px; justify-items: start; }
.kata-qr svg { width: 96px; height: 96px; }
.kata-qr figcaption { font-size: 11px; color: var(--muted); }

/* 問い合わせ */
.contact-body .wrap { padding-bottom: 80px; }
.inquiry { display: grid; gap: 22px; max-width: 760px; border-top: 2px solid var(--rule-strong); padding-top: 32px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field { display: grid; gap: 6px; font-size: 14px; font-weight: 700; }
.field em { font-style: normal; font-size: 11px; color: var(--vermilion); margin-left: 8px; font-weight: 700; }
.field input, .field select, .field textarea {
  font: inherit; font-weight: 400; font-size: 16px; width: 100%; padding: 12px 12px; background: var(--paper-light);
  border: 1px solid #BDB4A5; border-radius: 2px; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--ink); outline-offset: 1px; }
.field textarea { resize: vertical; line-height: 1.8; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status:empty { display: none; }
.form-status { font-weight: 700; padding: 12px 14px; background: var(--paper-light); border-left: 3px solid var(--ink); }
.form-status.is-error { border-left-color: var(--vermilion); color: var(--vermilion); }
.inquiry .button { justify-self: start; min-width: 220px; }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 36px; padding-block: 40px 56px; }
  .meishi-pair { height: auto; display: grid; gap: 18px; max-width: 420px; }
  .meishi { position: relative; width: 100%; }
  .meishi-back { width: 92%; justify-self: end; }
  .demo-inner, .themes-inner { grid-template-columns: 1fr; gap: 32px; }
  .demo-phone { justify-self: center; }
  .contents-list { grid-template-columns: 1fr; }
  .kata, .kata:nth-child(even) { grid-template-columns: 1fr; gap: 28px; }
  .kata:nth-child(even) .kata-phone { order: 0; }
  .kata-phone { justify-self: center; }
}

@media (max-width: 600px) {
  .site-head nav { gap: 14px; font-size: 13px; }
  .site-name { font-size: 17px; }
  .section { padding-block: 52px; }
  .hero-lead { font-size: 17px; }
  .contents-list div { grid-template-columns: 1fr; gap: 2px; }
  .steps li { grid-template-columns: 2.2em 1fr; }
  .steps li p { grid-column: 2; }
  .field-row { grid-template-columns: 1fr; }
  .inquiry .button { justify-self: stretch; }
  .themes-list li { flex-direction: column; gap: 0; }
  .themes-list span { text-align: left; }
  .kata-qr { display: none; }
  .demo-phone, .kata-phone { display: none; }
}
