/* ============================================
   中国茶交流会 ランディングページ
   カラーパレット・デザインシステム
   ============================================ */

/* --- カスタムプロパティ --- */
:root {
  /* 背景系 */
  --bg-base: #faf7f2;
  --bg-warm: #f5f0e8;
  --bg-cream: #f0ebe1;

  /* テキスト */
  --text-primary: #2a2520;
  --text-secondary: #5a534a;
  --text-light: #8a8279;

  /* アクセントカラー */
  --accent-pink: #c4567a;
  --accent-pink-dark: #a8435f;
  --accent-pink-light: #e8a0b4;
  --accent-blue: #b8d8e8;
  --accent-blue-light: #daeef6;
  --accent-blue-dark: #8cbdd4;

  /* UI */
  --white: #ffffff;
  --border-light: rgba(42, 37, 32, 0.08);

  /* フォント */
  --font-serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --font-sans: "Zen Maru Gothic", "Rounded Mplus 1c", "Hiragino Kaku Gothic ProN", sans-serif;

  /* スペーシング */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 8rem;
}

/* --- リセット --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-serif);
  color: var(--text-primary);
  background-color: var(--bg-base);
  line-height: 1.8;
  overflow-x: hidden;
  position: relative;
}

/* ============================================
   紙テクスチャ背景（SVGノイズ）
   ============================================ */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* ============================================
   ローディングアニメーション
   ============================================ */
#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-base);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#loading-screen::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.3;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

.loading-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.loading-teapot {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-md);
  position: relative;
}

/* 急須のSVGアイコン */
.loading-teapot svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: var(--accent-pink);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* 湯気のアニメーション */
.steam {
  position: absolute;
  width: 3px;
  height: 20px;
  background: linear-gradient(to top, var(--accent-pink-light), transparent);
  border-radius: 50%;
  opacity: 0;
}

.steam:nth-child(1) { left: 30%; top: -15px; }
.steam:nth-child(2) { left: 50%; top: -20px; }
.steam:nth-child(3) { left: 70%; top: -15px; }

.loading-text {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-pink);
  letter-spacing: 0.3em;
  opacity: 0;
}

/* 桜の花びら */
.sakura-petal {
  position: absolute;
  width: 12px;
  height: 14px;
  opacity: 0;
  pointer-events: none;
}

.sakura-petal svg {
  width: 100%;
  height: 100%;
}

/* ============================================
   メインコンテンツ（ローディング終了後に表示）
   ============================================ */
#main-content {
  opacity: 0;
  visibility: hidden;
  position: relative;
  z-index: 1;
}

#main-content.is-visible {
  opacity: 1;
  visibility: visible;
}

/* ============================================
   ヘッダー
   ============================================ */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: var(--space-sm) var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* うっすらとした背景とグラスモーフィズム */
  background-color: rgba(250, 247, 242, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(250, 247, 242, 0.2);
}

.header-logo {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 3vw, 1.15rem);
  font-weight: 700;
  color: var(--accent-pink);
  letter-spacing: 0.1em;
}

/* ============================================
   ① ファーストビュー
   ============================================ */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-3xl) var(--space-md) var(--space-xl);
  position: relative;
  overflow: hidden;
}

/* TOPビュー用 背景画像レイヤー */
.hero-bg-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: right center;
  filter: blur(4px);
  transform: scale(1.05); /* ぼかしの端が見えないように拡大 */
  z-index: 0;
}

/* 視認性確保用 ベタ塗りオーバーレイ */
.hero-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(250, 247, 242, 0.4);
  z-index: 0;
}

/* 桜Canvas背景 */
#sakura-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ヒーロー内のテキスト等をCanvas前面に */
.hero > *:not(#sakura-canvas):not(.hero-bg-layer):not(.hero-bg-overlay) {
  position: relative;
  z-index: 1;
}

/* 淡い水色の装飾円 */
.hero::before {
  content: "";
  position: absolute;
  top: 12%;
  left: -10%;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-blue-light) 0%, transparent 70%);
  opacity: 0.3;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: 20%;
  right: -10%;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-pink-light) 0%, transparent 70%);
  opacity: 0.15;
  pointer-events: none;
}

.hero-concept {
  font-family: var(--font-serif);
  font-size: clamp(0.8rem, 2.5vw, 1rem);
  color: var(--text-secondary);
  line-height: 2;
  margin-bottom: var(--space-lg);
  letter-spacing: 0.1em;
  text-shadow: 0 4px 16px rgba(250, 247, 242, 0.9), 0 0 24px rgba(250, 247, 242, 0.9);
  opacity: 0;
}

.hero-subtitle {
  font-family: var(--font-sans);
  font-size: clamp(0.7rem, 2vw, 0.85rem);
  color: var(--text-light);
  letter-spacing: 0.15em;
  margin-bottom: var(--space-xs);
  text-shadow: 0 4px 16px rgba(250, 247, 242, 0.9), 0 0 24px rgba(250, 247, 242, 0.9);
  opacity: 0;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 12vw, 5.5rem);
  font-weight: 700;
  color: var(--accent-pink);
  line-height: 1.2;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-lg);
  text-shadow: 0 4px 16px rgba(250, 247, 242, 0.9), 0 0 32px rgba(250, 247, 242, 1);
  opacity: 0;
}

.hero-info {
  opacity: 0;
  position: relative;
  text-shadow: 0 4px 16px rgba(250, 247, 242, 0.9), 0 0 24px rgba(250, 247, 242, 0.9);
}

.hero-info-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.3rem 1rem;
  font-family: var(--font-sans);
  font-size: clamp(0.72rem, 2vw, 0.82rem);
  color: var(--text-secondary);
  letter-spacing: 0.05em;
  line-height: 1.8;
}

.hero-info-label {
  color: var(--text-light);
  font-size: 0.7rem;
  white-space: nowrap;
}

.hero-info-value {
  font-weight: 500;
}

.hero-info-date {
  font-size: clamp(0.85rem, 2.5vw, 1rem);
  font-family: var(--font-serif);
  color: var(--text-primary);
  letter-spacing: 0.08em;
  font-weight: 500;
}

.hero-cta {
  margin-top: var(--space-lg);
  opacity: 0;
}

/* ============================================
   予約ボタン
   ============================================ */
.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-serif);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  color: var(--accent-pink);
  text-decoration: none;
  padding: 0.9rem 2rem;
  border: 1px solid var(--accent-pink);
  border-radius: 50px;
  position: relative;
  overflow: hidden;
  transition: color 0.4s ease;
  background: transparent;
  cursor: pointer;
}

.cta-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--accent-pink);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
  z-index: -1;
  border-radius: inherit;
}

.cta-button:hover {
  color: var(--white);
}

.cta-button:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

.cta-button-arrow {
  width: 16px;
  height: 16px;
  transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.cta-button:hover .cta-button-arrow {
  transform: translateX(4px);
}

/* ギャラリー内の丸いイラスト枠 */
/* お茶のイメージ画像表示 */
.ocha-image-container {
  width: min(100%, 280px);
  margin: var(--space-md) auto 0;
}

.ocha-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

@media (min-width: 768px) {
  .ocha-image-container {
    width: 320px;
  }
}

/* ============================================
   ③ フォトギャラリー
   ============================================ */
.gallery {
  padding: var(--space-xl) var(--space-md) 0;
  position: relative;
}

.gallery-title {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 4vw, 1.6rem);
  text-align: center;
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* 装飾のライン */
.gallery::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, transparent, var(--accent-pink-light));
}

.gallery-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  max-width: 600px;
  margin: 0 auto;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  opacity: 0;
  transform: translateY(30px);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

.gallery-item:hover img {
  transform: scale(1.03);
}

/* ギャラリーの段違いレイアウト */
.gallery-item--large {
  aspect-ratio: 4 / 3;
}

.gallery-item--large img {
  object-position: top;
}

.gallery-item--medium {
  aspect-ratio: 4 / 3;
}

.gallery-item--wide {
  aspect-ratio: 16 / 10;
}

/* デスクトップ用コラージュ風レイアウト */
@media (min-width: 768px) {
  .gallery-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    grid-template-rows: auto auto;
    gap: var(--space-md);
    max-width: 900px;
  }

  .gallery-item:nth-child(1) {
    grid-column: 1;
    grid-row: 1 / 3;
  }

  .gallery-item:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
  }

  .gallery-item:nth-child(3) {
    grid-column: 2;
    grid-row: 2;
  }

  .gallery-item--large {
    aspect-ratio: auto;
  }

  .gallery-item--medium {
    aspect-ratio: 1 / 1;
  }

  .gallery-item--wide {
    aspect-ratio: 1 / 1;
  }
}

/* お茶の案内テキスト */
.gallery-caption {
  text-align: center;
  margin-top: 0;
  margin-bottom: var(--space-xl);
  opacity: 0;
  transform: translateY(20px);
}

.gallery-caption p {
  font-family: var(--font-serif);
  font-size: clamp(0.82rem, 2.2vw, 0.95rem);
  color: var(--text-secondary);
  line-height: 2;
  letter-spacing: 0.1em;
}

.gallery-caption .tea-types {
  font-size: clamp(0.9rem, 2.5vw, 1.1rem);
  color: var(--text-primary);
  font-weight: 500;
  margin-bottom: var(--space-xs);
}

/* ============================================
   ④ ご予約ボタンエリア
   ============================================ */
.cta-section {
  padding: 0 var(--space-md) var(--space-2xl);
  text-align: center;
  position: relative;
}

.cta-section .cta-deco {
  display: block;
  width: 40px;
  margin: var(--space-xs) auto var(--space-md);
  opacity: 0;
}

.cta-section .cta-deco svg {
  width: 100%;
  height: auto;
  stroke: var(--accent-pink-light);
  fill: none;
  stroke-width: 1.2;
}

.cta-section .cta-button {
  opacity: 0;
}

/* ============================================
   ⑤ フッター
   ============================================ */
.site-footer {
  padding: var(--space-lg) var(--space-md);
  text-align: center;
  border-top: 1px solid var(--border-light);
}

.footer-venue {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  color: var(--text-light);
  letter-spacing: 0.08em;
  line-height: 1.8;
  margin-bottom: var(--space-sm);
}

.footer-venue strong {
  display: block;
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 0.2rem;
}

.footer-copy {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  color: var(--text-light);
  letter-spacing: 0.1em;
}

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

/* タブレット以上 */
@media (min-width: 768px) {
  .hero {
    padding: var(--space-3xl) var(--space-xl) var(--space-2xl);
    max-width: 1000px;
    margin: 0 auto;
  }

  .hero-bg-layer {
    background-position: center;
  }

  .hero::before {
    width: 350px;
    height: 350px;
    top: 5%;
    left: -10%;
  }

  .hero::after {
    width: 280px;
    height: 280px;
  }

  .hero-concept {
    font-size: 1.05rem;
  }

  .hero-title {
    font-size: clamp(4rem, 8vw, 6.5rem);
  }

  .gallery {
    padding: var(--space-2xl) var(--space-xl);
  }

  .cta-section {
    padding: var(--space-2xl) var(--space-xl) var(--space-3xl);
  }
}

/* デスクトップ */
@media (min-width: 1024px) {
  .hero {
    padding: var(--space-3xl) var(--space-2xl) var(--space-2xl);
  }

  .site-header {
    padding: var(--space-sm) var(--space-lg);
  }
}

/* ============================================
   ユーティリティ
   ============================================ */
img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

/* スクロールバーのスタイリング */
::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: var(--bg-base);
}

::-webkit-scrollbar-thumb {
  background: var(--accent-pink-light);
  border-radius: 2px;
}

/* アクセシビリティ */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================
   予約フォーム・お問い合わせ
   ============================================ */
.reserve-page {
  padding-top: var(--space-3xl);
  padding-bottom: var(--space-2xl);
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.reserve-header {
  text-align: center;
  margin-bottom: var(--space-xl);
  opacity: 1; /* 最初から表示されるように修正 */
}

.reserve-header h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  color: var(--accent-pink);
  margin-bottom: var(--space-sm);
}

.reserve-header p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.reserve-form-card {
  background-color: var(--bg-warm);
  padding: var(--space-lg);
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(42, 37, 32, 0.04);
  border: 1px solid var(--border-light);
  opacity: 1; /* 最初から表示されるように修正 */
  transform: none;
}

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

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.form-label .required {
  color: var(--accent-pink);
  margin-left: 4px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  background-color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text-primary);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent-pink-light);
  box-shadow: 0 0 0 4px rgba(232, 160, 180, 0.15);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-submit-container {
  margin-top: var(--space-lg);
  text-align: center;
}

.form-submit-button {
  width: 100%;
  justify-content: center;
  cursor: pointer;
  border: none;
  background-color: var(--accent-pink);
  color: var(--white);
  font-family: var(--font-serif);
  padding: 1rem 2rem;
  border-radius: 50px;
  font-size: 1rem;
  letter-spacing: 0.1em;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.form-submit-button:hover {
  background-color: var(--accent-pink-dark);
}

.form-submit-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-back-container {
  text-align: center;
  margin-top: var(--space-xl);
}

.form-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.3s ease;
}

.form-back-link:hover {
  color: var(--accent-pink);
}

/* 送信状態メッセージ */
.form-message {
  padding: var(--space-md);
  border-radius: 8px;
  margin-top: var(--space-lg);
  font-size: 0.9rem;
  text-align: center;
  display: none;
}

.form-message.success {
  background-color: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
  display: block;
}

.form-message.error {
  background-color: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
  display: block;
}

@media (max-width: 480px) {
  .reserve-form-card {
    padding: var(--space-md);
  }
}

