/*
 * ===================================================
 * Oshiage Souma Theme - 和の暖色系デザイン
 * ===================================================
 */

/* ===== CSS VARIABLES ===== */
:root {
  /* 和の暖色系カラーパレット */
  --sumi: #2c2421;          /* 墨色 - メインダーク */
  --sumi-deep: #1a1512;     /* 深墨 - 最も暗い */
  --sumi-light: #3d3530;    /* 薄墨 */
  --kitsune: #8b6914;       /* 狐色 - アクセント暖色 */
  --kincha: #c9a84c;        /* 金茶 - ゴールドアクセント */
  --shu: #c04b2c;           /* 朱色 - アクセント赤 */
  --shironeri: #f5f0e8;     /* 白練 - 和紙風ベージュ */
  --kinari: #ece5d5;        /* 生成り - セクション背景 */
  --usuzumi: #e8e2d8;       /* 薄墨色 - ボーダー */
  --white: #ffffff;
  --text-dark: #2c2421;
  --text-light: #f5f0e8;
  --text-muted: #8a7e72;

  /* フォント */
  --font-mincho: "Noto Serif JP", "Yu Mincho", "YuMincho", serif;
  --font-gothic: "Noto Sans JP", "Yu Gothic", "YuGothic", sans-serif;
  --font-en: "Cormorant Garamond", "Times New Roman", serif;

  /* スペーシング */
  --section-padding: clamp(80px, 12vw, 160px);
  --container-width: min(90%, 1100px);

  /* トランジション */
  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ===== RESET & BASE ===== */
*, *::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-mincho);
  color: var(--text-dark);
  background: var(--shironeri);
  line-height: 1.9;
  letter-spacing: 0.08em;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: opacity 0.3s var(--ease-out); }
a:hover { opacity: 0.7; }
ul, ol { list-style: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ===== HAMBURGER BUTTON ===== */
.hamburger {
  position: fixed;
  top: 28px; right: 28px;
  z-index: 9999;
  width: 56px; height: 56px;
  background: transparent;
  border: none; cursor: pointer;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 7px;
  transition: all 0.4s var(--ease-in-out);
}

.hamburger__line {
  display: block;
  width: 28px; height: 1.5px;
  background: var(--kincha);
  transition: all 0.4s var(--ease-in-out);
  transform-origin: center;
}

/* ハンバーガー → × 変形 */
.hamburger.is-active .hamburger__line:nth-child(1) {
  transform: translateY(8.5px) rotate(45deg);
}
.hamburger.is-active .hamburger__line:nth-child(2) {
  opacity: 0; transform: scaleX(0);
}
.hamburger.is-active .hamburger__line:nth-child(3) {
  transform: translateY(-8.5px) rotate(-45deg);
}

/* ===== MENU OVERLAY ===== */
.menu-overlay {
  position: fixed; inset: 0;
  z-index: 9990;
  background: rgba(26, 21, 18, 0.97);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: all 0.6s var(--ease-in-out);
}

.menu-overlay.is-open {
  opacity: 1; visibility: visible;
}

.menu-overlay__inner {
  text-align: center;
  transform: translateY(20px);
  transition: transform 0.6s var(--ease-out) 0.1s;
}

.menu-overlay.is-open .menu-overlay__inner {
  transform: translateY(0);
}

.menu-overlay__logo {
  width: 100px; margin: 0 auto 48px;
}

.menu-overlay__logo img {
  width: 100%;
  filter: brightness(0) invert(1);
}

.menu-overlay__list {
  margin-bottom: 48px;
}

.menu-overlay__list li {
  margin-bottom: 8px;
}

.menu-overlay__link {
  display: inline-block;
  font-family: var(--font-mincho);
  font-size: 1.3rem;
  color: var(--text-light);
  letter-spacing: 0.2em;
  padding: 12px 24px;
  transition: color 0.3s var(--ease-out);
}

.menu-overlay__link span {
  display: block;
  font-family: var(--font-en);
  font-size: 0.7rem;
  color: var(--kincha);
  letter-spacing: 0.15em;
  margin-top: 2px;
  text-transform: uppercase;
}

.menu-overlay__link:hover {
  color: var(--kincha);
  opacity: 1;
}

.menu-overlay__info {
  color: var(--text-muted);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
}

.menu-overlay__tel a {
  font-family: var(--font-en);
  font-size: 1.1rem;
  color: var(--kincha);
  letter-spacing: 0.12em;
}

.menu-overlay__address {
  margin-top: 8px;
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  width: 100%; height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  background: var(--sumi-deep);
}

.hero__bg {
  position: absolute; inset: 0;
  background: url('../img/1I8A5199-HDR.jpg') center center / cover no-repeat;
}

.hero__bg-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    180deg,
    rgba(26, 21, 18, 0.55) 0%,
    rgba(26, 21, 18, 0.3) 40%,
    rgba(26, 21, 18, 0.5) 100%
  );
}

.hero__content {
  position: relative; z-index: 2;
  text-align: center;
      transform: translateY(-5vh);
}

.hero__logo {
  width: clamp(140px, 20vw, 220px);
  margin: 0 auto 24px;
  transform: translateY(-30px);
}

.hero__logo img {
  width: 100%;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.hero__tagline {
  font-family: var(--font-mincho);
  font-size: clamp(0.75rem, 1.2vw, 0.95rem);
  color: var(--shironeri);
  letter-spacing: 0.35em;
    transform: translateY(-100px);
  opacity: 0.8;
}

/* スクロールインジケーター */
.hero__scroll {
  position: absolute;
  bottom: 40px; left: 40px;
  z-index: 3;
  display: flex; flex-direction: column;
  align-items: center; gap: 12px;
}

.hero__scroll-text {
  font-family: var(--font-en);
  font-size: 0.65rem;
  color: var(--shironeri);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  writing-mode: vertical-lr;
  opacity: 0.7;
}

.hero__scroll-line {
  display: block;
  width: 1px; height: 50px;
  background: var(--kincha);
  animation: scrollLine 2s var(--ease-in-out) infinite;
}

@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* 縦書き店名 */
.hero__vertical-text {
  position: absolute;
  right: 36px; top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  writing-mode: vertical-rl;
  font-family: var(--font-mincho);
  font-size: 0.8rem;
  color: var(--shironeri);
  letter-spacing: 0.4em;
  opacity: 0.5;
}

/* ===== MAIN CONTENT ===== */
main {
  margin-left: 0;
  background: var(--shironeri);
}

/* ===== SECTION COMMON ===== */
.section {
  padding: var(--section-padding) 0;
  position: relative;
}

.section--dark {
  background: var(--sumi);
  color: var(--text-light);
}

.section--kinari {
  background: var(--kinari);
}

.section__inner {
  width: var(--container-width);
  margin: 0 auto;
}

/* セクションヘッダー（縦書き＋英字） */
.section-header {
  text-align: center;
  margin-bottom: clamp(48px, 8vw, 80px);
}

.section-header__en {
  display: block;
  font-family: var(--font-en);
  font-size: clamp(0.6rem, 1vw, 0.75rem);
  color: var(--kincha);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-header__ja {
  display: block;
  font-family: var(--font-mincho);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  letter-spacing: 0.15em;
  line-height: 1.6;
  font-weight: 400;
}

.section-header__line {
  display: block;
  width: 40px; height: 1px;
  background: var(--kincha);
  margin: 20px auto 0;
}

/* 縦書きセクションタイトル（サイド表示用） */
.section-header--vertical {
  position: absolute;
  left: clamp(20px, 4vw, 60px);
  top: var(--section-padding);
  writing-mode: vertical-rl;
  text-align: left;
}

.section-header--vertical .section-header__ja {
  font-size: clamp(1rem, 1.8vw, 1.4rem);
  letter-spacing: 0.3em;
}

/* セクション本文 */
.section__text {
  font-size: clamp(0.85rem, 1.1vw, 1rem);
  line-height: 2.2;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  max-width: 680px;
  
  margin: 0 auto;
  text-align: center;
  margin-bottom: 48px;
}

.section--dark .section__text {
  color: rgba(245, 240, 232, 0.7);
}

/* ===== IMAGE STYLES ===== */
.section__img-wrap{
  position: relative;
  overflow: hidden;
  margin:0;
}

.section__img-wrap img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}

.section__img-wrap:hover img {
  transform: scale(1.03);
}

/* 丸いディテール画像 */
.section__detail-circle {
  width: clamp(140px, 20vw, 240px);
  height: clamp(140px, 20vw, 240px);
  border-radius: 50%;
  overflow: hidden;
  position: absolute;
  right: -40px; bottom: -40px;
  border: 3px solid var(--shironeri);
  box-shadow: 0 4px 30px rgba(44, 36, 33, 0.15);
}

.section__detail-circle img {
  width: 100%; height: 100%;
  object-fit: cover;
}

/* 2カラムレイアウト */
.section__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.section__grid--reverse {
  direction: rtl;
}

.section__grid--reverse > * {
  direction: ltr;
}

/* ===== MENU / お品書き ===== */
.menu-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.menu-card {
  background: var(--white);
  border: 1px solid var(--usuzumi);
  padding: 32px;
  text-align: center;
  transition: box-shadow 0.3s var(--ease-out);
}

.menu-card:hover {
  box-shadow: 0 8px 32px rgba(44, 36, 33, 0.08);
}

.menu-card__name {
  font-family: var(--font-mincho);
  font-size: 1.1rem;
  letter-spacing: 0.15em;
  margin-bottom: 8px;
}

.menu-card__price {
  font-family: var(--font-en);
  font-size: 0.9rem;
  color: var(--kincha);
  letter-spacing: 0.1em;
}

.menu-card__desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 12px;
  line-height: 1.8;
}

/* ===== 日本酒セクション ===== */
.sake-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.sake-item {
  text-align: center;
  padding: 24px 16px;
}

.sake-item__name {
  font-family: var(--font-mincho);
  font-size: 1rem;
  writing-mode: vertical-rl;
  display: inline-block;
  letter-spacing: 0.3em;
  margin-bottom: 12px;
}

/* ===== STORY セクション ===== */
.story-section {
  background: var(--sumi);
  color: var(--text-light);
  padding: var(--section-padding) 0;
  position: relative;
}

.story-section::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 1px; height: 60px;
  background: var(--kincha);
}

/* ===== ACCESS セクション ===== */
.access-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
}

.access-info__detail {
  font-size: 0.9rem;
  line-height: 2.2;
}

.access-info__detail dt {
  font-weight: 600;
  color: var(--kincha);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-family: var(--font-en);
  margin-bottom: 4px;
}

.access-info__detail dd {
  margin-bottom: 20px;
}

.access-info__map {
  max-width: 90%;
  margin: 0 auto;
  width: 100%;
  aspect-ratio: 4/3;
  border: 1px solid var(--usuzumi);
}

.access-info__map iframe {
  width: 100%; height: 100%;
  border: 0;
}

/* ===== RESERVATION BOX ===== */
.reservation-box {
  text-align: center;
  padding: clamp(48px, 8vw, 80px) 0;
  background: var(--sumi);
  color: var(--text-light);
}

.reservation-box__tel {
  font-family: var(--font-en);
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--kincha);
  letter-spacing: 0.12em;
  margin: 16px 0;
}

.reservation-box__note {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

/* ===== INSTAGRAM SECTION ===== */
.instagram-section {
  padding: clamp(48px, 6vw, 80px) 0;
  text-align: center;
  background: var(--kinari);
}

.instagram-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 4px;
  margin-top: 32px;
}

.instagram-grid img {
  width: 100%; aspect-ratio: 1;
  object-fit: cover;
  transition: opacity 0.3s var(--ease-out);
}

.instagram-grid img:hover {
  opacity: 0.8;
}

/* ===== SCROLL ANIMATIONS (GSAP対応) ===== */
.js-fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.js-fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.js-fade-in-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.js-fade-in-left.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.js-fade-in-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.js-fade-in-right.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--sumi-deep);
  color: var(--text-light);
  padding: clamp(60px, 10vw, 100px) 0 40px;
  text-align: center;
}

.site-footer__logo {
  width: 140px;
  margin: 0 auto 24px;
}

.site-footer__logo img {
  width: 140px !important;
  filter: brightness(0) invert(1);
  opacity: 0.8;
}

.site-footer__name {
  font-family: var(--font-mincho);
  font-size: 1rem;
  letter-spacing: 0.2em;
  margin-bottom: 8px;
}

.site-footer__type {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  margin-bottom: 32px;
}

.site-footer__nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.site-footer__nav a {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  transition: color 0.3s var(--ease-out);
}

.site-footer__nav a:hover {
  color: var(--kincha);
  opacity: 1;
}

.site-footer__info {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 2;
  margin-bottom: 32px;
}

.site-footer__tel {
  font-family: var(--font-en);
  font-size: 1rem;
  color: var(--kincha);
  letter-spacing: 0.1em;
}

.site-footer__copyright {
  font-family: var(--font-en);
  font-size: 0.65rem;
  color: rgba(245, 240, 232, 0.3);
  letter-spacing: 0.15em;
  padding-top: 32px;
  border-top: 1px solid rgba(245, 240, 232, 0.08);
}

/* ===== WP ADMIN BAR FIX ===== */
body.admin-bar .hamburger { top: 60px; }
body.admin-bar .menu-overlay { top: 32px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hamburger {
    top: 16px; right: 16px;
    width: 48px; height: 48px;
  }

  .hamburger__line { width: 24px; }

  .hero__scroll { left: 20px; bottom: 24px; }
  .hero__scroll-line { height: 36px; }
  .hero__vertical-text { right: 16px; font-size: 0.7rem; }

  .hero__logo { width: 250px; transform: translateY(-70px); }
  .hero__tagline { transform: translateY(-140px); }

  .section__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .section__grid--reverse { direction: ltr; }

  .section-header--vertical {
    position: relative;
    left: auto; top: auto;
    writing-mode: horizontal-tb;
    text-align: center;
    margin-bottom: 32px;
  }

  .access-info {
    grid-template-columns: 1fr;
  }

  .section__detail-circle {
    width: 100px; height: 100px;
    right: -20px; bottom: -20px;
  }

  .menu-overlay__link {
    font-size: 1.1rem;
    padding: 10px 20px;
  }

  .site-footer__nav {
    flex-direction: column;
    gap: 12px;
  }

  body.admin-bar .hamburger { top: 48px; }
  body.admin-bar .menu-overlay { top: 46px; }
}

@media (max-width: 480px) {
  :root {
    --section-padding: 60px;
  }

  .hero__logo { width: 250px; }
  .hero__tagline { font-size: 0.7rem; transform: translateY(-140px); }

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

  .sake-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
/* ===== Story Section Additions ===== */
.section__subtitle {
  text-align: center;
  font-family: var(--font-mincho);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 400;
  letter-spacing: 0.15em;
  line-height: 1.8;
  margin-bottom: 20px;
  color: var(--shironeri);
}

.section__quote {
  text-align: center;
  padding: 48px 0;
  margin: 40px 0;
}

.section__quote p {
  font-family: var(--font-mincho);
  font-size: clamp(0.95rem, 1.6vw, 1.15rem);
  letter-spacing: 0.2em;
  line-height: 2;
  color: var(--kincha);
}


/* ===== English Text for Inbound ===== */
.section__text--en {
  font-family: var(--font-en), var(--font-gothic);
  font-size: clamp(0.85rem, 1.4vw, 1rem);
  letter-spacing: 0.05em;
  line-height: 1.8;
  color: var(--sumi-light);
  margin-top: 16px;
  font-style: italic;
}

/* ===== Menu Card Price ===== */
.menu-card__price {
  font-family: var(--font-en);
  font-size: clamp(0.8rem, 1.2vw, 0.95rem);
  color: var(--kincha);
  letter-spacing: 0.1em;
  display: block;
  margin-top: 4px;
}