/* ===== リセット & ベース ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
  color: #333;
  background: #fff;
  line-height: 1.7;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ===== カラー変数 ===== */
:root {
  --navy: #1A3A5C;
  --orange: #E8650A;
  --light-gray: #F7F7F7;
  --mid-gray: #EBEBEB;
  --text: #333;
  --white: #fff;
}

/* ===== ヘッダー ===== */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  height: 80px;
  display: flex;
  align-items: center;
}

.header-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  height: 56px;
  width: auto;
}

nav ul {
  display: flex;
  gap: 36px;
  align-items: center;
}

nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--navy);
  letter-spacing: 0.05em;
  transition: color 0.2s;
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--orange);
  transition: width 0.25s;
}

nav a:hover { color: var(--orange); }
nav a:hover::after { width: 100%; }

.nav-cta {
  background: var(--orange);
  color: #fff !important;
  padding: 10px 24px;
  border-radius: 4px;
  font-weight: 600;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: #c9560a !important; }
.nav-cta::after { display: none !important; }

/* ===== ハンバーガーメニュー ===== */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 26px; height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ===== スクリーンリーダー専用 ===== */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ===== ヒーロー ===== */
.hero {
  margin-top: 72px;
  overflow: hidden;
  position: relative;
}

.hero-slides {
  display: flex;
  width: 300%;
  animation: slideShow 12s infinite;
}

@keyframes slideShow {
  0%, 30%   { transform: translateX(0); }
  33%, 63%  { transform: translateX(-33.333%); }
  66%, 96%  { transform: translateX(-66.666%); }
  100%      { transform: translateX(0); }
}

.hero-slide {
  width: 33.333%;
  flex-shrink: 0;
}

.hero-slide img {
  width: 100%;
  height: auto;
  display: block;
}

.btn-primary {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  padding: 14px 36px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.05em;
  transition: background 0.2s, transform 0.2s;
}
.btn-primary:hover { background: #c9560a; transform: translateY(-2px); }

/* ===== セクション共通 ===== */
section { padding: 80px 32px; }

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--orange);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
}

.section-header p {
  color: #666;
  max-width: 560px;
  margin: 0 auto;
  font-size: 0.95rem;
}

/* ===== 実績バナー ===== */
.stats-bar {
  background: var(--navy);
  padding: 40px 32px;
}

.stats-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-item {
  color: #fff;
  border-right: 1px solid rgba(255,255,255,0.15);
  padding: 8px 0;
}
.stat-item:last-child { border-right: none; }

.stat-item .num {
  display: block;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-item .label {
  font-size: 0.85rem;
  opacity: 0.85;
  letter-spacing: 0.08em;
}

/* ===== サービス ===== */
#services { background: var(--light-gray); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.service-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

.service-card-img {
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.service-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.service-card:hover .service-card-img img { transform: scale(1.04); }

.service-card-body {
  padding: 28px 28px 32px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-icon {
  width: 44px; height: 44px;
  background: rgba(232,101,10,0.1);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  font-size: 1.3rem;
}

.service-card-body h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.service-card-body p {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.8;
  flex: 1;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  color: var(--orange);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}
.service-link::after { content: '→'; transition: transform 0.2s; }
.service-card:hover .service-link::after { transform: translateX(4px); }

/* ===== 特徴 ===== */
#features { background: #fff; }

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

.feature-item {
  text-align: center;
  padding: 40px 24px;
  border-radius: 8px;
  transition: background 0.2s;
}
.feature-item:hover { background: var(--light-gray); }

.feature-icon {
  font-size: 2.8rem;
  margin-bottom: 20px;
  display: block;
}

.feature-item h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}

.feature-item p {
  font-size: 0.88rem;
  color: #666;
  line-height: 1.9;
}

/* ===== 会社情報 ===== */
#about { background: var(--light-gray); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-img {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.12);
}
.about-img img { width: 100%; height: 400px; object-fit: cover; }

.about-text h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 20px;
  line-height: 1.4;
}

.about-text p {
  color: #555;
  font-size: 0.95rem;
  line-height: 2;
  margin-bottom: 16px;
}

.about-list {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.about-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: #444;
}

.about-list li::before {
  content: '';
  flex-shrink: 0;
  width: 8px; height: 8px;
  background: var(--orange);
  border-radius: 50%;
}

/* ===== 施工事例 ===== */
#works { background: #fff; }

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

.work-item {
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.work-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.work-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26,58,92,0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}
.work-item:hover img { transform: scale(1.06); }
.work-item:hover .work-overlay { opacity: 1; }

.work-overlay span {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-align: center;
  padding: 0 16px;
}

/* ===== お問い合わせ ===== */
#contact { background: var(--navy); }

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

#contact .section-label { color: rgba(255,255,255,0.7); }

#contact h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}

#contact p {
  color: rgba(255,255,255,0.8);
  margin-bottom: 40px;
  font-size: 0.95rem;
}

.contact-methods {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.contact-pair {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.contact-card {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  padding: 28px 36px;
  color: #fff;
  min-width: 220px;
  transition: background 0.2s;
}
.contact-card:hover { background: rgba(255,255,255,0.18); }
.contact-card--primary {
  background: rgba(232,101,10,0.25);
  border-color: var(--orange);
  border-width: 2px;
}
.contact-card--primary:hover { background: rgba(232,101,10,0.35); }
.contact-card--line {
  background: rgba(6,199,85,0.2);
  border-color: #06C755;
  border-width: 2px;
}
.contact-card--line:hover { background: rgba(6,199,85,0.3); }

.contact-card .icon { font-size: 1.8rem; margin-bottom: 12px; }
.contact-card .title { font-size: 0.8rem; opacity: 0.75; letter-spacing: 0.1em; margin-bottom: 8px; }
.contact-card .value { font-size: 1.1rem; font-weight: 700; }
.contact-card .contact-note { font-size: 0.78rem; opacity: 0.65; margin-top: 8px; }

.btn-white {
  display: inline-block;
  background: #fff;
  color: var(--navy);
  padding: 14px 48px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.05em;
  transition: background 0.2s, transform 0.2s;
}
.btn-white:hover { background: #f0f0f0; transform: translateY(-2px); }

.btn-line {
  display: inline-block;
  background: #06C755;
  color: #fff;
  padding: 14px 48px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.05em;
  transition: background 0.2s, transform 0.2s;
}
.btn-line:hover { background: #05b34c; transform: translateY(-2px); }

/* ===== フッター ===== */
footer {
  background: #0f2035;
  color: rgba(255,255,255,0.7);
  padding: 48px 32px 28px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand img { height: 36px; margin-bottom: 16px; filter: brightness(0) invert(1); }
.footer-brand p { font-size: 0.85rem; line-height: 1.9; }

.footer-nav h4 {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.footer-nav ul { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a { font-size: 0.82rem; transition: color 0.2s; }
.footer-nav a:hover { color: var(--orange); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
}

/* ===== モバイル ===== */
@media (max-width: 900px) {
  nav ul { display: none; }
  nav ul.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: #fff;
    padding: 24px 32px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    gap: 20px;
  }
  .hamburger { display: flex; }

  .services-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .works-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 580px) {
  section { padding: 56px 20px; }
  .works-grid { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .hero-text { left: 5%; right: 5%; }
}
