/*
Theme Name: Lightning Child
Theme URI:
Template: lightning
Description:
Author:
Tags:
Version: 0.6.1
*/

/********************************************************************************************************
 * HPのスムーズスクロール  ここから
 * ******************************************************************************************************/
/* ============================================================
   smooth_scroll : Lenis による慣性スクロール（サイト全体）
   Lenis 公式の推奨スタイル。JS 側で <html> に .lenis 系クラスを付与する。
   ============================================================ */

html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: clip;
}

.lenis.lenis-smooth iframe {
  pointer-events: none;
}






/********************************************************************************************************
 * HPのスムーズスクロール  ここまで
 * ******************************************************************************************************/



/********************************************************************************************************
 * base  ここから
 * ******************************************************************************************************/
/* ============================================================
   base.css : リセット + デザイントークン + 基本タイポグラフィ
   ============================================================ */

/* ---- デザイントークン ---- */
:root {
  --color-primary: #D00000;       /* 基本カラー（Figma 15-1014） */
  --color-primary-light: #FF4D4D;
  --color-text: #1A1A1A;
  --color-bg: #FFFFFF;
  --color-line: #E5E5E5;
	
  --news-badge-default-bg: rgba(208, 0, 0, .14);
  --news-line: #d9d9d9;

  --container-width: 1160px;
  --container-pad: 20px;

  --header-height: 75px;
  --header-height-sp: 64px;

  --font-base: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans",
               "Yu Gothic", "YuGothic", Meiryo, sans-serif;

  --z-header: 1000;
  --z-drawer: 1100;
}

/* ---- リセット ---- */
h2:where(:not(.wp-block-post-title)),
h3:where(:not(.wp-block-post-title)) {
	border:none!important;
}

h2:where(:not(.wp-block-post-title))::after,
h3:where(:not(.wp-block-post-title))::after {
	display:none!important;
}




*, *::before, *::after { box-sizing: border-box; }
/* 
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; } */

body {
  margin: 0;
  font-family: var(--font-base);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { list-style: none; padding: 0; }

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

img { max-width: 100%; height: auto; vertical-align: bottom; }

button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

/* ---- レイアウト共通 ---- */
/* ヘッダーは最上部で背景透明のまま KV に重ねるため、
   .l_main には固定ヘッダー分の余白を取らない。KV を画面最上部から始める。 */
.l_main { padding-top: 0; }

.l_container {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* アンカー遷移時に固定ヘッダーへ潜り込まないよう余白を確保 */
:where(section[id], [id].l_anchor) { scroll-margin-top: var(--header-height); }

/* スクロール抑制（ドロワー展開時） */
body.is_noScroll { overflow: hidden; }

.container, .container-fluid, .container-lg, .container-md, .container-sm, .container-xl{
	padding:0!important;
}
/********************************************************************************************************
 * base  ここまで
 * ******************************************************************************************************/

/********************************************************************************************************
 * m_header  ここから
 * ******************************************************************************************************/

/* ============================================================
   m_header : サイト共通ヘッダー
   Figma node 29-336
   ------------------------------------------------------------
   構成 : ロゴ ／ グローバルナビ ／ アクション（アクセス・お問い合わせ）
   1024px 以下でハンバーガー + 右ドロワーに切り替え
   ============================================================ */

.m_header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-header);
  height: var(--header-height);
  /* 最上部は背景透明で KV に重ねる */
  background: transparent;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0);
  transition: background-color .3s ease, box-shadow .3s ease;
}

/* スクロール後（js で付与）：背景白＋影
   ※ 文字色・枠線色は透明時と共通（KV 上部が白フェードしているため）。
   Figma node 29-336 準拠 → nav文字 #000 / アクセス枠 #D00000 / お問い合わせ枠 #FF4D4D */
.m_header.is_scrolled {
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
}

.m_header__inner {
  display: flex;
  align-items: center;
  gap: 40px;
  height: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* ---- ロゴ ---- */
.m_header__logo {
  flex-shrink: 0;
  display: block;
}

.m_header__logoImg {
  display: block;
  width: auto;
  height: 46px;
  transition: filter .3s ease;
}

/* ---- グローバルナビ ---- */
.m_header__nav {
  display: flex;
  align-items: center;
  flex: 1;
  gap: 40px;
}

.m_header__navList {
  display: flex;
  align-items: center;
  gap: 28px;
}

.m_header__navLink {
  position: relative;
  display: inline-block;
  padding: 6px 2px;
  font-size: 16px;
  font-weight: 400;         /* Figma: nav = regular */
  line-height: 1.2;
  color: #000;              /* Figma: #000000 */
  transition: color .2s ease;
}

.m_header__navLink::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}

.m_header__navLink:hover,
.m_header__navLink:focus-visible {
  color: var(--color-primary);
}

.m_header__navLink:hover::after,
.m_header__navLink:focus-visible::after {
  transform: scaleX(1);
}

/* 現在表示中セクションに対応するリンク（js で .is_current を付与）
   ※ PC では太字にすると幅が変わって他項目がずれるので色＋下線のみ */
.m_header__navLink.is_current {
  color: var(--color-primary);
}

.m_header__navLink.is_current::after {
  transform: scaleX(1);
}

/* ---- アクション（ボタン） ---- */
.m_header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.m_header__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  height: 55px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.m_header__btn--access {
  border-color: var(--color-primary);   /* Figma: stroke #D00000 */
  color: #000;                          /* Figma: text #000000 */
}

.m_header__btn--access:hover,
.m_header__btn--access:focus-visible {
  background: var(--color-primary);
  color: #fff;
}

.m_header__btn--contact {
  border-color: var(--color-primary-light);   /* Figma: stroke #FF4D4D */
  color: #000;                                /* Figma: text #000000 */
}

.m_header__btn--contact:hover,
.m_header__btn--contact:focus-visible {
  background: var(--color-primary-light);
  color: #fff;
}

/* ---- ハンバーガー（SP のみ表示） ---- */
.m_header__toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  margin-left: auto;
  flex-shrink: 0;
}

.m_header__toggleBar {
  position: absolute;
  left: 50%;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: transform .25s ease, opacity .2s ease, background-color .3s ease;
}

.m_header__toggleBar:nth-child(1) { top: 14px; }
.m_header__toggleBar:nth-child(2) { top: 21px; }
.m_header__toggleBar:nth-child(3) { top: 28px; }

/* ---- オーバーレイ ---- */
.m_header__overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .4);
  opacity: 0;
  transition: opacity .25s ease;
  z-index: calc(var(--z-drawer) - 1);
}

/* ============================================================
   〜1024px : ハンバーガー + ドロワー
   ============================================================ */
@media (max-width: 1024px) {

  .m_header { height: var(--header-height-sp); }

  .m_header__inner { gap: 16px; }

  .m_header__logoImg { height: 40px; }

  .m_header__toggle {
    display: block;
    z-index: calc(var(--z-drawer) + 1);   /* ドロワーより前面に出して × を見せる */
  }

  /* ナビをドロワー化 */
  .m_header__nav {
    position: fixed;
    inset: 0 0 0 auto;
    z-index: var(--z-drawer);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    width: min(78vw, 320px);
    padding: calc(var(--header-height-sp) + 24px) 28px 40px;
    background: #fff;
    box-shadow: -8px 0 30px rgba(0, 0, 0, .12);
    transform: translateX(100%);
    transition: transform .3s ease;
    overflow-y: auto;
  }

  .m_header__navList {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .m_header__navItem { border-bottom: 1px solid var(--color-line); }

  .m_header__navLink {
    display: block;
    padding: 16px 4px;
    font-size: 16px;
  }

  /* ドロワーでは下線ではなく左のバー＋色で現在地を示す */
  .m_header__navLink::after {
    top: 50%;
    left: -28px;
    width: 4px;
    height: 22px;
    transform: translateY(-50%) scaleY(0);
    transform-origin: center;
  }

  .m_header__navLink:hover::after,
  .m_header__navLink:focus-visible::after,
  .m_header__navLink.is_current::after {
    transform: translateY(-50%) scaleY(1);
  }

  .m_header__navLink.is_current { font-weight: 700; }

  .m_header__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-left: 0;
    margin-top: 28px;
  }

  .m_header__btn { width: 100%; min-width: 0; }

  /* 開いた状態（body に付与） */
  body.is_navOpen .m_header__nav { transform: translateX(0); }

  body.is_navOpen .m_header__overlay { opacity: 1; }

  body.is_navOpen .m_header__toggle .m_header__toggleBar:nth-child(1) {
    top: 21px; transform: translateX(-50%) rotate(45deg);
  }
  body.is_navOpen .m_header__toggle .m_header__toggleBar:nth-child(2) { opacity: 0; }
  body.is_navOpen .m_header__toggle .m_header__toggleBar:nth-child(3) {
    top: 21px; transform: translateX(-50%) rotate(-45deg);
  }
}

@media (min-width: 1025px) {
  .m_header__overlay { display: none; }
}




/********************************************************************************************************
 * m_header  ここまで
 * ******************************************************************************************************/
/********************************************************************************************************
 * m_footer  ここから
 * ******************************************************************************************************/
/* ============================================================
   m_footer : サイト共通フッター（Figma node 29-572）
   ------------------------------------------------------------
   薄グレー背景。左上にロゴ。その下に2拠点の白い連絡先カード
   （本店 / 上山田）。カードは横に伸びる区切り線をまたぐ。
   区切り線の右端に「Page top」、下にナビ＋ボタン、
   左下に装飾の赤い1/4円ブロック。
   ============================================================ */

.m_footer {
  --pad-top: clamp(40px, 5vw, 64px);
  --logo-h: clamp(60px, 8vw, 88px);
  --brand-gap: clamp(28px, 5vw, 56px);
  --line-y: clamp(120px, 15vw, 168px);   /* カード上端 → 区切り線 */

  position: relative;
  overflow: hidden;
  background: #f5f5f5;
  padding-top: var(--pad-top);
  padding-bottom: clamp(110px, 16vw, 200px);
}

.m_footer__inner {
  position: relative;
  z-index: 1;
}

.m_footer__logo {
  width: auto;
  height: var(--logo-h);
}

/* ---------- 本体 ---------- */
.m_footer__body {
  position: relative;
  margin-top: var(--brand-gap);
}

.m_footer__line {
  display: block;
  position: absolute;
  top: var(--line-y);
  left: 0;
  right: calc((100% - 100vw) / 2);   /* 画面右端まで（Page top の下に潜る） */
  height: 0;
  border-top: 1px solid #c5c2c2;
  z-index: 0;
}

/* ---------- 連絡先カード（2拠点） ---------- */
.m_footer__cards {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(20px, 4vw, 87px);
}

.m_footer__card {
  flex: 1 1 340px;
  max-width: 421px;
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 2.4vw, 26px);
  padding: clamp(26px, 3vw, 38px) clamp(22px, 2.5vw, 32px);
  background: #fff;
  border-radius: 10px;
}

.m_footer__card_title {
  margin: 0;
  font-size: clamp(1.05rem, 1.7vw, 1.5rem);
  font-weight: 500;
  line-height: 1.3;
  color: #1a1a1a;
}

.m_footer__card_item {
  display: flex;
  align-items: flex-start;
  gap: clamp(12px, 1.6vw, 20px);
}

.m_footer__card_icon {
  flex: 0 0 auto;
  width: clamp(42px, 4.4vw, 50px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  background: var(--color-primary);
  border-radius: 50%;
}

.m_footer__card_icon img {
  width: 58%;
  height: 58%;
  object-fit: contain;
}

.m_footer__card_texts {
  flex: 1;
  min-width: 0;
}

.m_footer__card_addr {
  margin: 0;
  font-size: clamp(.85rem, .95vw, 1rem);
  line-height: 1.7;
  color: #1a1a1a;
}

.m_footer__card_map {
  display: inline-block;
  margin-top: 8px;
  font-size: clamp(.75rem, .85vw, .875rem);
  color: var(--color-primary);
  transition: opacity .2s ease;
}

.m_footer__card_map:hover {
  opacity: .7;
}

.m_footer__card_tel {
  display: block;
  font-size: clamp(1.35rem, 2.1vw, 1.875rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: .01em;
  color: var(--color-primary);
}

.m_footer__card_mail {
  display: block;
  font-size: clamp(.82rem, 1.05vw, 1rem);
  line-height: 1.35;
  color: var(--color-primary);
  word-break: break-all;
  transition: opacity .2s ease;
}

.m_footer__card_mail:hover {
  opacity: .7;
}

.m_footer__card_hours {
  margin: 6px 0 0;
  font-size: clamp(.72rem, .85vw, .875rem);
  color: #1a1a1a;
}

/* ---------- ナビ＋ボタン（カードの下・中央寄せ） ---------- */
.m_footer__nav {
  position: relative;
  z-index: 1;
  margin: clamp(44px, 7vw, 84px) auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(22px, 3.5vw, 34px);
}

.m_footer__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px clamp(16px, 2.6vw, 30px);
}

.m_footer__list a {
  font-size: clamp(.85rem, 1vw, .9375rem);
  color: #1a1a1a;
  transition: color .2s ease;
}

.m_footer__list a::before {
  content: "・";
  color: var(--color-primary);
}

.m_footer__list a:hover {
  color: var(--color-primary);
}

.m_footer__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.m_footer__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 199px;
  padding: 15px 28px;
  border: 1px solid var(--color-primary);
  border-radius: 999px;
  font-size: clamp(.85rem, 1vw, .9375rem);
  font-weight: 700;
  color: #1a1a1a;
  transition: background-color .2s ease, color .2s ease;
}

.m_footer__btn--contact {
  border-color: var(--color-primary-light);
}

.m_footer__btn--access:hover {
  background: var(--color-primary);
  color: #fff;
}

.m_footer__btn--contact:hover {
  background: var(--color-primary-light);
  color: #fff;
}



/* ---------- 左下の装飾ブロック ---------- */
.m_footer__deco {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 0;
  width: clamp(170px, 25vw, 360px);
  height: clamp(96px, 14vw, 191px);
  background: var(--color-primary);
  border-radius: 0 999px 0 0;
}

/* ============================================================
   〜920px : 縦積み
   ============================================================ */
@media (max-width: 920px) {
  .m_footer {
    padding-top: clamp(54px, 13vw, 72px);
    padding-bottom: clamp(88px, 18vw, 130px);
  }

  .m_footer__cards {
    flex-direction: column;
    align-items: stretch;
  }

  .m_footer__card {
    max-width: 460px;
    width: 100%;
  }

  .m_footer__line {
    position: static;
    margin: 30px 0;
    right: auto;
  }

  .m_footer__nav {
    margin-top: 32px;
  }

  .m_footer__pagetop {
    top: 0;
    height: auto;
    min-width: 0;
    padding: 12px 20px;
    border-radius: 0 0 0 36px;
    font-size: .85rem;
  }

  .m_footer__deco {
    width: 116px;
    height: 66px;
  }
}

@media (max-width: 560px) {
  .m_footer__actions {
    width: 100%;
  }

  .m_footer__btn {
    flex: 1 1 auto;
    min-width: 0;
  }
}

/********************************************************************************************************
 * m_footer  ここまで
 * ******************************************************************************************************/

/********************************************************************************************************
 * m_access  ここから
 * ******************************************************************************************************/
/* ============================================================
   m_access : アクセスモーダル（Figma node 78-84）
   ------------------------------------------------------------
   「アクセス」ボタンで開くダイアログ。2拠点ぶんの
   連絡先カード＋GoogleMap 埋め込みを縦に並べる。
   ============================================================ */

.m_access[hidden] {
  display: none !important;
}

.m_access {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(14px, 4vw, 48px);
}

.m_access__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .5);
  opacity: 0;
  transition: opacity .3s ease;
}

.m_access.is_open .m_access__overlay {
  opacity: 1;
}

.m_access__dialog {
  position: relative;
  width: min(1060px, 100%);
  max-height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: clamp(28px, 4vw, 56px) clamp(20px, 3.5vw, 52px) clamp(28px, 4vw, 52px);
  background: #e6e6e6;
  border-radius: 8px;
  opacity: 0;
  transform: translateY(14px) scale(.985);
  transition: opacity .3s ease, transform .3s ease;
}

.m_access.is_open .m_access__dialog {
  opacity: 1;
  transform: none;
}

.m_access__close {
  position: absolute;
  top: clamp(8px, 1.4vw, 16px);
  right: clamp(8px, 1.4vw, 16px);
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  font-size: 26px;
  line-height: 1;
  color: #333;
  border-radius: 50%;
  transition: background-color .2s ease;
}

.m_access__close:hover {
  background: rgba(0, 0, 0, .09);
}

.m_access__title {
  margin: 0 0 clamp(18px, 3vw, 30px);
  font-size: clamp(1.3rem, 2.4vw, 1.75rem);
  font-weight: 700;
  color: #1a1a1a;
}

.m_access__list {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2.4vw, 26px);
}

.m_access__loc {
  display: grid;
  grid-template-columns: minmax(0, 384px) minmax(0, 1fr);
  gap: clamp(14px, 2vw, 24px);
  align-items: stretch;
}

/* ---------- 連絡先カード ---------- */
.m_access__card {
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 2vw, 22px);
  padding: clamp(20px, 2.4vw, 30px);
  background: #fff;
  border-radius: 10px;
}

.m_access__card_title {
  margin: 0;
  font-size: clamp(1rem, 1.5vw, 1.375rem);
  font-weight: 500;
  line-height: 1.3;
  color: #1a1a1a;
}

.m_access__card_item {
  display: flex;
  align-items: flex-start;
  gap: clamp(12px, 1.6vw, 18px);
}

.m_access__card_icon {
  flex: 0 0 auto;
  width: clamp(42px, 4.4vw, 48px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  background: var(--color-primary);
  border-radius: 50%;
}

.m_access__card_icon img {
  width: 58%;
  height: 58%;
  object-fit: contain;
}

.m_access__card_texts {
  flex: 1;
  min-width: 0;
}

.m_access__card_addr {
  margin: 0;
  font-size: clamp(.82rem, .95vw, .9375rem);
  line-height: 1.7;
  color: #1a1a1a;
}

.m_access__card_map {
  display: inline-block;
  margin-top: 8px;
  font-size: clamp(.75rem, .85vw, .8125rem);
  color: var(--color-primary);
  transition: opacity .2s ease;
}

.m_access__card_map:hover {
  opacity: .7;
}

.m_access__card_tel {
  display: block;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  line-height: 1.2;
  letter-spacing: .01em;
  color: var(--color-primary);
}

.m_access__card_mail {
  display: block;
  font-size: clamp(.72rem, .85vw, .875rem);
  line-height: 1.4;
  color: var(--color-primary);
  word-break: break-all;
  transition: opacity .2s ease;
}

.m_access__card_mail:hover {
  opacity: .7;
}

.m_access__card_hours {
  margin: 6px 0 0;
  font-size: clamp(.7rem, .85vw, .8125rem);
  color: #1a1a1a;
}

/* ---------- 地図 ---------- */
.m_access__map {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  min-height: 240px;
}

.m_access__map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 240px;
  border: 0;
}

/* ============================================================
   〜800px : カードと地図を縦に
   ============================================================ */
@media (max-width: 800px) {
  .m_access__loc {
    grid-template-columns: 1fr;
  }

  .m_access__map,
  .m_access__map iframe {
    min-height: 220px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .m_access__overlay,
  .m_access__dialog {
    transition-duration: .01ms;
  }
}




/********************************************************************************************************
 * m_access  ここまで
 * ******************************************************************************************************/

/********************************************************************************************************
 * m_contact  ここから
 * ******************************************************************************************************/
/* ============================================================
   m_contact : お問い合わせモーダル（全画面）
   ------------------------------------------------------------
   「お問い合わせ」ボタンで開く全画面モーダル。
   中身は Contact Form 7 のフォーム（本番）／静的モックフォーム（プレビュー）。
   CF7 の出力クラス（.wpcf7 / .wpcf7-form-control 等）にも
   スタイルが当たるようにしてある。
   ============================================================ */

.m_contact[hidden] {
  display: none !important;
}

.m_contact {
  position: fixed;
  inset: 0;
  z-index: 2000;
}

.m_contact__overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 20, 20, .3);
  opacity: 0;
  transition: opacity .3s ease;
}

.m_contact.is_open .m_contact__overlay {
  opacity: 1;
}

.m_contact__dialog {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: #fff;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .35s ease, transform .35s ease;
}

.m_contact.is_open .m_contact__dialog {
  opacity: 1;
  transform: none;
}

.m_contact__close {
  position: absolute;
  top: clamp(10px, 2vw, 22px);
  right: clamp(10px, 2vw, 22px);
  z-index: 3;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  font-size: 28px;
  line-height: 1;
  color: #333;
  background: #fff;
  border-radius: 50%;
  transition: background-color .2s ease;
}

.m_contact__close:hover {
  background: #f0f0f0;
}

/* プライバシーモーダルが前面のときは、背面の×を隠す */
.m_contact.is_behind .m_contact__close {
  opacity: 0;
  pointer-events: none;
}

.m_contact__inner {
  max-width: 680px;
  margin-inline: auto;
  padding: clamp(56px, 10vw, 92px) clamp(20px, 6vw, 40px) clamp(72px, 12vw, 120px);
}

.m_contact__eyebrow {
  margin: 0 0 8px;
  color: var(--color-primary);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .04em;
}

.m_contact__title {
  margin: 0 0 14px;
  font-size: clamp(1.5rem, 3.4vw, 2rem);
  font-weight: 700;
  line-height: 1.35;
  color: #1a1a1a;
}

.m_contact__lead {
  margin: 0 0 clamp(28px, 4vw, 40px);
  font-size: clamp(.9rem, 1vw, 1rem);
  line-height: 1.9;
  color: #333;
}

/* ---------- フォーム ---------- */
.m_contact__field {
  margin-bottom: clamp(18px, 2.6vw, 26px);
}

.m_contact__label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: clamp(.88rem, 1vw, .95rem);
  font-weight: 700;
  color: #1a1a1a;
}

.m_contact__req {
  flex: 0 0 auto;
  padding: 2px 8px;
  font-size: .7rem;
  font-weight: 700;
  color: #fff;
  background: var(--color-primary);
  border-radius: 4px;
  letter-spacing: .02em;
}

.m_contact__req--any {
  color: #666;
  background: #e0e0e0;
}

.m_contact__inner input[type="text"],
.m_contact__inner input[type="email"],
.m_contact__inner input[type="tel"],
.m_contact__inner input[type="number"],
.m_contact__inner input[type="date"],
.m_contact__inner textarea,
.m_contact__inner select,
.m_contact__inner .wpcf7-text,
.m_contact__inner .wpcf7-email,
.m_contact__inner .wpcf7-tel,
.m_contact__inner .wpcf7-number,
.m_contact__inner .wpcf7-date,
.m_contact__inner .wpcf7-textarea,
.m_contact__inner .wpcf7-select {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  color: #1a1a1a;
  background: #fff;
  border: 1px solid #c4c4c4;
  border-radius: 6px;
  transition: border-color .2s ease, box-shadow .2s ease;
  -webkit-appearance: none;
  appearance: none;
}

/* ラジオ／チェックボックスのグループは枠なし */
.m_contact__inner .wpcf7-radio,
.m_contact__inner .wpcf7-checkbox,
.m_contact__inner .wpcf7-acceptance {
  display: block;
  padding: 0;
  border: 0;
  background: none;
}

.m_contact__inner select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}

.m_contact__inner textarea {
  min-height: 150px;
  line-height: 1.7;
  resize: vertical;
}

.m_contact__inner input:focus,
.m_contact__inner textarea:focus,
.m_contact__inner select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(208, 0, 0, .12);
}

/* ラジオ / チェックボックス */
.m_contact__inner .wpcf7-radio .wpcf7-list-item,
.m_contact__radiolist label {
  display: block;
  margin: 0 0 6px;
}

.m_contact__inner .wpcf7-list-item {
  margin: 0 0 6px;
}

.m_contact__inner .wpcf7-list-item-label {
  margin-left: 6px;
}

.m_contact__inner input[type="radio"],
.m_contact__inner input[type="checkbox"] {
  accent-color: var(--color-primary);
  width: 16px;
  height: 16px;
  vertical-align: -2px;
}

/* 同意 */
.m_contact__field--consent {
  margin-top: clamp(24px, 3.5vw, 32px);
  padding: 16px 18px;
  background: #f5f5f5;
  border-radius: 8px;
  font-size: clamp(.82rem, .95vw, .9rem);
  line-height: 1.7;
}

.m_contact__field--consent a {
  color: var(--color-primary);
  text-decoration: underline;
}

/* プライバシーポリシーへのリンク（フォームの下） */
.m_contact__privacy {
  margin: clamp(20px, 3vw, 28px) 0 0;
  font-size: clamp(.8rem, .95vw, .875rem);
  text-align: center;
}

.m_contact__privacy a {
  color: #555;
  text-decoration: underline;
}

.m_contact__privacy a:hover {
  color: var(--color-primary);
}

/* 送信ボタン */
.m_contact__actions {
  margin-top: clamp(28px, 4vw, 40px);
  text-align: center;
}

.m_contact__inner .wpcf7-submit,
.m_contact__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 260px;
  padding: 16px 44px;
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  background: var(--color-primary);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color .2s ease, opacity .2s ease;
}

.m_contact__inner .wpcf7-submit:hover,
.m_contact__submit:hover {
  background: #b00000;
}

.m_contact__inner .wpcf7-submit:disabled {
  opacity: .5;
  cursor: default;
}

/* CF7 のバリデーション表示 */
.m_contact__inner .wpcf7-not-valid-tip {
  display: block;
  margin-top: 6px;
  font-size: .82rem;
  color: var(--color-primary);
}

.m_contact__inner .wpcf7-not-valid {
  border-color: var(--color-primary) !important;
}

.m_contact__inner .wpcf7-response-output {
  margin: 24px 0 0 !important;
  padding: 14px 16px !important;
  border-radius: 6px;
  border-width: 1px;
  font-size: .9rem;
  line-height: 1.7;
}

.m_contact__inner .wpcf7-spinner {
  margin: 0 0 0 12px;
}

/* ============================================================
   〜700px
   ============================================================ */
@media (max-width: 700px) {
  .m_contact__inner .wpcf7-submit,
  .m_contact__submit {
    width: 100%;
    min-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .m_contact__overlay,
  .m_contact__dialog {
    transition-duration: .01ms;
  }
}

/* ============================================================
   m_privacy : プライバシーポリシーのモーダル
   （全画面ではなく中央のダイアログ。お問い合わせモーダルの前面）
   ============================================================ */
.m_privacy[hidden] {
  display: none !important;
}

.m_privacy {
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(14px, 4vw, 48px);
}

.m_privacy__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .5);
  opacity: 0;
  transition: opacity .25s ease;
}

.m_privacy.is_open .m_privacy__overlay {
  opacity: 1;
}

.m_privacy__dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(720px, 100%);
  max-height: min(84vh, 100%);
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(14px) scale(.985);
  transition: opacity .25s ease, transform .25s ease;
}

.m_privacy.is_open .m_privacy__dialog {
  opacity: 1;
  transform: none;
}

.m_privacy__head {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(16px, 3vw, 24px) clamp(18px, 3.5vw, 30px);
  border-bottom: 1px solid #e5e5e5;
}

.m_privacy__title {
  margin: 0;
  font-size: clamp(1.1rem, 2vw, 1.375rem);
  font-weight: 700;
  color: #1a1a1a;
}

.m_privacy__close {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  font-size: 24px;
  line-height: 1;
  color: #333;
  border-radius: 50%;
  transition: background-color .2s ease;
}

.m_privacy__close:hover {
  background: #f0f0f0;
}

.m_privacy__body {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: clamp(20px, 4vw, 30px) clamp(18px, 3.5vw, 30px) clamp(28px, 5vw, 40px);
}

.m_privacy__updated {
  margin: 0 0 20px;
  font-size: .78rem;
  color: #8a8a8a;
}

.m_privacy__sec {
  margin-top: clamp(18px, 3vw, 24px);
}

.m_privacy__h {
  margin: 0 0 8px;
  font-size: clamp(.92rem, 1.1vw, 1rem);
  font-weight: 700;
  color: #1a1a1a;
}

.m_privacy__p {
  margin: 0;
  font-size: clamp(.82rem, .95vw, .9rem);
  line-height: 1.95;
  color: #333;
}

@media (prefers-reduced-motion: reduce) {
  .m_privacy__overlay,
  .m_privacy__dialog {
    transition-duration: .01ms;
  }
}


/********************************************************************************************************
 * m_contact  ここまで
 * ******************************************************************************************************/

/********************************************************************************************************
 * m_price  ここから
 * ******************************************************************************************************/
/* ============================================================
   m_price : 料金表モーダル
   ------------------------------------------------------------
   「料金表を見る」ボタンで開くダイアログ。時間区分ごとの
   自己負担額をアコーディオン（<details>）で表示。
   スプレッドシートっぽくならないよう、罫線を最小限にした
   カード寄りのグリッド表示にしている。
   ============================================================ */

.m_price[hidden] {
  display: none !important;
}

.m_price {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(14px, 4vw, 48px);
}

.m_price__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .5);
  opacity: 0;
  transition: opacity .3s ease;
}

.m_price.is_open .m_price__overlay {
  opacity: 1;
}

.m_price__dialog {
  position: relative;
  width: min(760px, 100%);
  max-height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: clamp(28px, 4vw, 52px) clamp(20px, 3.5vw, 44px) clamp(28px, 4vw, 48px);
  background: #fff;
  border-radius: 12px;
  opacity: 0;
  transform: translateY(14px) scale(.985);
  transition: opacity .3s ease, transform .3s ease;
}

.m_price.is_open .m_price__dialog {
  opacity: 1;
  transform: none;
}

.m_price__close {
  position: absolute;
  top: clamp(8px, 1.4vw, 16px);
  right: clamp(8px, 1.4vw, 16px);
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  font-size: 26px;
  line-height: 1;
  color: #333;
  border-radius: 50%;
  transition: background-color .2s ease;
}

.m_price__close:hover {
  background: rgba(0, 0, 0, .07);
}

.m_price__title {
  margin: 0 0 12px;
  font-size: clamp(1.25rem, 2.2vw, 1.625rem);
  font-weight: 700;
  color: #1a1a1a;
}

.m_price__lead {
  margin: 0 0 clamp(20px, 3vw, 28px);
  font-size: clamp(.85rem, 1vw, .9375rem);
  line-height: 1.9;
  color: #444;
}

/* ---------- 時間区分アコーディオン ---------- */
.m_price__bands {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.m_price__band {
  border: 1px solid #e5e2e2;
  border-radius: 10px;
  overflow: hidden;
}

.m_price__band[open] {
  border-color: var(--color-primary);
}

.m_price__band_head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  background: #faf7f7;
  font-weight: 700;
  color: #1a1a1a;
  cursor: pointer;
  list-style: none;
}

.m_price__band_head::-webkit-details-marker {
  display: none;
}

.m_price__band[open] .m_price__band_head {
  background: rgba(208, 0, 0, .06);
  color: var(--color-primary);
}

.m_price__band_time {
  font-size: clamp(.9rem, 1.05vw, 1rem);
}

.m_price__band_arrow {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform .2s ease;
}

.m_price__band[open] .m_price__band_arrow {
  transform: rotate(-135deg);
}

.m_price__band_body {
  padding: 4px 18px 16px;
}

/* 見出し行（PCのみ表示） */
.m_price__row--head {
  padding: 10px 0 8px;
  font-size: .8125rem;
  font-weight: 700;
  color: #767676;
  border-bottom: 1px solid #e5e2e2;
}

.m_price__row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
}

.m_price__row:not(.m_price__row--head) {
  border-bottom: 1px solid #f0eeee;
}

.m_price__row:not(.m_price__row--head):last-child {
  border-bottom: 0;
}

.m_price__cell--care {
  font-weight: 700;
  color: #1a1a1a;
}

.m_price__cell_label {
  display: none;
}

.m_price__cell_value {
  font-size: .9375rem;
  color: #1a1a1a;
}

/* ---------- 加算・減算・その他費用 ---------- */
.m_price__extras {
  margin-top: clamp(24px, 3.5vw, 32px);
  padding-top: clamp(18px, 2.5vw, 24px);
  border-top: 1px solid #e5e2e2;
}

.m_price__extras_title {
  margin: 0 0 14px;
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a1a;
}

.m_price__extra {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid #f0eeee;
  font-size: .875rem;
}

.m_price__extra:last-child {
  border-bottom: 0;
}

.m_price__extra_name {
  color: #1a1a1a;
  font-weight: 500;
}

.m_price__extra_note {
  display: block;
  margin-top: 2px;
  font-size: .75rem;
  font-weight: 400;
  color: #888;
}

.m_price__extra_value {
  flex: 0 0 auto;
  text-align: right;
  color: var(--color-primary);
  font-weight: 700;
}

.m_price__note {
  margin: clamp(20px, 3vw, 26px) 0 0;
  font-size: .75rem;
  line-height: 1.8;
  color: #888;
}

/* ============================================================
   〜767px : 各行をラベル付きカードに（他セクションのSP判定に合わせる）
   ============================================================ */
@media (max-width: 767px) {
  .m_price__row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px 12px;
    padding: 14px 12px;
    background: #faf7f7;
    border-radius: 8px;
    border-bottom: 0 !important;
    margin-bottom: 8px;
  }

  .m_price__row--head {
    display: none;
  }

  .m_price__row:last-child {
    margin-bottom: 0;
  }

  .m_price__cell--care {
    grid-column: 1 / -1;
    padding-bottom: 4px;
    margin-bottom: 4px;
    border-bottom: 1px solid #e5e2e2;
    color: var(--color-primary);
  }

  .m_price__cell {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .m_price__cell_label {
    display: block;
    font-size: .6875rem;
    color: #888;
  }

  .m_price__extra {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .m_price__extra_value {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .m_price__overlay,
  .m_price__dialog {
    transition-duration: .01ms;
  }
}





/********************************************************************************************************
 * m_price  ここまで
 * ******************************************************************************************************/






/********************************************************************************************************
 * copyright  ここから
 * ******************************************************************************************************/
.copyright{
 color:var(--color-primary);
 font-size:12px;
 text-align:center;
 background: #f5f5f5;
 display:block;
 padding:8px 0;
}



/********************************************************************************************************
 * copyright  ここまで
 * ******************************************************************************************************/





/********************************************************************************************************
 * top_kv  ここから
 * ******************************************************************************************************/
@charset "UTF-8";

/* ============================================================
   top_kv : キービジュアル
   Figma node 29-318
   ------------------------------------------------------------
   高さ 100vh。3枚の写真をクロスフェード。
   上部は白へフェード（Figma のアルファマスク相当）。
   左下に半透明の赤バーのキャプション、右に縦並びのページャー、
   右下寄りに「Scroll」の白い円（下半分は見切れ）。
   ============================================================ */

.top_kv {
  /* Figma: Scroll円 280 / 1920 ≒ 14.6vw */
  --kv-scroll-size: clamp(150px, 14.6vw, 240px);

  position: relative;
  width: 100%;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: #fff;                 /* 上部フェードの下地 */
}

/* ---- 上部の白フェード（＝「白いマスク」） ---- */
.top_kv::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 42%;
  background: linear-gradient(to bottom,
              #fff 0%,
              rgba(255, 255, 255, .82) 14%,
              rgba(255, 255, 255, 0) 100%);
  z-index: 5;
  pointer-events: none;
}

/* ============================================================
   スライド
   ============================================================ */
.top_kv_slider {
  position: absolute;
  inset: 0;
}

.top_kv_slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}

.top_kv_slide.is_active {
  opacity: 1;
}

.top_kv_slide_img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.06);              /* Ken Burns：アクティブ中にゆっくり戻る */
  transition: transform 7s ease-out;
}

.top_kv_slide.is_active .top_kv_slide_img {
  transform: scale(1);
}

/* ============================================================
   キャプション（左下・半透明の赤バー2段）
   ============================================================ */
.top_kv_caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(72px, 12vh, 128px);
  z-index: 2;
  padding-inline: max(var(--container-pad), calc((100% - var(--container-width)) / 2));
}

@media (max-width: 767px) {
  .top_kv_caption { bottom: 84px; }
}

.top_kv_caption_inner {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.top_kv_caption_line {
  display: inline-block;
  border-radius: 10px;
  background: rgba(208, 0, 0, .72);
  padding: .3em .72em;
  color: #fff;
  font-weight: 700;
  line-height: 1.4;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .25);
}

.top_kv_caption_brand { font-size: clamp(.9rem, 1.7vw, 1.15rem); }
.top_kv_caption_msg   { font-size: clamp(1.15rem, 2.55vw, 1.9rem); }

/* ============================================================
   ページャー（右・縦並び）  Figma: x≒94% / 中央やや上
   ============================================================ */
.top_kv_dots {
  position: absolute;
  right: clamp(20px, 6vw, 90px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.top_kv_dot {
  width: 14px;
  height: 14px;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .95);
  box-shadow: 0 0 6px rgba(0, 0, 0, .3);
  transition: background-color .3s ease, transform .3s ease;
}

.top_kv_dot:hover { transform: scale(1.15); }

.top_kv_dot.is_active {
  background: var(--color-primary);
  transform: scale(1.15);
}

@media (max-width: 767px) {
  .top_kv_dots {
    right: auto;
    top: auto;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    flex-direction: row;
  }
}

/* ============================================================
   Scroll 円（Figma: x≒74% / 下端・下半分見切れ）
   ============================================================ */
.top_kv_scroll {
  position: absolute;
  left: 74%;
  bottom: calc(var(--kv-scroll-size) / -2);
  transform: translate(-50%, -8%);
  z-index: 3;
  width: var(--kv-scroll-size);
  height: var(--kv-scroll-size);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: clamp(24px, 2.6vw, 40px);
  color: var(--color-primary);
  font-weight: 700;
}

.top_kv_scroll_txt {
  font-size: clamp(.9rem, 1.25vw, 1.05rem);
  letter-spacing: .04em;
}

.top_kv_scroll_arw {
  margin-top: 6px;
  font-size: 1.15em;
  animation: top_kv_bounce 1.6s ease-in-out infinite;
}

@keyframes top_kv_bounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(5px); }
}

@media (max-width: 767px) {
  .top_kv_scroll { display: none; }   /* SPはページャーのみ */
}

@media (prefers-reduced-motion: reduce) {
  .top_kv_slide_img { transition: none; transform: none; }
  .top_kv_scroll_arw { animation: none; }
}

/********************************************************************************************************
 * top_kv  ここまで
 * ******************************************************************************************************/
/********************************************************************************************************
 * top_about  ここから
 * ******************************************************************************************************/
/* ============================================================
   top_about : About us（Figma node 29-396）
   ------------------------------------------------------------
   PC: セクションをピン留めし、スクロールで左の写真スタックの
       前後関係が入れ替わる（GSAP ScrollTrigger）。
   SP: ピンなし。写真は静的な重ね表示＋テキスト。
   GSAP 未読込でも CSS の初期状態でレイアウトは成立する。
   ============================================================ */

.top_about {
  position: relative;
  background: #fff;
}

.top_about_inner {
  display: flex;
  align-items: center;
  gap: clamp(32px, 6vw, 96px);
  min-height: 100vh;
  max-width: var(--container-width);
  margin-inline: auto;
  /* 固定ヘッダー分だけ上を空ける（ピン留め中に写真が潜り込まないように） */
  padding: calc(var(--header-height) + 32px) var(--container-pad) 40px;
}

/* ---------- 左：写真スタック ---------- */
.top_about_stack {
  position: relative;
  flex: 0 0 44%;
  max-width: 460px;
  aspect-ratio: 8 / 9;
}



.top_about_card {
  position: absolute;
  inset: 0;
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .18);
  transform-origin: center center;
  will-change: transform, opacity;
}

.top_about_card_link {
  display: block;
  width: 100%;
  height: 100%;
}

.top_about_card_img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 写真スタック右下の案内バッジ */
.top_about_stack::before {
  content: "インスタグラムで発信中！";
  position: absolute;
  right: -16px;
  bottom: -16px;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 132px;
  height: 132px;
  padding: 12px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  letter-spacing: .02em;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .2);
  transform: rotate(-8deg);
}

/* 写真スタック下の案内テキスト（画像はInstagramへのリンク） */
.top_about_stack::after {
  content: "画像クリックでインスタグラムに移動します";
  position: absolute;
  left: 50%;
  bottom: -32px;
  transform: translateX(-50%);
  width: max-content;
  font-size: 13px;
  color: #767676;
}

/* 初期の重ね順（GSAP がある場合は JS が上書き） */
.top_about_card:nth-child(1) { transform: translate(0%, 0%)   rotate(-2deg); z-index: 30; }
.top_about_card:nth-child(2) { transform: translate(-7%, -6%) rotate(3deg);  z-index: 20; }
.top_about_card:nth-child(3) { transform: translate(-13%, -11%) rotate(-4deg); z-index: 10; }

/* ---------- 右：テキスト ---------- */
.top_about_body {
  flex: 1 1 auto;
  max-width: 515px;
}

.top_about_eyebrow {
  margin: 0 0 24px;
  color: var(--color-primary);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .04em;
}

.top_about_heading {
  margin: 0 0 32px;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-weight: 700;
  line-height: 1.7;
  color: #000;
}

.top_about_text {
  margin: 0;
  font-size: clamp(.95rem, 1.15vw, 1.125rem);
  line-height: 2;
  color: #000;
}

/* ============================================================
   〜899px : 縦積み・ピンなし
   ============================================================ */
@media (max-width: 899px) {
  .top_about_inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 48px;
    min-height: 0;
    padding-block: 64px;
  }

  .top_about_stack {
    flex: none;
    width: min(78%, 360px);
    align-self: center;
  }

  .top_about_card { box-shadow: 0 16px 40px rgba(0, 0, 0, .16); }

  .top_about_stack::before {
    right: -10px;
    bottom: -10px;
    width: 96px;
    height: 96px;
    padding: 8px;
    font-size: 11px;
  }

  .top_about_body { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  .top_about_card { transition: none !important; }
}




/********************************************************************************************************
 * top_about  ここまで
 * ******************************************************************************************************/



/********************************************************************************************************
 * top_features  ここから
 * ******************************************************************************************************/
/* ============================================================
   top_features : サービスの特徴（Figma node 29-354）
   ------------------------------------------------------------
   PC: セクションをピン留め。スクロールで右カラム（5枚のカード）が
       下から上へ移動し、左のテキストが現在のカードに合わせて切替。
   SP: ピンなし。イントロ＋各特徴を縦に並べる。
   背景は赤（#D00000）、テキスト白、カードは白。
   ============================================================ */

.top_features {
  position: relative;
  z-index: 0;                 /* 直前の top_about（z-index 付き）を前面に出す */
  background: var(--color-primary);
  color: #fff;
}

/* PC: 上の top_about に少し潜り込ませる。
   transform: translateY(-220px) だと ScrollTrigger のピン計算が
   同じ量ずれる（ピンが 220px 下でかかる）ので、レイアウトに効く
   margin で寄せる。ピン位置は自動的に追従する。 */
@media (min-width: 900px) {
  .top_features { margin-top: -220px; }
}

.top_features_inner {
  position: relative;
  display: flex;
  align-items: center;
  height: 100vh;
  overflow: hidden;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* ---------- 左：テキスト（状態切替） ---------- */
.top_features_text {
  flex: 0 0 auto;
  width: min(48%, 515px);
  padding-top: 40px;   /* ヘッダーと少し離す */
}

.top_features_eyebrow {
  margin: 0 0 28px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .06em;
}

.top_features_states {
  position: relative;
  min-height: 480px;   /* 最も背の高い状態に合わせる */
}

.top_features_state {
  position: absolute;
  inset: 0;
  z-index: 1;
  /* 背景色で下の状態を隠し、テキストの二重表示を防ぐ */
  background: var(--color-primary);
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity .3s ease, transform .35s ease;
}

.top_features_state.is_active {
  z-index: 2;
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.top_features_state_head {
  margin: 0 0 28px;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 700;
  line-height: 1.5;
}

.top_features_state_body {
  margin: 0 0 20px;
  font-size: clamp(.95rem, 1.15vw, 1.125rem);
  line-height: 2;
}
.top_features_state_body:last-child { margin-bottom: 0; }

/* 各特徴テキストの上に置く画像。PC は非表示（右のカードトラックを使う）、
   SP でのみ表示する（下部メディアクエリ参照）。 */
.top_features_state_img,
.top_features_state_imgwrap { display: none; }

/* 05（楽しいイベント）の画像のみ：クリックでInstagramへ誘導 */
.top_features_insta_link {
  position: relative;
  display: block;
}

.top_features_card_imgwrap .top_features_insta_link {
  width: 100%;
  height: 100%;
}

.top_features_insta_link::before {
  content: "インスタグラムで発信中！";
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(208, 0, 0, .85);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.top_features_insta_link::after {
  content: "画像クリックでインスタグラムに移動します";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 8px 12px;
  background: rgba(0, 0, 0, .55);
  color: #fff;
  font-size: 11px;
  text-align: center;
  line-height: 1.4;
}

/* ---------- 右：カードトラック（絶対配置・JSで上へ移動） ---------- */
.top_features_track {
  position: absolute;
  top: 0;
  right: calc(var(--container-pad) + 34px);
  width: clamp(320px, 36vw, 470px);
  display: flex;
  flex-direction: column;
  gap: 44px;
  /* 先頭カード・最終カードが画面中央に来られるよう上下に余白 */
  padding-block: calc((100vh - 380px) / 2);
  will-change: transform;
}

.top_features_card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .22);
}

.top_features_card_imgwrap {
  aspect-ratio: 443 / 300;
  overflow: hidden;
}

.top_features_card_imgwrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.top_features_card_foot {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
}

.top_features_card_num {
  flex-shrink: 0;
  font-size: 24px;
  font-weight: 700;
  color: var(--color-primary);
  padding-right: 18px;
  border-right: 1px solid #cfcfcf;
  line-height: 1;
}

.top_features_card_catch {
  font-size: clamp(.85rem, 1vw, 1rem);
  font-weight: 500;
  color: #000;
  line-height: 1.4;
}

/* ---------- ページャー（右端・縦） ---------- */
.top_features_dots {
  position: absolute;
  right: var(--container-pad);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 17px;
  margin: 0;
}

.top_features_dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid #fff;
  background: var(--color-primary);
  transition: background-color .3s ease;
}

.top_features_dot.is_active { background: #fff; }

/* ============================================================
   〜899px : ピンなし・縦積み
   ============================================================ */
@media (max-width: 899px) {
  .top_features_inner {
    flex-direction: column;
    align-items: stretch;
    height: auto;
    overflow: visible;
    padding-block: 64px;
    gap: 40px;
  }

  .top_features_text {
    width: 100%;
    padding-top: 0;
  }

  .top_features_states {
    position: static;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 80px;
  }

  /* SPは全状態を縦に表示 */
  .top_features_state {
    position: static;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    background: transparent;
  }

  .top_features_state_head { margin-bottom: 16px; }

  /* 各特徴テキストの上に、その特徴に対応する画像を表示 */
  .top_features_state_imgwrap {
    display: block;
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(0, 0, 0, .22);
  }

  .top_features_state_img {
    display: block;
    width: 100%;
    height: auto;
  }

  .top_features_insta_link::before {
    padding: 5px 10px;
    font-size: 11px;
  }

  .top_features_insta_link::after {
    padding: 6px 10px;
    font-size: 10px;
  }

  /* SP はテキスト内の画像を使うため、右カラムのカードトラックは非表示 */
  .top_features_track { display: none; }

  .top_features_dots { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .top_features_state { transition: none; }
}



/********************************************************************************************************
 * top_features  ここまで
 * ******************************************************************************************************/

/********************************************************************************************************
 * top_service  ここから
 * ******************************************************************************************************/
/* ============================================================
   top_service : サービス内容（Figma node 29-473）
   ------------------------------------------------------------
   見出し（Service / サービス内容）＋区切り線
   ステージ：左に画像・右にテキスト。前後ボタンで切替。
   タブ：7つのサービス。アイコン＋キャッチ。クリックで該当を表示。
   state 0 はイントロ（タブ非選択）。1〜7 が各サービス。
   ============================================================ */

.top_service {
  background: #fff;
  padding-block: clamp(64px, 9vw, 120px);
}

.top_service_inner {
  display: flex;
  flex-direction: column;
}

/* ---------- 見出し ---------- */
.top_service_head {
  border-bottom: 1px solid #c5c2c2;
  padding-bottom: 18px;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.top_service_eyebrow {
  margin: 0 0 8px;
  color: var(--color-primary);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .04em;
}

.top_service_title {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.4;
  color: #000;
}

/* ---------- ステージ（画像＋テキスト＋前後ボタン） ---------- */
.top_service_stage {
  position: relative;
}

/* ビューポート：横スワイプはJSで拾い、縦スクロールは通す */
.top_service_panels {
  position: relative;
  overflow: hidden;
  touch-action: pan-y;



  transform: translateX(-50%);
  width: 100vw;
  left: 50%;
}

/* 全パネルを横一列に並べたトラック。JSで translateX する */
.top_service_track {
  display: flex;
  align-items: stretch;
  will-change: transform;
}

.top_service_track.is_animating {
  transition: transform .5s cubic-bezier(.22, .61, .36, 1);
}

.top_service_track.is_dragging {
  cursor: grabbing;
  user-select: none;
}

.top_service_panel {
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: minmax(0, 598px) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 47px);
  align-items: center;
  /* スライド自体は画面いっぱいまで動くが、中身は見出し・タブと同じ
     コンテナ幅で中央寄せ（.l_container の内側＝1160-40 に揃える） */
  padding-inline: max(var(--container-pad),
      calc((100% - var(--container-width)) / 2 + var(--container-pad)));
}

/* JS 無効時のフォールバック（トラック化されないので1枚だけ表示） */
.top_service_panel[hidden] {
  display: none;
}

.top_service_panel_imgwrap {
  aspect-ratio: 598 / 489;
  border-radius: 5px;
  overflow: hidden;
}


@media (max-width: 780px) {
  .top_service_panel_imgwrap {
    aspect-ratio: 598 / 300;
  }

}


.top_service_panel_img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  -webkit-user-drag: none;
  /* 画像のネイティブドラッグを無効化 */
  user-select: none;
}

@media (max-width: 780px) {
  .top_service_panel_img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    display: block;
    -webkit-user-drag: none;
    /* 画像のネイティブドラッグを無効化 */
    user-select: none;
  }
}




.top_service_panel_body {
  max-width: 515px;
}

.top_service_panel_title {
  margin: 0 0 24px;
  font-size: clamp(1.25rem, 1.9vw, 1.5rem);
  font-weight: 700;
  line-height: 1.6;
  color: #000;
}

.top_service_panel_text {
  margin: 0;
  font-size: clamp(.95rem, 1.1vw, 1.0625rem);
  line-height: 2;
  color: #000;
}

/* ---------- 前後ボタン ---------- */
.top_service_arrow {
  position: absolute;
  top: 0;
  bottom: 0;
  margin-block: auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: grid;
  place-items: center;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 3;
}

.top_service_arrow:hover {
  opacity: .82;
}

.top_service_arrow:active {
  transform: scale(.94);
}

.top_service_arrow svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.top_service_arrow--prev {
  left: 0;
  transform: translateX(-50%);
  opacity: 0.5;
}

.top_service_arrow--next {
  right: 0;
  transform: translateX(50%);
  opacity: 0.5;
}

.top_service_arrow--prev:active {
  transform: translateX(-50%) scale(.94);
}

.top_service_arrow--next:active {
  transform: translateX(50%) scale(.94);
}

/* ---------- タブ（7サービス） ---------- */
.top_service_tabs {
  margin: clamp(36px, 5vw, 56px) 0 0;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  /* border-top: 1px solid #d9d9d9;
  border-left: 1px solid #d9d9d9; */
}

.top_service_tab {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  width: 100%;
  min-height: 158px;
  padding: 20px 10px 16px;
  /* border-right: 1px solid #d9d9d9;
  border-bottom: 1px solid #d9d9d9; */
  color: #000;
  transition: border-color .2s ease, background-color .2s ease;
}

.top_service_tab_icon {
  width: clamp(56px, 6vw, 76px);
  height: clamp(56px, 6vw, 76px);
  object-fit: contain;
  display: block;
}

.top_service_tab_catch {
  font-size: clamp(.72rem, .85vw, .8125rem);
  line-height: 1.5;
  text-align: center;
}

.top_service_tab:hover {
  border-color: var(--color-primary);
  z-index: 1;
}

.top_service_tab.is_active {
  border-color: var(--color-primary);
  background: rgba(208, 0, 0, .05);
  z-index: 2;
}

/* ============================================================
   〜899px : 縦積み
   ============================================================ */
@media (max-width: 899px) {
  .top_service_panel {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .top_service_panel_body {
    max-width: none;
  }

  /* 画像は全幅（aspect-ratio 598/489）。その縦中央にボタンを合わせる */
  .top_service_arrow {
    top: calc((100vw - var(--container-pad) * 2) * 489 / 598 / 2 - 22px);
    bottom: auto;
    margin-block: 0;
  }

  .top_service_arrow--prev {
    left: -15px;
    top: 60px;
    transform: none;
  }

  .top_service_arrow--next {
    right: -15px;
    top: 60px;
    transform: none;
  }

  .top_service_arrow--prev:active,
  .top_service_arrow--next:active {
    transform: scale(.94);
  }

  .top_service_tabs {
    grid-template-columns: repeat(3, 1fr);
  }

  .top_service_tab {
    min-height: 138px;
  }
}

@media (max-width: 559px) {
  .top_service_tabs {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* prefers-reduced-motion: reduce では transition-duration を潰さない。
   iOS は低電力モード中これを reduce として報告するため、ここで無効化すると
   低電力モードのiPhoneでスワイプ後のスナップが瞬間移動になってしまう。 */


/********************************************************************************************************
 * top_service  ここまで
 * ******************************************************************************************************/


/********************************************************************************************************
 * top_flow  ここから
 * ******************************************************************************************************/
/* ============================================================
   top_flow : ご利用の流れ（Figma node 29-406）
   ------------------------------------------------------------
   見出し（Flow / ご利用の流れ）＋区切り線
   リード：左テキスト・右画像
   STEP 01〜05：白カード（枠 #d9d9d9・角丸10）。
     ヘッダー行＝左端に「STEP / 番号」、中央にタイトル、下に区切り線。
     01 は電話ボックス、02 は必要書類リスト＋ダウンロードボタン。
   ============================================================ */

.top_flow {
  background: #fff;
  padding-block: clamp(64px, 9vw, 120px);
}

.top_flow_inner {
  display: flex;
  flex-direction: column;
}

/* ---------- 見出し ---------- */
.top_flow_head {
  border-bottom: 1px solid #c5c2c2;
  padding-bottom: 18px;
}

.top_flow_eyebrow {
  margin: 0 0 8px;
  color: var(--color-primary);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .04em;
}

.top_flow_title {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.4;
  color: #000;
}

/* ---------- リード（左テキスト＋右画像） ---------- */
.top_flow_lead {
  margin-top: clamp(40px, 6vw, 64px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 598px);
  gap: clamp(32px, 4vw, 48px);
  align-items: center;
}

.top_flow_lead_title {
  margin: 0 0 24px;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 700;
  line-height: 1.7;
  color: #000;
}

.top_flow_lead_text {
  margin: 0;
  font-size: clamp(.95rem, 1.1vw, 1rem);
  line-height: 2.1;
  color: #000;
}

.top_flow_lead_figure {
  margin: 0;
  border-radius: 5px;
  overflow: hidden;
}

.top_flow_lead_figure img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 598 / 479;
  object-fit: cover;
  object-position: center;
}

/* ---------- STEP カード群 ---------- */
.top_flow_steps {
  margin-top: clamp(48px, 7vw, 88px);
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 4vw, 50px);
}

.top_flow_step {
  border: 1px solid #d9d9d9;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}

/* ヘッダー行 */
.top_flow_step_head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 96px;
  padding: 28px 88px;
  border-bottom: 1px solid #ececec;
}

.top_flow_step_label {
  position: absolute;
  left: 35px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
  color: var(--color-primary);
  font-weight: 700;
}

.top_flow_step_label_txt {
  font-size: clamp(.9rem, 1.4vw, 1.5rem);
  letter-spacing: .06em;
}

.top_flow_step_label_num {
  font-size: clamp(1.4rem, 2.4vw, 1.875rem);
}

.top_flow_step_title {
  margin: 0;
  font-size: clamp(1.25rem, 1.9vw, 1.5rem);
  font-weight: 700;
  line-height: 1.5;
  color: #000;
  text-align: center;
}

/* 本文 */
.top_flow_step_body {
  padding: 40px 52px 48px;
}

.top_flow_step_lead {
  margin: 0 0 16px;
  font-size: clamp(.95rem, 1.1vw, 1rem);
  font-weight: 700;
  line-height: 1.9;
  color: #000;
}

.top_flow_step_text {
  margin: 0;
  font-size: clamp(.95rem, 1.1vw, 1rem);
  line-height: 2;
  color: #000;
}

/* ---------- STEP01 : 電話ボックス ---------- */
.top_flow_tel {
  margin-top: 32px;
  max-width: 983px;
  display: flex;
  align-items: stretch;
  border: 1px solid var(--color-primary);
  border-radius: 10px;
  overflow: hidden;
}

.top_flow_tel_icon {
  flex: 0 0 auto;
  width: clamp(120px, 16vw, 185px);
  display: grid;
  place-items: center;
  background: var(--color-primary);
  color: #fff;
}

.top_flow_tel_icon img {
  width: clamp(48px, 6vw, 72px);
  height: auto;
}

.top_flow_tel_body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 16px clamp(20px, 3vw, 36px);
}

.top_flow_tel_hours {
  font-size: clamp(.9rem, 1vw, 1rem);
  color: #000;
}

.top_flow_tel_num {
  font-size: clamp(1.9rem, 4.4vw, 3.125rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-primary);
}

/* ---------- STEP02 : 必要書類＋ダウンロード ---------- */
.top_flow_docs {
  margin: 8px 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, auto);
  grid-auto-flow: column;
  gap: 4px 40px;
  justify-content: start;
}

.top_flow_docs li {
  font-size: clamp(.95rem, 1.1vw, 1rem);
  line-height: 1.9;
  color: #000;
  padding-left: 1.1em;
  text-indent: -1.1em;
}

.top_flow_docs li::before {
  content: "・";
}

.top_flow_dl {
  margin-top: 36px;
  display: flex;
  justify-content: center;
}

.top_flow_dl_btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-width: min(546px, 100%);
  padding: 13px 32px;
  border: 1px solid var(--color-primary);
  border-radius: 999px;
  font-size: clamp(.95rem, 1.1vw, 1rem);
  font-weight: 700;
  color: #000;
  transition: background-color .2s ease, color .2s ease;
}

.top_flow_dl_btn:hover {
  background: var(--color-primary);
  color: #fff;
}

.top_flow_dl_arw {
  font-weight: 700;
}

/* ============================================================
   〜900px
   ============================================================ */
@media (max-width: 900px) {
  .top_flow_lead {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .top_flow_step_head {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    min-height: 0;
    padding: 22px 22px;
    gap: 4px;
  }

  .top_flow_step_label {
    position: static;
    transform: none;
    flex-direction: row;
    align-items: baseline;
    gap: 8px;
  }

  .top_flow_step_title {
    text-align: left;
  }

  .top_flow_step_body {
    padding: 26px 22px 30px;
  }

  .top_flow_docs {
    grid-auto-flow: row;
    grid-template-columns: 1fr;
    grid-template-rows: none;
    gap: 2px;
  }
}

/* ============================================================
   〜600px
   ============================================================ */
@media (max-width: 600px) {
  .top_flow_tel {
    flex-direction: column;
  }

  .top_flow_tel_icon {
    width: 100%;
    height: 60px;
  }

  .top_flow_tel_body {
    padding: 14px 18px 18px;
    align-items: center;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .top_flow_lead > *,
  .top_flow_step {
    opacity: 1 !important;
    transform: none !important;
  }
}



/********************************************************************************************************
 * top_flow  ここまで
 * ******************************************************************************************************/







/********************************************************************************************************
 * top_news  ここから
 * ******************************************************************************************************/
/* ============================================================
   top_news : お知らせ（Figma node 29-508）
   ------------------------------------------------------------
   薄グレー背景の全幅セクション。
   左：見出し（News / お知らせ / リード）
   右：カテゴリー絞り込みタブ（すべて／お知らせ／イベント／その他）
   下：お知らせ一覧（カテゴリーバッジ＋日付＋タイトル）＋「お知らせ一覧へ」
   ============================================================ */

.top_news {
  background: #f5f5f5;
  padding-block: clamp(64px, 9vw, 110px);
}

.top_news_inner {
  display: flex;
  flex-direction: column;
}

/* ---------- ヘッダー（見出し＋絞り込みタブ） ---------- */
.top_news_head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(24px, 4vw, 48px);
  padding-bottom: 18px;
  border-bottom: 1px solid #c5c2c2;
}

.top_news_head_text {
  flex: 0 1 auto;
  max-width: 515px;
}

.top_news_eyebrow {
  margin: 0 0 8px;
  color: var(--color-primary);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .04em;
}

.top_news_title {
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 3vw, 1.875rem);
  font-weight: 700;
  line-height: 1.4;
  color: #000;
}

.top_news_lead {
  margin: 0;
  font-size: clamp(.9rem, 1vw, 1rem);
  line-height: 1.6;
  color: #000;
}

/* ---------- 絞り込みタブ ---------- */
.top_news_filter {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: stretch;
  gap: clamp(6px, 1.4vw, 24px);
  padding-right: clamp(16px, 3vw, 48px);
  background: #eaeaea;
  border-radius: 999px;
}

.top_news_filter_btn {
  padding: clamp(8px, 1.4vw, 13px) clamp(16px, 2.2vw, 34px);
  border-radius: 999px;
  font-size: clamp(.95rem, 1.1vw, 1.5rem);
  font-weight: 400;
  line-height: 1;
  color: #000;
  white-space: nowrap;
  transition: background-color .2s ease, color .2s ease;
}

.top_news_filter_btn:hover {
  color: var(--color-primary);
}

.top_news_filter_btn.is_active {
  background: var(--color-primary);
  color: #fff;
}

/* ---------- 一覧 ---------- */
.top_news_list {
  margin: 0;
}

.top_news_item_link {
  display: flex;
  align-items: center;
  column-gap: clamp(16px, 3vw, 48px);
  row-gap: 8px;
  padding: clamp(18px, 2.6vw, 24px) 0;
  border-bottom: 1px solid #c5c2c2;
  color: #000;
}

.top_news_cat {
  flex: 0 0 auto;
  min-width: 122px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(208, 0, 0, .16);
  color: var(--color-primary);
  font-size: clamp(.8rem, 1vw, 1rem);
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
}

.top_news_date {
  flex: 0 0 auto;
  font-size: clamp(.85rem, 1vw, 1rem);
  color: #000;
  font-variant-numeric: tabular-nums;
}

.top_news_text {
  flex: 1 1 auto;
  min-width: 0;
  font-size: clamp(.9rem, 1vw, 1rem);
  color: #000;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color .2s ease;
}

.top_news_item_link:hover .top_news_text {
  color: var(--color-primary);
}

/* ---------- お知らせ一覧へ ---------- */
.top_news_more {
  display: flex;
  justify-content: flex-end;
  margin-top: clamp(24px, 4vw, 40px);
}

.top_news_more_btn {
  display: inline-flex;
  align-items: center;
  padding: 7px 28px;
  border: 1px solid var(--color-primary);
  border-radius: 999px;
  font-size: clamp(.9rem, 1vw, 1rem);
  color: #000;
  transition: background-color .2s ease, color .2s ease;
}

.top_news_more_btn:hover {
  background: var(--color-primary);
  color: #fff;
}

/* ============================================================
   〜900px : 見出しとタブを縦積み
   ============================================================ */
@media (max-width: 900px) {
  .top_news_head {
    flex-direction: column;
    align-items: flex-start;
  }

  .top_news_head_text {
    max-width: none;
  }

  .top_news_filter {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .top_news_filter::-webkit-scrollbar {
    display: none;
  }
}

/* ============================================================
   〜600px : 一覧はバッジ＋日付／タイトルで改行
   ============================================================ */
@media (max-width: 600px) {
  .top_news_item_link {
    flex-wrap: wrap;
    column-gap: 14px;
  }

  .top_news_cat {
    min-width: 0;
    padding: 5px 12px;
  }

  .top_news_text {
    flex-basis: 100%;
    white-space: normal;
    overflow: visible;
    line-height: 1.7;
  }
}

@media (prefers-reduced-motion: reduce) {
  .top_news_head_text > *,
  .top_news_item {
    opacity: 1 !important;
    transform: none !important;
  }
}



/********************************************************************************************************
 * top_news  ここまで
 * ******************************************************************************************************/

/********************************************************************************************************
 * news  投稿用 ここから
 * ******************************************************************************************************/
/* ============================================================
   カテゴリバッジ 共通（top_news・一覧・モーダルで共有）
   ============================================================ */
.news_cat {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: clamp(.72rem, .9vw, .85rem);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: .02em;
  white-space: nowrap;
  text-align: center;
}

.news_cat.is_default {
  background: var(--news-badge-default-bg);
  color: var(--color-primary, #d00000);
}

.news_cat.is_event {
  background: var(--color-primary, #d00000);
  color: #fff;
}

.news_cat.is_other {
  background: #ececec;
  color: #555;
}

/* ============================================================
   top_news 追加分（ボタン化した行・空表示）
   ============================================================ */
.top_news_item_link {
  width: 100%;
  font: inherit;
  text-align: left;
  background: none;
  border: 0;
  border-bottom: 1px solid #c5c2c2;
  cursor: pointer;
}

.top_news_item_link:focus-visible {
  outline: 2px solid var(--color-primary, #d00000);
  outline-offset: -2px;
}

/* top_news の行内バッジは幅を揃える */
.top_news_cat.news_cat {
  flex: 0 0 auto;
  min-width: 116px;
}

.top_news_empty {
  padding: 40px 0;
  text-align: center;
  color: #888;
  font-size: .95rem;
}

@media (max-width: 600px) {
  .top_news_cat.news_cat { min-width: 0; }
}

/* ============================================================
   news_list  —  お知らせ一覧ページ
   ============================================================ */
.news_list {
  background: #fff;
  padding-block: clamp(56px, 9vw, 100px);
}

#news_list {
  scroll-margin-top: var(--header-height, 75px);
}

.news_list__head {
  border-bottom: 1px solid #c5c2c2;
  padding-bottom: 16px;
  margin-bottom: clamp(28px, 5vw, 48px);
}

.news_list__eyebrow {
  margin: 0 0 8px;
  color: var(--color-primary, #d00000);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .04em;
}

.news_list__title {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.4;
  color: #000;
}

.news_list__layout {
  display: flex;
  align-items: flex-start;
  gap: clamp(28px, 4vw, 48px);
}

.news_list__main {
  flex: 1 1 auto;
  min-width: 0;
}

/* ---- カードグリッド ---- */
.news_grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: start;
  gap: clamp(18px, 2.4vw, 28px);
}

.news_card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--news-line);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .22s ease, box-shadow .22s ease;
}

.news_card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .10);
}

.news_card:focus-visible {
  outline: 2px solid var(--color-primary, #d00000);
  outline-offset: 2px;
}

.news_card__thumb {
  position: relative;
  padding-top: 56%;
  background: #f2f2f2;
}

.news_card__thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news_card__body {
  padding: clamp(16px, 2vw, 22px);
}

.news_card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.news_card__date {
  font-size: .8rem;
  color: #888;
  font-variant-numeric: tabular-nums;
}

.news_card__title {
  margin: 0 0 8px;
  font-size: clamp(.98rem, 1.2vw, 1.1rem);
  font-weight: 700;
  line-height: 1.55;
  color: #1a1a1a;
}

.news_card__excerpt {
  margin: 0;
  font-size: .85rem;
  line-height: 1.8;
  color: #555;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news_empty {
  padding: 48px 0;
  text-align: center;
  color: #888;
}

/* ---- ページネーション ---- */
.news_list__pager {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: clamp(32px, 5vw, 52px);
  flex-wrap: wrap;
}

.news_list__pager .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--news-line);
  border-radius: 6px;
  font-size: .9rem;
  font-weight: 700;
  color: #1a1a1a;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.news_list__pager .page-numbers:hover,
.news_list__pager .page-numbers.current {
  background: var(--color-primary, #d00000);
  border-color: var(--color-primary, #d00000);
  color: #fff;
}

.news_list__pager .page-numbers.dots {
  border: 0;
}

/* ---- サイドバー ---- */
.news_list__side {
  flex: 0 0 240px;
  width: 240px;
}

.news_list__side_title {
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid #ececec;
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a1a;
}

.news_list__side_list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.news_list__side_link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 11px 16px;
  border: 1px solid var(--news-line);
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 700;
  color: #1a1a1a;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.news_list__side_link:hover {
  border-color: var(--color-primary, #d00000);
  color: var(--color-primary, #d00000);
}

.news_list__side_link.is_active {
  background: var(--color-primary, #d00000);
  border-color: var(--color-primary, #d00000);
  color: #fff;
}

.news_list__side_count {
  flex: 0 0 auto;
  min-width: 24px;
  padding: 1px 7px;
  border-radius: 999px;
  background: #f0f0f0;
  color: #777;
  font-size: .75rem;
  text-align: center;
}

.news_list__side_link.is_active .news_list__side_count {
  background: #fff;
  color: var(--color-primary, #d00000);
}

@media (max-width: 980px) {
  .news_list__layout {
    flex-direction: column;
  }
  .news_list__side {
    order: -1;
    width: 100%;
    flex-basis: auto;
  }
  .news_list__side_list {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .news_list__side_link {
    padding: 8px 14px;
  }
}

@media (max-width: 560px) {
  .news_grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   詳細モーダル（news_modal）
   ============================================================ */
.news_modal[hidden] {
  display: none !important;
}

.news_modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(14px, 4vw, 48px);
}

.news_modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .5);
  opacity: 0;
  transition: opacity .25s ease;
}

.news_modal.is_open .news_modal__overlay {
  opacity: 1;
}

.news_modal__dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(600px, 100%);
  max-height: min(86vh, 100%);
  background: #fff;
  border-radius: 10px;
  overflow: hidden auto;
  opacity: 0;
  transform: translateY(14px) scale(.985);
  transition: opacity .25s ease, transform .25s ease;
}

.news_modal.is_open .news_modal__dialog {
  opacity: 1;
  transform: none;
}

.news_modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  font-size: 24px;
  line-height: 1;
  color: #333;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .18);
  transition: background-color .2s ease;
}

.news_modal__close:hover {
  background: #f0f0f0;
}

.news_modal__thumb {
  position: relative;
  padding-top: 52%;
  background: #f2f2f2;
}

.news_modal__thumb[hidden] {
  display: none;
}

.news_modal__thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news_modal__body {
  padding: clamp(22px, 4vw, 32px);
}

.news_modal__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.news_modal__badge[hidden] {
  display: none;
}

.news_modal__date {
  font-size: .82rem;
  color: #888;
  font-variant-numeric: tabular-nums;
}

.news_modal__title {
  margin: 0 0 14px;
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  font-weight: 700;
  line-height: 1.5;
  color: #1a1a1a;
}

/* 本文（ACF WYSIWYG の HTML をそのまま表示） */
.news_modal__text {
  margin: 0;
  font-size: clamp(.88rem, 1vw, .95rem);
  line-height: 1.95;
  color: #333;
}

.news_modal__text > :first-child { margin-top: 0; }
.news_modal__text > :last-child { margin-bottom: 0; }

.news_modal__text p { margin: 0 0 1em; }

.news_modal__text img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin: .6em 0;
}

.news_modal__text a {
  color: var(--color-primary, #d00000);
  text-decoration: underline;
}

.news_modal__text strong,
.news_modal__text b { font-weight: 700; }

.news_modal__text h2,
.news_modal__text h3,
.news_modal__text h4 {
  font-weight: 700;
  line-height: 1.5;
  color: #1a1a1a;
  margin: 1.5em 0 .5em;
}

.news_modal__text h2 { font-size: 1.15rem; }
.news_modal__text h3 { font-size: 1.05rem; }
.news_modal__text h4 { font-size: 1rem; }

.news_modal__text ul,
.news_modal__text ol {
  margin: 0 0 1em;
  padding-left: 1.5em;
}

.news_modal__text ul { list-style: disc; }
.news_modal__text ol { list-style: decimal; }
.news_modal__text li { margin: .35em 0; display: list-item; }

.news_modal__text blockquote {
  margin: 1em 0;
  padding: .6em 1em;
  border-left: 3px solid var(--color-primary-light, #ff4d4d);
  background: #faf5f5;
  color: #555;
}

.news_modal__text table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0;
  font-size: .92em;
}

.news_modal__text th,
.news_modal__text td {
  border: 1px solid var(--news-line);
  padding: 8px 10px;
  text-align: left;
}

@media (prefers-reduced-motion: reduce) {
  .news_modal__overlay,
  .news_modal__dialog {
    transition-duration: .01ms;
  }
}

/* ============================================================
   投稿フォーム（news_form）— CF7 出力クラスにも対応
   ============================================================ */
.news_form {
  background: #f5f5f5;
  padding-block: clamp(48px, 8vw, 88px);
}

.news_form__inner {
  max-width: 680px;
}

.news_form__head {
  margin-bottom: clamp(24px, 4vw, 36px);
}

.news_form__eyebrow {
  margin: 0 0 8px;
  color: var(--color-primary, #d00000);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .04em;
}

.news_form__title {
  margin: 0 0 12px;
  font-size: clamp(1.4rem, 3vw, 1.875rem);
  font-weight: 700;
  color: #1a1a1a;
}

.news_form__lead {
  margin: 0;
  font-size: clamp(.88rem, 1vw, 1rem);
  line-height: 1.9;
  color: #333;
}

.news_form__row {
  margin-bottom: clamp(16px, 2.4vw, 24px);
}

.news_form__label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 6px;
  font-size: .92rem;
  font-weight: 700;
  color: #1a1a1a;
}

.news_form__req {
  padding: 2px 8px;
  font-size: .7rem;
  color: #fff;
  background: var(--color-primary, #d00000);
  border-radius: 4px;
}

.news_form__req--any {
  color: #666;
  background: #e0e0e0;
}

.news_form__note {
  display: block;
  margin: 0 0 8px;
  font-size: .78rem;
  color: #777;
  line-height: 1.7;
}

.news_form__inner input[type="text"],
.news_form__inner textarea,
.news_form__inner select,
.news_form__inner .wpcf7-text,
.news_form__inner .wpcf7-textarea,
.news_form__inner .wpcf7-select {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  color: #1a1a1a;
  background: #fff;
  border: 1px solid #c4c4c4;
  border-radius: 6px;
  -webkit-appearance: none;
  appearance: none;
}

.news_form__inner textarea {
  min-height: 160px;
  line-height: 1.7;
  resize: vertical;
}

.news_form__inner input:focus,
.news_form__inner textarea:focus,
.news_form__inner select:focus {
  outline: none;
  border-color: var(--color-primary, #d00000);
  box-shadow: 0 0 0 3px rgba(208, 0, 0, .12);
}

.news_form__inner input[type="file"] {
  width: 100%;
  font: inherit;
  padding: 10px 0;
}

.news_form__submit_wrap {
  margin-top: clamp(24px, 4vw, 36px);
  text-align: center;
}

.news_form__inner .wpcf7-submit,
.news_form__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 260px;
  padding: 15px 44px;
  font: inherit;
  font-weight: 700;
  color: #fff;
  background: var(--color-primary, #d00000);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color .2s ease;
}

.news_form__inner .wpcf7-submit:hover,
.news_form__submit:hover {
  background: #b00000;
}

.news_form__inner .wpcf7-not-valid-tip {
  display: block;
  margin-top: 6px;
  font-size: .82rem;
  color: var(--color-primary, #d00000);
}

.news_form__inner .wpcf7-response-output {
  margin: 22px 0 0 !important;
  padding: 14px 16px !important;
  border-radius: 6px;
  font-size: .9rem;
}

.news_form__notice {
  max-width: 680px;
  margin-inline: auto;
  padding: 24px;
  text-align: center;
  color: #888;
}

@media (max-width: 700px) {
  .news_form__inner .wpcf7-submit,
  .news_form__submit {
    width: 100%;
    min-width: 0;
  }
}




/********************************************************************************************************
 * news  投稿用 ここまで
 * ******************************************************************************************************/

/********************************************************************************************************
 * top_gallery   ここから
 * ******************************************************************************************************/
/* ============================================================
   top_gallery : 画像スライダー（Figma node 29-552）
   ------------------------------------------------------------
   全幅の横帯。5枚の写真を散らして配置し、スクロールに連動して
   トラック全体が右→左へスライド（js/top_gallery.js／GSAP scrub）。
   その上に白い大きな文字「EVERYDAY MOMENTS ●」が
   エンドレスで右→左へ流れる（CSS marquee）。
   背景は透明（Figma 準拠）＝文字は写真に重なった部分で見える。
   ============================================================ */

.top_gallery {
  background: #f5f5f5;
  padding-block: clamp(56px, 9vw, 110px);
  overflow: hidden;
  padding-bottom:440px;
  z-index:0;
}

/* 写真＋文字の帯本体（この高さが色付き余白の内側になる） */
.top_gallery_inner {
  position: relative;
  height: clamp(400px, 44vw, 560px);
}

/* ---------- 写真トラック ---------- */
.top_gallery_viewport {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  z-index: 1;
}

.top_gallery_track {
  position: relative;
  flex: 0 0 auto;
  height: 100%;
  /* 画面幅より少し広く取り、はみ出し分をスクロールで左へ流す。
     モバイルでは最小 760px を確保して写真が小さくなりすぎないように。 */
  width: max(118vw, 760px);
  will-change: transform;
}

.top_gallery_fig {
  position: absolute;
  margin: 0;
  border-radius: 5px;
  overflow: hidden;
}

.top_gallery_fig img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 位置・サイズ（画面全幅の帯に散らす。left/width はトラック幅基準） */
.top_gallery_fig--1 { left: 39%; top: 2%;   width: 22%; aspect-ratio: 618 / 501; }
.top_gallery_fig--2 { left: 20%; top: 34%;  width: 22%; aspect-ratio: 616 / 501; }
.top_gallery_fig--3 { left: 0;   top: 4%;   width: 16%; aspect-ratio: 470 / 691; }
.top_gallery_fig--4 { left: 82%; top: 1%;   width: 16%; aspect-ratio: 475 / 691; }
.top_gallery_fig--5 { left: 58%; top: 66%;  width: 13%; aspect-ratio: 393 / 210; }

/* Figma の半透明ピル（Group121 の上） */
.top_gallery_fig--3::before,
.top_gallery_fig--3::after {
  content: "";
  position: absolute;
  width: 26%;
  aspect-ratio: 122 / 173;
  border-radius: 999px;
  background: rgba(217, 217, 217, .2);
  pointer-events: none;
}

.top_gallery_fig--3::before { left: 28%; top: 2.6%; }
.top_gallery_fig--3::after  { left: 56%; top: 15.2%; }

/* ---------- 流れる文字 ---------- */
.top_gallery_marquee {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  transform: translateY(-50%);
  overflow: hidden;
  z-index: 2;
  pointer-events: none;
}

.top_gallery_marquee_track {
  display: flex;
  width: max-content;
  animation: top_gallery_marquee 64s linear infinite;
}

.top_gallery_marquee_group {
  display: flex;
  flex: 0 0 auto;
}

.top_gallery_marquee_item {
  flex: 0 0 auto;
  padding-right: .35em;
  color: #fff;
  font-size: clamp(2.5rem, 8vw, 6.25rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: .1em;
  white-space: nowrap;
}

@keyframes top_gallery_marquee {
  to { transform: translateX(-50%); }
}

/* ---------- モバイル：帯を詰めて写真を大きめに ---------- */
@media (max-width: 700px) {
  .top_gallery {
    padding-block: clamp(40px, 9vw, 72px);
  }

  .top_gallery_inner {
    height: clamp(300px, 76vw, 420px);
  }

  .top_gallery_track {
    width: 178vw;
  }

  .top_gallery_fig--1 { width: 33%; }
  .top_gallery_fig--2 { width: 33%; }
  .top_gallery_fig--3 { width: 24%; }
  .top_gallery_fig--4 { width: 24%; }
  .top_gallery_fig--5 { width: 19%; }

  .top_gallery_marquee_item {
    font-size: clamp(2rem, 13vw, 4rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .top_gallery_marquee_track {
    animation-duration: 120s;
  }
}

/********************************************************************************************************
 * top_gallery   ここまで
 * ******************************************************************************************************/

/********************************************************************************************************
 * top_staff   ここから
 * ******************************************************************************************************/
/* ============================================================
   top_staff : スタッフ紹介
   ------------------------------------------------------------
   左に写真・右に文章。セクションをピン留めし、スクロールで
   2名がクロスフェードで切り替わる（js/top_staff.js / GSAP）。
   900px 未満はピンなし・2名を縦に並べて表示。
   ============================================================ */

.top_staff {
  background: #fff;
  padding-block: clamp(56px, 8vw, 100px);
}

.top_staff_head {
  border-bottom: 1px solid #c5c2c2;
  padding-bottom: 16px;
  margin-bottom: clamp(24px, 4vw, 44px);
}

.top_staff_eyebrow {
  margin: 0 0 8px;
  color: var(--color-primary);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .04em;
}

.top_staff_title {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.4;
  color: #000;
}

/* ---------- ステージ（パネルを重ねる） ---------- */
.top_staff_stage {
  position: relative;
  min-height: clamp(420px, 52vh, 560px);
}

.top_staff_panel {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 330px) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.top_staff_photo {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  max-height: clamp(420px, 52vh, 560px);
  background: #eee;
}

.top_staff_photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  will-change: transform;
}

.top_staff_role {
  display: inline-block;
  margin: 0 0 16px;
  padding: 5px 16px;
  background: rgba(208, 0, 0, .1);
  color: var(--color-primary);
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 700;
}

.top_staff_name {
  margin: 0 0 6px;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 700;
  line-height: 1.3;
  color: #1a1a1a;
}

.top_staff_name span {
  display: block;
  margin-top: 6px;
  font-size: .48em;
  font-weight: 500;
  letter-spacing: .08em;
  color: #aaa;
}

.top_staff_qual {
  margin: 0 0 20px;
  font-size: .82rem;
  color: #777;
}

.top_staff_text {
  font-size: clamp(.9rem, 1.05vw, 1rem);
  line-height: 2;
  color: #333;
}

.top_staff_text p {
  margin: 0 0 1em;
}

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

.top_staff_text strong {
  color: var(--color-primary);
  font-weight: 700;
}

/* ---------- ページャー（現在の人物） ---------- */
.top_staff_pager {
  position: absolute;
  right: 0;
  bottom: -8px;
  display: flex;
  gap: 10px;
}

.top_staff_pager li {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d6d6d6;
  transition: background-color .3s ease, transform .3s ease;
}

.top_staff_pager li.is_active {
  background: var(--color-primary);
  transform: scale(1.25);
}

/* ============================================================
   〜900px : ピンなし・縦並び
   ============================================================ */
@media (max-width: 900px) {
  .top_staff_stage {
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: clamp(40px, 8vw, 64px);
  }

  .top_staff_panel {
    position: static;
    inset: auto;
    opacity: 1 !important;
    visibility: visible !important;
    grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
    gap: clamp(20px, 4vw, 40px);
  }

  .top_staff_photo img {
    transform: none !important;
  }

  .top_staff_pager {
    display: none;
  }
}

@media (max-width: 600px) {
  .top_staff_panel {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .top_staff_photo {
    max-width: 300px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .top_staff_panel {
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .top_staff_stage {
    display: flex;
    flex-direction: column;
    gap: 56px;
    min-height: 0;
  }
}




/********************************************************************************************************
 * top_staff   ここまで
 * ******************************************************************************************************/

/********************************************************************************************************
 * top_cta    ここから
 * ******************************************************************************************************/
/* ============================================================
   top_cta : アクセス / お問い合わせ（Figma node 29-559）
   ------------------------------------------------------------
   赤背景の全幅セクション。白いピル型カードを2つ横並び。
   各カード＝赤い丸アイコン＋見出し＋説明。カード全体がリンク。
   ============================================================ */

.top_cta {
  background: var(--color-primary);
  padding-block: clamp(56px, 11vw, 140px);
  border-radius: 200px 0 0 0;
   margin-top:-220px;
}
@media  (max-width: 780px) {
.top_cta {
   margin-top:0;
}
}
.top_cta_list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(20px, 5vw, 90px);
}

.top_cta_card {
  flex: 0 1 470px;
  max-width: 470px;
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 26px);
  min-height: 183px;
  padding: 22px clamp(28px, 3.5vw, 44px);
  background: #fff;
  border-radius: 100px;
  color: #000;
  transition: transform .25s ease, box-shadow .25s ease;
}

.top_cta_card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, .18);
}

.top_cta_card_icon {
  flex: 0 0 auto;
  width: clamp(72px, 8vw, 94px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  background: var(--color-primary);
  border-radius: 50%;
}

.top_cta_card_icon img {
  width: 64%;
  height: 64%;
  object-fit: contain;
}

.top_cta_card_body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.top_cta_card_title {
  margin: 0;
  font-size: clamp(1.15rem, 1.7vw, 1.5rem);
  font-weight: 700;
  line-height: 1.3;
}

.top_cta_card_text {
  margin: 0;
  font-size: clamp(.85rem, 1vw, 1rem);
  line-height: 1.6;
  color: #1a1a1a;
}

/* ============================================================
   〜768px : カードを縦積み
   ============================================================ */
@media (max-width: 768px) {
  .top_cta_list {
    flex-direction: column;
    align-items: stretch;
  }

  .top_cta_card {
    flex-basis: auto;
    max-width: none;
    min-height: 0;
    border-radius: 999px;
    padding: 18px 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .top_cta_card:hover {
    transform: none;
  }
}




/********************************************************************************************************
 * top_cta    ここまで
 * ******************************************************************************************************/

/********************************************************************************************************
 * top_Q&A    ここから
 * ******************************************************************************************************/
/* ============================================================
   top_faq : よくあるご質問（Q&A）
   ------------------------------------------------------------
   見出し（Q&A / よくあるご質問）＋区切り線＋リード
   一覧：<details> のアコーディオン（JS不要）。
     カード＝枠 #d9d9d9・角丸10（top_flow のステップカードと同系）
     Q＝赤丸白文字、A＝薄赤丸赤文字、右端に＋／−トグル
   下：お問い合わせ導線（赤枠ピル）
   WP では [top_faq] ショートコードが同じ HTML を出力する。
   ============================================================ */

.top_faq {
  background: #fff;
  padding-block: clamp(64px, 9vw, 120px);
}

.top_faq_inner {
  display: flex;
  flex-direction: column;
}

/* ---------- 見出し ---------- */
.top_faq_head {
  border-bottom: 1px solid #c5c2c2;
  padding-bottom: 18px;
}

.top_faq_eyebrow {
  margin: 0 0 8px;
  color: var(--color-primary);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .04em;
}

.top_faq_title {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.4;
  color: #000;
}

.top_faq_lead {
  margin: clamp(24px, 3vw, 32px) 0 0;
  font-size: clamp(.95rem, 1.1vw, 1rem);
  line-height: 2;
  color: #000;
}

/* ---------- 一覧 ---------- */
.top_faq_list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: clamp(28px, 4vw, 40px);
}

.top_faq_item {
  border: 1px solid #d9d9d9;
  border-radius: 10px;
  background: #fff;
  transition: border-color .25s ease, box-shadow .25s ease;
}

.top_faq_item[open] {
  border-color: var(--color-primary);
  box-shadow: 0 6px 20px rgba(208, 0, 0, .08);
}

/* 質問行 */
.top_faq_q {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 32px;
  align-items: center;
  column-gap: clamp(14px, 2vw, 24px);
  padding: clamp(16px, 2vw, 22px) clamp(18px, 2.6vw, 28px);
  cursor: pointer;
  list-style: none;
  border-radius: 10px;
}

.top_faq_q::-webkit-details-marker { display: none; }

.top_faq_q:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.top_faq_mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

.top_faq_mark--q {
  background: var(--color-primary);
  color: #fff;
}

.top_faq_mark--a {
  background: rgba(208, 0, 0, .16);
  color: var(--color-primary);
}

.top_faq_q_text {
  font-size: clamp(1rem, 1.3vw, 1.125rem);
  font-weight: 700;
  line-height: 1.6;
  color: #000;
  transition: color .2s ease;
}

.top_faq_q:hover .top_faq_q_text,
.top_faq_item[open] .top_faq_q_text {
  color: var(--color-primary);
}

/* ＋／− トグル */
.top_faq_toggle {
  position: relative;
  width: 32px;
  height: 32px;
  border: 1px solid var(--color-primary);
  border-radius: 50%;
  transition: background-color .25s ease;
}

.top_faq_toggle::before,
.top_faq_toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2px;
  margin: -1px 0 0 -6px;
  border-radius: 1px;
  background: var(--color-primary);
  transition: transform .3s ease, background-color .25s ease;
}

.top_faq_toggle::after { transform: rotate(90deg); }

.top_faq_item[open] .top_faq_toggle { background: var(--color-primary); }
.top_faq_item[open] .top_faq_toggle::before,
.top_faq_item[open] .top_faq_toggle::after { background: #fff; }
.top_faq_item[open] .top_faq_toggle::after { transform: rotate(0deg); }

/* 回答 */
.top_faq_a {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  column-gap: clamp(14px, 2vw, 24px);
  margin-inline: clamp(18px, 2.6vw, 28px);
  padding: clamp(16px, 2vw, 22px) calc(32px + clamp(14px, 2vw, 24px)) clamp(18px, 2.4vw, 26px) 0;
  border-top: 1px solid #e5e5e5;
}

.top_faq_a_text {
  padding-top: 8px;
  font-size: clamp(.95rem, 1.1vw, 1rem);
  line-height: 1.95;
  color: #000;
}

.top_faq_a_text p + p { margin-top: .8em; }

.top_faq_a_text a,
.top_faq_a_text button {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.top_faq_a_text a:hover,
.top_faq_a_text button:hover { text-decoration: none; }

/* 開閉アニメーション（対応ブラウザのみ。非対応は即時開閉） */
@supports (interpolate-size: allow-keywords) {
  .top_faq { interpolate-size: allow-keywords; }

  .top_faq_item::details-content {
    block-size: 0;
    overflow: hidden;
    transition: block-size .35s ease, content-visibility .35s ease allow-discrete;
  }

  .top_faq_item[open]::details-content { block-size: auto; }
}

/* ---------- お問い合わせ導線 ---------- */
.top_faq_more {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px 24px;
  margin-top: clamp(28px, 4vw, 40px);
}

.top_faq_more_text {
  margin: 0;
  font-size: clamp(.9rem, 1vw, 1rem);
  color: #000;
}

.top_faq_more_btn {
  display: inline-flex;
  align-items: center;
  padding: 7px 28px;
  border: 1px solid var(--color-primary);
  border-radius: 999px;
  font-size: clamp(.9rem, 1vw, 1rem);
  color: #000;
  transition: background-color .2s ease, color .2s ease;
}

.top_faq_more_btn:hover {
  background: var(--color-primary);
  color: #fff;
}

@media (prefers-reduced-motion: reduce) {
  .top_faq_item::details-content,
  .top_faq_toggle::before,
  .top_faq_toggle::after { transition: none; }
}

/* ============================================================
   〜600px : マーク・余白を縮小
   ============================================================ */
@media (max-width: 600px) {
  .top_faq_q {
    grid-template-columns: 36px minmax(0, 1fr) 28px;
    column-gap: 12px;
    padding: 14px 14px 14px 16px;
  }

  .top_faq_mark {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }

  .top_faq_toggle {
    width: 28px;
    height: 28px;
  }

  .top_faq_a {
    grid-template-columns: 36px minmax(0, 1fr);
    column-gap: 12px;
    margin-inline: 16px;
    padding: 14px 0 18px;
  }

  .top_faq_a_text { padding-top: 5px; }

  .top_faq_more { justify-content: flex-start; }
}

/********************************************************************************************************
 * top_Q&A    ここまで
 * ******************************************************************************************************/