:root {
  --choco-900: #140c08;
  --choco-800: #1c120c;
  --choco-700: #2a1a12;
  --choco-600: #3d2619;
  --cream: #f4ead9;
  --cream-2: #faf4ea;
  --gold: #c7a56a;
  --gold-light: #ecd9ad;
  --gold-deep: #8f6c38;
  --brown: #6b4c24;
  --ink: #3a2a1a;
  --muted-light: rgba(244, 234, 217, 0.62);
  --line-gold: rgba(199, 165, 106, 0.38);
  --gold-gradient: linear-gradient(120deg, #9c7a45 0%, #e9d4a2 32%, #c19c5e 52%, #f3e4be 72%, #a8844c 100%);
  --serif-ja: "Shippori Mincho", "Yu Mincho", "Hiragino Mincho ProN", serif;
  --serif-en: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--cream);
  line-height: 1.7;
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(199, 165, 106, 0.10), transparent 60%),
    var(--choco-900);
  min-height: 100vh;
}

a { color: inherit; }

.page {
  position: relative;
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: linear-gradient(180deg, var(--choco-700) 0%, var(--choco-800) 55%, var(--choco-900) 100%);
  box-shadow: 0 0 80px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

/* ---------- ロゴ(名刺データから抜いたマスクにゴールドを流す) ---------- */
.logo {
  margin: 0 auto;
  width: 220px;
  aspect-ratio: 521 / 155;
  background: var(--gold-gradient);
  -webkit-mask: url("assets/logo-mask.png") center / contain no-repeat;
          mask: url("assets/logo-mask.png") center / contain no-repeat;
}

/* ---------- ヒーロー ---------- */
.hero {
  position: relative;
  height: 236px;
  overflow: hidden;
}

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 40% 35%;
  filter: sepia(0.35) saturate(0.85);
  animation: heroZoom 1.8s ease-out both;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(70% 45% at 50% 78%, rgba(28, 18, 12, 0.7), transparent 75%),
    linear-gradient(180deg, rgba(42, 26, 18, 0.2) 0%, rgba(42, 26, 18, 0.62) 50%, var(--choco-700) 100%);
}

.hero-inner {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  z-index: 1;
  text-align: center;
}

.hero-en {
  margin: 6px 0 0;
  font-family: var(--serif-en);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-light);
  opacity: 0.85;
}

main {
  position: relative;
  padding: 0 20px 28px;
}

/* ---------- 会社名 ---------- */
.intro {
  text-align: center;
  padding: 14px 0 18px;
}

.intro-company {
  margin: 0;
  font-family: var(--serif-ja);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.intro-services {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 8px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--line-gold);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted-light);
}

.intro-services span { color: var(--gold); opacity: 0.7; }
.intro-services { white-space: nowrap; flex-wrap: nowrap; font-size: clamp(10.5px, 3.2vw, 12px); gap: clamp(4px, 1.6vw, 10px); }

/* ---------- メインCTA ---------- */
.cta-button {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 16px 52px 15px;
  border-radius: 6px;
  text-decoration: none;
  text-align: center;
  color: var(--choco-800);
  background: var(--gold-gradient);
  background-size: 200% 100%;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-button::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 40%;
  left: -60%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-20deg);
  animation: shine 4.5s ease-in-out 1.2s infinite;
}

.cta-button:active { transform: translateY(1px) scale(0.995); }

.cta-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  padding: 1px 10px;
  border: 1px solid rgba(28, 18, 12, 0.45);
  border-radius: 999px;
}

.cta-main {
  font-family: var(--serif-ja);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.5;
}


.cta-arrow {
  position: absolute;
  right: 18px;
  top: 50%;
  width: 22px;
  height: 22px;
  margin-top: -11px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- サブアクション ---------- */
.actions {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.action {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 62px;
  padding: 10px 14px;
  border: 1px solid var(--line-gold);
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.01));
  text-decoration: none;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.action:hover,
.action:focus-visible { border-color: var(--gold); background-color: rgba(199, 165, 106, 0.08); }

.action-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line-gold);
  background: radial-gradient(circle at 30% 25%, rgba(236, 217, 173, 0.18), transparent 70%);
}

.action-icon svg,
.action-chev {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.action-text { flex: 1; display: grid; line-height: 1.45; }

.action-title {
  font-family: var(--serif-ja);
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.action-sub {
  font-size: 11.5px;
  color: var(--muted-light);
  letter-spacing: 0.03em;
}

.action-chev { width: 16px; height: 16px; opacity: 0.7; }

/* ---------- 紙の名刺風カード ---------- */
.paper-card {
  position: relative;
  margin-top: 30px;
  padding: 26px 22px 22px;
  border-radius: 4px;
  color: var(--ink);
  background:
    radial-gradient(70% 55% at 85% 12%, rgba(246, 196, 186, 0.55), transparent 70%),
    radial-gradient(60% 50% at 10% 85%, rgba(196, 214, 238, 0.55), transparent 70%),
    radial-gradient(50% 40% at 90% 95%, rgba(250, 226, 180, 0.6), transparent 70%),
    var(--cream-2);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.paper-amp {
  position: absolute;
  right: -18px;
  top: -10px;
  width: 170px;
  aspect-ratio: 122 / 125;
  background: #d9a85f;
  opacity: 0.16;
  -webkit-mask: url("assets/amp-mask.png") center / contain no-repeat;
          mask: url("assets/amp-mask.png") center / contain no-repeat;
}

.paper-label {
  position: relative;
  margin: 0;
  font-family: var(--serif-en);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.paper-name {
  position: relative;
  margin: 2px 0 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(107, 76, 36, 0.35);
  font-family: var(--serif-ja);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--brown);
}

.paper-info { position: relative; margin: 0; display: grid; gap: 10px; }

.paper-info > div {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 8px;
  font-size: 13px;
  line-height: 1.6;
}

.paper-info dt {
  font-family: var(--serif-ja);
  font-weight: 700;
  color: var(--brown);
  letter-spacing: 0.04em;
}

.paper-info dd { margin: 0; overflow-wrap: anywhere; }

.paper-info a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: rgba(143, 108, 56, 0.45);
  text-underline-offset: 3px;
}

.footer {
  padding: 8px 20px 30px;
  text-align: center;
  font-family: var(--serif-en);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: rgba(244, 234, 217, 0.4);
}

.footer p { margin: 0; }

/* ---------- 動き ---------- */
.reveal { animation: fadeUp 0.8s ease-out both; }
.reveal:nth-of-type(1) { animation-delay: 0.15s; }
.cta.reveal { animation-delay: 0.3s; }
.actions.reveal { animation-delay: 0.45s; }
.paper-card.reveal { animation-delay: 0.6s; }
.hero-inner { animation: fadeUp 1s ease-out 0.1s both; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

@keyframes heroZoom {
  from { transform: scale(1.06); }
  to   { transform: scale(1); }
}

@keyframes shine {
  0%, 70% { left: -60%; }
  100% { left: 130%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media (max-width: 359px) {
  .intro-services { font-size: 11px; gap: 6px; }
}

/* =========================================================
   予約フォーム(reserve.html)
   ========================================================= */
.sub-header {
  position: relative;
  padding: 18px 20px 26px;
  text-align: center;
  border-bottom: 1px solid var(--line-gold);
}

.sub-header .logo { width: 150px; }

.back-link {
  position: absolute;
  left: 12px;
  top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 6px 8px;
  font-size: 12px;
  color: var(--muted-light);
  text-decoration: none;
}

.back-link svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; }

.sub-title {
  margin: 18px 0 0;
  font-family: var(--serif-ja);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.sub-lead {
  margin: 8px 0 0;
  font-size: 12.5px;
  color: var(--muted-light);
  line-height: 1.8;
}

.form-panel {
  margin: 22px 16px 10px;
  padding: 24px 18px 26px;
  border-radius: 6px;
  color: var(--ink);
  background: var(--cream-2);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.field { margin: 0 0 20px; border: 0; padding: 0; min-width: 0; }

.field-label,
.field legend {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
  padding: 0;
  font-family: var(--serif-ja);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--brown);
}

.req,
.opt {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 0 7px;
  border-radius: 3px;
  line-height: 1.7;
}

.req { color: #fff; background: #9c6b2e; }
.opt { color: var(--brown); border: 1px solid rgba(107, 76, 36, 0.35); }

.hint {
  margin: 5px 0 0;
  font-size: 11.5px;
  color: #7a6650;
  line-height: 1.6;
}

input[type="text"],
input[type="tel"],
input[type="email"],
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 12px;
  border: 1px solid #d6c6aa;
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  font: 16px/1.5 var(--sans); /* 16px未満だとiOSで勝手にズームする */
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 34px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%238f6c38' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") right 10px center / 18px no-repeat;
}

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

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--gold-deep);
  box-shadow: 0 0 0 3px rgba(199, 165, 106, 0.3);
}

.is-invalid input,
.is-invalid select,
.is-invalid textarea,
.is-invalid .choice-group { border-color: #b4472f; }

.error-text {
  display: none;
  margin: 5px 0 0;
  font-size: 12px;
  color: #b4472f;
}

.is-invalid .error-text { display: block; }

.zip-row { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.zip-row input { max-width: 150px; }
.zip-mark { font-size: 15px; color: var(--brown); }

/* 相談方法 */
.choice-group { display: grid; gap: 8px; border-radius: 4px; }

.choice {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 10px 14px;
  border: 1px solid #d6c6aa;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-dot {
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid #bfa77c;
  display: grid;
  place-items: center;
}

.choice-dot::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold-deep);
  transform: scale(0);
  transition: transform 0.15s ease;
}

.choice-text { display: grid; line-height: 1.45; }
.choice-title { font-weight: 700; font-size: 14.5px; }
.choice-desc { font-size: 11.5px; color: #7a6650; }

.choice:has(input:checked) { border-color: var(--gold-deep); background: #fbf5e8; }
.choice input:checked + .choice-dot::after { transform: scale(1); }
.choice input:focus-visible + .choice-dot { box-shadow: 0 0 0 3px rgba(199, 165, 106, 0.4); }

/* 希望日程 */
.slot {
  padding: 12px 12px 12px;
  border: 1px solid #e3d6be;
  border-radius: 4px;
  background: #fffdf9;
}

.slot + .slot { margin-top: 10px; }

.slot-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-family: var(--serif-ja);
  font-weight: 700;
  font-size: 13.5px;
  color: var(--brown);
}

.slot-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 8px; }

.privacy {
  margin: 4px 0 20px;
  font-size: 11.5px;
  color: #7a6650;
  line-height: 1.7;
}

.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ボタン */
.btn {
  display: block;
  width: 100%;
  min-height: 56px;
  padding: 14px 16px;
  border: 0;
  border-radius: 5px;
  font-family: var(--serif-ja);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.6; cursor: wait; }

.btn-gold {
  color: var(--choco-800);
  background: var(--gold-gradient);
  box-shadow: 0 8px 22px rgba(90, 60, 25, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.btn-ghost {
  color: var(--brown);
  background: transparent;
  border: 1px solid rgba(107, 76, 36, 0.4);
  font-size: 15px;
}

/* ---------- モーダル ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
  background: rgba(12, 7, 4, 0.7);
  -webkit-backdrop-filter: blur(3px);
          backdrop-filter: blur(3px);
}

.modal.is-open { display: flex; animation: fade 0.2s ease-out both; }

.modal-box {
  width: 100%;
  max-width: 448px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: 24px 20px 20px;
  border-radius: 8px;
  color: var(--ink);
  background: var(--cream-2);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  animation: rise 0.28s ease-out both;
}

@media (min-height: 640px) {
  .modal { align-items: center; }
}

.modal-title {
  margin: 0 0 14px;
  text-align: center;
  font-family: var(--serif-ja);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--brown);
}

.confirm-list { margin: 0 0 18px; display: grid; gap: 0; }

.confirm-list > div {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid #eadfcb;
  font-size: 13px;
}

.confirm-list dt { font-weight: 700; color: var(--brown); }
.confirm-list dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }

.modal-actions { display: grid; gap: 10px; }

.done-mark {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 4px auto 14px;
  border-radius: 50%;
  background: var(--gold-gradient);
}

.done-mark svg { width: 30px; height: 30px; fill: none; stroke: var(--choco-800); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.modal-text {
  margin: 0 0 20px;
  text-align: center;
  font-size: 14px;
  line-height: 1.9;
}

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* =========================================================
   スマホ最適化(改行位置・狭い画面)
   ========================================================= */
/* 語句の途中で改行させない(切れ目はspanの間だけ) */
.nw { display: inline-block; }

p, dd, .action-sub, .choice-desc { line-break: strict; }

.cta-button { padding: 16px clamp(38px, 12vw, 52px) 15px; }
.cta-main { font-size: clamp(18px, 5.6vw, 21px); letter-spacing: clamp(0.04em, 0.6vw, 0.1em); }
.cta-arrow { right: clamp(12px, 4vw, 18px); }

.slots-hint { margin: -2px 0 10px; }

/* 日付・時刻:選択肢の文字が切れないよう余白を詰める */
.slot-grid { grid-template-columns: minmax(0, 1fr) 104px; }
.slot-grid select { padding-left: 10px; padding-right: 28px; background-position: right 7px center; }

@media (max-width: 359px) {
  main { padding: 0 16px 24px; }
  .form-panel { margin: 18px 12px 8px; padding: 20px 14px 22px; }
  .paper-card { padding: 22px 18px 20px; }
  .paper-info > div { grid-template-columns: 80px 1fr; gap: 6px; }
  .paper-info dt { white-space: nowrap; font-size: 12.5px; }
  .slot { padding: 10px; }
  .slot-grid { grid-template-columns: minmax(0, 1fr) 96px; gap: 6px; }
  .back-link { left: 6px; }
  .sub-header .logo { width: 132px; }
}

/* 確認画面:狭い画面では項目名の下に内容 */
@media (max-width: 374px) {
  .confirm-list > div { grid-template-columns: 1fr; gap: 1px; padding: 8px 0; }
  .confirm-list dt { font-size: 11.5px; }
  .modal { padding: 10px; }
  .modal-box { padding: 20px 16px 16px; }
}

/* 横向き・背の低い画面ではモーダルを上寄せにしてスクロールできるように */
@media (max-height: 500px) {
  .modal { align-items: flex-start; }
  .modal-box { max-height: calc(100vh - 20px); }
}

/* ファーストビューに4つの導線(予約・HP・LINE・連絡先)が収まるよう、
   ヒーローの高さを「ブラウザのバーを除いた画面の高さ(svh)」に合わせて伸縮 */
.hero { height: 236px; height: clamp(150px, 29svh, 236px); }
.intro { padding: 12px 0 14px; }
.actions { gap: 8px; margin-top: 12px; }
.action { min-height: 58px; padding: 8px 14px; }

@media (max-height: 620px) {
  .hero-inner { bottom: 12px; }
  .logo { width: 190px; }
  .hero-en { font-size: 11.5px; margin-top: 3px; }
  .intro { padding: 8px 0 10px; }
  .intro-services { margin-top: 6px; padding-top: 7px; }
  .cta-button { padding-top: 11px; padding-bottom: 11px; }
  .action { min-height: 52px; padding: 6px 12px; }
  .action-icon { width: 36px; height: 36px; }
}
