/*
 * gijin — Design Tokens
 * Source: marketing/dental-theme/design-direction.md §11
 * Palette: A (Classic Trust) — デフォルト
 */

:root {
  /* ===== Color — gijin：空色 × コーラル（やさしいポップ） ===== */
  --gj-color-primary: #C45A2A;
  --gj-color-primary-dark: #C9832F;
  --gj-color-primary-darker: #9E6420;
  --gj-color-primary-light: #3A2F25;
  --gj-color-primary-50: #1B1F2C;
  --gj-color-accent: #E9A65D;
  --gj-color-accent-dark: #C9832F;
  --gj-color-accent-light: #2A2620;
  --gj-color-on-accent: #12141C;
  --gj-color-bg: #FFFBF5;
  --gj-color-bg-alt: #F5ECE0;
  --gj-color-text: #4A3B32;
  --gj-color-text-sub: #B5AFA2;
  --gj-color-border: #2E3242;
  --gj-color-success: #2FB48A;
  --gj-color-danger: #E0533F;
  --gj-color-warning: #FFCC3E;
  --gj-color-white: #FFFFFF;
  --gj-color-surface: #FFFFFF;
  --gj-color-line: #06C755;

  /* コース・図形の4色（＋2色） */
  --gj-c-sky: #5AB8F0;
  --gj-c-coral: #FF7A6B;
  --gj-c-lilac: #9C84F2;
  --gj-c-mint: #43C9A0;
  --gj-c-sun: #FFCC3E;
  --gj-c-pink: #FF8FB8;

  /* ===== Gradients & decorative ===== */
  --gj-gradient-primary: linear-gradient(135deg, #19B3A1 0%, #0B7F73 100%);
  --gj-gradient-hero: linear-gradient(180deg, #FFFFFF 0%, #F4FBF9 100%);
  --gj-gradient-accent: linear-gradient(135deg, #19B3A1 0%, #0B7F73 100%);
  --gj-gradient-sheen: linear-gradient(180deg, rgba(255,255,255,.18) 0%, rgba(255,255,255,0) 60%);
  --gj-overlay-hero: linear-gradient(160deg, rgba(191,230,255,.88) 0%, rgba(223,243,255,.80) 45%, rgba(255,243,214,.86) 100%);
  --gj-ring-primary: 0 0 0 4px rgba(11,127,115, 0.18);
  --gj-ring-accent: 0 0 0 4px rgba(11,127,115, 0.25);

  /* ===== Typography ===== */
  --gj-font-jp: 'Zen Kaku Gothic New', 'Hiragino Sans', 'Yu Gothic', system-ui, sans-serif;
  --gj-font-en: 'Cormorant Garamond', 'Zen Kaku Gothic New', system-ui, sans-serif;
  --gj-font-heading: var(--gj-font-jp);
  --gj-font-body: var(--gj-font-jp);

  --gj-fs-display: clamp(2.2rem, 6.4vw, 4.4rem);
  --gj-fs-h1: clamp(1.875rem, 4.5vw, 2.75rem);
  --gj-fs-h2: clamp(1.6rem, 3.8vw, 2.4rem);
  --gj-fs-h3: clamp(1.25rem, 2.5vw, 1.5rem);
  --gj-fs-h4: 1.125rem;
  --gj-fs-body: 1rem;
  --gj-fs-body-lg: 1.0625rem;
  --gj-fs-small: 0.875rem;
  --gj-fs-micro: 0.75rem;

  --gj-lh-heading: 1.35;
  --gj-lh-body: 1.8;
  --gj-ls-body: 0.02em;
  --gj-ls-heading: 0.02em;

  /* ===== Spacing ===== */
  --gj-space-xs: 0.5rem;
  --gj-space-sm: 0.75rem;
  --gj-space-md: 1rem;
  --gj-space-lg: 1.5rem;
  --gj-space-xl: 2rem;
  --gj-space-2xl: 3rem;
  --gj-space-3xl: 4rem;
  --gj-space-4xl: 6rem;

  /* ===== Layout（角を大きく丸める） ===== */
  --gj-container-max: 1160px;
  --gj-container-pad: clamp(1rem, 4vw, 2rem);
  --gj-radius-sm: 0.25rem;
  --gj-radius-md: 0.4rem;
  --gj-radius-lg: 0.6rem;
  --gj-radius-xl: 0.8rem;
  --gj-radius-pill: 999px;

  /* ===== Shadow（やわらかい影＋ぷっくりボタンの下影） ===== */
  --gj-shadow-sm: 0 1px 2px rgba(15,27,45, 0.06);
  --gj-shadow-md: 0 6px 18px rgba(15,27,45, 0.08), 0 1px 3px rgba(15,27,45, 0.05);
  --gj-shadow-lg: 0 14px 34px rgba(15,27,45, 0.12), 0 3px 8px rgba(15,27,45, 0.06);
  --gj-shadow-xl: 0 24px 56px rgba(15,27,45, 0.16), 0 6px 14px rgba(15,27,45, 0.08);
  --gj-shadow-primary: none;
  --gj-shadow-accent: 0 8px 20px rgba(11,127,115,.25);

  /* ===== Motion ===== */
  --gj-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --gj-spring: cubic-bezier(.34, 1.56, .64, 1);
  --gj-duration-fast: 150ms;
  --gj-duration: 250ms;
  --gj-duration-slow: 600ms;

  /* ===== Z-index ===== */
  --gj-z-header: 100;
  --gj-z-sticky-cta: 90;
  --gj-z-modal: 1000;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
/*
 * gijin — Base styles
 * リセット・タイポ・コンテナ・ボタン・カード等の共通スタイル
 */

/* ===== Reset (minimal modern) ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* オフキャンバスのモバイルナビ（.gj-nav）が画面右外に退避する際の横スクロール漏れを防ぐ。
     clip は hidden と違いスクロール文脈を作らないので sticky ヘッダーを壊さない。 */
  overflow-x: clip;
}

body {
  font-family: var(--gj-font-body);
  font-size: var(--gj-fs-body);
  line-height: var(--gj-lh-body);
  letter-spacing: var(--gj-ls-body);
  color: var(--gj-color-text);
  background: var(--gj-color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
picture,
video,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--gj-color-primary);
  text-decoration: none;
  transition: color var(--gj-duration) var(--gj-ease);
}

a:hover {
  color: var(--gj-color-primary-dark);
}

button {
  font: inherit;
  cursor: pointer;
  background: none;
  border: none;
}

ul,
ol {
  list-style: none;
}

/* ===== Focus ===== */
:focus-visible {
  outline: 2px solid var(--gj-color-primary);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--gj-font-heading);
  font-weight: 700;
  line-height: var(--gj-lh-heading);
  letter-spacing: var(--gj-ls-heading);
  color: var(--gj-color-text);
}

h1 { font-size: var(--gj-fs-h1); }
h2 { font-size: var(--gj-fs-h2); }
h3 { font-size: var(--gj-fs-h3); font-weight: 600; }
h4 { font-size: var(--gj-fs-h4); font-weight: 600; }

p {
  margin: 0;
}

p + p {
  margin-top: var(--gj-space-md);
}

.gj-text-sub {
  color: var(--gj-color-text-sub);
}

.gj-text-small {
  font-size: var(--gj-fs-small);
}

/* ===== Container ===== */
.gj-container {
  width: 100%;
  max-width: var(--gj-container-max);
  margin-inline: auto;
  padding-inline: var(--gj-container-pad);
}

.gj-container-narrow {
  max-width: 880px;
  margin-inline: auto;
  padding-inline: var(--gj-container-pad);
}

/* ===== Section ===== */
.gj-section {
  padding-block: clamp(3rem, 8vw, 6rem);
}

.gj-section--alt {
  background: var(--gj-color-bg-alt);
}

.gj-section--primary-light {
  background: var(--gj-color-primary-light);
}

.gj-section-header {
  text-align: center;
  margin-bottom: var(--gj-space-2xl);
}

.gj-section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: var(--gj-fs-small);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gj-color-primary);
  margin-bottom: var(--gj-space-sm);
  font-family: var(--gj-font-en);
}

.gj-section-eyebrow::before,
.gj-section-eyebrow::after {
  content: '';
  width: 1.75rem;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--gj-color-accent));
}

.gj-section-eyebrow::after {
  background: linear-gradient(90deg, var(--gj-color-accent), transparent);
}

/* 左寄せ見出し（記事/実績詳細）はラインを右側だけにする */
.gj-section-header[style*="left"] .gj-section-eyebrow::before { display: none; }

.gj-section-title {
  font-size: var(--gj-fs-h2);
  margin-bottom: var(--gj-space-md);
  letter-spacing: 0.02em;
}

.gj-section-lead {
  font-size: var(--gj-fs-body-lg);
  color: var(--gj-color-text-sub);
  max-width: 640px;
  margin-inline: auto;
}

/* ===== Buttons ===== */
.gj-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--gj-space-sm);
  min-height: 48px;
  padding: 0.75rem 1.75rem;
  font-weight: 600;
  font-size: var(--gj-fs-body);
  border-radius: var(--gj-radius-md);
  transition: transform var(--gj-duration) var(--gj-ease),
              box-shadow var(--gj-duration) var(--gj-ease),
              background var(--gj-duration) var(--gj-ease),
              color var(--gj-duration) var(--gj-ease);
  white-space: nowrap;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}

/* 上部のさりげない光沢（全 solid ボタン共通） */
.gj-btn--primary::before,
.gj-btn--accent::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gj-gradient-sheen);
  opacity: 0.9;
  pointer-events: none;
}

.gj-btn--primary {
  background: var(--gj-gradient-primary);
  color: var(--gj-color-white);
  box-shadow: var(--gj-shadow-primary);
}

.gj-btn--primary:hover {
  color: var(--gj-color-white);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(47,143,208, 0.38);
}

.gj-btn--accent {
  background: var(--gj-gradient-accent);
  color: var(--gj-color-on-accent);
  font-weight: 700;
  box-shadow: var(--gj-shadow-accent);
}

.gj-btn--accent:hover {
  color: var(--gj-color-on-accent);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(47,143,208, 0.40);
}

.gj-btn--outline {
  background: var(--gj-color-surface);
  color: var(--gj-color-primary);
  border: 1.5px solid var(--gj-color-primary);
  box-shadow: var(--gj-shadow-sm);
}

.gj-btn--outline:hover {
  background: var(--gj-color-primary);
  color: var(--gj-color-white);
  transform: translateY(-2px);
  box-shadow: var(--gj-shadow-md);
}

.gj-btn--line {
  background: var(--gj-color-line);
  color: var(--gj-color-white);
}

.gj-btn--line:hover {
  filter: brightness(0.95);
  color: var(--gj-color-white);
}

.gj-btn--lg {
  min-height: 56px;
  padding: 1rem 2rem;
  font-size: var(--gj-fs-body-lg);
}

/* ===== Card ===== */
.gj-card {
  background: var(--gj-color-surface);
  border: 1px solid var(--gj-color-border);
  border-radius: var(--gj-radius-lg);
  padding: var(--gj-space-xl);
  transition: all var(--gj-duration) var(--gj-ease);
}

.gj-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--gj-shadow-lg);
  border-color: var(--gj-color-primary-light);
}

.gj-card--flat {
  background: var(--gj-color-surface);
  border: 1px solid var(--gj-color-border);
  border-radius: var(--gj-radius-lg);
  padding: var(--gj-space-lg);
}

/* ===== Rating badge ===== */
.gj-rating {
  display: inline-flex;
  align-items: center;
  gap: var(--gj-space-xs);
  padding: var(--gj-space-xs) var(--gj-space-md);
  background: var(--gj-color-surface);
  border: 1px solid var(--gj-color-border);
  border-radius: var(--gj-radius-pill);
  font-size: var(--gj-fs-small);
  font-weight: 600;
  box-shadow: var(--gj-shadow-sm);
}

.gj-rating__stars {
  color: var(--gj-color-accent);
}

.gj-rating__count {
  color: var(--gj-color-text-sub);
  font-weight: 400;
}

/* ===== Breadcrumb ===== */
.gj-breadcrumb {
  padding-block: var(--gj-space-md);
  font-size: var(--gj-fs-small);
  color: var(--gj-color-text-sub);
}

.gj-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gj-space-xs);
  align-items: center;
}

.gj-breadcrumb li {
  display: flex;
  align-items: center;
  gap: var(--gj-space-xs);
}

.gj-breadcrumb li:not(:last-child)::after {
  content: '/';
  color: var(--gj-color-border);
}

.gj-breadcrumb a {
  color: var(--gj-color-text-sub);
}

.gj-breadcrumb a:hover {
  color: var(--gj-color-primary);
}

/* ===== Header ===== */
.gj-header {
  position: sticky;
  top: 0;
  z-index: var(--gj-z-header);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: background var(--gj-duration) var(--gj-ease),
              border-color var(--gj-duration) var(--gj-ease),
              box-shadow var(--gj-duration) var(--gj-ease);
}

/* スクロール時のみ境界と影を出す（main.js が付与） */
.gj-header.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: var(--gj-color-border);
  box-shadow: 0 4px 20px rgba(15,27,45, 0.07);
}

.gj-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: var(--gj-space-lg);
}

.gj-logo {
  display: flex;
  align-items: center;
  gap: var(--gj-space-sm);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--gj-color-text);
}

.gj-logo__mark {
  width: 40px;
  height: 40px;
  background: var(--gj-gradient-primary);
  color: var(--gj-color-white);
  display: grid;
  place-items: center;
  border-radius: var(--gj-radius-md);
  font-family: var(--gj-font-en);
  font-weight: 700;
  box-shadow: var(--gj-shadow-primary);
}

.gj-logo__mark .gj-icon {
  width: 22px;
  height: 22px;
}

/* WordPress カスタムロゴ画像のサイズ制御 */
.gj-logo .custom-logo {
  max-height: 44px;
  width: auto;
  display: block;
}

/* ロゴ画像に会社名が含まれている場合は、追加CSSで
   .gj-logo__name--with-image { display: none; } を指定して非表示可能 */
.gj-logo__name--with-image {
  font-size: 1rem;
}

.gj-nav {
  display: none;
}

.gj-nav__list {
  display: flex;
  gap: var(--gj-space-xl);
}

.gj-nav__link {
  color: var(--gj-color-text);
  font-weight: 500;
  font-size: var(--gj-fs-small);
}

.gj-nav__link:hover {
  color: var(--gj-color-primary);
}

.gj-header__cta {
  display: none;
  align-items: center;
  gap: var(--gj-space-sm);
}

.gj-header__tel {
  display: flex;
  align-items: center;
  gap: var(--gj-space-xs);
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--gj-color-text);
}

.gj-header__tel small {
  display: block;
  font-size: var(--gj-fs-micro);
  font-weight: 400;
  color: var(--gj-color-text-sub);
  letter-spacing: 0.05em;
}

.gj-hamburger {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--gj-color-text);
}

@media (min-width: 960px) {
  .gj-nav {
    display: block;
    flex: 1;
    margin-inline: var(--gj-space-xl);
  }
  .gj-header__cta {
    display: flex;
  }
  .gj-hamburger {
    display: none;
  }
}

/* ===== Sticky mobile CTA bar ===== */
.gj-sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: var(--gj-z-sticky-cta);
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--gj-color-surface);
  border-top: 1px solid var(--gj-color-border);
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.06);
}

.gj-sticky-cta__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--gj-space-sm);
  padding: 1rem;
  font-weight: 700;
  font-size: var(--gj-fs-body);
  min-height: 56px;
}

.gj-sticky-cta__btn--tel {
  color: var(--gj-color-text);
  background: var(--gj-color-surface);
}

.gj-sticky-cta__btn--book {
  color: var(--gj-color-white);
  background: var(--gj-color-primary);
}

@media (min-width: 960px) {
  .gj-sticky-cta {
    display: none;
  }
  body {
    padding-bottom: 0 !important;
  }
}

body {
  padding-bottom: 56px;
}

/* ===== Footer ===== */
.gj-footer {
  position: relative;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(47,143,208,.45) 0%, transparent 55%),
    var(--gj-color-primary-darker);
  color: var(--gj-color-white);
  padding-block: var(--gj-space-3xl) var(--gj-space-xl);
}

/* 上端のアクセントライン */
.gj-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gj-gradient-primary);
}

.gj-footer a {
  color: var(--gj-color-white);
  opacity: 0.85;
}

.gj-footer a:hover {
  opacity: 1;
  color: var(--gj-color-white);
}

.gj-footer__grid {
  display: grid;
  gap: var(--gj-space-2xl);
  grid-template-columns: 1fr;
}

.gj-footer__title {
  font-size: var(--gj-fs-body);
  font-weight: 700;
  margin-bottom: var(--gj-space-md);
  color: var(--gj-color-accent);
}

.gj-footer__list li {
  margin-bottom: var(--gj-space-sm);
  font-size: var(--gj-fs-small);
}

.gj-footer__bottom {
  margin-top: var(--gj-space-2xl);
  padding-top: var(--gj-space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: var(--gj-fs-small);
  opacity: 0.7;
  text-align: center;
}

@media (min-width: 720px) {
  .gj-footer__grid {
    grid-template-columns: 1.5fr 1fr 1.3fr 1.2fr;
  }
}

/* ===== Footer CTA block ===== */
.gj-footer-cta {
  position: relative;
  background: var(--gj-gradient-hero);
  color: var(--gj-color-white);
  padding-block: var(--gj-space-4xl);
  text-align: center;
  overflow: hidden;
}

/* 斜めの光と微細なドットパターンで奥行きを出す */
.gj-footer-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 120% at 85% -10%, rgba(47,143,208,.28) 0%, transparent 55%),
    radial-gradient(50% 100% at 10% 110%, rgba(255,255,255,.10) 0%, transparent 60%);
  pointer-events: none;
}

.gj-footer-cta > .gj-container {
  position: relative;
  z-index: 1;
}

.gj-footer-cta h2 {
  color: var(--gj-color-white);
  margin-bottom: var(--gj-space-lg);
  font-size: var(--gj-fs-h1);
}

.gj-footer-cta__lead {
  font-size: var(--gj-fs-body-lg);
  margin-bottom: var(--gj-space-2xl);
  opacity: 0.95;
}

.gj-footer-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gj-space-md);
  justify-content: center;
}

.gj-footer-cta .gj-btn--outline {
  background: rgba(255, 255, 255, 0.08);
  color: var(--gj-color-white);
  border-color: rgba(255, 255, 255, 0.7);
}

.gj-footer-cta .gj-btn--outline:hover {
  background: var(--gj-color-surface);
  color: var(--gj-color-primary);
}

/* ===== Icon ===== */
.gj-icon {
  width: 1.25em;
  height: 1.25em;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* ===== Utility ===== */
.gj-grid {
  display: grid;
  gap: var(--gj-space-lg);
}

.gj-grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.gj-grid--3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.gj-stack > * + * {
  margin-top: var(--gj-space-md);
}

.gj-flex {
  display: flex;
  gap: var(--gj-space-sm);
  align-items: center;
}

.gj-mb-sm { margin-bottom: var(--gj-space-sm); }
.gj-mb-md { margin-bottom: var(--gj-space-md); }
.gj-mb-lg { margin-bottom: var(--gj-space-lg); }

/* ===== Scroll reveal (main.js が is-visible を付与) ===== */
.gj-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--gj-ease), transform 0.7s var(--gj-ease);
  will-change: opacity, transform;
}
.gj-reveal.is-visible {
  opacity: 1;
  transform: none;
}
/* 子要素を順番に出す（section-header 内の連続要素など） */
.gj-reveal[data-delay="1"] { transition-delay: 0.08s; }
.gj-reveal[data-delay="2"] { transition-delay: 0.16s; }
.gj-reveal[data-delay="3"] { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  .gj-reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
 * M2: Front-page sections (prototype/index.html から抽出)
 * ============================================================ */

/* ===== Greeting ===== */
.gj-greeting {
  display: grid;
  gap: var(--gj-space-2xl);
  align-items: center;
}
@media (min-width: 760px) {
  .gj-greeting { grid-template-columns: 1fr 1.5fr; }
}
.gj-greeting__photo {
  aspect-ratio: 1 / 1;
  border-radius: var(--gj-radius-xl);
  background: linear-gradient(135deg, var(--gj-color-accent) 0%, #C25C82 100%);
  max-width: 360px;
  box-shadow: var(--gj-shadow-lg);
  overflow: hidden;
}
.gj-greeting__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gj-greeting__signature {
  margin-top: var(--gj-space-xl);
  font-size: var(--gj-fs-body);
  color: var(--gj-color-text-sub);
}
.gj-greeting__signature strong {
  display: block;
  font-size: 1.25rem;
  color: var(--gj-color-text);
  margin-top: var(--gj-space-xs);
}

/* ===== Services grid ===== */
.gj-services {
  display: grid;
  gap: var(--gj-space-lg);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.gj-service-card {
  position: relative;
  background: var(--gj-color-surface);
  border: 1px solid var(--gj-color-border);
  border-radius: var(--gj-radius-lg);
  padding: var(--gj-space-xl);
  transition: transform var(--gj-duration) var(--gj-ease),
              box-shadow var(--gj-duration) var(--gj-ease),
              border-color var(--gj-duration) var(--gj-ease);
  display: flex;
  flex-direction: column;
  gap: var(--gj-space-md);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
}
/* 上端に出るアクセントライン（ホバーで伸びる） */
.gj-service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gj-gradient-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--gj-duration) var(--gj-ease);
}
.gj-service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--gj-shadow-lg);
  border-color: transparent;
  color: inherit;
}
.gj-service-card:hover::before { transform: scaleX(1); }
.gj-service-card__icon {
  width: 60px;
  height: 60px;
  border-radius: var(--gj-radius-md);
  background: var(--gj-color-primary-50);
  color: var(--gj-color-primary);
  display: grid;
  place-items: center;
  transition: background var(--gj-duration) var(--gj-ease),
              color var(--gj-duration) var(--gj-ease),
              transform var(--gj-duration) var(--gj-ease);
}
.gj-service-card:hover .gj-service-card__icon {
  background: var(--gj-gradient-primary);
  color: var(--gj-color-white);
  transform: scale(1.05);
}
.gj-service-card__icon .gj-icon {
  width: 28px;
  height: 28px;
}
.gj-service-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
}
.gj-service-card__desc {
  color: var(--gj-color-text-sub);
  font-size: var(--gj-fs-small);
  flex: 1;
}
.gj-service-card__more {
  font-size: var(--gj-fs-small);
  font-weight: 600;
  color: var(--gj-color-primary);
  display: inline-flex;
  align-items: center;
  gap: var(--gj-space-xs);
}

/* ===== Features ===== */
.gj-features {
  display: grid;
  gap: var(--gj-space-lg);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.gj-feature {
  text-align: center;
  padding: var(--gj-space-xl);
}
.gj-feature__num {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto var(--gj-space-md);
  font-family: var(--gj-font-en);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--gj-color-white);
  background: var(--gj-gradient-primary);
  border-radius: 50%;
  box-shadow: var(--gj-shadow-primary);
}
.gj-feature__title {
  font-size: 1.25rem;
  margin-bottom: var(--gj-space-md);
}
.gj-feature__desc {
  color: var(--gj-color-text-sub);
  font-size: var(--gj-fs-small);
}

/* ===== Stats band（信頼・実績の数字） ===== */
.gj-stats {
  position: relative;
  background: var(--gj-gradient-hero);
  color: var(--gj-color-white);
  padding-block: var(--gj-space-3xl);
  overflow: hidden;
}
.gj-stats::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(70% 130% at 90% -20%, rgba(47,143,208,.22) 0%, transparent 55%);
  pointer-events: none;
}
.gj-stats__grid {
  position: relative;
  display: grid;
  gap: var(--gj-space-xl);
  grid-template-columns: repeat(2, 1fr);
  text-align: center;
}
@media (min-width: 760px) {
  .gj-stats__grid { grid-template-columns: repeat(4, 1fr); }
}
.gj-stat__num {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.1em;
  font-family: var(--gj-font-en), var(--gj-font-jp);
  font-size: clamp(2.25rem, 6vw, 3.25rem);
  font-weight: 700;
  line-height: 1;
  color: var(--gj-color-white);
}
.gj-stat__unit {
  font-size: 0.45em;
  font-weight: 600;
  color: var(--gj-color-accent-light);
}
.gj-stat__label {
  margin-top: var(--gj-space-sm);
  font-size: var(--gj-fs-small);
  color: rgba(255, 255, 255, 0.82);
  letter-spacing: 0.04em;
}
.gj-stat + .gj-stat,
.gj-stats__grid > .gj-stat:nth-child(odd) {
  position: relative;
}

/* ===== Tour (horizontal scroll) ===== */
.gj-tour {
  display: flex;
  gap: var(--gj-space-lg);
  justify-content: safe center;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: var(--gj-space-md);
  margin-inline: calc(-1 * var(--gj-container-pad));
  padding-inline: var(--gj-container-pad);
}
.gj-tour::-webkit-scrollbar { height: 6px; }
.gj-tour::-webkit-scrollbar-thumb {
  background: var(--gj-color-border);
  border-radius: 3px;
}
.gj-tour__item {
  flex: 0 0 280px;
  aspect-ratio: 4 / 3;
  border-radius: var(--gj-radius-lg);
  background: linear-gradient(135deg, var(--gj-color-primary-light) 0%, var(--gj-color-accent-light) 100%);
  scroll-snap-align: start;
  display: grid;
  place-items: end;
  padding: var(--gj-space-md);
  color: var(--gj-color-primary-dark);
  font-size: var(--gj-fs-small);
  font-weight: 600;
  overflow: hidden;
  position: relative;
}
.gj-tour__item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gj-tour__item span {
  position: relative;
  z-index: 1;
  background: rgba(255,255,255,0.85);
  padding: 0.25rem 0.625rem;
  border-radius: var(--gj-radius-pill);
}

/* ===== Staff cards ===== */
.gj-staff {
  display: grid;
  gap: var(--gj-space-lg);
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.gj-staff-card {
  text-align: center;
  text-decoration: none;
  color: inherit;
  display: block;
}
.gj-staff-card__photo {
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gj-color-primary-light) 0%, var(--gj-color-accent-light) 100%);
  margin: 0 auto var(--gj-space-md);
  width: 70%;
  display: grid;
  place-items: center;
  color: var(--gj-color-primary);
  font-size: 0.75rem;
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--gj-color-border), 0 0 0 8px var(--gj-color-primary-50);
  transition: box-shadow var(--gj-duration) var(--gj-ease),
              transform var(--gj-duration) var(--gj-ease);
}
.gj-staff-card:hover .gj-staff-card__photo {
  box-shadow: 0 0 0 1px var(--gj-color-primary), 0 0 0 8px var(--gj-color-primary-light);
  transform: translateY(-4px);
}
.gj-staff-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gj-staff-card__role {
  font-size: var(--gj-fs-small);
  color: var(--gj-color-text-sub);
  margin-top: var(--gj-space-xs);
}
.gj-staff-card__name {
  font-size: 1.0625rem;
  font-weight: 700;
}

/* ===== Reviews ===== */
.gj-reviews {
  display: grid;
  gap: var(--gj-space-lg);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.gj-review {
  position: relative;
  background: var(--gj-color-surface);
  border: 1px solid var(--gj-color-border);
  border-radius: var(--gj-radius-lg);
  padding: var(--gj-space-xl);
  box-shadow: var(--gj-shadow-sm);
  transition: transform var(--gj-duration) var(--gj-ease),
              box-shadow var(--gj-duration) var(--gj-ease);
}
.gj-review:hover {
  transform: translateY(-4px);
  box-shadow: var(--gj-shadow-lg);
}
/* 装飾の引用符 */
.gj-review::before {
  content: '\201C';
  position: absolute;
  top: 0.1em;
  right: 0.4em;
  font-family: var(--gj-font-en);
  font-size: 4rem;
  line-height: 1;
  color: var(--gj-color-primary-light);
  pointer-events: none;
}
.gj-review__rating {
  position: relative;
  color: var(--gj-color-accent);
  margin-bottom: var(--gj-space-sm);
  letter-spacing: 0.1em;
}
.gj-review__text {
  font-size: var(--gj-fs-small);
  line-height: 1.75;
  margin-bottom: var(--gj-space-md);
  color: var(--gj-color-text);
}
.gj-review__meta {
  font-size: var(--gj-fs-micro);
  color: var(--gj-color-text-sub);
  display: flex;
  justify-content: space-between;
}
.gj-reviews__source {
  text-align: center;
  margin-top: var(--gj-space-xl);
  font-size: var(--gj-fs-small);
  color: var(--gj-color-text-sub);
}

/* ===== Access ===== */
.gj-access {
  display: grid;
  gap: var(--gj-space-2xl);
}
@media (min-width: 760px) {
  .gj-access { grid-template-columns: 1fr 1fr; }
}
.gj-access__map {
  aspect-ratio: 4 / 3;
  background: var(--gj-color-bg-alt);
  border-radius: var(--gj-radius-lg);
  display: grid;
  place-items: center;
  color: var(--gj-color-text-sub);
  font-size: var(--gj-fs-small);
  overflow: hidden;
}
.gj-access__map iframe,
.gj-access__map img {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.gj-lazy-map__trigger {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  gap: var(--gj-space-sm);
  background: linear-gradient(135deg, var(--gj-color-primary-light) 0%, var(--gj-color-accent-light) 100%);
  color: var(--gj-color-primary-dark);
  font-weight: 600;
  cursor: pointer;
}
.gj-lazy-map__icon { font-size: 2.5rem; }
.gj-lazy-map__trigger:hover {
  background: linear-gradient(135deg, var(--gj-color-accent-light) 0%, var(--gj-color-primary-light) 100%);
}
.gj-access__info dl {
  display: grid;
  grid-template-columns: 7em 1fr;
  gap: var(--gj-space-sm) var(--gj-space-md);
  padding-block: var(--gj-space-md);
  border-top: 1px solid var(--gj-color-border);
}
.gj-access__info dl:last-of-type {
  border-bottom: 1px solid var(--gj-color-border);
}
.gj-access__info dt {
  font-weight: 600;
  color: var(--gj-color-primary);
  font-size: var(--gj-fs-small);
}
.gj-access__info dd {
  font-size: var(--gj-fs-small);
}
.gj-hours-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: var(--gj-space-md);
  font-size: var(--gj-fs-small);
}
.gj-hours-table th,
.gj-hours-table td {
  padding: var(--gj-space-sm);
  text-align: center;
  border: 1px solid var(--gj-color-border);
}
.gj-hours-table th {
  background: var(--gj-color-bg-alt);
  font-weight: 600;
}
.gj-hours-table .gj-hours-table__off {
  color: var(--gj-color-danger);
}

/* ===== News list (front-page latest 3) ===== */
.gj-news-list {
  border-top: 1px solid var(--gj-color-border);
  list-style: none;
}
.gj-news-item {
  display: grid;
  grid-template-columns: 7em 8em 1fr;
  gap: var(--gj-space-md);
  padding-block: var(--gj-space-md);
  border-bottom: 1px solid var(--gj-color-border);
  align-items: center;
}
.gj-news-item__date {
  font-family: var(--gj-font-en);
  font-size: var(--gj-fs-small);
  color: var(--gj-color-text-sub);
}
.gj-news-item__tag {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  background: var(--gj-color-primary-light);
  color: var(--gj-color-primary);
  font-size: var(--gj-fs-micro);
  font-weight: 600;
  border-radius: var(--gj-radius-pill);
  text-align: center;
}
.gj-news-item__title {
  font-size: var(--gj-fs-body);
  color: var(--gj-color-text);
  font-weight: 500;
  text-decoration: none;
}
.gj-news-item__title:hover { color: var(--gj-color-primary); }
@media (max-width: 600px) {
  .gj-news-item {
    grid-template-columns: 1fr;
    gap: var(--gj-space-xs);
  }
  .gj-news-item__tag { justify-self: start; }
}

/* ============================================================
 * Archive page header / news filter / news grid / pagination
 * ============================================================ */

.gj-page-header {
  position: relative;
  padding-block: var(--gj-space-3xl);
  background: var(--gj-gradient-hero);
  color: var(--gj-color-white);
  text-align: center;
  overflow: hidden;
}
.gj-page-header::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -5%;
  width: 40%;
  height: 140%;
  background: radial-gradient(circle, rgba(47,143,208,.25) 0%, transparent 65%);
  pointer-events: none;
}
.gj-page-header > .gj-container {
  position: relative;
  z-index: 1;
}
.gj-page-header__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--gj-font-en);
  font-size: var(--gj-fs-small);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gj-color-accent-light);
  margin-bottom: var(--gj-space-sm);
}
.gj-page-header__eyebrow::before,
.gj-page-header__eyebrow::after {
  content: '';
  width: 1.5rem;
  height: 2px;
  border-radius: 2px;
  background: rgba(47,143,208, 0.6);
}
.gj-page-header__title {
  font-size: var(--gj-fs-h1);
  color: var(--gj-color-white);
}

.gj-filter {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gj-space-sm);
  justify-content: center;
  margin-bottom: var(--gj-space-2xl);
}
.gj-filter__btn {
  padding: 0.5rem 1.125rem;
  background: var(--gj-color-surface);
  border: 1px solid var(--gj-color-border);
  border-radius: var(--gj-radius-pill);
  font-size: var(--gj-fs-small);
  font-weight: 500;
  color: var(--gj-color-text-sub);
  transition: all var(--gj-duration) var(--gj-ease);
  text-decoration: none;
}
.gj-filter__btn:hover {
  border-color: var(--gj-color-primary);
  color: var(--gj-color-primary);
}
.gj-filter__btn--active {
  background: var(--gj-color-primary);
  color: var(--gj-color-white);
  border-color: var(--gj-color-primary);
}
.gj-filter__btn--active:hover { color: var(--gj-color-white); }

.gj-news-grid {
  display: grid;
  gap: var(--gj-space-lg);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.gj-news-card {
  background: var(--gj-color-surface);
  border: 1px solid var(--gj-color-border);
  border-radius: var(--gj-radius-lg);
  overflow: hidden;
  transition: all var(--gj-duration) var(--gj-ease);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.gj-news-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--gj-shadow-lg);
  border-color: var(--gj-color-primary-light);
  color: inherit;
}
.gj-news-card__thumb {
  aspect-ratio: 16 / 9;
  background: var(--gj-color-primary-light);
  position: relative;
  display: grid;
  place-items: center;
  color: var(--gj-color-primary);
  font-size: var(--gj-fs-small);
  overflow: hidden;
}
.gj-news-card__thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gj-news-card__body {
  padding: var(--gj-space-lg);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--gj-space-sm);
}
.gj-news-card__meta {
  display: flex;
  align-items: center;
  gap: var(--gj-space-sm);
  font-size: var(--gj-fs-micro);
}
.gj-news-card__date {
  font-family: var(--gj-font-en);
  color: var(--gj-color-text-sub);
  font-weight: 500;
}
.gj-news-card__tag {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  background: var(--gj-color-primary-light);
  color: var(--gj-color-primary);
  font-weight: 600;
  border-radius: var(--gj-radius-pill);
}
.gj-news-card__title {
  font-size: var(--gj-fs-body-lg);
  font-weight: 700;
  line-height: 1.5;
  color: var(--gj-color-text);
  flex: 1;
}
.gj-news-card__excerpt {
  font-size: var(--gj-fs-small);
  color: var(--gj-color-text-sub);
  line-height: 1.65;
}

/* WordPress 標準 pagination */
.gj-pagination,
.nav-links {
  display: flex;
  gap: var(--gj-space-xs);
  justify-content: center;
  align-items: center;
  margin-top: var(--gj-space-3xl);
  flex-wrap: wrap;
}
.gj-pagination a,
.gj-pagination span,
.nav-links .page-numbers {
  min-width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--gj-color-surface);
  border: 1px solid var(--gj-color-border);
  border-radius: var(--gj-radius-md);
  font-family: var(--gj-font-en);
  font-weight: 600;
  color: var(--gj-color-text-sub);
  transition: all var(--gj-duration) var(--gj-ease);
  padding: 0 var(--gj-space-md);
  text-decoration: none;
}
.gj-pagination a:hover,
.nav-links .page-numbers:hover {
  border-color: var(--gj-color-primary);
  color: var(--gj-color-primary);
}
.gj-pagination .current,
.nav-links .page-numbers.current {
  background: var(--gj-color-primary);
  color: var(--gj-color-white);
  border-color: var(--gj-color-primary);
}

/* ===== Related links section (gj_related_links 用) ===== */
.gj-related-links {
  padding-block: var(--gj-space-2xl);
}
.gj-related-links ul { list-style: none; }
.gj-related-links a { display: block; color: inherit; }

/* ===== Article body (single post / news 共通) ===== */
.gj-article-body {
  font-size: var(--gj-fs-body);
  line-height: var(--gj-lh-body);
}
.gj-article-body h2 {
  margin-top: var(--gj-space-2xl);
  margin-bottom: var(--gj-space-md);
  padding-bottom: var(--gj-space-sm);
  border-bottom: 2px solid var(--gj-color-primary-light);
}
.gj-article-body h3 {
  margin-top: var(--gj-space-xl);
  margin-bottom: var(--gj-space-md);
  color: var(--gj-color-primary);
}
.gj-article-body p { margin-bottom: var(--gj-space-md); }
.gj-article-body ul,
.gj-article-body ol {
  margin-bottom: var(--gj-space-md);
  padding-left: 1.5em;
}
.gj-article-body ul { list-style: disc; }
.gj-article-body ol { list-style: decimal; }
.gj-article-body li { margin-bottom: var(--gj-space-xs); }
.gj-article-body blockquote {
  padding: var(--gj-space-md) var(--gj-space-lg);
  border-left: 4px solid var(--gj-color-primary);
  background: var(--gj-color-bg-alt);
  margin-bottom: var(--gj-space-md);
}
.gj-article-body img {
  border-radius: var(--gj-radius-md);
  margin-block: var(--gj-space-md);
}

/* ===== Forms (contact / search) ===== */
.gj-form {
  display: grid;
  gap: var(--gj-space-md);
  max-width: 720px;
  margin-inline: auto;
}
.gj-form__row { display: grid; gap: var(--gj-space-xs); }
.gj-form label {
  font-weight: 600;
  font-size: var(--gj-fs-small);
  color: var(--gj-color-text);
}
.gj-form label .gj-required {
  color: var(--gj-color-danger);
  font-size: var(--gj-fs-micro);
  margin-left: var(--gj-space-xs);
}
.gj-form input,
.gj-form textarea,
.gj-form select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--gj-color-border);
  border-radius: var(--gj-radius-md);
  font-family: inherit;
  font-size: var(--gj-fs-body);
  background: var(--gj-color-surface);
  transition: border-color var(--gj-duration) var(--gj-ease);
}
.gj-form input:focus,
.gj-form textarea:focus,
.gj-form select:focus {
  outline: none;
  border-color: var(--gj-color-primary);
}
.gj-form textarea { min-height: 140px; resize: vertical; }

/* ===== お問い合わせページ（電話・LINE カード＋フォームカード） ===== */
.gj-contact-quick,
.gj-contact-form {
  background: var(--gj-color-surface);
  border: 1px solid var(--gj-color-border);
  border-radius: var(--gj-radius-lg);
  box-shadow: var(--gj-shadow-md);
  padding: clamp(1.5rem, 4vw, 2.5rem);
}
.gj-contact-quick { margin-bottom: var(--gj-space-xl); border-top: 4px solid var(--gj-color-accent); }
.gj-contact-form { border-top: 4px solid var(--gj-color-primary); }
.gj-contact-quick__head,
.gj-contact-form__head { text-align: center; margin-bottom: var(--gj-space-lg); }
.gj-contact-quick__eyebrow {
  display: block;
  font-family: var(--gj-font-en);
  font-size: var(--gj-fs-micro);
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gj-color-accent-dark);
  margin-bottom: .35rem;
}
.gj-contact-quick__title { font-size: clamp(1.25rem, 3vw, 1.5rem); color: var(--gj-color-primary); margin: 0; }
.gj-contact-quick__body { display: grid; justify-items: center; gap: var(--gj-space-sm); }
.gj-contact-quick__tel {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--gj-font-en);
  font-size: clamp(1.75rem, 6vw, 2.5rem);
  font-weight: 800;
  letter-spacing: .02em;
  line-height: 1.2;
  color: var(--gj-color-primary);
  text-decoration: none;
  white-space: nowrap;
}
.gj-contact-quick__tel .gj-icon { width: .8em; height: .8em; stroke: var(--gj-color-accent-dark); }
.gj-contact-quick__tel:hover { color: var(--gj-color-primary-dark); }
.gj-contact-quick__hours { margin: 0; font-size: var(--gj-fs-small); color: var(--gj-color-text-sub); }
.gj-contact-quick__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gj-space-sm); margin-top: var(--gj-space-xs); }
.gj-contact-form .gj-article-body > p:first-child { text-align: center; color: var(--gj-color-text-sub); margin-bottom: var(--gj-space-lg); }

/* ===== Contact Form 7（テーマのフォームと同じ見た目に） ===== */
.wpcf7 form { display: grid; gap: var(--gj-space-lg); }
.wpcf7 form > p { margin: 0; }
.wpcf7 .gj-cf-row { display: grid; gap: var(--gj-space-xs); margin: 0; }
.wpcf7 .gj-cf-row br { display: none; } /* CF7 の自動整形が挟む改行で、ラベルと入力欄の間が空きすぎるのを防ぐ */
.wpcf7 .gj-cf-label {
  display: flex; align-items: center; gap: .5rem;
  font-weight: 700;
  font-size: var(--gj-fs-small);
  color: var(--gj-color-text);
}
.gj-cf-badge {
  display: inline-block;
  padding: .1rem .5rem;
  border-radius: var(--gj-radius-sm);
  font-size: var(--gj-fs-micro);
  font-weight: 700;
  line-height: 1.6;
  background: var(--gj-color-danger);
  color: var(--gj-color-white);
}
.gj-cf-badge--optional { background: var(--gj-color-bg-alt); color: var(--gj-color-text-sub); }
.wpcf7 .wpcf7-form-control-wrap { display: block; }
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 input[type="number"],
.wpcf7 input[type="date"],
.wpcf7 select,
.wpcf7 textarea {
  width: 100%;
  padding: .85rem 1rem;
  border: 1px solid #CBD3E0;
  border-radius: var(--gj-radius-md);
  background: var(--gj-color-bg);
  font-family: inherit;
  font-size: 1rem; /* 16px 未満だと iOS がフォーカス時にズームする */
  color: var(--gj-color-text);
  transition: border-color var(--gj-duration) var(--gj-ease), box-shadow var(--gj-duration) var(--gj-ease), background var(--gj-duration) var(--gj-ease);
}
.wpcf7 select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232F8FD0' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1rem;
  padding-right: 2.75rem;
}
.wpcf7 textarea { min-height: 180px; resize: vertical; line-height: var(--gj-lh-body); }
.wpcf7 input::placeholder,
.wpcf7 textarea::placeholder { color: #9AA3B2; }
.wpcf7 input:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus {
  outline: none;
  border-color: var(--gj-color-primary);
  background: var(--gj-color-surface);
  box-shadow: var(--gj-ring-primary);
}
.wpcf7 .wpcf7-list-item { margin: 0 1.25rem 0 0; }
.wpcf7 input[type="checkbox"],
.wpcf7 input[type="radio"] { width: 1.1rem; height: 1.1rem; accent-color: var(--gj-color-primary); }
.wpcf7 .gj-cf-submit { text-align: center; margin: var(--gj-space-xs) 0 0; }
.wpcf7 input[type="submit"] {
  appearance: none;
  min-width: min(320px, 100%);
  padding: 1.05rem 2.5rem;
  border: 0;
  border-radius: var(--gj-radius-pill);
  background: var(--gj-gradient-accent);
  color: var(--gj-color-on-accent);
  font-family: inherit;
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: .08em;
  cursor: pointer;
  box-shadow: var(--gj-shadow-accent);
  transition: transform var(--gj-duration-fast) var(--gj-ease), box-shadow var(--gj-duration) var(--gj-ease), opacity var(--gj-duration) var(--gj-ease);
}
.wpcf7 input[type="submit"]:hover { transform: translateY(-2px); }
.wpcf7 input[type="submit"]:focus-visible { outline: none; box-shadow: var(--gj-shadow-accent), var(--gj-ring-accent); }
.wpcf7 input[type="submit"]:disabled { opacity: .6; cursor: wait; transform: none; }
.wpcf7 .wpcf7-spinner { display: block; margin: .75rem auto 0; }
.wpcf7 input.wpcf7-not-valid,
.wpcf7 select.wpcf7-not-valid,
.wpcf7 textarea.wpcf7-not-valid { border-color: var(--gj-color-danger); background: #FDF3F2; }
.wpcf7 .wpcf7-not-valid-tip { margin-top: .35rem; font-size: var(--gj-fs-small); color: var(--gj-color-danger); }
.wpcf7 form .wpcf7-response-output {
  margin: 0;
  padding: .9rem 1.1rem;
  border: 0;
  border-left: 4px solid var(--gj-color-primary);
  border-radius: var(--gj-radius-md);
  background: var(--gj-color-primary-light);
  font-size: var(--gj-fs-small);
  color: var(--gj-color-text);
}
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.spam .wpcf7-response-output { border-left-color: var(--gj-color-danger); background: #FDF3F2; }
.wpcf7 form.sent .wpcf7-response-output { border-left-color: var(--gj-color-success); background: #EAF6EF; }
.gj-cf-note { margin: 0; font-size: var(--gj-fs-micro); color: var(--gj-color-text-sub); text-align: center; }

/* ===== Mobile nav panel (hamburger expanded) ===== */
@media (max-width: 959px) {
  .gj-nav {
    position: fixed;
    /* ヘッダーの backdrop-filter が containing block になるため、高さは画面基準で明示する */
    inset: 72px 0 auto 0;
    height: calc(100vh - 72px);
    height: calc(100dvh - 72px);
    background: var(--gj-color-surface);
    z-index: calc(var(--gj-z-header) - 1);
    padding: var(--gj-space-xl);
    overflow-y: auto;
    /* 旧実装は transform: translateX(100%) でパネルを画面右外へ退避していたが、
       position:fixed の要素は overflow-x:clip でもクリップされず、画面右に
       はみ出した分だけ横スクロールが発生していた（モバイルのみ顕著・本不具合の真因）。
       右外に出さず、その場（画面内）に置いたまま opacity+visibility で隠す方式に変更。 */
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--gj-duration) var(--gj-ease),
                visibility 0s linear var(--gj-duration);
    display: block;
  }
  body.gj-nav-open .gj-nav {
    opacity: 1;
    visibility: visible;
    transition: opacity var(--gj-duration) var(--gj-ease),
                visibility 0s;
  }
  .gj-nav__list {
    flex-direction: column;
    gap: var(--gj-space-lg);
  }
  .gj-nav__link {
    font-size: var(--gj-fs-body-lg);
    display: block;
    padding-block: var(--gj-space-sm);
    border-bottom: 1px solid var(--gj-color-border);
  }
}

/* ============================================================
 * gijin 追加セクション（料金 / 流れ / エリア / 汎用）
 * ============================================================ */

/* 中央寄せ CTA（「すべて見る」等） */
.gj-center-cta {
  margin-top: var(--gj-space-xl);
  text-align: center;
}

/* ページヘッダーのリード文 */
.gj-page-header__lead {
  margin-top: var(--gj-space-sm);
  color: var(--gj-color-text-sub);
}

/* ===== 料金・プラン ===== */
.gj-price-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--gj-space-lg);
}
.gj-price-card {
  position: relative;
  padding: var(--gj-space-xl) var(--gj-space-lg);
  text-align: center;
  background: var(--gj-color-surface);
  border: 1px solid var(--gj-color-border);
  border-radius: var(--gj-radius-lg);
  box-shadow: var(--gj-shadow-sm);
  transition: transform var(--gj-duration) var(--gj-ease), box-shadow var(--gj-duration) var(--gj-ease);
}
.gj-price-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--gj-gradient-primary);
  border-radius: var(--gj-radius-lg) var(--gj-radius-lg) 0 0;
}
.gj-price-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--gj-shadow-lg);
}
.gj-price-card__label {
  font-size: var(--gj-fs-body-lg);
  font-weight: 700;
  color: var(--gj-color-text);
}
.gj-price-card__value {
  margin-top: var(--gj-space-sm);
  font-family: var(--gj-font-en), var(--gj-font-jp);
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--gj-color-primary-dark);
}
.gj-price-note {
  max-width: 760px;
  margin: var(--gj-space-lg) auto 0;
  font-size: var(--gj-fs-small);
  color: var(--gj-color-text-sub);
  text-align: center;
}

/* ===== 流れ（旧スタイル・デザイン層で上書き） ===== */
.gj-flow {
  display: grid;
  gap: var(--gj-space-md);
  counter-reset: gj-flow;
}
@media (min-width: 768px) {
  .gj-flow {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gj-space-lg);
  }
}
.gj-flow__step {
  position: relative;
  display: flex;
  gap: var(--gj-space-md);
  align-items: flex-start;
  padding: var(--gj-space-lg);
  background: var(--gj-color-surface);
  border: 1px solid var(--gj-color-border);
  border-radius: var(--gj-radius-lg);
  box-shadow: var(--gj-shadow-sm);
}
.gj-flow__num {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  font-family: var(--gj-font-en);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gj-color-white);
  background: var(--gj-gradient-primary);
  border-radius: var(--gj-radius-pill);
  box-shadow: var(--gj-shadow-primary);
}
.gj-flow__title {
  font-size: var(--gj-fs-body-lg);
  font-weight: 700;
  margin-bottom: 0.25em;
}
.gj-flow__desc {
  font-size: var(--gj-fs-small);
  color: var(--gj-color-text-sub);
}

/* ===== 対応エリアタグ ===== */
.gj-area-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gj-space-sm);
  justify-content: center;
  margin-bottom: var(--gj-space-2xl);
}
.gj-area-tag {
  padding: 0.4em 1.1em;
  font-size: var(--gj-fs-small);
  font-weight: 600;
  color: var(--gj-color-primary-dark);
  background: var(--gj-color-primary-light);
  border-radius: var(--gj-radius-pill);
}


/* =========================================================================
 * gijin — Header nav polish
 * wp_nav_menu の実メニューはリンクに .gj-nav__link が付かないため .gj-nav__list a を対象に。
 * ラベルの途中折り返し（「会社概/要」等）を防ぎ、1行に収める。
 * ========================================================================= */
.gj-nav__list a,
.gj-nav__link,
.gj-logo__name,
.gj-logo__name--with-image { white-space: nowrap; }

@media (min-width: 960px) {
  .gj-nav { margin-inline: var(--gj-space-md); }
  .gj-nav__list {
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: clamp(0.7rem, 1.5vw, 1.35rem);
  }
  .gj-nav__list > li { flex: 0 0 auto; }
  /* 実メニューのリンクをフォールバックと同じ見た目に揃える */
  .gj-nav__list a {
    color: var(--gj-color-text);
    font-size: var(--gj-fs-small);
    font-weight: 500;
    transition: color var(--gj-duration) var(--gj-ease);
  }
  .gj-nav__list a:hover,
  .gj-nav__list .current-menu-item > a { color: var(--gj-color-primary); }
}


/* =========================================================================
 * gijin — Recruit page（採用・募集要項カード）
 * ========================================================================= */
.gj-recruit-catch {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--gj-color-primary);
  line-height: 1.4;
  margin-bottom: var(--gj-space-md);
}
.gj-recruit-lead {
  color: var(--gj-color-text-sub);
  line-height: 2;
  max-width: 640px;
  margin-inline: auto;
}

.gj-jobs {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gj-space-lg);
  max-width: 820px;
  margin-inline: auto;
}
.gj-job-card {
  background: var(--gj-color-surface);
  border: 1px solid var(--gj-color-border);
  border-radius: var(--gj-radius-lg);
  box-shadow: var(--gj-shadow-md);
  padding: var(--gj-space-xl);
  border-top: 4px solid var(--gj-color-primary);
}
.gj-job-card__head {
  display: flex;
  align-items: center;
  gap: var(--gj-space-md);
  flex-wrap: wrap;
  margin-bottom: var(--gj-space-md);
  padding-bottom: var(--gj-space-md);
  border-bottom: 1px solid var(--gj-color-border);
}
.gj-job-card__title {
  font-size: var(--gj-fs-h3);
  color: var(--gj-color-primary);
  margin: 0;
}
.gj-job-card__type {
  display: inline-block;
  padding: 0.25em 0.9em;
  font-size: var(--gj-fs-small);
  font-weight: 700;
  color: var(--gj-color-on-accent);
  background: var(--gj-color-accent);
  border-radius: var(--gj-radius-pill);
}
.gj-job-meta {
  display: grid;
  gap: var(--gj-space-sm);
}
.gj-job-meta > div {
  display: grid;
  grid-template-columns: 6.5em 1fr;
  gap: var(--gj-space-md);
  align-items: start;
}
.gj-job-meta dt {
  font-weight: 700;
  color: var(--gj-color-text);
  font-size: var(--gj-fs-small);
}
.gj-job-meta dd {
  margin: 0;
  color: var(--gj-color-text-sub);
  line-height: 1.8;
}
@media (max-width: 560px) {
  .gj-job-meta > div { grid-template-columns: 1fr; gap: 0.15em; }
  .gj-job-meta dt { color: var(--gj-color-primary); }
}


/* =========================================================================
 * gijin — Header CTA fix
 * 右側の電話番号（024-000-0000）と「電話で相談」ラベルが折り返す問題を防ぐ。
 * tel/ボタン/ロゴは縮まない＆折り返さない。余白はナビ（flex:1）が吸収する。
 * ========================================================================= */
.gj-header__tel,
.gj-header__tel small,
.gj-header__cta .gj-btn {
  white-space: nowrap;
}
@media (min-width: 960px) {
  .gj-logo,
  .gj-header__cta,
  .gj-header__tel,
  .gj-header__cta .gj-btn {
    flex-shrink: 0;
  }
}


/* MESSAGE 帯の代表者写真（Customizer「代表挨拶」の代表者写真） */
.gj-message__photo {
  width: clamp(140px, 20vw, 184px);
  height: clamp(140px, 20vw, 184px);
  margin: 0 auto var(--gj-space-lg);
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}
.gj-message__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


/* カスタムロゴ画像 + 社名テキスト（fujin2 方式のヘッダーロゴ） */
.gj-logo--image { text-decoration: none; }
a.gj-logo__name--with-image { color: var(--gj-color-text); text-decoration: none; }
a.gj-logo__name--with-image:hover { color: var(--gj-color-primary); }
/* スマホのお問い合わせ帯とフッター（1.1.1）
   ボタンが「2つ＋1つ」で落ち着かず、電話が枠線だけで一番弱かった。
   電話を最上段・全幅・塗りに、残りは下段で等幅に並べる */
.gj-footer-cta .gj-btn--tel .gj-icon { width: 1.1em; height: 1.1em; }

@media (max-width: 719px) {
  .gj-footer-cta { padding-block: var(--gj-space-3xl) var(--gj-space-2xl); }
  .gj-footer-cta h2 { margin-bottom: var(--gj-space-md); }
  .gj-footer-cta__lead { margin-bottom: var(--gj-space-xl); }
  .gj-footer-cta__actions { gap: var(--gj-space-sm); }
  .gj-footer-cta__actions > .gj-btn {
    flex: 1 1 0;
    min-width: 0;
    padding-inline: var(--gj-space-md);
  }
  .gj-footer-cta__actions > .gj-btn--tel {
    flex-basis: 100%;
    order: -1;
    gap: var(--gj-space-xs);
    background: var(--gj-color-surface);
    color: var(--gj-color-primary-darker);
    border-color: var(--gj-color-white);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  }

  /* フッター：メニューは2列、各行は指で押せる高さに */
  .gj-footer { padding-block-start: var(--gj-space-2xl); }
  .gj-footer__grid { gap: var(--gj-space-xl); }
  .gj-footer__list--menu {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: var(--gj-space-lg);
  }
  .gj-footer__list li { margin-bottom: 0; }
  .gj-footer__list a {
    display: flex;
    align-items: center;
    min-height: 44px;
  }
}

/* ===== セクション見出しのリード文（1.1.2） =====
   中央寄せは見出しとしての意図だが、スマホで3行以上になると行頭が揃わず読みにくく、
   最後の行に「ートします。」のような断片だけが残っていた。
   スマホは左寄せ、PCは中央のまま行の長さを揃えて「す。」だけの行を作らない。 */
/* 本文全体：最後の行が「い。」「す。」だけになるのを避ける（非対応ブラウザは従来どおり） */
p, li, dd, figcaption { text-wrap: pretty; }
.gj-section-lead { text-wrap: balance; }
@media (max-width: 720px) {
  .gj-section-lead { text-align: left; text-wrap: pretty; }
}


/* =========================================================================
 * gijin — デザイン層（ここから下が gijin 独自）
 * 上の共通スタイルを、やわらかい・弾む・丸い見た目に上書きする。
 * ========================================================================= */

/* ===== 色（コース・カード・ラベルの6色） =====
   .gj-tone--{name} を付けた要素の中では --c（色）と --c-deep（濃い色・影）が使える */
.gj-tone--sky   { --c: var(--gj-c-sky);   --c-deep: #2F8FD0; --c-soft: #E4F3FC; }
.gj-tone--coral { --c: var(--gj-c-coral); --c-deep: #D9584A; --c-soft: #FFE8E4; }
.gj-tone--lilac { --c: var(--gj-c-lilac); --c-deep: #7258D6; --c-soft: #EEE9FD; }
.gj-tone--mint  { --c: var(--gj-c-mint);  --c-deep: #23A983; --c-soft: #E1F7EF; }
.gj-tone--sun   { --c: var(--gj-c-sun);   --c-deep: #E0A100; --c-soft: #FFF5D6; }
.gj-tone--pink  { --c: var(--gj-c-pink);  --c-deep: #E0648F; --c-soft: #FFE9F1; }

body { font-weight: 500; overflow-x: hidden; }
h1, h2, h3, h4 { font-weight: 900; }

/* ===== ボタン：まるく、下に厚みのある影。押すと沈む ===== */
.gj-btn {
  border-radius: var(--gj-radius-pill);
  font-weight: 900;
  letter-spacing: .02em;
  overflow: visible;
  transition: transform .2s var(--gj-spring), box-shadow .2s var(--gj-ease), background-color .2s;
}
.gj-btn::before, .gj-btn::after { display: none; }
.gj-btn:hover { transform: translateY(-3px) scale(1.03); }
.gj-btn:active { transform: translateY(4px); }
.gj-btn--primary { background: var(--gj-color-primary); color: #fff; box-shadow: 0 6px 0 var(--gj-color-primary-dark); border: 0; }
.gj-btn--primary:active { box-shadow: 0 2px 0 var(--gj-color-primary-dark); }
.gj-btn--accent { background: var(--gj-color-accent); color: #fff; box-shadow: 0 6px 0 var(--gj-color-accent-dark); border: 0; }
.gj-btn--accent:active { box-shadow: 0 2px 0 var(--gj-color-accent-dark); }
.gj-btn--outline { background: var(--gj-color-surface); color: var(--gj-color-text); border: 0; box-shadow: 0 6px 0 #D6DBE4; }
.gj-btn--outline:hover { color: var(--gj-color-primary); }
.gj-btn--outline:active { box-shadow: 0 2px 0 #D6DBE4; }
.gj-btn--line { background: var(--gj-color-line); color: #fff; box-shadow: 0 6px 0 #04A045; border: 0; }
.gj-btn--lg { min-height: 58px; padding: 1rem 2.2rem; font-size: 1.08rem; }
.gj-btn:focus-visible { outline: 3px solid var(--gj-c-sun); outline-offset: 4px; }

/* 呼吸するように、ときどき弾む（無料体験ボタン） */
.gj-breath { animation: gj-breath 2.6s ease-in-out infinite; }
.gj-breath:hover { animation: none; }
@keyframes gj-breath {
  0%, 70%, 100% { transform: scale(1); }
  78% { transform: scale(1.07, .94); }
  86% { transform: scale(.97, 1.04); }
  93% { transform: scale(1.02, .99); }
}

/* ===== セクション見出し ===== */
.gj-section-header { text-align: center; margin-bottom: clamp(2rem, 5vw, 3rem); }
.gj-section-eyebrow {
  display: inline-block;
  padding: .2rem .9rem;
  border-radius: var(--gj-radius-pill);
  background: var(--gj-color-primary-50);
  color: var(--gj-color-primary);
  font-family: var(--gj-font-en);
  font-weight: 900;
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.gj-section-title {
  position: relative;
  margin-top: .6rem;
  font-size: var(--gj-fs-h2);
  font-weight: 900;
  letter-spacing: .02em;
}
.gj-section-title::after {
  content: "";
  display: block;
  width: 64px;
  height: 12px;
  margin: .7rem auto 0;
  background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 12'%3E%3Cpath d='M2 6c6-6 10-6 15 0s10 6 15 0 10-6 15 0 10 6 15 0' fill='none' stroke='%23FF7A6B' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E");
}
.gj-section-lead { max-width: 640px; margin: 1rem auto 0; color: var(--gj-color-text-sub); }
.gj-section--alt { background: var(--gj-color-bg-alt); }
.gj-section--rounded { border-radius: clamp(28px, 5vw, 56px); margin-inline: clamp(0px, 1.5vw, 16px); }
.gj-section--tight { padding-bottom: 0; }
.gj-center-cta { margin-top: clamp(2rem, 4vw, 2.75rem); text-align: center; }
.gj-editor-note {
  padding: 1rem 1.25rem;
  border: 2px dashed var(--gj-color-border);
  border-radius: var(--gj-radius-lg);
  color: var(--gj-color-text-sub);
  text-align: center;
  background: var(--gj-color-surface);
}

/* ===== ヘッダー ===== */
.gj-header { background: rgba(255, 250, 240, .88); border-bottom: 0; }
.gj-header.is-scrolled { background: rgba(255, 250, 240, .95); box-shadow: 0 6px 24px rgba(35, 50, 74, .08); }
.gj-logo, .gj-logo__name { font-weight: 900; color: var(--gj-color-text); }
.gj-logo__mark { width: 42px; height: 42px; background: none; color: var(--gj-c-sky); box-shadow: none; border-radius: 50%; }
.gj-logo__mark svg { width: 42px; height: 42px; display: block; }
.gj-nav__list a, .gj-nav__link { color: var(--gj-color-text-sub); font-weight: 700; }
.gj-nav__list a:hover, .gj-nav__link:hover { color: var(--gj-color-primary); }
.gj-header__tel { color: var(--gj-color-text); font-weight: 900; }
.gj-header__tel small { color: var(--gj-color-text-sub); font-weight: 700; }

/* ===== 下層ページの見出し帯 ===== */
.gj-page-header {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 7vw, 4.5rem) clamp(4rem, 8vw, 5.5rem);
  background: var(--gj-gradient-hero);
  color: var(--gj-color-text);
  text-align: center;
}
.gj-page-header::before {
  content: "";
  position: absolute;
  width: 160px; height: 160px;
  top: -40px; right: 8%;
  border-radius: 50%;
  background: var(--gj-c-sun);
  opacity: .55;
}
.gj-page-header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 48px;
  background: no-repeat bottom/100% 100% url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 48' preserveAspectRatio='none'%3E%3Cpath d='M0 24C240 48 480 0 720 20s480 24 720 4V48H0z' fill='%23FFFAF0'/%3E%3C/svg%3E");
}
.gj-page-header__eyebrow {
  display: inline-block;
  padding: .2rem .9rem;
  border-radius: var(--gj-radius-pill);
  background: var(--gj-color-surface);
  color: var(--gj-color-primary);
  font-weight: 900;
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.gj-page-header__title { margin-top: .6rem; color: var(--gj-color-text); font-weight: 900; }
.gj-page-header__lead { color: var(--gj-color-text-sub); }

/* ===== ① ヒーロー ===== */
.gj-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: clamp(560px, 92vh, 860px);
  padding: clamp(3rem, 8vw, 5rem) 0 clamp(7rem, 12vw, 9rem);
  background: var(--gj-gradient-hero);
  color: var(--gj-color-text);
}
.gj-hero::before, .gj-hero::after { display: none; }
.gj-hero .gj-container { position: relative; z-index: 2; }
.gj-hero__grid { display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; }
.gj-hero--center .gj-hero__inner { text-align: center; max-width: 920px; margin-inline: auto; }
.gj-hero__eyebrow {
  display: inline-block;
  padding: .35rem 1.1rem;
  margin-bottom: var(--gj-space-lg);
  border: 0;
  border-radius: var(--gj-radius-pill);
  background: var(--gj-color-surface);
  color: var(--gj-color-primary);
  font-size: var(--gj-fs-small);
  font-weight: 900;
  box-shadow: 0 4px 0 rgba(47, 143, 208, .15);
  animation: gj-pop-in .7s var(--gj-spring) both;
}
.gj-hero__eyebrow::before { display: none; }
.gj-hero__title {
  font-size: var(--gj-fs-display);
  line-height: 1.32;
  letter-spacing: .02em;
  color: var(--gj-color-text);
  text-shadow: none;
  animation: none;
}
.gj-hero__title span:not(.gj-char) { color: var(--gj-color-accent); }
.gj-hero__lead {
  margin-top: var(--gj-space-lg);
  font-size: clamp(1rem, 2.1vw, 1.15rem);
  color: var(--gj-color-text-sub);
  text-shadow: none;
  max-width: 640px;
  animation: gj-fade-up .8s ease-out .9s both;
}
.gj-hero--center .gj-hero__lead { margin-inline: auto; }

/* 1文字ずつ弾んで出る（main.js が .gj-char に分けて --i を振る） */
.gj-char {
  display: inline-block;
  opacity: 0;
  transform: translateY(.9em) scale(.4) rotate(-8deg);
  animation: gj-char-in .9s var(--gj-spring) forwards;
  animation-delay: calc(var(--i) * 45ms + 150ms);
}
@keyframes gj-char-in {
  60%  { opacity: 1; transform: translateY(-.12em) scale(1.12, .9) rotate(2deg); }
  80%  { transform: translateY(.03em) scale(.96, 1.05) rotate(-1deg); }
  100% { opacity: 1; transform: none; }
}

.gj-hero__chips { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: var(--gj-space-lg); }
.gj-hero--center .gj-hero__chips { justify-content: center; }
.gj-chip {
  padding: .3rem 1rem;
  border-radius: var(--gj-radius-pill);
  background: var(--c, var(--gj-c-sky));
  color: #fff;
  font-weight: 900;
  font-size: .95rem;
  box-shadow: 0 4px 0 var(--c-deep, #2F8FD0);
  opacity: 0;
  transform: scale(0);
  animation: gj-pop-in .7s var(--gj-spring) forwards;
  animation-delay: calc(1.2s + var(--i, 0) * 100ms);
}
.gj-chip.gj-tone--sun { color: var(--gj-color-text); }
@keyframes gj-pop-in { from { opacity: 0; transform: scale(0); } to { opacity: 1; transform: scale(1); } }

.gj-hero__actions {
  display: flex; flex-wrap: wrap; gap: var(--gj-space-md);
  margin-top: var(--gj-space-xl);
  animation: gj-fade-up .8s ease-out 1.6s both;
}
.gj-hero--center .gj-hero__actions { justify-content: center; }
@keyframes gj-fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* 写真ありのヒーロー：右側にぷよっとした枠 */
.gj-hero__photo { position: relative; display: none; }
.gj-hero__photo-frame {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 46% 54% 58% 42% / 44% 46% 54% 56%;
  border: 8px solid #fff;
  box-shadow: 0 24px 50px rgba(35, 50, 74, .15);
  animation: gj-blob-frame 10s ease-in-out infinite, gj-pop-in .9s var(--gj-spring) .4s both;
}
.gj-hero__photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.gj-hero__photo-dot { position: absolute; border-radius: 50%; background: var(--c); }
.gj-hero__photo-dot:nth-of-type(1) { width: 70px; height: 70px; top: -14px; right: 6%; animation: gj-float 5s ease-in-out infinite; }
.gj-hero__photo-dot:nth-of-type(2) { width: 44px; height: 44px; bottom: 4%; left: -10px; animation: gj-float 6s ease-in-out -2s infinite; }
@keyframes gj-blob-frame {
  0%, 100% { border-radius: 46% 54% 58% 42% / 44% 46% 54% 56%; }
  50% { border-radius: 56% 44% 42% 58% / 54% 40% 60% 46%; }
}
@media (min-width: 960px) {
  .gj-hero--photo .gj-hero__grid { grid-template-columns: 1.15fr 1fr; }
  .gj-hero__photo { display: block; }
}

/* 背景の図形：ふわふわ浮く＋スクロールで奥行き（main.js が --py を更新） */
.gj-hero__shapes { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.gj-shape { position: absolute; display: block; transform: translateY(var(--py, 0px)); }
.gj-shape::before { content: ""; position: absolute; inset: 0; animation: gj-float 6s ease-in-out infinite; }
.gj-shape--circle::before { border-radius: 50%; background: var(--gj-c-sun); }
.gj-shape--ring::before { border-radius: 50%; border: 14px solid var(--gj-c-mint); }
.gj-shape--blob::before {
  border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%;
  background: var(--gj-c-coral);
  opacity: .85;
  animation: gj-blob 9s ease-in-out infinite;
}
.gj-shape--star::before {
  background: var(--gj-c-lilac);
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  animation: gj-spin 14s linear infinite;
}
.gj-shape--squiggle::before {
  background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 30'%3E%3Cpath d='M4 15c10-14 20-14 28 0s18 14 28 0 18-14 28 0 18 14 28 0' fill='none' stroke='%232F8FD0' stroke-width='6' stroke-linecap='round'/%3E%3C/svg%3E");
}
.gj-shape.s1 { width: 110px; height: 110px; top: 12%; left: 6%; }
.gj-shape.s2 { width: 70px;  height: 70px;  top: 18%; right: 11%; }
.gj-shape.s3 { width: 180px; height: 160px; bottom: 16%; left: -40px; }
.gj-shape.s4 { width: 120px; height: 120px; bottom: 22%; right: 5%; }
.gj-shape.s5 { width: 140px; height: 36px;  bottom: 13%; left: 22%; }
.gj-shape.s6 { width: 46px;  height: 46px;  top: 70%; right: 24%; }
.gj-shape.s7 { width: 40px;  height: 40px;  top: 9%;  left: 42%; }
.gj-shape.s2::before { animation-duration: 11s; }
.gj-shape.s6::before { animation-delay: -2s; }
.gj-hero--photo .gj-shape.s4, .gj-hero--photo .gj-shape.s6 { display: none; }
@keyframes gj-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -18px; } }
@keyframes gj-spin { to { rotate: 360deg; } }
@keyframes gj-blob {
  0%, 100% { border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%; }
  50% { border-radius: 58% 42% 38% 62% / 57% 39% 61% 43%; }
}
.gj-wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(60px, 8vw, 110px); z-index: 2; fill: var(--gj-color-bg); }

@media (max-width: 720px) {
  /* スマホは文字とボタンに重ならないよう、図形を小さく・端へ・少なく */
  .gj-shape.s3, .gj-shape.s5, .gj-shape.s6, .gj-shape.s7 { display: none; }
  .gj-shape.s1 { width: 70px; height: 70px; top: 7%; left: -18px; }
  .gj-shape.s2 { width: 44px; height: 44px; top: 9%; right: 6%; }
  .gj-shape.s4 { width: 76px; height: 76px; bottom: 9%; right: -22px; }
  .gj-shape.s4::before { border-width: 10px; }
  .gj-hero__actions .gj-btn { width: 100%; max-width: 360px; }
}

/* ===== ② 教室のようす（流れる写真カード） ===== */
.gj-gallery { padding: clamp(1.5rem, 4vw, 2.5rem) 0 0; overflow: hidden; }
.gj-marquee { overflow: hidden; padding: .6rem 0; }
.gj-marquee__track { display: flex; gap: clamp(12px, 1.6vw, 20px); width: max-content; will-change: transform; }
.gj-photo-card {
  position: relative;
  flex: 0 0 auto;
  width: clamp(190px, 22vw, 290px);
  aspect-ratio: 4 / 5;
  margin: 0;
  overflow: hidden;
  border-radius: var(--gj-radius-xl);
  background: linear-gradient(150deg, var(--c-soft, #E4F3FC) -40%, var(--c, var(--gj-c-sky)) 70%);
  transition: transform .4s var(--gj-spring);
}
.gj-photo-card:hover { transform: rotate(-2deg) scale(1.04); }
.gj-photo-card img { width: 100%; height: 100%; object-fit: cover; }
.gj-photo-card__icon {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  color: rgba(255, 255, 255, .92);
}
.gj-photo-card__icon .gj-icon { width: 38%; height: 38%; stroke-width: 1.6; }
.gj-photo-card figcaption {
  position: absolute; left: 14px; bottom: 14px; right: 14px;
  width: fit-content;
  padding: .25rem .8rem;
  border-radius: var(--gj-radius-pill);
  background: rgba(255, 255, 255, .9);
  color: var(--gj-color-text);
  font-weight: 900;
  font-size: .9rem;
}

/* ===== ③ 選ばれる理由 ===== */
.gj-reasons { display: grid; gap: clamp(1rem, 2.5vw, 1.75rem); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.gj-reason {
  position: relative;
  padding: 2rem 1.6rem 1.8rem;
  border-radius: var(--gj-radius-xl);
  background: var(--gj-color-surface);
  border: 3px solid var(--c);
  box-shadow: 0 8px 0 var(--c);
  text-align: center;
}
.gj-reason__num {
  position: absolute; top: 14px; left: 18px;
  color: var(--c-deep);
  font-weight: 900;
  font-size: .85rem;
  letter-spacing: .08em;
}
.gj-reason__icon {
  display: inline-grid; place-items: center;
  width: 76px; height: 76px;
  border-radius: 50%;
  background: var(--c-soft);
  color: var(--c-deep);
}
.gj-reason__icon .gj-icon { width: 38px; height: 38px; }
.gj-reason__title { margin-top: 1rem; font-size: 1.25rem; }
.gj-reason__desc { margin-top: .5rem; color: var(--gj-color-text-sub); text-align: left; }

/* 画面に入ったら、ぷるんと出る（main.js が .is-in を付ける。--d で順番をずらす） */
.gj-pop { opacity: 0; transform: translateY(40px) scale(.7); }
.gj-pop.is-in { animation: gj-pop .9s var(--gj-spring) forwards; animation-delay: calc(var(--d, 0) * 110ms); }
@keyframes gj-pop {
  60%  { opacity: 1; transform: translateY(-6px) scale(1.06, .95); }
  80%  { transform: translateY(2px) scale(.98, 1.03); }
  100% { opacity: 1; transform: none; }
}
/* カードにマウスを乗せると、ぷるっと揺れる */
@keyframes gj-jelly {
  0% { transform: scale(1); }
  30% { transform: scale(1.06, .94); }
  50% { transform: scale(.96, 1.05); }
  70% { transform: scale(1.02, .98); }
  100% { transform: scale(1); }
}
.gj-reason:hover, .gj-flow__step:hover { animation: gj-jelly .7s var(--gj-spring); }

/* ===== ⑤ 数字 ===== */
.gj-numbers {
  position: relative;
  padding: clamp(3.5rem, 7vw, 5rem) 0;
  background: var(--gj-color-primary);
  color: #fff;
  border-radius: clamp(28px, 5vw, 56px);
  margin: clamp(2.5rem, 6vw, 4rem) clamp(0px, 1.5vw, 16px);
  overflow: hidden;
}
.gj-numbers::before, .gj-numbers::after {
  content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .12);
}
.gj-numbers::before { width: 220px; height: 220px; top: -90px; left: -60px; }
.gj-numbers::after { width: 160px; height: 160px; bottom: -70px; right: 6%; }
.gj-numbers__grid { position: relative; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); max-width: 980px; margin-inline: auto; }
.gj-number { padding: 1.6rem 1rem; border-radius: var(--gj-radius-xl); background: rgba(255, 255, 255, .15); text-align: center; }
.gj-number__value { font-size: clamp(2.8rem, 7.5vw, 4.4rem); font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; }
.gj-number__unit { margin-left: .15em; font-size: .38em; }
.gj-number__label { margin-top: .6rem; font-weight: 700; }

/* ===== ⑥ 教室長あいさつ ===== */
.gj-greet__card {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  max-width: 980px;
  margin-inline: auto;
  padding: clamp(1.75rem, 5vw, 3rem);
  border-radius: var(--gj-radius-xl);
  background: var(--gj-color-surface);
  box-shadow: var(--gj-shadow-md);
}
.gj-greet__photo {
  width: clamp(150px, 26vw, 240px);
  aspect-ratio: 1;
  margin-inline: auto;
  overflow: hidden;
  border-radius: 50%;
  border: 6px solid var(--gj-color-accent-light);
}
.gj-greet__photo img { width: 100%; height: 100%; object-fit: cover; }
.gj-greet__title { margin-top: .6rem; font-size: clamp(1.4rem, 3.2vw, 1.9rem); }
.gj-greet__title span { color: var(--gj-color-accent); }
.gj-greet__text { margin-top: 1rem; color: var(--gj-color-text-sub); }
.gj-greet__sign { margin-top: 1rem; text-align: right; font-weight: 900; }
@media (min-width: 760px) {
  .gj-greet__card:has(.gj-greet__photo) { grid-template-columns: auto 1fr; }
}

/* ===== ⑦ 講師 ===== */
.gj-staff-card {
  border-radius: var(--gj-radius-xl);
  background: var(--gj-color-surface);
  box-shadow: var(--gj-shadow-md);
  border: 0;
  text-align: center;
  transition: transform .35s var(--gj-spring);
}
.gj-staff-card:hover { transform: translateY(-6px) rotate(-1deg); }
.gj-staff-card__photo {
  width: 128px; height: 128px;
  margin: 1.6rem auto .8rem;
  overflow: hidden;
  border-radius: 50%;
  background: var(--gj-color-primary-50);
  color: var(--gj-color-primary);
  font-weight: 900;
  display: grid; place-items: center;
  border: 5px solid var(--gj-color-primary-light);
  font-size: .9rem;
  padding: .5rem;
}
.gj-staff-card__photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.gj-staff-card__name { font-size: 1.15rem; font-weight: 900; }
.gj-staff-card__role { margin-bottom: 1.4rem; color: var(--gj-color-text-sub); font-size: .9rem; }

/* ===== ⑧ 保護者・生徒の声 ===== */
.gj-reviews { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.gj-review {
  position: relative;
  padding: 2.2rem 1.6rem 1.4rem;
  border-radius: var(--gj-radius-xl);
  background: var(--gj-color-surface);
  border: 0;
  box-shadow: var(--gj-shadow-md);
}
.gj-review:nth-child(3n+1) { --c: var(--gj-c-sky); }
.gj-review:nth-child(3n+2) { --c: var(--gj-c-coral); }
.gj-review:nth-child(3n+3) { --c: var(--gj-c-mint); }
.gj-review__quote {
  position: absolute; top: -18px; left: 20px;
  display: grid; place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--c);
  color: #fff;
  font-size: 2.2rem;
  line-height: 1;
  padding-top: .8rem;
}
.gj-review__text { line-height: 1.9; }
.gj-review__meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem; margin-top: 1rem; color: var(--gj-color-text-sub); font-size: .85rem; font-weight: 700; }

/* ===== ⑨ 入会までの流れ ===== */
.gj-flow { display: grid; gap: clamp(1rem, 2.5vw, 1.5rem); grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); counter-reset: none; padding: 0; }
.gj-flow__step {
  position: relative;
  display: block;
  padding: 2rem 1.4rem 1.6rem;
  border-radius: var(--gj-radius-xl);
  background: var(--c-soft);
  text-align: center;
  border: 0;
}
.gj-flow__step::before, .gj-flow__step::after { display: none; }
.gj-flow__num {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  padding: .15rem .9rem;
  border-radius: var(--gj-radius-pill);
  background: var(--c);
  color: #fff;
  font-weight: 900;
  font-size: .8rem;
  letter-spacing: .08em;
  white-space: nowrap;
  width: auto; height: auto;
}
.gj-flow__step.gj-tone--sun .gj-flow__num { color: var(--gj-color-text); }
.gj-flow__icon {
  display: inline-grid; place-items: center;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--gj-color-surface);
  color: var(--c-deep);
}
.gj-flow__icon .gj-icon { width: 32px; height: 32px; }
.gj-flow__title { margin-top: .8rem; font-size: 1.15rem; }
.gj-flow__desc { margin-top: .4rem; color: var(--gj-color-text-sub); font-size: .95rem; text-align: left; }

/* ===== ⑩ 講師募集の帯 ===== */
.gj-recruit-band {
  margin: clamp(2.5rem, 6vw, 4rem) clamp(0px, 1.5vw, 16px) 0;
  padding: clamp(3rem, 6vw, 4rem) 0;
  border-radius: clamp(28px, 5vw, 56px);
  background: var(--gj-c-sun);
  text-align: center;
}
.gj-recruit-band .gj-section-eyebrow { background: var(--gj-color-surface); }
.gj-recruit-band__title { margin-top: .6rem; font-size: clamp(1.4rem, 3.4vw, 2rem); }
.gj-recruit-band__lead { margin: .8rem auto 1.6rem; max-width: 620px; }

/* ===== アクセス・お知らせ ===== */
.gj-access__map, .gj-lazy-map { border-radius: var(--gj-radius-xl); overflow: hidden; }
.gj-lazy-map { width: 100%; height: 100%; min-height: 22rem; }
.gj-lazy-map iframe, .gj-access__map iframe { width: 100%; height: 100%; min-height: 22rem; border: 0; display: block; }
.gj-access__info { border-radius: var(--gj-radius-xl); }
.gj-news-list { max-width: 860px; margin-inline: auto; }
.gj-news-item { border-radius: var(--gj-radius-lg); }
.gj-news-item__tag { border-radius: var(--gj-radius-pill); background: var(--gj-color-primary-50); color: var(--gj-color-primary); font-weight: 700; }

/* ===== 料金ページ ===== */
.gj-price__heading { margin: 0 0 1.2rem; font-size: clamp(1.25rem, 2.8vw, 1.6rem); text-align: center; }
.gj-price__heading:not(:first-child) { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.gj-price-table-wrap { overflow-x: auto; border-radius: var(--gj-radius-xl); box-shadow: var(--gj-shadow-md); background: var(--gj-color-surface); }
.gj-price-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.gj-price-table th, .gj-price-table td { padding: 1rem 1.1rem; border-bottom: 1px solid var(--gj-color-border); text-align: left; }
.gj-price-table thead th { background: var(--gj-color-primary-50); color: var(--gj-color-primary-darker, #1B5C8A); font-size: .9rem; }
.gj-price-table tbody tr:last-child th, .gj-price-table tbody tr:last-child td { border-bottom: 0; }
.gj-price-table__course { display: inline-flex; align-items: center; gap: .5rem; color: var(--gj-color-text); font-weight: 900; }
.gj-price-table__course::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--c); }
.gj-price-table__fee { font-weight: 900; color: var(--gj-color-accent-dark); white-space: nowrap; }
.gj-price-cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.gj-price-card { padding: 1.5rem; border-radius: var(--gj-radius-xl); background: var(--c-soft, #fff); border: 0; text-align: center; }
.gj-price-card__label { font-weight: 700; color: var(--gj-color-text-sub); }
.gj-price-card__value { margin-top: .3rem; font-size: 1.5rem; font-weight: 900; color: var(--c-deep, var(--gj-color-text)); }
.gj-price-note { margin-top: 1.25rem; color: var(--gj-color-text-sub); font-size: .9rem; text-align: center; }

/* ===== よくある質問（details / summary） ===== */
.gj-faq details {
  margin-bottom: .9rem;
  border-radius: var(--gj-radius-lg);
  background: var(--gj-color-surface);
  box-shadow: var(--gj-shadow-sm);
  overflow: hidden;
}
.gj-faq summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 1.1rem 3rem 1.1rem 3.2rem;
  font-weight: 900;
}
.gj-faq summary::-webkit-details-marker { display: none; }
.gj-faq summary::before {
  content: "Q";
  position: absolute; left: 1rem; top: 50%; transform: translateY(-50%);
  display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--gj-c-sky); color: #fff; font-size: .9rem;
}
.gj-faq summary::after {
  content: "+";
  position: absolute; right: 1.2rem; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; color: var(--gj-color-primary);
  transition: transform .3s var(--gj-spring);
}
.gj-faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.gj-faq details > p { padding: 0 1.4rem 1.2rem 3.2rem; color: var(--gj-color-text-sub); margin: 0; }

/* ===== 下部の体験申込の帯 ===== */
.gj-footer-cta {
  position: relative;
  overflow: hidden;
  margin: clamp(2.5rem, 6vw, 4rem) clamp(0px, 1.5vw, 16px) 0;
  padding: clamp(3rem, 7vw, 4.5rem) 0;
  border-radius: clamp(28px, 5vw, 56px) clamp(28px, 5vw, 56px) 0 0;
  background: var(--gj-color-accent);
  color: #fff;
  text-align: center;
}
.gj-footer-cta::before, .gj-footer-cta::after { content: ""; position: absolute; border-radius: 50%; }
.gj-footer-cta::before { width: 180px; height: 180px; top: -70px; left: 6%; background: rgba(255, 255, 255, .16); }
.gj-footer-cta::after { width: 90px; height: 90px; bottom: 20px; right: 8%; background: var(--gj-c-sun); opacity: .9; animation: gj-float 6s ease-in-out infinite; }
.gj-footer-cta .gj-container { position: relative; z-index: 1; }
.gj-footer-cta h2 { color: #fff; font-size: clamp(1.6rem, 4vw, 2.4rem); }
.gj-footer-cta__lead { margin: .8rem auto 0; max-width: 620px; color: rgba(255, 255, 255, .95); }
.gj-footer-cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: 1.8rem; }
/* 背景がコーラルの帯では、コーラルのボタンを白地に反転（帯と同色で消えないように） */
.gj-footer-cta .gj-btn--accent { background: var(--gj-color-surface); color: var(--gj-color-accent-dark); box-shadow: 0 6px 0 #F0C9C2; }
.gj-footer-cta .gj-btn--outline { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .8); }

/* ===== フッター ===== */
.gj-footer { position: relative; background: var(--gj-color-text); color: rgba(255, 255, 255, .86); padding-top: clamp(3rem, 6vw, 4rem); }
.gj-footer__wave { position: absolute; top: -1px; left: 0; width: 100%; height: 40px; fill: var(--gj-color-accent); }
.gj-footer__title { color: var(--gj-c-sun); font-weight: 900; }
.gj-footer a { color: rgba(255, 255, 255, .9); }
.gj-footer a:hover { color: #fff; }
.gj-sticky-cta__btn--book { background: var(--gj-color-accent); }
.gj-sticky-cta__btn--tel { color: var(--gj-color-text); }

/* ===== スマホのメニュー（ちらつき防止） =====
   パネル自体は一瞬で不透明に出し、中の項目だけフェードさせる（半透明の間に背景の文字が重ならないように）。
   パネルの上端はヘッダーの真下（main.js が --gj-nav-top を測る）。開いている間は背景をスクロールさせない。 */
@media (max-width: 959px) {
  .gj-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--gj-color-bg); }
  .gj-nav {
    inset: var(--gj-nav-top, 72px) 0 auto 0;
    height: calc(100vh - var(--gj-nav-top, 72px));
    height: calc(100dvh - var(--gj-nav-top, 72px));
    background: var(--gj-color-bg);
    transition: visibility 0s linear .2s;
    opacity: 1;
  }
  body.gj-nav-open .gj-nav { transition: visibility 0s; }
  .gj-nav .gj-nav__list { opacity: 0; transform: translateY(-8px); transition: opacity .2s ease, transform .3s var(--gj-spring); }
  body.gj-nav-open .gj-nav .gj-nav__list { opacity: 1; transform: none; }
  body.gj-nav-open { overflow: hidden; }
  .gj-nav__list a, .gj-nav__link { white-space: normal; font-size: 1.1rem; }
}

/* ===== 動きを減らす設定の閲覧者には、動きをすべて止める ===== */
@media (prefers-reduced-motion: reduce) {
  .gj-char, .gj-chip, .gj-hero__actions, .gj-hero__lead, .gj-hero__eyebrow, .gj-pop, .gj-hero__photo-frame {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
  .gj-shape::before, .gj-breath, .gj-footer-cta::after, .gj-hero__photo-dot { animation: none !important; }
  .gj-marquee { overflow-x: auto; }
}

/* ===== 講師カード：写真が無いときの頭文字・スマホは2列 ===== */
.gj-staff-card__initial {
  display: grid; place-items: center;
  width: 100%; height: 100%;
  border-radius: 50%;
  background: var(--c);
  color: #fff;
  font-size: 2.6rem;
  font-weight: 900;
}
.gj-staff-card__photo:has(.gj-staff-card__initial) { padding: 0; }
@media (max-width: 600px) {
  .gj-staff { grid-template-columns: repeat(2, 1fr); gap: .8rem; }
  .gj-staff-card__photo { width: 88px; height: 88px; margin-top: 1.1rem; }
  .gj-staff-card__initial { font-size: 1.9rem; }
  .gj-staff-card__name { font-size: 1rem; }
  .gj-staff-card__role { font-size: .8rem; padding-inline: .5rem; }
}
/* 地図が無いとき（訪問者には枠を出さない）は、住所の表を中央に */
.gj-access:not(:has(.gj-access__map)) { grid-template-columns: 1fr; max-width: 760px; margin-inline: auto; }
