/* ===== Bar Hideout — .hideout scoped design CSS ===== */

.hideout {
  --bg-primary: #0D0D0D;
  --bg-secondary: #1A1A1A;
  --bg-header: rgba(13, 13, 13, 0.95);
  --text-primary: #F5F0EB;
  --text-secondary: #C8C0B8;
  --accent: #B82B2B;
  --navy: #1B2A4A;
  --border-subtle: #2A2A2A;
  --overlay: rgba(0, 0, 0, 0.5);
  --overlay-dark: rgba(0, 0, 0, 0.7);
  --font-serif: 'Noto Serif JP', serif;
  --font-script: 'Great Vibes', cursive;
}

/* ===== SWELL overrides for .hideout pages ===== */
/* body itself keeps SWELL's white bg; override it via :has() */
body:has(.has-hideout) {
  background-color: #0D0D0D !important;
}

/* SWELL puts body_class on #body_wrap, not <body> */
.has-hideout {
  background-color: #0D0D0D !important;
  scroll-behavior: smooth;
  overflow-x: clip;
  --color_main: #B82B2B;
  --color_link: #F5F0EB;
  --color_text: #F5F0EB;
  --color_bg: #0D0D0D;
  --color_main_thin: rgba(184, 43, 43, 0.05);
}

/* Hide SWELL head bar (tagline + RSS icon) */
.has-hideout .l-header__bar {
  display: none !important;
}

/* Hide SWELL back-to-top button */
.has-hideout .p-fixBtnWrap {
  display: none !important;
}

/* Hide SWELL RSS icon */
.has-hideout .c-iconList__item.-rss {
  display: none !important;
}

.has-hideout .l-header {
  background: transparent !important;
  transition: background 0.5s ease;
}

/* Hide SWELL fixed header — .l-header is already sticky */
.has-hideout .l-fixHeader,
.has-hideout .p-fixHeader {
  display: none !important;
}

.has-hideout .l-header.-scrolled {
  background: rgba(13, 13, 13, 0.95) !important;
}

.has-hideout .l-header__logo a,
.has-hideout .c-gnav a,
.has-hideout .l-header__menuBtn .c-iconBtn,
.has-hideout .l-fixHeader .l-header__logo a,
.has-hideout .l-fixHeader .c-gnav a,
.has-hideout .l-fixHeader .c-iconBtn {
  color: #F5F0EB !important;
}

.has-hideout .l-header__logo a {
  font-family: 'Great Vibes', cursive !important;
  font-size: 28px;
}

.has-hideout .c-iconBtn__icon {
  color: #F5F0EB !important;
}

/* Mobile header: logo left, hamburger right (matching static site) */
@media (max-width: 1023px) {
  .has-hideout .l-header__inner {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
  }

  .has-hideout .l-header__logo {
    order: 1 !important;
    text-align: left !important;
    flex: none !important;
  }

  .has-hideout .l-header__menuBtn {
    order: 3 !important;
  }
}

/* SWELL h3 heading decoration — hide on all .hideout pages */
.hideout h3::before {
  display: none !important;
}

/* ===== SP menu (hamburger) — dark theme ===== */
.has-hideout .p-spMenu__inner::before {
  background-color: #1A1A1A !important;
}
.has-hideout .p-spMenu__inner {
  color: #F5F0EB !important;
}
.has-hideout .p-spMenu a,
.has-hideout .p-spMenu__nav a {
  color: #F5F0EB !important;
  font-family: 'Noto Serif JP', serif !important;
  font-size: 14px !important;
}
.has-hideout .p-spMenu__closeBtn {
  color: #F5F0EB !important;
}
.has-hideout .p-spMenu__nav li {
  border-bottom: 0.5px solid #2A2A2A !important;
}
.has-hideout .c-widget__title.-spmenu {
  background: #2A2A2A !important;
  color: #F5F0EB !important;
}

/* PC nav: fix spacing to match static site (32px effective gap) */
.has-hideout .c-gnav {
  gap: 8px;
}

.has-hideout .c-gnav > li {
  display: flex !important;
  align-items: center !important;
}

/* PC nav underline hover animation */
.has-hideout .c-gnav a {
  position: relative;
  padding: 0 12px 4px !important;
  height: auto !important;
  font-size: 13px;
  font-family: 'Noto Serif JP', serif !important;
  font-weight: 400 !important;
}

.has-hideout .c-gnav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #B82B2B;
  transition: width 0.3s ease;
}

.has-hideout .c-gnav a:hover::after,
.has-hideout .c-gnav .current-menu-item > a::after,
.has-hideout .c-gnav .current_page_item > a::after {
  width: 100%;
}

.has-hideout .l-content {
  background-color: #0D0D0D;
}

.has-hideout .l-mainContent {
  padding: 0;
}

.has-hideout .post_content {
  padding: 0;
}

/* Hide sidebar on hideout pages */
.has-hideout .l-sidebar {
  display: none !important;
}

.has-hideout .l-mainContent {
  max-width: 100% !important;
  width: 100% !important;
}

/* SWELL footer override */
.has-hideout .l-footer {
  background: #0D0D0D !important;
  border-top: none !important;
  color: #F5F0EB;
  padding: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

.has-hideout .l-footer__inner,
.has-hideout .l-footer__foot,
.has-hideout .l-footer .copyright {
  display: none !important;
}

.has-hideout .l-footer a {
  color: #F5F0EB;
}

/* Hide SWELL's default page title area */
.has-hideout .c-pageTitle {
  display: none !important;
}

/* Hide SWELL search icon on hideout pages */
.has-hideout .l-header__search,
.has-hideout .c-iconList__item.-search,
.has-hideout [data-onclick="toggleSearch"] {
  display: none !important;
}

/* Hide breadcrumb on hideout pages */
.has-hideout .p-breadcrumb,
.has-hideout .c-breadcrumb {
  display: none !important;
}

/* Remove SWELL content width constraints */
.has-hideout .l-mainContent__inner {
  max-width: 100% !important;
  padding: 0 !important;
}

.has-hideout .post_content {
  max-width: 100% !important;
  padding: 0 !important;
  margin-top: 0 !important;
}

.has-hideout .l-content {
  padding: 0 !important;
  max-width: 100% !important;
}

.has-hideout .l-content__inner {
  max-width: 100% !important;
  padding: 0 !important;
}

.has-hideout article {
  max-width: 100% !important;
}

/* ===== Base inside .hideout ===== */
.hideout {
  font-family: var(--font-serif);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

.hideout a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.hideout a:hover {
  color: var(--accent);
}

.hideout img {
  max-width: 100%;
  display: block;
}

/* ===== Hero ===== */
.hideout .hero,
.hideout .wp-block-group.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 500px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Beat SWELL's .post_content div > :first-child {margin-top:0!important} (0,2,1) */
.post_content .hideout .hero,
.post_content .hideout .wp-block-group.hero {
  margin-top: -48px !important;
  padding-top: 48px !important;
}

.hideout .hero-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hideout .hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
}

.hideout .hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 24px;
}

.hideout .hero-logo {
  font-family: var(--font-script);
  font-size: 48px;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.hideout .hero-catch {
  font-size: 14px;
  color: var(--text-primary);
  letter-spacing: 0.15em;
}

/* ===== Page Header (cover-style overlay) ===== */
.hideout .page-header,
.hideout .wp-block-group.page-header {
  position: relative;
  width: 100%;
  height: 40vh;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.post_content .hideout .page-header,
.post_content .hideout .wp-block-group.page-header {
  margin-top: -48px !important;
  padding-top: 48px !important;
}

.hideout .page-header-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hideout .page-header-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.hideout .page-header-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
}

.hideout .page-header-title {
  font-family: var(--font-script);
  font-size: 36px;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.hideout .page-header-sub {
  font-size: 14px;
  color: var(--text-secondary);
  letter-spacing: 0.1em;
}

/* ===== Section ===== */
.hideout .section {
  padding: 80px 24px !important;
}

.hideout .section--alt {
  background: var(--bg-secondary);
}

.hideout .section-inner {
  max-width: 960px;
  margin: 0 auto;
}

/* ===== Section Heading ===== */
.hideout .section-heading {
  text-align: center;
  margin-bottom: 40px !important;
}

.hideout .section-heading-en {
  font-family: var(--font-script);
  font-size: 20px;
  color: var(--accent);
  display: block;
  margin-bottom: 8px;
}

.hideout .section-heading-ja {
  font-size: 12px;
  color: var(--text-secondary);
  display: block;
}

/* ===== HR / Divider ===== */
.hideout .divider,
.hideout hr.wp-block-separator {
  height: 1px !important;
  background-color: var(--accent) !important;
  width: 40% !important;
  border: none !important;
  margin: 0 auto 80px auto !important;
  opacity: 1 !important;
  padding: 0 !important;
  max-width: none !important;
}

/* ===== Teaser Card (index) ===== */
.hideout .teaser,
.hideout .section-inner > .teaser {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 40px !important;
}

.hideout .teaser-img-wrap,
.hideout .teaser > .wp-block-image {
  position: relative;
  overflow: hidden;
  width: 100% !important;
}

.hideout .teaser-img-wrap img,
.hideout .teaser > .wp-block-image img {
  width: 100%;
  display: block;
  object-fit: cover;
  aspect-ratio: 3 / 2;
}

.hideout .teaser-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hideout .teaser-body p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-primary);
  margin-bottom: 20px !important;
}

.hideout .teaser-link {
  display: inline-block;
  font-size: 13px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 4px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.hideout .teaser-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ===== Drink / Food Cards ===== */
.hideout .card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.hideout .card {
  text-align: center;
}

.hideout .card > * {
  margin-bottom: 0 !important;
}

.hideout .card-img-wrap,
.hideout .card .wp-block-image {
  position: relative;
  overflow: hidden;
  margin-bottom: 8px !important;
  width: 100% !important;
}

.hideout .card-img-wrap img,
.hideout .card .wp-block-image img {
  width: 100%;
  display: block;
  object-fit: cover;
  aspect-ratio: 1 / 1;
}

.hideout .card-title {
  font-family: var(--font-serif);
  font-size: 18px;
  letter-spacing: 0.15em;
  color: var(--text-primary);
  margin-top: 0 !important;
  margin-bottom: 8px !important;
}

.hideout .card-desc {
  font-size: 13px;
  color: var(--text-secondary);
}

/* ===== Kodawari Items ===== */
.hideout .kodawari-item {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 60px !important;
}

.hideout .kodawari-item:last-child {
  margin-bottom: 0 !important;
}

.hideout .kodawari-img-wrap,
.hideout .kodawari-item > .wp-block-image {
  overflow: hidden;
  width: 100% !important;
}

.hideout .kodawari-img-wrap img,
.hideout .kodawari-item > .wp-block-image img {
  width: 100%;
  display: block;
  object-fit: cover;
  aspect-ratio: 3 / 2;
}

.hideout .kodawari-body h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 0 !important;
  margin-bottom: 12px !important;
}

.hideout .kodawari-body p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 0 !important;
}

/* ===== Store Info Table ===== */
.hideout .info-table {
  width: 100%;
  border-collapse: collapse;
}

.hideout .info-table th,
.hideout .info-table td {
  padding: 14px 0;
  border-top: none !important;
  border-left: none !important;
  border-right: none !important;
  border-bottom: 1px solid var(--border-subtle) !important;
  font-size: 14px;
  text-align: left;
  vertical-align: top;
  background: transparent !important;
}

.hideout .info-table th {
  width: 100px;
  color: var(--text-secondary);
  font-weight: 400;
}

.hideout .info-table td {
  color: var(--text-primary);
}

.hideout .info-table a {
  color: var(--text-primary);
}

/* WP table block as info table */
.hideout .wp-block-table.info-table-block table {
  width: 100%;
  border-collapse: collapse;
  border: none;
}

.hideout .wp-block-table.info-table-block th,
.hideout .wp-block-table.info-table-block td {
  padding: 14px 0;
  border-bottom: 1px solid var(--border-subtle);
  border-top: none;
  border-left: none;
  border-right: none;
  font-size: 14px;
  text-align: left;
  vertical-align: top;
  background: transparent;
}

.hideout .wp-block-table.info-table-block th {
  width: 100px;
  color: var(--text-secondary);
  font-weight: 400;
}

.hideout .wp-block-table.info-table-block td {
  color: var(--text-primary);
}

.hideout .wp-block-table.info-table-block a {
  color: var(--text-primary);
}

/* ===== First Timer Block ===== */
.hideout .first-timer {
  background: var(--bg-secondary);
  padding: 32px 24px;
  text-align: center;
  margin-top: 40px;
}

.hideout .first-timer h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.hideout .first-timer p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-secondary);
}

/* ===== Map Placeholder ===== */
.hideout .map-placeholder {
  width: 100%;
  height: 300px;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 13px;
  margin-top: 24px;
}

/* ===== Master Greeting ===== */
.hideout .master-section {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
}

.hideout .master-img-wrap,
.hideout .master-section > .wp-block-image {
  max-width: 280px;
  overflow: hidden;
  width: 100% !important;
}

.hideout .master-img-wrap img,
.hideout .master-section > .wp-block-image img {
  width: 100%;
  display: block;
  object-fit: cover;
  aspect-ratio: 2 / 3;
}

.hideout .master-body {
  text-align: center;
}

.hideout .master-body h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 0 !important;
  margin-bottom: 16px !important;
}

.hideout .master-body p {
  font-size: 14px;
  line-height: 2;
  color: var(--text-secondary);
  margin-bottom: 0 !important;
}

/* ===== Footer (SWELL footer override) ===== */
.hideout .footer {
  border-top: 1px solid var(--border-subtle);
  padding: 40px 24px 80px !important;
  text-align: center;
}

.hideout .footer-logo {
  font-family: var(--font-script);
  font-size: 20px;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.hideout .footer-tel {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.hideout .footer-sns {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 24px;
}

.hideout .footer-sns a {
  color: var(--text-primary);
  font-size: 14px;
  transition: color 0.3s ease;
}

.hideout .footer-sns a:hover {
  color: var(--accent);
}

.hideout .footer-copy {
  font-size: 10px;
  color: var(--text-secondary);
}

/* ===== Fixed SNS Bar ===== */
.hideout .fixed-sns {
  display: flex;
  justify-content: center;
  gap: 24px;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 2;
  background: rgba(13, 13, 13, 0.9);
  padding: 12px 16px;
}

.hideout .fixed-sns a {
  color: var(--text-primary);
  font-size: 13px;
  transition: color 0.3s ease;
}

.hideout .fixed-sns a:hover {
  color: var(--accent);
}

/* ===== Image Placeholder ===== */
.hideout .img-placeholder {
  display: none;
  width: 100%;
  height: 100%;
  min-height: 200px;
  background: #2A2A2A;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 12px;
  text-align: center;
  padding: 16px;
}

/* ===== Scroll Animation ===== */
.hideout .inview {
  opacity: 0;
  transform: translateY(30%);
  transition: opacity 2s ease, transform 2s ease;
}

.hideout .inview.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hideout .inview-right {
  opacity: 0;
  transform: translateX(-30%);
  transition: opacity 2s ease, transform 2s ease;
}

.hideout .inview-right.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.hideout .inview-left {
  opacity: 0;
  transform: translateX(30%);
  transition: opacity 2s ease, transform 2s ease;
}

.hideout .inview-left.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* ===== WP block typography resets inside .hideout ===== */
.hideout h1, .hideout h2, .hideout h3, .hideout h4, .hideout h5, .hideout h6 {
  color: var(--text-primary);
  font-family: var(--font-serif);
}

.hideout p {
  color: var(--text-primary);
}

.hideout .wp-block-group {
  padding: 0 !important;
}

.hideout .wp-block-group > .wp-block-group__inner-container {
  display: contents !important;
}

/* Reset Gutenberg block defaults inside .hideout */
.hideout figure.wp-block-image {
  margin: 0 !important;
}

.hideout .wp-block-image::after {
  display: none !important;
}

.hideout .wp-block-heading {
  margin-top: 0 !important;
}

.hideout .wp-block-group > * {
  margin-bottom: 0 !important;
}

.hideout .wp-block-columns {
  gap: 40px;
}

/* Re-apply section padding after wp-block-group reset */
.hideout .section {
  padding: 80px 24px !important;
}

.hideout .section--alt {
  padding: 80px 24px !important;
}

/* ===== Responsive: Tablet (768px+) ===== */
@media (min-width: 768px) {
  .hideout .section {
    padding: 100px 40px !important;
  }

  .hideout .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hideout .card-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .hideout .teaser,
  .hideout .section-inner > .teaser {
    flex-direction: row;
    gap: 40px;
    align-items: center;
  }

  .hideout .teaser-img-wrap,
  .hideout .teaser > .wp-block-image {
    flex: 0 0 55%;
  }

  .hideout .teaser--reverse,
  .hideout .section-inner > .teaser--reverse {
    flex-direction: row-reverse;
  }

  .hideout .kodawari-item {
    flex-direction: row;
    gap: 40px;
    align-items: center;
  }

  .hideout .kodawari-img-wrap,
  .hideout .kodawari-item > .wp-block-image {
    flex: 0 0 55%;
  }

  .hideout .kodawari-item--reverse {
    flex-direction: row-reverse;
  }

  .hideout .master-section {
    flex-direction: row;
    gap: 48px;
  }

  .hideout .master-body {
    text-align: left;
  }

  .post_content .hideout .hero,
  .post_content .hideout .wp-block-group.hero {
    margin-top: -72px !important;
    padding-top: 72px !important;
  }

  .post_content .hideout .page-header,
  .post_content .hideout .wp-block-group.page-header {
    margin-top: -72px !important;
    padding-top: 72px !important;
  }

  .hideout .hero-catch {
    font-size: 16px;
  }

  .hideout .page-header-title {
    font-size: 44px;
  }

  .hideout .page-header-sub {
    font-size: 16px;
  }
}

/* ===== Responsive: PC (1024px+) ===== */
@media (min-width: 1024px) {
  .hideout {
    font-size: 16px;
  }

  .has-hideout .l-header__logo a {
    font-size: 36px;
  }

  .hideout .section {
    padding: 120px 40px !important;
  }

  .hideout .section-heading-en {
    font-size: 28px;
  }

  .hideout .section-heading-ja {
    font-size: 13px;
  }

  .hideout .hero-logo {
    font-size: 64px;
  }

  .hideout .hero-catch {
    font-size: 18px;
  }

  .hideout .teaser-body p {
    font-size: 16px;
  }

  .hideout .card-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .hideout .kodawari-body h3 {
    font-size: 20px;
  }

  .hideout .kodawari-body p {
    font-size: 16px;
  }

  .hideout .wp-block-table.info-table-block th,
  .hideout .wp-block-table.info-table-block td,
  .hideout .info-table th,
  .hideout .info-table td {
    font-size: 16px;
  }

  .hideout .wp-block-table.info-table-block th,
  .hideout .info-table th {
    width: 140px;
  }

  .hideout .master-body h3 {
    font-size: 20px;
  }

  .hideout .master-body p {
    font-size: 16px;
  }

  .hideout .page-header-title {
    font-size: 52px;
  }

  .hideout .page-header-sub {
    font-size: 18px;
  }

  .hideout .fixed-sns {
    padding: 16px 24px;
    gap: 32px;
  }

  .hideout .fixed-sns a {
    font-size: 14px;
  }

  .hideout hr.wp-block-separator,
  .hideout .divider {
    margin-bottom: 120px !important;
  }
}

/* ===== Block Editor: disable inview animation so content is visible ===== */
.editor-styles-wrapper .hideout .inview,
.editor-styles-wrapper .hideout .inview-right,
.editor-styles-wrapper .hideout .inview-left,
.block-editor-block-list__layout .hideout .inview,
.block-editor-block-list__layout .hideout .inview-right,
.block-editor-block-list__layout .hideout .inview-left {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
  .hideout .inview,
  .hideout .inview-right,
  .hideout .inview-left {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
