:root {
  color-scheme: light;
  --ink: #2f3134;
  --muted: #706c64;
  --line: #e3dccf;
  --line-strong: #cfc3ad;
  --cream: #f7f2e9;
  --cream-deep: #eee3d0;
  --surface: rgba(255, 255, 255, 0.96);
  --surface-soft: rgba(251, 248, 242, 0.98);
  --brown: #5e4930;
  --brown-light: #806541;
  --gold: #a47d32;
  --gold-light: #d7bc80;
  --red: #a9372b;
  --danger: #b42318;
  --shadow: 0 22px 60px rgba(73, 55, 31, 0.16);
  --shadow-soft: 0 9px 28px rgba(73, 55, 31, 0.09);
  --radius: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  position: relative;
  min-height: 100vh;
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.85;
  overflow-wrap: anywhere;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background: url("../images/back.jpg") repeat center top / min(900px, 100vw) auto;
  opacity: 0.22;
  pointer-events: none;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 13% 8%, rgba(215, 188, 128, 0.24), transparent 36%),
    radial-gradient(circle at 92% 60%, rgba(164, 125, 50, 0.1), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,.55), rgba(247,242,233,.28));
  pointer-events: none;
}
body > * { position: relative; z-index: 1; }
a { color: #72531f; text-underline-offset: .18em; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(164, 125, 50, .28);
  outline-offset: 2px;
}
img { max-width: 100%; }
.page {
  width: min(1120px, calc(100% - 40px));
  margin: 36px auto;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(255,255,255,.86);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(3px);
}
.hero {
  margin: 0;
  overflow: hidden;
  background: #ede1ce;
  border-top: 6px solid var(--gold);
}
.hero img, .system-hero img, .complete-wrap > img { display: block; width: 100%; height: auto; }
.section-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: center;
  gap: 4px;
  flex-wrap: wrap;
  padding: 10px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(12px);
}
.section-nav a {
  padding: 7px 13px;
  border-radius: 999px;
  color: var(--brown);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.section-nav a:hover { background: var(--cream-deep); }
.content, .section { padding: 54px 64px; }
.intro-section { padding-bottom: 48px; }
.soft-section { background: var(--surface-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.content p, .section p { margin: 0 0 1.18em; }
.lead { color: #3c352b; font-size: 19px; font-weight: 700; }
.audience-note {
  display: inline-block;
  margin: 0 0 22px;
  padding: 8px 14px;
  border: 1px solid #d8c392;
  border-radius: 999px;
  background: #fffaf0;
  color: #6a5229;
  font-size: 13px;
  font-weight: 700;
}
.intro-actions, .company-action {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.cta-button, .secondary-button, .complete-body a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 250px;
  padding: 13px 24px;
  border-radius: 9px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}
.cta-button, .complete-body a {
  border: 1px solid transparent;
  background: linear-gradient(135deg, var(--brown), var(--brown-light));
  color: #fff;
  box-shadow: 0 8px 20px rgba(94,73,48,.24);
}
.secondary-button { border: 1px solid #bfa36b; background: #fffdf8; color: var(--brown); }
.cta-button:hover, .secondary-button:hover, .complete-body a:hover { transform: translateY(-2px); box-shadow: 0 11px 24px rgba(94,73,48,.22); }
.section-heading { max-width: 820px; margin: 0 auto 34px; text-align: center; }
.eyebrow { display: block; margin-bottom: 8px; color: var(--gold); font-size: 14px; font-weight: 800; letter-spacing: .08em; }
h1, h2, h3 { color: var(--brown); }
h2 { margin: 0 0 12px; font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: clamp(25px, 3vw, 34px); line-height: 1.55; letter-spacing: .02em; }
h3 { margin: 0 0 10px; font-size: 19px; line-height: 1.55; }
.section-heading p { color: var(--muted); }
.photo-grid { display: grid; gap: 18px; align-items: stretch; }
.photo-grid-five { grid-template-columns: repeat(5, 1fr); }
.photo-grid-three { grid-template-columns: repeat(3, 1fr); }
.photo-grid figure { margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--shadow-soft); }
.photo-grid img { display: block; width: 100%; height: 210px; object-fit: cover; }
.photo-grid-five img { height: 175px; }
.photo-grid figcaption { padding: 10px 12px; color: var(--muted); font-size: 12px; text-align: center; }
.image-note { margin-top: 14px !important; color: #8a857c; font-size: 12px; text-align: center; }
.text-panel { padding: 30px 34px; border: 1px solid var(--line); border-left: 5px solid var(--gold); border-radius: 12px; background: #fff; box-shadow: var(--shadow-soft); }
.text-panel p:last-child { margin-bottom: 0; }
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.feature-card { position: relative; min-height: 250px; padding: 30px 30px 24px; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: #fff; box-shadow: var(--shadow-soft); }
.feature-number { position: absolute; top: -18px; right: 14px; color: rgba(164,125,50,.12); font-size: 88px; font-weight: 900; line-height: 1; }
.feature-card h3, .feature-card p { position: relative; z-index: 1; }
.feature-card h3 { padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.specialist-layout { display: grid; grid-template-columns: 270px 1fr; gap: 42px; align-items: center; }
.qualification-badge { display: flex; width: 230px; height: 230px; margin: auto; flex-direction: column; align-items: center; justify-content: center; border: 3px double var(--gold); border-radius: 50%; background: #fffdf7; color: var(--gold); box-shadow: inset 0 0 0 10px #f7f0e2, var(--shadow-soft); }
.qualification-badge span { font-size: 25px; font-weight: 900; }
.qualification-badge small { margin-top: 3px; font-weight: 700; }
.check-list { margin: 10px 0 18px; padding: 0; list-style: none; }
.check-list li { position: relative; margin: 7px 0; padding-left: 27px; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--gold); font-weight: 900; }
.strong-note { margin: 20px 0 0 !important; padding: 13px 16px; border-left: 4px solid var(--gold); background: #fffaf0; color: #674e24; font-weight: 800; }
.ending-layout { display: grid; grid-template-columns: 1.35fr .65fr; gap: 40px; align-items: center; }
.note-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.note-photos img { display: block; width: 100%; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-soft); }
.note-photos p { grid-column: 1/-1; color: var(--muted); font-size: 12px; text-align: center; }
.burden-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.burden-grid article { padding: 24px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--shadow-soft); }
.burden-grid h3 { color: var(--gold); }
.burden-grid small { display: block; margin-top: 10px; color: var(--red); font-weight: 800; }
.wide-figure { margin: 28px auto 0; text-align: center; }
.wide-figure img { display: block; max-height: 650px; margin: auto; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--shadow-soft); }
.wide-figure figcaption { margin-top: 10px; color: var(--muted); font-size: 12px; }
.compact-figure img { max-width: 900px; }
.finish-layout { display: grid; grid-template-columns: 31% 1fr; gap: 38px; align-items: center; }
.frame-example { padding: 18px; border-radius: 12px; background: #f6f2ea; text-align: center; }
.frame-example img { max-height: 510px; }
.finish-message { margin-bottom: 22px; padding: 18px 20px; border-radius: 10px; background: #fff8ed; color: var(--red); font-weight: 900; text-align: center; }
.finish-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.finish-thumbs img { width: 100%; height: 360px; object-fit: cover; border-radius: 9px; box-shadow: var(--shadow-soft); }
.price-section { background: linear-gradient(180deg,#fff,#fffaf2); }
.table-wrap { overflow-x: auto; }
.price-table { width: 100%; border-collapse: collapse; background: #fff; box-shadow: var(--shadow-soft); }
.price-table th, .price-table td { padding: 17px 20px; border: 1px solid var(--line-strong); text-align: left; vertical-align: middle; }
.price-table th { background: #eee3d0; color: var(--brown); }
.price-table th:last-child, .price-table td:last-child { width: 180px; white-space: nowrap; font-weight: 900; }
.price-table small { color: var(--muted); }
.price-notes { margin: 20px 0 0; padding-left: 1.3em; color: var(--muted); font-size: 13px; }
.company-box { padding: 30px; border: 1px solid var(--line); border-radius: 13px; background: #fff; box-shadow: var(--shadow-soft); }
.company-info { margin: 0 0 28px; }
.company-info div { display: grid; grid-template-columns: 120px 1fr; padding: 10px 0; border-bottom: 1px solid var(--line); }
.company-info dt { color: var(--gold); font-weight: 800; }
.company-info dd { margin: 0; }
.business-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; }
.business-grid span { display: flex; min-height: 80px; align-items: center; justify-content: center; padding: 12px; border: 1px solid var(--line); border-radius: 9px; background: #faf8f3; font-size: 13px; font-weight: 700; text-align: center; }
.reference-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 26px; }
.reference-grid figure { margin: 0; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #f8f8f8; box-shadow: var(--shadow-soft); text-align: center; }
.reference-grid img { display: block; width: 100%; max-height: 800px; object-fit: contain; background: #fff; }
.reference-grid figcaption { margin-top: 10px; color: var(--brown); font-weight: 800; }
.form-section { padding: 54px 64px 60px; border-top: 6px solid var(--gold); background: #f7f3ec; }
.form-section > h2 { margin-bottom: 8px; text-align: center; }
.form-note { margin: 0 0 30px; color: var(--muted); text-align: center; }
.required { color: var(--danger); font-size: 12px; font-weight: 800; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 21px 24px; }
.field.full { grid-column: 1/-1; }
label, legend { display: block; margin-bottom: 7px; color: #453b2e; font-weight: 800; }
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.page-contact input:not([type="checkbox"]), .page-contact select, .page-contact textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  padding: 12px 13px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.page-contact textarea { min-height: 165px; resize: vertical; }
.page-contact input:not([type="checkbox"]):focus, .page-contact select:focus, .page-contact textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(164,125,50,.12); outline: none; }
.choice-field { padding: 18px 20px; border: 1px solid var(--line-strong); border-radius: 10px; background: #fff; }
.choice-field legend { padding: 0 6px; }
.choice-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; }
.choice-grid label { display: flex; align-items: center; gap: 9px; margin: 0; font-weight: 600; cursor: pointer; }
.choice-grid input, .consent input { width: 19px; height: 19px; margin: 0; accent-color: var(--brown); }
.privacy-area { margin-top: 30px; }
.privacy-box { height: 250px; overflow-y: auto; padding: 20px 22px; border: 1px solid var(--line-strong); border-radius: 9px; background: #fff; color: #4e4a44; font-size: 13px; line-height: 1.75; }
.privacy-box p { margin: 0 0 13px; }
.consent-wrap { display: flex; justify-content: center; margin-top: 17px; }
.consent { display: inline-flex; align-items: center; justify-content: center; gap: 10px; margin: 0; padding: 13px 18px; border: 1px solid var(--line-strong); border-radius: 9px; background: #fff; text-align: center; cursor: pointer; }
.actions, .system-actions, .thanks-actions { display: flex; justify-content: center; gap: 13px; margin-top: 30px; }
button, .page-system input[type="submit"], .page-system input[type="button"], .page-system input[type="reset"] { min-width: 190px; border: 0; border-radius: 9px; padding: 13px 24px; font: inherit; font-weight: 800; cursor: pointer; transition: transform .18s ease, opacity .18s ease, box-shadow .18s ease; }
button[type="submit"], .page-system input[type="submit"] { color: #fff; background: linear-gradient(135deg,var(--brown),var(--brown-light)); box-shadow: 0 7px 17px rgba(94,73,48,.23); }
button[type="reset"], .page-system input[type="button"], .page-system input[type="reset"] { color: var(--ink); background: #e8e3da; }
button:hover, .page-system input[type="submit"]:hover, .page-system input[type="button"]:hover, .page-system input[type="reset"]:hover { transform: translateY(-1px); opacity: .94; }
.footer { padding: 24px 48px; border-top: 1px solid var(--line); background: rgba(255,255,255,.95); color: #756e64; font-size: 12px; text-align: center; }

/* mail.php confirmation / completion */
.page-system { padding: 42px 18px; }
.system-shell, .complete-wrap { width: min(800px,100%); margin: 0 auto; }
.system-hero { margin-bottom: 18px; overflow: hidden; border-top: 5px solid var(--gold); border-radius: 12px; box-shadow: var(--shadow-soft); }
#formWrap, .complete-wrap { overflow: hidden; padding: 34px; background: var(--surface); border: 1px solid rgba(255,255,255,.85); border-radius: 12px; box-shadow: var(--shadow); }
.complete-wrap { padding: 0; }
.complete-body { padding: 36px; text-align: center; }
.system-center { text-align: center; }
.formTable { width: 100%; border-collapse: collapse; margin-top: 20px; }
.formTable th, .formTable td { padding: 13px 15px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.formTable th { width: 34%; background: #f1e8d8; color: var(--brown); }
.error_messe, .error-text { color: var(--danger); }

@media (max-width: 900px) {
  .page { width: min(100% - 22px, 1120px); margin: 14px auto; }
  .content, .section, .form-section { padding: 42px 30px; }
  .photo-grid-five { grid-template-columns: repeat(2,1fr); }
  .photo-grid-five figure:last-child { grid-column: 1/-1; max-width: 50%; justify-self: center; }
  .specialist-layout, .ending-layout, .finish-layout { grid-template-columns: 1fr; }
  .business-grid { grid-template-columns: repeat(2,1fr); }
  .burden-grid { grid-template-columns: 1fr; }
  .finish-thumbs img { height: 330px; }
}
@media (max-width: 680px) {
  body { line-height: 1.75; }
  .page { width: 100%; margin: 0; border-radius: 0; }
  .section-nav { position: static; justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; }
  .section-nav a { white-space: nowrap; }
  .content, .section, .form-section { padding: 34px 20px; }
  h2 { font-size: 25px; }
  .lead { font-size: 17px; }
  .photo-grid-three, .photo-grid-five, .feature-grid, .reference-grid, .form-grid, .choice-grid { grid-template-columns: 1fr; }
  .photo-grid-five figure:last-child { grid-column: auto; max-width: none; }
  .photo-grid img, .photo-grid-five img { height: auto; max-height: 360px; object-fit: cover; }
  .qualification-badge { width: 200px; height: 200px; }
  .note-photos { grid-template-columns: 1fr 1fr; }
  .finish-thumbs { gap: 8px; }
  .finish-thumbs img { height: 260px; }
  .price-table th:last-child, .price-table td:last-child { width: auto; }
  .company-info div { grid-template-columns: 1fr; gap: 2px; }
  .business-grid { grid-template-columns: 1fr; }
  .business-grid span { min-height: 56px; }
  .field.full { grid-column: auto; }
  .actions, .system-actions, .thanks-actions { flex-direction: column; }
  button, .page-system input[type="submit"], .page-system input[type="button"], .page-system input[type="reset"], .cta-button, .secondary-button { width: 100%; min-width: 0; }
  .footer { padding: 22px 20px; }
  .page-system { padding: 0; }
  #formWrap, .complete-wrap, .system-hero { border-radius: 0; }
  .formTable th, .formTable td { display: block; width: 100%; }
  .formTable th { border-bottom: 0; }
}
