/* ============================================
   ちはら小児クリニック - Modern Design
   ============================================ */

/* Variables */
:root {
  /* Colors - 信頼感 + 親しみやすさ */
  --primary: #4A90A4;
  /* 落ち着いた青緑 */
  --primary-dark: #3A7A8E;
  --primary-light: #E8F4F8;
  --accent: #F5A962;
  /* 温かみのあるオレンジ */
  --accent-light: #FFF4E6;

  --text: #333333;
  --text-light: #666666;
  --text-muted: #999999;
  --white: #FFFFFF;
  --bg: #FAFBFC;
  --border: #E5E7EB;

  /* Typography */
  --font-main: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-size-base: 16px;
  --line-height: 1.8;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Shadow */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);

  /* Container */
  --container-max: 1100px;
}

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

html {
  font-size: var(--font-size-base);
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  overflow-x: hidden;
}

body {
  font-family: var(--font-main);
  line-height: var(--line-height);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
  padding-top: 70px;
}

/* ページ読み込み時のフェードイン */
main {
  animation: pageLoad 0.6s ease-out;
}

@keyframes pageLoad {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--primary-dark);
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* ============================================
   Header
   ============================================ */
.header {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.logo img {
  height: 50px;
  width: auto;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}

.logo-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: block;
}

/* Navigation */
.nav {
  display: none;
}

.nav-list {
  display: flex;
  gap: var(--space-md);
  list-style: none;
}

.nav-link {
  color: var(--text);
  font-weight: 500;
  padding: var(--space-xs) 0;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Language Switch */
.lang-switch {
  font-size: 0.8rem;
  color: var(--text-light);
  padding: 0.3rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  margin-right: var(--space-sm);
  transition: all 0.2s ease;
}

.lang-switch:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: var(--primary-light);
}

@media (max-width: 1023px) {
  .lang-switch {
    display: none;
  }
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-xs);
  z-index: 1001;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: all 0.3s ease;
  transform-origin: center;
}

/* ハンバーガー → × 変形 */
.menu-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
  transform: scale(0);
}

.menu-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 998;
}

.mobile-nav-overlay.open {
  display: block;
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: var(--space-md);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  z-index: 1001;
  transform: translateZ(0);
}

.mobile-nav.open {
  display: block;
}

.mobile-nav-list {
  list-style: none;
}

.mobile-nav-link {
  display: block;
  padding: var(--space-sm);
  color: var(--text);
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  position: relative;
  height: 70vh;
  min-height: 400px;
  max-height: 700px;
  background-image: url('../images/header.png');
  background-size: cover;
  background-position: center 40%;
  /* 建物が見えるよう調整 */
  background-attachment: fixed;
  /* パララックス効果 */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  /* ロゴがはみ出さないように */
}

/* iOS対応（fixedが効かないのでscrollに） */
@supports (-webkit-touch-callout: none) {
  .hero {
    background-attachment: scroll;
  }
}

/* スマホ対応（768px以下） */
@media (max-width: 768px) {
  .hero {
    background-attachment: scroll;
    background-size: contain;
    background-repeat: no-repeat;
    background-color: #5a7a8a;
    height: auto;
    min-height: 280px;
    aspect-ratio: 16 / 10;
  }

}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.15);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: var(--space-lg);
}

/* Logo Animation Container */
.hero-logo-container {
  position: relative;
  display: inline-block;
  max-width: 100%;
}

.hero-logo-base {
  display: block;
  max-width: 100%;
  height: auto;
  /* Maintain original size cap if needed, e.g., max-width: 600px; based on previous img usage */
}

/* Butterfly Styles */
.hero-butterfly {
  position: absolute;
  z-index: 10;
  transform-origin: center bottom;
  animation: butterflyFlap 4s infinite ease-in-out;
  pointer-events: none;
}

/* Estimated Positions - Will need tuning */
/* DEBUG MODE REMOVED */
.hero-logo-container {
  position: relative;
  display: inline-block;
  /* Ensure container behaves like the original logo image alignment */
  vertical-align: middle;
}

/* Ensure the base logo image scales correctly inside the container */
.hero-logo-base {
  width: 100%;
  height: auto;
  display: block;
}

/* 1. Wrapper: Coordinates & Vertical Float */
.butterfly-wrapper {
  position: absolute;
  pointer-events: none;
  z-index: 10;
  /* Vertical Float Animation (World Space) */
  animation: butterflyFloat 10s infinite ease-in-out;
}

@keyframes butterflyFloat {

  0%,
  100% {
    transform: translate(0, 0);
  }

  25% {
    transform: translate(3px, -5px);
  }

  /* Right-Up */
  50% {
    transform: translate(0, -2px);
  }

  /* Center-High */
  75% {
    transform: translate(-3px, -4px);
  }

  /* Left-Up */
}

/* 2. Rotator: Static Rotation Correction */
.butterfly-rotator {
  display: block;
  width: 100%;
  height: 100%;
}

/* 3. Image: Twitch & Flap Animation (Relative to Rotated Body) */
.hero-butterfly {
  width: 100%;
  height: auto;
  display: block;
  transform-origin: center center;
  animation: butterflyTwitch 10s infinite ease-in-out;
}

@keyframes butterflyTwitch {

  0%,
  75%,
  100% {
    transform: rotate(0deg) scaleX(1);
  }

  /* Twitch & Flap Event (78-90%) */
  78% {
    transform: rotate(15deg) scaleX(0.6);
  }

  81% {
    transform: rotate(-10deg) scaleX(1);
  }

  84% {
    transform: rotate(10deg) scaleX(0.7);
  }

  87% {
    transform: rotate(-5deg) scaleX(0.95);
  }

  90% {
    transform: rotate(0deg) scaleX(1);
  }
}


/* === POSITIONS & ROTATIONS === */

/* Left Butterfly */
.butterfly-1 {
  width: 8%;
  top: 52.8%;
  left: 45.25%;
}

.rot-1 {
  /* Restoring Original Tilt (Image is already tilted 45deg) */
  transform: rotate(0deg);
}

/* Random Delays (Wrapper & Img sync) */
.butterfly-1,
.butterfly-1 .hero-butterfly {
  animation-delay: 0s;
}


/* Right Top Butterfly */
.butterfly-2 {
  width: 7%;
  top: 0%;
  left: 91%;
}

.rot-2 {
  /* Restoring Original Tilt (Image is already tilted -10deg) */
  transform: rotate(0deg);
}

.butterfly-2,
.butterfly-2 .hero-butterfly {
  animation-delay: -3.5s;
}


/* Right Middle Butterfly */
.butterfly-3 {
  width: 6%;
  top: 19.2%;
  left: 79.5%;
}

.rot-3 {
  /* Restoring Original Tilt (Image is already tilted 140deg) */
  transform: rotate(0deg);
}

.butterfly-3,
.butterfly-3 .hero-butterfly {
  animation-delay: -7.2s;
}


/* Right Bottom Butterfly */
.butterfly-4 {
  width: 5%;
  top: 58.8%;
  left: 91.5%;
}

.rot-4 {
  /* Restoring Original Tilt (Image is already tilted -110deg) */
  transform: rotate(0deg);
}

.butterfly-4,
.butterfly-4 .hero-butterfly {
  animation-delay: -1.8s;
}

.hero-logo {
  max-width: 520px;
  width: 90%;
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.25));
  animation: fadeInUp 1s ease-out;
  transition: transform 0.1s ease-out, opacity 0.1s ease-out;
  mix-blend-mode: multiply;
  /* 白背景を透過 */
}

/* スマホのロゴサイズ（85%） */
@media (max-width: 768px) {
  .hero-logo {
    max-width: 340px;
    width: 77%;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   Notice / Alert
   ============================================ */
.notice {
  background: linear-gradient(135deg, #FFEFE4 0%, #FFDDB8 100%);
  border-left: 4px solid var(--accent);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  margin: var(--space-sm) 0;
  font-size: 0.75rem;
  opacity: 0.15;
  transform: translateY(20px);
  transition: transform 0.2s ease;
}

.notice.animate-in {
  animation: popIn 0.5s ease-out forwards;
}

.notice:hover {
  transform: translateY(-3px);
}

/* アニメーション遅延 */
.notice[data-delay="1"] {
  animation-delay: 0.1s;
}

.notice[data-delay="2"] {
  animation-delay: 0.2s;
}

.notice[data-delay="3"] {
  animation-delay: 0.3s;
}

.notice[data-delay="4"] {
  animation-delay: 0.4s;
}

@keyframes popIn {
  0% {
    opacity: 0.15;
    transform: translateY(20px) scale(0.95);
  }

  70% {
    opacity: 1;
    transform: translateY(-5px) scale(1.02);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.notice-title {
  font-weight: 700;
  color: var(--accent);
  margin-bottom: var(--space-xs);
  display: flex;
  align-items: center;
  gap: 0.4em;
}

.notice-icon {
  width: 1.1em;
  height: 1.1em;
  flex-shrink: 0;
}

.notice-important {
  background: linear-gradient(135deg, #FEF1C8 0%, #FDE090 100%);
  border-left-color: #F59E0B;
}

.notice-important .notice-title {
  color: #D97706;
}

.notice-info {
  background: linear-gradient(135deg, #DAEDF4 0%, #B0D8E8 100%);
  border-left-color: var(--primary);
}

.notice-info .notice-title {
  color: var(--primary);
}

.notice-closure {
  background: linear-gradient(135deg, #FDE2E2 0%, #FACACA 100%);
  border-left-color: #E57373;
  border-width: 5px;
  animation: pulse-border 2s ease-in-out infinite;
}

.notice-closure .notice-title {
  color: #E57373;
}

@keyframes pulse-border {

  0%,
  100% {
    border-left-color: #E57373;
  }

  50% {
    border-left-color: #F8A5A5;
  }
}

/* ============================================
   Section
   ============================================ */
.section {
  padding: var(--space-sm) 0;
}

.section-bg {
  background: var(--white);
}

@media (min-width: 768px) {
  .section {
    padding: var(--space-md) 0;
  }
}

.section-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: var(--space-sm);
  padding-bottom: var(--space-xs);
  border-bottom: 3px solid var(--primary);
  display: inline-block;
}

/* ============================================
   Cards
   ============================================ */
.card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: var(--space-lg);
  transition: box-shadow 0.3s ease;
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card-grid {
  display: grid;
  gap: var(--space-md);
}

.card-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--space-sm);
}

.card-link {
  display: block;
  color: inherit;
}

.card-link:hover {
  color: inherit;
}

/* ============================================
   Schedule - Card Style
   ============================================ */
.card-schedule {
  display: grid;
  gap: var(--space-md);
}

.time-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-md);
  opacity: 0.15;
  transform: translateY(20px);
  transition: transform 0.2s ease;
}

.time-card.animate-in {
  animation: popIn 0.5s ease-out forwards;
}

.time-card:hover {
  transform: translateY(-3px);
}

.time-card[data-delay="1"] {
  animation-delay: 0.1s;
}

.time-card[data-delay="2"] {
  animation-delay: 0.2s;
}

.time-card[data-delay="3"] {
  animation-delay: 0.3s;
}

.time-card-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-md);
  border-bottom: 2px solid var(--border);
  flex-wrap: wrap;
}

.time-card-time {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}

.time-card-label {
  font-size: 0.8rem;
  color: var(--text-light);
  background: var(--primary-light);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
}

.day-badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.day-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius-sm);
  min-width: 52px;
  transition: transform 0.2s ease;
}

.day-badge:hover {
  transform: translateY(-2px);
}

.day-badge-name {
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.day-badge-status {
  font-size: 0.65rem;
  font-weight: 500;
}

.day-badge.open {
  background: linear-gradient(135deg, #D1FAE5 0%, #A7F3D0 100%);
  color: #059669;
}

.day-badge.closed {
  background: #F3F4F6;
  color: var(--text-muted);
}

.day-badge.sat .day-badge-name {
  color: #2563EB;
}

.day-badge.sun .day-badge-name {
  color: #DC2626;
}

/* 今日の曜日ハイライト */
.day-badge.today {
  position: relative;
  box-shadow: 0 0 0 2px var(--primary);
}

.day-badge.today::before {
  content: '今日';
  position: absolute;
  top: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  font-size: 0.5rem;
  font-weight: 700;
  padding: 0.1rem 0.35rem;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.day-badge.special {
  background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
  color: #B45309;
}

/* モバイルでバッジを均等配置 */
@media (max-width: 640px) {
  .time-card {
    padding: var(--space-md);
  }

  .time-card-time {
    font-size: 1.2rem;
  }

  .day-badges {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.4rem;
  }

  .day-badge {
    min-width: auto;
    padding: 0.5rem 0.4rem;
  }

  .day-badge-name {
    font-size: 0.75rem;
  }

  .day-badge-status {
    font-size: 0.65rem;
  }
}

/* ============================================
   Access / Map
   ============================================ */
.access-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

/* モバイルでの順序: 情報 → マップ → ボタン */
.access-details {
  order: 1;
}

.map-container {
  order: 2;
}

.access-actions {
  order: 3;
}

.access-detail {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
}

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

.map-container {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 300px;
}

/* マップ内「Google Mapsで見る」リンク */
.map-view-larger {
  display: inline-block;
  background: rgba(255, 255, 255, 0.9);
  padding: 4px 8px;
  font-size: 11px;
  color: #333;
  text-decoration: none;
  border-radius: 2px;
  margin: 10px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.map-view-larger:hover {
  background: #fff;
  color: #1a73e8;
}

/* Google Maps InfoWindow カスタムスタイル */
.map-info {
  position: relative;
  padding: 6px 24px 8px 10px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 13px;
}

.map-info .info-close {
  position: absolute;
  top: 4px;
  right: 4px;
  border: none;
  background: transparent;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  color: #666;
  padding: 0;
}

.map-info .info-close:hover {
  color: #333;
}

.map-info a {
  color: var(--primary);
}

.map-info strong {
  font-weight: 700;
  font-size: 14px;
}

/* InfoWindow背景の透過 */
.gm-style-iw-c {
  background: rgba(255, 255, 255, 0.9) !important;
}

.gm-style-iw-tc::after {
  background: rgba(255, 255, 255, 0.9) !important;
}

.map-container iframe,
.map-container #map {
  width: 100%;
  height: 300px;
  border: none;
  display: block;
}

.map-container #map {
  border-radius: var(--radius-md);
}

/* マップアクションボタン */
.map-actions {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.map-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 500;
  background: var(--white);
  color: var(--text);
  border: 1px solid var(--border);
  transition: all 0.2s ease;
}

.map-action-btn:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}

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

.map-action-btn.map-action-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--white);
}

/* 交通手段別ルート */
.route-options {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
  flex-wrap: wrap;
}

.route-label {
  font-size: 0.85rem;
  color: var(--text-light);
}

.route-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  background: var(--bg);
  color: var(--text);
  transition: all 0.2s ease;
}

.route-link:hover {
  background: var(--primary-light);
  color: var(--primary);
}

/* 周辺情報カード */
.nearby-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.nearby-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  box-shadow: var(--shadow-sm);
}

.nearby-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: var(--space-sm);
}

.nearby-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nearby-list li {
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border);
}

.nearby-list li:last-child {
  border-bottom: none;
}

.nearby-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  margin: -0.5rem -0.75rem;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.nearby-link:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.nearby-nav-icon {
  opacity: 0.4;
  color: var(--primary);
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.nearby-link:hover .nearby-nav-icon {
  opacity: 1;
  transform: translateX(2px);
}

.nearby-note {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.nearby-text {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.nearby-text:last-child {
  margin-bottom: 0;
}

/* モバイル対応 */
@media (max-width: 640px) {
  .map-actions {
    flex-direction: column;
  }

  .map-action-btn {
    justify-content: center;
  }

  .route-options {
    justify-content: center;
  }

  .route-label {
    width: 100%;
    text-align: center;
  }
}

/* ============================================
   Article / Content
   ============================================ */
.article {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: var(--space-lg);
}

.article-header {
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--border);
}

.article-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--space-xs);
}

.article-meta {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.article-content {
  line-height: 2;
}

.article-content p {
  margin-bottom: var(--space-md);
}

/* 画像のホバーエフェクト */
.article-content img {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: var(--radius-sm);
}

.article-content img:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-md);
}

.article-content h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin: var(--space-xl) 0 var(--space-md);
  padding-bottom: var(--space-xs);
  border-bottom: 2px solid var(--primary-light);
}

.article-nav {
  display: flex;
  justify-content: space-between;
  gap: var(--space-md);
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border);
}

.article-nav a {
  padding: var(--space-sm) var(--space-md);
  background: var(--primary-light);
  border-radius: var(--radius-sm);
  font-weight: 500;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: linear-gradient(135deg, #5BA3B8 0%, var(--primary) 40%, #2D5A6A 100%);
  color: var(--white);
  padding: var(--space-xl) 0 var(--space-lg);
}

.footer a {
  color: var(--white);
}

.footer a:hover {
  color: rgba(255, 255, 255, 0.8);
}

.footer-content {
  text-align: center;
}

.footer-name {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.footer-info {
  font-size: 0.875rem;
  opacity: 0.9;
  line-height: 2;
}

.footer-info-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
}

.footer-icon {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
  opacity: 0.9;
}

.footer-copyright {
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.75rem;
  opacity: 0.7;
}

/* ============================================
   Button
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-full);
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

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

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

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

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

/* ============================================
   Utilities
   ============================================ */
.text-center {
  text-align: center;
}

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

.text-accent {
  color: var(--accent);
}

.text-muted {
  color: var(--text-muted);
}

.mt-sm {
  margin-top: var(--space-sm);
}

.mt-md {
  margin-top: var(--space-md);
}

.mt-lg {
  margin-top: var(--space-lg);
}

.mb-sm {
  margin-bottom: var(--space-sm);
}

.mb-md {
  margin-bottom: var(--space-md);
}

.mb-lg {
  margin-bottom: var(--space-lg);
}

/* ============================================
   Responsive
   ============================================ */
@media (min-width: 768px) {
  :root {
    --font-size-base: 17px;
  }

  .hero {
    height: 80vh;
    max-height: 800px;
  }

  .hero-logo {
    max-width: 580px;
  }

  .nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }
}

/* デスクトップナビは1024px以上で表示 */
@media (min-width: 1024px) {
  .nav {
    display: block;
  }

  .menu-toggle {
    display: none;
  }

  .lang-switch {
    display: inline-block;
  }
}

@media (min-width: 768px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .access-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    align-items: stretch;
  }

  /* デスクトップ: 左カラムに情報とボタン、右カラムにマップ */
  .access-details {
    grid-column: 1;
    grid-row: 1;
    order: unset;
  }

  .access-actions {
    grid-column: 1;
    grid-row: 2;
    order: unset;
    align-self: end;
  }

  .map-container {
    grid-column: 2;
    grid-row: 1 / 3;
    height: 100%;
    min-height: 350px;
    order: unset;
  }

  .map-container iframe,
  .map-container #map {
    height: 100%;
    min-height: 350px;
  }

  .section-title {
    font-size: 1.75rem;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 3rem;
  }

  .card-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}