/* ===========================================================
   Owlync LPテンプレート【竹】 — styles.css
   Mobile-first. Tablet: @media (min-width: 768px) / PC: 1024px
   演出: フェード + 行リベール + パララックス + ピン + カウント
   ベースは梅と共通。竹専用の追加はファイル末尾。
   =========================================================== */

/* -----------------------------------------------------------
   0. Variables — ★案件ごとにここを変えるだけで店の色になる
   ----------------------------------------------------------- */
:root {
  --color-bg:      #F8F4EC;   /* ベース(アイボリー) */
  --color-white:   #FFFFFF;
  --color-accent:  #7A5C3E;   /* 主役色(珈琲ブラウン) ★店に合わせて変更 */
  --color-accent-d:#5F462E;
  --color-sub:     #A8B89C;   /* 差し色(グリーン) */
  --color-text:    #3A3A3A;
  --color-muted:   #6B6B6B;
  --color-line:    #E2D9C7;

  --font-sans:  "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  --font-serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;

  --radius:    16px;
  --radius-lg: 24px;
  --shadow-card: 0 8px 28px rgba(60, 42, 20, 0.08);

  --content-max: 1120px;
  --content-narrow: 760px;
  --header-h: 64px;
}
@media (min-width: 1024px) { :root { --header-h: 80px; } }

/* -----------------------------------------------------------
   1. Reset & base
   ----------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.9;
  overflow-wrap: anywhere;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p, ul, dl { margin: 0; }
ul { padding: 0; list-style: none; }

.container { max-width: var(--content-max); margin-inline: auto; padding-inline: 20px; }
.container.narrow { max-width: var(--content-narrow); }
.section { padding-block: 72px; }
.section-tight { padding-block: 40px; }
@media (min-width: 1024px) {
  .container { padding-inline: 32px; }
  .section { padding-block: 120px; }
  .section-tight { padding-block: 64px; }
}

.sp-only { display: inline; }
@media (min-width: 768px) { .sp-only { display: none; } }

/* -----------------------------------------------------------
   2. 演出(レシピA: フェード&スライドイン)
   JS起動時のみ .js が付く → JSが死んでも隠れっぱなしにならない
   ----------------------------------------------------------- */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s ease, transform .8s ease;
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* reduced-motion: 演出を全て止める(レシピR) */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

/* -----------------------------------------------------------
   3. Header
   ----------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(248, 244, 236, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--color-line); }

.header-inner {
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: 20px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 20px;
  text-decoration: none;
  letter-spacing: 0.04em;
}

.global-nav { display: none; }
@media (min-width: 768px) {
  .global-nav { display: flex; gap: 28px; }
  .global-nav a {
    font-size: 14px;
    text-decoration: none;
    letter-spacing: 0.06em;
  }
  .global-nav a:hover { color: var(--color-accent); }
}

.header-cta {
  font-size: 13px;
  text-decoration: none;
  background: var(--color-accent);
  color: var(--color-white);
  padding: 10px 18px;
  border-radius: 999px;
  transition: background .3s ease;
}
.header-cta:hover { background: var(--color-accent-d); }

/* -----------------------------------------------------------
   4. Hero
   ----------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 92dvh;
  display: grid;
  place-items: center;
  padding: calc(var(--header-h) + 40px) 20px 64px;
  overflow: hidden;
}

.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
}
.blob-1 {
  width: 420px; height: 420px;
  background: var(--color-sub);
  top: -120px; right: -140px;
}
.blob-2 {
  width: 360px; height: 360px;
  background: #E8DBC8;
  bottom: -100px; left: -120px;
}

.hero-inner { position: relative; text-align: center; }

.hero-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(30px, 7.5vw, 64px);
  line-height: 1.55;
  letter-spacing: 0.05em;
}

.hero-lead {
  margin-top: 20px;
  font-size: clamp(14px, 3.6vw, 17px);
  color: var(--color-muted);
}

.hero-actions {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 999px;
  font-size: 15px;
  text-decoration: none;
  letter-spacing: 0.06em;
  transition: background .3s ease, color .3s ease, transform .3s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--color-accent); color: var(--color-white); }
.btn-primary:hover { background: var(--color-accent-d); }
.btn-ghost { border: 1px solid var(--color-accent); color: var(--color-accent); }
.btn-ghost:hover { background: var(--color-accent); color: var(--color-white); }

.scroll-hint {
  position: absolute;
  bottom: 20px; left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--color-muted);
  display: grid;
  justify-items: center;
  gap: 8px;
}
.scroll-hint span {
  width: 1px; height: 36px;
  background: var(--color-muted);
  animation: hintDrop 2s ease-in-out infinite;
  transform-origin: top;
}
@keyframes hintDrop {
  0% { transform: scaleY(0); }
  50% { transform: scaleY(1); }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* -----------------------------------------------------------
   5. Sections
   ----------------------------------------------------------- */
.section-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(24px, 5.5vw, 36px);
  letter-spacing: 0.08em;
  margin-bottom: 40px;
  display: grid;
  gap: 6px;
}
.section-title .en {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.28em;
  color: var(--color-accent);
}
@media (min-width: 1024px) { .section-title { margin-bottom: 56px; } }

/* 想い */
.intro-text {
  font-family: var(--font-serif);
  font-size: clamp(16px, 4vw, 20px);
  line-height: 2.4;
  text-align: center;
}

/* 数字 */
.stats-list {
  display: flex;
  justify-content: center;
  gap: 28px;
}
.stats-list li {
  text-align: center;
  display: grid;
  gap: 2px;
}
.stats-list strong {
  font-family: var(--font-serif);
  font-size: clamp(36px, 9vw, 56px);
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1.2;
}
.stats-list span { font-size: 12px; color: var(--color-muted); }
@media (min-width: 768px) { .stats-list { gap: 80px; } .stats-list span { font-size: 14px; } }

/* こだわり */
.card-grid { display: grid; gap: 28px; }
@media (min-width: 768px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.card h3 {
  font-family: var(--font-serif);
  font-size: 18px;
  padding: 20px 20px 0;
}
.card p { padding: 10px 20px 24px; font-size: 14px; color: var(--color-muted); }

.card-thumb, .menu-thumb, .shop-photo, .map-placeholder { background: var(--color-line); }
.card-thumb { aspect-ratio: 4 / 3; }

/* 写真プレースホルダ(実写に差し替えるまでの仮) */
.thumb-a { background: linear-gradient(135deg, #C9B091, #7A5C3E); }
.thumb-b { background: linear-gradient(135deg, #E8DBC8, #A8845C); }
.thumb-c { background: linear-gradient(135deg, #DDE5D4, #A8B89C); }
.thumb-d { background: linear-gradient(135deg, #F2EADA, #D9BC8F); }
.thumb-e { background: linear-gradient(135deg, #EAD9C4, #B98F5E); }
.thumb-f { background: linear-gradient(135deg, #E5E0D2, #9BA88C); }
.thumb-g { background: linear-gradient(160deg, #C9B091 0%, #8FA383 100%); }

/* メニュー */
.menu-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (min-width: 768px) { .menu-grid { grid-template-columns: repeat(3, 1fr); gap: 28px; } }

.menu-item { display: grid; gap: 4px; }
.menu-thumb { aspect-ratio: 1 / 1; border-radius: var(--radius); }
.menu-item h3 { font-size: 15px; font-weight: 500; margin-top: 10px; }
.menu-item p { font-size: 14px; color: var(--color-accent); }
.menu-note { margin-top: 28px; font-size: 12px; color: var(--color-muted); }

/* お店のこと */
.shop { background: var(--color-white); }
.shop-grid { display: grid; gap: 32px; }
@media (min-width: 1024px) {
  .shop-grid { grid-template-columns: 1fr 1fr; align-items: center; gap: 64px; }
}
.shop-photo { aspect-ratio: 4 / 3; border-radius: var(--radius-lg); }
.shop-body p { font-size: 15px; }
.shop-points { margin-top: 20px; display: grid; gap: 8px; }
.shop-points li {
  font-size: 14px;
  padding-left: 20px;
  position: relative;
}
.shop-points li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.75em;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--color-sub);
}

/* アクセス */
.access-table { display: grid; gap: 0; border-top: 1px solid var(--color-line); }
.access-table > div {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 16px;
  padding: 16px 4px;
  border-bottom: 1px solid var(--color-line);
  font-size: 14px;
}
.access-table dt { font-weight: 500; color: var(--color-muted); }
@media (min-width: 768px) {
  .access-table > div { grid-template-columns: 140px 1fr; font-size: 15px; }
}

.map-placeholder {
  margin-top: 32px;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  color: var(--color-muted);
  font-size: 13px;
  letter-spacing: 0.2em;
}

/* CTA */
.cta { text-align: center; }
.cta-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(22px, 5.5vw, 34px);
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}
.cta p { color: var(--color-muted); font-size: 15px; }
.cta .hero-actions { margin-top: 28px; }

/* -----------------------------------------------------------
   6. Footer
   ----------------------------------------------------------- */
.site-footer {
  background: var(--color-accent-d);
  color: rgba(255, 255, 255, 0.85);
  padding-block: 48px;
}
.footer-inner { display: grid; gap: 20px; justify-items: center; text-align: center; }
.footer-brand { font-family: var(--font-serif); font-size: 18px; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.footer-nav a { font-size: 12px; color: rgba(255, 255, 255, 0.7); }
.copyright { font-size: 11px; color: rgba(255, 255, 255, 0.5); }

/* ===========================================================
   【竹】追加スタイル — GSAP演出用
   =========================================================== */

/* Lenis推奨CSS(スムーススクロールと衝突しないように) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* -----------------------------------------------------------
   行リベール(レシピE手動版: 日本語はSplitTextより行スパンが安全)
   ----------------------------------------------------------- */
.line { display: block; }
.js .line { overflow: hidden; }
.line-inner { display: block; }

/* -----------------------------------------------------------
   スティッキーピン(レシピB)
   既定 = 縦に積まれた通常セクション(JSなし・reduced-motionでも読める)
   .pin-active が付いた時だけ重ね合わせレイアウトに切り替わる
   ----------------------------------------------------------- */
.pin-sec { background: var(--color-white); }

.panel { padding: 56px 20px; }
.panel-inner {
  max-width: var(--content-max);
  margin-inline: auto;
  display: grid;
  gap: 28px;
  align-items: center;
}
@media (min-width: 1024px) {
  .panel { padding: 88px 32px; }
  .panel-inner { grid-template-columns: 1fr 1fr; gap: 64px; }
}

.panel-visual {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.panel-body { display: grid; gap: 12px; }
.panel-num {
  font-family: var(--font-serif);
  font-size: 14px;
  letter-spacing: 0.3em;
  color: var(--color-accent);
}
.panel-body h3 {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(24px, 5.5vw, 40px);
  letter-spacing: 0.06em;
  line-height: 1.5;
}
.panel-body p { color: var(--color-muted); font-size: 15px; max-width: 40em; }

/* ピン有効時: 1画面に重ねる */
.js .pin-sec.pin-active {
  position: relative;
  height: 100dvh;
  overflow: hidden;
}
.js .pin-sec.pin-active .panel {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: calc(var(--header-h) + 24px) 20px 40px;
}
@media (min-width: 1024px) {
  .js .pin-sec.pin-active .panel { padding-inline: 32px; }
}
