/* ============================================
   RESTAURANT SPAINBAR TEMPLATE
   タパスとパエリアのスペインバル — 白壁 × タイルの青 × サフランの黄
   傾けてずらした写真・タイル柄の帯・串の色で値段・時間割
============================================ */

:root {
  /* Color */
  --bg: #f7f4ee; /* 白壁（地） */
  --white: #fffdf9;
  --blue: #1f4fa3; /* タイルの青（メイン） */
  --blue-deep: #163a7a;
  --saffron: #e8a317; /* サフランの黄 */
  --red: #b8322a; /* 赤い串・ほんの少し */
  --ink: #1d2433;
  --muted: #5f6676;
  --line: rgba(29, 36, 51, 0.15);
  --accent: var(--blue);

  /* Font */
  --font-body: "M PLUS 1p", "Hiragino Sans", sans-serif;
  --font-head: "Dela Gothic One", "M PLUS 1p", sans-serif; /* 見出し */
  --font-es: "Fraunces", Georgia, 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-es);
  font-style: italic;
  font-size: 22px;
  color: var(--blue);
}

.sec-head__ja {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: clamp(24px, 3.4vw, 36px);
  line-height: 1.4;
  margin: 2px 0 14px;
}

.sec-head p,
.paella__text > p,
.vino__grid p {
  color: var(--muted);
  font-size: 15px;
}

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

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

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

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

.btn--ghost:hover,
.btn--line:hover {
  background: var(--ink);
  color: #fff;
}

/* タイル柄（CSSだけの静的な模様） */
.tile-band {
  height: 56px;
  background-color: var(--white);
  background-image:
    radial-gradient(circle at 50% 50%, var(--saffron) 0 5px, transparent 6px),
    radial-gradient(circle at 0 0, var(--blue) 0 14px, transparent 15px),
    radial-gradient(circle at 100% 0, var(--blue) 0 14px, transparent 15px),
    radial-gradient(circle at 0 100%, var(--blue) 0 14px, transparent 15px),
    radial-gradient(circle at 100% 100%, var(--blue) 0 14px, transparent 15px),
    linear-gradient(45deg, transparent 46%, rgba(31, 79, 163, 0.35) 47% 53%, transparent 54%),
    linear-gradient(-45deg, transparent 46%, rgba(31, 79, 163, 0.35) 47% 53%, transparent 54%);
  background-size: 56px 56px;
  border-block: 3px solid var(--blue);
}

/* ---------- ヘッダー ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  transition: box-shadow 0.3s var(--ease);
}

.header.is-scrolled {
  box-shadow: 0 1px 0 var(--line);
}

.header__inner {
  height: var(--header-h);
  width: min(100% - var(--gutter) * 2, 1280px);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-es);
  font-size: 24px;
  font-weight: 600;
}

.logo b {
  color: var(--blue);
  font-weight: 600;
}

.logo__tile {
  width: 30px;
  height: 30px;
  background:
    radial-gradient(circle, var(--saffron) 0 4px, transparent 5px),
    conic-gradient(var(--blue) 0 25%, var(--white) 0 50%, var(--blue) 0 75%, var(--white) 0);
  border: 2px solid var(--blue);
}

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

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

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

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

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

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

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

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

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

@media (max-width: 960px) {
  .nav-toggle {
    display: block;
  }
  .nav {
    position: fixed;
    inset: var(--header-h) 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: 1px solid var(--line);
  }
}

/* ---------- HERO（斜め・ずらし） ---------- */
.hero__inner {
  width: min(100% - var(--gutter) * 2, 1240px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 40px;
  align-items: center;
  padding: clamp(32px, 5vw, 64px) 0 clamp(48px, 7vw, 88px);
}

.hero__open {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
}

.hero__open span {
  font-family: var(--font-es);
  font-style: italic;
  background: var(--saffron);
  padding: 2px 12px;
  border-radius: 999px;
  font-size: 15px;
}

.hero__title {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: clamp(32px, 5vw, 62px);
  line-height: 1.3;
  margin: 18px 0;
}

.hero__title span {
  display: inline-block;
}

.hero__title span:last-child {
  color: var(--blue);
}

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

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

/* 写真は少しずつ傾けて重ねる（動かさない） */
.hero__photos {
  position: relative;
  height: clamp(380px, 44vw, 540px);
}

.hero__ph {
  position: absolute;
  background: #fff;
  padding: 8px;
  box-shadow: 0 10px 30px rgba(29, 36, 51, 0.14);
}

.hero__ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__ph--1 {
  width: 72%;
  height: 62%;
  right: 0;
  top: 0;
  transform: rotate(2.5deg);
}

.hero__ph--2 {
  width: 52%;
  height: 44%;
  left: 0;
  bottom: 4%;
  transform: rotate(-4deg);
  z-index: 2;
}

.hero__ph--3 {
  width: 32%;
  aspect-ratio: 1;
  right: 8%;
  bottom: 0;
  transform: rotate(6deg);
  z-index: 3;
  border-radius: 0 0 0 0;
}

@media (max-width: 860px) {
  .hero__inner {
    grid-template-columns: 1fr;
  }
  .hero__photos {
    height: 340px;
  }
}

@media (max-width: 480px) {
  .hero__photos {
    height: 280px;
  }
  .hero__ph {
    padding: 5px;
  }
  .hero__ph--1 {
    width: 82%;
  }
  .hero__ph--2 {
    width: 58%;
  }
  .hero__ph--3 {
    width: 36%;
    right: 2%;
  }
  .hero__actions .btn {
    flex: 1 1 100%;
  }
}

/* ---------- ピンチョス ---------- */
.skewer-key {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-bottom: 24px;
  font-weight: 700;
  font-size: 15px;
}

/* 串の色：細長い棒＋先の丸 */
.skewer-key i,
.pintxos__list i {
  display: inline-block;
  width: 34px;
  height: 4px;
  border-radius: 2px;
  vertical-align: middle;
  margin-right: 8px;
  position: relative;
}

.skewer-key i::after,
.pintxos__list i::after {
  content: "";
  position: absolute;
  right: -2px;
  top: -4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: inherit;
}

.k-blue {
  background: var(--blue);
}

.k-yellow {
  background: var(--saffron);
}

.k-red {
  background: var(--red);
}

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

.pintxos__list {
  background: var(--white);
  border: 2px solid var(--ink);
  padding: 8px 24px;
}

.pintxos__list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
  font-weight: 500;
}

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

.pintxos__list i {
  flex: none;
  margin-right: 12px;
}

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

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

.pintxos__photos figure:nth-child(2) {
  margin-left: 15%;
}

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

.pintxos__photos figcaption {
  font-size: 14px;
  margin-top: 6px;
}

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

@media (max-width: 480px) {
  .pintxos__list {
    padding: 4px 16px;
  }
  .pintxos__photos figure:nth-child(2) {
    margin-left: 0;
  }
}

/* ---------- パエリア ---------- */
.paella {
  background: var(--blue);
  color: #fff;
  padding-block: var(--section-space);
}

.paella .sec-head__es {
  color: var(--saffron);
}

.paella__text > p {
  color: #d9e2f3;
}

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

.paella__photo img {
  aspect-ratio: 1;
  object-fit: cover;
  width: 100%;
  border-radius: 50%;
  border: 10px solid var(--saffron);
}

.paella__table {
  margin: 24px 0 16px;
}

.paella__table th,
.paella__table td {
  padding: 12px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  text-align: left;
  font-size: 15px;
}

.paella__table thead th {
  font-size: 13px;
  font-weight: 400;
  color: #c9d5ee;
}

.paella__table td,
.paella__table thead th:not(:first-child) {
  text-align: right;
  font-family: var(--font-es);
  font-size: 18px;
  white-space: nowrap;
}

.paella__table thead th:not(:first-child) {
  font-family: var(--font-body);
  font-size: 13px;
}

.paella__note {
  font-size: 14px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.1);
  border-left: 4px solid var(--saffron);
}

@media (max-width: 760px) {
  .paella__grid {
    grid-template-columns: 1fr;
  }
  .paella__photo {
    max-width: 320px;
    margin-inline: auto;
  }
}

/* ---------- 時間割 ---------- */
.day {
  position: relative;
  height: 150px;
  background: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px calc(100% / 13));
  border-block: 2px solid var(--ink);
}

.day__slot {
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: calc((var(--from) - 11) / 13 * 100%);
  width: calc((var(--to) - var(--from)) / 13 * 100% - 4px);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 14px;
  line-height: 1.5;
  overflow: hidden;
}

.day__slot time {
  font-family: var(--font-es);
  font-size: 15px;
}

.day__slot b {
  font-size: 16px;
}

.day__slot--lunch {
  background: var(--saffron);
}

.day__slot--rest {
  background: repeating-linear-gradient(45deg, #e9e5dc 0 6px, var(--white) 6px 12px);
  color: var(--muted);
}

.day__slot--bar {
  background: var(--blue);
  color: #fff;
}

.day__slot--dinner {
  background: var(--ink);
  color: #fff;
}

.day__scale {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
  padding-right: 4%;
}

@media (max-width: 860px) {
  .day {
    height: auto;
    background: none;
    border: 0;
    display: grid;
    gap: 8px;
  }
  .day__slot {
    position: static;
    width: auto;
  }
  .day__scale {
    display: none;
  }
}

/* ---------- ワイン ---------- */
.vino {
  padding-bottom: var(--section-space);
}

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

.vino__list {
  margin-top: 20px;
}

.vino__list > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.vino__list dd {
  font-family: var(--font-es);
  font-size: 18px;
  white-space: nowrap;
}

.vino__photo img {
  aspect-ratio: 9 / 7;
  object-fit: cover;
  width: 100%;
  transform: rotate(-2deg);
  border: 8px solid #fff;
  box-shadow: 0 10px 30px rgba(29, 36, 51, 0.14);
}

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

/* ---------- 貸切 ---------- */
.fiesta {
  background: var(--white);
}

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

.fiesta__card ul {
  margin: 8px 0 28px;
}

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

.fiesta__card b {
  display: inline-block;
  min-width: 5.5em;
  color: var(--blue);
}

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

.fiesta__photo figcaption {
  font-size: 14px;
  margin-top: 6px;
}

@media (max-width: 760px) {
  .fiesta__grid {
    grid-template-columns: 1fr;
  }
  .fiesta__card b {
    display: block;
  }
}

/* ---------- アクセス ---------- */
.info__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  padding-block: var(--section-space);
}

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

.info__list dt {
  color: var(--blue);
  font-weight: 700;
}

.info__list a {
  text-decoration: underline;
}

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

.map {
  min-height: 360px;
}

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

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

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

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

.footer__logo b {
  color: var(--saffron);
  font-weight: 600;
}

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