/*
Theme Name: サガカケ テーマ
Theme URI: https://example.com/
Author: Your Name
Version: 1.0
Description: サガカケのオリジナルWordPressテーマ
*/
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;700&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css');
/* ここに全体のCSSを追加 */
@charset "utf-8";
/*==================================================
  ルート変数
==================================================*/ :root {
  --color-white: #fff;
  --color-black: #000;
  --color-primary: #48B7D1;
  --color-entry: #FFD500;
  --hamburger-width: 35px;
  --hamburger-height: 35px;
  --line-height: 4px;
  --line-gap: 6px;
  --z-bg: 1;
  --z-logo: 2;
  --z-bar: 2;
  --z-text: 3;
  --z-hamburger: 4;
  --z-menu: 99;
  --z-fixed: 5;
  --font-base: 'Noto Sans JP', sans-serif;
}
/*==================================================
  リセット
==================================================*/
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html, body {
  width: 100%;
  height: auto; /* 100% → auto */
  min-height: 100vh;
  font-family: var(--font-base);
  scroll-behavior: smooth;
  /* display: flex;       ← 一旦コメントアウト */
  /* flex-direction: column; */
  overflow-x: hidden;
}
.all-sections-bg {
  /* すべての高さをカバーする一枚の長い背景画像を用意 */
  background-image: url('/wp-content/themes/sagakake/images/all_bg.png');
  background-repeat: no-repeat;
  background-position: center top; /* 上端から貼り付け */
  background-size: cover; /* ビューポート幅にフィット。高さは画像の縦長で対応 */
}
.mobile-br {
  display: none;
}
/* モバイル時だけ表示 */
@media (max-width: 768px) {
  .mobile-br {
    display: block;
  }
}
/* 初期：見えない・下にずらす */
.js-fadein {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
/* ビューポート内に入ったとき付与 */
.js-fadein.is-visible {
  opacity: 1;
  transform: translateY(0);
}
#section1, #section2, #section3, #section4, #section5, #section6, #section7, #section8, #section9, #section10 {
  scroll-margin-top: 100px;
}
/*==================================================
  メインビジュアル（Hero）
==================================================*/
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  /* 背景画像 or スライダーはJS制御で .hero--video などを付与 */
}
/* ── ヒーロー背景スライダー ── */
.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: var(--z-bg); /* 背景レイヤー */
}
.hero-slider .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover; /* 画像をはみ出しなくカバー */
  background-position: center; /* 中心を基準に配置 */
  opacity: 0;
  transition: opacity 1s ease;
}
.hero-slider .slide.active {
  opacity: 1;
}
.hero-slider--sp {
  display: none;
}
@media (max-width: 767px) {
  .hero-slider--pc {
    display: none;
  }
  .hero-slider--sp {
    display: block;
  }
}
/*==================================================
  固定ロゴ
==================================================*/
.hero__logo {
  position: fixed;
  top: 0px;
  left: 0px;
  transform-origin: top left;
  transition: transform 0.2s ease-out, top 0.3s ease;
  z-index: var(--z-logo);
}
.hero__logo img {
  display: block;
  width: auto;
  height: 100vh; /* 初期サイズ。お好みで */
}
@media (max-width: 768px) {
  .hero__logo img {
    height: auto;
    max-height: 50vh;
    width: auto;
  }
}
/*==================================================
  タイトルバー & キャッチコピー
==================================================*/
.hero__title-bar {
  position: absolute;
  top: 40px;
  left: 0;
  width: 100%;
  height: 60px;
  background-color: var(--color-primary);
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: var(--z-bar);
}
.hero__title {
  position: absolute;
  top: 40px;
  right: 150px;
  line-height: 60px;
  font-size: 35px;
  font-style: italic;
  color: var(--color-white);
  white-space: nowrap;
  z-index: var(--z-text);
  letter-spacing: 2px;
}
@media (max-width: 768px) {
  .hero__title-bar {
    position: absolute;
    top: 15px;
    left: 0;
    width: 100%;
    height: 30px;
    background-color: var(--color-primary);
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: var(--z-bar);
  }
  .hero__title {
    position: absolute;
    top: 18px;
    right: 30px;
    line-height: 20px;
    font-size: 18px;
    font-style: italic;
    color: var(--color-white);
    white-space: nowrap;
    z-index: var(--z-text);
    letter-spacing: 2px;
  }
}
/* スクロール後にタイトルバーを隠す */
.hero__title-bar.scrolled {
  opacity: 0;
  visibility: hidden;
}
/*==================================================
  ハンバーガーメニュー
==================================================*/
.hamburger {
  position: fixed;
  top: 40px;
  right: 30px;
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.8) !important;
  border-radius: 50% !important;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  /* 追加で影などつけたい場合はここ */
}
.hamburger span {
  position: absolute; /* ここ重要！ */
  left: 18px; /* (80-45)/2 */
  width: 45px; /* 線の長さ */
  height: 2px; /* 線の太さ */
  background-color: #888;
  border-radius: 1px;
  transition: transform .3s, opacity .3s, top .3s;
}
/* 3本線の位置を上下に配置 */
.hamburger span:nth-child(1) {
  top: 26px;
}
.hamburger span:nth-child(2) {
  top: 39px;
}
.hamburger span:nth-child(3) {
  top: 52px;
}
/* --- open時は中央に寄せて回転！ --- */
.hamburger.open span:nth-child(1) {
  top: 39px;
  transform: rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  top: 39px;
  transform: rotate(-45deg);
}
/* --- スマホ（幅60px）の時 --- */
@media (max-width: 768px) {
  .hamburger {
    top: 60px;
    right: 10px;
    width: 60px;
    height: 60px;
  }
  .hamburger span {
    left: 12.5px; /* (60-35)/2 */
    width: 35px;
    height: 2px;
  }
  .hamburger span:nth-child(1) {
    top: 17px;
  }
  .hamburger span:nth-child(2) {
    top: 29px;
  }
  .hamburger span:nth-child(3) {
    top: 41px;
  }
  .hamburger.open span:nth-child(1) {
    top: 29px;
    transform: rotate(45deg);
  }
  .hamburger.open span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.open span:nth-child(3) {
    top: 29px;
    transform: rotate(-45deg);
  }
}
/* ── サイドメニュー全体 ── */
.side-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 300px;
  height: 100vh;
  background: rgba(239, 239, 239, 0.9); /* 透過グレー */
  transform: translateX(100%);
  transition: transform 0.5s ease;
  z-index: var(--z-menu);
}
.side-menu.open {
  transform: translateX(0);
}
@media (min-width: 769px) {
  .side-menu {
    width: 33.33vw; /* 画面の1/3幅 */
    max-width: 500px; /* 必要なら上限をつけてもOK */
    min-width: 320px; /* 必要なら下限も */
  }
}
/* ── リスト全体 ── */
.side-menu__list {
  list-style: none;
  margin: 0;
  padding: 60px 20px;
}
/* ── 各リストアイテム ── */
.side-menu__item {
  opacity: 0;
  transform: translateX(30px); /* 右から */
  animation: none;
  margin-top: 20px;
}
.side-menu__item:first-child {
  margin-top: 0;
}
.side-menu.open .side-menu__item {
  animation: slideIn 0.5s forwards ease-out;
}
/* アイコン（FontAwesome） */
.side-menu__item::before {
  content: "\f00c"; /* FA チェック */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: var(--color-primary);
  display: inline-block;
  margin-right: 10px;
}
.side-menu.open .side-menu__item {
  animation: slideIn 0.5s forwards ease-out;
}
/* ── リンクスタイル ── */
.side-menu__link {
  display: inline-flex;
  align-items: center; /* アイコンとテキスト縦中央 */
  gap: 50px !important; /* アイコンとテキストの間隔 */
  color: var(--color-primary);
  text-decoration: none;
  position: relative;
  padding: 8px 0;
  overflow: hidden;
  font-weight: 700;
}
@media (min-width: 769px) {
  .side-menu__link {
    font-size: 1.2rem;
  }
}
/* 点線の下線 */
.side-menu__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  border-bottom: 1px dotted var(--color-primary);
}
/* ── スライドインアニメーション ── */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
/* ── 順番に遅延をつける ── */
.side-menu__item:nth-child(1) {
  animation-delay: 0.1s;
}
.side-menu__item:nth-child(2) {
  animation-delay: 0.2s;
}
.side-menu__item:nth-child(3) {
  animation-delay: 0.3s;
}
.side-menu__item:nth-child(4) {
  animation-delay: 0.4s;
}
.side-menu__item:nth-child(5) {
  animation-delay: 0.5s;
}
.side-menu__item:nth-child(6) {
  animation-delay: 0.6s;
}
.side-menu__item:nth-child(7) {
  animation-delay: 0.7s;
}
.side-menu__item:nth-child(8) {
  animation-delay: 0.8s;
}
.side-menu__item:nth-child(9) {
  animation-delay: 0.9s;
}
.side-menu__item:nth-child(10) {
  animation-delay: 1.0s;
}
/*==================================================
  SNS固定アイコン
==================================================*/
.social-fixed {
  position: fixed;
  top: 50%;
  right: 30px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 20px;
  z-index: var(--z-fixed);
}
@media (max-width: 768px) {
  .social-fixed {
    top: 30%;
    right: 20px;
  }
  .single .social-fixed {
    display: none !important;
  }
}
.social-fixed a, a:hover {
  text-decoration: none;
}
/* リンクを正方形のボックスに統一 */
.social-fixed__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: #333; /* アイコンの色 */
  transition: background 0.3s, color 0.3s;
}
/* 画像はそのまま */
.social-fixed__link img {
  width: 32px;
  height: 32px;
}
/* FontAwesome はブロック要素にしてサイズを指定 */
.social-fixed__link i {
  display: block;
  width: 32px; /* アイコンサイズ */
  height: 32px;
  font-size: 32px; /* アイコンフォントの大きさ */
  line-height: 32px; /* 縦中央揃え */
  text-align: center; /* 横中央 */
}
/* ホバー時 */
.social-fixed__link a, a:hover {
  text-decoration: none;
}
@media (max-width: 768px) {
  .social-fixed__link {
    width: 25px;
    height: 25px;
  }
  /* 画像はそのまま */
  .social-fixed__link img {
    width: 25px;
    height: 25px;
  }
  /* FontAwesome はブロック要素にしてサイズを指定 */
  .social-fixed__link i {
    width: 25px; /* アイコンサイズ */
    height: 25px;
    font-size: 25px; /* アイコンフォントの大きさ */
    line-height: 25px; /* 縦中央揃え */
  }
}
/*==================================================
  エントリーボタン（菱形＋ゆっくり回転）
==================================================*/
/* ── エントリー用ボタン ── */
/* ボタン本体 */
.entry-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 160px;
  height: 160px;
  overflow: hidden;
  z-index: 100;
}
/* 回転する背景 */
.entry-btn__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('/wp-content/themes/sagakake/images/entry-bg.png') no-repeat center center;
  background-size: contain;
  /* 中心を軸にゆっくり回転 */
  transform-origin: center center;
  animation: rotateCW 20s linear infinite;
}
/* テキスト画像は固定で中央 */
.entry-btn__img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60%;
  pointer-events: none;
}
/* 時計回り回転 */
@keyframes rotateCW {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
@media (max-width: 768px) {
  .entry-btn {
    position: fixed;
    right: 20px;
    width: 130px;
    height: 130px;
    overflow: hidden;
    z-index: 100;
  }
  .entry-btn.is-hide {
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity 0.2s;
  }
}
.entry-btn.is-hide {
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity 0.2s;
}
/* ── スクロールインジケーター ── */
.scroll-indicator {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 150px;
  pointer-events: none;
  z-index: 999;
  opacity: 1;
  transition: opacity 0.5s ease;
}
.scroll-indicator.hidden {
  opacity: 0;
}
/* ── 縦書き “scroll” ── */
.scroll-indicator__text {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 0 110px;
  font-size: 13px;
  color: #FFFFFF;
  line-height: 1;
  letter-spacing: .2em;
  text-transform: uppercase;
  writing-mode: vertical-lr;
}
@media (max-width: 768px) {
  .scroll-indicator__text {
    font-size: 10px;
  }
}
/* ── トラック（線＋円） ── */
.scroll-indicator__track {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 100px;
}
/* 縦の白線 */
.scroll-indicator__line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 1px;
  height: 100%;
  background: #48B7D1;
}
/* アニメーションする白い円 */
.scroll-indicator__circle {
  position: absolute;
  bottom: 100%;
  left: -3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #48B7D1;
  animation: scroll-circle-move 3s ease-in-out infinite, scroll-circle-fade 3s ease-out infinite;
}
@keyframes scroll-circle-move {
  0% {
    bottom: 95px;
  }
  100% {
    bottom: 0;
  }
}
@keyframes scroll-circle-fade {
  0% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  80% {
    opacity: 0.9;
  }
  100% {
    opacity: 0;
  }
}
.hero__catch {
  position: absolute;
  /* タイトルバー top:47px + height:60px + margin-bottom:50px */
  top: calc(200px + 50px + 30px);
  right: 150px; /* 画面右端からの余白 */
  text-align: right;
  z-index: var(--z-text);
}
/* 各行のサイズ感はそのまま */
.animate-line {
  position: relative;
  font-size: 35px;
  font-weight: bold;
  line-height: 1.8;
  overflow: hidden;
  margin: 0;
  margin-bottom: 20px;
}
/* 背景のスライドイン */
.animate-line::before {
  content: "";
  position: absolute;
  top: 0;
  right: 80; /* 左ではなく右に寄せる */
  width: 0; /* 初期は幅0 */
  height: 100%;
  background: #fff;
  z-index: 1;
  animation: slideInBg 0.6s ease-out forwards;
}
@media (max-width: 768px) {
  .hero__catch {
    position: absolute;
    /* タイトルバー top:47px + height:60px + margin-bottom:50px */
    top: calc(20% + 60px + 50px);
    right: 20px; /* 画面右端からの余白 */
    text-align: right;
    z-index: 10;
  }
  /* 各行のサイズ感はそのまま */
  .animate-line {
    position: relative;
    font-size: 18px;
    font-weight: bold;
    line-height: 1.8;
    overflow: hidden;
    margin: 0;
    margin-bottom: 10px;
  }
}
.line1::before {
  animation-delay: 0.2s;
}
.line2::before {
  animation-delay: 1.0s;
}
.line3::before {
  animation-delay: 1.8s;
}
.line4::before {
  animation-delay: 2.6s;
}
/* 文字のフェードイン */
.animate-line span {
  position: relative;
  display: inline-block;
  z-index: 2;
  opacity: 0;
  transform: translateY(10px);
  animation: fadeInUp 0.4s ease-out forwards;
}
.line1 span {
  <strong > </strong > animation-delay: 0.5s;
}
.line2 span {
  animation-delay: 1.3s;
}
.line3 span {
  animation-delay: 2.1s;
}
.line4 span {
  animation-delay: 2.9s;
}
/* キーフレームは前述のまま */
@keyframes slideInBg {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* ── Section1 全体 ── */
.section1 {
  background-image: url('/wp-content/themes/sagakake/images/saga.png');
  background-position: center center;
  background-size: 30% auto;
  background-repeat: no-repeat;
  padding: 100px 20px;
}
/* ── 内側ラッパー ── */
.section1__inner {
  max-width: 1200px;
  margin: 0 auto;
}
/* ── キャッチコピー ── */
.section1__catch {
  font-size: 45px;
  font-weight: bold;
  line-height: 1.3;
  text-align: center;
  margin-bottom: 60px;
}
/* ── ２カラムレイアウト ── */
.section1__content {
  display: flex;
  gap: 0;
  align-items: flex-start;
  flex-wrap: nowrap;
}
/* 左カラム：40% 幅 + 2×2 グリッド */
.section1__left {
  flex: 0 0 40%;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: auto;
  column-gap: 0;
  row-gap: 30px; /* 縦の間隔 */
}
/* 左カラム内の画像共通 */
.section1__left img {
  display: block;
  width: 82%;
  height: auto;
  object-fit: cover;
}
/* ── ふわふわ上下移動アニメ ── */
@keyframes float-normal {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}
/* ── ふわふわ＋少し拡大 ── */
@keyframes float-large {
  0%, 100% {
    transform: translateY(0) scale(1.05);
  }
  50% {
    transform: translateY(-10px) scale(1.1);
  }
}
/* 1・4枚目：拡大アニメ */
.section1__left img:nth-child(1), .section1__left img:nth-child(4) {
  animation: float-large 10s ease-in-out infinite;
}
/* 2・3枚目：通常アニメ */
.section1__left img:nth-child(2), .section1__left img:nth-child(3) {
  animation: float-normal 20s ease-in-out infinite;
}
/* 各画像のアニメ開始遅延 */
.section1__left img:nth-child(1) {
  animation-delay: 0s;
}
.section1__left img:nth-child(3) {
  animation-delay: 0.8s;
}
.section1__left img:nth-child(2) {
  animation-delay: 1.5s;
}
.section1__left img:nth-child(4) {
  animation-delay: 2.8s;
}
/* 右カラム：60% 幅 */
.section1__right {
  flex: 0 0 60%;
  min-width: 0;
  position: relative;
}
/* 本文テキスト */
.section1__text p {
  font-size: 20px;
  line-height: 1.8;
  margin-bottom: 200px; /* ロゴ用スペース */
}
/* 右下ロゴ */
.section1__logo {
  position: absolute;
  bottom: 0;
  right: 0;
}
.section1__logo img {
  width: 500px;
  height: auto;
}
/* ── レスポンシブ ── */
@media (max-width: 768px) {
  .section1 {
    background-size: 80% auto;
  }
  /* 内側ラッパーはそのまま */
  .section1__inner {
    max-width: 100%;
    margin: 0 auto;
    padding: 0px 20px;
  }
  /* ２カラム → 縦並び に切り替え */
  .section1__content {
    display: flex;
    flex-direction: column;
    gap: 40px; /* 上下の間隔 */
  }
  /* 各カラム幅をフル幅に */
  .section1__left, .section1__right {
    flex: 0 0 100%;
  }
  .section1__logo img {
    width: 100%;
    height: auto;
  }
  .section1__text p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 150px; /* ロゴ用スペース */
  }
}
/* ── Section2 全体 ── */
.section2 {
  position: relative;
  overflow: visible;
}
/* ── 内側ラッパー ── */
.section2__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 20px;
}
/* ── メディア（動画＋ラベル） ── */
.section2__media {
  display: flex;
  justify-content: center; /* 中央寄せ */
  align-items: center; /* 高さ中央揃え */
  gap: 0; /* 要素間の隙間 */
  margin: 0 auto;
  width: 100%;
  position: relative;
  left: 100px; /* 全幅を使う */
}
/* ── 動画プレイヤー（レスポンシブ対応） ── */
.section2__player {
  flex: 0 0 auto; /* 自身のサイズを崩さない */
  width: 100%;
  max-width: 800px; /* 最大横幅800px */
  aspect-ratio: 16/9;
}
.section2__player iframe {
  width: 100%;
  height: 100%;
}
/* ── ラベル：横書きのまま縦置き ── */
.section2__label {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: .2rem;
  transform: rotate(90deg);
  transform-origin: center center;
  margin-left: -100px; /* プレイヤーとの隙間 */
  align-self: center; /* Flexbox で高さ中央 */
  white-space: nowrap;
}
/* ── モバイル時：縦並び＋横書きラベル ── */
@media (max-width: 768px) {
  .section2__media {
    flex-direction: column;
    width: 100%;
    gap: 16px; /* 縦方向の隙間 */
    left: 0px; /* 全幅を使う */
  }
  .section2__label {
    transform: none;
    margin: 0;
    text-align: center;
  }
  .section2__inner {
    max-width: 100%;
    margin: 0 auto;
    padding: 50px 20px;
  }
}
/* ===== Section3 全体背景（Section2 続き＋新背景レイヤー） ===== */
.section3 {
  position: relative;
  padding: 120px 20px; /* お好みで */
}
/* レイアウト用ラッパー */
.section3__inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}
/* ── 共通タイトル初期状態 ── */
.section-title {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  font-size: 45px; /* 基本サイズ */
  position: relative; /* ::after 用 */
  display: inline-block;
  margin-bottom: 20px;
}
/* ── レスポンシブ ── */
@media (max-width: 768px) {
  .section-title {
    font-size: 28px; /* 基本サイズ */
  }
}
/* ── 画面内に入ったら付与されるクラス ── */
.section-title.is-visible {
  opacity: 1;
  transform: translateY(0);
}
/* ── アンダーライン用モディファイア ── */
.section-title.has-underline::after {
  content: "";
  position: absolute;
  left: -10%;
  bottom: -6px;
  width: 120%;
  height: 5px;
  background-color: #007ACC;
  clip-path: polygon(3px 0%, /* 左上を3px右へ */ calc(100% - 3px) 0%, /* 右上を3px左へ */ 100% 100%, /* 右下 */ 0% 100% /* 左下 */
    );
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.6s ease-out 0.2s; /* フェードインより少し遅延 */
}
/* ── is-visible が付いたらアンダーラインを伸ばす ── */
.section-title.is-visible.has-underline::after {
  transform: scaleX(1);
}
/* ── サブタイトル ── */
.section3__subtitle {
  font-size: 20px;
  margin-top: 8px;
}
.section3__text {
  margin-top: 120px; /* 見出しとの間隔 */
  font-size: 20px; /* お好みで調整 */
  line-height: 1.6;
  text-align: left; /* 左寄せ */
  max-width: 700px; /* 行長の目安 */
  margin: 50px auto;
}
@media (max-width: 768px) {
  .section3__inner {
    max-width: 100%;
  }
  .section3__subtitle {
    font-size: 16px;
    margin-top: 8px;
  }
  .section3__text {
    margin-top: 120px; /* 見出しとの間隔 */
    font-size: 18px; /* お好みで調整 */
    line-height: 1.6;
    text-align: left; /* 左寄せ */
    max-width: 90%; /* 行長の目安 */
    margin: 50px auto;
  }
}
.support-network {
  max-width: 900px;
  margin: 0 auto;
  padding: 0px auto;
}
/* イントロ文 */
.support-network__intro {
  text-align: center;
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 40px;
  color: #333;
}
/* グリッド設定 */
.support-network__grid {
  display: grid;
  grid-template-areas:
    "top  top  top"
    "left triangle right";
  /* もともと column-gap: 20px; だったところを */
  column-gap: 5px; /* ← 10px に縮小 */
  row-gap: 40px;
  align-items: center;
  justify-items: center;
}
/* エリア指定 */
.support-network__item--top {
  grid-area: top;
  text-align: center;
}
.support-network__item--left {
  grid-area: left;
  text-align: left;
}
.support-network__item--triangle {
  grid-area: triangle;
}
.support-network__item--right {
  grid-area: right;
  text-align: left;
}
/* 共通アイテムスタイル */
.support-network__item h3 {
  font-size: 25px;
  margin-bottom: 8px;
  position: relative; /* ::before を使うときは便利 */
  padding-left: 25px; /* アイコン分だけ余白を開ける */
}
/* 見出しの先頭にアイコンを表示 */
.support-network__item h3::before {
  content: "";
  display: inline-block;
  width: 30px; /* アイコンの幅 */
  height: 30px; /* アイコンの高さ */
  background-image: url('/wp-content/themes/sagakake/images/icon-support.png'); /* アイコンのパス */
  background-size: contain;
  background-repeat: no-repeat;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}
.support-network__item p {
  font-size: 20px;
  line-height: 1.6;
  color: #555;
  margin: 0;
}
/* 三角形SVGのサイズ調整（必要なら） */
.support-network__item--triangle svg {
  display: block;
  width: 180px; /* お好みで */
  height: auto;
}
/* ── モバイル時：縦並びに切り替え ── */
@media (max-width: 768px) {
  .support-network {
    max-width: 90%;
  }
  /* 縦並び＋アイテム幅100% */
  .support-network__grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
  }
  /* 三角形は非表示解除＆絶対配置 */
  .support-network__item--triangle {
    display: block;
    position: absolute;
    /* 縦方向の中央付近に配置したい場合 */
    width: 100px; /* SVGのモバイル幅 */
    padding: 50px 0px 0px 200px;
  }
  /* 全アイテム幅100%、テキスト左揃え */
  .support-network__item {
    width: 100%;
    text-align: left;
  }
  /* 見出しとアイコンサイズを調整 */
  .support-network__item h3 {
    font-size: 18px;
    padding-left: 20px;
  }
  .support-network__item h3::before {
    width: 20px;
    height: 20px;
  }
  /* 本文フォントサイズ */
  .support-network__item p {
    font-size: 14px;
    line-height: 1.5;
  }
  .support-network__item--triangle svg {
    width: 100%;
    height: auto;
  }
}
.section3__inner, .section3__gallery {
  overflow: visible !important;
}
/* ===== 点線ボックス ===== */
.section3__dot-box {
  border: 2px dotted #6ac2d8;
  border-radius: 10px;
  padding: 20px;
  margin: 40px 0; /* 見出し＆ギャラリーとの間隔調整 */
  background: #FFFFFF
}
.section3__dot-box p {
  margin: 0;
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 20px;
}
/* ===== ギャラリー（ジグザグ配置） ===== */
.section3__gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
  overflow: visible;
  z-index: 0;
  margin: 0;
  padding-top: 25px;
}
/* ラッパ（リンク） */
.section3__gallery .supporter {
  position: relative; /* ←tooltipの基準 */
  display: inline-block; /* 画像サイズに追従 */
  outline-offset: 4px;
  text-decoration: none;
}
/* 各写真（既存のフワフワ継承） */
.section3__gallery .supporter img {
  display: block;
  width: 100px;
  height: 120px;
  animation: float 4s ease-in-out infinite;
  box-sizing: content-box;
}
@media (max-width: 768px) {
  .section3__gallery .supporter img {
    width: 25%;
    height: auto;
  }
}
/* ジグザグ（リンク要素に移行） */
.section3__gallery .supporter:nth-child(odd) {
  margin-top: -10px;
}
.section3__gallery .supporter:nth-child(even) {
  margin-bottom: -10px;
}
/* 遅延（リンクの順番で img に付与）*/
.section3__gallery .supporter:nth-child(12n+1) img {
  animation-delay: 0s;
}
.section3__gallery .supporter:nth-child(12n+2) img {
  animation-delay: .2s;
}
.section3__gallery .supporter:nth-child(12n+3) img {
  animation-delay: .4s;
}
.section3__gallery .supporter:nth-child(12n+4) img {
  animation-delay: .6s;
}
.section3__gallery .supporter:nth-child(12n+5) img {
  animation-delay: .8s;
}
.section3__gallery .supporter:nth-child(12n+6) img {
  animation-delay: 1.0s;
}
.section3__gallery .supporter:nth-child(12n+7) img {
  animation-delay: 1.2s;
}
.section3__gallery .supporter:nth-child(12n+8) img {
  animation-delay: 1.4s;
}
.section3__gallery .supporter:nth-child(12n+9) img {
  animation-delay: 1.6s;
}
.section3__gallery .supporter:nth-child(12n+10) img {
  animation-delay: 1.8s;
}
.section3__gallery .supporter:nth-child(12n+11) img {
  animation-delay: 2.0s;
}
.section3__gallery .supporter:nth-child(12n+12) img {
  animation-delay: 2.2s;
}
/* フワフワの keyframes（既存） */
@keyframes float {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-8px) scale(1.05);
  }
}
/* ── ツールチップ（ホバー/フォーカス/タップ用） ── */
.section3__gallery .supporter::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%) translateY(6px);
  opacity: 0;
  pointer-events: none;
  background: rgba(0, 191, 255, .85);
  color: #fff;
  font-size: 12px;
  line-height: 1.3;
  padding: 6px 8px;
  border-radius: 4px;
  white-space: nowrap;
  z-index: 2;
  transition: opacity .18s ease, transform .18s ease;
}
.section3__gallery .supporter::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 6px);
  transform: translateX(-50%) translateY(6px);
  opacity: 0;
  pointer-events: none;
  border: 6px solid transparent;
  border-top-color: rgba(0, 0, 0, .85);
  z-index: 2;
  transition: opacity .18s ease, transform .18s ease;
}
.section3__gallery .supporter:hover::after, .section3__gallery .supporter:hover::before, .section3__gallery .supporter:focus-visible::after, .section3__gallery .supporter:focus-visible::before, .section3__gallery .supporter.show-tip::after, .section3__gallery .supporter.show-tip::before {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
/* 動きに弱い方への配慮 */
@media (prefers-reduced-motion: reduce) {
  .section3__gallery .supporter::after, .section3__gallery .supporter::before {
    transition: none;
  }
}
/* ▼ SPは2列（～768px） */
@media (max-width: 768px) {
  .section3__gallery {
    /* そのまま flex でOK（gapはお好みで） */
    gap: 16px; /* ←25pxのままでも可 */
  }
  /* 2列化：列間のgapを引いた幅を指定 */
  .section3__gallery .supporter {
    flex: 0 0 calc((100% - 16px) / 2); /* gapに合わせて計算 */
    margin: 0 !important; /* ジグザグ無効化 */
  }
  /* 既存の「img{ width:25%; }」を上書き */
  .section3__gallery .supporter img {
    width: 80%;
    height: auto;
  }
}
/* ===== 左カラム ===== */
.examples-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}
.examples-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  font-size: 18px;
  line-height: 1.5;
}
/* アイコンを li の先頭に */
.examples-list li::before {
  content: "";
  display: block;
  position: absolute;
  left: 0;
  top: 50%;
  width: 20px;
  height: 20px;
  background-image: url('/wp-content/themes/sagakake/images/icon-support.png'); /* チェック等のアイコン */
  background-size: contain;
  background-repeat: no-repeat;
  transform: translateY(-50%);
}
.examples-note {
  font-size: 15px;
  color: #666;
  line-height: 1.6;
}
/* コンテナ */
.section3__examples-grid {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: clamp(16px, 3vw, 40px);
  max-width: 1200px; /* 任意 */
  margin: 0 auto;
}
/* 左右カラム */
.section3__examples-left {
  flex: 1 1 560px; /* 可変：広め */
  min-width: 280px;
}
/* ===== 右カラム ===== */
.section3__examples-right {
  display: flex;
  column-gap: 16px; /* 画像と吹き出しの間隔 */
  align-items: flex-start; /* 上端を揃える */
}
.examples-img {
  max-width: 45%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 16px;
}
/* 吹き出し */
.speech-bubble {
  display: inline-block;
  position: relative;
  background: #fff;
  border: 5px solid #d0cdbe;
  border-radius: 10px;
  padding: 16px 20px;
  font-size: 16px;
  line-height: 1.5;
  color: #333;
}
/* 吹き出しの三角（下向き） */
.speech-bubble::after {
  content: "";
  position: absolute;
  width: 30px; /* 三角形の辺長 */
  height: 30px;
  background-color: #d0cdbe;
  /* 直角二等辺三角形を左下向きに */
  clip-path: polygon(0 0, 100% 0, 0 100%);
  /* 吹き出しの左端から少し離し、下にはみ出す */
  left: 30px; /* お好みで微調整 */
  bottom: -30px; /* 三角形の高さの半分ほど */
}
/* ── モバイル時：サポート例を縦並びに ── */
@media (max-width: 768px) {
  .section3__examples-grid {
    display: flex;
    flex-direction: column;
    gap: 24px; /* 上下の間隔 */
  }
  /* 左右カラムとも幅100%に */
  .section3__examples-left, .section3__examples-right {
    width: 100%;
    max-width: none;
  }
  /* 画像は横幅50%→100%に */
  .examples-img {
    max-width: 50%;
    margin-bottom: 16px;
  }
  .examples-list li {
    font-size: 16px;
    line-height: 1.5;
  }
}
/* ── Section4 全体 ── */
.section4 {
  overflow: hidden;
  padding: 40px;
  margin-bottom: 200px;
}
@media (max-width: 768px) {
  .section4 {
    margin-bottom: 0px;
  }
}
/* ── スライダーラッパー ── */
.section4__slider {
  position: relative;
  width: 100%;
}
/* ── 各トラック共通 ── */
.section4__track {
  display: flex;
  gap: 50px;
  /* 全アイテム幅＋gap分を超えてループさせる */
  width: max-content;
  animation: scroll-left linear infinite;
}
/* ── 1行目だけ速度を遅く（行ごとにクラスを分ける） ── */
.section4__track--row1 {
  animation-duration: 70s;
  margin-top: 0;
}
/* ── 2行目例（速くしたい場合） ── */
/* .section4__track--row2 {
     animation-duration: 30s;
     margin-top: 20px;
} */
/* ── スライド内画像 ── */
.section4__track img {
  flex-shrink: 0;
  width: 320px;
  height: auto;
  object-fit: cover;
}
/* ── 交互に上下オフセット（row1のみ例） ── */
.section4__track--row1 img:nth-child(odd) {
  transform: translateY(-20px);
}
.section4__track--row1 img:nth-child(even) {
  transform: translateY(20px);
}
/* ── アニメーション定義 ── */
@keyframes scroll-left {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
.section5 {
  padding: 80px 20px;
  margin-bottom: 150px;
}
.section5__inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}
.section5__title {
  font-size: 2rem;
  margin-bottom: 8px;
}
.section5__subtitle {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 40px;
}
/* 流れ全体を横並びに */
.section5__flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 80px;
}
/* 各ステップボックス */
.section5__step {
  padding: 20px 24px;
  border: 3px solid #d0cdbe;
  border-radius: 5px;
  font-size: 1rem;
  width: 250px;
  height: 255px;
  text-align: left;
  background: #FFFFFF;
}
/* 1つ目だけプライマリカラー */
.section5__step--primary {
  border-color: #48B7D1;
  color: #48B7D1;
  width: 250px;
  height: 255px;
  text-align: left;
  background: #FFFFFF;
  display: flex;
  flex-direction: column;
  align-items: center; /* 子要素を横中央に */
  justify-content: center; /* 必要であれば縦中央にも */
}
/* ── レスポンシブ ── */
@media (max-width: 768px) {
  .section5 {
    padding: 80px 20px;
    margin-bottom: 0px;
  }
  .section5__step {
    width: 86%;
    height: 255px;
  }
  .section5__step--primary {
    width: 86%;
    height: 255px;
  }
}
.s5 {
  width: 100%;
  float: none;
  margin: 5px auto;
}
.s5-3 {
  width: 60%;
  float: right;
  margin: 5px 5px 0px 0px;
}
/* ── レスポンシブ ── */
@media (max-width: 768px) {
  .s5 {
    width: 80%;
    float: none;
    margin: 5px auto;
  }
  .s5-3 {
    width: 40%;
    float: right;
    margin: 5px 5px 0px 0px;
  }
}
/* 矢印 */
.section5__arrow {
  font-size: 1.5rem;
  color: #d0cdbe;
  user-select: none;
}
.section5__btn {
  display: inline-block;
  margin-top: 12px; /* テキストとの間隔 */
  padding: 8px 16px; /* ボタン内の余白 */
  border: 2px solid #48B7D1; /* 枠線 */
  border-radius: 4px; /* 角丸 */
  background: #48B7D1; /* 背景色をプライマリカラーに */
  color: #fff; /* 文字色は白 */
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  margin: 60px auto 10px;
}
/* ── レスポンシブ ── */
@media (max-width: 768px) {
  .section5__btn {
    display: inline-block;
    margin-top: 5px; /* テキストとの間隔 */
    padding: 20px 50px; /* ボタン内の余白 */
    border: 2px solid #48B7D1; /* 枠線 */
    border-radius: 4px; /* 角丸 */
    background: #48B7D1; /* 背景色をプライマリカラーに */
    color: #fff; /* 文字色は白 */
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    margin: 30px auto 0px;
  }
}
/* ホバー時のスタイル */
.section5__btn:hover {
  background: #fff;
  color: #48B7D1;
}
.section5__btn a {
  text-decoration: none;
  color: inherit;
}
@media (max-width: 768px) {
  .section5__flow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px; /* ステップ＆矢印の縦間隔 */
  }
  /* 矢印はブロック化して下に、90°回転 */
  .section5__arrow {
    display: block;
    transform: rotate(90deg);
    font-size: 1.5rem;
    color: #d0cdbe;
    margin: 8px 0; /* 上下余白 */
  }
}
.section5__circle {
  position: absolute;
  right: 0;
  width: 300px;
  height: 300px;
  background: var(--color-primary); /* プライマリカラー例：お好みで変更 */
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  z-index: 2;
  box-shadow: 0 4px 24px #0002;
  /* レスポンシブ配置用 */
  top: -180px;
  opacity: 0;
  transform: scale(0.6);
  transition: none;
  /* ↓追加：アニメーション用 */
  opacity: 0;
}
.section5__circle.is-appear {
  animation: circleScaleUp 1.1s cubic-bezier(.23, .94, .42, 1.2) 0.2s forwards;
}
@keyframes circleScaleUp {
  0% {
    opacity: 0;
    transform: scale(0.6);
  }
  60% {
    opacity: 1;
    transform: scale(1.1);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
.circle-label {
  font-size: 20px;
  margin-bottom: 12px;
  font-weight: 400;
  letter-spacing: 0.05em;
}
.circle-count {
  font-size: 90px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 0px;
}
.circle-unit {
  font-size: 45px;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.1;
}
.circle-date {
  font-size: 20px;
  margin-top: 8px;
  font-weight: 400;
}
/* section5__innerをrelativeにすることでabsolute配置が効く */
.section5__inner {
  position: relative;
}
/* レスポンシブで下に移動 */
@media (max-width: 900px) {
  .section5__circle {
    position: static;
    margin: 32px auto 0 auto;
    display: flex;
  }
}
@media (max-width: 600px) {
  .section5__circle {
    width: 80vw;
    height: 80vw;
    max-width: 300px;
    max-height: 300px;
    min-width: 180px;
    min-height: 180px;
    margin-bottom: 80px;
  }
  .circle-label {
    font-size: 18px;
    margin-bottom: 12px;
    font-weight: 400;
    letter-spacing: 0.05em;
  }
  .circle-count {
    font-size: 80px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 0px;
  }
  .circle-unit {
    font-size: 35px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.1;
  }
  .circle-date {
    font-size: 18px;
    margin-top: 8px;
    font-weight: 400;
  }
}
/* Section6 全体 */
.section6 {
  padding: 80px 20px;
  margin-bottom: 150px;
}
@media (max-width: 768px) {
  .section6 {
    margin-bottom: 50px;
  }
}
.section6__inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}
.section6__title {
  font-size: 2rem;
  margin-bottom: 40px;
}
/* 4列グリッド */
.section6__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 80px;
}
/* 各枠 */
.section6__item {
  position: relative;
  height: 320px;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 10px;
  background-size: cover;
  background-position: center;
  background-size: 95% auto;
  background-repeat: no-repeat;
}
/* 背景画像をそれぞれ設定 */
.section6__item.item1 {
  background-image: url('/wp-content/themes/sagakake/images/testimonial1.png');
}
.section6__item.item2 {
  background-image: url('/wp-content/themes/sagakake/images/testimonial2.png');
}
.section6__item.item3 {
  background-image: url('/wp-content/themes/sagakake/images/testimonial3.png');
}
.section6__item.item4 {
  background-image: url('/wp-content/themes/sagakake/images/testimonial4.png');
}
/* テキスト部分 */
.section6__text {
  padding: 12px;
  border-radius: 4px;
}
/* 引用文 */
.section6__text p {
  margin: 0 0 5px;
  font-size: 1rem;
  line-height: 1.4;
}
/* 著者 */
.section6__author {
  font-size: 0.9rem;
  opacity: 0.8;
  text-align: right;
}
/* 必要に応じて各アイテムのテキスト位置を微調整 */
.section6__item.item1 .section6__text {
  align-self: flex-start;
  margin-top: 10px;
}
.section6__item.item3 .section6__text, .section6__item.item4 .section6__text {
  align-self: flex-start;
  margin-top: 18px;
}
.section6__item.item2 .section6__text {
  align-self: flex-end;
}
@media (max-width: 768px) {
  .section6__inner {
    max-width: 100%;
  }
  .section6__grid {
    margin-top: 0px;
  }
  .section6 {
    margin-bottom: 0px;
    background: #FFFFFF;
  }
  .section6__item.item3 .section6__text, .section6__item.item4 .section6__text {
    align-self: none;
    margin-top: 18px;
  }
  .section6__item.item2 .section6__text {
    align-self: none;
  }
  /* 各枠 */
  .section6__item {
    position: relative;
    height: 350px;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 10px;
    background-size: cover;
    background-position: center;
    background-size: 95% auto;
    background-repeat: no-repeat;
  }
  .section6__item.item1 {
    width: 80%;
    text-align: left;
  }
  .section6__item.item1 .section6__text {
    align-self: flex-start;
    margin-top: 30px;
  }
  .section6__item.item2 {
    width: 80%;
    text-align: left;
  }
  .section6__item.item3 {
    width: 80%;
    text-align: left;
  }
  .section6__item.item4 {
    width: 80%;
    text-align: left;
  }
}
/* Section7 全体 */
.section7 {
  padding: 80px 20px;
  margin-bottom: 150px;
}
@media (max-width: 768px) {
  .section7 {
    margin-bottom: 50px;
  }
}
.section7__inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}
@media (max-width: 768px) {
  .section7__inner {
    max-width: 100%;
  }
}
/* リスト */
.section7__list {
  display: grid;
  /* 常に最大3列、各列幅は 280px 以上、残りを均等に伸ばす */
  grid-template-columns: repeat(3, minmax(280px, 1fr));
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 40px 0;
  justify-items: start; /* 各アイテムを左揃え */
}

.section7__item {
  background: #f9f9f9;
  border-radius: 6px;
  overflow: hidden;
  transition: transform .2s;
}
@media (max-width: 768px) {
  .section7__list {
    grid-template-columns: 1fr;
  }
  .section7__item {
    width: 90%; /* ← 1カラム時だけ100%に */
    box-sizing: border-box;
    margin: 0px auto;
  }
}
.section7__item:hover {
  transform: translateY(-4px);
}
.section7__link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
/* サムネイル */
.section7__thumb img {
  display: block;
  width: 100%;
  height: 280px;
  object-fit: cover;
}
/* 情報 */
.section7__info {
  padding: 16px;
  text-align: left;
}
.section7__date {
  display: block;
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 8px;
}
.section7__news-title {
  font-size: 1.1rem;
  line-height: 1.4;
  margin: 0;
}
/* View More ボタン */
.section7__more {
  text-align: center;
  margin-top: 32px;
}
.section7__more-btn {
  display: inline-block;
  padding: 10px 24px;
  border: 2px solid #000;
  border-radius: 4px;
  text-decoration: none;
  color: #000;
  transition: background .2s, color .2s;
}
.section7__more-btn:hover {
  background: #000;
  color: #fff;
}
/* Section8 / Section9 共通ラッパー */
.section8, .section9, .section10 {
  padding: 80px 20px;
  margin-bottom: 150px;
}
@media (max-width: 768px) {
  .section8, .section9, .section10 {
    margin-bottom: 50px;
  }
}
.s8-9title {
  letter-spacing: 0.7rem;
}
.section8__inner, .section9__inner, .section10__inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}
@media (max-width: 768px) {
  .section8__inner, .section9__inner, .section10__inner {
    max-width: 100%;
  }
}
/* ── フィード表示 ── */
.section8__feed, .section9__feed, .section10__feed {
  margin: 40px 0;
}
/* ── View More ボタン 共通 ── */
.section8__more, .section9__more, .section10__more {
  text-align: center;
  margin-top: 32px;
}
.section8__more-btn, .section9__more-btn, .section10__more-btn {
  display: inline-block;
  padding: 10px 24px;
  border: 2px solid #000;
  border-radius: 4px;
  text-decoration: none;
  color: #000;
  transition: background 0.2s, color 0.2s;
}
.section8__more-btn:hover, .section9__more-btn:hover, .section10__more-btn:hover {
  background: #000;
  color: #fff;
}
/* ── Section10 全体 ── */
.section10 {
  padding: 0; /* 必要に応じて上下余白を調整 */
  margin: 200px auto;
}
.footer-banners {
  width: 100%;
  display: flex;
  justify-content: center;
  background: #f8f8f8; /* バナー帯の色はお好みで */
  padding: 32px 0 24px 0;
}
.footer-banners__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  max-width: calc((200px * 7) + (24px * 6)); /* 7個＋gap6つ分 */
  width: 100%;
}
.footer-banner {
  display: block;
  width: 200px;
  height: 71px;
  box-sizing: border-box;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 8px #0001;
  transition: box-shadow .2s;
}
.footer-banner img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 12px;
}
/* レスポンシブ 2カラム */
@media (max-width: 768px) {
  .footer-banners__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    max-width: 98vw;
  }
  .footer-banner {
    width: 100%;
    height: 12vw; /* 高さはバランス見て調整OK（例：12vwや80pxなど） */
    min-height: 64px;
    max-height: 120px;
  }
}
.site-footer {
  background-color: #48B7D1;
  color: #fff;
  font-size: 14px;
}
.site-footer a {
  color: #48b7d1;
  text-decoration: none;
}
/* PC: 3カラム等幅 */
.site-footer__top {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  position: relative;
  align-items: flex-start;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 50px 20px 20px;
}
.site-footer__col {
  min-width: 0;
  max-width: 320px; /* 左右の最大幅を揃える */
  margin-top: 50px;
  padding: 0 10px;
  word-break: break-word;
}
.site-footer__col--center {
  max-width: 400px; /* ロゴだけ少し広く */
  margin-top: 0;
  text-align: center;
}
/* ヘッディング・ロゴ等 */
.site-footer__heading {
  font-size: 1.2rem;
  margin-bottom: 16px;
}
.site-footer__logo, .site-footer__logo--center {
  display: block;
  max-width: 220px;
  height: auto;
  margin-bottom: 16px;
}
.site-footer__logo--center {
  margin: 0 auto 24px;
}
.site-footer__logo--right, .site-footer__logo--left {
  display: block;
  max-width: 180px;
  height: auto;
  margin-bottom: 16px;
}
.site-footer__address {
  line-height: 2;
  font-style: normal;
}
.site-footer__social {
  display: flex;
  justify-content: center;
  gap: 16px;
}
.site-footer__social-link img {
  width: 25px;
  height: 25px;
  display: block;
}
/* フッター用ソーシャル横並び */
.site-footer__col--center .social-fixed {
  position: static !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
}
.site-footer__col--center .social-fixed__link {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.site-footer__col--center .social-fixed__link img {
  filter: brightness(0) invert(1);
  width: 85%;
  height: auto;
}
.site-footer__col--center .social-fixed__link i {
  color: #fff;
  font-size: 24px;
  line-height: 1;
}
/* 著作権・ボタン */
.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  padding: 12px 20px;
  text-align: center;
}
.site-footer__bottom p {
  margin: 0;
  font-size: 10px;
  line-height: 1.4;
}
.footer-contact-btn {
  background: #fff;
  border: 2px solid #fff;
  border-radius: 15px;
  padding: 0.8em;
  font-weight: 600;
  font-size: 0.8em;
  box-shadow: 0 2px 10px #0002;
  margin: 5px auto;
  transition:
    color 0.2s, background 0.2s, border 0.2s;
  display: block;
  width: 100%;
  max-width: 250px;
  box-sizing: border-box;
}
.footer-contact-btn a {
  color: var(--color-primary) !important;
  text-decoration: none;
}
.footer-contact-btn:hover, .footer-contact-btn:focus {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
  box-shadow: 0 4px 16px #0001;
}
/* --- レスポンシブ --- */
@media (max-width: 768px) {
  .site-footer__top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    padding: 20px;
    position: static;
  }
  .site-footer__col--center {
    order: 1;
    position: static !important;
    left: auto !important;
    top: auto !important;
    bottom: auto !important;
    transform: none !important;
    width: 100%;
    margin: 0 auto 24px !important;
    z-index: auto !important;
  }
  .site-footer__col--right {
    order: 2;
  }
  .site-footer__col--left {
    order: 3;
  }
  .site-footer__col {
    width: 100%;
    max-width: 100%;
    text-align: center;
    margin-top: 0;
    padding: 0;
  }
  .site-footer__col--left .site-footer__address, .site-footer__col--right .site-footer__address {
    display: block;
    margin: 0 auto;
    text-align: center;
  }
  .site-footer__logo--left, .site-footer__logo--right {
    margin: 0 auto 16px;
    max-width: 120px;
  }
  .site-footer__social {
    justify-content: center;
    gap: 16px;
  }
  .site-footer__bottom {
    padding: 12px 20px;
  }
  .footer-contact-btn {
    border-radius: 24px;
    padding: 0.6em 2em;
    font-weight: 600;
    font-size: 1em;
    margin: 50px auto;
  }
  .site-footer__logo, .site-footer__logo--center {
    max-width: 180px;
    margin: 20px auto 16px !important;
  }
}
/* single-post レイアウト */
.single-post {
  width: 100%; /* 幅はまず100% */
  max-width: 800px; /* ここで最大幅を制限 */
  margin: 0 auto; /* 真ん中に寄せる */
  padding: 100px 20px 80px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
/* ── ヘッダーエリア ── */
.single-post__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  position: relative;
  z-index: 1; /* ロゴより下に */
}
.single-post__logo {
  position: absolute;
  top: 0px; /* header の上に 150px 持ち上げる */
  z-index: 10; /* header より上に */
}
.single-post__logo img {
  height: 400px;
  width: auto;
  display: block;
}
@media (max-width: 768px) {
  .single-post__logo {
    position: absolute;
    top: 10px; /* header の上に 150px 持ち上げる */
    left: 10px;
    transform: translateX(0%);
    z-index: 0; /* header より上に */
  }
  .single-post__logo img {
    height: 60px;
    width: auto;
    display: block;
  }
}
/* ── パンくず ── */
.single-post__breadcrumbs {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 16px;
}
.single-post__breadcrumbs, .archive-post__breadcrumbs a {
  color: #48B7D1;
  text-decoration: none;
}
.single-post__breadcrumbs, .archive-post__breadcrumbs a:hover {
  text-decoration: underline;
}
/* ３．ヘッダー・フッター以外を伸長させる */
main {
  flex: 1;
}
/* ── タイトル ── */
.single-post__title {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 24px;
  line-height: 1.3;
}
/* ── 本文 ── */
.single-post__content {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 40px;
  flex: 1;
}
.single-post__content img {
  max-width: 100%;
  height: auto;
  margin: 1.5em 0;
}
/* ── ページ送り ── */
.single-post__pager {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  margin-top: 40px;
  border-top: 1px solid #ddd;
  padding-top: 20px;
}
.pager__prev a, .pager__next a {
  color: #48B7D1;
  text-decoration: none;
}
.pager__prev a:hover, .pager__next a:hover {
  text-decoration: underline;
}
/* ── レスポンシブ ── */
@media (max-width: 768px) {
  .single-post {
    padding: 100px 16px 60px;
  }
  .single-post__title {
    font-size: 1.6rem;
  }
  .single-post__pager {
    flex-direction: column;
    gap: 12px;
  }
}
/* 2列（タブレット以下） */
@media (max-width: 758px) {
  .archive-grid__item {
    width: calc(50% - 2vw);
  }
  .archive-grid {
    width: 90%;
    margin: 60px auto;
  }
}
.sns-share {
  display: flex;
  gap: 16px;
  margin: 40px 0 0;
}
.sns-share__item {
  text-decoration: none;
  color: #555;
  font-size: 1.2em;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color .2s;
}
.sns-share__item.twitter:hover {
  color: #1da1f2;
}
.sns-share__item.facebook:hover {
  color: #3b5998;
}
.sns-share__item.line:hover {
  color: #06c755;
}
.sns-share__item i {
  font-size: 1.3em;
}
.note-feed-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.note-feed-card {
  display: block;
  text-decoration: none;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
  background: #fff;
}
.note-feed-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
}
.note-thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #f6f6f6;
}
.note-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.note-title {
  padding: 10px 12px 12px;
  font-size: 15px;
  line-height: 1.5;
  color: #222;
  font-weight: 700;
  text-align: left;
}
@media (max-width:768px) {
  .note-feed-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width:480px) {
  .note-feed-grid {
    grid-template-columns: 1fr;
    max-width: 90%;
    margin: 0 auto;
  }
}
.section3__support-examples.js-fadein.is-visible {
  padding-top: 100px;
}