/*
  modern.css — ゆがわらフェス UI改善オーバーライド
  既存の style2.css の上に読み込んで適用します
*/

/* ==============================
   カスタムプロパティ（変数）
============================== */
:root {
  --primary:       #8B4513;   /* メインブラウン */
  --primary-light: #C8813C;   /* 明るめブラウン */
  --accent:        #D97706;   /* アクセントゴールド */
  --accent-light:  #FDE68A;   /* 淡いゴールド */
  --bg-warm:       #FDF6EE;   /* 温かみのある白 */
  --bg-section:    #FAF0E6;   /* セクション背景 */
  --text-primary:  #3D2000;   /* メインテキスト */
  --text-secondary:#7A5230;   /* サブテキスト */
  --text-muted:    #A08060;   /* 補助テキスト */
  --border:        #E8D5BB;   /* ボーダー色 */
  --shadow-sm:     0 2px 8px rgba(0,0,0,0.08);
  --shadow-md:     0 4px 20px rgba(0,0,0,0.12);
  --shadow-lg:     0 8px 40px rgba(0,0,0,0.16);
  --radius-sm:     6px;
  --radius-md:     12px;
  --radius-lg:     20px;
  --transition:    0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==============================
   ベース・タイポグラフィ
============================== */
html, body {
  font-size: 15px;
}

body {
  background: var(--bg-warm);
  color: var(--text-primary);
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}

/* ==============================
   ヘッダー / ナビゲーション
============================== */

/* PCヘッダー内のボックスを洗練させる */
header #text {
  background: rgba(255, 252, 245, 0.97);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: 40px 44px;
  border: 1px solid rgba(200, 129, 60, 0.15);
}

/* ロゴ */
header #logo {
  margin: 0 auto 28px;
}

/* メニュー全体 */
#menubar nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* メニュー各アイテム */
#menubar nav ul li {
  border-bottom: 1px solid var(--border);
}

#menubar nav ul li:first-child {
  border-top: 1px solid var(--border);
}

#menubar nav a {
  display: block;
  padding: 10px 14px;
  color: var(--text-primary);
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: var(--transition);
  border-left: 3px solid transparent;
}

#menubar nav a:hover {
  background: linear-gradient(90deg, var(--accent-light), transparent);
  border-left-color: var(--accent);
  color: var(--primary);
  letter-spacing: 0.1em;
  padding-left: 18px;
}

/* SNSアイコン */
header ul.icons {
  margin-top: 16px;
  padding: 0;
}

header ul.icons li a {
  opacity: 0.7;
  color: var(--primary);
  transition: var(--transition);
}

header ul.icons li a:hover {
  opacity: 1;
  color: var(--accent);
}

/* ハンバーガーメニュー（モバイル） */
#menubar_hdr {
  background: var(--primary);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  top: 16px;
  left: 16px;
  width: 48px;
  height: 48px;
  padding: 14px 12px;
}

/* モバイルメニュー開閉時 */
.s #menubar.db {
  background: rgba(30, 10, 0, 0.96);
  padding: 80px 30px 40px;
  backdrop-filter: blur(8px);
}

.s #menubar.db a {
  color: #fff;
  font-size: 1.05rem;
  padding: 12px 0;
  letter-spacing: 0.1em;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* ==============================
   main セクション全般
============================== */
main section {
  padding: 3.5rem 6%;
}

/* ==============================
   見出しスタイル
============================== */
main h2 {
  font-family: 'Cinzel', 'Noto Serif JP', serif;
  font-size: 1.7rem;
  letter-spacing: 0.25em;
  color: var(--primary);
  border-bottom: none;
  position: relative;
  padding-bottom: 0.6em;
  margin-bottom: 1.2em;
  text-align: center;
}

main h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-light), var(--accent));
  border-radius: 2px;
}

main h2 span {
  display: block;
  font-size: 0.55em;
  letter-spacing: 0.2em;
  color: var(--text-secondary);
  margin-top: 0.3em;
}

main h3 {
  font-size: 1.05rem;
  color: var(--text-secondary);
  letter-spacing: 0.1em;
  line-height: 1.7;
  font-weight: 400;
}

main h4 {
  font-size: 0.95rem;
  color: var(--text-primary);
}

/* ==============================
   NEWS 見出しリンク
============================== */
.news-heading-link {
  text-decoration: none;
  color: inherit;
  display: inline-block;
  transition: var(--transition);
}

.news-heading-link:hover {
  color: var(--accent);
  opacity: 0.85;
}

/* NEWS プレビュー（index.html 用・最新3件） */
.news-preview {
  width: 90%;
  max-width: 720px;
  margin: 0 auto 1.5rem;
}

.news-preview-list {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin: 0 0 1rem;
  padding: 0;
}

.news-item {
  padding: 1rem 1.4rem;
  border-bottom: 1px solid var(--border);
}

.news-item:last-child {
  border-bottom: none;
}

.news-item dt {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.news-date {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

.news-item dd {
  margin: 0;
  font-size: 0.93rem;
  color: var(--text-primary);
  line-height: 1.6;
}

.news-item dd a {
  margin-left: 8px;
  font-size: 0.85rem;
  color: var(--primary-light);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}

.news-item dd a:hover {
  color: var(--accent);
}

.news-more {
  text-align: right;
  margin: 0;
}

.news-more-btn {
  display: inline-block;
  padding: 8px 22px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff !important;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.news-more-btn:hover {
  opacity: 0.88;
  transform: translateX(3px);
  box-shadow: var(--shadow-md);
}

/* ==============================
   NEWS セクション
============================== */
.news-container {
  width: 90%;
  max-width: 720px;
  margin: 0 auto 1rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: visible;   /* style2.css の overflow-y:scroll を上書き */
  max-height: none;    /* style2.css の max-height:240px を解除 */
  box-shadow: var(--shadow-sm);
}

.news-container + .news-container {
  margin-top: 1rem;
}

.year-toggle {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  padding: 14px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  border: none;
  margin: 0;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.year-toggle:hover {
  opacity: 0.9;
}

.news-group {
  display: none;
  padding: 0;
  margin: 0;
}

.news-group dl {
  padding: 12px 20px 4px;
  margin: 0;
}

.news-group dt {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 16px;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.news-group dd {
  margin-left: 0;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-primary);
}

.news-group dd:last-child {
  border-bottom: none;
}

/* アイコンバッジ */
.icon-bg1 {
  display: inline-block;
  background: var(--accent-light);
  color: var(--primary);
  border: 1px solid var(--accent);
  border-radius: 20px;
  padding: 1px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

/* ハイライト日付 */
.highlight-date {
  font-weight: 600;
  color: var(--primary);
  background: var(--accent-light);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.9em;
  border: none;
}

/* ==============================
   店舗カード (.lis)
============================== */
.lis {
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border);
  overflow: hidden;
  padding: 0;
}

.lis:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.lis figure {
  overflow: hidden;
}

.lis figure img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: var(--transition);
  display: block;
  margin-bottom: 0;
}

.lis figure:first-child {
  display: none; /* ロゴ的な画像を非表示（2枚目の写真を見せる） */
}

.lis figure + figure img {
  width: 100%;
}

.lis .tex {
  padding: 1rem 1.2rem 1.4rem;
}

.lis h4 {
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-weight: 700;
  text-align: left;
}

.lis h4 .price {
  background: var(--accent-light);
  color: var(--primary);
  border: 1px solid var(--accent);
  border-radius: 20px;
  padding: 2px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-left: 8px;
  vertical-align: middle;
}

.lis p {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.lis .hanbai {
  color: var(--primary);
  border-bottom: 1px solid var(--primary-light);
  font-weight: 600;
}

/* ==============================
   フードトラック / マルシェ画像グリッド
============================== */
.list-container {
  gap: 12px;
  justify-content: center;
}

.list {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition);
}

.list:hover {
  box-shadow: var(--shadow-md);
  transform: scale(1.02);
}

/* ==============================
   セクション背景
============================== */
.bg1 {
  background: linear-gradient(135deg, #f5e6d3 0%, #fdf0e0 100%) !important;
}

.bg2 {
  background: linear-gradient(135deg, #fef3c7 0%, #fef9ec 100%) !important;
}

.bg3 {
  background: linear-gradient(135deg, #fefce8 0%, #fffbf0 100%) !important;
}

/* ==============================
   ボタン・リンク
============================== */
section .more {
  width: 140px;
  transition: var(--transition);
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.15));
}

section .more:hover {
  transform: scale(1.06);
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.2));
}

a {
  color: var(--primary);
}

a:hover {
  color: var(--accent);
}

/* ==============================
   フッター
============================== */
footer {
  background: linear-gradient(135deg, #3D1F00 0%, #5B3010 100%);
  color: #EDD9C0;
  padding: 3rem 4%;
}

footer a {
  color: #EDD9C0;
  transition: var(--transition);
}

footer a:hover {
  color: #FFD580;
}

footer ul li {
  font-size: 0.9rem;
  line-height: 2;
}

footer .logo img {
  filter: brightness(0) invert(1) opacity(0.85);
  max-width: 160px;
}

.footer-content {
  margin-top: 0;
  padding-top: 0;
  padding-bottom: 2rem;
}

.footer-content .copy {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  margin-top: 1.5rem;
}

.footer-content .sns-box a {
  width: 40px;
  transition: var(--transition);
}

.footer-content .sns-box a:hover {
  transform: scale(1.15);
}

.icon-footer02 {
  fill: #FFD580 !important;
}

/* ==============================
   ページトップボタン
============================== */
.pagetop a {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border-radius: 50%;
}

.pagetop a:hover {
  background: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* ==============================
   スクロールダウン矢印
============================== */
.arrow::before,
.arrow::after {
  background: var(--primary);
}

.text {
  color: var(--text-muted);
}

/* ==============================
   「ゆがわらフェスについて」セクション
============================== */
#about section.up {
  background: #fff;
  border-radius: var(--radius-lg);
  margin: 1.5rem 2%;
  padding: 3rem 5%;
  box-shadow: var(--shadow-sm);
}

#about section.up h1 {
  font-size: 1.1rem;
  color: var(--primary);
  line-height: 1.8;
  font-weight: 600;
}

#about section.up p {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-primary);
  font-size: 0.95rem;
}

/* ==============================
   ゆっふるセクション
============================== */
#yuhuru {
  text-align: center;
}

#yuhuru h4 img {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  max-width: min(560px, 100%);
  margin: 1rem auto;
  display: block;
}

#yuhuru h3 {
  font-size: 0.95rem;
  max-width: 620px;
  margin: 0 auto 1rem;
  text-align: left;
}

/* ==============================
   インスタグラムバナー
============================== */
.m-top {
  margin-top: 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.m-top:hover {
  box-shadow: var(--shadow-md);
  opacity: 0.92;
}

/* ==============================
   回転アニメーションボックス
============================== */
.box {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

/* ==============================
   レスポンシブ（モバイル最適化）
============================== */
@media screen and (max-width: 999px) {

  main section {
    padding: 2.5rem 4%;
  }

  main h2 {
    font-size: 1.4rem;
    letter-spacing: 0.15em;
  }

  .news-container {
    width: 96%;
  }

  #about section.up {
    margin: 0.8rem 0;
    padding: 2rem 4%;
    border-radius: 0;
    box-shadow: none;
    border-top: 2px solid var(--border);
  }

  .lis figure img {
    height: 180px;
  }

  footer {
    padding: 2.5rem 5%;
  }

}

@media screen and (max-width: 599px) {

  main h2 {
    font-size: 1.2rem;
    letter-spacing: 0.1em;
  }

  .lis figure img {
    height: 160px;
  }

  .year-toggle {
    font-size: 0.88rem;
    padding: 12px 16px;
  }

}

/* ==============================
   PCレイアウト強化
============================== */
@media screen and (min-width: 1000px) {

  header #text {
    padding: 36px 44px;
    background: rgba(255, 252, 245, 0.97);
    border-radius: 16px;
    position: static !important;
    width: auto !important;
  }

  .lis-side-title .lis-menu {
    gap: 1.5rem;
  }

  .list-container {
    gap: 16px;
  }

}
