/* ============================================
   横山電気株式会社 ご提案用デザインサンプル
   コンセプト：「街に、生命を。」— 夜の街と灯り
   ============================================ */

:root {
  color-scheme: only light;
  --font-sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  --font-serif: "Shippori Mincho", "Hiragino Mincho ProN", serif;

  /* 夜空・街（全テーマ共通の土台） */
  --night-1: #0a1322;
  --night-2: #101f36;
  --night-3: #16283f;
  --bld: #1c2c44;
  --bld-edge: #24374f;
  --win-off: #223650;

  --paper: #f7f8fa;
  --white: #ffffff;
  --ink: #1c2431;
  --ink-soft: #4a5568;
  --line: #dde3ea;
}

/* テーマA：街のあかり（ロゴの橙） */
body.theme-a {
  --accent: #ef8200;
  --accent-deep: #c96e00;
  --accent-soft: #fff3e3;
  --glow: #ffc46b;
  --link-blue: #1747d1;
}

/* テーマB：横山ブルー（ロゴの青基準） */
body.theme-b {
  --accent: #1747d1;
  --accent-deep: #10339c;
  --accent-soft: #e9eefc;
  --glow: #9cc3ff;
  --link-blue: #1747d1;
}

/* テーマC：現場イエロー（保安標識の黒×黄） */
body.theme-c {
  --accent: #d9a400;
  --accent-deep: #a87e00;
  --accent-soft: #fdf6dd;
  --glow: #ffe27a;
  --link-blue: #1747d1;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.85;
  color: var(--ink);
  background: var(--white);
  -webkit-text-size-adjust: 100%;
}

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

a {
  color: var(--link-blue);
}

.pc-only {
  display: none;
}

@media (min-width: 768px) {
  .pc-only {
    display: inline;
  }
}

/* ---------- 提案専用注釈 ---------- */
.proposal-note {
  background: #fffbe9;
  border-bottom: 1px solid #e8ddb0;
  padding: 10px 16px;
  font-size: 14px;
  line-height: 1.7;
}

.proposal-note p {
  margin: 4px auto;
  max-width: 1120px;
}

/* ---------- 配色切り替え ---------- */
.theme-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 16px;
  background: #eef1f5;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.theme-bar-label {
  color: var(--ink-soft);
}

.theme-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
}

.theme-btn.is-active {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-soft);
}

.swatch {
  width: 14px;
  height: 14px;
  border-radius: 50%;
}

.swatch-a {
  background: #ef8200;
}

.swatch-b {
  background: #1747d1;
}

.swatch-c {
  background: #d9a400;
}

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  min-width: 0;
}

.brand-logo {
  width: 54px;
  flex-shrink: 0;
}

.brand-name {
  display: block;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
}

.brand-sub {
  display: block;
  font-size: 12.5px;
  color: var(--ink-soft);
}

.header-contact {
  display: none;
}

@media (min-width: 900px) {
  .header-contact {
    display: flex;
    align-items: center;
    gap: 16px;
  }
}

.header-tel {
  text-decoration: none;
  color: var(--ink);
  text-align: right;
}

.tel-label {
  display: block;
  font-size: 12.5px;
  color: var(--ink-soft);
}

.tel-number {
  display: block;
  font-size: 26px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.tel-hours {
  display: block;
  font-size: 12.5px;
  color: var(--ink-soft);
}

.header-cta {
  background: var(--accent);
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  padding: 12px 22px;
  border-radius: 8px;
}

.header-cta:hover {
  background: var(--accent-deep);
}

/* モバイルメニュー */
.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12.5px;
  font-family: inherit;
  cursor: pointer;
}

.menu-toggle-bars {
  width: 22px;
  height: 2px;
  background: var(--ink);
  position: relative;
  margin: 7px 0;
}

.menu-toggle-bars::before,
.menu-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: var(--ink);
}

.menu-toggle-bars::before {
  top: -7px;
}

.menu-toggle-bars::after {
  top: 7px;
}

@media (min-width: 900px) {
  .menu-toggle {
    display: none;
  }
}

.global-nav {
  display: none;
  border-top: 1px solid var(--line);
}

.global-nav.is-open {
  display: block;
}

@media (min-width: 900px) {
  .global-nav {
    display: block;
  }
}

.global-nav ul {
  list-style: none;
  margin: 0 auto;
  padding: 0 16px;
  max-width: 1180px;
  display: flex;
  flex-direction: column;
}

@media (min-width: 900px) {
  .global-nav ul {
    flex-direction: row;
    justify-content: center;
    gap: 4px;
  }
}

.global-nav a {
  display: block;
  padding: 12px 14px;
  text-decoration: none;
  color: var(--ink);
  font-size: 18px;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 900px) {
  .global-nav a {
    border-bottom: 3px solid transparent;
    padding: 10px 16px;
  }

  .global-nav a:hover {
    border-bottom-color: var(--accent);
  }
}

/* ---------- ヒーロー ---------- */
.hero {
  position: relative;
  background: linear-gradient(
    180deg,
    var(--night-1) 0%,
    var(--night-2) 55%,
    var(--night-3) 100%
  );
  color: var(--white);
  overflow: hidden;
  padding: 56px 16px 0;
}

/* 星空（点灯前はほぼ見えない） */
.hero-sky {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(
      1.5px 1.5px at 12% 18%,
      rgba(255, 255, 255, 0.7) 50%,
      transparent 51%
    ),
    radial-gradient(
      1px 1px at 28% 8%,
      rgba(255, 255, 255, 0.6) 50%,
      transparent 51%
    ),
    radial-gradient(
      1.5px 1.5px at 46% 22%,
      rgba(255, 255, 255, 0.5) 50%,
      transparent 51%
    ),
    radial-gradient(
      1px 1px at 64% 12%,
      rgba(255, 255, 255, 0.65) 50%,
      transparent 51%
    ),
    radial-gradient(
      1.5px 1.5px at 81% 24%,
      rgba(255, 255, 255, 0.55) 50%,
      transparent 51%
    ),
    radial-gradient(
      1px 1px at 92% 9%,
      rgba(255, 255, 255, 0.6) 50%,
      transparent 51%
    );
  opacity: 0;
  transition: opacity 1.6s ease;
  pointer-events: none;
}

body.lights-on .hero-sky {
  opacity: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  padding-bottom: 200px;
}

@media (min-width: 900px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: center;
    gap: 48px;
    padding-bottom: 220px;
  }
}

.hero-est {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 18px;
  font-size: 15px;
  letter-spacing: 0.12em;
  color: var(--glow);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  padding: 6px 18px;
}

.est-sep {
  opacity: 0.6;
}

.hero-title {
  margin: 0 0 20px;
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: clamp(44px, 8vw, 76px);
  line-height: 1.25;
  letter-spacing: 0.06em;
}

.hero-title em {
  font-style: normal;
  color: var(--glow);
  text-shadow: 0 0 0 transparent;
  transition: text-shadow 1.2s ease;
}

body.lights-on .hero-title em {
  text-shadow: 0 0 24px rgba(255, 196, 107, 0.55);
}

.hero-lead {
  margin: 0 0 14px;
  font-size: 19px;
  line-height: 2;
  color: #e7ecf4;
}

.hero-motto {
  margin: 0 0 26px;
  font-size: 15.5px;
  color: #b9c4d6;
}

/* スイッチ */
.hero-switch-block {
  margin: 56px 0 0;
}

.light-switch {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 14px;
  padding: 12px 18px;
  cursor: pointer;
  font-family: inherit;
  color: #dfe6f0;
  font-size: 15px;
  transition:
    border-color 0.4s ease,
    background 0.4s ease;
}

.light-switch:hover {
  border-color: var(--glow);
}

.switch-plate {
  position: relative;
  width: 44px;
  height: 64px;
  background: #e9ecf1;
  border-radius: 8px;
  box-shadow: inset 0 0 0 2px #c9cfd8;
  flex-shrink: 0;
}

.switch-knob {
  position: absolute;
  left: 8px;
  right: 8px;
  top: 8px;
  height: 24px;
  background: linear-gradient(180deg, #ffffff, #d4dae2);
  border-radius: 5px;
  box-shadow: 0 3px 5px rgba(10, 19, 34, 0.35);
  transition:
    top 0.25s ease,
    background 0.25s ease;
}

body.lights-on .switch-knob {
  top: 32px;
  background: linear-gradient(180deg, var(--glow), var(--accent));
}

body.lights-on .light-switch {
  border-color: var(--glow);
  background: rgba(255, 196, 107, 0.1);
}

.switch-label {
  max-width: 220px;
  text-align: left;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 10px;
  padding: 14px 28px;
  font-weight: 700;
  line-height: 1.4;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--accent-deep);
}

.btn-small {
  font-size: 13.5px;
  font-weight: 500;
}

.btn-large {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0.03em;
}

.btn-ghost {
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  color: var(--white);
  font-size: 17px;
}

.btn-ghost:hover {
  border-color: var(--glow);
  color: var(--glow);
}

/* ヒーロー写真 */
.hero-photo {
  margin: 0;
  position: relative;
}

.hero-photo img {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 18px 50px rgba(4, 9, 18, 0.55);
}

.hero-photo figcaption {
  margin-top: 10px;
  font-size: 13.5px;
  color: #aab6c9;
  text-align: right;
}

/* 街のスカイライン */
.hero-town {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  pointer-events: none;
}

.town-svg {
  display: block;
  width: 100%;
  height: 190px;
}

.wire {
  fill: none;
  stroke: rgba(180, 196, 218, 0.28);
  stroke-width: 1.5;
}

.bld {
  fill: var(--bld);
  stroke: var(--bld-edge);
  stroke-width: 1;
}

.win {
  fill: var(--win-off);
  transition: fill 0.5s ease;
}

body.lights-on .win.lit {
  fill: var(--glow);
}

.pole {
  fill: #2a3b55;
}

.pole-arm {
  fill: #2a3b55;
}

.signal-box {
  fill: #2e3f59;
  stroke: #3c5070;
  stroke-width: 1;
}

.sig {
  fill: #33455f;
  transition: fill 0.4s ease;
}

body.lights-on .sig-green.sig-on {
  fill: #37d09a;
}

body.lights-on .sig-yellow.sig-on {
  fill: #ffd84d;
}

body.lights-on .sig-red.sig-on {
  fill: #ff6b5e;
}

/* ---------- 信頼バッジ帯 ---------- */
.trust-strip {
  background: var(--night-3);
  color: var(--white);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.trust-strip ul {
  list-style: none;
  margin: 0 auto;
  padding: 8px 16px;
  max-width: 1180px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 768px) {
  .trust-strip ul {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }
}

.trust-strip li {
  padding: 14px 4px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 768px) {
  .trust-strip li {
    border-bottom: none;
    text-align: center;
    align-items: center;
  }
}

.trust-num {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  color: var(--glow);
}

.trust-text {
  font-size: 14.5px;
  color: #ccd6e4;
}

/* ---------- セクション共通 ---------- */
.section-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 72px 16px;
}

.section-head {
  margin-bottom: 40px;
}

.section-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
  font-size: 13.5px;
  letter-spacing: 0.22em;
  font-weight: 700;
  color: var(--accent);
}

.sig-dots {
  display: inline-flex;
  gap: 4px;
}

.sig-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.35;
}

.sig-dots i:nth-child(2) {
  opacity: 0.65;
}

.sig-dots i:nth-child(3) {
  opacity: 1;
}

.section-title {
  margin: 0 0 14px;
  font-family: var(--font-serif);
  font-size: clamp(30px, 4.6vw, 40px);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.4;
}

.section-lead {
  margin: 0;
  max-width: 760px;
  color: var(--ink-soft);
}

/* ---------- 入口2つ ---------- */
.entrances .section-inner {
  padding-top: 56px;
  padding-bottom: 8px;
}

.entrance-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}

@media (min-width: 768px) {
  .entrance-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.entrance-card {
  display: block;
  text-decoration: none;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  border-radius: 14px;
  padding: 28px 26px;
  transition:
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.entrance-card:hover {
  box-shadow: 0 12px 32px rgba(28, 36, 49, 0.12);
  transform: translateY(-2px);
}

.entrance-tag {
  margin: 0 0 6px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--accent-deep);
  letter-spacing: 0.08em;
}

.entrance-title {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-size: 25px;
  font-weight: 700;
}

.entrance-desc {
  margin: 0 0 14px;
  font-size: 16.5px;
  color: var(--ink-soft);
}

.entrance-more {
  font-weight: 700;
  color: var(--link-blue);
  font-size: 16px;
}

.entrance-more::after {
  content: " →";
}

/* ---------- 業務内容 ---------- */
.service-featured {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  margin-bottom: 26px;
}

@media (min-width: 700px) {
  .service-featured {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.service-photo-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.service-photo-card figure {
  margin: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.service-photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-photo-body {
  padding: 20px 22px 24px;
  position: relative;
}

.service-num {
  margin: 0 0 2px;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.2em;
  color: var(--accent);
}

.service-photo-body h3,
.service-item h3 {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
}

.service-photo-body p:last-child,
.service-item p:last-child {
  margin: 0;
  font-size: 16.5px;
  color: var(--ink-soft);
}

.service-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

@media (min-width: 900px) {
  .service-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.service-item {
  display: flex;
  gap: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
}

.service-item .service-num {
  font-size: 15px;
  padding-top: 2px;
}

.service-note {
  margin: 30px 0 0;
  padding: 16px 20px;
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  border-radius: 0 10px 10px 0;
  font-weight: 500;
}

/* ---------- 施工事例 ---------- */
.works {
  background: var(--paper);
}

.work-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 900px) {
  .work-card {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }
}

.work-photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
  background: var(--line);
}

.work-photos figure {
  margin: 0;
  overflow: hidden;
}

.work-photos img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work-body {
  padding: 28px 28px 30px;
}

.work-tag {
  margin: 0 0 8px;
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 13.5px;
  font-weight: 700;
  border-radius: 999px;
  padding: 4px 14px;
}

.work-body h3 {
  margin: 0 0 12px;
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.5;
}

.work-spec {
  margin: 0 0 12px;
}

.work-spec div {
  display: flex;
  gap: 12px;
}

.work-spec dt {
  font-weight: 700;
  flex-shrink: 0;
}

.work-spec dd {
  margin: 0;
}

.work-body > p {
  margin: 0 0 10px;
  font-size: 16.5px;
  color: var(--ink-soft);
}

.work-note {
  font-size: 14px !important;
}

/* ---------- ロゴと理念 ---------- */
.philosophy {
  background: linear-gradient(180deg, var(--night-2), var(--night-3));
  color: var(--white);
}

.philosophy .section-lead {
  color: #b9c4d6;
}

.philosophy-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  align-items: stretch;
}

@media (min-width: 800px) {
  .philosophy-grid {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  }
}

.philosophy-logo {
  margin: 0;
  background: var(--white);
  border-radius: 16px;
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.philosophy-logo img {
  max-height: 320px;
  width: auto;
  max-width: 100%;
}

.philosophy-body {
  display: flex;
  flex-direction: column;
}

.philosophy-body > p {
  margin: 0 0 22px;
  color: #dfe6f0;
}

.philosophy-list {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

.philosophy-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 16px 20px;
}

@media (min-width: 600px) {
  .philosophy-list li {
    flex-direction: row;
    align-items: baseline;
    gap: 16px;
  }
}

.philosophy-key {
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 700;
  color: var(--glow);
  flex-shrink: 0;
}

.philosophy-list li span:last-child {
  font-size: 16px;
  color: #ccd6e4;
}

/* ---------- 会社案内 ---------- */
.company-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

@media (min-width: 900px) {
  .company-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }
}

.company-photo {
  margin: 0;
}

.company-photo img {
  border-radius: 14px;
  border: 1px solid var(--line);
}

.company-photo figcaption {
  margin-top: 8px;
  font-size: 14px;
  color: var(--ink-soft);
  text-align: right;
}

.company-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 17px;
}

.company-table th,
.company-table td {
  text-align: left;
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  line-height: 1.7;
}

.company-table th {
  width: 8.5em;
  color: var(--accent-deep);
  font-weight: 700;
  white-space: nowrap;
}

.company-map {
  margin-top: 40px;
}

.company-map-title {
  margin: 0 0 14px;
  font-family: var(--font-serif);
  font-size: 23px;
  font-weight: 700;
  border-left: 4px solid var(--accent);
  padding-left: 12px;
}

.company-map-frame {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.company-map-frame iframe {
  display: block;
  width: 100%;
  height: 340px;
  border: 0;
}

@media (min-width: 768px) {
  .company-map-frame iframe {
    height: 520px;
  }
}

.company-map-caption {
  margin: 10px 0 0;
  font-size: 15px;
  color: var(--ink-soft);
}

.company-note {
  margin: 22px 0 0;
  font-size: 14px;
  color: var(--ink-soft);
}

/* ---------- 沿革（光の年表） ---------- */
.history {
  background: linear-gradient(180deg, var(--night-1), var(--night-2));
  color: var(--white);
}

.history .section-lead {
  color: #b9c4d6;
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0 0 0 26px;
  position: relative;
  max-width: 720px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.12),
    rgba(255, 255, 255, 0.3)
  );
}

.timeline li {
  position: relative;
  padding: 0 0 26px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

@media (min-width: 640px) {
  .timeline li {
    flex-direction: row;
    gap: 24px;
  }
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -25px;
  top: 9px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--win-off);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
  transition:
    background 0.6s ease,
    box-shadow 0.6s ease;
}

body.lights-on .timeline li.tl-lit::before {
  background: var(--glow);
  box-shadow: 0 0 12px rgba(255, 196, 107, 0.5);
}

.tl-year {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--glow);
  flex-shrink: 0;
  width: 9em;
  font-size: 17px;
}

.tl-text {
  color: #dfe6f0;
  font-size: 17px;
}

/* ---------- 採用・協力業者 ---------- */
.recruit-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  align-items: stretch;
}

.recruit-side {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* 左の採用カードは表の行を高さいっぱいに均等配分して右列と揃える */
.recruit-grid > .recruit-card {
  display: flex;
  flex-direction: column;
}

.recruit-grid > .recruit-card .recruit-table {
  flex: 1;
}

.recruit-side .recruit-cta {
  flex: 1;
}

@media (min-width: 900px) {
  .recruit-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  }
}

.recruit-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px 26px 28px;
}

.recruit-card h3 {
  margin: 0 0 16px;
  font-family: var(--font-serif);
  font-size: 23px;
  font-weight: 700;
  border-left: 4px solid var(--accent);
  padding-left: 12px;
}

.recruit-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16.5px;
}

.recruit-table th,
.recruit-table td {
  text-align: left;
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  line-height: 1.7;
}

.recruit-table th {
  width: 7em;
  color: var(--accent-deep);
  font-weight: 700;
  white-space: nowrap;
}

.recruit-note {
  margin: 14px 0 0;
  font-size: 14px;
  color: var(--ink-soft);
}

.recruit-cta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

.recruit-cta h3 {
  margin-bottom: 4px;
}

.recruit-cta-lead {
  margin: 0 0 6px;
  font-size: 16px;
  color: var(--ink-soft);
}

.recruit-cta .btn {
  width: 100%;
}

.btn-outline {
  border: 1.5px solid var(--accent);
  color: var(--accent-deep);
  font-size: 17px;
  background: var(--white);
}

.btn-outline:hover {
  background: var(--accent-soft);
}

/* ---------- お問い合わせ ---------- */
.contact {
  background: var(--night-2);
  color: var(--white);
}

.contact .section-lead {
  color: #b9c4d6;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  }
}

.contact-tel-block {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  padding: 30px 28px;
  text-align: center;
}

.contact-tel-label {
  margin: 0 0 6px;
  font-weight: 700;
  color: var(--glow);
}

.contact-tel {
  display: inline-block;
  font-size: clamp(32px, 6vw, 42px);
  font-weight: 900;
  color: var(--white);
  text-decoration: none;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.contact-hours {
  margin: 10px 0 14px;
  font-size: 15.5px;
  color: #ccd6e4;
}

.contact-address {
  margin: 0;
  font-size: 15px;
  color: #aab6c9;
}

.contact-form {
  background: var(--white);
  color: var(--ink);
  border-radius: 16px;
  padding: 28px 26px 30px;
}

.form-demo-note {
  margin: 0 0 18px;
  background: #fffbe9;
  border: 1px solid #e8ddb0;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
}

.form-row {
  margin-bottom: 16px;
}

.form-row label {
  display: block;
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 6px;
}

.req {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  font-size: 12.5px;
  font-weight: 700;
  border-radius: 4px;
  padding: 1px 8px;
  margin-left: 8px;
  vertical-align: 2px;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  font-family: inherit;
  font-size: 17px;
  padding: 11px 12px;
  border: 1.5px solid #c6cdd6;
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

.btn-submit {
  width: 100%;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 18px;
  padding: 15px;
}

/* ---------- フッター ---------- */
.site-footer {
  background: var(--night-1);
  color: #ccd6e4;
  padding: 48px 16px 120px;
}

@media (min-width: 900px) {
  .site-footer {
    padding-bottom: 48px;
  }
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 14px;
}

.footer-logo {
  width: 44px;
}

.footer-name {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 700;
  color: var(--white);
}

.footer-info {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 2;
}

.footer-info a {
  color: var(--glow);
  text-decoration: none;
}

.footer-copy {
  margin: 0 0 18px;
  font-size: 13.5px;
  color: #8895a9;
}

.footer-note {
  margin: 0 auto;
  max-width: 860px;
  font-size: 13px;
  line-height: 1.9;
  color: #8895a9;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 18px;
}

/* ---------- スマホ固定電話ボタン ---------- */
.mobile-call {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent);
  color: var(--white);
  text-decoration: none;
  font-size: 19px;
  font-weight: 900;
  padding: 15px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(10, 19, 34, 0.35);
}

@media (min-width: 900px) {
  .mobile-call {
    display: none;
  }
}

/* ---------- アニメーション抑制 ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
