/* ================================================================
   style.css — 島サイクル｜伊豆大島レンタルサイクル
   テーマ: 深海 × 波 × 砂浜。Cormorant Garamond で旅情を表現。
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;1,400&family=Noto+Sans+JP:wght@400;500;700&family=DM+Mono:wght@400;500&display=swap');

/* ── トークン ─────────────────────────────────────────────────── */
:root {
  --c-ocean:   #0A3D52;
  --c-deep:    #062B3A;
  --c-wave:    #0E7C6E;
  --c-sky:     #7EC8C8;
  --c-sand:    #F2EDE4;
  --c-dune:    #E8E0D4;
  --c-white:   #FFFFFF;
  --c-ink:     #1A2B3C;
  --c-gray:    #5E7080;
  --c-mist:    #EAF3F5;
  --c-border:  #D8E5EA;

  --f-display: 'Cormorant Garamond', Georgia, serif;
  --f-body:    'Noto Sans JP', sans-serif;
  --f-mono:    'DM Mono', monospace;

  --r-sm:  6px;
  --r-md: 12px;
  --r-lg: 20px;

  --shadow-card: 0 4px 24px rgba(10,61,82,.10);
  --shadow-deep: 0 16px 48px rgba(10,61,82,.18);

  --nav-h: 64px;
}

/* ── リセット ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--f-body); color: var(--c-ink); background: var(--c-white); overflow-x: hidden; }
img  { max-width: 100%; display: block; }
a    { color: inherit; text-decoration: none; }
ul   { list-style: none; }
button, input, select, textarea { font-family: inherit; }

/* ── ナビゲーション ──────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  z-index: 900;
  transition: background .3s, box-shadow .3s;
}
.nav.scrolled {
  background: rgba(6,43,58,.96);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 rgba(126,200,200,.15);
}
.nav-logo {
  font-family: var(--f-display);
  font-size: 22px;
  font-style: italic;
  color: var(--c-white);
  letter-spacing: .02em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,.75);
  transition: color .2s;
}
.nav-links a:hover { color: var(--c-white); }
.nav-cta {
  background: var(--c-wave) !important;
  color: var(--c-white) !important;
  padding: 9px 20px;
  border-radius: var(--r-sm);
  font-weight: 700 !important;
  transition: opacity .2s !important;
}
.nav-cta:hover { opacity: .88 !important; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--c-white);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* モバイルメニュー */
.mobile-menu {
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: var(--c-deep);
  padding: 0 5%;
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .35s ease;
  z-index: 850;
}
.mobile-menu.open {
  max-height: 420px;
  padding: 16px 5% 24px;
}
.mobile-menu ul { display: flex; flex-direction: column; gap: 4px; }
.mm-link {
  display: block;
  padding: 13px 0;
  font-size: 16px;
  font-weight: 500;
  color: rgba(255,255,255,.8);
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: color .2s;
}
.mm-link:hover { color: var(--c-white); }
.mm-link--cta {
  margin-top: 12px;
  background: var(--c-wave);
  color: var(--c-white) !important;
  border-radius: var(--r-sm);
  text-align: center;
  border-bottom: none;
  padding: 14px;
}

/* ── ヒーロー ────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(160deg, var(--c-deep) 0%, var(--c-ocean) 55%, #0D5C5C 100%);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* SVG 波 */
.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 200px;
}
.wave-path {
  fill: rgba(126,200,200,.07);
  transform-origin: center bottom;
}
.wave-path--back  { animation: waveBack  9s  ease-in-out infinite; }
.wave-path--mid   { animation: waveMid   7s  ease-in-out infinite reverse; fill: rgba(14,124,110,.08); }
.wave-path--front { animation: waveFront 5s  ease-in-out infinite; fill: rgba(126,200,200,.12); }
@keyframes waveBack  { 0%,100% { transform: scaleX(1) translateY(0); } 50% { transform: scaleX(1.05) translateY(-10px); } }
@keyframes waveMid   { 0%,100% { transform: scaleX(1) translateY(0); } 50% { transform: scaleX(.97) translateY(-14px); } }
@keyframes waveFront { 0%,100% { transform: scaleX(1) translateY(0); } 50% { transform: scaleX(1.03) translateY(-8px); } }

/* 走る自転車 */
.hero-bike {
  position: absolute;
  bottom: 140px;
  width: 80px;
  color: rgba(255,255,255,.18);
  animation: rideBike 14s linear infinite;
}
@keyframes rideBike {
  0%   { left: -100px; }
  100% { left: calc(100% + 100px); }
}
.hero-bike svg { width: 100%; height: auto; }

.hero-content {
  position: relative;
  z-index: 1;
  padding: calc(var(--nav-h) + 48px) 8% 120px;
  max-width: 700px;
}
.hero-eyebrow {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .2em;
  color: var(--c-sky);
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero-title {
  font-family: var(--f-display);
  font-size: clamp(44px, 8vw, 80px);
  font-weight: 600;
  color: var(--c-white);
  line-height: 1.1;
  letter-spacing: -.02em;
  margin-bottom: 24px;
}
.hero-title em {
  font-style: italic;
  color: var(--c-sky);
}
.hero-desc {
  font-size: clamp(14px, 2vw, 17px);
  color: rgba(255,255,255,.65);
  line-height: 1.9;
  margin-bottom: 36px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
}
.hero-stat { text-align: center; padding: 0 24px; }
.hero-stat:first-child { padding-left: 0; }
.hero-stat__num {
  display: block;
  font-family: var(--f-mono);
  font-size: 22px;
  font-weight: 500;
  color: var(--c-white);
}
.hero-stat__label {
  display: block;
  font-size: 11px;
  color: rgba(255,255,255,.5);
  margin-top: 2px;
}
.hero-stat-divider {
  width: 1px;
  height: 32px;
  background: rgba(255,255,255,.15);
}

/* ── ボタン ──────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 700;
  font-family: var(--f-body);
  cursor: pointer;
  border: none;
  transition: opacity .2s, transform .1s;
  text-decoration: none;
}
.btn:hover  { opacity: .88; }
.btn:active { transform: scale(.98); }
.btn--primary { background: var(--c-wave); color: var(--c-white); }
.btn--ghost   { background: rgba(255,255,255,.1); color: var(--c-white); border: 1px solid rgba(255,255,255,.25); }
.btn--full    { width: 100%; }

/* ── セクション共通 ──────────────────────────────────────────── */
.section { padding: 96px 0; }
.section--dark  { background: var(--c-ocean); }
.section--sand  { background: var(--c-sand); }
.section--ocean { background: linear-gradient(160deg, var(--c-deep) 0%, var(--c-ocean) 100%); }

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 5%;
}
.section-inner--narrow { max-width: 720px; }

.section-eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .18em;
  color: var(--c-wave);
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}
.section-title {
  font-family: var(--f-display);
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 600;
  color: var(--c-ink);
  letter-spacing: -.01em;
  margin-bottom: 16px;
  line-height: 1.15;
}
.section-lead {
  font-size: 15px;
  color: var(--c-gray);
  line-height: 1.8;
  margin-bottom: 48px;
  max-width: 560px;
}

/* ── 自転車グリッド ──────────────────────────────────────────── */
.bikes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}
.bike-card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  position: relative;
  transition: transform .2s, box-shadow .2s;
}
.bike-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--c-shadow-deep, 0 16px 40px rgba(10,61,82,.13));
}
.bike-card--featured {
  background: linear-gradient(140deg, var(--c-ocean) 0%, var(--c-wave) 100%);
  border-color: transparent;
  color: var(--c-white);
}
.bike-card__badge {
  position: absolute;
  top: -11px;
  left: 20px;
  background: var(--c-sky);
  color: var(--c-deep);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 99px;
}
.bike-card__icon {
  font-size: 32px;
  margin-bottom: 14px;
}
.bike-card__name {
  font-family: var(--f-display);
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 6px;
}
.bike-card__tagline {
  font-size: 13px;
  color: var(--c-gray);
  margin-bottom: 18px;
  line-height: 1.6;
}
.bike-card--featured .bike-card__tagline { color: rgba(255,255,255,.7); }
.bike-card__specs {
  border-top: 1px solid var(--c-border);
  padding-top: 14px;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bike-card--featured .bike-card__specs { border-color: rgba(255,255,255,.2); }
.bike-card__specs li {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}
.bike-card__specs li span { color: var(--c-gray); }
.bike-card--featured .bike-card__specs li span { color: rgba(255,255,255,.6); }
.bike-card__specs li strong { font-weight: 500; }
.bike-card__price {
  display: flex;
  gap: 12px;
  align-items: baseline;
}
.price-hour {
  font-family: var(--f-mono);
  font-size: 20px;
  font-weight: 500;
  color: var(--c-ocean);
}
.bike-card--featured .price-hour { color: var(--c-white); }
.price-day {
  font-family: var(--f-mono);
  font-size: 14px;
  color: var(--c-gray);
}
.bike-card--featured .price-day { color: rgba(255,255,255,.65); }
.price-hour small, .price-day small {
  font-size: .65em;
  font-weight: 400;
}
.bikes-note {
  font-size: 13px;
  color: var(--c-gray);
  text-align: center;
  padding: 14px 20px;
  background: var(--c-mist);
  border-radius: var(--r-sm);
}

/* ── 料金表 ─────────────────────────────────────────────────── */
.price-table-wrap {
  overflow-x: auto;
  margin-bottom: 40px;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-deep);
}
.price-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.85);
  min-width: 520px;
}
.price-table th {
  background: rgba(255,255,255,.08);
  font-size: 12px;
  font-weight: 500;
  font-family: var(--f-mono);
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 14px 20px;
  text-align: left;
  color: var(--c-sky);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.price-table td {
  padding: 16px 20px;
  font-size: 14px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.price-table tr:last-child td { border-bottom: none; }
.price-table__featured td {
  background: rgba(14,124,110,.2);
  font-weight: 500;
}
.pt-icon { margin-right: 6px; }

.price-notes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.price-note-card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r-md);
  padding: 20px;
}
.price-note-card__icon { font-size: 24px; margin-bottom: 10px; }
.price-note-card h4 { font-size: 14px; font-weight: 700; color: var(--c-white); margin-bottom: 8px; }
.price-note-card p { font-size: 13px; color: rgba(255,255,255,.6); line-height: 1.7; }
.price-note-card strong { color: var(--c-sky); }

/* ── ご利用方法 ─────────────────────────────────────────────── */
.how-steps {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.how-step {
  flex: 1;
  min-width: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.how-step__num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--c-ocean);
  color: var(--c-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-mono);
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 14px;
  flex-shrink: 0;
}
.how-step__body h3 { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.how-step__body p  { font-size: 13px; color: var(--c-gray); line-height: 1.7; }
.how-step__arrow {
  font-size: 24px;
  color: var(--c-border);
  align-self: center;
  flex-shrink: 0;
  padding-bottom: 30px;
}
.how-note {
  background: #FEF9EC;
  border: 1px solid #F5DFA0;
  border-radius: var(--r-sm);
  padding: 14px 18px;
  font-size: 13px;
  color: #6B4C0A;
  line-height: 1.7;
}

/* ── コース ─────────────────────────────────────────────────── */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.course-card {
  background: var(--c-white);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform .2s;
}
.course-card:hover { transform: translateY(-4px); }
.course-card__header {
  padding: 32px 24px 24px;
  position: relative;
}
.course-card__header--volcano { background: linear-gradient(135deg, #2D1A0E, #5C3317); color: var(--c-white); }
.course-card__header--coast   { background: linear-gradient(135deg, var(--c-ocean), #0E7C6E); color: var(--c-white); }
.course-card__header--town    { background: linear-gradient(135deg, #1A3A2A, #2D6E4A); color: var(--c-white); }
.course-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: rgba(255,255,255,.2);
  padding: 3px 10px;
  border-radius: 99px;
  margin-bottom: 10px;
}
.course-card__header h3 {
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 600;
}
.course-card__body { padding: 20px 24px; }
.course-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--c-gray);
  margin-bottom: 12px;
}
.course-card__body p { font-size: 13px; color: var(--c-gray); line-height: 1.75; }

/* ── アクセス ───────────────────────────────────────────────── */
.access-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.access-block { margin-bottom: 28px; }
.access-block h3 { font-size: 15px; font-weight: 700; margin-bottom: 12px; }
.access-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.access-table td { padding: 8px 0; border-bottom: 1px solid var(--c-border); color: var(--c-gray); }
.access-table td:first-child { font-weight: 500; color: var(--c-ink); padding-right: 16px; white-space: nowrap; }
.access-table tr:last-child td { border-bottom: none; }
.access-address { font-size: 14px; color: var(--c-gray); line-height: 1.8; }
.access-block a { color: var(--c-wave); text-decoration: underline; }
.access-block p { font-size: 14px; color: var(--c-gray); line-height: 1.8; }

.access-map {
  position: sticky;
  top: calc(var(--nav-h) + 16px);
}
.access-map iframe {
  width: 100%;
  height: 360px;
  border: none;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-card);
}
.map-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 13px;
  color: var(--c-wave);
  font-weight: 500;
}
.map-link:hover { text-decoration: underline; }

/* ── 予約フォーム ───────────────────────────────────────────── */
.reserve-form { margin-top: 32px; }
.form-row { margin-bottom: 20px; }
.form-row--2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group { display: flex; flex-direction: column; }
.form-group label {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,.75);
  margin-bottom: 7px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.req {
  font-size: 10px;
  background: rgba(14,124,110,.5);
  color: var(--c-sky);
  padding: 1px 7px;
  border-radius: 99px;
  font-weight: 500;
}
.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  font-size: 14px;
  color: var(--c-white);
  outline: none;
  transition: border-color .2s, background .2s;
  width: 100%;
  resize: vertical;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,.3); }
.form-group select option { background: var(--c-deep); color: var(--c-white); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--c-sky);
  background: rgba(255,255,255,.12);
}
.form-group input.invalid,
.form-group select.invalid { border-color: #F87171; }
.form-error {
  font-size: 12px;
  color: #F87171;
  margin-top: 5px;
  min-height: 16px;
}

/* 料金プレビュー */
.price-preview {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(14,124,110,.25);
  border: 1px solid rgba(126,200,200,.3);
  border-radius: var(--r-sm);
  padding: 14px 20px;
  margin-bottom: 20px;
}
.price-preview__label {
  font-size: 13px;
  color: var(--c-sky);
  font-weight: 500;
}
.price-preview__amount {
  font-family: var(--f-mono);
  font-size: 24px;
  font-weight: 500;
  color: var(--c-white);
}

.submit-btn__spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: var(--c-white);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.form-success,
.form-error-global {
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: var(--r-sm);
  font-size: 14px;
  text-align: center;
}
.form-success      { background: rgba(14,124,110,.3); color: var(--c-sky); }
.form-error-global { background: rgba(248,113,113,.15); color: #F87171; }

/* ── FAQ ─────────────────────────────────────────────────────── */
.faq-list { margin-top: 32px; border-top: 1px solid var(--c-border); }
.faq-item { border-bottom: 1px solid var(--c-border); }
.faq-q {
  width: 100%;
  padding: 18px 40px 18px 0;
  text-align: left;
  background: none;
  border: none;
  font-size: 15px;
  font-weight: 500;
  color: var(--c-ink);
  cursor: pointer;
  position: relative;
  transition: color .2s;
}
.faq-q:hover { color: var(--c-wave); }
.faq-q::after {
  content: '+';
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  font-weight: 300;
  color: var(--c-wave);
  transition: transform .25s;
}
.faq-q[aria-expanded="true"]::after { transform: translateY(-50%) rotate(45deg); }
.faq-a {
  font-size: 14px;
  color: var(--c-gray);
  line-height: 1.8;
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease, padding .3s ease;
}
.faq-a.open {
  max-height: 200px;
  padding-bottom: 18px;
}

/* ── フッター ───────────────────────────────────────────────── */
.footer {
  background: var(--c-deep);
  color: rgba(255,255,255,.55);
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 5% 40px;
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-logo {
  font-family: var(--f-display);
  font-size: 22px;
  font-style: italic;
  color: var(--c-white);
  margin-bottom: 6px;
}
.footer-tagline { font-size: 13px; }
.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}
.footer-nav a { font-size: 13px; transition: color .2s; }
.footer-nav a:hover { color: var(--c-white); }
.footer-sns { display: flex; gap: 16px; }
.footer-sns a { color: rgba(255,255,255,.5); transition: color .2s; }
.footer-sns a:hover { color: var(--c-sky); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 5%;
  text-align: center;
  font-size: 12px;
}

/* ── スクロールフェード（JS で .visible 付与） ────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .55s ease, transform .55s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── レスポンシブ ────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .hero-content { padding: calc(var(--nav-h) + 32px) 6% 100px; }
  .hero-stats { flex-wrap: wrap; gap: 12px; }
  .how-steps { flex-direction: column; align-items: stretch; }
  .how-step { flex-direction: row; text-align: left; align-items: flex-start; gap: 16px; }
  .how-step__num { flex-shrink: 0; }
  .how-step__arrow { display: none; }
  .access-grid { grid-template-columns: 1fr; }
  .access-map { position: static; }
  .form-row--2 { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 28px; }
}

@media (max-width: 480px) {
  .section { padding: 64px 0; }
  .bikes-grid { grid-template-columns: 1fr; }
  .courses-grid { grid-template-columns: 1fr; }
  .price-notes { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}

/* ── 言語切替ボタン ──────────────────────────────────────────── */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 99px;
  padding: 3px;
  margin-right: 6px;
}
.lang-btn {
  background: none;
  border: none;
  border-radius: 99px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 500;
  font-family: var(--f-mono);
  color: rgba(255,255,255,.6);
  cursor: pointer;
  transition: background .18s, color .18s;
  white-space: nowrap;
}
.lang-btn:hover  { color: var(--c-white); }
.lang-btn.active { background: var(--c-wave); color: var(--c-white); }
.lang-switcher--mobile {
  margin-top: 16px;
  background: rgba(255,255,255,.05);
  border-radius: 10px;
  padding: 8px;
  justify-content: center;
  gap: 6px;
}
.lang-switcher--mobile .lang-btn { font-size: 13px; padding: 8px 14px; }

/* ── パスワード認証モーダル ──────────────────────────────────── */
.pw-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6,43,58,.7);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1200;
  padding: 16px;
}
.pw-overlay[hidden] { display: none !important; }
.pw-modal {
  background: var(--c-white);
  border-radius: var(--r-lg);
  padding: 40px 36px 32px;
  width: 100%;
  max-width: 360px;
  text-align: center;
  box-shadow: 0 24px 64px rgba(6,43,58,.35);
  animation: pwFadeIn .25s ease both;
}
@keyframes pwFadeIn {
  from { opacity: 0; transform: translateY(12px) scale(.97); }
  to   { opacity: 1; transform: none; }
}
.pw-modal__icon  { font-size: 36px; margin-bottom: 14px; }
.pw-modal__title {
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--c-ink);
  margin-bottom: 6px;
}
.pw-modal__desc {
  font-size: 14px;
  color: var(--c-gray);
  margin-bottom: 22px;
}
.pw-form { display: flex; flex-direction: column; gap: 12px; }
.pw-input {
  width: 100%;
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 13px 16px;
  font-size: 15px;
  text-align: center;
  letter-spacing: .12em;
  color: var(--c-ink);
  outline: none;
  transition: border-color .2s;
  font-family: var(--f-body);
}
.pw-input:focus { border-color: var(--c-wave); }
.pw-input--shake {
  animation: shake .4s ease;
  border-color: #C0392B !important;
}
@keyframes shake {
  0%,100% { transform: translateX(0); }
  20%      { transform: translateX(-8px); }
  40%      { transform: translateX(8px); }
  60%      { transform: translateX(-5px); }
  80%      { transform: translateX(5px); }
}
.pw-error {
  font-size: 13px;
  color: #C0392B;
  background: #FAECE7;
  border-radius: var(--r-sm);
  padding: 8px 12px;
  margin: 0;
}
.pw-actions { display: flex; gap: 10px; margin-top: 4px; }
.pw-btn {
  flex: 1;
  padding: 13px;
  border-radius: var(--r-sm);
  border: none;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--f-body);
  cursor: pointer;
  transition: opacity .2s;
}
.pw-btn:hover { opacity: .88; }
.pw-btn--submit { background: linear-gradient(135deg, var(--c-ocean), var(--c-wave)); color: var(--c-white); }
.pw-btn--cancel { background: var(--c-sand); color: var(--c-ink); }

/* ── 管理トリガー（フッター著作権テキスト・見た目は変えない） ── */
#footer-trigger { cursor: default; user-select: none; }

/* ── 編集可能要素のハイライト ────────────────────────────────── */
body.edit-mode .i18n-editable {
  outline: 2px dashed rgba(14,124,110,.45);
  outline-offset: 2px;
  cursor: pointer !important;
  border-radius: 2px;
  transition: outline-color .15s;
}
body.edit-mode .i18n-editable:hover  { outline-color: var(--c-wave); background: rgba(14,124,110,.06); }
body.edit-mode .i18n-editing         { outline: 2px solid var(--c-wave) !important; }

/* ── インラインエディター ────────────────────────────────────── */
.i18n-inline-editor {
  background: var(--c-white);
  border: 1px solid var(--c-wave);
  border-radius: var(--r-md);
  padding: 14px;
  margin: 6px 0;
  box-shadow: 0 8px 32px rgba(10,61,82,.18);
  z-index: 800;
  position: relative;
}
.ile-label {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--c-wave);
  margin-bottom: 8px;
  font-weight: 500;
}
.ile-textarea {
  width: 100%;
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  padding: 10px;
  font-size: 13px;
  color: var(--c-ink);
  background: var(--c-mist);
  resize: vertical;
  outline: none;
  font-family: var(--f-body);
  line-height: 1.6;
}
.ile-textarea:focus { border-color: var(--c-wave); }
.ile-actions { display: flex; gap: 8px; margin-top: 10px; }
.ile-btn { padding: 7px 16px; border-radius: var(--r-sm); border: none; font-size: 13px; font-weight: 500; font-family: var(--f-body); cursor: pointer; }
.ile-btn--save   { background: var(--c-wave); color: var(--c-white); }
.ile-btn--reset  { background: var(--c-sand); color: var(--c-ink); }
.ile-btn--cancel { background: none; color: var(--c-gray); }
.ile-btn:hover { opacity: .85; }

/* ── 編集パネル ──────────────────────────────────────────────── */
.edit-panel {
  position: fixed;
  bottom: 0; right: 0;
  width: min(460px, 100vw);
  height: min(580px, 80vh);
  background: var(--c-white);
  border-top: 3px solid var(--c-wave);
  border-left: 1px solid var(--c-border);
  border-top-left-radius: var(--r-lg);
  box-shadow: -8px -8px 40px rgba(10,61,82,.15);
  display: flex;
  flex-direction: column;
  z-index: 1000;
  font-size: 13px;
}
.edit-panel[hidden] { display: none !important; }
.edit-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--c-border);
  gap: 8px;
  flex-wrap: wrap;
}
.edit-panel__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--c-ink);
  font-size: 14px;
}
.edit-panel__icon { font-size: 16px; }
.edit-panel__lang-badge {
  background: var(--c-wave);
  color: var(--c-white);
  font-size: 11px;
  font-family: var(--f-mono);
  padding: 2px 8px;
  border-radius: 99px;
}
.edit-panel__actions { display: flex; gap: 6px; flex-wrap: wrap; }
.ep-btn {
  padding: 5px 11px;
  border-radius: var(--r-sm);
  border: 1px solid var(--c-border);
  background: var(--c-white);
  font-size: 12px;
  font-weight: 500;
  font-family: var(--f-body);
  cursor: pointer;
  color: var(--c-ink);
  transition: background .15s;
}
.ep-btn:hover           { background: var(--c-mist); }
.ep-btn--export         { border-color: var(--c-wave); color: var(--c-wave); }
.ep-btn--close          { border-color: #E0C4C4; color: #993C1D; }
.edit-panel__note {
  padding: 10px 16px;
  background: #F0FAF9;
  font-size: 12px;
  color: #085041;
  border-bottom: 1px solid var(--c-border);
  line-height: 1.6;
}
.edit-panel__search-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--c-border);
}
.ep-search {
  flex: 1;
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  padding: 7px 12px;
  font-size: 13px;
  outline: none;
  color: var(--c-ink);
}
.ep-search:focus { border-color: var(--c-wave); }
.ep-count { font-size: 11px; color: var(--c-gray); white-space: nowrap; font-family: var(--f-mono); }
.edit-panel__list { flex: 1; overflow-y: auto; padding: 8px 0; }
.ep-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  grid-template-rows: auto auto;
  gap: 3px 8px;
  padding: 9px 16px;
  border-bottom: 1px solid var(--c-border);
  align-items: center;
}
.ep-row--custom { background: #F0FAF9; }
.ep-key {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--c-wave);
  grid-column: 1;
  display: flex;
  align-items: center;
  gap: 4px;
}
.ep-custom-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--c-wave);
  display: inline-block;
  flex-shrink: 0;
}
.ep-val {
  font-size: 12px;
  color: var(--c-gray);
  grid-column: 1;
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 280px;
}
.ep-edit-btn, .ep-reset-btn {
  padding: 4px 10px;
  border-radius: var(--r-sm);
  border: 1px solid var(--c-border);
  background: var(--c-white);
  font-size: 11px;
  cursor: pointer;
  grid-row: 1 / 3;
  align-self: center;
}
.ep-edit-btn  { color: var(--c-wave); border-color: var(--c-wave); }
.ep-reset-btn { color: var(--c-gray); }
.ep-reset-btn:disabled { opacity: .35; cursor: not-allowed; }
.ep-inline-edit {
  width: 100%;
  grid-column: 1 / -1;
  border: 1px solid var(--c-wave);
  border-radius: var(--r-sm);
  padding: 8px;
  font-size: 12px;
  resize: vertical;
  margin-top: 4px;
}

/* ── トースト ────────────────────────────────────────────────── */
.edit-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--c-white);
  padding: 10px 22px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 500;
  z-index: 1100;
  box-shadow: 0 4px 20px rgba(0,0,0,.2);
  pointer-events: none;
  white-space: nowrap;
}

/* ── アクセシビリティ ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .hero-bike, .wave-path, .fade-up { animation: none; transition: none; }
  .fade-up { opacity: 1; transform: none; }
}
:focus-visible { outline: 3px solid var(--c-sky); outline-offset: 3px; }
