/* ============================================================
   TrainForest — style.css
   構成：ヘッダー / キービジュアル / 事業案内 / 店舗情報 / フッター
============================================================ */

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 18px; }
body {
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
  color: #1a2a3a;
  background: #ffffff;
  line-height: 1.85;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }

/* ===== TOKENS ===== */
:root {
  --navy:     #0d2b4e;
  --blue:     #1a5fa8;
  --blue-lt:  #e8f2fd;
  --orange:   #e8650a;
  --orange-dk:#c4540a;
  --off:      #f5f8fc;
  --text:     #1a2a3a;
  --muted:    #5a6a7a;
  --border:   #ccdaee;
  --radius:   14px;
  --radius-lg:22px;
  --shadow:   0 6px 28px rgba(13,43,78,.13);
}

/* ===== LAYOUT ===== */
.container { max-width: 1020px; margin: 0 auto; padding: 0 24px; }

.section-wrap { padding: 88px 0; }
.section-bg-off { background: var(--off); }

.section-head { text-align: center; margin-bottom: 56px; }
.section-eyebrow {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-lt);
  padding: 5px 16px;
  border-radius: 99px;
  margin-bottom: 12px;
}
.section-title {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.45;
  margin-bottom: 12px;
}
.section-sub {
  font-size: .95rem;
  color: var(--muted);
  line-height: 1.8;
}

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--blue-lt);
  box-shadow: 0 2px 12px rgba(13,43,78,.07);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 16px;
}

.logo-wrap { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo-mark {
  width: 60px; height: 60px;
  background: var(--blue) no-repeat 50% 50%;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
   background-image: url("image/logo.png");
  text-indent: 1000%;
    white-space: nowrap;
    overflow: hidden;
background-size: contain;

}.logo-text-wrap { line-height: 1.25; }
.logo-name {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
}
.logo-sub { font-size: .68rem; color: var(--muted); letter-spacing: .04em; }

.header-nav { display: flex; align-items: center; gap: 2px; }
.header-nav a {
  padding: 7px 14px;
  border-radius: 8px;
  font-size: .88rem;
  font-weight: 500;
  color: var(--text);
  transition: background .15s, color .15s;
}
.header-nav a:hover { background: var(--blue-lt); color: var(--blue); }

.header-tel-wrap { display: flex; flex-direction: column; align-items: flex-end; flex-shrink: 0; }
.header-tel-num {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
}
.header-tel-note { font-size: .7rem; color: var(--muted); }

/* ハンバーガー */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  width: 34px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  flex-shrink: 0;
}
.hamburger span {
  display: block; height: 2.5px;
  background: var(--navy); border-radius: 3px;
  transition: transform .25s, opacity .25s;
}
.hamburger.open span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

.mobile-nav {
  display: none;
  position: fixed;
  top: 70px; left: 0; right: 0;
  background: #fff;
  border-bottom: 2px solid var(--border);
  padding: 12px 24px 24px;
  z-index: 199;
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block;
  padding: 14px 10px;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.mobile-nav a:last-of-type { border-bottom: none; }
.mobile-tel-block {
  margin-top: 18px;
  background: var(--blue-lt);
  border-radius: var(--radius);
  padding: 18px;
  text-align: center;
}
.mobile-tel-block a {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--navy);
  border: none; padding: 0;
}
.mobile-tel-block small {
  display: block; font-size: .78rem;
  color: var(--muted); margin-top: 4px;
}

/* ===== HERO ===== */
.hero {
  background:
    linear-gradient(
      rgba(13,43,78,.78),
      rgba(26,95,168,.70)
    ),
    url("image/hero.png");

  background-size: cover;
  background-position: center;

  padding: 88px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
  
  min-height: 620px;
display: flex;
align-items: center;
justify-content: center;
}


.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.09) 1.5px, transparent 1.5px);
  background-size: 30px 30px;
}
.hero-inner {
  position: relative; z-index: 1;
  max-width: 680px; margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,.15);
  border: 1.5px solid rgba(255,255,255,.3);
  color: #fff;
  border-radius: 99px;
  padding: 6px 18px;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 24px;
}
.hero-badge .pulse {
  width: 8px; height: 8px;
  background: #6ee7b7;
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .5; transform: scale(1.4); }
}

.hero h1 {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(1.8rem, 5vw, 2.9rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.5;
  margin-bottom: 16px;
}
.hero h1 .accent { color: #fcd34d; }

.hero-lead {
  font-size: clamp(.92rem, 2vw, 1.05rem);
  color: rgba(255,255,255,.82);
  line-height: 1.9;
  margin-bottom: 44px;
}

.hero-tel-box {
  display: inline-block;
  background: rgba(255,255,255,.12);
  border: 2px solid rgba(255,255,255,.25);
  border-radius: var(--radius-lg);
  padding: 24px 40px;
}
.hero-tel-label { font-size: .85rem; color: rgba(255,255,255,.7); margin-bottom: 6px; }
.hero-tel-num {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(2rem, 5.5vw, 3rem);
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  line-height: 1.1;
  transition: opacity .2s;
}
.hero-tel-num:hover { opacity: .85; }
.hero-tel-hours {
  font-size: .8rem;
  color: rgba(255,255,255,.6);
  margin-top: 8px;
}

/* ===== バナー ===== */

.repair-banner{
  padding: 28px 0;
  background:#fff;
}

.repair-banner-link{
  display:block;
  transition:.2s;
}

.repair-banner-link:hover{
  opacity:.92;
  transform:translateY(-2px);
}

.repair-banner-image{
  width:100%;
  border-radius:22px;
  box-shadow:0 10px 30px rgba(0,0,0,.12);
}



/* ===== 事業案内 ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* 5枚目は中央に配置 */
.services-grid .service-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  max-width: 520px;
  margin: 0 auto;
  width: 100%;
}
.service-card {
  background: #fff;
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }

.service-card::before {
  content: '';
  display: block;
  height: 4px;
}
.service-card:nth-child(1)::before { background: linear-gradient(90deg, #1a5fa8, #63b3ed); }
.service-card:nth-child(2)::before { background: linear-gradient(90deg, #1d8a4e, #68d391); }
.service-card:nth-child(3)::before { background: linear-gradient(90deg, #e8650a, #fbbf24); }
.service-card:nth-child(4)::before { background: linear-gradient(90deg, #6b46c1, #b794f4); }
.service-card:nth-child(5)::before { background: linear-gradient(90deg, #0d9488, #5eead4); }

.service-card-inner { padding: 32px 30px; }

.service-icon-wrap {
  width: 58px; height: 58px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.7rem;
  margin-bottom: 18px;
}
.service-card:nth-child(1) .service-icon-wrap { background: #dbeafe; }
.service-card:nth-child(2) .service-icon-wrap { background: #d1fae5; }
.service-card:nth-child(3) .service-icon-wrap { background: #fff3eb; }
.service-card:nth-child(4) .service-icon-wrap { background: #ede9fe; }
.service-card:nth-child(5) .service-icon-wrap { background: #ccfbf1; }

.service-card h3 {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}
.service-card p {
  font-size: .88rem;
  color: var(--muted);
  line-height: 1.82;
  margin-bottom: 18px;
}
.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.service-tags span {
  background: var(--off);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 3px 11px;
  font-size: .75rem;
  color: var(--text);
}

/* ===== 店舗情報 ===== */
.store-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: start;
}
.store-info h3 {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.3rem;
  color: var(--navy);
  margin-bottom: 24px;
}
.store-table { width: 100%; border-collapse: collapse; }
.store-table tr { border-bottom: 1.5px solid var(--border); }
.store-table td {
  padding: 13px 6px;
  font-size: .95rem;
  vertical-align: top;
  line-height: 1.75;
}
.store-table td:first-child {
  width: 90px;
  color: var(--muted);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .04em;
  padding-top: 16px;
}
.tel-link { color: var(--blue); font-weight: 700; font-size: 1.1rem; }

.store-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  height: 320px;
  background: var(--blue-lt);
}
.store-map iframe { width: 100%; height: 100%; border: none; }

/* ===== FOOTER ===== */
.site-footer {
  background: #0a1e35;
  color: rgba(255,255,255,.5);
  padding: 40px 0 24px;
}
.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.footer-brand .logo-name { color: rgba(255,255,255,.9); }
.footer-brand .logo-sub  { color: rgba(255,255,255,.4); }
.footer-brand p {
  font-size: .82rem;
  line-height: 1.85;
  margin-top: 14px;
  color: rgba(255,255,255,.4);
  max-width: 300px;
}
.footer-nav { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a {
  font-size: .83rem;
  color: rgba(255,255,255,.45);
  transition: color .15s;
}
.footer-nav a:hover { color: rgba(255,255,255,.9); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 18px;
  text-align: center;
  font-size: .75rem;
}

/* ===== フェードイン ===== */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .5s ease, transform .5s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 860px) {
  .header-nav, .header-tel-wrap { display: none; }
  .hamburger { display: flex; }
  .services-grid { grid-template-columns: 1fr; }
  .store-inner   { grid-template-columns: 1fr; }
  .footer-inner  { flex-direction: column; gap: 24px; }
}

@media (max-width: 560px) {
  html { font-size: 17px; }
  .section-wrap { padding: 64px 0; }
  .hero { padding: 64px 0 56px; }
  .hero-tel-box { padding: 18px 20px; width: 100%; }
}
