/* ============================================
   TAKA KOUMUTEN（タカ工務店）
   ご提案用デモサイト 共通スタイル
   ============================================ */

:root {
  --brand-wood: #8a5a34;
  --brand-wood-dark: #6b4423;
  --brand-wood-light: #a97a4f;
  --brand-moss: #5c6b4f;
  --bg-cream: #f7f4ee;
  --bg-white: #ffffff;
  --text-main: #2c2a26;
  --text-sub: #82796c;
  --border-soft: #e6e0d3;
  --max-width: 1120px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", sans-serif;
  color: var(--text-main);
  background: var(--bg-white);
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }

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

/* ---------- demo notice bar ---------- */
.demo-notice {
  background: #1e1c19;
  color: #e8dcc8;
  font-size: 12.5px;
  text-align: center;
  padding: 7px 12px;
  letter-spacing: .02em;
}
.demo-notice strong { color: #d9a466; }

/* ---------- header ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
}
.logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--brand-wood-dark);
  letter-spacing: .03em;
}
.logo span { font-size: 10.5px; display: block; font-weight: 400; color: var(--text-sub); letter-spacing: .16em; margin-top: 2px; }
.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav a {
  font-size: 14.5px;
  color: var(--text-main);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav a.active { border-color: var(--brand-wood); color: var(--brand-wood-dark); }
.nav-cta {
  background: var(--brand-wood-dark);
  color: #fff !important;
  padding: 10px 22px !important;
  border-radius: 3px;
  font-weight: 700;
}
.nav-cta:hover { background: var(--brand-wood); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--brand-wood-dark); display: block; }

@media (max-width: 860px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--bg-white);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    box-shadow: 0 12px 20px rgba(0,0,0,.08);
    border-top: 1px solid var(--border-soft);
    z-index: 50;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 16px 24px; border-bottom: 1px solid var(--border-soft); }
  .main-nav a.active { border-color: var(--border-soft); background: var(--bg-cream); }
  .nav-cta { text-align: center; margin: 12px 24px; }
  .nav-toggle { display: flex; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  height: 480px;
  overflow: hidden;
}
.hero img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(30,25,18,.15) 0%, rgba(20,16,10,.62) 100%);
}
.hero-copy {
  position: absolute; left: 0; right: 0; bottom: 70px;
  text-align: center; color: #fff; z-index: 2;
}
.hero-copy .jp { font-size: 28px; font-weight: 700; letter-spacing: .08em; margin-bottom: 10px; text-shadow: 0 2px 10px rgba(0,0,0,.35);}
.hero-copy .en { font-size: 13px; letter-spacing: .2em; opacity: .85; }
.hero-badge {
  position: absolute; left: 26px; bottom: 26px; z-index: 3;
  background: var(--brand-wood);
  color: #fff; padding: 12px 20px; border-radius: 4px;
  font-size: 14px; font-weight: 700; box-shadow: 0 6px 18px rgba(0,0,0,.25);
}
.hero-badge small { display: block; font-weight: 400; font-size: 11.5px; margin-top: 2px; opacity: .9; }

@media (max-width: 700px) {
  .hero { height: 400px; }
  .hero-copy .jp { font-size: 21px; }
}

/* ---------- page header (inner pages) ---------- */
.page-hero {
  position: relative;
  height: 220px;
  overflow: hidden;
}
.page-hero img { width: 100%; height: 100%; object-fit: cover; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: rgba(40,32,22,.58); }
.page-hero-copy { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; z-index: 2; }
.page-hero-copy h1 { font-size: 24px; letter-spacing: .1em; margin-bottom: 6px; }
.page-hero-copy .en { font-size: 12px; letter-spacing: .22em; opacity: .82; }
.breadcrumb { background: var(--bg-cream); font-size: 12px; color: var(--text-sub); padding: 10px 24px; }
.breadcrumb a { color: var(--brand-wood-dark); }

/* ---------- section band header ---------- */
.band {
  background: var(--brand-wood-dark);
  color: #fff;
  text-align: center;
  padding: 36px 20px 32px;
}
.band h2 { font-size: 22px; letter-spacing: .12em; margin-bottom: 6px; }
.band .en { font-size: 12px; letter-spacing: .22em; opacity: .82; }

/* ---------- section generic ---------- */
section.block { padding: 60px 0; }
section.block.alt { background: var(--bg-cream); }
.section-title-inline { text-align: center; margin-bottom: 38px; }
.section-title-inline h3 { font-size: 21px; color: var(--brand-wood-dark); letter-spacing: .05em; }
.section-title-inline p { font-size: 12px; color: var(--text-sub); letter-spacing: .18em; margin-top: 4px; }
.lead-text { text-align: center; font-size: 14px; color: var(--text-sub); max-width: 680px; margin: -20px auto 40px; }

/* ---------- why-us grid (top page) ---------- */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 900px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
.why-card { text-align: center; }
.why-card .thumb { height: 150px; overflow: hidden; border-radius: 6px; }
.why-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.why-card:hover .thumb img { transform: scale(1.06); }
.why-card .name { margin-top: 14px; font-size: 14px; font-weight: 700; color: var(--text-main); }
.why-card .desc { margin-top: 6px; font-size: 12.5px; color: var(--text-sub); }

/* ---------- generic card grid (services / works teaser) ---------- */
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 900px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
.info-card { text-align: center; }
.info-card .thumb { height: 140px; overflow: hidden; border-radius: 4px; }
.info-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.info-card:hover .thumb img { transform: scale(1.06); }
.info-card .name {
  margin-top: 10px; font-size: 13px; background: var(--bg-cream);
  padding: 9px 6px; border: 1px solid var(--border-soft);
}

/* ---------- works / case studies ---------- */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .case-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .case-grid { grid-template-columns: 1fr; } }
.case-card { border: 1px solid var(--border-soft); border-radius: 6px; overflow: hidden; }
.case-card .photo { height: 190px; overflow: hidden; }
.case-card .photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.case-card:hover .photo img { transform: scale(1.05); }
.case-card .body { padding: 18px 20px; }
.case-card .tagline { font-size: 11px; color: var(--brand-wood); font-weight: 700; letter-spacing: .06em; margin-bottom: 8px; }
.case-card h4 { font-size: 15.5px; color: var(--brand-wood-dark); margin-bottom: 8px; }
.case-card .result { font-size: 12.5px; color: var(--text-sub); }

.faq-cta, .news-more { text-align: center; margin-top: 30px; }
.faq-cta a, .news-more a {
  display: inline-block; border: 1px solid var(--border-soft); padding: 10px 44px;
  font-size: 13px; color: var(--brand-wood-dark);
}
.faq-cta a:hover, .news-more a:hover { background: var(--brand-wood-dark); color: #fff; border-color: var(--brand-wood-dark); }

/* ---------- filter tabs (jisseki list) ---------- */
.filter-tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.filter-tabs span {
  font-size: 12.5px; padding: 8px 20px; border: 1px solid var(--border-soft); border-radius: 20px; color: var(--text-sub);
}
.filter-tabs span.active { background: var(--brand-wood-dark); color: #fff; border-color: var(--brand-wood-dark); }

/* ---------- services page ---------- */
.service-block {
  display: grid; grid-template-columns: 320px 1fr; gap: 32px;
  padding: 36px 0; border-bottom: 1px solid var(--border-soft); align-items: center;
}
.service-block .photo { border-radius: 6px; overflow: hidden; height: 220px; }
.service-block .photo img { width: 100%; height: 100%; object-fit: cover; }
.service-block .num { font-size: 12px; color: var(--brand-wood); font-weight: 700; letter-spacing: .14em; margin-bottom: 6px; }
.service-block h4 { font-size: 19px; color: var(--brand-wood-dark); margin-bottom: 10px; }
.service-block p.desc { font-size: 13.5px; color: var(--text-main); margin-bottom: 14px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.tag { font-size: 11px; color: #fff; padding: 4px 10px; border-radius: 12px; background: var(--brand-moss); }
@media (max-width: 760px) { .service-block { grid-template-columns: 1fr; } }

.detail-btn {
  display: inline-block; border: 1px solid var(--brand-wood-dark); color: var(--brand-wood-dark);
  font-size: 12.5px; padding: 8px 24px; border-radius: 3px;
}
.detail-btn:hover { background: var(--brand-wood-dark); color: #fff; }

.flow-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin: 30px 0; }
@media (max-width: 900px) { .flow-row { grid-template-columns: repeat(2, 1fr); } }
.flow-box { border: 1px solid var(--border-soft); border-radius: 6px; padding: 18px 14px; text-align: center; }
.flow-box .n { font-size: 11px; color: var(--brand-wood); font-weight: 700; letter-spacing: .1em; margin-bottom: 8px; }
.flow-box .t { font-size: 13.5px; font-weight: 700; margin-bottom: 6px; }
.flow-box .d { font-size: 11.5px; color: var(--text-sub); }

/* ---------- jisseki detail ---------- */
.detail-head { margin-bottom: 30px; }
.detail-head .tagline { font-size: 12px; color: var(--brand-wood); font-weight: 700; letter-spacing: .08em; margin-bottom: 8px; }
.detail-head h1 { font-size: 24px; color: var(--brand-wood-dark); margin-bottom: 14px; }
.spec-table { width: 100%; border-top: 1px solid var(--border-soft); font-size: 13.5px; margin: 0 0 34px; }
.spec-table tr { border-bottom: 1px solid var(--border-soft); }
.spec-table th { width: 150px; text-align: left; padding: 13px 10px; background: var(--bg-cream); color: var(--text-sub); font-weight: 500; vertical-align: top; }
.spec-table td { padding: 13px 10px; vertical-align: top; }
.detail-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 30px 0; }
@media (max-width: 760px) { .detail-gallery { grid-template-columns: 1fr; } }
.detail-gallery .g { height: 200px; overflow: hidden; border-radius: 6px; }
.detail-gallery .g img { width: 100%; height: 100%; object-fit: cover; }
.detail-body p { font-size: 14px; margin-bottom: 18px; }

.quote-block {
  background: var(--bg-cream); border-left: 4px solid var(--brand-wood);
  padding: 26px 28px; margin: 34px 0; border-radius: 4px;
}
.quote-block .q { font-size: 14.5px; font-style: normal; margin-bottom: 12px; }
.quote-block .who { font-size: 12.5px; color: var(--text-sub); }

/* ---------- about / company page ---------- */
.philosophy-img { border-radius: 6px; overflow: hidden; margin: 26px 0; height: 320px; }
.philosophy-img img { width: 100%; height: 100%; object-fit: cover; }
.philosophy-copy { text-align: center; }
.philosophy-copy h4 { font-size: 22px; margin-bottom: 4px; color: var(--brand-wood-dark); }
.philosophy-copy .sub { color: var(--brand-wood); font-size: 13px; letter-spacing: .06em; margin-bottom: 18px; }
.philosophy-copy p { font-size: 13.5px; color: var(--text-sub); max-width: 640px; margin: 0 auto; }

.value-circles { display: flex; justify-content: center; gap: 30px; margin: 40px 0; flex-wrap: wrap; }
.value-circles .circle {
  width: 150px; height: 150px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  flex-direction: column; text-align: center; font-weight: 700; font-size: 13.5px; color: #fff; padding: 10px;
}
.value-circles .c1 { background: var(--brand-wood); }
.value-circles .c2 { background: var(--brand-moss); }
.value-circles .c3 { background: var(--brand-wood-dark); }

.info-table { width: 100%; border-top: 1px solid var(--border-soft); font-size: 13.5px; margin: 26px 0; }
.info-table tr { border-bottom: 1px solid var(--border-soft); }
.info-table th { width: 150px; text-align: left; padding: 14px 10px; background: var(--bg-cream); color: var(--text-sub); font-weight: 500; vertical-align: top; }
.info-table td { padding: 14px 10px; vertical-align: top; }

.rep-block { display: grid; grid-template-columns: 220px 1fr; gap: 30px; align-items: center; margin: 30px 0; }
@media (max-width: 700px) { .rep-block { grid-template-columns: 1fr; } }
.rep-block .photo { height: 260px; border-radius: 6px; overflow: hidden; }
.rep-block .photo img { width: 100%; height: 100%; object-fit: cover; }
.rep-block .role { font-size: 12px; color: var(--brand-wood); font-weight: 700; margin-bottom: 8px; letter-spacing: .06em; }
.rep-block .name { font-size: 18px; font-weight: 700; color: var(--brand-wood-dark); margin-bottom: 12px; }
.rep-block p { font-size: 13.5px; color: var(--text-main); }

.portrait-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin: 30px 0; }
@media (max-width: 900px) { .portrait-grid { grid-template-columns: repeat(2, 1fr); } }
.portrait-card { text-align: center; }
.portrait-card .photo { border-radius: 6px; overflow: hidden; height: 190px; margin-bottom: 12px; }
.portrait-card .photo img { width: 100%; height: 100%; object-fit: cover; }
.portrait-card .role { font-size: 11px; color: var(--brand-wood); font-weight: 700; letter-spacing: .08em; margin-bottom: 4px; }
.portrait-card .pname { font-size: 14.5px; font-weight: 700; color: var(--brand-wood-dark); }

.history-list { margin: 26px 0; border-top: 1px solid var(--border-soft); }
.history-item { display: grid; grid-template-columns: 100px 1fr; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--border-soft); font-size: 13.5px; }
.history-item .y { color: var(--brand-wood-dark); font-weight: 700; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--brand-wood-dark); color: #fff; text-align: center; padding: 52px 20px; }
.cta-band h3 { font-size: 21px; margin-bottom: 10px; letter-spacing: .04em; }
.cta-band p { font-size: 13px; opacity: .82; margin-bottom: 24px; }
.cta-band .btn { display: inline-block; background: var(--brand-wood-light); color: #fff; font-weight: 700; padding: 14px 44px; border-radius: 3px; font-size: 14px; }
.cta-band .btn:hover { background: #fff; color: var(--brand-wood-dark); }

/* ---------- voice page ---------- */
.voice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin: 30px 0; }
@media (max-width: 900px) { .voice-grid { grid-template-columns: 1fr; } }
.voice-card { border: 1px solid var(--border-soft); border-radius: 6px; overflow: hidden; }
.voice-card .photo { height: 190px; overflow: hidden; }
.voice-card .photo img { width: 100%; height: 100%; object-fit: cover; }
.voice-card .body { padding: 18px 20px; }
.voice-card .role { font-size: 11.5px; color: var(--brand-wood); font-weight: 700; margin-bottom: 8px; letter-spacing: .04em; }
.voice-card .stars { color: var(--brand-wood-light); font-size: 13px; margin-bottom: 8px; letter-spacing: 2px; }
.voice-card p { font-size: 13px; color: var(--text-main); }

/* ---------- contact ---------- */
.tel-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 24px 0 40px; }
.tel-card { border: 1px solid var(--border-soft); padding: 18px 20px; border-radius: 6px; }
.tel-card .fname { color: var(--brand-wood-dark); font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.tel-card .num { font-size: 22px; font-weight: 700; }
.tel-card .hours { font-size: 12px; color: var(--text-sub); }
@media (max-width: 760px) { .tel-grid { grid-template-columns: 1fr; } }

.form-table { width: 100%; border-top: 1px solid var(--border-soft); }
.form-table tr { border-bottom: 1px solid var(--border-soft); }
.form-table th { width: 160px; text-align: left; padding: 16px 10px; font-size: 13.5px; vertical-align: top; }
.form-table th .req { background: var(--brand-wood); color: #fff; font-size: 10.5px; padding: 2px 8px; border-radius: 3px; margin-left: 8px; }
.form-table td { padding: 12px 10px; }
.form-table input[type=text], .form-table input[type=email], .form-table input[type=tel], .form-table textarea, .form-table select {
  width: 100%; border: 1px solid var(--border-soft); padding: 10px 12px; font-size: 13.5px; border-radius: 3px; font-family: inherit;
}
.form-table textarea { min-height: 130px; resize: vertical; }
.form-submit { text-align: center; margin-top: 26px; }
.form-submit button {
  background: var(--brand-wood-dark); color: #fff; border: none; padding: 14px 60px;
  font-size: 14px; border-radius: 3px; cursor: pointer;
}
.form-submit button:hover { background: var(--brand-wood); }

.step-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 20px 0 36px; }
.step-box { border: 1px solid var(--border-soft); padding: 16px; text-align: center; font-size: 12.5px; border-radius: 6px; }
.step-box .n { color: var(--brand-wood-dark); font-weight: 700; font-size: 11px; letter-spacing: .1em; margin-bottom: 6px; }
@media (max-width: 760px) { .step-row { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-footer { background: var(--brand-wood-dark); color: #fff; padding: 48px 0 20px; margin-top: 0; }
.footer-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 30px; }
.footer-logo { font-size: 17px; font-weight: 700; }
.footer-logo small { display: block; font-size: 10.5px; font-weight: 400; opacity: .8; letter-spacing: .12em; }
.footer-cta { display: inline-block; background: var(--brand-wood-light); color: #fff; padding: 10px 26px; font-size: 12.5px; margin-top: 14px; border-radius: 3px; font-weight: 700; }
.footer-cols { display: flex; gap: 46px; flex-wrap: wrap; }
.footer-cols h5 { font-size: 13px; margin-bottom: 12px; opacity: .85; }
.footer-cols li { font-size: 12.5px; margin-bottom: 8px; opacity: .92; }
.footer-bottom {
  display: flex; justify-content: space-between; border-top: 1px solid rgba(255,255,255,.2);
  margin-top: 34px; padding-top: 16px; font-size: 11px; opacity: .75; flex-wrap: wrap; gap: 8px;
}
@media (max-width: 760px) { .footer-top, .footer-bottom { flex-direction: column; } }
