/* ゆくい工務店（架空）制作イメージ ― ちゅらしるべ */
/* 配色：赤瓦（#a8432a）＋漆喰の白＋琉球石灰岩のベージュ（#f5f0e8）＋ガジュマルの緑（#2f5d50） */

:root {
  --kawara: #a8432a;
  --kawara-dark: #7f2f1c;
  --kawara-soft: #f7e6df;
  --stone: #f5f0e8;
  --stone-deep: #ebe3d6;
  --green: #2f5d50;
  --charcoal: #2e2a27;
  --text: #2e2a27;
  --text-sub: #5a534c;
  --line: #e0d7c8;
  --notice: #efe6b0;
  --bg: #ffffff;
  --font: "Noto Sans JP", "Yu Gothic", "Hiragino Sans", Meiryo, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.85;
  color: var(--text);
  background: var(--bg);
  /* スマホ下部の固定ボタンぶんの余白 */
  padding-bottom: 64px;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--kawara); }

h1, h2, h3 { font-weight: 900; line-height: 1.45; margin: 0; color: var(--charcoal); }

p { margin: 0 0 1em; }

ul, ol { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ---------- 見本の表示 ---------- */
.demo-banner {
  background: var(--notice);
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 700;
  text-align: center;
  padding: 8px 16px;
  line-height: 1.5;
}

.demo-banner a { color: var(--kawara-dark); }

.tag-sample {
  display: inline-block;
  padding: 0 8px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text);
  background: var(--notice);
  border-radius: 3px;
  vertical-align: middle;
}

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 3px solid var(--kawara);
}

.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }

.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--charcoal); }

/* 赤瓦の屋根をかたどった印（装飾） */
.logo-mark {
  width: 34px;
  height: 26px;
  background: var(--kawara);
  clip-path: polygon(50% 0, 100% 55%, 88% 55%, 88% 100%, 12% 100%, 12% 55%, 0 55%);
  flex: none;
}

.logo-text { font-weight: 900; font-size: 1.25rem; line-height: 1.2; }
.logo-text small { display: block; font-weight: 400; font-size: 0.6875rem; color: var(--text-sub); }

.header-tel { display: none; }

.nav-toggle {
  min-width: 44px;
  min-height: 44px;
  padding: 0 12px;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--charcoal);
  background: var(--stone);
  border: 1px solid var(--line);
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
  flex: none;
}

.global-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); }
.global-nav.is-open { display: block; }
.global-nav a { display: block; white-space: nowrap; padding: 14px 20px; color: var(--text); text-decoration: none; border-top: 1px solid var(--line); font-weight: 700; }
.global-nav a:hover { background: var(--stone); }

/* ---------- ボタン ---------- */
.btn {
  display: inline-block;
  min-height: 52px;
  padding: 13px 28px;
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
  text-decoration: none;
  border-radius: 6px;
  border: 2px solid transparent;
  line-height: 1.5;
  font-family: inherit;
  cursor: pointer;
}

.btn-primary { background: var(--kawara); color: #fff; }
.btn-primary:hover { background: var(--kawara-dark); }

.btn-ghost { background: rgba(255, 255, 255, 0.12); color: #fff; border-color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.24); }

.btn-outline { background: #fff; color: var(--kawara-dark); border-color: var(--kawara); }
.btn-outline:hover { background: var(--kawara-soft); }

.btn:focus-visible, a:focus-visible, .nav-toggle:focus-visible,
input:focus, select:focus, textarea:focus, summary:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 2px;
}

/* ---------- 写真（イメージ写真の表記つき） ---------- */
.photo { position: relative; margin: 0; overflow: hidden; }
.photo img { width: 100%; height: 100%; object-fit: cover; }

.photo figcaption, .hero-caption {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 2px 8px;
  font-size: 0.75rem;
  line-height: 1.6;
  color: #fff;
  background: rgba(46, 42, 39, 0.8);
  border-radius: 3px;
}

/* ---------- ファーストビュー ---------- */
.hero {
  position: relative;
  color: #fff;
  background: var(--charcoal) url("../images/hero.webp") center / cover no-repeat;
  padding: 72px 0 64px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(30, 26, 23, 0.86) 0%, rgba(30, 26, 23, 0.62) 55%, rgba(30, 26, 23, 0.25) 100%);
}

.hero .container { position: relative; }

.hero-badge {
  display: inline-block;
  margin-bottom: 16px;
  padding: 4px 14px;
  font-size: 0.875rem;
  font-weight: 700;
  background: var(--kawara);
  border-radius: 999px;
}

.hero h1 { color: #fff; font-size: 2rem; margin-bottom: 18px; letter-spacing: 0.02em; }
.hero-lead { font-size: 1.0625rem; max-width: 560px; margin-bottom: 28px; }
.hero-actions { display: flex; flex-direction: column; gap: 12px; }

/* ---------- セクション共通 ---------- */
.section { padding: 64px 0; }
.section-stone { background: var(--stone); }

.section-head { margin-bottom: 32px; }
.section-head .en { display: block; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.18em; color: var(--kawara); }
.section-head h2 { font-size: 1.75rem; }
.section-head p { margin: 10px 0 0; color: var(--text-sub); }
.section-head.center { text-align: center; }

/* ---------- お悩み ---------- */
.worries { display: grid; gap: 10px; }

.worry {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 14px 16px 14px 48px;
  font-weight: 700;
}

.worry::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  width: 20px;
  height: 20px;
  margin-top: -10px;
  border: 2px solid var(--kawara);
  border-radius: 4px;
}

.worry::after {
  content: "";
  position: absolute;
  left: 22px;
  top: 50%;
  width: 7px;
  height: 12px;
  margin-top: -9px;
  border: solid var(--kawara);
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

.worries-answer { margin-top: 24px; font-size: 1.125rem; font-weight: 900; text-align: center; color: var(--kawara-dark); }

/* ---------- 強み ---------- */
.strengths { display: grid; gap: 20px; counter-reset: s; }

.strength { border-top: 4px solid var(--kawara); background: var(--bg); padding: 24px 20px; counter-increment: s; }
.strength-no { font-size: 2.5rem; font-weight: 900; line-height: 1; color: var(--kawara-soft); -webkit-text-stroke: 1px var(--kawara); }
.strength-no::before { content: "0" counter(s); }
.strength h3 { font-size: 1.25rem; margin: 10px 0 8px; }
.strength p { margin: 0; color: var(--text-sub); }

/* ---------- サービス・料金の目安 ---------- */
.services { display: grid; gap: 14px; }

.service { background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 20px; }
.service h3 { font-size: 1.125rem; margin-bottom: 6px; }
.service p { margin: 0 0 10px; font-size: 0.9375rem; color: var(--text-sub); }
.service-price { margin: 0; font-weight: 700; color: var(--kawara-dark); }
.service-price strong { font-size: 1.375rem; }

.note { margin-top: 20px; font-size: 0.875rem; color: var(--text-sub); }

/* ---------- 施工事例 ---------- */
.cases { display: grid; gap: 20px; }

.case { background: var(--bg); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.case .photo { aspect-ratio: 3 / 2; }
.case-body { padding: 16px 18px 20px; }
.case-cat { font-size: 0.8125rem; font-weight: 700; color: var(--green); }
.case h3 { font-size: 1.125rem; margin: 2px 0 10px; }
.case dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; margin: 0; font-size: 0.9375rem; }
.case dt { color: var(--text-sub); }
.case dd { margin: 0; font-weight: 700; }

/* ---------- お客さまの声 ---------- */
.voices { display: grid; gap: 16px; }

.voice {
  position: relative;
  margin: 0;
  background: var(--bg);
  border-radius: 6px;
  padding: 24px 20px 20px;
  border-left: 4px solid var(--green);
}

.voice p { margin: 8px 0; }
.voice-who { font-size: 0.875rem; color: var(--text-sub); margin: 0; }

/* ---------- 流れ ---------- */
.flow { display: grid; gap: 10px; counter-reset: f; }

.flow-step {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 14px 16px 14px 70px;
  counter-increment: f;
}

.flow-step::before {
  content: "STEP\A" counter(f);
  white-space: pre;
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  font-size: 0.6875rem;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  color: var(--kawara);
}

.flow-step h3 { font-size: 1.0625rem; }
.flow-step p { margin: 0; font-size: 0.9375rem; color: var(--text-sub); }

/* ---------- 会社概要 ---------- */
.company { display: grid; gap: 24px; align-items: start; }
.company .photo { aspect-ratio: 3 / 2; border-radius: 6px; }
.company-table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; background: var(--bg); }
.company-table th, .company-table td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.company-table th { width: 7.5em; background: var(--stone); font-weight: 700; }

/* ---------- よくある質問 ---------- */
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }

.faq-item summary {
  position: relative;
  padding: 16px 40px 16px 34px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before { content: "Q"; position: absolute; left: 4px; top: 15px; font-weight: 900; color: var(--kawara); }
.faq-item summary::after { content: "＋"; position: absolute; right: 8px; top: 15px; color: var(--kawara); }
.faq-item[open] summary::after { content: "−"; }
.faq-answer { padding: 0 8px 16px 34px; }
.faq-answer p { margin: 0; }

/* ---------- お問い合わせ ---------- */
.contact { background: var(--charcoal); color: #fff; padding: 64px 0; }
.contact .section-head h2 { color: #fff; }
.contact .section-head .en { color: #f0a58f; }
.contact .section-head p { color: #e9e3da; }

.contact-grid { display: grid; gap: 20px; align-items: start; }

.contact-card { background: var(--bg); color: var(--text); border-radius: 8px; padding: 24px 20px; }
.contact-card h3 { font-size: 1.125rem; margin-bottom: 10px; }

.tel-big { margin: 0; font-size: 2rem; font-weight: 900; color: var(--kawara-dark); letter-spacing: 0.02em; line-height: 1.3; }
.contact-note { margin: 6px 0 0; font-size: 0.875rem; color: var(--text-sub); }

.form-row { margin-bottom: 14px; }
.form-row label { display: block; font-weight: 700; margin-bottom: 4px; }
.form-row .req { margin-left: 6px; padding: 0 6px; font-size: 0.75rem; color: #fff; background: var(--kawara); border-radius: 3px; }

.form-row input, .form-row select, .form-row textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  font: inherit;
  color: var(--text);
  background: #fff;
  border: 1px solid #8f877c;
  border-radius: 4px;
}

.form-row textarea { min-height: 120px; }

.form-message { margin: 12px 0 0; padding: 12px; font-size: 0.9375rem; background: var(--stone); border-radius: 4px; }

/* ---------- フッター ---------- */
.site-footer { background: #1f1c1a; color: #d9d2c7; padding: 28px 0; font-size: 0.875rem; }
.site-footer p { margin: 0 0 6px; }
.site-footer a { color: #fff; }
.footer-name { font-weight: 900; font-size: 1.0625rem; color: #fff; }

/* ---------- スマホ下部の固定ボタン ---------- */
.fixed-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.12);
}

.fixed-cta a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  font-weight: 700;
  text-decoration: none;
  color: var(--kawara-dark);
}

.fixed-cta a + a { background: var(--kawara); color: #fff; }

/* ---------- タブレット・PC ---------- */
@media (min-width: 768px) {
  body { padding-bottom: 0; }
  .fixed-cta { display: none; }
  .container { padding: 0 32px; }

  .hero { padding: 120px 0 112px; }
  .hero h1 { font-size: 2.875rem; }
  .hero-lead { font-size: 1.125rem; }
  .hero-actions { flex-direction: row; }

  .section { padding: 88px 0; }
  .worries { grid-template-columns: repeat(2, 1fr); }
  .strengths { grid-template-columns: repeat(3, 1fr); }
  .services { grid-template-columns: repeat(3, 1fr); }
  .cases { grid-template-columns: repeat(2, 1fr); }
  .voices { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: repeat(3, 1fr); }
  .company { grid-template-columns: 2fr 3fr; }
  .contact-grid { grid-template-columns: 2fr 3fr; }
}

@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .global-nav, .global-nav.is-open { display: block; position: static; border: 0; background: transparent; }
  .global-nav ul { display: flex; gap: 2px; }
  .global-nav a { border-top: 0; padding: 8px 10px; font-size: 0.9375rem; border-radius: 4px; }

  .cases { grid-template-columns: repeat(4, 1fr); }
}

/* 電話番号はヘッダーに余裕がある幅だけ表示 */
@media (min-width: 1200px) {
  .header-tel {
    display: block;
    text-align: right;
    line-height: 1.2;
    font-weight: 900;
    font-size: 1.125rem;
    color: var(--kawara-dark);
  }

  .header-tel small { display: block; font-weight: 400; font-size: 0.6875rem; color: var(--text-sub); white-space: nowrap; }
}
