/* ===== リセット・基本 ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  color: #1a1a1a;
  background: #fff;
  line-height: 1.7;
  font-size: 16px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ===== カラー変数 ===== */
:root {
  --orange: #E86C0A;
  --orange-light: #F5A05A;
  --dark: #1a1a1a;
  --gray: #666;
  --light-bg: #f8f5f1;
  --border: #e0dbd4;
}

/* ===== ヘッダー ===== */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: #111;
  border-bottom: 3px solid var(--orange);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 60px;
}
.site-name {
  display: flex;
  align-items: center;
  gap: 12px;
}
.site-name-en {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .22em;
  color: var(--orange);
  line-height: 1;
}
.site-name-ja {
  font-size: 1.25rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: .1em;
  line-height: 1;
}
.site-name-bar {
  width: 3px;
  height: 36px;
  background: var(--orange);
  border-radius: 2px;
}
header .tel-link {
  font-size: .8rem;
  font-weight: 700;
  color: #111;
  background: var(--orange);
  border-radius: 3px;
  padding: 7px 14px;
  letter-spacing: .03em;
}
header .tel-link:hover { background: #c85a08; }

/* ===== ヒーロー ===== */
#hero {
  margin-top: 60px;
  position: relative;
  height: 92vh;
  min-height: 480px;
  overflow: hidden;
}

/* スライドショー */
.hero-slides {
  position: absolute;
  inset: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero-slide.active { opacity: 1; }
.hero-slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.06);
  transition: transform 6s ease;
}
.hero-slide.active img { transform: scale(1); }

/* オーバーレイ */
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(0,0,0,.72) 0%, rgba(0,0,0,.2) 60%),
    linear-gradient(to top, rgba(0,0,0,.55) 0%, transparent 50%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(24px, 6vw, 80px);
  color: #fff;
}

/* 会社名ブロック */
.hero-company { margin-bottom: 24px; }
.hero-company-en {
  font-size: clamp(.65rem, 1.8vw, .8rem);
  font-weight: 700;
  letter-spacing: .4em;
  color: var(--orange);
  display: block;
  margin-bottom: 8px;
}
.hero-company-ja {
  font-size: clamp(2.8rem, 9vw, 5.5rem);
  font-weight: 900;
  letter-spacing: .12em;
  line-height: 1;
  color: #fff;
  display: block;
  text-shadow: 0 4px 24px rgba(0,0,0,.5);
}
.hero-divider {
  width: 52px;
  height: 4px;
  background: var(--orange);
  margin: 22px 0;
  border-radius: 2px;
}
.hero-overlay h1 {
  font-size: clamp(1rem, 2.8vw, 1.35rem);
  font-weight: 700;
  line-height: 1.8;
  letter-spacing: .04em;
  text-shadow: 0 2px 8px rgba(0,0,0,.4);
  margin-bottom: 10px;
  opacity: .95;
}
.hero-overlay p {
  font-size: clamp(.85rem, 2vw, 1rem);
  opacity: .82;
  margin-bottom: 32px;
  text-shadow: 0 1px 4px rgba(0,0,0,.4);
  line-height: 1.9;
}
.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--orange);
  color: #fff;
  font-size: .95rem;
  font-weight: 700;
  padding: 15px 28px;
  border-radius: 3px;
  letter-spacing: .06em;
  transition: background .2s;
}
.btn-primary:hover { background: #c85a08; }
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: #fff;
  font-size: .95rem;
  font-weight: 700;
  padding: 14px 26px;
  border-radius: 3px;
  border: 2px solid rgba(255,255,255,.6);
  letter-spacing: .06em;
  transition: border-color .2s, background .2s;
}
.btn-secondary:hover { border-color: #fff; background: rgba(255,255,255,.1); }

/* 統計バー */
.hero-stats {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  display: flex;
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(6px);
  border-top: 2px solid var(--orange);
}
.hero-stat {
  flex: 1;
  padding: 16px 12px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,.12);
}
.hero-stat:last-child { border-right: none; }
.hero-stat-num {
  font-size: clamp(1.1rem, 3.5vw, 1.9rem);
  font-weight: 900;
  color: var(--orange);
  line-height: 1;
}
.hero-stat-label {
  font-size: clamp(.62rem, 1.8vw, .72rem);
  color: rgba(255,255,255,.7);
  margin-top: 4px;
  letter-spacing: .04em;
}

/* スライドドット */
.hero-dots {
  position: absolute;
  bottom: clamp(80px, 14vw, 110px);
  right: clamp(16px, 4vw, 60px);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hero-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  transition: background .3s, transform .3s;
  cursor: pointer;
}
.hero-dot.active {
  background: var(--orange);
  transform: scale(1.4);
}

/* ===== スクロールフェードイン ===== */
.fade-in {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .7s ease, transform .7s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-in-delay-1 { transition-delay: .1s; }
.fade-in-delay-2 { transition-delay: .2s; }
.fade-in-delay-3 { transition-delay: .3s; }
.fade-in-delay-4 { transition-delay: .4s; }

/* ===== セクション共通 ===== */
section { padding: 60px 20px; }
.section-inner { max-width: 720px; margin: 0 auto; }
.section-label {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .15em;
  padding: 3px 10px;
  border-radius: 2px;
  margin-bottom: 8px;
}
.section-title {
  font-size: clamp(1.3rem, 4vw, 1.9rem);
  font-weight: 900;
  margin-bottom: 32px;
  line-height: 1.4;
}
.section-title span { color: var(--orange); }

/* ===== 事業内容 ===== */
#service { background: var(--light-bg); }
.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 560px) {
  .service-grid { grid-template-columns: 1fr 1fr; }
}
.service-card {
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.service-card img { width: 100%; height: 180px; object-fit: cover; }
.service-card-body { padding: 16px; }
.service-card-body h3 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.service-card-body p { font-size: .85rem; color: var(--gray); }

/* ===== 施工事例 ===== */
#works { background: #fff; }
.works-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.works-item { position: relative; border-radius: 6px; overflow: hidden; }
.works-item img { width: 100%; height: 200px; object-fit: cover; }
.works-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: rgba(0,0,0,.55);
  color: #fff;
  font-size: .75rem;
  padding: 6px 10px;
}

/* ===== 選ばれる理由 ===== */
#reason { background: var(--light-bg); }
.reason-list { display: flex; flex-direction: column; gap: 24px; }
.reason-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: #fff;
  border-radius: 6px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.reason-num {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 900;
  display: flex; align-items: center; justify-content: center;
}
.reason-item h3 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.reason-item p { font-size: .85rem; color: var(--gray); }

/* ===== 会社概要 ===== */
#about { background: #fff; }
.about-table { width: 100%; border-collapse: collapse; }
.about-table th, .about-table td {
  padding: 12px 14px;
  font-size: .9rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  text-align: left;
}
.about-table th {
  color: var(--gray);
  font-weight: 700;
  white-space: nowrap;
  width: 100px;
}
.map-placeholder {
  margin-top: 28px;
  background: var(--light-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  font-size: .85rem;
}

/* ===== お問い合わせ ===== */
#contact { background: var(--light-bg); }
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: .85rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: .95rem;
  font-family: inherit;
  background: #fff;
}
.form-group textarea { height: 140px; resize: vertical; }
.form-group input:focus,
.form-group textarea:focus {
  outline: 2px solid var(--orange);
  border-color: transparent;
}
.required {
  color: var(--orange);
  font-size: .75rem;
  margin-left: 4px;
}
.btn-submit {
  width: 100%;
  padding: 16px;
  background: var(--orange);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  letter-spacing: .05em;
}
.btn-submit:hover { background: #c85a08; }
.form-note { font-size: .8rem; color: var(--gray); margin-top: 10px; text-align: center; }

/* ===== フッター ===== */
footer {
  background: var(--dark);
  color: #aaa;
  text-align: center;
  padding: 24px 20px;
  font-size: .8rem;
}

/* ===== 固定電話ボタン（スマホ）===== */
.sticky-call {
  display: flex;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 200;
  background: var(--orange);
  color: #fff;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: .05em;
}
.sticky-call svg { width: 22px; height: 22px; fill: #fff; }
@media (min-width: 768px) {
  .sticky-call { display: none; }
}
/* 固定ボタン分のpadding */
@media (max-width: 767px) {
  body { padding-bottom: 60px; }
}

/* ===== スマホ専用調整（~480px）===== */
@media (max-width: 480px) {
  /* ヒーロー：テキストを中央寄せ */
  .hero-overlay {
    align-items: center;
    text-align: center;
    padding: 20px 16px;
    justify-content: flex-end;
    padding-bottom: 120px;
  }
  .hero-divider { margin: 16px auto; }
  .hero-company-ja {
    font-size: clamp(2.2rem, 12vw, 3rem);
  }
  .hero-cta {
    justify-content: center;
  }
  /* 統計バー：小さめに */
  .hero-stat { padding: 12px 6px; }
  .hero-stat-label { font-size: .6rem; letter-spacing: 0; }
  /* ドット非表示（狭すぎるため） */
  .hero-dots { display: none; }
  /* 施工事例：1列に */
  .works-grid { grid-template-columns: 1fr; }
  .works-item img { height: 220px; }
  /* 会社概要テーブル */
  .about-table th { width: 76px; font-size: .82rem; }
  .about-table td { font-size: .82rem; }
  /* セクション余白を縮小 */
  section { padding: 48px 16px; }
}
