/*
Theme Name: Youri Private Guide in Kanazawa
Theme URI:
Author: Yuri
Author URI:
Description: A calm, personal classic theme for Yuri, a private guide in Kanazawa. Converted from the original static site.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: youri-private-guide
Tags: travel, custom-menu, featured-images, translation-ready
*/

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

:root {
  /* spacing */
  --space-1: 8px;
  --space-2: 12px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --space-7: 72px;
  --space-8: 96px;
  --space-section-standard: 88px;
  --space-section-quote: 72px;
  --space-section-wide: 112px;

  --section-y: clamp(72px, 9vw, 120px);
  --section-y-tight: clamp(48px, 6vw, 84px);
  --section-y-loose: clamp(96px, 11vw, 150px);

  /* colors */
  --color-brand: #7b5a72;
  --color-accent: #5a8a99;
  --color-text: #222;
  --color-bg: #ffffff;
  --color-bg-soft: #f7f4f1;
  --color-quote: #efe7dd;
  --color-cta: #dde9ed;
  --color-card-panel: #f3e3df;
  --color-subtext: #7b5a72;
  --color-nav: #333;
  --color-muted: #666;
  --color-border: #ddd;
  --color-footer-role: #5b5b5b;
  --img-tone: brightness(0.92) contrast(0.95) saturate(0.92);

  --header-offset: 84px;
  --footer-offset: 97px;
}

html {
  scroll-behavior: smooth;
  scroll-snap-type: y proximity;
  scroll-padding-top: var(--header-offset);
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Lora", serif;
  font-size: 16px;
  line-height: 1.7;
  font-weight: 400;
  color: var(--color-text);
  background: var(--color-bg);
  padding-top: var(--header-offset);
}

main {
  flex: 1;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3 {
  font-family: "Lora", serif;
  font-weight: 500;
  line-height: 1.2;
}

h1 {
  font-size: 44px;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

h2 {
  font-size: 30px;
  margin: 0 0 var(--space-5);
}

p + p {
  margin-top: var(--space-4);
}

p + ul,
ul + p {
  margin-top: var(--space-4);
}

/* =========================
   Layout
========================= */
.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

.section {
  padding: 120px 20px;
}

.section--tight {
  padding: var(--section-y-tight) 0;
}

.section--loose {
  padding: var(--section-y-loose) 0;
}

.lead {
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 60ch;
}

/* Contact ページの見出し回り：マスコット + h1 を横並びで挿絵風に */
.contact-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.contact-mascot {
  width: 90px;
  height: auto;
  flex-shrink: 0;
  opacity: 0.95;
}

.contact-head h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 36px);
}

@media (max-width: 480px) {
  .contact-mascot {
    width: 72px;
  }
}

.plain-list {
  list-style: none;
  padding-left: 0;
}

.plain-list li + li {
  margin-top: 8px;
}

/* =========================
   Header / Brand / Nav
========================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--header-offset);
  padding: 0 20px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
  transition:
    transform 0.35s ease,
    opacity 0.35s ease;
}

.site-header.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-100%);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  line-height: 1;
  text-decoration: none;
}

.brand:hover {
  opacity: 0.9;
}

.brand__name {
  font-family: "Great Vibes", cursive;
  font-size: 56px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  color: var(--color-brand);
}

.brand__role {
  display: flex;
  flex-direction: column;
  font-family: "Lora", serif;
  font-size: 12px;
  line-height: 1.15;
  letter-spacing: 0.02em;
  color: var(--color-subtext);
  padding-bottom: 4px;
}

.header-nav a,
nav a {
  font-family: "Lora", serif;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.nav a {
  margin-left: 20px;
  text-decoration: none;
  color: var(--color-nav);
  font-size: 14px;
}

.nav a:hover {
  opacity: 0.7;
}

.site-header .btn-primary {
  color: #fff;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--color-nav);
  cursor: pointer;
  transition:
    background 0.2s ease,
    opacity 0.2s ease;
}

.menu-toggle:hover {
  background: rgba(90, 138, 153, 0.1);
}

.menu-toggle__lines,
.menu-toggle__lines::before,
.menu-toggle__lines::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition:
    transform 0.24s ease,
    opacity 0.24s ease;
}

.menu-toggle__lines {
  position: relative;
}

.menu-toggle__lines::before,
.menu-toggle__lines::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-toggle__lines::before {
  top: -6px;
}

.menu-toggle__lines::after {
  top: 6px;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__lines {
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__lines::before {
  transform: translateY(6px) rotate(-90deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__lines::after {
  opacity: 0;
}

/* =========================
   Focus Styles
========================= */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 3px;
}

/* =========================
   Buttons
========================= */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 14px;
  transition: 0.3s;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-bg);
}

.btn-primary:hover {
  opacity: 0.85;
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--color-bg);
  color: var(--color-bg);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* =========================
   Scroll Snap Targets
========================= */
.hero,
#intro,
#about-page,
#quote,
#day,
#voices,
#memories,
#cta {
  scroll-snap-align: start;
}

.snap {
  min-height: calc(100svh - var(--header-offset));
  display: flex;
  align-items: center;
}

/* =========================
   Hero
========================= */
.hero {
  height: calc(100vh - var(--header-offset));
  min-height: calc(100svh - var(--header-offset));
  position: relative;
  overflow: hidden;
  background: #1f2528;
  color: var(--color-bg);
  text-align: left;
  display: flex;
  align-items: flex-start;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  filter: brightness(0.95) contrast(0.97) saturate(0.95);
  opacity: 0;
  transform: scale(1.03);
  transition:
    opacity 1.4s ease,
    transform 6s ease;
}

.hero-1 {
  filter: brightness(0.98) contrast(0.97) saturate(0.95);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(123, 90, 114, 0.12);
}

.hero-bg.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(rgba(0, 0, 0, 0.34), rgba(0, 0, 0, 0.34));
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(
      120% 90% at 10% 15%,
      rgba(255, 255, 255, 0.18),
      rgba(255, 255, 255, 0) 55%
    ),
    radial-gradient(
      100% 80% at 85% 20%,
      rgba(255, 255, 255, 0.14),
      rgba(255, 255, 255, 0) 60%
    );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin-top: 150px;
}

.hero .hero-content.container {
  margin-left: 10%;
  margin-right: 0;
}

/* 大きいデスクトップ画面では hero テキストを少し上に上げる
   （通常サイズ以下は margin-top: 150px のまま） */
@media (min-width: 1200px) {
  .hero-content {
    margin-top: 120px;
  }
}

.hero h1 {
  font-size: clamp(40px, 6.5vw, 68px);
  max-width: 32ch;
  margin-bottom: 20px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  white-space: normal;
}

.hero p {
  margin-bottom: 24px;
  font-size: 17px;
  line-height: 1.8;
  max-width: 34ch;
  color: rgba(255, 255, 255, 0.92);
}

.hero-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.hero-buttons .btn {
  min-width: 170px;
  text-align: center;
}

.hero-buttons .btn-secondary {
  background: var(--color-accent);
  border: 1px solid var(--color-accent);
  color: var(--color-bg);
}

.hero-buttons .btn-secondary:hover {
  opacity: 0.85;
  background: var(--color-accent);
}

/* hero 内の Instagram 誘導リンク（暗い背景に白で映えるよう SVG を currentColor で白に） */
.hero-instagram {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-size: 15px;
  letter-spacing: 0.02em;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.hero-instagram__icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.hero-instagram span {
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
  padding-bottom: 2px;
}

.hero-instagram:hover {
  opacity: 0.8;
  transform: translateY(-1px);
}

/* =========================
   About Flow
========================= */
.snap-panel {
  min-height: calc(100svh - var(--header-offset));
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.intro {
  min-height: calc(100vh - var(--header-offset));
  min-height: calc(100svh - var(--header-offset));
  padding: 112px 20px 84px;
  text-align: center;
  display: flex;
  align-items: center;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 1) 0%,
      rgba(247, 244, 241, 0.48) 100%
    );
}

#intro {
  padding-top: 56px;
}

.intro .container {
  width: 100%;
  max-width: 760px;
  text-align: left;
}

.intro h2 {
  font-size: 32px;
  margin-bottom: 36px;
  color: var(--color-text);
  text-align: center;
}

.intro-photo {
  width: min(280px, 70vw);
  margin: 0 auto 40px;
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(70, 56, 64, 0.08);
}

.intro p {
  font-size: 18px;
  line-height: 1.8;
  color: var(--color-subtext);
  margin-bottom: 18px;
}

/* デスクトップは 2 カラム（写真=左 / 見出し+本文=右）にして、
   縦長ポートレートが中央にポツリと浮いて見えるのを防ぐ。
   モバイル（768px 以下）は従来どおり中央積み上げのまま。 */
@media (min-width: 769px) {
  .intro .container {
    max-width: 920px;
    display: grid;
    grid-template-columns: 300px 1fr;
    column-gap: 56px;
    align-items: center;
  }

  .intro-photo {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 300px;
    margin: 0;
  }

  .intro h2 {
    grid-column: 2;
    grid-row: 1;
    text-align: left;
    margin-bottom: 20px;
  }

  .intro-text {
    grid-column: 2;
    grid-row: 2;
  }

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

#about-page {
  position: relative;
  background:
    linear-gradient(
      180deg,
      rgba(247, 244, 241, 0.72) 0%,
      rgba(239, 231, 221, 0.9) 100%
    );
}

#story .container {
  max-width: 900px;
  padding: clamp(36px, 5vw, 56px);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(123, 90, 114, 0.08);
  border-radius: 24px;
  box-shadow: 0 20px 44px rgba(73, 58, 67, 0.05);
  backdrop-filter: blur(4px);
}

#story.section {
  padding-top: clamp(76px, 9vw, 112px);
  padding-bottom: clamp(92px, 10vw, 128px);
}

#story h2 {
  margin-bottom: 32px;
}

#story .story-copy {
  max-width: 42rem;
  line-height: 1.8;
}

#story .story-copy p {
  margin: 0;
}

#story .story-copy p + p {
  margin-top: 18px;
}

#story .plain-list {
  line-height: 1.8;
}

/* ストーリー本文の後に置く写真ギャラリー（デスクトップ 3 列・モバイル縦積み） */
.story-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 36px;
}

.story-gallery img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(70, 56, 64, 0.12);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.story-gallery img:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(70, 56, 64, 0.16);
}

@media (max-width: 640px) {
  .story-gallery {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .story-gallery img {
    height: 240px;
  }
}

/* =========================
   How to Book — 3 ステップ導線
========================= */
.how {
  background: var(--color-bg-soft);
  text-align: center;
}

.how h2 {
  margin-bottom: 12px;
}

.how-lead {
  max-width: 520px;
  margin: 0 auto;
  color: var(--color-subtext);
  line-height: 1.8;
}

.how-steps {
  list-style: none;
  padding: 0;
  margin: 44px auto 0;
  max-width: 1000px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.how-step {
  position: relative;
  background: #fff;
  border-radius: 18px;
  padding: 34px 26px;
  box-shadow: 0 10px 28px rgba(70, 56, 64, 0.06);
}

.how-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  font-family: "Lora", serif;
  font-size: 19px;
  font-weight: 500;
}

.how-step h3 {
  font-size: 19px;
  margin-bottom: 10px;
}

.how-step p {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--color-subtext);
}

.how-step p a {
  color: var(--color-brand);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ステップ間のつなぎ矢印（デスクトップは右向き →） */
.how-step:not(:last-child)::after {
  content: "→";
  position: absolute;
  top: 50%;
  right: -16px;
  transform: translateY(-50%);
  font-size: 22px;
  line-height: 1;
  color: var(--color-brand);
}

.how-cta {
  margin-top: 40px;
}

/* モバイルは縦積み＋下向き矢印（↓） */
@media (max-width: 760px) {
  .how-steps {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .how-step:not(:last-child)::after {
    content: "↓";
    top: auto;
    bottom: -30px;
    right: 50%;
    transform: translateX(50%);
  }
}

/* =========================
   Quote
========================= */
.quote {
  background-color: var(--color-quote);
  font-size: 32px;
  text-align: center;
}

#quote {
  min-height: calc(100svh - var(--header-offset));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(80px, 9vw, 112px) 20px;
  position: relative;
  overflow: hidden;
  /* 背景動画のフォールバック（動画未読込・失敗時に見える横長ツアー写真）。
     上に .quote-overlay の暗幕を重ねて白文字の可読性を確保する。 */
  background: #17110f url("assets/img/nagamachi-samurai.webp") center / cover
    no-repeat;
}

/* 全面・横長の背景動画（無音ループ・スマホ自動再生）。
   動画ファイルが無い/読み込み前は video の poster 画像が表示される。 */
.quote-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

/* 文字可読性のための暗幕（左を濃く、右へ抜けるグラデ） */
.quote-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to right,
    rgba(20, 14, 12, 0.72) 0%,
    rgba(20, 14, 12, 0.5) 45%,
    rgba(20, 14, 12, 0.34) 100%
  );
}

/* 動きを抑えたい人には動画を止めて、背景写真（静止画）を見せる */
@media (prefers-reduced-motion: reduce) {
  .quote-bg-video {
    display: none;
  }
}

/* タグライン背後で写真が浮上するレイヤー
   ─────────────────────────────────────────
   JS が .float-card を中に追加し、画面下から上へ漂わせる。
   blockquote（z-index: 50）の後ろに配置（z-index: 1）。 */
.quote-photo-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

#quote .container {
  position: relative;
  z-index: 50;
}

.float-card {
  position: absolute;
  bottom: -260px;
  left: var(--x, 50%);
  width: var(--w, 220px);
  aspect-ratio: var(--ratio, 3 / 4);
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
  padding: 10px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.6) inset,
    0 18px 40px -12px rgba(60, 40, 15, 0.25),
    0 4px 12px -4px rgba(60, 40, 15, 0.18);
  opacity: 0;
  will-change: transform, opacity;
  transform: translate(-50%, 0) rotate(var(--rot, 0deg));
  animation:
    float-up var(--life, 18s) cubic-bezier(0.4, 0, 0.5, 1) forwards,
    float-sway var(--sway-dur, 5s) ease-in-out infinite alternate;
  animation-delay: var(--delay, 0s), var(--delay, 0s);
  z-index: var(--z, 1);
}

.float-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 32%;
  border-radius: 12px;
  display: block;
  background: #ddd;
}

@keyframes float-up {
  0% {
    opacity: 0;
    transform: translate(-50%, 0) rotate(var(--rot, 0deg)) scale(0.94);
    filter: blur(6px);
  }
  14% {
    opacity: 1;
    filter: blur(0);
  }
  78% {
    opacity: 1;
    filter: blur(0);
  }
  96% {
    opacity: 0;
    filter: blur(5px);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, calc(-100vh + 60px))
      rotate(calc(var(--rot, 0deg) + var(--end-rot, 0deg))) scale(1);
    filter: blur(6px);
  }
}

@keyframes float-sway {
  0% {
    margin-left: calc(var(--sway, 28px) * -1);
  }
  100% {
    margin-left: var(--sway, 28px);
  }
}

/* アクセシビリティ: 動きを抑えたい人のために、ふぁ〜演出を停止 */
@media (prefers-reduced-motion: reduce) {
  .float-card {
    animation: none;
    opacity: 0;
  }
}

.quote blockquote {
  width: max-content;
  max-width: 100%;
  margin: 0 auto;
  text-align: left; /* 親 .quote の center をオーバーライド、行は左揃え */
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.6;
  font-style: italic;
  color: #fff; /* 背景動画の上に白文字で表示 */
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}

/* 階段状レイアウト: 1 行目はそのまま、2 行目を Kanazawa の K あたりまでインデント */
.quote blockquote .qline {
  display: block;
}

.quote blockquote .qline-2 {
  padding-left: 5.5em; /* "Experience " のおおよその幅 */
}

/* テキスト出現演出 — 1 文字ずつ blur+scale から浮かび上がる
   ─────────────────────────────────────────
   JS が blockquote の中に .ch 要素を 1 文字ずつ生成し、
   スクロール到達で .play クラスを付与。各 .ch が letter-in アニメで
   blur+scale から実体化する。
   ※ JS が失敗しても、もとの blockquote テキストはそのまま見える
   ※ Yuri さん feedback により、ゴールドキラキラ（.shine）は廃止済み */
.quote blockquote {
  position: relative;
}

/* 文字 1 個分のラッパー */
.quote blockquote .ch {
  display: inline-block;
  position: relative;
  opacity: 0;
  transform: translateY(0.15em) scale(0.85);
  filter: blur(8px);
  /* 親 blockquote から色・font-style を継承 */
}

/* スペース文字はそのまま間隔だけ取る */
.quote blockquote .ch.space {
  filter: none;
  opacity: 1;
}

/* キーフレーム */
@keyframes letter-in {
  0% {
    opacity: 0;
    transform: translateY(0.15em) scale(0.85);
    filter: blur(10px);
  }
  20% {
    opacity: 0;
    transform: translateY(0.10em) scale(0.92);
    filter: blur(9px);
  }
  55% {
    opacity: 1;
    transform: translateY(0) scale(1.04);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

/* play クラス付与で letter-in が発火 */
.quote blockquote.play .ch {
  animation: letter-in 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
  animation-delay: var(--d, 0ms);
}

/* 狭い画面では階段の段差を緩める（横スクロール防止） */
@media (max-width: 520px) {
  .quote blockquote .qline-2 {
    padding-left: 3em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .quote blockquote .ch {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

/* =========================
   Day / Cards
========================= */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.07);
}

#day .card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  filter: brightness(0.97) contrast(0.98) saturate(0.96);
}

#day .card:nth-child(2) img {
  filter: brightness(1.02) contrast(0.98) saturate(0.96);
}

#day .card:nth-child(3) img {
  object-position: center 20%;
}

.card h3 {
  margin-top: 15px;
  margin-bottom: 0;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.8);
}

.card-text {
  position: absolute;
  top: 220px;
  left: 0;
  right: 0;
}

.card p {
  margin: 0;
  padding: 16px;
  height: 100px;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.8);
}

.card-cta {
  display: flex;
  align-items: center;
  height: 50px;
  padding: 0 16px;
  margin: 0;
  background: rgba(255, 255, 255, 0.8);
  font-family: "Lora", serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--color-brand);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

#day {
  min-height: calc(100svh - var(--header-offset));
  display: flex;
  align-items: center;
  padding: var(--space-section-wide) 20px;
}

#day .container {
  width: 100%;
}

#day h2 {
  margin-bottom: 28px;
}

.day-wrap {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}

#day .grid {
  width: 100%;
  margin-top: 28px;
}

/* デスクトップは 4 枚を 1 行に並べる（モバイルは既存の auto-fit のまま） */
@media (min-width: 768px) {
  #day .grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* カードはタイトルの行数に合わせて伸縮（グリッドの stretch で各行は同じ高さに揃う）。
   以前は固定高さ + card-text の絶対配置だったが、4 列で幅が狭まりタイトルが
   2 行になると枠からはみ出すため、画像の下に通常フローで並べる形に変更。 */
#day .card {
  position: relative;
  display: flex;
  flex-direction: column;
}

#day .card-text {
  position: static;
}

#day .card h3 {
  font-size: 18px;
  line-height: 1.35;
  background: transparent;
  padding: 14px 16px 20px;
}

.mascot {
  opacity: 0.95;
  transform-origin: center;
}

.day-mascot {
  display: block;
  width: 140px;
  margin: 0;
  align-self: flex-start;
  animation: dayMascotSway 2.8s ease-in-out infinite;
}

.day-note {
  margin-top: 36px;
  max-width: 38ch;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  font-size: 15px;
  line-height: 1.8;
  color: var(--color-subtext);
}

/* =========================
   Kanazawa's Famous Sights — Lightbox（A/B 共通）
   カード内の解説と CTA はライトボックスで表示するため、カード上では非表示。
   カード全体クリックで JS が .lightbox.is-open を付与して開く。
========================= */

/* カード内の解説と CTA を隠す（ライトボックスで表示するため） */
#day .card-text p,
#day .card-text .card-cta {
  display: none;
}

/* カード全体をクリック可能なポインタに */
#day .card {
  cursor: pointer;
}

/* ===== Lightbox 本体 ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox.is-open {
  display: flex;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(34, 28, 30, 0.55);
  cursor: pointer;
}

.lightbox-content {
  position: relative;
  background: var(--color-bg);
  border-radius: 12px;
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  animation: lightboxFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes lightboxFadeIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: var(--color-text);
  z-index: 1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.lightbox-close:hover {
  background: white;
  transform: scale(1.05);
}

.lightbox-image {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
  border-radius: 12px 12px 0 0;
}

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

.lightbox-title {
  margin: 0 0 12px;
  font-family: "Lora", serif;
  font-size: 24px;
  line-height: 1.3;
}

.lightbox-desc {
  margin: 0 0 20px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
}

.lightbox-cta {
  display: inline-block;
  font-family: "Lora", serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--color-brand);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

@media (max-width: 480px) {
  .lightbox {
    padding: 12px;
  }
  .lightbox-image {
    height: 220px;
  }
  .lightbox-body {
    padding: 20px 20px 24px;
  }
  .lightbox-title {
    font-size: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lightbox-content {
    animation: none;
  }
}

@keyframes playfulTilt {
  0% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(3deg);
  }
  100% {
    transform: rotate(0deg);
  }
}

.mascot.tilt-once {
  animation: playfulTilt 0.9s ease-out;
}

@keyframes dayMascotSway {
  0% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(-2deg);
  }
  50% {
    transform: rotate(0deg);
  }
  75% {
    transform: rotate(2deg);
  }
  100% {
    transform: rotate(0deg);
  }
}

/* =========================
   Reviews
========================= */
#voices {
  min-height: calc(100svh - var(--header-offset));
  display: flex;
  align-items: center;
  background: #f8f5f1;
}

#voices h2 {
  margin-bottom: 12px;
}

#voices .container {
  width: 100%;
}

#voices .section-lead {
  max-width: 560px;
  margin: 0 auto 36px;
  text-align: center;
  line-height: 1.8;
}

.voices-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.voice-card {
  background: rgba(255, 255, 255, 0.88);
  border-radius: 18px;
  padding: 28px 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(2px);
}

.voice-card p {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.9;
}

.voice-card .voice-name {
  font-size: 13px;
  letter-spacing: 0.04em;
  opacity: 0.82;
}

/* 実験的: ゲストのアバター（写真プレースホルダー）と国旗を並べる
   写真は Yuri さん側で提供されたら .voice-avatar の中身を <img> に差し替える */
.voice-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.voice-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-card-panel);
  color: var(--color-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Lora", serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  flex-shrink: 0;
  overflow: hidden;
}

.voice-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.voice-meta .voice-name {
  margin: 0;
}

.voice-flag {
  display: inline-block;
  margin-left: 6px;
  font-size: 16px;
  line-height: 1;
  vertical-align: middle;
}

/* Guest Voices 下の写真ウォール（小さめサムネを横幅に合わせて多数並べる） */
.voices-gallery {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
  gap: 8px;
}

.voices-gallery img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.voices-gallery img:hover {
  transform: scale(1.04);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

@media (max-width: 480px) {
  .voices-gallery {
    grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
    gap: 6px;
  }
}

/* =========================
   Memories with Friends — 自動切替スライドショー（1枠 + クロスフェード）
   写真は後から差し替え。プレースホルダーで枠だけ先に用意
========================= */

#memories {
  background: var(--color-bg);
  padding: var(--space-section-standard) 20px;
}

/* 1 枠だけのステージ。スライド全部をここに重ねて、active のみ表示
   横長 4:3 で表示し、顔が中心〜上寄りに来るよう object-position を調整
   クリックで次の写真へ進めるため cursor: pointer */
.memories-stage {
  position: relative;
  width: 100%;
  max-width: 640px;
  margin: 32px auto 0;
  aspect-ratio: 4 / 3;
  cursor: pointer;
}

.memory-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0s linear 0.8s;
}

.memory-slide.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.8s ease, visibility 0s;
}

.memory-photo,
.memory-slide img.memory-fg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain; /* 写真全体を必ず見せる（縦横比そのまま） */
  position: relative;
  z-index: 1;
}

/* 写真本体を載せるラッパー：枠の角丸 + 影はここで
   影は他セクション（.card / .voice-card）と同系統のソフトな値で統一 */
.memory-slide {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  background: var(--color-card-panel);
}

/* 余白部分に同じ写真をぼかして敷く（縦長写真でも左右が浮かない） */
.memory-slide img.memory-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: blur(24px) brightness(0.85);
  transform: scale(1.15); /* ぼかしのフチを隠す */
  z-index: 0;
  pointer-events: none;
}

.memory-placeholder {
  background: var(--color-card-panel);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-brand);
  font-family: "Lora", serif;
  font-size: 14px;
  letter-spacing: 0.05em;
}

.memory-slide figcaption {
  position: absolute;
  bottom: -36px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 13px;
  line-height: 1.6;
  color: var(--color-subtext);
}

.memory-slide figcaption:empty {
  display: none;
}

/* 26 枚と多めなのでドットではなく「現在/総数」表示にする */
.memories-progress {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 56px;
  font-family: "Lora", serif;
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--color-subtext);
}

.memories-current {
  font-weight: 500;
  color: var(--color-brand);
  min-width: 1.6em;
  text-align: right;
}

.memories-divider {
  opacity: 0.5;
}

.memories-total {
  min-width: 1.6em;
}

@media (max-width: 480px) {
  .memories-stage {
    max-width: 100%;
  }
}

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

/* =========================
   Memories Cards Slider（顧客ごと 4 枚 1 セットをスライドで切替）
   ─────────────────────────────────────────
   2026-05 リファクタ:
   1) 26 枚自動切替 → 5 顧客カードのスライド方式に変更
   2) 1 カード = 2x2 で写真 4 枚（group5 のみ 2x1 で 2 枚）
   3) 写真は object-fit: contain で「人の顔が見きれない」よう全体表示
   4) ‹ Prev / Next › ボタンと「1 / 5」カウンタで制御、6 秒ごと自動送り
========================= */
.memory-cards-slider {
  position: relative;
  max-width: 600px;
  margin: 36px auto 0;
  overflow: hidden; /* ← ここで track のはみ出しをクリップする */
  border-radius: 6px;
}

.memory-cards-track {
  display: flex;
  /* overflow は親の .memory-cards-slider 側で hidden するので、
     ここでは clip しない（clip すると translateX で動かしても
     2 枚目以降がいつまでも見えなくなる） */
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.memory-card {
  flex: 0 0 100%;
  min-width: 100%;
  box-sizing: border-box;
  background: var(--color-bg-soft);
  padding: 16px;
  border-radius: 6px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

/* 2x2 グリッド固定（写真の枚数に関わらず正方形を維持）
   写真が 4 枚未満のカードでは、空きセルはカード背景がそのまま透ける */
.memory-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 8px;
  aspect-ratio: 1 / 1;
}

.memory-card-grid figure {
  margin: 0;
  overflow: hidden;
  border-radius: 3px;
  background: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.memory-card-grid img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* ───── スライダーの操作部 ───── */
.memory-cards-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 24px;
}

.memory-slider-btn {
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-family: "Lora", serif;
  font-size: 22px;
  line-height: 1;
  color: var(--color-brand);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.memory-slider-btn:hover {
  background: var(--color-quote);
  border-color: var(--color-brand);
  transform: scale(1.05);
}

.memory-slider-btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.memory-cards-progress {
  font-family: "Lora", serif;
  font-size: 14px;
  letter-spacing: 0.18em;
  color: var(--color-muted);
  min-width: 60px;
  text-align: center;
}

.memory-cards-current {
  color: var(--color-brand);
  font-weight: 500;
}

.memory-cards-divider {
  margin: 0 6px;
  opacity: 0.5;
}

@media (max-width: 768px) {
  .memory-cards-slider {
    max-width: 100%;
    padding: 0 8px;
  }
  .memory-card {
    padding: 12px;
  }
  .memory-card-grid {
    gap: 6px;
  }
  .memory-slider-btn {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
}


/* =========================
   CTA
========================= */
.cta {
  background: var(--color-cta);
  text-align: center;
  margin-top: 0;
  padding: 56px 20px 64px;
}

#cta {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--color-cta);
  margin-top: 0;
  padding: 80px 20px calc(80px + var(--footer-offset));
  scroll-margin-top: calc(-1 * var(--header-offset));
}

#cta .container {
  width: 100%;
  max-width: 900px;
}

#cta h2 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.3;
  margin-bottom: 20px;
}

#cta p {
  max-width: 560px;
  margin: 0 auto 20px;
  line-height: 1.9;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.cta-links {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.external-links {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.sns-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
}

.sns-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease,
    background 0.2s ease;
}

.sns-link img {
  width: 22px;
  height: 22px;
  display: block;
  opacity: 0.82;
}

.sns-link:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.35);
}

.sns-link:hover img {
  opacity: 1;
}

.external-link {
  font-size: 14px;
  letter-spacing: 0.03em;
  color: var(--color-nav);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.18);
  padding-bottom: 2px;
  transition:
    opacity 0.2s ease,
    border-color 0.2s ease;
}

.external-link:hover {
  opacity: 0.7;
  border-color: rgba(0, 0, 0, 0.4);
}

.external-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.external-divider {
  color: rgba(0, 0, 0, 0.35);
  font-size: 14px;
  user-select: none;
}

/* =========================
   About Page
========================= */
.about-layout {
  display: flex;
  align-items: stretch;
  gap: 50px;
  margin-top: 24px;
}

.about-hero {
  flex: 0 0 320px;
  display: flex;
}

.about-photo {
  width: 100%;
  height: 100%;
  max-width: 100%;
  border-radius: 10px;
  object-fit: cover;
}

.about-content {
  flex: 1;
}

.about-content h2 {
  font-size: 28px;
  margin-top: 24px;
  margin-bottom: 10px;
}

.about-content h2:first-child {
  margin-top: 0;
}

.about-content p {
  margin-bottom: 18px;
}

.about-content ul {
  margin-top: 10px;
  padding-left: 20px;
}

/* =========================
   Tours Page
========================= */
.tours-page .container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

.tour-grid {
  display: grid;
  gap: 32px;
}

.tour-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.tour-title {
  margin-bottom: 12px;
}

.tour-summary {
  margin-bottom: 16px;
}

.tour-facts {
  margin-top: 16px;
}

.tour-goodfor {
  margin-top: 16px;
}

.tour-note {
  margin-top: 12px;
  font-size: 14px;
  color: var(--color-muted);
}

.tour-detail-link {
  display: inline-block;
  margin-top: 14px;
  font-family: "Lora", serif;
  font-size: 14px;
  color: var(--color-brand);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: opacity 0.2s ease;
}
.tour-detail-link:hover {
  opacity: 0.7;
}

.tours-overview.section {
  padding-bottom: 56px;
}

.tour-notes.section {
  padding-top: 32px;
  padding-bottom: 72px;
}

.tour-notes-inner {
  max-width: 760px;
  padding: 24px;
}

.tour-notes h2,
.tour-notes p,
.tour-notes ul {
  margin-left: 0;
}

.tour-notes ul {
  margin: 0;
  padding-left: 1.2em;
}

.tour-notes h2 + ul,
.tour-notes h2 + p {
  margin-top: 12px;
}

.tour-notes ul + h2,
.tour-notes p + h2 {
  margin-top: 40px;
}

.tour-disclaimer {
  margin-top: 12px;
  padding-left: 1.2em;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(0, 0, 0, 0.55);
  font-style: italic;
}

/* =========================
   Contact Page
========================= */
.contact-form {
  display: grid;
  gap: 14px;
  margin-top: 24px;
  max-width: 720px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  font-size: 14px;
}

.contact-form input,
.contact-form textarea {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 12px;
  font-size: 16px;
  background: var(--color-bg);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(127, 166, 179, 0.35);
  border-color: var(--color-accent);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-note {
  font-size: 14px;
  color: #555;
  margin-top: 6px;
}

/* =========================
   Privacy Page
========================= */

.privacy {
  max-width: 800px;
  margin: 0 auto;
  padding: 80px 20px 60px;
}

.privacy h1 {
  font-family: "Lora", serif;
  font-size: 28px;
  margin-bottom: 32px;
}

.privacy h2 {
  font-family: "Lora", serif;
  font-size: 20px;
  margin-top: 32px;
  margin-bottom: 6px;
}

.privacy p {
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 16px;
  color: #333;
}

/* =========================
   Page (page.php) — 固定ページ汎用レイアウト
========================= */
.page-main {
  max-width: 800px;
  margin: 0 auto;
  padding: 64px 20px 80px;
}

.page-title {
  font-family: "Lora", serif;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.25;
  margin-bottom: 28px;
}

.page-featured {
  margin: 0 0 28px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(70, 56, 64, 0.1);
}

.page-featured img {
  width: 100%;
  height: auto;
  display: block;
}

.page-body {
  font-size: 16px;
  line-height: 1.85;
  color: var(--color-text);
}

.page-body p {
  margin-bottom: 18px;
}

.page-body h2 {
  font-family: "Lora", serif;
  font-size: 22px;
  margin: 36px 0 10px;
}

.page-body h3 {
  font-family: "Lora", serif;
  font-size: 18px;
  margin: 26px 0 8px;
}

.page-body ul,
.page-body ol {
  margin: 0 0 18px;
  padding-left: 1.3em;
}

.page-body li + li {
  margin-top: 6px;
}

.page-body img {
  height: auto;
  border-radius: 10px;
  margin: 18px 0;
}

/* 固定ページ内の story-gallery は一般 .page-body img 指定より優先し、
   トップと同じ「高さ揃え・cover・余白なし」のグリッドを維持する */
.page-body .story-gallery img {
  height: 220px;
  margin: 0;
  object-fit: cover;
}

/* 固定ページ内の voices-gallery（写真ウォール）も同様に余白を打ち消す */
.page-body .voices-gallery img {
  margin: 0;
  border-radius: 8px;
}

/* 固定ページ内のボタンは、一般 .page-body a（ブランド色＋下線）に負けないように
   白文字・下線なしを維持する */
.page-body .btn {
  text-decoration: none;
}

.page-body .btn-primary,
.page-body .btn-secondary {
  color: var(--color-bg);
}

.page-body .btn-primary:hover,
.page-body .btn-secondary:hover {
  color: var(--color-bg);
}

/* =========================
   Contact Form 7（テーマ調に整える）
========================= */
.wpcf7 {
  max-width: 640px;
  margin-top: 8px;
}

.wpcf7-form label {
  display: block;
  margin-bottom: 16px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-text);
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="number"],
.wpcf7-form select,
.wpcf7-form textarea {
  display: block;
  width: 100%;
  margin-top: 8px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 12px;
  font-size: 16px;
  font-family: inherit;
  color: var(--color-text);
  background: var(--color-bg);
}

.wpcf7-form textarea {
  min-height: 140px;
  resize: vertical;
}

.wpcf7-form input:focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus {
  outline: 2px solid rgba(127, 166, 179, 0.35);
  border-color: var(--color-accent);
}

.wpcf7-form .wpcf7-submit {
  display: inline-block;
  margin-top: 8px;
  padding: 12px 28px;
  border: 0;
  border-radius: 4px;
  background: var(--color-accent);
  color: var(--color-bg);
  font-size: 15px;
  font-family: "Lora", serif;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.wpcf7-form .wpcf7-submit:hover {
  opacity: 0.85;
}

.wpcf7-spinner {
  margin: 0 0 0 8px;
}

/* =========================
   Tours ページ — ブロック装飾（Group ブロックをカード化）
========================= */
.page-body .tour-card {
  display: block;
  background: #fff;
  border: 1px solid rgba(123, 90, 114, 0.12);
  border-radius: 16px;
  padding: clamp(24px, 4vw, 36px);
  box-shadow: 0 10px 28px rgba(70, 56, 64, 0.06);
  margin-bottom: 28px;
}

.page-body .tour-card h2 {
  margin-top: 0;
  color: var(--color-brand);
}

.page-body .tour-summary {
  font-size: 17px;
  color: var(--color-subtext);
}

/* 料金・所要時間などを丸タグ（ピル）で表示 */
.page-body .tour-facts {
  list-style: none;
  padding: 0;
  margin: 18px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-body .tour-facts li {
  margin: 0;
  padding: 6px 14px;
  background: var(--color-bg-soft);
  border-radius: 999px;
  font-size: 14px;
  color: var(--color-text);
}

.page-body .tour-note {
  font-size: 14px;
  font-style: italic;
  color: var(--color-muted);
}

/* Notes（What's Included など）を淡い帯のカードに */
.page-body .tour-notes-inner {
  margin-top: 16px;
  padding: clamp(24px, 4vw, 36px);
  background: var(--color-bg-soft);
  border-radius: 16px;
}

.page-body .tour-disclaimer {
  font-size: 13px;
  font-style: italic;
  color: var(--color-muted);
}

/* コアボタン（wp:button）をブランド調に */
.page-body .wp-block-button__link {
  background: var(--color-accent);
  color: var(--color-bg);
  border-radius: 4px;
  padding: 12px 26px;
  font-family: "Lora", serif;
  font-size: 15px;
  letter-spacing: 0.02em;
  transition: opacity 0.2s ease;
}

.page-body .wp-block-button__link:hover {
  opacity: 0.85;
  color: var(--color-bg);
}

.page-body a {
  color: var(--color-brand);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.page-body blockquote {
  margin: 24px 0;
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--color-card-panel);
  color: var(--color-subtext);
  font-style: italic;
}

.page-edit-link {
  margin-top: 28px;
  font-size: 13px;
}

.page-edit-link a {
  color: var(--color-muted);
}

/* =========================
   Site Footer (index)
========================= */
.site-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--footer-offset);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
}

.site-footer.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* 下層ページ（ホーム以外）では固定をやめ、通常フローの最下部フッターにする。
   <main> が flex:1 のため、コンテンツが短くても画面最下部に収まる（スティッキーフッター）。 */
body:not(.home) .site-footer {
  position: static;
  height: auto;
  min-height: var(--footer-offset);
  padding: 24px 20px;
  opacity: 1;
  pointer-events: auto;
  transform: none;
  transition: none;
}

.footer-inner {
  width: 100%;
  max-width: 1100px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.footer-brand {
  text-align: center;
}

.footer-link {
  font-family: "Lora", serif;
  font-size: 13px;
  color: var(--color-footer-role);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.14);
  padding-bottom: 2px;
}

.footer-link:hover {
  opacity: 0.7;
}

.footer-links a {
  font-family: "Lora", serif;
  font-size: 13px;
  color: var(--color-footer-role);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.14);
  padding-bottom: 2px;
}

.footer-links a:hover {
  opacity: 0.7;
}

/* =========================
   Simple Footer (sub pages)
========================= */
.simple-footer {
  padding: 28px 20px 36px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
}

.simple-footer__inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.simple-footer__copy {
  margin: 0;
  font-family: "Lora", serif;
  font-size: 13px;
  line-height: 1.6;
  letter-spacing: 0.04em;
  color: #666;
}

.simple-footer__link {
  display: inline-block;
  margin-top: 6px;
  font-family: "Lora", serif;
  font-size: 12px;
  color: #888;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.simple-footer__link:hover {
  opacity: 0.7;
}

/* 連続する footer link 間に中黒のセパレータを入れる */
.simple-footer__link + .simple-footer__link::before {
  content: "·";
  display: inline-block;
  margin: 0 8px;
  color: #ccc;
}

/* Contact ページ: フォーム上部のキャンセルポリシー誘導 */
.contact-policy-note {
  text-align: center;
  font-size: 14px;
  line-height: 1.7;
  color: #666;
  margin: 0 0 28px;
  font-family: "Lora", serif;
}
.contact-policy-note a {
  color: var(--color-brand);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.simple-footer--minimal {
  padding-top: 20px;
  padding-bottom: 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.footer-logo {
  font-family: "Great Vibes", cursive;
  font-size: 64px;
  line-height: 1;
  color: var(--color-brand);
}

.footer-yuri {
  font-family: "Great Vibes", cursive;
  font-size: 40px;
  line-height: 1;
  color: var(--color-brand);
}

.footer-role {
  margin-top: 4px;
  font-family: "Lora", serif;
  font-size: 14px;
  line-height: 1.3;
  letter-spacing: 0.04em;
  color: var(--color-footer-role);
}

/* =========================
   Responsive
========================= */
@media (max-width: 768px) {
  .intro {
    padding: 96px 20px 72px;
  }

  #intro {
    padding-top: 48px;
  }

  #story .container {
    padding: 32px 24px;
    border-radius: 20px;
  }

  .voices-grid {
    grid-template-columns: 1fr;
  }

  .about-layout {
    flex-direction: column;
    gap: 24px;
  }

  .about-hero {
    text-align: center;
    margin: 0 auto;
  }

  .site-header {
    gap: 12px;
    padding: 0 16px;
  }

  .brand {
    gap: 8px;
  }

  .brand__name {
    font-size: 50px;
  }

  .brand__role {
    font-size: 11px;
    line-height: 1.1;
    padding-bottom: 6px;
  }

  .nav a {
    margin-left: 16px;
    font-size: 13px;
  }
}

@media (max-width: 640px) {
  .intro {
    padding: 88px 20px 64px;
  }

  .intro-photo {
    margin-bottom: 32px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .site-header {
    align-items: center;
    height: auto;
    min-height: var(--header-offset);
    padding: 12px 16px;
    gap: 10px;
  }

  .site-header__bar {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .brand {
    min-width: 0;
    gap: 6px;
    line-height: 1;
  }

  .brand__name {
    font-size: 42px;
  }

  .brand__role {
    font-size: 10px;
    line-height: 1.15;
    padding-bottom: 4px;
  }

  .menu-toggle {
    display: inline-flex;
    flex-shrink: 0;
  }

  .site-header__nav {
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 12px 0 4px;
  }

  .site-header__nav.is-open {
    display: flex;
  }

  /* メニューを開いている間だけ、X ボタンを画面右上コーナーに固定する
     （ドロップダウン本体のレイアウトはそのまま） */
  .menu-toggle[aria-expanded="true"] {
    position: fixed;
    top: 18px;
    right: 16px;
    z-index: 1001; /* ヘッダー背景(1000)より前面 */
  }

  .nav a {
    margin: 0;
    font-size: 14px;
  }

  .site-header__nav .btn {
    width: 100%;
    text-align: center;
    margin-top: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-bg {
    transition: none;
  }

  .mascot.tilt-once {
    animation: none;
  }
}
