/* ============================================
   RESTAURANT RAMEN TEMPLATE
   中華そば — 黄と黒、赤をひとさじ。斜めに切って、ずらす
   ============================================ */

:root {
  /* 色 */
  --ki: #f4c400; /* 黄 */
  --ki-light: #fff4c2;
  --kuro: #141414;
  --aka: #d7261e;
  --shiro: #ffffff;
  --gray: #5a5650;
  --line: #e2dccb;

  --bg: var(--shiro);
  --text: var(--kuro);
  --accent: var(--aka);
  --nav-bg: var(--ki);
  --nav-fg: var(--kuro);

  /* 文字 */
  --font-head: "Potta One", "Hiragino Sans", sans-serif;
  --font-body: "M PLUS 1p", "Hiragino Sans", sans-serif;

  --header-h: 64px;
  --max-w: 1160px;
}

/* ============================================
   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;
  }
}

/* ============================================
   全体
   ============================================ */
body {
  font-weight: 500;
}

.section {
  padding: 96px 0;
}

.sec-title {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: clamp(30px, 4.4vw, 50px);
  line-height: 1.3;
}

.sec-title span {
  display: inline-block;
  margin-right: 12px;
  padding: 0 10px;
  background: var(--aka);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.4em;
  vertical-align: 0.5em;
  transform: skewX(-10deg);
}

.sec-lead {
  margin-top: 12px;
  color: var(--gray);
}

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

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

/* ============================================
   ヘッダー
   ============================================ */
.site-header {
  background: var(--kuro);
  color: #fff;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ki);
  color: var(--kuro);
  font-family: var(--font-head);
  font-size: 22px;
}

.brand__name {
  font-family: var(--font-head);
  font-size: 24px;
  white-space: nowrap;
}

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

.site-nav a {
  font-weight: 700;
  font-size: 15px;
}

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

.header-status {
  font-size: 13px;
  white-space: nowrap;
}

.header-status span {
  margin-right: 6px;
  padding: 2px 8px;
  background: var(--aka);
  font-weight: 800;
}

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

@media (max-width: 899px) {
  .site-nav a {
    font-family: var(--font-head);
    font-size: 30px;
    border-bottom: 2px solid var(--kuro);
  }
}

/* ============================================
   Hero：斜めに切った黄色と、ずらした写真
   ============================================ */
.hero {
  position: relative;
  padding-top: var(--header-h);
  background: var(--ki);
  overflow: hidden;
  display: grid;
}

.hero__text {
  position: relative;
  z-index: 2;
  padding: 40px 20px 32px;
}

.hero__tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--kuro);
  color: var(--ki);
  font-weight: 800;
  font-size: 14px;
  transform: skewX(-10deg);
}

.hero__name {
  display: block;
  margin-top: 12px;
  font-family: var(--font-head);
  font-weight: 400;
  font-size: clamp(72px, 13vw, 168px);
  line-height: 1;
  letter-spacing: -0.02em;
}

.hero__catch {
  display: block;
  margin-top: 18px;
  font-weight: 800;
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.5;
}

.hero__meta {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero__meta li {
  padding: 4px 12px;
  border: 2px solid var(--kuro);
  font-weight: 800;
  font-size: 14px;
}

.hero__photo img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  clip-path: polygon(0 12%, 100% 0, 100% 100%, 0 100%);
}

.hero__sub {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 3;
  padding: 10px 16px;
  background: var(--aka);
  color: #fff;
  font-weight: 800;
  transform: rotate(-4deg);
}

.hero__sub b {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 20px;
  margin-right: 4px;
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    min-height: 100svh;
    align-items: center;
  }

  .hero::before {
    /* 斜めの黒い帯（動かない飾り） */
    content: "";
    position: absolute;
    left: 44%;
    top: 0;
    bottom: 0;
    width: 90px;
    background: var(--kuro);
    transform: skewX(-12deg);
    z-index: 1;
  }

  .hero__text {
    padding: 48px 0 64px max(40px, calc((100vw - var(--max-w)) / 2));
  }

  .hero__photo {
    position: absolute;
    right: 0;
    top: var(--header-h);
    bottom: 0;
    width: 54%;
  }

  .hero__photo img {
    aspect-ratio: auto;
    clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%);
  }

  .hero__sub {
    right: 40px;
    bottom: 40px;
    font-size: 18px;
  }
}

/* ============================================
   券売機
   ============================================ */
.kenbaiki__grid {
  display: grid;
  gap: 40px;
}

.ticket-info {
  margin-top: 28px;
  padding: 20px 22px;
  background: var(--ki-light);
  border-left: 6px solid var(--ki);
}

.ticket-info__name {
  font-family: var(--font-head);
  font-size: 26px;
}

.ticket-info__text {
  margin-top: 6px;
  color: #3a3733;
}

.machine {
  background: #2b2b2b;
  border-radius: 10px;
  padding: 18px;
  box-shadow: inset 0 0 0 4px #3b3b3b;
}

.machine__head {
  margin-bottom: 12px;
  padding: 6px 0;
  background: var(--kuro);
  color: var(--ki);
  text-align: center;
  font-family: var(--font-head);
  letter-spacing: 0.4em;
}

.machine__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.tk {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2px;
  min-height: 64px;
  padding: 8px 6px;
  background: #fff;
  color: var(--kuro);
  font-weight: 800;
  font-size: 15px;
  line-height: 1.3;
  border-radius: 4px;
  border-bottom: 4px solid #bdb6a3;
  transition: transform 0.12s ease, border-color 0.12s ease, background-color 0.2s ease;
}

.tk b {
  font-size: 13px;
  color: var(--aka);
}

.tk b::after {
  content: "円";
}

.tk:active {
  transform: translateY(2px);
  border-bottom-width: 2px;
}

.tk--main {
  background: var(--ki);
  border-bottom-color: #b38f00;
}

.tk--red {
  background: var(--aka);
  color: #fff;
  border-bottom-color: #8f1913;
}

.tk--red b {
  color: #fff;
}

.tk--dark {
  background: #555;
  color: #fff;
  border-bottom-color: #333;
}

.tk--dark b {
  color: var(--ki);
}

.tk.is-active {
  outline: 3px solid var(--ki);
  outline-offset: 2px;
}

.tk--main.is-active {
  outline-color: #fff;
}

.machine__foot {
  margin-top: 12px;
  color: #ddd;
  font-size: 14px;
  text-align: center;
}

.bowls {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

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

.bowls figcaption {
  margin-top: 6px;
  font-weight: 800;
  font-size: 14px;
}

.bowls figure:nth-child(2) {
  transform: translateY(24px);
}

@media (min-width: 600px) {
  .machine__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .tk--main {
    grid-column: span 2;
    min-height: 80px;
    font-size: 18px;
  }
}

@media (min-width: 900px) {
  .kenbaiki__grid {
    grid-template-columns: 1fr 1.2fr;
    gap: 56px;
    align-items: start;
  }
}

/* ============================================
   お好み
   ============================================ */
.okonomi {
  background: var(--kuro);
  color: #fff;
}

.okonomi .sec-lead {
  color: #c9c4b8;
}

.okonomi__rows {
  margin-top: 32px;
  display: grid;
  gap: 12px;
}

.okonomi__row {
  display: grid;
  gap: 10px;
  padding: 16px;
  background: #222;
}

.okonomi__row dt {
  font-weight: 800;
  color: var(--ki);
}

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

.okonomi__row span {
  padding: 6px 14px;
  border: 2px solid #555;
  font-weight: 700;
  font-size: 15px;
}

.okonomi__row span.is-std {
  background: var(--ki);
  border-color: var(--ki);
  color: var(--kuro);
}

.okonomi__tip {
  margin-top: 20px;
  font-weight: 700;
}

@media (min-width: 768px) {
  .okonomi__row {
    grid-template-columns: 140px 1fr;
    align-items: center;
  }
}

/* ============================================
   スープ
   ============================================ */
.soup {
  display: grid;
  background: var(--ki);
}

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

.soup__body {
  padding: 56px 20px;
}

.soup__steps {
  margin: 24px 0 16px;
  border-top: 3px solid var(--kuro);
}

.soup__steps li {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(20, 20, 20, 0.25);
  font-weight: 700;
}

.soup__steps b {
  color: var(--aka);
  font-weight: 800;
}

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

  .soup__photo img {
    clip-path: polygon(0 0, 100% 0, 88% 100%, 0 100%);
  }

  .soup__body {
    padding: 96px 56px 96px 24px;
    max-width: 600px;
  }
}

/* ============================================
   並び方
   ============================================ */
.narabi__grid {
  display: grid;
  gap: 40px;
}

.rules {
  margin-top: 24px;
  counter-reset: r;
}

.rules li {
  counter-increment: r;
  position: relative;
  padding: 14px 0 14px 48px;
  border-bottom: 2px dotted var(--line);
  font-weight: 700;
}

.rules li::before {
  content: counter(r);
  position: absolute;
  left: 0;
  top: 12px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: var(--kuro);
  color: var(--ki);
  font-family: var(--font-head);
}

.queue {
  background: var(--ki-light);
  padding: 16px;
  border: 3px solid var(--kuro);
}

.queue svg {
  width: 100%;
  height: auto;
}

.q-label {
  font-family: var(--font-head);
  font-size: 22px;
  fill: var(--kuro);
}

.q-label--w {
  fill: var(--ki);
}

.q-label--r {
  fill: var(--aka);
  font-size: 18px;
}

.q-small {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 14px;
  fill: var(--kuro);
}

.q-small--r {
  fill: var(--aka);
  font-size: 12px;
}

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

/* ============================================
   限定と持ち帰り
   ============================================ */
.gentei {
  padding-top: 0;
}

.gentei__grid {
  display: grid;
  gap: 16px;
}

.gentei__card {
  padding: 28px 24px;
  border: 3px solid var(--kuro);
}

.gentei__card--yellow {
  background: var(--ki);
}

.gentei__day {
  font-weight: 800;
  color: var(--aka);
}

.gentei__day b {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 48px;
  line-height: 1;
}

.gentei__card h3 {
  margin: 6px 0 10px;
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 26px;
}

.gentei__card .btn {
  margin-top: 16px;
}

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

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

/* ============================================
   営業・場所
   ============================================ */
.access {
  background: var(--ki-light);
}

.access__grid {
  display: grid;
  gap: 40px;
}

.news {
  margin: 24px 0;
  background: var(--kuro);
  color: #fff;
  padding: 12px 18px;
}

.news li {
  padding: 8px 0;
  font-size: 15px;
}

.news li + li {
  border-top: 1px dashed #555;
}

.news time {
  color: var(--ki);
  font-weight: 800;
  margin-right: 10px;
}

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

.access__dl dt {
  font-weight: 800;
}

.btns {
  margin-top: 24px;
}

.access__map iframe {
  width: 100%;
  height: 100%;
  min-height: 380px;
  border: 3px solid var(--kuro);
}

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

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

/* ============================================
   フッター
   ============================================ */
.site-footer {
  background: var(--kuro);
  color: #c9c4b8;
  padding: 40px 0;
  font-size: 14px;
  border-top: 8px solid var(--ki);
}

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

.site-footer__name {
  font-family: var(--font-head);
  font-size: 22px;
  color: var(--ki);
}

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

/* メニューを開いたとき（黄色の上）は、閉じるボタンを黒に */
.nav-open .nav-toggle {
  color: var(--kuro);
}
