/* ひなた珈琲 — shared styles beyond Tailwind utilities (手作り・スクラップブック テイスト) */

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", sans-serif;
}

.font-heading {
  font-family: "Yomogi", "Zen Kaku Gothic New", sans-serif;
}

.font-script {
  font-family: "Kaisei Decol", "Yomogi", serif;
}

section[id] {
  scroll-margin-top: 92px;
}

/* Scroll reveal (same behaviour as other demo sites) */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

#site-header {
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #FBF4E7;
}
::-webkit-scrollbar-thumb {
  background: #E9C158;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #C96A44;
}

.spinner {
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 9999px;
  width: 16px;
  height: 16px;
  animation: spin 0.7s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

#mobile-nav {
  transition: max-height 0.4s ease, opacity 0.3s ease;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
}
#mobile-nav.open {
  max-height: 700px;
  opacity: 1;
}

/* ============ 紙のざらつき / 生成りの粒感 ============ */
.grain-bg {
  background-color: #FBF4E7;
  background-image:
    radial-gradient(rgba(58, 47, 35, 0.05) 1px, transparent 1px),
    radial-gradient(rgba(201, 106, 68, 0.04) 1px, transparent 1px);
  background-size: 3px 3px, 7px 7px;
  background-position: 0 0, 1.5px 3.5px;
}

/* ============ ポラロイド風フォト ============ */
.polaroid {
  display: inline-block;
  background: #FFFDF9;
  padding: 0.6rem 0.6rem 1.6rem;
  box-shadow: 0 14px 28px -12px rgba(30, 24, 17, 0.35), 0 2px 6px rgba(30, 24, 17, 0.12);
  transform: rotate(var(--rot, 0deg));
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease, z-index 0s;
  position: relative;
}
.polaroid:hover {
  transform: rotate(0deg) scale(1.045);
  box-shadow: 0 22px 40px -14px rgba(30, 24, 17, 0.4), 0 4px 10px rgba(30, 24, 17, 0.16);
  z-index: 20;
}
.polaroid img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.polaroid figcaption {
  display: block;
  text-align: center;
  margin-top: 0.55rem;
  color: #4F4130;
  font-size: 0.95rem;
  line-height: 1.2;
}

/* 和紙テープ（マスキングテープ） */
.tape {
  position: absolute;
  width: 74px;
  height: 24px;
  top: -12px;
  left: 50%;
  transform: translateX(-50%) rotate(-4deg);
  background: linear-gradient(120deg, rgba(198, 143, 38, 0.62), rgba(198, 143, 38, 0.42));
  box-shadow: 0 2px 4px rgba(30, 24, 17, 0.18);
  z-index: 5;
}
.tape::before,
.tape::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 8px;
  background: rgba(251, 244, 231, 0.35);
}
.tape::before { left: 0; }
.tape::after { right: 0; }
.tape-sage {
  background: linear-gradient(120deg, rgba(113, 145, 78, 0.6), rgba(113, 145, 78, 0.4));
}

/* 手描き風の下線 */
.brush-underline {
  position: relative;
  display: inline-block;
}
.brush-underline::after {
  content: "";
  position: absolute;
  left: -3%;
  right: -3%;
  bottom: 0.02em;
  height: 0.34em;
  background: rgba(230, 181, 61, 0.45);
  border-radius: 3px 9px 4px 10px / 5px 4px 9px 3px;
  z-index: -1;
}

/* ============ 付箋・ステッカー ============ */
.sticker-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #FFFDF9;
  border: 1.5px dashed #DD7F58;
  border-radius: 9999px;
  padding: 0.45rem 1rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #8A4228;
  box-shadow: 0 6px 14px -8px rgba(30, 24, 17, 0.35);
}

/* ============ OPENバッジ ============ */
.open-badge {
  filter: drop-shadow(0 10px 16px rgba(30, 24, 17, 0.3));
  animation: badge-sway 5s ease-in-out infinite;
  transform-origin: 50% 50%;
}
@keyframes badge-sway {
  0%, 100% { transform: rotate(-9deg); }
  50% { transform: rotate(-13deg); }
}

/* ============ 黒板メニュー ============ */
.blackboard {
  position: relative;
  background: radial-gradient(140% 120% at 15% 0%, #22331d 0%, #172218 55%, #120D08 100%);
  border-radius: 1.5rem;
  box-shadow: inset 0 0 0 8px rgba(251, 244, 231, 0.05), 0 24px 45px -20px rgba(20, 16, 11, 0.6);
}
.blackboard::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 1.5rem;
  background-image: radial-gradient(rgba(251, 244, 231, 0.05) 1px, transparent 1px);
  background-size: 4px 4px;
  pointer-events: none;
}
.menu-row {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}
.menu-leader {
  flex: 1 1 auto;
  border-bottom: 2px dotted rgba(251, 244, 231, 0.3);
  margin-bottom: 0.35rem;
  min-width: 1rem;
}

/* ============ 罫線ノート風（沿革・会社概要） ============ */
.notebook-card {
  position: relative;
  background: repeating-linear-gradient(#FFFDF9 0, #FFFDF9 42px, rgba(58, 47, 35, 0.09) 43px);
  border: 1px solid rgba(58, 47, 35, 0.12);
  box-shadow: 0 18px 34px -20px rgba(30, 24, 17, 0.35);
}
.notebook-card::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 2.75rem;
  width: 0;
  border-left: 2px solid rgba(201, 106, 68, 0.35);
}

/* ============ ぎざぎざ（破り紙）区切り ============ */
.scallop-divider {
  height: 2.25rem;
  background-image: radial-gradient(circle at 50% 100%, transparent 0, transparent 60%, currentColor 61%);
  background-size: 40px 20px;
  background-position: 0 0;
}

/* ============ 旅の点線ルート（焙煎ジャーニー / 沿革タイムライン） ============ */
.journey-line {
  position: relative;
}
.journey-line::before {
  content: "";
  position: absolute;
  top: 26px;
  left: 26px;
  right: 26px;
  border-top: 3px dashed rgba(201, 106, 68, 0.35);
  z-index: 0;
}
@media (max-width: 767px) {
  .journey-line::before {
    top: 0;
    bottom: 0;
    left: 26px;
    right: auto;
    width: 0;
    border-top: none;
    border-left: 3px dashed rgba(201, 106, 68, 0.35);
  }
}
.journey-step {
  position: relative;
  z-index: 1;
}

/* ============ チケット風カード（アクセス） ============ */
.ticket-card {
  position: relative;
  background: #FFFDF9;
  border: 2px dashed rgba(201, 106, 68, 0.45);
}
.ticket-card::before,
.ticket-card::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 28px;
  height: 28px;
  background: #F3E6CC;
  border-radius: 9999px;
  transform: translateY(-50%);
}
.ticket-card::before { left: -14px; }
.ticket-card::after { right: -14px; }

/* ============ 切手風スタンプ（お問い合わせ） ============ */
.stamp {
  border: 2px dashed rgba(113, 145, 78, 0.55);
  transform: rotate(6deg);
}

.card-lift {
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.card-lift:hover {
  transform: translateY(-6px) rotate(0deg);
}
