@charset "UTF-8";

/* ==========================================================================
   1. 変数・共通ベース設定 (モバイルファースト)
   ========================================================================== */
:root {
  --primary-color: #112240; /* ディープネイビー */
  --accent-color: #cca43b; /* ゴールド */
  --text-color: #333333;
  --bg-light: #ededed;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans",
    "BIZ UDPGothic", Meiryo, sans-serif;
  color: var(--text-color);
  line-height: 1.7;
  background-color: #fff;
  overflow-x: hidden;
}

/* 全体ラップ（PCサイズ時に背景画像を敷くためのコンテナ） */
.site-wrapper {
  width: 100%;
  background: #fff;
}

.container {
  width: 100%;
  padding: 0 20px;
  margin: 0 auto;
}

.section-title {
  /* 先ほどGoogle Fontsで読み込んだ「Noto Serif JP」を指定、万が一読み込めない時はシステムの明朝体(serif)にする */
  font-family: "Noto Serif JP", serif;

  /* レスポンシブサイズ(前ステップのclampを引き継ぎ) */
  font-size: clamp(24px, 3.2vw + 12px, 28px);

  /* 900を指定することで、Noto Serif JPの最も太い「Black」スタイルが適用されます */
  font-weight: 900;

  text-align: center;
  margin-bottom: 40px;
  letter-spacing: 1px;
  background: white;
  color: #890800;
  transform: skewX(-20deg);
  line-height: 1.2;
  padding: 10px 5px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* コンバージョンボタン */
.btn {
  display: block;
  width: 100%;
  max-width: 320px;
  margin: 30px auto 0;
  padding: 16px 20px;
  background-color: #fff;
  color: var(--primary-color);
  font-size: clamp(18px, 1.6vw + 12px, 20px);
  text-align: center;
  text-decoration: none;
  font-weight: bold;
  border-radius: 50px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition:
    transform 0.2s,
    background-color 0.2s;
  border: solid var(--accent-color);
}
.btn:active {
  transform: scale(0.98);
}

/* ==========================================================================
   2. ヘッダー / ファーストビュー
   ========================================================================== */
.top-logo-bar {
  background-color: #fff;
  padding: 15px 0;
}

.top-logo {
  height: 30px;
  width: auto;
  object-fit: contain;
}

.hero {
  background-color: var(--primary-color);
  width: 100%;
}

.hero-image-wrapper {
  width: 100%;
  max-width: 750px;
  margin: 0 auto;
}

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

/* ==========================================================================
   3. お悩みセクション
   ========================================================================== */
.problems {
  background: linear-gradient(
    to bottom,
    var(--primary-color) 10%,
    var(--bg-light) 90%
  );
  padding: 60px 0;
}

.problem-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

/* 各塊の横並び設定 (画像と吹き出しのセット) */
.problem-item-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 10px;
}

/* QX.webp 画像のブロック (SE幅向けに最大横100px/縦120pxへ可変設定) */
.problem-q-img {
  /* 横幅：画面幅の21.33vwをベースに、最小75px 〜 最大100px の間で可変 */
  width: clamp(75px, 21.33vw, 100px);

  /* 縦幅：横幅に対して 1:1.2 の比率を保ち、最小90px 〜 最大120px の間で可変 */
  height: clamp(90px, 25.6vw, 120px);

  flex-shrink: 0;
  overflow: hidden;
}

.problem-q-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* 吹き出しのベース (画像が小さくなったのに合わせて、高さや余白を最適化) */
.problem-bubble {
  flex: 1;
  /* 吹き出しの高さも画面に合わせて最小85px 〜 最大105px に可変 */
  height: clamp(85px, 21.33vw + 5px, 105px);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
}

/* 奇数用の吹き出しのパディング微調整 */
.bubble-odd {
  background-image: url("../img/hukidashi_odd.webp");
  padding-left: clamp(
    15px,
    4vw + 2px,
    22px
  ); /* ツノの重なりを画面幅に合わせる */
}

/* 偶数用の吹き出しのパディング微調整 */
.bubble-even {
  background-image: url("../img/hukidashi_even.webp");
  padding-right: clamp(15px, 4vw + 2px, 22px);
}

/* 吹き出しの中のテキスト */
.problem-text {
  font-family: inherit;
  font-weight: bold;
  color: black;
  text-align: center;
  font-size: clamp(
    13px,
    1.8vw + 6px,
    15px
  ); /* 13px〜15pxの間で、吹き出しを絶対に突き破らないサイズに調整 */
  line-height: 1.4;
  margin: 0;
}
/* ==========================================================================
   4. つなぎセクション (to_forte_bg.webp)
   ========================================================================== */
.bridge-section {
  background-image: url("../img/to_forte_bg.webp");
  background-color: var(--bg-light);
  background-size: cover;
  background-position: center;
  width: 100%;
  height: auto;
  min-height: 210px;
}

/* ==========================================================================
   5. 強みセクション
   ========================================================================== */
.features {
  background-color: var(--primary-color);
  padding: 0px 0 0 0;
  overflow: hidden;
}

.feature-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 60px;
}

.feature-item {
  /* width: 100%;
  height: 20vh; */
  text-align: center;
  color: #fff;
  position: relative;
}

.feature-num-img {
  width: 150px;
}

.feature-item h3 {
  /* スマホ時15px 〜 最大18px */
  font-size: clamp(15px, 2.4vw + 6px, 18px);
  font-weight: bold;
  line-height: 1.4;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-wrap-mode: nowrap;
}

.feature-item h3 span {
  /* スマホ時22px 〜 最大26px */
  font-size: clamp(22px, 3.2vw + 10px, 26px);
}

/* 吹き出し・人物連動エリア */
.feature-cta-area {
  margin-top: 40px;
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
}

.deco-hukidashi {
  position: relative;
  width: 260px;
  text-align: center;
  margin-bottom: -10px;
  z-index: 2;
}

.hukidashi-line {
  width: 90%;
  height: auto;
}

.hukidashi-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--accent-color);
  font-weight: bold;
  font-size: 0.95rem;
  white-space: nowrap;
  line-height: 1.4;
}

.man-image {
  width: 80%;
  z-index: 1;
}

/* ==========================================================================
   6. 対象セクション（アイコングリッド）
   ========================================================================== */
.targets {
  padding: 60px 0;
  background-color: var(--bg-light);
  text-align: center; /* 基本的なテキストを中央寄せに */
}
.summary-header-group {
  margin-bottom: 50px;
}

/* 上半分：サマリーエリア */
.target-summary-box {
  margin-bottom: 40px;
}

.summary-badge {
  display: inline-block;
  background-color: var(--accent-color);
  color: #fff;
  font-weight: bold;
  font-size: clamp(15px, 2.4vw + 6px, 17.6px);
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 20px;
}

.summary-deco-img {
  max-width: 250px;
  margin: 10px auto;
}

.summary-lead {
  font-size: clamp(15px, 2.4vw + 6px, 17.6px);
  font-weight: bold;
  color: var(--primary-color);
  line-height: 1.5;
}

/* 小見出し */
.target-sub-title {
  font-size: 1.25rem;
  color: #890800;
  font-weight: bold;
  margin-bottom: 25px;
  position: relative;
  display: inline-block;
}

/* 3つの設備投資カードリスト（スマホ時は1カラム縦並び） */
.target-card-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 450px;
  margin: 0 auto 20px;
}

/* 各設備投資カード（角丸と軽いシャドウで立体感をプラス） */
.target-card-item {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px; /* カンプに合わせたきれいな角丸 */
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s;
}

.card-img-wrap {
  width: 100%;
  background: #f8fafc;
}

.card-img-wrap img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.card-text {
  padding: 15px;
  font-size: 0.95rem;
  font-weight: bold;
  color: #444;
  line-height: 1.4;
  text-align: center;
}

/* 解説テキスト */
.target-desc {
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.6;
  margin-bottom: 80px;
  padding: 0 10px;
}

/* 9つのアイコングリッド（スマホ時：3x3） */
.icon-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
}

.icon-box {
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.target-note {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-top: 25px;
  line-height: 1.5;
}
/* 各アイコンボックス：中身を縦並びに強制し、中央に揃える */
.icon-box {
  display: flex;
  flex-direction: column; /* 上下に並べる */
  align-items: center; /* 左右中央揃えにする */
  text-align: center;
}

/* 画像を包む枠 */
.icon-img-wrapper {
  /* 横幅：375pxのときに100pxになり、500px以上の画面（PC含む）でも最大100pxで固定 */
  width: clamp(80px, 26.67vw, 140px);

  /* 縦幅：横幅と合わせて正方形を維持、最大100pxで固定 */
  height: clamp(80px, 26.67vw, 140px);

  /* 下マージン：375pxのときに5pxになり、最大5pxで固定 */
  margin-bottom: clamp(4px, 1.33vw, 5px);
}

.icon-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* アスペクト比を保ったまま枠内に収める */
  display: block;
}

/* 画像の下に入れたテキストのスタイル */
.icon-text {
  font-family: inherit; /* 統一 */
  font-weight: bold;
  color: var(--text-color);
  line-height: 1.4;
  margin: 0;
  /* 文字数が多いアイコンもあるため、少しだけ小さめの適切なサイズにclamp */
  font-size: clamp(12px, 1.2vw + 8px, 14px);
}

/* ==========================================================================
   7. 実績（メダル）セクション
   ========================================================================== */
.achievements {
  padding: 60px 0 30px;
  background-color: var(--primary-color);
}

/* .medal-grid {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0px;
} */

.medal-item {
  width: 220px;
}
.medal-grid {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center; /* メダルを中央寄せに */
  gap: 0px;
  width: 100%;
}

/* ラッパー自体を均等に横並びさせる */
.medal-grid > .js-fade-wrapper {
  flex: 1; /* 3つのメダルを均等幅に */
  max-width: 220px; /* 元のサイズを超えないように制限 */
  width: 100%;
}

.medal-item {
  width: 100%; /* 親の幅（220px）にフィットさせる */
}

/* ==========================================================================
   8. 料金セクション（price.webp画像差し替え対応）
   ========================================================================== */
.price {
  background-image: url(img/footer_bg.jpg);
  background-size: cover;
  background-position: center;
  padding: 0 0 60px;
  text-align: center;
  background-color: var(--primary-color);
  color: #fff;
}

.price-image-wrapper {
  width: 100%;
  max-width: 450px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.price-sub,
.price-note {
  font-family: inherit; /* ゴシック体に統一 */
  font-size: clamp(15px, 2.4vw + 6px, 18px);
  font-weight: bold;
}

.price-sub,
.price-main {
  margin-bottom: 30px;
}

/* ==========================================================================
   9. フッター (logo_white.webp適用)
   ========================================================================== */
.footer {
  color: #fff;
  padding: 50px 0 10px;
  text-align: center;
  font-size: 0.85rem;
  background-image: url(../img/footer_bg.webp);
  background-size: cover;
}

.footer-logo-wrapper {
  margin-bottom: 50px;
  display: flex;
  justify-content: center;
}

.footer-logo {
  height: 36px;
  width: auto;
  object-fit: contain;
}

.footer .company-info {
  line-height: 1.8;
  color: var(--bg-light);
}

.footer .company-info a {
  color: var(--bg-light);
  text-decoration: none;
}

.company-info-container {
  margin-bottom: 40px;
}
.company-info-box {
  margin-bottom: 20px;
}

.rep-name {
  font-size: 20px;
}
/* ==========================================================================
   10. デフォルト（スマホ）隠し設定
   ========================================================================== */
.side-menu-left,
.side-banner-right {
  display: none;
}

/* ==========================================================================
   11. PC用レイアウトメディアクエリ（画面幅 768px 以上）
   ========================================================================== */
@media (min-width: 768px) {
  body {
    background-image: url("../img/PC_BG.webp");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
  }

  aside {
    padding-top: 40px;
  }

  /* 左右サイドと中央を統合するフレックスボックス */
  .pc-layout-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    max-width: 1400px;
    margin: 0 auto;
    position: relative; /* 子の fixed 配置のベースライン用 */
  }

  /* 中央のメインLP（max-width: 500pxに固定しスクロール可能に） */
  .site-wrapper {
    flex: 0 0 500px;
    width: 500px;
    max-width: 500px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.2);
    background: #fff;
    margin: 0 auto; /* 中央寄せ */
    position: relative;
    z-index: 10;
  }

  .container {
    padding: 0 20px;
  }

  .section-title {
    margin-bottom: 35px;
  }

  /* 【左サイド】メニュー設定 
    画面の特定位置（fixed）に完全にその場固定させます。
  */
  .side-menu-left {
    display: block;
    position: fixed;
    top: 60px;
    /* 中央の500pxの左側から、少し余白（280px分左側）を空けて固定配置 */
    left: calc(50% - 250px - 320px);
    width: 280px;
    max-width: 280px;
    z-index: 20;
  }

  .side-menu-sticky {
    position: relative;
  }

  .side-logo {
    max-width: 200px;
    margin-bottom: 25px;
  }

  .side-menu-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 12px;
  }

  .side-nav ul {
    list-style: none;
  }

  .side-nav ul li {
    margin-bottom: 10px;
  }

  .side-nav ul li a {
    display: block;
    font-size: 1rem;
    color: #444;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
  }

  .side-nav ul li a:hover {
    color: var(--accent-color);
  }

  .side-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 12px 24px;
    font-size: 0.9rem;
    color: #333;
    text-decoration: none;
    font-weight: bold;
    border: 2px solid #333;
    border-radius: 50px;
    transition: all 0.2s;
  }

  .side-btn:hover {
    background: #333;
    color: #fff;
  }

  /* 【右サイド】バナー設定 
    こちらも画面の右側の定位置（fixed）にその場固定させます。
  */
  .side-banner-right {
    display: block;
    position: fixed;
    top: 60px;
    /* 中央の500pxの右側から、少し余白（40px空け）の位置に固定配置 */
    left: calc(50% + 250px + 40px);
    width: 280px;
    max-width: 280px;
    z-index: 20;
  }

  .side-banner-sticky {
    position: relative;
  }

  .side-banner-box {
    width: 100%;
    height: 360px;
    background: #686b77;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.95rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  }

  /* 各セクション内のコンポーネント配置の最適化 */
  .deco-hukidashi {
    margin-bottom: 120px;
    margin-right: -15px;
  }

  .target-card-list {
    max-width: 100%;
  }

  .icon-grid {
    gap: 10px;
  }

  .btn:hover {
    background-color: #dfb84c;
    transform: translateY(-2px);
  }
  .js-fade-wrapper:nth-child(odd) .problem-text {
    right: 32px;
  }
  .js-fade-wrapper:nth-child(even) .problem-text {
    left: 32px;
  }
  .problem-text {
    font-size: 18px;
    bottom: 22px;
    width: 255px;
  }

  .price-note {
    font-size: 18px;
  }

  .bridge-section {
    min-height: 300px;
  }

  .problems .section-title br {
    display: none;
  }
}
/* ==========================================================================
   12. SP限定 TO TOP ボタン（特定位置からふわっと出現）
   ========================================================================== */
.sp-to-top-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px; /* カンプのサイズに合わせて調整してください */
  height: auto;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s,
    visibility 0.3s;
}

/* JavaScriptで動的に付与されるクラス（これがあるときだけ表示） */
.sp-to-top-btn.is-show {
  opacity: 1;
  visibility: visible;
}

.sp-to-top-btn img {
  width: 100%;
  height: auto;
}

/* PC版（画面幅768px以上）では完全に非表示にする */
@media (min-width: 768px) {
  .sp-to-top-btn {
    display: none !important;
  }
}
/* ==========================================================================
   13. スクロールアニメーション用のラッパークラス（スマホ・PC共通）
   ========================================================================== */
.js-fade-wrapper {
  opacity: 0;
  transform: translateY(30px); /* 30px下から */
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
  will-change: opacity, transform;
}

/* 画面内に入った時のスタイル */
.js-fade-wrapper.is-animated {
  opacity: 1;
  transform: translateY(0); /* 元の位置へ */
}

/* 横並び要素などのディレイ（時間差）効果 */
.delay-1 {
  transition-delay: 0.15s;
}
.delay-2 {
  transition-delay: 0.3s;
}
.delay-3 {
  transition-delay: 0.45s;
}

/* ==========================================================================
   14. セクション上下の隙間（変なライン）の強制解消
   ========================================================================== */
header,
.problems,
.bridge-section,
.features {
  /* 1. マージンの突き抜け（相殺）を強制的に防止 */
  overflow: hidden;

  /* 2. 物理的に1pxだけ下のセクションを引き上げて隙間を潰す */
  margin-bottom: -1px;
  position: relative;
}

/* 【重要】h1の中にある画像の下隙間（文字用ベースライン）を完全にゼロにする */
.hero-image-wrapper {
  line-height: 0;
  font-size: 0;
}

/* 【重要】重ね順を「上にあるセクションほど上」に正しく並び替える 
   これによって、上のセクションが下のセクションの境界線を確実に1px踏みつけます */
header {
  z-index: 5;
}
.problems {
  z-index: 4;
}
.bridge-section {
  z-index: 2;
}
.features {
  z-index: 2;
}
