@charset "UTF-8";

/* ==========================================================
   JWN 日本すこやかネットワーク V3
   やよい総合クリニック（sample3 clinic）の style.css を正本として、
   色・動き・組み方をそのまま使う。JWN用の追記は末尾の
   「JWN追記」区画にまとめ、本体はできるだけ触らない。
   ========================================================== */

:root{
  --lemon:        #f6d264;
  --lemon-soft:   #fbf0d2;
  --lemon-pale:   #fefbf2;
  --cream:        #fdfaf2;

  --apricot:      #ef9d55;
  --apricot-deep: #e08a3c;
  --apricot-soft: #fdeede;
  --apricot-pale: #fff7ef;

  --leaf:         #8cb96b;
  --leaf-deep:    #6fa04d;
  --leaf-soft:    #eef5e7;

  --rose:         #e79aa4;
  --rose-soft:    #fceff0;

  --ink:          #45403a;
  --ink-light:    #7d756c;
  --ink-pale:     #a39a90;
  --line:         #ece3d5;
  --line-soft:    #f4eee3;

  --shadow:       0 2px 14px rgba(160, 130, 80, .07);
  --shadow-lift:  0 12px 32px rgba(160, 130, 80, .15);
  --radius:       12px;

  --ease:         cubic-bezier(.22, .61, .36, 1);
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

html{
  overflow-x: hidden;
  width: 100%;
}

body{
  margin: 0;
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic Medium",
               "Yu Gothic", "Meiryo", sans-serif;
  color: var(--ink);
  background: #fff;
  font-size: 19px;
  line-height: 1.9;
  letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
  /* 横には絶対に動かさない（上下だけスクロールする） */
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  position: relative;
}

img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
ul, ol{ list-style: none; margin: 0; padding: 0; }
table{ border-collapse: collapse; }

.container{
  width: 100%;
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-wide{
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================
   ★ スクロール演出（version3 の主役）
   JSで .is-shown が付いたら動きだす
   ========================================================== */
[data-anim]{
  opacity: 0;
  /* 動きに「ためと戻り」をつけて、ぐっと出る感じにする */
  transition: opacity .9s cubic-bezier(.16,.84,.30,1),
              transform 1.15s cubic-bezier(.16,.84,.30,1),
              filter .9s ease;
  will-change: opacity, transform;
}

/* 動きの幅を大きくして、迫力を出す */
[data-anim="fade"]        { transform: translateY(23px); }
[data-anim="up"]          { transform: translateY(94px) scale(0.948); }
[data-anim="down"]        { transform: translateY(-73px) scale(0.948); }
[data-anim="left"]        { transform: translateX(-104px); }
[data-anim="right"]       { transform: translateX(104px); }
[data-anim="zoom"]        { transform: scale(0.714); }
[data-anim="zoom-out"]    { transform: scale(1.208); }
[data-anim="blur"]        { filter: blur(18.2px); transform: scale(1.052); }

[data-anim].is-shown{
  opacity: 1;
  transform: none;
  filter: none;
}

/* 速さの指定 */
[data-speed="fast"]  { transition-duration: .62s; }
[data-speed="slow"]  { transition-duration: 1.45s; }

/* 遅れて動きだす（カードを1枚ずつ出す時に使う） */
[data-delay="1"] { transition-delay: .13s; }
[data-delay="2"] { transition-delay: .26s; }
[data-delay="3"] { transition-delay: .39s; }
[data-delay="4"] { transition-delay: .52s; }
[data-delay="5"] { transition-delay: .65s; }
[data-delay="6"] { transition-delay: .78s; }
[data-delay="7"] { transition-delay: .91s; }
[data-delay="8"] { transition-delay: 1.04s; }

/* 文字を1行ずつ出す */
.line-mask{ overflow: hidden; display: block; }

.line-mask > span{
  display: block;
  transform: translateY(105%);
  transition: transform 1.05s var(--ease);
}

.is-shown .line-mask > span,
.line-mask.is-shown > span{ transform: translateY(0); }

.line-mask:nth-child(2) > span{ transition-delay: .13s; }
.line-mask:nth-child(3) > span{ transition-delay: .26s; }

/* 下線がすーっと伸びる */
.u-line{
  position: relative;
  display: inline-block;
}

.u-line::after{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3px;
  height: 9px;
  background: var(--lemon);
  opacity: .5;
  border-radius: 4px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.1s var(--ease) .35s;
  z-index: -1;
}

.is-shown .u-line::after{ transform: scaleX(1); }

/* 画像が覆いを外して現れる */
.reveal{
  position: relative;
  overflow: hidden;
}

.reveal::after{
  content: "";
  position: absolute;
  inset: 0;
  background: var(--cream);
  transform: scaleX(1);
  transform-origin: right;
  transition: transform 1.15s var(--ease);
  z-index: 2;
}

.reveal.is-shown::after{ transform: scaleX(0); }

.reveal img{
  transform: scale(1.182);
  transition: transform 1.6s var(--ease);
}

.reveal.is-shown img{ transform: scale(1.0); }

/* 数字が回る用 */
.count{ font-variant-numeric: tabular-nums; }

/* ==========================================================
   ヘッダー（スクロールで縮む）
   ========================================================== */
.header{
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(11.7px);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 300;
  transition: box-shadow .35s, background .35s;
}

.header.is-scrolled{
  box-shadow: 0 2px 20px rgba(160,130,80,.13);
}

.header-inner{
  max-width: 1320px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 18px;
  transition: padding .35s var(--ease);
}

.header.is-scrolled .header-inner{ padding: 7px 20px; }

.logo{
  display: flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
}

.logo-mark{
  display: inline-flex;
  transition: transform .35s var(--ease);
}

.logo-mark svg{ transition: width .35s var(--ease), height .35s var(--ease); }

.header.is-scrolled .logo-mark svg{ width: 34px; height: 34px; }

.logo-text{ display: block; }

.logo-catch{
  display: block;
  font-size: 14px;
  color: var(--ink-light);
  letter-spacing: .06em;
  line-height: 1.4;
  max-height: 20px;
  opacity: 1;
  transition: max-height .35s var(--ease), opacity .3s;
  overflow: hidden;
}

.header.is-scrolled .logo-catch{ max-height: 0; opacity: 0; }

.logo-name{
  display: block;
  font-size: 22px;
  font-weight: 700;
  color: var(--apricot-deep);
  letter-spacing: .04em;
  line-height: 1.4;
  transition: font-size .35s var(--ease);
}

.header.is-scrolled .logo-name{ font-size: 20px; }

.logo-name .accent{ color: var(--apricot-deep); }

/* ロゴ名は、パソコンでは横に並べる */
.logo-name .ln1,
.logo-name .ln2{ display: inline; }
.logo-name .ln2{ color: var(--apricot-deep); }

.header-depts{
  font-size: 15px;
  color: var(--ink-light);
  line-height: 1.65;
  letter-spacing: .03em;
  border-left: 3px solid var(--lemon);
  padding-left: 11px;
  margin: 0;
  transition: opacity .3s, max-width .35s;
  white-space: nowrap;
}

.header.is-scrolled .header-depts{ opacity: 0; max-width: 0; padding: 0; border: none; }

.header-tel{
  text-align: right;
  flex-shrink: 0;
  white-space: nowrap;
  margin-left: auto;
}

.tel-label{
  font-size: 14.5px;
  margin-right: 5px;
  vertical-align: 2px;
  letter-spacing: .08em;
  color: var(--ink-light);
}

.tel-num{
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  color: var(--apricot-deep);
  line-height: 1.2;
}

.tel-time{
  margin: 1px 0 0;
  font-size: 14px;
  color: var(--ink-light);
  line-height: 1.4;
  transition: max-height .3s, opacity .3s;
  max-height: 16px;
  overflow: hidden;
}

.header.is-scrolled .tel-time{ max-height: 0; opacity: 0; }

.btn-reserve{
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--apricot);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 40px;
  letter-spacing: .04em;
  white-space: nowrap;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s;
  box-shadow: 0 3px 12px rgba(224,138,60,.28);
}

.btn-reserve::before{
  content: "";
  position: absolute;
  inset: 0;
  background: var(--apricot-deep);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .42s var(--ease);
  border-radius: 40px;
}

.btn-reserve:hover::before{ transform: scaleX(1); }
.btn-reserve:hover{ transform: translateY(-3px); box-shadow: 0 8px 20px rgba(224,138,60,.38); }
.btn-reserve > *{ position: relative; z-index: 2; }
.btn-icon{ display: inline-flex; }

.hamburger{
  display: none;
  width: 40px;
  height: 34px;
  background: none;
  border: none;
  padding: 7px 5px;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  z-index: 320;
}

.hamburger span{
  display: block;
  height: 2px;
  background: var(--apricot-deep);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .25s;
}

.hamburger.is-open span:nth-child(1){ transform: translateY(12px) rotate(45deg); }
.hamburger.is-open span:nth-child(2){ opacity: 0; }
.hamburger.is-open span:nth-child(3){ transform: translateY(-12px) rotate(-45deg); }

/* ヘッダー分の余白（文字を大きくした分だけヘッダーも高くなる） */
.header-spacer{ height: 86px; }

/* ==========================================================
   ナビ帯（写真の下）
   ========================================================== */
.gnav{
  background: var(--lemon-soft);
  border-top: 3px solid var(--lemon);
  border-bottom: 1px solid #f2e2b8;
  position: relative;
  z-index: 60;
}

.gnav-inner{
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 16px;
}

.gnav ul{
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.gnav li{ position: relative; }

.gnav li + li::before{
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 18px;
  background: #ecdcb8;
}

.gnav li > a{
  display: block;
  /* 文字が大きくなった分、左右の余白を詰めて9項目を1行におさめる */
  padding: 16px 15px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: .05em;
  position: relative;
  transition: color .25s;
}

.gnav li > a::after{
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%) scaleX(0);
  width: 62%;
  height: 3px;
  background: var(--apricot);
  transition: transform .35s var(--ease);
}

.gnav li > a:hover{ color: var(--apricot-deep); }
.gnav li > a:hover::after,
.gnav li.is-current > a::after{ transform: translateX(-50%) scaleX(1); }
.gnav li.is-current > a{ color: var(--apricot-deep); }

/* ==========================================================
   メインビジュアル（ゆっくり動く）
   ========================================================== */
.hero{
  position: relative;
  background: linear-gradient(118deg, var(--lemon-soft) 0%, var(--lemon-pale) 40%, var(--apricot-pale) 100%);
  overflow: hidden;
  /* どんなモニターでも画面いっぱいになる */
  min-height: 100svh;
  height: 100svh;
  display: flex;
  align-items: center;
}

/* 100svh に対応していないブラウザ向け */
@supports not (height: 100svh){
  .hero{
    min-height: 100vh;
    height: 100vh;
  }
}

.hero-photo{
  position: absolute;
  inset: 0;              /* 画面全部を動画で埋める */
  overflow: hidden;
  z-index: 0;
}

.hero-photo img,
.hero-photo video{
  width: 100%;
  height: 100%;
  object-fit: cover;     /* どんな画面の形でも隙間なく埋める */
  object-position: center center;
  display: block;
  /* ゆっくり寄っていく */
  animation: heroZoom 26s var(--ease) both;
}

@keyframes heroZoom{
  from{ transform: scale(1.169); }
  to  { transform: scale(1.0); }
}

.hero-photo::after{
  content: "";
  position: absolute;
  inset: 0;
  /* 左側を白でおおって文字を読みやすく。右は動画を見せる。
     2本目以降の見え方と、色も位置もそろえてある
     （2本目の動画は画面の30%から。そのぼかし具合を画面の位置に換算した） */
  background: linear-gradient(90deg,
    rgba(254,251,242,1)   0%,
    rgba(254,251,242,1) 30.0%,
    rgba(254,251,242,0.94) 34.2%,
    rgba(254,251,242,0.84) 38.4%,
    rgba(254,251,242,0.7) 42.6%,
    rgba(254,251,242,0.5) 46.8%,
    rgba(254,251,242,0.28) 50.3%,
    rgba(254,251,242,0.1) 53.1%,
    rgba(254,251,242,0.0) 56.6%,
    rgba(254,251,242,0)  100%);
  pointer-events: none;
  opacity: 0;
  animation: veilPc 2.4s var(--ease) 4.3s forwards;
}

@keyframes veilPc{
  to{ opacity: 1; }
}

/* ふわふわ浮かぶ飾りの丸 */
.hero-orb{
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}

.hero-orb-1{
  width: 220px; height: 220px;
  left: -60px; top: 8%;
  background: radial-gradient(circle at 35% 30%, rgba(246,210,100,.30), rgba(246,210,100,0) 70%);
  animation: float1 13s ease-in-out infinite;
}

.hero-orb-2{
  width: 160px; height: 160px;
  left: 22%; bottom: 4%;
  background: radial-gradient(circle at 40% 35%, rgba(140,185,107,.22), rgba(140,185,107,0) 70%);
  animation: float2 17s ease-in-out infinite;
}

.hero-orb-3{
  width: 120px; height: 120px;
  left: 30%; top: 12%;
  background: radial-gradient(circle at 40% 35%, rgba(239,157,85,.20), rgba(239,157,85,0) 70%);
  animation: float1 15s ease-in-out infinite reverse;
}

@keyframes float1{
  0%,100%{ transform: translate(0,0) scale(1.0); }
  50%    { transform: translate(18px,-26px) scale(1.104); }
}

@keyframes float2{
  0%,100%{ transform: translate(0,0) scale(1.0); }
  50%    { transform: translate(-22px,-18px) scale(1.156); }
}

.hero-inner{
  position: relative;
  z-index: 3;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 60px 24px 66px;
}

.hero-eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 16px;
  letter-spacing: .2em;
  color: var(--leaf-deep);
  margin: 0 0 14px;
}

.hero-eyebrow::before{
  content: "";
  width: 0;
  height: 1.5px;
  background: var(--leaf);
  transition: width 1s var(--ease) .3s;
}

.hero-eyebrow.is-shown::before{ width: 28px; }

.hero-title{
  margin: 0 0 20px;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.58;
  letter-spacing: .02em;
  color: #3b3733;
}

.hero-title .accent{ color: var(--apricot-deep); }

.hero-lead{
  margin: 0 0 30px;
  font-size: 20.5px;
  line-height: 2;
  color: #524b44;
}

.hero-points{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-points li{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.85);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 9px 18px;
  font-size: 16.5px;
  color: #5f574e;
  transition: transform .3s var(--ease), box-shadow .3s;
}

.hero-points li:hover{
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.hero-points .dot{
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--leaf);
}

.hero-badge{
  position: absolute;
  right: 5%;
  bottom: 16%;
  z-index: 4;
  /* 文字を大きくしたぶん、丸も大きくする（文字が円からはみ出さないように） */
  width: 192px;
  height: 192px;
  border-radius: 50%;
  background: rgba(253, 246, 227, .94);
  border: 1px solid rgba(246,210,100,.5);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 6px 22px rgba(160,130,80,.16);
  animation: badgeFloat 6.5s ease-in-out infinite;
}

@keyframes badgeFloat{
  0%,100%{ transform: translateY(0); }
  50%    { transform: translateY(-14px); }
}

.hero-badge p{
  margin: 0;
  font-size: 15.5px;
  line-height: 1.85;
  color: #6c6152;
}

.hero-badge strong{
  display: block;
  color: var(--apricot-deep);
  font-size: 18px;
  font-weight: 700;
}

/* スクロールを促す表示 */
.scroll-cue{
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 5;
  font-size: 13.5px;
  letter-spacing: .24em;
  color: var(--ink-pale);
  text-align: center;
}

.scroll-cue::after{
  content: "";
  display: block;
  width: 1px;
  height: 42px;
  margin: 8px auto 0;
  background: linear-gradient(180deg, var(--apricot) 0%, rgba(239,157,85,0) 100%);
  animation: cueMove 2.1s ease-in-out infinite;
  transform-origin: top;
}

@keyframes cueMove{
  0%     { transform: scaleY(0); opacity: 0; }
  40%    { transform: scaleY(1); opacity: 1; }
  100%   { transform: scaleY(1) translateY(55px); opacity: 0; }
}

/* ==========================================================
   共通：セクション
   ========================================================== */
.section{ padding: 84px 0; position: relative; }
.section-cream{ background: var(--cream); }
.section-lemon{ background: var(--lemon-pale); }

.section-head{
  text-align: center;
  margin-bottom: 46px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-en{
  display: inline-block;
  font-size: 15px;
  letter-spacing: .22em;
  color: #fff;
  background: var(--apricot);
  padding: 4px 17px;
  border-radius: 100px;
  margin: 0 auto 14px;
  font-weight: 600;
}

.section-title{
  margin: 0;
  font-size: 31px;
  font-weight: 700;
  letter-spacing: .1em;
  position: relative;
  padding-bottom: 15px;
}

.section-title::after{
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%) scaleX(0);
  width: 48px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--lemon) 0%, var(--apricot) 62%, var(--leaf) 100%);
  transition: transform .9s var(--ease) .3s;
}

.section-head.is-shown .section-title::after{ transform: translateX(-50%) scaleX(1); }

.section-lead{
  margin: 15px auto 0;
  max-width: 680px;
  font-size: 18.5px;
  line-height: 2;
  color: var(--ink-light);
}

/* ==========================================================
   診療科カード
   ========================================================== */
.dept-list{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.dept-card{
  position: relative;
  border-radius: var(--radius);
  padding: 32px 22px 36px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line-soft);
  transition: transform .4s var(--ease), box-shadow .4s, border-color .3s;
  display: block;
  overflow: hidden;
}

.dept-card::before{
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 4px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s var(--ease);
}

.dept-card:hover{
  transform: translateY(-12px);
  box-shadow: var(--shadow-lift);
}

.dept-card:hover::before{ transform: scaleX(1); }

.dept-icon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px; height: 72px;
  border-radius: 50%;
  margin-bottom: 15px;
  transition: transform .45s var(--ease);
}

.dept-card:hover .dept-icon{ transform: scale(1.143) rotate(-6deg); }

.dept-card h3{
  margin: 0 0 9px;
  font-size: 23px;
  font-weight: 700;
  letter-spacing: .08em;
}

.dept-card p{
  margin: 0;
  font-size: 16.5px;
  line-height: 1.85;
  color: var(--ink-light);
}

.dept-arrow{
  position: absolute;
  right: 15px; bottom: 14px;
  width: 30px; height: 30px;
  border-radius: 50%;
  font-size: 19px;
  line-height: 28px;
  text-align: center;
  color: #fff;
  transition: transform .35s var(--ease);
}

.dept-card:hover .dept-arrow{ transform: translateX(5px); }

.dept-1 .dept-icon{ background: var(--lemon-soft); }
.dept-1 h3{ color: #c9a13a; }
.dept-1 .dept-arrow{ background: var(--lemon); }
.dept-1::before{ background: var(--lemon); }
.dept-1:hover{ border-color: var(--lemon); }

.dept-2 .dept-icon{ background: var(--apricot-soft); }
.dept-2 h3{ color: var(--apricot-deep); }
.dept-2 .dept-arrow{ background: var(--apricot); }
.dept-2::before{ background: var(--apricot); }
.dept-2:hover{ border-color: var(--apricot); }

.dept-3 .dept-icon{ background: var(--leaf-soft); }
.dept-3 h3{ color: var(--leaf-deep); }
.dept-3 .dept-arrow{ background: var(--leaf); }
.dept-3::before{ background: var(--leaf); }
.dept-3:hover{ border-color: var(--leaf); }

.dept-4 .dept-icon{ background: var(--rose-soft); }
.dept-4 h3{ color: #d4818c; }
.dept-4 .dept-arrow{ background: var(--rose); }
.dept-4::before{ background: var(--rose); }
.dept-4:hover{ border-color: var(--rose); }

/* ==========================================================
   数字で見る（カウントアップ）
   ========================================================== */
.stats{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.stat-card{
  background: #fff;
  border-radius: var(--radius);
  padding: 30px 20px;
  text-align: center;
  border: 1px solid var(--line-soft);
}

.stat-num{
  font-size: 44px;
  font-weight: 700;
  color: var(--apricot-deep);
  line-height: 1.1;
  letter-spacing: .01em;
}

.stat-num small{
  font-size: 20px;
  margin-left: 3px;
  color: var(--ink-light);
  font-weight: 500;
}

.stat-label{
  margin: 8px 0 0;
  font-size: 16.5px;
  color: var(--ink-light);
  letter-spacing: .04em;
}

/* ==========================================================
   診療時間・お知らせ
   ========================================================== */
.info-grid{
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 26px;
}

.panel{
  background: #fff;
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow);
}

.panel-title{
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  font-size: 23px;
  font-weight: 700;
  letter-spacing: .07em;
}

.panel-icon{ display: inline-flex; }

.panel-more{
  margin-left: auto;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink-light);
  transition: color .25s, transform .25s;
}

.panel-more:hover{ color: var(--apricot-deep); transform: translateX(4px); }

.table-wrap{ overflow-x: auto; }

.hours{ width: 100%; font-size: 17px; text-align: center; }

.hours th, .hours td{
  border: 1px solid var(--line);
  padding: 10px 4px;
  font-weight: 500;
}

.hours thead th{ background: var(--lemon); width: 46px; color: #7a6320; }
.hours thead th.sun{ color: #b8737d; }
.hours tbody th{
  text-align: left;
  padding-left: 13px;
  white-space: nowrap;
  font-weight: 500;
  background: var(--lemon-pale);
}

.hours .mark{ color: var(--apricot); }
.hours .tri{ color: var(--leaf-deep); font-size: 16px; }
.hours .bar{ color: var(--ink-pale); }

.hours-note{
  margin: 12px 0 0;
  font-size: 15.5px;
  color: var(--ink-light);
  line-height: 1.8;
}

.hours-note.em{ color: var(--apricot-deep); font-weight: 600; font-size: 16.5px; }

.news li{
  border-bottom: 1px dashed var(--line);
  padding: 15px 4px;
  transition: background .25s, padding-left .25s;
}

.news li:last-child{ border-bottom: none; }
.news li:hover{ background: var(--lemon-pale); padding-left: 10px; }

.news-meta{
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 3px;
}

.news time{ color: var(--ink-light); font-size: 16px; }

.news-tag{
  font-size: 14px;
  padding: 2px 9px;
  border-radius: 100px;
  color: #fff;
}

.tag-news{ background: var(--apricot); }
.tag-medical{ background: var(--leaf); }
.tag-notice{ background: var(--lemon); color: #856c26; }

.news a{ font-size: 17.5px; line-height: 1.7; transition: color .25s; }
.news a:hover{ color: var(--apricot-deep); }

/* ==========================================================
   コンセプト
   ========================================================== */
.concept-box{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.concept-photo{
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.concept-photo img{
  width: 100%;
  height: 360px;
  object-fit: cover;
}

.concept-title{
  margin: 0 0 20px;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.7;
  letter-spacing: .04em;
}

.concept-title .accent{ color: var(--apricot-deep); }

.concept-text{
  margin: 0 0 16px;
  font-size: 18.5px;
  line-height: 2.1;
}

.concept-sign{
  margin: 24px 0 0;
  font-size: 17px;
  color: var(--ink-light);
}

.concept-sign strong{
  font-size: 21px;
  color: var(--ink);
  margin-left: 6px;
}

/* ==========================================================
   3つの約束
   ========================================================== */
.promise-list{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.promise-card{
  background: #fff;
  border-radius: var(--radius);
  padding: 36px 28px 34px;
  text-align: center;
  border: 1px solid var(--line-soft);
  transition: transform .4s var(--ease), box-shadow .4s;
}

.promise-card:hover{ transform: translateY(-9px); box-shadow: var(--shadow-lift); }

.promise-num{
  /* 横の丸い絵と同じ行に置くと絵の幅ぶん左へ押されるため、
     帯だけの行にして真ん中に置く（絵はその下の行で真ん中） */
  display: table;
  font-size: 14.5px;
  letter-spacing: .16em;
  color: #fff;
  background: var(--apricot);
  padding: 3px 14px;
  border-radius: 100px;
  margin: 0 auto 14px;
  font-weight: 600;
}

.promise-icon{
  /* 2026-11-17 安藤さん指示で丸絵は出さない（帯を中央寄せしたら絵が下の行に
     落ちてカードが間延びしたため「小さな画像1ついらない」）。消すだけにして
     HTMLは残す＝戻したくなったらこの1行を外すだけ */
  display: none;
  align-items: center;
  justify-content: center;
  width: 76px; height: 76px;
  border-radius: 50%;
  background: var(--lemon-pale);
  margin-bottom: 16px;
  transition: transform .45s var(--ease);
}

.promise-card:hover .promise-icon{ transform: scale(1.13) rotate(5deg); }

.promise-card h3{
  margin: 0 0 12px;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1.7;
}

.promise-card p{
  margin: 0;
  font-size: 17px;
  line-height: 1.95;
  color: var(--ink-light);
  text-align: left;
}

/* ==========================================================
   フロアガイド
   ========================================================== */
.floor-list{ display: grid; gap: 16px; }

.floor-row{
  display: grid;
  grid-template-columns: 94px 1fr;
  gap: 22px;
  align-items: center;
  background: #fff;
  border-radius: var(--radius);
  padding: 22px 26px;
  border: 1px solid var(--line-soft);
  transition: transform .35s var(--ease), box-shadow .35s;
}

.floor-row:hover{ transform: translateX(10px); box-shadow: var(--shadow); }

.floor-badge{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 84px;
  border-radius: 10px;
  color: #fff;
  transition: transform .35s var(--ease);
}

.floor-row:hover .floor-badge{ transform: scale(1.078); }

.floor-badge .num{ font-size: 28px; font-weight: 700; line-height: 1; }
/* 「RECEPTION」など長い英字は、四角の幅からはみ出すので控えめにする */
.floor-badge .lbl{ font-size: 11px; letter-spacing: .06em; margin-top: 5px; opacity: .92; }

.floor-1 .floor-badge{ background: linear-gradient(135deg, #f3d478, #e8bd4d); }
.floor-2 .floor-badge{ background: linear-gradient(135deg, #f0c964, #e5a948); }
.floor-3 .floor-badge{ background: linear-gradient(135deg, #a5cb87, var(--leaf)); }
.floor-4 .floor-badge{ background: linear-gradient(135deg, #eeaab2, var(--rose)); }

.floor-body h3{
  margin: 0 0 6px;
  font-size: 20.5px;
  font-weight: 700;
  letter-spacing: .05em;
}

.floor-body p{ margin: 0; font-size: 17px; line-height: 1.85; color: var(--ink-light); }

.floor-color{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  color: var(--ink-pale);
  margin-left: 10px;
}

.floor-color i{ width: 11px; height: 11px; border-radius: 50%; display: inline-block; }

/* ==========================================================
   ギャラリー
   ========================================================== */
.gallery{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.gallery figure{ margin: 0; }

.gallery-photo{
  height: 170px;
  border-radius: var(--radius);
  margin-bottom: 12px;
  background: var(--lemon-soft);
}

.gallery-photo img{
  width: 100%; height: 100%;
  object-fit: cover;
}

.gallery figure:hover .gallery-photo img{ transform: scale(1.117); }

.gallery figcaption{
  text-align: center;
  font-size: 16.5px;
  line-height: 1.8;
  font-weight: 600;
}

.gallery figcaption small{
  display: block;
  font-weight: 400;
  font-size: 15.5px;
  color: var(--ink-light);
  margin-top: 2px;
}

/* ==========================================================
   受診の流れ
   ========================================================== */
.flow-list{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  counter-reset: flow;
}

.flow-item{
  background: #fff;
  border-radius: var(--radius);
  padding: 28px 20px 26px;
  text-align: center;
  border: 1px solid var(--line-soft);
  position: relative;
  transition: transform .35s var(--ease), box-shadow .35s;
}

.flow-item:hover{ transform: translateY(-8px); box-shadow: var(--shadow); }

.flow-item::before{
  counter-increment: flow;
  content: "0" counter(flow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px; height: 50px;
  border-radius: 50%;
  background: var(--apricot);
  color: #fff;
  font-size: 16.5px;
  font-weight: 700;
  margin-bottom: 12px;
  transition: transform .4s var(--ease);
}

.flow-item:hover::before{ transform: scale(1.156); }

.flow-item:not(:last-child)::after{
  content: "";
  position: absolute;
  right: -12px;
  top: 50%;
  width: 8px; height: 8px;
  border-top: 2px solid var(--lemon);
  border-right: 2px solid var(--lemon);
  transform: translateY(-50%) rotate(45deg);
}

.flow-item h4{ margin: 0 0 8px; font-size: 19px; font-weight: 700; }
.flow-item p{ margin: 0; font-size: 16px; line-height: 1.85; color: var(--ink-light); }

/* ==========================================================
   よくある質問
   ========================================================== */
.faq-list{ display: grid; gap: 12px; }

.faq-item{
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .3s;
}

.faq-item.is-open{ box-shadow: var(--shadow); }

.faq-q{
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 19px 22px;
  cursor: pointer;
  font-size: 18.5px;
  font-weight: 600;
  line-height: 1.7;
  transition: background .25s;
}

.faq-q:hover{ background: var(--lemon-pale); }

.faq-mark{
  flex-shrink: 0;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--lemon-soft);
  color: #c9a13a;
  font-size: 17px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.faq-a .faq-mark{ background: var(--apricot-soft); color: var(--apricot-deep); }

.faq-toggle{
  margin-left: auto;
  flex-shrink: 0;
  width: 18px; height: 18px;
  position: relative;
}

.faq-toggle::before, .faq-toggle::after{
  content: "";
  position: absolute;
  background: var(--apricot);
  border-radius: 1px;
  transition: transform .35s var(--ease);
}

.faq-toggle::before{ left: 0; top: 8px; width: 18px; height: 2px; }
.faq-toggle::after { left: 8px; top: 0; width: 2px; height: 18px; }

.faq-item.is-open .faq-toggle::after{ transform: rotate(90deg); }

/* 開閉をなめらかに */
.faq-a{
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .45s var(--ease);
}

.faq-item.is-open .faq-a{ grid-template-rows: 1fr; }

.faq-a-inner{
  overflow: hidden;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 17.5px;
  line-height: 1.95;
  color: var(--ink-light);
}

.faq-a-inner > *{ padding-bottom: 20px; }
.faq-a-inner{ padding: 0 22px; }

/* ==========================================================
   アクセス
   ========================================================== */
.access-box{
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 34px;
  background: var(--cream);
  border-radius: var(--radius);
  padding: 36px;
  align-items: start;
}

.access-title{
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 20px;
  font-size: 25px;
  font-weight: 700;
  letter-spacing: .06em;
}

.access-dl{ margin: 0; font-size: 17.5px; }

.access-dl dt{
  font-size: 15px;
  letter-spacing: .12em;
  color: var(--apricot);
  font-weight: 600;
  margin-bottom: 3px;
}

.access-dl dd{ margin: 0 0 16px; line-height: 1.85; }
.access-dl dd:last-child{ margin-bottom: 0; }

.access-tel{ font-size: 25px; font-weight: 700; color: var(--apricot-deep); }

.access-map{
  position: relative;
  min-height: 300px;
  border-radius: var(--radius);
  overflow: hidden;
  background: #eef2e6;
  border: 1px solid var(--line);
}

.map-road{ position: absolute; background: #fff; }
.map-road-h1{ left: 0; right: 0; top: 42%; height: 15px; }
.map-road-h2{ left: 0; right: 0; bottom: 14%; height: 8px; }
.map-road-v1{ top: 0; bottom: 0; left: 26%; width: 11px; }
.map-road-v2{ top: 0; bottom: 0; right: 24%; width: 9px; background: #fdf2d0; }

.map-tram{
  position: absolute;
  left: 0; right: 0; top: 42%;
  height: 15px;
  background: repeating-linear-gradient(90deg, #e8dfc8 0 7px, transparent 7px 16px);
}

.map-park{
  position: absolute;
  left: 58%; bottom: 20%;
  width: 26%; height: 32%;
  background: #dceac9;
  border-radius: 6px;
}

.map-block{ position: absolute; background: #f4f1e8; border-radius: 3px; }

.map-pin{
  position: absolute;
  left: 32%; top: 50%;
  transform: translate(-50%, -100%);
  z-index: 3;
  animation: pinDrop 2.4s ease-in-out infinite;
}

@keyframes pinDrop{
  0%,100%{ transform: translate(-50%, -100%); }
  50%    { transform: translate(-50%, -118%); }
}

.map-pin::after{
  content: "";
  position: absolute;
  left: 50%; bottom: -6px;
  transform: translateX(-50%);
  width: 20px; height: 7px;
  border-radius: 50%;
  background: rgba(0,0,0,.14);
}

.map-label{
  position: absolute;
  left: 37%; top: 41%;
  background: #fff;
  border-radius: 5px;
  padding: 5px 11px;
  font-size: 15.5px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 2px 7px rgba(0,0,0,.14);
  z-index: 3;
}

.map-station{
  position: absolute;
  left: 15%; top: 48%;
  font-size: 14.5px;
  color: #6b7a5c;
  background: rgba(255,255,255,.85);
  padding: 2px 7px;
  border-radius: 4px;
}

.access-ways{ margin-top: 18px; display: grid; gap: 10px; }

.way-row{
  display: flex;
  align-items: flex-start;
  gap: 11px;
  background: #fff;
  border-radius: 8px;
  padding: 13px 16px;
  font-size: 17px;
  line-height: 1.75;
  border: 1px solid var(--line-soft);
  transition: transform .3s var(--ease), box-shadow .3s;
}

.way-row:hover{ transform: translateX(6px); box-shadow: var(--shadow); }

.way-ico{
  flex-shrink: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--lemon-soft);
}

.way-row strong{
  display: block;
  font-size: 16px;
  letter-spacing: .06em;
  color: var(--apricot-deep);
  margin-bottom: 1px;
}

/* ==========================================================
   CTA
   ========================================================== */
.cta{
  background: linear-gradient(120deg, var(--lemon-soft) 0%, var(--lemon-pale) 55%, var(--apricot-pale) 100%);
  padding: 56px 0;
  position: relative;
  overflow: hidden;
}

.cta::before{
  content: "";
  position: absolute;
  right: -80px; top: -80px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: rgba(246,210,100,.2);
  animation: float1 15s ease-in-out infinite;
}

.cta-inner{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 46px;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

.cta-text h2{ margin: 0 0 6px; font-size: 26px; font-weight: 700; letter-spacing: .07em; }
.cta-text p{ margin: 0; font-size: 17px; color: var(--ink-light); }

.cta-actions{ display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }

.cta-tel{
  text-align: center;
  background: #fff;
  border-radius: 10px;
  padding: 15px 28px;
  border: 1px solid var(--line);
}

.cta-tel .tel-num{ font-size: 31px; }

/* ==========================================================
   フッター
   ========================================================== */
.footer{
  background: var(--cream);
  padding: 54px 0 0;
  border-top: 1px solid var(--line-soft);
}

.footer-grid{
  display: grid;
  /* 左のクリニック情報と、リンク3列 */
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 34px;
  padding-bottom: 40px;
}

.footer-logo{ display: flex; align-items: center; gap: 11px; margin-bottom: 16px; }

.footer-addr{ margin: 0 0 14px; font-size: 16.5px; line-height: 1.95; color: var(--ink-light); }

.footer-contact{ font-size: 16.5px; line-height: 1.9; color: var(--ink-light); }
.footer-contact strong{ display: block; font-size: 24px; color: var(--apricot-deep); }

.footer-h4{
  margin: 0 0 14px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .1em;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.footer-h4::after{
  content: "";
  position: absolute;
  left: 0; bottom: -1px;
  width: 34px; height: 2px;
  background: var(--apricot);
}

.footer-nav li{ margin-bottom: 9px; }

.footer-nav a{
  font-size: 16.5px;
  color: var(--ink-light);
  transition: color .25s, padding-left .25s;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.footer-nav a::before{
  content: "";
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--lemon);
  flex-shrink: 0;
}

.footer-nav a:hover{ color: var(--apricot-deep); padding-left: 4px; }

.copyright{
  background: linear-gradient(90deg, var(--lemon) 0%, var(--apricot) 55%, var(--leaf) 100%);
  padding: 1px;
}

.copyright-inner{
  background: var(--cream);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
}

.copyright p{ margin: 0; font-size: 15.5px; color: var(--ink-light); }

.pagetop{
  position: absolute;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15.5px;
  color: var(--ink-light);
  transition: color .25s;
}

.pagetop:hover{ color: var(--apricot-deep); }

.pagetop-circle{
  width: 28px; height: 28px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .3s var(--ease);
}

.pagetop:hover .pagetop-circle{ transform: translateY(-4px); }

/* ==========================================================
   レスポンシブ
   ========================================================== */
/* 文字を大きくした分、横並びのナビが入る幅も広くなるので、
   三本線に切り替える幅を 1080px → 1180px に広げる */
@media screen and (max-width: 1180px){
  .gnav{ display: none; }
  .gnav.is-open{
    display: block;
    position: fixed;
    left: 0; right: 0;
    top: 72px; bottom: 0;
    overflow-y: auto;
    background: #fff;
    box-shadow: 0 10px 26px rgba(0,0,0,.16);
    z-index: 300;
    border-top: 2px solid var(--lemon);
  }
  .gnav.is-open .gnav-inner{ padding: 6px 24px 20px; }
  .gnav.is-open ul{ flex-direction: column; }
  .gnav.is-open li + li::before{ display: none; }
  .gnav.is-open li{ border-bottom: 1px dashed var(--line); }
  /* 引き出しメニューは指で押しやすいように、1項目を高くする */
  .gnav.is-open a{ padding: 18px 0; font-size: 19px; }

  body.nav-open{ overflow: hidden; }

  .hamburger{ display: flex; }
  .header-depts{ display: none; }
  .header-tel{ display: none; }
}

@media screen and (max-width: 900px){
  .dept-list{ grid-template-columns: repeat(2, 1fr); }
  .stats{ grid-template-columns: repeat(2, 1fr); }
  .info-grid{ grid-template-columns: 1fr; }
  .promise-list{ grid-template-columns: 1fr; }
  .gallery{ grid-template-columns: repeat(2, 1fr); }
  .flow-list{ grid-template-columns: repeat(2, 1fr); }
  .flow-item:nth-child(2)::after{ display: none; }
  .concept-box{ grid-template-columns: 1fr; gap: 30px; }
  .concept-photo img{ height: 270px; }
  .access-box{ grid-template-columns: 1fr; }
  .access-map{ min-height: 250px; }
  .footer-grid{ grid-template-columns: 1fr 1fr; }
  .cta-inner{ flex-direction: column; text-align: center; gap: 24px; }
}

@media screen and (max-width: 640px){
  body{
    font-size: 18px;
    /* 下のタブバーの分だけ余白を空ける */
    padding-bottom: 78px;
  }
  .container, .container-wide{ padding: 0 16px; }

  /* ---------- ヘッダー（上に貼り付く・左ロゴ／右メニュー） ---------- */
  .header-inner{
    padding: 9px 16px;
    gap: 10px;
    flex-wrap: nowrap;
    justify-content: space-between;
  }
  /* ロゴを2行にして、横幅を詰める */
  .logo{ gap: 7px; min-width: 0; flex: 0 0 auto; }
  .logo-mark svg{ width: 34px; height: 34px; }

  .logo-name{
    font-size: 18px;
    letter-spacing: 0;
    line-height: 1.22;
  }

  /* 「やよい」と「総合クリニック」を上下に分ける */
  .logo-name .ln1,
  .logo-name .ln2{
    display: block;
    white-space: nowrap;
  }

  .logo-name .ln1{ font-size: 19px; }
  .logo-name .ln2{ font-size: 16.5px; color: var(--apricot-deep); }

  .logo-catch{ display: none; }   /* 幅を空けるため出さない */
  .logo-text{ display: block; }

  .header-depts{ display: none; }
  .header-tel{ display: none; }
  .header-inner > .btn-reserve{ display: none; }   /* 下の2ボタンに任せる */

  /* 三本線（右端）。下の「メニュー」の字を大きくしたぶん、
     枠も広げて、となりのボタンと重ならないようにする */
  .hamburger{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    position: relative;
    width: 44px;
    height: 24px;
    padding: 0;
    margin: 0 0 18px 10px;
    flex-shrink: 0;
  }
  .hamburger span{ height: 3px; width: 32px; }
  .hamburger::after{
    content: "メニュー";
    position: absolute;
    left: 50%;
    bottom: -16px;
    transform: translateX(-50%);
    font-size: 12px;
    letter-spacing: .06em;
    color: var(--ink-light);
    white-space: nowrap;
  }
  .hamburger.is-open span:nth-child(2){ opacity: 0; }
  .hamburger.is-open span:nth-child(1){ transform: translateY(10.5px) rotate(45deg); }
  .hamburger.is-open span:nth-child(3){ transform: translateY(-10.5px) rotate(-45deg); }

  .header.is-scrolled .logo-catch{ max-height: 0; opacity: 0; }

  /* ヘッダーは動画の上に重ねる。最初は透けていて、
     下にスクロールすると白い帯になって現れる */
  .header{
    background: rgba(255,255,255,0);
    backdrop-filter: none;
    box-shadow: none;
    transition: background .5s var(--ease), backdrop-filter .5s var(--ease),
                box-shadow .5s var(--ease);
  }

  .header.is-scrolled{
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(13.0px);
    box-shadow: 0 2px 20px rgba(160,130,80,.13);
  }

  /* ---------- WEB予約／電話する の2ボタン ---------- */
  /* 2ボタンをヘッダーの中に並べる */
  .sp-actions{
    display: flex;
    gap: 6px;
    margin-left: auto;
    flex-shrink: 0;
  }

  .sp-act{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 8px 10px;
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.2;
    white-space: nowrap;
    transition: transform .25s var(--ease);
  }

  .sp-act:active{ transform: scale(0.922); }
  .sp-act-arrow{ display: none; }

  .sp-act-reserve{
    background: linear-gradient(135deg, var(--apricot) 0%, var(--apricot-deep) 100%);
    box-shadow: 0 3px 12px rgba(224,138,60,.32);
  }

  .sp-act-tel{
    background: linear-gradient(135deg, #7fb463 0%, var(--leaf-deep) 100%);
    box-shadow: 0 3px 12px rgba(111,160,77,.30);
  }

  .sp-act-ico{ display: inline-flex; flex-shrink: 0; }
  .sp-act-arrow{
    position: absolute;
    right: 12px;
    font-size: 21px;
    opacity: .85;
  }

  /* ---------- メインビジュアル：縦動画を全画面で ---------- */

  /* パソコン用の写真は隠す */
  .hero-photo{ display: none; }

  /* 動画を出す */
  .hero-video{
    display: block;
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
  }

  .hero-video video,
  .hero-video img{
    width: 100%;
    height: 100%;
    object-fit: cover;      /* どんな画面でも隙間なく埋める */
    object-position: center 8%;
    display: block;
  }

  /* 文字を読みやすくする覆い。
     最初は出さず、文字が現れるのに合わせてゆっくり濃くなる */
  .hero-video::after{
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
      rgba(254,251,242,.30) 0%,
      rgba(254,251,242,.14) 18%,
      rgba(254,251,242,.08) 38%,
      rgba(255,253,248,.58) 62%,
      rgba(255,253,248,.86) 82%,
      rgba(255,253,248,.94) 100%);
    pointer-events: none;
    opacity: 0;
    animation: veilIn 3s var(--ease) 3.6s forwards;
  }

  @keyframes veilIn{
    to{ opacity: 1; }
  }

  /* ヒーロー全体を画面の高さにぴったり合わせる
     （どんなスマホでも縦いっぱいになるように） */
  /* ヒーローを画面いっぱいに（上から下まで、左右も全部動画） */
  .hero{
    position: relative;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 100svh;
    height: 100svh;
  }

  /* svh に対応していない古い端末向けの控え */
  @supports not (height: 100svh){
    .hero{
      min-height: 100vh;
      height: 100vh;
    }
  }

  /* ヘッダー分の余白は要らない（動画が上まで来るので） */
  .header-spacer{ display: none; }
  .hero-inner{
    padding: 16px 16px 96px;   /* 下はタブバー＋余裕の分 */
    position: relative;
    z-index: 3;
  }
  .hero-eyebrow{ font-size: 14px; margin-bottom: 7px; }
  .hero-title{ font-size: 26px; line-height: 1.4; margin-bottom: 8px; }
  .hero-lead{ font-size: 16px; line-height: 1.7; margin-bottom: 11px; }
  .hero-points{
    gap: 5px;
    flex-wrap: wrap;
    padding-right: 84px;
  }
  .hero-points li{
    font-size: 13.5px;
    padding: 5px 9px;
    white-space: nowrap;
  }
  .hero-badge{
    /* 文字が大きいので丸も大きく。スマホは右下、タブバーに掛からない位置に */
    width: 146px; height: 146px;
    right: 8px; bottom: 84px;
    z-index: 4;
  }
  .hero-badge p{ font-size: 13.5px; line-height: 1.7; }
  .hero-badge strong{ font-size: 15px; }
  .hero-orb{ display: none; }
  .scroll-cue{ display: none; }

  /* ---------- 診療科：見本と同じ2列カード ---------- */
  .section{ padding: 40px 0; }
  .section-head{ margin-bottom: 26px; }
  .section-en{ font-size: 13.5px; padding: 3px 13px; margin-bottom: 10px; }
  .section-title{ font-size: 24px; padding-bottom: 12px; }
  .section-lead{ font-size: 17px; margin-top: 12px; }

  .dept-list{
    grid-template-columns: 1fr 1fr;
    gap: 11px;
  }

  .dept-card{
    padding: 18px 12px 22px;
    border-radius: 10px;
  }
  .dept-icon{ width: 52px; height: 52px; margin-bottom: 9px; }
  .dept-icon svg{ width: 30px; height: 30px; }
  .dept-card h3{ font-size: 19px; margin-bottom: 5px; letter-spacing: .02em; }
  .dept-card p{ font-size: 14.5px; line-height: 1.65; }
  .dept-arrow{ display: none; }
  .dept-card{ padding-bottom: 18px; }

  /* ---------- 数字 ---------- */
  .stats{ grid-template-columns: repeat(2, 1fr); gap: 11px; }
  .stat-card{ padding: 20px 12px; }
  .stat-num{ font-size: 34px; }
  .stat-num small{ font-size: 17px; }
  .stat-label{ font-size: 15px; }

  /* ---------- 診療時間・お知らせ ---------- */
  .info-grid{ gap: 16px; }
  .panel{ padding: 20px 15px; border-radius: 10px; }
  .panel-title{ font-size: 21px; margin-bottom: 15px; }
  .panel-more{ font-size: 15px; }
  .hours{ font-size: 15.5px; }
  .hours th, .hours td{ padding: 8px 2px; }
  .hours thead th{ width: auto; }
  .hours tbody th{ font-size: 14.5px; padding-left: 7px; }
  .hours-note{ font-size: 14.5px; }
  .hours-note.em{ font-size: 15.5px; }
  .news li{ padding: 12px 2px; }
  .news a{ font-size: 16.5px; }
  .news time{ font-size: 15px; }

  /* ---------- コンセプト ---------- */
  .concept-box{ grid-template-columns: 1fr; gap: 22px; }
  .concept-photo img{ height: 210px; }
  .concept-title{ font-size: 23px; line-height: 1.65; }
  .concept-text{ font-size: 17.5px; line-height: 1.95; }

  /* ---------- 3つの約束 ---------- */
  .promise-list{ grid-template-columns: 1fr; gap: 13px; }
  .promise-card{ padding: 24px 20px 22px; }
  .promise-icon{ width: 62px; height: 62px; margin-bottom: 12px; }
  .promise-card h3{ font-size: 20px; }
  .promise-card p{ font-size: 16.5px; }

  /* ---------- フロア ---------- */
  .floor-row{ grid-template-columns: 62px 1fr; gap: 12px; padding: 15px; }
  .floor-badge{ height: 54px; }
  .floor-badge .num{ font-size: 22px; }
  .floor-badge .lbl{ font-size: 12px; }
  .floor-body h3{ font-size: 18.5px; }
  .floor-body p{ font-size: 16px; }
  .floor-color{ display: block; margin: 5px 0 0; font-size: 14.5px; }

  /* ---------- ギャラリー：2列 ---------- */
  .gallery{ grid-template-columns: 1fr 1fr; gap: 11px; }
  .gallery-photo{ height: 112px; margin-bottom: 8px; }
  .gallery figcaption{ font-size: 15px; }
  .gallery figcaption small{ font-size: 14px; }

  /* ---------- 受診の流れ ---------- */
  .flow-list{ grid-template-columns: 1fr 1fr; gap: 11px; }
  .flow-item{ padding: 18px 12px 16px; }
  .flow-item::before{ width: 32px; height: 32px; font-size: 15px; margin-bottom: 8px; }
  .flow-item::after{ display: none !important; }
  .flow-item h4{ font-size: 17.5px; }
  .flow-item p{ font-size: 15px; line-height: 1.7; }

  /* ---------- よくある質問 ---------- */
  .faq-q{ padding: 15px 15px; font-size: 17.5px; gap: 9px; }
  .faq-mark{ width: 23px; height: 23px; font-size: 16px; }
  .faq-a-inner{ padding: 0 15px; font-size: 16.5px; gap: 9px; }

  /* ---------- アクセス ---------- */
  .access-box{ grid-template-columns: 1fr; padding: 18px; gap: 20px; }
  .access-title{ font-size: 22px; }
  .access-dl{ font-size: 16.5px; }
  .access-tel{ font-size: 23px; }
  .access-map{ min-height: 195px; }
  .way-row{ font-size: 16px; padding: 11px 13px; }

  /* ---------- CTA ---------- */
  .cta{ padding: 38px 0; }
  .cta-inner{ flex-direction: column; text-align: center; gap: 20px; }
  .cta-text h2{ font-size: 23px; }
  .cta-tel{ padding: 13px 22px; }
  .cta-tel .tel-num{ font-size: 28px; }
  .cta-actions .btn-reserve{ padding: 13px 24px; font-size: 17.5px; }

  /* ---------- フッター ---------- */
  .footer{ padding-top: 36px; }
  .footer-grid{ grid-template-columns: 1fr; gap: 24px; padding-bottom: 28px; }
  .footer-addr{ font-size: 16px; }
  .copyright-inner{ flex-direction: column; gap: 8px; padding: 13px 16px; }
  .pagetop{ position: static; }

  /* ---------- 画面下のタブバー ---------- */
  .sp-tabbar{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    position: fixed;
    left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(11.7px);
    border-top: 1px solid var(--line);
    box-shadow: 0 -2px 14px rgba(160,130,80,.10);
    z-index: 280;
    padding-bottom: env(safe-area-inset-bottom);
  }

  .sp-tab{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 9px 2px 8px;
    color: var(--ink-light);
    transition: color .22s, background .22s;
    position: relative;
  }

  .sp-tab-ico{ display: inline-flex; }
  .sp-tab-txt{ font-size: 14px; letter-spacing: .02em; }

  .sp-tab.is-current{
    color: var(--apricot-deep);
    background: var(--apricot-pale);
  }

  .sp-tab.is-current::before{
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 32px;
    height: 3px;
    border-radius: 0 0 3px 3px;
    background: var(--apricot);
  }

  .sp-tab:active{ background: var(--lemon-pale); }

  /* ---------- 横ずれを止める（上下だけで動くように） ----------
     hidden ではなく clip を使う。hidden だと動画の貼りつきが効かなくなるため */
  html, body{
    overflow-x: clip !important;
    width: 100%;
    max-width: 100%;
  }

  /* 画面より広くなりうる箱を、すべて画面内におさめる */
  .header,
  .header-inner,
  .hero,
  .hero-inner,
  .section,
  .container,
  .container-wide,
  .gnav,
  .gnav-inner,
  .cta,
  .cta-inner,
  .footer,
  .copyright,
  .copyright-inner,
  .sp-tabbar{
    max-width: 100%;
    box-sizing: border-box;
  }

  /* はみ出しの原因になりやすい飾りを止める */
  .hero-orb{ display: none; }
  .cta::before{ display: none; }
  .page-head::before,
  .page-head::after{ display: none; }

  /* 長い文字で横に伸びるのを防ぐ */
  .hero-title,
  .hero-lead,
  .section-title,
  .section-lead{
    overflow-wrap: break-word;
    word-break: normal;
  }

  /* 三本線が右端で切れないよう、内側に寄せる */
  .header-inner{ padding-right: 12px; }
  .hamburger{ margin-right: 0; }

  /* ---------- 左右のはみ出しを個別に止める ---------- */

  /* 横スライドは画面からはみ出すので、
     スマホでは「下から大きく持ち上がる」動きに置き換える
     （横ずれを出さずに、迫力は出す） */
  [data-anim="left"],
  [data-anim="right"]{
    transform: translateY(83px) scale(0.922);
    opacity: 0;
    transition: opacity .9s cubic-bezier(.16,.84,.30,1),
                transform 1.2s cubic-bezier(.16,.84,.30,1);
  }

  [data-anim="left"].is-shown,
  [data-anim="right"].is-shown{
    transform: translateY(0) scale(1.0);
    opacity: 1;
  }

  /* スマホでは動きをさらに大きくして、迫力を出す */
  [data-anim="up"]  { transform: translateY(109px) scale(0.922); }
  [data-anim="zoom"]{ transform: scale(0.636); }
  [data-anim="fade"]{ transform: translateY(31px); }

  /* 画面の狭い端末で、三本線が外に出ないようにする */
  .header-inner{
    padding-left: 12px;
    padding-right: 12px;
    gap: 6px;
    overflow: hidden;
  }

  /* 「予約」「電話」と短くしたぶん、1文字を大きくしても横に収まる */
  .sp-act{ padding: 8px 10px; }
  .sp-act-txt{ font-size: 14px; }
  .hamburger{ width: 44px; }

  /* 最初の画面に入る文字は、スクロール判定を待たずに表示する
     （画面の下端にあると判定が働かないため） */
  .hero-lead[data-anim],
  .hero-points li[data-anim]{
    opacity: 1;
    transform: none;
  }

  /* 画像の拡大演出が左右にはみ出すのを止める
     overflow だけでは変形を切り抜けないので、
     はみ出しを作らない形（縦だけ拡大）に変える */
  .reveal,
  .gallery-photo,
  .concept-photo,
  .hero-video{
    overflow: hidden;
    isolation: isolate;
  }

  /* 画像は「縦にだけ」拡大する。
     横は 100% のままなので、はみ出さずに動きが出る */
  .reveal img{
    transform: scaleY(1.10);
    transform-origin: center center;
    transition: transform 1.6s cubic-bezier(.16,.84,.30,1),
                opacity 1.1s ease;
    opacity: .7;
  }

  .reveal.is-shown img{
    transform: scaleY(1);
    opacity: 1;
  }

  .gallery figure:hover .gallery-photo img{ transform: none; }

  /* ==========================================================
     最初の見せ方（version5：ゆっくり・上下で時間差）
     ========================================================== */

  /* 上のヘッダー：すーっと降りてくる（2.2秒かけて） */
  .header{
    opacity: 0;
    transform: translateY(-29px);
    animation: headerDown 2.0s cubic-bezier(.16,.84,.30,1) 4.3s forwards;
  }

  @keyframes headerDown{
    to{ opacity: 1; transform: translateY(0); }
  }

  /* 予約・電話ボタンは、ヘッダーのあと1つずつ */
  .sp-actions{ opacity: 0; animation: softIn 1.6s var(--ease) 5.5s forwards; }
  .sp-act-reserve{ opacity: 0; animation: btnIn 1.3s cubic-bezier(.16,.84,.30,1) 5.7s forwards; }
  .sp-act-tel    { opacity: 0; animation: btnIn 1.3s cubic-bezier(.16,.84,.30,1) 6.0s forwards; }

  @keyframes softIn{ to{ opacity: 1; } }

  @keyframes btnIn{
    from{ opacity: 0; transform: translateY(-13px) scale(0.922); }
    to  { opacity: 1; transform: translateY(0) scale(1.0); }
  }

  /* 下のタブバー：上とは別に、ゆっくりせり上がる */
  .sp-tabbar{
    opacity: 0;
    transform: translateY(100%);
    animation: tabRise 2.0s cubic-bezier(.16,.84,.30,1) 4.9s forwards;
  }

  @keyframes tabRise{
    to{ opacity: 1; transform: translateY(0); }
  }

  /* 真ん中の文字：いちばん最後に、じんわり */
  .hero-inner{ animation: heroTextIn 2.2s cubic-bezier(.16,.84,.30,1) 5.3s both; }

  /* 丸いバッジ：パソコン版と同じく、文字のあとに出す。
     ふわふわ浮かぶ動きも、あとから始める */
  .hero-badge{
    opacity: 0;
    animation: spBadgeIn 1.8s cubic-bezier(.16,.84,.30,1) 6.4s forwards,
               badgeFloat 6.5s ease-in-out 6.8s infinite;
  }

  @keyframes spBadgeIn{
    from{ opacity: 0; transform: scale(.88); }
    to  { opacity: 1; transform: scale(1); }
  }

  @keyframes heroTextIn{
    from{ opacity: 0; transform: translateY(39px); }
    to  { opacity: 1; transform: translateY(0); }
  }
}

/* スマホ用の部品は、パソコンでは出さない */
@media screen and (min-width: 641px){
  .sp-actions{ display: none; }
  .sp-tabbar{ display: none; }
  .hero-video{ display: none; }     /* 縦動画はスマホだけ */

  /* ==========================================================
     パソコン版も、最初は動画だけ。あとからゆっくり現れる
     ========================================================== */

  /* ヘッダーの場所を空けておく仕切りを使わない。
     これがあると、ヘッダーが降りてくる前から
     上に白い帯（bodyの白）が見えてしまう */
  .header-spacer{ display: none; }

  /* 動画は画面のてっぺんから全画面。ヘッダーはその上に重ねる */
  .hero{ margin-top: 0; }

  /* ヘッダーの文字が動画に埋もれないよう、うっすら影を敷く */
  .header::before{
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,.18), rgba(0,0,0,0));
    opacity: 0;
    pointer-events: none;
    z-index: -1;
  }

  /* ヘッダー：上からすーっと降りてくる */
  .header{
    opacity: 0;
    transform: translateY(-26px);
    animation: pcHeaderDown 2.0s cubic-bezier(.16,.84,.30,1) 4.3s forwards;
  }

  @keyframes pcHeaderDown{
    to{ opacity: 1; transform: translateY(0); }
  }

  /* ナビ帯：ヘッダーのあと、下からせり上がる */
  .gnav{
    opacity: 0;
    transform: translateY(24px);
    animation: pcNavUp 2.0s cubic-bezier(.16,.84,.30,1) 4.9s forwards;
  }

  @keyframes pcNavUp{
    to{ opacity: 1; transform: translateY(0); }
  }

  /* 真ん中の文字：いちばん最後に、じんわり */
  .hero-inner{
    animation: pcHeroText 2.2s cubic-bezier(.16,.84,.30,1) 5.3s both;
  }

  @keyframes pcHeroText{
    from{ opacity: 0; transform: translateY(34px); }
    to  { opacity: 1; transform: translateY(0); }
  }

  /* 丸バッジ：文字のあとに、ふわっと */
  .hero-badge{
    opacity: 0;
    animation: pcBadgeIn 1.8s cubic-bezier(.16,.84,.30,1) 6.4s forwards,
               badgeFloat 6.5s ease-in-out 6.8s infinite;
  }

  @keyframes pcBadgeIn{
    from{ opacity: 0; transform: scale(.82); }
    to  { opacity: 1; transform: scale(1); }
  }

  /* SCROLL の表示も最後に */
  .scroll-cue{
    opacity: 0;
    animation: pcCueIn 1.6s ease 5.6s forwards;
  }

  @keyframes pcCueIn{
    to{ opacity: 1; }
  }

  /* 最初の画面に入る文字は、スクロール判定を待たずに表示する
     （画面の下端にあると判定が働かないため）
     ※ 親の .hero-inner がまとめて現れるので、動きは付いている */
  .hero-lead[data-anim],
  .hero-points li[data-anim]{
    opacity: 1;
    transform: none;
  }
}


/* 動きを減らす設定の方への配慮 */
@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  [data-anim]{ opacity: 1; transform: none; filter: none; }
  .reveal::after{ transform: scaleX(0); }
  .reveal img{ transform: none; }
}

/* ==========================================================
   読み込み中の画面（ローディング）
   動画の準備が整うまで隠しておき、すーっと消える。
   専用クラス .loader だけに閉じています。
   ========================================================== */
.loader{
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #fdf8ec 0%, #fdf3e0 45%, #fbeed8 100%);
  /* すーっと消える */
  transition: opacity 1.15s cubic-bezier(.16,.84,.30,1),
              visibility 1.15s;
}

/* 準備ができたら消す */
.loader.is-done{
  opacity: 0;
  visibility: hidden;
}

.loader-inner{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 17px;
  padding: 0 24px;
}

/* ロゴ：ふわっと浮かび上がる */
.loader-mark{
  display: inline-flex;
  opacity: 0;
  transform: translateY(14px) scale(.92);
  animation: loaderMarkIn 1.25s cubic-bezier(.16,.84,.30,1) .12s forwards;
}

@keyframes loaderMarkIn{
  to{ opacity: 1; transform: translateY(0) scale(1); }
}

/* 名前：ロゴのすぐあとに、そっと現れる */
.loader-name{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  line-height: 1.35;
  opacity: 0;
  transform: translateY(10px);
  animation: loaderNameIn 1.25s cubic-bezier(.16,.84,.30,1) .46s forwards;
}

@keyframes loaderNameIn{
  to{ opacity: 1; transform: translateY(0); }
}

.loader-n1{
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .22em;
  color: var(--apricot-deep, #d98236);
}

.loader-n2{
  font-size: 22px;
  font-weight: 700;
  letter-spacing: .16em;
  color: var(--ink, #4a4038);
}

/* 細い線のバー：ゆっくり伸びる */
.loader-bar{
  display: block;
  width: 116px;
  height: 2px;
  margin-top: 5px;
  border-radius: 2px;
  background: rgba(214,170,110,.22);
  overflow: hidden;
  opacity: 0;
  animation: loaderBarIn .55s ease .58s forwards;
}

@keyframes loaderBarIn{
  to{ opacity: 1; }
}

.loader-bar i{
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg,
              var(--lemon, #f3c64b), var(--apricot, #ef9d55));
  transform: scaleX(0);
  transform-origin: left center;
  animation: loaderBar 1.5s cubic-bezier(.33,.72,.42,1) .62s forwards;
}

@keyframes loaderBar{
  to{ transform: scaleX(1); }
}

/* 動きを減らす設定の方には、静かに出す */
@media (prefers-reduced-motion: reduce){
  .loader-mark,
  .loader-name,
  .loader-bar,
  .loader-bar i{
    animation: none;
    opacity: 1;
    transform: none;
  }
  .loader{ transition: opacity .3s, visibility .3s; }
}

/* ============================================================
   ヒーロー動画の3本切替（2026-09-19 追加）
   ※既存セレクタは再定義しない。.hero-clip 専用で閉じる
   ============================================================ */
.hero-photo .hero-clip,
.hero-video .hero-clip{
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.1s ease;
  pointer-events: none;
}

.hero-photo .hero-clip.is-active,
.hero-video .hero-clip.is-active{
  opacity: 1;
}

/* 動きを減らす設定の人には切替アニメを出さない */
@media (prefers-reduced-motion: reduce){
  .hero-photo .hero-clip,
  .hero-video .hero-clip{ transition: none; }
}

/* ============================================================
   下に出しっぱなしのメニュー（2026-09-19 追加）
   ・パソコン（1181px以上）だけに出す
   ・スクロール中は引っ込み、手が止まって2秒後にゆっくり出る
   ※既存セレクタは再定義しない。.dock-nav 専用で閉じる
   ============================================================ */

/* スマホ・タブレットには出さない */
.dock-nav{ display: none; }

@media screen and (min-width: 1181px){

  .dock-nav{
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 70;

    background: rgba(255, 249, 231, .96);
    border-top: 3px solid var(--lemon);
    box-shadow: 0 -6px 24px rgba(120, 95, 40, .10);

    /* 最初は下にしまっておく */
    opacity: 0;
    transform: translateY(100%);
    pointer-events: none;
    transition: transform .85s cubic-bezier(.16,.84,.30,1),
                opacity   .85s cubic-bezier(.16,.84,.30,1);
  }

  /* 手が止まった時に、ゆっくり出てくる */
  .dock-nav.is-shown{
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .dock-nav-inner{
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 16px;
  }

  .dock-nav ul{
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;
  }

  .dock-nav li{ position: relative; }

  /* 項目のあいだの細い仕切り */
  .dock-nav li + li::before{
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 20px;
    background: #ecd9a8;
  }

  .dock-nav li > a{
    display: block;
    padding: 15px 22px;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: .04em;
    color: var(--ink);
    white-space: nowrap;
    position: relative;
    transition: color .25s ease;
  }

  /* 下にすっと伸びる線 */
  .dock-nav li > a::after{
    content: "";
    position: absolute;
    left: 50%;
    bottom: 9px;
    width: 26px;
    height: 2px;
    background: var(--apricot-deep);
    transform: translateX(-50%) scaleX(0);
    transform-origin: center;
    transition: transform .3s ease;
  }

  .dock-nav li > a:hover{ color: var(--apricot-deep); }
  .dock-nav li > a:hover::after,
  .dock-nav li.is-current > a::after{ transform: translateX(-50%) scaleX(1); }
  .dock-nav li.is-current > a{ color: var(--apricot-deep); }

  /* いちばん下まで来た時に、本物のフッターが隠れないように少しあける */
  body.has-dock-nav .footer{ padding-bottom: 84px; }
}

/* 動きを減らす設定の人には、動かさずに出し入れするだけ。
   ※隠れている時に見えてしまわないよう、opacityは必ず0のまま */
@media screen and (min-width: 1181px) and (prefers-reduced-motion: reduce){
  .dock-nav{
    transform: translateY(0);
    transition: opacity .2s linear;
  }
  .dock-nav.is-shown{ transform: translateY(0); }
}

/* ============================================================
   スマホ用「上に戻る」まるボタン（2026-09-19 追加）
   ・スマホ（640px以下）だけに出す
   ・下のタブバー（高さ70px）の上に浮かせる
   ・少し下がってから、ふわっと現れる
   ※既存セレクタは再定義しない。.sp-totop 専用で閉じる
   ============================================================ */

/* パソコンには出さない */
.sp-totop{ display: none; }

@media screen and (max-width: 640px){

  .sp-totop{
    display: flex;
    align-items: center;
    justify-content: center;

    position: fixed;
    right: 16px;
    /* タブバー(70px)の上に、少し隙間をあけて置く */
    bottom: calc(70px + 14px + env(safe-area-inset-bottom));
    z-index: 270;

    width: 48px;
    height: 48px;
    padding: 0;
    border: none;
    border-radius: 50%;

    background: var(--leaf);
    color: #fff;
    box-shadow: 0 4px 14px rgba(90, 130, 60, .34);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;

    /* ふだんは隠しておく */
    opacity: 0;
    transform: translateY(12px) scale(.9);
    pointer-events: none;
    transition: opacity .4s ease, transform .4s cubic-bezier(.16,.84,.30,1);
  }

  .sp-totop.is-shown{
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
  }

  .sp-totop:active{
    background: var(--leaf-deep);
    transform: translateY(0) scale(.94);
  }

  .sp-totop svg{ display: block; }
}

/* 動きを減らす設定の人には、出し入れだけ */
@media screen and (max-width: 640px) and (prefers-reduced-motion: reduce){
  .sp-totop{
    transform: translateY(0) scale(1);
    transition: opacity .2s linear;
  }
  .sp-totop.is-shown{ transform: translateY(0) scale(1); }
}

/* ============================================================
   ヒーロー動画を右に寄せる（2026-09-19）
   ・1本目のいちばん最初だけ、画面いっぱいのまま
   ・2本目、3本目、2周目の1本目は、画面の30%から右に動画を置く
   ・動画の左のはしは、だんだん薄くして背景に溶かす。
     50%あたりから右は、動画がはっきり見える
   ・動く演出はしない。切り替わりと同時にその場所に出す
   ※既存セレクタは再定義しない。.is-shifted 専用で閉じる
   ============================================================ */
@media screen and (min-width: 1181px){

  /* 動画の置き場所を、画面の30%から右にする（幅70%） */
  .hero-photo.is-shifted{
    left: 30%;
    right: 0;
    transition: none;
    /* 左のはしを、だんだん薄くして背景に溶かす。
       0%（画面の30%地点）から 30%（画面の51%地点）にかけて濃くなる */
    -webkit-mask-image: linear-gradient(90deg,
      rgba(0,0,0,0)    0%,
      rgba(0,0,0,.06)  6%,
      rgba(0,0,0,.16) 12%,
      rgba(0,0,0,.30) 18%,
      rgba(0,0,0,.50) 24%,
      rgba(0,0,0,.72) 29%,
      rgba(0,0,0,.90) 33%,
      rgba(0,0,0,1)   38%,
      rgba(0,0,0,1)  100%);
    mask-image: linear-gradient(90deg,
      rgba(0,0,0,0)    0%,
      rgba(0,0,0,.06)  6%,
      rgba(0,0,0,.16) 12%,
      rgba(0,0,0,.30) 18%,
      rgba(0,0,0,.50) 24%,
      rgba(0,0,0,.72) 29%,
      rgba(0,0,0,.90) 33%,
      rgba(0,0,0,1)   38%,
      rgba(0,0,0,1)  100%);
  }

  .hero-photo{
    transition: none;
  }

  /* 枠の中では、人物が切れないよう真ん中を見せる */
  .hero-photo.is-shifted .hero-clip{
    object-position: 50% center;
  }

  /* 白い膜は出さない */
  .hero-photo.is-shifted::after{
    background: none;
  }

  /* 壁紙を一色にする。1本目から最後までずっと同じ色。
     もとのグラデーションを一色で上書きする */
  .hero{
    background: rgb(254,251,242);
  }

  /* 色つきの飾りの丸も、最初から消す（白にそろえるため） */
  .hero .hero-orb{
    display: none;
  }

  /* 大きさが変わる切り替えの時だけ、ゆっくり消すのをやめる。
     前の動画が小さくなりながら残って見えるのを防ぐため */
  .hero-photo .hero-clip.no-fade{
    transition: none;
  }
}

/* ============================================================
   いちばん上の動画を画面に貼りつけ、
   下の内容がその上にせり上がって重なる（2026-09-19 追加）
   ※既存セレクタは再定義しない。.over-hero 専用で閉じる
   ============================================================ */
/* パソコンもスマホも、同じように動かす */

/* 動画の部分を画面に貼りつける。
   スクロールしても、しばらくその場に留まる */
.hero{
  position: sticky;
  top: 0;
  z-index: 1;
}

/* 横のはみ出し止めを、貼りつきを壊さないやり方に変える。
   overflow-x:hidden のままだと、貼りつきが効かなくなるため */
html, body{
  overflow-x: clip;
}

/* 下の内容。動画より前に出して、上から重ねる */
.over-hero{
  position: relative;
  z-index: 2;
  background: #ffffff;
  /* 重なる境目に、やわらかい影を落とす */
  box-shadow: 0 -18px 40px rgba(120, 95, 40, .10);
}

/* ============================================================
   大きなモニターでも、左右の余白を一定にする（2026-09-19 追加）
   ・画面がどれだけ広くても、左右の余白は同じ
   ・中身は画面いっぱいまで広がる
   ・文字は大きくなりすぎないよう、ある幅で止める
   ※既存セレクタの max-width だけを上書きする
   ============================================================ */
@media screen and (min-width: 1181px){

  /* 中身の入れ物。上限をなくし、左右の余白だけを決める */
  .container{
    max-width: none;
    padding-left: 56px;
    padding-right: 56px;
  }

  .container-wide{
    max-width: none;
    padding-left: 56px;
    padding-right: 56px;
  }

  /* ヘッダー・ナビ帯・下の固定メニューも、同じ余白でそろえる */
  .header-inner{
    max-width: none;
    padding-left: 56px;
    padding-right: 56px;
  }

  .gnav-inner{
    max-width: none;
    padding-left: 56px;
    padding-right: 56px;
  }

  .dock-nav-inner{
    max-width: none;
    padding-left: 56px;
    padding-right: 56px;
  }

  /* いちばん上の大きな写真の中の文字 */
  .hero-inner{
    max-width: none;
    padding-left: 56px;
    padding-right: 56px;
  }

  /* 文章だけは、横に広がりすぎると読みにくいので、ほどよい幅で止める */
  .section-lead,
  .concept-text,
  .art p,
  .art .art-list{
    max-width: 980px;
  }

  /* 中央ぞろえの文章は、真ん中に置く */
  .section-lead{
    margin-left: auto;
    margin-right: auto;
  }
}

/* ============================================================
   スマホ表示の手直し（2026-09-19 追加）
   ・フロアの四角（2F WARD など）の上下が詰まっていたので広げる
   ・Q&A の「A」の丸から文字がはみ出していたので、丸を大きくする
   ※既存セレクタの数値だけを上書きする
   ============================================================ */
@media screen and (max-width: 640px){

  /* フロアの四角。高さを少し戻し、上下に余白を入れる */
  .floor-badge{
    height: 64px;
    padding: 8px 6px;
  }

  .floor-badge .num{ font-size: 21px; }

  /* 英字は「RECEPTION」のように長いものがあるので、
     四角の幅を少し広げて、切れないようにする */
  .floor-row{
    grid-template-columns: 74px 1fr;
  }

  .floor-badge .lbl{
    font-size: 10px;
    letter-spacing: 0;
    margin-top: 3px;
    white-space: nowrap;
  }

  /* Q&A の丸。文字が入りきるよう、丸を大きくする。
     行の高さは1にして、文字が丸の真ん中に来るようにする */
  .faq-mark{
    width: 28px;
    height: 28px;
    font-size: 14.5px;
    line-height: 1;
  }

  /* 答えの丸だけ、下に余白が付いて文字が上にずれていたので打ち消す */
  .faq-a-inner > .faq-mark{
    padding-bottom: 0;
  }
}

/* 予約・電話ボタンの上下を少し詰める（2026-09-19） */
@media screen and (max-width: 640px){
  .sp-act{ padding-top: 6px; padding-bottom: 6px; }
}

/* ============================================================
   フロアのご案内の幅（2026-09-20 追加）
   ・パソコン幅では .container の上限を外しているため、1列のフロア一覧が
     画面いっぱいに伸び、右側に余白が残っていた
   ・一覧だけ元のコンテナ幅（1060px）で止めて、中央に置く
   ============================================================ */
@media screen and (min-width: 1181px){
  .floor-list{
    max-width: 1060px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* よくあるご質問の一覧も同じ理由で横に伸びていたので、同じ幅で止める（2026-09-20 追加） */
@media screen and (min-width: 1181px){
  .faq-list{
    max-width: 1060px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* 下層の FAQ ページは見出しが左寄せなので、一覧も本文（.art p）と同じ左寄せ・980px にそろえる */
@media screen and (min-width: 1181px){
  .art .faq-list{
    max-width: 980px;
    margin-left: 0;
  }
}

/* Q&A の答えの丸。.faq-a-inner > * の padding-bottom が丸にも当たり、A が上にずれていた。
   スマホ幅では 9/19 に打ち消し済みだったので、全幅で同じ打ち消しにする（2026-09-20） */
.faq-a-inner > .faq-mark{ padding-bottom: 0; }

/* アクセスの箱も同じ幅で止める（2026-09-20 追加） */
@media screen and (min-width: 1181px){
  .access-box{
    max-width: 1060px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Q&A の答えの行。質問との間が詰まっていたので、上に少し余白を足す（2026-09-20） */
.faq-a-inner{ padding-top: 8px; }

/* ============================================================
   Android だけ本文を少し小さく（2026-09-20 追加）
   ・お年寄り向けに大きめにしているが、Android は Noto Sans の字面が
     ヒラギノより大きく、同じ px でもひと回り大きく見える
   ・スマホ幅の本文系だけ約5%下げて、iPhone と印象をそろえる。見出しは触らない
   ・目印 html.is-android は js/script.js の先頭で付けている
   ============================================================ */
@media screen and (max-width: 640px){
  html.is-android body{ font-size: 17px; }
  html.is-android .section-lead{ font-size: 16px; }
  html.is-android .hero-lead{ font-size: 15px; }
  html.is-android .dept-card p{ font-size: 14px; }
  html.is-android .news a{ font-size: 15.5px; }
  html.is-android .hours{ font-size: 15px; }
  html.is-android .hours-note{ font-size: 14px; }
  html.is-android .hours-note.em{ font-size: 15px; }
  html.is-android .concept-text{ font-size: 16.5px; }
  html.is-android .promise-card p{ font-size: 15.5px; }
  html.is-android .floor-body p{ font-size: 15px; }
  html.is-android .faq-q{ font-size: 16.5px; }
  html.is-android .faq-a-inner{ font-size: 15.5px; }
  /* 下層ページ（page.css の値を上書き） */
  html.is-android .page-lead{ font-size: 17.5px; }
  html.is-android .art p{ font-size: 17.5px; }
  html.is-android .art .lead-big{ font-size: 18.5px; }
  html.is-android .art-list li{ font-size: 17.5px; }
  html.is-android .tbl{ font-size: 15.5px; }
}

/* ============================================================
   JWN追記（ここから下だけが JWN 用。上はやよいの正本のまま）
   ============================================================ */

/* ページ内リンクで飛んだ時、固定ヘッダーに見出しが隠れないように */
section[id], .cta[id]{ scroll-margin-top: 96px; }

/* 2026-11-17 ヘッダー3枚を「言葉入りの写真」に差し替え。
   言葉が写真に焼き込んであるので、寄り引き・拡大・切り抜きをすると
   文字が欠ける。写真と同じ縦横比の枠にし、動かさず、覆いも掛けない */
.hero{
  min-height: 0;
  height: auto;
  aspect-ratio: 1672 / 941;   /* パソコン用の横長写真と同じ形 */
}
@media screen and (max-width: 640px){
  .hero{
    min-height: 0;
    height: auto;
    aspect-ratio: 941 / 1672; /* スマホ用の縦長写真と同じ形 */
  }
}

/* 拡大の動き（heroZoom・寄り引き）を止める＝文字が切れない */
.hero-photo img.hero-clip,
.hero-video img.hero-clip{
  animation: none;
}

/* 文字を読ませるための白い覆いは、写真側に余白があるので使わない */
.hero-photo::after,
.hero-video::after{
  display: none;
}

/* 読み上げ・検索向けの見出し（画面には出さない） */
.jwn-sr{
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* 数字は3枚。やよいの4列を3列にする */
.stats.stats-3{ grid-template-columns: repeat(3, 1fr); }

/* 出典のそえ書き */
.stats-src{
  margin: 18px 0 0;
  text-align: center;
  font-size: 15.5px;
  color: var(--ink-light);
}

/* 三つのかたち：写真つきカード（promise-card と gallery を合わせた形） */
.act-list{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.act-card{
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--line-soft);
  overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s;
}

.act-card:hover{ transform: translateY(-9px); box-shadow: var(--shadow-lift); }

.act-photo{
  height: 190px;
  background: var(--lemon-soft);
}

.act-photo img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.act-body{ padding: 24px 24px 28px; }

.act-body h3{
  margin: 0 0 10px;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: .05em;
  color: var(--apricot-deep);
}

.act-body p{
  margin: 0;
  font-size: 17px;
  line-height: 1.95;
  color: var(--ink-light);
}

/* フッターは3列（JWNは下層ページが無いので列が少ない） */
.footer-grid.footer-grid-3{ grid-template-columns: 1.4fr 1fr 1fr; }

/* 問い合わせ準備中の札（電話番号の代わり） */
.cta-wait{
  font-size: 24px;
  font-weight: 700;
  color: var(--apricot-deep);
  margin: 0;
  line-height: 1.5;
}

@media screen and (max-width: 900px){
  .act-list{ grid-template-columns: 1fr; }
  .footer-grid.footer-grid-3{ grid-template-columns: 1fr 1fr; }
}

@media screen and (max-width: 640px){
  /* 数字3枚はスマホでは1列（2列だと1枚だけ余って不ぞろいに見える） */
  .stats.stats-3{ grid-template-columns: 1fr; gap: 11px; }
  .act-list{ grid-template-columns: 1fr; gap: 13px; }
  .act-photo{ height: 150px; }
  .footer-grid.footer-grid-3{ grid-template-columns: 1fr; }
  .stats-src{ font-size: 14px; }
}

/* スマホのヒーロー文字まわり（やよいのSPと同じ、縦ピル3つ＋右下バッジ） */
@media screen and (max-width: 640px){
  .hero-points{ flex-direction: column; align-items: flex-start; gap: 6px; }
  .hero-lead br{ display: none; }
  .hero-lead{ padding-right: 100px; }

  /* 写真の覆いを少しだけ強くして、上のロゴと下の文字を確実に読めるようにする */
  .hero-video::after{
    background: linear-gradient(180deg,
      rgba(254,251,242,.50) 0%,
      rgba(254,251,242,.22) 18%,
      rgba(254,251,242,.10) 38%,
      rgba(255,253,248,.62) 62%,
      rgba(255,253,248,.88) 82%,
      rgba(255,253,248,.95) 100%);
  }

  /* ページが見えて約2秒後、スクロールしなくてもヘッダーを白い帯にする
     （透明のままだと後ろの写真や文字と同化するため。JSが is-solid を付ける） */
  .header.is-solid{
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(13.0px);
    box-shadow: 0 2px 20px rgba(160,130,80,.13);
  }
}

/* スマホで右端の三本線（メニュー）が画面の外に切れないようにする（2026-11-17）。
   実測390px幅で中身に465px必要だったため、ロゴ・2ボタン・三本線を少しずつ詰めて
   どの部品も消さずに収める。白帯（is-scrolled）の広い余白20pxもここで12pxにそろえる */
@media screen and (max-width: 640px){
  .header-inner{ padding-left: 10px; padding-right: 10px; gap: 6px; }
  .header.is-scrolled .header-inner{ padding: 7px 10px; }
  .logo{ gap: 6px; }
  .logo-mark svg{ width: 36px; height: 36px; }
  .logo-name .ln1{ font-size: 19px; }
  .logo-name .ln2{ font-size: 13px; }
  .sp-actions{ gap: 5px; }
  .sp-act{ padding: 8px 7px; }
  .sp-act-txt{ font-size: 13px; }
  .hamburger{ width: 38px; margin-left: 4px; }
  .hamburger span{ width: 26px; }
  .hamburger::after{ font-size: 10.5px; letter-spacing: .02em; }
}

/* さらに狭い端末（360px級）でも収める */
@media screen and (max-width: 374px){
  .logo-name .ln1{ font-size: 17px; }
  .logo-name .ln2{ font-size: 12px; }
  .logo-mark svg{ width: 34px; height: 34px; }
  .sp-act{ padding: 7px 5px; }
  .sp-act-txt{ font-size: 12px; }
  .hamburger{ margin-left: 4px; }
}

/* ごく古い小さい端末（320px級）は、2ボタンを絵だけにして収める
   （aria-labelがあるので読み上げは変わらない） */
@media screen and (max-width: 345px){
  .sp-act-txt{ display: none; }
  .sp-act{ padding: 9px 6px; }
  .header-inner{ padding-left: 9px; padding-right: 9px; }
  .header.is-scrolled .header-inner{ padding: 7px 9px; }
  .logo-name .ln2{ font-size: 11.5px; }
  .hamburger{ width: 34px; }
}

/* 大見出しが「ち」1文字だけ2行目に落ちるのを防ぐ（2026-11-17）。
   言葉のまとまり（.nb）の途中では折り返さず、まとまりの境目でだけ折れる */
.section-title .nb,
.concept-title .nb{ display: inline-block; }

/* 正式ロゴ（ひまわり・2026-11-17安藤さん支給）への差し替え。
   仮のSVG印をimgに替えたぶん、寸法の決まりをsvg時代と同じに引き継ぐ */
.logo-mark img{
  width: 44px; height: 44px; display: block;
  transition: width .35s var(--ease), height .35s var(--ease);
}
.header.is-scrolled .logo-mark img{ width: 34px; height: 34px; }
@media screen and (max-width: 640px){
  .logo-mark img{ width: 36px; height: 36px; }
}
@media screen and (max-width: 374px){
  .logo-mark img{ width: 34px; height: 34px; }
}
@media screen and (max-width: 345px){
  .logo-mark img{ width: 32px; height: 32px; }
}
.loader-mark img{ width: 62px; height: 62px; display: block; }

/* ==========================================================
   お問い合わせフォーム（2026-11-18）
   ========================================================== */
.toi-form{
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  width: min(560px, 100%);
  box-shadow: var(--shadow);
  text-align: left;
}
.toi-row{ margin-bottom: 16px; }
.toi-row label{
  display: block; font-size: 14.5px; font-weight: 700;
  color: var(--ink); margin-bottom: 6px; letter-spacing: .04em;
}
.toi-req, .toi-opt{
  display: inline-block; margin-left: 8px; font-size: 11.5px; font-weight: 700;
  padding: 2px 8px; border-radius: 999px; vertical-align: 1px;
}
.toi-req{ background: var(--apricot-deep); color: #fff; }
.toi-opt{ background: var(--line-soft); color: var(--ink-light); }
.toi-row input, .toi-row textarea{
  width: 100%; box-sizing: border-box;
  border: 1px solid var(--line); border-radius: 8px;
  padding: 11px 12px; font: inherit; font-size: 16px;
  color: var(--ink); background: var(--cream);
}
.toi-row input:focus, .toi-row textarea:focus{
  outline: 2px solid var(--apricot); outline-offset: 1px; background: #fff;
}
.toi-hp{ position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.toi-note{ font-size: 13px; color: var(--ink-light); margin: 4px 0 14px; }
.toi-send{ width: 100%; border: 0; cursor: pointer; font-family: inherit; justify-content: center; }
.toi-send:disabled{ opacity: .6; cursor: wait; }
.toi-result{ margin: 12px 0 0; font-size: 14.5px; font-weight: 700; display: none; }
.toi-result.ok{ display: block; color: var(--leaf-deep); }
.toi-result.ng{ display: block; color: #c0564f; }
.header-tel .tel-link{ color: var(--apricot-deep); text-decoration: none; }
.header-tel .tel-link:hover{ text-decoration: underline; }
@media (max-width: 640px){
  .toi-form{ padding: 20px 16px; }
}

/* 2026-11-18 三本線メニューの修正：パソコン用の「ナビ帯を5秒後に出す」演出が、
   三本線で開いた引き出しメニューにもかかり、押しても約5秒透明だった。開いた時は演出なしですぐ見せる */
@media screen and (max-width: 1180px){
  .gnav.is-open{ opacity: 1; transform: none; animation: none; }
  /* 引き出しの中では、横並び用の下線（今いる所の印）を出さない */
  .gnav.is-open li > a::after{ display: none; }
}

/* 2026-11-18 パソコンでは三本線を出さない（安藤さん指示）。
   画面の拡大設定でパソコンの幅が1180px以下になっても、901px以上なら写真の下の横並びナビを出す。
   901px以上で7項目が1行に収まることを実ブラウザーで確認済み。三本線は900px以下（タブレット・スマホ）だけ */
@media screen and (min-width: 901px) and (max-width: 1180px){
  .gnav{ display: block; }
  .hamburger{ display: none; }
  /* 三本線が無くなった分、オレンジのボタンを右端へ寄せる */
  .header-inner > .btn-reserve{ margin-left: auto; }
}

/* 2026-11-18 パソコン版だけ：1181〜1365px幅では見出しの中身が入りきらず、オレンジのボタンが右にはみ出して切れていた。
   この幅だけ真ん中の説明文（すべての世代の…）を省き、ボタンを右端に収める */
@media screen and (min-width: 1181px) and (max-width: 1365px){
  .header-depts{ display: none; }
  .header-inner > .btn-reserve{ margin-left: auto; }
}
