* { box-sizing: border-box; }

:root {
  --bg: #fff8ef;
  --bg-strong: #fff0dc;
  --card: #fff;
  --text: #21170d;
  --muted: #6b6258;
  --line: #ead7bf;
  --brand: #e98b2a;
  --brand-dark: #b95f12;
  --accent: #2f6f5e;
  --accent-dark: #24564a;
  --danger: #b42318;
  --warn: #b54708;
  --ok: #067647;
  --shadow: 0 18px 45px rgba(107, 70, 31, .13);
  --shadow-soft: 0 10px 26px rgba(107, 70, 31, .10);
  --radius: 24px;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(233, 139, 42, .22), transparent 34rem),
    radial-gradient(circle at top right, rgba(47, 111, 94, .14), transparent 30rem),
    linear-gradient(180deg, #fffaf3 0%, var(--bg) 52%, #fffaf3 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .32;
  background-image:
    linear-gradient(rgba(185, 95, 18, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(185, 95, 18, .05) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(180deg, #000, transparent 70%);
}

a {
  color: var(--brand-dark);
  font-weight: 800;
}

.site-header,
.intro-section,
.support-band,
.layout,
.site-footer {
  max-width: 1160px;
  margin: 0 auto;
}

.site-header {
  padding: 34px 24px 18px;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(330px, .88fr);
  gap: 28px;
  align-items: center;
}

.hero-copy {
  min-width: 0;
}

.company-banner {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding: 12px 16px;
  border: 2px solid rgba(233, 139, 42, .35);
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  background:
    linear-gradient(135deg, #2b2117 0%, #5c3512 52%, var(--brand-dark) 100%);
  box-shadow: 0 12px 30px rgba(91, 56, 18, .22);
}

.company-banner span {
  display: inline-block;
  color: #ffe8c9;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.company-banner strong {
  font-size: clamp(18px, 2vw, 25px);
  letter-spacing: .02em;
}

.eyebrow {
  color: var(--brand-dark);
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin: 0 0 8px;
}

.eyebrow.small {
  font-size: 12px;
  letter-spacing: .12em;
  margin-bottom: 4px;
}

h1 {
  font-size: clamp(40px, 6vw, 76px);
  margin: 0 0 14px;
  line-height: .98;
  letter-spacing: -.04em;
}

h2 {
  margin: 0 0 12px;
  font-size: clamp(24px, 2.7vw, 36px);
  letter-spacing: -.02em;
}

h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.lead {
  max-width: 760px;
  color: #4f463c;
  line-height: 1.9;
  font-size: clamp(16px, 1.55vw, 19px);
  margin: 0 0 20px;
}

.hero-actions,
.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  text-decoration: none;
  border-radius: 999px;
  padding: 13px 18px;
  font-weight: 900;
  line-height: 1.25;
}

.primary-link {
  color: #fff;
  background: var(--brand);
  box-shadow: 0 10px 24px rgba(233, 139, 42, .27);
}

.primary-link:hover { background: var(--brand-dark); }

.wall-link {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  box-shadow: 0 10px 24px rgba(47, 111, 94, .25);
}

.wall-link:hover {
  filter: brightness(.95);
}

.wall-link.large {
  min-width: 230px;
  font-size: 17px;
  box-shadow: 0 14px 30px rgba(47, 111, 94, .28);
}

.hero-points {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.hero-points li {
  padding: 8px 11px;
  border: 1px solid rgba(47, 111, 94, .18);
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  color: #31574e;
  font-size: 13px;
  font-weight: 800;
}

.hero-visual {
  position: relative;
  padding: 14px;
  border: 1px solid rgba(234, 215, 191, .9);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.72), rgba(255,255,255,.95)),
    var(--card);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-visual::after {
  content: "";
  position: absolute;
  right: -45px;
  bottom: -50px;
  width: 170px;
  height: 170px;
  background: rgba(233, 139, 42, .14);
  border-radius: 999px;
}

.hero-visual img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
}

.hero-visual-caption {
  position: relative;
  z-index: 2;
  margin: -22px 18px 0;
  padding: 13px 15px;
  border-radius: 18px;
  background: rgba(33, 23, 13, .88);
  color: #fff8ed;
  font-weight: 800;
  line-height: 1.55;
  box-shadow: 0 10px 24px rgba(33, 23, 13, .2);
}

.intro-section {
  padding: 20px 24px 18px;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 20px;
}

.section-heading p {
  color: var(--muted);
  line-height: 1.85;
  margin: 0;
}

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

.feature-card {
  background: rgba(255,255,255,.9);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.feature-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1.42 / 1;
  object-fit: cover;
}

.feature-body {
  padding: 18px;
}

.step {
  display: inline-block;
  margin-bottom: 10px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #fff1dd;
  color: var(--brand-dark);
  font-weight: 900;
  font-size: 12px;
  letter-spacing: .08em;
}

.feature-body p {
  color: var(--muted);
  line-height: 1.75;
  margin: 0;
}

.support-band {
  margin-top: 12px;
  margin-bottom: 24px;
  padding: 24px;
}

.support-band {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px;
  align-items: center;
  border: 1px solid rgba(47, 111, 94, .22);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(47, 111, 94, .1), rgba(233, 139, 42, .08)),
    rgba(255,255,255,.86);
  box-shadow: var(--shadow-soft);
}

.support-band p {
  color: #4e615d;
  line-height: 1.8;
  margin: 0;
}


.notice-band {
  max-width: 1160px;
  margin: 0 auto 24px;
  padding: 0 24px;
}

.notice-band > strong {
  display: inline-block;
  margin-bottom: 8px;
  padding: 5px 11px;
  border-radius: 999px;
  background: #fff1f0;
  color: var(--danger);
  font-weight: 900;
  letter-spacing: .08em;
}

.notice-band p {
  margin: 0;
  padding: 16px 18px;
  border: 1px solid #f0aaa4;
  border-radius: 18px;
  background: linear-gradient(180deg, #fffdfa, #fff5f4);
  color: #5f261f;
  line-height: 1.8;
  font-weight: 800;
  box-shadow: var(--shadow-soft);
}

.strong-note {
  border-color: #f0aaa4;
  background: #fff5f4;
  color: #5f261f;
  font-weight: 800;
}

.footer-disclaimer {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 13px;
}

.layout {
  padding: 0 24px 48px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(310px, .85fr);
  gap: 24px;
  align-items: start;
}

.card {
  background: rgba(255, 255, 255, .94);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
}

.card-title-row {
  display: flex;
  gap: 14px;
  align-items: start;
  justify-content: space-between;
  margin-bottom: 16px;
}

.form-badge {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  padding: 7px 11px;
  border-radius: 999px;
  background: #ecfdf3;
  color: var(--ok);
  font-weight: 900;
  font-size: 13px;
}

fieldset {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  margin: 0 0 18px;
  background: rgba(255, 253, 250, .64);
}

legend {
  font-weight: 900;
  color: #3a2a19;
  padding: 0 8px;
}

label {
  display: block;
  font-weight: 850;
  margin: 0 0 14px;
}

input, select, textarea {
  display: block;
  width: 100%;
  margin-top: 7px;
  border: 1px solid #d8c3aa;
  border-radius: 12px;
  padding: 12px 13px;
  font: inherit;
  color: var(--text);
  background: #fffdfa;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

textarea { resize: vertical; }

input:focus, select:focus, textarea:focus {
  outline: 0;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(233, 139, 42, .20);
}

.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.required {
  display: inline-block;
  margin-left: 5px;
  color: #fff;
  background: var(--danger);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 12px;
  vertical-align: middle;
}

button {
  border: 0;
  background: var(--brand);
  color: #fff;
  padding: 13px 18px;
  border-radius: 999px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(233, 139, 42, .25);
}

button:hover { background: var(--brand-dark); }
button:disabled { opacity: .55; cursor: wait; }

button.secondary,
.secondary-link {
  background: #fff4e4;
  color: #71420f;
  border: 1px solid #efc38e;
  box-shadow: none;
}

.hint {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  margin-top: 8px;
}

.result-card {
  position: sticky;
  top: 20px;
}

.result {
  border-radius: 18px;
  border: 1px solid var(--line);
  padding: 18px;
  line-height: 1.75;
  background: #fffdfa;
}

.result.empty { color: var(--muted); }

.result-card.mail-confirm-pending {
  border: 3px solid #f08a24;
  box-shadow: 0 20px 55px rgba(190, 91, 0, .28);
}

.result-card.mail-confirm-pending > h2::after {
  content: " 送信確認が必要です";
  display: inline-block;
  margin-left: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #b3261e;
  color: #fff;
  font-size: 13px;
  vertical-align: middle;
}

.result-card.mail-confirm-pending .hero-actions {
  opacity: .32;
  pointer-events: none;
  filter: grayscale(.3);
}

.confirm-panel {
  margin-top: 22px;
  padding: 22px;
  border: 2px solid #efc38e;
  border-radius: 18px;
  background: #fff7e6;
  scroll-margin: 24px;
}

.confirm-panel.pending {
  border: 4px solid #f08a24;
  background: linear-gradient(180deg, #fff8e8 0%, #fff0d2 100%);
  box-shadow: 0 14px 34px rgba(190, 91, 0, .22);
}

.confirm-panel h3 {
  margin: 10px 0 10px;
  color: #5f3100;
  font-size: clamp(22px, 2.3vw, 30px);
  line-height: 1.35;
}

.confirm-panel p {
  margin: 0 0 16px;
  color: #5f3a12;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.75;
}

.confirm-state-chip {
  display: inline-block;
  padding: 7px 12px;
  border-radius: 999px;
  background: #b3261e;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .02em;
}

.confirm-actions {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.confirm-actions button {
  min-height: 58px;
  padding: 14px 18px;
  font-size: 17px;
  line-height: 1.35;
}

.confirm-actions .confirm-yes {
  background: #d96800;
  border: 2px solid #a94d00;
  box-shadow: 0 10px 22px rgba(169, 77, 0, .25);
}

.confirm-actions .confirm-yes:hover {
  background: #b95400;
}

.confirm-actions .confirm-cancel {
  background: #fff;
  border: 2px solid #8c8c8c;
  color: #333;
}

.confirm-panel.done {
  border-color: #2f8f46;
  background: #ecfdf3;
}

.confirm-panel.done .confirm-state-chip {
  background: #267a3b;
}

.confirm-panel.cancelled {
  border-color: #777;
  background: #f5f5f5;
}

.confirm-panel.cancelled .confirm-state-chip {
  background: #666;
}

@keyframes confirmAttention {
  0%, 100% { transform: scale(1); }
  25% { transform: scale(1.012); box-shadow: 0 0 0 0 rgba(240, 138, 36, .45), 0 14px 34px rgba(190, 91, 0, .22); }
  70% { transform: scale(1); box-shadow: 0 0 0 16px rgba(240, 138, 36, 0), 0 14px 34px rgba(190, 91, 0, .22); }
}

.confirm-panel.attention-pulse {
  animation: confirmAttention .9s ease-out 2;
}

.badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  color: #fff;
  font-weight: 900;
  margin-bottom: 12px;
}

.badge.low { background: var(--ok); }
.badge.medium { background: var(--warn); }
.badge.high { background: var(--danger); }

.status {
  padding: 14px;
  border-radius: 14px;
  background: #f5f5f5;
  color: #444;
  line-height: 1.6;
  white-space: pre-line;
}

.status.success { background: #ecfdf3; color: var(--ok); }
.status.error { background: #fff1f0; color: var(--danger); }
.status.sending { background: #fff7e6; color: var(--warn); }

.mini-link-card {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(47, 111, 94, .18);
  border-radius: 18px;
  background: linear-gradient(180deg, #fffdfa, #f6fff9);
}

.mini-link-card a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--accent-dark);
  background: rgba(47, 111, 94, .08);
  text-decoration: none;
}

.debug { margin-top: 16px; }

pre {
  white-space: pre-wrap;
  word-break: break-word;
  background: #24170c;
  color: #fff4e6;
  padding: 14px;
  border-radius: 14px;
  max-height: 240px;
  overflow: auto;
}

.site-footer {
  padding: 24px;
  color: var(--muted);
}

.site-footer strong {
  color: var(--text);
}

/* privacy.html 用の既存スタイルも維持 */
.policy-layout {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 24px 48px;
}

.policy {
  line-height: 1.85;
}

.policy h2 {
  margin-top: 28px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.policy h2:first-child {
  margin-top: 0;
  border-top: 0;
  padding-top: 0;
}

.policy ul {
  padding-left: 1.4em;
}

.policy-date {
  margin-top: 32px;
  color: var(--muted);
  text-align: right;
}

.privacy-note {
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fffdfa;
  color: var(--muted);
  line-height: 1.7;
}

.photo-list {
  margin: 8px 0 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fffdfa;
  color: var(--text);
  line-height: 1.6;
}

.photo-list.empty { color: var(--muted); }
.photo-list.error { border-color: #f0aaa4; background: #fff1f0; color: var(--danger); }
.photo-list ul { margin: 8px 0 0; padding-left: 1.2em; }
.photo-list li span { color: var(--muted); font-size: 13px; }
.photo-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 980px) {
  .hero-inner,
  .support-band,
  .layout {
    grid-template-columns: 1fr;
  }

  .result-card { position: static; }

  .hero-visual {
    max-width: 680px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    display: grid;
    grid-template-columns: minmax(220px, .72fr) 1fr;
  }

  .feature-card img {
    height: 100%;
    aspect-ratio: auto;
  }
}

@media (max-width: 640px) {
  .site-header,
  .intro-section,
  .support-band,
  .notice-band,
  .layout,
  .site-footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .company-banner {
    align-items: flex-start;
    border-radius: 20px;
    flex-direction: column;
    gap: 4px;
  }

  .hero-actions,
  .actions,
  .confirm-actions {
    grid-template-columns: 1fr;
  }

  .button-link,
  button {
    width: 100%;
  }

  .grid2,
  .feature-card {
    grid-template-columns: 1fr;
  }

  .feature-card img {
    aspect-ratio: 1.42 / 1;
  }

  .card {
    padding: 18px;
    border-radius: 20px;
  }

  .card-title-row {
    display: block;
  }

  .form-badge {
    margin-top: 8px;
  }
}
