/* dessert屋ハレノヒ v2
   地は白、文字と線は温かいチャコール。差し色は店の実物から3点だけ:
   黄 = 本日の営業バッジ / 赤 = 人気No.1タグ / 青緑 = 電話ボタン。
   オレンジはフッターのはれだるま(画像)が担う。
   見出し Zen Old Mincho、英字ラベル Cormorant Garamond、本文 Noto Sans JP。 */

:root {
  --ink: #38362f;
  --muted: #6e6a5e;
  --line: #38362f;
  --line-soft: #e4dfd3;
  --paper: #ffffff;
  --yellow: #e9b10c;
  --red: #bc3f2a;
  --teal: #1f7a6d;
  --wrap: 1080px;
}

* { box-sizing: border-box; }

html {
  line-break: strict;
  overflow-wrap: break-word;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Noto Sans JP", sans-serif;
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure { margin: 0; }

h1, h2, h3 {
  font-family: "Zen Old Mincho", serif;
  font-feature-settings: "palt";
  line-height: 1.4;
  margin: 0;
}

a { color: var(--ink); }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

main {
  width: min(var(--wrap), 100% - 2.5rem);
  margin: 0 auto;
}

/* ---------- ヘッダー(PCは固定) ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--paper);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.5rem;
  padding: 0.55rem max(1.25rem, calc((100% - var(--wrap)) / 2));
  border-bottom: 2px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  margin-right: auto;
  padding: 0.2rem 0;
}

.brand img { width: 44px; height: 44px; }

.brand-name {
  font-family: "Zen Old Mincho", serif;
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: 0.05em;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 1.2rem;
}

.site-nav a {
  text-decoration: none;
  font-size: 0.95rem;
  position: relative;
  padding: 0.55rem 0.15rem; /* タップ領域44px確保 */
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 2px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.site-nav a:hover::after { transform: scaleX(1); }

.header-tel {
  font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--line);
  padding: 0.5rem 0.9rem;
  transition: background 0.3s ease, color 0.3s ease;
}

.header-tel:hover {
  background: var(--ink);
  color: var(--paper);
}

/* ---------- ヒーロー ---------- */

.hero {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 2.5rem;
  align-items: center;
  padding: 4rem 0 4.5rem;
}

.hero-eyebrow {
  font-family: "Cormorant Garamond", serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1.2rem;
}

.hero h1 {
  font-size: clamp(2.6rem, 7.5vw, 4.4rem);
  font-weight: 900;
  letter-spacing: 0.06em;
}

.hero-lead {
  margin: 1.8rem 0 0;
  max-width: 30em;
}

.hero-fact {
  margin: 1.6rem 0 0;
  font-weight: 700;
  border-top: 1px solid var(--line);
  padding-top: 0.9rem;
  max-width: 30em;
}

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

/* ---------- 本日の営業 ---------- */

.today {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  border-top: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
  padding: 2rem 0 2.2rem;
}

.today-label, .week-title {
  font-weight: 700;
  margin: 0 0 0.6rem;
}

.today-main {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 0.9rem;
  margin: 0;
  font-size: 1.05rem;
}

.today-badge {
  background: var(--yellow); /* 差し色1: 黄はここだけ */
  color: var(--ink);
  font-weight: 700;
  padding: 0.1rem 0.7rem;
  white-space: nowrap;
}

.today-badge.is-closed {
  background: var(--ink);
  color: var(--paper);
}

.today-note {
  margin: 0.8rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.week-table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
}

.week-table th, .week-table td {
  border: 1px solid var(--line-soft);
  padding: 0.35rem 0.1rem;
  width: calc(100% / 7);
}

.week-table th {
  font-weight: 500;
  font-size: 0.9rem;
}

.week-table td .week-date {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.4;
}

.week-table td .week-mark {
  display: block;
  font-size: 1.05rem;
  line-height: 1.5;
}

.week-table td.is-closed { color: #a3a3a3; }
.week-table td.is-closed .week-date { color: #a3a3a3; }

.week-table th.is-today,
.week-table td.is-today {
  box-shadow: inset 0 0 0 2px var(--ink);
  font-weight: 700;
}

.week-note {
  margin: 0.6rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

/* ---------- セクション共通 ---------- */

.section {
  padding: 120px 0;
  border-bottom: 1px solid var(--line-soft);
}

.section.about { padding: 160px 0; }

.sec-label {
  font-family: "Cormorant Garamond", serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 1.1rem;
  margin: 0 0 0.5rem;
}

section[id] { scroll-margin-top: 84px; } /* 固定ヘッダー分のアンカー補正 */

.section h2 {
  font-size: 1.9rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin-bottom: 2.6rem;
}

.section h3 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.note { color: var(--muted); font-size: 0.95rem; }

.text-link { font-weight: 500; }

/* Instagramの長いアカウント名などが狭い画面で列からはみ出さないように */
.access-data dd a, .footer-text a { overflow-wrap: anywhere; }

/* ---------- お菓子(非対称レイアウト) ---------- */

.okashi-lead {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 2.5rem;
  align-items: start;
}

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

.okashi-text {
  padding-top: 3.5rem; /* 写真に対してテキストを沈める */
}

.okashi-text p { margin: 0 0 1.2rem; max-width: 32em; }

.menu-list {
  list-style: none;
  margin: 0 0 1.4rem;
  padding: 0;
  border-top: 1px solid var(--line);
}

.menu-list li {
  border-bottom: 1px solid var(--line-soft);
  padding: 0.45rem 0.2rem;
  font-weight: 500;
}

.okashi-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

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

.baked {
  display: grid;
  grid-template-columns: 4fr 3fr 3fr;
  gap: 1.5rem;
  align-items: start;
  margin-top: 3rem;
}

.baked-text p { margin: 0.8rem 0 0; }

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

/* ---------- 店について ---------- */

.about-body { max-width: 38em; }
.about-body p { margin: 0 0 1.2rem; }

.about-data, .rental-data, .access-data {
  margin: 2rem 0 0;
  border-top: 1px solid var(--line);
}

.about-data div, .rental-data div, .access-data div {
  display: grid;
  grid-template-columns: 8em 1fr;
  gap: 1rem;
  border-bottom: 1px solid var(--line-soft);
  padding: 0.55rem 0.2rem;
}

.about-data dt, .rental-data dt, .access-data dt {
  font-weight: 700;
}

.about-data dd, .rental-data dd, .access-data dd { margin: 0; }

/* ---------- バースデーケーキ ---------- */

.birthday-lead {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 2.5rem;
  align-items: start;
  margin-bottom: 2.5rem;
}

.birthday-text p { margin: 0 0 1.2rem; max-width: 32em; }

.birthday-photo img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.price-block {
  display: grid;
  grid-template-columns: 12em 1fr;
  gap: 1rem 2rem;
  align-items: start;
  border-top: 1px solid var(--line-soft);
  padding: 1.1rem 0;
}

.price-block:last-of-type { border-bottom: 1px solid var(--line-soft); }

.tag-no1 {
  background: var(--red); /* 差し色2: 赤はここだけ */
  color: var(--paper);
  font-family: "Noto Sans JP", sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.1rem 0.55rem;
  vertical-align: middle;
  margin-left: 0.4rem;
  white-space: nowrap;
}

.price-table {
  border-collapse: collapse;
  min-width: min(320px, 100%);
}

.price-table th, .price-table td {
  padding: 0.2rem 0.6rem 0.2rem 0;
  text-align: left;
  font-weight: 500;
}

.price-table td {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.price-note {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 38em;
}

.reserve {
  margin-top: 2.5rem;
  border: 1px solid var(--line);
  padding: 1.6rem;
}

.reserve h3 { margin-bottom: 0.6rem; }
.reserve p { margin: 0 0 1rem; max-width: 36em; }

.reserve-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.btn-tel, .btn-line {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  padding: 0.7rem 1.4rem;
  text-align: center;
}

.btn-tel {
  background: var(--teal); /* 差し色3: 青緑はここだけ */
  color: var(--paper);
}

.btn-line {
  background: var(--paper);
  color: var(--ink);
  border: 2px solid var(--line);
}

.reserve-note {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- レンタルスペース ---------- */

.rental-body {
  display: grid;
  grid-template-columns: 6fr 5fr;
  gap: 2.5rem;
  align-items: start;
}

.rental-text p { margin: 0 0 1.2rem; max-width: 32em; }
.rental-data { margin-bottom: 1.4rem; }

/* ---------- FAQ(アコーディオン) ---------- */

.faq-list details {
  border-top: 1px solid var(--line-soft);
}

.faq-list details:last-child { border-bottom: 1px solid var(--line-soft); }

.faq-list summary {
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  padding: 1.05rem 2rem 1.05rem 0.2rem;
  position: relative;
  min-height: 44px;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 0.4rem;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 400;
  font-size: 1.3rem;
  transition: transform 0.3s ease;
}

.faq-list details[open ] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq-list details p {
  margin: 0;
  padding: 0 0.2rem 1.2rem;
  max-width: 38em;
}

/* ---------- Instagram ---------- */

.insta-lead { margin: 0 0 1.6rem; max-width: 32em; }

.insta-embed {
  max-width: 540px;
  margin-bottom: 1.6rem;
}

.insta-embed iframe {
  width: 100%;
  height: 480px;
  border: 1px solid var(--line-soft);
  background: var(--paper);
}

/* ---------- アクセス ---------- */

.access-data { max-width: 38em; margin-bottom: 1.6rem; }

/* ---------- フッター ---------- */

.site-footer {
  padding: 3rem max(1.25rem, calc((100% - var(--wrap)) / 2)) 3.5rem;
}

.footer-inner {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.footer-daruma { width: 96px; height: 96px; flex: none; }

.footer-name {
  font-family: "Zen Old Mincho", serif;
  font-weight: 900;
  font-size: 1.1rem;
  margin: 0 0 0.3rem;
}

.footer-text p { margin: 0 0 0.3rem; font-size: 0.95rem; }

/* ---------- スマホ用固定バー(PCでは非表示) ---------- */

.mobile-bar { display: none; }

/* ---------- モバイル ---------- */

/* PC: ヒーローの写真だけ画面右端まで伸ばす／レンタルは左右反転／お菓子写真に段差 */
@media (min-width: 761px) {
  .hero {
    grid-template-columns: 5fr 7fr;
    /* 100vwはスクロールバー幅を含むため、半分を --sbw (JSで実測) で補正する */
    margin-right: calc((100% - 100vw) / 2 + var(--sbw, 0px));
  }

  .rental-photo { order: -1; }

  .okashi-photos figure:nth-child(2) { margin-top: 2.5rem; }
}

@media (max-width: 760px) {
  body { padding-bottom: calc(58px + env(safe-area-inset-bottom)); } /* 固定バー＋ホームインジケータ分 */

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

  .site-header { position: static; }

  .hero {
    grid-template-columns: 1fr;
    gap: 1.6rem;
    padding: 1.6rem 0 2.6rem;
  }

  .hero-photo {
    order: -1; /* スマホは写真が先 */
    margin-left: -1.25rem; /* 左右マージンなしで大きく見せる */
    margin-right: -1.25rem;
  }

  .today { grid-template-columns: 1fr; gap: 1.4rem; }

  .section { padding: 72px 0; }
  .section.about { padding: 96px 0; }
  .section h2 { margin-bottom: 2rem; }

  .okashi-lead { grid-template-columns: 1fr; gap: 1.6rem; }
  .okashi-text { padding-top: 0; }
  .okashi-photos { grid-template-columns: 1fr; }

  .baked { grid-template-columns: 1fr 1fr; }
  .baked-text { grid-column: 1 / -1; }

  .birthday-lead { grid-template-columns: 1fr; gap: 1.6rem; }
  .price-block { grid-template-columns: 1fr; gap: 0.4rem; }
  .price-table { width: 100%; }

  .rental-body { grid-template-columns: 1fr; gap: 1.6rem; }

  .about-data div, .rental-data div, .access-data div {
    grid-template-columns: 6.5em 1fr;
  }

  .reserve-actions a { flex: 1 1 100%; }

  .insta-embed iframe { height: 440px; }

  .footer-inner { flex-direction: column; }

  .mobile-bar {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    background: var(--paper);
    border-top: 2px solid var(--line);
    padding-bottom: env(safe-area-inset-bottom);
  }

  .mobile-bar a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    font-weight: 700;
    text-decoration: none;
    border-left: 1px solid var(--line-soft);
  }

  .mobile-bar a:first-child { border-left: none; }

  .mobile-bar .mb-tel {
    background: var(--teal);
    color: var(--paper);
  }
}

/* ---------- 動き ---------- */

/* スクロールでふわっと出す。JSが .rv を付けるので、JS無効時は全部見える */
.rv {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.7s ease,
    transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
  transition-delay: var(--d, 0s);
}

.rv.in {
  opacity: 1;
  transform: none;
}

/* ヒーロー写真は開いた直後にゆっくり寄る */
.hero-photo { overflow: hidden; }

.hero-photo img {
  animation: hero-zoom 2.6s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

@keyframes hero-zoom {
  from { transform: scale(1.07); }
  to { transform: scale(1); }
}

/* 写真はホバーで少しだけ寄る */
.okashi-main-photo, .okashi-photos figure, .baked figure, .birthday-photo {
  overflow: hidden;
}

.okashi-main-photo img, .okashi-photos img, .baked img, .birthday-photo img {
  transition: transform 1.1s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.okashi-main-photo:hover img, .okashi-photos figure:hover img,
.baked figure:hover img, .birthday-photo:hover img {
  transform: scale(1.045);
}

/* 「営業中」のときだけバッジが小さく脈打つ */
.today-badge.is-live {
  animation: badge-pulse 2.8s ease-in-out infinite;
}

@keyframes badge-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

/* ボタン類のホバー */
.btn-tel, .btn-line {
  transition: transform 0.25s ease, background 0.3s ease, color 0.3s ease, filter 0.3s ease;
}

.btn-tel:hover {
  filter: brightness(1.12);
  transform: translateY(-2px);
}

.btn-line:hover {
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-2px);
}

/* はれだるまは起き上がりこぼし。ずっと小さく揺れている */
.footer-daruma {
  transform-origin: 50% 88%;
  animation: daruma-sway 5.5s ease-in-out infinite alternate;
}

@keyframes daruma-sway {
  from { transform: rotate(-2.4deg); }
  to { transform: rotate(2.4deg); }
}

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