/*
Theme Name: Miimos
Author: Thomaz.LLC
Author URI: https://thomaz.jp/
License: © Thomaz.LLC
*/

@charset "UTF-8";

:root {
  --container: 1440px;
  --main: #040066;
  --primary: #333;
  --ink: #606060;
  --muted: #6b7280;
  --border: rgba(0, 0, 0, .08);
  --ff-display: "Noto Sans JP", sans-serif;
  --ff-base: "Noto Sans JP", sans-serif;
  --header-h: 72px;
}

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

html {
  background: url('img/fv_bg04.png') no-repeat center center fixed;
  background-size: cover;
  position: relative;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* ── スマホだけ安定表示に切替 ───────────────── */
@media (max-width: 767px) {

  /* html側の固定背景を無効化（色は任意のプレースホルダ） */
  html {
    background: #040066;
    /* 予備色 */
    background-attachment: scroll;
  }

  /* 画面全体に常時敷く“固定”の背景レイヤーを作る */
  body::before {
    content: "";
    position: fixed;
    inset: 0;
    /* 画面全体 */
    z-index: -1;
    /* 背面へ */
    pointer-events: none;
    background: url('img/fv_bg04.png') center center / cover no-repeat;
    /* iOSの描画最適化 */
    transform: translateZ(0);
    will-change: transform;
  }
}


body {
  min-height: 100svh;
}

html,
body {
  overflow-x: hidden;
  /* 横スクロール防止 */
}

body::before {
  /* content: ""; */
  /* position: fixed;   スクロールしても追従 */
  /* inset: 0;          全画面カバー */
  /* background: rgba(255, 255, 255, 0.08); 半透明の白 */
  /* backdrop-filter: blur(5px);          ぼかし */
  /* -webkit-backdrop-filter: blur(5px);  Safari対応 */
  /* z-index: -1;       背景として後ろに回す */
}

main {
  flex: 1 0 auto;
}

section {
  padding-right: 10%;
  padding-left: 10%;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.blue {
  color: #040066;
}

.blue_gradation {
  background: linear-gradient(to right, #040066, #247ECC);
  -webkit-background-clip: text;
  /* Safari/Chrome */
  -webkit-text-fill-color: transparent;
  background-clip: text;
  /* 標準 */
  color: transparent;
  /* 念のため */

}

.noto100 {
  font-family: "Noto Sans JP", sans-serif;
  font-optical-sizing: auto;
  font-weight: 100;
  font-style: normal;
}

.noto300 {
  font-family: "Noto Sans JP", sans-serif;
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: normal;
}

.noto600 {
  font-family: "Noto Sans JP", sans-serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-style: normal;
}

.container {
  width: 100%;
  padding: 0 5%;
  margin-inline: auto;
}

/* header */
/* ヘッダー全体をすりガラス風に */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  transition: 0.3s ease, color 0.3s ease;
}

.site-header .nav__list a {
  color: #040066;
  /* hero上は白文字 */
}

/* スクロール後（背景色つけて文字色切り替え） */
.site-header.scrolled {
  background: transparent;
}

.site-header.scrolled .nav__list a {
  color: #fff;
  /* メインカラーなど */
}


/* ============ ベース ============ */
.header__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 2rem;
  background: #fff;
}

.header__band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex: 1;
  padding: 0 2rem;
}

.logo {
  width: 180px;
  height: auto;
  padding: .5rem 0;
}

/* morph-styles.css */
.hamburger-morph {
  position: fixed;
  top: 0.4rem;
  right: 0.7rem;
  z-index: 1000;
  width: 48px;
  height: 48px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.hamburger-morph__icon {
  width: 100%;
  height: 100%;
}

.hamburger-morph__line {
  fill: none;
  stroke: #040066;
  stroke-width: 6;
  transition: stroke-dasharray 600ms cubic-bezier(0.4, 0, 0.2, 1),
              stroke-dashoffset 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

.hamburger-morph__line:nth-child(1) {
  stroke-dasharray: 60 207;
}

.hamburger-morph__line:nth-child(2) {
  stroke-dasharray: 60 60;
}

.hamburger-morph__line:nth-child(3) {
  stroke-dasharray: 60 207;
}

.hamburger-morph.active .hamburger-morph__line:nth-child(1) {
  stroke-dasharray: 90 207;
  stroke-dashoffset: -134;
}

.hamburger-morph.active .hamburger-morph__line:nth-child(2) {
  stroke-dasharray: 1 60;
  stroke-dashoffset: -30;
}

.hamburger-morph.active .hamburger-morph__line:nth-child(3) {
  stroke-dasharray: 90 207;
  stroke-dashoffset: -134;
}

.nav-morph {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  font-family: "Noto Sans JP", sans-serif;
  background: rgba(255, 255, 255, 0.98);
  clip-path: circle(0% at calc(100% - 44px) 44px);
  transition: clip-path 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 900;
}

.nav-morph.active {
  clip-path: circle(150% at calc(100% - 44px) 44px);
}

.nav-morph__wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.nav-morph__list {
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: center;
}

.nav-morph__item {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.nav-morph.active .nav-morph__item {
  opacity: 1;
  transform: translateY(0);
}

.nav-morph.active .nav-morph__item:nth-child(1) { transition-delay: 0.3s; }
.nav-morph.active .nav-morph__item:nth-child(2) { transition-delay: 0.4s; }
.nav-morph.active .nav-morph__item:nth-child(3) { transition-delay: 0.5s; }
.nav-morph.active .nav-morph__item:nth-child(4) { transition-delay: 0.6s; }

.nav-morph__link {
  position: relative;
  display: inline-block;
  padding: 20px;
  font-size: 20px;
  color: #040066;
  text-decoration: none;
  overflow: hidden;
}

.nav-morph__text,
.nav-morph__hover {
  display: block;
  transition: transform 0.3s ease;
}

.nav-morph__hover {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  transform: translateY(0%);
}

.nav-morph__link:hover .nav-morph__text {
  transform: translateY(-100%);
}

@media (min-width:768px){
  .sp_head {
    display: none;
  }
}

/* SP（〜767px）：左ロゴ／右ハンバーガー。PCナビ隠す、ドロワー使用 */
@media (max-width:767px){
  .header__nav {
    display: none;
  }
}


/* ▼ ロゴまわり（色は変えないで視認性UP） */
.header__logo-box {
  position: relative;
  isolation: isolate;
  /* 擬似要素のブレンド影響を閉じ込める */
}

/* 背景に“濃いめのガラス”プレートを敷く（ロゴの後ろだけ） */
.header__logo-box::before {
  content: "";
  position: absolute;
  inset: 0;
  /* ロゴよりひとまわり大きく */
  z-index: 0;
}

/* ロゴ本体にハロー（色は変えない） */
.header__logo-box img {
  position: relative;
  z-index: 1;
  display: block;
  height: auto;
  /* やわらかい内外のハローで背景から分離 */
}

/* ナビ */
.header__nav .nav__list {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__list a {
  text-decoration: none;
  color: #222;
  font-weight: 600;
}

.nav__list a:hover {
  opacity: .8;
}

/* CTAボタン（帯の右側・独立） */

.btn_box {
  margin: 0;
  font-family: "Noto Sans JP", sans-serif;
}

#btn_animation .btn_cta {
  display: block;
  position: relative;
  padding: 0 2rem;
  white-space: nowrap;
  line-height: 3;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .15em;
  text-decoration: none;
  color: #fbfbfb;
  border-radius: 150px;
  text-align: center;
  overflow: hidden;
  animation: btn_animation 4s ease-in-out alternate infinite;
  background: linear-gradient(45deg, #040066, #209cff, #3b82f6);
  background-size: 500% 500%;
}

#btn_animation .btn_cta:hover {
  text-decoration: none;
  color: #fbfbfb;
}

#btn_animation .btn_cta::before {
  position: absolute;
  content: '';
  display: inline-block;
  top: -180px;
  left: 0;
  width: 30px;
  height: 100%;
  background-color: #fbfbfb;
  animation: btn_animation 4.5s ease-in-out infinite;
}

@-webkit-keyframes btn_animation {
  0% {
    background-position: 0% 50%
  }

  100% {
    background-position: 100% 50%
  }

}

@media (max-width:767px) {
  #btn_animation .btn_cta {
    display: none;
  }
}


.logo {
  width: 202px;
  height: auto;
  padding: 1rem;

}

/* hero */
.hero {
  background: transparent;
  /* 縦方向中央寄せ */
  position: relative;
  /* ← canvas を重ねるために追加 */
  overflow: hidden;
  /* はみ出しを隠す */
}

.hero__inner {
  display: flex;
  width: 100%;
  margin: 0 auto;
  text-align: start;
  position: relative;
  z-index: 2;
  /* ← テキストを最前面に */
  padding: 150px 0 50px;
}

.hero__copy {
  margin: 0 auto;
}

.hero__logo {
  width: 186px;
  height: 59px;
}

/* ===== HERO: 白文字の視認性を上げる ===== */
.hero__title,
.hero__desc,
.hero__desc2 {
  color: #fff;
  /* 白固定 */
  /* text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.15),
    0 0 6px rgba(0, 0, 0, 0.45),
    0 0 12px rgba(0, 0, 0, 0.25);  */
}

.hero__title {
  font-size: 6rem;
  font-family: var(--ff-display);
  color: #fff;
  margin: 16px 0;
}

.hero__desc {
  color: #fff;
  font-size: 1.4375rem;
  text-align: start;
  font-weight: bold;
  margin-top: 30px;
  line-height: 1.8;
  font-family: "Noto Sans JP", sans-serif;
}

.hero__movie {
  width: 100%;
  margin: 0 auto;
  margin-top: 2rem;
  position: relative;
  z-index: 2;
}

/*  グリッジ  */
.glitch-wrapper {
  display: flex;
  flex-direction: column;
  align-items: normal;
  text-align: start;
}

/*   アニメーション文字   */
.text {
  display: block;
  justify-content: center;
  align-items: center;
  text-transform: uppercase;
  white-space: normal;
}


/* 行スイープ（左→右） */
.text-sweep {
  margin: 0;
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 600;
  line-height: 1.4;
  --hang-outdent: 0.42em;
  opacity: 0;
}

.text-sweep.is-in {
  opacity: 1;
}

/* ぶら下がり用：2・3行目の先頭の「 を行外に出して光学的に左揃え */
.text-sweep .hang {
  display: inline;
  /* text-indent をこの行だけに効かせる */
  text-indent: -0.55em;
  /* 「 を左にぶら下げる量（フォントにより ±調整可） */
  margin-left: -1.9rem;
}

/* 既存の .text-sweep .line__inner の clip-path/opacity のtransitionは削除してOK */
.text-sweep .line {
  display: block;
  overflow: hidden;
  /* 描画範囲を限定してペイントを減らす */
  contain: layout paint;
}

.text-sweep .line__inner {
  display: inline-block;
  /* 初期状態：少し左に寄せて（-6〜10% お好みで）＋うっすらブラーで自然に */
  transform: translate3d(-5%, 0, 0);
  opacity: 0;
  filter: blur(2px);

  /* 合成レイヤ固定＆スムージング */
  will-change: transform, opacity, filter;
  backface-visibility: hidden;

  /* なめらかさ重視のイージング＆時間（お好みで調整可） */
  transition:
    transform 400ms cubic-bezier(.22, 1, .36, 1),
    opacity 100ms cubic-bezier(.22, 1, .36, 1),
    filter 500ms cubic-bezier(.22, 1, .36, 1);
}

/* 発火後：左→右にスッと流れて表示 */
.text-sweep.is-in .line__inner {
  transform: translate3d(0, 0, 0);
  opacity: 1;
  filter: blur(0);
}

/* 行ごとの開始ディレイ（テンポ調整） */
.text-sweep .line:nth-child(1) .line__inner {
  transition-delay: 0ms;
}

.text-sweep .line:nth-child(2) .line__inner {
  transition-delay: 50ms;
}

.text-sweep .line:nth-child(3) .line__inner {
  transition-delay: 100ms;
}

/* ぶら下げ処理はそのまま（見た目の左端揃え） */
.text-sweep .hang {
  margin-left: -4rem;
}

@supports (hanging-punctuation: first) {
  .text-sweep .hang {
    text-indent: 0;
    hanging-punctuation: first;
  }
}

/* 文字レンダリングを少し安定させる（任意） */
.text-sweep {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* 動きを減らす設定の人には即時表示 */
@media (prefers-reduced-motion: reduce) {
  .text-flow .char {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

/* 対応ブラウザではネイティブのぶら下がりを優先（自動で最適化） */
@supports (hanging-punctuation: first) {
  .text-flow .hang {
    text-indent: 0;
    padding-left: 0;
    hanging-punctuation: first;
  }
}

/* レイアウト用（必要に応じて） */
.video-block {
  position: relative;
}

/* 初期状態：左20%を切り取り、80%に縮小して左基準で配置 */
.video-reveal {
  --left-hide: 20%;
  /* 左を何%隠すか（調整可） */
  clip-path: inset(0 0 0 var(--left-hide));
  transform: scale(0.8);
  transform-origin: center left;
  transition: clip-path 800ms ease, transform 800ms ease, filter 800ms ease;
  will-change: clip-path, transform;
}

.video-reveal video {
  display: block;
  width: 100%;
  height: auto;
}

/* 交差したら：全表示＆100%スケール */
.video-reveal.in-view {
  clip-path: inset(0 0 0 0);
  transform: scale(1);
}

/* 省エネ設定の人にはアニメーションを省略（任意） */
@media (prefers-reduced-motion: reduce) {
  .video-reveal {
    clip-path: inset(0 0 0 0);
    transform: none;
    transition: none;
  }
}


/* 背景の線アニメ用 canvas（背面） */
.hero__lines {
  position: absolute;
  inset: 0;
  /* セクション全面に敷く */
  z-index: 1;
  /* テキストより背面 */
  pointer-events: none;
}


/* WHY セクション */
.why {
  position: relative;
  padding: 0 0 96px;
  overflow: hidden;
  color: var(--muted);
  font-family: "Noto Sans JP", sans-serif;
}

/* 背景の大きな薄字 */
.why__bg {
  position: absolute;
  right: -2rem;
  top: -7rem;
  padding: 0 10%;
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 180px;
  line-height: .89;
  letter-spacing: 0;
  color: #e8e8f417;
  white-space: nowrap;
  pointer-events: none;
}

/* 右上ブランドロゴ */
.why__brand {
  max-width: 1440px;
  display: flex;
  flex-direction: column;
  margin: 10rem auto 6rem;
}

.why__brand img {
  position: absolute;
  top: -10rem;
  left: 5rem;
  margin-bottom: 32px;
}

/* タイトル＋本文の2カラム */
.why__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  padding: 0;
  align-items: center;
  gap: 30px;
}

.why__head {
  position: relative;
  /* ::beforeを絶対配置するために必要 */
}

.why__title {
  font-family: var(--ff-display);
  ;
  font-weight: 700;
  font-size: 64px;
  color: #fff;
  line-height: 1.2;
  letter-spacing: 0;
  margin-top: 40px;
  margin-left: 5rem;
}

.why__text {
  font-size: 1.2rem;
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 600;
  line-height: 1.5;
  color: #fff;
  z-index: 999;
}

.why__text p {
  margin-top: 12px;
}

.wt_box {
  position: relative;
  width: 100vw;
  /* ビューポート幅いっぱい */
  max-width: 100vw;
  /* html,body の max-width を無視させる */
  margin-left: calc(50% - 50vw);
  /* コンテナ中央基準を無視して全幅に */
  margin-right: calc(50% - 50vw);

  background: #fff;
  border-radius: 0;
  padding: 40px 20px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .06);

  --feather: 2.5rem;
  --blur: 1rem;
  isolation: isolate;
  margin-top: 10rem;
  margin-bottom: 6rem;
  padding: 5rem 3rem;
}

.wt_box::before {
  content: "";
  position: absolute;
  inset: calc(var(--feather) * -1);
  background: #fff;
  filter: blur(var(--blur));
  z-index: -1;
  pointer-events: none;
}

/* ロゴ行 */
.why__logos {
  width: 60%;
  margin: 5rem auto;
  background: #fff;
}


/* 白背景を画面幅いっぱいに */
.why__wrap {
  position: relative;
  width: 100vw;
  /* ビューポート幅いっぱい */
  max-width: 100vw;
  /* html,body の max-width を無視させる */
  margin-left: calc(50% - 50vw);
  /* コンテナ中央基準を無視して全幅に */
  margin-right: calc(50% - 50vw);

  background: #fff;
  border-radius: 0;
  padding: 40px 20px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .06);

  --feather: 2.5rem;
  --blur: 1rem;
  isolation: isolate;
}

.why__wrap::before {
  content: "";
  position: absolute;
  inset: calc(var(--feather) * -1);
  background: #fff;
  filter: blur(var(--blur));
  z-index: -1;
  pointer-events: none;
}

/* 画像とキャプションの並び・中央寄せ（任意） */
.why__wrap .why__logo {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto 12px;
}

.why__wrap p {
  margin: 0;
  text-align: center;
  color: #666;
  font-size: 14px;
}

.why__logos p {
  margin-top: 25px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
}

.why__logo {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* 大きな「×」をCSSで作成（線2本） */
.why__cross {
  width: 120px;
  height: 120px;
  position: relative;
}

.why__cross::before,
.why__cross::after {
  content: "";
  position: absolute;
  inset: 0;
  border-top: 1.5px solid #333;
  transform-origin: center;
}

.why__cross::before {
  transform: rotate(45deg)
}

.why__cross::after {
  transform: rotate(-45deg)
}

/* CTAボタン */
.why__cta {
  display: flex;
  justify-content: center;
}

.btn_why {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 3rem;
  background: #040066;
  color: #fff;
  font-size: 20px;
  border-radius: 999px;
  border: 2px solid #fff;
  font-weight: 700;
  letter-spacing: .02em;
  transition: .2s ease;
}

.btn_why:hover {
  transform: translateY(-1px);
  filter: brightness(.95)
}

/* ISSUE */
.issue {
  position: relative;
  color: var(--ink);
  padding: 120px 0;
  overflow: hidden;
  font-family: var(--ff-base);
}

.issue_tp {
  margin-top: 5rem;
  max-width: 1440px;
}

/* 背景「issue」＋見出し */
.issue__head {
  position: relative;
  margin-bottom: 40px
}

.issue__bg {
  position: absolute;
  left: 0;
  top: -12rem;
  margin: 0;
  font-family: var(--ff-display);
  font-weight: bold;
  font-size: 180px;
  line-height: .9;
  letter-spacing: 0;
  color: #e8e8f417;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 2px 4px rgba(255, 255, 255, 0.2));
}

.issue__title {
  position: relative;
  margin: 0;
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 60px;
  line-height: 1.4;
  color: #fff;
  margin-left: 11rem;
  padding-top: 2rem;
}

/* 行レイアウト */
.issue__row {
  position: relative;
  display: flex;
  gap: 40px;
  padding: 56px 10%;
  justify-content: space-evenly;
  align-items: center;
}

.issue__text {
  position: relative;
  width: 50%;
  display: flex;
  flex-direction: column;
  align-items: start;
  z-index: 1;
}

/* === Block1, Block3（奇数行）: 左端まで === */
.issue__row:nth-of-type(1) .issue__text::before,
.issue__row:nth-of-type(3) .issue__text::before {
  content: "";
  position: absolute;
  top: 6rem;
  bottom: -6rem;
  /* 下に余白を作る */
  right: -10rem;
  /* 右方向に広げる必要なし（テキスト幅で止まる） */
  width: 70vw;
  /* 画面幅いっぱい */
  height: 20vw;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: -1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* === Block2（偶数行）: 右端まで === */
.issue__row:nth-of-type(2) .issue__text::before {
  content: "";
  position: absolute;
  top: 6rem;
  bottom: -6rem;
  left: -10rem;
  width: 70vw;
  /* 画面幅いっぱい */
  height: 20vw;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: -1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.issue__text::after {
  content: "";
  background: #333333;
}

.issue__row--rev {
  grid-template-columns: .95fr 1.05fr;
}

.issue__row--rev .issue__text {
  order: 2
}

.issue__row--rev .issue__media {
  order: 1
}

/* テキスト群 */
.issue__eyebrow {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: .02em;
  margin: 0 0 8px;
  opacity: .8;
}

.issue__label {
  width: 80%;
  color: #209cff;
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 40px;
  line-height: 1.18;
  margin: 0 0 12px;
}

.issue__desc {
  width: 100%;
  color: #fff;
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.6;
  margin: 0;
  margin-top: 10px;
}

/* 画像（プレースホルダ差し替え想定） */
.issue__media {
  width: 50%;
  height: auto;
  position: relative;
  margin: 0;
  overflow: hidden;
  min-height: 240px;
  box-shadow: 0px 0px 25px rgba(255, 255, 255, 0.09);
  z-index: 100;
}

.issue__media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
}

/* ===== ABOUT section ===== */
.about {
  position: relative;
  background: var(--surface);
  color: var(--ink);
  padding: 120px 0;
  overflow: hidden;
  font-family: var(--ff-base);
}

/* 見出し行 */
.about__head {
  max-width: 1440px;
  position: relative;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
  align-items: end;
  margin: 0 auto 56px;
}

/* 左に巨大な薄字（実体h2） */
.about__bg {
  margin: 0;
  line-height: 1;
  white-space: pre-line;
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 150px;
  letter-spacing: 0;
  color: #fff;
  user-select: none;
  pointer-events: none;
}

/* 右側：ロゴ＋タイトル＋導入文 */
.about__lead {
  display: flex;
  flex-direction: column;
  align-items: end;
  margin-right: 4rem;
}

.about__brand {
  margin: 6px 0;
}

.about__brand img {
  width: 363px;
  height: 115px;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(255, 255, 255, 0.2));
}

.about__title {
  font-family: var(--ff-display);
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  margin: 0 0 16px;
  color: #fff;
}

.about__intro {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
  margin: 0;
}

/* モザイクレイアウト：2カラム×3行 */
.about__flex {
  max-width: 1440px;
  display: flex;
  margin: 3rem auto;
  padding: 0 10%;
  flex-wrap: nowrap;
  /* 折り返し必須 */
  align-items: center;
  justify-content: space-evenly;
}

.about .container .about__flex:nth-of-type(2) {
  margin: 6rem auto 0;
}

.about .container .about__flex:nth-of-type(3),
.about .container .about__flex:nth-of-type(4) {
  margin: 6rem auto 0;
}

/* 各要素の基本：横2カラム分 */
.about__flex>* {
  flex: 1 1 calc(50% - 16px);
  box-sizing: border-box;
}

/* 画像の比率調整（例：16:9） */
.about__media {
  aspect-ratio: 16/9;
  overflow: hidden;
}

.about__media img {
  max-width: 845px;
  width: 80%;
  height: auto;
  display: block;
  margin-left: 50px;
  border-radius: 10px;
  filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.5));
}

/* テキストカード */
.about__card {
  font-size: 1.5rem;
  font-weight: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  /* about__card--main の意図も踏襲 */
  padding: 0;
}

.about__card p {
  line-height: 1.5;
  /* 40%枠の中で行幅が広すぎるのを防ぐ（任意） */
  max-width: 38ch;
  color: #fff;
}

/* 特殊サイズの調整（必要に応じて） */
.about__media--wide {
  flex: 1 1;
  /* 横幅いっぱい */
}

.about__card--main {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== ABOUT 60/40 固定比率 ===== */

/* まず既存の 50% 基準を打ち消す */
.about__flex>* {
  flex: 0 0 auto;
  /* 伸縮させない */
}

/* デスクトップ：画像50% / テキスト50% を維持 */
.about__media {
  flex-basis: 50%;
}

.about__card {
  flex-basis: 50%;
  justify-content: space-between;
}


/* ===== PROCESS（静的2×2レイアウト） ===== */
.process {
  position: relative;
  color: var(--ink);
  padding: 120px 0;
  font-family: var(--ff-base);
}

/* 見出し */
.process__head {
  max-width: 1440px;
  position: relative;
  margin: 0 auto 50px;
}

.process__bg {
  position: absolute;
  left: 0;
  top: -6rem;
  margin: 0;
  font-family: var(--ff-display);
  font-weight: bold;
  font-size: 150px;
  line-height: 1;
  color: #e8e8f417;
  pointer-events: none;
  user-select: none;
}

.process__title {
  position: relative;
  margin: 0 0 0 11rem;
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 64px;
  line-height: 1.2;
  color: #fff;
  top: 0;
}

/* ========= PROCESS：カードをキャプチャ風に ========= */

/* 2×2 グリッド（既存のままでOK。パディングだけ微調整） */
.process__grid {
  max-width: 1440px;
  list-style: none;
  margin: 32px auto 0;
  padding: 0 6%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

/* カードの箱：白地＋グレー枠（ガラス効果をやめて紙っぽく） */
.step-card {
  display: flex;
  flex-direction: column;
  color: #fff;
  background: rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(5px);
  /* 背景をぼかす */
  -webkit-backdrop-filter: blur(5px);
  /* Safari対応 */
  border: 1px solid #cfcfcf;
  /* キャプチャの中間グレー */
  border-radius: 8px;
  padding: 2rem;
  box-shadow: none;
  overflow: hidden;
}

/* ヘッダ行：左に巨大STEP、右に見出し */
.step-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 0 18px;
}

/* 旧“帯”を無効化（残っていると影響するため） */
.step-card__num {
  background: none !important;
  padding: 0 !important;
  text-align: left;
  font-weight: 800;
  line-height: .85;
  letter-spacing: -.02em;
  font-size: 3.5rem;
  /* 画像に近いサイズ感 */
}

/* 見出し（右側） */
.step-card__ttl {
  padding: 0;
  color: #fff;
  font-weight: 800;
  line-height: 1.5;
  font-size: 1.5rem;
  /* 2行想定 */
}

/* 説明文（薄いグレーで） */
.step-card__desc {
  padding: 0;
  margin: 10px 0 18px;
  font-size: 1.14rem;
  font-weight: 600;
  line-height: 1.6;
}

/* 画像はカード左右に少し余白を残して全面感 */
.step-card__media {
  margin: 0;
  padding: 0;
  border-radius: 8px;
  overflow: hidden;
}

.step-card__media img {
  display: block;
  width: 100%;
  height: auto;
  position: relative;
  object-fit: cover;
  object-position: center;

}


/* ===== CONSULTANT ===== */
.consultant {
  position: relative;
  background: transparent;
  color: var(--ink);
  padding: 120px 0;
  font-family: var(--ff-base);
}

/* 背景「CONSULTANT」＋見出し */
.consultant__head {
  max-width: 1440px;
  position: relative;
  margin: 0 auto 50px;
}

.consultant__bg {
  position: absolute;
  left: 0;
  top: -6rem;
  margin: 0;
  font-family: var(--ff-display);
  font-weight: bold;
  font-size: 130px;
  line-height: 1;
  letter-spacing: 0;
  color: #e8e8f417;
  pointer-events: none;
  user-select: none;
}

.consultant__title {
  position: relative;
  margin: 0;
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 40px;
  line-height: 1.4;
  color: #fff;
  margin-left: 6rem;
  padding-top: 11rem;
}

/* リードコピー */
.consultant__lead {
  position: relative;
  z-index: 1;
  margin: 32px 0;
  font-family: var(--ff-display);
  font-weight: 100;
  font-size: 40px;
  line-height: 1.35;
  text-shadow: 0 1px 0 rgba(0, 0, 0, .03);
}

/* 3カード */
.c-cards {
  max-width: 1440px;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  /* 均等3カラム */
  gap: 24px;
  /* カード間の余白 */
  margin: 32px auto 0;
  padding: 0 5%;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

/* 1) カードの背面をちゃんと見せる：親は透明に */
.consultant,
.consultant .container,
.c-cards {
  background: transparent !important;
}

/* 2) ガラスの定石セット（半透明 + クリップ + 影） */
.c-card {
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 0;
  /* 背面サンプリングの安定化 */
  text-align: center;
  padding: 0 0 2rem;
  border-radius: 8px;
  transform: translateZ(0);
  /* Chrome系での描画安定化 */
  background-color: rgba(255, 255, 255, 0.1);
  /* 背景色 */
  border: 1px solid rgba(255, 255, 255, 0.4);
  /* ボーダー */
  border-right-color: rgba(255, 255, 255, 0.2);
  border-bottom-color: rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  -webkit-backdrop-filter: blur(20px);
  /* ぼかしエフェクト */
  backdrop-filter: blur(20px);
  box-shadow: 0 5px 20px rgba(108, 79, 255, 0.5);
  /* 薄い影 */
}

/* 3) （もし付いていたら）邪魔するプロパティを無力化 */
.consultant * {
  isolation: auto;
  /* isolate されてたら解除 */
  /* filter / opacity / mix-blend-mode を祖先に使ってたら見直し推奨 */
}

.c-card__media {
  width: auto;
  height: auto;
  aspect-ratio: auto;
  overflow: hidden;
}

.c-card__media img {
  width: 75%;
  height: auto;
  margin: 0 auto;
  padding: 2rem 2rem 0.5rem;
  object-fit: cover;
  /* 画像を切り抜きでフィット */
  display: block;
}

.c-card__dot {
  font-size: 24px;
  font-family: var(--ff-display);
  font-weight: 600;
  color: #040066;
  margin: 0;
  padding: 0 12px;
  line-height: 1.7;
  text-align: start;
}

.c-card__dot2 {
  font-size: 20px;
  font-family: var(--ff-display);
  font-weight: 400;
  color: #fff;
  padding: 0 12px;
  line-height: 1.7;
  text-align: start;
}

.c-card__text {
  margin: 8px 0 0;
  color: #fff;
  font-size: 16px;
  line-height: 1.6;
  padding: 0 12px;
  text-align: start;
}

.bg {
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  width: 85%;
  margin: 8rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================
   白背景エリア（ぼかしで馴染ませる）
   ============================ */
.wt_bg {
  position: relative;
  /* 疑似要素を配置するために必要 */
  width: 100%;
  padding: 20px;
  background: #fff;
  /* 純白ベース */
  border-radius: 300px;
  isolation: isolate;
  /* 疑似要素のにじみを閉じ込める */

  --feather: 2.5rem;
  /* にじみ幅 */
  --blur: 1rem;
  /* ぼかし強さ */
}

.wt_bg::before {
  content: "";
  position: absolute;
  inset: calc(var(--feather) * -1);
  /* はみ出させて境界を柔らかく */
  background: #fff;
  filter: blur(var(--blur));
  z-index: -1;
  pointer-events: none;
  border-radius: 60px;
  /* 本体と同じ角丸を継承 */
}

/* ガラス本体 */
.glass {
  width: 100%;
  padding: 3rem 2rem;
  background-color: rgba(255, 255, 255, 0.1);
  /* 背景色 */
  border: 1px solid rgba(255, 255, 255, 0.4);
  /* ボーダー */
  border-right-color: rgba(255, 255, 255, 0.2);
  border-bottom-color: rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  -webkit-backdrop-filter: blur(20px);
  /* ぼかしエフェクト */
  backdrop-filter: blur(20px);
  box-shadow: 0 5px 20px rgba(79, 79, 255, 0.5);
  /* 薄い影 */
}

/* 会社紹介：左右2カラム */
.c-about-wrap {
  position: relative;
  width: 100%;
  /* 親の幅に依存せず */
  margin: 6rem 0 0;
  /* 上下の余白は調整可 */
  padding: 5rem 0;
  /* 中身の左右余白 */
}

/* 白背景を画面幅いっぱいに敷く */
.c-about-wrap::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  /* ビューポート幅いっぱい */
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.75);
  /* 白背景 */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 0;
}

/* 中身は上に表示 */
.c-about-wrap>* {
  position: relative;
  z-index: 1;
}

.c-about {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  gap: 1rem;
  align-items: start;
  justify-content: space-evenly;

}

.c-about__logo {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.c-about__logo img {
  max-width: 250px;
  width: 100%;
}

.c-about__cap {
  margin: 10px 0 0;
  font-size: 16px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.5
}

.c-about__text {
  width: 55%;
}

.c-about__text p {
  font-size: 18px;
  font-weight: 300;
  margin: 0;
  color: var(--muted);
  font-family: var(--ff-base);
  line-height: 1.8
}

/* ロゴウォール */
.logo-wall {
  max-width: 1440px;
  width: 100%;
  margin: 4rem auto 0;
  padding: 0 5%;
}

.logo-wall__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  /* PCは4列 */
  gap: 2rem;
  /* 余白 */
  align-items: center;
  justify-items: center;
}

.logo-wall__grid img {
  max-width: 160px;
  /* ロゴサイズ（調整可） */
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: brightness(1);
  /* 視認性向上のため適用可 */
}


/* MiiTel ブロック */
/* ===== MiiTel セクション：背景を全幅＆境目を自然に ===== */
.miitel {
  max-width: 1440px;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  z-index: 0;
  /* 他要素より下がらないように */
  margin-top: 5rem !important;
}

/* ============================
   MiiTelエリア（白背景＋周囲ぼかし）
   ============================ */
.miitel.bgg {
  width: 80%;
  left: 50%;
  transform: translateX(-50%);
  position: relative;
  background: #fff;
  padding: 20px;
  isolation: isolate;
  /* フェザーを内側に閉じ込める */
  --feather: 2.5rem;
  /* 白のにじみ幅 */
  --blur: 1rem;
  /* ぼかしの強さ */
  border-radius: 500px;
}

.miitel.bgg::before {
  content: "";
  position: absolute;
  inset: calc(var(--feather) * -1);
  /* はみ出させて広がり感を作る */
  background: #fff;
  filter: blur(var(--blur));
  z-index: -1;
  pointer-events: none;
  border-radius: 60px;
  /* 任意で角丸にする */
}

/* 中のテキスト（見やすさUPのほんのり影） */
.miitel__lead {
  color: #040066;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .12);
}

/* 中身は上に重ねる */
.miitel>* {
  position: relative;
  z-index: 1;
}

.miitel__lead-block {
  max-width: 1440px;
  text-align: center;
  margin: 2.5rem auto 0;
}

.arrows {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  /* ▼同士の間隔 */
  margin-bottom: 1rem;
}

.arrow {
  font-size: 24px;
  /* 大きさ調整 */
  color: var(--muted);
  /* メインカラーなど任意 */
  line-height: 1;
  animation: bounce 1.2s infinite alternate;
  /* 軽い動き */
}

.arrow:nth-child(2) {
  animation-delay: 0.2s;
  /* ずらして点滅感を出す */
}

.arrow:nth-child(3) {
  animation-delay: 0.4s;
  /* ずらして点滅感を出す */
}

@keyframes bounce {
  from {
    transform: translateY(0);
    opacity: 0.6;
  }

  to {
    transform: translateY(6px);
    opacity: 1;
  }
}


/* タイトル帯は従来通り（濃青） */
.miitel__lead {
  margin: 1rem auto;
  width: 100vw;
  /* 画面幅いっぱいに広げる */
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  /* 中央揃えで100vwに対応 */
  padding: 1.5rem 2rem;
  color: var(--muted);
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 2.5rem;
  text-align: center;
  line-height: 1.5;
  letter-spacing: -0.02em;
  /* text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25); */
  z-index: 1;
}

/* 中身のレイアウト */
.miitel__grid {
  display: flex;
  justify-content: space-evenly;
  gap: 1.5rem;
  align-items: center;
}

.miitel__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* 文字色は白帯上でも読みやすい色に */
.miitel__brand img {
  width: 250px;
  height: auto;
}

.miitel__cap {
  margin-top: 15px;
  font-size: 16px;
  color: var(--muted);
  font-weight: 300;
  text-wrap: nowrap;
  text-align: center;
}

.miitel__text {
  width: 55%;
}

.miitel__text p {
  margin: 0;
  color: var(--ink);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.8;
}

.miitel__text .txts {
  font-size: 14px !important;
  margin-top: 10px !important;
  color: var(--muted);
}

/* ===== FLOW ===== */
.flow {
  padding: 96px 0;
  color: var(--ink);
  font-family: var(--ff-base)
}

/* 見出し */
.flow__head {
  max-width: 1440px;
  position: relative;
  margin: 0 auto 50px;
}

.flow__bg {
  position: absolute;
  left: 0;
  top: -5.5rem;
  margin: 0;
  font-family: var(--ff-display);
  font-weight: bold;
  font-size: 150px;
  line-height: 1;
  color: #ffffff4a;
  pointer-events: none;
  user-select: none;
}

.flow__title {
  position: relative;
  margin: 0 0 0 3rem;
  left: 6rem;
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 64px;
  line-height: 1.4;
  color: var(--main);
}

.flow__title {
  display: inline-block;
  /* テキストの幅に要素を縮める */
  margin: 3rem auto;
  text-align: center;
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 2.5rem;
  line-height: 1.4;
  color: #fff;
  /*文字色*/
  padding: 0.5em 0;
  /*上下の余白*/
}

.flow__title-wrapper {
  text-align: center;
  /* 親で中央寄せ */
}


/* ステップ行 */
/* ===== Flow 4 cards (timeline) ===== */
:root {
  --flow-ink: #3a3a3a;
  --flow-muted: #9aa0a6;
  --flow-line: #dfe3e6;
  --flow-card: #ffffff;
  --flow-dot: #333333;
  --flow-shadow: 0 2px 10px rgba(0, 0, 0, .06);
  --flow-radius: 14px;
}

.flow4 {
  padding: 56px 0 84px;
  background: #fff;
  color: var(--flow-ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans JP", sans-serif;
}

.flow4__inner {
  max-width: 1220px;
  margin: 3rem auto;
  padding: 0 20px;
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* 上部の横ライン（カードのバッジ下あたりを通る） */
.flow4__rail {
  width: 74%;
  position: absolute;
  left: 20px;
  right: 20px;
  top: 68px;
  /* バッジとドットの中間に来るよう調整 */
  height: 2px;
  background: #040066;
  z-index: 999;
  margin: 0 auto;
}

/* 各カード */
.flow4__card {
  position: relative;
  background: var(--flow-card);
  border: 1px solid #eef1f3;
  border-radius: 15px;
  box-shadow: var(--main);
  padding: 72px 25px 20px;
  /* 上はバッジ余白 */
  text-align: center;
  z-index: 1;
}

/* 上部の番号バッジ「01 step」 */
.step-badge {
  position: absolute;
  left: 0;
  right: 0;
  top: 16px;
  text-align: center;
  color: var(--flow-muted);
  letter-spacing: .06em;
}

.step-badge .num {
  font-weight: 700;
  font-size: 24px;
  color: #b3b8bd;
  /* 画像の淡いグレーに寄せる */
  margin-right: 6px;
}

.step-badge .unit {
  font-size: 12px;
}

/* 黒いドット（タイムライン上の節） */
.step-dot {
  position: absolute;
  top: 63px;
  /* rail(72px)と視差的に合うよう微調整 */
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  background: #040066;
  border-radius: 50%;
  box-shadow: 0 0 0 8px #fff;
  /* ドット周囲の白い縁＝画像の雰囲気 */
  z-index: 2;
}

/* アイコン（線画・薄め） */
.step-icon {
  color: #040066;
  /* 薄いグレートーン */
  margin: 1.5rem auto 1rem;
}

.step-icon svg {
  display: block;
  margin: 0 auto;
}

/* 各アイコンの調整値（必要に応じて微調整） */
.icon-mail {
  width: 4.4rem;
  height: 5rem;
}

.icon-talk {
  width: auto;
  height: 5rem;
}

.icon-light {
  width: auto;
  height: 5rem;
}

.icon-rocket {
  width: auto;
  height: 5rem;
}

/* タイトル・本文 */
.step-title {
  font-size: 20px;
  font-weight: 700;
  color: #4b4f55;
  margin: 4px 0 8px;
  line-height: 1.6;
}

.step-desc {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.5;
  color: #8c9399;
  margin: 0;
  text-align: start;
}

/* =========================
   CONTACT: 埋め込みフォーム外枠
   ========================= */
.contact {
  padding: 96px 0;
}


/* 外枠はそのまま（中央・左右均等パディング） */
.contact-embed {
  width: 65%;
  margin: 7rem auto 0;
  border-radius: 24px;
  padding: 4rem 2rem;
}

/* 中身を“中央揃えコンテナ”に */
.contact-embed__inner {
  display: flex;
  /* ← 追加：中央寄せ用 */
  justify-content: center;
  /* ← 追加 */
  overflow: visible;
  /* ドロップダウン等が切れないように */
}

/* ルートは幅100%だが、内側の iframe を中央に収める */
.pipedriveWebForms {
  display: block;
  width: 100%;
  min-height: 560px;
  /* ローダーが上書きするので !important は付けない */
}

/* ←ここがポイント：iframe自体を“中身の想定幅”に合わせて中央寄せ */
.pipedriveWebForms iframe {
  display: block !important;
  /* 中身の最大幅に合わせて iframe を狭め、中央に */
  width: min(100%, 760px) !important;
  /* 目安 720–800px。調整可 */
  margin: 0 auto !important;
  border: 0;
  background: transparent;
  min-height: 560px;
}

/* 念のため：周辺で強制余白が入っていれば打ち消す */
.pipedriveWebForms>div {
  margin-left: auto !important;
  margin-right: auto !important;
}

/* セクション側で溢れを消していないかも確認。念のため可視化に */
#contact,
#contact .container {
  overflow: visible;
}

/* CONTACT見出しをサイト全体幅に広げる */
.contact__head {
  max-width: 1440px;
  margin: 0 auto 50px;
  padding: 0 5%;
  /* サイト全体に対して左右5%の余白 */
  box-sizing: border-box;
}

.contact__bg {
  position: absolute;
  left: 0;
  top: -6rem;
  margin: 0;
  font-family: var(--ff-display);
  font-weight: bold;
  font-size: 150px;
  line-height: 1;
  color: #ffffff4a;
  pointer-events: none;
  user-select: none;
}

.contact__title {
  position: relative;
  margin: 0 0 0 3rem;
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 64px;
  line-height: 1.4;
  color: #fff;
  top: 3rem;
  left: 3rem;
}

.contact_24 {
  width: 90%;
  margin: 5rem auto 0;
  padding: 0 3rem;
  font-size: 16px;
  font-weight: 300;
  color: #fff;
  line-height: 1.5;
  font-family: "Noto Sans JP", sans-serif;
}

.contact_24 a{
  color: #e5f0fd;
  border-bottom: 1px solid;
}

.con_bg {
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  width: 100%;
  margin-top: 7rem;
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ガラス本体 */
.con_glass {
  width: 65%;
  padding: 3rem 2rem;
  background-color: rgba(255, 255, 255, 0.4);
  /* 背景色 */
  border: 1px solid rgba(255, 255, 255, 0.8);
  /* ボーダー */
  border-right-color: rgba(255, 255, 255, 0.2);
  border-bottom-color: rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  -webkit-backdrop-filter: blur(20px);
  /* ぼかしエフェクト */
  backdrop-filter: blur(20px);
  box-shadow: 0 5px 20px rgba(79, 79, 255, 0.5);
  /* 薄い影 */
}

.footer {
  background: rgba(04, 0, 102, 0.5);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(20px);
  padding: 16px 0;
  text-align: center;
}

.footer__copy {
  font-size: 12px;
  color: #fff;
}

.footer-links {
  list-style: none;
  margin: 16px 0;
  padding: 0;
  display: flex;
  gap: 32px;
  /* 各リンクの間隔 */
  flex-wrap: wrap;
  justify-content: center;
  /* 中央寄せ */
}

.footer-links a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* 外部リンクアイコン（擬似要素でSVG描画） */
.ext-icon::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23fff' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M14 3h7v7m0-7L10 14m-7 7h18v-9'/%3E%3C/svg%3E") no-repeat center/contain;
}

/*   利用規約   */
#primary {
  padding: 150px 10% 100px 10%;
  color: #333333;
  background: #fff;
}

.terms-page {
  min-height: calc(100svh - var(--header-h, 72px));
  padding-top: calc(var(--header-h, 72px) + 24px);
  /* ヘッダー被り回避（任意） */
  display: block;
}

.terms__head {
  padding: 0 10%;

}

.terms__section {
  margin-top: 50px;
}

.terms__list li {
  margin-top: 15px;
  font-weight: 600;
}

.terms__list a {
  color: var(--main, #040066);
  text-decoration: underline;
  transition: color 0.2s ease;
}

.terms__list p {
  color: var(--muted);
  margin-top: 5px;
  font-size: .8rem;
}

.terms__list a:hover {
  color: #247ECC;
  /* サブカラー */
}

.terms__lang-switch {
  display: flex;
  gap: 12px;
  margin-bottom: 2rem;
  padding: 0 10%;
  justify-content: flex-end;
}

.terms__lang-btn {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 555px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

/* 通常：黒背景に白文字 */
.terms__lang-btn {
  background: #000;
  color: #fff;
}

/* 選択中 */
.terms__lang-btn.is-active {
  background: #e5e5e5;
  /* 薄いグレー */
  color: #585757;
  /* 濃いグレー */
  pointer-events: none;
  /* 押せないようにする場合はこれを残す */
}

/*   固定ページ   */
/* ===== Page (generic) ===== */
.page--default {
  --container-max: 900px;
  --gutter: 20px;
  --accent: #0a58ca;
  --text: #222;
  --muted: #6b7280;
}

.page--default .page {
  color: var(--text);
  line-height: 1.9;
}

.page--default .page-header,
.page--default .entry-content,
.page--default .page-footer {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Title */
.page--default .page-title {
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.3;
  font-weight: 700;
  margin: 40px auto 16px;
}

/* Headings in content */
.page--default .entry-content h2 {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 700;
  margin: 40px 0 12px;
  padding-left: .5em;
  border-left: 4px solid var(--accent);
}

.page--default .entry-content h3 {
  font-size: clamp(16px, 1.8vw, 20px);
  font-weight: 700;
  margin: 28px 0 8px;
}

/* Paragraphs & Lists */
.page--default .entry-content p {
  margin: 0 0 1em;
}

.page--default .entry-content ul,
.page--default .entry-content ol {
  margin: .6em 0 1.4em 1.4em;
}

.page--default .entry-content li {
  margin: 0 0 .6em;
}

/* Links */
.page--default .entry-content a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Page links (<!--nextpage-->) */
.page--default .page-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 24px 0;
  font-size: 14px;
}

.page--default .page-links>a,
.page--default .page-links>span {
  border: 1px solid #ddd;
  padding: 4px 10px;
  border-radius: 6px;
}

.page--default .page-links>span {
  background: #f3f4f6;
}

/* Footer minor */
.page--default .page-footer {
  margin: 32px auto 60px;
  color: var(--muted);
  font-size: 14px;
}

/* Print-friendly */
@media print {
  .page--default .page-title {
    margin-top: 0;
  }

  .page--default .entry-content h2 {
    border-left-color: #000;
  }

  .page--default .entry-content a {
    color: #000;
  }
}

/* ===============================
  Terms (WP editor content wrapper)
  Usage: <div class="terms"> ... </div>
================================== */

.terms {
  --container-max: 900px;
  --gutter: 20px;
  --text: #222;
  --muted: #6b7280;
  --border: #e5e7eb;
  --accent: #0a58ca;

  max-width: var(--container-max);
  margin: 0 auto;
  padding: 48px var(--gutter);
  color: var(--text);
  line-height: 1.9;
  font-feature-settings: "palt";
  word-break: break-word;
}

/* Headings (page titleはテーマ側H1想定。本文先頭見出しは<h2>に） */
.terms>h1,
.terms>h2 {
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 16px;
  font-size: clamp(24px, 2.6vw, 34px);
}

.terms h3 {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 700;
  margin: 40px 0 12px;
  padding-left: .5em;
  border-left: 4px solid var(--accent);
}

.terms h4 {
  font-size: clamp(16px, 1.8vw, 20px);
  font-weight: 700;
  margin: 28px 0 8px;
}

/* Paragraphs & spacing */
.terms p {
  margin: 0 0 1em;
}

.terms p:last-child {
  margin-bottom: 0;
}

/* Lists */
.terms ul,
.terms ol {
  margin: .6em 0 1.4em 1.4em;
  padding: 0;
}

.terms li {
  margin: 0 0 .6em;
}

.terms ul ul,
.terms ol ol {
  margin-top: .4em;
}

/* Links */
.terms a {
  text-decoration: underline;
  text-underline-offset: 2px;
  word-break: break-all;
  /* 長いURL対策 */
}

/* Tables（使う可能性に備えて） */
.terms table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 0.95em;
}

.terms th,
.terms td {
  border: 1px solid var(--border);
  padding: 10px 12px;
  vertical-align: top;
}

.terms th {
  background: #f8fafc;
  font-weight: 600;
}

/* Blockquotes */
.terms blockquote {
  margin: 16px 0;
  padding: 12px 16px;
  border-left: 4px solid var(--accent);
  background: #f8fafc;
  color: #111827;
}

/* Horizontal rule */
.terms hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 32px 0;
}

/* Images (if any) */
.terms img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 12px 0;
}

/* WP Gutenberg common blocks（あると便利） */
.terms .wp-block-image figcaption {
  color: var(--muted);
  font-size: 0.9em;
  text-align: center;
  margin-top: 8px;
}

.terms .wp-block-list {
  margin-left: 1.4em;
}

.terms .wp-block-table {
  overflow-x: auto;
}

/* ============ PC (768px〜) ============ */
@media (min-width: 768px) {
  .hamburger {
    display: none;
  }

  /* ハンバーガーは非表示 */
  .header__nav {
    display: block;
  }

  /* グローバルナビは表示 */
}

/* ============ SP (〜767px) ============ */
@media (max-width: 767px) {
  .hamburger {
    display: block;
  }

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

  /* 既存のグローバルナビは隠す */
  .is-menu-open .header__nav {
    display: block;
    /* ハンバーガーで開いたときだけ表示 */
  }
}


/* =========================================================
   Smartphone (〜767px)
   既存クラス・構造はそのまま。上書きのみ。
========================================================= */
@media screen and (max-width: 767px) {

  :root {
    --header-h: 64px;
  }

  html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    background-attachment: scroll;
    /* モバイルのカクつき回避 */
  }

  body,
  html {
    overflow-x: hidden;
  }

  /* ベース余白 */
  section {
    padding-right: 5%;
    padding-left: 5%;
  }

  .container {
    padding: 0 5%;
  }

  img,
  video {
    max-width: 100%;
    height: auto;
  }

  /* ===== Header ===== */
  .site-header {
    background: #fff;
  }

  .header__inner {
    padding: 0 12px;
  }

  .header__band {
    padding: 0;
    gap: 12px;
  }

  .header__logo-box img.logo,
  .logo {
    width: 140px;
    height: auto;
    padding: .8rem;
  }

  /* グロナビは横スクロール可能な行に */
  .header__nav .nav__list {
    gap: 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    scrollbar-width: none;
  }

  .header__nav .nav__list::-webkit-scrollbar {
    display: none;
  }

  /* CTA ボタン控えめに */
  #btn_animation .btn_cta {
    line-height: 2.6;
    font-size: 15px;
    padding: 0 1.25rem;
  }

  /* ===== Hero ===== */
  .hero__inner {
    padding: calc(var(--header-h) + 28px) 0 28px;
  }

  .hero__title {
    font-size: clamp(32px, 7vw, 36px);
    margin: 8px auto;
    padding: 1rem 2%;
  }

  .hero__desc {
    width: 90%;
    font-size: 15px;
    line-height: 1.8;
    margin-top: 16px;
    margin: 0 auto;
    padding: 0 2%;
  }

  .text-sweep {
    line-height: 1.6;
  }

  /* ぶら下がり調整（スマホは外す） */
  .text-sweep .hang {
    margin-left: -1rem;
    text-indent: 0 !important;
  }

  /* 背面線アニメはそのまま。はみ出し対策 */
  .hero__lines {
    inset: 0;
  }

  /* ===== WHY ===== */
  .why {
    padding: 0 0 56px;
  }

  .why__bg {
    display: block;
    /* または flex/inline-block でも可 */
    font-size: 68px;
    /* モバイル用に少し小さめ調整すると綺麗 */
    line-height: 1.2;
    white-space: normal;
    /* はみ出し防止 */
    text-align: center;
    /* 中央寄せにする場合 */
    margin-bottom: 1rem;
    margin-top: 3rem;
  }

  .why__brand {
    margin: 4rem 0 2.5rem;
  }

  .why__brand img {
    display: none;
  }

  /* 右上ロゴの絶対配置は隠す */
  .why__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .why__title {
    font-size: clamp(26px, 7vw, 34px);
    margin: 16px 0 0;
  }

  .why__text {
    font-size: 1rem;
    line-height: 1.8;
  }

  .why__logos {
    width: 100%;
    margin: 2.5rem auto;
  }

  .why__wrap,
  .wt_box {
    width: 100vw;
    /* ビューポート幅いっぱい */
    max-width: none;
    /* 最大幅制限を解除 */
    margin: 2rem 0;
    /* 上下だけ余白 */
    padding: 2rem;
    /* 内側余白は維持 */
    border-radius: 0;
    /* 角丸を消して完全フル幅にしたい場合 */
    position: relative;
    /* 左右調整用 */
    left: 50%;
    transform: translateX(-50%);
    /* 親の中央寄せ制約を解除して幅いっぱい */
  }

  .why__wrap::before,
  .wt_box::before {
    display: none;
  }

  .why__logos p {
    font-size: 0.6rem;
    margin-top: 10px;
  }

  /* ぼかし枠はカットで軽量化 */

  .btn_why {
    width: 100%;
    padding: 1.1rem 1.25rem;
    font-size: 16px;
  }

  /* ===== ISSUE ===== */
  .issue {
    padding: 64px 0;
  }

  .issue_tp {
    margin-top: 2rem;
  }

  .issue__head {
    margin-bottom: 24px;
  }

  .issue__bg {
    font-size: 64px;
    top: -6rem;
    left: 9rem;
  }

  .issue__title {
    font-size: clamp(24px, 7vw, 32px);
    margin-left: 0;
    padding-top: 0;
  }

  .issue__row {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px 0;
    align-items: stretch;
  }

  .issue__row--rev .issue__text {
    order: 2;
  }

  .issue__row--rev .issue__media {
    order: 1;
  }

  .issue__text,
  .issue__media {
    width: 100%;
    order: 0;
  }

  .issue__media {
    min-height: auto;
    box-shadow: none;
  }

  .issue__label {
    width: 100%;
    font-size: clamp(20px, 6.2vw, 26px);
    line-height: 1.35;
  }

  .issue__desc {
    font-size: 15px;
  }

  /* 擬似のガラス帯はスマホでは外す */
  .issue__row .issue__text::before {
    display: none !important;
  }

  .issue__row--rev .issue__text {
    order: 0;
  }

  .issue__row--rev .issue__text {
    order: 0;
  }

  /* ===== ABOUT ===== */
  .about {
    padding: 72px 0;
  }

  .about__head {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 24px;
  }

  .about__bg {
    font-size: 45px;
    white-space: normal;
  }

  .about__lead {
    align-items: flex-start;
    margin-right: 0;
  }

  .about__brand img {
    width: 200px;
    height: auto;
  }

  .about__title {
    font-size: 24px;
  }

  /* 縦積み＆順序を統一：テキスト→画像 */
  .about__flex {
    display: flex;
    margin-top: 4rem !important;
    flex-direction: column;
    /* 縦並び */
    gap: 12px;
    padding: 0;
    /* 余白は親で管理 */
  }

  .about__flex>* {
    flex: 0 0 auto;
    /* 比率固定を解除 */
    width: 100%;
  }

  /* ←ここが肝：どの段でも必ず「テキストが先」 */
  .about__card {
    order: 1;
  }

  .about__media {
    border-radius: 10px;
    order: 2;
  }

  /* 画像のレイアウト崩れ防止 */
  .about__media {
    aspect-ratio: auto;
  }

  .about__media img {
    width: 100%;
    height: auto;
    margin: 0;
    /* 既存の margin-left を打ち消し */
  }

  /* テキストの可読性 */
  .about__card {
    font-size: 1.0625rem;
    justify-content: flex-start;
  }

  .about__card p {
    max-width: none;
    line-height: 1.8;
  }

  .about__media {
    aspect-ratio: auto;
  }

  .about__media img {
    width: 100%;
    margin-left: 0;
  }

  /* ===== PROCESS ===== */
  .process {
    padding: 72px 0;
  }

  .process__bg {
    font-size: 72px;
    top: -3rem;
  }

  .process__title {
    font-size: clamp(24px, 7vw, 32px);
    margin: 0;
  }

  .process__grid {
    padding: 0;
    gap: 20px;
    grid-template-columns: 1fr;
  }

  .step-card {
    padding: 16px;
    border-radius: 10px;
  }

  .step-card__head {
    margin: 0 0 10px;
    gap: 8px;
  }

  .step-card__num {
    font-size: 2.2rem;
  }

  .step-card__ttl {
    font-size: 1.125rem;
    line-height: 1.4;
  }

  .step-card__desc {
    font-size: 14px;
    line-height: 1.7;
  }

  .step-card__media {
    border-radius: 8px;
  }

  /* ===== CONSULTANT ===== */
  .consultant {
    padding: 36px 0;
  }

  .consultant__bg {
    font-size: 52px;
    top: -2rem;
  }

  .consultant__title {
    font-size: 24px;
    margin-left: 0;
    padding-top: 5rem;
  }

  .c-cards {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 0;
  }

  .c-card {
    border-radius: 12px;
    box-shadow: none;
  }

  .c-card__media img {
    width: 70%;
    padding: 1rem 1rem 0;
  }

  .c-card__dot {
    font-size: 18px;
  }

  .c-card__dot2 {
    font-size: 16px;
  }

  .c-card__text {
    font-size: 14px;
  }

  /* 会社紹介横並び */
  .c-about {
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }

  .c-about__text {
    width: 100%;
  }

  .c-about__text p {
    font-size: 15px;
  }

  /* ロゴウォール 4列 → 2列 */
  .logo-wall {
    padding: 0;
    margin-top: 2rem;
  }

  .logo-wall__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .logo-wall__grid img {
    max-width: 120px;
  }

  /* ===== MiiTel ===== */
  .miitel {
    margin-top: 2.5rem !important;
  }

  .miitel__lead-block {
    margin-top: 1rem;
  }

  .miitel__lead {
    width: 100%;
    font-size: clamp(18px, 5.5vw, 22px);
    padding: 1rem;
  }

  .miitel__grid {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }

  .miitel__brand img {
    width: 200px;
  }

  .miitel__cap {
    font-size: 14px;
  }

  .miitel__text {
    width: 100%;
  }

  .miitel__text p {
    font-size: 15px;
    line-height: 1.9;
  }

  /* ===== FLOW ===== */
  .flow {
    padding: 72px 0;
  }

  .flow__bg {
    font-size: 64px;
    top: -2.5rem;
  }

  .flow__title {
    font-size: clamp(22px, 6.5vw, 28px);
    margin: 1rem 0;
    left: 0;
  }

  .flow4__inner {
    grid-template-columns: 1fr;
    gap: 16px;
    margin: 1.5rem auto 0;
    padding: 0;
  }

  .flow4__rail {
    display: none;
  }

  .flow4__card {
    padding: 64px 18px 18px;
    text-align: left;
  }

  .step-badge {
    top: 12px;
  }

  .step-badge .num {
    margin-right: 0;
  }

  .step-dot {
    display: none;
  }

  .step-title {
    font-size: 18px;
    text-align: center;
  }

  .step-desc {
    font-size: 14px;
  }

  /* ===== CONTACT ===== */
  .contact {
    padding: 72px 0;
  }

  .contact__head {
    width: 100%;
    padding: 0 5%;
    margin-bottom: 24px;
  }

  .contact__bg {
    font-size: 64px;
    top: -2.5rem;
  }

  .contact__title {
    font-size: 28px;
    top: 1rem;
    left: 0;
  }

  .contact_24 {
  width: 95%;
  margin: 2rem auto 0;
  padding: 0;
  font-size: 14px;
  line-height: 1.4;
}

.contact_24 a{
  color: #e5f0fd;
  border-bottom: 1px solid;
}

  .contact-embed {
    width: 100%;
    margin: 2rem 0 0;
    padding: 0;
  }

  .contact-embed__inner {
    display: block;
  }

  .pipedriveWebForms {
    width: 100%;
    min-height: 600px;
  }

  .pipedriveWebForms iframe {
    width: 100% !important;
    min-height: 680px;
  }

  .con_bg {
    width: 100%;
    padding: 0;
    margin-top: 2rem;
  }

  .con_glass {
    width: 100%;
    padding: 1.25rem;
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    box-shadow: none;
  }

  /* ===== Footer ===== */
  .footer {
    padding: 20px 0;
  }

  .footer-links {
    gap: 16px;
  }

  .footer-links a {
    font-size: 13px;
  }

  .footer__copy {
    font-size: 11px;
  }
}

.sp-br {
  display: none;
  /* PCでは非表示 */
}

@media (max-width: 767px) {
  .sp-br {
    display: block;
    /* スマホでは強制改行 */
  }
}

/* =========================================================
   Pages: Smartphone (〜767px)
   対象: #primary / .page--default / .terms-page / .terms
========================================================= */
@media (max-width: 767px) {

  /* 共通ベース：横スクロール防止とパディング最適化 */
  #primary {
    padding: calc(var(--header-h, 64px) + 16px) 5% 64px 5%;
    /* 上:ヘッダー回避＋下余白 */
    background: #fff;
    /* 読みやすい白背景を維持 */
    color: #333;
  }

  /* ============ 固定ページ（page.php / .page--default） ============ */
  .page--default {
    --container-max: auto;
    /* 幅制限を解除して余白管理に任せる */
    --gutter: 5%;
    --text: #222;
    --muted: #6b7280;
    --accent: #0a58ca;
  }

  .page--default .page-header,
  .page--default .entry-content,
  .page--default .page-footer {
    max-width: none;
    padding: 0;
    /* #primary のパディングで統一 */
  }

  /* タイトル（必要時にコメントアウト解除で使うH1も見やすく） */
  .page--default .page-title {
    font-size: clamp(20px, 6.2vw, 26px);
    margin: 8px 0 12px;
    line-height: 1.35;
  }

  /* 見出し */
  .page--default .entry-content h2 {
    font-size: clamp(18px, 5.3vw, 22px);
    margin: 28px 0 10px;
    padding-left: .5em;
    border-left: 4px solid var(--accent);
    line-height: 1.35;
  }

  .page--default .entry-content h3 {
    font-size: clamp(16px, 4.8vw, 20px);
    margin: 22px 0 8px;
    line-height: 1.35;
  }

  /* 本文・リスト */
  .page--default .entry-content p {
    margin: 0 0 1em;
    font-size: 15.5px;
    line-height: 1.9;
  }

  .page--default .entry-content ul,
  .page--default .entry-content ol {
    margin: .5em 0 1.2em 1.2em;
  }

  .page--default .entry-content li {
    margin: 0 0 .5em;
  }

  /* リンク：タップしやすく */
  .page--default .entry-content a {
    text-underline-offset: 2px;
    word-break: break-word;
  }

  /* ページ分割リンク */
  .page--default .page-links {
    gap: 6px;
    margin: 20px 0;
    font-size: 13px;
  }

  /* 画像・埋め込み幅 */
  .page--default .entry-content img,
  .page--default .entry-content video,
  .page--default .entry-content iframe {
    max-width: 100%;
    height: auto;
  }

  /* ============ 規約ページ（page-terms.php / .terms-page） ============ */
  .terms-page {
    min-height: calc(100svh - var(--header-h, 64px));
    padding-top: calc(var(--header-h, 64px) + 12px);
  }

  .terms__head {
    padding: 0;
    /* #primaryの5%に合わせる */
    margin-bottom: 12px;
  }

  .terms__title {
    font-size: clamp(22px, 6.4vw, 28px);
    line-height: 1.35;
    margin: 0 0 6px;
  }

  .terms__intro {
    font-size: 15px;
    line-height: 1.9;
    color: var(--muted);
    margin: 0;
  }

  .terms__section {
    margin-top: 28px;
    padding: 0;
  }

  .terms__subtitle {
    font-size: clamp(18px, 5.3vw, 22px);
    margin: 0 0 8px;
    line-height: 1.35;
  }

  .terms__list li {
    margin-top: 12px;
    font-weight: 600;
  }

  .terms__list a {
    display: inline-block;
    /* タップ余白を確保 */
    padding: 6px 0;
    /* タッチターゲット拡張 */
    font-size: 15.5px;
    color: var(--main, #040066);
  }

  .terms__list p {
    margin-top: 4px;
    font-size: 13px;
  }

  /* 言語切替（使う場合） */
  .terms__lang-switch {
    gap: 8px;
    margin-bottom: 16px;
    padding: 0;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .terms__lang-btn {
    padding: 8px 14px;
    font-size: 13px;
    border-radius: 555px;
  }

  /* ============ WPエディタ本文ラッパー（.terms） ============ */
  .terms {
    --container-max: none;
    --gutter: 0;
    padding: 24px 0 0;
    line-height: 1.9;
  }

  .terms>h1,
  .terms>h2 {
    font-size: clamp(22px, 6.4vw, 28px);
    margin: 0 0 10px;
    line-height: 1.35;
  }

  .terms h3 {
    font-size: clamp(16px, 4.8vw, 20px);
    margin: 24px 0 8px;
    padding-left: .5em;
    border-left: 4px solid var(--accent);
  }

  .terms h4 {
    font-size: clamp(15px, 4.6vw, 18px);
    margin: 18px 0 6px;
  }

  .terms p {
    font-size: 15.5px;
    margin: 0 0 1em;
  }

  .terms ul,
  .terms ol {
    margin: .5em 0 1.2em 1.2em;
  }

  .terms li {
    margin: 0 0 .5em;
  }

  .terms a {
    word-break: break-word;
    /* 長URLがはみ出さない */
    text-underline-offset: 2px;
  }

  /* テーブル横スクロール対応（はみ出し防止） */
  .terms .wp-block-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .terms table {
    display: block;
    width: 100%;
    min-width: 560px;
    /* 目安：内容により調整可 */
    border-collapse: collapse;
    margin: 12px 0 20px;
    font-size: 14px;
  }

  .terms th,
  .terms td {
    padding: 10px 12px;
    word-break: break-word;
    white-space: normal;
  }

  /* 引用 */
  .terms blockquote {
    padding: 10px 12px;
  }

  /* 画像 */
  .terms img {
    max-width: 100%;
    height: auto;
    margin: 8px 0;
  }

  /* 編集リンク（管理者表示） */
  .page--default .page-footer {
    margin: 24px 0 40px;
    font-size: 13px;
  }
}

/* ===== 端末横幅が極小（〜360px）での微調整（任意） ===== */
@media (max-width: 360px) {
  .terms table {
    min-width: 520px;
  }

  .page--default .entry-content p,
  .terms p {
    font-size: 15px;
  }
}