@charset "UTF-8";

/* さわらびゴシック（ローカル読み込み） */
@font-face {
  font-family: "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "メイリオ", Meiryo, sans-serif;
  src: url('../fonts/SawarabiGothic-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}

/* ================================================================
   岩本町クリニック - スタイルシート（モバイルファースト設計）
   ----------------------------------------------------------------
   構成:
     1. リセット & ベース
     2. 共通レイアウト
     3. ヘッダー
     4. グローバルナビゲーション
     5. メインビジュアル（トップページ）
     6. お知らせ & 診療時間（トップページ）
     7. コンテンツ共通
     8. トップページ固有（OUR CONCEPT / PRカード / 院長紹介）
     9. サブページ固有（初診 / 診療科目 / 院内設備 / 院長紹介 / アクセス）
    10. サイドバー
    11. フッター
    12. 固定フッターバー（CTA）
    13. ページトップボタン
    14. レスポンシブ（min-width: 768px タブレット / min-width: 1024px デスクトップ）

   ブレークポイント:
     768px  ... タブレット
     1024px ... デスクトップ
   ================================================================ */

/* ================================================================
   1. リセット & ベース（モバイルベース）
   ================================================================ */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  padding-bottom: 0;
  font-family:
    "ヒラギノ角ゴ Pro W3",
    "Hiragino Kaku Gothic Pro",
    "メイリオ", Meiryo, Osaka,
    "ＭＳ Ｐゴシック", "MS PGothic",
    sans-serif;
  color: #313131;
  background: #ffffff;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0.04em;
  text-align: center;
}

a {
  color: #7cb342;
  text-decoration: none;
}
a:hover {
  opacity: 0.75;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
  border: 0;
}

ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, h5, h6, p { margin: 0; padding: 0; }
h1, h2, h3, h4, h5, h6 {
  font-family: "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "メイリオ", Meiryo, sans-serif;
  color: #313131;
  font-weight: 700;
}
h1 { font-size: 42px; line-height: 1.4; }
h2 { font-size: 36px; line-height: 1.4; }
h3 { font-size: 20px; line-height: 1.5; }
h4 { font-size: 18px; line-height: 1.5; }
p  { font-size: 16px; line-height: 1.7; }
small, .small-text { font-size: 13px; }

@media (max-width: 768px) {
  h1 { font-size: 28px; }
  h2 { font-size: 24px; }
  h3 { font-size: 18px; }
  h4 { font-size: 16px; }
}
dl, dt, dd { margin: 0; padding: 0; }
table { border-collapse: collapse; border-spacing: 0; }

/* ================================================================
   2. 共通レイアウト
   ================================================================ */
.innerBox {
  max-width: 1080px;
  margin: 0 auto;
  text-align: left;
  padding: 0 10px;
}

/* ハンバーガーメニュー（モバイルで表示） */
.hamburger {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: static;
  z-index: 1100;
  width: 48px;
  height: 48px;
  padding: 0;
  background: none;
  border: none;
  border-left: 1px solid rgba(0, 0, 0, 0.1);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
}

/* ハンバーガー開閉アニメーション */
.hamburger.is-active .hamburger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.hamburger.is-active .hamburger-line:nth-child(2) {
  opacity: 0;
}
.hamburger.is-active .hamburger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}
.newInfomation .news-date {
  color: #7cb342;
  font-size: 14px;
  margin-right: 10px;
}
.newInfomation .news-title {
  color: #8bc34a;
  font-size: 14px;
}

/* ================================================================
   5-2. ヒーロースライダー（ズーム＋フェード）
   ================================================================ */
.hero-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  /* モバイルベース: 縦長画像対応、max-height制限なし */
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.2s ease;
  overflow: hidden;
}

.hero-slide:first-child {
  position: relative; /* 高さ確保用 */
}

.hero-slide.is-active {
  opacity: 1;
  z-index: 1;
}

.hero-slide img {
  width: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
}

.hero-slide.is-active img {
  animation: heroZoom 8s ease forwards;
}

@keyframes heroZoom {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.15);
  }
}

/* ================================================================
   6. お知らせ & 診療時間（トップページ）
   ================================================================ */

/* 全幅ラッパー */
.topInfoSchedule-wrap {
  background: #fff;
  padding: 25px 0 30px;
  border-bottom: 1px solid #dcedc8;
}

.topInfoSchedule {
  display: flex;
  flex-direction: column;
  gap: 25px;
  margin: 0 auto;
  max-width: 1080px;
  text-align: left;
  padding: 0 10px;
}

/* --- お知らせ --- */
.topInfo {
  width: 100%;
}

.topInfo-heading {
  text-align: center;
  margin-bottom: 25px;
}

.topInfo-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.topInfo-list li {
  padding: 14px 0 14px 12px;
  border-bottom: 1px solid #ddd;
  display: flex;
  align-items: baseline;
  gap: 15px;
  font-size: 14px;
}
.topInfo-list li:first-child {
  border-top: 1px solid #ddd;
}
.topInfo-list .info-date {
  flex-shrink: 0;
  color: #999;
  font-size: 13px;
  white-space: nowrap;
}
.topInfo-list .info-cat {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  font-size: 11px;
  font-weight: 700;
  color: #558b2f;
  background: #f1f8e9;
  border: 1px solid #cfe3b6;
  border-radius: 999px;
  white-space: nowrap;
}
.topInfo-list .info-title a {
  color: #555555;
  text-decoration: underline;
}
.topInfo-list .info-title a:hover {
  color: #7cb342;
  opacity: 1;
}

.topInfo-more {
  text-align: center;
  margin-top: 20px;
}
.topInfo-more a {
  display: inline-block;
  border: 2px solid #7cb342;
  color: #7cb342;
  padding: 10px 40px;
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 1px;
  transition: all 0.3s;
}
.topInfo-more a:hover {
  background: #7cb342;
  color: #fff;
  opacity: 1;
}

/* --- 診療時間 --- */
.topSchedule {
  width: 100%;
}

.topSchedule-heading {
  text-align: center;
  margin-bottom: 25px;
}

/* 診療時間テーブル */
.topSchedule-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
  display: table;
  overflow-x: visible;
}
.topSchedule-table th,
.topSchedule-table td {
  border: 1px solid #dfdfdf;
  padding: 8px 6px;
  text-align: center;
  font-size: 13px;
}
.topSchedule-table thead th {
  background: #7cb342;
  color: #fff;
  font-weight: bold;
}
.topSchedule-table tbody td.time-col {
  background: #f1f8e9;
  font-weight: bold;
  white-space: nowrap;
  text-align: left;
  padding-left: 12px;
}

/* テーブル下部（休診日 + 注釈を横並び） */
.topSchedule-bottom {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-top: 12px;
  gap: 4px;
}

.topSchedule-meta {
  text-align: right;
  font-size: 13px;
}
.topSchedule-meta .closed-label {
  color: #8bc34a;
  font-weight: bold;
}
.topSchedule-meta .closed-days {
  display: inline-block;
  background: #ff9800;
  color: #fff;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  line-height: 26px;
  text-align: center;
  font-size: 12px;
  font-weight: bold;
  margin-left: 3px;
}
.topSchedule-meta .time-info {
  display: block;
  font-size: 14px;
  color: #555555;
  margin-top: 3px;
}
.topSchedule-meta .time-info strong {
  font-size: 15px;
  color: #555555;
}

.topSchedule-note {
  font-size: 12px;
  color: #555555;
  line-height: 1.7;
  text-align: right;
  white-space: normal;
}
.topSchedule-note span {
  color: #ff9800;
}

/* ================================================================
   7. コンテンツ共通（1カラムレイアウト）
   ================================================================ */
#main {
  background: #fff8f8;
  padding: 0;
}

#container {
  display: block;
  max-width: 1080px;
  margin: 0 auto;
  padding: 25px 10px 60px;
  text-align: left;
}

#content {
  width: 100%;
}

/* ================================================================
   8. トップページ固有セクション
   ================================================================ */

/* --- OUR CONCEPT セクション --- */
.concept-section {
  margin: 0 0 60px;
  padding: 0;
}
.concept-inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
}

/* 画像グリッド（元レイアウト復元） */
.concept-images {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 12px;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}
.concept-img--large {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
}
.concept-img--small img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  aspect-ratio: 4 / 3;
}

/* 大きい画像: 2枚中心回転カルーセル */
.concept-carousel {
  width: 100%;
  height: 100%;
  perspective: 1000px;
}
.concept-carousel-track {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 133.33%; /* 3:4 */
  transform-style: preserve-3d;
  animation: conceptSpin 8s ease-in-out infinite;
}
.concept-carousel-card {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.10);
}
.concept-carousel-card:nth-child(2) {
  transform: rotateY(180deg);
}
.concept-carousel-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@keyframes conceptSpin {
  0%   { transform: rotateY(0deg); }
  40%  { transform: rotateY(0deg); }
  50%  { transform: rotateY(180deg); }
  90%  { transform: rotateY(180deg); }
  100% { transform: rotateY(360deg); }
}

/* テキスト */
.concept-text {
  flex: 1;
  order: -1;
}
.concept-label {
  font-family: 'Lato', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  color: #999;
  margin: 0 0 12px;
  text-transform: uppercase;
}
.concept-heading {
  font-family: "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "メイリオ", Meiryo, sans-serif;
  font-size: 24px;
  font-weight: bold;
  line-height: 1.6;
  color: #333;
  margin: 0 0 20px;
}
.concept-heading span {
  color: #aed581;
}
.concept-desc {
  font-size: 15px;
  line-height: 1.9;
  color: #5a6b6a;
  margin: 0 0 24px;
}
.concept-features {
  list-style: none;
  padding: 0;
  margin: 0;
}
.concept-features li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  font-size: 15px;
  line-height: 1.6;
  color: #444;
}
.concept-features li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  background: #aed581;
  color: #fff;
  border-radius: 50%;
  font-size: 12px;
  line-height: 20px;
  text-align: center;
  font-weight: bold;
}

/* --- アクセス: 2カラム → モバイルは1カラム --- */
.access-two-col {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 30px 0;
}
.side-schedule .time-col {
  background: #dcedc8;
  color: #fff;
  font-weight: bold;
  white-space: nowrap;
  font-size: 13px;
}

/* ================================================================
   11. フッター
   ================================================================ */
#footer {
  background-image: url("../images/common/bg_01.png");
  background-repeat: repeat;
  padding: 25px 0 0;
  color: #7cb342;
}
.foot-detail .right { width: 100%; margin-bottom: 20px; }
.foot-schedule .time-col {
  font-weight: bold;
  white-space: nowrap;
  text-align: left;
}

/* ================================================================
   12. 固定フッターバー（電話予約 / WEB予約）
   ================================================================ */
.fixed-footer-bar {
  position: fixed;
  bottom: 20px;
  right: 15px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.fixed-footer-bar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
  transition: opacity 0.3s, transform 0.2s;
  gap: 2px;
}
.fixed-footer-bar a:hover {
  opacity: 0.9;
  transform: scale(1.05);
}

.fixed-footer-bar .footer-bar-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.fixed-footer-bar .footer-bar-icon svg {
  width: 22px;
  height: 22px;
}

.fixed-footer-bar .footer-bar-label {
  font-size: 9px;
  font-weight: bold;
  letter-spacing: 0.5px;
  line-height: 1;
  white-space: nowrap;
}

/* 電話ボタン（丸・白） */
.fixed-footer-bar .footer-tel {
  background: #fff;
  color: #555;
}

/* WEB予約ボタン（丸・ダークグレー） */
.fixed-footer-bar .footer-web {
  background: #555;
  color: #fff;
}

/* ================================================================
   12-B. 文字サイズ切り替え（全ページ共通）
   → css/services-mega.css に集約（sd-font-* 使用）。
   旧 .site-fontsize / body.site-font-*（.page-text 等のみ対象で実質未機能）は削除。
   ================================================================ */

/* ================================================================
   13. ページトップボタン
   ================================================================ */
#back-top {
  position: fixed;
  bottom: 100px;
  right: 15px;
  z-index: 999;
}
#back-top a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #aed581;
  color: #fff;
  text-align: center;
  font-size: 18px;
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.3s, transform 0.2s;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}
#back-top a:hover {
  opacity: 1;
}

/* ================================================================
   14. レスポンシブ
   ================================================================ */

/* --------------------------------------------------
   14-1. タブレット（min-width: 768px）
   -------------------------------------------------- */
@media (min-width: 768px) {
  .innerBox { padding: 0 15px; }
  .hamburger {
    width: 56px;
    height: 56px;
  }

  /* サブページヒーロー */

  /* コンテナ */
  #container { padding: 30px 15px 15px; }

  /* お知らせ + スケジュール */
  .topInfoSchedule { padding: 0 20px; }
  .topSchedule-table th,
  .topSchedule-table td { padding: 10px 12px; font-size: 14px; }

  /* CONCEPTセクション */
  .concept-heading { font-size: 24px; }

  /* 診療案内 */

  /* ヒーロースライダー: 縦長画像対応のまま */
  .hero-slider { max-height: none; }
  .hero-slide img { max-height: none; object-position: center center; }

  /* サブページ: 院内設備 */

  /* サブページ: 診療内容 */

  /* テーブル: 横スクロール */
  .access-table,
  .topSchedule-table,
  .foot-schedule,
  .side-schedule,
  .career-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* フッター */
  #footer { padding: 40px 0 0; }

  /* ページトップボタン */
  #back-top { bottom: 105px; right: 18px; }
  #back-top a { width: 64px; height: 64px; font-size: 18px; }
}

/* --------------------------------------------------
   14-2. デスクトップ（min-width: 1024px）
   -------------------------------------------------- */
@media (min-width: 1024px) {
  .innerBox { padding: 0 20px; }

  /* ハンバーガー: 非表示 */
  .hamburger {
    display: none;
  }

  /* ヒーロースライダー: PC用 max-height */
  .hero-slider { max-height: 560px; }
  .hero-slide img { max-height: 560px; object-position: center; }

  /* サブページヒーロー */

  /* コンテナ */
  #container { padding: 50px 0 10px; }

  /* お知らせ + スケジュール: 横並び */
  .topInfoSchedule-wrap { padding: 50px 0 60px; }
  .topInfoSchedule {
    flex-direction: row;
    gap: 40px;
    padding: 0;
  }
  .topInfo { width: 50%; }
  .topSchedule { width: 50%; }
  .topInfo-list li { padding-left: 0; }
  .topSchedule-table th,
  .topSchedule-table td { padding: 12px 8px; font-size: 14px; }
  .topSchedule-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
  }
  .topSchedule-meta { text-align: left; }
  .topSchedule-note { text-align: right; white-space: nowrap; }
  .topSchedule-table {
    display: table;
    overflow-x: visible;
  }

  /* CONCEPTセクション: 横並び */
  .concept-inner {
    flex-direction: row;
    gap: 40px;
  }
  .concept-text {
    order: 0;
  }
  .concept-images {
    max-width: none;
  }
  .concept-heading { font-size: 28px; }
  .concept-desc { font-size: 15px; }
  .concept-features li { font-size: 15px; }
  .access-two-col {
    flex-direction: row;
  }

  /* サイドバー */

  /* フッター */
  #footer { padding: 100px 0 0; }
  .foot-detail .right { width: 50%; margin-bottom: 0; }

  /* 固定サイドボタン: PC時 */
  .fixed-footer-bar {
    bottom: 30px;
    right: 25px;
    gap: 12px;
  }
  .fixed-footer-bar a {
    width: 70px;
    height: 70px;
    gap: 3px;
  }
  .fixed-footer-bar .footer-bar-icon svg {
    width: 24px;
    height: 24px;
  }
  .fixed-footer-bar .footer-bar-label {
    font-size: 12px;
  }

  /* ページトップボタン */
  #back-top { bottom: 120px; right: 28px; }
  #back-top a { width: 70px; height: 70px; font-size: 20px; }
}

/* ================================================================
   Nested Radius Section（参考: tatayama）
   ================================================================ */
.nested-radius {
  padding: 60px 24px;
  background: #ffffff;
}
.nested-radius-wrap {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}
/* 通常版（左角丸）は右端へ寄せる */
.nested-radius:not(.nested-radius--reverse) {
  padding-left: 0;
  padding-right: 0;
}
.nested-radius:not(.nested-radius--reverse) .nested-radius-wrap {
  max-width: none;
  margin: 0;
  padding-left: max(24px, calc((100vw - 1200px) / 2));
}
/* バナーセクション（左:トピックス / 右:バナー画像 / 両端寄せ） */
/* ===== トピックス＋mask_top 2バナー（右端寄せ・LINE+マイナの左右反転） ===== */
.nested-radius--banner {
  padding-left: 0;
  padding-right: 0;
  background: #ffffff;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}
.nested-radius.nested-radius--banner .nested-radius-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 24px !important;
  padding-right: 24px;
}
.nested-radius--banner .nested-outer {
  border-radius: 0;
  padding: 16px;
  background: transparent;
  border: none;
}
.nested-radius--banner .nested-inner {
  border-radius: 0;
  margin: 0;
  grid-template-columns: 2fr 1fr;
  align-items: stretch;
  gap: 24px;
  padding: 40px 0;
  background: transparent;
  border: none;
  display: grid;
}
.nested-radius--banner .nested-fixed-img {
  justify-self: stretch;
  align-self: stretch;
  width: 100%;
  height: 100%;
  max-width: none;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
}
.nested-radius--banner .nested-fixed-img img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
/* 左: トピックス（テキストカード／右の画像と同サイズ） */
.nested-radius--banner .nested-topix-card {
  justify-self: stretch;
  align-self: stretch;
  width: 100%;
  height: 100%;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
  padding: 32px 40px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.nested-radius--banner .nested-topix-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #558b2f;
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid #aed581;
}
.nested-radius--banner .nested-topix-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.nested-radius--banner .nested-topix-text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #555;
  margin: 0 0 14px;
}
.nested-radius--banner .nested-topix-link {
  display: inline-block;
  align-self: flex-start;
  padding: 10px 24px;
  background: #8bc34a;
  color: #fff;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 4px 12px rgba(139,195,74,.25);
  transition: background .3s, transform .3s, box-shadow .3s;
}
.nested-radius--banner .nested-topix-link:hover {
  background: #7cb342;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(139,195,74,.35);
}
/* お知らせスライダーカード（左） */
.nested-radius--banner .nested-topix-card--slider {
  position: relative;
  padding: 32px 64px;
}
.nested-radius--banner .topix-slides {
  flex: 1;
  display: grid;
  align-items: center;
}
.nested-radius--banner .topix-slide {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.nested-radius--banner .topix-slide.is-active {
  opacity: 1;
  visibility: visible;
}
.nested-radius--banner .topix-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: #7cb342;
  transition: color .3s;
}
.nested-radius--banner .topix-arrow:hover {
  color: #558b2f;
}
.nested-radius--banner .topix-arrow svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.nested-radius--banner .topix-arrow--prev { left: 10px; }
.nested-radius--banner .topix-arrow--next { right: 10px; }
/* バナー縦積み（右） */
.nested-radius--banner .nested-banner-stack {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}
.nested-radius--banner .nested-banner {
  display: block;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
  transition: transform .3s, box-shadow .3s;
}
.nested-radius--banner .nested-banner:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0,0,0,.2);
}
.nested-radius--banner .nested-banner img {
  display: block;
  width: 100%;
  height: auto;
}
@media (max-width: 768px) {
  .nested-radius--banner .nested-topix-card {
    aspect-ratio: auto;
    padding: 24px 24px;
  }
  .nested-radius--banner .nested-topix-card--slider {
    padding: 24px 48px;
  }
  .nested-radius--banner .topix-arrow--prev { left: 4px; }
  .nested-radius--banner .topix-arrow--next { right: 4px; }
  .nested-radius--banner .nested-banner {
    width: min(100%, 300px);
    margin: 0 auto;
  }
  .nested-radius--banner .nested-banner-stack {
    gap: 16px;
  }
  .nested-radius--banner .nested-topix-title {
    font-size: 1.25rem;
  }
}
@media (max-width: 768px) {
  .nested-radius--banner .nested-radius-wrap {
    padding-left: 20px !important;
    padding-right: 20px;
  }
  .nested-radius--banner .nested-outer {
    padding: 0;
    border-radius: 0;
  }
  .nested-radius--banner .nested-inner {
    border-radius: 0;
    margin: 0;
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 24px 0;
  }
  .nested-radius--banner .nested-fixed-img {
    max-width: 100%;
  }
}
.nested-outer {
  background: #aed581;
  border-radius: 40px 0 0 0;
  padding: 16px 16px 16px 48px;
}
.nested-inner {
  background: #7cb342;
  border-radius: 24px 0 0 0;
  margin-top: 24px;
  margin-right: -16px;
  margin-bottom: -16px;
  padding: 40px 48px 40px;
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 48px;
  align-items: center;
}
.nested-inner .nested-text {
  color: #fff;
}
.nested-inner .nested-tag {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  margin-bottom: 16px;
}
.nested-inner .nested-heading {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  line-height: 1.5;
  color: #fff;
  margin-bottom: 16px;
  border: none !important;
  padding: 0 !important;
}
.nested-inner .nested-heading::after {
  display: none !important;
}
.nested-inner .nested-desc {
  font-size: 1rem;
  line-height: 1.9;
  color: rgba(255,255,255,.92);
  text-align: left;
}
.nested-inner .nested-text {
  text-align: left;
}
/* 3Dモックアップ */
.nested-mockup {
  perspective: 1200px;
  position: relative;
  height: 390px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mockup-card {
  position: absolute;
  width: 247px; height: 362px;
  border-radius: 24px;
  overflow: hidden;
  border: 4px solid rgba(255,255,255,.25);
  transition: transform .6s cubic-bezier(.23,1,.32,1), opacity .6s ease;
}
.mockup-card img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.mockup-card.pos-left {
  transform: rotateY(-20deg) translateX(-100px) translateZ(-60px);
  z-index: 1; opacity: .7;
}
.mockup-card.pos-center {
  transform: rotateY(-10deg) translateZ(40px);
  z-index: 3; opacity: 1;
}
.mockup-card.pos-right {
  transform: rotateY(-3deg) translateX(100px) translateZ(-30px);
  z-index: 2; opacity: .8;
}
/* ドット */
.mockup-dots {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  justify-self: center;
  z-index: 10;
  grid-column: 2;
}
.mockup-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  transition: all .4s;
  cursor: pointer;
}
.mockup-dot.active {
  background: #ff9800;
  width: 32px;
  border-radius: 6px;
}
/* カードボタン */
.nested-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 32px;
}
.nested-card--feature {
  grid-column: 1 / -1;
}
.nested-card--feature p {
  font-size: 1.25rem;
  font-weight: 700;
  color: #333;
  margin-top: 4px;
}
.nested-card {
  display: block;
  padding: 14px 24px;
  background: #fff;
  border: none;
  border-radius: 20px;
  text-decoration: none;
  color: #558b2f;
  transition: opacity .3s, box-shadow .3s, transform .3s;
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
}
.nested-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
.nested-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: #558b2f;
  border: none !important;
  padding: 0 !important;
}
.nested-card h3::after { display: none !important; }
.nested-card p {
  font-size: 0.875rem;
  color: #666;
}

/* ===== 左右反転バリエーション（.nested-radius--reverse） ===== */
.nested-radius--reverse {
  padding-left: 0;
  padding-right: 0;
  background: #ffffff;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}
.nested-radius--reverse .nested-radius-wrap {
  max-width: none;
  margin: 0;
  padding-right: max(24px, calc((100vw - 1200px) / 2));
}
.nested-radius--reverse .nested-outer {
  border-radius: 0 40px 0 0;
  padding: 16px 48px 16px 16px;
}
.nested-radius--reverse .nested-inner {
  border-radius: 0 24px 0 0;
  margin-right: 0;
  margin-left: -16px;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}
.nested-radius--reverse .mockup-card.pos-left {
  transform: rotateY(20deg) translateX(-100px) translateZ(-30px);
  z-index: 2; opacity: .8;
}
.nested-radius--reverse .mockup-card.pos-center {
  transform: rotateY(10deg) translateZ(40px);
  z-index: 3; opacity: 1;
}
.nested-radius--reverse .mockup-card.pos-right {
  transform: rotateY(3deg) translateX(100px) translateZ(-60px);
  z-index: 1; opacity: .7;
}
.nested-radius--reverse .mockup-dots {
  grid-column: 1;
}
/* 固定画像（バナー横向き） */
.nested-radius--reverse .nested-fixed-img {
  justify-self: stretch;
  width: 100%;
  max-width: none;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
}
.nested-radius--reverse .nested-fixed-img img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 768px) {
  .nested-radius { padding: 40px 16px; }
  /* SPではカードボタンのフォント拡大 */
  .nested-card h3 {
    font-size: 1.25rem;
  }
  .nested-card p {
    font-size: 1rem;
  }
  /* SPでは外枠（短径装飾）を外してバナーを大きく見せる */
  .nested-radius--reverse .nested-outer {
    padding: 0;
    border-radius: 0;
    background: transparent;
  }
  .nested-radius--reverse .nested-inner {
    border-radius: 0;
    margin-left: 0;
    margin-right: 0;
    padding: 0;
    background: transparent;
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .nested-radius--reverse .nested-fixed-img {
    max-width: 100%;
  }
  .nested-outer {
    padding: 12px 12px 12px 24px;
    border-radius: 32px 0 0 0;
  }
  .nested-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 40px 24px 56px;
    border-radius: 20px 0 0 0;
    margin-top: 16px;
    margin-right: -12px;
    margin-bottom: -12px;
  }
  .nested-mockup {
    height: 400px;
    perspective: 600px;
    order: -1;
  }
  .mockup-card {
    width: 210px; height: 307px;
    border-radius: 16px;
    border-width: 3px;
  }
  .mockup-card.pos-left { transform: rotateY(-18deg) translateX(-40px) translateZ(-30px); }
  .mockup-card.pos-center { transform: rotateY(-10deg) translateZ(20px); }
  .mockup-card.pos-right { transform: rotateY(-3deg) translateX(40px) translateZ(-15px); }
  .mockup-dots {
    order: -1;
    grid-column: 1;
    padding: 0 0 8px;
  }
}
