@charset "utf-8";

/* ==========================================================================
   0. Imports & Setup
   ========================================================================== */

/* 横スクロール防止 */
html, body {
  overflow-x: hidden;
  width: 100%;
}

/* ==========================================================================
   1. Top Page Layout Override
   ========================================================================== */
/* ヘッダーの余白を消して全画面表示にする設定 */
body.home {
  padding-top: 0 !important;
  margin-top: 0 !important;
  background-color: #f9f9f9;
}

/* トップページ専用ヘッダー設定（透過・すりガラス） */
#globalNav {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  padding: 15px 0;
  /* 完全な黒(#1a1a1a)ではなく、透過度0.6を設定 */
  background-color: rgba(26, 26, 26, 0.6);
  /* すりガラス効果 */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.4s ease;
  font-family: var(--font-mincho);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  z-index: 1030;
}


/* ==========================================================================
   2. Main Visual Container
   ========================================================================== */
#TopMain {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
  margin: 0 !important;
  padding: 0 !important;
  background-color: #000; 
  color: #fff;
}

/* クラシックなフィルムカメラ風フィルター (Overlay) */
#TopMain::before {
  content: "";
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 5; /* Carousel(1)より上、あしらい(10)より下 */
  pointer-events: none;
  
  /* 1. セピア調 */
  background-color: rgba(90, 70, 50, 0.3);
  mix-blend-mode: multiply;

  /* 2. ビネット効果（四隅を暗く） */
  box-shadow: inset 0 0 150px rgba(0,0,0,0.7);

  /* 3. ノイズ（ざらつき） */
  background-image: 
    linear-gradient(rgba(0,0,0,0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.1) 1px, transparent 1px);
  background-size: 3px 3px, 3px 3px;
}

/* --- Carousel --- */
#mvCarousel {
  width: 100%; height: 100%;
  position: absolute; top: 0; left: 0;
  z-index: 1;
}

.carousel-inner, .carousel-item {
  height: 100%;
}

/* フェード切り替えの設定 */
.carousel-item {
  transition: transform 0.6s ease-in-out, opacity 1.5s ease-in-out !important;
}

/* Images */
.mv-img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  /* 画像自体を少し暗くして文字を見やすく */
  filter: brightness(0.85) contrast(1.1);
}

/* --- Japanese Paper Overlay (和紙あしらい) --- */
.mv-overlay {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 10;
  pointer-events: none;
  mix-blend-mode: multiply;
}
.mv-overlay img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center center;
  animation: inkFloat 10s ease-in-out infinite alternate;
  opacity: 0.9;
}
@keyframes inkFloat {
  0% { transform: scale(1.0); }
  100% { transform: scale(1.03); }
}


/* ==========================================================================
   3. Text & UI Animations (Main Visual)
   ========================================================================== */
/* キャッチコピーエリア */
.top-catchphrase {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 20;
  text-align: center;
  width: 100%; padding: 0 20px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.8), 0 0 20px rgba(0,0,0,0.5);
}

.top-catchphrase p {
  font-size: 1.5rem; letter-spacing: 0.2em; line-height: 2.2;
  margin-bottom: 1rem;
  opacity: 0; /* 初期非表示 */
  animation: textFadeUp 1.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* 2行目の遅延 */
.top-catchphrase p:nth-child(2) {
  animation-delay: 0.5s;
}

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

/* Scroll Down Arrow */
.arrow-wrapper {
  position: absolute; bottom: 80px; left: 50%;
  transform: translateX(-50%);
  z-index: 20; opacity: 0.8;
}
.arrow-down {
  width: 20px; height: 20px;
  border-right: 2px solid #fff; border-bottom: 2px solid #fff;
  transform: rotate(45deg);
  animation: arrowScroll 2s infinite;
  filter: drop-shadow(0 0 5px rgba(0,0,0,0.8));
}
@keyframes arrowScroll {
  0% { transform: rotate(45deg) translate(0, 0); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: rotate(45deg) translate(10px, 10px); opacity: 0; }
}


/* ==========================================================================
   4. Loading Animation "ISSEN" (一閃)
   ========================================================================== */
.loading-wrapper {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 99999;
  pointer-events: none;
  display: flex; justify-content: center; align-items: center;
}

/* 左右の幕 */
.loading-curtain {
  position: absolute; top: 0;
  width: 51%; height: 100%;
  background-color: #111; z-index: 1;
  transition: transform 1.5s cubic-bezier(0.8, 0, 0.1, 1);
}
.loading-curtain.left { left: 0; border-right: 1px solid #333; }
.loading-curtain.right { right: 0; }

.loading-wrapper.loaded .loading-curtain.left { transform: translateX(-100%); }
.loading-wrapper.loaded .loading-curtain.right { transform: translateX(100%); }

/* 中央コンテンツ */
.loading-content {
  position: relative; z-index: 5;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  width: 100%; height: 100%;
}

/* 光の線 */
.loading-line {
  position: absolute; top: 0; left: 50%;
  transform: translateX(-50%);
  width: 2px; height: 0;
  background: linear-gradient(to bottom, transparent, #d4af37, #fff, #d4af37, transparent);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.8), 0 0 30px rgba(212, 175, 55, 0.6);
  opacity: 0;
  animation: slashLine 2.0s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: 0.8s;
}
@keyframes slashLine {
  0% { height: 0; top: 0; opacity: 0; }
  10% { opacity: 1; }
  40% { height: 100vh; top: 0; opacity: 1; }
  60% { height: 100vh; top: 100vh; opacity: 0; }
  100% { height: 0; top: 100vh; opacity: 0; }
}

/* ロゴ出現 */
.loading-logo {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.loading-logo img {
  width: 220px; height: auto; opacity: 0;
  filter: invert(100%) drop-shadow(0 0 8px rgba(255,255,255,0.6));
  animation: logoEmerge 2.0s ease-out forwards;
  animation-delay: 1.8s; 
}
@keyframes logoEmerge {
  0% { opacity: 0; transform: scale(0.92); filter: invert(100%) blur(8px); }
  100% { opacity: 1; transform: scale(1); filter: invert(100%) blur(0); }
}

/* 終了処理 */
.loading-wrapper.loaded .loading-content {
  opacity: 0; transition: opacity 0.8s ease;
}


/* ==========================================================================
   5. News Section
   ========================================================================== */

/* --- News Heading (お知らせ見出し) --- */
.c-heading-news {
  font-family: "Shippori Mincho", "Yu Mincho", "YuMincho", serif;
  font-size: 1.75rem; color: #111;
  display: flex; align-items: center;
  margin-bottom: 2rem; position: relative; flex-wrap: nowrap; 
}
/* 左側のひし形 */
.c-heading-news::before {
  content: ''; display: block;
  width: 10px; height: 10px;
  background-color: #6a2055; opacity: 0.6;
  transform: rotate(45deg);
  margin-right: 1.5rem; order: -1; flex-shrink: 0;
  border-radius: 0;
}
/* 右側のコンテナ */
.c-heading-news .line {
  order: 10; flex-grow: 1; display: flex; align-items: center;
  height: 10px; min-width: 50px;
}
/* 右側のひし形 */
.c-heading-news .line::before {
  content: ''; display: block;
  width: 10px; height: 10px;
  background-color: #6a2055; opacity: 0.6;
  transform: rotate(45deg);
  margin-left: 1.5rem; margin-right: 1.5rem; flex-shrink: 0;
}
/* 右端へ伸びる線 */
.c-heading-news .line::after {
  content: ''; display: block;
  width: 100%; height: 1px;
  background-color: #ddd; flex-grow: 1;
}

/* --- News List Items (統合版) --- */
.news-item {
  position: relative;
  padding-bottom: 15px;
  border-bottom: 1px solid #ddd;
  transition: all 0.3s ease;
}
/* ホバー時の背景色 */
.news-item:hover {
  background-color: rgba(255, 255, 255, 0.8);
}

/* 走るライン (::before) */
.news-item::before {
  content: '';
  position: absolute;
  bottom: -1px; left: 0;
  width: 0; height: 1px;
  background-color: #6a2055 !important;
  transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 2;
}
.news-item:hover::before {
  width: 100%;
}

/* タイトルリンク */
.news-title-link {
  display: block; width: 100%;
  color: #111 !important; text-decoration: none !important;
  font-family: "Shippori Mincho", "Yu Mincho", "YuMincho", serif;
  font-size: 1.05rem; line-height: 1.6;
  position: relative; padding-right: 2rem;
  transition: color 0.3s ease;
}
/* 矢印 (::after) */
.news-title-link::after {
  content: ''; position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 6px; height: 6px;
  border-top: 1px solid #6a2055; border-right: 1px solid #6a2055;
  opacity: 0.4; transition: all 0.3s ease;
}
/* ホバー時の文字・矢印変化 */
.news-item:hover .news-title-link { color: #6a2055 !important; }
.news-item:hover .news-title-link::after { opacity: 1; right: -5px; }

/* 内部レイアウト */
.news-layout-box {
  display: flex; flex-direction: column; padding: 1.5rem 1rem;
}
.news-meta-group {
  display: flex; align-items: center; width: 100%;
  margin-bottom: 0.8rem; font-family: sans-serif;
}
.soft-new {
  font-size: 0.65rem; color: #fff; background-color: #b71c1c;
  padding: 2px 8px; margin-right: 12px; border-radius: 2px;
  font-weight: bold; letter-spacing: 0.05em;
}
.news-date {
  font-size: 0.9rem; color: #666; letter-spacing: 0.05em;
}

/* --- 「お知らせ一覧」ボタン (統合版) --- */
.text-right a.small {
  display: inline-flex; justify-content: center; align-items: center;
  position: relative;
  color: #6a2055 !important;
  font-family: "Shippori Mincho", "Yu Mincho", "YuMincho", serif;
  font-size: 0.95rem; text-decoration: none !important;
  padding: 0.5rem 1rem; margin-top: 1rem;
  border: none; background: transparent;
  transition: opacity 0.3s ease;
}
/* 走る下線 */
.text-right a.small::before {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 1px;
  background-color: #6a2055 !important;
  transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
/* 矢印 */
.text-right a.small::after {
  content: ''; display: inline-block;
  width: 6px; height: 6px;
  border-top: 1px solid currentColor; border-right: 1px solid currentColor;
  transform: rotate(45deg); margin-left: 15px;
  transition: transform 0.3s ease;
}
.text-right a.small:hover { opacity: 0.8; }
.text-right a.small:hover::before { width: 100%; }
.text-right a.small:hover::after { transform: rotate(45deg) translate(4px, -4px); }


/* ==========================================================================
   6. Catalog Section
   ========================================================================== */
/* スマホ・カタログバナー (Simple Box) */
.catalog-banner-box {
  background: #fff; padding: 50px 30px !important;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  height: 100%;
  display: flex; flex-direction: column; justify-content: center;
  transition: transform 0.3s ease; text-decoration: none;
}
.catalog-banner-box:hover { transform: translateY(-5px); }
.catalog-banner-box h3 {
  font-size: 1.3rem; margin-bottom: 10px; color: #111;
  font-family: "Shippori Mincho", serif;
}
.catalog-banner-box .sub-text {
  font-size: 0.75rem; letter-spacing: 0.1em; color: #6a2055;
  text-transform: uppercase; font-family: sans-serif;
}

/* Catalog Banner (Image Overlay Version) */
.catalog-image-link {
  display: block; position: relative; width: 100%; overflow: hidden;
  text-decoration: none; box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  color: #fff !important;
}
.catalog-image-link .image-wrapper {
  position: relative; width: 100%; padding-top: 60%;
}
.catalog-image-link img {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}
.catalog-image-link .overlay-filter {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.2); transition: background 0.3s ease;
}
.catalog-image-link .text-content {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%); text-align: center;
  width: 100%; z-index: 2;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.catalog-image-link .ja {
  font-size: 1.6rem; margin-bottom: 0.5rem;
  font-family: "Shippori Mincho", serif;
  letter-spacing: 0.1em; font-weight: 500;
}
.catalog-image-link .en {
  font-size: 0.8rem; letter-spacing: 0.15em;
  font-family: sans-serif; opacity: 0.9;
}

/* Hover Actions */
.catalog-image-link:hover { box-shadow: 0 15px 30px rgba(0,0,0,0.2); }
.catalog-image-link:hover img { transform: scale(1.08); }
.catalog-image-link:hover .overlay-filter { background: rgba(0, 0, 0, 0.4); }

/* ==========================================================================
   7. Shop Access Section (Bootstrap Refactored)
   ========================================================================== */

/* セクション全体の余白設定 (Bootstrapの py-5 などでも代用可ですが微調整用に残します) */
.shop-access {
  width: 100%;
  background: #fff;
  padding: 80px 0; /* Bootstrapのspacingと被らないよう少し広めに */
  font-family: "Shippori Mincho", "Yu Mincho", "YuMincho", serif;
  color: #111;
}

/* 画像に影をつける (Bootstrapの .shadow-sm でも可ですが、独自の影設定なら残す) */
.access-visual img {
  /* width: 100%; height: auto; は .img-fluid がやってくれるので削除 */
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

/* --- テキスト装飾 (レイアウトプロパティは削除) --- */
.info-label {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  font-weight: 500;
  text-transform: uppercase;
  /* margin-bottom や display はBootstrapクラス(mb-2, d-block)に移行 */
}

/* 色定義 */
.text-gold { color: #bfa46f; }
.text-pale-gold { color: #cbb486; } /* HTML側でクラス追加しました */

.address-text {
  font-size: 1rem;
  line-height: 1.8;
  font-feature-settings: "palt";
}

/* 区切り線 */
.access-divider {
  border: 0;
  height: 1px;
  background: #e0e0e0;
  /* margin は my-4 に任せるので削除 */
}

.open-time {
  /* color, font-size等は継承またはユーティリティクラスで調整 */
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  font-weight: 500;
}

/* 電話番号リンク */
.tel-link {
  font-size: 2.2rem;
  line-height: 1.2;
  color: #111;
  text-decoration: none;
  letter-spacing: 0.02em;
  font-weight: 400;
  transition: opacity 0.3s;
}
.tel-link:hover {
  opacity: 0.6;
  text-decoration: none;
}


/* --- メールボタン（ここだけは独自デザインなのでCSS必須） --- */
.mail-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 320px; /* ここだけはボタン幅制限のため残す */
  padding: 12px 20px;
  
  /* 枠線設定 */
  border-top: 1px solid #aaa;
  border-left: 1px solid #aaa;
  border-right: 1px solid #aaa;
  border-bottom: 1px solid #aaa;
  
  color: #333;
  text-decoration: none !important;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  position: relative;
  background: #fff;
  transition: color 0.3s ease;
}

/* 走る下線 */
.mail-btn::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: #6a2055;
  transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.mail-btn:hover {
  color: #6a2055;
}
.mail-btn:hover::before {
  width: 100%;
}

/* スマホ調整 */
@media (max-width: 767px) {
  .shop-access {
    padding: 60px 0;
  }
  .tel-link {
    font-size: 1.8rem; /* スマホでは少し小さく */
  }
  .mail-btn {
    max-width: 100%; /* スマホでは幅いっぱい */
  }
}


/* ==========================================================================
   8. Responsive (Global Adjustments)
   ========================================================================== */
@media (max-width: 991px) {
  /* MV Overlay */
  .mv-overlay img { object-position: -120px top; }

  /* Catchphrase (Mobile) */
  .top-catchphrase {
    writing-mode: vertical-rl; -ms-writing-mode: tb-rl; text-orientation: upright;
    position: absolute; top: 50%; left: 5%; right: auto;
    transform: translateY(-50%);
    width: auto; height: 60vh;
    text-align: left; padding: 0;
    font-size: 1.3rem; letter-spacing: 0.35em; line-height: 2.8;
  }
  .top-catchphrase p {
    margin: 0; display: inline-block; padding-left: 10px;
    font-size: inherit;
    animation-name: textFadeSlideRight; 
  }
  @keyframes textFadeSlideRight {
    0% { opacity: 0; transform: translateX(-20px); }
    100% { opacity: 1; transform: translateX(0); }
  }

  /* Arrow */
  .arrow-down { width: 16px; height: 16px; }
  .arrow-wrapper { bottom: 50px; }
}

@media (max-width: 768px) {
  /* Mail Button */
  .mail-btn { max-width: 100%; }
}

@media (max-width: 767px) {
  /* News Heading */
  .c-heading-news { font-size: 1.4rem; margin-bottom: 1.5rem; }
  .c-heading-news::before, .c-heading-news .line::before {
    width: 8px; height: 8px; margin-right: 1rem; margin-left: 1rem;
  }
  
  /* Catalog */
  .catalog-banner-box { margin-top: 40px; padding: 40px 20px !important; }
  .catalog-image-link { margin-top: 40px; }
  .catalog-image-link .image-wrapper { padding-top: 70%; }
}