/* ========================================
   ヒーリングサロン Grace Gold
   Main Stylesheet
   ======================================== */

@charset "utf-8";

/* Google Fonts は各 HTML の <link> で読み込み（ここでの @import は二重読み込みで描画が濁る原因になるため使わない） */

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

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif;
  color: rgb(31, 41, 55);
  background-color: rgb(255, 255, 255);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-kerning: normal;
  font-weight: 400;
  /* 日本語本文の字詰まり（明朝本文） */
  font-feature-settings: "palt" 1;
}

/* フォーム入力はゴシックのまま（視認性・入力しやすさ） */
.contact-input,
input.contact-input,
textarea.contact-input {
  font-family: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", sans-serif;
  font-feature-settings: "palt" 1;
}

h1, h2, h3, h4, .font-serif {
  font-family: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* 本文の palt を継承させない（明朝の字形を優先） */
  font-feature-settings: normal;
}

/* ロゴ見出しはやや軽めに（tracking-widest 等のユーティリティはそのまま） */
header h1.font-serif {
  font-weight: 400;
}

/* ヘッダー左上「Grace Gold」：装飾枠・ボックス背景なし */
header > div.flex > a[href$="index.html"],
header > div.flex > h1:first-child a[href$="index.html"] {
  border: none;
  box-shadow: none;
  background: transparent;
  padding: 0;
}

.font-montserrat {
  font-family: "Montserrat", "Noto Sans JP", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* PC ヘッダーのグローバルナビ：Montserrat 小サイズ + tracking-widest が潰れて濁るため Noto で統一 */
header nav.hidden a {
  font-family: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", sans-serif !important;
  font-weight: 500;
  letter-spacing: 0.1em !important;
  font-size: 0.8125rem;
  text-rendering: optimizeLegibility;
}

header nav.hidden a.bg-gold-gradient,
header nav.hidden .bg-gold-gradient {
  font-family: "Noto Sans JP", "Hiragino Sans", sans-serif !important;
  font-weight: 600;
  letter-spacing: 0.12em !important;
}

/* モバイルメニュー内の Reservation ボタン（欧文ボタンはゴシック） */
#mobile-menu a.bg-gold-gradient {
  font-family: "Noto Sans JP", "Hiragino Sans", sans-serif !important;
}

/* フッターのラベル・ナビ：Montserrat 極小が潰れやすいのでゴシックで統一 */
footer .font-montserrat,
footer h3.font-montserrat {
  font-family: "Noto Sans JP", "Hiragino Sans", sans-serif !important;
  font-weight: 500;
  letter-spacing: 0.14em !important;
}

/* Selection - applied to body when using selection:bg-gold/30 selection:text-gold classes */
body.selection-gold ::selection {
  background-color: rgba(197, 160, 89, 0.3);
  color: rgb(197, 160, 89);
}

/* Custom Colors & Utilities */
.text-gold { color: rgb(197, 160, 89); }
.bg-gold { background-color: rgb(197, 160, 89); }
.bg-dark { background-color: rgb(13, 13, 13); }
.border-gold { border-color: rgb(197, 160, 89); }
.border-gold\/20 { border-color: rgba(197, 160, 89, 0.2); }
.border-gold\/30 { border-color: rgba(197, 160, 89, 0.3); }
.bg-gold\/5 { background-color: rgba(197, 160, 89, 0.05); }

.gold-gradient {
  background: linear-gradient(135deg, rgb(197, 160, 89) 0%, rgb(229, 209, 164) 50%, rgb(197, 160, 89) 100%);
}

.luxury-shadow {
  box-shadow: rgba(197, 160, 89, 0.2) 0px 10px 30px -10px;
}

/* メニュー項目の画像：表示位置を統一 */
.menu-item-img {
  object-position: center center;
}

/* Vertical Text */
.vertical-text {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
}

/* Animations */
@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes slideInUp {
  0% { transform: translateY(30px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

@keyframes slowRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes scrollLine {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(200%); }
}

@keyframes pulse {
  50% { opacity: 0.5; }
}

.animate-fadeIn {
  animation: 1.2s ease-out 0s 1 normal forwards running fadeIn;
}

.animate-slideInUp {
  animation: 1s cubic-bezier(0.22, 1, 0.36, 1) 0s 1 normal forwards running slideInUp;
}

.animate-slowRotate {
  animation: 20s linear 0s infinite normal none running slowRotate;
}

/* ヒーロー背景画像 - 右側の人物を目立たせる */
.hero-bg-image {
  object-position: 81% center; /* スマホ：人物の目が文字と被らないよう調整 */
}

@media (min-width: 768px) {
  .hero-bg-image {
    object-position: 75% center;
  }
}

/* スマホのみ：テキスト可読性向上オーバーレイ */
.hero-mobile-overlay {
  display: none;
}

@media (max-width: 767px) {
  .hero-mobile-overlay {
    display: block;
    background: radial-gradient(
      ellipse 90% 80% at 50% 45%,
      rgba(0, 0, 0, 0.65) 0%,
      rgba(0, 0, 0, 0.35) 50%,
      transparent 100%
    );
  }
}

/* ヒーロー回転装飾 - レイヤー順: 背景(z-0) < 装飾(z-5) < テキスト(z-10) */
.hero-rotate-decoration {
  opacity: 0.72;
}

.hero-rotate-circle {
  width: 320px;
  height: 320px;
  border: 2px solid rgba(197, 160, 89, 0.75);
  box-shadow: 0 0 20px rgba(197, 160, 89, 0.15);
  animation: 20s linear 0s infinite normal none running slowRotate !important;
  will-change: transform;
}

.hero-rotate-inner {
  width: 240px;
  height: 240px;
  border: 2px solid rgba(197, 160, 89, 0.6);
  box-shadow: 0 0 12px rgba(197, 160, 89, 0.1);
}

@media (min-width: 480px) {
  .hero-rotate-circle {
    width: 420px;
    height: 420px;
  }
  .hero-rotate-inner {
    width: 320px;
    height: 320px;
  }
}

@media (min-width: 768px) {
  .hero-rotate-circle {
    width: 600px;
    height: 600px;
  }
  .hero-rotate-inner {
    width: 450px;
    height: 450px;
  }
}

.animate-scrollLine {
  animation: 2.5s cubic-bezier(0.42, 0, 0.58, 1) 0s infinite normal none running scrollLine;
}

/* スクロールダウン - 目立たせる */
.scroll-down-text {
  font-size: 0.875rem;
  color: rgb(197, 160, 89);
  text-shadow: 0 0 20px rgba(197, 160, 89, 0.6);
  animation: scrollDownPulse 2s ease-in-out infinite;
}

@keyframes scrollDownPulse {
  0%, 100% { opacity: 1; text-shadow: 0 0 20px rgba(197, 160, 89, 0.6); }
  50% { opacity: 0.85; text-shadow: 0 0 30px rgba(197, 160, 89, 0.9); }
}

.scroll-down-line {
  box-shadow: 0 0 12px rgba(197, 160, 89, 0.3);
}

.scroll-down-line .animate-scrollLine {
  box-shadow: 0 0 10px rgba(197, 160, 89, 0.7);
}

.animate-pulse {
  animation: 2s cubic-bezier(0.4, 0, 0.6, 1) 0s infinite normal none running pulse;
}

/* Tailwind-like utilities (minimal set for this site) */
.line-clamp-2 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

/* お知らせページ - グラデーション背景 */
.page-hero-news {
  min-height: 200px;
}

/* セッション詳細ページ ヒーロー */
.page-hero-session {
  min-height: 220px;
}

/* ページ全体：黒→温かみのあるダーク→黒のグラデーション */
.news-page-bg {
  background: linear-gradient(
    180deg,
    rgb(13, 13, 13) 0%,
    rgb(18, 16, 14) 15%,
    rgb(22, 19, 15) 35%,
    rgb(18, 16, 14) 65%,
    rgb(13, 13, 13) 100%
  );
  min-height: 100vh;
}

/* ヘッダー：下方向にフェードするグラデーション */
.news-header-gradient {
  background: linear-gradient(
    180deg,
    rgba(13, 13, 13, 0.98) 0%,
    rgba(13, 13, 13, 0.95) 50%,
    rgba(13, 13, 13, 0.9) 100%
  );
}

/* ヒーロー：複数レイヤーで奥行き */
.news-hero-gradient {
  background: linear-gradient(
    135deg,
    rgb(13, 13, 13) 0%,
    rgb(20, 17, 12) 40%,
    rgb(15, 13, 10) 100%
  );
}

.news-hero-glow {
  background: radial-gradient(
    ellipse 80% 60% at 30% 20%,
    rgba(197, 160, 89, 0.15) 0%,
    rgba(197, 160, 89, 0.05) 30%,
    transparent 70%
  );
  pointer-events: none;
}

/* メインコンテンツエリア：微かなグラデーション + 装飾光 */
.news-main-gradient {
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(197, 160, 89, 0.02) 20%,
    transparent 50%,
    rgba(13, 13, 13, 0.3) 100%
  );
  overflow-x: hidden;
}

.news-main-glow {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  height: 40%;
  z-index: 0;
  background: radial-gradient(
    ellipse 60% 100% at 50% 0%,
    rgba(197, 160, 89, 0.08) 0%,
    rgba(197, 160, 89, 0.02) 40%,
    transparent 70%
  );
  pointer-events: none;
}

/* フッター：黒から温かみのあるダークへ */
.news-footer-gradient {
  background: linear-gradient(
    180deg,
    rgb(10, 10, 10) 0%,
    rgb(15, 13, 11) 50%,
    rgb(13, 13, 13) 100%
  );
}

.news-badge {
  font-size: 10px;
  padding: 0.25rem 0.5rem;
  color: white;
  border-radius: 2px;
  font-weight: 500;
}

.news-badge-info {
  background-color: rgb(59, 130, 246);
}

.news-badge-event {
  background-color: rgb(245, 158, 11);
}

.news-badge-update {
  background-color: rgb(16, 185, 129);
}

/* 黒×金テーマ用バッジ */
.news-badge-gold {
  background: linear-gradient(135deg, rgb(197, 160, 89) 0%, rgb(229, 209, 164) 50%, rgb(197, 160, 89) 100%);
  color: rgb(13, 13, 13);
  border: none;
}

.news-badge-outline {
  background: transparent;
  color: rgb(197, 160, 89);
  border: 1px solid rgba(197, 160, 89, 0.6);
}

.news-article a {
  text-decoration: none;
}

/* ニュース一覧：スマホで横スクロール・ズレを防ぐ */
@media (max-width: 767px) {
  .news-list-link {
    margin-left: 0;
    margin-right: 0;
  }
}

/* 記事ホバー：微かな金のグラデーション */
.news-article-hover:hover {
  background: linear-gradient(
    90deg,
    rgba(197, 160, 89, 0.04) 0%,
    rgba(197, 160, 89, 0.01) 50%,
    transparent 100%
  );
}

/* ===== お問い合わせ・ご予約 CTA 統一（スマホ表示） ===== */
.cta-contact-menu {
  /* メニュー内インラインボタン */
  text-align: center;
  white-space: normal;
  line-height: 1.5;
  min-height: 44px;
}
.cta-contact-main {
  /* セクションCTA（Back to Menu 等） */
  text-align: center;
  white-space: normal;
  line-height: 1.5;
}

.cta-reserve-btn {
  /* ご予約サブボタン（メニュー内） */
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 767px) {
  .cta-contact-menu {
    font-size: 0.75rem;
    padding: 0.75rem 1rem;
    min-height: 44px;
  }
  .cta-contact-main {
    font-size: 0.875rem;
    padding: 1rem 1.25rem;
    width: 100%;
    min-height: 48px;
  }
}

/* ===== スマホ表示の美しさ調整 ===== */
@media (max-width: 767px) {
  /* タップターゲット最小44px */
  header nav a, .mobile-nav-link, button[aria-label] {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  /* メニューページ：料金・ボタンエリアを縦並びに */
  section .flex.flex-wrap.gap-6 {
    flex-direction: column;
    align-items: stretch;
    gap: 0.875rem;
  }
  section .flex.flex-wrap.gap-6 a.bg-gold-gradient,
  section .flex.flex-wrap.gap-6 a.inline-flex {
    justify-content: center;
  }
  /* メニューページ：ご予約ボタン行を中央寄せ */
  section .mt-4.flex.justify-end {
    justify-content: center;
  }
}

/* 行の長さ・可読性（スマホ） */
@media (max-width: 639px) {
  .text-gray-600.font-light {
    line-height: 1.9;
  }
  /* 長い料金表記の折り返し */
  .font-montserrat.font-medium.text-gold {
    overflow-wrap: break-word;
  }
}

/* Mobile menu transition */
.mobile-menu {
  transition: transform 0.5s ease;
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu.closed {
  transform: translateX(100%);
}



/* microCMS news detail */
.news-rich-content h1,
.news-rich-content h2,
.news-rich-content h3,
.news-rich-content h4,
.news-rich-content h5 {
  color: #fff;
  font-family: 'Shippori Mincho', Georgia, serif;
  line-height: 1.6;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}
.news-rich-content h2 { font-size: 1.75rem; }
.news-rich-content h3 { font-size: 1.4rem; }
.news-rich-content p,
.news-rich-content li {
  color: rgba(255,255,255,0.92);
  line-height: 2;
}
.news-rich-content p + p { margin-top: 1.25rem; }
.news-rich-content ul,
.news-rich-content ol {
  margin: 1.25rem 0 1.25rem 1.5rem;
}
.news-rich-content a {
  color: rgb(197, 160, 89);
  text-decoration: underline;
}
.news-rich-content img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 2rem auto;
  border-radius: 0.75rem;
}
.news-rich-content blockquote {
  margin: 2rem 0;
  padding: 1rem 1.25rem;
  border-left: 3px solid rgba(197,160,89,0.7);
  background: rgba(255,255,255,0.04);
}
.news-rich-content code {
  background: rgba(255,255,255,0.08);
  padding: 0.15rem 0.4rem;
  border-radius: 0.25rem;
}
.news-rich-content pre {
  overflow-x: auto;
  background: rgba(255,255,255,0.06);
  padding: 1rem;
  border-radius: 0.75rem;
  margin: 1.5rem 0;
}


/* microCMS news thumbnails */
.news-card-thumb {
  aspect-ratio: 16 / 10;
  border-radius: 0.75rem;
}

.news-list-layout {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.news-list-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 0.9rem;
}

@media (min-width: 768px) {
  .news-list-layout {
    flex-direction: row;
    align-items: flex-start;
    gap: 2rem;
  }

  .news-list-thumb {
    width: 320px;
    aspect-ratio: 16 / 10;
  }

  .news-list-content {
    flex: 1;
  }
}


/* Contact Form */
.contact-cta-panel,
.contact-form-card {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
}

/* お問い合わせフォーム：スマホで背景画像の人物が被らないよう不透明に */
@media (max-width: 767px) {
  .contact-form-card-opaque {
    background: rgba(13, 13, 13, 0.95) !important;
    backdrop-filter: none;
  }
}

/* 黒背景の本文：輪郭をくっきり（強いシャドウはフォントがにじんで見えるため極弱に） */
#cta .rounded-2xl p,
#about .text-white p,
#team .text-white p,
#news p,
#blog p {
  text-shadow: 0 0.5px 0 rgba(0, 0, 0, 0.35);
}

/* News・Blog：JSで動的生成される記事の文字色を白に固定（Tailwind CDNが動的クラスを検出しない場合の保険） */
#news-list p,
#news-list h3,
#blog-posts p,
#blog-posts h3 {
  color: rgb(255, 255, 255) !important;
}

.contact-input {
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.contact-input:focus {
  box-shadow: 0 0 0 4px rgba(197, 160, 89, 0.12);
}

.contact-status-message {
  border-radius: 0.75rem;
  padding: 0.875rem 1rem;
  font-size: 0.875rem;
  line-height: 1.7;
}

.contact-status-message.error {
  background: rgba(220, 38, 38, 0.08);
  color: rgb(153, 27, 27);
  border: 1px solid rgba(220, 38, 38, 0.18);
}

.contact-status-message.success {
  background: rgba(34, 197, 94, 0.08);
  color: rgb(21, 128, 61);
  border: 1px solid rgba(34, 197, 94, 0.18);
}

/* ダークテーマ用（コンタクトページ） */
.bg-dark .contact-status-message.error {
  background: rgba(220, 38, 38, 0.2);
  color: rgb(254, 202, 202);
  border-color: rgba(220, 38, 38, 0.4);
}
