/* =========================
   Base
========================= */
img { max-width: 100%; height: auto; display: block; }
a, button { -webkit-tap-highlight-color: transparent; }

/* =========================
   Header (SP共通)
========================= */
.header{
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 60px;
  background: #fff;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,.05);

  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
}

/* 左：会社名 */
.header-left{
  display: flex;
  align-items: center;
  min-width: 0;
}
.logo-container{ display: flex; align-items: center; height: 24px; }
.brand-text{
  font-family: "Inter", Helvetica, sans-serif;
  font-weight: 800;
  font-size: 14px;
  color: #343434;
  white-space: nowrap;
}

/* 右：問い合わせ + ハンバーガー */
.header-right{
  display: flex;
  align-items: center;
  gap: 10px;
}

/* 黄色問い合わせ（SPでも表示） */
.header-cta{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 14px;
  background: #e2b22e;
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  border-radius: 0; /* スクショ寄せ */
  white-space: nowrap;
}
.header-cta:hover{ background: #d1a11d; }

/* ハンバーガー（SP） */
.mobile-menu-toggle{
  position: static;
  width: 30px;
  height: 24px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.mobile-menu-toggle span{
  width: 100%;
  height: 2px;
  background: #343434;
  border-radius: 2px;
  transition: .25s ease;
}
.mobile-menu-toggle.active span:nth-child(1){ transform: translateY(11px) rotate(45deg); }
.mobile-menu-toggle.active span:nth-child(2){ opacity: 0; }
.mobile-menu-toggle.active span:nth-child(3){ transform: translateY(-11px) rotate(-45deg); }

/* SPメニュー（スライド） */
.mobile-nav{
  position: fixed;
  top: 60px;
  left: 0;
  width: 100%;
  height: calc(100vh - 60px);
  background: #fff;

  transform: translateX(-100%);
  transition: transform .3s ease;
  z-index: 999;

  padding: 20px 0;
  display: flex;
  flex-direction: column;
}
.mobile-nav.active{ transform: translateX(0); }

.nav-link{
  padding: 20px 30px;
  color: #343434;
  font-size: 16px;
  font-weight: 600;
  border-bottom: 1px solid #f0f0f0;
  transition: .2s ease;
}
.nav-link:hover, .nav-link.active{
  color: #4373ed;
  background: #f9faff;
}

/* =========================
   Hero
========================= */
.hero-section{
  position: relative;
  padding: 120px 20px 60px; /* fixed header分 */
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-bg{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .9;
  z-index: 0;
}
.hero-content{
  position: relative;
  z-index: 1;
  width: 100%;
}
.hero-title{
  font-family: "Inter", Helvetica, sans-serif;
  font-weight: 800;
  font-size: 32px;
  line-height: 1.4;
  margin-bottom: 40px;
}
.hero-title .text-wrapper,
.hero-title .span,
.hero-title .text-wrapper-4 { color: #343434; }
.hero-title .text-wrapper-2,
.hero-title .text-wrapper-3 { color: #4373ed; font-size: 38px; }
.hero-title .text-wrapper-3{ letter-spacing: -5px; margin-right: 5px; }

.hero-desc{
  font-size: 16px;
  line-height: 1.8;
  color: #343434;
  font-weight: 500;
  text-shadow: 0 0 10px #fff;
  margin-bottom: 50px;
}

.cta-button{
  display: block;
  width: 100%;
  max-width: 340px;
  height: 60px;
  line-height: 60px;
  background: #4373ed;
  color: #fff;
  text-align: center;
  font-weight: 800;
  font-size: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(67,115,237,.3);
  transition: .3s ease;
  margin: 0 auto;
}
.cta-button:hover{
  background: #3562dc;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(67,115,237,.4);
}

/* =========================
   Sections (あなたの元CSSを基本踏襲)
========================= */
.about-section, .features-section, .cases-section{ position: relative; padding: 80px 20px; background: #fff; }

.deco-mask{ position: absolute; top: -50px; left: -20px; width: 160px; opacity: .5; pointer-events: none; }
.deco-subtract{ position: absolute; top: 0; right: 0; width: 100px; opacity: .1; pointer-events: none; }
.deco-mask-cases{ position: absolute; top: 0; left: -50px; width: 200px; opacity: .5; pointer-events: none; }
.deco-img-cases{ position: absolute; bottom: 0; right: -50px; width: 200px; opacity: .5; pointer-events: none; }

.section-header{ margin-bottom: 30px; }
.section-header.center{ text-align: center; }
.section-subtitle{ display:block; color:#4373ed; font-weight:700; font-size:12px; margin-bottom:8px; letter-spacing:1px; }
.section-title{ font-size:22px; font-weight:700; color:#343434; line-height:1.4; }

.about-image, .feature-image{
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 30px;
  box-shadow: 0 4px 15px rgba(0,0,0,.1);
}
.about-desc, .feature-desc{ font-size:16px; line-height:1.8; color:#343434; }
.about-desc{ margin-bottom: 40px; }
.secondary-button{
  display: block;
  width: 100%;
  max-width: 280px;
  height: 48px;
  line-height: 48px;
  background: #4373ed;
  color: #fff;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
  border-radius: 4px;
  margin: 0 auto 60px;
}
.secondary-button:hover{ background:#3562dc; }

.trust-message{
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  color: #343434;
  letter-spacing: 2px;
  line-height: 1.6;
  margin-bottom: 30px;
}
.certification-badges{ display:flex; justify-content:space-between; gap:10px; }
.badge{ width:32%; object-fit:contain; }

.features-list{ display:flex; flex-direction:column; gap:50px; }
.feature-item{ text-align:center; }
.feature-title{ font-size:18px; font-weight:700; margin-bottom:20px; }
.feature-desc{ text-align:left; margin-bottom:30px; }
.separator{ width:100%; height:1px; background:#e0e0e0; margin-top:20px; }

.case-grid{ display:grid; grid-template-columns:1fr; gap:30px; }
.case-card{
  background:#fff;
  border-radius:8px;
  overflow:hidden;
  box-shadow:0 4px 15px rgba(0,0,0,.08);
  transition:.3s ease;
}
.case-card:hover{ transform: translateY(-5px); }
.case-image{ width:100%; height:200px; }
.case-image img{ width:100%; height:100%; object-fit:cover; }
.case-content{ padding:20px; text-align:center; }
.case-category{ font-size:12px; font-weight:700; color:#4373ed; margin-bottom:10px; }
.case-result{ font-size:16px; font-weight:600; line-height:1.5; }

.cta-section{
  background:#4373ed;
  padding:80px 20px;
  text-align:center;
  color:#fff;
}
.cta-title{ font-size:22px; font-weight:700; line-height:1.5; margin-bottom:30px; }
.cta-desc{ font-size:16px; line-height:1.6; margin-bottom:40px; opacity:.9; }
.cta-buttons{ display:flex; flex-direction:column; gap:20px; align-items:center; }
.cta-button-white, .cta-button-gold{
  display:block; width:100%; max-width:280px; height:50px; line-height:50px;
  font-weight:700; font-size:14px; border-radius:4px; text-align:center;
}
.cta-button-white{ background:#fff; color:#4373ed; }
.cta-button-white:hover{ background:#f0f0f0; }
.cta-button-gold{ background:#e2b22e; color:#fff; }
.cta-button-gold:hover{ background:#d1a11d; }

.footer{ background:#1f2937; padding:60px 20px; color:#fff; }
.company-name{ font-weight:700; font-size:16px; margin-bottom:15px; }
.company-address, .company-tel{ font-size:12px; opacity:.8; margin-bottom:8px; }
.footer-separator{ width:100%; height:1px; background:rgba(255,255,255,.1); margin:20px 0; }
.footer-link{ display:block; color:#d2d2d2; font-size:12px; margin-bottom:10px; }
.footer-link:hover{ color:#fff; }
.copyright{ margin-top:30px; font-size:10px; color:#888; text-align:center; }

/* =========================
   Form (追加分)
========================= */
.form-section{ background:#fff; padding:70px 20px 80px; }
.form-inner{
  background:#f9faff;
  border:1px solid #e7eeff;
  border-radius:10px;
  padding:22px 16px;
  box-shadow:0 6px 18px rgba(0,0,0,.05);
}
.contact-form{ margin-top:14px; display:grid; gap:12px; }
.form-field{ display:grid; gap:6px; }
.form-label{ font-size:12px; font-weight:700; }
.form-input, .form-textarea{
  border:1px solid #d9e2ff;
  border-radius:8px;
  padding:12px;
  font-size:14px;
  outline:none;
}
.form-input:focus, .form-textarea:focus{
  border-color:#4373ed;
  box-shadow:0 0 0 4px rgba(67,115,237,.12);
}
.form-submit{
  height:52px; border:0; border-radius:8px;
  background:#4373ed; color:#fff;
  font-weight:800; font-size:16px; cursor:pointer;
}
.form-note{ margin:0; font-size:12px; text-align:center; opacity:.8; }

/* =========================
   Animations
========================= */
.fade-in{ opacity:0; animation: fadeIn .8s ease forwards; }
.delay-1{ animation-delay:.2s; }
.delay-2{ animation-delay:.4s; }
@keyframes fadeIn{
  from{ opacity:0; transform: translateY(20px); }
  to{ opacity:1; transform: translateY(0); }
}
.scroll-reveal{ opacity:0; transform: translateY(30px); transition: .6s ease; }
.scroll-reveal.visible{ opacity:1; transform: translateY(0); }

/* =========================
   PC (>=768px)
   要件：ナビをヘッダーに横並び、右端に黄色問い合わせ
========================= */
@media (min-width: 768px){
  /* PCでは header をstickyに（任意） */
  .header{
    position: sticky;
    height: 72px;
    padding: 0 24px;
    justify-content: space-between;
  }

  /* ハンバーガーは消す */
  .mobile-menu-toggle{ display: none; }

  /* navをヘッダー右寄せの横並びへ変換 */
  .mobile-nav{
    position: static;
    height: auto;
    transform: none !important;
    transition: none;
    background: transparent;
    padding: 0;

    flex-direction: row;
    align-items: center;
    gap: 16px;
    width: auto;
  }

  .nav-link{
    border-bottom: none;
    padding: 10px 8px;
    font-size: 14px;
    background: transparent;
  }
  .nav-link:hover, .nav-link.active{
    background: transparent;
    color: #4373ed;
  }

  /* 右側の問い合わせを一番右に固定（header-rightが右端） */
  .header-right{ gap: 12px; }

  /* HeroをPC向けに（1920×1080前提） */
  .hero-section{
    min-height: auto;
    padding: 90px 24px 70px; /* stickyヘッダー分を考慮 */
  }
  .hero-title{ font-size: 44px; line-height: 1.25; margin-bottom: 22px; }
  .hero-title .text-wrapper-2,
  .hero-title .text-wrapper-3{ font-size: 52px; }

  .cta-button{ margin: 0; } /* PCは左寄せ */
}

/* PC時：左右余白を300px確保（安全にclamp） */
@media (min-width: 768px){
  :root{
    --pc-side: clamp(40px, 8vw, 300px); /* 最大3000px、狭いPCでは40pxまで下げる */
  }

  /* セクション系の左右余白をまとめて上書き */
  .hero-section,
  .about-section,
  .features-section,
  .cases-section,
  .cta-section,
  .footer,
  .form-section{
    padding-left: var(--pc-side) !important;
    padding-right: var(--pc-side) !important;
  }

  /* ヘッダーも合わせる（左右に120px） */
  .header{
    padding-left: var(--pc-side) !important;
    padding-right: var(--pc-side) !important;
  }
}

/* =========================================================
   PC (>=768px) : Typography + Layout rules (About/Feature 横並び, Cases 2列)
   ========================================================= */
@media (min-width: 768px){

  /* ---------- タイポ：要件どおり ---------- */
  .section-subtitle{
    font-size: 20px !important;
    margin-bottom: 12px !important;
    letter-spacing: 1px;
  }
  .section-title{
    font-size: 36px !important;
    line-height: 1.25 !important;
  }

  /* 本文を18pxに統一（必要箇所だけ） */
  .about-desc,
  .feature-desc,
  .cta-desc,
  .case-result{
    font-size: 18px !important;
    line-height: 1.8 !important;
  }

  /* FeatureタイトルもPCで見やすく（任意だが推奨） */
  .feature-title{
    font-size: 28px !important;
    margin-bottom: 14px !important;
    text-align: left;
  }

  /* ---------- 左右余白：PCは最低120px狙い（小さいPCでは縮む） ---------- */
  :root{
    --pc-side: clamp(40px, 8vw, 120px);
  }
  .header,
  .hero-section,
  .about-section,
  .features-section,
  .cases-section,
  .cta-section,
  .footer,
  .form-section{
    padding-left: var(--pc-side) !important;
    padding-right: var(--pc-side) !important;
  }

  /* ---------- About：横並び ---------- */
  .about-wrap{
    display: grid;
    grid-template-columns: 1.05fr 0.95fr; /* 左：文章を少し広め */
    gap: 60px;
    align-items: center;
  }
  .about-col--media .about-image{
    margin-bottom: 0 !important;
  }
  /* ボタンは左寄せ */
  .secondary-button{
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* ---------- Features：各Featureを横並び ---------- */
  .features-list{
    gap: 42px !important; /* PCは少し詰める */
  }
  .feature-item{
    text-align: left !important;
  }
  .feature-wrap{
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 60px;
    align-items: center;
  }
  .feature-col--media .feature-image{
    margin-bottom: 0 !important;
  }

  /* 画像の高さが揃って見えるように（任意） */
  .about-image img,
  .feature-image img{
    width: 100%;
    height: auto;
    display: block;
  }

  /* ---------- Cases：カードはそのまま、2列グリッド ---------- */
  .case-grid{
    grid-template-columns: 1fr 1fr !important;
    gap: 30px !important;
  }

  /* ---------- Hero：PC向け（任意・既にあれば上書き不要） ---------- */
  .hero-section{
    min-height: auto !important;
    padding-top: 110px !important;
    padding-bottom: 80px !important;
  }
  .hero-title{
    font-size: 44px !important;
    line-height: 1.25 !important;
    margin-bottom: 22px !important;
  }
  .hero-title .text-wrapper-2,
  .hero-title .text-wrapper-3{
    font-size: 52px !important;
  }
  .cta-button{
    margin: 0 !important;       /* PCは左寄せ */
    max-width: 360px !important;
  }
}

/* =========================
   PC(>=768px)：trust + badges調整
========================= */
@media (min-width: 768px){

  /* 「毎日使う水だから…」を大きく、上余白を増やす */
  .trust-message{
    margin-top: 60px !important;   /* 上の余白を確保（ここが足りない） */
    margin-bottom: 22px !important;
    font-size: 22px !important;    /* 小さすぎる問題を解消 */
    line-height: 1.6 !important;
    letter-spacing: 1px !important;
  }

  /* バッジ3つ：小さくして中央に収める */
  .certification-badges{
    justify-content: center !important;
    gap: 24px !important;
  }
  .certification-badges .badge{
    width: 260px !important;       /* でかすぎ対策：好みで200〜240 */
    max-width: 22vw !important;    /* 画面に応じて縮む */
    height: auto !important;
  }
}

/* =========================
   PC(>=768px)：中央CTAを消して、右端問い合わせを黄色ボタン化
========================= */
@media (min-width: 768px){

  /* 1) 中央に出ている黄色CTA（.header-cta）を消す */
  .header-cta{
    display: none !important;
  }

  /* 2) 右端の「問い合わせ」（navの最後）を黄色ボタンにする */
  .mobile-nav .nav-link:last-child{
    background: #e2b22e !important;
    color: #ffffff !important;
    border: 1px solid #e2b22e !important;
    border-radius: 6px !important;
    padding: 10px 14px !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08) !important;
  }

  /* hover / active でも黄色維持（青くならないように） */
  .mobile-nav .nav-link:last-child:hover,
  .mobile-nav .nav-link:last-child.active{
    background: #d1a11d !important;
    border-color: #d1a11d !important;
    color: #ffffff !important;
  }
}

.case-card{
  text-decoration: none;
  color: inherit;
  display: block; /* aタグでもカード全体をブロック化 */
}
