/*
  style.css - ラーメン店ウェブサイト用
  ベースカラー: 深海ブルー (#0d1b3c)
  アクセントカラー: ゴールド (#ffd700)
*/

/* --- 0. Variables (追加・修正) --- */
:root {
  /* Theme: Ink background, gold emphasis, blue accent */
  --color-main: #0f141a;      /* ink */
  --color-accent: #ffd75a;    /* warm gold for強調テキスト */
  --color-light: #fbf7f0;     /* cream */
  --color-muted: rgba(251, 247, 240, 0.78);
  --color-border: rgba(255, 215, 90, 0.38);
  --color-surface: rgba(255, 255, 255, 0.06);
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.35);

  /* Blue accent */
  --color-blue: #1c3f7a; /* indigo blue */
  --color-blueGlow: rgba(28, 63, 122, 0.32);
}

/* --- 0. General Reset (ナビゲーションの青文字対策) --- */
a {
    text-decoration: none;
    color: inherit;
}

/* --- 1. Base Styles (修正: 変数と文字色の統一) --- */
body {
  margin: 0;
  font-family: 'Noto Sans JP', sans-serif;
  background: radial-gradient(1100px 520px at 12% -10%, rgba(28, 63, 122, 0.35), rgba(15, 20, 26, 0) 60%),
              radial-gradient(850px 520px at 88% 10%, rgba(28, 63, 122, 0.24), rgba(15, 20, 26, 0) 55%),
              radial-gradient(900px 520px at 80% 90%, var(--color-blueGlow), rgba(15, 20, 26, 0) 60%),
              var(--color-main);
  color: var(--color-light);
  line-height: 1.6;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- 2. Header --- */
header {
  background: transparent;
  color: var(--color-light);
  padding: 48px 0 28px;
  text-align: center;
}

header h1 {
  font-family: 'Shippori Mincho', serif;
  font-size: 2.9rem;
  margin: 0 0 10px;
  letter-spacing: 0.06em;
}

header p {
  line-height: 1.6;
  font-size: 1.05rem;
  font-family: 'Shippori Mincho', serif;
  color: var(--color-muted);
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.55);
}

/* --- 3. Sticky Navigation (修正: 変数の適用) --- */
.sticky-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 20, 26, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 10px 0;
  border-bottom: 1px solid rgba(28, 63, 122, 0.35);
  text-align: center;
}
.sticky-nav ul {
  list-style: none;
  margin: 0;
  padding: 0 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.sticky-nav li {
  margin: 0;
  padding: 0;
}
.sticky-nav a {
  color: var(--color-light);
  text-decoration: none;
  margin: 0;
  padding: 8px 12px;
  transition: color 0.3s, border-bottom 0.3s;
  font-weight: bold;
  border-radius: 999px;
  border: 1px solid transparent;
}
.sticky-nav a:hover {
  color: var(--color-light);
  border-color: rgba(28, 63, 122, 0.55);
  background: rgba(28, 63, 122, 0.14);
}

/* --- 4. Hero Section (メインビジュアル) --- */
.hero {
  position: relative;
  padding: 56px 20px 44px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-light);
}

.hero-content {
  max-width: 1000px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-copy {
  font-size: 2.8rem;
  font-family: 'Shippori Mincho', serif;
  /* テキストは金系グラデーション（青は使わない） */
  background: linear-gradient(
    180deg,
    var(--color-light) 0%,
    var(--color-accent) 52%,
    #e6b93a 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 16px rgba(0, 0, 0, 0.75);
  margin: 0 0 10px;
}

.hero-sub-copy {
  font-size: 1rem;
  color: var(--color-muted);
  letter-spacing: 0.08em;
  margin-top: 4px;
}

.hero-gallery {
  margin-top: 28px;
  max-width: 900px;
  width: 100%;
}

.hero-slider {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.65);
}

.hero-slider::before {
  content: '';
  display: block;
  padding-top: 56%; /* 16:9 比率をキープ */
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ★★★ こだわりボタンの新規追記（HTMLに追加された場合用） ★★★ */
.btn-scroll-down {
    display: inline-block;
    color: var(--color-accent); 
    font-size: 1.1rem;
    text-decoration: none;
    font-weight: bold;
    /* 点滅アニメーションを追加 */
    animation: bounce 2s infinite; 
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-5px);
    }
    60% {
        transform: translateY(-3px);
    }
}


/* --- 5. Section Styles (修正: 斜めカット削除) --- */
.section {
  /* ★修正★ 上部のパディングを削除（#conceptで個別調整） */
  padding: 56px 20px;
  max-width: 900px;
  margin: auto;
  background: var(--color-surface);
  /* ★修正★ 斜めカットを削除（四角形に戻す） */
  /* clip-path: polygon(0 5%, 100% 0%, 100% 95%, 0% 100%); */
  margin-bottom: 40px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow-soft);
}

/* --- 5. Section Styles 内の .title の修正 --- */
.title {
  font-size: 1.6rem; 
  font-family: 'Shippori Mincho', serif;
  margin-bottom: 20px;
  color: var(--color-accent);
  text-align: center;
  border-bottom: 1px solid rgba(255, 215, 0, 0.5); 
  padding-bottom: 8px; 
}

/* --- ★ MENU タイトル専用のスタイル (追加) ★ --- */
#main-menu-title {
    font-size: 2.5rem; 
    color: var(--color-light); 
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5); 
    border-bottom: 1px solid var(--color-accent); 
    padding-bottom: 15px;
    margin-bottom: 40px;
}

.section p {
    font-family: 'Shippori Mincho', serif; 
    line-height: 1.8; 
    font-size: 0.9rem;
    color: var(--color-light); 
}

/* HTML側の見出し用クラスに対応させたスタイル */
.section-title {
  font-size: 1.8rem;
  font-family: 'Shippori Mincho', serif;
  margin: 0 0 24px;
  color: var(--color-accent);
  text-align: center;
  border-bottom: 1px solid rgba(28, 63, 122, 0.45);
  padding-bottom: 8px;
}
/* --- 6. Concept Section Styles --- */
.caption-small {
  text-align: center;
  font-size: 0.85rem;
  font-family: 'Shippori Mincho', serif;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 30px;
  padding-top: 15px;
  border-top: 1px dotted rgba(255, 215, 0, 0.3);
}
.gold-text {
  color: var(--color-accent);
  font-weight: bold;
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.55);
}

.concept-content {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 24px;
  align-items: flex-start;
}

.concept-content .caption-small {
  grid-column: 1 / -1;
}

.lead-text {
  font-size: 0.98rem;
  color: var(--color-light);
}

.feature-grid {
  display: grid;
  gap: 16px;
}

.feature-item h3 {
  font-family: 'Shippori Mincho', serif;
  font-size: 1.1rem;
  margin: 0 0 6px;
  color: var(--color-accent);
}

.feature-item p {
  margin: 0;
  font-size: 0.9rem;
}

/* ⭐ メニューサブタイトル (未使用のため削除またはコメントアウト推奨) ⭐ */
/*

.menu-subtitle {
  font-family: 'Shippori Mincho', serif;
  font-size: 1.5rem;
  color: #fff;
  text-align: center;
  margin-top: 30px;
  margin-bottom: 20px;
  background: rgba(255, 215, 0, 0.1);
  padding: 10px;
  border-radius: 4px;
}
*/


/* --- 7. Menu Section (メニュー画像・テキスト重ね合わせ修正) --- */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.category-title {
  font-family: 'Shippori Mincho', serif;
  font-size: 1.2rem;
  letter-spacing: 0.18em;
  text-align: center;
  color: var(--color-muted);
  margin: 0 0 18px;
}

/* HTML側の .menu-card / .menu-img / .menu-info に対応させたスタイル */
.menu-card {
  background: none;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.menu-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}

.menu-card.recommended::before {
  content: 'おすすめ';
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  padding: 4px 10px;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  font-weight: 700;
  font-family: 'Noto Sans JP', sans-serif;
  color: #2a1a00;
  background: linear-gradient(135deg, #ffe89a, #ffd75a);
  border-radius: 999px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.6);
}

.menu-img {
  width: 100%;
  height: 220px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.menu-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0) 100%);
  z-index: 1;
}

.menu-info {
  position: relative;
  z-index: 2;
  padding: 14px 15px 18px;
  text-align: center;
  color: var(--color-light);
}

.menu-info h4 {
  font-family: 'Shippori Mincho', serif;
  font-size: 1.4rem;
  margin: 0 0 4px;
  letter-spacing: 0.08em;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.8);
}

.menu-info .price {
  color: var(--color-accent);
  font-weight: bold;
  font-size: 1.3rem;
  margin: 0;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.8);
}

.menu-info .price span {
  font-size: 0.75em;
  margin-left: 2px;
}

/* ★ 名物拉麺の強調 (追加) ★ */
#main-ramen-grid {
    border: none; 
    box-shadow: none; 
    background: transparent;
    padding: 0px;
    border-radius: 12px; 
    margin-bottom: 40px; 
}


.menu-item {
  background: none; 
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative; 
}

.menu-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(255, 215, 0, 0.4);
}

/* ⭐ メニュー画像ラッパーとグラデーションオーバーレイ ⭐ */
.menu-image-wrapper {
  width: 100%;
  height: 220px; 
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end; 
  padding-bottom: 15px; 
}

.menu-image-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0) 100%);
  z-index: 1;
}

.menu-item .info {
  position: relative; 
  z-index: 2;
  padding: 0 15px;
  text-align: center;
  color: var(--color-light);
}

.menu-item .info h3 {
  font-family: 'Shippori Mincho', serif;
  font-size: 1.6rem; 
  margin-bottom: 5px;
  letter-spacing: 0.5px;
  color: var(--color-light);
  text-shadow: 0 0 5px rgba(0,0,0,0.8);
}

.menu-item .info .price {
  color: var(--color-accent);
  font-weight: bold;
  font-size: 1.4rem; 
  margin-top: 5px;
  text-shadow: 0 0 5px rgba(0,0,0,0.8);
}

/* --- アコーディオン（トッピング・サイド・ドリンク） --- */
.accordion-group {
  margin-top: 32px;
}

.accordion-item + .accordion-item {
  margin-top: 12px;
}

.accordion-trigger {
  width: 100%;
  padding: 12px 16px;
  background-color: transparent;
  color: var(--color-light);
  border: 1px solid rgba(28, 63, 122, 0.55);
  border-radius: 4px;
  cursor: pointer;
  font-family: 'Shippori Mincho', serif;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.accordion-trigger i {
  font-size: 0.9rem;
}

.accordion-trigger:hover {
  background-color: rgba(255, 255, 255, 0.06);
  color: var(--color-light);
}

.accordion-trigger.open {
  background-color: rgba(194, 124, 74, 0.14);
  color: var(--color-light);
  border-color: rgba(194, 124, 74, 0.7);
}

.accordion-content {
  padding: 12px 16px 4px;
}

.accordion-content.hidden {
  display: none;
}

.simple-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.simple-list .list-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.95rem;
}


/* --- 8. Access/Info Section --- */
.access-wrapper {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  margin-top: 16px;
}

.access-info {
  flex: 1 1 45%;
}

.access-info dl {
  margin: 0;
}

.access-info dt {
  font-family: 'Shippori Mincho', serif;
  font-weight: 700;
  color: var(--color-accent);
  margin-top: 12px;
  margin-bottom: 4px;
  border-bottom: 1px dotted rgba(255, 215, 0, 0.4);
  padding-bottom: 4px;
}

.access-info dd {
  margin: 0;
  font-size: 0.95rem;
}

.map-container {
  flex: 1 1 55%;
}

/* --- アクセスセクションの地図コンテナ (既存の map-container) の修正 --- */
.map-container {
  overflow: hidden;
  border-radius: 5px;
  border: 2px solid var(--color-accent); /* ★ ゴールドの枠線で囲む ★ */
  margin-top: 20px;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3); /* ★ 立体的な影 ★ */
}

/* --- iframe自体へのスタイル適用 --- */
.map-container iframe {
  width: 100%; /* 親要素いっぱいに広げる */
  height: 400px; /* 適切な高さを設定 */
  border: none; /* iframe自身のデフォルト枠線を削除 */
}

/* --- モバイル対応 (高さの調整) --- */
@media (max-width: 600px) {
  .map-container iframe {
    height: 300px; /* モバイルでは高さを少し抑える */
  }
}

/* --- 9. Recruit Section (採用情報) --- */
.bg-light {
  background: rgba(255, 255, 255, 0.04);
}

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

.recruit-content p {
  margin-bottom: 20px;
}

.contact-box {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.05);
}

.tel-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  background: var(--color-accent);
  color: #140f0b;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
}

.tel-btn i {
  font-size: 1rem;
}

.tel-btn:hover {
  background: var(--color-light);
  box-shadow: 0 0 12px rgba(194, 124, 74, 0.6);
  transform: translateY(-1px);
}


/* --- 10. Footer and SNS (修正: 変数の適用) --- */
footer {
  background: var(--color-main);
  color: var(--color-light);
  text-align: center;
  padding: 20px 0;
}

.sns-link {
  margin-top: 24px;
  text-align: center;
}

.sns-link a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.3rem;
  color: var(--color-light);
  text-decoration: none;
  font-weight: bold;
  padding: 10px 20px;
  border: 1px solid var(--color-accent);
  border-radius: 5px;
  transition: all 0.3s;
}

.sns-link a:hover {
  background-color: rgba(255, 215, 0, 0.1);
  color: var(--color-accent);
}


/* --- 11. Media Queries (スマートフォン対応) --- */
@media (max-width: 768px) {
  .hero {
    padding: 40px 16px 32px;
  }

  .hero-copy {
    font-size: 2.1rem;
  }

  .hero-content {
    align-items: center;
    text-align: center;
  }

  .section {
    padding: 40px 16px;
  }

  .concept-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .menu-grid {
    grid-template-columns: 1fr;
  }

  .access-wrapper {
    flex-direction: column;
    gap: 16px;
    align-items: center; /* テキスト＋地図の親ごと中央寄せ */
  }

  .access-info {
    text-align: center;
  }

  .access-info dl {
    display: inline-block;
    text-align: left;
  }

  .map-container {
    width: 100%;
    max-width: 520px; /* カード幅の中で中央に収まるように制限 */
  }
}

/* --- 12. トッピング・サイドメニュー用のコンパクトリスト (新規追加) --- */

/* 写真なしのコンパクトなリストのコンテナ (トッピング、サイドメニューの一部で使用) */
.special-items-list-compact {
    display: flex;
    flex-wrap: wrap; 
    justify-content: space-around;
    gap: 10px;
    padding: 10px 0;
    margin-top: 15px; 
}

/* 写真なしの個別のメニューアイテムのデザイン */
.menu-item-simple-compact {
    flex-basis: 45%; 
    text-align: center;
    padding: 8px 10px;
    border: 1px dotted rgba(255, 215, 0, 0.3); 
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.03); 
    transition: background 0.3s;
}

.menu-item-simple-compact:hover {
    background: rgba(255, 215, 0, 0.1);
}

.menu-item-simple-compact h3 {
    font-family: 'Shippori Mincho', serif;
    font-size: 1.2rem;
    color: var(--color-light); 
    margin: 5px 0;
}

.menu-item-simple-compact p {
    font-weight: normal;
    font-size: 1.1rem;
    color: var(--color-accent); 
    margin: 5px 0;
}

/* モバイル対応：縦並びにする */
@media (max-width: 600px) {
    .menu-item-simple-compact {
        flex-basis: 90%; 
    }
}

/* --- ★ プリローダー（ローディング画面）のスタイル ★ --- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-main); /* 深海ブルーの背景 */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* 他のコンテンツの上に表示 */
    opacity: 1;
    visibility: visible;
    transition: opacity 0.8s ease-out, visibility 0.8s ease-out; /* フェードアウトアニメーション */
}

#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    font-family: 'Shippori Mincho', serif; /* 明朝体 */
    font-size: 2.3rem;
    color: var(--color-light); /* ゴールドの文字 */
    display: flex;
    margin-bottom: 20px;
}

.preloader-content .char {
    opacity: 0; /* 最初は透明 */
    transform: translateY(20px); /* 少し下から開始 */
    animation: char-fade-in 0.8s forwards; /* 各文字のアニメーション */
    margin: 0 2px; /* 文字間のスペース */
}

/* 文字が浮かび上がるアニメーション */
@keyframes char-fade-in {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}


/* --- Loading... テキストのスタイル修正 --- */

.loading-text {
    font-family: 'Kaisei Tokumin', serif; 
    font-weight: 700; /* 太字にして視認性を高めます */
    
    font-size: 1.2rem;
    color: var(--color-light); 
    animation: pulse 1.5s infinite alternate; 
}
/* Loading...の点滅アニメーション */
@keyframes pulse {
    0% { opacity: 0.6; }
    100% { opacity: 1; }
}

/* ★★★ こだわりセクションの上部パディングを削除し、直前の要素に密着させる ★★★ */
#concept {
    padding-top: 0; 
    /* セクション間の下マージンも削除/削減 */
    margin-bottom: 20px; 
}

/* --- 5. Section Styles 内の .section の修正 (全セクションに影響) --- */
.section {
    /* 既存の padding: 60px 20px; から上部パディングを削除 */
    padding: 0 20px 60px; /* 上部パディングは #concept で個別調整するため削除 */
    /* ... 他のスタイルは維持 ... */
    margin-bottom: 40px; /* 他のセクションとの間隔は維持 */
}

/* ★★★ 最終調整: h1, h2 のデフォルトマージンをリセット ★★★ */
#concept .title {
    /* 「こだわり」の見出しのh2です */
    margin-top: 0 !important;
}

/* --- SNSセクション専用のスタイル調整 (追記) --- */
#sns {
  text-align: center;
  /* 他のセクションと被らないよう、パディングを少し調整 */
  padding-top: 40px; 
  padding-bottom: 40px;
}

.sns-icons {
  margin-top: 20px;
}

/* SNSアイコンのリンクデザインを調整 */
.sns-icons a {
  display: inline-block;
  font-size: 1.5rem; /* サイズを大きく */
  color: var(--color-light); 
  text-decoration: none;
  font-weight: bold;
  padding: 10px 20px;
  border: 1px solid var(--color-accent);
  border-radius: 5px;
  transition: all 0.3s;
}

.sns-icons a:hover {
  background-color: rgba(255, 215, 0, 0.1);
  color: var(--color-accent);
}

/* アイコンとテキストの間隔調整 */
.sns-icons i {
    margin-right: 8px;
}

@media (max-width: 768px) {
    .sns-icons a {
        font-size: 1.2rem;
        padding: 8px 15px;
    }
}