/* ============================================
   RESTAURANT PIZZERIA TEMPLATE
   薪窯ナポリピッツァ — 炭の黒 × 打ち粉の白 × 窯の橙
   全面写真・大きな数字・番号つきのピッツァ一覧
============================================ */

:root {
  /* Color */
  --bg: #1b1a18; /* 炭の黒（地） */
  --bg-2: #252320;
  --bg-3: #2f2c28;
  --flour: #f1ede4; /* 打ち粉の白 */
  --fire: #e0662b; /* 窯の橙（差し色はこの1色だけ） */
  --fire-deep: #c04f19;
  --ink: #f1ede4;
  --muted: #a9a294;
  --line: rgba(241, 237, 228, 0.16);
  --accent: var(--fire);

  /* Font */
  --font-body: "Noto Sans JP", "Hiragino Sans", sans-serif;
  --font-num: "Anton", "Impact", sans-serif; /* 数字・英字 */

  --container: 1200px;
  --gutter: clamp(16px, 4.5vw, 48px);
  --header-h: 64px;
  --section-space: clamp(72px, 10vw, 128px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  overflow-x: clip;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.04em;
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "palt" 1;
}

body.is-locked {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: 0;
}

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

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

[hidden] {
  display: none !important;
}

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

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

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

.container {
  width: min(100% - var(--gutter) * 2, var(--container));
  margin-inline: auto;
}

.sp-only {
  display: none;
}

@media (max-width: 600px) {
  .sp-only {
    display: inline;
  }
  .pc-only {
    display: none;
  }
}

/* ---------- スクロール出現（JSが動いたときだけ隠す） ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- アコーディオン（高さは grid で開閉） ---------- */
.acc__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s var(--ease);
}

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

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

.acc__icon {
  transition: transform 0.3s var(--ease);
}

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

/* ---------- カレンダー（共通の骨組み） ---------- */
.cal__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}

.cal__wd {
  text-align: center;
  font-size: 13px;
  padding: 4px 0;
}

.cal__day {
  min-height: 56px;
  padding: 6px;
  font-size: 14px;
  line-height: 1.3;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cal__note {
  font-size: 12px;
  line-height: 1.3;
}

@media (max-width: 600px) {
  .cal__day {
    min-height: 46px;
    padding: 4px 3px;
  }
  .cal__note {
    font-size: 11px;
    letter-spacing: 0;
  }
}

/* ---------- 地図 ---------- */
.map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 300px;
  border: 0;
}

/* ---------- ヒーローの文字：読み込み時に順に出る（CSSのみ・JS不要） ---------- */
.hero-in {
  animation: hero-in 0.8s var(--ease) both;
  animation-delay: calc(var(--d, 0) * 0.12s + 0.1s);
}

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

/* ---------- 共通パーツ ---------- */
.section {
  padding-block: var(--section-space);
}

.sec-title {
  font-size: clamp(24px, 3.4vw, 38px);
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: 0.02em;
  margin-bottom: clamp(28px, 4vw, 48px);
}

.sec-title span {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--fire);
  margin-bottom: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 10px 26px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.06em;
  transition:
    background-color 0.25s var(--ease),
    color 0.25s var(--ease),
    border-color 0.25s var(--ease);
}

.btn--fire {
  background: var(--fire);
  color: #1b1a18;
}

.btn--fire:hover {
  background: var(--flour);
}

.btn--ghost {
  border: 1px solid rgba(241, 237, 228, 0.6);
  color: var(--flour);
}

.btn--ghost:hover {
  border-color: var(--fire);
  color: var(--fire);
}

.small-note {
  font-size: 14px;
  color: var(--muted);
  margin-top: 16px;
}

/* ---------- ヘッダー ---------- */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  transition: background-color 0.3s var(--ease);
}

.header.is-scrolled {
  background: rgba(27, 26, 24, 0.94);
}

.header__inner {
  height: var(--header-h);
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  gap: 28px;
}

.logo {
  font-family: var(--font-num);
  font-size: 22px;
  letter-spacing: 0.08em;
  margin-right: auto;
}

.logo b {
  font-weight: 400;
  color: var(--fire);
}

.nav__list {
  display: flex;
  gap: 24px;
  font-size: 14px;
  font-weight: 500;
}

.nav__list a {
  padding: 8px 0;
  transition: color 0.25s var(--ease);
}

.nav__list a:hover {
  color: var(--fire);
}

.header__tel {
  font-family: var(--font-num);
  letter-spacing: 0.08em;
  font-size: 17px;
  padding: 6px 14px;
  border: 1px solid var(--fire);
  color: var(--fire);
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  position: relative;
}

.nav-toggle span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--flour);
  transition: transform 0.3s var(--ease);
}

.nav-toggle span:first-child {
  top: 19px;
}

.nav-toggle span:last-child {
  top: 27px;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

@media (max-width: 960px) {
  .nav-toggle {
    display: block;
  }
  .header__tel {
    display: none;
  }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 0;
    background: var(--bg);
    padding: 16px var(--gutter) 40px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-16px);
    transition:
      opacity 0.3s var(--ease),
      transform 0.3s var(--ease),
      visibility 0.3s;
  }
  .nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .nav__list {
    flex-direction: column;
    gap: 0;
    font-size: 18px;
  }
  .nav__list a {
    display: block;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
  }
}

/* ---------- HERO（全面写真） ---------- */
.hero {
  position: relative;
  min-height: min(100svh, 900px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  animation: hero-zoom 2s var(--ease) both;
}

@keyframes hero-zoom {
  from {
    transform: scale(1.04);
  }
  to {
    transform: none;
  }
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(27, 26, 24, 0.7) 0%, rgba(27, 26, 24, 0.15) 65%),
    linear-gradient(180deg, rgba(27, 26, 24, 0.35) 0%, rgba(27, 26, 24, 0.1) 35%, rgba(27, 26, 24, 0.88) 100%);
}

.hero__inner {
  width: 100%;
  padding: 120px var(--gutter) 120px;
  max-width: 1280px;
  margin-inline: auto;
}

.hero__kicker {
  font-size: 14px;
  letter-spacing: 0.16em;
  color: var(--fire);
  font-weight: 700;
}

.hero__title {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin: 8px 0 18px;
}

.hero__num {
  font-family: var(--font-num);
  font-size: clamp(110px, 18vw, 220px);
  line-height: 0.85;
  letter-spacing: 0;
}

.hero__num small {
  font-family: var(--font-body);
  font-size: 0.2em;
  font-weight: 900;
  margin-left: 6px;
}

.hero__ja {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 900;
  line-height: 1.25;
  padding-bottom: 8px;
}

.hero__lead {
  max-width: 560px;
  font-size: 15px;
  color: #ddd6c8;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero__hours {
  position: absolute;
  right: var(--gutter);
  bottom: 40px;
  display: flex;
  gap: 24px;
  font-size: 14px;
}

.hero__hours span {
  display: block;
  font-family: var(--font-num);
  letter-spacing: 0.12em;
  color: var(--fire);
  font-size: 13px;
}

@media (max-width: 960px) {
  .hero__inner {
    padding-bottom: 150px;
  }
  .hero__hours {
    left: var(--gutter);
    right: auto;
  }
}

@media (max-width: 480px) {
  .hero__actions .btn {
    flex: 1 1 100%;
  }
  .hero__inner {
    padding-bottom: 120px;
  }
  .hero__hours {
    gap: 16px;
    bottom: 28px;
  }
}

/* ---------- 窯と生地の数字 ---------- */
.numbers {
  padding-block: var(--section-space);
  border-bottom: 1px solid var(--line);
}

.numbers__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}

.numbers__grid > div {
  padding: 24px 24px 8px 0;
}

.numbers__grid > div + div {
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

.numbers__grid dt {
  font-size: 14px;
  color: var(--muted);
}

.numbers__grid dd {
  font-family: var(--font-num);
  font-size: clamp(56px, 7vw, 88px);
  line-height: 1.1;
  color: var(--flour);
}

.numbers__grid dd small {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 700;
  margin-left: 4px;
  color: var(--fire);
}

.numbers__grid p {
  font-size: 14px;
  color: #cfc8ba;
  margin-top: 6px;
}

@media (max-width: 900px) {
  .numbers__grid {
    grid-template-columns: 1fr 1fr;
  }
  .numbers__grid > div:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }
  .numbers__grid > div:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 480px) {
  .numbers__grid {
    grid-template-columns: 1fr;
  }
  .numbers__grid > div,
  .numbers__grid > div + div {
    padding: 18px 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

/* ---------- 生地 ---------- */
.dough__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg-2);
}

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

.dough__text {
  padding: clamp(40px, 6vw, 88px) var(--gutter);
  max-width: 640px;
}

.timeline li {
  position: relative;
  padding: 0 0 22px 28px;
  border-left: 1px solid var(--line);
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 6px;
  width: 9px;
  height: 9px;
  background: var(--fire);
  border-radius: 50%;
}

.timeline time {
  font-family: var(--font-num);
  letter-spacing: 0.1em;
  color: var(--fire);
  font-size: 16px;
}

.timeline p {
  font-size: 15px;
}

.dough__note {
  margin-top: 12px;
  padding: 14px 18px;
  background: var(--bg-3);
  font-size: 14px;
}

@media (max-width: 860px) {
  .dough__grid {
    grid-template-columns: 1fr;
  }
  .dough__photo img {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }
}

/* ---------- ピッツァ一覧 ---------- */
.pizza__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px 32px;
  margin-bottom: 36px;
}

.pizza__head .sec-title {
  margin-bottom: 0;
}

.filter {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.filter button {
  min-height: 48px;
  padding: 6px 18px;
  border: 1px solid var(--line);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
  transition:
    background-color 0.25s var(--ease),
    color 0.25s var(--ease);
}

.filter small {
  display: block;
  font-size: 12px;
  font-weight: 400;
  opacity: 0.8;
}

.filter button[aria-pressed="true"] {
  background: var(--flour);
  color: var(--bg);
}

.pizza__feature {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  background: var(--flour);
  color: #1b1a18;
  margin-bottom: 40px;
}

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

.pizza__feature-text {
  padding: clamp(28px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.pizza__feature h3 {
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 900;
  margin-bottom: 10px;
}

.pizza__feature .pizza__price {
  font-family: var(--font-num);
  font-size: 48px;
  color: var(--fire-deep);
  margin-top: 16px;
}

.pizza__no {
  font-family: var(--font-num);
  letter-spacing: 0.1em;
  color: var(--fire);
}

.pizza__price small {
  font-family: var(--font-body);
  font-size: 16px;
  margin-left: 4px;
}

.pizza__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 48px;
}

.pizza__list li {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  grid-template-areas:
    "no name price"
    "no desc price";
  column-gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.pizza__list .pizza__no {
  grid-area: no;
  font-size: 18px;
}

.pizza__list h3 {
  grid-area: name;
  font-size: 18px;
  font-weight: 700;
}

.pizza__list p {
  grid-area: desc;
  font-size: 14px;
  color: var(--muted);
}

.pizza__list .pizza__price {
  grid-area: price;
  font-family: var(--font-num);
  font-size: 24px;
  align-self: center;
}

.pizza__photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 48px;
}

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

.pizza__photos figcaption {
  font-size: 14px;
  color: var(--muted);
  margin-top: 6px;
}

@media (max-width: 860px) {
  .pizza__feature,
  .pizza__list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .pizza__photos {
    grid-template-columns: 1fr 1fr;
  }
  .pizza__photos figure:last-child {
    display: none;
  }
}

/* ---------- 前菜・飲みもの ---------- */
.other {
  background: var(--bg-2);
}

.other__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.price-list > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 16px;
}

.price-list dd {
  font-family: var(--font-num);
  font-size: 20px;
  letter-spacing: 0.04em;
}

.other__photo img {
  aspect-ratio: 9 / 11;
  object-fit: cover;
  width: 100%;
}

@media (max-width: 760px) {
  .other__grid {
    grid-template-columns: 1fr;
  }
  .other__photo img {
    aspect-ratio: 4 / 3;
  }
}

/* ---------- テイクアウト ---------- */
.takeout {
  background: var(--fire);
  color: #1b1a18;
  padding-block: clamp(56px, 8vw, 96px);
}

.takeout .sec-title span {
  color: #1b1a18;
}

.takeout__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.takeout__rules {
  margin: 20px 0 28px;
}

.takeout__rules li {
  padding: 10px 0 10px 22px;
  border-top: 1px solid rgba(27, 26, 24, 0.25);
  position: relative;
  font-size: 15px;
}

.takeout__rules li::before {
  content: "—";
  position: absolute;
  left: 0;
}

.takeout .btn--fire {
  background: #1b1a18;
  color: var(--flour);
}

.takeout img {
  aspect-ratio: 9 / 7;
  object-fit: cover;
  width: 100%;
}

@media (max-width: 760px) {
  .takeout__grid {
    grid-template-columns: 1fr;
  }
  .takeout .btn {
    width: 100%;
  }
}

/* ---------- 席・貸切 ---------- */
.party__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.party__table th,
.party__table td {
  padding: 16px 12px 16px 0;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.party__table th {
  width: 9em;
  color: var(--fire);
  white-space: nowrap;
}

.party__photo img {
  aspect-ratio: 9 / 7;
  object-fit: cover;
  width: 100%;
}

.party__photo figcaption {
  font-size: 14px;
  color: var(--muted);
  margin-top: 8px;
}

.reserve {
  margin-top: clamp(40px, 6vw, 64px);
  padding: 28px;
  border: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.reserve p {
  max-width: 420px;
  font-size: 15px;
}

.reserve__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 760px) {
  .party__grid {
    grid-template-columns: 1fr;
  }
  .party__table th,
  .party__table td {
    display: block;
    width: auto;
    border: 0;
    padding: 0;
  }
  .party__table tr {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }
  .reserve__btns .btn {
    flex: 1 1 100%;
  }
}

/* ---------- 営業時間・アクセス ---------- */
.info__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg-2);
}

.info__text {
  padding: clamp(48px, 7vw, 96px) var(--gutter);
}

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

.info__list dt {
  color: var(--muted);
}

.info__list a {
  text-decoration: underline;
}

.map {
  min-height: 420px;
  filter: grayscale(0.6);
}

@media (max-width: 860px) {
  .info__grid {
    grid-template-columns: 1fr;
  }
  .map {
    min-height: 320px;
  }
}

/* ---------- フッター ---------- */
.footer {
  padding: 40px 0 28px;
  font-size: 14px;
  color: var(--muted);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 32px;
  align-items: baseline;
}

.footer__logo {
  font-family: var(--font-num);
  font-size: 22px;
  letter-spacing: 0.08em;
  color: var(--flour);
}

.footer__logo b {
  font-weight: 400;
  color: var(--fire);
}

.footer a {
  text-decoration: underline;
}

.footer__copy {
  width: 100%;
}

/* ---------- 動きを減らす設定 ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
