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

html, body{
  margin: 0;
  padding: 0;
  font-family: "Helvetica Neue", Arial, sans-serif;
  color: #0f172a;
  line-height: 1.7;
  overflow-x: hidden;
}

a{ color: inherit; text-decoration: none; }
img{ max-width: 100%; display: block; }

:root{
  --brand: #142E79;
  --accent: #2563EB;
  --accentHover: #1E40AF;
  --gray: #f5f7fb;
  --border: #e5e7eb;
  --shadow: 0 8px 20px rgba(0,0,0,0.06);
  --radius: 14px;
  --headerH: 68px;
}

.container{
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

.section{ padding: 64px 0; }
.section-gray{ background: var(--gray); }

.section-title{
  font-size: clamp(22px, 2.5vw, 30px);
  margin: 0 0 14px;
  border-bottom: 2px solid var(--brand);
  padding-bottom: 10px;
}
.vision-title{
  margin-top: 40px;
}
.section-lead{
  margin: 0 0 24px;
  color: #334155;
}

/* Header */
.site-header{
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--headerH);
  background: var(--brand);
  color: #fff;
  z-index: 999;
}

.header-inner{
  max-width: 1000px;
  margin: 0 auto;
  height: var(--headerH);
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.logo-link{
  font-weight: 900;
  letter-spacing: .02em;
}
.logo-img{
  height: 48px;   /* ロゴの高さ */
  width: auto;
  display: block;
}
.menu-toggle{
  display: none;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
}

.site-nav{
  display: flex;
  align-items: center;
  gap: 18px;
}

.site-nav ul{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 16px;
  align-items: center;
}

.site-nav a{
  font-weight: 800;
  font-size: 14px;
  opacity: .95;
}
.site-nav a:hover{ opacity: 1; }
/*
.nav-cta{
  margin-left: 8px;
  background: #fff;
  color: var(--brand);
  font-weight: 900;
  padding: 10px 14px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}*/
.nav-cta{
  margin-left: 8px;
  padding: 10px 16px;

  border-radius: 6px;   /* ← ここを変更（999px → 6px） */

  background: var(--accent);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.15);

  font-weight: 700;
  font-size: 14px;

  transition: background .15s ease, transform .15s ease;
}

.nav-cta:hover{
  background: var(--accentHover);
  transform: translateY(-1px);
}
/* Hero (text only / compact) */
.hero-text{
  background: var(--brand);
  color: #fff;
  padding-top: calc(var(--headerH) + 24px);
  padding-bottom: 32px;
}

.hero-badge{
  display: inline-block;
  font-size: 13px;
  padding: 4px 10px;
  background: rgba(255,255,255,0.15);
  border-radius: 999px;
  margin: 0 0 10px;
}

.hero-title{
  margin: 0;
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.35;
  font-weight: 900;
}
.hero-text{
  color: #fff;
  text-align: left;
  padding: 80px 20px;

  background-image: url("./assets/images/hero.jpg"); /* ← 追加 */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  position: relative;
}

/* 中の文字を前面に */
.hero-text .container{
  position: relative;
  z-index: 1;
}

.hero-lead{
  margin: 8px 0 0;
  font-size: 15px;
  color: rgba(255,255,255,0.9);
  max-width: 77ch;
}

.hero-actions{
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Buttons */
.btn{
  display: inline-block;
  border-radius: 10px;
  padding: 10px 16px;
  font-weight: 900;
  letter-spacing: .01em;
  border: 1px solid transparent;
}

.btn-light{
  background: #fff;
  color: var(--brand);
}

.btn-accent{
  background: var(--accent);
  color: #fff;
}
.btn-accent:hover{ background: var(--accentHover); }

/* Cards / Lists */
.cards{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 22px;
}

.card{
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}

.card h3{
  margin: 0 0 10px;
  font-size: 16px;
}

.text{ margin: 0; color: #334155; }

.list{
  margin: 0;
  padding-left: 18px;
  color: #334155;
}
.list li{ margin: 6px 0; }

.section-cta{ margin-top: 18px; }

/* ===============================
   Boiler Gallery（完全版）
   PC：横3枚 / SP：横スワイプ
================================= */
.boiler-gallery{
  margin-top: 18px;
}

.boiler-card{
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
}

.boiler-card img{
  width: 100%;
  height: 240px;
  height: auto;
}

.boiler-card figcaption{
  padding: 10px 12px;
  font-size: 13px;
  color: #334155;
}

@media (min-width: 769px){
  .boiler-gallery{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    overflow-x: visible;
  }
}

@media (max-width: 768px){
  .boiler-gallery{
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 85%;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
  }
  .boiler-card{ scroll-snap-align: start; }
}

/* DL */
.dl{
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.dl-row{
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 14px;
  padding: 14px 16px;
  border-top: 1px solid var(--border);
}
.dl-row:first-child{ border-top: none; }

.dl dt{
  color: #475569;
  font-weight: 900;
}
.dl dd{
  margin: 0;
  font-weight: normal;
}

/* Two-col */
.two-col{
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 18px;
}

.box{
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}

.box h3{ margin: 0 0 10px; font-size: 16px; }

/* Form */
.form{
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}

.form-row{
  display: grid;
  gap: 8px;
  margin-top: 14px;
}
.form-row:first-child{ margin-top: 0; }

.form-row label{
  font-weight: 900;
  font-size: 14px;
}

.req{
  margin-left: 8px;
  font-size: 12px;
  font-weight: 900;
  color: #fff;
  background: #ef4444;
  padding: 2px 8px;
  border-radius: 999px;
}

.form input,
.form textarea{
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 12px;
  font-size: 15px;
}

.form textarea{
  resize: vertical;
  min-height: 120px;
}

.form-row.two{
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.btn-submit{
  width: 100%;
  margin-top: 18px;
  padding: 14px 18px;
  cursor: pointer;
  border: none;
}

.form-note{
  margin: 10px 0 0;
  color: #64748b;
  font-size: 13px;
}

/* Footer */
.site-footer{
  background: var(--brand);
  color: rgba(255,255,255,0.9);
  padding: 22px 0;
}

.footer-inner{
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.footer-right{ color: rgba(255,255,255,0.75); }

/* Anchor offset */
section[id]{ scroll-margin-top: calc(var(--headerH) + 18px); }

/* Responsive */
@media (max-width: 900px){
  .cards{ grid-template-columns: 1fr; }
  .two-col{ grid-template-columns: 1fr; }
}

@media (max-width: 768px){
  .menu-toggle{ display: block; }

  .site-nav{
    position: absolute;
    top: var(--headerH);
    left: 0; right: 0;
    background: var(--brand);
    padding: 14px 20px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .site-nav.open{ display: flex; }

  .site-nav ul{
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
  }

  .nav-cta{
    width: 100%;
    text-align: center;
  }

  .dl-row{ grid-template-columns: 1fr; }
  .form-row.two{ grid-template-columns: 1fr; }

  .footer-inner{
    flex-direction: column;
    align-items: flex-start;
  }
}
