@import url("https://fonts.googleapis.com/css2?family=Ephesis&family=Mrs+Saint+Delafield&family=Noto+Sans+JP:wght@400;500;700&family=Noto+Serif+JP:wght@600;700&display=swap");

/*
Theme Name: En table Original Theme
Theme URI: https://example.com/
Author: Your Name
Author URI: https://example.com/
Description: ワインとおばんざいのお店「En table」公式サイト向けオリジナルテーマ
Version: 1.0.0
Text Domain: en-table
*/

:root {
  --bg-base: #f8f3ee;
  --main-bordeaux: #a26f6d;
  --accent-orange: #cfa486;
  --sub-olive: #9aa287;
  --sub-mustard: #c8b281;
  --text-crimson: #8C2727;
  --container: 1000px;
  --lp-center-width: 430px;
  --radius: 12px;
  --space-1: 8px;
  --space-2: 20px;
  --space-3: 24px;
  --space-4: 40px;
  --space-5: 64px;
  --font-base: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  --font-h1: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --font-h2: "Mrs Saint Delafield", "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-base);
  line-height: 1.8;
  color: #3e302b;
  background: var(--bg-base);
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

a {
  color: var(--main-bordeaux);
  text-decoration: none;
}

a:hover {
  opacity: 0.85;
}

.site-wrap {
  width: min(100%, var(--container));
  margin: 0 auto;
  padding: 0 var(--space-2);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(4px);
  background: var(--bg-base);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
}

.site-logo-sp img {
  width: 140px;
  height: auto;
}

.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(139, 37, 34, 0.4);
  background: #fff;
  border-radius: 8px;
  padding: 0 10px;
  cursor: pointer;
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 70;
}

.menu-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--main-bordeaux);
  transition: transform 0.25s ease, opacity 0.2s ease;
  transform-origin: center;
}

body.menu-open .menu-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

body.menu-open .menu-toggle-bar:nth-child(2) {
  opacity: 0;
}

body.menu-open .menu-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: -82%;
  width: min(82%, 320px);
  height: 100dvh;
  background: #fff;
  z-index: 60;
  padding: 90px var(--space-3) var(--space-3);
  transition: right 0.3s ease, opacity 0.3s ease;
  opacity: 0;
  box-shadow: -6px 0 18px rgba(0, 0, 0, 0.08);
}

.mobile-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mobile-nav-close {
  position: absolute;
  top: 14px;
  right: 12px;
  border: 1px solid rgba(139, 37, 34, 0.3);
  background: #fff;
  color: var(--main-bordeaux);
  border-radius: 8px;
  width: 38px;
  height: 38px;
  padding: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.mobile-nav li + li {
  margin-top: 10px;
}

.mobile-nav a {
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid rgba(139, 37, 34, 0.12);
  font-weight: 700;
}

.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  visibility: hidden;
  z-index: 55;
  transition: 0.2s ease;
}

body.menu-open {
  overflow: hidden;
}

body.menu-open .mobile-nav {
  right: 0;
  opacity: 1;
}

body.menu-open .mobile-nav-overlay {
  opacity: 1;
  visibility: visible;
}

.lp-center {
  min-height: 100dvh;
}

.pc-side {
  display: none;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Sections */
.section {
  padding: var(--space-5) 0;
}

.section-title {
  font-family: "Ephesis", "Mrs Saint Delafield", "Noto Serif JP", serif;
  margin: 0 0 var(--space-3);
  font-size: 50px;
  line-height: 1.4;
  color: var(--main-bordeaux);
  letter-spacing: 0.02em;
  font-weight: 400;
  text-align: center;
}

h1 {
  font-family: var(--font-h1);
}

.lead {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.7;
  margin: 0 0 var(--space-2);
}

.text-block {
  margin: 0;
}

/* Concept */
.concept-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
  border-radius: 0;
}

.concept-visual {
  overflow: hidden;
}

.concept-visual-top,
.concept-visual-bottom {
  aspect-ratio: 16 / 9;
}

.concept-visual-middle {
  aspect-ratio: 4 / 3;
}

.concept-visual-top img,
.concept-visual-bottom img {
  border-radius: 0 96px 96px 0;
}

.concept-visual-middle img {
  border-radius: 96px 0 0 96px;
}

.concept-text {
  margin: 35px 0;
  font-size: 1rem;
  line-height: 2;
  color: #545252;
  letter-spacing: 0.02em;
}

.concept-middle {
  position: relative;
  margin-top: 28px;
}

.concept-logo {
  position: absolute;
  left: 0;
  bottom: 14px;
  width: 150px;
  max-width: 40%;
  z-index: 2;
}

.concept-text-bottom {
  margin-top: 16px;
}

.concept-visual-bottom {
  margin-top: 20px;
}

/* FV */
.fv {
  position: relative;
  min-height: 88svh;
  display: flex;
  align-items: flex-end;
  padding: 12px 12px 0;
}

.fv-media {
  position: absolute;
  inset: 5px 12px 0;
  overflow: hidden;
  margin: 0;
  z-index: 0;
  border-radius: 160px 160px 28px 28px;
}

.fv-media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  background: #000;
}

.fv-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  margin: 0 auto;
  padding: 0 0 calc(var(--space-4) + 8px);
}

.fv-main-title {
  margin: 0 auto 10px;
  width: 64%;
  max-width: calc(100% - (var(--space-2) * 2));
  text-align: center;
  background: rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--main-bordeaux);
  letter-spacing: 0.03em;
}

.fv-copy {
  margin: 0 var(--space-2) var(--space-2);
  font-size: 1.125rem;
  line-height: 1.5;
  font-family: var(--font-h1);
  font-weight: 600;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
  text-align: center;
}

.fv-subcopy {
  margin: 0 var(--space-2);
  font-size: 15px;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

/* News */
.news-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(139, 37, 34, 0.15);
}

.news-list li {
  border-bottom: 1px solid rgba(139, 37, 34, 0.15);
}

.news-list a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 0;
}

.news-date {
  font-size: 13px;
  color: var(--sub-olive);
}

.news-archive .section-title {
  margin-bottom: 18px;
}

.news-pagination {
  margin-top: 28px;
}

.news-pagination .nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.news-pagination a,
.news-pagination span {
  display: inline-flex;
  min-width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(162, 111, 109, 0.35);
  color: var(--main-bordeaux);
  background: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.news-pagination .current {
  background: var(--main-bordeaux);
  color: #fff;
  border-color: var(--main-bordeaux);
}

/* Buttons */
.btn {
  display: inline-block;
  min-width: 220px;
  text-align: center;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 700;
  color: #fff;
  background: var(--main-bordeaux);
  border: 1px solid var(--main-bordeaux);
  transition: 0.2s ease;
}

.btn:hover {
  color: var(--main-bordeaux);
  background: transparent;
}

/* Instagram */
.instagram-wrap {
  margin-top: var(--space-2);
}

.instagram-fallback-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.instagram-fallback-item {
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  background: linear-gradient(135deg, #e5e5e5 0%, #f3f3f3 100%);
  border: 1px solid #ddd;
}

/* Shop info */
.shop-grid {
  display: grid;
  gap: var(--space-3);
}

.shop-info-box {
  border: 1px solid rgba(139, 37, 34, 0.15);
  border-radius: var(--radius);
  padding: var(--space-3);
}

.shop-info-box dl {
  margin: 0;
}

.shop-info-box dt {
  font-weight: 700;
  color: var(--main-bordeaux);
}

.shop-info-box dd {
  margin: 0 0 var(--space-2);
}

.map-embed iframe {
  width: 100%;
  min-height: 280px;
  border: 0;
  border-radius: var(--radius);
}

/* Menu page */
.menu-section {
  margin-bottom: var(--space-3);
}

.menu-section-title {
  font-size: 22px;
  margin: 0 0 12px;
  color: var(--main-bordeaux);
}

.menu-page-title {
  margin-bottom: 18px;
}

.menu-paper {
  padding: 4px 0 0;
}

.menu-logo-area {
  display: flex;
  justify-content: flex-end;
  margin: 12px 0 10px;
}

.menu-logo-area img {
  width: 180px;
  height: auto;
}

.menu-block + .menu-block {
  margin-top: 0;
}

.menu-block-head {
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  background: #a26f6d;
  padding: 10px;
}

.menu-block + .menu-block .menu-block-head {
  margin-top: 50px;
}

.menu-block-title {
  margin: 0;
  font-family: var(--font-base);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.3;
  color: #fff;
  text-align: center;
}

.menu-block-note {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}

.menu-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}

.menu-list li {
  margin: 0;
  padding: 2px 2px;
  font-size: 1rem;
  line-height: 1.45;
}

.menu-list-price li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 10px;
}

.menu-item-name {
  display: block;
}

.menu-item-price {
  white-space: nowrap;
}

.menu-gallery {
  margin-top: 42px;
}

.menu-carousel {
  position: relative;
}

.menu-carousel-viewport {
  overflow: hidden;
}

.menu-carousel-track {
  display: flex;
  gap: 0;
  will-change: transform;
  transition: transform 0.35s ease;
}

.menu-carousel-slide {
  flex: 0 0 50%;
  padding: 0 6px;
}

.menu-carousel-slide img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 18px;
  cursor: zoom-in;
}

.menu-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(162, 111, 109, 0.45);
  background: rgba(255, 255, 255, 0.88);
  color: var(--main-bordeaux);
  font-size: 26px;
  line-height: 1;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
}

.menu-carousel-btn-prev {
  left: -2px;
}

.menu-carousel-btn-next {
  right: -2px;
}

.menu-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  z-index: 120;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.menu-lightbox.is-open {
  display: flex;
}

.menu-lightbox-image {
  display: block;
  max-width: min(94vw, 780px);
  max-height: 86vh;
  width: auto;
  height: auto;
  border-radius: 10px;
}

.menu-lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

body.menu-lightbox-open {
  overflow: hidden;
}

/* Footer */
.site-footer {
  padding: var(--space-4) 0;
  border-top: 1px solid rgba(139, 37, 34, 0.12);
}

.site-footer-inner {
  text-align: center;
}

.footer-logo img {
  width: 140px;
}

.copyright {
  display: block;
  margin-top: var(--space-2);
  font-size: 13px;
  color: #7b6a6a;
}

/* WP basic */
.entry-content {
  margin-top: var(--space-3);
}

.entry-back-link {
  margin-top: 32px;
}

/* Desktop */
@media (min-width: 768px) {
  .lp-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, var(--lp-center-width)) 220px;
    justify-content: center;
    gap: 20px;
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
  }

  .lp-center {
    background: var(--bg-base);
  }

  .site-wrap {
    width: 100%;
    max-width: var(--lp-center-width);
  }

  .site-header {
    display: none;
  }

  .menu-toggle {
    display: none;
  }

  .mobile-nav,
  .mobile-nav-overlay {
    display: none;
  }

  .pc-side {
    position: sticky;
    top: 0;
    align-self: stretch;
    height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .pc-side-left {
    text-align: center;
  }

  .pc-side-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    text-align: center;
  }

  .pc-side-nav li + li {
    margin-top: 18px;
  }

  .pc-side-nav a {
    font-size: 16px;
    letter-spacing: 0.06em;
    font-weight: 700;
  }

  .pc-side-right {
    justify-content: center;
    align-items: center;
  }

  .pc-side-logo img {
    width: 180px;
  }

  .fv,
  .fv::after,
  .fv-media {
    border-radius: 160px 160px 28px 28px;
  }

  .fv-media {
    inset: 35px 12px 0;
  }

  .fv-main-title {
    font-size: 15px;
  }

  .fv-subcopy {
    font-size: 16px;
    max-width: 56em;
  }

  .section-title {
    font-size: 70px;
  }

  .news-list a {
    flex-direction: row;
    align-items: baseline;
    gap: var(--space-2);
  }

  .news-date {
    min-width: 7.5em;
  }

  .menu-logo-area img {
    width: 220px;
  }

  .menu-block-title {
    font-size: 16px;
  }

  .menu-block-note {
    font-size: 13px;
  }

  .menu-carousel-slide {
    flex-basis: 40%;
  }

  .menu-carousel-btn-prev {
    left: -12px;
  }

  .menu-carousel-btn-next {
    right: -12px;
  }


}
