/* =============================================================
   下層ページ専用スタイル
   トップLP（styles.css）と同じデザイントークン・配色・余白を使用
   既存LPの雰囲気を壊さないこと
   ============================================================= */

/* =========================
   サブページ共通
   ========================= */
.sub-section { padding: 92px 0; }
.sub-section--alt { background: rgba(255, 255, 255, 0.38); }

.sub-h2 {
  margin: 0 0 24px;
  font-family: var(--serif);
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.6;
  font-weight: 500;
  letter-spacing: 0.12em;
}

.rule {
  display: block;
  width: 64px;
  height: 1px;
  background: var(--text);
  margin: 22px 0 28px;
  border: 0;
}

/* =========================
   ヒーロー（下層ページ）
   トップLPの .hero と同じ構造：左にテキスト・右に写真
   ========================= */
.sub-hero {
  position: relative;
  min-height: 520px;
  padding-top: 76px;
  overflow: hidden;
  background: var(--base);
}
.sub-hero-bg {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 38%;
  background-position: right center;
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 1;
}
.sub-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(247, 244, 238, 1) 0%,
    rgba(247, 244, 238, 0.95) 30%,
    rgba(247, 244, 238, 0.65) 50%,
    rgba(247, 244, 238, 0.18) 78%,
    rgba(247, 244, 238, 0) 100%
  );
}
.sub-hero-content {
  position: relative;
  z-index: 3;
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
  padding: 80px 0;
}
/* テキストが写真エリアに被らないよう、幅を制限して左寄せに */
.sub-hero-content > * {
  max-width: 540px;
}
.sub-hero h1 {
  margin: 14px 0 0;
  font-family: var(--serif);
  font-size: clamp(32px, 3.6vw, 48px);
  line-height: 1.55;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--text);
}
.sub-hero-lead {
  margin: 24px 0 30px;
  color: #3f4b52;
  font-size: 15px;
  line-height: 2.05;
}
.sub-hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  max-width: 540px;
}

/* =========================
   イントロ（中央寄せ・短い導入文）
   ========================= */
.sub-intro {
  padding: 92px 0;
  text-align: center;
}
.sub-intro-inner {
  max-width: 760px;
  margin: 0 auto;
}
.sub-intro .rule { margin: 22px auto 28px; }
.sub-intro p {
  margin: 0 0 18px;
  color: var(--sub);
  font-size: 15px;
  line-height: 2.05;
}
.sub-intro p:last-child { margin-bottom: 0; }

/* =========================
   ABOUT（テキスト＋写真2カラム）
   ========================= */
.sub-about {
  padding: 92px 0;
  background: rgba(255, 255, 255, 0.38);
}
/* 2カラム全体を container よりさらに中央寄りに集めて、
   テキストと画像の重心を画面中央に揃える */
.sub-about-grid {
  display: grid;
  /* 左テキスト広め、右画像はやや狭くして右端への張り付きを緩和 */
  grid-template-columns: 1.05fr 0.85fr;
  gap: 56px;
  align-items: center;
  max-width: 1060px;
  margin: 0 auto;
}
.sub-about-text p {
  margin: 0 0 16px;
  color: var(--sub);
  font-size: 15px;
  line-height: 2.05;
}
.sub-about-text p:last-child { margin-bottom: 0; }
.sub-about-text strong { color: var(--text); font-weight: 600; }
.sub-about-image {
  margin: 0;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.08);
  /* 画像を列の左寄せにして、テキストとの距離を自然に詰める */
  max-width: 460px;
  margin-right: auto;
}
.sub-about-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

/* =========================
   FEATURES（3カード）
   ========================= */
.sub-features {
  padding: 92px 0;
}
.sub-features-head {
  text-align: center;
  max-width: 880px;
  margin: 0 auto 44px;
}
.sub-features-head .rule { margin: 22px auto 24px; }
.sub-features-head p {
  margin: 0;
  color: var(--sub);
  font-size: 14px;
  line-height: 2;
}
.sub-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.sub-feature {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  box-shadow: 0 18px 50px rgba(31, 44, 54, 0.07);
  padding: 36px 28px 32px;
  text-align: center;
}
.sub-feature-num {
  font-family: var(--english);
  font-size: 22px;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 16px;
}
.sub-feature h3 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.08em;
}
.sub-feature p {
  margin: 0;
  color: var(--sub);
  font-size: 13px;
  line-height: 1.95;
}

/* =========================
   METHODS（補強工事の3工法カード）
   ========================= */
.sub-methods {
  padding: 92px 0;
  background: rgba(255, 255, 255, 0.38);
}
.sub-methods-head {
  text-align: center;
  max-width: 880px;
  margin: 0 auto 44px;
}
.sub-methods-head .rule { margin: 22px auto 24px; }
.sub-methods-head p {
  margin: 0;
  color: var(--sub);
  font-size: 14px;
  line-height: 2;
}
.sub-methods-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.sub-method {
  background: #fff;
  border: 1px solid var(--line);
  padding: 44px 28px 36px;
  text-align: center;
}
.sub-method-num {
  font-family: var(--english);
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--gold);
  margin-bottom: 14px;
}
.sub-method h3 {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.08em;
}
.sub-method p {
  margin: 0;
  color: var(--sub);
  font-size: 13px;
  line-height: 1.95;
}
.sub-methods-note {
  margin: 28px 0 0;
  font-size: 12px;
  color: var(--sub);
  text-align: center;
}

/* =========================
   POINTS（控えめな箇条書き）
   ========================= */
.sub-points {
  padding: 92px 0;
}
.sub-points-head { margin-bottom: 40px; }
.sub-point-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.sub-point-list--3col { grid-template-columns: repeat(3, 1fr); }
.sub-point-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 8px;
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 0.08em;
}
.sub-point-list li::before {
  content: "";
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

/* =========================
   TARGET（4カード）
   ========================= */
.sub-target {
  padding: 92px 0;
  background: rgba(255, 255, 255, 0.38);
}
.sub-target-head {
  text-align: center;
  margin-bottom: 40px;
}
.sub-target-head .rule { margin: 22px auto 0; }
.sub-target-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.sub-target-card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 36px 26px;
  text-align: center;
}
.sub-target-label {
  display: block;
  font-family: var(--english);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--gold);
  margin-bottom: 14px;
}
.sub-target-card h3 {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.08em;
  position: relative;
  padding-bottom: 14px;
}
.sub-target-card h3::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 28px;
  height: 1px;
  background: var(--text);
}
.sub-target-card p {
  margin: 0;
  color: var(--sub);
  font-size: 13px;
  line-height: 1.95;
  text-align: left;
}

/* =========================
   FLOW（6ステップ）
   ========================= */
.sub-flow {
  padding: 92px 0;
}
.sub-flow-head { margin-bottom: 40px; }
.sub-flow-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.5);
}
.sub-flow-item {
  padding: 28px 14px;
  text-align: center;
  border-right: 1px solid var(--line);
}
.sub-flow-item:last-child { border-right: 0; }
.sub-flow-num {
  width: 50px;
  height: 50px;
  margin: 0 auto 14px;
  border-radius: 50%;
  border: 1px solid rgba(185, 149, 76, 0.45);
  display: grid;
  place-items: center;
  font-family: var(--english);
  color: var(--gold);
  font-size: 14px;
  letter-spacing: 0.1em;
}
.sub-flow-item h3 {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 500;
}
.sub-flow-item p {
  margin: 0;
  font-size: 11.5px;
  color: var(--sub);
  line-height: 1.7;
}

/* =========================
   FAQ
   ========================= */
.sub-faq {
  padding: 92px 0;
  background: rgba(255, 255, 255, 0.38);
}
.sub-faq-head { margin-bottom: 32px; }
.sub-faq-list {
  display: grid;
  gap: 12px;
  max-width: 920px;
}
.sub-faq-item {
  background: #fff;
  border: 1px solid var(--line);
  padding: 0 28px;
}
.sub-faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 32px 22px 0;
  font-family: var(--serif);
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  position: relative;
  display: flex;
  gap: 14px;
  align-items: center;
}
.sub-faq-item summary::-webkit-details-marker { display: none; }
.sub-faq-item summary::before {
  content: "Q.";
  font-family: var(--english);
  color: var(--gold);
  font-size: 16px;
  letter-spacing: 0.1em;
  flex-shrink: 0;
}
.sub-faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
  font-size: 18px;
  font-weight: 300;
  transition: transform 0.2s ease;
}
.sub-faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.sub-faq-item p {
  margin: 0;
  padding: 0 0 22px 30px;
  color: var(--sub);
  font-size: 13.5px;
  line-height: 2;
}

/* =========================
   CTA（ページ末尾の問い合わせ導線）
   ========================= */
.sub-cta {
  padding: 92px 0;
}
.sub-cta-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.sub-cta-inner .rule { margin: 22px auto 28px; }
.sub-cta-inner p {
  margin: 0 0 32px;
  color: var(--sub);
  font-size: 14.5px;
  line-height: 2;
}
.sub-cta-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

/* =========================
   レスポンシブ
   ========================= */
@media (max-width: 900px) {
  .sub-hero { min-height: 460px; align-items: end; }
  .sub-hero-bg { left: 0; opacity: 0.5; }
  .sub-hero::after {
    background:
      linear-gradient(180deg, rgba(247, 244, 238, 0.96), rgba(247, 244, 238, 0.78), rgba(247, 244, 238, 0.98));
  }
  .sub-hero-content { padding: 60px 0 30px; }

  .sub-about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .sub-features-grid,
  .sub-methods-grid {
    grid-template-columns: 1fr;
  }
  .sub-target-grid { grid-template-columns: 1fr 1fr; }
  .sub-point-list,
  .sub-point-list--3col { grid-template-columns: 1fr 1fr; }

  .sub-flow-list {
    grid-template-columns: 1fr 1fr;
  }
  .sub-flow-item { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .sub-flow-item:nth-child(2n) { border-right: 0; }
  .sub-flow-item:nth-last-child(-n+2) { border-bottom: 0; }
}

@media (max-width: 560px) {
  .sub-hero { padding-top: 64px; }
  .sub-hero h1 { font-size: 32px; letter-spacing: 0.1em; }
  .sub-hero-actions { flex-direction: column; }
  .sub-hero-actions .btn { width: 100%; }

  .sub-section,
  .sub-intro,
  .sub-about,
  .sub-features,
  .sub-methods,
  .sub-points,
  .sub-target,
  .sub-flow,
  .sub-faq,
  .sub-cta { padding: 64px 0; }

  .sub-target-grid,
  .sub-point-list,
  .sub-point-list--3col,
  .sub-flow-list { grid-template-columns: 1fr; }
  .sub-flow-item { border-right: 0 !important; border-bottom: 1px solid var(--line); }
  .sub-flow-item:last-child { border-bottom: 0; }
}
