/* ============================================
   ななつ星調剤薬局 林町店
   プロフェッショナル × クリエイティブ × 信頼感
   桜十字病院風デザイン
   ============================================ */

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

:root {
  --primary:        #1A6DB5;
  --primary-light:  #3A8ED4;
  --primary-pale:   #EAF4FB;
  --primary-dark:   #0F4D8A;
  --accent:         #00A99D;
  --accent-light:   #E0F7F5;

  --text:           #1A2533;
  --text-light:     #4A5E72;
  --text-muted:     #8096AA;

  --white:          #ffffff;
  --bg:             #F5F8FC;
  --bg-dark:        #0F2640;
  --gray-light:     #E4EBF2;
  --gray:           #A8BCC8;

  --header-height:  76px;
  --container-width: 1120px;
  --radius:         8px;
  --radius-sm:      4px;
  --radius-lg:      16px;
  --radius-full:    9999px;

  --shadow-sm:  0 2px 8px rgba(15, 38, 64, 0.08);
  --shadow-md:  0 4px 24px rgba(15, 38, 64, 0.12);
  --shadow-lg:  0 8px 48px rgba(15, 38, 64, 0.16);

  --transition: 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans JP', 'Zen Maru Gothic', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   ヘッダー
   ============================================ */

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 1px 0 rgba(15, 38, 64, 0.1);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 50%;
  background: white;
  padding: 2px;
  box-shadow: var(--shadow-sm);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
  transition: color var(--transition);
}

.logo-branch {
  font-size: 11px;
  color: rgba(255,255,255,0.85);
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
  transition: color var(--transition);
}

.header.scrolled .logo-name { color: var(--text); text-shadow: none; }
.header.scrolled .logo-branch { color: var(--text-light); text-shadow: none; }

/* ナビゲーション */
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.nav-link:hover {
  background: rgba(255,255,255,0.15);
  color: white;
}

.header.scrolled .nav-link {
  color: var(--text-light);
  text-shadow: none;
}

.header.scrolled .nav-link:hover {
  background: var(--primary-pale);
  color: var(--primary);
}

.nav-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* ハンバーガー（モバイル用） */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s;
}

.header.scrolled .hamburger span { background: var(--text); }

.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 999;
  backdrop-filter: blur(2px);
}

.nav-overlay.active { display: block; }

/* ============================================
   ヒーロー
   ============================================ */

.hero {
  position: relative;
  height: 100svh;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-slider {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 2s ease;
  transform: scale(1.05);
  animation: heroZoom 10s ease-in-out infinite alternate;
}

.hero-slide.active {
  opacity: 1;
}

@keyframes heroZoom {
  from { transform: scale(1.05); }
  to   { transform: scale(1.0); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10, 30, 60, 0.78) 0%,
    rgba(15, 45, 80, 0.65) 50%,
    rgba(10, 30, 60, 0.75) 100%
  );
  z-index: 1;
}

/* 青いアクセントライン */
.hero::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(to bottom, var(--accent), var(--primary));
  z-index: 2;
}

/* ヒーローコンテンツ */
.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  padding: 0 24px;
  max-width: var(--container-width);
  margin: 0 auto;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-eyebrow::before,
.hero-eyebrow::after {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--accent);
}

.hero-title {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: clamp(40px, 7vw, 80px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero-title .accent-line {
  color: var(--accent);
  display: block;
}

.hero-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  vertical-align: middle;
  margin-right: 12px;
  border-radius: 50%;
  background: white;
  padding: 3px;
}

.hero-catch {
  font-size: clamp(14px, 2vw, 17px);
  color: rgba(255,255,255,0.82);
  margin-bottom: 40px;
  line-height: 1.8;
  max-width: 560px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26, 109, 181, 0.4);
}

.btn-secondary {
  background: transparent;
  color: white;
  border-color: rgba(255,255,255,0.6);
}

.btn-secondary:hover {
  background: white;
  color: var(--primary);
  border-color: white;
  transform: translateY(-2px);
}

/* スクロールインジケーター */
.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.6);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.3);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: -40px;
  left: 0;
  width: 100%;
  height: 40px;
  background: var(--accent);
  animation: scrollDrop 1.8s ease-in-out infinite;
}

@keyframes scrollDrop {
  0%   { top: -40px; }
  100% { top: 40px; }
}

/* 非表示（旧デザイン要素） */
/* 星エフェクト要素 — 表示ON */

/* ヒント文 */
.star-hint {
  position: absolute;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.55);
  font-size: 12px;
  letter-spacing: 0.1em;
  white-space: nowrap;
  z-index: 5;
  pointer-events: none;
  animation: starHintFade 3s ease-in-out infinite;
}
@keyframes starHintFade {
  0%,100% { opacity: 0.4; }
  50%      { opacity: 0.8; }
}

/* 浮遊するヒーロー星 */
.hero-star {
  position: absolute;
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  z-index: 2;
  opacity: 0;
  animation: heroStarFloat var(--dur, 8s) var(--delay, 0s) ease-in-out infinite;
  text-shadow: 0 0 6px rgba(255,255,255,0.4);
  pointer-events: auto;
  cursor: pointer;
  padding: 8px;
}
.hero-star:nth-child(1) { top: 12%; left: 6%;  --dur:8s;  --delay:-1s; font-size:14px; }
.hero-star:nth-child(2) { top: 20%; left: 88%; --dur:10s; --delay:-3s; font-size:12px; }
.hero-star:nth-child(3) { top: 75%; left: 4%;  --dur:7s;  --delay:-5s; font-size:12px; }
.hero-star:nth-child(4) { top: 80%; left: 90%; --dur:9s;  --delay:-2s; font-size:14px; }
@keyframes heroStarFloat {
  0%,100% { opacity: 0.05; transform: translateY(0) scale(1); }
  50%      { opacity: 0.4; transform: translateY(-8px) scale(1.05); }
}

/* 北斗七星コンステレーション */
.hero-constellation {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}
.constellation-star {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 4px 2px rgba(160,210,255,0.7);
  animation: constellationPulse 3s ease-in-out infinite;
  pointer-events: auto;
  cursor: pointer;
}
/* 北斗七星 — 右上配置（北斗七星の実際の形を再現） */
.constellation-star:nth-child(1) { top: 12%; left: 68%; animation-delay: 0s; }
.constellation-star:nth-child(2) { top: 16%; left: 73%; animation-delay: 0.3s; }
.constellation-star:nth-child(3) { top: 14%; left: 79%; animation-delay: 0.6s; }
.constellation-star:nth-child(4) { top: 10%; left: 84%; animation-delay: 0.9s; }
.constellation-star:nth-child(5) { top: 18%; left: 87%; animation-delay: 1.2s; }
.constellation-star:nth-child(6) { top: 24%; left: 84%; animation-delay: 1.5s; }
.constellation-star:nth-child(7) { top: 28%; left: 88%; animation-delay: 1.8s; }
@keyframes constellationPulse {
  0%,100% { opacity: 0.4; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.6); }
}
.constellation-line {
  position: absolute;
  height: 1px;
  background: rgba(160,210,255,0.4);
  transform-origin: left center;
  pointer-events: none;
}

/* ページ全体の背景星 */
.global-stars {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.global-star {
  position: absolute;
  color: var(--primary-light);
  animation: globalStarTwinkle var(--dur,8s) var(--delay,0s) ease-in-out infinite;
  opacity: 0;
  pointer-events: auto;
  cursor: pointer;
}
@keyframes globalStarTwinkle {
  0%,100% { opacity: var(--min-op, 0.05); }
  50%      { opacity: var(--max-op, 0.18); }
}

/* セクション両サイドの星 */
.section-stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.section-stars span {
  position: absolute;
  color: var(--primary-light);
  animation: globalStarTwinkle var(--dur,8s) var(--delay,0s) ease-in-out infinite;
  opacity: 0;
  pointer-events: auto;
  cursor: pointer;
}

/* ヒーロー七つ星 */
.hero-seven-stars {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 12px;
}
.hero-seven-stars span {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  animation: heroStarFloat 6s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * 0.3s);
  text-shadow: 0 0 8px rgba(255,255,255,0.6);
}
.hero-seven-stars span:nth-child(1) { animation-delay: 0s; }
.hero-seven-stars span:nth-child(2) { animation-delay: 0.3s; }
.hero-seven-stars span:nth-child(3) { animation-delay: 0.6s; }
.hero-seven-stars span:nth-child(4) { animation-delay: 0.9s; }
.hero-seven-stars span:nth-child(5) { animation-delay: 1.2s; }
.hero-seven-stars span:nth-child(6) { animation-delay: 1.5s; }
.hero-seven-stars span:nth-child(7) { animation-delay: 1.8s; }

/* 星バーストパーティクル */
.star-burst-particle {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  animation: starBurstAnim 0.8s ease-out forwards;
  color: var(--primary-light);
  text-shadow: 0 0 6px rgba(100,200,255,0.8);
}
@keyframes starBurstAnim {
  0%   { opacity: 1; transform: translate(0,0) scale(1); }
  100% { opacity: 0; transform: translate(var(--bx,40px), var(--by,-40px)) scale(0.3); }
}

/* ============================================
   セクション共通
   ============================================ */

.section {
  padding: 96px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-pale);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

.section-title {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 16px;
}

.section-title .em {
  color: var(--primary);
}

.section-desc {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.9;
}

/* ============================================
   About セクション
   ============================================ */

.about {
  background: var(--white);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.about-image-wrapper {
  position: relative;
}

.about-slideshow {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
}

.about-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease;
}

.about-slide.active {
  opacity: 1;
}

/* 画像の横の装飾ライン */
.about-image-wrapper::before {
  content: '';
  position: absolute;
  top: -16px;
  left: -16px;
  right: 24px;
  bottom: 24px;
  border: 2px solid var(--primary-pale);
  border-radius: var(--radius-lg);
  z-index: -1;
}

.about-text h3 {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 24px;
}

.about-text p {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.9;
  margin-bottom: 16px;
}

.about-features {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.feature-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 16px;
  background: var(--primary-pale);
  border: 1px solid rgba(26, 109, 181, 0.15);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  color: var(--primary-dark);
  transition: all var(--transition);
}

.feature-tag:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.feature-tag .star-icon {
  color: var(--accent);
  font-size: 11px;
}

/* ============================================
   サービス（Point形式）
   ============================================ */

.services {
  background: var(--bg);
}

.wave-top::before { display: none; }
.wave-top--blue::before { display: none; }
.wave-top--white::before { display: none; }

.point-list {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.point-item {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 64px;
  align-items: center;
}

.point-item.reverse {
  grid-template-columns: 360px 1fr;
}

.point-item.reverse .point-text { order: 2; }
.point-item.reverse .point-visual { order: 1; }

.point-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.point-text h3 {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 20px;
}

.point-text h3 .em {
  color: var(--primary);
}

.point-text p {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.9;
}

.point-icon-card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  aspect-ratio: 1;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.point-icon-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.point-icon-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.point-icon-card::after {
  content: '';
  position: absolute;
  bottom: -40px;
  right: -40px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--primary-pale);
  opacity: 0.5;
}

.point-icon-card svg {
  width: 80px;
  height: 80px;
  position: relative;
  z-index: 1;
}

.icon-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-light);
  position: relative;
  z-index: 1;
}

.point-item:nth-child(1) .point-icon-card { background: linear-gradient(135deg, #EAF4FB 0%, #ffffff 100%); }
.point-item:nth-child(2) .point-icon-card { background: linear-gradient(135deg, #E0F7F5 0%, #ffffff 100%); }
.point-item:nth-child(3) .point-icon-card { background: linear-gradient(135deg, #EAF4FB 0%, #E0F7F5 100%); }

/* ============================================
   店舗情報
   ============================================ */

.info {
  background: var(--white);
}

.info-card {
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  max-width: 800px;
  margin: 0 auto;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
}

.info-table tr {
  border-bottom: 1px solid var(--gray-light);
}

.info-table tr:last-child {
  border-bottom: none;
}

.info-table th {
  width: 140px;
  padding: 20px 24px;
  background: var(--bg);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-light);
  text-align: left;
  vertical-align: top;
  border-right: 1px solid var(--gray-light);
}

.info-table td {
  padding: 20px 24px;
  font-size: 15px;
  color: var(--text);
  vertical-align: top;
}

.tel-link {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  transition: color var(--transition);
}

.tel-link:hover { color: var(--primary-dark); }

.hours-table {
  overflow-x: auto;
}

table.hours {
  border-collapse: collapse;
  font-size: 13px;
  width: 100%;
  min-width: 0;
}

table.hours th,
table.hours td {
  border: 1px solid var(--gray-light);
  padding: 8px 10px;
  text-align: center;
  white-space: nowrap;
}

table.hours thead th {
  background: var(--primary);
  color: white;
  font-weight: 600;
}

table.hours .hours-head-label {
  min-width: 80px;
}

.dot { color: var(--primary); font-size: 16px; }
.slash { color: var(--text-muted); }

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

.closed-badge {
  display: inline-block;
  background: #FFF0F0;
  color: #C0392B;
  border: 1px solid #F5C6C6;
  border-radius: var(--radius-full);
  padding: 4px 14px;
  font-size: 13px;
  font-weight: 600;
}

/* ============================================
   FAQ
   ============================================ */

.faq {
  background: var(--bg);
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}

.faq-item[open] {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.faq-q {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  position: relative;
}

.faq-q::before {
  content: 'Q';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.faq-q::after {
  content: '+';
  position: absolute;
  right: 20px;
  font-size: 20px;
  font-weight: 300;
  color: var(--text-muted);
  transition: transform var(--transition);
}

.faq-item[open] .faq-q::after {
  transform: rotate(45deg);
  color: var(--primary);
}

.faq-a {
  padding: 0 24px 20px 72px;
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.9;
}

/* ============================================
   アクセス
   ============================================ */

.access {
  background: var(--white);
}

.access-content {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 48px;
  align-items: start;
}

.map-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.map-wrapper iframe {
  display: block;
  width: 100%;
  height: 420px;
}

.access-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.access-detail {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid var(--gray-light);
}

.access-icon {
  width: 40px;
  height: 40px;
  background: var(--primary-pale);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.access-detail h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.access-detail p {
  font-size: 14px;
  color: var(--text);
  line-height: 1.7;
}

/* ============================================
   お問い合わせ
   ============================================ */

.contact {
  background: var(--bg-dark);
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.contact .section-label {
  background: rgba(255,255,255,0.1);
  color: var(--accent);
}

.contact .section-title {
  color: white;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 800px;
  margin: 0 auto;
}

.contact-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  transition: all var(--transition);
}

.contact-card:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-4px);
}

.contact-icon {
  width: 64px;
  height: 64px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.contact-card h3 {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  margin-bottom: 12px;
}

.contact-tel {
  display: block;
  font-size: 28px;
  font-weight: 700;
  color: white;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  transition: color var(--transition);
}

a.contact-tel:hover { color: var(--accent); }

.contact-tel.fax {
  font-size: 24px;
  color: rgba(255,255,255,0.85);
}

.contact-note {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
}

/* ============================================
   フッター
   ============================================ */

.footer {
  background: #09192E;
  padding: 48px 0 24px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-logo-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 50%;
  background: white;
  padding: 2px;
}

.footer-stars {
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.2em;
}

.footer-name {
  font-size: 16px;
  font-weight: 700;
  color: white;
}

.footer-address {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  margin-top: 4px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  max-width: 400px;
  padding-top: 8px;
}

.footer-links a {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  transition: color var(--transition);
}

.footer-links a:hover { color: white; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  text-align: center;
}

.footer-bottom p {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
}

/* ============================================
   トップへ戻る
   ============================================ */

.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: all var(--transition);
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* ============================================
   スクロールアニメーション
   ============================================ */

.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   レスポンシブ
   ============================================ */

@media (max-width: 900px) {
  .about-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-image-wrapper::before { display: none; }

  .point-item,
  .point-item.reverse {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .point-item.reverse .point-text { order: 1; }
  .point-item.reverse .point-visual { order: 2; }

  .point-icon-card {
    max-width: 280px;
    margin: 0 auto;
    aspect-ratio: 1;
    padding: 32px;
  }

  .access-content {
    grid-template-columns: 1fr;
  }

  .contact-content {
    grid-template-columns: 1fr;
    max-width: 480px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 24px;
  }
}

@media (max-width: 768px) {
  :root { --header-height: 64px; }

  .nav {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100dvh;
    background: white;
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 24px 40px;
    gap: 4px;
    z-index: 1000;
    box-shadow: -4px 0 24px rgba(0,0,0,0.15);
    transition: right 0.35s ease;
    overflow-y: auto;
  }

  .nav.active {
    right: 0;
  }

  .nav-link {
    width: 100%;
    color: var(--text);
    text-shadow: none;
    font-size: 15px;
    padding: 12px 16px;
  }

  .nav-link:hover {
    background: var(--primary-pale);
    color: var(--primary);
  }

  .hamburger { display: flex; }

  .section { padding: 64px 0; }

  .section-header { margin-bottom: 40px; }

  .hero-content { padding: 0 20px; }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 480px) {
  .hero-buttons { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .info-table th { width: 70px; padding: 10px 6px; font-size: 11px; }
  .info-table td { padding: 10px 6px; font-size: 13px; }
  table.hours { font-size: 10px; }
  table.hours th,
  table.hours td { padding: 5px 3px; }
  table.hours .hours-head-label { min-width: 50px; font-size: 9px; }
  .time-label { font-size: 9px; }
}

/* ============================================
   スマホ表示強化（PC同等の見た目）
   ============================================ */
@media (max-width: 768px) {
  /* ヒーロー */
  .hero { min-height: 100svh; }
  .hero-title { font-size: clamp(28px, 8vw, 48px); }
  .hero-catch { font-size: clamp(13px, 3.5vw, 16px); line-height: 1.8; }

  /* about */
  .about-image-wrapper {
    max-width: 100%;
    border-radius: 12px;
    overflow: hidden;
  }
  .about-image { border-radius: 12px; }
  .feature-tags { gap: 8px; }
  .feature-tag { font-size: 13px; padding: 6px 12px; }

  /* services / point */
  .point-number { font-size: 48px; }
  .point-title  { font-size: 20px; }
  .point-icon-card { padding: 24px; }
  .point-icon-card svg { width: 48px; height: 48px; }

  /* info table */
  .info-table { font-size: 13px; }
  .info-table th { width: 80px; padding: 10px 8px; font-size: 11px; }
  .info-table td { padding: 10px 8px; }
  .hours-table { overflow-x: visible; }
  table.hours { font-size: 11px; }
  table.hours th,
  table.hours td { padding: 6px 4px; }
  table.hours .hours-head-label { min-width: 60px; font-size: 10px; }
  .time-label { font-size: 10px; }
  .hours-grid { grid-template-columns: repeat(4, 1fr); font-size: 12px; }

  /* FAQ */
  .faq-q { font-size: 14px; }
  .faq-a { font-size: 13px; }

  /* access */
  .map-wrapper iframe { height: 280px; }
  .access-detail h4 { font-size: 14px; }
  .access-detail p  { font-size: 13px; }

  /* contact */
  .contact-number { font-size: clamp(24px, 7vw, 36px); }
  .contact-card   { padding: 28px 20px; }

  /* 北斗七星 — スマホでは左上に移動（右端が切れないよう） */
  .constellation-star:nth-child(1) { top: 8%;  left: 58%; }
  .constellation-star:nth-child(2) { top: 12%; left: 65%; }
  .constellation-star:nth-child(3) { top: 10%; left: 72%; }
  .constellation-star:nth-child(4) { top: 6%;  left: 78%; }
  .constellation-star:nth-child(5) { top: 15%; left: 82%; }
  .constellation-star:nth-child(6) { top: 21%; left: 78%; }
  .constellation-star:nth-child(7) { top: 25%; left: 83%; }

  /* 浮遊星をスマホで端に寄せる */
  .hero-star:nth-child(2) { left: 85%; }
  .hero-star:nth-child(4) { left: 88%; }
}
