@charset "UTF-8";
/* =========================================================
   誠和住建株式会社
   住まいの見えない部分 ―― 軒下 / 床下 / 基礎
   3つの事業: 軒下の補強・白アリ対策・基礎補強／木部補強
   ========================================================= */

:root {
  --ai:     #1f4e8a;   /* 藍: 主色 */
  --ai-dk:  #173b69;
  --asagi:  #dbe7f3;   /* 浅葱: 相談の帯・表の見出し */
  --gofun:  #edf3f9;   /* 淡い藍: 交互の背景 */
  --sumi:   #1f2a35;   /* 墨: 見出し */
  --body:   #3a4754;
  --line:   #d5dde6;
  --paper:  #fff;
  --red:    #b8392b;

  --mincho: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --gothic: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;

  --head-h: 84px;
  --nav-h: 48px;
  --pad: clamp(20px, 5vw, 40px);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 8px);
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  font-family: var(--gothic);
  font-size: 16px;
  line-height: 1.95;
  color: var(--body);
  background: var(--paper);
  letter-spacing: .03em;
  font-feature-settings: "palt";
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ai); text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 { margin: 0; font-family: var(--mincho); font-weight: 700; line-height: 1.5; color: var(--sumi); letter-spacing: .05em; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
:focus-visible { outline: 3px solid var(--ai); outline-offset: 3px; }

.wrap { width: min(100% - var(--pad) * 2, 1120px); margin-inline: auto; }
.narrow { width: min(100% - var(--pad) * 2, 780px); margin-inline: auto; }

/* =========================================================
   ヘッダー + ナビ帯（参考サイトと同じ2段構成）
   ========================================================= */
.head { background: var(--paper); }
.head .wrap { display: flex; align-items: center; gap: 28px; height: var(--head-h); }

.brand { margin-right: auto; text-decoration: none; line-height: 1.3; }
.brand-tag { display: block; font-size: 11.5px; color: var(--body); }
.brand-name { display: block; font-family: var(--mincho); font-weight: 800; font-size: 24px; color: var(--sumi); letter-spacing: .1em; white-space: nowrap; }

.head-tel, .head-free { margin: 0; text-align: right; line-height: 1.3; color: var(--sumi); text-decoration: none; }
.head-tel .num, .head-free .num { display: block; font-family: var(--mincho); font-size: 24px; font-weight: 700; letter-spacing: .06em; }
.head-free .num { font-size: 20px; color: var(--ai-dk); }
.head-tel .sub, .head-free .sub { display: block; font-size: 11px; color: var(--body); }

.head-cta {
  padding: 12px 36px;
  background: var(--ai); color: var(--paper);
  font-size: 15px; font-weight: 700; text-decoration: none; letter-spacing: .1em;
  white-space: nowrap;
}
.head-cta:hover { background: var(--ai-dk); }

.gnav { position: sticky; top: 0; z-index: 100; background: var(--ai); }
.gnav ul { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 auto; padding: 0; list-style: none; border-left: 1px solid rgba(255, 255, 255, .3); }
.gnav li { border-right: 1px solid rgba(255, 255, 255, .3); }
.gnav a { display: block; padding: 13px 8px; text-align: center; font-size: 14.5px; font-weight: 700; color: var(--paper); text-decoration: none; letter-spacing: .08em; }
.gnav a:hover, .gnav a.is-current { background: var(--ai-dk); }

.burger { display: none; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); background: var(--paper); cursor: pointer; }
.burger span { display: block; width: 20px; height: 2px; margin: 4px auto; background: var(--sumi); transition: transform .25s, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.drawer { display: none; }

/* =========================================================
   ヒーロー: 縦書きの見出しと文字だけで構成（写真は使わない）
   ========================================================= */
/* ページ上部はトップ・下層とも藍の色面で揃える */
.hero { padding: clamp(44px, 6vw, 72px) 0; background: var(--ai-dk); color: rgba(255, 255, 255, .88); }
.hero-grid {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(40px, 7vw, 112px);
  align-items: center;
}
.hero h1 {
  writing-mode: vertical-rl;
  font-size: clamp(32px, 3.6vw, 48px);
  font-weight: 800;
  line-height: 1.6;
  letter-spacing: .14em;
  color: var(--paper);
}
.hero .lead { margin: 0; font-size: clamp(15px, 1.4vw, 17px); line-height: 2.1; }
.hero-body { max-width: 44em; }
.hero-free { margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255, 255, 255, .28); border-bottom: 1px solid rgba(255, 255, 255, .28); }
.hero-free div { padding: 18px 20px; display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 4px; }
.hero-free div + div { border-left: 1px solid rgba(255, 255, 255, .28); }
.hero-free dt { font-size: 13px; line-height: 1.6; color: rgba(255, 255, 255, .8); }
.hero-free dd { margin: 0; font-family: var(--mincho); font-size: clamp(26px, 2.6vw, 34px); font-weight: 800; color: var(--paper); letter-spacing: .06em; line-height: 1.2; }
.hero-acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero .btn--solid { background: var(--paper); color: var(--ai-dk); }
.hero .btn--solid:hover { background: var(--asagi); }
.hero .btn--line { background: transparent; border-color: rgba(255, 255, 255, .7); color: var(--paper); }
.hero .btn--line:hover { border-color: var(--paper); background: rgba(255, 255, 255, .1); color: var(--paper); }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px;
  font-family: var(--gothic); font-size: 15px; font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--solid, .btn--blue { background: var(--ai); color: var(--paper); }
.btn--solid:hover, .btn--blue:hover { background: var(--ai-dk); }
.btn--line, .btn--ghost { border-color: var(--sumi); color: var(--sumi); background: var(--paper); }
.btn--line:hover, .btn--ghost:hover { border-color: var(--ai); color: var(--ai); }

/* =========================================================
   セクション共通
   ========================================================= */
.sec { padding: clamp(64px, 9vw, 112px) 0; }
.sec--haze { background: var(--gofun); }

.sec-head { margin-bottom: clamp(32px, 4.5vw, 52px); }
.sec-head h2 { font-size: clamp(24px, 3.2vw, 34px); font-weight: 800; color: var(--ai-dk); }
.sec-head .note { margin-top: 16px; max-width: 40em; font-size: 15px; }

/* 見出し帯: 横幅いっぱいの色帯に中央寄せ */
.ttl {
  margin: 0 0 clamp(40px, 5vw, 64px);
  padding: 18px var(--pad);
  background: var(--ai); color: var(--paper);
  text-align: center;
  font-size: clamp(21px, 2.4vw, 27px); font-weight: 800; letter-spacing: .12em;
}
.sec--titled { padding-top: 0; }
.sec-note { margin: -16px 0 32px; font-size: 15px; }

/* 私たちについて: 左に写真、右に淡い色面の本文（左右とも画面端まで） */
.about .ttl { margin-bottom: 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; }
.about-grid img { width: 100%; height: 100%; object-fit: cover; }
.about-txt { padding: clamp(36px, 5vw, 64px) clamp(24px, 5vw, 72px); background: var(--gofun); font-size: 15px; }
.about-txt > * { max-width: 34em; }
.about-txt h3 { margin-bottom: 20px; font-size: clamp(20px, 2.2vw, 26px); color: var(--ai-dk); }

/* 会社概要へのバナー */
.banner-wrap { padding: clamp(40px, 5vw, 56px) 0; }
.banner { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; border: 5px solid var(--ai); background: var(--ai); color: var(--paper); text-decoration: none; }
.banner img { width: 100%; height: 100%; max-height: 200px; object-fit: cover; }
.banner span { position: relative; display: grid; place-items: center; font-family: var(--mincho); font-size: clamp(20px, 2.2vw, 26px); font-weight: 800; letter-spacing: .14em; }
.banner span::after { content: ""; position: absolute; right: 20px; bottom: 20px; width: 9px; height: 9px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); }
.banner:hover { background: var(--ai-dk); border-color: var(--ai-dk); }

/* 事業内容: 3列のカード */
.svc .ttl { margin-bottom: 0; }
.svc-bg { padding: clamp(40px, 5vw, 64px) 0; background: var(--gofun); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 0 auto; padding: 0; list-style: none; }
.cards a { display: block; background: var(--paper); color: var(--sumi); text-decoration: none; border: 1px solid var(--line); }
.cards img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.cards span { position: relative; display: block; padding: 16px 40px; text-align: center; font-family: var(--mincho); font-size: clamp(16px, 1.6vw, 18px); font-weight: 800; letter-spacing: .08em; }
.cards span::after { content: ""; position: absolute; right: 20px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-top: 2px solid var(--ai); border-right: 2px solid var(--ai); transform: rotate(45deg); }
.cards a:hover span { color: var(--ai); }

/* 詳細（事業内容ページ） */
.detail { padding: 0 0 clamp(56px, 7vw, 88px); }
.detail .where { margin: 0; font-size: 13.5px; font-weight: 700; color: var(--ai); letter-spacing: .06em; }
.phead + .sec--titled, .phead + .detail { margin-top: clamp(32px, 4vw, 48px); }
.detail--tint { background: var(--gofun); }
.detail .grid { display: grid; grid-template-columns: 320px 1fr; gap: clamp(26px, 4vw, 56px); align-items: start; }
.detail .body { margin-top: 16px; font-size: 15px; }
.detail strong { color: var(--sumi); }

/* 相談の帯 */
.band { background: var(--asagi); }
.band .wrap { display: grid; grid-template-columns: 1fr auto; gap: 28px 56px; align-items: center; padding: clamp(48px, 6vw, 72px) 0; }
.band h2 { font-size: clamp(21px, 2.6vw, 28px); font-weight: 800; }
.band .note { margin-top: 12px; font-size: 14.5px; }
.band .callbox { display: grid; gap: 14px; justify-items: start; }
.band .tel { color: var(--sumi); text-decoration: none; }
.band .tel .num { display: block; font-family: var(--mincho); font-size: clamp(34px, 4.4vw, 46px); font-weight: 800; letter-spacing: .06em; line-height: 1.15; }
.band .tel .sub { display: block; font-size: 12.5px; color: var(--body); }
.band .fine { grid-column: 1 / -1; margin: 0; font-size: 12.5px; color: var(--body); }

/* 下層ページのタイトル */
.phead { padding: clamp(32px, 4.5vw, 52px) 0; background: var(--ai-dk); }
.phead h1 { font-size: clamp(26px, 3.2vw, 38px); font-weight: 800; letter-spacing: .1em; color: var(--paper); }
.crumb { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; font-size: 12.5px; color: rgba(255, 255, 255, .75); }
.crumb a { color: var(--paper); }
.crumb li + li::before { content: "/"; margin-right: 8px; color: rgba(255, 255, 255, .45); }

/* テーブル */
.info { width: 100%; border-collapse: collapse; font-size: 15px; }
.info th, .info td { padding: 18px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.info th { width: 200px; font-weight: 700; color: var(--ai-dk); white-space: nowrap; background: var(--asagi); }
.info td { background: var(--paper); }
.info tr:first-child th, .info tr:first-child td { border-top: 2px solid var(--ai); }

.map { margin-top: 18px; border: 1px solid var(--line); }
.map iframe { display: block; width: 100%; height: 360px; border: 0; }

.greet { display: grid; grid-template-columns: 280px 1fr; gap: clamp(26px, 4vw, 56px); align-items: start; }
.greet .sign { margin-top: 20px; text-align: right; font-family: var(--mincho); font-size: 17px; font-weight: 700; color: var(--sumi); letter-spacing: .1em; }

/* 本文用 */
.prose { font-size: 15px; }
.prose h3 { margin: 44px 0 12px; padding-left: 12px; border-left: 4px solid var(--ai); font-size: 19px; color: var(--ai-dk); }
.prose h3:first-child { margin-top: 0; }
.prose ul { padding-left: 1.3em; }
.prose li { margin-bottom: 6px; }

.links { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.links li { border-bottom: 1px solid var(--line); }
.links a { display: block; padding: 18px 4px; font-size: 15px; color: var(--sumi); text-decoration: none; }
.links a:hover { color: var(--ai); background: var(--gofun); }

/* =========================================================
   フォーム
   ========================================================= */
.form { margin-top: 8px; padding: clamp(24px, 4vw, 44px); background: var(--paper); border-top: 3px solid var(--ai); }
.form .field { margin-bottom: 26px; }
.form label { display: block; margin-bottom: 8px; font-size: 15px; font-weight: 700; color: var(--sumi); }
.tag { display: inline-block; margin-left: 8px; padding: 1px 8px; font-size: 11.5px; font-weight: 700; vertical-align: 2px; }
.tag--req { background: var(--red); color: #fff; }
.tag--any { background: var(--gofun); color: var(--body); border: 1px solid var(--line); }

.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form select, .form textarea {
  width: 100%; padding: 14px 15px;
  font-family: var(--gothic); font-size: 16px; color: var(--sumi);
  background: var(--paper); border: 1px solid #b9c4cf; border-radius: 2px;
}
.form textarea { min-height: 190px; line-height: 1.85; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--ai); outline: 2px solid rgba(31, 78, 138, .25); outline-offset: 0; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .err { display: none; margin-top: 6px; font-size: 13px; color: var(--red); }
.form .field.is-invalid .err { display: block; }
.form .field.is-invalid input, .form .field.is-invalid textarea { border-color: var(--red); background: #fdf5f4; }
.form .agree label { font-weight: 400; font-size: 14.5px; }
.form .agree input { margin-right: 8px; }
.form .btn { width: 100%; justify-content: center; }
.form .btn:disabled { opacity: .55; cursor: default; }

.status { display: none; margin-top: 18px; padding: 15px 17px; font-size: 14.5px; }
.status.ok { display: block; background: #e9f4ec; color: #1c6234; border-left: 4px solid #2f8a4d; }
.status.ng { display: block; background: #fdecea; color: #a02a1c; border-left: 4px solid var(--red); }

/* =========================================================
   フッター
   ========================================================= */
.foot { background: var(--ai-dk); color: rgba(255, 255, 255, .78); padding: clamp(48px, 6vw, 72px) 0 0; }
.foot .brand-name { color: var(--paper); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; }
.foot address { margin-top: 18px; font-style: normal; font-size: 13.5px; line-height: 2; }
.foot address a { color: var(--paper); }
.foot-nav { margin: 0; padding: 0; list-style: none; }
.foot-nav li { border-bottom: 1px solid rgba(255, 255, 255, .16); }
.foot-nav a { display: block; padding: 11px 0; font-size: 14px; color: rgba(255, 255, 255, .88); text-decoration: none; }
.foot-nav a:hover { color: var(--paper); text-decoration: underline; }
.foot-btm { margin-top: 40px; padding: 18px 0; border-top: 1px solid rgba(255, 255, 255, .16); font-size: 12px; text-align: center; }

.totop {
  position: fixed; right: 18px; bottom: 24px; z-index: 80;
  width: 46px; height: 46px; padding: 0;
  background: var(--paper); color: var(--sumi); border: 1px solid var(--line); cursor: pointer;
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.totop.is-on { opacity: 1; pointer-events: auto; }
.totop svg { width: 20px; height: 20px; margin: 0 auto; }

/* スマホ固定CTA */
.sticky { display: none; }

/* =========================================================
   レスポンシブ
   ========================================================= */
@media (max-width: 1000px) {
  .detail .grid { grid-template-columns: 280px 1fr; }
  .greet { grid-template-columns: 240px 1fr; }
}

@media (max-width: 960px) {
  .head-tel, .head-free, .gnav { display: none; }
  .head { position: sticky; top: 0; z-index: 100; border-bottom: 1px solid var(--line); }
  .head .wrap { height: 68px; }
  .brand-tag { display: none; }
  .brand-name { font-size: 19px; }
  .head .wrap { gap: 12px; }
  .head-cta { padding: 10px 14px; font-size: 13px; }
  .burger { display: block; }

  .drawer {
    display: block; position: fixed; top: 68px; left: 0; right: 0; z-index: 99;
    background: var(--paper); border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .32s ease;
  }
  .drawer.is-open { max-height: 440px; }
  .drawer ul { margin: 0; padding: 0; list-style: none; }
  .drawer a { display: block; padding: 16px var(--pad); color: var(--sumi); font-size: 15px; text-decoration: none; border-bottom: 1px solid var(--line); }
  .drawer .tel { padding: 18px var(--pad); border-bottom: 0; }
  .drawer .tel .num { display: block; font-family: var(--mincho); font-size: 28px; font-weight: 800; letter-spacing: .06em; line-height: 1.2; }
  .drawer .tel .sub { display: block; font-size: 12px; color: var(--body); }

  /* 縦書きは横書きに戻す */
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-free { grid-template-columns: 1fr; }
  .hero-free div { flex-direction: row-reverse; justify-content: space-between; align-items: baseline; padding: 12px 0; }
  .hero-free div + div { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .28); }
  .hero h1 { writing-mode: horizontal-tb; font-size: clamp(22px, 5.9vw, 36px); letter-spacing: .04em; }


  .about-grid, .greet { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .banner { grid-template-columns: 1fr 1fr; }
  .greet img, .detail .grid img { max-width: 420px; }
  .detail .grid { grid-template-columns: 1fr; }
  .band .wrap { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
  .info th { width: 34%; padding: 14px 12px; }
  .info td { padding: 14px 12px; }

  .sticky {
    display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  }
  .sticky a {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 15px 6px; font-size: 14.5px; font-weight: 700; text-decoration: none;
  }
  .sticky svg { width: 18px; height: 18px; }
  .sticky .c-tel { background: var(--paper); color: var(--ai); border-top: 1px solid var(--line); }
  .sticky .c-mail { background: var(--ai); color: var(--paper); }
  body { padding-bottom: 54px; }
  .totop { bottom: 68px; }
}

@media (max-width: 560px) {
  .brand-name { font-size: 17px; letter-spacing: .08em; }
  .banner { grid-template-columns: 1fr; }
  
  .info th { display: block; width: 100%; border-bottom: 0; padding-bottom: 0; }
  .info td { display: block; width: 100%; padding-top: 6px; }
  .info tr:first-child td { border-top: 0; }
}
