/* ===== 色は3色だけ(ベース70% : メイン25% : アクセント5%) =====
   ベース   … クリーム白 … 背景(ページの大部分)
   メイン   … 落ち着いた青 … 見出し・文字・線・フッター
   アクセント … やさしいオレンジ … 小さなポイントだけ(営業中の印・値段・地図のピン) */
:root {
  --base: #fffcf5;      /* ベース(70%) */
  --main: #2f5d9e;      /* メイン(25%) */
  --main-text: #25395a; /* 文字:メインの濃い色合い */
  --main-line: #cfdbec; /* 線:メインの薄い色合い */
  --accent: #f2a33a;    /* アクセント(5%) */
  --font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Meiryo UI", "Yu Gothic", sans-serif;
  --header-h: 68px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body { margin: 0; background: var(--base); color: var(--main-text); font-family: var(--font); line-height: 1.9; letter-spacing: .04em; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ===== ヘッダー(スクロールすると、背景がつく) ===== */
.header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 100;
  transition: background-color .4s, box-shadow .4s;
}
.header.is-scrolled, .header.is-open {
  background: rgba(255, 252, 245, .96);
  box-shadow: 0 1px 0 var(--main-line);
}
.header-inner {
  max-width: 1080px; margin: 0 auto; padding: 0 24px;
  height: var(--header-h); display: flex; align-items: center; justify-content: space-between;
}
/* ロゴ:湯気の立つカップ(受け皿は、にこにこの口)+ 英字と日本語 */
.logo { display: flex; align-items: center; gap: 12px; color: var(--main); }
.logo-mark { width: 44px; height: 44px; flex: none; }
.logo-mark path { fill: none; stroke: var(--main); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.logo-mark path:last-child { stroke: var(--accent); }
.logo-words { display: flex; flex-direction: column; line-height: 1.3; }
.logo-en { font-size: 14px; font-weight: 500; letter-spacing: .32em; }
.logo-ja { font-size: 11px; letter-spacing: .3em; color: var(--main-text); opacity: .8; }
.nav ul { display: flex; gap: 32px; font-size: 14px; letter-spacing: .12em; }
.nav a { padding: 6px 2px; border-bottom: 2px solid transparent; transition: border-color .2s; }
.nav a:hover { border-color: var(--accent); }

/* ハンバーガー(スマホ用) */
.nav-toggle { display: none; position: relative; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; }
.nav-toggle span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: var(--main); transition: transform .3s, opacity .3s, top .3s; }
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 27px; }
.header.is-open .nav-toggle span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.header.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
.header.is-open .nav-toggle span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* ===== ヒーロー ===== */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: calc(var(--header-h) + 24px) 20px 120px;
  background:
    linear-gradient(rgba(255, 252, 245, .62), rgba(255, 252, 245, .62)),
    var(--base) url("images/hero.jpg") center / cover no-repeat;
}
.sample-note {
  display: inline-block; margin-bottom: 20px; padding: 2px 14px;
  font-size: 12px; color: var(--main); background: var(--base); border: 1px solid var(--main); border-radius: 999px;
}
/* 店名だけを、大きく置く */
.hero-name { font-weight: 400; color: var(--main); }
.hero-name-en { display: block; font-size: clamp(30px, 7vw, 64px); line-height: 1.3; letter-spacing: .28em; padding-left: .28em; }
.hero-name-ja { display: block; margin-top: 14px; font-size: clamp(14px, 2.4vw, 20px); letter-spacing: .5em; padding-left: .5em; }
.hero-wave { position: absolute; left: 0; bottom: -1px; width: 100%; height: 60px; }
.hero-wave path { fill: var(--base); }

/* 営業中バッジ */
.open-badge {
  width: fit-content; margin: 24px auto 0; padding: 6px 22px;
  background: var(--base); border: 1px solid var(--main); border-radius: 999px; font-size: 14px; color: var(--main);
}
.open-badge:empty { display: none; }
.open-badge::before {
  content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 10px; border-radius: 50%; background: var(--main-line);
}
.open-badge.is-open::before { background: var(--accent); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(242, 163, 58, .6); }
  50% { box-shadow: 0 0 0 7px rgba(242, 163, 58, 0); }
}

/* ===== セクション共通(細い線で区切る) ===== */
.section { padding: 96px 24px; max-width: none; border-top: 1px solid var(--main-line); }
.section > * { max-width: 1040px; margin-left: auto; margin-right: auto; }
.section-title { text-align: center; font-weight: 400; margin-bottom: 52px; color: var(--main); }
.section-title .en { display: block; font-size: clamp(28px, 5vw, 40px); letter-spacing: .24em; }
.section-title .ja { display: block; margin-top: 6px; font-size: 13px; letter-spacing: .2em; color: var(--main-text); }

/* ===== お知らせ(NEWS) ===== */
/* サムネイル(小さな写真)と、文章を、横に並べる */
.news { max-width: 800px; }
.news-item {
  display: grid; grid-template-columns: 168px 1fr; gap: 28px; align-items: center;
  padding: 22px 0; border-bottom: 1px solid var(--main-line);
}
.news-item:first-child { border-top: 1px solid var(--main-line); }
.news-thumb { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.news-meta { display: flex; align-items: center; gap: 14px; margin-bottom: 4px; }
.news-date { font-size: 14px; letter-spacing: .1em; color: var(--main); }
.news-tag { padding: 0 12px; font-size: 12px; color: var(--main); border: 1px solid var(--main); border-radius: 999px; }
.news-title { font-size: 17px; font-weight: 500; color: var(--main); }
.news-text { margin-top: 4px; font-size: 14px; }

/* ===== こだわり ===== */
/* こだわり一つ一つに、写真を付ける。
   メニューのような横3列のカードをやめて、1つずつ、写真と文章を、左右に入れ替えながら、縦に並べる */
.about-list { display: grid; gap: 72px; }
.about-row { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; }
.about-row:nth-child(even) { grid-template-columns: 1fr 1.15fr; }
.about-row:nth-child(even) .about-img { order: 2; }
.about-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.point-no { font-size: 40px; font-weight: 200; line-height: 1; color: var(--main); letter-spacing: .1em; margin-bottom: 16px; }
.point-title { font-size: 20px; font-weight: 500; color: var(--main); margin-bottom: 8px; }
.about-text p:last-child { font-size: 14px; }

/* ===== メニュー ===== */
.menu { display: grid; gap: 32px 24px; grid-template-columns: repeat(3, 1fr); }
.dish { text-align: left; }
.dish-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 14px; }
.dish-name { font-size: 16px; font-weight: 500; color: var(--main); }
.dish-note { font-size: 13px; margin: 2px 0 8px; }
.dish-price { font-size: 14px; font-weight: 500; color: var(--main); }

/* ===== 営業時間 ===== */
.hours { width: 100%; max-width: 640px; margin: 0 auto; border-collapse: collapse; }
.hours th, .hours td { padding: 18px 12px; border-bottom: 1px solid var(--main-line); text-align: left; }
.hours th { width: 8em; font-weight: 500; color: var(--main); }

/* ===== アクセス ===== */
.access { display: grid; gap: 40px; grid-template-columns: 1.2fr 1fr; align-items: center; }
.map { width: 100%; height: auto; }
.map-bg { fill: none; stroke: var(--main); stroke-width: 1.5; }
.map-road { stroke: var(--main-line); stroke-width: 14; fill: none; }
.map-block { fill: none; stroke: var(--main-line); stroke-width: 2; }
.map-pin { fill: var(--accent); stroke: var(--main); stroke-width: 2.5; stroke-linejoin: round; }
.map-pin-dot { fill: var(--base); stroke: var(--main); stroke-width: 2.5; }
.access-address { font-size: 20px; line-height: 1.7; color: var(--main); }
.access-note { margin-top: 12px; }
.sample-note-small { margin-top: 12px; font-size: 12px; opacity: .75; }

/* ===== フッター ===== */
.footer { text-align: center; padding: 56px 20px; background: var(--main); color: var(--base); letter-spacing: .14em; }
.footer-note { margin-top: 8px; font-size: 12px; opacity: .8; letter-spacing: .06em; }

/* ===== スクロールで、ふわっと浮き出る(JSが動くときだけ) ===== */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform .9s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ===== スマホ向け ===== */
@media (max-width: 800px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; width: 100%;
    background: rgba(255, 252, 245, .98); padding: 8px 24px 20px; box-shadow: 0 1px 0 var(--main-line);
  }
  .header.is-open .nav { display: block; }
  .nav ul { flex-direction: column; gap: 0; font-size: 15px; }
  .nav a { display: block; padding: 14px 4px; border-bottom: 1px solid var(--main-line); }
  .menu { grid-template-columns: 1fr; }
  /* スマホでは、サムネイルを小さくして、文章を右に並べる */
  .news-item { grid-template-columns: 96px 1fr; gap: 16px; }
  .news-title { font-size: 15px; }
  .news-text { font-size: 13px; }
  .news-meta { flex-wrap: wrap; gap: 4px 10px; }
  .about-list { gap: 48px; }
  .about-row, .about-row:nth-child(even) { grid-template-columns: 1fr; gap: 20px; }
  .about-row:nth-child(even) .about-img { order: 0; }
  .point-no { font-size: 32px; margin-bottom: 8px; }
  .access { grid-template-columns: 1fr; }
  .section { padding: 72px 20px; }
}
@media (min-width: 801px) and (max-width: 1000px) {
  .menu { grid-template-columns: repeat(2, 1fr); }
}

/* 動きを減らす設定の人には、動きをなくす */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .open-badge.is-open::before { animation: none; }
}
