:root {
  color-scheme: light;
  --bg: #fff;
  --ink: #211a14;
  --red: #bc3315;
  --soft: color-mix(in srgb, var(--ink) 70%, var(--bg));
  --faint: color-mix(in srgb, var(--ink) 48%, var(--bg));
  --line: color-mix(in srgb, var(--ink) 14%, var(--bg));
  --tint: color-mix(in srgb, var(--red) 6%, var(--bg));
  --red-deep: color-mix(in srgb, var(--red) 82%, var(--ink));
  --shadow: 0 18px 44px rgba(33, 26, 20, .13);
  --header-bg: rgba(255, 255, 255, .94);
  --gutter: clamp(18px, 5.5vw, 22px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Hiragino Sans", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
h1, h2, h3, .mincho {
  font-family: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", serif;
  line-height: 1.3;
  font-weight: 700;
}
figure { margin: 0; }
img { display: block; max-width: 100%; }
a {
  color: var(--red);
  text-decoration-color: color-mix(in srgb, var(--red) 40%, transparent);
  text-underline-offset: 3px;
}
a:hover { text-decoration-color: var(--red); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.wrap { max-width: 1120px; margin: 0 auto; padding-inline: var(--gutter); }
.jp { font-family: "Shippori Mincho B1", "Hiragino Mincho ProN", serif; }
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 9px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--bg);
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }

header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
header.site.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(33, 26, 20, .07); }
.header-in { display: flex; align-items: center; gap: 18px; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); margin-right: auto; }
.hanko {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  background: var(--red);
  color: #fff7ea;
  border-radius: 7px;
  display: grid;
  place-items: center;
  font-family: "Shippori Mincho B1", serif;
  font-weight: 800;
  font-size: 21px;
  line-height: 1;
  box-shadow: inset 0 0 0 2px rgba(255, 247, 234, .35);
}
.brand-name { font-family: "Shippori Mincho B1", serif; font-weight: 800; font-size: 20px; letter-spacing: .02em; line-height: 1.15; }
.brand-sub { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); font-weight: 700; }
nav.main { display: flex; align-items: center; gap: 26px; }
nav.main a { color: var(--soft); text-decoration: none; font-size: 15px; font-weight: 500; }
nav.main a:hover, nav.main a.current { color: var(--red); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; width: 44px; height: 44px; cursor: pointer; color: var(--ink); font-size: 19px; line-height: 1; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 12px 24px;
  font: inherit;
  font-weight: 700;
  font-size: 15.5px;
  cursor: pointer;
  justify-content: center;
  min-height: 44px;
  text-decoration: none;
  transition: transform .15s, background .15s, color .15s, border-color .15s;
}
.btn:active { transform: scale(.98); }
.btn-red { background: var(--red); color: #fff8ec; }
.btn-red:hover { background: var(--red-deep); color: #fff8ec; text-decoration: none; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--red); color: var(--red); text-decoration: none; }
.btn-small { padding: 9px 19px; font-size: 14.5px; min-height: 44px; }
nav.main a.btn-red, nav.main a.btn-red:hover { color: #fff8ec; }

footer.site { border-top: 1px solid var(--line); margin-top: 84px; padding: 38px 0 46px; }
.foot-in { display: flex; flex-wrap: wrap; gap: 18px 34px; align-items: flex-start; justify-content: space-between; }
.foot-brand { display: flex; gap: 12px; align-items: center; }
.foot-brand-name { font-size: 17px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14.5px; }
.foot-links a { color: var(--soft); text-decoration: none; }
.foot-links a:hover { color: var(--red); }
.foot-note { width: 100%; color: var(--faint); font-size: 13.5px; margin: 6px 0 0; }

.reveal { transform: translateY(14px); transition: transform .6s ease; }
.reveal.in { transform: none; }

/* Shared native preview and Tally embed */
.form-card {
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(24px, 4vw, 38px);
  box-shadow: var(--shadow);
  text-align: left;
  margin-top: 28px;
}
.form-status { display: grid; gap: 3px; border-radius: 10px; padding: 13px 15px; margin: 0 0 22px; line-height: 1.5; }
.preview-status { border: 2px solid var(--red); background: var(--tint); color: var(--ink); }
.enquiry-form .f-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.f-field { display: flex; flex-direction: column; min-width: 0; }
.f-field.f-wide { grid-column: 1 / -1; }
.f-field label { font-weight: 700; font-size: 15px; margin-bottom: 7px; color: var(--ink); }
.req { color: var(--red); }
.f-field input[type="text"], .f-field input[type="email"], .f-field textarea {
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  width: 100%;
  min-height: 48px;
}
.f-field textarea { resize: vertical; min-height: 92px; }
.f-field input::placeholder, .f-field textarea::placeholder { color: var(--faint); }
.f-radios { border: 0; margin: 0; padding: 0; }
.f-radios legend { font-weight: 700; font-size: 15px; color: var(--ink); padding: 0; margin-bottom: 9px; }
.f-radio-row { display: flex; flex-wrap: wrap; gap: 9px; }
.f-radio { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; font-size: 15px; cursor: pointer; color: var(--soft); background: var(--bg); }
.f-radio input { accent-color: var(--red); width: 17px; height: 17px; margin: 0; flex: 0 0 auto; }
.f-radio:has(input:checked) { border-color: var(--red); color: var(--ink); background: var(--tint); }
.f-submit { margin-top: 24px; }
.f-note { font-size: 13.5px; color: var(--faint) !important; margin: 14px 0 0 !important; }
.form-result { border-left: 4px solid var(--red); background: var(--tint); color: var(--ink) !important; padding: 12px 14px; margin: 18px 0 0 !important; }
.tally-frame { display: block; width: 100%; border: 0; border-radius: 12px; background: var(--bg); }

@media (max-width: 820px) {
  nav.main {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 18px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(33, 26, 20, .1);
  }
  nav.main.open { display: flex; }
  nav.main a { display: flex; align-items: center; min-height: 44px; padding: 10px 2px; border-bottom: 1px solid var(--line); }
  nav.main .btn { margin-top: 12px; justify-content: center; }
  .nav-toggle { display: grid; place-items: center; }
}

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

@media (max-width: 430px) {
  body { font-size: 16px; line-height: 1.7; }
  .header-in { gap: 12px; }
  .brand { gap: 10px; min-width: 0; }
  .brand-name { font-size: 18px; }
  .brand-sub { font-size: 10px; letter-spacing: .1em; }
  footer.site { margin-top: 64px; padding-block: 32px 38px; }
  .form-card { padding: 20px 16px; }
  .f-radio-row { gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .reveal { transform: none; }
}

@media print {
  .reveal { transform: none; }
  header.site { position: static; }
}
