/* ======================================
   0. カラーバリエーション・基本フォント
   ====================================== */

:root {
  --color-brown-dark:  #3a2e2a;
  --color-brown-light: #5d4d44;
  --color-beige-bg:    #fdfcf8;
  --color-gold:        #bf9f62;
  --color-gold-light:  #e6d0a5;
  --color-line-green:  #06c755;
}

body {
  font-family: 'Zen Old Mincho', serif;
  background-color: var(--color-beige-bg);
  color: var(--color-brown-dark);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
  letter-spacing: 0.05em;
}

/* 英字フォント用 */
.font-eng {
  font-family: 'Cormorant Garamond', serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* 汎用カラー・ボーダー */
.text-gold  { color: var(--color-gold); }
.text-brown { color: var(--color-brown-dark); }
.border-gold { border-color: var(--color-gold); }

/* ヘッダー全体レイアウト */
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* H2 見出しカスタム */
.h2-custom {
  font-size: 40px;
  line-height: 2;
  letter-spacing: 0.15em;
}

/* トップページ用：メインビジュアル直下に敷く場合 */
@media (max-width: 480px) {
.h2-custom {
  font-size: 30px;
  line-height: 2;
  letter-spacing: 0.15em;
}
}

/* 縦書きテキスト（CONCEPT など） */
.vertical-text {
  writing-mode: vertical-rl;
  text-orientation: upright;
  letter-spacing: 0.3em;
  line-height: 1.8;
  height: 20rem;
}


/* ======================================
   1. ヒーロー（スライド）関連
   ====================================== */

.hero-container {
  position: relative;
  width: 100%;
  height: 85vh;
  min-height: 600px;
  overflow: hidden;
  background-color: #000;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.15);
  transition: opacity 3s ease-in-out, transform 12s linear;
  z-index: 0;
}

.hero-slide.active {
  opacity: 0.8;
  transform: scale(1);
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(58, 46, 42, 0.3);
  background-image: radial-gradient(rgba(0,0,0,0.1) 1px, transparent 1px);
  background-size: 4px 4px;
  z-index: 1;
}


/* ======================================
   2. アニメーション・ページ切り替え
   ====================================== */

/* フェードアップ */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s ease-out;
}
.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-500 { transition-delay: 0.5s; }

/* 画像リビール（スワイプ） */
.reveal-clip {
  position: relative;
  overflow: hidden;
  display: block;
}
.reveal-clip img {
  opacity: 0;
  transition: opacity 0s 0.5s;
}
.reveal-clip::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #e6d0a5;
  transform: translateX(-101%);
  z-index: 10;
}
.reveal-clip.is-visible img {
  opacity: 1;
}
.reveal-clip.is-visible::after {
  animation: revealSwipe 1.2s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

@keyframes revealSwipe {
  0%   { transform: translateX(-101%); }
  40%  { transform: translateX(0); }
  60%  { transform: translateX(0); }
  100% { transform: translateX(101%); }
}

/* ページ切り替え（トップの疑似タブ用） */
.page-section {
  display: none;
  animation: fadeInPage 0.8s ease-out;
}
.page-section.active {
  display: block;
}

@keyframes fadeInPage {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ======================================
   3. ナビゲーション
   ====================================== */

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 100%;

  padding: 0 1.5rem;
  color: #fff;
  transition: color 0.3s;
  cursor: pointer;
}

.nav-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 20px;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--color-gold), transparent);
  opacity: 0.7;
}

.nav-item span.ja {
  font-size: 0.9rem;
  margin-bottom: 2px;
}

.nav-item span.en {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--color-gold);
  text-transform: uppercase;
}

.nav-item:hover,
.nav-item.active {
  color: var(--color-gold);
}


/* ======================================
   4. 背景（草花）・下層ページヘッダー
   ====================================== */

/* 草花背景（共通） */
.bg-flowers {
  /* ローカル環境用パス（優先） */
  background-image: url('../../image/contents-bg.webp');
  background-size: cover;
  background-position: bottom center; /* デフォルトは下基準（下層ページ用） */
  opacity: 0.08;
  mix-blend-mode: multiply;
}

/* トップページ用：メインビジュアル直下に敷く場合 */
@media (min-width: 1024px) {
  .bg-flowers-home {
    background-size: 100% auto;   /* 幅基準で高さ自動調整 */
    background-position: top center;
    background-repeat: no-repeat;
  }
}

/* 下層ページ共通ヘッダー */
.sub-page-header {
  background-size: cover;
  background-position: center;
  height: 400px;
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #ffffff;
}

.sub-page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(58, 46, 42, 0.5);
  z-index: 1;
}

.sub-page-header-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

/* 各ページごとの背景画像 */
.menu-header {
  background-image: url('../../image/mat-kilkeary-yBLLzNcA6GU-unsplash.jpg');
}
.product-header {
  background-image: url('../../image/photo-1616683693504-3ea7e9ad6fec.jpg');
}
.voice-header {
  background-image: url('../../image/photo-1517487881594-2787fef5ebf7.jpg');
}
.access-header {
  background-image: url('../../image/gallery-main.jpg');
}
.contact-header {
  background-image: url('../../image/photo-1522337360788-8b13dee7a37e.jpg');
}


/* ======================================
   5. メニューカード・商品リンク
   ====================================== */

.menu-card {
  background: #ffffff;
  border: 1px solid rgba(191, 159, 98, 0.3);
  padding: 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all 0.3s;
}

.menu-card:hover {
  box-shadow: 0 10px 25px rgba(58, 46, 42, 0.1);
  border-color: var(--color-gold);
  transform: translateY(-5px);
}

.menu-card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  color: var(--color-brown-dark);
  margin-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-gold-light);
  padding-bottom: 0.5rem;
}

.menu-card-subtitle {
  font-size: 0.85rem;
  color: var(--color-gold);
  margin-bottom: 1rem;
  display: block;
}

.menu-card-desc,
.menu-card-desc p {
  font-size: 0.9rem;
  color: #666666;
  margin-bottom: 1.5rem;
  line-height: 1.8;
  flex-grow: 1;
}

.menu-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-top: auto;
}

/* 商品リンクカード（NOEVIR など） */
.noevir-btn {
  display: block;
  width: 100%;
  padding: 1.5rem;
  background: linear-gradient(135deg, #4b3b36, #3a2e2a);
  color: #ffffff;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.1);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.noevir-btn:hover {
  background: linear-gradient(135deg, #5d4d44, #4b3b36);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.noevir-btn span {
  display: block;
  font-size: 1.1rem;
  letter-spacing: 0.1em;
}

.noevir-btn small {
  display: block;
  font-size: 0.8rem;
  opacity: 0.8;
  margin-top: 0.3rem;
}

.product-link-card {
  display: block;
  background: #ffffff;
  border: 1px solid #eeeeee;
  padding: 1rem;
  text-align: center;
  transition: all 0.3s;
}

.product-link-card:hover {
  border-color: var(--color-gold);
  box-shadow: 0 5px 15px rgba(58, 46, 42, 0.05);
}

.product-link-card img {
  width: 100%;
  height: 80px;
  object-fit: cover;
  margin-bottom: 1rem;
}

.product-link-code {
  display: block;
  font-size: 0.7rem;
  color: #888888;
  background: #f5f5f5;
  padding: 2px 5px;
  margin-top: 5px;
}

/* 価格リスト全体のコンテナ */
.menu-price-list {
  margin-top: -0.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem; /* 行間の余白 */
}

/* 各行のレイアウト */
.menu-price-row {
  display: flex;
  align-items: baseline; /* ベースラインで文字の高さを揃える */
  justify-content: space-between;
  width: 100%;
}

/* 左側：時間（60分など） */
.menu-price-row .price-label {
  font-size: 0.95rem;
  color: var(--color-brown-dark);
  font-weight: 500;
  white-space: nowrap; /* 折り返し禁止 */
}

/* 中央：点線リーダー（.....） */
.menu-price-row .price-dots {
  flex-grow: 1; /* 余ったスペースを埋める */
  border-bottom: 1px dotted #ccc; /* 点線 */
  margin: 0 0.5rem;
  position: relative;
  top: -4px; /* 点線の位置微調整 */
  opacity: 0.6;
}

/* 右側：金額 */
.menu-price-row .price-cost {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  color: var(--color-brown-dark);
  font-weight: 600;
  white-space: nowrap; /* 折り返し禁止 */
}

/* サブタイトル直下の余白調整 */
.menu-card-subtitle + .menu-price-list {
  margin-top: 0.5rem;
}


/* 価格リスト全体の枠 */
.menu-price-list {
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem; /* 行ごとの間隔 */
}

/* 1行ごとの設定 */
.menu-price-row {
  display: flex;
  align-items: baseline; /* 文字の下のラインを揃える */
  justify-content: space-between;
  width: 100%;
  line-height: 1.2;
}

/* 左側：メニュー名（ハンド10分など） */
.menu-price-row .price-label {
  font-size: 0.8rem;     /* 文字サイズ */
  color: #4b3b36;         /* 文字色（濃いブラウン） */
  letter-spacing: 0.05em; /* 文字間隔 */
  flex-shrink: 0;         /* 勝手に改行させない */
}

/* 中央：点線（……） */
.menu-price-row .price-dots {
  flex-grow: 1;                /* 余白を全て埋める */
  border-bottom: 0.9px dotted #bfa962; /* 点線の色（ゴールド系） */
  margin: 0 0.8rem;            /* 文字との距離 */
  opacity: 0.6;                /* 点線の濃さ */
  position: relative;
  top: -4px;                   /* 点線の上下位置調整 */
}

/* 右側：金額（1000円など） */
.menu-price-row .price-cost {
  font-family: 'Cormorant Garamond', serif; /* 英数字用のおしゃれフォント */
  font-size: 1rem;
  color: #4b3b36;
  font-weight: 600;
  text-align: right;
  flex-shrink: 0;
}

/* ※注釈行（Men追加料金など）の微調整 */
/* 行頭が「※」で始まる場合などを想定して少し文字を小さくする場合 */
.menu-price-row .price-label:contains("※") {
   font-size: 0.8rem;
}
/* ======================================
   6. Voice（お客様の声）ライトボックス
   ====================================== */

.voice-section {
  margin-bottom: 6rem;
}

.voice-section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  color: var(--color-brown-dark);
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(191, 159, 98, 0.3);
  padding-bottom: 0.5rem;
  display: flex;
  align-items: baseline;
  gap: 1rem;
}

.voice-section-title span {
  font-family: 'Zen Old Mincho', serif;
  font-size: 1rem;
  color: #666666;
}

.voice-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 768px) {
  .voice-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .voice-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.voice-img-wrapper {
  border: 1px solid #eeeeee;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  cursor: pointer;
  transition: transform 0.3s;
}

.voice-img-wrapper:hover {
  transform: scale(1.02);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* ライトボックス本体 */
.lightbox {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.85);
  justify-content: center;
  align-items: center;
  padding: 2rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  opacity: 1;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90vh;
  border: 2px solid #ffffff;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.lightbox.active .lightbox-content {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #ffffff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1001;
}


/* ======================================
   7. ボタン・問い合わせ導線
   ====================================== */

/* 汎用ラグジュアリーボタン */
.btn-luxury {
  display: inline-block;
  padding: 1.2rem 4rem;
  background: #3a2e2a;
  border: 1px solid var(--color-brown-dark);
  color: #ffffff;
  font-family: 'Cormorant Garamond', 'Zen Old Mincho', serif;
  font-size: 1.1rem;
  letter-spacing: 0.2em;
  transition: all 0.4s ease;
  text-align: center;
  cursor: pointer;
}

.btn-luxury:hover {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: #3a2e2a;
}

/* お問い合わせ方法カード（TEL / LINE 等） */
.contact-methods {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

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

.contact-card {
  background: #ffffff;
  border: 1px solid #eeeeee;
  padding: 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  transition: all 0.3s;
}

.contact-card:hover {
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
  border-color: var(--color-gold);
}

.contact-icon-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #fdfcf8;
  border: 1px solid var(--color-gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--color-brown-dark);
}

.btn-line {
  background-color: var(--color-line-green);
  color: #ffffff;
  padding: 0.8rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: bold;
  transition: opacity 0.3s;
}

.btn-line:hover {
  opacity: 0.8;
}


/* ======================================
   8. JSバリデーション用（旧フォーム向け）
   ====================================== */

.input-error {
  border-color: #ef4444 !important;
  background-color: #fef2f2;
}

.error-text {
  color: #ef4444;
  font-size: 0.75rem;
  margin-top: 0.25rem;
  display: none;
}

.error-text.visible {
  display: block;
}


/* ======================================
   9. Contact Form 7：MARY 用スタイル
   ====================================== */

/* 各項目ブロックの間隔（少しだけ詰める） */
#page-contact #contactForm > div {
  margin-bottom: 1.5rem; /* お好みで 1.2〜1.8rem くらいに */
}

/* ラベル */
#page-contact #contactForm label {
  display: block;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: #4a372f;            /* 落ち着いたブラウン */
  margin-bottom: 0.35rem;    /* ラベルと入力欄の間を狭める */
}

/* 入力欄（テキスト・メール・TEL） */
.wpcf7-form .mary-input {
  width: 100%;
  padding: 1rem;
  border: 1px solid #d1d5db; /* 明るいグレー */
  background-color: #fdfcf8;
  box-sizing: border-box;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* テキストエリア */
.wpcf7-form .mary-textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid #d1d5db;
  background-color: #fdfcf8;
  box-sizing: border-box;
  font-size: 0.95rem;
  line-height: 1.6;
  min-height: 7rem;
}

/* フォーカス時（枠だけゴールドに） */
.wpcf7-form .mary-input:focus,
.wpcf7-form .mary-textarea:focus {
  outline: none;
  border-color: #c2a264;
}

/* プレースホルダは少し淡く */
.wpcf7-form .mary-input::placeholder,
.wpcf7-form .mary-textarea::placeholder {
  color: #b8b8b8;
}

/* 送信ボタン */
.wpcf7-form .mary-submit {
  display: inline-block;
  border: none;
  background-color: #3a2e2a;
  color: #ffffff;
  padding: 1rem 4rem;           /* px-16 py-4 相当 */
  font-size: 0.875rem;          /* text-sm */
  letter-spacing: 0.25em;       /* tracking-widest 風 */
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
}

@media (min-width: 768px) {
  .wpcf7-form .mary-submit {
    width: auto;                /* md:w-auto */
  }
}

.wpcf7-form .mary-submit:hover {
  background-color: #c2a264;   /* hover:bg-gold */
  color: #3a2e2a;              /* hover:text-[#3a2e2a] */
}

/* 各フィールド下のエラー（「入力してください。」） */
.wpcf7-form .wpcf7-not-valid-tip {
  font-size: 0.78rem;
  color: #d35b5b;
  margin-top: 0.25rem;
}

/* 送信後のメッセージ枠（「入力内容に問題があります…」など） */
.wpcf7-form .wpcf7-response-output {
  margin: 2rem auto 0;
  padding: 0.75rem 1.5rem;
  border: 1px solid #c2a264;   /* ゴールド系の枠 */
  background-color: #fdf9ef;   /* ごく淡いベージュ */
  color: #3a2e2a;
  font-size: 0.8rem;
  text-align: center;
  border-radius: 2px;
}
