/* =========================================================
   しずく珈琲 / SHIZUKU COFFEE  — style.css
   ========================================================= */

:root {
  --ground: #F2EEE7;
  --sand: #E8E1D6;
  --ink: #1F1C19;
  --text: #3D3832;
  --muted: #5E574F;
  --line: #D8D0C4;
  --dark-line: #3A352F;
  --on-dark: #EDE7DD;
  --on-dark-muted: #A89F93;
  --accent: #B5652B;

  --serif-jp: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --serif-en: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Zen Kaku Gothic New", "Hiragino Sans", "Noto Sans JP", sans-serif;

  --gutter: clamp(20px, 4vw, 56px);
  --section-y: clamp(80px, 10vw, 140px);
  --max: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.9;
  letter-spacing: 0.04em;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); }
a:hover { color: #A4561F; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.container { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link { position: absolute; left: 8px; top: -60px; background: var(--ink); color: var(--ground); padding: 8px 16px; z-index: 100; }
.skip-link:focus { top: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--ground);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s;
}
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--line); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px 32px; padding: 16px var(--gutter);
}
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.logo svg { width: 26px; height: 32px; flex: none; }
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-jp { font-family: var(--serif-jp); font-weight: 700; font-size: 20px; letter-spacing: .12em; }
.logo-en { font-family: var(--serif-en); font-size: 12px; letter-spacing: .3em; }

.global-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px 28px; }
.global-nav a {
  display: inline-flex; flex-direction: column; align-items: center;
  min-height: 44px; justify-content: center; text-decoration: none; line-height: 1.3;
}
.global-nav .en { font-family: var(--serif-en); font-style: italic; font-size: 18px; }
.global-nav .jp { font-size: 10px; color: var(--muted); letter-spacing: .15em; }
.global-nav a[aria-current="page"] .en { color: var(--accent); }
.global-nav .nav-cta {
  flex-direction: row; gap: 8px; padding: 0 22px; border: 1px solid var(--ink);
  border-radius: 999px; font-size: 13px;
}
.global-nav .nav-cta:hover { background: var(--ink); color: var(--ground); }

.nav-toggle {
  display: none; width: 48px; height: 48px; border: 1px solid var(--ink);
  border-radius: 50%; background: transparent; cursor: pointer; position: relative;
}
.nav-toggle span { position: absolute; left: 14px; right: 14px; height: 1px; background: var(--ink); transition: transform .3s, opacity .3s; }
.nav-toggle span:nth-child(1) { top: 19px; }
.nav-toggle span:nth-child(2) { top: 28px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .global-nav {
    position: fixed; inset: 73px 0 0 0; background: var(--ground);
    padding: 32px var(--gutter); overflow-y: auto;
    visibility: hidden; opacity: 0; transition: opacity .3s, visibility .3s;
  }
  .global-nav.is-open { visibility: visible; opacity: 1; }
  .global-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .global-nav li { border-bottom: 1px solid var(--line); }
  .global-nav a { flex-direction: row; justify-content: space-between; align-items: baseline; padding: 16px 0; }
  .global-nav .en { font-size: 28px; }
  .global-nav .jp { font-size: 12px; }
  .global-nav li:last-child { border: 0; padding-top: 24px; }
  .global-nav .nav-cta { justify-content: center; padding: 0 24px; }
}

/* ---------- Drop motif ---------- */
.drop-icon { width: 18px; height: 22px; flex: none; }
.drop-icon path { fill: none; stroke: currentColor; stroke-width: 1.6; }
.drop-icon circle { fill: var(--accent); }

/* Large faint drop watermark placed in each section */
.has-drop { position: relative; overflow: hidden; }
.has-drop::after {
  content: ""; position: absolute; pointer-events: none; z-index: 0;
  width: clamp(220px, 28vw, 420px); aspect-ratio: 28 / 34;
  right: -4vw; top: 40px;
  background: url("../images/drop.svg") no-repeat center / contain;
  opacity: .9;
}
.has-drop.drop-left::after { right: auto; left: -6vw; top: auto; bottom: 40px; }
.section-dark.has-drop::after { background-image: url("../images/drop-light.svg"); }
.has-drop > * { position: relative; z-index: 1; }

/* ---------- Section heading ---------- */
.section { padding-block: var(--section-y); }
.section-sand { background: var(--sand); }
.section-dark { background: var(--ink); color: var(--on-dark); }
.section-dark a { color: var(--on-dark); }

.sec-head { display: flex; flex-direction: column; gap: 8px; }
.sec-head .mark { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.section-dark .sec-head .mark { color: var(--on-dark-muted); }
.sec-head h2 {
  margin: 0; font-family: var(--serif-en); font-style: italic; font-weight: 500;
  font-size: clamp(48px, 6vw, 88px); line-height: 1; letter-spacing: 0;
}
.sec-head .sub { font-size: 13px; letter-spacing: .2em; color: var(--muted); }
.section-dark .sec-head .sub { color: var(--on-dark-muted); }

.sec-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 56px; }
.sec-row p { margin: 0; max-width: 460px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 28px;
  border-radius: 999px; text-decoration: none; font-size: 14px; border: 1px solid var(--ink);
  font-family: inherit; cursor: pointer; transition: background .25s, color .25s;
}
.btn-fill { background: var(--ink); color: var(--ground); }
.btn-fill:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--ground); }
.section-dark .btn-line { border-color: var(--on-dark); color: var(--on-dark); }
.section-dark .btn-line:hover { background: var(--on-dark); color: var(--ink); }

/* ---------- Hero (top) ---------- */
.hero { display: flex; flex-wrap: wrap; min-height: min(86vh, 820px); background: var(--ink); color: var(--on-dark); }
.hero-visual {
  flex: 999 1 560px; min-width: 0; position: relative;
  display: flex; align-items: center; justify-content: center; padding: 80px 24px 160px;
}
.hero-visual svg { width: min(540px, 88%); height: auto; }
.ripple circle.ring { fill: none; stroke: var(--on-dark); stroke-width: 1; transform-origin: 300px 300px; animation: ripple 6s ease-out infinite; opacity: 0; }
.ripple circle.ring:nth-of-type(2) { animation-delay: 1.5s; }
.ripple circle.ring:nth-of-type(3) { animation-delay: 3s; }
.ripple circle.ring:nth-of-type(4) { animation-delay: 4.5s; }
@keyframes ripple {
  0% { transform: scale(.3); opacity: .6; }
  100% { transform: scale(1.3); opacity: 0; }
}
.hero-catch-en {
  position: absolute; left: var(--gutter); bottom: 48px; margin: 0;
  font-family: var(--serif-en); font-style: italic; font-size: clamp(28px, 3.4vw, 52px); line-height: 1.15;
}
.hero-side {
  flex: 1 1 260px; display: flex; flex-direction: column; justify-content: space-between; align-items: center;
  gap: 32px; padding: 64px 40px 48px; border-left: 1px solid var(--dark-line);
}
.hero-side .est { font-family: var(--serif-en); font-size: 14px; letter-spacing: .3em; color: var(--on-dark-muted); }
.hero-side h1 {
  margin: 0; writing-mode: vertical-rl; font-family: var(--serif-jp); font-weight: 500;
  font-size: clamp(40px, 4vw, 60px); line-height: 1.6; letter-spacing: .2em;
}
.scroll { display: inline-flex; flex-direction: column; align-items: center; gap: 6px; color: var(--on-dark); text-decoration: none; font-family: var(--serif-en); font-style: italic; }
@media (max-width: 860px) {
  .hero-side { border-left: 0; border-top: 1px solid var(--dark-line); }
}

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 760px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- About block ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px 80px; align-items: center; }
.about-grid .photo { position: relative; }
.about-grid .photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.about-grid .photo figcaption { font-size: 12px; color: var(--muted); margin-top: 10px; }
.lead-jp { margin: 32px 0; font-family: var(--serif-jp); font-weight: 500; font-size: clamp(26px, 2.8vw, 38px); line-height: 1.7; letter-spacing: .1em; }
.prose p { margin: 0 0 1.4em; max-width: 36em; color: var(--text); }
.section-dark .prose p { color: #CFC6B9; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }

/* ---------- Craft cards ---------- */
.craft-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.craft-card { display: flex; flex-direction: column; gap: 20px; }
.craft-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.craft-card h3 { margin: 0; display: flex; align-items: center; gap: 14px; }
.craft-card h3 .jp { font-family: var(--serif-jp); font-weight: 500; font-size: 28px; letter-spacing: .15em; }
.craft-card h3 .en { font-family: var(--serif-en); font-style: italic; font-size: 18px; color: var(--on-dark-muted); }
.craft-card p { margin: 0; color: #CFC6B9; }
@media (max-width: 860px) { .craft-grid { grid-template-columns: 1fr; } }

/* Craft rows (こだわり page) */
.craft-row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px 80px; align-items: center; }
.craft-row + .craft-row { margin-top: clamp(80px, 10vw, 140px); }
.craft-row.reverse .craft-photo { order: 2; }
.craft-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.craft-text h2 { margin: 0 0 8px; display: flex; align-items: center; gap: 16px; }
.craft-text h2 .jp { font-family: var(--serif-jp); font-weight: 500; font-size: clamp(32px, 3.4vw, 44px); letter-spacing: .15em; }
.craft-text h2 .en { font-family: var(--serif-en); font-style: italic; font-size: 22px; color: var(--muted); }
.craft-text .lead { font-family: var(--serif-jp); font-size: 19px; line-height: 1.8; margin: 16px 0 24px; }
@media (max-width: 860px) {
  .craft-row { grid-template-columns: 1fr; }
  .craft-row.reverse .craft-photo { order: 0; }
}

/* ---------- Menu ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tab {
  min-height: 44px; padding: 0 24px; border-radius: 999px; border: 1px solid var(--ink);
  background: transparent; color: var(--ink); cursor: pointer;
  font-family: var(--serif-en); font-style: italic; font-size: 18px;
}
.tab[aria-selected="true"] { background: var(--ink); color: var(--ground); }
.menu-lead { margin: 0 0 24px; font-family: var(--serif-jp); font-size: 18px; color: var(--text); }
.menu-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 64px; }
.menu-list li { display: flex; justify-content: space-between; gap: 24px; padding: 28px 0; border-top: 1px solid #C9BFB1; }
.menu-list .en { display: block; font-family: var(--serif-en); font-style: italic; font-size: 15px; color: var(--muted); }
.menu-list .name { display: block; font-family: var(--serif-jp); font-weight: 700; font-size: 20px; letter-spacing: .08em; }
.menu-list .desc { display: block; font-size: 14px; color: var(--text); }
.menu-list .price { flex: none; font-family: var(--serif-en); font-size: 18px; white-space: nowrap; }
.tab-panel[hidden] { display: none; }
.tab-panel.is-active { animation: fadeIn .4s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.menu-note { margin-top: 40px; font-size: 13px; color: var(--muted); }
@media (max-width: 760px) { .menu-list { grid-template-columns: 1fr; } }

/* ---------- News ---------- */
.news-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 48px 80px; }
.news-list { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.news-list li { border-top: 1px solid var(--line); }
.news-list a { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 32px; padding: 28px 0; text-decoration: none; }
.news-list time { font-family: var(--serif-en); font-size: 17px; color: var(--muted); min-width: 120px; }
.tag { font-size: 12px; padding: 2px 12px; border: 1px solid #8C8379; border-radius: 999px; }
.news-list .title { flex: 1 1 280px; }
@media (max-width: 860px) { .news-wrap { grid-template-columns: 1fr; } }

/* ---------- Info / Access ---------- */
.info-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 48px 80px; }
.info-list { margin: 32px 0; display: grid; grid-template-columns: 96px 1fr; row-gap: 16px; column-gap: 24px; }
.info-list dt { font-size: 13px; color: var(--muted); }
.info-list dd { margin: 0; }
.map {
  min-height: 420px; background: #D8CEBF; position: relative;
  display: flex; align-items: center; justify-content: center;
}
.map svg.roads { position: absolute; inset: 0; width: 100%; height: 100%; }
.map .pin { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; }
.map .pin span { background: var(--ground); padding: 2px 10px; }
@media (max-width: 860px) { .info-grid { grid-template-columns: 1fr; } }

/* ---------- Sub page hero ---------- */
.page-hero { background: var(--ink); color: var(--on-dark); padding: clamp(80px, 10vw, 140px) 0 64px; }
.page-hero .sec-head h2, .page-hero h1 {
  margin: 0; font-family: var(--serif-en); font-style: italic; font-weight: 500;
  font-size: clamp(56px, 8vw, 120px); line-height: 1;
}
.page-hero .sub { color: var(--on-dark-muted); font-size: 14px; letter-spacing: .2em; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 48px 0 0; padding: 0; font-size: 12px; color: var(--on-dark-muted); }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; }
.breadcrumb a { color: var(--on-dark-muted); }

/* ---------- Beans ---------- */
.beans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.bean { padding: 32px 32px 40px 0; border-bottom: 1px solid var(--line); }
.bean + .bean { padding-left: 32px; border-left: 1px solid var(--line); }
.bean h3 { margin: 4px 0 12px; font-family: var(--serif-jp); font-size: 22px; letter-spacing: .1em; }
.bean .roast { font-family: var(--serif-en); font-style: italic; color: var(--muted); }
.bean p { margin: 0; color: var(--text); font-size: 14px; }
@media (max-width: 860px) {
  .beans { grid-template-columns: 1fr; }
  .bean, .bean + .bean { padding: 28px 0; border-left: 0; }
}

/* ---------- Message ---------- */
.message { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 48px 80px; }
.message .sign { margin-top: 24px; font-family: var(--serif-jp); }
@media (max-width: 860px) { .message { grid-template-columns: 1fr; } }

/* ---------- Form ---------- */
.form { max-width: 760px; display: grid; gap: 28px; }
.field { display: grid; gap: 8px; }
.field label, .field legend { font-size: 14px; font-weight: 500; }
.req { margin-left: 8px; font-size: 11px; color: #fff; background: var(--accent); padding: 1px 8px; border-radius: 999px; letter-spacing: .1em; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: #FBF9F5;
  border: 1px solid #B9AFA2; border-radius: 4px; padding: 12px 14px; min-height: 48px;
}
.field textarea { min-height: 200px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.field [aria-invalid="true"] { border-color: #A3361F; background: #FBF1EE; }
.error { font-size: 13px; color: #A3361F; min-height: 1em; }
.radio-row { display: flex; flex-wrap: wrap; gap: 8px 24px; border: 0; padding: 0; margin: 0; }
.radio-row label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 400; }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.check input, .radio-row input { width: 18px; height: 18px; accent-color: var(--accent); }
.form-done { padding: 40px; background: var(--sand); }
.form-done h2 { margin: 0 0 8px; font-family: var(--serif-jp); font-size: 24px; }
.form-done[hidden] { display: none; }

/* ---------- Policy ---------- */
.policy { max-width: 820px; }
.policy h2 { margin: 56px 0 16px; font-family: var(--serif-jp); font-size: 22px; letter-spacing: .08em; display: flex; align-items: center; gap: 10px; }
.policy p, .policy li { color: var(--text); }
.policy ol, .policy ul { padding-left: 1.4em; }
.policy .date { margin-top: 56px; text-align: right; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--on-dark); padding: clamp(72px, 8vw, 120px) 0 32px; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: #E3A774; }
.footer-catch { margin: 0 0 64px; font-family: var(--serif-jp); font-weight: 500; font-size: clamp(28px, 4vw, 56px); line-height: 1.5; letter-spacing: .12em; }
.footer-main { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.footer-main .logo { color: var(--on-dark); }
.footer-main .logo-en { color: var(--on-dark-muted); }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 32px; }
.footer-nav a { font-family: var(--serif-en); font-style: italic; font-size: 18px; display: inline-flex; min-height: 44px; align-items: center; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px;
  margin-top: 56px; padding-top: 16px; font-size: 12px; color: var(--on-dark-muted);
}
.footer-bottom .links { display: flex; flex-wrap: wrap; align-items: center; gap: 0 24px; }
.footer-bottom .links a { color: var(--on-dark-muted); display: inline-flex; min-height: 44px; align-items: center; }
.to-top { font-family: var(--serif-en); font-style: italic; font-size: 16px; }

/* ---------- Demo notice ---------- */
.brand { display: flex; align-items: center; gap: 20px; min-width: 0; }
.demo-badge {
  flex: none; display: inline-flex; align-items: center;
  padding: 4px 16px; border: 1px dashed #8C8379; border-radius: 999px;
  font-size: 13px; font-weight: 500; letter-spacing: .1em; color: var(--muted);
  white-space: nowrap;
}
@media (max-width: 480px) {
  .brand { gap: 10px; }
  .demo-badge { padding: 2px 10px; font-size: 11px; }
}
.footer-meta { display: flex; flex-direction: column; gap: 4px; }
.demo-note { margin: 0; font-size: 13px; color: var(--on-dark); letter-spacing: .06em; }
.footer-bottom .links small { font-size: 12px; }
.to-top { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-family: var(--sans); font-style: normal; font-size: 14px; letter-spacing: .08em; }
.logo-en { white-space: nowrap; }
@media (max-width: 480px) { .logo-en { font-size: 10px; letter-spacing: .2em; } }

/* ---------- About: スマホでは「見出し → 画像 → 本文」の順に ---------- */
@media (max-width: 860px) {
  .about-grid { row-gap: 0; }
  .about-grid > div { display: contents; }
  .about-grid .sec-head { order: 1; margin-bottom: 32px; }
  .about-grid .photo { order: 2; }
  .about-grid > div > :not(.sec-head) { order: 3; }
  .about-grid .btn { justify-self: start; }
}

/* ---------- スマホメニューの調整 ---------- */
@media (max-width: 900px) {
  .global-nav a { display: flex; }
  .global-nav .nav-cta {
    align-items: center; justify-content: center;
    min-height: 56px; padding: 0 24px; font-size: 15px;
  }
}