/*
Theme Name: Anz Hostel
Version: 2.0.5
Author: monaural
Description: あんず旅館オリジナルテーマ – ミニマルデザイン、縦スクロール1ページ構成
Text Domain: anz-hostel
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

/* ===========================
   CSS Variables
   =========================== */
:root {
  --anz-teal: #025366;
  --anz-teal-light: #2a7a7a;
  --anz-bg: #dceae9;
  --anz-text: #333;
  --anz-text-light: #666;
  --anz-border: #eee;
  --anz-white: #fff;
  --anz-font: 'Noto Sans JP', sans-serif;
}

/* ===========================
   Reset & Base
   =========================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--anz-font);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.8;
  color: var(--anz-text);
  background: var(--anz-bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

/* ===========================
   Container
   =========================== */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow {
  max-width: 680px;
}

/* ===========================
   Header
   =========================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
}

.site-header.is-on-hero,
.site-header.is-on-photo {
  background: transparent;
  box-shadow: none;
}

.site-logo {
  display: flex;
  align-items: center;
}

.site-logo a {
  display: flex;
  align-items: center;
}

.site-logo__img {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  object-fit: cover;
  transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.3s ease;
}

/* Language switch */
.lang-switch {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
}

.lang-switch__link {
  color: #999;
  transition: color 0.3s ease;
}

.lang-switch__link--active {
  color: var(--anz-text);
  font-weight: 400;
}

.lang-switch__link:hover {
  color: var(--anz-teal);
}

.lang-switch__sep {
  color: #ccc;
}

/* ===========================
   Nav Toggle (Hamburger)
   =========================== */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  background: none;
  border: none;
  padding: 0;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: #333;
  border-radius: 1px;
  transition: background 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
}

/* ===========================
   Nav Overlay & Menu
   =========================== */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  z-index: 998;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.nav-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.nav-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100vh;
  background: var(--anz-white);
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 40px;
  transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-menu.is-open {
  right: 0;
}

.nav-menu a {
  display: block;
  padding: 14px 0;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  color: var(--anz-text);
  border-bottom: 1px solid var(--anz-border);
  transition: color 0.3s ease, padding-left 0.3s ease;
}

.nav-menu a:first-child {
  border-top: 1px solid var(--anz-border);
}

.nav-menu a:hover {
  color: var(--anz-teal);
  padding-left: 8px;
}

/* ===========================
   Hero Section
   =========================== */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #111;
}

.hero__bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
}

.hero__title {
  font-size: 2.4rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  margin-bottom: 0.4em;
}

.hero__subtitle {
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  opacity: 0.8;
  font-weight: 300;
}

.hero__scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.6);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.hero__scroll::after {
  content: '';
  display: block;
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.4);
  animation: scrollArrow 2s ease-in-out infinite;
}

@keyframes scrollArrow {
  0% { transform: scaleY(0); transform-origin: top; opacity: 0; }
  30% { transform: scaleY(1); transform-origin: top; opacity: 1; }
  60% { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* ===========================
   Heartbeat Animation (Logo)
   =========================== */
@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

/* ===========================
   Section Base
   =========================== */
.section {
  padding: 80px 0;
  background: var(--anz-bg);
}

.section-title {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--anz-teal);
  text-align: center;
  margin-bottom: 8px;
}

.section-heading {
  font-size: 1.4rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--anz-text);
}

/* ===========================
   Concept Section
   =========================== */
.concept {
  background: var(--anz-white);
}

.concept__text {
  font-size: 0.9rem;
  line-height: 2.4;
  color: var(--anz-text-light);
  letter-spacing: 0.05em;
  text-align: center;
}

/* ===========================
   Space Parallax Sections (Lobby, Origo, Rooms)
   =========================== */
.space-parallax {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  clip-path: inset(0);
  -webkit-clip-path: inset(0);
}

.space-parallax__bg {
  position: fixed;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: -1;
}

.space-parallax__bg-img {
  position: absolute;
  top: -10%;
  left: 0;
  width: 100%;
  height: 120%;
  object-fit: cover;
  z-index: 0;
  will-change: transform;
}

.space-parallax__content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 40px;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(2px);
  border-radius: 2px;
  max-width: 600px;
}

/* Space Hero Section text styles */
.space-hero-section__subtitle {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 8px;
}

.space-hero-section__title {
  font-size: 1.8rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  margin-bottom: 16px;
}

.space-hero-section__desc {
  font-size: 0.85rem;
  line-height: 2;
  opacity: 0.9;
  letter-spacing: 0.03em;
  margin-bottom: 20px;
}

.space-hero-section__link {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  padding-bottom: 2px;
  transition: border-color 0.3s ease, opacity 0.3s ease;
}

.space-hero-section__link:hover {
  border-color: #fff;
  opacity: 0.8;
}

/* ===========================
   Booking Section
   =========================== */
.booking {
  background: var(--anz-teal);
  text-align: center;
  color: #fff;
}

.booking .section-title,
.booking .section-heading {
  color: #f0a030;
}

.booking p {
  color: rgba(255, 255, 255, 0.95);
}

.booking__buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 2rem;
}

.booking__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  font-weight: 400;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-width: 240px;
  justify-content: center;
}

.booking__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.booking__btn--airbnb {
  background: #ff5a5f;
  color: #fff;
}

.booking__btn--rakuten {
  background: #bf0000;
  color: #fff;
}

/* ===========================
   Access Section
   =========================== */
.access__info {
  text-align: center;
  font-size: 0.9rem;
  line-height: 2;
  color: var(--anz-text-light);
  margin-bottom: 2rem;
}

.access__map {
  width: 100%;
  height: 350px;
  border-radius: 4px;
  margin-top: 1rem;
}

/* ===========================
   Footer
   =========================== */
.site-footer {
  background: #1a1a1a;
  color: #ccc;
  text-align: center;
  padding: 60px 24px 40px;
}

.footer__name {
  font-size: 1.1rem;
  letter-spacing: 0.2em;
  color: #fff;
  margin-bottom: 16px;
  font-weight: 300;
}

.footer__sns {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 20px;
}

.footer__sns-link {
  color: #999;
  transition: color 0.3s ease, transform 0.3s ease;
}

.footer__sns-link:hover {
  color: #fff;
  transform: translateY(-2px);
}

.footer__address {
  font-size: 0.8rem;
  color: #888;
  line-height: 1.8;
  margin-bottom: 16px;
}

.footer__copyright {
  font-size: 0.7rem;
  color: #666;
  letter-spacing: 0.05em;
}

/* ===========================
   Responsive: Tablet
   =========================== */
@media (max-width: 768px) {
  .site-header {
    padding: 12px 16px;
  }

  .site-logo__img {
    width: 30px;
    height: 30px;
  }

  .hero {
    height: 100svh;
  }

  .hero__title {
    font-size: 1.8rem;
  }

  .hero__subtitle {
    font-size: 0.75rem;
  }

  .section {
    padding: 60px 0;
  }

  .section-heading {
    font-size: 1.2rem;
  }

  .space-parallax {
    height: 80vh;
  }

  .space-parallax__content {
    padding: 30px 24px;
    margin: 0 16px;
  }

  .space-hero-section__title {
    font-size: 1.4rem;
  }

  .space-hero-section__desc {
    font-size: 0.8rem;
  }

  .booking__btn {
    min-width: 200px;
    padding: 12px 24px;
    font-size: 0.8rem;
  }

  .access__map {
    height: 250px;
  }

  .nav-menu {
    width: 260px;
    right: -260px;
    padding: 60px 30px;
  }
}

/* ===========================
   Responsive: Mobile
   =========================== */
@media (max-width: 480px) {
  body {
    font-size: 15px;
  }

  .container {
    padding: 0 16px;
  }

  .hero__title {
    font-size: 1.5rem;
    letter-spacing: 0.15em;
  }

  .section {
    padding: 50px 0;
  }

  .concept__text {
    font-size: 0.85rem;
    line-height: 2.2;
    text-align: left;
  }

  .space-parallax {
    height: 70vh;
  }

  .space-parallax__content {
    padding: 24px 20px;
    margin: 0 12px;
  }

  .space-hero-section__title {
    font-size: 1.2rem;
  }

  .space-hero-section__desc {
    font-size: 0.78rem;
    line-height: 1.9;
  }

  .booking__buttons {
    gap: 12px;
  }

  .booking__btn {
    min-width: 100%;
    padding: 14px 20px;
  }

  .access__map {
    height: 200px;
  }

  .site-footer {
    padding: 40px 16px 30px;
  }

  .footer__name {
    font-size: 1rem;
  }
}

/* ===========================
   Utility: Smooth fade-in for sections
   =========================== */
.section {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Stagger delay for sequential sections */
.section:nth-of-type(1) { animation-delay: 0.1s; }
.section:nth-of-type(2) { animation-delay: 0.2s; }
.section:nth-of-type(3) { animation-delay: 0.3s; }

/* ===========================
   WordPress: Admin bar offset
   =========================== */
.admin-bar .site-header {
  top: 32px;
}

@media (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
}



/* ===========================
   Single Space: Detail Pages
   =========================== */
.space-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #111;
}

.space-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.space-hero__overlay {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
  padding: 40px;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(2px);
  border-radius: 2px;
  max-width: 600px;
}

.space-hero__title {
  font-family: var(--anz-font);
  font-size: 2rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  color: #fff;
}

/* Back link in header */
.space-back-link {
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: var(--anz-text-light);
  transition: color 0.3s ease;
}

.space-back-link:hover {
  color: var(--anz-teal);
}

/* Back button at bottom */
.space-back-btn {
  display: inline-block;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: var(--anz-teal);
  border-bottom: 1px solid var(--anz-teal);
  padding-bottom: 2px;
  transition: opacity 0.3s ease;
}

.space-back-btn:hover {
  opacity: 0.7;
}

/* Space content body */
.space-content__body {
  font-family: var(--anz-font);
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 2.4;
  color: var(--anz-text-light);
  letter-spacing: 0.03em;
}

.space-content__body p {
  margin-bottom: 1.5em;
}

/* Gallery section */
.space-gallery-section {
  background: var(--anz-white);
}

/* ===========================
   Gallery Slider
   =========================== */
.gallery-slider__thumb:hover {
  opacity: 0.85 !important;
}

/* ===========================
   Lightbox
   =========================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.is-active {
  opacity: 1;
  visibility: visible;
}

.lightbox__img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 2px;
}

.lightbox__close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.3s ease;
  z-index: 10000;
}

.lightbox__close:hover {
  opacity: 1;
}

.lightbox__prev,
.lightbox__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  font-size: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.3s ease, background 0.3s ease;
  z-index: 10000;
}

.lightbox__prev:hover,
.lightbox__next:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.2);
}

.lightbox__prev {
  left: 20px;
}

.lightbox__next {
  right: 20px;
}

/* ===========================
   Single Space: Responsive
   =========================== */
@media (max-width: 768px) {
  .space-hero {
    height: 70vh;
  }

  .space-hero__title {
    font-size: 1.5rem;
  }

  .space-hero__overlay {
    padding: 30px 24px;
    margin: 0 16px;
  }

  .lightbox__prev,
  .lightbox__next {
    width: 36px;
    height: 36px;
    font-size: 1.2rem;
  }

  .lightbox__prev {
    left: 12px;
  }

  .lightbox__next {
    right: 12px;
  }
}

@media (max-width: 480px) {
  .space-hero {
    height: 60vh;
  }

  .space-hero__title {
    font-size: 1.3rem;
    letter-spacing: 0.1em;
  }

  .space-content__body {
    font-size: 0.85rem;
    line-height: 2.2;
  }
}

/* 公式サイト予約ボタン */
.booking__btn--direct {
  background: #2c5f4e;
  color: #fff;
  border: 2px solid #2c5f4e;
  position: relative;
}

.booking__btn--direct:hover {
  background: #1e4438;
  border-color: #1e4438;
}
