/* ============================================
   RESTAURANT KAKI TEMPLATE
   牡蠣料理 — 牡蠣殻の白灰、瀬戸内の深い青緑、銀鼠
   ============================================ */

:root {
  /* 色 */
  --kara: #eceae4; /* 牡蠣殻の白灰（地） */
  --kara-light: #f6f5f1;
  --umi: #1d4f5a; /* 瀬戸内の青緑 */
  --umi-dark: #143840;
  --umi-light: #d9e6e6;
  --gin: #9aa3a3; /* 銀鼠 */
  --nori: #1b2224; /* 海苔の黒（文字） */
  --line: #d3d1c9;
  --sabi: #b4553a; /* 錆朱（今月の印だけ） */

  --bg: var(--kara);
  --text: var(--nori);
  --accent: var(--umi);
  --nav-bg: var(--umi);
  --nav-fg: #fff;

  /* 文字 */
  --font-head: "Kaisei Tokumin", "Hiragino Mincho ProN", serif;
  --font-body: "Zen Kaku Gothic New", "Hiragino Sans", sans-serif;

  --header-h: 68px;
  --max-w: 1140px;
}

/* ============================================
   BASE — リセットと共通部品
   （ヘッダー・モバイルメニュー・タブ・アコーディオン・出現の動き）
   ============================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.85;
  color: var(--text);
  background: var(--bg);
  font-feature-settings: "palt" 0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

img {
  height: auto;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

ul,
ol {
  list-style: none;
}

table {
  border-collapse: collapse;
  width: 100%;
}

h1,
h2,
h3,
h4 {
  font-weight: inherit;
  line-height: 1.4;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--text);
  color: var(--bg);
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.container {
  width: min(100% - 40px, var(--max-w));
  margin-inline: auto;
}

/* 改行を意味で切るための小さな塊（見出しの中で使う） */
.nb {
  display: inline-block;
}

/* ---------- ヘッダーとモバイルメニュー ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
}

.site-header__inner {
  height: 100%;
  width: min(100% - 32px, var(--header-w, 1240px));
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 20px;
}

.site-nav ul {
  display: flex;
  gap: 4px;
}

.site-nav a {
  display: block;
  padding: 8px 12px;
  text-decoration: none;
}

.nav-toggle {
  display: none;
  position: relative;
  z-index: 120;
  width: 48px;
  height: 48px;
  margin-left: auto;
  flex-shrink: 0;
}

.nav-toggle span {
  position: absolute;
  left: 13px;
  right: 13px;
  height: 2px;
  background: currentColor;
  transition: transform 0.3s ease, opacity 0.2s ease;
}

.nav-toggle span:nth-child(1) {
  top: 19px;
}

.nav-toggle span:nth-child(2) {
  top: 27px;
}

.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(4px) rotate(45deg);
}

.nav-open .nav-toggle span:nth-child(2) {
  transform: translateY(-4px) rotate(-45deg);
}

@media (max-width: 899px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 110;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: calc(var(--header-h) + 16px) 32px 40px;
    background: var(--nav-bg);
    color: var(--nav-fg);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-16px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s linear 0.3s;
  }

  .nav-open .site-nav {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .site-nav a {
    padding: 14px 4px;
    font-size: 18px;
  }
}

/* ---------- タブ ---------- */
[role="tabpanel"][hidden] {
  display: none;
}

[role="tabpanel"] {
  animation: panel-in 0.4s ease-out;
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- アコーディオン（高さは grid の 0fr→1fr で） ---------- */
.acc__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease-out;
}

.acc__panel > div {
  overflow: hidden;
  min-height: 0;
}

.acc.is-open .acc__panel {
  grid-template-rows: 1fr;
}

.acc__icon {
  transition: transform 0.3s ease-out;
}

.acc.is-open .acc__icon {
  transform: rotate(45deg);
}

/* ---------- スクロールで出る（JSが動いたときだけ隠す） ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

.js .reveal[data-delay="1"] {
  transition-delay: 0.1s;
}

.js .reveal[data-delay="2"] {
  transition-delay: 0.2s;
}

.js .reveal[data-delay="3"] {
  transition-delay: 0.3s;
}

/* ヒーローの文字：開いた直後にそっと出る（一度だけ） */
.hero-in {
  animation: hero-in 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero-in[data-delay="1"] {
  animation-delay: 0.12s;
}

.hero-in[data-delay="2"] {
  animation-delay: 0.24s;
}

.hero-in[data-delay="3"] {
  animation-delay: 0.36s;
}

@keyframes hero-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ============================================
   全体
   ============================================ */
.section {
  padding: 104px 0;
}

.sec-head {
  margin-bottom: 36px;
}

.sec-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(28px, 3.6vw, 40px);
  letter-spacing: 0.06em;
  line-height: 1.4;
}

.sec-lead {
  margin-top: 12px;
  color: #4d5557;
}

.sec-lead strong {
  color: var(--sabi);
}

.note {
  margin-top: 14px;
  font-size: 14px;
  color: #5f6668;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 26px;
  background: var(--umi);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background: var(--umi-dark);
}

.btn--line {
  background: transparent;
  color: var(--umi);
  border: 1px solid var(--umi);
}

.btn--line:hover {
  background: var(--umi-light);
}

.btn--light {
  background: #fff;
  color: var(--umi);
}

.btn--light:hover {
  background: var(--umi-light);
}

/* ============================================
   ヘッダー
   ============================================ */
.site-header {
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(236, 234, 228, 0.95);
  box-shadow: 0 1px 0 var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--umi);
}

.brand__name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 22px;
  color: var(--nori);
  white-space: nowrap;
}

.site-nav {
  margin-left: auto;
}

.site-nav a {
  font-size: 14px;
  font-weight: 500;
}

.site-nav a:hover {
  color: var(--umi);
}

.header-tel {
  font-weight: 700;
  color: var(--umi);
  text-decoration: none;
  white-space: nowrap;
}

@media (max-width: 899px) {
  .header-tel {
    display: none;
  }

  .site-nav a {
    font-family: var(--font-head);
    font-size: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  }

  .nav-open .nav-toggle {
    color: #fff;
  }
}

/* ============================================
   Hero：縦書き＋写真の重ね
   ============================================ */
.hero {
  padding: calc(var(--header-h) + 24px) 0 48px;
}

.hero__inner {
  width: min(100% - 32px, var(--max-w));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: start;
}

.hero__photos {
  position: relative;
  padding-bottom: 28%;
}

.hero__photo--back img {
  width: 100%;
  aspect-ratio: 14 / 10;
  object-fit: cover;
}

.hero__photo--front {
  position: absolute;
  right: -8%;
  bottom: 0;
  width: 46%;
  border: 6px solid var(--kara);
}

.hero__photo--front img {
  width: 100%;
  aspect-ratio: 7 / 8;
  object-fit: cover;
}

.hero__text {
  writing-mode: vertical-rl;
  display: flex;
  gap: 18px;
  padding-top: 8px;
}

.hero__title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(34px, 6.4vw, 84px);
  letter-spacing: 0.12em;
  line-height: 1.3;
  color: var(--umi);
}

.hero__lead {
  font-size: clamp(15px, 1.6vw, 18px);
  letter-spacing: 0.2em;
  line-height: 2;
}

.hero__info {
  width: min(100% - 32px, var(--max-w));
  margin: 32px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-weight: 500;
}

.hero__info span {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--umi);
  color: #fff;
  font-size: 13px;
}

@media (max-width: 599px) {
  /* スマホ：写真を上に大きく、縦書きの見出しはその下で右寄せ */
  .hero__inner {
    grid-template-columns: 1fr;
  }

  .hero__photos {
    padding-bottom: 22%;
    margin-right: 8%;
  }

  .hero__photo--front {
    right: -10%;
    width: 44%;
  }

  .hero__text {
    justify-self: end;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    margin-top: -8px;
  }

  .hero__title {
    font-size: 44px;
  }
}

@media (min-width: 900px) {
  .hero__inner {
    gap: 56px;
    min-height: calc(100vh - var(--header-h) - 160px);
    align-items: center;
  }

  .hero__photos {
    padding-bottom: 18%;
    margin-right: 6%;
  }

  .hero__photo--front {
    width: 36%;
    right: -10%;
  }
}

/* ============================================
   旬の暦
   ============================================ */
.shun {
  background: var(--kara-light);
}

.koyomi {
  overflow-x: auto;
}

.koyomi__grid {
  min-width: 640px;
}

.koyomi__head,
.koyomi__row {
  display: grid;
  grid-template-columns: 120px repeat(12, 1fr);
  align-items: center;
}

.koyomi__head span {
  padding: 8px 0;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: #5f6668;
  border-bottom: 2px solid var(--nori);
}

.koyomi__head span.is-now {
  color: #fff;
  background: var(--sabi);
}

.koyomi__row {
  position: relative;
  height: 52px;
  border-bottom: 1px solid var(--line);
}

.koyomi__name {
  font-weight: 700;
  font-size: 15px;
}

/* 月の目盛り線 */
.koyomi__row::before {
  content: "";
  position: absolute;
  left: 120px;
  right: 0;
  top: 0;
  bottom: 0;
  background-image: linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: calc(100% / 12) 100%;
  pointer-events: none;
}

.koyomi__bar {
  height: 18px;
  border-radius: 9px;
  position: relative;
  z-index: 1;
}

.koyomi__bar--a {
  background: var(--umi);
}

.koyomi__bar--b {
  background: #3f7d86;
}

.koyomi__bar--c {
  background: #c79a4a;
}

.koyomi__bar--d {
  background: #8a5a3c;
}

.koyomi__bar--e {
  background: var(--gin);
}

/* 今月の縦の帯 */
.koyomi__now {
  position: relative;
  z-index: 0;
  background: rgba(180, 85, 58, 0.12);
  height: 100%;
}

/* ============================================
   筏から店まで
   ============================================ */
.ichinichi__grid {
  display: grid;
  gap: 36px;
}

.flow {
  border-left: 2px solid var(--umi);
  padding-left: 24px;
}

.flow li {
  position: relative;
  padding-bottom: 24px;
}

.flow li::before {
  content: "";
  position: absolute;
  left: -32px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--kara);
  border: 2px solid var(--umi);
}

.flow time {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 22px;
  color: var(--umi);
}

.ichinichi__photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.ichinichi__photos img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.ichinichi__photos figure:nth-child(2) {
  margin-top: 40px;
}

@media (min-width: 900px) {
  .ichinichi__grid {
    grid-template-columns: 1fr 1.1fr;
    column-gap: 64px;
  }

  .ichinichi__photos {
    grid-column: 1 / -1;
  }
}

/* ============================================
   品書き
   ============================================ */
.oshinagaki {
  background: var(--umi);
  color: #fff;
}

.oshinagaki .sec-lead {
  color: var(--umi-light);
}

.menu {
  display: grid;
  gap: 20px;
}

.menu__item {
  background: var(--umi-dark);
}

.menu__item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.menu__body {
  padding: 20px;
}

.menu__body h3 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 22px;
}

.menu__body p {
  font-size: 15px;
  color: var(--umi-light);
}

.menu__price {
  margin-top: 8px;
  font-weight: 700;
  color: #fff !important;
}

.menu__list-wrap {
  margin-top: 40px;
  background: var(--kara-light);
  color: var(--nori);
  padding: 8px 24px;
}

.menu__list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
}

.menu__list li:last-child {
  border-bottom: 0;
}

.menu__list small {
  display: block;
  font-size: 13px;
  font-weight: 400;
  color: #5f6668;
}

.menu__list b {
  white-space: nowrap;
  color: var(--umi);
}

.course {
  margin-top: 24px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.course__title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 22px;
  margin-bottom: 6px;
}

@media (min-width: 768px) {
  .menu {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ============================================
   召し上がる前に
   ============================================ */
.onegai__grid {
  display: grid;
  gap: 32px;
}

.acc {
  border-top: 1px solid var(--nori);
}

.acc:last-child {
  border-bottom: 1px solid var(--nori);
}

.acc__btn {
  width: 100%;
  min-height: 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 4px;
  text-align: left;
  font-weight: 700;
  font-size: 16px;
}

.acc__icon {
  color: var(--umi);
  font-size: 22px;
  line-height: 1;
}

.acc__panel p {
  padding: 0 4px 20px;
  color: #3d4547;
}

@media (min-width: 900px) {
  .onegai__grid {
    grid-template-columns: 1fr 1.4fr;
    gap: 64px;
  }
}

/* ============================================
   発送
   ============================================ */
.hasso {
  display: grid;
  background: var(--umi-dark);
  color: #fff;
}

.hasso__photo img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
}

.hasso__body {
  padding: 48px 20px 56px;
}

.hasso__body p {
  margin: 16px 0 24px;
  color: var(--umi-light);
}

@media (max-width: 599px) {
  .btn {
    width: 100%;
  }
}

@media (min-width: 900px) {
  .hasso {
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
  }

  .hasso__body {
    padding: 72px 56px;
    max-width: 560px;
  }
}

/* ============================================
   お店
   ============================================ */
.access__grid {
  display: grid;
  gap: 40px;
}

.news {
  margin: 20px 0 24px;
}

.news li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.news time {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--umi);
}

.access__dl div {
  display: grid;
  grid-template-columns: 5.5em 1fr;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.access__dl dt {
  color: var(--umi);
  font-weight: 700;
}

.btns {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.access__map iframe {
  width: 100%;
  height: 100%;
  min-height: 380px;
  border: 0;
  filter: grayscale(0.4) hue-rotate(-10deg);
}

@media (min-width: 900px) {
  .access__grid {
    grid-template-columns: 1fr 1fr;
    gap: 56px;
  }
}

/* ============================================
   フッター
   ============================================ */
.site-footer {
  background: var(--nori);
  color: var(--gin);
  padding: 40px 0;
  font-size: 14px;
}

.site-footer__inner {
  display: grid;
  gap: 6px;
}

.site-footer__name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 22px;
  color: #fff;
}

@media (min-width: 768px) {
  .site-footer__inner {
    grid-template-columns: auto 1fr auto;
    gap: 28px;
    align-items: center;
  }
}

/* 旬の暦：いま食べられる料理の印 */
.koyomi__ima {
  display: inline-block;
  margin-left: 6px;
  padding: 0 6px;
  background: var(--sabi);
  color: #fff;
  font-size: 12px;
  line-height: 1.6;
  vertical-align: 2px;
}
