*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-main: #f8f4ec;
  --bg-sub: #efe7d6;
  --card-bg: #fffdf9;
  --wood-dark: #3e2723;
  --wood-mid: #6d4c41;
  --wood-light: #d7ccc8;
  --noren-indigo: #1e3a5f;
  --noren-indigo-dark: #142842;
  --onsen-red: #c93b2b;
  --onsen-red-dark: #a3291b;
  --onsen-orange: #e06d1b;
  --gold: #c8962e;
  --gold-light: #fbf2d5;
  --green-bamboo: #2e6f40;
  --text-main: #2c221e;
  --text-muted: #6e5a4f;
  --border-warm: #e2d5c1;
  --shadow-soft: 0 8px 30px rgba(62, 39, 35, 0.09);
  --shadow-strong: 0 14px 40px rgba(62, 39, 35, 0.16);
  --radius-lg: 20px;
  --radius-md: 12px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hidden {
  display: none !important;
}

body {
  font-family: 'M PLUS Rounded 1c', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-main);
  background-image:
    radial-gradient(circle at 15% 15%, rgba(201, 59, 43, 0.05) 0%, transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(30, 58, 95, 0.06) 0%, transparent 50%);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

/* パーティクルCanvas */
#particleCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 50;
}

.app-container {
  position: relative;
  z-index: 1;
  max-width: 880px;
  margin: 0 auto;
  padding: 1.25rem 1.25rem 4rem;
}

/* ヘッダー */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--border-warm);
  transition: all 0.2s ease;
}

.back-link:hover {
  color: var(--onsen-red);
  border-color: var(--onsen-red);
  transform: translateX(-3px);
}

.sound-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--border-warm);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sound-toggle-btn:hover {
  border-color: var(--wood-mid);
  background: #fff;
}

/* 暖簾（のれん）ヒーローセクション */
.noren-hero {
  text-align: center;
  margin-bottom: 2rem;
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  border: 2px solid var(--border-warm);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  padding-bottom: 1.75rem;
}

.noren-curtain {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  background: var(--wood-dark);
  padding: 6px 6px 0;
  margin-bottom: 1.4rem;
  border-bottom: 4px solid var(--bg-sub);
}

.noren-flap {
  background: linear-gradient(180deg, var(--noren-indigo-dark) 0%, var(--noren-indigo) 100%);
  color: #fff;
  padding: 0.85rem 0.25rem 1.1rem;
  border-radius: 0 0 8px 8px;
  font-family: 'Shippori Mincho', serif;
  font-weight: 800;
  font-size: clamp(0.95rem, 2.5vw, 1.25rem);
  letter-spacing: 0.15em;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transform-origin: top center;
  animation: norenSway 5s ease-in-out infinite alternate;
}

.noren-flap:nth-child(even) {
  animation-delay: 0.8s;
}

.noren-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1em;
  height: 2.1em;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  color: #ffcf70;
  font-size: 1.05em;
  letter-spacing: 0;
}

@keyframes norenSway {
  0% { transform: rotateX(0deg) skewX(0deg); }
  100% { transform: rotateX(6deg) skewX(1deg); }
}

.hero-badge {
  display: inline-block;
  background: rgba(201, 59, 43, 0.1);
  color: var(--onsen-red);
  border: 1px solid rgba(201, 59, 43, 0.28);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.2rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 0.6rem;
}

.main-title {
  font-family: 'Shippori Mincho', serif;
  font-size: clamp(1.9rem, 5vw, 2.8rem);
  font-weight: 800;
  color: var(--wood-dark);
  letter-spacing: 0.04em;
  margin-bottom: 0.4rem;
}

.hero-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  padding: 0 1rem;
}

/* カード共通 */
.card {
  background: var(--card-bg);
  border: 2px solid var(--border-warm);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow-soft);
  margin-bottom: 1.75rem;
}

.block-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.4rem;
}

.block-title {
  font-family: 'Shippori Mincho', serif;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--wood-dark);
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.step-badge {
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  background: var(--noren-indigo);
  color: #fff;
  padding: 0.18rem 0.6rem;
  border-radius: 6px;
}

.block-desc {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.area-quick-btns {
  display: flex;
  gap: 0.45rem;
}

.btn-mini {
  background: var(--bg-sub);
  border: 1px solid var(--border-warm);
  color: var(--wood-dark);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-mini:hover {
  background: var(--wood-dark);
  color: #fff;
}

/* エリア選択チェックボックスグリッド */
.area-checkbox-grid {
  border: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.area-check-card {
  cursor: pointer;
  user-select: none;
  position: relative;
}

.area-check-card input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.area-card-inner {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-md);
  border: 2px solid var(--border-warm);
  background: #fff;
  transition: all 0.2s ease;
}

.area-check-card input[type="checkbox"]:checked + .area-card-inner {
  border-color: var(--onsen-red);
  background: linear-gradient(135deg, rgba(201, 59, 43, 0.07), rgba(224, 109, 27, 0.04));
  box-shadow: 0 3px 10px rgba(201, 59, 43, 0.12);
}

.area-check-card input[type="checkbox"]:focus-visible + .area-card-inner {
  outline: 2px solid var(--noren-indigo);
  outline-offset: 2px;
}

.area-emoji {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.area-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.area-name {
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--wood-dark);
  line-height: 1.25;
}

.area-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.area-count {
  font-size: 0.72rem;
  font-weight: 800;
  background: var(--bg-sub);
  color: var(--text-muted);
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
}

.area-check-card input[type="checkbox"]:checked + .area-card-inner .area-count {
  background: var(--onsen-red);
  color: #fff;
}

.candidate-summary {
  text-align: center;
  font-size: 0.9rem;
  background: var(--bg-main);
  padding: 0.55rem 1rem;
  border-radius: 10px;
  color: var(--wood-mid);
}

.candidate-summary strong {
  color: var(--onsen-red);
  font-size: 1.1rem;
}

.error-msg {
  color: var(--onsen-red);
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
  margin-top: 0.5rem;
}

.section-divider {
  border: none;
  border-top: 1px dashed var(--border-warm);
  margin: 1.5rem 0;
}

/* 現在地設定コントロール */
.origin-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.btn-geo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background: var(--noren-indigo);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 0.65rem 1.15rem;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-geo:hover {
  background: var(--noren-indigo-dark);
  transform: translateY(-1px);
}

.btn-geo.is-active {
  background: var(--green-bamboo);
}

.origin-preset-wrap {
  flex: 1;
  min-width: 220px;
}

.origin-select,
.custom-origin-input {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border-radius: 10px;
  border: 1.5px solid var(--border-warm);
  background: #fff;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
}

.custom-origin-wrap {
  margin-bottom: 0.75rem;
}

.origin-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  background: var(--bg-main);
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--onsen-orange);
  flex-shrink: 0;
}

.origin-status.is-gps .status-dot {
  background: var(--green-bamboo);
}

/* ガチャボタン＆木桶エリア */
.gacha-stage-area {
  margin-top: 1.6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
}

.oke-illustration {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.rising-steam {
  display: flex;
  gap: 0.6rem;
  font-size: 1.35rem;
  color: var(--onsen-red);
  opacity: 0.75;
  margin-bottom: -0.2rem;
}

.rising-steam span {
  animation: steamFloat 2.4s ease-in-out infinite;
}

.rising-steam span:nth-child(2) {
  animation-delay: 0.6s;
  color: #9e9e9e;
}

.rising-steam span:nth-child(3) {
  animation-delay: 1.2s;
}

@keyframes steamFloat {
  0%, 100% { transform: translateY(0) scale(0.95); opacity: 0.4; }
  50% { transform: translateY(-8px) scale(1.1); opacity: 0.9; }
}

.wooden-oke {
  font-size: 3.6rem;
  line-height: 1;
  filter: drop-shadow(0 6px 12px rgba(62, 39, 35, 0.2));
}

.btn-gacha-spin {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  background: linear-gradient(135deg, var(--onsen-red) 0%, var(--onsen-orange) 100%);
  color: #fff;
  font-family: 'Shippori Mincho', serif;
  font-size: clamp(1.25rem, 4vw, 1.55rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  border: none;
  border-radius: 999px;
  padding: 1.05rem 3.2rem;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(201, 59, 43, 0.38);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
}

.btn-gacha-spin:hover:not(:disabled) {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 14px 34px rgba(201, 59, 43, 0.5);
}

.btn-gacha-spin:active:not(:disabled) {
  transform: translateY(1px) scale(0.99);
}

.btn-gacha-spin:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
  animation: btnShine 3.5s infinite;
}

@keyframes btnShine {
  0% { left: -100%; }
  35%, 100% { left: 160%; }
}

/* 湯けむりトランジション演出オーバーレイ */
.steam-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: radial-gradient(circle, rgba(255, 252, 247, 0.96) 0%, rgba(242, 234, 220, 0.98) 100%);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  animation: fadeInOverlay 0.25s ease forwards;
}

@keyframes fadeInOverlay {
  from { opacity: 0; }
  to { opacity: 1; }
}

.steam-clouds {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.steam-cloud {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0) 70%);
  filter: blur(12px);
  animation: cloudSwirl 1.8s ease-in-out infinite alternate;
}

.steam-cloud.c1 { width: 420px; height: 420px; top: -10%; left: -5%; }
.steam-cloud.c2 { width: 500px; height: 500px; bottom: -15%; right: -10%; animation-delay: 0.3s; }
.steam-cloud.c3 { width: 380px; height: 380px; top: 20%; right: 10%; animation-delay: 0.6s; }
.steam-cloud.c4 { width: 450px; height: 450px; bottom: 10%; left: 12%; animation-delay: 0.9s; }
.steam-cloud.c5 { width: 600px; height: 600px; top: 50%; left: 50%; transform: translate(-50%, -50%); }

@keyframes cloudSwirl {
  0% { transform: scale(0.9) translateY(15px); opacity: 0.7; }
  100% { transform: scale(1.18) translateY(-15px); opacity: 1; }
}

.steam-center-box {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
}

.garapon-stage {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.garapon-wheel {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: conic-gradient(
    #d4a373 0deg 60deg,
    #bc6c25 60deg 120deg,
    #d4a373 120deg 180deg,
    #bc6c25 180deg 240deg,
    #d4a373 240deg 300deg,
    #bc6c25 300deg 360deg
  );
  border: 6px solid var(--wood-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(62, 39, 35, 0.3);
  animation: spinWheel 0.55s linear infinite;
}

.wheel-mark {
  font-size: 3rem;
  background: var(--card-bg);
  width: 68px;
  height: 68px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--wood-dark);
}

@keyframes spinWheel {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.gacha-ball {
  position: absolute;
  bottom: -6px;
  right: -6px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ffe066, #d97706);
  border: 3px solid #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: scale(0.2);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.gacha-ball.pop-out {
  opacity: 1;
  transform: scale(1.15);
}

.roulette-region {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--onsen-red);
  margin-bottom: 0.3rem;
}

.roulette-name {
  font-family: 'Shippori Mincho', serif;
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 800;
  color: var(--wood-dark);
  margin-bottom: 0.5rem;
}

.steam-sub-msg {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 700;
}

/* 結果カード */
.result-section {
  animation: resultAppear 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes resultAppear {
  from { opacity: 0; transform: translateY(24px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.result-card {
  background: var(--card-bg);
  border: 3px solid var(--wood-dark);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-strong);
  overflow: hidden;
  margin-bottom: 1.75rem;
}

.result-top-ribbon {
  background: linear-gradient(90deg, var(--wood-dark), #5d4037, var(--wood-dark));
  color: #ffdf7e;
  padding: 0.6rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
}

.rarity-stars {
  color: #ffd43b;
  font-size: 1.1rem;
  letter-spacing: 0.1em;
}

.result-header-area {
  text-align: center;
  padding: 1.75rem 1.5rem 1.4rem;
  background:
    radial-gradient(circle at 50% 0%, rgba(200, 150, 46, 0.12), transparent 70%);
  border-bottom: 2px dashed var(--border-warm);
}

.location-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.badge-region {
  background: var(--noren-indigo);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.22rem 0.85rem;
  border-radius: 999px;
}

.badge-pref {
  background: var(--bg-sub);
  color: var(--wood-dark);
  border: 1px solid var(--border-warm);
  font-size: 0.8rem;
  font-weight: 800;
  padding: 0.22rem 0.9rem;
  border-radius: 999px;
}

.onsen-kana {
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.14em;
  margin-bottom: 0.15rem;
}

.onsen-title {
  font-family: 'Shippori Mincho', serif;
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 800;
  color: var(--onsen-red);
  line-height: 1.2;
  margin-bottom: 0.55rem;
}

.onsen-catch {
  font-weight: 800;
  font-size: 1.02rem;
  color: var(--wood-dark);
}

/* 泉質・タグ */
.spring-meta-box {
  padding: 1.2rem 1.5rem;
  background: var(--bg-main);
  border-bottom: 1px solid var(--border-warm);
}

.spring-quality-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}

.meta-label {
  font-size: 0.78rem;
  font-weight: 800;
  background: var(--wood-mid);
  color: #fff;
  padding: 0.2rem 0.65rem;
  border-radius: 6px;
}

.meta-value {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--wood-dark);
}

.tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.onsen-tag {
  font-size: 0.78rem;
  font-weight: 700;
  background: #fff;
  color: var(--onsen-red);
  border: 1px solid rgba(201, 59, 43, 0.3);
  padding: 0.18rem 0.7rem;
  border-radius: 999px;
}

/* 特徴解説 */
.feature-detail-box {
  padding: 1.5rem;
  border-bottom: 2px dashed var(--border-warm);
}

.box-heading {
  font-family: 'Shippori Mincho', serif;
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--wood-dark);
  margin-bottom: 0.75rem;
}

.feature-text {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-main);
  margin-bottom: 1.15rem;
}

.sub-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.85rem;
}

.sub-info-item {
  background: var(--bg-main);
  border: 1px solid var(--border-warm);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.sub-info-label {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text-muted);
}

.sub-info-val {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--wood-dark);
}

/* 🏨 楽天トラベル 宿・旅館候補セクション */
.rakuten-section {
  padding: 1.6rem 1.5rem;
  background: linear-gradient(180deg, #fffaf4 0%, #fdf5ec 100%);
  border-bottom: 2px dashed var(--border-warm);
}

.rakuten-header {
  margin-bottom: 1.1rem;
}

.rakuten-title-wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 0.35rem;
}

.rakuten-title {
  color: #a31515;
  margin-bottom: 0;
}

.rakuten-pr-badge {
  font-size: 0.72rem;
  font-weight: 800;
  color: #bf0000;
  background: #fff0f0;
  border: 1px solid #ffcccc;
  padding: 0.18rem 0.55rem;
  border-radius: 4px;
  letter-spacing: 0.04em;
}

.rakuten-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.rakuten-hotel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-bottom: 1.35rem;
}

.rakuten-loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 1.75rem 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.loading-spinner {
  display: inline-block;
  animation: pulseRotate 1.2s ease-in-out infinite;
}

@keyframes pulseRotate {
  0% { transform: scale(0.9); }
  50% { transform: scale(1.15) rotate(10deg); }
  100% { transform: scale(0.9); }
}

.rakuten-hotel-card {
  background: #fff;
  border: 1.5px solid var(--border-warm);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  box-shadow: 0 2px 8px rgba(62, 39, 35, 0.05);
}

.rakuten-hotel-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(163, 21, 21, 0.12);
  border-color: #d4a373;
}

.hotel-card-visual {
  height: 125px;
  position: relative;
  overflow: hidden;
  background: #f5ede4;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hotel-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.rakuten-hotel-card:hover .hotel-thumb-img {
  transform: scale(1.05);
}

.hotel-thumb-fallback-icon {
  font-size: 2.8rem;
}

.fallback-visual {
  background: linear-gradient(135deg, #f7efe6 0%, #edd8c4 100%);
}

.fallback-icon {
  font-size: 2.6rem;
}

.hotel-badge-rec {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(163, 21, 21, 0.92);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.hotel-card-body {
  padding: 0.95rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 0.45rem;
}

.hotel-card-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--wood-dark);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.55em;
}

.hotel-card-desc {
  font-size: 0.8rem;
  color: var(--text-main);
  line-height: 1.45;
  margin-bottom: 0.3rem;
  flex-grow: 1;
}

.hotel-card-addr {
  font-size: 0.74rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hotel-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  margin-top: auto;
}

.hotel-review-score {
  color: #e65100;
  font-weight: 800;
}

.hotel-price {
  color: #bf0000;
  font-weight: 800;
}

.hotel-card-bottom {
  margin-top: auto;
  padding-top: 0.65rem;
  border-top: 1px dashed var(--border-warm);
}

.btn-hotel-link {
  display: block;
  text-align: center;
  background: #fff5f5;
  color: #a31515;
  border: 1.5px solid #ffcccc;
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 800;
  transition: all 0.15s ease;
}

.btn-hotel-link:hover {
  background: #a31515;
  color: #fff;
  border-color: #a31515;
}

/* アクションボタンエリア（2ボタン配置） */
.rakuten-action-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.15rem;
  width: 100%;
}

.btn-rakuten-main,
.btn-rakuten-sub {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  max-width: 520px;
  padding: 0.9rem 1.3rem;
  text-decoration: none;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  text-align: center;
}

.btn-rakuten-main {
  background: linear-gradient(135deg, #bf0000 0%, #8c0f0f 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(191, 0, 0, 0.28);
}

.btn-rakuten-main:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(191, 0, 0, 0.38);
  background: linear-gradient(135deg, #d30000 0%, #a31515 100%);
}

.btn-rakuten-sub {
  background: linear-gradient(135deg, #c07d38 0%, #9c5c20 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(156, 92, 32, 0.24);
}

.btn-rakuten-sub:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(156, 92, 32, 0.35);
  background: linear-gradient(135deg, #d48e43 0%, #ab6726 100%);
}

.rakuten-main-icon {
  font-size: 1.25rem;
}

/* こだわりクイック検索 */
.rakuten-quick-box {
  margin-top: 1.1rem;
  padding-top: 0.9rem;
  border-top: 1px dashed rgba(163, 21, 21, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
}

.rakuten-quick-label {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--wood-dark);
}

.rakuten-quick-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.rakuten-tag-link {
  display: inline-flex;
  align-items: center;
  background: #fff;
  color: var(--wood-dark);
  border: 1px solid var(--border-warm);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.15s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.rakuten-tag-link:hover {
  background: #fff0f0;
  border-color: #bf0000;
  color: #bf0000;
  transform: translateY(-1px);
}

/* 現在地からのルート・マップ表示 */
.route-section {
  padding: 1.5rem;
  background: linear-gradient(180deg, #fffdf9 0%, #f7f1e5 100%);
  border-bottom: 1px solid var(--border-warm);
}

.route-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
}

.route-header .box-heading {
  margin-bottom: 0;
}

.route-origin-badge {
  font-size: 0.78rem;
  font-weight: 800;
  background: var(--noren-indigo);
  color: #fff;
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
}

.route-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.metric-item {
  background: #fff;
  border: 1px solid var(--border-warm);
  border-radius: 12px;
  padding: 0.75rem 0.6rem;
  text-align: center;
}

.metric-label {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.metric-val {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--noren-indigo);
}

.route-action-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.15rem;
}

.btn-route {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.1rem;
  border-radius: 12px;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-route:hover {
  transform: translateY(-2px);
}

.btn-route-drive {
  background: linear-gradient(135deg, #1e3a5f, #2b588d);
  box-shadow: 0 4px 14px rgba(30, 58, 95, 0.25);
}

.btn-route-transit {
  background: linear-gradient(135deg, #2e6f40, #3d8c54);
  box-shadow: 0 4px 14px rgba(46, 111, 64, 0.25);
}

.route-btn-icon {
  font-size: 1.65rem;
}

.route-btn-body {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.route-btn-main {
  font-size: 0.92rem;
  font-weight: 800;
}

.route-btn-sub {
  font-size: 0.72rem;
  opacity: 0.88;
}

/* 埋め込みマップ */
.map-container {
  border: 2px solid var(--border-warm);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.map-tabs {
  display: flex;
  background: var(--bg-sub);
  border-bottom: 1px solid var(--border-warm);
}

.map-tab {
  flex: 1;
  padding: 0.65rem 0.75rem;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.map-tab.is-active {
  background: #fff;
  color: var(--onsen-red);
  box-shadow: inset 0 -3px 0 var(--onsen-red);
}

.map-frame-wrap {
  width: 100%;
  height: 300px;
  background: #eae4dc;
}

#onsenMapFrame {
  width: 100%;
  height: 100%;
  border: 0;
}

/* フッターアクション */
.result-footer-actions {
  padding: 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
}

.btn-spin-again {
  width: 100%;
  max-width: 360px;
  padding: 0.95rem 1.5rem;
  border-radius: 999px;
  border: 2.5px solid var(--onsen-red);
  background: #fff;
  color: var(--onsen-red);
  font-family: 'Shippori Mincho', serif;
  font-size: 1.15rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-spin-again:hover {
  background: var(--onsen-red);
  color: #fff;
  transform: translateY(-2px);
}

.share-btns-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  max-width: 620px;
}

.btn-share {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  border: none;
}

.btn-share:hover {
  transform: translateY(-1px);
  opacity: 0.9;
}

.btn-share-x {
  background: #000;
  color: #fff;
}

.btn-share-threads {
  background: #111;
  color: #fff;
  border: 1px solid #333;
}

.btn-share-line {
  background: #06c755;
  color: #fff;
}

.btn-share-fb {
  background: #1877f2;
  color: #fff;
}

.btn-share-native {
  background: #334155;
  color: #fff;
}

.btn-share-copy {
  background: var(--bg-sub);
  color: var(--wood-dark);
  border: 1px solid var(--border-warm);
}

.btn-share-copy:hover {
  background: var(--wood-light);
  opacity: 1;
}

/* 履歴セクション */
.history-title {
  font-family: 'Shippori Mincho', serif;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--wood-dark);
  margin-bottom: 0.85rem;
}

.history-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.history-item-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--bg-main);
  border: 1px solid var(--border-warm);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--wood-dark);
  cursor: pointer;
  transition: all 0.15s ease;
}

.history-item-btn:hover {
  border-color: var(--onsen-red);
  color: var(--onsen-red);
  background: #fff;
}

/* トースト */
.toast-msg {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--wood-dark);
  color: #fff;
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  z-index: 200;
}

.app-footer {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2rem;
}

@media (max-width: 560px) {
  .card {
    padding: 1.25rem 1rem;
  }

  .area-checkbox-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .route-metrics {
    grid-template-columns: 1fr;
  }

  .feature-detail-box,
  .rakuten-section,
  .route-section {
    padding: 1.15rem 1rem;
  }

  .rakuten-hotel-grid {
    grid-template-columns: 1fr;
  }

  .btn-rakuten-main,
  .btn-rakuten-sub {
    font-size: 0.88rem;
    padding: 0.8rem 1rem;
  }

  .share-btns-row {
    gap: 0.4rem;
  }

  .btn-share {
    padding: 0.45rem 0.75rem;
    font-size: 0.78rem;
  }
}

