/* 2026-11-29 強化：オープニング、固定の案内、スクロールの動き。
   どれも「足し算」で、JavaScriptが無い・動きを減らす設定のときは元の表示のまま読める。 */

/* ---- オープニング（幕）。html.op が付いたときだけ出る ---- */
.opening { display: none; }
html.op .opening {
  display: block;
  position: fixed;
  z-index: 200;
  top: 0;
  left: 0;
  right: 0;
  height: 100svh;
  min-height: 520px;
  background: #123524;
  color: #fff;
  overflow: hidden;
  /* スクリプトが届かなくても、必ず幕が消える */
  animation: op-safe 0s 6s forwards;
}
html.op .opening.is-done { display: none; }
@keyframes op-safe { to { visibility: hidden; } }
.opening::before {
  content: "";
  position: absolute;
  inset: -20%;
  background: radial-gradient(closest-side, #2f6b4a66, #12352400 70%);
  opacity: 0;
}
.opening.is-lit::before { opacity: 1; transition: opacity 1.6s ease; }
.opening .hero-logo { text-shadow: none; }
.opening-line {
  display: block;
  width: min(220px, 46vw);
  height: 1px;
  margin: 16px auto 0;
  background: #ffffff8c;
  transform: scaleX(0);
}
.opening-frame { position: absolute; inset: clamp(14px, 2.2vw, 30px); pointer-events: none; }
.opening-frame i { position: absolute; background: #ffffff66; }
.opening-frame .of-t, .opening-frame .of-b { left: 0; right: 0; height: 1px; transform: scaleX(0); }
.opening-frame .of-t { top: 0; transform-origin: 0 50%; }
.opening-frame .of-b { bottom: 0; transform-origin: 100% 50%; }
.opening-frame .of-l, .opening-frame .of-r { top: 0; bottom: 0; width: 1px; transform: scaleY(0); }
.opening-frame .of-r { right: 0; transform-origin: 50% 0; }
.opening-frame .of-l { left: 0; transform-origin: 50% 100%; }
/* 幕の中の文字は、始まりの状態を先に決めておく（一瞬の完成形を見せない） */
html.op .opening .hero-eyebrow,
html.op .opening small,
html.op .opening .hero-service { opacity: 0; }
html.op .opening .photo-overlay-logo { clip-path: inset(0 100% 0 0); }

/* ---- 上の細い進み具合の線 ---- */
.scroll-progress {
  position: fixed;
  z-index: 95;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: #b7be8d;
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}

/* ---- 画面を進んだあとに出る案内（PCは上、スマホは下） ---- */
.quick-bar {
  position: fixed;
  z-index: 90;
  left: 0;
  right: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px clamp(18px, 4vw, 54px);
  background: #f8f7f0f2;
  color: var(--forest);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transform: translateY(-110%);
  transition: transform .5s var(--ease-out), visibility 0s .5s;
  visibility: hidden;
}
.quick-bar.is-on { transform: none; visibility: visible; transition: transform .5s var(--ease-out); }
.quick-bar-name { font: 20px/1 var(--english); letter-spacing: .06em; padding: 12px 0; }
.quick-bar nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 34px); font: 13px/1.5 var(--english); letter-spacing: .08em; }
.quick-bar nav a { padding: 12px 0; position: relative; }
.quick-bar nav a:not(.quick-bar-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: transform .4s var(--ease-out);
}
.quick-bar nav a:not(.quick-bar-cta):hover::after { transform: scaleX(1); transform-origin: 0 50%; }
.quick-bar .quick-bar-cta {
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: .08em;
  padding: 11px 22px;
  background: var(--forest);
  color: var(--paper);
  transition: background .3s ease;
}
.quick-bar .quick-bar-cta:hover { background: #285d43; }
.quick-bar a:focus-visible { outline: 3px solid #bc8541; outline-offset: 3px; }
.quick-bar nav a.quick-bar-sp { display: none; }
@media (max-width: 700px) {
  .quick-bar nav a.quick-bar-sp { display: grid; }
  .quick-bar {
    top: auto;
    bottom: 0;
    padding: 8px 10px max(8px, env(safe-area-inset-bottom));
    border-bottom: 0;
    border-top: 1px solid var(--line);
    transform: translateY(110%);
  }
  .quick-bar-name, .quick-bar nav a.quick-bar-pc { display: none; }
  .quick-bar nav { width: 100%; gap: 8px; font-family: var(--serif); letter-spacing: .04em; }
  .quick-bar nav a { flex: 1; min-height: 46px; display: grid; place-items: center; padding: 0 8px; border: 1px solid var(--forest); text-align: center; }
  .quick-bar nav a:not(.quick-bar-cta)::after { display: none; }
  .quick-bar .quick-bar-cta { flex: 1.5; padding: 0 8px; }
  .analytics-choice { transition: bottom .5s var(--ease-out); }
  body.quick-bar-on .analytics-choice { bottom: calc(70px + env(safe-area-inset-bottom)); }
  /* 下の案内に隠れないよう、いちばん下に余白を足す */
  body.has-quick-bar .site-footer { padding-bottom: 86px; }
}

/* ---- 見出しの文字を1文字ずつ ---- */
.split-word { display: inline-block; white-space: nowrap; }
.split-char { display: inline-block; }
.split-mask { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .08em; margin-bottom: -.08em; }

/* ---- 写真のひらき方 ---- */
.boost-clip { overflow: hidden; }
.option-photo, .journey-photo-wrap { overflow: hidden; }

/* ---- カーソルを乗せたときの動き ---- */
@media (hover: hover) {
  .plan-gallery-shot img, .guide-card img, .gallery-item img { transition: transform 1.2s var(--ease-out); }
  .plan-gallery-shot:hover img, .guide-card:hover img, .gallery-item:hover img { transform: scale(1.045); }
  .guide-card picture, .guide-card { overflow: hidden; }
  .plan-consult span, .option-consult span, .form-button span, .plan-option-link > span:last-child { display: inline-block; transition: transform .4s var(--ease-out); }
  .plan-consult:hover span, .option-consult:hover span, .form-button:hover span { transform: translateX(6px); }
  .plan-option-link:hover > span:last-child { transform: translateY(5px); }
  .home-overview nav a { transition: background .3s ease, color .3s ease; }
}

@media (prefers-reduced-motion: reduce) {
  .quick-bar, .quick-bar.is-on { transition: none; }
  .scroll-progress { display: none; }
}
@media print {
  .opening, .quick-bar, .scroll-progress { display: none !important; }
}
