/* ============================================
   RESTAURANT MEXICAN TEMPLATE
   タコス食堂 — テラコッタ × ターコイズ × マリーゴールド
   縦長の写真三連のヒーロー・サルサの辛さ目盛り・土壁のような地
============================================ */

:root {
  /* Color */
  --bg: #f3e6d6; /* 土壁（地） */
  --adobe: #ead6be;
  --white: #fbf5ec;
  --terra: #b5532f; /* テラコッタ（メイン） */
  --terra-deep: #8f3e20;
  --turq: #2a8c8c; /* ターコイズ */
  --turq-deep: #1d6b6b;
  --marigold: #f0a830; /* マリーゴールド */
  --ink: #3a2418;
  --muted: #74594a;
  --line: rgba(58, 36, 24, 0.18);
  --accent: var(--terra);

  /* Font */
  --font-body: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", sans-serif;
  --font-display: "Bowlby One", "Arial Black", sans-serif; /* 店名・スペイン語 */
  --font-hand: "Yusei Magic", "Zen Maru Gothic", sans-serif; /* 手書きの札 */

  --container: 1160px;
  --gutter: clamp(16px, 4.5vw, 48px);
  --header-h: 66px;
  --section-space: clamp(72px, 10vw, 120px);
  --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-head {
  max-width: 640px;
  margin-bottom: clamp(28px, 4vw, 44px);
}

.sec-head__es {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--turq);
  letter-spacing: 0.02em;
}

.sec-head__ja {
  font-size: clamp(24px, 3.2vw, 34px);
  font-weight: 900;
  line-height: 1.4;
  margin: 4px 0 12px;
}

.sec-head p,
.more p,
.drinks p,
.days p,
.togo p {
  font-size: 15px;
  color: var(--muted);
}

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

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

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

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

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

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

.btn--line:hover {
  background: var(--ink);
  color: var(--white);
}

.plist > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 2px dotted var(--line);
  font-size: 15px;
  font-weight: 500;
}

.plist dd {
  font-weight: 900;
  color: var(--terra);
  white-space: nowrap;
}

/* ---------- ヘッダー ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 4px solid var(--terra);
}

.header__inner {
  height: var(--header-h);
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 20px;
}

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

.logo__sun {
  width: 32px;
  height: 32px;
  fill: var(--marigold);
  stroke: var(--marigold);
}

.nav__list {
  display: flex;
  gap: 20px;
  font-size: 14px;
  font-weight: 700;
}

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

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

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  position: relative;
  border-radius: 8px;
  background: var(--turq);
}

.nav-toggle span {
  position: absolute;
  left: 13px;
  right: 13px;
  height: 3px;
  border-radius: 2px;
  background: #fff;
  transition: transform 0.3s var(--ease);
}

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

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

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

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

@media (max-width: 1000px) {
  .nav-toggle {
    display: block;
  }
  .nav {
    position: fixed;
    inset: calc(var(--header-h) + 4px) 0 0;
    background: var(--bg);
    padding: 16px var(--gutter) 40px;
    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: 2px dotted var(--line);
  }
}

/* ---------- HERO（写真三連＋店名） ---------- */
.hero__triptych {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 8px;
  height: clamp(320px, 46vw, 560px);
}

.hero__triptych figure {
  overflow: hidden;
  border-radius: 999px 999px 0 0; /* 上だけアーチ（日干しれんがの窓） */
}

.hero__triptych img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: hero-zoom 1.8s var(--ease) both;
}

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

.hero__name {
  width: min(100% - var(--gutter) * 2, 1240px);
  margin-inline: auto;
  padding: clamp(24px, 4vw, 40px) 0 clamp(48px, 7vw, 80px);
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(48px, 10vw, 140px);
  line-height: 0.95;
  color: var(--terra);
  letter-spacing: -0.01em;
}

.hero__sub {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 48px;
  margin-top: 24px;
  align-items: start;
}

.hero__catch {
  font-size: clamp(22px, 2.8vw, 32px);
  font-weight: 900;
  line-height: 1.45;
  grid-row: span 2;
}

.hero__catch span {
  display: inline-block;
}

.hero__lead {
  font-size: 15px;
  color: var(--muted);
}

.hero__hours {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero__hours li {
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 4px 12px;
  font-size: 14px;
  font-weight: 700;
}

.hero__hours b {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--turq);
  margin-right: 6px;
  font-size: 12px;
}

@media (max-width: 760px) {
  .hero__sub {
    grid-template-columns: 1fr;
  }
  .hero__catch {
    grid-row: auto;
  }
}

@media (max-width: 480px) {
  .hero__triptych {
    height: 260px;
    gap: 5px;
    padding: 5px;
  }
}

/* ---------- タコス ---------- */
.tacos {
  background: var(--white);
}

.tacos__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: start;
}

.tacos__list {
  counter-reset: taco;
  border-top: 3px solid var(--ink);
}

.tacos__list li {
  counter-increment: taco;
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 2px dotted var(--line);
}

.tacos__list li::before {
  content: counter(taco);
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--marigold);
  font-family: var(--font-display);
  font-size: 14px;
}

.tacos__name {
  font-size: 17px;
  font-weight: 900;
}

.tacos__name small {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}

.tacos__price {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--terra);
}

.tacos__price::after {
  content: "円";
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  margin-left: 2px;
}

.tacos__side figure img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
  border-radius: 12px;
}

.tacos__side figcaption {
  font-family: var(--font-hand);
  font-size: 16px;
  margin-top: 6px;
}

.tacos__set {
  margin-top: 24px;
  padding: 18px 20px;
  background: var(--turq);
  color: #fff;
  border-radius: 12px;
  font-size: 15px;
}

.tacos__set-title {
  font-family: var(--font-hand);
  font-size: 18px;
  margin-bottom: 4px;
}

.tacos__set b {
  color: var(--marigold);
  font-size: 1.2em;
  white-space: nowrap;
}

.tacos__photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: clamp(40px, 6vw, 64px);
}

.tacos__photos img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
  border-radius: 12px;
}

.tacos__photos figcaption {
  font-family: var(--font-hand);
  font-size: 16px;
  margin-top: 6px;
}

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

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

/* ---------- サルサ ---------- */
.salsa {
  background: var(--terra);
  color: #fff;
  padding-block: var(--section-space);
}

.salsa .sec-head__es {
  color: var(--marigold);
}

.salsa .sec-head p {
  color: #f6dccd;
}

.salsa__list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.salsa__list li {
  background: var(--white);
  color: var(--ink);
  border-radius: 12px;
  padding: 20px 16px 18px;
  text-align: center;
}

/* サルサの小鉢（色だけで表現） */
.salsa__jar {
  display: block;
  width: 64px;
  height: 40px;
  margin: 0 auto 12px;
  background: var(--c);
  border-radius: 0 0 32px 32px;
  border-top: 6px solid #d9c2a6;
}

.salsa__list h3 {
  font-size: 16px;
  font-weight: 900;
}

.salsa__list p {
  font-size: 14px;
  color: var(--muted);
  min-height: 3em;
}

.heat {
  display: inline-flex;
  gap: 4px;
  margin-top: 10px;
}

.heat i {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--terra);
}

.heat i.on {
  background: var(--terra);
}

@media (max-width: 960px) {
  .salsa__list {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 560px) {
  .salsa__list {
    grid-template-columns: 1fr;
  }
  .salsa__list li {
    display: grid;
    grid-template-columns: 56px 1fr;
    grid-template-areas:
      "jar name"
      "jar desc"
      "jar heat";
    text-align: left;
    column-gap: 14px;
    padding: 14px 16px;
  }
  .salsa__jar {
    grid-area: jar;
    width: 52px;
    height: 32px;
    margin: 0;
    align-self: center;
  }
  .salsa__list h3 {
    grid-area: name;
  }
  .salsa__list p {
    grid-area: desc;
    min-height: 0;
  }
  .heat {
    grid-area: heat;
    margin-top: 4px;
  }
}

/* ---------- ブリトー・ナチョス ---------- */
.more__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.more__photo img {
  aspect-ratio: 9 / 7;
  object-fit: cover;
  width: 100%;
  border-radius: 12px;
}

.more .plist {
  margin-top: 8px;
}

.more__sub {
  margin-top: 28px;
}

.more__sub img {
  aspect-ratio: 5 / 3;
  object-fit: cover;
  width: 100%;
  border-radius: 12px;
}

.more__sub figcaption {
  font-family: var(--font-hand);
  font-size: 15px;
  margin-top: 6px;
}

@media (max-width: 760px) {
  .more__grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- ドリンク ---------- */
.drinks {
  background: var(--turq);
  color: #fff;
  padding-block: var(--section-space);
}

.drinks .sec-head__es {
  color: var(--marigold);
}

.drinks p {
  color: #d5eeee;
}

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

.plist--light {
  margin-top: 20px;
}

.plist--light > div {
  border-bottom-color: rgba(255, 255, 255, 0.3);
}

.plist--light dd {
  color: var(--marigold);
}

.drinks__photo img {
  aspect-ratio: 7 / 9;
  object-fit: cover;
  width: 100%;
  border-radius: 999px 999px 12px 12px;
}

@media (max-width: 760px) {
  .drinks__grid {
    grid-template-columns: 1fr;
  }
  .drinks__photo {
    max-width: 300px;
  }
}

/* ---------- お持ち帰り・貸切 ---------- */
.togo__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}

.togo__card {
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: 16px;
  padding: clamp(24px, 4vw, 36px);
}

.togo__card--alt {
  background: var(--adobe);
}

.togo__card ul {
  margin: 16px 0 24px;
}

.togo__card li {
  padding: 8px 0 8px 22px;
  position: relative;
  font-size: 15px;
  border-bottom: 2px dotted var(--line);
}

.togo__card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 17px;
  width: 10px;
  height: 10px;
  background: var(--marigold);
  border-radius: 50%;
}

.togo__card figure {
  margin: 16px 0 20px;
}

.togo__card figure img {
  aspect-ratio: 5 / 3;
  object-fit: cover;
  width: 100%;
  border-radius: 10px;
}

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

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

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

/* ---------- 営業日 ---------- */
.days {
  background: var(--white);
}

.days__grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(28px, 5vw, 64px);
}

.cal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.cal__head p {
  font-size: 20px;
  font-weight: 900;
}

.cal__head button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--turq);
  color: #fff;
  font-size: 22px;
}

.cal__day {
  background: var(--bg);
  border-radius: 6px;
}

.cal__day.is-empty {
  background: none;
}

.cal__day.is-closed {
  background: var(--terra);
  color: #fff;
}

.cal__day.is-special {
  background: var(--marigold);
}

.cal__day.is-today {
  outline: 3px solid var(--turq);
  outline-offset: -3px;
}

.cal__wd.is-sun {
  color: var(--terra);
}

.cal__wd.is-sat {
  color: var(--turq);
}

@media (max-width: 760px) {
  .days__grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- アクセス ---------- */
.info {
  padding-block: var(--section-space);
}

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

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

.info__list dt {
  font-weight: 900;
  color: var(--turq-deep);
}

.info__list a {
  text-decoration: underline;
}

.map {
  min-height: 340px;
  border-radius: 16px;
  overflow: hidden;
  border: 3px solid var(--ink);
}

@media (max-width: 760px) {
  .info__grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- フッター ---------- */
.footer {
  background: var(--ink);
  color: #e8d8c6;
  padding: 36px 0 26px;
  font-size: 14px;
  border-top: 8px solid var(--marigold);
}

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

.footer__logo {
  font-family: var(--font-display);
  font-size: 20px;
  color: #fff;
}

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

.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;
  }
}
