/* 制作例（架空の会社）の共通デザイン。色は各ページの body の class（theme-kensetsu など）で切り替える */

:root {
  --c-main: #1f4d3a;
  --c-main-dark: #143428;
  --c-accent: #d98c1f;
  --c-bg: #f6f5f1;
  --c-text: #1d2320;
  --c-muted: #5b6460;
  --c-line: #e2e0d8;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.theme-denki {
  --c-main: #13294b;
  --c-main-dark: #0b1a33;
  --c-accent: #f2b705;
  --c-bg: #f4f6fa;
  --c-line: #dfe4ee;
}

.theme-bosai {
  --c-main: #2b2f36;
  --c-main-dark: #1b1e23;
  --c-accent: #d62f2f;
  --c-bg: #f7f5f5;
  --c-line: #e6e1e1;
}

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

body {
  margin: 0;
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", Meiryo, sans-serif;
  color: var(--c-text);
  background: #fff;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { word-break: auto-phrase; text-wrap: balance; line-height: 1.45; }
p { text-wrap: pretty; }

.wrap { width: min(1120px, 100% - 40px); margin: 0 auto; }

/* 制作例であることを示す帯 */
.demo-bar {
  background: #111;
  color: #fff;
  font-size: 0.8rem;
  text-align: center;
  padding: 8px 16px;
}
.demo-bar a { color: #ffd46b; font-weight: 700; margin-left: 8px; }

/* ヘッダー */
.d-header {
  background: #fff;
  border-bottom: 1px solid var(--c-line);
  position: sticky;
  top: 0;
  z-index: 10;
}
.d-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.d-logo { font-weight: 800; font-size: 1.2rem; color: var(--c-main); text-decoration: none; letter-spacing: 0.04em; }
.d-logo small { display: block; font-size: 0.62rem; color: var(--c-muted); font-weight: 600; letter-spacing: 0.12em; }
.d-nav { display: flex; gap: 22px; font-size: 0.9rem; font-weight: 600; }
.d-nav a { text-decoration: none; color: var(--c-text); }
.d-nav a:hover { color: var(--c-main); }
.d-tel {
  background: var(--c-accent);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.95rem;
  white-space: nowrap;
}
.theme-denki .d-tel { color: #13294b; }

/* ファーストビュー（写真が届くまではグラデーションで表示） */
.d-hero {
  position: relative;
  color: #fff;
  background: linear-gradient(120deg, var(--c-main-dark), var(--c-main));
  background-size: cover;
  background-position: center;
}
.d-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.25));
}
.d-hero .wrap { position: relative; padding: 110px 0 120px; }
.d-hero__tag {
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  padding: 4px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 20px;
}
.d-hero h1 { font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3.1rem); font-weight: 900; max-width: 14em; }
.d-hero p { margin-top: 20px; max-width: 34em; font-size: 1.02rem; color: rgba(255, 255, 255, 0.9); }
.d-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.d-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 28px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  border: 2px solid transparent;
}
.d-btn--accent { background: var(--c-accent); color: #fff; }
.theme-denki .d-btn--accent { color: #13294b; }
.d-btn--ghost { border-color: rgba(255, 255, 255, 0.8); color: #fff; }
.d-btn--main { background: var(--c-main); color: #fff; }

/* 数字で見る */
.d-stats { background: var(--c-main); color: #fff; }
.d-stats ul { list-style: none; margin: 0; padding: 26px 0; display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; }
.d-stats li + li { border-left: 1px solid rgba(255, 255, 255, 0.2); }
.d-stats strong { display: block; font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); font-weight: 900; color: var(--c-accent); }
.d-stats span { font-size: 0.85rem; opacity: 0.9; }

/* セクション共通 */
.d-section { padding: 90px 0; }
.d-section--bg { background: var(--c-bg); }
.d-head { text-align: center; margin-bottom: 48px; }
.d-head span { color: var(--c-accent); font-weight: 800; letter-spacing: 0.14em; font-size: 0.8rem; }
.d-head h2 { font-size: clamp(1.4rem, 1.1rem + 1.3vw, 2.1rem); font-weight: 900; color: var(--c-main); margin-top: 6px; }
.d-head p { color: var(--c-muted); margin-top: 12px; }

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

/* 強み */
.d-point { background: #fff; border-radius: var(--radius); padding: 30px 26px; box-shadow: var(--shadow); border-top: 4px solid var(--c-accent); }
.d-point b { color: var(--c-accent); font-size: 0.8rem; letter-spacing: 0.12em; }
.d-point h3 { font-size: 1.12rem; color: var(--c-main); margin: 6px 0 10px; }
.d-point p { color: var(--c-muted); font-size: 0.93rem; }

/* 事業内容 */
.d-service { border: 1px solid var(--c-line); border-radius: var(--radius); padding: 26px; background: #fff; }
.d-service h3 { font-size: 1.05rem; color: var(--c-main); margin-bottom: 8px; }
.d-service h3::before { content: ""; display: inline-block; width: 10px; height: 10px; background: var(--c-accent); border-radius: 2px; margin-right: 10px; vertical-align: 2px; }
.d-service p { color: var(--c-muted); font-size: 0.92rem; }

/* 写真（届くまではグラデーション） */
.d-photo {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  background-color: var(--c-main);
  background-image: linear-gradient(135deg, var(--c-main), var(--c-main-dark));
  background-size: cover;
  background-position: center;
}

/* 施工事例 */
.d-work { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.d-work .d-photo { border-radius: 0; }
.d-work__body { padding: 20px 22px 24px; }
.d-work__tag { font-size: 0.75rem; font-weight: 700; color: #fff; background: var(--c-main); border-radius: 4px; padding: 2px 8px; }
.d-work h3 { font-size: 1.02rem; margin: 10px 0 6px; }
.d-work p { color: var(--c-muted); font-size: 0.88rem; }

/* 採用 */
.d-recruit { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.d-recruit h2 { font-size: clamp(1.4rem, 1.1rem + 1.3vw, 2rem); font-weight: 900; color: var(--c-main); }
.d-recruit > div > p { margin-top: 14px; color: var(--c-muted); }
.d-recruit ul { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; gap: 10px; }
.d-recruit li { background: #fff; border-radius: 10px; padding: 12px 16px; font-weight: 700; border-left: 4px solid var(--c-accent); }

/* 会社概要 */
.d-table { width: min(760px, 100%); margin: 0 auto; border-collapse: collapse; background: #fff; }
.d-table th, .d-table td { border-bottom: 1px solid var(--c-line); padding: 16px 18px; text-align: left; font-size: 0.95rem; vertical-align: top; }
.d-table th { width: 30%; color: var(--c-main); background: var(--c-bg); }

/* お問い合わせ */
.d-cta { background: linear-gradient(120deg, var(--c-main-dark), var(--c-main)); color: #fff; text-align: center; padding: 80px 0; }
.d-cta h2 { font-size: clamp(1.4rem, 1.1rem + 1.3vw, 2rem); font-weight: 900; }
.d-cta p { margin-top: 12px; opacity: 0.9; }
.d-cta__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 30px; }
.d-cta small { display: block; margin-top: 18px; opacity: 0.7; font-size: 0.78rem; }

.d-footer { background: #111; color: rgba(255, 255, 255, 0.75); text-align: center; padding: 28px 16px; font-size: 0.8rem; }
.d-footer a { color: #ffd46b; }

@media (max-width: 860px) {
  .d-nav { display: none; }
  .d-grid, .d-recruit { grid-template-columns: 1fr; }
  .d-hero .wrap { padding: 80px 0 90px; }
  .d-section { padding: 64px 0; }
  .d-stats ul { grid-template-columns: 1fr; gap: 14px; }
  .d-stats li + li { border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.2); padding-top: 14px; }
  .d-table th { width: 36%; }
}

/* 見出しを言葉のまとまりで改行する */
.nb { display: inline-block; }
