/* つむぎ工務店 — 誠実・堅実なネイビー×オレンジ */
:root {
  --bg: #ffffff;
  --bg-alt: #f3f5f8;
  --ink: #22303f;
  --sub: #5f6d7d;
  --navy: #1f3a5f;
  --orange: #e0862e;
  --line: #dde3ea;
  --radius: 10px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: "Noto Sans JP", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.9;
  font-size: 15px;
}

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

.container { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.center { text-align: center; margin-top: 36px; }

/* ヘッダー */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
  z-index: 100;
}
.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--navy);
  font-weight: 900;
  font-size: 19px;
}
.site-nav { display: flex; align-items: center; gap: 24px; }
.site-nav a {
  text-decoration: none;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--orange); }
.nav-cta {
  background: var(--orange);
  color: #fff !important;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 700;
}
.nav-cta:hover { opacity: 0.9; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

/* ヒーロー */
.hero {
  padding: 128px 0 76px;
  background: linear-gradient(155deg, #ecf1f7 0%, #f8fafc 55%, #fff 100%);
}
.hero-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 44px;
  align-items: center;
}
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-badges span {
  background: var(--navy);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 13px;
  border-radius: 4px;
}
.hero h1 {
  font-size: clamp(27px, 4.8vw, 42px);
  line-height: 1.5;
  margin-top: 20px;
  font-weight: 900;
}
.hero h1 em {
  font-style: normal;
  color: var(--orange);
}
.hero-lead { margin-top: 16px; color: var(--sub); font-size: 14.5px; }
.hero-actions { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }

/* ボタン */
.btn-primary, .btn-secondary, .btn-white, .btn-orange {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 700;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 15px;
  transition: transform 0.2s, opacity 0.2s;
  line-height: 1.5;
}
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 5px 14px rgba(224, 134, 46, 0.32); }
.btn-secondary { background: #fff; color: var(--navy); border: 2px solid var(--navy); }
.btn-white { background: #fff; color: var(--navy); }
.btn-white small { font-size: 11px; font-weight: 400; color: var(--sub); }
.btn-orange { background: var(--orange); color: #fff; }
.btn-primary:hover, .btn-secondary:hover, .btn-white:hover, .btn-orange:hover { transform: translateY(-2px); opacity: 0.94; }

/* 写真 */
.photo { display: block; width: 100%; object-fit: cover; border-radius: var(--radius); }
.photo-hero { height: 300px; }
.photo-service { height: 150px; border-radius: var(--radius) var(--radius) 0 0; }
.photo-work { height: 170px; border-radius: var(--radius) var(--radius) 0 0; }
.photo-president { height: 260px; }

/* 画像注記（AI生成／サンプル画像・差し替え可能の表示） */
.photo-frame { position: relative; display: block; }
.photo-note {
  position: absolute;
  right: 6px;
  bottom: 6px;
  z-index: 2;
  background: rgba(10, 8, 6, 0.62);
  color: #fff;
  font-size: 9.5px;
  line-height: 1.3;
  letter-spacing: 0.01em;
  padding: 3px 7px;
  border-radius: 3px;
  white-space: nowrap;
  pointer-events: none;
}

/* セクション共通 */
.section { padding: 76px 0; }
.section-alt { background: var(--bg-alt); }
.section-eyebrow {
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--orange);
  font-weight: 700;
}
.section-title {
  text-align: center;
  font-size: clamp(22px, 3.6vw, 29px);
  font-weight: 900;
  margin-top: 6px;
  margin-bottom: 42px;
}

/* 下層ページヒーロー */
.page-hero {
  padding: 118px 0 52px;
  background: linear-gradient(155deg, #ecf1f7 0%, #fff 100%);
  text-align: center;
}
.page-title { font-size: clamp(25px, 4.4vw, 36px); font-weight: 900; margin-top: 8px; }
.page-lead { margin-top: 12px; color: var(--sub); font-size: 14px; }

/* 強み */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  border-top: 4px solid var(--orange);
}
.feature-num {
  font-size: 30px;
  font-weight: 900;
  color: var(--navy);
  opacity: 0.22;
  line-height: 1;
}
.feature h3 { font-size: 17px; font-weight: 700; margin-top: 10px; }
.feature p { font-size: 13.5px; color: var(--sub); margin-top: 8px; }

/* サービス */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.service-card h3 { font-size: 16.5px; font-weight: 700; padding: 18px 20px 0; }
.service-card p { font-size: 13.5px; color: var(--sub); padding: 8px 20px 22px; }

/* 進め方 */
.flow {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  counter-reset: flow;
}
.flow li {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 24px 20px;
  position: relative;
}
.flow li:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -14px; top: 50%;
  transform: translateY(-50%);
  border: 7px solid transparent;
  border-left-color: var(--orange);
  z-index: 1;
}
.flow-step {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #fff;
  background: var(--navy);
  padding: 3px 12px;
  border-radius: 4px;
}
.flow h3 { font-size: 15.5px; font-weight: 700; margin-top: 12px; }
.flow p { font-size: 12.5px; color: var(--sub); margin-top: 6px; }

/* 事例 */
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.work-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
a.work-card:hover { transform: translateY(-4px); box-shadow: 0 12px 26px rgba(31, 58, 95, 0.14); }
.work-body { padding: 18px 20px 20px; flex: 1; }
.work-tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--orange);
  border: 1px solid var(--orange);
  border-radius: 4px;
  padding: 1px 10px;
}
.work-body h3 { font-size: 15.5px; font-weight: 700; margin-top: 10px; }
.work-body p { font-size: 13px; color: var(--sub); margin-top: 8px; }
.work-meta {
  margin-top: 12px;
  display: flex;
  gap: 14px;
  font-size: 12px;
  color: var(--sub);
}
.work-meta dt { font-weight: 700; }
.work-meta dt::after { content: "："; }
.work-meta dd { margin-right: 4px; }
.work-meta { flex-wrap: wrap; }
.works-page .work-card { cursor: default; }

/* 代表挨拶 */
.greeting {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 36px;
  align-items: start;
  max-width: 880px;
  margin: 0 auto;
}
.greeting-name { font-size: 17px; font-weight: 700; margin-bottom: 12px; }
.greeting-text p + p { margin-top: 14px; }
.greeting-text p { font-size: 14.5px; }

/* 会社概要テーブル */
.info-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.info-table th, .info-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  text-align: left;
  vertical-align: top;
}
.info-table tr:last-child th, .info-table tr:last-child td { border-bottom: none; }
.info-table th { width: 130px; background: var(--bg-alt); font-weight: 700; white-space: nowrap; }
.company-table { max-width: 760px; margin: 0 auto; }

/* お問い合わせ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 30px;
  align-items: start;
  max-width: 920px;
  margin: 0 auto;
}
.contact-tel {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 30px 26px;
  text-align: center;
}
.contact-tel h3 { font-size: 16px; font-weight: 700; }
.contact-tel-num {
  display: block;
  font-size: 30px;
  font-weight: 900;
  color: var(--navy);
  text-decoration: none;
  margin: 12px 0;
}
.contact-tel p { font-size: 12.5px; color: var(--sub); }

.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
}
.contact-form h3 { font-size: 16px; font-weight: 700; }
.form-note { font-size: 13px; color: var(--sub); margin: 8px 0 18px; }
.form-note small { color: var(--orange); }
.form-row { margin-bottom: 16px; }
.form-row label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 6px;
}
.req {
  font-size: 10.5px;
  color: #fff;
  background: var(--orange);
  border-radius: 3px;
  padding: 1px 7px;
  margin-left: 6px;
  font-weight: 700;
  vertical-align: 1px;
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  font: inherit;
  font-size: 14px;
  background: #fbfcfd;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: 2px solid var(--orange);
  outline-offset: 1px;
  background: #fff;
}
.form-submit {
  border: none;
  cursor: pointer;
  width: 100%;
  font: inherit;
  font-weight: 700;
}
.form-result {
  margin-top: 14px;
  font-size: 13px;
  color: var(--orange);
  font-weight: 700;
  text-align: center;
}

/* CTA */
.cta {
  background: linear-gradient(135deg, var(--navy), #2d5382);
  color: #fff;
  padding: 66px 0;
  text-align: center;
}
.cta h2 { font-size: clamp(21px, 3.4vw, 27px); font-weight: 900; }
.cta p { margin-top: 10px; font-size: 14px; opacity: 0.92; }
.cta-actions {
  margin-top: 28px;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* フッター */
.site-footer {
  background: #17253a;
  color: #b9c4d2;
  padding: 44px 0 28px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.footer-brand { font-size: 17px; font-weight: 700; color: #fff; }
.footer-addr { font-size: 12.5px; margin-top: 10px; }
.footer-nav { display: flex; flex-direction: column; gap: 8px; }
.footer-nav a { color: #b9c4d2; text-decoration: none; font-size: 13px; }
.footer-nav a:hover { color: var(--orange); }
.footer-copy { text-align: center; font-size: 11.5px; margin-top: 30px; opacity: 0.65; }

/* フェードイン */
.fade-in { opacity: 0; transform: translateY(16px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-in.is-visible { opacity: 1; transform: none; }

/* レスポンシブ */
@media (max-width: 960px) {
  .flow { grid-template-columns: repeat(2, 1fr); }
  .flow li:not(:last-child)::after { display: none; }
  .works-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .photo-hero { height: 220px; }
  .features, .services { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .greeting { grid-template-columns: 1fr; }
  .photo-president { max-width: 320px; margin: 0 auto; width: 100%; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed;
    top: 70px; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 0;
    padding: 8px 0 16px;
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px 24px; width: 100%; text-align: center; }
  .nav-cta { width: auto !important; margin: 8px auto 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero { padding: 104px 0 56px; }
  .section { padding: 56px 0; }
  .page-hero { padding: 100px 0 40px; }
  .works-grid { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; }
  .btn-white, .btn-orange { width: 100%; max-width: 340px; }
}
