@import url('https://fonts.googleapis.com/css2?family=Shippori+Mincho:wght@500;700&family=Noto+Sans+JP:wght@400;500;700&display=swap');

/* ===== 変数 ===== */
:root {
  --color-bg: #F6F1E7;
  --color-bg-soft: #EFE6D2;
  --color-text: #292620;
  --color-text-soft: #6b6152;
  --color-wood: #6B4932;
  --color-soy: #C9A86A;
  --color-green: #58634A;
  --color-cta: #9B7841;
  --color-line: #ddd0b8;
  --color-cream: #FFFDF8;
  --font-mincho: "Shippori Mincho", "游明朝", "YuMincho", serif;
  --font-sans: "Noto Sans JP", "游ゴシック", "Yu Gothic", sans-serif;
  --max-width: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3 {
  font-family: var(--font-mincho);
  font-weight: 700;
  line-height: 1.5;
  margin: 0;
}

p {
  margin: 0 0 1em;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== ヘッダー ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: rgba(250, 246, 239, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--color-line);
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-logo-text {
  font-family: var(--font-mincho);
  font-size: 17px;
  letter-spacing: 0.08em;
  color: var(--color-text);
}

.site-nav {
  display: flex;
  gap: 28px;
  font-size: 14px;
  letter-spacing: 0.05em;
}

.site-nav a {
  position: relative;
  padding: 4px 0;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: var(--color-wood);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.site-nav a:hover::after {
  transform: scaleX(1);
}

.header-actions {
  display: none;
  align-items: center;
  gap: 10px;
}

.call-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-cta);
  flex-shrink: 0;
  transition: background 0.25s ease;
}

.call-btn img {
  width: 19px;
  height: 19px;
  display: block;
}

.call-btn:hover {
  background: var(--color-green);
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  position: relative;
  z-index: 101;
}

.hamburger span {
  display: block;
  height: 1px;
  background: var(--color-text);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.is-open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.hamburger.is-open span:nth-child(2) {
  opacity: 0;
}
.hamburger.is-open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 780px) {
  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 72vw;
    max-width: 320px;
    background: var(--color-cream);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 32px;
    padding: 40px;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    box-shadow: -6px 0 24px rgba(0,0,0,0.08);
  }
  .site-nav.is-open {
    transform: translateX(0);
  }
  .hamburger {
    display: flex;
  }
  .header-actions {
    display: flex;
  }
}

/* ===== ヒーロー（ファーストビュー） ===== */
.hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  color: #fff;
}

.hero-placeholder {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #4a5a68 0%, #6b6152 45%, #8a6a45 100%);
}

.hero-placeholder::after {
  content: "映像:準備中 — 大豆・豆乳・豆腐・湯葉・油揚げが生まれる朝の工房風景（撮影後 video/fv.mp4 に差し替え）";
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  font-size: 11px;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-video.is-ready {
  opacity: 1;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.55) 100%);
  z-index: 1;
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding: 0 24px 72px;
  width: 100%;
  opacity: 0;
  transform: translateY(14px);
  animation: heroFadeIn 1.2s ease 1.8s forwards;
}

@keyframes heroFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-copy-small {
  font-family: var(--font-mincho);
  font-size: 13px;
  letter-spacing: 0.3em;
  margin-bottom: 14px;
  opacity: 0.9;
}

.hero-copy-main {
  font-size: clamp(28px, 6vw, 46px);
  color: #fff;
  margin-bottom: 16px;
}

.hero-copy-sub {
  font-size: 14px;
  max-width: 420px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 28px;
}

/* ===== ボタン ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  font-size: 14px;
  letter-spacing: 0.08em;
  border-radius: 2px;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn-outline {
  border: 1px solid rgba(255,255,255,0.75);
  color: #fff;
}

.btn-outline:hover {
  background: #fff;
  color: var(--color-text);
}

.btn-primary {
  background: var(--color-cta);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-green);
}

/* ===== セクション共通 ===== */
.section {
  padding: 96px 0;
}

@media (max-width: 1024px) {
  .section {
    padding: 72px 0;
  }
}

@media (max-width: 780px) {
  .section {
    padding: 56px 0;
  }
}

.section-soft {
  background: var(--color-bg-soft);
}

.section-head {
  margin-bottom: 48px;
  text-align: center;
}

.section-eyebrow {
  display: block;
  font-size: 12px;
  letter-spacing: 0.25em;
  color: var(--color-soy);
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(22px, 4vw, 30px);
  color: var(--color-text);
}

.section-lead {
  margin-top: 18px;
  color: var(--color-text-soft);
  font-size: 15px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== スクロール演出（気づくかどうか程度に、写真→見出し→本文の順） =====
   prefers-reduced-motion: reduce のユーザーには適用しない（常に表示状態） */
@media (prefers-reduced-motion: no-preference) {
  .section .photo-ph,
  .section .section-eyebrow,
  .section .section-title,
  .section .section-lead {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.9s ease, transform 0.9s ease;
  }
  .section.in .photo-ph { transition-delay: 0s; }
  .section.in .section-eyebrow { transition-delay: 0.1s; }
  .section.in .section-title { transition-delay: 0.2s; }
  .section.in .section-lead { transition-delay: 0.32s; }

  .section.in .photo-ph,
  .section.in .section-eyebrow,
  .section.in .section-title,
  .section.in .section-lead {
    opacity: 1;
    transform: none;
  }
}

/* ===== 写真プレースホルダー ===== */
.photo-ph {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: repeating-linear-gradient(135deg, #ece3d1, #ece3d1 10px, #e4d9c2 10px, #e4d9c2 20px);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-line);
  overflow: hidden;
}

.photo-ph span {
  font-size: 12px;
  color: var(--color-text-soft);
  background: rgba(255,255,255,0.75);
  padding: 6px 12px;
  text-align: center;
}

.photo-ph.tall {
  aspect-ratio: 3 / 4;
}

.photo-ph.wide {
  aspect-ratio: 16 / 9;
}

@media (max-width: 780px) {
  /* 横長写真は、狭い画面では極端に帯状になって被写体が小さくなるため、
     スマホでは少し縦に長くして見せ場を確保する。 */
  .photo-ph.wide {
    aspect-ratio: 4 / 3;
  }
}

.photo-ph img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

@media (hover: hover) {
  .photo-ph.has-photo:hover img {
    transform: scale(1.035);
  }
}

.photo-ph.has-photo {
  background: none;
  border: none;
}

/* 差し替え用の仮画像であることが分かるタグ。実写に差し替えたら削除してください */
.photo-tag {
  position: absolute;
  z-index: 2;
  bottom: 8px;
  right: 8px;
  font-size: 10px;
  letter-spacing: 0.05em;
  color: #fff;
  background: rgba(0,0,0,0.5);
  padding: 3px 9px;
  border-radius: 2px;
}

/* ===== 実績バッジ ===== */
.badge-row {
  display: flex;
  justify-content: center;
}

.badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 22px 0;
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
}

.badge-title {
  font-family: var(--font-mincho);
  font-size: 19px;
  color: var(--color-text);
  letter-spacing: 0.1em;
}

.badge-sub {
  font-size: 12px;
  color: var(--color-text-soft);
  letter-spacing: 0.05em;
}

/* ===== グリッド ===== */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

@media (max-width: 780px) {
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  /* 1列になったとき、写真を先に見せてから読ませる。
     デスクトップでは左右どちらの順でも、スマホでは常に写真が先。 */
  .grid-2 .photo-ph {
    order: -1;
  }
}

.gallery-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.gallery-3 p {
  grid-column: 1 / -1;
}

@media (max-width: 780px) {
  .gallery-3 {
    grid-template-columns: 1fr;
  }
}

.card-title {
  font-family: var(--font-mincho);
  font-size: 20px;
  color: var(--color-text);
  margin-bottom: 12px;
}

.card-price {
  font-size: 13px;
  color: var(--color-wood);
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.shop-status {
  margin-top: 20px;
  padding: 14px 18px;
  background: var(--color-bg-soft);
  border-left: 3px solid var(--color-cta);
  font-size: 13px;
  color: var(--color-text-soft);
  line-height: 1.8;
}

.mini-video-wrap {
  max-width: 420px;
  margin: 0 auto;
}

.mini-video {
  width: 100%;
  display: block;
  border-radius: 6px;
  box-shadow: 0 6px 24px rgba(41,38,32,0.14);
}

.mini-video-caption {
  text-align: center;
  font-size: 12px;
  color: var(--color-text-soft);
  margin: 12px 0 0;
}

/* ===== 自動翻訳ウィジェット ===== */
.site-header-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.lang-switch-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-switch {
  display: flex;
  align-items: center;
}

.lang-reset {
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--color-text-soft);
  border: 1px solid var(--color-line);
  border-radius: 3px;
  padding: 3px 6px;
}

.lang-reset:hover {
  color: var(--color-text);
  border-color: var(--color-wood);
}

#google_translate_element .goog-te-gadget {
  font-family: var(--font-sans) !important;
  font-size: 0 !important;
  color: var(--color-text-soft) !important;
}

#google_translate_element .goog-te-gadget .goog-te-combo {
  font-family: var(--font-sans) !important;
  font-size: 12px !important;
  padding: 4px 8px;
  border: 1px solid var(--color-line);
  border-radius: 3px;
  background: var(--color-cream);
  color: var(--color-text);
  cursor: pointer;
}

#google_translate_element .goog-te-gadget-simple {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  font-size: 13px !important;
  letter-spacing: 0.05em;
}

#google_translate_element .goog-te-gadget-simple span,
#google_translate_element .goog-te-gadget-simple a {
  color: var(--color-text) !important;
  text-decoration: none !important;
}

#google_translate_element .goog-te-gadget-icon {
  display: none !important;
}

.goog-te-banner-frame,
iframe[id$=".container"] {
  display: none !important;
}

body {
  top: 0 !important;
}

.goog-tooltip,
.goog-tooltip:hover {
  display: none !important;
}

.goog-text-highlight {
  background: none !important;
  box-shadow: none !important;
}

/* ===== 営業案内・共通情報テーブル ===== */
.info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.info-table th,
.info-table td {
  text-align: left;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-line);
  vertical-align: top;
}

.info-table th {
  width: 120px;
  color: var(--color-text-soft);
  font-weight: 500;
  letter-spacing: 0.05em;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
}

/* ===== ページヘッダー（下層ページ） ===== */
.page-hero {
  padding: 160px 0 64px;
  background: var(--color-bg-soft);
  text-align: center;
}

.page-hero-eyebrow {
  display: block;
  font-size: 12px;
  letter-spacing: 0.25em;
  color: var(--color-soy);
  margin-bottom: 14px;
}

.page-hero-title {
  font-size: clamp(26px, 5vw, 38px);
  color: var(--color-text);
}

/* ===== フッター ===== */
.site-footer {
  background: var(--color-text);
  color: rgba(255,255,255,0.85);
  padding: 64px 0 32px;
  font-size: 13px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer-logo-text {
  font-family: var(--font-mincho);
  font-size: 16px;
  letter-spacing: 0.08em;
  color: #fff;
}

.footer-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-info dl {
  display: grid;
  grid-template-columns: 84px 1fr;
  row-gap: 6px;
}

.footer-info dt {
  color: rgba(255,255,255,0.55);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 24px;
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  text-align: center;
}

/* ===== 汎用 ===== */
.mt-lg {
  margin-top: 64px;
}

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

/* ===== 営業カレンダー ===== */
.cal-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-bottom: 28px;
}

.cal-nav-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--color-line);
  background: var(--color-cream);
  color: var(--color-text);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.cal-nav-btn:hover {
  background: var(--color-bg-soft);
  border-color: var(--color-wood);
}

.cal-month-label {
  font-family: var(--font-mincho);
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 700;
  min-width: 9em;
  text-align: center;
}

.cal-today-link {
  display: block;
  text-align: center;
  font-size: 13px;
  color: var(--color-text-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
  margin: -12px 0 28px;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  max-width: 720px;
  margin: 0 auto;
}

.cal-weekday {
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--color-text-soft);
  padding-bottom: 8px;
}

.cal-weekday.is-sun { color: #a85a41; }
.cal-weekday.is-sat { color: var(--color-green); }

.cal-cell {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 6px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-line);
}

.cal-cell.is-empty {
  border: none;
  background: none;
}

.cal-cell.is-closed {
  background: #E7E2DA;
  color: var(--color-text-soft);
}

.cal-cell.is-reserve {
  background: rgba(155, 120, 65, 0.24);
}

.cal-cell.is-normal {
  background: rgba(88, 99, 74, 0.22);
}

.cal-cell.is-today {
  border: 2px solid var(--color-wood);
}

.cal-date {
  font-family: var(--font-mincho);
  font-size: 15px;
  font-weight: 700;
}

.cal-cell-label {
  margin-top: auto;
  font-size: 10px;
  line-height: 1.3;
  color: var(--color-text-soft);
}

.cal-tofu-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-soy);
  color: #fff;
  font-size: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  border: 1.5px solid var(--color-cream);
}

.cal-legend {
  max-width: 720px;
  margin: 36px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  justify-content: center;
  font-size: 13px;
  color: var(--color-text-soft);
}

.cal-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cal-legend-swatch {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1px solid var(--color-line);
  flex: none;
}

.cal-legend-swatch.is-closed { background: #E7E2DA; }
.cal-legend-swatch.is-reserve { background: rgba(155, 120, 65, 0.24); }
.cal-legend-swatch.is-normal { background: rgba(88, 99, 74, 0.22); }

.cal-legend-swatch.is-tofu {
  border: none;
  background: var(--color-soy);
  border-radius: 50%;
  width: 16px;
  height: 16px;
}

.cal-note {
  max-width: 640px;
  margin: 24px auto 0;
  font-size: 12px;
  color: var(--color-text-soft);
  text-align: center;
  line-height: 1.8;
}

@media (max-width: 560px) {
  .cal-grid { gap: 4px; }
  .cal-cell { padding: 4px; border-radius: 4px; }
  .cal-date { font-size: 12px; }
  .cal-cell-label { font-size: 8px; }
  .cal-tofu-badge { width: 14px; height: 14px; font-size: 7px; top: 3px; right: 3px; }
}
