/* Base */
/* 修正3: overflow-y:hidden を body から削除し、オープニング中（body.is-opening）のみに適用する */
body {margin:0;font-family:"Yu Mincho","YuMincho","Hiragino Mincho ProN",serif;background:#FDFBF7;overflow-x:hidden;transition:font-size .3s ease;}
body.is-opening {overflow:hidden;}
.text-standard{font-size:16px;}.text-large{font-size:20px;}.vertical-text{writing-mode:vertical-rl;-webkit-writing-mode:vertical-rl;text-orientation:upright;}
/* 修正4: ネストされた @media の文法エラーを修正（セレクタとメディアクエリの平さを逆転） */
@media (min-width:768px){.md\:writing-vertical-rl{writing-mode:vertical-rl;-webkit-writing-mode:vertical-rl;}}

/* Opening screen */
#opening-screen {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999999;
  background:
    radial-gradient(circle at 50% 45%, rgba(255,255,255,0.88) 0%, rgba(255,255,255,0.46) 27%, rgba(247,241,232,0) 58%),
    linear-gradient(180deg, #F8F2E9 0%, #F3EBDD 100%);
  opacity: 1;
  pointer-events: auto;
  overflow: hidden;
  transition:
    opacity 1.05s cubic-bezier(.22,1,.36,1),
    transform 1.05s cubic-bezier(.22,1,.36,1);
  isolation: isolate;
}

html.yui-show-opening #opening-screen {
  display: block;
}

html.yui-skip-opening #opening-screen {
  display: none;
}

html.yui-skip-opening body.is-opening {
  overflow: auto !important;
}

html.yui-skip-opening #main-content {
  opacity: 1 !important;
  transform: scale(1) !important;
}

/* 背景のやわらかい光 */
.opening-light {
  position: absolute;
  inset: -8%;
  z-index: 1;
  background:
    radial-gradient(circle at 50% 46%, rgba(255,255,255,.94) 0 10%, rgba(255,255,255,.62) 23%, rgba(255,255,255,0) 55%),
    radial-gradient(circle at 50% 53%, rgba(197,160,89,.09) 0 18%, rgba(197,160,89,0) 58%);
  opacity: 0;
  transform: scale(.985);
  transition:
    opacity 1.25s cubic-bezier(.16,1,.3,1),
    transform 1.25s cubic-bezier(.16,1,.3,1);
  pointer-events: none;
}

/* うっすら質感。画像は使わず軽量 */
.opening-light::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      90deg,
      rgba(43,75,101,.014) 0,
      rgba(43,75,101,.014) 1px,
      transparent 1px,
      transparent 9px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(197,160,89,.014) 0,
      rgba(197,160,89,.014) 1px,
      transparent 1px,
      transparent 11px
    );
  opacity: .16;
}

/* ロゴ下の結びモチーフ */
.opening-line {
  position: absolute;
  top: calc(47% + 132px);
  left: 50%;
  z-index: 3;
  width: min(36vw, 410px);
  height: 70px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  overflow: visible;
}

.opening-knot-svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.opening-knot-svg path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.knot-main,
.knot-sub {
  stroke: #C5A059;
}

/* 中央の結び */
.knot-main {
  stroke-width: 1.45;
  stroke-opacity: .86;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  filter: drop-shadow(0 0 7px rgba(197,160,89,.12));
}

.knot-sub {
  stroke-width: 1.15;
  stroke-opacity: .36;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

/* 左右の線 */
.knot-line {
  stroke-width: 1.05;
  stroke-opacity: .52;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

/* ロゴ全体 */
.logo-wrapper {
  position: absolute;
  top: 49%;
  left: 50%;
  z-index: 4;
  width: min(24vmin, 112px);
  height: min(35vmin, 160px);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

/* 以前の丸・曲線モチーフは使わない */
.logo-wrapper::before,
.logo-wrapper::after {
  content: none !important;
}

/* ロゴ本体：位置は固定、上からふわっと表示 */
.opening-logo {
  position: relative;
  z-index: 5;
  width: min(16.4vmin, 78px);
  height: auto;
  opacity: 0;
  transform: scale(0.985);
  filter:
    blur(4px)
    brightness(0)
    saturate(100%)
    invert(24%)
    sepia(21%)
    saturate(2053%)
    hue-rotate(168deg)
    brightness(94%)
    contrast(88%);
  will-change: opacity, transform, filter;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition:
  opacity 1.28s cubic-bezier(.22, 1, .36, 1) .06s,
  transform 1.38s cubic-bezier(.22, 1, .36, 1) .06s,
  filter 1.28s ease .06s;
}

/* 表示開始 */
#opening-screen.logo-ready .opening-light {
  opacity: 1;
  transform: scale(1);
}

#opening-screen.logo-ready .opening-logo {
  opacity: 1;
  transform: scale(1);
  filter:
    blur(0)
    brightness(0)
    saturate(100%)
    invert(24%)
    sepia(21%)
    saturate(2053%)
    hue-rotate(168deg)
    brightness(94%)
    contrast(88%);
}

/* 中央の結びを先に一筆書き風に描く */
#opening-screen.logo-ready .knot-main {
  animation: drawKnotMain 1.25s cubic-bezier(.16,1,.3,1) 1.48s forwards;
}

#opening-screen.logo-ready .knot-sub {
  animation: drawKnotSub 1.2s cubic-bezier(.16,1,.3,1) 1.60s forwards;
}

/* その後、左右線を同時に外へ伸ばす */
#opening-screen.logo-ready .knot-line-left,
#opening-screen.logo-ready .knot-line-right {
  animation: drawKnotLine 1.7s cubic-bezier(.16,1,.3,1) 2.55s forwards;
}

@keyframes drawKnotMain {
  from {
    stroke-dashoffset: 1;
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  to {
    stroke-dashoffset: 0;
    opacity: 1;
  }
}

@keyframes drawKnotSub {
  from {
    stroke-dashoffset: 1;
    opacity: 0;
  }
  12% {
    opacity: .55;
  }
  to {
    stroke-dashoffset: 0;
    opacity: .55;
  }
}

@keyframes drawKnotLine {
  from {
    stroke-dashoffset: 1;
    opacity: 0;
  }
  8% {
    opacity: 1;
  }
  to {
    stroke-dashoffset: 0;
    opacity: 1;
  }
}

/* 消える時：ロゴと結びをやわらかく薄くする */
#opening-screen.fade-out {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
}

#opening-screen.fade-out .opening-logo {
  opacity: .42;
  transform: scale(.992);
  filter:
    blur(2px)
    brightness(0)
    saturate(100%)
    invert(24%)
    sepia(21%)
    saturate(2053%)
    hue-rotate(168deg)
    brightness(94%)
    contrast(88%);
  transition:
  opacity 1.55s ease,
  transform 1.7s cubic-bezier(.22,1,.36,1),
  filter 1.55s ease;
}

#opening-screen.fade-out .opening-knot-svg {
  opacity: .38;
  transform: translateY(-2px) scale(.992);
  transition:
    opacity .55s ease,
    transform .75s cubic-bezier(.22,1,.36,1);
}

#opening-screen.fade-out .opening-light {
  opacity: 0;
  transform: scale(1.012);
  transition:
    opacity .95s ease,
    transform 1.05s cubic-bezier(.22,1,.36,1);
}

/* スマホ調整 */
@media (max-width: 767px) {
  .logo-wrapper {
    top: 49.2%;
    width: min(21vmin, 84px);
    height: min(31vmin, 126px);
  }

  .opening-logo {
    width: min(16.5vmin, 62px);
  }

  .opening-line {
  top: calc(46.5% + 112px);
  width: min(74vw, 345px);
  height: 82px;
}

      /* スマホだけ金線を見た目としてゆっくり描く。PCには影響なし */
  #opening-screen.logo-ready .knot-main {
    animation-duration: 2.05s;
    animation-delay: 1.08s;
    animation-timing-function: cubic-bezier(.35, .0, .25, 1);
  }

  #opening-screen.logo-ready .knot-sub {
    animation-duration: 1.95s;
    animation-delay: 1.20s;
    animation-timing-function: cubic-bezier(.35, .0, .25, 1);
  }

  #opening-screen.logo-ready .knot-line-left,
  #opening-screen.logo-ready .knot-line-right {
    animation-duration: 2.25s;
    animation-delay: 2.32s;
    animation-timing-function: cubic-bezier(.35, .0, .25, 1);
  }
}

/* Main content */
#main-content{opacity:1;visibility:visible;transform:scale(1);transition:none;}
.show-main{opacity:1!important;visibility:visible!important;transform:scale(1)!important;}

/* 背景の波と花（色を元の暗めゴールドベースに戻しました） */
.bg-circle-1 {
  position: absolute; bottom: -15%; left: -20%; width: 58vw; height: 74vh; background: rgba(197, 160, 89, 0.08); border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; animation: organicWobble 25s infinite ease-in-out alternate; z-index: 1; pointer-events: none;
}
@keyframes organicWobble {
  0% { transform: translate(0, 0) scale(1); border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
  33% { transform: translate(2%, 2%) scale(1.02); border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
  66% { transform: translate(-2%, 4%) scale(0.98); border-radius: 50% 50% 40% 60% / 50% 60% 40% 40%; }
  100% { transform: translate(0, 0) scale(1); border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
}
/* 花のSVGの色も元の %23C5A059 に戻しました */
.bg-circle-2 {
  position: absolute; top: 34%; left: 23%; width: 15vw; height: 15vw; background-color: transparent; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg fill='none' stroke='%23C5A059' stroke-width='1.5' stroke-opacity='0.15'%3E%3Ccircle cx='50' cy='50' r='12'/%3E%3Ccircle cx='50' cy='50' r='6'/%3E%3Cellipse cx='50' cy='50' rx='6' ry='42' transform='rotate(0 50 50)'/%3E%3Cellipse cx='50' cy='50' rx='6' ry='42' transform='rotate(22.5 50 50)'/%3E%3Cellipse cx='50' cy='50' rx='6' ry='42' transform='rotate(45 50 50)'/%3E%3Cellipse cx='50' cy='50' rx='6' ry='42' transform='rotate(67.5 50 50)'/%3E%3Cellipse cx='50' cy='50' rx='6' ry='42' transform='rotate(90 50 50)'/%3E%3Cellipse cx='50' cy='50' rx='6' ry='42' transform='rotate(112.5 50 50)'/%3E%3Cellipse cx='50' cy='50' rx='6' ry='42' transform='rotate(135 50 50)'/%3E%3Cellipse cx='50' cy='50' rx='6' ry='42' transform='rotate(157.5 50 50)'/%3E%3C/g%3E%3C/svg%3E"); background-size: contain; background-repeat: no-repeat; background-position: center; border-radius: 50%; animation: slowSpinReverse 60s linear infinite; z-index: 1; pointer-events: none;
}
.bg-circle-3 {
  position: absolute; bottom: 7%; left: -4%; width: 15vw; height: 15vw; background-color: transparent; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg fill='none' stroke='%23C5A059' stroke-width='1.5' stroke-opacity='0.15'%3E%3Ccircle cx='50' cy='50' r='5'/%3E%3Cpath d='M50 10 Q 60 40 90 50 Q 60 60 50 90 Q 40 60 10 50 Q 40 40 50 10 Z'/%3E%3Cpath d='M50 10 Q 60 40 90 50 Q 60 60 50 90 Q 40 60 10 50 Q 40 40 50 10 Z' transform='rotate(45 50 50)'/%3E%3Cpath d='M50 25 Q 55 42 75 50 Q 55 58 50 75 Q 45 58 25 50 Q 45 42 50 25 Z' transform='rotate(22.5 50 50)'/%3E%3Cpath d='M50 25 Q 55 42 75 50 Q 55 58 50 75 Q 45 58 25 50 Q 45 42 50 25 Z' transform='rotate(67.5 50 50)'/%3E%3C/g%3E%3C/svg%3E"); background-size: contain; background-repeat: no-repeat; background-position: center; border-radius: 50%; animation: slowSpin 60s linear infinite; z-index: 1; pointer-events: none;
}
@keyframes slowSpin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes slowSpinReverse { 0% { transform: rotate(0deg); } 100% { transform: rotate(-360deg); } }

/* Hero slide */
.hero-slide{opacity:0;transform:scale(1.1);transition:opacity 2.5s ease-in-out,transform 8.0s ease-out;z-index:1;}
.hero-slide.active{opacity:1;transform:scale(1);z-index:3;}
.hero-slide.last-active{opacity:1;transform:scale(1.05);z-index:2;}

/* 有機的スライダー（アメーバ） */
.organic-slider {
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  animation: sliderWobble 15s ease-in-out infinite alternate;
}

@keyframes sliderWobble {
  0% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
  33% { border-radius: 40% 60% 70% 30% / 50% 60% 30% 60%; }
  66% { border-radius: 70% 30% 50% 50% / 30% 50% 70% 40%; }
  100% { border-radius: 50% 50% 40% 60% / 40% 50% 60% 50%; }
}

/* ★ スマホ表示のみの調整（PC版には一切影響しません） ★ */
@media (max-width: 767px) {
  #hero-wrapper { clip-path: url(#wave-mask-sp) !important; }

  /* アメーバ */
  .bg-circle-1 {
    width: 91vw !important; 
    height: 91vw !important; 
    bottom: 5% !important; 
    left: -20% !important; 
  }

  /* 花の配置（画面中央からの比率に統一） */
  .bg-circle-2 {
    width: 40vw; height: 40vw;
    top: calc(50% - 50vh); 
    left: calc(50% - 65vw); 
  }
  .bg-circle-3 {
    width: 40vw; height: 40vw;
    bottom: auto; 
    top: calc(50% - 30vh); 
    left: calc(50% - 65vw); 
  }
}

/* hero3 表示位置調整 */
.hero3-pos {
  object-position: 80% center; /* ← スマホの位置 */
}

@media (min-width: 768px) {
  .hero3-pos {
    object-position: 100% center; /* ← PCの位置 */
  }
}

/* hero2 スマホ用画像の位置調整 */
@media (max-width: 767px) {
  .hero-slide img,
.hero-slide.active img {
    object-position: 100% 20% !important;
  }
}

/* ============================================================
   オープニング安定化：軽量ロゴOP用
   2026-05-31
   ============================================================ */

#opening-screen,
.opening-light,
.opening-line,
.logo-wrapper,
.opening-logo {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

#main-content {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* =========================================================
   YUISHINDO OPENING CLEAN FIX
   初回のみ表示：ベージュ → ロゴ → 金線 → ヒーロー
   ロゴ崩れ防止・OP全体フェード版
========================================================= */

/* OP中はヘッダー・CTA類を見せない */
/* OP中のスクロール停止。
   背景色は body.is-opening の時だけベージュにする。
   html.yui-show-opening body には背景色を持たせない。
*/
html.yui-show-opening body {
  overflow: hidden !important;
}

body.is-opening {
  background: #F7F1E8 !important;
  overflow: hidden !important;
}

html.yui-show-opening #main-header,
html.yui-show-opening #menu-btn,
html.yui-show-opening #bottom-cta,
html.yui-show-opening #pc-side-cta,
html.yui-show-opening .scroll-indicator,
html.yui-show-opening .to-top-btn,
body.is-opening #main-header,
body.is-opening #menu-btn,
body.is-opening #bottom-cta,
body.is-opening #pc-side-cta,
body.is-opening .scroll-indicator,
body.is-opening .to-top-btn {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* body内のOP本体が描画されるまで、html::beforeで最速ベージュ幕を出す */
html.yui-show-opening:not(.yui-opening-shell-ready)::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  background: #F7F1E8;
  pointer-events: none;
}

html.yui-opening-shell-ready::before,
html.yui-opening-finished::before {
  display: none !important;
}

/* ヒーロー本体：OP中も裏側で描画し、OP本体だけを上から重ねる */
#main-content {
  opacity: 1 !important;
  visibility: visible !important;
  transform: scale(1) !important;
  transition: none !important;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

#main-content.show-main,
html.yui-main-ready #main-content,
html.yui-opening-finished #main-content {
  opacity: 1 !important;
  visibility: visible !important;
  transform: scale(1) !important;
}

/* OP本体 */
#opening-screen {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2147483646;
  background:
    radial-gradient(circle at 50% 45%, rgba(255,255,255,0.88) 0%, rgba(255,255,255,0.46) 27%, rgba(247,241,232,0) 58%),
    linear-gradient(180deg, #F8F2E9 0%, #F3EBDD 100%);
  opacity: 1;
  pointer-events: auto;
  overflow: hidden;
  isolation: isolate;
  transition:
    opacity 1.15s cubic-bezier(.22, 1, .36, 1),
    transform 1.15s cubic-bezier(.22, 1, .36, 1);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

html.yui-show-opening #opening-screen {
  display: block;
}

html.yui-opening-finished #opening-screen {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* OP背景の柔らかい光 */
.opening-light {
  position: absolute;
  inset: -8%;
  z-index: 1;
  background:
    radial-gradient(circle at 50% 46%, rgba(255,255,255,.94) 0 10%, rgba(255,255,255,.62) 23%, rgba(255,255,255,0) 55%),
    radial-gradient(circle at 50% 53%, rgba(197,160,89,.09) 0 18%, rgba(197,160,89,0) 58%);
  opacity: 0;
  transform: scale(.985);
  transition:
    opacity 1.05s cubic-bezier(.16,1,.3,1),
    transform 1.05s cubic-bezier(.16,1,.3,1);
  pointer-events: none;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.opening-light::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      90deg,
      rgba(43,75,101,.014) 0,
      rgba(43,75,101,.014) 1px,
      transparent 1px,
      transparent 9px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(197,160,89,.014) 0,
      rgba(197,160,89,.014) 1px,
      transparent 1px,
      transparent 11px
    );
  opacity: .16;
}

/* ロゴ下の金線 */
.opening-line {
  position: absolute;
  top: calc(47% + 132px);
  left: 50%;
  z-index: 3;
  width: min(36vw, 410px);
  height: 70px;
  transform: translate3d(-50%, -50%, 0);
  pointer-events: none;
  overflow: visible;
  opacity: 1;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.opening-knot-svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.opening-knot-svg path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.knot-main,
.knot-sub {
  stroke: #C5A059;
}

.knot-main {
  stroke-width: 1.45;
  stroke-opacity: .86;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  filter: drop-shadow(0 0 7px rgba(197,160,89,.12));
}

.knot-sub {
  stroke-width: 1.15;
  stroke-opacity: .36;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.knot-line {
  stroke-width: 1.05;
  stroke-opacity: .52;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

/* ロゴ */
.logo-wrapper {
  position: absolute;
  top: 49%;
  left: 50%;
  z-index: 4;
  width: min(24vmin, 112px);
  height: min(35vmin, 160px);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
  transform: translate3d(-50%, -50%, 0) !important;
  pointer-events: none;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.logo-wrapper::before,
.logo-wrapper::after {
  content: none !important;
}

.opening-logo {
  position: relative;
  z-index: 5;
  width: min(16.4vmin, 78px);
  height: auto;
  opacity: 0;
  transform: none !important;
  filter:
    blur(4px)
    brightness(0)
    saturate(100%)
    invert(24%)
    sepia(21%)
    saturate(2053%)
    hue-rotate(168deg)
    brightness(94%)
    contrast(88%);
  will-change: opacity, filter;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition:
    opacity 1.05s cubic-bezier(.22, 1, .36, 1),
    filter 1.05s ease;
}

/* OP開始：ロゴ・光・金線 */
#opening-screen.logo-ready .opening-light {
  opacity: 1;
  transform: scale(1);
}

#opening-screen.logo-ready .opening-logo {
  opacity: 1;
  transform: none !important;
  filter:
    blur(0)
    brightness(0)
    saturate(100%)
    invert(24%)
    sepia(21%)
    saturate(2053%)
    hue-rotate(168deg)
    brightness(94%)
    contrast(88%);
}

#opening-screen.logo-ready .knot-main {
  animation: drawKnotMainFinal 1.10s cubic-bezier(.16,1,.3,1) 1.14s forwards;
}

#opening-screen.logo-ready .knot-sub {
  animation: drawKnotSubFinal 1.06s cubic-bezier(.16,1,.3,1) 1.24s forwards;
}

#opening-screen.logo-ready .knot-line-left,
#opening-screen.logo-ready .knot-line-right {
  animation: drawKnotLineFinal 1.42s cubic-bezier(.16,1,.3,1) 2.30s forwards;
}

@keyframes drawKnotMainFinal {
  from {
    stroke-dashoffset: 1;
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  to {
    stroke-dashoffset: 0;
    opacity: 1;
  }
}

@keyframes drawKnotSubFinal {
  from {
    stroke-dashoffset: 1;
    opacity: 0;
  }
  12% {
    opacity: .55;
  }
  to {
    stroke-dashoffset: 0;
    opacity: .55;
  }
}

@keyframes drawKnotLineFinal {
  from {
    stroke-dashoffset: 1;
    opacity: 0;
  }
  8% {
    opacity: 1;
  }
  to {
    stroke-dashoffset: 0;
    opacity: 1;
  }
}

/* ヒーローへの移行：
   1段階目：ロゴ・金線だけ先にふわっと消す
   2段階目：ベージュ背景は最初ゆっくり、後半早めに抜ける
*/

/* 1段階目：ロゴだけ先に消え始める */
#opening-screen.logo-line-out .opening-logo {
  opacity: var(--op-logo-end-opacity, 0) !important;
  transform: none !important;
  filter:
    blur(var(--op-logo-blur, 2.5px))
    brightness(0)
    saturate(100%)
    invert(24%)
    sepia(21%)
    saturate(2053%)
    hue-rotate(168deg)
    brightness(94%)
    contrast(88%) !important;
  transition:
    opacity var(--op-logo-fade-duration, 0.95s) ease,
    filter var(--op-logo-fade-duration, 0.95s) ease !important;
}

/* 1段階目：金線も先に消え始める */
#opening-screen.logo-line-out .opening-knot-svg {
  opacity: var(--op-line-end-opacity, 0) !important;
  transform: translateY(var(--op-line-up, -2px)) scale(var(--op-line-scale, .992)) !important;
  transition:
    opacity var(--op-line-fade-duration, 0.85s) ease,
    transform var(--op-line-fade-duration, 0.85s) cubic-bezier(.22, 1, .36, 1) !important;
}

/* 2段階目：ベージュ背景全体がヒーローへ消える */
#opening-screen.fade-out {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translate3d(0, var(--op-screen-up, -2px), 0) !important;
}

/* 背景の光はベージュ幕に合わせて薄く抜く */
#opening-screen.fade-out .opening-light {
  opacity: 0 !important;
  transform: scale(1) !important;
  transition:
    opacity .65s cubic-bezier(.85, 0, 1, .35),
    transform .65s cubic-bezier(.85, 0, 1, .35) !important;
}

/* OP全体の幕フェード時間
   cubic-bezier(.68, 0, .94, .42)
   → 最初ゆっくり、後半早め。ベージュの余韻が残りすぎにくい
*/
#opening-screen {
  transition:
    opacity var(--op-screen-fade-duration, 1.45s) cubic-bezier(.68, 0, .94, .42),
    transform var(--op-screen-fade-duration, 1.45s) cubic-bezier(.68, 0, .94, .42) !important;
}

/* スマホ調整 */
@media (max-width: 767px) {
  .logo-wrapper {
    top: 49.2%;
    width: min(21vmin, 84px);
    height: min(31vmin, 126px);
  }

  .opening-logo {
    width: min(16.5vmin, 62px);
  }

  .opening-line {
    top: calc(46.5% + 112px);
    width: min(74vw, 345px);
    height: 82px;
  }

  #opening-screen.logo-ready .knot-main {
    animation-duration: 1.78s;
    animation-delay: 1.02s;
    animation-timing-function: cubic-bezier(.35, .0, .25, 1);
  }

  #opening-screen.logo-ready .knot-sub {
    animation-duration: 1.70s;
    animation-delay: 1.12s;
    animation-timing-function: cubic-bezier(.35, .0, .25, 1);
  }

  #opening-screen.logo-ready .knot-line-left,
  #opening-screen.logo-ready .knot-line-right {
    animation-duration: 1.95s;
    animation-delay: 2.08s;
    animation-timing-function: cubic-bezier(.35, .0, .25, 1);
  }
}

/* =========================================================
   OP中の裏側ヒーロー負荷を止める
   新規タブで開いた時の初期カクつき対策
========================================================= */

html.yui-show-opening .bg-circle-1,
html.yui-show-opening .bg-circle-2,
html.yui-show-opening .bg-circle-3 {
  animation: none !important;
  transition: none !important;
  transform: none !important;
  will-change: auto !important;
}

html.yui-show-opening .hero-slide {
  transition: none !important;
  transform: none !important;
  will-change: auto !important;
}

html.yui-show-opening #hero-wrapper {
  transition: none !important;
  will-change: auto !important;
}

/* =========================================================
index.html から移動したインラインCSS
2026-06 軽量化 第3段階
========================================================= */
    .menu-open .line-1 { transform: translateY(6px) rotate(45deg); width: 24px !important; }
    .menu-open .line-2 { opacity: 0; }
    .menu-open .line-3 { transform: translateY(-6px) rotate(-45deg); width: 24px !important; }

    @media (hover: hover) {
      #menu-btn:not(.menu-open):hover .line-1 { width: 16px !important; }
      #menu-btn:not(.menu-open):hover .line-2 { width: 24px !important; }
      #menu-btn:not(.menu-open):hover .line-3 { width: 20px !important; }
    }

    .draw-line {
      position: absolute; bottom: 0; left: 0; width: 100%; height: 1.5px;
      background-color: #C5A059; transform: scaleX(0); transform-origin: left;
      transition: transform 0.3s ease-out;
    }
    @media (hover: hover) {
      .link-container:hover .draw-line { transform: scaleX(1); }
    }
    .link-container:active .draw-line { transform: scaleX(1); }

    html { scroll-behavior: smooth; }

    .faq-answer {
      max-height: 0; overflow: hidden;
      transition: max-height 0.4s ease-out, padding 0.4s ease-out, opacity 0.3s ease-out;
      opacity: 0;
    }
    .faq-item.open .faq-answer { opacity: 1; }
    .faq-icon { transition: transform 0.3s ease; }
    .faq-item.open .faq-icon { transform: rotate(45deg); }

    :root { --ease: cubic-bezier(0.16, 1, 0.3, 1); }

    .fade-up {
      opacity: 0;
      transform: translateY(28px);
      transition: opacity 1.4s var(--ease), transform 1.4s var(--ease);
    }
    .fade-up.is-visible { opacity: 1; transform: translateY(0); }

    .img-reveal {
      overflow: hidden;
      opacity: 0;
      transform: translateY(16px);
      transition: opacity 1.3s ease-out, transform 1.3s var(--ease);
    }
    .img-reveal.is-visible { opacity: 1; transform: translateY(0); }
    .img-reveal img {
      transform: scale(1.08);
      transition: transform 3s var(--ease);
    }
    .img-reveal.is-visible img { transform: scale(1); }

    .organic-shape {
      border-radius: 46% 54% 42% 58% / 50% 44% 56% 48%;
    }

    @keyframes gentleBounce {
      0%, 100% { transform: translateY(0); opacity: 0.25; }
      50% { transform: translateY(7px); opacity: 0.7; }
    }
    .scroll-hint { animation: gentleBounce 2.5s ease-in-out infinite; }

    @media (min-width: 768px) {
      .profile-sticky { position: sticky; top: 110px; }
    }

    @keyframes slowSpin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
    @keyframes slowSpinReverse { 0% { transform: rotate(0deg); } 100% { transform: rotate(-360deg); } }

    .wave-divider { width: 100%; line-height: 0; overflow: hidden; }
    .wave-divider svg { display: block; width: 100%; height: 80px; }
    @media (min-width: 768px) {
      .wave-divider svg { height: 100px; }
    }

    .section-wrap { overflow-x: hidden; }

    body, html, * {
      -ms-overflow-style: none !important;
      scrollbar-width: none !important;
    }
    body::-webkit-scrollbar,
    html::-webkit-scrollbar,
    *::-webkit-scrollbar {
      display: none !important;
      width: 0 !important;
      height: 0 !important;
    }

    .scroll-indicator {
      position: fixed;
      width: 46px;
      height: 160px;
      right: 30px;
      bottom: 40px;
      z-index: 35;
      transition: opacity 0.6s ease;
    }
    .scroll-indicator::after {
      content: "SCROLL";
      font-size: 10px;
      font-weight: 300;
      font-family: Arial, sans-serif;
      letter-spacing: 0.2em;
      line-height: 1;
      transform-origin: left top;
      transform: rotate(90deg);
      position: absolute;
      left: 90%;
      top: 0;
      width: 160px;
      text-align: left;
      color: #ffffff;
      text-shadow: 0 1px 6px rgba(0,0,0,0.5), 0 0 12px rgba(0,0,0,0.2);
    }
    .scroll-indicator .scroll-line {
      height: 100%;
      width: 1px;
      display: block;
      position: absolute;
      left: 50%;
      top: 0;
      background-color: rgba(255,255,255,0.2);
      overflow: hidden;
    }
    .scroll-indicator .scroll-line::before {
      content: "";
      position: absolute;
      top: 0; left: 0;
      width: 100%;
      height: 0%;
      z-index: 1;
      background-color: #ffffff;
      animation: scrollSign 4000ms cubic-bezier(0.55, 0.085, 0.68, 0.53) 200ms infinite normal;
      opacity: 0.5;
    }
    @keyframes scrollSign {
      0%   { height: 0; top: 0; opacity: 0; }
      50%  { height: 100%; top: 0; opacity: 0.5; }
      100% { height: 100%; top: 100%; opacity: 0; }
    }

    .to-top-btn {
      width: 46px;
      height: 100px;
      position: fixed;
      right: 30px;
      bottom: 40px;
      z-index: 35;
      cursor: pointer;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.6s ease;
    }
    .to-top-btn.visible { opacity: 1; pointer-events: auto; }
    .to-top-btn .top-arrow {
      width: 10px; height: 10px;
      position: absolute;
      left: 50%; top: 0;
      margin-left: -5px;
      border-top: 1.5px solid #2b4b65;
      border-left: 1.5px solid #2b4b65;
      transform: rotate(45deg);
      opacity: 0.6;
    }
    .to-top-btn::before {
      content: "";
      width: 1px;
      height: calc(100% - 15px);
      position: absolute;
      left: 50%; bottom: 0;
      background-color: rgba(43,75,101,0.3);
    }
    .to-top-btn .top-text { display: none; }
    .to-top-btn::after {
      content: "TO TOP";
      font-size: 10px;
      font-weight: 300;
      font-family: Arial, sans-serif;
      letter-spacing: 0.2em;
      line-height: 1;
      transform-origin: left top;
      transform: rotate(90deg);
      position: absolute;
      left: 90%; top: 0;
      width: 80px;
      text-align: right;
      color: #2b4b65;
      opacity: 0.6;
    }
    .to-top-btn:hover .top-arrow { opacity: 0.9; }
    .to-top-btn:hover::after { opacity: 0.9; }

    @media (max-width: 767px) {
      .scroll-indicator { right: 14px; width: 42px; height: 120px; bottom: 40px; }
      .to-top-btn { right: 14px; bottom: 90px; }
    }

    .est-radio-card {
      transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
      position: relative;
      overflow: hidden;
      cursor: pointer;
      background-color: #ffffff;
    }
    .est-radio-card input[type="radio"] {
      position: absolute;
      opacity: 0;
      width: 0;
      height: 0;
    }
    @media (hover: hover) {
      .est-radio-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 10px 25px rgba(43, 75, 101, 0.08);
        border-color: rgba(197, 160, 89, 0.4);
      }
    }
    .est-radio-card:has(input:checked) {
      border-color: #C5A059;
      background-color: #FDFBF7;
      box-shadow: 0 6px 20px rgba(197, 160, 89, 0.15);
      transform: translateY(-2px);
    }
    .est-check-icon {
      opacity: 0;
      transform: scale(0.5) rotate(-10deg);
      transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
      color: #C5A059;
    }
    .est-radio-card:has(input:checked) .est-check-icon {
      opacity: 1;
      transform: scale(1) rotate(0deg);
    }

    @keyframes float-badge {
      0%, 100% { transform: translateY(0); }
      50% { transform: translateY(-6px); }
    }
    .animate-float-badge { animation: float-badge 3s ease-in-out infinite; }

    .val-fade { transition: opacity 0.2s ease-out; }
    .val-hidden { opacity: 0; }
    .val-visible { opacity: 1; transition: opacity 0.4s ease-in; }

    .font-serif { font-family: 'Noto Serif JP', serif !important; }

    /* メニューボタンの文字崩れ防止 */
    #menu-text {
      font-size: 8px !important;
      line-height: 1 !important;
      white-space: nowrap !important;
    }

    @keyframes resultGlowPulse {
      0%   { box-shadow: 0 0 0 rgba(197,160,89,0), 0 4px 12px rgba(197,160,89,0.12); }
      20%  { box-shadow: 0 0 0 6px rgba(197,160,89,0.05), 0 0 28px rgba(197,160,89,0.12), 0 14px 38px rgba(43,75,101,0.05); }
      50%  { box-shadow: 0 0 0 10px rgba(197,160,89,0.00), 0 0 18px rgba(197,160,89,0.08), 0 10px 30px rgba(43,75,101,0.04); }
      100% { box-shadow: 0 4px 12px rgba(197,160,89,0.12); }
    }
    #est-result.result-active .est-result-card {
      animation: resultGlowPulse 1.4s ease-out 1;
    }

    .fade-left, .fade-right {
      opacity: 0;
      transition: opacity 1.2s var(--ease), transform 1.2s var(--ease);
    }
    .fade-left  { transform: translateX(-40px); }
    .fade-right { transform: translateX(40px); }
    .fade-left.is-visible, .fade-right.is-visible { opacity: 1; transform: translateX(0); }

    @keyframes iconRelaxedZoom {
      0%   { transform: scale(0.85); opacity: 0; }
      100% { transform: scale(1);    opacity: 1; }
    }
    .anim-icon-zoom-fade {
      animation: iconRelaxedZoom 2.0s cubic-bezier(0.25, 1, 0.5, 1) forwards;
      opacity: 0;
    }

    @keyframes fluffyFadeUp {
      0%   { opacity: 0; filter: blur(4px); }
      100% { opacity: 1; filter: blur(0px); }
    }
    .anim-fade-up {
      animation: fluffyFadeUp 2.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
      opacity: 0;
    }
    .delay-150 { animation-delay: 0.15s; }
    .delay-300 { animation-delay: 0.30s; }
    .delay-450 { animation-delay: 0.45s; }
    .delay-600 { animation-delay: 0.60s; }

    /* 線香セクション */
    .tegami-stick {
      position: absolute; bottom: 42px; width: 1.5px;
      background: rgba(197,160,89,0.25); border-radius: 1px;
      transform-origin: bottom center;
    }
    .tegami-stick::before {
      content: ''; position: absolute; top: -2px; left: 50%;
      transform: translateX(-50%);
      width: 3px; height: 3px; background: #C5A059; border-radius: 50%; opacity: 0.35;
      animation: tegamiEmber 2.5s ease-in-out infinite alternate;
    }
    @keyframes tegamiEmber { 0% { opacity: 0.4; } 100% { opacity: 0.9; } }
    .tegami-smoke-line {
      position: absolute; bottom: 120px; width: 2px; height: 0;
      background: linear-gradient(to top, rgba(197,160,89,0.25), transparent);
      filter: blur(1.5px); border-radius: 50%;
      animation: tegamiLineRise 6s ease-in-out infinite;
    }
    .tegami-smoke-dot {
      position: absolute; bottom: 120px; left: 50%; border-radius: 50%;
      background: rgba(197,160,89,0.22); filter: blur(2px);
      animation: tegamiDotRise 5s ease-out infinite;
    }
    @keyframes tegamiLineRise {
      0%   { height: 0; opacity: 0; transform: translateX(0); }
      10%  { opacity: 0.6; }
      30%  { transform: translateX(10px); }
      50%  { height: 100px; transform: translateX(-8px); opacity: 0.35; }
      70%  { transform: translateX(6px); }
      100% { height: 170px; transform: translateX(-3px); opacity: 0; }
    }
    @keyframes tegamiDotRise {
      0%   { transform: translate(-50%, 0) scale(0.8); opacity: 0; }
      10%  { opacity: 0.5; }
      30%  { transform: translate(calc(-50% + 12px), -50px) scale(1.8); }
      60%  { transform: translate(calc(-50% - 10px), -100px) scale(2.8); opacity: 0.2; }
      100% { transform: translate(calc(-50% + 5px), -170px) scale(3.5); opacity: 0; }
    }

    .fade-in-smoke {
      opacity: 0;
      filter: blur(4px);
      transition: opacity 2.5s ease-out, filter 2.5s ease-out;
    }
    .fade-in-smoke.is-visible { opacity: 1; filter: blur(0px); }

    /* PC右側固定ボタン */
    #pc-side-cta a,
#pc-side-cta button {
  transform: translateX(150%);
  opacity: 0;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease-out;
}
#pc-side-cta.is-active a,
#pc-side-cta.is-active button {
  transform: translateX(0);
  opacity: 1;
}
#pc-side-cta a:nth-child(2) { transition-delay: 0.15s; }

    /* ==============================
       電話番号ポップアップ
       ============================== */
    .tel-popup {
      position: absolute;
      background: white;
      border: 1.5px solid #C5A059;
      border-radius: 12px;
      padding: 10px 16px;
      white-space: nowrap;
      font-family: Arial, sans-serif;
      font-size: 15px;
      font-weight: bold;
      color: #2b4b65;
      box-shadow: 0 4px 20px rgba(43,75,101,0.15);
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.25s ease, transform 0.25s ease;
      z-index: 100;
    }
/* 電話番号ポップアップの重なり調整 */
.menu-contact {
  position: relative;
  overflow: visible;
}

.menu-tel {
  position: relative;
  z-index: 20;
  overflow: visible;
}

.menu-line {
  position: relative;
  z-index: 1;
}

.menu-tel .tel-popup,
.tel-popup.visible {
  z-index: 9999;
}

    /* CTAエリア・フッター等（下向き吹き出し） */
    .tel-popup--down {
      top: calc(100% + 10px);
      left: 50%;
      transform: translateX(-50%) scale(0.9);
      transform-origin: top center;
    }
    .tel-popup--down::after {
      content: '';
      position: absolute;
      top: -8px;
      left: 50%;
      transform: translateX(-50%) rotate(45deg);
      width: 12px; height: 12px;
      background: white;
      border-left: 1.5px solid #C5A059;
      border-top: 1.5px solid #C5A059;
    }
    .tel-popup--down.visible {
      opacity: 1;
      pointer-events: auto;
      transform: translateX(-50%) scale(1);
    }
    /* PC右側丸ボタン（左向き吹き出し） */
    .tel-popup--left {
      top: 50%;
      left: auto;
      right: calc(100% + 12px);
      transform: translateY(-50%) scale(0.9);
      transform-origin: right center;
    }
    .tel-popup--left::after {
      content: '';
      position: absolute;
      top: 50%;
      right: -8px;
      transform: translateY(-50%) rotate(45deg);
      width: 12px; height: 12px;
      background: white;
      border-right: 1.5px solid #C5A059;
      border-top: 1.5px solid #C5A059;
    }
    .tel-popup--left.visible {
      opacity: 1;
      pointer-events: auto;
      transform: translateY(-50%) scale(1);
    }

    /* 修正13: 重複していた @keyframes slowSpin / slowSpinReverse の2回目の定義を削除（1回目は行105-106に残存） */
/* 動的fixed位置制御用（下向き） */
.tel-popup--fixed-down {
  position: fixed;
  transform: translateX(-50%) scale(0.9);
  transform-origin: top center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 9999;
}
.tel-popup--fixed-down::after {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px; height: 12px;
  background: white;
  border-left: 1.5px solid #C5A059;
  border-top: 1.5px solid #C5A059;
}
.tel-popup--fixed-down.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) scale(1);
}

    /* ============================================================
       かんたんお見積もりツール（タブ切替版）専用CSS
       ============================================================ */

    /* タブ */
    .est-service-tab-wrap { display: flex; gap: 10px; margin-bottom: 40px; }
    .est-service-tab {
      flex: 1; padding: 14px 6px 12px; border-radius: 14px;
      border: 2px solid #e8e0d0; background: #fff;
      color: rgba(43,75,101,0.45); font-size: 11px; font-weight: 700;
      cursor: pointer; transition: all 0.35s cubic-bezier(0.34,1.2,0.64,1);
      letter-spacing: 0.03em; line-height: 1.5; text-align: center;
      font-family: 'Noto Sans JP', sans-serif; position: relative;
      box-shadow: 0 2px 6px rgba(43,75,101,0.04);
    }
    .est-tab-icon {
      display: flex; justify-content: center; align-items: center;
      margin: 0 auto 7px; width: 44px; height: 44px;
      transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1); opacity: 0.5;
    }
    .est-tab-label { display: block; transition: color 0.25s ease; }
    .est-service-tab.active {
      border-color: #C5A059; background: #fff; color: #C5A059;
      box-shadow: 0 6px 18px rgba(197,160,89,0.18), 0 2px 6px rgba(197,160,89,0.10), inset 0 1px 0 rgba(255,255,255,0.9);
      transform: translateY(-3px);
    }
    .est-service-tab.active .est-tab-icon { transform: scale(1.15) translateY(-1px); opacity: 1; }
    @media (hover: hover) {
      .est-service-tab:not(.active):hover { border-color: rgba(197,160,89,0.4); color: rgba(43,75,101,0.7); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(43,75,101,0.08); }
      .est-service-tab:not(.active):hover .est-tab-icon { opacity: 0.6; transform: scale(1.05); }
    }
    .est-service-tab:active { transform: translateY(0) scale(0.97); }
    .est-service-tab::after { content: ''; position: absolute; bottom: -2px; left: 50%; transform: translateX(-50%) scaleX(0); width: 60%; height: 2px; background: #C5A059; border-radius: 99px; transition: transform 0.3s cubic-bezier(0.34,1.2,0.64,1); }
    .est-service-tab.active::after { transform: translateX(-50%) scaleX(1); }

    /* 質問エリア */
    .est-question-divider { display: flex; justify-content: center; margin: 44px 0 40px; }
    .est-question-divider-inner { height: 1px; width: 70%; max-width: 420px; background: linear-gradient(to right, transparent, rgba(197,160,89,0.5), transparent); }
    .est-question-block { margin-bottom: 0; }
    .est-question-label { display: flex; align-items: center; gap: 10px; border-bottom: 1px solid #f0f0f0; padding-bottom: 10px; margin-bottom: 14px; font-size: 14px; font-weight: 700; color: #2b4b65; }
    .est-q-num { font-family: Arial, sans-serif; font-size: 20px; font-weight: 700; color: #C5A059; line-height: 1; }
    .est-q-sep { width: 2px; height: 14px; background: rgba(197,160,89,0.5); border-radius: 99px; flex-shrink: 0; }

    /* カードレイアウト */
    .est-area-cards { display: flex; flex-direction: column; gap: 10px; margin-left: 34px; }
    @media (min-width: 768px) { .est-area-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } }
    .est-stones-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .est-col-cards { display: flex; flex-direction: column; gap: 10px; margin-left: 34px; }
    .est-grid-cards { display: flex; flex-direction: column; gap: 10px; margin-left: 34px; }
    @media (min-width: 768px) { .est-grid-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; } }

    /* カード共通 */
    .est-card2 {
      position: relative; background: #fff; border: 1.5px solid #e0e0e0;
      border-radius: 12px; padding: 14px; cursor: pointer; display: block;
      transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    }
    .est-card2 input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; }
    @media (hover: hover) {
      .est-card2:hover { transform: translateY(-4px); box-shadow: 0 10px 25px rgba(43,75,101,0.08); border-color: rgba(197,160,89,0.4); }
    }
    .est-card2:has(input:checked) { border-color: #C5A059; background-color: #FDFBF7; box-shadow: 0 6px 20px rgba(197,160,89,0.15); transform: translateY(-2px); }
    .est-card2-inline { display: flex; align-items: center; justify-content: space-between; gap: 8px; }

    /* カード内部 */
    .est-card-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; margin-bottom: 4px; }
    .est-card-name { font-size: 15px; font-weight: 700; color: #2b4b65; line-height: 1.5; }
    .est-card-name-sm { font-size: 15px; font-weight: 700; color: #2b4b65; }
    .est-card-extra { font-size: 11px; font-weight: 400; color: #C5A059; margin-left: 4px; }
    .est-card-desc { display: block; font-size: 12px; color: rgba(43,75,101,0.8); line-height: 1.6; font-weight: 500; }
/* 見積もりカード内：通常合計・セット料金の2行表示 */
.est-card-desc .est-desc-line {
  display: block;
}

.est-card-desc .est-desc-line + .est-desc-line {
  margin-top: 2px;
}

.est-card-desc .est-desc-set {
  font-weight: 700;
  color: rgba(43,75,101,0.85);
}

.est-card-desc .est-desc-set strong {
  font-family: Arial, sans-serif;
  color: #2b4b65;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* 見積もりカード内：お得バッジ */
.est-card-desc .est-desc-set {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 3px 7px;
}

.est-saving-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(197,160,89,0.12);
  border: 1px solid rgba(197,160,89,0.42);
  color: #C5A059;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

    .est-card-divider-dashed { border-bottom: 1px dashed rgba(197,160,89,0.75); margin-bottom: 8px; width: 100%; }
    .est-check-icon2 { width: 20px; height: 20px; flex-shrink: 0; color: #C5A059; opacity: 0; transform: scale(0.5) rotate(-10deg); transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
    .est-card2:has(input:checked) .est-check-icon2 { opacity: 1; transform: scale(1) rotate(0deg); }

        /* カードアニメーション：ふわっと表示に調整 */
    @keyframes estCardFadeUp {
      0% {
        opacity: 0;
        transform: translateY(22px) scale(0.985);
        filter: blur(5px);
      }

      60% {
        opacity: 1;
        filter: blur(1px);
      }

      100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
      }
    }

    .est-area-card-anim {
      opacity: 0;
      will-change: opacity, transform, filter;
      backface-visibility: hidden;
      animation: estCardFadeUp 1.05s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    }

    .est-area-card-anim:nth-child(1) { animation-delay: 0.08s; }
    .est-area-card-anim:nth-child(2) { animation-delay: 0.20s; }
    .est-area-card-anim:nth-child(3) { animation-delay: 0.32s; }
    .est-area-card-anim:nth-child(4) { animation-delay: 0.44s; }

    .est-area-card-anim.est-anim-done {
      animation: none;
      opacity: 1;
      transform: none;
      filter: none;
    }

    /* タブ切り替え後に出るカード用 */
    @keyframes estDynamicCardFadeUp {
      0% {
        opacity: 0;
        transform: translateY(24px) scale(0.985);
        filter: blur(6px);
      }

      55% {
        opacity: 1;
        filter: blur(1.5px);
      }

      100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
      }
    }

    .est-dynamic-card-anim {
      opacity: 0;
      will-change: opacity, transform, filter;
      backface-visibility: hidden;
      animation: estDynamicCardFadeUp 1.1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    }

    .est-dynamic-card-anim:nth-child(1) { animation-delay: 0.06s; }
    .est-dynamic-card-anim:nth-child(2) { animation-delay: 0.18s; }
    .est-dynamic-card-anim:nth-child(3) { animation-delay: 0.30s; }
    .est-dynamic-card-anim:nth-child(4) { animation-delay: 0.42s; }
    .est-dynamic-card-anim:nth-child(5) { animation-delay: 0.54s; }

    .est-dynamic-card-anim.est-anim-done {
      animation: none;
      opacity: 1;
      transform: none;
      filter: none;
    }

    /* オプション補足 */
    .est-option-note { margin-left: 34px; margin-top: 12px; padding: 14px 16px; background: #fff; border: 1px solid #e0e0e0; border-radius: 12px; }
    .est-option-note-title { font-size: 11px; font-weight: 700; color: #C5A059; margin-bottom: 12px; }
    .est-option-grid { display: flex; flex-direction: column; gap: 8px; }
    @media (min-width: 768px) { .est-option-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } }
    .est-option-panel { background: #FDFBF7; border-left: 3px solid #C5A059; border-radius: 4px 8px 8px 4px; padding: 10px 14px; display: flex; justify-content: space-between; align-items: center; min-height: 44px; }
    .est-option-left { display: flex; flex-direction: column; justify-content: center; }
    .est-option-name { font-size: 12px; font-weight: 700; color: #2b4b65; line-height: 1.3; }
    .est-option-sub { font-size: 9px; color: rgba(43,75,101,0.5); margin-top: 2px; }
    .est-option-right { display: flex; align-items: baseline; flex-shrink: 0; }
    .est-price-num { font-family: Arial, sans-serif; font-size: 14px; font-weight: 700; color: #C5A059; }
    .est-price-yen { font-size: 11px; font-weight: 700; color: #C5A059; margin-left: 1px; }
    .est-price-tilde { font-size: 12px; font-weight: 700; color: #C5A059; width: 14px; text-align: center; display: inline-block; }
    .est-price-tax { font-size: 9px; color: rgba(43,75,101,0.6); }
    .est-option-note-footer { margin-top: 12px; font-size: 10px; color: rgba(43,75,101,0.6); line-height: 1.6; }

    /* サブ質問（石塔数） */
    #est-sub-stones-wrap { max-height: 0; overflow: hidden; opacity: 0; transition: max-height 0.85s cubic-bezier(0.16,1,0.3,1), opacity 0.85s cubic-bezier(0.16,1,0.3,1), margin 0.85s cubic-bezier(0.16,1,0.3,1); margin-top: 0; }
    #est-sub-stones-wrap.open { max-height: 300px; opacity: 1; margin-top: 16px; }
    .est-sub-question-inner { margin-left: 34px; padding-top: 4px; }
    .est-sub-question-label { font-size: 13px; font-weight: 700; color: #2b4b65; margin-bottom: 10px; padding-left: 2px; }

    /* 見積もり結果 */
    .est-result2 { margin-top: 40px; }
    .est-result-card2 { background: #FDFBF7; border: 1.5px solid #C5A059; border-radius: 18px; padding: 24px 20px; box-shadow: 0 4px 12px rgba(197,160,89,0.12); }
    #est-result.result-active .est-result-card2 { animation: resultGlowPulse 1.4s ease-out 1; }
    .est-result-title { text-align: center; font-size: 14px; font-weight: 900; color: #2b4b65; letter-spacing: 0.15em; margin-bottom: 12px; }
    .est-result-amount-wrap { text-align: center; margin-bottom: 16px; }
    .est-result-main-row { display: flex; align-items: baseline; justify-content: center; gap: 2px; margin-bottom: 4px; }
    .est-result-num { font-family: Arial, sans-serif; font-size: 52px; font-weight: 700; color: #2b4b65; letter-spacing: -0.02em; line-height: 1; }
    @media (min-width: 768px) { .est-result-num { font-size: 64px; } }
    .est-result-unit { font-size: 20px; font-weight: 700; color: #2b4b65; }
    .est-result-tax { font-size: 14px; color: #C5A059; font-weight: 700; margin-top: 4px; }
    .est-dash-wrap { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 6px; }
    .est-dash-bar { display: inline-block; width: 28px; height: 4px; background: #2b4b65; border-radius: 2px; opacity: 0.25; }
    .est-breakdown-box { background: #fff; border: 1.5px solid #C5A059; border-radius: 12px; padding: 16px; margin: 0 auto 14px; max-width: 420px; font-size: 13px; min-height: 48px; }
    .est-result-note { max-width: 420px; margin: 0 auto; display: flex; flex-direction: column; gap: 8px; }
    .est-result-note-item { background: #FDFBF7; border: 1px solid rgba(197,160,89,0.2); border-radius: 10px; padding: 10px 14px; }
    .est-result-note-item p { font-size: 12px; color: rgba(43,75,101,0.9); line-height: 1.8; display: flex; align-items: flex-start; gap: 6px; font-weight: 500; }
    .est-diamond { color: #C5A059; font-weight: 700; flex-shrink: 0; margin-top: 1px; }

    /* 要相談 */
    .est-consult-area { text-align: center; padding: 8px 0; }
    .est-consult-icon { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: #fff; border: 1px solid rgba(197,160,89,0.3); color: #C5A059; margin-bottom: 14px; box-shadow: 0 2px 8px rgba(197,160,89,0.1); }
    .est-consult-title { font-family: 'Noto Serif JP', serif; font-size: 18px; font-weight: 700; color: #C5A059; letter-spacing: 0.1em; line-height: 1.7; margin-bottom: 18px; }
    .est-consult-box { background: #fff; border-radius: 12px; border-top: 4px solid #C5A059; padding: 18px; max-width: 420px; margin: 0 auto; text-align: left; box-shadow: 0 2px 8px rgba(43,75,101,0.05); }
    .est-consult-box-title { font-size: 12px; font-weight: 700; color: #C5A059; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid #f0f0f0; display: flex; align-items: center; gap: 6px; }
    .est-consult-msg { font-size: 13px; color: rgba(43,75,101,0.9); line-height: 1.9; font-weight: 500; }

    @keyframes estIconZoom { from { transform: scale(0.85); opacity: 0; } to { transform: scale(1); opacity: 1; } }
    @keyframes estFadeUpMsg { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
    .anim-icon { animation: estIconZoom 2.0s cubic-bezier(0.25,1,0.5,1) forwards; }
    .anim-msg-1 { animation: estFadeUpMsg 1.0s cubic-bezier(0.25,1,0.5,1) 0.15s forwards; opacity: 0; }

    @keyframes estFluffyFadeUp { from { opacity: 0; filter: blur(2px); transform: translateY(5px); } to { opacity: 1; filter: blur(0); transform: translateY(0); } }
    .est-anim-row { animation: estFluffyFadeUp 0.5s ease forwards; }
/* 石塔数カードの中央寄せ・改行防止 */
.est-stones-cards .est-card2-inline {
  justify-content: center;
  text-align: center;
  gap: 4px;
  min-height: 48px;
}
.est-stones-cards .est-card-name-sm {
  font-size: 15px;
  white-space: nowrap;
}
.est-stones-cards .est-check-icon2 {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%) scale(0.5) rotate(-10deg);
  opacity: 0;
}
.est-stones-cards .est-card2:has(input:checked) .est-check-icon2 {
  transform: translateY(-50%) scale(1) rotate(0deg);
  opacity: 1;
}

/* ============================================================
   サービスアコーディオン専用CSS
   ============================================================ */

:root {
  --gold: #C5A059;
  --gold-text: #C5A059;
  --gold-soft: rgba(197,160,89,0.10);
  --gold-mid: rgba(197,160,89,0.22);
  --gold-border: rgba(197,160,89,0.24);
  --navy: #2b4b65;
  --navy-soft: rgba(43,75,101,0.06);
  --bg: #FDFBF7;
  --white: #fff;
  --text: #2b4b65;
  --text-soft: rgba(43,75,101,0.84);
  --text-light: rgba(43,75,101,0.70);
  --shadow: 0 4px 18px rgba(43,75,101,0.06);
  --shadow-open: 0 12px 36px rgba(43,75,101,0.12), 0 3px 12px rgba(197,160,89,0.08);
}

/* 本番埋め込み用：外側余白 */
.service-section.service-accordion-embed {
  max-width: 860px;
  margin: 0 auto;
  padding: 0;
  font-family: 'Noto Serif JP', serif;
  color: var(--text);
}

/* サービス内画像だけ整える */
.service-section img {
  display: block;
  max-width: 100%;
}

/* 導入文 */
.service-section .section-lead {
  max-width: 560px;
  margin: -4px auto 12px;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(43,75,101,0.76);
  text-align: center;
}

.service-section .tap-guide-wrap {
  text-align: center;
  margin-bottom: 22px;
}

.service-section .tap-guide {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  max-width: 100%;
  font-size: 11px;
  line-height: 1.6;
  color: rgba(43,75,101,0.75);
  background: rgba(197,160,89,0.08);
  border: 1px solid rgba(197,160,89,0.2);
  padding: 6px 12px;
  border-radius: 20px;
  letter-spacing: 0.03em;
}

.service-section .tap-guide svg {
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .service-section .section-lead {
    font-size: 14px;
  }

  .service-section .tap-guide {
    font-size: 12px;
    padding: 6px 16px;
  }
}

/* カード一覧 */
.service-section .service-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* カード本体 */
.service-section .service-card {
  position: relative;
  overflow: hidden;
  background: var(--white);
  border: 1.5px solid var(--gold-border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  transition:
    transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1),
    border-color 0.45s var(--ease),
    box-shadow 0.45s var(--ease),
    background 0.45s var(--ease);
  will-change: transform;
}

.service-section .service-card.open {
  border-color: rgba(197,160,89,0.72);
  box-shadow: var(--shadow-open);
  transform: none;
}

.service-section .service-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: var(--gold);
  opacity: 0.88;
  z-index: 2;
  transform: scaleY(1);
  transform-origin: bottom center;
  transition: transform 0.13s cubic-bezier(0.4,0,0.2,1) 0.13s;
}

.service-section .service-card.navy-line::before {
  background: var(--navy);
}

.service-section .service-card.open::before {
  transform: scaleY(0);
  transition: transform 0.18s cubic-bezier(0.4,0,0.2,1) 0s;
}

.service-section .service-card::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 8px;
  background-color: var(--gold);
  background-image:
    linear-gradient(
      to bottom,
      transparent 0,
      transparent 2px,
      rgba(255,255,255,0.58) 2px,
      rgba(255,255,255,0.58) 3px,
      transparent 3px,
      transparent 5px,
      rgba(255,255,255,0.42) 5px,
      rgba(255,255,255,0.42) 6.5px,
      transparent 6.5px
    );
  z-index: 2;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 3px 8px rgba(197,160,89,0.12);
  transition: width 0.16s cubic-bezier(0.4,0,0.2,1) 0s;
}

.service-section .service-card.navy-line::after {
  background-color: var(--navy);
  background-image:
    linear-gradient(
      to bottom,
      transparent 0,
      transparent 2px,
      rgba(255,255,255,0.51) 2px,
      rgba(255,255,255,0.51) 3px,
      transparent 3px,
      transparent 5px,
      rgba(255,255,255,0.35) 5px,
      rgba(255,255,255,0.35) 6.5px,
      transparent 6.5px
    );
  box-shadow: 0 3px 8px rgba(43,75,101,0.12);
}

@media (hover: hover) and (min-width: 768px) {
  .service-section .service-card:hover::before {
    transform: scaleY(0);
    transition: transform 0.13s cubic-bezier(0.4,0,0.2,1) 0s;
  }

  .service-section .service-card:hover::after {
    width: 100%;
    transition: width 0.16s cubic-bezier(0.4,0,0.2,1) 0.13s;
  }

  .service-section .service-card:hover {
    transform: translateY(-3px);
    border-color: rgba(197,160,89,0.52);
    box-shadow:
      0 10px 25px rgba(43,75,101,0.08),
      0 3px 10px rgba(197,160,89,0.06);
  }

  .service-section .service-card.open:hover {
    transform: translateY(-2px);
    border-color: rgba(197,160,89,0.72);
    box-shadow:
      0 12px 36px rgba(43,75,101,0.12),
      0 3px 12px rgba(197,160,89,0.08);
  }
}

@media (max-width: 767px) {
  .service-section .service-card::after {
    display: none;
  }
}

/* カードヘッダー */
.service-section .service-card-header {
  position: relative;
  width: 100%;
  border: none;
  background: transparent;
  padding: 18px 16px 18px 18px;
  display: grid;
  grid-template-columns: 72px 1fr 34px;
  gap: 12px;
  align-items: center;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.35s ease;
}

@media (min-width: 768px) {
  .service-section .service-card-header {
    grid-template-columns: 86px 1fr 38px;
    gap: 18px;
    padding: 22px 24px;
  }
}

.service-section .service-card-header:focus-visible {
  outline: 3px solid rgba(197,160,89,0.35);
  outline-offset: -3px;
}

/* 丸アイコン */
.service-section .service-icon {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 1.5px solid rgba(197,160,89,0.55);
  outline: 1px solid rgba(197,160,89,0.18);
  outline-offset: 5px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
  transition:
    background 0.35s ease,
    border-color 0.35s ease,
    outline-color 0.35s ease,
    box-shadow 0.35s ease;
}

@media (min-width: 768px) {
  .service-section .service-icon {
    width: 72px;
    height: 72px;
  }
}

.service-section .service-icon img {
  width: 31px;
  height: 31px;
  object-fit: contain;
  position: relative;
  z-index: 2;
  filter: brightness(0) saturate(100%) invert(58%) sepia(45%) saturate(900%) hue-rotate(5deg) brightness(88%) contrast(95%);
  transition: transform 0.35s ease, filter 0.35s ease;
}

@media (min-width: 768px) {
  .service-section .service-icon img {
    width: 39px;
    height: 39px;
  }
}

.service-section .service-card.open .service-icon {
  background: #fff;
  border-color: var(--gold-text);
  outline-color: rgba(197,160,89,0.42);
  box-shadow: 0 0 0 5px rgba(197,160,89,0.14);
}

.service-section .service-card.open .service-icon img {
  transform: scale(1.04);
}

/* カード本文側 */
.service-section .card-main {
  min-width: 0;
}

.service-section .label-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px 6px;
  margin-bottom: 4px;
}

.service-section .label-en {
  font-family: Arial, sans-serif;
  font-size: 9px;
  letter-spacing: 0.22em;
  color: var(--gold-text);
  line-height: 1;
  margin-right: 2px;
}

.service-section .badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.service-section .badge.gold {
  background: var(--gold);
  color: #fff;
}

.service-section .badge.navy {
  background: var(--navy);
  color: #fff;
}

.service-section .badge.outline {
  background: #fff;
  color: var(--gold-text);
  border: 1px solid rgba(197,160,89,0.55);
  box-shadow:
    0 2px 6px rgba(197,160,89,0.06),
    inset 0 1px 0 rgba(255,255,255,0.9);
  font-weight: 700;
}

.service-section .badge-sub-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.service-section .badge-sub-row .badge {
  flex-shrink: 0;
}

@media (max-width: 767px) {
  .service-section .badge-sub-row {
    flex-basis: 100%;
    margin-top: 1px;
  }
}

.service-section .card-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--navy);
  line-height: 1.5;
  margin-bottom: 5px;
}

@media (min-width: 768px) {
  .service-section .card-title {
    font-size: 18px;
  }
}

/* 金額プレビュー */
.service-section .price-preview {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 12px;
  color: var(--text-soft);
  line-height: 1.5;
  margin-bottom: 8px;
}

.service-section .price-preview strong {
  font-family: Arial, sans-serif;
  color: var(--navy);
  font-size: 18px;
  letter-spacing: -0.02em;
}

.service-section .price-preview .price-nowrap {
  white-space: nowrap;
}

.service-section .price-preview .tax-inline {
  font-size: 11px;
  color: var(--text-soft);
  margin-left: 3px;
}

.service-section .price-preview .gold-text {
  color: var(--gold-text);
  font-weight: 700;
  font-size: 13px;
}

@media (max-width: 360px) {
  .service-section .price-preview {
    font-size: 11px;
  }

  .service-section .price-preview strong {
    font-size: 17px;
  }

  .service-section .price-preview .tax-inline {
    font-size: 10px;
    margin-left: 2px;
  }
}

/* タグ */
.service-section .summary-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 7px;
}

.service-section .tag {
  display: inline-flex;
  align-items: center;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 10px;
  line-height: 1;
  color: rgba(43,75,101,0.78);
  background: rgba(197,160,89,0.08);
  border: 1px solid rgba(197,160,89,0.16);
  border-radius: 4px;
  padding: 5px 7px;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .service-section .summary-tags .tag:nth-child(n+5) {
    display: none;
  }
}

.service-section .recommend {
  font-size: 11px;
  color: var(--text-light);
  line-height: 1.7;
}

.service-section .recommend::before {
  content: "◎ ";
  color: var(--gold-text);
}

/* 詳細・料金を見る */
.service-section .card-action-text {
  display: inline-flex;
  align-items: center;
  margin-top: 9px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 10.5px;
  font-weight: 500;
  color: rgba(197,160,89,0.88);
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
}

.service-section .card-action-text::after {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-left: 6px;
  border-right: 1.2px solid rgba(197,160,89,0.88);
  border-bottom: 1.2px solid rgba(197,160,89,0.88);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.service-section .service-card.open .card-action-text {
  color: var(--text-light);
}

.service-section .service-card.open .card-action-text::after {
  transform: rotate(225deg) translate(-2px, -2px);
  border-color: var(--text-light);
}

/* 開閉ボタン */
.service-section .toggle-btn {
  justify-self: end;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid rgba(197,160,89,0.34);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.32s ease,
    border-color 0.32s ease,
    transform 0.32s ease,
    box-shadow 0.32s ease;
}

.service-section .toggle-icon {
  position: relative;
  width: 13px;
  height: 13px;
}

.service-section .toggle-icon::before,
.service-section .toggle-icon::after {
  content: "";
  position: absolute;
  background: var(--gold);
  border-radius: 999px;
  transition:
    background 0.32s ease,
    opacity 0.32s ease,
    transform 0.32s ease;
}

.service-section .toggle-icon::before {
  width: 13px;
  height: 2px;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}

.service-section .toggle-icon::after {
  width: 2px;
  height: 13px;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
}

.service-section .service-card.open .toggle-btn {
  background: var(--gold);
  border-color: var(--gold-text);
  transform: rotate(180deg);
}

.service-section .service-card.open .toggle-icon::before {
  background: #fff;
}

.service-section .service-card.open .toggle-icon::after {
  opacity: 0;
  transform: translateX(-50%) scaleY(0);
  background: #fff;
}

@media (hover: hover) and (min-width: 768px) {
  .service-section .service-card:hover .toggle-btn {
    border-color: rgba(197,160,89,0.65);
    box-shadow: 0 0 0 5px rgba(197,160,89,0.08);
    transform: scale(1.08);
  }

  .service-section .service-card.open:hover .toggle-btn {
    transform: rotate(180deg) scale(1.08);
    box-shadow: 0 0 0 5px rgba(197,160,89,0.10);
  }
}

/* アコーディオン本体 */
.service-section .service-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.55s var(--ease);
}

.service-section .service-card.open .service-body {
  grid-template-rows: 1fr;
}

.service-section .service-body-inner {
  overflow: hidden;
}

.service-section .service-body-content {
  padding: 0 18px 24px 18px;
  border-top: 1px solid rgba(197,160,89,0.18);
}

@media (min-width: 768px) {
  .service-section .service-body-content {
    padding: 0 26px 30px 26px;
  }
}

/* 価格カード */
.service-section .price-card {
  background: #fff;
  border: 1px solid rgba(197,160,89,0.24);
  border-radius: 14px;
  padding: 18px 16px 18px 18px;
  margin: 20px 0 14px;
  box-shadow: 0 2px 10px rgba(43,75,101,0.04);
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) {
  .service-section .price-card {
    padding: 22px 22px 22px 24px;
  }
}

.service-section .price-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: rgba(197,160,89,0.58);
}

.service-section .price-card-label {
  font-family: Arial, sans-serif;
  font-size: 10px;
  letter-spacing: 0.24em;
  color: var(--gold-text);
  margin-bottom: 5px;
}

.service-section .price-card-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 5px;
}

.service-section .price-card-label-row .price-card-label {
  margin-bottom: 0;
}

.service-section .annual-saving-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 9px;
  border-radius: 999px;
  background: #fff;
  color: var(--gold-text);
  border: 1px solid rgba(197,160,89,0.55);
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.03em;
  white-space: nowrap;
  box-shadow:
    0 2px 6px rgba(197,160,89,0.06),
    inset 0 1px 0 rgba(255,255,255,0.9);
}

@media (max-width: 380px) {
  .service-section .annual-saving-badge {
    font-size: 9px;
    padding: 4px 7px;
  }
}

.service-section .price-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
  letter-spacing: 0.04em;
}

.service-section .price-display {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 4px;
}

.service-section .price-main {
  font-family: Arial, sans-serif;
  font-size: 34px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
  letter-spacing: -0.02em;
}

.service-section .yen {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
}

.service-section .tax-inline-price {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 12px;
  color: var(--navy);
  font-weight: 700;
  margin-left: 6px;
  white-space: nowrap;
}

@media (max-width: 360px) {
  .service-section .tax-inline-price {
    font-size: 11px;
    margin-left: 4px;
  }
}

/* Before After */
.service-section .photo-row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 18px 0 20px;
}

.service-section .photo-row::after {
  content: "➡";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255,253,248,0.96);
  border: 1px solid rgba(197,160,89,0.42);
  color: var(--gold-text);
  font-family: Arial, 'Noto Sans JP', sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  box-shadow:
    0 3px 10px rgba(43,75,101,0.10),
    inset 0 1px 0 rgba(255,255,255,0.9);
}

@media (min-width: 768px) {
  .service-section .photo-row {
    gap: 16px;
  }

  .service-section .photo-row::after {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }
}

.service-section .photo-box {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(197,160,89,0.05);
  border: 1px dashed rgba(197,160,89,0.34);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.service-section .photo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-section .photo-label {
  position: absolute;
  top: 8px;
  left: 8px;
  font-family: Arial, sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1;
  padding: 5px 8px;
  border-radius: 5px;
}

.service-section .photo-label.before {
  background: rgba(255,255,255,0.88);
  color: var(--navy);
  border: 1px solid rgba(43,75,101,0.14);
}

.service-section .photo-label.after {
  background: var(--gold);
  color: #fff;
}

/* テキスト・リスト */
.service-section .included-heading {
  margin-top: 18px;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.06em;
}

.service-section .check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 10px;
  padding-left: 0;
}

.service-section .check-list li {
  display: flex;
  gap: 9px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-soft);
}

.service-section .check-list li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
  margin-top: 9px;
}

.service-section .note {
  margin-top: 16px;
  padding: 13px 14px;
  background: rgba(197,160,89,0.06);
  border-left: none;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.9;
  color: var(--text-soft);
}

.service-section .note strong {
  color: var(--navy);
}

.service-section .note.plan-caution {
  border-left: 3px solid rgba(43,75,101,0.78);
  border-radius: 6px 10px 10px 6px;
}

.service-section .plan-summary {
  margin: 10px 0 8px;
  font-size: 13px;
  line-height: 1.9;
  color: var(--text-soft);
}

.service-section .plan-note {
  margin: 0 0 12px;
  font-size: 11.5px;
  line-height: 1.8;
  color: var(--text-light);
}

/* 小見出し・料金行 */
.service-section .subsection {
  margin-top: 18px;
}

.service-section .subsection.subsection-spaced {
  margin-top: 34px;
}

.service-section .subsection-title,
.service-section .menu-heading {
  position: relative;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding: 0 0 9px 14px;
  border-bottom: 1px solid rgba(197,160,89,0.42);
}

.service-section .subsection-title::before,
.service-section .menu-heading::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 0.50em;
  width: 6px;
  height: 6px;
  background: var(--gold);
  transform: rotate(45deg);
  opacity: 0.82;
  box-shadow: 0 0 0 3px rgba(197,160,89,0.08);
}

.service-section .subsection-title.title-additional {
  padding-left: 26px;
}

.service-section .subsection-title.title-additional::before {
  content: "+";
  box-sizing: border-box;
  position: absolute;
  left: 0;
  top: 0.15em;
  width: 18px;
  height: 18px;
  border: 1.4px solid rgba(197,160,89,0.85);
  border-radius: 50%;
  background: transparent;
  color: var(--gold);
  transform: none;
  opacity: 1;
  box-shadow: none;
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-section .subsection-lead {
  margin: 8px 0 12px;
  font-size: 12px;
  line-height: 1.8;
  color: var(--text-soft);
}

.service-section .subsection-title .jp,
.service-section .menu-heading .jp {
  font-size: 14px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.06em;
  line-height: 1.5;
}

.service-section .subsection-title .en,
.service-section .menu-heading .en {
  font-family: Arial, sans-serif;
  font-size: 9px;
  letter-spacing: 0.20em;
  color: rgba(43,75,101,0.58);
  line-height: 1;
  white-space: nowrap;
}

@media (max-width: 420px) {
  .service-section .subsection-title,
  .service-section .menu-heading {
    align-items: flex-start;
  }

  .service-section .subsection-title .en,
  .service-section .menu-heading .en {
    font-size: 8px;
    letter-spacing: 0.16em;
    padding-top: 5px;
  }
}

.service-section .fee-list {
  border-top: 1px solid rgba(197,160,89,0.14);
}

.service-section .subsection-title + .fee-list,
.service-section .menu-heading + .fee-list {
  border-top: none;
}

.service-section .fee-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(197,160,89,0.14);
}

.service-section .fee-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.6;
  margin: 0;
}

.service-section .fee-desc {
  font-size: 11px;
  color: var(--text-light);
  line-height: 1.7;
  margin-top: 2px;
}

.service-section .fee-price {
  flex-shrink: 0;
  text-align: right;
  font-family: Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.4;
  white-space: nowrap;
  margin: 0;
}

.service-section .fee-price small {
  display: block;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 10px;
  font-weight: 400;
  color: var(--text-light);
  letter-spacing: 0;
  line-height: 1.35;
}

.service-section .fee-consult {
  font-family: 'Noto Serif JP', serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-soft);
  white-space: nowrap;
  margin: 0;
}

/* 吹き出し */
.service-section .card-note-wrap {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.service-section .card-note-wrap.illust-right {
  flex-direction: row;
}

.service-section .card-note-wrap.illust-left {
  flex-direction: row;
}

.service-section .card-note-bubble {
  position: relative;
  flex: 1;
  min-width: 0;
  padding: 14px 16px;
  border-radius: 16px;
  background:
    radial-gradient(circle at 18% 18%, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0) 34%),
    linear-gradient(135deg, #fffdf8 0%, #fbf6ec 54%, #f7efe3 100%);
  border: 1px solid rgba(197,160,89,0.24);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.86),
    0 4px 14px rgba(43,75,101,0.04);
}

.service-section .card-note-bubble p {
  position: relative;
  z-index: 2;
  font-size: 12px;
  line-height: 1.95;
  color: var(--text-soft);
  text-align: center;
  margin: 0;
}

.service-section .card-note-bubble .note-line {
  display: block;
}

.service-section .card-note-wrap.illust-right .card-note-bubble::after {
  content: "";
  position: absolute;
  right: -7px;
  bottom: 18px;
  width: 14px;
  height: 14px;
  background: #f7efe3;
  border-top: 1px solid rgba(197,160,89,0.22);
  border-right: 1px solid rgba(197,160,89,0.22);
  transform: rotate(45deg);
}

.service-section .card-note-wrap.illust-left .card-note-bubble::before {
  content: "";
  position: absolute;
  left: -7px;
  bottom: 18px;
  width: 14px;
  height: 14px;
  background: #fffdf8;
  border-left: 1px solid rgba(197,160,89,0.22);
  border-bottom: 1px solid rgba(197,160,89,0.22);
  transform: rotate(45deg);
}

.service-section .note-illust {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  object-fit: contain;
  pointer-events: none;
  margin-bottom: 4px;
}

@media (max-width: 480px) {
  .service-section .card-note-wrap {
    gap: 8px;
    margin-top: 20px;
  }

  .service-section .card-note-bubble {
    padding: 13px 12px;
  }

  .service-section .card-note-bubble p {
    font-size: 12px;
    line-height: 2;
  }

  .service-section .note-illust {
    flex-basis: 42px;
    width: 42px;
    height: 42px;
    margin-bottom: 4px;
  }

  .service-section .card-note-wrap.illust-right .card-note-bubble::after {
    right: -6px;
    bottom: 17px;
    width: 12px;
    height: 12px;
  }

  .service-section .card-note-wrap.illust-left .card-note-bubble::before {
    left: -6px;
    bottom: 17px;
    width: 12px;
    height: 12px;
  }
}

/* 墓石クリーニングカード内調整 */
.service-section #card-polish .subsection {
  margin-top: 20px;
}

.service-section #card-polish .subsection.subsection-spaced {
  margin-top: 36px;
}

.service-section #card-polish .subsection-title {
  margin-bottom: 8px;
  padding-bottom: 7px;
}

.service-section #card-polish .subsection-lead {
  margin: 6px 0 8px;
}

.service-section #card-polish .fee-row {
  padding: 10px 0;
}

.service-section #card-polish .coating-card {
  margin-top: 28px;
}

/* 年間カード余白 */
.service-section #card-visit .annual-card {
  margin-top: 28px;
  margin-bottom: 36px;
}

/* 清掃のみカード余白 */
.service-section #card-clean .price-card + .subsection {
  margin-top: 36px;
}

/* セットプラン */
.service-section #card-set .card-title {
  margin-bottom: 11px;
}

.service-section .set-group-title {
  margin: 22px 0 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--gold-text);
  letter-spacing: 0.08em;
  text-align: center;
}

.service-section .set-group-title::before,
.service-section .set-group-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(197,160,89,0.22);
}

.service-section .set-card {
  background: #fff;
  border: 1px solid rgba(197,160,89,0.22);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 14px;
}

.service-section .set-card-head {
  padding: 16px 15px 12px;
  border-bottom: 1px solid rgba(197,160,89,0.12);
  text-align: center;
}

.service-section .combo-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
}

.service-section .combo-unit {
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-section .combo-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(197,160,89,0.32);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-section .combo-icon img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(58%) sepia(45%) saturate(900%) hue-rotate(5deg) brightness(88%) contrast(95%);
}

.service-section .combo-plus {
  font-family: Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--gold-text);
  line-height: 1;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .service-section .combo-icon {
    width: 38px;
    height: 38px;
  }

  .service-section .combo-icon img {
    width: 23px;
    height: 23px;
  }
}

.service-section .set-card-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.6;
  margin: 0;
}

.service-section .set-card-desc-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.service-section .set-card-desc {
  font-size: 11px;
  color: var(--text-light);
  line-height: 1.7;
  margin: 0;
}

.service-section .set-saving {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 10px;
  font-weight: 700;
  background: #fff;
  color: var(--gold-text);
  border: 1px solid rgba(197,160,89,0.55);
  box-shadow:
    0 2px 6px rgba(197,160,89,0.06),
    inset 0 1px 0 rgba(255,255,255,0.9);
  border-radius: 999px;
  padding: 3px 8px;
  white-space: nowrap;
}

.service-section .set-card-subtext {
  margin-top: 8px;
  font-size: 11.5px;
  line-height: 1.8;
  color: var(--text-light);
}

.service-section .set-card-price {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 14px 15px 15px;
  background: rgba(197,160,89,0.05);
  text-align: center;
}

.service-section .set-price-primary {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  line-height: 1;
}

.service-section .set-price-main {
  font-family: Arial, sans-serif;
  font-size: 30px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
  letter-spacing: -0.02em;
}

.service-section .set-tax {
  display: block;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 11px;
  color: var(--text-light);
  line-height: 1.4;
  margin: 0;
}

/* おすすめセット */
.service-section #card-set .set-card-featured {
  position: relative;
  border-color: rgba(197,160,89,0.62);
  background:
    linear-gradient(180deg, rgba(197,160,89,0.024), rgba(255,255,255,1) 36%);
  box-shadow:
    0 5px 16px rgba(43,75,101,0.065),
    0 2px 8px rgba(197,160,89,0.07);
}

.service-section #card-set .set-card-featured::before {
  content: "おすすめセット";
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 27px;
  padding: 0 12px;
  border-radius: 11px 0 9px 0;
  background: var(--gold);
  color: #fff;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
  box-shadow:
    0 2px 6px rgba(197,160,89,0.16),
    inset 0 -1px 0 rgba(255,255,255,0.14);
}

.service-section #card-set .set-card-featured .set-card-head {
  padding-top: 41px;
}

.service-section #card-set .set-card-featured .set-card-name {
  font-size: 14px;
  color: var(--navy);
}

.service-section #card-set .set-card-featured .set-card-price {
  background:
    linear-gradient(180deg, rgba(197,160,89,0.04), rgba(253,251,247,0.84));
}

/* スマホ最適化 */
@media (max-width: 390px) {
  .service-section .service-card-header {
    grid-template-columns: 62px minmax(0, 1fr) 30px;
    gap: 10px;
    padding: 18px 12px 18px 16px;
  }

  .service-section .service-icon {
    width: 52px;
    height: 52px;
    outline-offset: 4px;
  }

  .service-section .service-icon img {
    width: 28px;
    height: 28px;
  }

  .service-section .toggle-btn {
    width: 30px;
    height: 30px;
  }

  .service-section #card-clean .label-en {
    flex-basis: 100%;
    margin-bottom: 1px;
  }

  .service-section #card-clean .badge {
    font-size: 8.5px;
    padding: 4px 7px;
  }

  .service-section #card-clean .card-title {
    font-size: 15px;
    letter-spacing: 0.02em;
    white-space: nowrap;
  }

  .service-section #card-set .price-preview {
    line-height: 1.5;
  }

  .service-section #card-set .price-preview .gold-text {
    font-size: 12.5px;
  }

  .service-section .card-note-wrap {
    gap: 6px;
  }

  .service-section .note-illust {
    flex-basis: 34px;
    width: 34px;
    height: 34px;
  }

  .service-section .card-note-bubble {
    padding: 11px 9px;
    border-radius: 14px;
  }

  .service-section .card-note-bubble p {
    font-size: 10.8px;
    line-height: 1.85;
    letter-spacing: 0;
  }

  .service-section .card-note-wrap.illust-right .card-note-bubble::after {
    right: -5px;
    width: 10px;
    height: 10px;
  }

  .service-section .card-note-wrap.illust-left .card-note-bubble::before {
    left: -5px;
    width: 10px;
    height: 10px;
  }

  .service-section #card-set .set-card-subtext {
    font-size: 11px;
  }

  .service-section #card-set .set-card-featured::before {
    height: 26px;
    padding: 0 11px;
    font-size: 9.5px;
    border-radius: 10px 0 8px 0;
  }

  .service-section #card-set .set-card-featured .set-card-head {
    padding-top: 40px;
  }

  .service-section #card-set .set-card-featured .set-card-name {
    font-size: 13px;
  }
}

@media (max-width: 360px) {
  .service-section .card-note-bubble p {
    font-size: 10.5px;
    line-height: 1.85;
  }

  .service-section .card-note-bubble {
    padding: 10px 8px;
  }

  .service-section .note-illust {
    flex-basis: 32px;
    width: 32px;
    height: 32px;
  }
}

/* アコーディオン上部バッジ：細すぎず、太すぎない調整 */
.service-section .service-card-header .badge.outline {
  outline: none !important;
  border: 1px solid rgba(197,160,89,0.42) !important;
  background: #fff;
  color: var(--gold-text);
  box-shadow:
    0 2px 6px rgba(197,160,89,0.04),
    inset 0 1px 0 rgba(255,255,255,0.9) !important;
}

/* =========================================================
   新ハンバーガーメニュー：右スライド和紙パネル
   本番組み込み用
========================================================= */

/* メニュー全体 */
#mobile-menu.yui-mobile-menu {
  position:fixed;
  inset:0;
  z-index:45;
  opacity:0;
  visibility:hidden;
  transition:
    opacity .35s ease,
    visibility 0s linear .35s;
  overflow:hidden;
}

#mobile-menu.yui-mobile-menu.is-open {
  opacity:1;
  visibility:visible;
  transition:
    opacity .35s ease,
    visibility 0s linear 0s;
}

/* 左側背景 */
.yui-mobile-menu .menu-backdrop {
  position:absolute;
  inset:0;
  z-index:1;
  cursor:pointer;
  background:rgba(20,28,34,.30);
  opacity:0;
  transition:opacity .42s ease;
}

.yui-mobile-menu.is-open .menu-backdrop {
  opacity:1;
}

.yui-mobile-menu .menu-backdrop::after {
  content:"";
  position:absolute;
  top:76px;
  right:68%;
  bottom:0;
  width:92px;
  background:
    linear-gradient(
      90deg,
      transparent 0%,
      rgba(253,251,247,.05) 34%,
      rgba(253,251,247,.14) 72%,
      rgba(253,251,247,.20) 100%
    );
  opacity:.34;
}

/* 右側パネル */
.yui-menu-panel {
  position:absolute;
  top:0;
  right:0;
  bottom:0;
  width:68%;
  max-width:330px;
  min-width:250px;
  z-index:2;

  border-left:1px solid rgba(197,160,89,.22);
  border-radius:66px 0 0 0;

  background:linear-gradient(180deg,#fffaf1 0%,#f3ead8 100%);

  box-shadow:
    -7px 0 22px rgba(20,28,34,.08),
    inset 1px 0 0 rgba(255,255,255,.52),
    inset 10px 0 22px rgba(255,250,240,.16);

  overflow:hidden;

  transform:translateX(104%);
  transition:transform .46s cubic-bezier(.22,1,.36,1);
}

.yui-mobile-menu.is-open .yui-menu-panel {
  transform:translateX(0);
}

/* 和紙の地紋 */
.yui-menu-panel::before {
  content:"";
  position:absolute;
  inset:0;
  z-index:1;
  pointer-events:none;
  background-image:
    repeating-linear-gradient(
      45deg,
      rgba(197,160,89,.040) 0,
      rgba(197,160,89,.040) 1px,
      transparent 1px,
      transparent 4px
    ),
    repeating-linear-gradient(
      -45deg,
      rgba(43,75,101,.028) 0,
      rgba(43,75,101,.028) 1px,
      transparent 1px,
      transparent 5px
    );
  opacity:.92;
}

/* パネル左端のなじませ影 */
.yui-menu-panel::after {
  content:"";
  position:absolute;
  top:74px;
  left:0;
  bottom:0;
  width:22px;
  z-index:1;
  pointer-events:none;
  background:
    linear-gradient(
      90deg,
      rgba(20,28,34,.030) 0%,
      rgba(20,28,34,.014) 42%,
      rgba(255,250,240,.08) 76%,
      transparent 100%
    );
}

/* パネル内 */
.yui-panel-inner {
  position:relative;
  z-index:3;
  width:100%;
  height:100%;
  padding:96px 24px 18px;
  display:flex;
  flex-direction:column;
  align-items:stretch;
}

/* メニューリンク */
.yui-panel-inner .menu-links {
  display:flex;
  flex-direction:column;
  align-items:center;
}

.yui-panel-inner .menu-link {
  width:100%;
  display:block;
  text-align:center;
  text-decoration:none;
  color:#2b4b65;
  padding:0;
}

.yui-panel-inner .menu-link .en {
  display:block;
  font-size:7px;
  line-height:1;
  letter-spacing:.32em;
  color:rgba(197,160,89,.74);
  font-weight:600;
  margin-bottom:8px;
}

.yui-panel-inner .menu-link .jp {
  display:block;
  font-size:15px;
  line-height:1.35;
  letter-spacing:.18em;
  color:rgba(43,75,101,.96);
  font-weight:500;
}

/* メニュー項目間の線 */
.menu-item-line {
  position:relative;
  width:100%;
  height:7px;
  margin:15px auto 15px;
}

.menu-item-line::before {
  content:"";
  position:absolute;
  left:0;
  right:0;
  top:50%;
  height:1px;
  transform:translateY(-50%);
  background:
    linear-gradient(
      90deg,
      transparent 0%,
      rgba(197,160,89,.08) 16%,
      rgba(197,160,89,.20) 50%,
      rgba(197,160,89,.08) 84%,
      transparent 100%
    );
}

.menu-item-line::after {
  content:"";
  position:absolute;
  left:50%;
  top:50%;
  width:42%;
  height:2px;
  transform:translate(-50%,-50%);
  border-radius:999px;
  background:
    linear-gradient(
      90deg,
      transparent 0%,
      rgba(197,160,89,.18) 18%,
      rgba(197,160,89,.34) 50%,
      rgba(197,160,89,.18) 82%,
      transparent 100%
    );
}

/* メニュー下の区切り線 */
.menu-divider {
  position:relative;
  width:100%;
  height:8px;
  margin:17px auto 40px;
}

.menu-divider::before {
  content:"";
  position:absolute;
  left:0;
  right:0;
  top:50%;
  height:1px;
  transform:translateY(-50%);
  background:
    linear-gradient(
      90deg,
      transparent 0%,
      rgba(197,160,89,.10) 14%,
      rgba(197,160,89,.26) 50%,
      rgba(197,160,89,.10) 86%,
      transparent 100%
    );
}

.menu-divider::after {
  content:"";
  position:absolute;
  left:50%;
  top:50%;
  width:52%;
  height:2px;
  transform:translate(-50%,-50%);
  border-radius:999px;
  background:
    linear-gradient(
      90deg,
      transparent 0%,
      rgba(197,160,89,.20) 18%,
      rgba(197,160,89,.42) 50%,
      rgba(197,160,89,.20) 82%,
      transparent 100%
    );
}

/* CTA */
.yui-panel-inner .menu-contact {
  text-align:center;
  border-top:none;
  padding-top:0;
}

.menu-contact-note {
  margin-bottom:16px;
  text-align:center;
  line-height:1.7;
  font-weight:500;
}

.menu-contact-note .note-main {
  display:block;
  font-size:10px;
  letter-spacing:.16em;
  color:rgba(43,75,101,.58);
}

.menu-contact-note .note-free {
  display:inline-block;
  margin-top:3px;
  font-size:13px;
  letter-spacing:.14em;
  color:rgba(197,160,89,.88);
  font-weight:700;
  border-bottom:1px solid rgba(197,160,89,.28);
  padding-bottom:2px;
}

.menu-tel,
.menu-line {
  width:100%;
  min-height:42px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  font-family:"Noto Serif JP",serif;
  font-size:13px;
  font-weight:600;
  letter-spacing:.08em;
}

.menu-tel {
  position:relative;
  appearance:none;
  -webkit-appearance:none;
  cursor:pointer;
  overflow:visible;
  background:rgba(255,255,255,.92);
  color:#2b4b65;
  border:1px solid rgba(43,75,101,.28);
  margin-bottom:12px;
  box-shadow:
    0 6px 16px rgba(20,28,34,.05),
    inset 0 1px 0 rgba(255,255,255,.9);
}

.menu-line {
  background:#06C755;
  color:#fff;
  box-shadow:
    0 10px 24px rgba(6,199,85,.26),
    0 0 0 1px rgba(255,255,255,.22) inset;
}

.menu-btn-icon {
  width:17px;
  height:17px;
  flex:0 0 auto;
  margin-right:8px;
  display:inline-block;
}

.menu-tel .menu-btn-icon {
  color:#2b4b65;
}

.menu-line .menu-btn-icon {
  width:21px;
  height:21px;
  color:#fff;
  margin-right:8px;
}

/* フッター結び・ロゴ */
.menu-footer {
  margin-top:34px;
  text-align:center;
  color:rgba(197,160,89,.56);
}

.menu-knot-row {
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  gap:12px;
  margin-bottom:12px;
}

.menu-knot-row::before,
.menu-knot-row::after {
  content:"";
  flex:1;
  width:auto;
  height:1px;
  min-width:0;
}

.menu-knot-row::before {
  background:
    linear-gradient(
      90deg,
      transparent 0%,
      rgba(197,160,89,.24) 34%,
      rgba(197,160,89,.54) 100%
    );
}

.menu-knot-row::after {
  background:
    linear-gradient(
      90deg,
      rgba(197,160,89,.54) 0%,
      rgba(197,160,89,.24) 66%,
      transparent 100%
    );
}

.menu-knot {
  width:44px;
  height:22px;
  opacity:.86;
}

.menu-logo-img {
  display:block;
  width:62px;
  height:auto;
  margin:0 auto;
  filter:
    brightness(0)
    saturate(100%)
    invert(24%)
    sepia(21%)
    saturate(2053%)
    hue-rotate(168deg)
    brightness(94%)
    contrast(88%);
  opacity:.72;
}

/* スマホ通常 */
@media (max-width:768px) {
  .yui-menu-panel {
    width:68%;
    max-width:330px;
    min-width:250px;
  }

  .yui-mobile-menu .menu-backdrop::after {
    right:68%;
  }

  .yui-panel-inner {
    padding:
      clamp(96px, 12.2dvh, 112px)
      24px
      clamp(14px, 2.4dvh, 22px);
    justify-content:flex-start;
  }

  .yui-panel-inner .menu-link .en {
    font-size:7px;
    margin-bottom:8px;
    letter-spacing:.32em;
  }

  .yui-panel-inner .menu-link .jp {
    font-size:15px;
    line-height:1.35;
    letter-spacing:.18em;
  }

  .menu-item-line {
    height:7px;
    margin:
      clamp(13px, 1.9dvh, 18px)
      auto
      clamp(13px, 1.9dvh, 18px);
  }

  .menu-divider {
    height:8px;
    margin:
      clamp(15px, 2dvh, 20px)
      auto
      clamp(24px, 3.1dvh, 32px);
  }

  .menu-contact-note {
    margin-bottom:clamp(15px, 2dvh, 18px);
    line-height:1.65;
  }

  .menu-contact-note .note-main {
    font-size:clamp(9px, 1.45dvh, 10px);
  }

  .menu-contact-note .note-free {
    font-size:clamp(12px, 1.75dvh, 13px);
    margin-top:2px;
  }

  .menu-tel,
  .menu-line {
    min-height:clamp(40px, 5.2dvh, 42px);
    font-size:clamp(12px, 1.65dvh, 13px);
  }

  .menu-tel {
    margin-bottom:clamp(10px, 1.5dvh, 12px);
  }

  .menu-line .menu-btn-icon {
    width:clamp(19px, 2.8dvh, 21px);
    height:clamp(19px, 2.8dvh, 21px);
  }

  .menu-footer {
    margin-top:clamp(26px, 3.6dvh, 34px);
  }

  .menu-knot-row {
    width:100%;
    gap:clamp(9px, 1.8dvh, 12px);
    margin-bottom:clamp(8px, 1.6dvh, 12px);
  }

  .menu-knot {
    width:clamp(38px, 5.8dvh, 44px);
    height:clamp(19px, 2.9dvh, 22px);
  }

  .menu-logo-img {
    width:clamp(56px, 8.4dvh, 62px);
    opacity:.72;
  }
}

/* 狭幅 */
@media (max-width:360px) {
  .yui-menu-panel {
    width:70%;
    min-width:248px;
  }

  .yui-panel-inner {
    padding-left:20px;
    padding-right:20px;
  }

  .yui-panel-inner .menu-link .jp {
    font-size:13.5px;
    letter-spacing:.14em;
  }

  .yui-panel-inner .menu-link .en {
    letter-spacing:.26em;
  }

  .menu-logo-img {
    width:56px;
  }
}

/* 低めスマホ */
@media (max-width:768px) and (max-height:740px) {
  .yui-panel-inner {
    padding:92px 22px 10px;
    justify-content:flex-start;
  }

  .yui-panel-inner .menu-link .en {
    font-size:6.6px;
    margin-bottom:6px;
    letter-spacing:.27em;
  }

  .yui-panel-inner .menu-link .jp {
    font-size:14px;
    line-height:1.28;
    letter-spacing:.15em;
  }

  .menu-item-line {
    height:6px;
    margin:11px auto 11px;
  }

  .menu-divider {
    height:7px;
    margin:13px auto 22px;
  }

  .menu-contact-note {
    margin-bottom:13px;
    line-height:1.55;
  }

  .menu-contact-note .note-main {
    font-size:8.8px;
  }

  .menu-contact-note .note-free {
    font-size:11.8px;
    margin-top:1px;
    padding-bottom:1px;
  }

  .menu-tel,
  .menu-line {
    min-height:38px;
    font-size:11.8px;
  }

  .menu-tel {
    margin-bottom:9px;
  }

  .menu-line .menu-btn-icon {
    width:18px;
    height:18px;
  }

  .menu-footer {
    margin-top:22px;
  }

  .menu-knot-row {
    width:100%;
    gap:8px;
    margin-bottom:8px;
  }

  .menu-knot {
    width:36px;
    height:18px;
  }

  .menu-logo-img {
    width:52px;
  }
}

/* iPhone SE系 */
@media (max-width:768px) and (max-height:680px) {
  .yui-panel-inner {
    padding:76px 20px 8px;
    justify-content:flex-start;
  }

  .yui-panel-inner .menu-link .en {
    font-size:5.8px;
    margin-bottom:4px;
  }

  .yui-panel-inner .menu-link .jp {
    font-size:12.5px;
    line-height:1.2;
  }

  .menu-item-line {
    height:5px;
    margin:6px auto 6px;
  }

  .menu-divider {
    height:5px;
    margin:8px auto 12px;
  }

  .menu-contact-note {
    margin-bottom:8px;
  }

  .menu-contact-note .note-main {
    font-size:8px;
  }

  .menu-contact-note .note-free {
    font-size:10.8px;
  }

  .menu-tel,
  .menu-line {
    min-height:34px;
    font-size:11px;
  }

  .menu-tel {
    margin-bottom:7px;
  }

  .menu-line .menu-btn-icon {
    width:17px;
    height:17px;
  }

  .menu-footer {
    margin-top:12px;
  }

  .menu-knot-row {
    margin-bottom:5px;
  }

  .menu-knot {
    width:32px;
    height:16px;
  }

  .menu-logo-img {
    width:48px;
  }
}

/* PC */
@media (min-width:769px) {
  .yui-menu-panel {
    width:330px;
  }

  .yui-mobile-menu .menu-backdrop::after {
    right:330px;
  }

  .yui-panel-inner {
    padding:88px 22px 18px;
  }

  .yui-panel-inner .menu-link .en {
    font-size:6.5px;
    margin-bottom:6px;
  }

  .yui-panel-inner .menu-link .jp {
    font-size:14px;
    line-height:1.3;
  }

  .menu-item-line {
    height:7px;
    margin:14px auto 14px;
  }

  .menu-divider {
    height:8px;
    margin:19px auto 24px;
  }

  .menu-contact-note {
    margin-bottom:16px;
  }

  .menu-contact-note .note-main {
    font-size:9px;
  }

  .menu-contact-note .note-free {
    font-size:12px;
    margin-top:2px;
  }

  .menu-tel,
  .menu-line {
    min-height:40px;
    font-size:12.5px;
  }

  .menu-tel {
    margin-bottom:11px;
  }

  .menu-line .menu-btn-icon {
    width:19px;
    height:19px;
  }

  .menu-footer {
    margin-top:26px;
  }

  .menu-knot-row {
    width:100%;
    gap:10px;
    margin-bottom:10px;
  }

  .menu-knot {
    width:40px;
    height:20px;
  }

  .menu-logo-img {
    width:58px;
    opacity:.72;
  }
}

/* PC hover */
@media (hover:hover) and (pointer:fine) {
  .yui-panel-inner .menu-link {
    transition:
      transform .32s ease,
      opacity .32s ease;
  }

  .yui-panel-inner .menu-link .en,
  .yui-panel-inner .menu-link .jp {
    transition:
      color .32s ease,
      transform .32s ease,
      letter-spacing .32s ease;
  }

  .menu-item-line::before {
    opacity:.78;
    transition:
      opacity .34s ease,
      background .34s ease;
  }

  .menu-item-line::after {
    opacity:.82;
    transition:
      width .36s ease,
      opacity .36s ease,
      background .36s ease;
  }

  .yui-panel-inner .menu-link:hover {
    transform:translateY(-1px);
  }

  .yui-panel-inner .menu-link:hover .en {
    color:rgba(197,160,89,.95);
    transform:translateY(-1px);
  }

  .yui-panel-inner .menu-link:hover .jp {
    color:#1f3a52;
    letter-spacing:.20em;
    transform:translateY(-1px);
  }

  .yui-panel-inner .menu-link:hover + .menu-item-line::before {
    opacity:1;
  }

  .yui-panel-inner .menu-link:hover + .menu-item-line::after {
    width:58%;
    opacity:1;
    background:
      linear-gradient(
        90deg,
        transparent 0%,
        rgba(197,160,89,.22) 18%,
        rgba(197,160,89,.50) 50%,
        rgba(197,160,89,.22) 82%,
        transparent 100%
      );
  }

  .menu-tel:hover,
  .menu-line:hover {
    transform:translateY(-1px);
    filter:brightness(1.02);
  }
}

/* 開閉アニメーション */
.yui-panel-inner .menu-links > *,
.yui-panel-inner .menu-divider,
.yui-panel-inner .menu-contact-note,
.yui-panel-inner .menu-tel,
.yui-panel-inner .menu-line,
.yui-panel-inner .menu-footer {
  opacity:0;
  transform:translateY(22px);
  transition:
    opacity .58s ease,
    transform .58s cubic-bezier(.22,1,.36,1);
  will-change:opacity, transform;
}

.yui-mobile-menu.is-open .yui-panel-inner .menu-links > *,
.yui-mobile-menu.is-open .yui-panel-inner .menu-divider,
.yui-mobile-menu.is-open .yui-panel-inner .menu-contact-note,
.yui-mobile-menu.is-open .yui-panel-inner .menu-tel,
.yui-mobile-menu.is-open .yui-panel-inner .menu-line,
.yui-mobile-menu.is-open .yui-panel-inner .menu-footer {
  opacity:1;
  transform:translateY(0);
}

.yui-mobile-menu:not(.is-open) .yui-panel-inner .menu-links > *,
.yui-mobile-menu:not(.is-open) .yui-panel-inner .menu-divider,
.yui-mobile-menu:not(.is-open) .yui-panel-inner .menu-contact-note,
.yui-mobile-menu:not(.is-open) .yui-panel-inner .menu-tel,
.yui-mobile-menu:not(.is-open) .yui-panel-inner .menu-line,
.yui-mobile-menu:not(.is-open) .yui-panel-inner .menu-footer {
  transition-delay:0s !important;
}

/* 上から順番に表示 */
.yui-mobile-menu.is-open .yui-panel-inner .menu-links > :nth-child(1) {
  transition-delay:.12s;
}

.yui-mobile-menu.is-open .yui-panel-inner .menu-links > :nth-child(2) {
  transition-delay:.17s;
}

.yui-mobile-menu.is-open .yui-panel-inner .menu-links > :nth-child(3) {
  transition-delay:.22s;
}

.yui-mobile-menu.is-open .yui-panel-inner .menu-links > :nth-child(4) {
  transition-delay:.27s;
}

.yui-mobile-menu.is-open .yui-panel-inner .menu-links > :nth-child(5) {
  transition-delay:.32s;
}

.yui-mobile-menu.is-open .yui-panel-inner .menu-links > :nth-child(6) {
  transition-delay:.37s;
}

.yui-mobile-menu.is-open .yui-panel-inner .menu-links > :nth-child(7) {
  transition-delay:.42s;
}

.yui-mobile-menu.is-open .yui-panel-inner .menu-links > :nth-child(8) {
  transition-delay:.47s;
}

.yui-mobile-menu.is-open .yui-panel-inner .menu-links > :nth-child(9) {
  transition-delay:.52s;
}

.yui-mobile-menu.is-open .yui-panel-inner .menu-divider {
  transition-delay:.56s;
}

.yui-mobile-menu.is-open .yui-panel-inner .menu-contact-note {
  transition-delay:.60s;
}

.yui-mobile-menu.is-open .yui-panel-inner .menu-tel {
  transition-delay:.64s;
}

.yui-mobile-menu.is-open .yui-panel-inner .menu-line {
  transition-delay:.68s;
}

.yui-mobile-menu.is-open .yui-panel-inner .menu-footer {
  transition-delay:.72s;
}

.menu-tel:active,
.menu-line:active {
  transform:translateY(0) scale(.97);
}

@media (prefers-reduced-motion:reduce) {
  #mobile-menu,
  .yui-menu-panel,
  .yui-panel-inner .menu-links > *,
  .yui-panel-inner .menu-divider,
  .yui-panel-inner .menu-contact-note,
  .yui-panel-inner .menu-tel,
  .yui-panel-inner .menu-line,
  .yui-panel-inner .menu-footer {
    transition:none !important;
  }
}

/* =========================================================
   かんたんお見積もり下 CTAボタン PC幅調整
   PCで電話ボタンが細く潰れないようにする
========================================================= */
@media (min-width: 640px) {
  #est-tel-btn {
    width: 180px;
    flex: 0 0 180px;
    white-space: nowrap;
  }

  #est-tel-btn + a {
    width: 180px !important;
    flex: 0 0 180px;
    white-space: nowrap;
  }
}

/* =========================================================
   オープニング中のハンバーガー表示防止
   スマホで白フェード時にメニューが透けて見える問題の対策
========================================================= */

/* オープニング画面は必ず最前面にする */
#opening-screen {
  position: fixed !important;
  inset: 0 !important;
  z-index: 99999 !important;
}

/* オープニング中はヘッダー・ハンバーガー・固定CTAを完全に隠す */
body.is-opening #menu-btn,
body.is-opening #main-header,
body.is-opening #bottom-cta,
body.is-opening #pc-side-cta,
body.is-opening .scroll-indicator,
body.is-opening .to-top-btn {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
/* =========================================================
   ご予約までのステップ：左アイコン型タイムライン
   本番組み込み用
========================================================= */

.reservation-steps {
  position: relative;
  z-index: 2;
  max-width: 640px;
  margin: 0 auto;
}

.reservation-step {
  position: relative;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 16px;
  padding-bottom: 36px;
}

.reservation-step:last-child {
  padding-bottom: 0;
}

.reservation-step__icon-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.reservation-step:not(:last-child) .reservation-step__icon-wrap::after {
  content: "";
  position: absolute;
  top: 58px;
  bottom: -36px;
  left: 50%;
  width: 1px;
  transform: translateX(-50%);
  background: linear-gradient(
    to bottom,
    rgba(197, 160, 89, 0.38),
    rgba(197, 160, 89, 0.10)
  );
  z-index: 1;
}

.reservation-step__icon-circle {
  position: relative;
  z-index: 2;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(197, 160, 89, 0.34);
  box-shadow:
    0 0 0 5px #ffffff,
    0 4px 14px rgba(43, 75, 101, 0.055);
  display: flex;
  align-items: center;
  justify-content: center;
}

.reservation-step__icon-circle img {
  display: block;
  width: 34px;
  height: 34px;
  object-fit: contain;
  filter: none;
}

.reservation-step__content {
  min-width: 0;
  padding-top: 2px;
}

.reservation-step__head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 8px;
  min-width: 0;
}

.reservation-step__num {
  flex-shrink: 0;
  color: rgba(197, 160, 89, 0.82);
  font-family: Arial, sans-serif;
  font-size: 26px;
  line-height: 1;
  font-weight: 300;
  letter-spacing: 0.02em;
}

.reservation-step__bar {
  flex-shrink: 0;
  width: 2px;
  height: 12px;
  border-radius: 999px;
  background: rgba(197, 160, 89, 0.28);
}

.reservation-step__title {
  margin: 0;
  color: #2b4b65;
  font-size: 14.5px;
  line-height: 1.55;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.reservation-step__text {
  margin: 0;
  color: rgba(43, 75, 101, 0.56);
  font-size: 13px;
  line-height: 2.05;
}

/* アイコン個別微調整 */
.reservation-step:nth-child(1) .reservation-step__icon-circle img {
  width: 34px;
  height: 34px;
  transform: translateX(0);
}

.reservation-step:nth-child(2) .reservation-step__icon-circle img {
  width: 32px;
  height: 32px;
  transform: translateX(2px);
}

.reservation-step:nth-child(3) .reservation-step__icon-circle img {
  width: 31px;
  height: 31px;
  transform: translateX(0);
}

.reservation-step:nth-child(4) .reservation-step__icon-circle img {
  width: 31px;
  height: 31px;
  transform: translateX(0);
}

/* PC */
@media (min-width: 768px) {
  .reservation-step {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 22px;
    padding-bottom: 46px;
  }

  .reservation-step:not(:last-child) .reservation-step__icon-wrap::after {
  top: 62px;
  bottom: -46px;
}

  .reservation-step__icon-circle {
  width: 66px;
  height: 66px;
  transform: translateY(-8px);
}

  .reservation-step__content {
    padding-top: 5px;
  }

  .reservation-step__head {
    gap: 11px;
  }

  .reservation-step__num {
    font-size: 36px;
  }

  .reservation-step__bar {
    height: 14px;
  }

  .reservation-step__title {
    font-size: 17px;
    letter-spacing: 0.05em;
  }

  .reservation-step__text {
    font-size: 14px;
  }

  .reservation-step:nth-child(1) .reservation-step__icon-circle img {
    width: 42px;
    height: 42px;
    transform: translateX(0);
  }

  .reservation-step:nth-child(2) .reservation-step__icon-circle img {
    width: 39px;
    height: 39px;
    transform: translateX(3px);
  }

  .reservation-step:nth-child(3) .reservation-step__icon-circle img {
    width: 38px;
    height: 38px;
    transform: translateX(0);
  }

  .reservation-step:nth-child(4) .reservation-step__icon-circle img {
    width: 38px;
    height: 38px;
    transform: translateX(0);
  }
}

/* スマホ時：アイコン位置は今の見え方を維持し、縦線だけ長めに */
@media (max-width: 767px) {
  .reservation-step {
    align-items: flex-start;
  }

  .reservation-step__icon-wrap {
    transform: translateY(-13px);
    align-self: stretch;
  }

  .reservation-step:not(:last-child) .reservation-step__icon-wrap::after {
    top: 58px;
    bottom: -52px;
  }

  .reservation-step__num {
    line-height: 0.95;
  }
}

/* 小さめスマホ */
@media (max-width: 374px) {
  .reservation-step {
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 12px;
  }

  .reservation-step__icon-circle {
    width: 48px;
    height: 48px;
  }

  .reservation-step:nth-child(1) .reservation-step__icon-circle img {
    width: 30px;
    height: 30px;
  }

  .reservation-step:nth-child(2) .reservation-step__icon-circle img {
    width: 29px;
    height: 29px;
    transform: translateX(2px);
  }

  .reservation-step:nth-child(3) .reservation-step__icon-circle img {
    width: 28px;
    height: 28px;
  }

  .reservation-step:nth-child(4) .reservation-step__icon-circle img {
    width: 28px;
    height: 28px;
  }

  .reservation-step__icon-wrap {
    transform: translateY(-13px);
    align-self: stretch;
  }

  .reservation-step:not(:last-child) .reservation-step__icon-wrap::after {
    top: 52px;
    bottom: -52px;
  }

  .reservation-step__num {
    font-size: 24px;
  }

  .reservation-step__title {
    font-size: 13px;
    letter-spacing: 0;
  }

  .reservation-step__text {
    font-size: 12.5px;
  }

  .reservation-step__head {
    gap: 7px;
  }
}
/* ご予約ステップ：スマホ時だけ左右の余白を少し詰める */
@media (max-width: 767px) {
  .reservation-steps {
    max-width: none;
    margin-left: -8px;
    margin-right: -7px;
    transform: none;
  }
}
/* =========================================================
   ご予約ステップ：スマホ幅に合わせて文字サイズを自然に調整
========================================================= */
@media (max-width: 767px) {
  .reservation-step__head {
    flex-wrap: nowrap;
    gap: clamp(5px, 1.7vw, 8px);
  }

  .reservation-step__num {
    font-size: clamp(23px, 6.5vw, 26px);
    line-height: 0.95;
  }

  .reservation-step__bar {
    height: clamp(10px, 3vw, 12px);
  }

  .reservation-step__title {
    white-space: nowrap;
    font-size: clamp(12px, 3.45vw, 14px);
    line-height: 1.45;
    letter-spacing: 0;
  }

  .reservation-step__text {
    font-size: clamp(12.2px, 3.35vw, 13px);
    line-height: 2.05;
  }
}

/* 02だけ少し長いので、スマホ幅に合わせてさらに微調整 */
@media (max-width: 767px) {
  .reservation-step:nth-child(2) .reservation-step__title {
    font-size: clamp(11.5px, 3.25vw, 13.2px);
    letter-spacing: -0.02em;
  }
}
/* =========================================================
   ご予約ステップ：01〜04の数字を少し小さく調整
========================================================= */

/* スマホ */
@media (max-width: 767px) {
  .reservation-step__num {
    font-size: clamp(21px, 5.8vw, 24px);
    line-height: 1;
    letter-spacing: 0.01em;
  }

  .reservation-step__bar {
    height: 10px;
  }
}

/* PC・タブレット */
@media (min-width: 768px) {
  .reservation-step__num {
    font-size: 32px;
    line-height: 1;
  }

  .reservation-step__bar {
    height: 12px;
  }
}
/* =========================================================
   見積ツール下CTA：PCのみフッターCTAと同じ見た目に調整
   ※HTML構造・電話番号ポップアップ処理は変更しない
   ※スマホ表示には影響させない
========================================================= */
@media (min-width: 768px) {
  /* CTA全体は現在の配置を活かす */
  #est-tel-btn {
    width: auto !important;
    flex: 0 0 auto !important;
    white-space: nowrap !important;

    background: #ffffff !important;
    border: none !important;
    border-radius: 9999px !important;

    padding: 0.875rem 1.5rem !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15) !important;

    color: #2b4b65 !important;
    gap: 0.5rem !important;

    transition-property: background-color, color, box-shadow, transform !important;
    transition-duration: 150ms !important;
  }

  #est-tel-btn:hover {
    background: #f3f4f6 !important;
    transform: none !important;
  }

  #est-tel-btn:active {
    transform: scale(0.95) !important;
  }

  #est-tel-btn svg {
    width: 18px !important;
    height: 18px !important;
    color: #2b4b65 !important;
  }

  #est-tel-btn > span {
    color: #2b4b65 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    letter-spacing: 0.1em !important;
  }

  /* 見積ツール下のLINEボタン */
  #est-tel-btn + a {
    width: auto !important;
    flex: 1 1 0% !important;
    white-space: nowrap !important;

    border-radius: 9999px !important;
    padding: 0.875rem 1.5rem !important;

    gap: 0.5rem !important;
    box-shadow: 0 4px 15px rgba(6,199,85,0.3) !important;
  }

  #est-tel-btn + a svg {
    width: 18px !important;
    height: 18px !important;
  }

  #est-tel-btn + a span {
    font-size: 14px !important;
    font-weight: 700 !important;
    letter-spacing: 0.1em !important;
  }
}
/* =========================================================
   見積ツール下CTA・フッターCTA：微調整
   ・見積ツール下の電話ボタンに紺色枠線を追加
   ・電話ボタンもLINEと同じようにhover時に少し上へ動かす
========================================================= */

/* PCの見積ツール下：電話ボタンに紺色の枠線を追加 */
@media (min-width: 768px) {
  #est-tel-btn {
    border: 2px solid #2b4b65 !important;
  }
}

/* PC・マウス操作時のみ、電話ボタンをhoverで少し浮かせる */
@media (hover: hover) and (pointer: fine) {
  /* 見積ツール下の電話ボタン */
  #est-tel-btn:hover {
    background: #f3f4f6 !important;
    transform: translateY(-4px) !important;
  }

  /* フッターCONTACTエリアの電話ボタン */
  section.bg-\[\#2b4b65\] .tel-trigger {
    transition-property: background-color, color, box-shadow, transform !important;
    transition-duration: 150ms !important;
  }

  section.bg-\[\#2b4b65\] .tel-trigger:hover {
    transform: translateY(-4px) !important;
  }
}
/* =========================================================
   見積ツール下CTA：PCで電話ボタンとLINEボタンの横幅を揃える
   ※電話番号ポップアップ処理には触らない
========================================================= */
@media (min-width: 768px) {
  #est-tel-btn,
  #est-tel-btn + a {
    width: 180px !important;
    max-width: 180px !important;
    flex: 0 0 180px !important;
    box-sizing: border-box !important;
  }

  #est-tel-btn + a {
    justify-content: center !important;
  }
}

/* =========================================================
   PC右側固定CTA：hover時に中のアイコンだけ少し動かす
   ※外側ボタンの表示・電話ポップアップ位置には影響させない
========================================================= */
@keyframes pcSideIconNudge {
  0% {
    transform: translateY(0) scale(1) rotate(0deg);
  }
  45% {
    transform: translateY(-3px) scale(1.13) rotate(-5deg);
  }
  70% {
    transform: translateY(1px) scale(1.06) rotate(3deg);
  }
  100% {
    transform: translateY(0) scale(1.08) rotate(0deg);
  }
}

@media (hover: hover) and (pointer: fine) {
  #pc-side-cta button > svg,
  #pc-side-cta a > svg {
    transform-origin: center;
    will-change: transform;
  }

  #pc-side-cta button:hover > svg,
  #pc-side-cta a:hover > svg {
    animation: pcSideIconNudge 0.55s ease both;
  }
}

/* =========================================================
   かんたん見積もり：石塔数カードを縦並びに変更
   2基（同一区画内）などの長い文言に対応
========================================================= */

.est-stones-cards {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
}

.est-stones-cards .est-card2-inline {
  justify-content: space-between !important;
  text-align: left !important;
  min-height: 52px !important;
  padding-right: 42px !important;
}

.est-stones-cards .est-card-name-sm {
  white-space: normal !important;
  line-height: 1.45 !important;
  font-size: 14px !important;
}

.est-stones-cards .est-check-icon2 {
  position: absolute !important;
  right: 12px !important;
  top: 50% !important;
  transform: translateY(-50%) scale(0.5) rotate(-10deg) !important;
}

.est-stones-cards .est-card2:has(input:checked) .est-check-icon2 {
  transform: translateY(-50%) scale(1) rotate(0deg) !important;
}

/* =========================================================
   スマホ下部固定CTA：LINEボタンの色味調整
   ・背景は淡いグリーン
   ・文字は深いグリーン
   ・アイコンはLINE公式グリーン
========================================================= */

#bottom-cta a[href*="lin.ee"] {
  background: linear-gradient(180deg, #F4FCF7 0%, #EAF8F0 100%) !important;
  box-shadow:
    inset 0 0 0 1px rgba(6, 199, 85, 0.16),
    0 2px 8px rgba(6, 199, 85, 0.08) !important;
}

#bottom-cta a[href*="lin.ee"] span {
  color: #007A4D !important;
}

#bottom-cta a[href*="lin.ee"] svg {
  color: #06C755 !important;
}

#bottom-cta a[href*="lin.ee"]:hover {
  background: linear-gradient(180deg, #EFFAF4 0%, #E2F5EA 100%) !important;
}

#bottom-cta a[href*="lin.ee"]:active {
  background: #DFF5E8 !important;
  transform: scale(0.98);
}

/* =========================================================
   文字の読みやすさ調整
   ・本文や補足文が薄すぎる箇所を少し濃くする
   ・上品さは残しつつ、スマホでも読みやすくする
========================================================= */

/* お手紙線香セクション：本文・補足・注意書き */
#tegami .text-\[\#2b4b65\]\/50 {
  color: rgba(43, 75, 101, 0.66) !important;
}

#tegami .text-\[\#2b4b65\]\/55 {
  color: rgba(43, 75, 101, 0.68) !important;
}

#tegami .text-\[\#2b4b65\]\/60 {
  color: rgba(43, 75, 101, 0.72) !important;
}

#tegami .text-\[\#2b4b65\]\/70 {
  color: rgba(43, 75, 101, 0.78) !important;
}

/* ご予約までのステップ：本文を読みやすく */
.reservation-step__text {
  color: rgba(43, 75, 101, 0.72) !important;
}

.reservation-step__title {
  color: #2b4b65 !important;
}

/* ご依頼の流れ・作業内容まわりの薄い補足文 */
#flow .text-\[\#2b4b65\]\/50 {
  color: rgba(43, 75, 101, 0.66) !important;
}

#flow .text-\[\#2b4b65\]\/60 {
  color: rgba(43, 75, 101, 0.70) !important;
}

#flow .text-\[\#2b4b65\]\/70 {
  color: rgba(43, 75, 101, 0.76) !important;
}

#flow .text-\[\#2b4b65\]\/80 {
  color: rgba(43, 75, 101, 0.84) !important;
}

/* ABOUT・保有資格・事業概要まわり */
#about .text-\[\#2b4b65\]\/30 {
  color: rgba(43, 75, 101, 0.50) !important;
}

#about .text-\[\#2b4b65\]\/40 {
  color: rgba(43, 75, 101, 0.56) !important;
}

#about .text-\[\#2b4b65\]\/50 {
  color: rgba(43, 75, 101, 0.64) !important;
}

#about .text-\[\#2b4b65\]\/60 {
  color: rgba(43, 75, 101, 0.72) !important;
}

#about .text-\[\#2b4b65\]\/65 {
  color: rgba(43, 75, 101, 0.74) !important;
}

#about .text-\[\#2b4b65\]\/70 {
  color: rgba(43, 75, 101, 0.78) !important;
}

/* =========================================================
   トップページ：セクション内見出しサイズの補正
   SPは20pxを維持し、PC（768px以上）は本来の26pxを確実に適用
   ========================================================= */
.home-subsection-title {
  font-size: 20px;
}

@media (min-width: 768px) {
  .home-subsection-title {
    font-size: 26px;
  }
}

/* =========================================================
   トップページ：地域別の詳しいご案内
   ・結び目は前セクションとの境界へ配置
   ・カード下は中央が濃く両端へ薄くなる区切り線
   ・PCはカード内右側へ余白を残して写真を配置
   ・SPはカード右側へ控えめな正方形写真を配置
   ・v5.5のコンパクトなカード高を基準に調整
   ・1件のときは中央、追加後はPC2列 / SP1列へ自動展開
   ========================================================= */
.home-area-guide {
  position: relative;
  padding: 34px 20px 56px;
  background: #fdfbf7;
}

.home-area-guide__top-divider {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: min(82%, 600px);
  transform: translate(-50%, -50%);
  color: #c5a059;
  pointer-events: none;
}

.home-area-guide__top-divider-line {
  flex: 1;
  height: 1px;
  background: rgba(197, 160, 89, 0.34);
}

.home-area-guide__top-divider-knot {
  display: grid;
  place-items: center;
  width: 48px;
  height: 28px;
  background: #fdfbf7;
}

.home-area-guide__top-divider-knot svg {
  width: 34px;
  height: 17px;
}

.home-area-guide__inner {
  width: min(100%, 1080px);
  margin: 0 auto;
}

.home-area-guide__header {
  max-width: 720px;
  margin: 0 auto 24px;
  text-align: center;
}

.home-area-guide__eyebrow {
  margin: 0 0 7px;
  color: #c5a059;
  font-family: Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
  line-height: 1.4;
}

.home-area-guide__title {
  margin: 0;
  color: #2b4b65;
  font-family: "Noto Serif JP", serif;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.5;
}

.home-area-guide__text {
  margin: 10px 0 0;
  color: rgba(43, 75, 101, 0.72);
  font-size: 14px;
  line-height: 1.9;
}

.home-area-guide__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.home-area-guide__list > :only-child {
  grid-column: 1 / -1;
  justify-self: center;
  width: min(100%, 650px);
}

.home-area-guide__card {
  --area-card-accent: #9ccfdf;
  --area-card-accent-deep: #5b9fb8;
  --area-card-accent-soft: #eef8fb;
  --area-card-accent-border: rgba(142, 200, 220, 0.48);
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: stretch;
  gap: 8px;
  min-height: 166px;
  padding: 12px;
  overflow: hidden;
  border: 1px solid rgba(197, 160, 89, 0.24);
  border-left: 4px solid var(--area-card-accent);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow:
    6px 7px 0 rgba(142, 200, 220, 0.14),
    0 12px 30px rgba(43, 75, 101, 0.07);
  color: #2b4b65;
  text-decoration: none;
  transition:
    transform 0.24s ease,
    box-shadow 0.24s ease,
    border-color 0.24s ease,
    border-left-color 0.24s ease;
}

.home-area-guide__info {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 17px;
  min-width: 0;
  padding: 15px 8px 15px 8px;
}

.home-area-guide__icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border: 1px solid var(--area-card-accent-border);
  border-radius: 50%;
  background: var(--area-card-accent-soft);
  color: #2b4b65;
  box-shadow: 0 6px 14px rgba(43, 75, 101, 0.06);
}

.home-area-guide__icon svg {
  width: 24px;
  height: 24px;
}

.home-area-guide__content {
  display: block;
  min-width: 0;
}

.home-area-guide__city-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.home-area-guide__city {
  color: #2b4b65;
  font-family: "Noto Serif JP", serif;
  font-size: 23px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.4;
}

.home-area-guide__badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 10px;
  border: 1px solid rgba(197, 160, 89, 0.4);
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.96);
  color: #a77d34;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
  white-space: nowrap;
}

.home-area-guide__cemeteries {
  display: block;
  margin-top: 7px;
  color: rgba(43, 75, 101, 0.72);
  font-size: 12.5px;
  line-height: 1.72;
}

.home-area-guide__cemeteries > span {
  display: block;
}

.home-area-guide__cemetery-separator {
  display: inline;
}

.home-area-guide__media {
  position: relative;
  display: block;
  align-self: center;
  width: 100%;
  height: 140px;
  min-height: 0;
  overflow: hidden;
  border-radius: 14px;
  background: #dfeef4;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.32);
}

.home-area-guide__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 52%, rgba(15, 38, 55, 0.24) 100%);
  pointer-events: none;
}

.home-area-guide__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
  transition: transform 0.45s ease;
}

.home-area-guide__action {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 7px 10px 7px 13px;
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 5px 16px rgba(15, 38, 55, 0.16);
  color: #2b4b65;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.home-area-guide__action svg {
  width: 18px;
  height: 18px;
  padding: 3px;
  border: 1px solid var(--area-card-accent-border);
  border-radius: 50%;
  color: var(--area-card-accent-deep);
  background: rgba(255, 255, 255, 0.86);
  transition: transform 0.24s ease;
}

.home-area-guide__bottom-divider {
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 3;
  width: min(80%, 600px);
  height: 1.5px;
  transform: translate(-50%, 50%);
  background: linear-gradient(
    90deg,
    rgba(197, 160, 89, 0) 0%,
    rgba(197, 160, 89, 0.24) 18%,
    rgba(197, 160, 89, 0.68) 50%,
    rgba(197, 160, 89, 0.24) 82%,
    rgba(197, 160, 89, 0) 100%
  );
  pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
  .home-area-guide__card:hover {
    transform: translateY(-3px);
    border-color: rgba(197, 160, 89, 0.42);
    border-left-color: #c5a059;
    box-shadow:
      6px 7px 0 rgba(197, 160, 89, 0.12),
      0 18px 40px rgba(43, 75, 101, 0.11);
  }

  .home-area-guide__card:hover .home-area-guide__media img {
    transform: scale(1.035);
  }

  .home-area-guide__card:hover .home-area-guide__action svg {
    transform: translateX(2px);
  }
}

.home-area-guide__card:focus-visible {
  outline: 3px solid rgba(142, 200, 220, 0.4);
  outline-offset: 4px;
}

@media (max-width: 767px) {
  .home-area-guide {
    padding: 28px 14px 46px;
  }

  .home-area-guide__top-divider {
    gap: 9px;
    width: min(88%, 440px);
  }

  .home-area-guide__top-divider-knot {
    width: 42px;
    height: 25px;
  }

  .home-area-guide__top-divider-knot svg {
    width: 31px;
    height: 15.5px;
  }

  .home-area-guide__header {
    margin-bottom: 18px;
  }

  .home-area-guide__eyebrow {
    margin-bottom: 6px;
    font-size: 10px;
  }

  .home-area-guide__title {
    font-size: 24px;
    letter-spacing: 0.06em;
  }

  .home-area-guide__text {
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.75;
  }

  .home-area-guide__list {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .home-area-guide__list > :only-child {
    grid-column: auto;
    width: 100%;
  }

  .home-area-guide__card {
    grid-template-columns: minmax(0, 1fr) 98px;
    align-items: start;
    gap: 10px;
    min-height: 0;
    padding: 13px 11px 0 10px;
    border-left-width: 3px;
    border-radius: 15px;
    box-shadow:
      4px 5px 0 rgba(142, 200, 220, 0.13),
      0 9px 22px rgba(43, 75, 101, 0.065);
  }

  .home-area-guide__info {
    grid-template-columns: 40px minmax(0, 1fr);
    align-items: start;
    align-self: stretch;
    gap: 10px;
    padding: 0;
  }

  .home-area-guide__icon {
    align-self: center;
    width: 40px;
    height: 40px;
    margin-top: 0;
    transform: translateY(-6px);
  }

  .home-area-guide__icon svg {
    width: 20px;
    height: 20px;
  }

  .home-area-guide__content {
    align-self: start;
    margin-top: 8px;
  }

  .home-area-guide__city-row {
    gap: 7px;
  }

  .home-area-guide__city {
    font-size: 20px;
  }

  .home-area-guide__badge {
    min-height: 21px;
    padding: 3px 8px;
    font-size: 9.5px;
  }

  .home-area-guide__cemeteries {
    margin-top: 5px;
    font-size: 13px;
    line-height: 1.62;
    letter-spacing: -0.025em;
  }

  .home-area-guide__cemetery-break {
    display: none;
  }

  .home-area-guide__media {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    min-height: 0;
    overflow: visible;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .home-area-guide__media::after {
    display: none;
  }

  .home-area-guide__media img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    border-radius: 14px;
    object-fit: cover;
    object-position: center 56%;
    box-shadow: 0 5px 14px rgba(43, 75, 101, 0.12);
  }

  .home-area-guide__action {
    position: static;
    justify-content: flex-end;
    min-height: 0;
    margin: 8px 0 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--area-card-accent-deep);
    font-size: 11.5px;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .home-area-guide__action svg {
    background: rgba(255, 255, 255, 0.84);
  }
}

@media (max-width: 359px) {
  .home-area-guide {
    padding-left: 12px;
    padding-right: 12px;
  }

  .home-area-guide__card {
    grid-template-columns: minmax(0, 1fr) 88px;
    gap: 8px;
    padding: 12px 9px 0 9px;
  }

  .home-area-guide__info {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 8px;
  }

  .home-area-guide__icon {
    width: 36px;
    height: 36px;
    margin-top: 0;
  }

  .home-area-guide__icon svg {
    width: 18px;
    height: 18px;
  }

  .home-area-guide__content {
    margin-top: 14px;
  }

  .home-area-guide__city {
    font-size: 18.5px;
  }

  .home-area-guide__badge {
    padding-left: 7px;
    padding-right: 7px;
    font-size: 9px;
  }

  .home-area-guide__cemeteries {
    font-size: 12px;
    line-height: 1.58;
    letter-spacing: -0.03em;
  }

  .home-area-guide__action {
    gap: 5px;
    font-size: 10.6px;
  }

  .home-area-guide__action svg {
    width: 17px;
    height: 17px;
  }
}

/* =========================================================
   v6.8 スマホ初回表示・リンク操作の安定化
   ========================================================= */

/* iPhone等でリンクを1回のタップとして扱いやすくする */
#main-header a,
.home-area-guide__card,
.company-policy-link{
  touch-action:manipulation;
}

/* PCなどhover可能な端末だけ、ポリシーリンクを薄くする */
@media (hover:hover) and (pointer:fine){
  .company-policy-link:hover{
    opacity:.7;
  }
}

/* スマホではlegal／privacyを明確な縦2行に分ける */
@media (max-width:767px){
  .company-policy-links{
    flex-direction:column !important;
    align-items:center !important;
    flex-wrap:nowrap !important;
    gap:7px !important;
  }

  .company-policy-link{
    display:inline-flex !important;
    align-items:center;
    justify-content:center;
    min-height:36px;
    width:max-content;
    max-width:100%;
    padding:6px 2px;
  }
}

/* タッチ端末ではPC向けhoverの見た目を残さない */
@media (hover:none), (pointer:coarse){
  .company-policy-link:hover{
    opacity:1 !important;
  }
}

.footer-policy-separator {
  display: inline-block;
  margin: 0 0.35em;
  color: inherit;
}



/* =========================================================
   Top PC policy links and area guide test v1
   確認用：公式トップページPC版だけの微調整
   1) 特商法・プライバシーポリシーを薄い縦線区切りへ
   2) 地域別案内の墓地名をPCだけ縦リスト化し、写真を少し縦長に見せる
   ========================================================= */

@media (min-width: 768px) {
  .company-policy-links {
    align-items: center !important;
    gap: 0 !important;
  }

  .footer-policy-separator {
    display: inline-block !important;
    width: 1px !important;
    height: 13px !important;
    margin: 0 15px !important;
    overflow: hidden !important;
    color: transparent !important;
    font-size: 0 !important;
    line-height: 0 !important;
    background: rgba(197, 160, 89, 0.42) !important;
    transform: translateY(1px);
  }

  .home-area-guide__card {
    grid-template-columns: minmax(0, 1fr) 270px !important;
    min-height: 212px !important;
    padding: 13px !important;
    gap: 12px !important;
  }

  .home-area-guide__info {
    align-items: center !important;
    padding: 12px 8px 12px 10px !important;
    gap: 16px !important;
  }

  .home-area-guide__media {
    align-self: stretch !important;
    height: auto !important;
    min-height: 176px !important;
    border-radius: 14px !important;
  }

  .home-area-guide__cemeteries {
    margin-top: 8px !important;
    font-size: 12.6px !important;
    line-height: 1.62 !important;
    letter-spacing: 0.02em !important;
  }

  .home-area-guide__cemetery-list {
    display: block !important;
  }

  .home-area-guide__cemetery-item {
    display: block !important;
  }

  .home-area-guide__cemetery-item + .home-area-guide__cemetery-item {
    margin-top: 1px !important;
  }
}

/* スマホは現状維持に近づけるため、縦リスト化せず「・」区切りの横流しに戻す */
@media (max-width: 767px) {
  .footer-policy-separator {
    display: none !important;
  }

  .home-area-guide__cemetery-list {
    display: inline !important;
  }

  .home-area-guide__cemetery-item {
    display: inline !important;
  }

  .home-area-guide__cemetery-item:not(:last-child)::after {
    content: "・";
  }
}



/* =========================================================
   Top PC area guide cemetery bullet test v2
   確認用：PC版の地域別案内だけ、墓地名リストの左に小さな薄色丸を付ける。
   スマホ版は既存の横流し表示を維持。
   ========================================================= */

@media (min-width: 768px) {
  .home-area-guide__cemetery-item {
    position: relative !important;
    display: block !important;
    padding-left: 13px !important;
  }

  .home-area-guide__cemetery-item::before {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    top: 0.86em !important;
    width: 5px !important;
    height: 5px !important;
    border-radius: 999px !important;
    background: rgba(39, 73, 104, 0.34) !important;
    transform: translateY(-50%) !important;
  }

  .home-area-guide__card--amagasaki .home-area-guide__cemetery-item::before {
    background: rgba(126, 190, 210, 0.62) !important;
  }

  .home-area-guide__card--nishinomiya .home-area-guide__cemetery-item::before {
    background: rgba(225, 150, 92, 0.48) !important;
  }
}

@media (max-width: 767px) {
  .home-area-guide__cemetery-item {
    padding-left: 0 !important;
  }

  .home-area-guide__cemetery-item::before {
    content: none !important;
  }
}



/* =========================================================
   Top PC area guide free note and badge removal v3
   採用候補：
   - PC版だけ、各カード内の「出張費無料」バッジを非表示
   - セクション見出し下に「掲載エリアは出張費無料でお伺いします」を集約
   - バッジ削除分、カードと写真の高さを少しだけ詰める
   - スマホ版は既存表示を維持
   ========================================================= */

.home-area-guide__free-note {
  display: none;
}

@media (min-width: 768px) {
  .home-area-guide__free-note {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    margin: 12px auto 0;
    padding: 5px 14px;
    border: 1px solid rgba(197, 160, 89, 0.34);
    border-radius: 999px;
    background: rgba(255, 250, 240, 0.78);
    color: #9f7936;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 1.4;
  }

  .home-area-guide__card .home-area-guide__badge {
    display: none !important;
  }

  .home-area-guide__city-row {
    margin-bottom: 8px !important;
  }

  .home-area-guide__card {
    min-height: 190px !important;
    padding: 12px !important;
  }

  .home-area-guide__info {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
  }

  .home-area-guide__media {
    min-height: 156px !important;
  }

  .home-area-guide__cemeteries {
    margin-top: 0 !important;
  }
}



/* =========================================================
   Top SP area guide cemetery inline nowrap test v4
   スマホ版の地域別案内：
   - 墓地名は横流しのまま
   - 墓地名の途中では改行しない
   - 区切り「・」は次の墓地名と一緒に折り返す
   PC版の縦リスト・丸点表示には影響させない
   ========================================================= */

@media (max-width: 767px) {
  .home-area-guide__cemeteries {
    line-height: 1.8 !important;
  }

  .home-area-guide__cemetery-list {
    display: inline !important;
  }

  .home-area-guide__cemetery-item {
    display: inline-block !important;
    white-space: nowrap !important;
    padding-left: 0 !important;
  }

  /* 以前の区切り用 after を無効化 */
  .home-area-guide__cemetery-item::after {
    content: none !important;
  }

  /* 区切り点を次の墓地名側に付け、点だけ行末に残るのを防ぐ */
  .home-area-guide__cemetery-item:not(:first-child)::before {
    content: "・" !important;
    position: static !important;
    display: inline !important;
    width: auto !important;
    height: auto !important;
    margin: 0 0.14em !important;
    border-radius: 0 !important;
    background: none !important;
    color: inherit !important;
    transform: none !important;
  }

  .home-area-guide__cemetery-item:first-child::before {
    content: none !important;
  }
}



/* =========================================================
   Top area guide mobile bullet + PC spacing fix v5
   - スマホ版：各墓地名の先頭にも点を付け、PCと同系色の丸点に統一
   - スマホ版：墓地名ごとに折り返し、名称途中で改行しない
   - PC版：地域カード右画像の縦幅を少しだけ詰め、見出し周辺の圧迫感を軽減
   ========================================================= */

@media (max-width: 767px) {
  .home-area-guide__cemeteries {
    line-height: 1.82 !important;
  }

  .home-area-guide__cemetery-list {
    display: inline !important;
  }

  .home-area-guide__cemetery-item {
    display: inline-block !important;
    white-space: nowrap !important;
    padding-left: 0 !important;
    margin-right: 0.16em !important;
  }

  .home-area-guide__cemetery-item::after {
    content: none !important;
  }

  .home-area-guide__cemetery-item::before {
    content: "" !important;
    position: static !important;
    display: inline-block !important;
    width: 5px !important;
    height: 5px !important;
    margin: 0 0.42em 0 0.06em !important;
    border-radius: 999px !important;
    vertical-align: middle !important;
    transform: translateY(-1px) !important;
    background: rgba(39, 73, 104, 0.34) !important;
  }

  .home-area-guide__card--amagasaki .home-area-guide__cemetery-item::before {
    background: rgba(126, 190, 210, 0.68) !important;
  }

  .home-area-guide__card--nishinomiya .home-area-guide__cemetery-item::before {
    background: rgba(225, 150, 92, 0.56) !important;
  }
}

@media (min-width: 768px) {
  .home-area-guide__city-row {
    margin-bottom: 4px !important;
  }

  .home-area-guide__media {
    min-height: 148px !important;
  }
}


/* =========================================================
   Top area guide final fix v6
   - スマホ：墓地名を名称単位で折り返せる flex-wrap にし、全項目の先頭にテーマカラー丸点を表示
   - スマホ：先頭項目の丸点欠落を防止
   - PC：右画像の縦幅をさらに約15%圧縮して余白バランスを調整
   - PC/SP共通：地域別案内カード内の末尾「など」を削除済み
   ========================================================= */

@media (max-width: 767px) {
  .home-area-guide__cemeteries {
    display: block !important;
    margin-top: 7px !important;
    line-height: 1.74 !important;
  }

  .home-area-guide__cemetery-list {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: baseline !important;
    gap: 0.16em 0.38em !important;
  }

  .home-area-guide__cemetery-item,
  .home-area-guide__cemetery-item:first-child,
  .home-area-guide__cemetery-item:not(:first-child) {
    display: inline-flex !important;
    align-items: center !important;
    white-space: nowrap !important;
    padding-left: 0 !important;
    margin: 0 !important;
  }

  .home-area-guide__cemetery-item::after,
  .home-area-guide__cemetery-item:first-child::after,
  .home-area-guide__cemetery-item:not(:last-child)::after {
    content: none !important;
  }

  .home-area-guide__cemetery-item::before,
  .home-area-guide__cemetery-item:first-child::before,
  .home-area-guide__cemetery-item:not(:first-child)::before {
    content: "" !important;
    position: static !important;
    display: inline-block !important;
    flex: 0 0 auto !important;
    width: 5px !important;
    height: 5px !important;
    margin: 0 0.42em 0 0.08em !important;
    border-radius: 999px !important;
    vertical-align: middle !important;
    transform: translateY(-1px) !important;
    background: rgba(39, 73, 104, 0.34) !important;
  }

  .home-area-guide__card--amagasaki .home-area-guide__cemetery-item::before,
  .home-area-guide__card--amagasaki .home-area-guide__cemetery-item:first-child::before,
  .home-area-guide__card--amagasaki .home-area-guide__cemetery-item:not(:first-child)::before {
    background: rgba(126, 190, 210, 0.82) !important;
  }

  .home-area-guide__card--nishinomiya .home-area-guide__cemetery-item::before,
  .home-area-guide__card--nishinomiya .home-area-guide__cemetery-item:first-child::before,
  .home-area-guide__card--nishinomiya .home-area-guide__cemetery-item:not(:first-child)::before {
    background: rgba(225, 150, 92, 0.76) !important;
  }
}

@media (min-width: 768px) {
  /* PC版：カード外枠はv6の高さで固定し、右画像だけ下まで伸ばす */
  .home-area-guide__card {
    min-height: 188px !important;
    height: 188px !important;
  }

  .home-area-guide__info {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
  }

  .home-area-guide__city-row {
    margin-bottom: 6px !important;
  }

  .home-area-guide__media {
    align-self: stretch !important;
    min-height: 0 !important;
    height: auto !important;
  }
}


/* =========================================================
   Top PC area guide city-title balance fix v9 (preserve accepted title position)
   ========================================================= */
@media (min-width: 768px) {
  .home-area-guide__city-row {
    transform: translateY(-4px) !important;
    margin-bottom: 10px !important;
  }
}

/* =========================================================
   Top PC area guide image equal edge spacing v12
   PC版の地域別案内カード：画像だけを調整
   上・右・下の余白を同じ数値で固定する
   カード、文字、アイコン、スマホ版は変更しない
   ========================================================= */
@media (min-width: 768px) {
  .home-area-guide__media {
    position: absolute !important;

    top: 12px !important;
    right: 12px !important;
    bottom: 12px !important;

    width: 270px !important;
    height: auto !important;
    min-height: 0 !important;

    margin: 0 !important;
    align-self: auto !important;
  }
}

/* =========================================================
   Top area guide Toyonaka 3-card final alignment v13
   - PC: 3枚目の豊中市カードを2列全体の中央へ配置
   - PC: 最後の長い墓地名だけ文字間を半分程度へ調整
   - SP: 最後の長い墓地名を2行で収め、右側CTAとの重なりを防止
   - SP: 豊中市カードだけ下余白を追加し、上下の呼吸を整える
   ========================================================= */
@media (min-width: 1024px) {
  .home-area-guide__card--toyonaka {
    grid-column: 1 / -1 !important;
    justify-self: center !important;
    width: calc(50% - 10px) !important;
  }

  .home-area-guide__card--toyonaka
  .home-area-guide__cemetery-item--long
  .home-area-guide__cemetery-label {
    letter-spacing: 0.01em !important;
  }
}

@media (max-width: 767px) {
  .home-area-guide__card--toyonaka {
    padding-bottom: 13px !important;
  }

  .home-area-guide__card--toyonaka
  .home-area-guide__cemetery-item--long {
    flex: 1 1 100% !important;
    align-items: flex-start !important;
    max-width: 100% !important;
    white-space: normal !important;
    line-height: 1.55 !important;
  }

  .home-area-guide__card--toyonaka
  .home-area-guide__cemetery-item--long::before {
    margin-top: 0.62em !important;
  }

  .home-area-guide__card--toyonaka
  .home-area-guide__cemetery-item--long
  .home-area-guide__cemetery-label {
    min-width: 0 !important;
    max-width: 100% !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    letter-spacing: -0.025em !important;
  }
}

/* 長い墓地名の改行はスマホ版だけ有効 */
.home-area-guide__cemetery-long-break {
  display: none;
}

@media (max-width: 767px) {
  .home-area-guide__cemetery-long-break {
    display: block;
  }
}

/* =========================================================
   Top area guide Toyonaka long cemetery name final polish v14
   PC版の豊中市カードだけを対象に、最後の長い墓地名を
   意図した2行表示へ整え、カード下部の余白を確保する。
   スマートフォン版・他地域カード・画像位置は変更しない。
   ========================================================= */
@media (min-width: 768px) {
  .home-area-guide__card--toyonaka {
    min-height: 203px !important;
    height: 203px !important;
  }

  .home-area-guide__card--toyonaka
  .home-area-guide__cemetery-item + .home-area-guide__cemetery-item {
    margin-top: 0 !important;
  }

  .home-area-guide__card--toyonaka
  .home-area-guide__cemetery-item--long {
    line-height: 1.36 !important;
  }

  .home-area-guide__card--toyonaka
  .home-area-guide__cemetery-long-break {
    display: block !important;
  }
}
