/* ナンコマ模型 — 公開ページの共通スタイル
   色は墨と白・グレー、MDF の素地色。ブランドの橙はロゴの中だけ（ここでは使わない）。
   書体はダウンロードしない（Mac ではヒラギノ）。 */

:root {
  --ink: #1d2023;
  --ink-2: #4b5157;
  --ink-3: #7a8087;
  --line: #dcd8cf;
  --line-2: #ebe7de;
  --paper: #f7f4ee;
  --white: #ffffff;
  --mdf: #eadfc9;
  --mdf-2: #d9c7a4;
  --error: #a3261b;
  --ok: #2f6b3a;
  --radius: 3px;
  --wrap: 1040px;
  --font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "BIZ UDPGothic", "Yu Gothic", "YuGothic", Meiryo, system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: 0.02em;
  font-feature-settings: "palt" 0;
  overflow-wrap: anywhere;
}

img,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 16px;
  top: 12px;
  z-index: 100;
  background: var(--white);
  padding: 8px 12px;
}

/* ---- ヘッダー ---- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.2) blur(6px);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}

.brand img {
  height: 48px;
  width: auto;
}

.site-nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
  font-size: 14px;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink-2);
}

.site-nav a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.site-header .btn {
  padding: 9px 16px;
  font-size: 14px;
}

@media (max-width: 820px) {
  .site-nav {
    display: none;
  }
  .site-header .btn {
    margin-left: auto;
  }
}

@media (max-width: 380px) {
  .brand img {
    height: 40px;
  }
  .site-header .btn {
    padding: 8px 12px;
    font-size: 13px;
  }
}

/* ---- ボタン ---- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--white);
  font: inherit;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn:hover {
  background: #33383d;
  text-decoration: none;
}

.btn.ghost {
  background: transparent;
  color: var(--ink);
}

.btn.ghost:hover {
  background: var(--paper);
}

.btn[disabled] {
  opacity: 0.5;
  cursor: progress;
}

/* ---- 見出しと区切り ---- */

section {
  padding: 88px 0;
}

section + section {
  border-top: 1px solid var(--line-2);
}

section.tint {
  background: var(--paper);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  color: var(--ink-3);
  font-size: 13px;
  letter-spacing: 0.14em;
  font-variant-numeric: tabular-nums;
}

.eyebrow::after {
  content: "";
  flex: 0 0 40px;
  height: 1px;
  background: var(--ink-3);
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0.05em;
}

h2 {
  font-size: clamp(22px, 3.2vw, 30px);
  margin-bottom: 28px;
}

h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

p {
  margin: 0 0 1em;
}

.lead {
  font-size: 17px;
  color: var(--ink-2);
  max-width: 40em;
}

.note {
  font-size: 14px;
  color: var(--ink-2);
}

/* ---- ヒーロー ---- */

.hero {
  padding: 64px 0 72px;
  background:
    linear-gradient(var(--white), rgba(255, 255, 255, 0.86)),
    repeating-linear-gradient(0deg, transparent 0 31px, var(--line-2) 31px 32px),
    repeating-linear-gradient(90deg, transparent 0 31px, var(--line-2) 31px 32px);
}

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 48px;
  align-items: center;
}

.hero h1 {
  word-break: keep-all; /* 文節の途中で折り返さない（<wbr> の所で折る） */
  font-size: clamp(27px, 4.4vw, 42px);
  line-height: 1.5;
  letter-spacing: 0.06em;
  margin-bottom: 22px;
}

.hero .lead {
  margin-bottom: 28px;
}

.facts {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
}

.facts li {
  padding: 14px 12px 12px 0;
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.5;
}

.facts li + li {
  padding-left: 14px;
  border-left: 1px solid var(--line);
}

.facts strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 17px;
  letter-spacing: 0.04em;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero figure {
  margin: 0;
  min-width: 0;
}

.hero figcaption {
  margin-top: 8px;
  font-size: 12px;
  color: var(--ink-3);
  text-align: center;
}

@media (max-width: 820px) {
  .hero {
    padding-top: 40px;
  }
  .hero .wrap {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .hero figure {
    max-width: 640px;
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .facts {
    grid-template-columns: 1fr;
  }
  .facts li,
  .facts li + li {
    padding: 12px 0;
    border-left: 0;
  }
  .facts li + li {
    border-top: 1px solid var(--line);
  }
  .cta-row .btn {
    flex: 1 1 100%;
  }
}

/* ---- 段組 ---- */

.cols {
  display: grid;
  grid-template-columns: repeat(var(--n, 2), minmax(0, 1fr));
  gap: 28px;
}

@media (max-width: 820px) {
  .cols {
    grid-template-columns: 1fr;
  }
}

.card {
  padding: 26px 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.card p:last-child {
  margin-bottom: 0;
}

.num {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 13px;
  color: var(--ink-3);
  letter-spacing: 0.12em;
  font-variant-numeric: tabular-nums;
}

ul.ticks {
  list-style: none;
  margin: 0;
  padding: 0;
}

ul.ticks li {
  position: relative;
  padding: 10px 0 10px 28px;
  border-bottom: 1px solid var(--line-2);
}

ul.ticks li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 1.15em;
  width: 10px;
  height: 10px;
  border: 1px solid var(--ink);
  transform: rotate(45deg) scale(0.8);
}

ul.plain {
  margin: 0 0 1em;
  padding-left: 1.3em;
}

ul.plain li {
  margin: 0.25em 0;
}

/* ---- 仕様の表（図面の表題欄のように） ---- */

.spec {
  width: 100%;
  border-collapse: collapse;
  border-top: 1px solid var(--ink);
  font-size: 15px;
}

.spec th,
.spec td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.spec th {
  width: 9.5em;
  font-weight: 600;
  white-space: nowrap;
  color: var(--ink);
}

.spec td {
  color: var(--ink-2);
}

@media (max-width: 560px) {
  .spec th,
  .spec td {
    display: block;
    width: auto;
    padding: 10px 0;
  }
  .spec th {
    padding-bottom: 0;
    border-bottom: 0;
  }
}

/* ---- 料金 ---- */

.price-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

@media (max-width: 720px) {
  .price-cards {
    grid-template-columns: 1fr;
  }
}

.price {
  padding: 28px 26px 24px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--ink);
  background: var(--white);
}

.price h3 {
  font-size: 16px;
  color: var(--ink-2);
  margin-bottom: 8px;
}

.price .amount {
  color: var(--ink);
  margin: 0 0 6px;
  font-size: 34px;
  font-weight: 600;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}

.price .amount small {
  font-size: 14px;
  font-weight: 400;
  color: var(--ink-2);
  margin-left: 6px;
}

.price p {
  font-size: 14px;
  color: var(--ink-2);
  margin-bottom: 0;
}

.pay-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}

.pay-methods li {
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  background: var(--white);
}

/* ---- 流れ ---- */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding: 0 0 30px 64px;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  background: var(--white);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.steps li::after {
  content: "";
  position: absolute;
  left: 20px;
  top: 40px;
  bottom: 0;
  width: 1px;
  background: var(--line);
}

.steps li:last-child {
  padding-bottom: 0;
}

.steps li:last-child::after {
  display: none;
}

.steps h3 {
  margin: 6px 0 6px;
  font-size: 17px;
}

.steps p {
  margin: 0;
  color: var(--ink-2);
  font-size: 15px;
}

/* ---- よくある質問 ---- */

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq details:first-child {
  border-top: 1px solid var(--ink);
}

.faq summary {
  position: relative;
  padding: 18px 40px 18px 0;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.15s;
}

.faq details[open] summary::after {
  transform: translateY(-30%) rotate(225deg);
}

.faq .a {
  padding: 0 0 20px;
  color: var(--ink-2);
}

/* ---- 締めの呼びかけ ---- */

.closing {
  text-align: center;
  background: var(--mdf);
}

.closing h2 {
  margin-bottom: 14px;
}

.closing .lead {
  margin: 0 auto 28px;
}

/* ---- 本文だけのページ（条件・特商法・プライバシー） ---- */

.doc {
  padding: 56px 0 88px;
}

.doc .wrap {
  max-width: 800px;
}

.doc h1 {
  font-size: clamp(24px, 3.4vw, 30px);
  margin-bottom: 10px;
}

.doc .updated {
  color: var(--ink-3);
  font-size: 13px;
  margin-bottom: 36px;
}

.doc h2 {
  font-size: 19px;
  margin: 44px 0 12px;
  padding-top: 18px;
  border-top: 1px solid var(--ink);
}

.doc p,
.doc li {
  color: var(--ink-2);
}

/* ---- フォーム ---- */

.form {
  display: grid;
  gap: 28px;
}

fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.field > label,
fieldset > legend {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.req,
.opt {
  margin-left: 8px;
  padding: 1px 7px;
  border-radius: 2px;
  font-size: 11px;
  font-weight: 600;
  vertical-align: 2px;
  letter-spacing: 0.06em;
}

.req {
  background: var(--ink);
  color: var(--white);
}

.opt {
  border: 1px solid var(--line);
  color: var(--ink-3);
}

.hint {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--ink-3);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #bdb8ad;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--ink);
  outline-offset: 0;
  border-color: var(--ink);
}

.choices {
  display: grid;
  gap: 10px;
}

.choices.row {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.choice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  cursor: pointer;
  line-height: 1.6;
}

.choice:has(input:checked) {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}

.choice input {
  margin-top: 0.3em;
  accent-color: var(--ink);
  flex: none;
}

.choice small {
  display: block;
  color: var(--ink-3);
  font-size: 13px;
}

.dropzone {
  padding: 22px;
  border: 1px dashed #a9a396;
  border-radius: var(--radius);
  background: var(--paper);
  text-align: center;
}

.dropzone.drag {
  border-color: var(--ink);
  background: var(--mdf);
}

.dropzone input[type="file"] {
  width: 100%;
  font: inherit;
  font-size: 14px;
}

.file-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  font-size: 14px;
  text-align: left;
}

.file-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px solid var(--line-2);
}

.file-list .size {
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.error-text {
  margin: 6px 0 0;
  color: var(--error);
  font-size: 14px;
}

.field.invalid input,
.field.invalid select,
.field.invalid textarea,
.field.invalid .dropzone {
  border-color: var(--error);
}

.alert {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--ink);
  background: var(--paper);
  font-size: 15px;
}

.alert.error {
  border-left-color: var(--error);
  color: var(--error);
}

.progress {
  height: 6px;
  background: var(--line-2);
  border-radius: 3px;
  overflow: hidden;
}

.progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--ink);
  transition: width 0.2s;
}

.two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

@media (max-width: 640px) {
  .two {
    grid-template-columns: 1fr;
  }
}

.receipt {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}

/* ---- フッター ---- */

.site-footer {
  padding: 56px 0 40px;
  background: var(--ink);
  color: #c9ccd0;
  font-size: 14px;
}

.site-footer .wrap {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 32px 48px;
  align-items: start;
}

.site-footer img {
  height: 56px;
  width: auto;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  justify-content: flex-end;
}

.site-footer a {
  color: #e7e9eb;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.site-footer small {
  grid-column: 1 / -1;
  color: #8d939a;
  font-size: 12px;
}

@media (max-width: 720px) {
  .site-footer .wrap {
    grid-template-columns: 1fr;
  }
  .site-footer nav {
    justify-content: flex-start;
  }
}

/* ---- 余白の小物（ページで style 属性を使わないため） ---- */

.cols.three {
  --n: 3;
}
.mt-s {
  margin-top: 12px;
}
.mt-m {
  margin-top: 28px;
}
.mt-l {
  margin-top: 48px;
}
.mb-0 {
  margin-bottom: 0;
}
.center {
  text-align: center;
}
.btn.tiny {
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 400;
}

/* ---- 写真 ---- */

.hero-photo img,
.works img,
.photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--mdf);
}

.works {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.works figure {
  margin: 0;
}

.works figcaption {
  margin-top: 8px;
  font-size: 14px;
  color: var(--ink-2);
}

@media (max-width: 820px) {
  .works {
    grid-template-columns: 1fr;
  }
}

.photo {
  margin: 24px 0 0;
}

.photo figcaption {
  margin-top: 8px;
  font-size: 13px;
  color: var(--ink-3);
}
