/* テンプレート：koumuten-a
   色（--main）と書体（--font）は site.yaml の theme から <html> に入る */

:root {
  --bg: #faf8f4;
  --surface: #ffffff;
  --ink: #1f2328;
  --ink-soft: #5a6068;
  --line: #e4e0d8;
  --tint: color-mix(in srgb, var(--main) 7%, var(--bg));
  --main-dark: color-mix(in srgb, var(--main) 80%, black);
  --radius: 10px;
  --callbar-h: 64px;
}

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

html {
  scroll-padding-top: 76px; /* 固定ヘッダーの下に見出しが出るように */
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: 0.02em;
  padding-bottom: var(--callbar-h);
}

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

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

h1,
h2,
h3 {
  line-height: 1.4;
  margin: 0;
}

p {
  margin: 0;
}

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

.container--narrow {
  max-width: 760px;
}

.pending {
  color: var(--ink-soft);
  opacity: 0.7;
  font-size: 0.9em;
}

/* デモ用の帯 */
.demo-banner {
  background: #fff4c2;
  color: #5c4a00;
  font-size: 13px;
  text-align: center;
  padding: 8px 16px;
  line-height: 1.6;
}

.demo-banner__date {
  white-space: nowrap;
}

/* ヘッダー */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  gap: 16px;
}

.site-header__name {
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
  text-decoration: none;
}

.site-header__tel {
  display: none;
  text-decoration: none;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.2;
  text-align: right;
}

.site-header__tel span {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--ink-soft);
}

/* PC のページ内メニュー */
.site-nav {
  display: none;
}

@media (min-width: 1000px) {
  .site-nav {
    display: flex;
    gap: 20px;
    margin-left: auto;
    margin-right: 12px;
  }

  .site-nav a {
    color: var(--ink);
    font-size: 14px;
    text-decoration: none;
    white-space: nowrap;
  }

  .site-nav a:hover {
    color: var(--main);
  }
}

/* ボタン */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border: 2px solid var(--main);
  transition: background 0.2s, color 0.2s;
}

.btn--primary {
  background: var(--main);
  color: #fff;
}

.btn--primary:hover {
  background: var(--main-dark);
  border-color: var(--main-dark);
}

.btn--ghost {
  background: transparent;
  color: var(--main);
}

.btn--ghost:hover {
  background: var(--tint);
}

/* ヒーロー */
.hero {
  padding: 32px 0 48px;
}

.hero__inner {
  display: grid;
  gap: 28px;
}

.hero__kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--main);
  border-left: 3px solid var(--main);
  padding-left: 10px;
  margin-bottom: 16px;
  line-height: 1.5;
}

.hero__catch {
  font-size: clamp(28px, 7vw, 44px);
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 20px;
  word-break: auto-phrase; /* 対応ブラウザでは、文節の切れ目で改行する */
}

.hero__intro {
  color: var(--ink-soft);
  margin-bottom: 28px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__media .photo {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
}

/* 写真（未設定のときの枠） */
.photo {
  width: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.photo--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    repeating-linear-gradient(-45deg, transparent 0 12px, rgba(0, 0, 0, 0.025) 12px 24px),
    color-mix(in srgb, var(--main) 12%, #ece8e0);
  color: var(--ink-soft);
  font-size: 13px;
  text-align: center;
  padding: 16px;
}

/* セクション共通 */
.section {
  padding: 64px 0;
}

.section--tint {
  background: var(--tint);
}

.section__head {
  margin-bottom: 36px;
}

.section__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--main);
  margin-bottom: 6px;
}

.section__title {
  font-size: clamp(24px, 5vw, 32px);
  font-weight: 700;
}

.empty {
  color: var(--ink-soft);
}

/* 選ばれる理由 */
.features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.feature__num {
  display: block;
  font-size: 28px;
  font-weight: 700;
  color: var(--main);
  line-height: 1;
  margin-bottom: 12px;
  font-family: Georgia, 'Times New Roman', serif;
}

.feature__title {
  font-size: 18px;
  margin-bottom: 8px;
}

.feature__body {
  color: var(--ink-soft);
  font-size: 15px;
}

/* 施工事例 */
.works {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 20px;
}

.work {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}

.work__text {
  padding: 16px 20px 20px;
}

.work__title {
  font-size: 17px;
}

.work__meta {
  font-size: 13px;
  color: var(--main);
  font-weight: 700;
  margin-top: 4px;
}

.work__note {
  font-size: 14px;
  color: var(--ink-soft);
  margin-top: 8px;
}

/* 対応している工事 */
.services {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.service {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--main);
  border-radius: 6px;
  padding: 12px 14px;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.5;
}

.services__note {
  margin-top: 20px;
  font-size: 14px;
  color: var(--ink-soft);
}

/* 会社概要 */
.company {
  margin: 0;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
}

.company__row {
  display: grid;
  grid-template-columns: 7.5em 1fr;
  border-bottom: 1px solid var(--line);
}

.company__row:last-child {
  border-bottom: 0;
}

.company dt,
.company dd {
  margin: 0;
  padding: 14px 16px;
  font-size: 15px;
}

.company dt {
  font-weight: 700;
  background: color-mix(in srgb, var(--main) 5%, #fff);
}

/* 採用情報 */
.recruit {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

/* アクセス */
.access {
  display: grid;
  gap: 24px;
}

.map {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 0;
  border-radius: var(--radius);
}

.map--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--main) 8%, #ece8e0);
  color: var(--ink-soft);
  font-size: 13px;
}

.access__text {
  display: grid;
  gap: 10px;
  align-content: start;
}

.access__name {
  font-weight: 700;
  font-size: 18px;
}

.access__text .btn {
  justify-self: start;
  margin-top: 8px;
}

/* フッター */
.site-footer {
  background: #23272b;
  color: #d8dadc;
  padding: 40px 0;
  font-size: 14px;
}

.site-footer a {
  color: #fff;
}

.site-footer__name {
  font-weight: 700;
  font-size: 17px;
  color: #fff;
  margin-bottom: 8px;
}

.site-footer__copy {
  margin-top: 20px;
  font-size: 12px;
  color: #9aa0a6;
}

/* スマホ下部の固定ボタン */
.callbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  display: flex;
  gap: 8px;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.97);
  border-top: 1px solid var(--line);
}

.callbar__btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 999px;
  border: 2px solid var(--main);
  color: var(--main);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
}

.callbar__btn--primary {
  flex: 1.4;
  background: var(--main);
  color: #fff;
}

/* タブレット・PC */
@media (min-width: 768px) {
  body {
    padding-bottom: 0;
  }

  .callbar {
    display: none;
  }

  .site-header__tel {
    display: block;
  }

  .hero {
    padding: 64px 0 80px;
  }

  .hero__inner {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 48px;
  }

  .section {
    padding: 96px 0;
  }

  .features {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .works {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  .services {
    grid-template-columns: repeat(3, 1fr);
  }

  .access {
    grid-template-columns: 3fr 2fr;
    align-items: start;
  }

  .map {
    aspect-ratio: 16 / 10;
  }

  .company__row {
    grid-template-columns: 10em 1fr;
  }
}
