/* ==========================================================================
   株式会社 匠建（たくみけん）  /  Global Stylesheet
   堺市のリフォーム・内装工事 — ネイビー × 木目 × オレンジ
   ========================================================================== */

:root {
  /* Colors */
  --c-navy:         #15273f;
  --c-navy-dark:    #0d1a2c;
  --c-navy-soft:    #243d5e;
  --c-accent:       #e8761e;
  --c-accent-dark:  #c95f10;
  --c-wood:         #8a6342;
  --c-wood-light:   #b08a64;
  --c-bg:           #ffffff;
  --c-bg-soft:      #f7f4ef;   /* warm paper */
  --c-bg-wood:      #f3ece2;   /* light wood tone */
  --c-text:         #26303b;
  --c-text-soft:    #4e5a66;
  --c-text-mute:    #7b8794;
  --c-border:       #e6e1d8;
  --c-success:      #2f8a4c;

  /* Shape */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  /* Shadow */
  --shadow-sm: 0 1px 3px rgba(21, 39, 63, 0.07);
  --shadow-md: 0 6px 20px rgba(21, 39, 63, 0.10);
  --shadow-lg: 0 16px 48px rgba(21, 39, 63, 0.16);

  /* Layout */
  --container: 1160px;
  --gap: 24px;
  --header-h: 78px;

  /* Type */
  --font-jp: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  --font-en: "Oswald", "Helvetica Neue", Arial, sans-serif;
}

/* Reset ------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-jp);
  font-size: 16px;
  line-height: 1.85;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s; }
a:hover { color: var(--c-accent); }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.45; margin: 0; letter-spacing: .02em; }
p { margin: 0 0 1em; }
table { border-collapse: collapse; }

/* Layout helpers ---------------------------------------------------------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.section-dark { background: var(--c-navy); color: #fff; }
.section-soft { background: var(--c-bg-soft); }
.section-wood {
  background:
    linear-gradient(rgba(243, 236, 226, .92), rgba(243, 236, 226, .92)),
    repeating-linear-gradient(90deg, #e9ddcb 0 3px, #f3ece2 3px 9px);
}
.text-center { text-align: center; }
.mt-24 { margin-top: 24px; }
.mt-48 { margin-top: 48px; }

.section-head { text-align: center; margin-bottom: 56px; }
.section-head .en {
  display: inline-block;
  font-family: var(--font-en);
  font-size: 14px;
  letter-spacing: .35em;
  color: var(--c-accent);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-head h2 {
  font-size: clamp(24px, 3.2vw, 34px);
  color: var(--c-navy);
}
.section-dark .section-head h2 { color: #fff; }
.section-head h2::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  margin: 18px auto 0;
  background: linear-gradient(90deg, var(--c-accent), var(--c-wood-light));
  border-radius: 2px;
}
.section-head p {
  margin-top: 18px;
  color: var(--c-text-soft);
  max-width: 660px;
  margin-left: auto;
  margin-right: auto;
}
.section-dark .section-head p { color: rgba(255,255,255,.8); }

/* Buttons ----------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 30px;
  font-weight: 700;
  font-size: 15px;
  border-radius: var(--radius-md);
  transition: transform .15s, box-shadow .2s, background .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--c-accent);
  color: #fff;
  box-shadow: 0 6px 18px rgba(232, 118, 30, .35);
}
.btn-primary:hover { background: var(--c-accent-dark); color: #fff; }
.btn-secondary {
  background: #fff;
  color: var(--c-navy);
  border: 2px solid #fff;
}
.btn-secondary:hover { background: transparent; color: #fff; }
.btn-outline {
  background: transparent;
  color: var(--c-navy);
  border: 2px solid var(--c-navy);
}
.btn-outline:hover { background: var(--c-navy); color: #fff; }
.btn-lg { padding: 18px 44px; font-size: 16px; }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(4px); }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* Header ------------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--c-border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--c-navy); }
.brand:hover { color: var(--c-navy); }
.brand-mark {
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--c-navy);
  color: #fff;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}
.brand-mark svg { width: 26px; height: 26px; }
.brand-text { line-height: 1.25; }
.brand-text .name { display: block; font-weight: 700; font-size: 19px; color: var(--c-navy); letter-spacing: .06em; }
.brand-text .sub  { display: block; font-family: var(--font-en); font-size: 10px; color: var(--c-text-mute); letter-spacing: .28em; text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--c-text);
  border-radius: var(--radius-sm);
}
.nav a:hover, .nav a.active { color: var(--c-accent); background: rgba(232, 118, 30, .08); }
.nav .btn { margin-left: 10px; padding: 11px 22px; font-size: 14px; }
.nav a.btn-primary, .nav a.btn-primary.active { background: var(--c-accent); color: #fff; }
.nav a.btn-primary:hover { background: var(--c-accent-dark); color: #fff; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid var(--c-border);
  border-radius: 10px;
  background: #fff;
}
.nav-toggle::after {
  content: "メニュー";
  font-size: 12px;
  font-weight: 700;
  color: var(--c-navy);
  letter-spacing: .05em;
  line-height: 1;
  white-space: nowrap;
}
.nav-toggle.is-open::after { content: "閉じる"; }
.nav-toggle span {
  position: relative;
  display: block;
  width: 22px; height: 2px;
  margin: 7px 0;
  background: var(--c-navy);
  transition: .2s;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute; left: 0;
  width: 22px; height: 2px;
  background: var(--c-navy);
  transition: .2s;
}
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after  { top:  7px; }
.nav-toggle.is-open span { background: transparent; }
.nav-toggle.is-open span::before { top: 0; transform: rotate(45deg); }
.nav-toggle.is-open span::after  { top: 0; transform: rotate(-45deg); }

/* Hero (top page) ---------------------------------------------------------- */
.hero {
  position: relative;
  min-height: min(720px, 86vh);
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero .hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero .hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  background:
    linear-gradient(100deg, rgba(13, 26, 44, .88) 0%, rgba(21, 39, 63, .65) 48%, rgba(21, 39, 63, .25) 100%);
}
.hero-inner { width: 100%; padding: 110px 0 130px; }
.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 18px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .18em;
  color: #ffd9b8;
  background: rgba(232, 118, 30, .22);
  border: 1px solid rgba(232, 118, 30, .55);
  border-radius: 999px;
  margin-bottom: 26px;
}
.hero .eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--c-accent);
}
.hero h1 {
  font-size: clamp(32px, 4.8vw, 58px);
  line-height: 1.35;
  margin-bottom: 24px;
  letter-spacing: .04em;
  text-shadow: 0 2px 24px rgba(13, 26, 44, .5);
}
.hero h1 em {
  font-style: normal;
  color: #ffb277;
  background: linear-gradient(transparent 64%, rgba(232,118,30,.4) 64%);
  padding: 0 4px;
}
.hero p {
  font-size: 17px;
  color: rgba(255,255,255,.9);
  max-width: 560px;
  margin-bottom: 38px;
  text-shadow: 0 1px 12px rgba(13, 26, 44, .55);
}
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-badges {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: rgba(13, 26, 44, .82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255,255,255,.12);
}
.hero-badges .container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.hero-badges .badge-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 20px 12px;
  border-right: 1px solid rgba(255,255,255,.12);
}
.hero-badges .badge-item:last-child { border-right: 0; }
.hero-badges .num {
  font-family: var(--font-en);
  font-size: clamp(26px, 2.6vw, 36px);
  font-weight: 600;
  color: #ffb277;
  line-height: 1;
}
.hero-badges .num small { font-size: .5em; margin-left: 2px; font-weight: 500; }
.hero-badges .label {
  font-size: 12px;
  color: rgba(255,255,255,.78);
  letter-spacing: .08em;
  line-height: 1.5;
}

/* Page hero (inner pages) ------------------------------------------------- */
.page-hero {
  position: relative;
  background: linear-gradient(115deg, var(--c-navy-dark) 0%, var(--c-navy-soft) 100%);
  color: #fff;
  padding: 78px 0 68px;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 82% 25%, rgba(232,118,30,.22) 0, transparent 48%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.025) 0 2px, transparent 2px 80px);
  pointer-events: none;
}
.page-hero .container { position: relative; }
.page-hero .en {
  display: block;
  font-family: var(--font-en);
  font-size: 13px;
  letter-spacing: .4em;
  color: #ffb277;
  margin-bottom: 10px;
  font-weight: 500;
  text-transform: uppercase;
}
.page-hero h1 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 14px; }
.page-hero p { color: rgba(255,255,255,.82); max-width: 620px; margin: 0; }

.breadcrumb {
  display: flex;
  gap: 8px;
  font-size: 13px;
  padding: 13px 0;
  color: var(--c-text-mute);
  background: var(--c-bg-soft);
  border-bottom: 1px solid var(--c-border);
}
.breadcrumb a:hover { color: var(--c-accent); }
.breadcrumb .sep { color: #cfc8bb; }

/* Feature cards ------------------------------------------------------------ */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
.cards.cards-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: #fff;
  padding: 36px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--c-border);
  border-top: 3px solid transparent;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-top-color: var(--c-accent);
}
.card .icon {
  width: 58px; height: 58px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(232,118,30,.14), rgba(176,138,100,.16));
  color: var(--c-accent);
  margin-bottom: 20px;
}
.card .icon svg { width: 28px; height: 28px; }
.card h3 { font-size: 18px; color: var(--c-navy); margin-bottom: 12px; }
.card p { font-size: 14px; color: var(--c-text-soft); margin: 0; line-height: 1.85; }
.card .card-num {
  font-family: var(--font-en);
  font-size: 13px;
  letter-spacing: .25em;
  color: var(--c-wood-light);
  font-weight: 600;
  display: block;
  margin-bottom: 8px;
}

/* Works (施工事例) ---------------------------------------------------------- */
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
.work-card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
}
.work-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.work-card .thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.work-card .thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}
.work-card:hover .thumb img { transform: scale(1.06); }
.work-card .cat {
  position: absolute;
  top: 14px; left: 14px;
  padding: 5px 14px;
  background: var(--c-navy);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  letter-spacing: .06em;
}
.work-card .cat.orange { background: var(--c-accent); }
.work-card .body { padding: 22px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.work-card h3 { font-size: 16px; color: var(--c-navy); margin-bottom: 10px; line-height: 1.6; }
.work-card .meta {
  margin-top: auto;
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--c-text-mute);
  padding-top: 12px;
  border-top: 1px dashed var(--c-border);
}
.work-card .meta strong { color: var(--c-accent-dark); font-family: var(--font-en); font-size: 15px; font-weight: 600; }

/* Before / After (works page) ---------------------------------------------- */
.case {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 48px;
}
.case-head {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 24px 32px;
  border-bottom: 1px solid var(--c-border);
  background: linear-gradient(90deg, var(--c-bg-soft), #fff);
}
.case-head .case-no {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .2em;
  color: var(--c-wood);
  text-transform: uppercase;
}
.case-head h3 { font-size: 20px; color: var(--c-navy); flex: 1 1 280px; }
.case-head .cat-tag {
  padding: 5px 16px;
  background: var(--c-navy);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  letter-spacing: .08em;
}
.ba-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  position: relative;
}
.ba-item { position: relative; aspect-ratio: 16 / 11; overflow: hidden; }
.ba-item img { width: 100%; height: 100%; object-fit: cover; }
.ba-item .ba-label {
  position: absolute;
  top: 14px; left: 14px;
  padding: 6px 18px;
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  border-radius: 4px;
  color: #fff;
}
.ba-item.before .ba-label { background: rgba(38, 48, 59, .85); }
.ba-item.after  .ba-label { background: var(--c-accent); box-shadow: 0 4px 12px rgba(232,118,30,.4); }
.ba-item.before img { filter: saturate(.55) brightness(.92) contrast(.95); }
.ba-arrow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 54px; height: 54px;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--c-accent);
  border-radius: 50%;
  box-shadow: var(--shadow-lg);
  z-index: 2;
}
.ba-arrow svg { width: 24px; height: 24px; }
.case-body { padding: 28px 32px 32px; }
.case-body p { font-size: 15px; color: var(--c-text-soft); margin-bottom: 20px; }
.case-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.case-specs .spec {
  background: var(--c-bg-soft);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  border-left: 3px solid var(--c-accent);
}
.case-specs .spec .k { display: block; font-size: 12px; color: var(--c-text-mute); letter-spacing: .08em; }
.case-specs .spec .v {
  display: block;
  font-size: 17px;
  font-weight: 700;
  color: var(--c-navy);
  margin-top: 2px;
}
.case-specs .spec .v em { font-style: normal; color: var(--c-accent-dark); }

/* Service price tables ------------------------------------------------------ */
.service-block { margin-bottom: 72px; }
.service-block:last-child { margin-bottom: 0; }
.service-intro {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 36px;
  align-items: center;
  margin-bottom: 32px;
}
.service-intro .photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3;
}
.service-intro .photo img { width: 100%; height: 100%; object-fit: cover; }
.service-intro h3 {
  font-size: 24px;
  color: var(--c-navy);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.service-intro h3 .icon {
  width: 48px; height: 48px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(232,118,30,.14), rgba(176,138,100,.16));
  color: var(--c-accent);
  flex-shrink: 0;
}
.service-intro h3 .icon svg { width: 24px; height: 24px; }
.service-intro p { font-size: 15px; color: var(--c-text-soft); margin: 0; }

.price-table {
  width: 100%;
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--c-border);
}
.price-table th, .price-table td {
  padding: 16px 22px;
  text-align: left;
  font-size: 15px;
  border-bottom: 1px solid var(--c-border);
  vertical-align: middle;
}
.price-table thead th {
  background: var(--c-navy);
  color: #fff;
  font-size: 13px;
  letter-spacing: .1em;
  font-weight: 600;
  border-bottom: 0;
}
.price-table tbody tr:last-child td { border-bottom: 0; }
.price-table tbody tr:nth-child(even) { background: var(--c-bg-soft); }
.price-table .price {
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 17px;
  color: var(--c-accent-dark);
  white-space: nowrap;
}
.price-table .price small { font-size: 12px; color: var(--c-text-mute); font-family: var(--font-jp); font-weight: 500; }
.price-table .duration { white-space: nowrap; color: var(--c-text-soft); font-size: 14px; }
.price-note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--c-text-mute);
}

/* Reason rows (選ばれる理由) ------------------------------------------------- */
.reasons { display: grid; gap: 56px; }
.reason {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.reason:nth-child(even) .photo { order: 2; }
.reason .photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3;
  position: relative;
}
.reason .photo img { width: 100%; height: 100%; object-fit: cover; }
.reason .photo::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: calc(var(--radius-lg) - 8px);
  pointer-events: none;
}
.reason .num {
  font-family: var(--font-en);
  font-size: 48px;
  font-weight: 600;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--c-wood-light);
  line-height: 1;
  display: block;
  margin-bottom: 12px;
}
.reason h3 { font-size: 24px; color: var(--c-navy); margin-bottom: 16px; }
.reason h3 em {
  font-style: normal;
  color: var(--c-accent);
}
.reason p { font-size: 15px; color: var(--c-text-soft); margin: 0; }

/* Flow steps ---------------------------------------------------------------- */
.flow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  position: relative;
  counter-reset: flow;
}
.flow::before {
  content: "";
  position: absolute;
  top: 30px;
  left: 9%;
  right: 9%;
  height: 3px;
  background: repeating-linear-gradient(90deg, rgba(232,118,30,.45) 0 10px, transparent 10px 18px);
}
.flow-step {
  position: relative;
  text-align: center;
  padding: 0 8px;
  counter-increment: flow;
}
.flow-step .num {
  width: 60px; height: 60px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: var(--c-accent);
  border: 3px solid var(--c-accent);
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 20px;
  box-shadow: 0 4px 14px rgba(232, 118, 30, .2);
  position: relative;
  z-index: 1;
}
.flow-step .num::before { content: counter(flow, decimal-leading-zero); }
.flow-step.final .num { background: var(--c-accent); color: #fff; }
.flow-step h4 { color: var(--c-navy); font-size: 15px; margin-bottom: 8px; line-height: 1.5; }
.flow-step p { font-size: 13px; color: var(--c-text-soft); margin: 0; line-height: 1.7; }

/* Greeting (代表挨拶) -------------------------------------------------------- */
.greeting {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 56px;
  align-items: start;
  max-width: 1020px;
  margin: 0 auto;
}
.greeting .portrait {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 3 / 4;
}
.greeting .portrait img { width: 100%; height: 100%; object-fit: cover; }
.greeting .portrait .caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 18px 20px 14px;
  background: linear-gradient(transparent, rgba(13,26,44,.85));
  color: #fff;
}
.greeting .portrait .caption .role { display: block; font-size: 11px; letter-spacing: .2em; color: #ffb277; }
.greeting .portrait .caption .name { display: block; font-size: 19px; font-weight: 700; }
.greeting .message h3 {
  font-size: 24px;
  color: var(--c-navy);
  margin-bottom: 24px;
  line-height: 1.6;
}
.greeting .message h3 em { font-style: normal; color: var(--c-accent); }
.greeting .message p { font-size: 15px; color: var(--c-text-soft); line-height: 2.1; }
.greeting .sign {
  margin-top: 28px;
  text-align: right;
  font-size: 14px;
  color: var(--c-text);
}
.greeting .sign strong { font-size: 19px; margin-left: 12px; letter-spacing: .15em; }

/* Info table (会社概要) ------------------------------------------------------ */
.info-table {
  width: 100%;
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--c-border);
}
.info-table th, .info-table td {
  padding: 18px 26px;
  text-align: left;
  font-size: 15px;
  border-bottom: 1px solid var(--c-border);
  vertical-align: top;
  line-height: 1.8;
}
.info-table tr:last-child th,
.info-table tr:last-child td { border-bottom: 0; }
.info-table th {
  width: 210px;
  background: var(--c-bg-soft);
  color: var(--c-navy);
  font-weight: 600;
}

/* Area pills ----------------------------------------------------------------- */
.area-banner {
  background: var(--c-navy);
  color: #fff;
  padding: 48px;
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 40px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.area-banner::before {
  content: "";
  position: absolute;
  right: -60px; top: -60px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: rgba(232,118,30,.12);
}
.area-banner h3 { font-size: 24px; margin-bottom: 10px; }
.area-banner p { color: rgba(255,255,255,.78); font-size: 14px; margin: 0; }
.area-banner .areas { display: flex; flex-wrap: wrap; gap: 10px; position: relative; }
.area-banner .pill {
  padding: 8px 18px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
}

/* Service nav cards (index 対応工事一覧) -------------------------------------- */
.service-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.service-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  transition: .2s;
  font-weight: 600;
  font-size: 15px;
  color: var(--c-navy);
}
.service-item:hover {
  border-color: var(--c-accent);
  color: var(--c-accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}
.service-item .icon {
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(232,118,30,.13), rgba(176,138,100,.15));
  color: var(--c-accent);
  flex-shrink: 0;
}
.service-item .icon svg { width: 22px; height: 22px; }

/* CTA band -------------------------------------------------------------------- */
.cta-band {
  position: relative;
  background: linear-gradient(115deg, var(--c-navy-dark), var(--c-navy-soft));
  color: #fff;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 88% 18%, rgba(232,118,30,.3) 0, transparent 42%),
    radial-gradient(circle at 8% 90%, rgba(176,138,100,.18) 0, transparent 46%);
  pointer-events: none;
}
.cta-band .container { position: relative; }
.cta-band h2 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 18px; }
.cta-band .lead {
  color: rgba(255,255,255,.82);
  max-width: 600px;
  margin: 0 auto 36px;
}
.cta-band .cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.cta-band .tel {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-en);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: .04em;
  color: #fff;
  padding: 12px 28px;
  border: 2px solid rgba(255,255,255,.3);
  border-radius: var(--radius-md);
}
.cta-band .tel:hover { border-color: var(--c-accent); color: #ffb277; }
.cta-band .tel svg { width: 24px; height: 24px; color: var(--c-accent); }
.cta-band .tel .hours { font-family: var(--font-jp); font-size: 12px; font-weight: 500; color: rgba(255,255,255,.7); letter-spacing: .05em; }

/* Form ------------------------------------------------------------------------ */
.form { display: grid; gap: 24px; max-width: 760px; margin: 0 auto; }
.form .row { display: grid; gap: 8px; }
.form label {
  font-weight: 600;
  font-size: 14px;
  color: var(--c-navy);
  display: flex;
  align-items: center;
  gap: 10px;
}
.form label .req {
  padding: 2px 9px;
  font-size: 11px;
  background: var(--c-accent);
  color: #fff;
  border-radius: 4px;
  letter-spacing: .05em;
}
.form label .opt {
  padding: 2px 9px;
  font-size: 11px;
  background: var(--c-border);
  color: var(--c-text-mute);
  border-radius: 4px;
}
.form input,
.form select,
.form textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: inherit;
  font-size: 15px;
  color: var(--c-text);
  background: #fff;
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius-sm);
  transition: border-color .15s, box-shadow .15s;
}
.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px rgba(232,118,30,.16);
}
.form textarea { min-height: 180px; resize: vertical; }
.form .row-inline { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form .check-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.form .check-group .chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: #fff;
  border: 1.5px solid var(--c-border);
  border-radius: 999px;
  font-size: 14px;
  cursor: pointer;
  transition: .15s;
  user-select: none;
}
.form .check-group .chip:has(input:checked) {
  border-color: var(--c-accent);
  background: rgba(232,118,30,.08);
  color: var(--c-accent-dark);
  font-weight: 600;
}
.form .check-group .chip input { width: auto; margin: 0; accent-color: var(--c-accent); }
.form .agree {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px;
  background: var(--c-bg-soft);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.form .agree input { width: auto; margin: 5px 0 0; accent-color: var(--c-accent); }
.form .agree span { font-size: 14px; color: var(--c-text-soft); }
.form-submit { text-align: center; margin-top: 12px; }
#form-status { margin-top: 16px; font-size: 14px; font-weight: 600; min-height: 1.5em; }

.privacy-box {
  background: var(--c-bg-soft);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: 28px 32px;
  font-size: 13px;
  color: var(--c-text-soft);
  line-height: 1.9;
  margin: 48px auto 0;
  max-width: 760px;
}
.privacy-box h3 { color: var(--c-navy); font-size: 16px; margin-bottom: 12px; }
.privacy-box ul { padding-left: 20px; margin: 0; }
.privacy-box li { margin-bottom: 6px; }

/* Contact direct boxes ---------------------------------------------------------- */
.contact-direct {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
  max-width: 860px;
  margin: 0 auto 64px;
}
.contact-box {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 36px;
  text-align: center;
}
.contact-box .icon {
  width: 56px; height: 56px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(232,118,30,.14), rgba(176,138,100,.16));
  color: var(--c-accent);
}
.contact-box .icon svg { width: 26px; height: 26px; }
.contact-box .label { font-size: 13px; color: var(--c-text-mute); letter-spacing: .1em; }
.contact-box .value {
  font-family: var(--font-en);
  font-size: 30px;
  font-weight: 600;
  color: var(--c-navy);
  margin: 8px 0;
  letter-spacing: .03em;
}
.contact-box .value a { color: var(--c-navy); }
.contact-box .value a:hover { color: var(--c-accent); }
.contact-box .note { font-size: 13px; color: var(--c-text-mute); }

/* FAQ ----------------------------------------------------------------------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  transition: .2s;
}
.faq details[open] { border-color: var(--c-accent); box-shadow: var(--shadow-sm); }
.faq summary {
  padding: 20px 24px;
  font-weight: 600;
  color: var(--c-navy);
  cursor: pointer;
  list-style: none;
  display: flex;
  gap: 14px;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: "Q";
  width: 32px; height: 32px;
  display: grid; place-items: center;
  background: var(--c-accent);
  color: #fff;
  border-radius: 50%;
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 14px;
  flex-shrink: 0;
}
.faq summary::after {
  content: "+";
  margin-left: auto;
  font-size: 22px;
  color: var(--c-text-mute);
  transition: .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 24px 24px 70px; color: var(--c-text-soft); line-height: 1.9; }

/* Footer ----------------------------------------------------------------------- */
.site-footer {
  background: var(--c-navy-dark);
  color: rgba(255,255,255,.75);
  padding: 72px 0 28px;
  font-size: 14px;
  position: relative;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--c-accent), var(--c-wood-light), var(--c-accent));
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer-grid h4 {
  color: #fff;
  font-size: 13px;
  letter-spacing: .22em;
  margin-bottom: 20px;
  font-weight: 600;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a:hover { color: #ffb277; }
.footer-brand .brand-mark { background: var(--c-accent); }
.footer-brand .brand-text .name { color: #fff; }
.footer-brand .brand-text .sub { color: rgba(255,255,255,.5); }
.footer-brand p {
  margin-top: 20px;
  color: rgba(255,255,255,.62);
  font-size: 13px;
  line-height: 1.9;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 28px;
  font-size: 12px;
  color: rgba(255,255,255,.5);
}
.demo-note {
  display: inline-block;
  padding: 3px 12px;
  border: 1px dashed rgba(255,255,255,.3);
  border-radius: 999px;
  font-size: 11px;
  color: rgba(255,255,255,.55);
  letter-spacing: .05em;
}

/* Animations -------------------------------------------------------------------- */
.fade-up {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .65s ease, transform .65s ease;
}
.fade-up.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .fade-up { opacity: 1; transform: none; transition: none; }
}

/* Responsive ---------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .service-list { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 960px) {
  .section { padding: 72px 0; }
  .cards, .cards.cards-4, .works-grid { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: 1fr; gap: 28px; max-width: 520px; margin: 0 auto; }
  .flow::before { display: none; }
  .flow-step {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 18px;
    text-align: left;
    align-items: start;
    padding: 0;
  }
  .flow-step .num { margin: 0; }
  .flow-step:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 29px;
    top: 68px;
    bottom: -28px;
    width: 2px;
    background: repeating-linear-gradient(180deg, rgba(232,118,30,.45) 0 6px, transparent 6px 12px);
  }
  .reason, .reason:nth-child(even) { grid-template-columns: 1fr; gap: 26px; }
  .reason:nth-child(even) .photo { order: 0; }
  .greeting { grid-template-columns: 1fr; gap: 32px; max-width: 560px; }
  .greeting .portrait { aspect-ratio: 4 / 3; }
  .service-intro { grid-template-columns: 1fr; gap: 24px; }
  .service-intro .photo { max-width: 560px; }
  .area-banner { grid-template-columns: 1fr; padding: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .contact-direct { grid-template-columns: 1fr; max-width: 520px; }
  .case-specs { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  :root { --header-h: 64px; }
  .section { padding: 56px 0; }
  .section-head { margin-bottom: 40px; }
  .container { padding: 0 20px; }
  .brand-text .name { font-size: 16px; }

  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed;
    top: var(--header-h);
    right: 0;
    width: min(320px, 85vw);
    height: calc(100vh - var(--header-h));
    height: calc(100dvh - var(--header-h));
    display: block;
    padding: 20px;
    background: #fff;
    box-shadow: -12px 0 40px rgba(21,39,63,.2);
    transform: translateX(100%);
    transition: transform .25s;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 99;
  }
  .nav.is-open { transform: translateX(0); }
  .nav a {
    display: block;
    padding: 18px 8px;
    font-size: 16px;
    font-weight: 600;
    color: var(--c-navy);
    border-bottom: 1px solid var(--c-border);
    border-radius: 0;
    position: relative;
  }
  .nav a::after {
    content: "›";
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--c-text-mute);
    font-size: 22px;
    font-weight: 400;
  }
  .nav a:hover, .nav a.active { color: var(--c-accent); background: rgba(232,118,30,.06); }
  .nav .btn {
    display: block;
    width: 100%;
    margin: 24px 0 0;
    padding: 16px;
    text-align: center;
    border: 0;
    color: #fff;
  }
  .nav .btn::after { display: none; }

  .hero { min-height: auto; }
  .hero-inner { padding: 80px 0 200px; }
  .hero-badges .container { grid-template-columns: 1fr; }
  .hero-badges .badge-item {
    justify-content: flex-start;
    padding: 12px 4px;
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,.1);
  }
  .hero-badges .badge-item:last-child { border-bottom: 0; }

  .cards, .cards.cards-4, .works-grid, .service-list { grid-template-columns: 1fr; }
  .ba-pair { grid-template-columns: 1fr; }
  .ba-arrow { transform: translate(-50%, -50%) rotate(90deg); }
  .case-head { padding: 20px 22px; }
  .case-body { padding: 22px 22px 26px; }
  .case-specs { grid-template-columns: 1fr; }
  .info-table th { width: 118px; font-size: 13px; }
  .info-table th, .info-table td { padding: 14px 16px; font-size: 14px; }
  .price-table th, .price-table td { padding: 12px 14px; font-size: 13px; }
  .price-table .price { font-size: 15px; }
  .form .row-inline { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .cta-band .tel { font-size: 24px; padding: 10px 20px; }
}
