/* ==================================================
   Splash Screen
   ================================================== */
.splash-screen {
  position: fixed; inset: 0; z-index: 10000;
  background: #000;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 16px;
  opacity: 0; transition: opacity .6s ease;
  overflow: hidden;
}
.splash-screen.fade-in  { opacity: 1; }
.splash-screen.fade-out { opacity: 0; pointer-events: none; }
.splash-screen.removed  { display: none; }
.splash-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 75% center;
  opacity: .45;
}
.splash-content {
  position: relative; z-index: 1;
  display: flex; flex-direction: column;
  align-items: center; gap: 16px;
}
.splash-icon {
  width: 96px; height: 96px;
  border-radius: 22px;
  box-shadow: 0 4px 24px rgba(0,0,0,.3);
  animation: splash-pop .5s cubic-bezier(.34,1.56,.64,1) both;
}
.splash-name {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 20px; font-weight: 700;
  color: #fff; letter-spacing: .08em;
  text-shadow: 0 1px 8px rgba(0,0,0,.4);
  opacity: 0;
  animation: splash-fade-in .4s .3s ease forwards;
}
.splash-sub {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 12px; font-weight: 400;
  color: rgba(255,255,255,.8); letter-spacing: .04em;
  text-shadow: 0 1px 4px rgba(0,0,0,.3);
  opacity: 0;
  animation: splash-fade-in .4s .5s ease forwards;
}
@keyframes splash-pop {
  0%   { transform: scale(.6); opacity: 0; }
  100% { transform: scale(1);  opacity: 1; }
}
@keyframes splash-fade-in {
  0%   { opacity: 0; transform: translateY(6px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ==================================================
   Page Loader
   ================================================== */
.page-loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 18px;
  opacity: 0; transition: opacity .35s ease; pointer-events: none;
}
.page-loader.visible   { opacity: 1; pointer-events: all; }
.page-loader.hidden    { display: none; }
.loader-ring {
  width: 44px; height: 44px;
  border: 3px solid var(--primary-light);
  border-top-color: var(--primary);
  border-radius: 50%;
  will-change: transform;
  transform: translateZ(0) rotate(0deg);
}
.loader-logo { font-size: 12px; font-weight: 700; color: var(--primary); letter-spacing: .06em; }

/* ==================================================
   CSS Variables
   ================================================== */
:root {
  --primary:         #C0562A;
  --primary-dark:    #9C4220;
  --primary-light:   #F4DDD0;
  --primary-pale:    #FDF7F4;
  --secondary:       #3A9688;
  --secondary-light: #CBE8E4;
  --accent:          #E09618;
  --accent-light:    #FEF2D8;
  --danger:          #CC3B3B;
  --success:         #2D8A58;
  --bg:              #FDFAF7;
  --surface:         #FFFFFF;
  --text:            #2A1A0F;
  --text-sub:        #9A7868;
  --text-hint:       #C8AFA3;
  --border:          #EDE4DB;
  --border-light:    #F6F0EB;

  --font:            'Noto Sans JP', sans-serif;
  --header-h:        56px;
  --nav-h:           68px;
  --safe-bottom:     env(safe-area-inset-bottom, 0px);
  --nav-safe-h:      calc(var(--nav-h) + var(--safe-bottom));

  --r-xs:  6px;
  --r-sm:  10px;
  --r-md:  14px;
  --r-lg:  18px;
  --r-xl:  24px;

  /* 多層シャドウで自然な奥行き */
  --sh-sm:  0 1px 3px rgba(42,26,15,.06), 0 1px 2px rgba(42,26,15,.04);
  --sh-md:  0 4px 16px rgba(42,26,15,.07), 0 1px 4px rgba(42,26,15,.04);
  --sh-lg:  0 10px 40px rgba(42,26,15,.10), 0 2px 10px rgba(42,26,15,.05);
  --sh-btn: 0 4px 16px rgba(192,86,42,.36), 0 1px 4px rgba(192,86,42,.20);
}

/* ==================================================
   Reset & Base
   ================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  max-width: 480px;
  margin: 0 auto;
  min-height: 100dvh;
  position: relative;
  overflow-x: hidden;
}

a  { color: inherit; text-decoration: none; }
button { font-family: var(--font); }
ul, ol { list-style: none; }

/* ==================================================
   Header
   ================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 1px 0 rgba(42,26,15,.04);
  transition: box-shadow .2s;
}
.site-header.scrolled {
  box-shadow: 0 2px 16px rgba(42,26,15,.08);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr 125px;
  grid-template-rows: auto auto;
  column-gap: 10px;
  align-items: center;
  padding: 8px 16px;
  transition: padding .2s ease;
}
.site-header.shrunk .header-inner { padding: 5px 16px; }

.header-icon {
  grid-column: 2;
  grid-row: 1 / 3;
  width: 125px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.header-logo {
  grid-column: 1; grid-row: 1;
  font-size: 10px; font-weight: 700;
  color: var(--primary);
  letter-spacing: .08em; text-transform: uppercase; line-height: 1;
}
.header-title {
  grid-column: 1; grid-row: 2;
  font-size: 17px; font-weight: 700;
  color: var(--text); line-height: 1.3;
  transition: font-size .2s;
}
.site-header.shrunk .header-title { font-size: 15px; }

/* Back button */
.header-back {
  grid-column: 1; grid-row: 1 / 3;
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 100%;
  background: none; border: none; cursor: pointer;
  color: var(--primary); padding: 0; flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}
.header-back svg {
  width: 24px; height: 24px; fill: none; stroke: currentColor;
  stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
}
.header-inner.has-back {
  grid-template-columns: 44px 1fr 48px;
}
.header-inner.has-back .header-icon  { grid-column: 3; width: 48px; height: auto; }
.header-inner.has-back .header-logo  { grid-column: 2; }
.header-inner.has-back .header-title { grid-column: 2; }

/* Page slide transition */
body {
  opacity: 1;
}
body > :not(.bottom-nav):not(.menu-overlay):not(script) {
  opacity: 0;
  transform: translateX(18px);
  transition: opacity .35s ease, transform .35s ease;
}
body.page-visible > :not(.bottom-nav):not(.menu-overlay):not(script) {
  opacity: 1;
  transform: translateX(0);
}
body.slide-back {
  pointer-events: none;
}
body.slide-back > :not(.bottom-nav):not(.menu-overlay):not(script) {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity .22s ease, transform .22s ease;
}

/* Home-specific header */
.header-inner.home-header {
  display: flex; flex-direction: row;
  align-items: center; justify-content: space-between; gap: 10px;
}
.header-inner.home-header .header-icon {
  grid-column: unset; grid-row: unset;
  order: 1; margin-left: auto;
}
.header-branding { display: flex; flex-direction: column; gap: 2px; }
.header-company  { font-size: 12px; color: var(--text-sub); font-weight: 500; }
.header-greeting { font-size: 14px; color: var(--text); font-weight: 700; }

/* Video header */
.video-back-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 8px 0 4px;
  height: 52px;
}
.video-back-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--primary);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  padding: 8px 10px;
  -webkit-tap-highlight-color: transparent;
}
.video-back-btn svg {
  width: 20px;
  height: 20px;
  stroke: var(--primary);
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.video-back-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* ==================================================
   Main Content
   ================================================== */
.main-content {
  padding: 20px 16px calc(var(--nav-safe-h) + 20px);
}
.main-content.no-pad-top { padding-top: 0; }

/* ==================================================
   Bottom Navigation
   ================================================== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  min-height: var(--nav-h);
  padding-bottom: var(--safe-bottom);
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-light);
  display: flex; align-items: stretch;
  z-index: 200;
  box-sizing: content-box;
  box-shadow: 0 -1px 0 rgba(42,26,15,.04),
              0 -4px 20px rgba(42,26,15,.06);
}
.nav-item {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 4px;
  color: var(--text-hint);
  font-size: 11px; font-weight: 700;
  background: none; border: none; cursor: pointer;
  padding: 8px 3px 7px;
  transition: color .18s;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  min-width: 0;
  line-height: 1.2;
}
.nav-item svg {
  width: 22px; height: 22px;
  stroke: currentColor; fill: none;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  transition: stroke .18s, transform .18s;
}
.nav-item.active { color: var(--primary); }
.nav-item.active svg { stroke: var(--primary); transform: scale(1.08); }
.nav-item.active::after {
  content: '';
  position: absolute;
  top: 0; left: 25%; right: 25%; height: 2.5px;
  background: var(--primary);
  border-radius: 0 0 3px 3px;
}

/* ==================================================
   Cards
   ================================================== */
.card {
  background: var(--surface);
  border-radius: var(--r-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--sh-md);
  padding: 20px;
  margin-bottom: 14px;
}
.card-sm { padding: 16px; }

/* ==================================================
   Buttons
   ================================================== */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 12px 22px;
  border-radius: var(--r-md);
  font-family: var(--font); font-size: 15px; font-weight: 700;
  cursor: pointer; border: none;
  transition: all .18s ease;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  line-height: 1.4; letter-spacing: .01em;
}
.btn-primary {
  background: linear-gradient(150deg, #CF6132 0%, #AB4519 100%);
  color: #fff;
  box-shadow: var(--sh-btn);
}
.btn-primary:active {
  filter: brightness(.94);
  transform: translateY(1px);
  box-shadow: 0 2px 8px rgba(192,86,42,.28);
}
.btn-secondary {
  background: var(--primary);
  color: #fff;
  border: 2px solid var(--primary);
  box-shadow: var(--sh-btn);
}
.btn-secondary:active { background: var(--primary-dark); transform: translateY(1px); }
.btn-accent {
  background: linear-gradient(150deg, #ECA820 0%, #CC8A10 100%);
  color: #fff;
  box-shadow: 0 4px 16px rgba(224,150,24,.36);
}
.btn-accent:active { filter: brightness(.94); transform: translateY(1px); }
.btn-tel {
  background: linear-gradient(150deg, #44A898 0%, #2E8070 100%);
  color: #fff;
  box-shadow: 0 4px 16px rgba(58,150,136,.32);
}
.btn-tel:active { filter: brightness(.94); transform: translateY(1px); }
.btn-full { width: 100%; }
.btn svg {
  width: 18px; height: 18px;
  stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* ==================================================
   Section Title
   ================================================== */
.section-title {
  font-size: 14px; font-weight: 700; color: var(--text-sub);
  letter-spacing: .06em; text-transform: uppercase;
  margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
}
.section-title::after {
  content: ''; flex: 1; height: 1px;
  background: var(--border);
}

/* ==================================================
   Hero Card (Home)
   ================================================== */
.hero-card {
  background: linear-gradient(145deg, #FDF4EE 0%, #F8E8D8 55%, #F2DCCA 100%);
  border-radius: var(--r-xl);
  padding: 26px 22px;
  margin-bottom: 20px;
  border: 1px solid rgba(192,86,42,.12);
  box-shadow: var(--sh-md);
}
.hero-message {
  font-size: 19px; font-weight: 700; color: var(--text);
  line-height: 1.6; margin-bottom: 22px;text-align: center;
}
.hero-message em { color: var(--primary); font-style: normal; }
.hero-btns { display: flex; flex-direction: column; gap: 10px; }

/* ==================================================
   Quick Access Grid
   ================================================== */
.quick-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px;
  margin-bottom: 14px;
}
.quick-item {
  background: var(--surface);
  border-radius: var(--r-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--sh-sm);
  padding: 18px 12px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: var(--text);
  transition: transform .15s, box-shadow .15s;
  -webkit-tap-highlight-color: transparent;
  min-height: 96px; text-align: center;
}
.quick-item:active { transform: scale(.97); box-shadow: none; }
.quick-icon {
  width: 44px; height: 44px;
  background: var(--primary-pale);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
}
.quick-icon svg {
  width: 22px; height: 22px;
  stroke: currentColor; fill: none;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.quick-label { font-size: 12px; font-weight: 700; line-height: 1.4; color: var(--text); }

/* ==================================================
   Notice List
   ================================================== */
.notice-item {
  padding: 12px 0; border-bottom: 1px solid var(--border-light);
  display: flex; gap: 10px; align-items: flex-start;
}
.notice-item:last-child { border-bottom: none; }
.notice-date { font-size: 11px; color: var(--text-hint); white-space: nowrap; padding-top: 2px; font-weight: 500; }
.notice-title { font-size: 14px; line-height: 1.55; color: var(--text); }
.more-link {
  display: block; text-align: right;
  font-size: 13px; color: var(--primary); font-weight: 700;
  margin-top: 10px; letter-spacing: .01em;
}

/* ==================================================
   Emergency Card
   ================================================== */
.emergency-card {
  background: linear-gradient(145deg, #C0562A 0%, #9C4220 100%);
  color: #fff;
  border-radius: var(--r-lg);
  padding: 22px 20px; margin-bottom: 14px;
  box-shadow: var(--sh-btn);
}
.emergency-label  { font-size: 12px; font-weight: 700; opacity: .8; margin-bottom: 4px; letter-spacing: .04em; }
.emergency-tel    { font-size: 28px; font-weight: 700; letter-spacing: .04em; margin: 6px 0; text-align: center;}
.emergency-tel a  { color: #fff; }
.emergency-hours  { font-size: 13px; opacity: .85; margin-bottom: 14px; text-align: center;}
.emergency-note {
  font-size: 12px; opacity: .8; line-height: 1.7;
  background: rgba(255,255,255,.12);
  border-radius: var(--r-sm); padding: 10px 14px;
}

/* ==================================================
   Chat UI
   ================================================== */
.chat-subtitle {
  font-size: 13px; color: var(--text-sub); text-align: center;
  padding: 10px 16px; background: var(--surface);
  border-bottom: 1px solid var(--border-light);
  letter-spacing: .01em;
}
.chat-area { padding: 20px 16px 0; }
.chat-bubble-wrap { display: flex; margin-bottom: 18px; gap: 10px; }
.chat-bubble-wrap.ai  { flex-direction: row; }
.chat-bubble-wrap.user { flex-direction: row-reverse; }
.chat-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: #fff;
  border: 1.5px solid var(--primary-light);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 10px; font-weight: 700; color: var(--primary);
  line-height: 1.3; text-align: center;
}
.chat-bubble {
  max-width: 80%; padding: 13px 16px;
  font-size: 14px; line-height: 1.75;
}
.chat-bubble.ai {
  background: var(--surface);
  border: 1px solid var(--border-light);
  box-shadow: var(--sh-sm);
  border-radius: 4px 16px 16px 16px; color: var(--text);
}
.chat-bubble.user {
  background: linear-gradient(150deg, #CF6132 0%, #AB4519 100%);
  color: #fff;
  border-radius: 16px 4px 16px 16px;
  box-shadow: 0 3px 12px rgba(192,86,42,.28);
}
.chat-link-cards { margin: 4px 0 18px 46px; display: flex; flex-direction: column; gap: 8px; }
.chat-link-card {
  display: flex; align-items: center; gap: 10px;
  background: var(--primary-pale);
  border: 1px solid var(--primary-light);
  border-radius: var(--r-md);
  padding: 12px 14px; color: var(--primary);
  font-size: 14px; font-weight: 700;
  transition: background .15s;
}
.chat-link-card svg {
  width: 17px; height: 17px;
  stroke: currentColor; fill: none; stroke-width: 2; flex-shrink: 0;
}
.chat-link-card:active { background: var(--primary-light); }
.chat-input-wrapper {
  position: fixed; bottom: var(--nav-safe-h);
  left: 0; right: 0;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-light);
  padding: 10px 14px; z-index: 150;
  box-sizing: border-box;
}
.chat-notice {
  font-size: 11px; color: var(--text-sub);
  padding: 7px 12px; background: var(--accent-light);
  border-radius: var(--r-sm); margin-bottom: 8px; line-height: 1.55;
}
.chat-input-row { display: flex; gap: 8px; align-items: center; }
.chat-input {
  flex: 1; min-width: 0; height: 44px; border-radius: 22px;
  border: 1.5px solid var(--border); padding: 0 16px;
  font-family: var(--font); font-size: 16px;
  background: var(--bg); color: var(--text); outline: none;
  transition: border-color .15s;
  box-sizing: border-box;
  -webkit-appearance: none;
}
.chat-input:focus { border-color: var(--primary); background: var(--surface); }
.chat-send-btn {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(150deg, #CF6132 0%, #AB4519 100%);
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(192,86,42,.35);
}
.chat-send-btn svg {
  width: 19px; height: 19px;
  stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.main-content.chat-main { padding: 0 0 calc(var(--nav-safe-h) + 112px); }

/* ==================================================
   Reservation / Form
   ================================================== */
.method-cards { display: flex; flex-direction: column; gap: 10px; margin-bottom: 22px; }
.method-card {
  background: var(--surface);
  border-radius: var(--r-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--sh-sm);
  padding: 16px 18px;
  display: flex; gap: 14px; align-items: flex-start;
}
.method-icon { font-size: 28px; line-height: 1; flex-shrink: 0; padding-top: 2px; }
.method-body h3 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.method-body p  { font-size: 13px; color: var(--text-sub); margin-bottom: 10px; line-height: 1.6; }

.form-section-title {
  font-size: 13px; font-weight: 700; color: var(--text-sub);
  letter-spacing: .05em; text-transform: uppercase;
  margin: 22px 0 14px;
  padding-bottom: 8px; border-bottom: 1px solid var(--border);
}
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.form-input, .form-select, .form-textarea {
  width: 100%; min-height: 50px; padding: 12px 16px;
  border: 1.5px solid var(--border); border-radius: var(--r-md);
  font-family: var(--font); font-size: 16px;
  color: var(--text); background: var(--bg);
  outline: none; transition: border-color .15s, box-shadow .15s; appearance: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(192,86,42,.10);
  background: var(--surface);
}
.form-textarea { min-height: 110px; resize: vertical; }
.form-select-wrap { position: relative; }
.form-select-wrap::after {
  content: ''; position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  width: 0; height: 0;
  border-left: 5px solid transparent; border-right: 5px solid transparent;
  border-top: 6px solid var(--text-sub); pointer-events: none;
}
.radio-group { display: flex; flex-direction: column; gap: 8px; }
.radio-label {
  display: flex; align-items: center; gap: 12px;
  min-height: 50px; padding: 10px 16px;
  background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--r-md);
  cursor: pointer; transition: border-color .15s, background .15s; font-size: 15px;
}
.radio-label input[type="radio"] { width: 20px; height: 20px; accent-color: var(--primary); cursor: pointer; }
.radio-label:has(input:checked) { border-color: var(--primary); background: var(--primary-pale); }
.datetime-group { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.supplement-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 14px 16px;
  font-size: 13px; line-height: 1.8; color: var(--text-sub);
}
.supplement-card li { padding-left: 14px; position: relative; }
.supplement-card li::before { content: '–'; position: absolute; left: 0; color: var(--primary); }

/* ==================================================
   Accordion
   ================================================== */
.accordion-item {
  background: var(--surface);
  border-radius: var(--r-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--sh-sm);
  margin-bottom: 8px; overflow: hidden;
}
.accordion-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px; cursor: pointer; user-select: none;
  min-height: 56px; gap: 10px;
  -webkit-tap-highlight-color: transparent;
}
.accordion-q-wrap { display: flex; align-items: flex-start; gap: 8px; flex: 1; }
.q-mark { color: var(--primary); font-size: 17px; font-weight: 900; flex-shrink: 0; line-height: 1.5; }
.accordion-question { font-size: 15px; font-weight: 700; color: var(--text); line-height: 1.5; }
.chevron {
  width: 18px; height: 18px; flex-shrink: 0;
  stroke: var(--text-hint); fill: none; stroke-width: 2.5;
  stroke-linecap: round; stroke-linejoin: round;
  transition: transform .25s ease;
}
.accordion-item.open .chevron { transform: rotate(180deg); stroke: var(--primary); }
.accordion-body {
  max-height: 0; overflow: hidden;
  transition: max-height .32s ease, opacity .25s ease; opacity: 0;
}
.accordion-item.open .accordion-body { max-height: 1200px; opacity: 1; }
.accordion-content {
  padding: 14px 18px 18px; font-size: 14px; line-height: 1.85;
  color: var(--text); border-top: 1px solid var(--border-light);
}
/* help.html — accordion-body 直下の <p> */
.accordion-body > p {
  padding: 16px 18px 18px 22px;
  font-size: 14px; line-height: 1.9; color: var(--text);
  border-top: 1px solid var(--border-light);
  background: var(--primary-pale);
  border-left: 3px solid var(--primary-light);
}
.a-mark { color: var(--secondary); font-weight: 700; }

/* Facility accordion variant */
.fac-accordion .accordion-question { font-size: 15px; }
.fac-meta { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.fac-meta-row { display: flex; gap: 10px; font-size: 14px; align-items: flex-start; }
.fac-meta-label { font-weight: 700; color: var(--primary); flex-shrink: 0; min-width: 64px; font-size: 13px; }
.fac-meta-val   { color: var(--text); line-height: 1.65; }

/* ==================================================
   Tab Bar
   ================================================== */
.tab-bar {
  display: flex; gap: 6px;
  overflow-x: auto; padding-bottom: 12px; scrollbar-width: none;
}
.tab-bar::-webkit-scrollbar { display: none; }
.tab-btn {
  flex-shrink: 0; padding: 8px 18px; border-radius: 20px;
  font-family: var(--font); font-size: 13px; font-weight: 700;
  cursor: pointer; border: 1.5px solid var(--border);
  background: var(--surface); color: var(--text-sub);
  transition: all .18s; white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.tab-btn.active {
  background: var(--primary); border-color: var(--primary); color: #fff;
  box-shadow: 0 3px 10px rgba(192,86,42,.30);
}
.tab-pane { display: none; opacity: 0; transform: translateY(6px); }
.tab-pane.active { display: block; }
.tab-pane.fade-in { opacity: 1; transform: translateY(0); transition: opacity .45s ease, transform .45s ease; }
.tab-container { overflow: hidden; transition: height .4s ease; }

/* ==================================================
   Check Items
   ================================================== */
.check-notice {
  background: var(--accent-light); border: 1.5px solid rgba(224,150,24,.4);
  border-radius: var(--r-md); padding: 14px 16px;
  font-size: 14px; line-height: 1.8; color: var(--text);
  margin-bottom: 16px; display: flex; gap: 10px; align-items: flex-start;
}
.check-notice-icon { font-size: 18px; flex-shrink: 0; margin-top: 2px; }
.step-section { margin-bottom: 16px; }
.step-section-title {
  font-size: 12px; font-weight: 700; color: var(--primary);
  letter-spacing: .06em; text-transform: uppercase;
  background: var(--primary-pale); border-left: 3px solid var(--primary);
  padding: 7px 14px; border-radius: 0 var(--r-xs) var(--r-xs) 0;
  margin-bottom: 8px;
}
.check-item {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--r-md); box-shadow: var(--sh-sm);
  padding: 14px; margin-bottom: 8px;
}
.check-item-q {
  font-size: 14px; font-weight: 700; margin-bottom: 10px; line-height: 1.5;
  display: flex; gap: 8px;
}
.check-item-q .q-num {
  color: var(--primary); font-size: 12px; flex-shrink: 0;
  background: var(--primary-pale); border-radius: 50%;
  width: 22px; height: 22px; display: flex; align-items: center; justify-content: center;
  margin-top: 1px; font-weight: 700;
}
.check-options { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.check-option {
  display: flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 8px;
  border-radius: var(--r-xs); border: 1.5px solid var(--border);
  cursor: pointer; font-size: 11px; font-weight: 500;
  background: var(--bg); transition: all .15s; line-height: 1.3;
}
.check-option input { width: 15px; height: 15px; accent-color: var(--primary); flex-shrink: 0; }

/* ==================================================
   Self-Check
   ================================================== */
.self-check-item {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--r-md); box-shadow: var(--sh-sm);
  padding: 14px 16px; margin-bottom: 8px;
  display: flex; gap: 12px; align-items: center;
}
.self-num {
  font-size: 11px; font-weight: 700; color: var(--primary);
  background: var(--primary-pale); width: 24px; height: 24px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.self-label { flex: 1; font-size: 14px; line-height: 1.55; }
.self-options { display: flex; gap: 6px; }
.self-option {
  display: flex; align-items: center; justify-content: center;
  min-height: 44px; min-width: 52px; padding: 6px 10px;
  border-radius: var(--r-sm); border: 1.5px solid var(--border);
  cursor: pointer; font-size: 13px; font-weight: 700;
  background: var(--bg); transition: all .15s;
  -webkit-tap-highlight-color: transparent;
}
.self-option input { display: none; }
.self-option:has(input:checked) {
  background: var(--primary); border-color: var(--primary); color: #fff;
}

/* ==================================================
   Result Card
   ================================================== */
.result-card {
  background: linear-gradient(145deg, var(--primary-pale) 0%, #FFFAF7 100%);
  border-radius: var(--r-lg);
  border: 1.5px solid var(--primary-light);
  padding: 22px 20px; margin: 18px 0;
  box-shadow: var(--sh-sm);
}
.result-badge {
  font-size: 11px; font-weight: 700; color: var(--primary);
  letter-spacing: .07em; text-transform: uppercase; margin-bottom: 8px;
}
.result-title  { font-size: 17px; font-weight: 700; color: var(--text); margin-bottom: 12px; line-height: 1.45; }
.result-desc   { font-size: 14px; line-height: 1.85; color: var(--text); margin-bottom: 18px; }
.result-links  { display: flex; flex-direction: column; gap: 8px; }

/* ==================================================
   Timeline (guide.html)
   ================================================== */
.timeline { position: relative; padding-left: 34px; }
.timeline::before {
  content: ''; position: absolute; left: 11px; top: 22px; bottom: 22px;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), var(--primary-light));
}
.timeline-step { position: relative; margin-bottom: 20px; }
.timeline-dot {
  position: absolute; left: -34px; top: 14px;
  width: 24px; height: 24px;
  background: linear-gradient(150deg, #CF6132, #AB4519);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: #fff;
  box-shadow: 0 0 0 3px var(--bg), 0 2px 8px rgba(192,86,42,.3);
}
.timeline-card {
  background: var(--surface);
  border-radius: var(--r-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--sh-sm);
  padding: 18px 20px;
  border-left: 3px solid var(--primary);
}
.timeline-step-tag  { font-size: 10px; font-weight: 700; color: var(--primary); letter-spacing: .1em; margin-bottom: 5px; }
.timeline-title     { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.timeline-body      { font-size: 14px; line-height: 1.85; color: var(--text); }
.timeline-body ul   { padding-left: 16px; margin-top: 8px; }
.timeline-body li   { margin-bottom: 5px; list-style: disc; }

/* ==================================================
   Systems Table
   ================================================== */
.system-category { margin-bottom: 22px; }
.system-cat-head {
  font-size: 13px; font-weight: 700; color: #fff;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 11px 16px; border-radius: var(--r-md) var(--r-md) 0 0;
  letter-spacing: .02em;
}
.system-table-wrap {
  overflow-x: auto; background: var(--surface);
  border-radius: 0 0 var(--r-md) var(--r-md);
  border: 1px solid var(--border-light); border-top: none;
  box-shadow: var(--sh-sm);
}
.system-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 360px; }
.system-table th {
  background: var(--primary-pale); color: var(--primary); font-weight: 700;
  padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.system-table td {
  padding: 11px 14px; border-bottom: 1px solid var(--border-light);
  vertical-align: top; line-height: 1.65;
}
.system-table tr:last-child td { border-bottom: none; }

.sys-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--r-lg); box-shadow: var(--sh-sm);
  padding: 18px 20px; margin-bottom: 10px;
}
.sys-card-title {
  font-size: 15px; font-weight: 700; color: var(--text);
  margin-bottom: 12px; padding-bottom: 10px;
  border-bottom: 1.5px solid var(--primary-light);
}
.sys-dl { display: grid; grid-template-columns: auto 1fr; gap: 7px 14px; }
.sys-dt { font-size: 12px; font-weight: 700; color: var(--text-sub); white-space: nowrap; text-transform: uppercase; letter-spacing: .04em; }
.sys-dd { font-size: 14px; line-height: 1.65; color: var(--text); }
.sys-note {
  font-size: 12px; color: var(--text-sub); line-height: 1.7;
  margin-top: 10px; padding: 10px 14px;
  background: #fff; border-radius: var(--r-sm);
  border: 1px solid var(--border-light);
}

/* ==================================================
   Info / Seminar
   ================================================== */
.badge {
  display: inline-block; padding: 3px 10px; border-radius: 20px;
  font-size: 11px; font-weight: 700; letter-spacing: .03em;
}
.badge-active { background: var(--secondary-light); color: var(--secondary); }
.badge-ended  { background: #EDE8E3; color: #9C8E84; }

.seminar-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--r-lg); box-shadow: var(--sh-md);
  padding: 20px; margin-bottom: 14px;
}
.seminar-card.ended { opacity: .6; }
.seminar-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; margin-bottom: 12px; }
.seminar-title  { font-size: 16px; font-weight: 700; color: var(--text); line-height: 1.4; flex: 1; }
.seminar-meta   { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.seminar-meta-row {
  display: flex; gap: 8px; font-size: 13px; color: var(--text-sub); align-items: flex-start;
}
.seminar-meta-row svg {
  width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; flex-shrink: 0; margin-top: 2px;
}
.smeta-label   { font-weight: 700; color: var(--text); min-width: 40px; }
.seminar-desc  { font-size: 14px; line-height: 1.8; color: var(--text); margin-bottom: 14px; }
.seminar-details { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.seminar-detail-item { font-size: 12px; color: var(--text-sub); }
.seminar-detail-item strong { color: var(--text); font-weight: 700; }

.notice-article {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--r-lg); box-shadow: var(--sh-sm);
  overflow: hidden; margin-bottom: 8px;
}
.notice-art-head {
  display: flex; align-items: center; padding: 15px 18px;
  cursor: pointer; gap: 10px;
  -webkit-tap-highlight-color: transparent;
}
.notice-art-date  { font-size: 11px; color: var(--text-hint); white-space: nowrap; flex-shrink: 0; font-weight: 600; }
.notice-art-title { flex: 1; font-size: 14px; font-weight: 700; color: var(--text); line-height: 1.4; }
.notice-art-body  {
  max-height: 0; overflow: hidden;
  transition: max-height .3s ease, opacity .25s ease; opacity: 0;
}
.notice-article.open .notice-art-body { max-height: 500px; opacity: 1; }
.notice-art-content {
  padding: 0 18px 18px; font-size: 14px; line-height: 1.85;
  border-top: 1px solid var(--border-light); padding-top: 14px; color: var(--text);
}

/* ==================================================
   Menu Overlay / Drawer
   ================================================== */
.menu-overlay {
  position: fixed; inset: 0; z-index: 300;
  visibility: hidden; pointer-events: none;
  transition: visibility 0s .38s;
}
.menu-overlay.open {
  visibility: visible; pointer-events: all;
  transition: visibility 0s 0s;
}
.menu-backdrop {
  position: absolute; inset: 0;
  background: rgba(42,26,15,.45);
  opacity: 0; transition: opacity .3s ease;
}
.menu-overlay.open .menu-backdrop { opacity: 1; }
.menu-drawer {
  position: absolute; bottom: 0; left: 50%;
  transform: translateX(-50%) translateY(100%);
  width: 100%; max-width: 480px;
  background: var(--surface);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  padding: 20px 22px calc(var(--nav-safe-h) + 16px);
  max-height: 85dvh; overflow-y: auto;
  transition: transform .38s cubic-bezier(0.32, 0.72, 0, 1);
  box-shadow: 0 -4px 40px rgba(42,26,15,.15);
}
.menu-overlay.open .menu-drawer { transform: translateX(-50%) translateY(0); }
.menu-handle {
  width: 36px; height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin: 0 auto 22px;
  touch-action: none;
}
.menu-drawer-title { font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.menu-list-item { border-bottom: 1px solid var(--border-light); }
.menu-list-item:last-child { border-bottom: none; }
.menu-list-link {
  display: flex; align-items: center; gap: 14px; padding: 15px 4px;
  color: var(--text); font-size: 15px; font-weight: 500;
  -webkit-tap-highlight-color: transparent; transition: color .15s;
}
.menu-list-link:active { color: var(--primary); }
.menu-list-link svg {
  width: 20px; height: 20px; stroke: var(--primary); fill: none;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0;
}
.menu-list-logout { color: var(--danger); border-top: 1.5px solid var(--border); margin-top: 4px; }
.menu-list-logout svg { stroke: var(--danger) !important; }
.menu-list-tel { color: var(--secondary); }
.menu-list-tel svg { stroke: var(--secondary) !important; }
.menu-list-item-call {
  border-top: 1.5px solid var(--border);
  border-bottom: none;
  padding: 10px 0 6px;
  margin-top: 6px;
}
.menu-list-grid .menu-list-item-call .menu-list-link {
  justify-content: center;
  gap: 10px;
  margin: 0 2px;
  padding: 15px 18px;
  border-radius: 18px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  background: linear-gradient(145deg, #57B7A7 0%, #3A9688 48%, #2A766A 100%);
  box-shadow: 0 10px 24px rgba(58,150,136,.25), 0 2px 6px rgba(42,26,15,.08);
}
.menu-list-grid .menu-list-item-call .menu-list-link:active {
  color: #fff;
  transform: translateY(1px) scale(.99);
  filter: brightness(.97);
}
.menu-list-grid .menu-list-item-call .menu-list-link svg {
  width: 18px; height: 18px;
  stroke: #fff !important;
}

/* 2カラムグリッドメニュー */
.menu-list-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.menu-list-grid .menu-list-item {
  border-bottom: 1px solid var(--border-light);
  border-right: 1px solid var(--border-light);
}
.menu-list-grid .menu-list-item:nth-child(even) { border-right: none; }
.menu-list-grid .menu-list-item-full {
  grid-column: 1 / -1;
  border-right: none;
}
.menu-list-group-label {
  background: none;
  padding: 10px 14px 4px 0;
  border-bottom: none !important;
}
.menu-list-group-label:first-child {
  padding-top: 6px;
}
.menu-group-title {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-sub);
  letter-spacing: .06em;
}
.menu-group-title svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  stroke: var(--text-sub);
  fill: none;
}
.menu-list-grid .menu-list-link {
  padding: 12px 6px;
  font-size: 13px;
  gap: 10px;
}
.menu-list-grid .menu-list-link svg {
  width: 17px; height: 17px;
}
.menu-list-item-meta {
  border-bottom: none !important;
}
.menu-list-meta-link {
  justify-content: center;
  gap: 8px;
  padding: 12px 4px 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-sub);
}
.menu-list-meta-link svg {
  width: 15px;
  height: 15px;
  stroke: var(--text-sub) !important;
}
.menu-about {
  font-size: 13px; color: var(--text-sub); line-height: 1.8;
  background: var(--bg); border-radius: var(--r-md);
  padding: 14px 16px; margin-top: 16px;
  border: 1px solid var(--border-light);
}

/* ==================================================
   Shared utility
   ================================================== */
.lead-text {
  font-size: 15px; line-height: 1.9; color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--r-lg);
  padding: 18px 20px; box-shadow: var(--sh-sm); margin-bottom: 18px;
}
.support-card {
  background: linear-gradient(145deg, #EBF6F4 0%, #F7FDFB 100%);
  border-radius: var(--r-lg);
  border: 1.5px solid var(--secondary-light);
  padding: 22px 20px; margin-bottom: 14px;
  box-shadow: var(--sh-sm);
}
.support-card-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 8px;
    text-align: center;
}
.support-card-body  { font-size: 14px; line-height: 1.85; color: var(--text); margin-bottom: 18px; }
.link-card {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--r-md); box-shadow: var(--sh-sm);
  padding: 14px 16px; color: var(--text); font-size: 14px; font-weight: 700;
  -webkit-tap-highlight-color: transparent; margin-bottom: 0;
  transition: border-color .15s, box-shadow .15s;
}
.link-card:active { border-color: var(--primary); }
.link-card svg {
  width: 17px; height: 17px; stroke: var(--primary); fill: none;
  stroke-width: 2; flex-shrink: 0;
}
.link-card-chevron { margin-left: auto; stroke: var(--text-hint) !important; }
.chat-link-arrow { margin-left: auto; stroke: var(--primary-dark) !important; }
.notice-head-chevron {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  stroke: var(--text-sub);
  fill: none;
  stroke-width: 2;
}

.content-action-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.inline-primary-link {
  color: var(--primary);
  font-weight: 700;
}

.phone-support-link {
  color: var(--primary);
  font-size: 14px;
  font-weight: 700;
}

.guide-note {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-sub);
}

.guide-inline-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 13px;
  color: var(--primary);
  font-weight: 700;
}

.faq-support-title {
  margin-bottom: 10px;
}

.result-trigger-btn {
  margin: 16px 0 24px;
}

.page-subtitle { font-size: 13px; color: var(--text-sub); line-height: 1.65; margin-bottom: 18px; }

.mt-sm { margin-top: 8px; }
.mt-md { margin-top: 12px; }
.mt-lg { margin-top: 16px; }
.mt-xl { margin-top: 20px; }
.mb-sm { margin-bottom: 8px; }
.mb-md { margin-bottom: 12px; }
.mb-lg { margin-bottom: 16px; }
.text-center { text-align: center; }
.text-sm     { font-size: 13px; }
.text-muted  { color: var(--text-sub); }
.font-bold   { font-weight: 700; }
