/* Relaxation 凛音 -Rio- メインスタイル */

/* カスタムフォント読み込み */
@font-face {
  font-family: 'Kokumincho';
  src: url('../fonts/font_1_kokumr_1.00_rls.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* スムーススクロール設定 */
html {
  scroll-behavior: smooth;
}

/* CSS変数定義 */
:root {
  /* メインカラー（ロゴ#DB8545に合わせたオレンジ系） */
  --primary-warm: #DB8545;
  /* メインオレンジ（ロゴカラー） */
  --primary-light: #F5E6D7;
  /* ライトオレンジ */
  --primary-dark: #B8723A;
  /* ダークオレンジ */

  /* アクセントカラー */
  --accent-white: #FFFFFF;
  --accent-black: #3A3A3A;
  --accent-pink: #E8C4A8;
  /* オレンジピンク */
  --accent-pink-light: #F2E0D1;

  /* グレースケール */
  --gray-100: #FAFAFA;
  --gray-200: #F0F0F0;
  --gray-300: #E0E0E0;
  --gray-600: #8A8A8A;
  --gray-800: #4A4A4A;

  /* フォントファミリー */
  --font-primary: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;
  --font-accent: 'Marcellus', serif;

  /* フォントサイズ */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;

  /* 行間 */
  --leading-tight: 1.25;
  --leading-normal: 1.5;
  --leading-relaxed: 1.75;

  /* スペーシング */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;
}

/* ベーススタイル */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--accent-black);
  /* background-color: #FFF9F5; 温かみのあるオフホワイト */
  position: relative;
}

/* 全体に温かみのあるオレンジオーバーレイ */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* background: linear-gradient(
    135deg,
    rgba(245, 230, 215, 0.15) 0%,
    rgba(232, 196, 168, 0.1) 30%,
    rgba(219, 133, 69, 0.08) 60%,
    rgba(184, 114, 58, 0.1) 85%,
    rgba(166, 100, 48, 0.12) 100%
  ); */
  pointer-events: none;
  z-index: -1;
  mix-blend-mode: multiply;
}

/* 基本的なレイアウト */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

/* ========================================
   コンポーネントスタイル
   ======================================== */

/* Relaxation 凛音 -Rio- コンポーネントスタイル */

/* ローディング画面 */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: #FFFFFF;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loading-screen.fade-out {
  opacity: 0;
  visibility: hidden;
}

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

.loading-text {
  font-family: 'Kokumincho', serif;
  font-size: var(--text-3xl);
  color: var(--accent-black);
  font-weight: bold;
  line-height: 2;
  margin: 0;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease forwards;
}

.loading-text--1 {
  animation-delay: 0.3s;
}

.loading-text--2 {
  animation-delay: 0.8s;
}

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

/* スクロールフェードインアニメーション */
.fade-in-element {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ヘッダーコンポーネント */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--gray-200);
  z-index: 1000;
  height: 90px;
  transition: all 0.3s ease;
}

/* ヘッダー非表示状態 */
.header--hidden {
  transform: translateY(-100%);
  opacity: 0;
}

/* ヘッダー表示状態 */
.header--visible {
  transform: translateY(0);
  opacity: 1;
}

.header__content {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  height: 90px;
  min-height: 90px;
}

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

/* ロゴスタイル */
.header__logo {
  flex-shrink: 0;
}

.logo {
  text-decoration: none;
  color: var(--accent-black);
}

.logo__image {
  height: 65px;
  width: auto;
  object-fit: contain;
}

.logo__text {
  font-family: var(--font-accent);
  font-size: var(--text-lg);
  font-weight: 400;
  color: var(--accent-black);
  letter-spacing: 0.1em;
}

/* ナビゲーションスタイル */
.header__nav {
  display: none;
  align-items: center;
}

@media (min-width: 768px) {
  .header__nav {
    display: flex;
  }
}

.nav__list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: var(--space-8);
}

.nav__item {
  position: relative;
}

.nav__link {
  text-decoration: none;
  color: var(--accent-black);
  font-weight: 400;
  font-size: var(--text-sm);
  padding: var(--space-2) 0;
  transition: color 0.3s ease;
  position: relative;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}


.nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--accent-black);
  transition: width 0.3s ease;
}

/* フォーカス・アクティブ状態：背景色なし */
.nav__link:focus,
.nav__link:active {
  background-color: transparent;
}

.nav__link:focus::after,
.nav__link:active::after {
  width: 100%;
}

/* アクティブ状態：下線のみ表示 */
.nav__link--active::after {
  width: 100%;
}



/* 予約ボタンスタイル */
.header__cta {
  flex-shrink: 0;
}

.header__reservation-btn {
  padding: var(--space-2) var(--space-6);
  font-size: var(--text-sm);
  font-weight: 400;
  letter-spacing: 0.1em;
  border-radius: 0;
  background-color: transparent;
  color: var(--accent-black);
  border: 1px solid var(--accent-black);
}

.header__reservation-btn:hover {
  background-color: var(--accent-black);
  color: var(--accent-white);
}

/* ハンバーガーメニューボタン */
.header__hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.hamburger__line {
  width: 100%;
  height: 2px;
  background-color: var(--accent-black);
  transition: all 0.3s ease;
  transform-origin: center;
}

.header__hamburger[aria-expanded="true"] .hamburger__line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.header__hamburger[aria-expanded="true"] .hamburger__line:nth-child(2) {
  opacity: 0;
}

.header__hamburger[aria-expanded="true"] .hamburger__line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -7px);
}

/* モバイルメニュー */
.header__mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: var(--accent-white);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.header__mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mobile-nav__list {
  list-style: none;
  margin: 0;
  padding: var(--space-4) 0;
}

.mobile-nav__item {
  border-bottom: 1px solid var(--gray-200);
}

.mobile-nav__item:last-child {
  border-bottom: none;
  padding-top: var(--space-4);
}

.mobile-nav__link {
  display: block;
  padding: var(--space-4) var(--space-4);
  text-decoration: none;
  color: var(--accent-black);
  font-weight: 400;
  transition: all 0.3s ease;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: var(--text-sm);
}

.mobile-nav__link:hover {
  color: var(--primary-warm);
  background-color: var(--gray-100);
}

.mobile-nav__link:focus,
.mobile-nav__link:active {
  background-color: transparent;
}

.mobile-nav__link--active {
  color: var(--accent-black);
}

.mobile-nav__reservation {
  margin: 0 var(--space-4);
  text-align: center;
}

/* ヒーローセクション */
.hero {
  position: relative;
  background-color: var(--accent-white);
  overflow: hidden;
}

.hero__container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 5% 0 5% 5%;
  box-sizing: border-box;
  aspect-ratio: 1 / 1;
  /* コンテナ全体を正方形に */
  /* height is set via JavaScript */
}

/* 左側：メインビジュアル */
.hero__visual {
  position: relative;
  overflow: hidden;
  flex: 1;
  min-width: 0;
  height: 100%;
}

.main__photo {
  width: 100%;
  height: 100%;
  position: relative;
}

#main_grade {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* 右側：ロゴ */
.hero__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--accent-white);
  flex: 1;
  min-width: 0;
  height: 100%;
}

.hero__logo-image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}


/* サービスセクション */
.services {
  padding: var(--space-24) 0;
  background-color: #FFFBF7;
  /* 温かみのある背景色 */
}

.services__header {
  text-align: center;
  margin-bottom: var(--space-16);
}

.services__title {
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--accent-black);
  margin-bottom: var(--space-4);
  font-family: var(--font-primary);
}

.services__subtitle {
  font-size: var(--text-lg);
  color: var(--gray-600);
  line-height: var(--leading-relaxed);
  max-width: 600px;
  margin: 0 auto;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
  margin-top: var(--space-12);
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

/* サービスカード */
.service-card {
  background-color: var(--accent-white);
  border-radius: 0;
  overflow: hidden;
  border: 1px solid var(--gray-200);
  transition: all 0.3s ease;
  position: relative;
}

.service-card:hover {
  border-color: var(--primary-warm);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.service-card__image {
  width: 100%;
  height: 200px;
  background-color: var(--gray-200);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.service-card__image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(212, 165, 116, 0.3) 0%, rgba(232, 180, 203, 0.3) 100%);
}

.service-card__image--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent-pink-light) 100%);
}

.service-card__image-placeholder {
  font-size: var(--text-2xl);
  color: var(--accent-white);
  font-weight: 600;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.service-card__content {
  padding: var(--space-6);
}

.service-card__name {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--accent-black);
  margin-bottom: var(--space-3);
  font-family: var(--font-primary);
}

.service-card__description {
  font-size: var(--text-sm);
  color: var(--gray-600);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-4);
}

.service-card__pricing {
  margin-bottom: var(--space-4);
}

.service-card__durations {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.service-card__duration {
  background-color: var(--primary-light);
  color: var(--accent-black);
  padding: var(--space-1) var(--space-3);
  border-radius: 20px;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.service-card__extension {
  font-size: var(--text-sm);
  color: var(--gray-600);
  font-style: italic;
}

.service-card__extension-fee {
  color: var(--primary-warm);
  font-weight: 600;
}

/* 占いヒーローセクション */
.fortune-hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.fortune-hero__background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--accent-pink) 0%, var(--primary-warm) 50%, var(--accent-pink-light) 100%);
  z-index: 1;
  overflow: hidden;
}

.fortune-hero__video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.fortune-hero__video--pc {
  display: block;
}

.fortune-hero__video--sp {
  display: none;
}

@media (max-width: 767px) {
  .fortune-hero__video--pc {
    display: none;
  }

  .fortune-hero__video--sp {
    display: block;
  }
}

.fortune-hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  z-index: 2;
}

.fortune-hero__content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  padding: var(--space-8) var(--space-6);
  background: rgba(0, 0, 0, 0.3);
  border-radius: 16px;
  backdrop-filter: blur(2px);
}

.fortune-hero__text {
  margin-bottom: var(--space-8);
}

.fortune-hero__title {
  margin-bottom: var(--space-6);
  color: var(--accent-white);
}

.fortune-hero__title-main {
  display: block;
  font-family: var(--font-primary);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  line-height: var(--leading-tight);
  margin-bottom: var(--space-2);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.fortune-hero__title-sub {
  display: block;
  font-family: var(--font-accent);
  font-size: clamp(1.2rem, 3vw, 2rem);
  font-weight: 400;
  color: var(--accent-white);
  opacity: 0.9;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.fortune-hero__message {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  line-height: var(--leading-relaxed);
  color: var(--accent-white);
  margin-bottom: var(--space-8);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.fortune-hero__cta {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
}

.fortune-hero__btn-services {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-lg);
  font-weight: 600;
  letter-spacing: 0.5px;
  border-radius: 50px;
  min-width: 220px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.fortune-hero__btn-services:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* 占いサービスセクション */
.fortune-services {
  padding: var(--space-20) 0;
  background-color: #FFFBF7;
  /* 温かみのある背景色 */
}

.fortune-services__header {
  text-align: center;
  margin-bottom: var(--space-16);
}

.fortune-services__title {
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--accent-black);
  margin-bottom: var(--space-4);
  font-family: var(--font-primary);
}

.fortune-services__subtitle {
  font-size: var(--text-lg);
  color: var(--gray-600);
  line-height: var(--leading-relaxed);
  max-width: 600px;
  margin: 0 auto;
}

.fortune-services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-8);
  margin-top: var(--space-12);
}

/* 占いカード */
.fortune-card {
  background-color: var(--accent-white);
  border-radius: 0;
  overflow: hidden;
  border: 1px solid var(--gray-200);
  transition: all 0.3s ease;
  position: relative;
}

.fortune-card:hover {
  border-color: var(--accent-pink);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.fortune-card__icon {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, var(--accent-pink-light) 0%, var(--primary-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.fortune-card__icon::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="mystical" width="30" height="30" patternUnits="userSpaceOnUse"><circle cx="15" cy="15" r="1" fill="%23ffffff" opacity="0.2"/><path d="M10,10 L20,10 L15,20 Z" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23mystical)"/></svg>');
  opacity: 0.3;
}

.fortune-card__icon-symbol {
  font-size: 3rem;
  color: var(--accent-white);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  z-index: 2;
  position: relative;
}

.fortune-card__content {
  padding: var(--space-6);
}

.fortune-card__name {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--accent-black);
  margin-bottom: var(--space-3);
  font-family: var(--font-primary);
  text-align: center;
}

.fortune-card__description {
  font-size: var(--text-base);
  color: var(--gray-600);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-4);
  text-align: center;
}

.fortune-card__pricing {
  text-align: center;
  padding: var(--space-4);
  background-color: var(--gray-100);
  border-radius: 8px;
  margin-bottom: var(--space-4);
}

.fortune-card__price {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: var(--space-1);
}

.fortune-card__price-unit {
  font-size: var(--text-sm);
  color: var(--gray-600);
  font-weight: 400;
}

.fortune-card__cta {
  text-align: center;
}

.fortune-card__btn {
  background-color: var(--accent-pink);
  color: var(--accent-black);
  padding: var(--space-3) var(--space-6);
  border-radius: 25px;
  font-weight: 600;
  font-size: var(--text-sm);
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  border: 2px solid var(--accent-pink);
}

.fortune-card__btn:hover {
  background-color: var(--accent-white);
  color: var(--accent-pink);
  transform: translateY(-2px);
}

/* 占いセクション */
.fortune-section {
  padding: var(--space-24) 0;
  background-color: var(--gray-100);
}

.fortune-section__header {
  text-align: center;
  margin-bottom: var(--space-16);
}

.fortune-section__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-8);
  margin-top: var(--space-12);
}

/* 料金セクション */
.pricing {
  padding: var(--space-24) 0;
  background-color: #FFFBF7;
  /* 温かみのある背景色 */
}

.pricing__header {
  text-align: center;
  margin-bottom: var(--space-16);
}

.pricing__title {
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--accent-black);
  margin-bottom: var(--space-4);
  font-family: var(--font-primary);
}

.pricing__subtitle {
  font-size: var(--text-lg);
  color: var(--gray-600);
  line-height: var(--leading-relaxed);
  max-width: 600px;
  margin: 0 auto;
}

.pricing__content {
  max-width: 1000px;
  margin: 0 auto;
}

/* アクセスセクション */
.access-section {
  padding: var(--space-24) 0;
  background-color: #FFFBF7;
  /* 温かみのある背景色 */
}

.section-header--center {
  text-align: center;
  margin-bottom: var(--space-16);
}

/* Google Maps 全幅表示 */
.access-map-wrapper {
  width: 100%;
  height: 500px;
  margin-bottom: var(--space-16);
  overflow: hidden;
  background-color: var(--gray-100);
}

.access-map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* アクセス情報（1カラム） */
.access-info {
  max-width: 1200px;
  margin: var(--space-12) auto 0;
  padding: var(--space-8);
}

/* アクセス情報レスポンシブ */
@media (max-width: 768px) {
  .access-info-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .access-map-wrapper {
    height: 300px;
    margin-bottom: var(--space-8);
  }
}

.access__info-section {
  margin-bottom: 0;
}

.access__info-title {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--accent-black);
  margin-bottom: var(--space-3);
  letter-spacing: 0.05em;
}

.access__info-content {
  font-size: var(--text-base);
  color: var(--accent-black);
  line-height: var(--leading-relaxed);
}

.access__address {
  margin-bottom: var(--space-3);
}

.access__address-main {
  font-weight: 400;
  margin-bottom: var(--space-1);
  font-size: var(--text-sm);
  color: var(--gray-600);
}

.access__address-detail {
  color: var(--gray-600);
  font-size: var(--text-sm);
  font-weight: 300;
}

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

.access__transport-item {
  padding: var(--space-2) 0;
  margin-bottom: var(--space-2);
  font-size: var(--text-sm);
  color: var(--gray-600);
  font-weight: 300;
  line-height: var(--leading-relaxed);
}

.access__transport-icon {
  display: none;
}

.access__transport-text {
  font-size: var(--text-sm);
  color: var(--gray-600);
  font-weight: 300;
}

.access__hours-grid {
  width: 100%;
  border-collapse: collapse;
}

.access__hours-grid tr {
  border-bottom: 1px solid var(--gray-200);
}

.access__hours-grid tr:last-child {
  border-bottom: none;
}

.access__hours-day {
  font-weight: 400;
  color: var(--accent-black);
  font-size: var(--text-sm);
  padding: var(--space-2) var(--space-3) var(--space-2) 0;
}

.access__hours-time {
  color: var(--gray-600);
  font-size: var(--text-sm);
  font-weight: 300;
  padding: var(--space-2) 0;
}

.access__hours-closed {
  color: var(--gray-600);
  font-weight: 300;
  padding: var(--space-2) 0;
}

.access__contact {
  padding: var(--space-4) 0;
  margin-top: var(--space-4);
  border-top: 1px solid var(--gray-200);
}

.access__contact-phone {
  font-size: var(--text-base);
  font-weight: 400;
  color: var(--accent-black);
  text-decoration: none;
  display: block;
  margin-bottom: var(--space-2);
}

.access__contact-phone:hover {
  color: var(--primary-warm);
}

.access__contact-note {
  font-size: var(--text-sm);
  color: var(--gray-600);
  font-weight: 300;
}

.access__status {
  margin-top: var(--space-4);
  padding: var(--space-3);
  border-radius: 6px;
  text-align: center;
  border: 2px solid;
}

.access__status--open {
  background-color: #e8f5e8;
  border-color: #4caf50;
  color: #2e7d32;
}

.access__status--closed {
  background-color: #fce4ec;
  border-color: #e91e63;
  color: #c2185b;
}

.access__status--before-open {
  background-color: #fff3e0;
  border-color: #ff9800;
  color: #ef6c00;
}

.access__status--last-hour {
  background-color: #fff8e1;
  border-color: #ffc107;
  color: #f57c00;
}

.access__status-text {
  font-weight: 600;
  font-size: var(--text-base);
  margin-bottom: var(--space-1);
}

.access__status-time {
  font-size: var(--text-sm);
  opacity: 0.8;
}

/* アクセス情報アイテム（新デザイン） */
.access-info__item {
  display: flex;
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--gray-200);
  align-items: flex-start;
}

.access-info__item:last-of-type {
  border-bottom: none;
}

.access-info__label {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--accent-black);
  min-width: 100px;
  flex-shrink: 0;
}

.access-info__value {
  font-size: var(--text-base);
  color: var(--accent-black);
  line-height: var(--leading-relaxed);
  font-style: normal;
}

.access-info__phone {
  color: var(--accent-black);
  text-decoration: none;
  font-weight: 500;
  display: block;
  margin-bottom: var(--space-1);
}

.access-info__phone:hover {
  color: var(--primary-warm);
  text-decoration: underline;
}

.access-info__note {
  display: block;
  font-size: var(--text-sm);
  color: var(--gray-600);
  margin-top: var(--space-1);
}

.access-info__notes {
  padding: var(--space-4) 0 0;
  margin-top: var(--space-2);
}

.access-info__notes p {
  font-size: var(--text-sm);
  color: var(--gray-600);
  margin: 0;
}

/* フッターコンポーネント */
.footer {
  background-color: var(--gray-100);
  color: var(--accent-black);
  padding: var(--space-16) 0 var(--space-8);
  margin-top: 0;
  border-top: 1px solid var(--gray-200);
}

.footer__content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-8);
  margin-bottom: var(--space-12);
}

/* ブランド情報 */
.footer__brand {
  max-width: 300px;
}

.footer__logo-text {
  font-family: var(--font-accent);
  font-size: var(--text-xl);
  font-weight: 400;
  color: var(--accent-black);
  letter-spacing: 0.1em;
}

.footer__logo-img {
  max-width: 240px;
  height: auto;
  display: block;
}

.footer__tagline {
  font-size: var(--text-sm);
  color: var(--gray-600);
  line-height: var(--leading-relaxed);
  font-weight: 300;
  line-height: 2;
  text-align: center;
}

/* セクションタイトル */
.footer__section-title {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--accent-black);
  margin-bottom: var(--space-4);
  letter-spacing: 0.05em;
}

/* サイトマップ */
.footer__nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer__nav-item {
  margin-bottom: var(--space-2);
}

.footer__nav-link {
  color: var(--gray-600);
  text-decoration: none;
  font-size: var(--text-sm);
  transition: color 0.3s ease;
  display: block;
  padding: var(--space-1) 0;
  font-weight: 300;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer__nav-link:hover {
  color: var(--accent-black);
}

/* 基本情報 */
.footer__contact-item {
  margin-bottom: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.footer__contact-item:last-child {
  margin-bottom: 0;
}

.footer__contact-label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--accent-black);
  letter-spacing: 0.05em;
}

.footer__contact-text {
  font-size: var(--text-sm);
  color: var(--gray-600);
  line-height: var(--leading-relaxed);
  font-weight: 300;
}

.footer__contact-phone {
  font-size: var(--text-base);
  font-weight: 400;
  color: var(--accent-black);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer__contact-phone:hover {
  color: var(--primary-warm);
}

/* SNSリンク */
.footer__social-links {
  display: flex;
  flex-direction: row;
  gap: var(--space-4);
  align-items: center;
}

.footer__social-link {
  display: inline-block;
  text-decoration: none;
  transition: all 0.3s ease;
  width: 32px;
  height: 32px;
}

.footer__social-link:hover {
  opacity: 0.7;
  transform: translateY(-2px);
}

.footer__social-icon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* フッター下部 */
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-8);
  border-top: 1px solid var(--gray-300);
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-8);
}

.footer__copyright p {
  margin: 0;
  font-size: var(--text-xs);
  color: var(--gray-600);
  font-weight: 300;
}

.footer__links {
  display: flex;
  gap: var(--space-6);
}

.footer__link {
  font-size: var(--text-xs);
  color: var(--gray-600);
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 300;
}

.footer__link:hover {
  color: var(--accent-black);
  display: flex;
  order: 1;
}

/* 共通セクションスタイル */
.section-block {
  padding: var(--space-24) 0;
  background-color: #FFFBF7;
  /* 温かみのある背景色 */
}

.section-block__container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.section-block__container--single {
  grid-template-columns: 1fr;
}

#fortune-profile .section-block__container {
  grid-template-columns: 1fr 2fr;
}

.section-block--reverse .section-block__container {
  grid-template-columns: 1fr 1fr;
}

.section-block--reverse .section-block__content {
  order: 2;
}

.section-block--reverse .section-block__images {
  order: 1;
}

.section-block__content {
  padding: var(--space-8) 0;
}

.section-block__images {
  position: relative;
}

.section-image {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 24px;
}

#gift-ticket.section-block {
  padding: var(--space-24) 0 0;
}

@media (min-width: 768px) and (max-width: 1200px) {
  #gift-ticket.section-block {
    padding: var(--space-12) 0 0;
  }
}

@media (max-width: 767px) {
  #gift-ticket.section-block {
    padding: var(--space-16) 0 0;
  }
}

.section-image--gift {
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
}

.section-image--gift img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 24px;
}

.section-image--gift a {
  display: block;
  transition: opacity 0.3s ease;
}

.section-image--gift a:hover {
  opacity: 0.8;
}

.section-image img,
.section-image iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.section-header {
  margin-bottom: var(--space-8);
}

.section-title-en {
  font-size: var(--text-xl);
  font-weight: 400;
  color: var(--accent-black);
  margin-bottom: var(--space-4);
  font-family: var(--font-accent);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.section-title-ja {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 500;
  color: var(--accent-black);
  font-family: 'Noto Serif JP', serif;
  line-height: var(--leading-relaxed);
}

.section-description {
  font-size: var(--text-base);
  color: var(--gray-600);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-8);
  text-align: justify;
}

.section-cta {
  margin-top: var(--space-8);
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.btn-view-more {
  display: inline-block;
  padding: var(--space-3) var(--space-8);
  background-color: transparent;
  color: var(--accent-black);
  border: 1px solid var(--accent-black);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.btn-view-more:hover {
  background-color: var(--accent-black);
  color: var(--accent-white);
}

/* section-blockのレスポンシブ対応 */
@media (max-width: 768px) {
  .section-header {
    margin-bottom: var(--space-4);
  }

  .section-block__container {
    grid-template-columns: 1fr;
    gap: var(--space-8);
    padding: 0 var(--space-4);
  }

  .section-block--reverse .section-block__content {
    order: 1;
  }

  .section-block--reverse .section-block__images {
    order: 2;
  }

  .section-title-en {
    font-size: var(--text-lg);
    margin-bottom: var(--space-2);
  }

  .section-title-ja {
    font-size: var(--text-xl);
  }

  .section-image {
    aspect-ratio: 16/9;
  }

}

/* 共通ボタンスタイル */
.btn {
  display: inline-block;
  padding: var(--space-4) var(--space-8);
  border: none;
  border-radius: 4px;
  text-decoration: none;
  font-family: var(--font-primary);
  font-size: var(--text-base);
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.05em;
  min-width: 180px;
}

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

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

.btn-secondary {
  background-color: var(--accent-pink);
  color: var(--accent-black);
}

.btn-secondary:hover {
  background-color: var(--accent-pink-light);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  color: var(--accent-black);
  border: 1px solid var(--accent-black);
}

.btn-outline:hover {
  background-color: var(--accent-black);
  color: var(--accent-white);
  transform: translateY(-2px);
}

/*
 ========================================
   画像エラーハンドリングスタイル（タスク12.1）
   ======================================== */

/* 画像フォールバック */
.image-fallback {
  filter: grayscale(50%) opacity(0.8);
  border: 2px dashed var(--gray-300);
}

/* 背景画像エラー */
.background-image-error {
  background-color: var(--gray-200) !important;
  background-image: none !important;
}

/* 画像プレースホルダー */
.image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--gray-200) 0%, var(--gray-300) 100%);
  border: 2px dashed var(--gray-400);
  border-radius: 8px;
  min-height: 120px;
  position: relative;
  overflow: hidden;
}

.image-placeholder__content {
  text-align: center;
  color: var(--gray-600);
  z-index: 2;
  position: relative;
}

.image-placeholder__icon {
  font-size: 2rem;
  margin-bottom: var(--space-2);
  opacity: 0.7;
}

.image-placeholder__text {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--gray-600);
  max-width: 200px;
  line-height: var(--leading-normal);
}

/* サービスカード内のプレースホルダー */
.service-card .image-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent-pink-light) 100%);
  border: none;
  border-radius: 0;
}

.service-card .image-placeholder__content {
  color: var(--accent-white);
}

.service-card .image-placeholder__icon {
  font-size: 3rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.service-card .image-placeholder__text {
  color: var(--accent-white);
  font-weight: 600;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* ヒーローセクション内のプレースホルダー */
.hero .image-placeholder,
.fortune-hero .image-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-warm) 0%, var(--accent-pink) 100%);
  border: none;
  border-radius: 0;
}

.hero .image-placeholder__content,
.fortune-hero .image-placeholder__content {
  color: var(--accent-white);
}

.hero .image-placeholder__icon,
.fortune-hero .image-placeholder__icon {
  font-size: 4rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero .image-placeholder__text,
.fortune-hero .image-placeholder__text {
  color: var(--accent-white);
  font-weight: 600;
  font-size: var(--text-lg);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* 遅延読み込み（Lazy Loading）スタイル */
.lazy {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lazy-loading {
  opacity: 0.5;
  filter: blur(2px);
  transition: all 0.3s ease;
}

.lazy-loaded {
  opacity: 1;
  filter: none;
}

/* 読み込み中のアニメーション */
.lazy-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid var(--primary-light);
  border-top: 2px solid var(--primary-warm);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  z-index: 10;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* 画像エラー状態の表示 */
img[data-image-error="true"] {
  border: 2px solid var(--accent-pink);
  background-color: var(--accent-pink-light);
}

/* アクセシビリティ: 画像が読み込めない場合のalt属性スタイル */
img[alt]:not([src]),
img[alt][src=""] {
  display: inline-block;
  padding: var(--space-2) var(--space-3);
  background-color: var(--gray-200);
  border: 1px solid var(--gray-300);
  border-radius: 4px;
  color: var(--gray-600);
  font-size: var(--text-sm);
  font-style: italic;
  text-align: center;
  min-width: 100px;
  min-height: 60px;
  line-height: var(--leading-normal);
}

/* 高解像度ディスプレイ対応 */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {
  .image-placeholder__icon {
    font-size: 2.5rem;
  }

  .service-card .image-placeholder__icon {
    font-size: 3.5rem;
  }

  .hero .image-placeholder__icon,
  .fortune-hero .image-placeholder__icon {
    font-size: 4.5rem;
  }
}

/* プリント時の画像エラーハンドリング */
@media print {
  .image-placeholder {
    background: white !important;
    border: 1px solid #ccc !important;
  }

  .image-placeholder__content {
    color: #666 !important;
  }

  .lazy-loading::after {
    display: none;
  }
}

/* 画像読み込みエラー時のツールチップ */
.image-error-tooltip {
  position: relative;
  cursor: help;
}

.image-error-tooltip::before {
  content: attr(data-error-message);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--accent-black);
  color: var(--accent-white);
  padding: var(--space-2) var(--space-3);
  border-radius: 4px;
  font-size: var(--text-xs);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
}

.image-error-tooltip::after {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(100%);
  border: 4px solid transparent;
  border-top-color: var(--accent-black);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.image-error-tooltip:hover::before,
.image-error-tooltip:hover::after {
  opacity: 1;
  visibility: visible;
}

/* アクセシビリティ - スクリーンリーダー専用 */
.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;
}

/* Fortune page theming (scoped to .fortune-page to avoid affecting TOP) */
:root {
  --primary-warm-main: #DB8545;
  /* TOP main */
  --primary-compl: #247BBA;
  /* Complementary */
}

.fortune-page .fortune-hero__background {
  background: linear-gradient(135deg, var(--primary-warm-main) 0%, var(--primary-compl) 55%, var(--accent-white) 100%) !important;
}

.fortune-page .fortune-hero__overlay {
  background: rgba(255, 255, 255, 0.06);
}

.fortune-page .section-title-ja {
  position: relative;
}

.fortune-page .section-title-ja::after {
  content: "";
  display: block;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-warm-main), var(--primary-compl));
  margin-top: 8px;
}

/* アクセスセクションのタイトルは中央寄せのためafter要素を削除 */
.fortune-page #access .section-title-ja::after {
  content: none;
  display: none;
}

.fortune-page .fortune-hero__title-main {
  font-family: var(--font-accent);
  letter-spacing: 0.2em;
}

.fortune-page .flow-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 1023px) {
  .fortune-page .flow-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .fortune-page .flow-cards {
    grid-template-columns: 1fr;
  }
}

.fortune-page .flow-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  padding: 1.25rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .04);
  position: relative;
  transition: transform .2s ease, box-shadow .2s ease;
}

.fortune-page .flow-card::before {
  content: attr(data-number);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 8rem;
  font-weight: 700;
  font-family: 'Marcellus', serif;
  color: rgba(212, 175, 55, 0.15);
  line-height: 1;
  pointer-events: none;
  z-index: 0;
}

.fortune-page .flow-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .06);
}

.fortune-page .flow-card__body {
  position: relative;
  z-index: 1;
}

.fortune-page .flow-card__title {
  border-left: 4px solid #d4af37;
  padding-left: 10px;
  line-height: 1;
  margin-bottom: 10px;
}

/* 鑑定士プロフィール画像を正方形の円形にマスク */
.fortune-page #fortune-profile .section-image {
  aspect-ratio: 1/1;
  border-radius: 50%;
  overflow: hidden;
}

.fortune-page #fortune-profile .section-image img {
  border-radius: 50%;
  object-fit: cover;
}


/* Night theme for fortune page */
.fortune-page {
  background-color: #0b1120;
  color: #f3f4f6;
}

.fortune-page .header {
  position: fixed;
}

.fortune-page .fortune-hero {
  height: 100vh;
  min-height: 100vh;
}

.fortune-page .fortune-hero__background {
  background: linear-gradient(160deg, #0b1120 0%, #0f172a 50%, #111827 100%) !important;
}

/* remove star-visibility-boost overrides to align with CodePen-like field */

.fortune-page .section-title-en {
  color: #f3f4f6;
}

.fortune-page .section-title-ja {
  color: #f3f4f6;
}

.fortune-page .section-cta .btn.btn-primary,
.fortune-page .fortune-hero__btn-services.btn-primary {
  background-color: #d4af37;
  color: #1f2937;
  border: none;
}

.fortune-page .section-cta .btn.btn-secondary,
.fortune-page .fortune-hero__btn-services.btn-secondary {
  background-color: #1e3a8a;
  color: #fff;
  border: none;
}

.fortune-page .fortune-intro__text {
  color: #f3f4f6;
}

/* Section backgrounds (night tints) */
.fortune-page .section-block:nth-of-type(odd) {
  background-color: rgba(15, 23, 42, .35);
}

.fortune-page .section-block:nth-of-type(even) {
  background-color: rgba(2, 6, 23, .35);
}

/* Flow cards night surface */
.fortune-page .flow-card {
  background: #0f172a;
  border: 1px solid #1f2937;
}

.fortune-page .flow-card__title {
  color: #f3f4f6;
}

.fortune-page .flow-card__desc {
  color: #f3f4f6;
}

/* FAQ night surface */
.fortune-page .faq-accordion details {
  border-color: #1f2937;
  background: #0f172a;
}

.fortune-page .faq-accordion summary {
  color: #f3f4f6;
}

.fortune-page .faq-accordion p {
  color: #f3f4f6;
}

/* Access section night theme (fortune page only) */
.fortune-page .access-section {
  background-color: #0f172a;
}

.fortune-page .access-map-wrapper {
  background-color: #0b1120;
}

.fortune-page .access-info__item {
  border-bottom: 1px solid #1f2937;
}

.fortune-page .access-info__label,
.fortune-page .access-info__value,
.fortune-page .access-info__notes p,
.fortune-page .access-info__note,
.fortune-page .access-info__phone {
  color: #f3f4f6;
}

/* Fortune hero: disable old pseudo-element star layers and use DOM-based starfield */
.fortune-page .fortune-hero__background::before,
.fortune-page .fortune-hero__background::after {
  content: none !important;
}

/* CodePen-like starfield (scoped) */
.fortune-page .starry_sky {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.fortune-page .constellation {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  animation: rotate 600s infinite linear;
}

.fortune-page .star {
  background-color: #FFFFFF;
  border-radius: 50%;
  position: absolute;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

.fortune-page .star.style1 {
  animation-duration: 0.5s;
  animation-name: star;
}

.fortune-page .star.style2 {
  animation-duration: 1s;
  animation-name: star;
}

.fortune-page .star.style3 {
  animation-duration: 1.5s;
  animation-name: star;
}

.fortune-page .star.style4 {
  animation-duration: 2s;
  animation-name: starFeat;
}

.fortune-page .star.tam1 {
  width: 1px;
  height: 1px;
}

.fortune-page .star.tam2 {
  width: 2px;
  height: 2px;
}

.fortune-page .star.tam3 {
  width: 3px;
  height: 3px;
}

.fortune-page .star.opacity1 {
  opacity: 1;
}

.fortune-page .star.opacity2 {
  opacity: .5;
}

.fortune-page .star.opacity3 {
  opacity: .1;
}

@keyframes star {
  0% {
    box-shadow: 0 0 10px 0px rgba(255, 255, 255, 0.05);
  }

  50% {
    box-shadow: 0 0 10px 2px rgba(255, 255, 255, 0.4);
  }

  100% {
    box-shadow: 0 0 10px 0px rgba(255, 255, 255, 0.05);
  }
}

@keyframes starFeat {
  0% {
    background-color: #FFFFFF;
    box-shadow: 0 0 10px 0px rgba(255, 255, 255, 1);
  }

  20% {
    background-color: #FFC4C4;
    box-shadow: 0 0 10px 0px rgb(255, 196, 196, 1);
  }

  80% {
    background-color: #C4CFFF;
    box-shadow: 0 0 10px 0px rgb(196, 207, 255, 1);
  }

  100% {
    background-color: #FFFFFF;
    box-shadow: 0 0 10px 0px rgba(255, 255, 255, 0.2);
  }
}

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

  to {
    transform: rotate(360deg);
  }
}

/* removed legacy day FAQ styles for fortune-page */

.fortune-page #fortune-flow .section-block__container,
.fortune-page #faq .section-block__container {
  display: block;
  width: 100%;
}

.fortune-page #fortune-flow .section-block__content,
.fortune-page #faq .section-block__content {
  width: 100%;
}

.fortune-page .section-block {
  position: relative;
}

/* Fortune intro (centered text section) */
.fortune-page .fortune-intro {
  padding: var(--space-20) 0;
}

.fortune-page .fortune-intro__inner {
  text-align: center;
}

.fortune-page .fortune-intro__text {
  font-size: var(--text-lg);
  color: #f3f4f6;
  line-height: 3;
  letter-spacing: 0.1em;
  font-family: 'Noto Serif JP', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
}

.fortune-page .fortune-intro__line {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* index.html の占いセクション背景 */
#fortune.section-block {
  background-color: #0b1120;
  color: #f3f4f6;
}

#fortune.section-block .section-title-en,
#fortune.section-block .section-title-ja,
#fortune.section-block .section-description {
  color: #f3f4f6;
}

#fortune.section-block .btn-view-more {
  color: #f3f4f6;
  border-color: #d4af37;
}

#fortune.section-block .btn-view-more:hover {
  background-color: #d4af37;
  color: #1f2937;
  border-color: #d4af37;
}

/* ========================================
   レスポンシブスタイル
   ======================================== */

/* Relaxation 凛音 -Rio- レスポンシブスタイル */

/* Mobile First Approach - モバイルファーストアプローチ */

/* ローディング画面 レスポンシブ */
@media (max-width: 767px) {
  .loading-text {
    font-size: var(--text-lg);
    line-height: 1.8;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .loading-text {
    font-size: var(--text-xl);
    line-height: 1.9;
  }
}

/* ベーススタイル（全デバイス共通） */
/* 注: 基本スタイル（*, body, .container）は上部で定義済み */

/* 画像の基本レスポンシブ設定 */
img {
  max-width: 100%;
  height: auto;
}

/* Mobile styles (320px~767px) */
@media (max-width: 767px) {
  .container {
    padding: 0 var(--space-3);
  }

  /* ヘッダーモバイル対応 */
  /* 注: .header__content と .logo__image のスタイルは下記で定義済み（2997行目付近） */

  .header__right {
    display: none;
  }

  .header__hamburger {
    display: flex;
    position: relative;
    z-index: 1002;
  }

  .header__mobile-menu {
    display: block;
    z-index: 1001;
  }

  /* ハンバーガーメニューアニメーション強化 */
  .header__hamburger .hamburger__line {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .header__hamburger[aria-expanded="true"] .hamburger__line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .header__hamburger[aria-expanded="true"] .hamburger__line:nth-child(2) {
    opacity: 0;
    transform: scale(0);
  }

  .header__hamburger[aria-expanded="true"] .hamburger__line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -7px);
  }

  /* モバイルメニューアニメーション強化 */
  .header__mobile-menu {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  .header__mobile-menu.is-open {
    animation: slideDown 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }

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

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

  /* モバイルメニューリンクのアニメーション */
  .mobile-nav__link {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
  }

  .mobile-nav__link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 165, 116, 0.1), transparent);
    transition: left 0.5s ease;
  }

  .mobile-nav__link:hover::before {
    left: 100%;
  }

  /* ヘッダーメニューオープン時のスタイル */
  .header--menu-open {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  /* ヒーローセクション モバイル対応 */
  .hero {
    min-height: 80vh;
  }

  .hero__content {
    padding: var(--space-6) 0;
  }

  .hero__cta {
    flex-direction: column;
    gap: var(--space-3);
  }

  .hero__btn-reservation,
  .hero__btn-services {
    width: 100%;
    max-width: 280px;
    padding: var(--space-3) var(--space-6);
    font-size: var(--text-base);
  }

  /* サービスセクション モバイル対応 */
  .services {
    padding: var(--space-12) 0;
  }

  .services__header {
    margin-bottom: var(--space-12);
  }

  .services__title {
    font-size: var(--text-3xl);
  }

  .services__subtitle {
    font-size: var(--text-base);
  }

  .services__grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  /* サービスカード モバイル対応 */
  .service-card {
    margin: 0 auto;
    max-width: 350px;
  }

  .service-card__image {
    height: 180px;
  }

  .service-card__content {
    padding: var(--space-4);
  }

  .service-card__name {
    font-size: var(--text-lg);
  }

  .service-card__description {
    font-size: var(--text-sm);
  }

  .service-card__durations {
    gap: var(--space-1);
  }

  .service-card__duration {
    font-size: var(--text-xs);
    padding: var(--space-1) var(--space-2);
  }

  /* 占いセクション モバイル対応 */
  .fortune-hero {
    min-height: 70vh;
  }

  .fortune-hero__content {
    /* padding: var(--space-6) 0; */
  }

  .fortune-hero__title-main {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .fortune-hero__title-sub {
    font-size: clamp(1rem, 4vw, 1.5rem);
  }

  .fortune-hero__message {
    font-size: var(--text-base);
    margin-bottom: var(--space-6);
  }

  .fortune-hero__btn-services {
    width: 100%;
    max-width: 280px;
    padding: var(--space-3) var(--space-6);
    font-size: var(--text-base);
  }

  .fortune-services {
    padding: var(--space-12) 0;
  }

  .fortune-services__header {
    margin-bottom: var(--space-12);
  }

  .fortune-services__title {
    font-size: var(--text-3xl);
  }

  .fortune-services__subtitle {
    font-size: var(--text-base);
  }

  .fortune-services__grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  /* 占いカード モバイル対応 */
  .fortune-card {
    margin: 0 auto;
    max-width: 350px;
  }

  .fortune-card__icon {
    height: 150px;
  }

  .fortune-card__icon-symbol {
    font-size: 2.5rem;
  }

  .fortune-card__content {
    padding: var(--space-4);
  }

  .fortune-card__name {
    font-size: var(--text-lg);
  }

  .fortune-card__description {
    font-size: var(--text-sm);
  }

  .fortune-card__price {
    font-size: var(--text-lg);
  }

  /* 料金セクション モバイル対応 */
  .pricing {
    padding: var(--space-12) 0;
  }

  .pricing__header {
    margin-bottom: var(--space-12);
  }

  .pricing__title {
    font-size: var(--text-3xl);
  }

  .pricing__subtitle {
    font-size: var(--text-base);
  }

  /* アクセスセクション モバイル対応 */
  .access {
    padding: var(--space-12) 0;
  }

  .access__header {
    margin-bottom: var(--space-12);
  }

  .access__title {
    font-size: var(--text-3xl);
  }

  .access__subtitle {
    font-size: var(--text-base);
  }

  .access__content {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .access__map {
    height: 300px;
    order: 2;
  }

  .access__info {
    padding: var(--space-6);
    order: 1;
  }

  .access__info-section {
    margin-bottom: var(--space-6);
  }

  .access__info-title {
    font-size: var(--text-lg);
  }

  .access__transport-item {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
    padding: var(--space-3) 0;
  }

  .access__transport-text {
    font-size: var(--text-sm);
  }

  .access__hours-grid {
    gap: var(--space-1) var(--space-3);
  }

  .access__hours-day,
  .access__hours-time {
    font-size: var(--text-sm);
  }

  .access__contact {
    padding: var(--space-3);
  }

  .access__contact-phone {
    font-size: var(--text-base);
  }

  /* アクセス情報（新デザイン） モバイル対応 */
  .access-info {
    max-width: 100%;
    padding: 0;
    margin: 0;
  }

  .access-info__item {
    flex-direction: column;
    gap: var(--space-2);
  }

  .access-info__label {
    min-width: auto;
  }

  /* フッター モバイル対応 */
  .footer {
    padding: var(--space-12) 0 var(--space-6);
    margin-top: 0;
  }

  .footer__content {
    grid-template-columns: 1fr;
    gap: var(--space-6);
    margin-bottom: var(--space-8);
  }

  .footer__brand {
    max-width: none;
    text-align: center;
  }

  .footer__logo-text {
    font-size: var(--text-xl);
  }

  .footer__tagline {
    font-size: var(--text-sm);
  }

  .footer__section-title {
    font-size: var(--text-base);
    text-align: center;
  }

  .footer__nav-list {
    text-align: center;
  }

  .footer__nav-link {
    font-size: var(--text-sm);
  }

  .footer__contact-item {
    text-align: center;
  }

  .footer__contact-label {
    font-size: var(--text-xs);
  }

  .footer__contact-text {
    font-size: var(--text-sm);
  }

  .footer__contact-phone {
    font-size: var(--text-base);
  }

  .footer__social {
    text-align: center;
  }

  .footer__social-links {
    align-items: center;
    justify-content: center;
  }

  .footer__social-link {
    justify-content: center;
    max-width: 200px;
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
    gap: var(--space-3);
  }

  .footer__copyright p {
    font-size: var(--text-xs);
  }

  .footer__links {
    justify-content: center;
    gap: var(--space-4);
  }

  .footer__link {
    font-size: var(--text-xs);
  }

  /* セクション共通：グリッドを上書きして縦積みに */
  #about.section-block {
    padding: var(--space-12) 0 var(--space-4);
  }

  #fortune.section-block {
    padding: var(--space-12) 0;
  }

  .section-block {
    padding: var(--space-4) 0;
  }

  .section-block__container {
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
    padding: 0 var(--space-4);
  }

  .hero__container {
    flex-direction: column;
    gap: 0;
    padding: 5%;
    padding-top: 0;
    /* ヘッダー直下の余白をなくす */
    width: 100%;
    aspect-ratio: 1 / 1;
    /* モバイルでもコンテナ全体が正方形 */
  }

  .hero__visual {
    flex: 1;
    width: 100%;
    order: 1;
  }

  .hero__logo {
    flex: 1;
    width: 100%;
    order: 2;
    align-items: flex-start;
    padding-top: 30px;
  }

  .hero__logo-image {
    max-height: 30vh;
  }

  /* ABOUTセクション：画像を上、コンテンツを下に */
  #about .section-block__images {
    order: 1;
  }

  #about .section-block__content {
    order: 2;
    padding: 0;
  }

  /* SERVICEセクション：画像を上、コンテンツを下に */
  #services .section-block__images {
    order: 1;
  }

  #services .section-block__content {
    order: 2;
    padding: 0;
  }

  /* PRICINGセクション：画像を上、コンテンツを下に */
  #pricing .section-block__images {
    order: 1;
  }

  #pricing .section-block__content {
    order: 2;
  }

  /* FORTUNEセクション：画像を上、コンテンツを下に */
  #fortune .section-block__images {
    order: 1;
  }

  #fortune .section-block__content {
    order: 2;
    padding: 0;
  }



  /* フッター：ロゴ画像を中央寄せ */
  .footer__logo-img {
    margin: 0 auto;
  }

  /* 占いページ：イントロテキストをスマートフォン用に調整 */
  .fortune-page .fortune-intro__text {
    font-size: var(--text-base);
    line-height: 2.5;
    letter-spacing: 0.05em;
    padding: 0 var(--space-4);
  }

  /* スマートフォン表示時のみ特定の改行を非表示（一行にする） */
  .fortune-page .fortune-intro__br-sp-hidden {
    display: none;
  }

  /* スマートフォン表示時のみ特定の2行を一行に（inline-blockをinlineに変更） */
  .fortune-page .fortune-intro__text .fortune-intro__line:nth-of-type(3),
  .fortune-page .fortune-intro__text .fortune-intro__line:nth-of-type(4) {
    display: inline;
  }

  /* 占いページ：ヒーローCTAをスマートフォン用に調整 */
  .fortune-page .fortune-hero__cta {
    flex-direction: column;
    max-width: 280px;
    gap: var(--space-4);
    margin: 0 auto;
  }

  /* 占いページ：鑑定士プロフィールのCTAボタン間にマージンを追加 */
  .fortune-page #fortune-profile .section-cta {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
  }

  /* モバイルメニュー：CTAを横並びに */
  .mobile-nav__cta {
    display: flex;
    gap: var(--space-4);
  }

  .mobile-nav__cta .btn {
    flex: 1;
    text-align: center;
  }

  /* ヘッダーロゴを大きく */
  .header__content {
    padding: 0;
    min-height: 65px;
  }

  .logo__image {
    height: 65px;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .container {
    padding: 0 var(--space-6);
    max-width: 1024px;
  }

  /* ヘッダータブレット対応 */
  .header__hamburger {
    display: none;
  }

  .header__mobile-menu {
    display: none !important;
  }

  .header__right {
    display: flex;
  }

  .logo__image {
    height: 55px;
  }

  .nav__list {
    gap: var(--space-4);
  }

  .nav__link {
    font-size: var(--text-sm);
  }

  .header__reservation-btn {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
  }

  /* ヒーローセクション タブレット対応 */
  .hero {
    min-height: 90vh;
  }

  .hero__cta {
    flex-direction: row;
    gap: var(--space-6);
    justify-content: center;
  }

  .hero__btn-reservation,
  .hero__btn-services {
    min-width: 180px;
    width: auto;
    max-width: none;
  }

  /* サービスセクション タブレット対応 */
  .services {
    padding: var(--space-16) 0;
  }

  .services__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8);
  }

  .service-card {
    max-width: none;
  }

  /* 占いセクション タブレット対応 */
  .fortune-hero {
    min-height: 80vh;
  }

  .fortune-hero__btn-services {
    width: auto;
    max-width: none;
    min-width: 200px;
  }

  .fortune-services {
    padding: var(--space-16) 0;
  }

  .fortune-services__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8);
  }

  .fortune-card {
    max-width: none;
  }

  /* 料金セクション タブレット対応 */
  .pricing {
    padding: var(--space-16) 0;
  }

  .pricing__header {
    margin-bottom: var(--space-14);
  }

  /* アクセスセクション タブレット対応 */
  .access {
    padding: var(--space-16) 0;
  }

  .access__header {
    margin-bottom: var(--space-14);
  }

  .access__content {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-10);
  }

  .access__map {
    height: 350px;
  }

  .access__info {
    padding: var(--space-6);
  }

  /* フッター タブレット対応 */
  .footer {
    padding: var(--space-14) 0 var(--space-8);
    margin-top: var(--space-16);
  }

  .footer__content {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8);
    margin-bottom: var(--space-10);
  }

  .footer__brand {
    grid-column: 1 / -1;
    text-align: center;
    max-width: none;
  }

  .footer__sitemap,
  .footer__info {
    text-align: center;
  }

  .footer__social {
    grid-column: 1 / -1;
    text-align: center;
  }

  .footer__social-links {
    flex-direction: row;
    justify-content: center;
    gap: var(--space-4);
  }

  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
  }

  .hero__container {
    gap: 2rem;
    width: 100%;
    aspect-ratio: 1 / 1;
    /* タブレットでもコンテナ全体が正方形 */
  }

  .hero__visual {
    flex: 1;
    height: 100%;
  }

  .hero__logo {
    flex: 1;
    padding: var(--space-6);
  }

  .hero__logo-image {
    max-height: 40vh;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 var(--space-8);
    max-width: 1200px;
  }

  /* ヘッダーデスクトップ対応 */
  .header__hamburger {
    display: none;
  }

  .header__mobile-menu {
    display: none !important;
  }

  .header__right {
    display: flex;
  }

  .logo__image {
    height: 65px;
  }

  .nav__list {
    gap: var(--space-8);
  }

  .nav__link {
    font-size: var(--text-base);
  }

  .header__reservation-btn {
    padding: var(--space-3) var(--space-6);
    font-size: var(--text-sm);
  }

  /* ヒーローセクション デスクトップ対応 */
  .hero {
    min-height: 100vh;
  }

  .hero__cta {
    flex-direction: row;
    gap: var(--space-8);
  }

  .hero__btn-reservation,
  .hero__btn-services {
    min-width: 200px;
    width: auto;
    max-width: none;
  }

  /* サービスセクション デスクトップ対応 */
  .services {
    padding: var(--space-20) 0;
  }

  .services__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-12);
  }

  /* 占いセクション デスクトップ対応 */
  .fortune-hero {
    min-height: 90vh;
  }

  .fortune-hero__btn-services {
    width: auto;
    max-width: none;
    min-width: 220px;
  }

  .fortune-services {
    padding: var(--space-20) 0;
  }

  .fortune-services__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-12);
  }

  /* フッター デスクトップ対応 */
  .footer {
    padding: var(--space-16) 0 var(--space-8);
  }

  .footer__content {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-8);
    margin-bottom: var(--space-12);
  }

  .footer__brand {
    grid-column: auto;
    text-align: left;
    max-width: 300px;
  }

  .footer__sitemap,
  .footer__info,
  .footer__social {
    text-align: left;
  }

  .footer__social-links {
    align-items: flex-start;
  }

  .hero__container {
    width: 100%;
    aspect-ratio: 1 / 1;
    /* デスクトップでもコンテナ全体が正方形 */
  }

  .hero__visual {
    flex: 1;
    height: 100%;
  }

  .hero__logo {
    flex: 1;
    padding: var(--space-8);
  }

  .hero__logo-image {
    max-height: 50vh;
  }
}

/* Large Desktop (1440px~) */
@media (min-width: 1440px) {
  .container {
    max-width: 1400px;
    padding: 0 var(--space-12);
  }

  /* サービスセクション 大画面対応 */
  .services__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-8);
  }

  /* 占いセクション 大画面対応 */
  .fortune-services__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-8);
  }

  /* アクセスセクション 大画面対応 */
  .access__content {
    gap: var(--space-16);
  }

  .access__map {
    height: 500px;
  }
}

/* Extra Large Desktop (1920px~) */
@media (min-width: 1920px) {
  .container {
    max-width: 1600px;
  }

  /* 超大画面での最適化 */
  .hero__title-main {
    font-size: 4rem;
  }

  .hero__title-sub {
    font-size: 3rem;
  }

  .services__grid,
  .fortune-services__grid {
    gap: var(--space-12);
  }
}

/* 高解像度ディスプレイ対応 */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {

  /* Retina ディスプレイ用の最適化 */
  .hero__image,
  .fortune-hero__background {
    background-size: cover;
    background-position: center;
  }

  /* アイコンやロゴの高解像度対応 */
  .logo__text,
  .footer__logo-text {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
}

/* プリント用スタイル */
@media print {

  .header,
  .footer,
  .hero__cta,
  .fortune-hero__cta,
  .service-card__cta,
  .fortune-card__cta {
    display: none;
  }

  .hero,
  .fortune-hero {
    min-height: auto;
    padding: var(--space-8) 0;
  }

  .hero__image,
  .fortune-hero__background {
    display: none;
  }

  body {
    padding-top: 0;
    font-size: 12pt;
    line-height: 1.4;
    color: #000;
    background: #fff;
  }

  .container {
    max-width: none;
    padding: 0;
  }

  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    page-break-after: avoid;
  }

  .service-card,
  .fortune-card {
    page-break-inside: avoid;
  }
}

/* 縦向きタブレット専用 */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {

  .services__grid,
  .fortune-services__grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
    max-width: 500px;
    margin: 0 auto;
  }

}

/* 横向きモバイル専用 */
@media (max-width: 767px) and (orientation: landscape) {

  .hero,
  .fortune-hero {
    min-height: 100vh;
  }

  .hero__content,
  .fortune-hero__content {
    padding: var(--space-4) 0;
  }

  .hero__title-main {
    font-size: clamp(1.5rem, 6vw, 2.5rem);
  }

  .hero__title-sub {
    font-size: clamp(1.2rem, 4vw, 2rem);
  }

  .hero__message,
  .fortune-hero__message {
    font-size: var(--text-sm);
    margin-bottom: var(--space-4);
  }
}

/* レスポンシブユーティリティクラス */

/* 表示/非表示ユーティリティ */
@media (max-width: 767px) {
  .hide-mobile {
    display: none !important;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .hide-tablet {
    display: none !important;
  }
}

@media (min-width: 1024px) {
  .hide-desktop {
    display: none !important;
  }
}

@media (min-width: 768px) {
  .show-mobile-only {
    display: none !important;
  }
}

@media (max-width: 767px) {
  .show-tablet-up {
    display: none !important;
  }
}

@media (max-width: 1023px) {
  .show-desktop-only {
    display: none !important;
  }
}

/* テキストサイズユーティリティ */
@media (max-width: 767px) {
  .text-responsive {
    font-size: clamp(0.875rem, 2.5vw, 1rem);
  }

  .heading-responsive {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
  }
}

/* スペーシングユーティリティ */
@media (max-width: 767px) {
  .spacing-mobile-sm {
    padding: var(--space-2) !important;
  }

  .spacing-mobile-md {
    padding: var(--space-4) !important;
  }

  .spacing-mobile-lg {
    padding: var(--space-6) !important;
  }

  .margin-mobile-sm {
    margin: var(--space-2) !important;
  }

  .margin-mobile-md {
    margin: var(--space-4) !important;
  }

  .margin-mobile-lg {
    margin: var(--space-6) !important;
  }
}

/* フレックスボックスユーティリティ */
@media (max-width: 767px) {
  .flex-mobile-column {
    flex-direction: column !important;
  }

  .flex-mobile-center {
    justify-content: center !important;
    align-items: center !important;
  }
}

@media (min-width: 768px) {
  .flex-tablet-row {
    flex-direction: row !important;
  }
}

/* グリッドユーティリティ */
@media (max-width: 767px) {
  .grid-mobile-1 {
    grid-template-columns: 1fr !important;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .grid-tablet-2 {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (min-width: 1024px) {
  .grid-desktop-3 {
    grid-template-columns: repeat(3, 1fr) !important;
  }

  .grid-desktop-4 {
    grid-template-columns: repeat(4, 1fr) !important;
  }
}

/* アクセシビリティ改善 */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .header__hamburger .hamburger__line,
  .header__mobile-menu,
  .mobile-nav__link {
    transition: none !important;
    animation: none !important;
  }
}

/* ダークモード対応（将来の拡張用） */
@media (prefers-color-scheme: dark) {
  /* ダークモード用のスタイルは必要に応じて追加 */
}

/* 高コントラスト対応 */
@media (prefers-contrast: high) {
  .header {
    border-bottom: 2px solid var(--accent-black);
  }

  .nav__link,
  .mobile-nav__link {
    border: 1px solid transparent;
  }

  .nav__link:focus,
  .mobile-nav__link:focus {
    border-color: var(--accent-black);
    outline: 2px solid var(--primary-warm);
  }

  .btn {
    border: 2px solid var(--accent-black);
  }
}

/* 非常に小さな画面（320px未満）への対応 */
@media (max-width: 319px) {
  .container {
    padding: 0 var(--space-2);
  }

  .hero__title-main {
    font-size: 1.5rem;
  }

  .hero__title-sub {
    font-size: 1.2rem;
  }

  .hero__btn-reservation,
  .hero__btn-services {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
  }

}

/* 非常に大きな画面（2560px以上）への対応 */
@media (min-width: 2560px) {
  .container {
    max-width: 1800px;
  }

  .hero__title-main {
    font-size: 5rem;
  }

  .hero__title-sub {
    font-size: 3.5rem;
  }

  .services__grid,
  .fortune-services__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-16);
  }
}

/* ========================================
   ブラウザ互換性対応CSS
   ======================================== */

/* CSS Grid フォールバック */
.services-grid {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  gap: 2rem;
}

/* CSS Grid対応ブラウザ */
@supports (display: grid) {
  .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
  }
}

/* 注: Flexboxフォールバックは各コンポーネント定義内に統合済み */

/* CSS Variables フォールバック */
.fallback-colors {
  /* フォールバック用の固定カラー */
  color: #2C2C2C;
  /* --accent-black */
  background-color: #FFFFFF;
  /* --accent-white */
}

/* CSS Variables対応ブラウザ */
@supports (--css: variables) {
  .fallback-colors {
    color: var(--accent-black);
    background-color: var(--accent-white);
  }
}

/* Transform フォールバック */
.btn-primary {
  -webkit-transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  -ms-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  -webkit-transform: translateY(-2px);
  -moz-transform: translateY(-2px);
  -ms-transform: translateY(-2px);
  -o-transform: translateY(-2px);
  transform: translateY(-2px);
}

/* Backdrop-filter フォールバック */
.header {
  background-color: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

/* Backdrop-filter未対応ブラウザ用 */
@supports not (backdrop-filter: blur(10px)) {
  .header {
    background-color: rgba(255, 255, 255, 0.98);
  }
}

/* Object-fit フォールバック */
.service-image {
  width: 100%;
  height: 200px;
  -o-object-fit: cover;
  object-fit: cover;
  -o-object-position: center;
  object-position: center;
}

/* Object-fit未対応ブラウザ用 */
@supports not (object-fit: cover) {
  .service-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }
}

/* Scroll-behavior未対応ブラウザはJavaScriptで対応 */
/* 注: html { scroll-behavior: smooth; } は13行目で定義済み */
@supports not (scroll-behavior: smooth) {
  html {
    scroll-behavior: auto;
  }
}

/* CSS Grid IE11対応 */
@media screen and (-ms-high-contrast: active),
(-ms-high-contrast: none) {
  .services-grid {
    display: -ms-grid;
    -ms-grid-columns: 1fr 2rem 1fr;
    -ms-grid-rows: auto 2rem auto;
  }

  .service-card:nth-child(1) {
    -ms-grid-column: 1;
    -ms-grid-row: 1;
  }

  .service-card:nth-child(2) {
    -ms-grid-column: 3;
    -ms-grid-row: 1;
  }

  .service-card:nth-child(3) {
    -ms-grid-column: 1;
    -ms-grid-row: 3;
  }

  .service-card:nth-child(4) {
    -ms-grid-column: 3;
    -ms-grid-row: 3;
  }
}

/* Safari固有の修正 */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
  .btn {
    -webkit-appearance: none;
    -webkit-border-radius: 30px;
  }

  input,
  textarea,
  select {
    -webkit-appearance: none;
    -webkit-border-radius: 4px;
  }
}

/* Firefox固有の修正 */
@-moz-document url-prefix() {
  .btn {
    -moz-appearance: none;
  }

  input,
  textarea,
  select {
    -moz-appearance: none;
  }
}

/* Edge固有の修正 */
@supports (-ms-ime-align: auto) {
  .header {
    background-color: rgba(255, 255, 255, 0.98);
  }
}

/* モバイルSafari固有の修正 */
@supports (-webkit-touch-callout: none) {
  .btn {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
  }

  /* iOS Safariのviewport単位バグ対応 */
  .hero {
    min-height: 100vh;
    min-height: -webkit-fill-available;
  }
}

/* Android Chrome固有の修正 */
@media screen and (max-width: 768px) and (-webkit-min-device-pixel-ratio: 1) {
  .header {
    position: -webkit-sticky;
    position: sticky;
  }
}

/* 古いブラウザ用のフォールバック */
.no-js .header__nav {
  display: block !important;
}

.no-js .header__hamburger {
  display: none !important;
}

/* プリント用スタイル */
@media print {

  .header__hamburger,
  .btn,
  .nav {
    display: none !important;
  }

  .hero {
    min-height: auto;
    page-break-inside: avoid;
  }

  .service-card,
  .fortune-card {
    page-break-inside: avoid;
    margin-bottom: 1rem;
  }
}

/* 動きを減らす設定への対応 */
@media (prefers-reduced-motion: reduce) {
  * {
    -webkit-animation-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    -webkit-animation-iteration-count: 1 !important;
    animation-iteration-count: 1 !important;
    -webkit-transition-duration: 0.01ms !important;
    -o-transition-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

.pricing {
  padding: var(--space-24) 0;
  background-color: #FFFBF7;
  /* 温かみのある背景色 */
}

.pricing-board {
  margin-top: var(--space-12);
  padding: var(--space-12) var(--space-8);
  background: var(--accent-white);
  border-radius: 18px;
  box-shadow: 0 28px 60px rgba(212, 165, 116, 0.16);
  border: 1px solid rgba(212, 165, 116, 0.18);
  font-family: 'Noto Serif JP';
  max-width: 980px;
  margin: 0 auto;
}

.pricing-group+.pricing-group {
  margin-top: var(--space-12);
}

.pricing-group__title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  font-size: var(--text-base);
  letter-spacing: 0.1em;
  font-weight: 600;
  color: var(--primary-warm);
  text-transform: uppercase;
  margin-bottom: var(--space-8);
  text-align: center;
  white-space: nowrap;
}

.pricing-group__title::before,
.pricing-group__title::after {
  content: "";
  flex: 1 1 140px;
  height: 1px;
  background: rgba(212, 165, 116, 0.35);
  max-width: 200px;
}

@media (max-width: 767px) {
  .pricing-group__title {
    gap: var(--space-2);
  }

  .pricing-group__title::before,
  .pricing-group__title::after {
    flex-basis: 40px;
    max-width: 80px;
  }
}

.pricing-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.pricing-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-6);
  padding: var(--space-4) 0;
}

.pricing-item::after {
  content: "";
  position: absolute;
  top: 50%;
  left: calc(100% - var(--space-8));
  right: clamp(120px, 18vw, 220px);
  height: 1px;
  background: rgba(212, 165, 116, 0.35);
  transform: translateY(-50%);
}

.pricing-item__content {
  order: 1;
  max-width: 60ch;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  color: var(--accent-black);
}

.pricing-item__title {
  font-size: var(--text-lg);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.pricing-item__description {
  font-size: var(--text-sm);
  color: var(--gray-600);
  line-height: var(--leading-relaxed);
}

.pricing-item__price {
  order: 3;
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--primary-dark);
  white-space: nowrap;
  text-align: right;
  margin-left: auto;
}

.pricing-board__note {
  margin-top: var(--space-12);
}

.pricing-board__note-text {
  font-size: var(--text-sm);
  color: var(--gray-600);
  line-height: var(--leading-relaxed);
}

@media (max-width: 767px) {
  .pricing-board {
    padding: var(--space-8) var(--space-6);
  }

  .pricing-item {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
  }

  .pricing-item::after {
    display: none;
  }

  .pricing-item__price {
    font-size: var(--text-base);
    text-align: left;
  }

  .pricing-group+.pricing-group {
    margin-top: var(--space-8);
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .pricing-board {
    padding: var(--space-8) var(--space-12);
  }
}

.pricing__header {
  text-align: center;
  margin-bottom: var(--space-16);
}

.fortune-hero__logo {
  width: clamp(140px, 24vw, 220px);
  margin: 0 auto var(--space-6);
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.2));
}

.fortune-hero__logo img {
  width: 100%;
  height: auto;
  display: block;
}

/* 個別サービスセクション */
#aroma .section-block__images,
#reflexology .section-block__images,
#private-room .section-block__images {
  order: 1;
}

#aroma .section-block__content,
#reflexology .section-block__content,
#private-room .section-block__content {
  order: 2;
  padding: 0;
}

@media (min-width: 767px) {

  #services .section-block__content,
  #reflexology .section-block__content {
    order: 2;
  }

  #services .section-block__images,
  #reflexology .section-block__images {
    order: 1;
  }

  #aroma .section-block__content,
  #private-room .section-block__content {
    order: 1;
  }

  #aroma .section-block__images,
  #private-room .section-block__images {
    order: 2;
  }

  .fortune-page #tarot .section-block__images,
  .fortune-page #oracle .section-block__images,
  .fortune-page #palmistry .section-block__images {
    order: 1;
  }

  .fortune-page #tarot .section-block__content,
  .fortune-page #oracle .section-block__content,
  .fortune-page #palmistry .section-block__content {
    order: 2;
  }

  .fortune-page #lenormand .section-block__content,
  .fortune-page #numerology .section-block__content {
    order: 1;
  }

  .fortune-page #lenormand .section-block__images,
  .fortune-page #numerology .section-block__images {
    order: 2;
  }
}

/* 占いページ：各占術セクションを画像→テキストに */

@media (max-width: 767px) {
  .fortune-page .section-block__images {
    order: 1;
  }

  .fortune-page .section-block__content {
    order: 2;
    padding: 0;
  }
}

/* 1200pxから768pxの間で.section-blockにpaddingを16pxつける */
@media (min-width: 768px) and (max-width: 1200px) {
  .section-block {
    padding: 16px;
  }
}

/* ABOUTセクションのみ文字数が多いので、1024以下で縦積みに変更 */
@media (max-width: 1024px) {
  #about .section-block__container {
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
  }

  #about .section-block__images {
    order: 1;
    width: 100%;
  }

  #about .section-block__content {
    order: 2;
    padding: 0;
    width: 100%;
  }

  #about .section-image {
    aspect-ratio: 16 / 9;
  }
}