/* =========================================
   P4TH print works
   白黒基調・罫線・線画アイコン
   ========================================= */

:root {
  --black: #111;
  --white: #fff;
  --gray: #f4f4f2;
  --line: #111;
  --muted: #555;
  --todo: #c0392b;
  --font-en: "Montserrat", "Noto Sans JP", sans-serif;
  --font-ja: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  --header-h: 60px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: var(--font-ja);
  color: var(--black);
  background: var(--white);
  line-height: 1.8;
  font-size: 15px;
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
small { font-size: .75em; font-weight: 500; }

.container { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 680px; }
.center { text-align: center; }

/* ---------- 【要確認】表示 ---------- */
.todo {
  border: 2px dashed var(--todo);
  color: var(--todo);
  padding: 10px 14px;
  font-weight: 700;
  font-size: 14px;
  text-align: center;
  margin: 0 0 24px;
}
.todo-inline {
  color: var(--todo);
  font-weight: 700;
  white-space: nowrap;
}

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 2px solid var(--line);
}
.header-inner {
  height: var(--header-h);
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-family: var(--font-en);
  font-weight: 900;
  font-size: 28px;
  letter-spacing: .02em;
  text-decoration: none;
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.logo span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.menu-btn {
  width: 44px; height: 44px;
  border: 0; background: none; padding: 10px;
  display: flex; flex-direction: column; justify-content: space-between;
  cursor: pointer;
}
.menu-btn span { display: block; height: 2px; background: var(--black); transition: .25s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

.global-nav {
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0;
  background: var(--white);
  border-bottom: 2px solid var(--line);
  transform: translateY(-120%);
  visibility: hidden;
  transition: transform .3s, visibility .3s;
}
.global-nav.open { transform: translateY(0); visibility: visible; }
.global-nav ul { list-style: none; margin: 0; padding: 8px 20px 20px; }
.global-nav li { border-bottom: 1px dotted var(--line); }
.global-nav a { display: block; padding: 14px 4px; text-decoration: none; font-weight: 700; }
.global-nav .nav-cta {
  margin-top: 12px;
  background: var(--black); color: var(--white);
  text-align: center;
}

@media (min-width: 900px) {
  .menu-btn { display: none; }
  .global-nav {
    position: static; transform: none; visibility: visible;
    border: 0; background: none;
  }
  .global-nav ul { display: flex; align-items: center; gap: 22px; padding: 0; }
  .global-nav li { border: 0; }
  .global-nav a { padding: 6px 0; font-size: 14px; }
  .global-nav a:not(.nav-cta):hover { text-decoration: underline; text-underline-offset: 6px; }
  .global-nav .nav-cta { margin: 0; padding: 8px 18px; }
}

/* ---------- ボタン ---------- */
.btn {
  display: inline-block;
  padding: 15px 28px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  border: 2px solid var(--black);
  font-size: 15px;
  font-family: var(--font-ja);
  cursor: pointer;
  transition: background .2s, color .2s;
}
.btn-primary { background: var(--black); color: var(--white); }
.btn-primary:hover { background: var(--white); color: var(--black); }
.btn-outline { background: var(--white); color: var(--black); }
.btn-outline:hover { background: var(--black); color: var(--white); }
.btn.is-disabled { background: var(--gray); color: var(--muted); border-color: var(--muted); cursor: default; pointer-events: none; }
.btn-white { background: var(--white); color: var(--black); border-color: var(--white); }
.btn-white:hover { background: transparent; color: var(--white); }
.btn-block { display: block; width: 100%; }

/* ---------- トップ ---------- */
.hero {
  padding: 56px 20px 64px;
  text-align: center;
  border-bottom: 2px solid var(--line);
}
.hero-inner { max-width: 720px; margin: 0 auto; }
.hero-logo {
  font-family: var(--font-en);
  font-weight: 900;
  font-size: clamp(88px, 26vw, 200px);
  line-height: .9;
  margin: 0;
  letter-spacing: .01em;
}
.hero-sub {
  font-family: var(--font-en);
  font-weight: 700;
  letter-spacing: .25em;
  font-size: clamp(12px, 3.4vw, 18px);
  margin: 18px auto 0;
  padding-top: 14px;
  border-top: 2px solid var(--line);
  display: inline-block;
}
.hero-lead { margin: 28px 0 0; font-size: 15px; }
.hero-badge {
  margin: 32px auto 0;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  border: 3px solid var(--black);
  padding: 16px 32px 12px;
}
.badge-small { font-size: 13px; font-weight: 700; letter-spacing: .1em; }
.badge-big { font-size: clamp(40px, 12vw, 64px); font-weight: 900; line-height: 1.2; }
.badge-big strong { font-family: var(--font-en); margin-left: .1em; }
.hero-actions {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
@media (min-width: 600px) {
  .hero-actions { flex-direction: row; justify-content: center; }
  .hero-lead { font-size: 17px; }
}

/* ---------- セクション共通 ---------- */
.section { padding: 64px 0; border-bottom: 1px dotted var(--line); }
.section-gray { background: var(--gray); }
.section-dark { background: var(--black); color: var(--white); }

.sec-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 12px;
  font-size: 22px;
  font-weight: 900;
  margin: 0 0 28px;
  line-height: 1.4;
}
.sec-title::before {
  content: "";
  width: 16px; height: 16px;
  background: currentColor;
  flex-shrink: 0;
}
.sec-title::after {
  content: "";
  flex: 1 1 40px;
  height: 2px;
  background: currentColor;
  min-width: 40px;
}
.sec-en {
  order: 3;
  width: 100%;
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: .25em;
  font-weight: 700;
  color: var(--muted);
  padding-left: 28px;
}
.section-dark .sec-en { color: #aaa; }

.sub-title {
  font-size: 18px;
  font-weight: 900;
  margin: 40px 0 8px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--line);
}
.sub-title:first-of-type { margin-top: 0; }

.note { font-size: 13px; color: var(--muted); margin: 8px 0 16px; }
.hint { font-size: 12px; color: var(--muted); margin: 4px 0 0; }

.dot-list { list-style: none; padding: 0; margin: 0; }
.dot-list li { position: relative; padding-left: 1.2em; margin-bottom: 6px; }
.dot-list li::before { content: "・"; position: absolute; left: 0; }
.dot-list.small { font-size: 13px; }

.icon { width: 56px; height: 56px; color: var(--black); }
.icon-lg { width: 96px; height: 96px; }

.two-col { display: grid; gap: 48px; }
@media (min-width: 800px) {
  .two-col { grid-template-columns: 1fr 1fr; gap: 0; }
  .two-col > div + div { border-left: 1px solid var(--line); padding-left: 40px; }
  .two-col > div:first-child { padding-right: 40px; }
  .two-col-wide { grid-template-columns: 1fr 1.6fr; }
}

.info-list {
  margin: 24px 0 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.info-list dt { font-weight: 700; padding-top: 10px; }
.info-list dd { margin: 0; padding: 0 0 10px; border-bottom: 1px dotted var(--line); }
@media (min-width: 600px) {
  .info-list { display: grid; grid-template-columns: 11em 1fr; }
  .info-list dt, .info-list dd { padding: 10px 0; border-bottom: 1px dotted var(--line); }
}

/* ---------- 特徴 ---------- */
.features { display: grid; gap: 20px; }
.feature {
  border: 2px solid var(--line);
  padding: 28px 24px;
  text-align: center;
}
.feature h3 { font-size: 18px; font-weight: 900; margin: 12px 0 8px; }
.feature p { margin: 0; font-size: 14px; text-align: left; }
@media (min-width: 800px) { .features { grid-template-columns: repeat(3, 1fr); } }

/* ---------- 作品例 ---------- */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.gallery figure { margin: 0; }
.gallery .ph, .gallery img {
  aspect-ratio: 1 / 1;
  width: 100%;
  object-fit: cover;
}
.gallery .ph {
  display: flex; align-items: center; justify-content: center;
  background:
    linear-gradient(to top right, transparent calc(50% - 1px), #bbb, transparent calc(50% + 1px)),
    linear-gradient(to top left, transparent calc(50% - 1px), #bbb, transparent calc(50% + 1px)),
    var(--white);
  border: 1px solid var(--line);
  font-family: var(--font-en);
  font-weight: 700;
  letter-spacing: .15em;
  font-size: 12px;
  color: var(--muted);
}
.gallery figcaption { font-size: 12px; margin-top: 6px; }
@media (min-width: 800px) { .gallery { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

/* ---------- ご注文の流れ ---------- */
.flow {
  list-style: none;
  padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 8px;
}
.flow li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
  text-align: center;
}
.flow .num {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--black); color: var(--white);
  font-family: var(--font-en); font-weight: 700; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
}
.flow .label { font-size: 13px; font-weight: 700; }
.flow li:not(:last-child)::after {
  content: "›";
  position: absolute;
  right: -10px; top: 50px;
  font-size: 24px; font-weight: 700;
  line-height: 1;
}
.flow li:nth-child(3)::after { display: none; }
@media (min-width: 800px) {
  .flow { grid-template-columns: repeat(6, 1fr); }
  .flow li:nth-child(3)::after { display: block; }
  .flow .label { font-size: 14px; }
}

/* ---------- 対応アイテム・入稿データ ---------- */
.items { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 20px; max-width: 360px; }
.item { display: flex; flex-direction: column; align-items: center; gap: 8px; font-weight: 700; }
@media (min-width: 480px) { .items { grid-template-columns: repeat(4, 1fr); max-width: none; } }
.data-list { font-family: var(--font-en), var(--font-ja); font-weight: 600; font-size: 16px; }
.data-list li { margin-bottom: 10px; }

/* ---------- テーブル ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: 12px; }
.table {
  width: 100%;
  border-collapse: collapse;
  border: 2px solid var(--line);
  background: var(--white);
}
.table th, .table td {
  border: 1px solid var(--line);
  padding: 12px 14px;
}
.plate-table th { text-align: left; font-size: 17px; font-weight: 700; }
.plate-table th small { display: block; font-size: 12px; color: var(--muted); }
.plate-table td {
  width: 36%;
  text-align: center;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 20px;
}
.print-table { min-width: 340px; text-align: center; font-size: 14px; }
@media (min-width: 600px) { .print-table { font-size: 15px; } }
.print-table thead th { background: var(--black); color: var(--white); border-color: #555; font-family: var(--font-en); }
.print-table thead th:first-child { font-family: var(--font-ja); }
.print-table td { font-family: var(--font-en); font-weight: 600; padding: 10px 4px; }
.print-table th { padding: 10px 4px; }
.print-table tbody th { font-weight: 700; background: var(--gray); white-space: nowrap; }
.print-table .estimate { font-family: var(--font-ja); font-weight: 700; font-size: 13px; }
.print-table tr.hl td, .print-table tr.hl th { background: #ffe; }
.print-table td.hl { outline: 3px solid var(--black); outline-offset: -3px; background: #ffe; }
.option-table th { background: var(--black); color: var(--white); border-color: #555; }
.option-table td:last-child { text-align: center; width: 36%; font-weight: 700; white-space: nowrap; }

.example {
  border: 2px solid var(--line);
  padding: 20px;
  background: var(--gray);
}
.example-case { font-weight: 900; margin: 0 0 8px; }
.example-calc {
  margin: 0;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px;
}
.example-calc strong { font-family: var(--font-en); font-size: 26px; font-weight: 900; }
.example-calc .plus { font-size: 13px; }

/* ---------- 見積もり計算機 ---------- */
.calc { display: grid; gap: 20px; }
@media (min-width: 800px) { .calc { grid-template-columns: 1.4fr 1fr 1fr; } }
.calc-field label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.calc select,
.calc input {
  width: 100%;
  font-size: 18px;
  padding: 12px;
  border: 2px solid var(--white);
  background: var(--black);
  color: var(--white);
  font-family: inherit;
  border-radius: 0;
}
.calc select { appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #fff 50%), linear-gradient(135deg, #fff 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px; background-repeat: no-repeat;
}
.stepper { display: flex; align-items: stretch; border: 2px solid var(--white); }
.stepper input {
  border: 0; text-align: center; font-family: var(--font-en); font-weight: 700;
  -moz-appearance: textfield; min-width: 0;
}
.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper .unit { display: flex; align-items: center; padding-right: 10px; }
.stepper button {
  width: 52px; flex-shrink: 0;
  background: var(--white); color: var(--black);
  border: 0; font-size: 22px; font-weight: 700; cursor: pointer;
}

.calc-result {
  margin-top: 28px;
  border: 2px solid var(--white);
  padding: 20px;
}
.calc-breakdown { font-size: 14px; }
.calc-breakdown .row {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 6px 0;
  border-bottom: 1px dotted #777;
}
.calc-breakdown .row span:last-child { font-family: var(--font-en); font-weight: 600; white-space: nowrap; }
.calc-total {
  display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap;
  padding: 14px 0 4px;
  font-weight: 700;
}
.calc-total strong { font-family: var(--font-en); font-size: clamp(30px, 9vw, 44px); font-weight: 900; }
.calc-total strong.ask { font-family: var(--font-ja); font-size: 24px; }
.calc-note { font-size: 12px; color: #ccc; margin: 4px 0 20px; }
.calc-result .btn { display: block; }

/* ---------- 納期 ---------- */
.lead-big { font-size: 24px; font-weight: 900; margin: 0 0 8px; }

/* ---------- FAQ ---------- */
.faq { border-top: 2px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 40px 16px 34px;
  position: relative;
  font-weight: 700;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: "Q";
  position: absolute; left: 4px; top: 15px;
  font-family: var(--font-en); font-weight: 900;
}
.faq summary::after {
  content: "+";
  position: absolute; right: 8px; top: 12px;
  font-size: 22px; font-weight: 400;
}
.faq details[open] summary::after { content: "−"; }
.faq details p {
  margin: 0; padding: 0 12px 18px 34px; position: relative; font-size: 14px;
}
.faq details p::before {
  content: "A";
  position: absolute; left: 4px; top: 0;
  font-family: var(--font-en); font-weight: 900;
}

/* ---------- フォーム ---------- */
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form {
  margin-top: 28px;
  background: var(--white);
  border: 2px solid var(--line);
  padding: 24px 20px;
}
.form-row { margin: 0 0 20px; border: 0; padding: 0; min-width: 0; }
.form-row > label, .form-row > legend {
  display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; padding: 0;
}
.req, .opt {
  display: inline-block;
  font-size: 11px;
  padding: 0 6px;
  margin-left: 8px;
  vertical-align: 2px;
  line-height: 1.7;
}
.req { background: var(--black); color: var(--white); }
.opt { border: 1px solid var(--black); }
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form input[type="number"],
.contact-form input[type="date"],
.contact-form select,
.contact-form textarea {
  width: 100%;
  font-size: 16px; /* iOSで拡大されないよう16px */
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--white);
  font-family: inherit;
  color: var(--black);
}
.contact-form input[type="file"] { font-size: 14px; max-width: 100%; }
.contact-form :focus-visible { outline: 3px solid var(--black); outline-offset: 1px; }
.contact-form .invalid { border: 2px solid var(--todo) !important; }
.field-error { font-size: 13px; font-weight: 700; color: var(--todo); margin: 6px 0 0; }
.calc-field .field-error { color: #ff6b5b; }
.calc-result-box { border: 2px solid var(--line); background: var(--gray); padding: 14px 16px; margin-bottom: 24px; }
.calc-result-box-label { font-weight: 900; font-size: 13px; margin: 0 0 6px; }
#calc-result-box-text { margin: 0; font-weight: 700; }
.size-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 10px; }
.size-field-label { display: block; font-family: var(--font-en); font-weight: 700; font-size: 13px; margin-bottom: 4px; }
@media (min-width: 600px) { .size-grid { grid-template-columns: repeat(6, 1fr); } }
.size-total { margin: 8px 0 0; font-size: 14px; text-align: right; }

.form-stepper { display: flex; align-items: stretch; min-width: 0; border: 1px solid var(--line); background: var(--white); }
.contact-form .form-stepper input[type="number"] {
  width: 100%;
  flex: 1 1 0;
  min-width: 0;
  border: 0;
  background: transparent;
  text-align: center;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 16px; /* iOSで拡大されないよう16px */
  color: var(--black);
  -moz-appearance: textfield;
  padding: 10px 2px;
}
.form-stepper input::-webkit-outer-spin-button,
.form-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.form-stepper-btn {
  width: 48px;
  flex-shrink: 0;
  background: var(--black);
  color: var(--white);
  border: 0;
  font-family: inherit;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
}
.form-stepper-btn:active { background: var(--muted); }
.form-stepper-btn:disabled { background: #ccc; cursor: default; }
.form-stepper-sm .form-stepper-btn { width: 28px; font-size: 15px; }
.contact-form .form-stepper-sm input[type="number"] { font-size: 15px; padding: 8px 1px; }
.size-field { min-width: 0; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.checks label { display: flex; align-items: center; gap: 6px; font-size: 15px; }
.checks input, .agree input { width: 18px; height: 18px; accent-color: var(--black); }
.agree label { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.form-message { font-weight: 700; margin: 0 0 12px; }
.form-message.error { color: var(--todo); }
.contact-info { margin-top: 32px; }

/* ---------- フッター ---------- */
.site-footer {
  background: var(--black);
  color: var(--white);
  text-align: center;
  padding: 48px 20px 96px;
}
.footer-tag {
  font-family: var(--font-en); font-weight: 700; letter-spacing: .3em; font-size: 12px;
  display: flex; align-items: center; gap: 16px; max-width: 600px; margin: 0 auto 24px;
}
.footer-tag::before, .footer-tag::after { content: ""; flex: 1; height: 2px; background: var(--white); }
.footer-logo {
  font-family: var(--font-en); font-weight: 900; font-size: 44px; line-height: 1; margin: 0 0 24px;
}
.footer-logo span { display: block; font-size: 11px; letter-spacing: .3em; font-weight: 700; margin-top: 6px; text-transform: uppercase; }
.footer-links { list-style: none; padding: 0; margin: 0 0 20px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; font-size: 13px; }
.copy { font-size: 11px; color: #999; margin: 0; }

/* スマホ用の追従ボタン */
.float-cta {
  position: fixed;
  right: 12px; bottom: 12px;
  z-index: 90;
  background: var(--black); color: var(--white);
  border: 2px solid var(--white);
  outline: 2px solid var(--black);
  padding: 12px 18px;
  font-weight: 700; font-size: 14px;
  text-decoration: none;
  opacity: 0; pointer-events: none;
  transition: opacity .3s;
}
.float-cta.show { opacity: 1; pointer-events: auto; }
@media (min-width: 900px) { .float-cta { display: none; } .site-footer { padding-bottom: 48px; } }

/* ---------- 下層ページ（特商法・プライバシー） ---------- */
.page { padding: 48px 0 80px; }
.page h1 { font-size: 24px; font-weight: 900; border-bottom: 2px solid var(--line); padding-bottom: 10px; margin: 0 0 28px; }
.page h2 { font-size: 17px; font-weight: 900; margin: 32px 0 8px; }
.page .back { display: inline-block; margin-top: 40px; font-weight: 700; }
.not-found-code { font-family: var(--font-en); font-weight: 900; font-size: 72px; line-height: 1; margin: 0 0 8px; color: var(--muted); }
.page .btn { margin-top: 24px; }
.law-table { width: 100%; border-collapse: collapse; border-top: 2px solid var(--line); font-size: 14px; }
.law-table th, .law-table td { text-align: left; vertical-align: top; padding: 12px 8px; border-bottom: 1px solid var(--line); }
.law-table th { width: 34%; background: var(--gray); font-weight: 700; }
@media (max-width: 599px) {
  .law-table th, .law-table td { display: block; width: 100%; }
  .law-table th { border-bottom: 0; }
}

/* ---------- ボディ一覧・ボディ詳細 ---------- */
.body-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0; }
.body-tab {
  flex: 0 0 auto;
  padding: 8px 16px;
  border: 2px solid var(--line);
  background: var(--white);
  color: var(--black);
  font-family: var(--font-ja);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}
.body-tab.is-active { background: var(--black); color: var(--white); }

.body-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 800px) { .body-grid { grid-template-columns: repeat(4, 1fr); gap: 18px; } }
.body-card { display: block; border: 2px solid var(--line); color: inherit; text-decoration: none; background: var(--white); }
.body-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; border-bottom: 2px solid var(--line); background: var(--gray); }
.body-card-body { padding: 10px 12px; }
.body-card-id { font-family: var(--font-en); font-weight: 700; font-size: 11px; color: var(--muted); letter-spacing: .04em; }
.body-card-name { font-size: 13px; font-weight: 700; margin: 4px 0 6px; line-height: 1.4; }
.body-card-meta { font-size: 11px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 8px; }

.body-eyebrow { font-family: var(--font-en); font-weight: 700; font-size: 12px; letter-spacing: .08em; color: var(--muted); margin: 0 0 4px; }
.body-tagline { color: var(--muted); margin: 4px 0 0; }

.body-photo { position: relative; max-width: 480px; margin: 20px auto; border: 2px solid var(--line); background: var(--gray); aspect-ratio: 1 / 1; overflow: hidden; }
.body-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.body-photo-toggle { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); display: flex; border: 2px solid var(--line); background: var(--white); }
.body-photo-toggle button { padding: 7px 18px; font-size: 12px; font-weight: 700; border: none; background: var(--white); color: var(--black); cursor: pointer; font-family: var(--font-ja); }
.body-photo-toggle button.is-active { background: var(--black); color: var(--white); }

.notice-box { border: 2px solid var(--line); background: var(--gray); padding: 12px 14px; font-size: 13px; font-weight: 700; margin: 16px 0; }

.body-colors-label { font-weight: 700; margin: 24px 0 10px; }
.body-chip-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 10px; }
.chip-wrap { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.color-chip {
  position: relative;
  width: 30px; height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px solid var(--line);
  padding: 0;
  cursor: pointer;
}
.color-chip:hover:not(.is-selected) { box-shadow: 0 2px 6px rgba(0,0,0,.45); }
.color-chip.is-selected { outline: 3px solid var(--black); outline-offset: 2px; }
.color-chip-check { font-size: 15px; font-weight: 900; line-height: 1; opacity: 0; pointer-events: none; }
.color-chip.is-selected .color-chip-check { opacity: 1; }
.chip-stock { font-size: 9px; color: var(--todo); white-space: nowrap; }
.link-btn { background: none; border: none; padding: 0; font-family: var(--font-ja); font-weight: 700; font-size: 13px; text-decoration: underline; cursor: pointer; color: var(--black); }

.bodycolor-display { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.bodycolor-swatch { display: inline-block; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line); flex-shrink: 0; }
#bodycolor-empty .btn { margin-top: 8px; }

.body-card[hidden] { display: none; }
.body-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 2px solid var(--black);
  background: var(--gray);
  padding: 14px 16px;
}
.body-card-selected-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--white);
  background: var(--black);
  display: inline-block;
  padding: 2px 8px;
  margin-bottom: 4px;
}
.btn-sm { padding: 8px 16px; font-size: 13px; flex-shrink: 0; }
.body-undecided-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 14px;
  font-size: 14px;
  cursor: pointer;
}
.body-undecided-check input { width: 16px; height: 16px; }

.size-table { min-width: 420px; text-align: center; font-size: 13px; }
.size-table th, .size-table td { padding: 8px 6px; }
.size-table thead th { background: var(--black); color: var(--white); }
.size-table tbody th { background: var(--gray); text-align: left; white-space: nowrap; }

/* ---------- 希望納期カレンダー（自作） ---------- */
.date-field { position: relative; }
.date-trigger {
  width: 100%;
  text-align: left;
  font-size: 16px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--black);
  font-family: inherit;
  cursor: pointer;
}
.date-trigger.is-placeholder { color: var(--muted); }
.date-popup {
  position: absolute;
  z-index: 20;
  top: calc(100% + 6px);
  left: 0;
  width: 280px;
  max-width: 90vw;
  background: var(--white);
  border: 2px solid var(--line);
  padding: 12px;
  box-shadow: 4px 4px 0 var(--black);
}
.date-popup-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.date-month-label { font-weight: 700; font-size: 14px; }
.date-nav {
  width: 28px; height: 28px;
  border: 1px solid var(--line);
  background: var(--white);
  font-family: inherit;
  cursor: pointer;
}
.date-nav:disabled { opacity: .3; cursor: default; }
.date-weekdays, .date-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.date-weekdays { font-size: 11px; color: var(--muted); text-align: center; margin-bottom: 4px; }
.date-grid button {
  aspect-ratio: 1 / 1;
  border: 1px solid transparent;
  background: none;
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
}
.date-grid button:hover:not(:disabled) { border-color: var(--line); }
.date-grid button:disabled { color: #ccc; cursor: default; }
.date-grid button.is-selected { background: var(--black); color: var(--white); }
.date-grid span.date-empty { visibility: hidden; }

/* ---------- インクの色選択 ---------- */
.ink-slot { border: 1px solid var(--line); padding: 14px; margin-bottom: 14px; }
.ink-slot-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 10px; }
.ink-slot-title { font-weight: 700; margin: 0; }
.ink-slot-selected { font-size: 12px; font-weight: 700; color: var(--muted); margin: 0; display: flex; align-items: center; gap: 6px; }
.ink-slot-selected.has-value { color: var(--black); }
.ink-slot-selected-swatch { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 1px solid var(--line); flex-shrink: 0; }
.ink-maker-title { font-size: 14px; font-weight: 900; margin: 0 0 6px; }
.ink-series-title { font-size: 13px; font-weight: 700; color: var(--muted); margin: 12px 0 6px; }
.ink-series-title:first-of-type { margin-top: 0; }
.ink-chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.ink-chip-wrap { display: flex; flex-direction: column; align-items: center; gap: 3px; width: 44px; }
.ink-chip-name { font-size: 10px; text-align: center; line-height: 1.2; }
.ink-chip-special {
  padding: 8px 14px;
  border: 2px solid var(--line);
  background: var(--white);
  color: var(--black);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  align-self: flex-start;
}
.ink-chip-special:hover:not(.is-selected) { background: var(--gray); }
.ink-chip-special.is-selected { background: var(--black); color: var(--white); }
.ink-special-row { justify-content: flex-end; margin-top: 10px; }
.ink-special-row .ink-chip-special { align-self: flex-end; }
.ink-need-tone { font-size: 13px; font-weight: 700; color: var(--todo); margin: 0; }
.ink-swatch-links { font-size: 12px; margin: 4px 0 0; }
.ink-swatch-links:empty { display: none; }
.ink-swatch-links a { color: var(--black); text-decoration: underline; font-weight: 700; }
.ink-reset-msg { font-size: 13px; font-weight: 700; color: var(--todo); margin: 0 0 14px; }
