/* ひかえ帳: 紙の白・墨・罫線の灰に、注文と値段だけ藍を使う */
:root {
  --paper: #f7f7f4;
  --white: #ffffff;
  --ink: #1e1d1a;
  --gray: #6b675f;
  --line: #d9d3c6;
  --accent: #24466b;
  --accent-ink: #ffffff;
  --error: #9b2c1f;
  --ja: "BIZ UDPGothic", "Hiragino Sans", "Yu Gothic", sans-serif;
  --mono: "Atkinson Hyperlegible Mono", "BIZ UDGothic", monospace;
  --wrap: 1040px;
  --text: 680px;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--ja);
  font-size: 17px;
  line-height: 1.8;
  font-feature-settings: "palt" 0;
}

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

a {
  color: var(--ink);
  text-underline-offset: 3px;
}

h1,
h2,
h3 {
  line-height: 1.4;
  margin: 0;
  font-weight: 700;
}

h1 {
  font-size: clamp(28px, 5.2vw, 46px);
  letter-spacing: 0.01em;
}

h2 {
  font-size: clamp(23px, 3.6vw, 32px);
  max-width: var(--text);
}

h3 {
  font-size: 19px;
}

p {
  margin: 0 0 1em;
}

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

.narrow {
  max-width: var(--text);
}

.mono {
  font-family: var(--mono);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.muted {
  color: var(--gray);
}

.small {
  font-size: 15px;
}

/* ---- ヘッダー・フッター ---- */
.site-head {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.site-head .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

.logo {
  font-weight: 700;
  font-size: 21px;
  letter-spacing: 0.12em;
  text-decoration: none;
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
}

.logo::after {
  content: "";
  width: 22px;
  height: 3px;
  background: var(--ink);
}

.head-link {
  font-size: 16px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 4px;
}

.site-foot {
  border-top: 1px solid var(--line);
  margin-top: 96px;
  padding: 32px 0 48px;
  font-size: 15px;
  color: var(--gray);
}

.site-foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  margin-bottom: 12px;
}

.site-foot a {
  color: var(--gray);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

/* ---- ボタン ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 28px;
  border-radius: 6px;
  border: 2px solid var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
  font: inherit;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover {
  background: #1b3653;
  border-color: #1b3653;
}

.btn:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.btn-quiet {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
  font-weight: 400;
}

.btn-quiet:hover {
  background: var(--white);
  border-color: var(--gray);
}

/* ---- 見出し写真 ---- */
.hero {
  position: relative;
  border-bottom: 1px solid var(--line);
}

.hero-photo img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: 70% 50%;
}

.hero-text {
  padding: 28px 20px 36px;
}

.hero-text p.lead {
  margin: 16px 0 24px;
  max-width: 30em;
}

.facts {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  font-size: 15px;
  color: var(--gray);
}

.facts li::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 2px;
  background: var(--gray);
  vertical-align: middle;
  margin-right: 8px;
}

@media (min-width: 960px) {
  .hero h1 {
    font-size: clamp(32px, 3.3vw, 44px);
  }

  .hero-photo img {
    aspect-ratio: auto;
    height: min(78vh, 640px);
    min-height: 520px;
    object-position: 75% 50%;
  }

  .hero-text {
    position: absolute;
    inset: 0;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .hero-text > div {
    max-width: min(460px, 38vw);
  }
}

/* ---- 節 ---- */
.section {
  padding: 88px 0 0;
}

.section > .wrap > h2 + p,
.section .intro {
  margin-top: 14px;
  max-width: var(--text);
}

/* 実物のページ */
.pages {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 36px;
}

.pages figure {
  margin: 0;
}

.pages img {
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: 0 1px 2px rgba(30, 29, 26, 0.08);
}

.pages figcaption {
  margin-top: 10px;
  font-size: 15px;
}

.pages figcaption b {
  display: block;
}

@media (max-width: 720px) {
  .pages {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 78%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 12px;
    margin-right: -20px;
    padding-right: 20px;
  }

  .pages figure {
    scroll-snap-align: start;
  }
}

.more {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
}

/* パスワードの形 */
.pw-demo {
  margin-top: 36px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 28px 20px;
}

.pw-big {
  font-family: var(--mono);
  font-weight: 600;
  font-size: clamp(30px, 7vw, 52px);
  letter-spacing: 0.06em;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
}

.pw-big span {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}

.pw-big small {
  font-family: var(--ja);
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0;
  color: var(--gray);
  border-top: 2px solid var(--ink);
  padding-top: 6px;
  margin: 4px 3px 0;
  align-self: stretch;
  text-align: center;
}

.pw-notes {
  margin: 24px auto 0;
  padding-left: 1.2em;
  max-width: 34em;
}

.pw-notes li + li {
  margin-top: 6px;
}

/* 2 列の対比 */
.compare {
  margin-top: 36px;
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--line);
  font-size: 16px;
}

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

.compare thead th {
  font-size: 15px;
  color: var(--gray);
  font-weight: 400;
}

.compare thead th:last-child {
  color: var(--ink);
  font-weight: 700;
}

.compare tbody th {
  font-weight: 700;
  width: 24%;
}

.compare td:last-child {
  border-left: 3px solid var(--ink);
}

@media (max-width: 640px) {
  .compare,
  .compare tbody,
  .compare tr,
  .compare td,
  .compare th {
    display: block;
    width: auto;
  }

  .compare thead {
    display: none;
  }

  .compare tbody th {
    border-bottom: none;
    padding-bottom: 4px;
  }

  .compare td {
    border-bottom: none;
    padding-top: 4px;
    padding-bottom: 4px;
  }

  .compare td::before {
    content: attr(data-h);
    display: block;
    font-size: 13px;
    color: var(--gray);
  }

  .compare td:first-of-type {
    color: var(--gray);
  }

  .compare td:last-child {
    border-left: none;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
  }
}

/* 安全のしくみ */
.flow {
  list-style: none;
  padding: 0;
  margin: 36px 0 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 2px solid var(--ink);
}

.flow li {
  padding: 16px 16px 0 0;
  font-size: 16px;
}

.flow b {
  display: block;
  font-size: 18px;
  margin-bottom: 6px;
}

.flow .n {
  font-family: var(--mono);
  color: var(--gray);
  font-size: 14px;
}

@media (max-width: 720px) {
  .flow {
    grid-template-columns: none;
    border-top: none;
    border-left: 2px solid var(--ink);
    gap: 18px;
  }

  .flow li {
    padding: 0 0 0 16px;
  }
}

.limit {
  margin-top: 32px;
  padding: 18px 20px;
  border-left: 4px solid var(--ink);
  background: var(--white);
  max-width: var(--text);
}

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

/* 料金 */
.prices {
  margin-top: 32px;
  border-collapse: collapse;
  min-width: min(100%, 420px);
  background: var(--white);
  border: 1px solid var(--line);
}

.prices th,
.prices td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.prices td.yen {
  text-align: right;
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.prices td.go {
  padding: 8px 12px;
}

.prices td.go a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

/* よくある質問 */
.faq {
  margin-top: 28px;
  max-width: var(--text);
  border-top: 1px solid var(--line);
}

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

.faq summary {
  cursor: pointer;
  padding: 16px 32px 16px 0;
  font-weight: 700;
  list-style: none;
  position: relative;
  min-height: 44px;
}

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

.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 14px;
  font-family: var(--mono);
  font-size: 22px;
  line-height: 1;
}

.faq details[open] summary::after {
  content: "−";
}

.faq details > div {
  padding: 0 0 18px;
}

.closing {
  margin-top: 88px;
  padding: 40px 0;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--line);
}

.closing .btn {
  margin-top: 8px;
}

/* ---- フォーム ---- */
.form-page {
  padding-top: 40px;
}

.steps-bar {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  gap: 8px;
  font-size: 14px;
  color: var(--gray);
}

.steps-bar li {
  flex: 1;
  border-top: 3px solid var(--line);
  padding-top: 6px;
}

.steps-bar li.on {
  border-color: var(--ink);
  color: var(--ink);
  font-weight: 700;
}

fieldset {
  border: none;
  margin: 32px 0 0;
  padding: 0;
}

legend {
  font-size: 20px;
  font-weight: 700;
  padding: 0;
  margin-bottom: 8px;
}

.field {
  margin-top: 18px;
}

.field label,
.field .label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
}

.req,
.opt {
  font-size: 13px;
  font-weight: 400;
  margin-left: 8px;
  color: var(--gray);
}

.hint {
  font-size: 15px;
  color: var(--gray);
  margin: 4px 0 0;
}

input[type="text"],
input[type="email"],
input[type="tel"] {
  width: 100%;
  min-height: 52px;
  padding: 10px 14px;
  font: inherit;
  font-size: 18px;
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid #a8a296;
  border-radius: 6px;
}

input.zip {
  max-width: 11em;
}

input.tel {
  max-width: 16em;
}

.field.has-error input {
  border-color: var(--error);
  border-width: 2px;
}

.error {
  color: var(--error);
  font-size: 15px;
  margin: 6px 0 0;
  font-weight: 700;
}

.error-summary {
  border: 2px solid var(--error);
  padding: 14px 18px;
  margin: 0 0 8px;
  background: var(--white);
}

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

.choice {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 10px 16px;
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
  font-weight: 400;
}

.choice:has(input:checked) {
  border-color: var(--ink);
  border-width: 2px;
}

.choice input {
  width: 22px;
  height: 22px;
  accent-color: var(--accent);
  margin: 0;
  flex: none;
}

.choice .yen {
  margin-left: auto;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  min-height: 44px;
  padding-top: 8px;
  cursor: pointer;
  font-weight: 400;
}

.check input {
  width: 22px;
  height: 22px;
  margin: 3px 0 0;
  accent-color: var(--accent);
  flex: none;
}

.actions {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: center;
}

/* 確認 */
.review {
  margin: 8px 0 0;
  background: var(--white);
  border: 1px solid var(--line);
}

.review div {
  display: grid;
  grid-template-columns: 9em 1fr;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}

.review div:last-child {
  border-bottom: none;
}

.review dt {
  color: var(--gray);
  font-size: 15px;
}

.review dd {
  margin: 0;
  word-break: break-all;
}

.review .total dd {
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
}

@media (max-width: 520px) {
  .review div {
    grid-template-columns: none;
    gap: 2px;
  }
}

.terms {
  margin-top: 24px;
  font-size: 15px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  background: var(--white);
}

.terms ul {
  margin: 0;
  padding-left: 1.2em;
}

/* 文書（特商法・プライバシー） */
.doc {
  padding-top: 40px;
}

.doc h1 {
  font-size: clamp(24px, 4vw, 32px);
  margin-bottom: 24px;
}

.doc h2 {
  font-size: 20px;
  margin: 32px 0 8px;
}

.doc table {
  border-collapse: collapse;
  width: 100%;
  background: var(--white);
  border: 1px solid var(--line);
  font-size: 16px;
}

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

.doc th {
  width: 32%;
  font-weight: 700;
}

@media (max-width: 560px) {
  .doc th,
  .doc td {
    display: block;
    width: auto;
  }

  .doc th {
    border-bottom: none;
    padding-bottom: 0;
  }
}

/* 管理 */
.admin {
  max-width: none;
  padding-top: 24px;
}

.admin table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
  background: var(--white);
}

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

.admin form {
  display: inline;
}

.admin button,
.admin .a-btn {
  font: inherit;
  font-size: 14px;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid var(--gray);
  background: var(--paper);
  border-radius: 4px;
  cursor: pointer;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  margin: 2px 0;
}

.status-paid {
  font-weight: 700;
}

.notice {
  padding: 10px 14px;
  border-left: 4px solid var(--ink);
  background: var(--white);
  margin: 12px 0;
}
