:root {
  --paper: #F7F3EA;
  --paper-2: #EEE7D8;
  --white: #FFFDF8;
  --ink: #22302E;
  --ink-soft: #4A5654;
  --teal: #1E5C58;
  --teal-dark: #143F3C;
  --teal-pale: #DCE9E6;
  --orange: #B4511A;
  --orange-dark: #8F3F12;
  --line: #D8CFBD;
  --wrap: 1120px;
  --font: "BIZ UDPGothic", "Hiragino Sans", "Yu Gothic", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.8;
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); }
button { font: inherit; }
h1, h2, h3 { line-height: 1.4; margin: 0; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* 架空の帯 */
.demo-band {
  position: sticky; top: 0; z-index: 50;
  background: var(--ink); color: #F3EEE3;
  font-size: 13px; line-height: 1.6;
  padding: 7px 16px; text-align: center;
}
.demo-band a { color: #FFD9B8; margin-left: .6em; white-space: nowrap; }

/* ヘッダー */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.brand { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; }
.brand-sub { font-size: 12px; color: var(--ink-soft); }
.brand-name { font-size: 24px; font-weight: 700; color: var(--teal-dark); letter-spacing: .06em; }
.header-tel { display: flex; flex-direction: column; align-items: flex-end; }
.tel-number {
  background: none; border: 0; padding: 0; cursor: pointer;
  font-size: 26px; font-weight: 700; color: var(--teal-dark); letter-spacing: .04em;
}
.tel-hours { font-size: 12px; color: var(--ink-soft); }

/* ボタン */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 12px 28px; border-radius: 8px;
  font-size: 18px; font-weight: 700; text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: background-color .2s, color .2s;
}
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dark); }
.btn-secondary { background: var(--white); color: var(--teal-dark); border-color: var(--teal); }
.btn-secondary:hover { background: var(--teal-pale); }
.btn-accent { background: var(--teal); color: #fff; }
.btn-accent:hover { background: var(--teal-dark); }
.btn:focus-visible, .tel-number:focus-visible, .fixed-bar-btn:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

/* ヒーロー */
.hero { background: var(--white); }
.hero-photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: 65% 50%; }
.hero-body { padding-top: 32px; padding-bottom: 48px; }
.hero-sub { color: var(--teal); font-weight: 700; font-size: 16px; }
.hero-title { font-size: clamp(36px, 7vw, 60px); color: var(--teal-dark); margin-top: 6px; letter-spacing: .02em; }
.hero-lead { margin-top: 16px; font-size: 18px; max-width: 36em; }
.hero-tel { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; }
.hero-tel-label { font-size: 15px; font-weight: 700; background: var(--teal-pale); color: var(--teal-dark); padding: 2px 10px; border-radius: 4px; }
.hero-tel-number { font-size: clamp(32px, 6vw, 44px); font-weight: 700; color: var(--teal-dark); letter-spacing: .04em; }
.hero-tel-hours { font-size: 15px; color: var(--ink-soft); width: 100%; }
.hero-actions { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 12px; }

@media (min-width: 960px) {
  .hero { display: grid; grid-template-columns: 1fr; position: relative; }
  .hero-photo img { aspect-ratio: 16 / 7; }
  .hero-body {
    position: relative; margin-top: -120px; background: var(--white);
    max-width: 640px; margin-left: max(20px, calc((100% - var(--wrap)) / 2 + 20px));
    padding: 36px 40px 40px; border-radius: 10px; box-shadow: 0 10px 30px rgba(34,48,46,.10);
  }
  .hero + .section { padding-top: 72px; }
}

/* セクション共通 */
.section { padding: 64px 0; }
.section-title { font-size: clamp(24px, 4vw, 32px); color: var(--teal-dark); margin-bottom: 28px; }
.section-title::after { content: ""; display: block; width: 48px; height: 4px; background: var(--orange); margin-top: 12px; border-radius: 2px; }

/* 約束 */
.promises { background: var(--paper); }
.promise-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.promise-list li { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 24px; position: relative; }
.promise-no { display: inline-flex; width: 40px; height: 40px; border-radius: 50%; background: var(--teal); color: #fff; font-weight: 700; align-items: center; justify-content: center; font-size: 20px; }
.promise-list h3 { font-size: 21px; margin: 12px 0 8px; color: var(--teal-dark); }
@media (min-width: 760px) { .promise-list { grid-template-columns: repeat(3, 1fr); } }

/* できること */
.services { background: var(--white); }
.note-box { background: var(--paper); border-left: 4px solid var(--orange); padding: 14px 18px; font-size: 15px; margin-bottom: 24px; }
.service-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.service-card { border: 1px solid var(--line); border-radius: 10px; padding: 22px; background: var(--white); display: flex; flex-direction: column; }
.service-card h3 { font-size: 20px; color: var(--teal-dark); margin-bottom: 6px; }
.service-card p { font-size: 16px; }
.service-card .price { margin-top: auto; padding-top: 14px; font-size: 22px; font-weight: 700; color: var(--ink); }
.service-card .price span { display: block; font-size: 14px; font-weight: 400; color: var(--ink-soft); }
.service-card .price small { display: block; font-size: 13px; font-weight: 400; color: var(--ink-soft); }
.service-card--biz { background: var(--teal-pale); border-color: #BFD5D1; }
@media (min-width: 640px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .service-grid { grid-template-columns: repeat(3, 1fr); } }

/* 施工事例 */
.works { background: var(--paper); }
.work { display: grid; gap: 18px; background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 18px; margin-bottom: 20px; }
.work-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.work--single .work-photos { grid-template-columns: 1fr; }
.work-photos figure { margin: 0; position: relative; }
.work-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; }
.work-photos figcaption { position: absolute; left: 8px; top: 8px; background: rgba(34,48,46,.85); color: #fff; font-size: 13px; padding: 2px 10px; border-radius: 4px; }
.work-text h3 { font-size: 21px; color: var(--teal-dark); }
.work-meta { font-size: 14px; color: var(--ink-soft); margin-bottom: 8px; }
.work-data { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 12px 0 0; }
.work-data div { display: flex; gap: 8px; }
.work-data dt { font-weight: 700; color: var(--teal); }
.work-data dd { margin: 0; }
@media (min-width: 860px) {
  .work { grid-template-columns: 3fr 2fr; align-items: center; padding: 24px; }
}

/* 流れ */
.flow { background: var(--white); }
.flow-list { list-style: none; margin: 0; padding: 0; counter-reset: flow; display: grid; gap: 12px; }
.flow-list li { counter-increment: flow; position: relative; padding: 18px 18px 18px 72px; background: var(--paper); border-radius: 10px; }
.flow-list li::before { content: counter(flow); position: absolute; left: 18px; top: 18px; width: 38px; height: 38px; border-radius: 50%; background: var(--teal); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.flow-list h3 { font-size: 19px; color: var(--teal-dark); }
.flow-list p { font-size: 16px; }
@media (min-width: 960px) {
  .flow-list { grid-template-columns: repeat(5, 1fr); }
  .flow-list li { padding: 64px 16px 18px; }
  .flow-list li::before { left: 16px; }
}

/* 会社 */
.company { background: var(--paper); }
.company-inner { display: grid; gap: 32px; }
.company-photo { margin: 0 0 18px; }
.company-photo img { border-radius: 10px; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
blockquote { margin: 0; background: var(--white); border-radius: 10px; padding: 22px; border: 1px solid var(--line); }
blockquote cite { display: block; margin-top: 12px; font-style: normal; font-weight: 700; color: var(--teal-dark); text-align: right; }
.demo-label { font-size: 14px; font-weight: 700; color: var(--orange-dark); margin-bottom: 8px; }
.company-table table { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--line); font-size: 15px; }
.company-table th, .company-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.company-table th { width: 7.5em; background: var(--teal-pale); color: var(--teal-dark); white-space: nowrap; }
@media (min-width: 960px) { .company-inner { grid-template-columns: 1fr 1fr; align-items: start; } .company-table { padding-top: 68px; } }

/* FAQ */
.faq { background: var(--white); }
.faq-list { margin: 0; display: grid; gap: 12px; }
.faq-list div { background: var(--paper); border-radius: 10px; padding: 18px 20px; }
.faq-list dt { font-weight: 700; color: var(--teal-dark); }
.faq-list dt::before { content: "Q. "; color: var(--orange); }
.faq-list dd { margin: 6px 0 0; }

/* お問い合わせ */
.contact { background: var(--teal-pale); }
.contact-inner { display: grid; gap: 32px; }
.contact-tel-number { font-size: clamp(34px, 6vw, 46px); font-weight: 700; color: var(--teal-dark); letter-spacing: .04em; }
.contact-tel-hours { margin-bottom: 16px; }
.area { margin-top: 28px; background: var(--white); border-radius: 10px; padding: 18px; }
.area h3 { font-size: 18px; color: var(--teal-dark); margin-bottom: 8px; }
.area svg { width: 100%; max-width: 360px; height: auto; display: block; margin: 0 auto; }
.area-outer { fill: #E6EFEC; stroke: var(--teal); stroke-width: 2; stroke-dasharray: 6 5; }
.area-inner { fill: var(--teal); }
.area-text-strong { fill: #fff; font-size: 17px; font-weight: 700; font-family: var(--font); }
.area-text-small { fill: #fff; font-size: 12px; font-family: var(--font); }
.area-text { fill: var(--teal-dark); font-size: 14px; font-weight: 700; font-family: var(--font); }
.area svg text:last-of-type { fill: var(--ink-soft); }
.contact-form { background: var(--white); border-radius: 10px; padding: 24px; }
.form-warning { background: #FFF1E4; border: 2px solid var(--orange); color: var(--orange-dark); font-weight: 700; padding: 12px 14px; border-radius: 8px; font-size: 15px; margin-bottom: 18px; }
.form-step label { display: block; font-weight: 700; font-size: 16px; margin-bottom: 14px; }
.form-step input, .form-step textarea {
  display: block; width: 100%; margin-top: 6px; font: inherit; font-weight: 400;
  padding: 12px; border: 1px solid #B9AE98; border-radius: 6px; background: #fff;
}
.form-step input:focus, .form-step textarea:focus { outline: 3px solid var(--teal-pale); border-color: var(--teal); }
.form-error { color: var(--orange-dark); font-weight: 700; margin-bottom: 12px; }
.form-step-title { font-size: 20px; font-weight: 700; color: var(--teal-dark); margin-bottom: 12px; }
.confirm-list { margin: 0 0 18px; }
.confirm-list dt { font-weight: 700; color: var(--teal); font-size: 14px; }
.confirm-list dd { margin: 0 0 10px; white-space: pre-wrap; word-break: break-word; }
.form-buttons, .modal-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.form-step[data-step="done"] p { margin-bottom: 16px; }
.form-step[data-step="done"] .btn { margin: 0 12px 12px 0; }
@media (min-width: 960px) { .contact-inner { grid-template-columns: 1fr 1.2fr; align-items: start; } }

/* フッター */
.site-footer { background: var(--ink); color: #E9E4D8; padding: 36px 0 110px; font-size: 14px; }
.site-footer a { color: #FFD9B8; }
.footer-name { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.footer-demo, .footer-links { margin-bottom: 8px; }
@media (min-width: 960px) { .site-footer { padding-bottom: 36px; } }

/* 下部固定バー（スマホ） */
.fixed-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  background: rgba(255,253,248,.97); border-top: 1px solid var(--line);
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
}
.fixed-bar-btn { min-height: 52px; border-radius: 8px; font-weight: 700; font-size: 17px; display: flex; align-items: center; justify-content: center; text-decoration: none; border: 0; cursor: pointer; }
.fixed-bar-btn--tel { background: var(--orange); color: #fff; }
.fixed-bar-btn--form { background: var(--teal); color: #fff; }
.fixed-bar-hours { grid-column: 1 / -1; text-align: center; font-size: 12px; color: var(--ink-soft); line-height: 1.2; }
@media (min-width: 960px) { .fixed-bar { display: none; } }

/* 小窓 */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(20,30,29,.55); }
.modal-box { position: relative; background: var(--white); border-radius: 12px; padding: 28px 24px; max-width: 440px; width: 100%; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.modal-title { font-size: 21px; font-weight: 700; color: var(--teal-dark); margin-bottom: 10px; }
.modal-box p { margin-bottom: 16px; }

/* 登場の動き（控えめ） */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* 印刷でも架空の表示を残す */
@media print {
  .demo-band { position: static; background: #fff; color: #000; border: 2px solid #000; }
  .fixed-bar, .modal { display: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* スマホ幅の調整 */
.brand-name, .brand-sub, .tel-number { white-space: nowrap; }
@media (max-width: 719px) {
  .header-tel { display: none; }
  .hero-photo img { aspect-ratio: 4 / 3; object-position: 72% 50%; }
  .hero-actions .btn, .contact-tel .btn { width: 100%; }
  .modal-buttons .btn, .form-buttons .btn { flex: 1 1 100%; }
}

/* 添削の反映（2026-10-10） */
body { word-break: auto-phrase; line-break: strict; }
.req { display: inline-block; margin-left: 8px; padding: 0 8px; border-radius: 4px; background: var(--orange); color: #fff; font-size: 12px; line-height: 1.8; vertical-align: 2px; }
.btn-block { width: 100%; }
.form-step input:focus-visible, .form-step textarea:focus-visible { outline: 3px solid var(--teal); outline-offset: 1px; }
.btn:active, .fixed-bar-btn:active { transform: translateY(1px); }

@media (max-width: 767px) {
  .service-grid { gap: 0; border-top: 1px solid var(--line); }
  .service-card { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 16px 0; background: transparent;
    display: grid; grid-template-columns: 1fr auto; column-gap: 16px; align-items: start; }
  .service-card h3 { grid-column: 1; font-size: 19px; margin-bottom: 2px; }
  .service-card > p:not(.price) { grid-column: 1; font-size: 15px; }
  .service-card .price { grid-column: 2; grid-row: 1 / span 2; margin: 0; padding: 0; text-align: right; font-size: 20px; white-space: nowrap; }
  .service-card .price span, .service-card .price small { font-size: 12px; }
  .service-card--biz { background: var(--teal-pale); border: 1px solid #BFD5D1; border-radius: 10px; padding: 16px; margin-top: 16px; }
  .company-table th, .company-table td { display: block; width: auto; border-bottom: 0; }
  .company-table th { padding-bottom: 4px; }
  .company-table tr { display: block; border-bottom: 1px solid var(--line); }
  .company-table td { padding-top: 6px; }
}

@media (min-width: 960px) {
  .hero { position: relative; display: block; }
  .hero-photo img { aspect-ratio: auto; height: clamp(600px, 52vw, 760px); object-position: 70% 60%; }
  .hero-body { position: absolute; top: 48px; margin: 0; left: max(32px, calc((100% - var(--wrap)) / 2 + 20px)); max-width: 520px; padding: 32px 36px 36px; }
  .hero-title { font-size: 52px; }
  .hero + .section { padding-top: 64px; }
}
