/* ==========================================================================
   CO-OASIS (コ・オアシス) Global Styles & Japanese Modern Design System
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@500;600;700;800&family=Shippori+Mincho:wght@500;600;700&display=swap');
@import url('./variables.css');

/* --------------------------------------------------------------------------
   Reset & Base Styles
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  max-width: 100vw;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-body);
  background-image: radial-gradient(rgba(0, 0, 0, 0.025) 1px, transparent 0);
  background-size: 24px 24px;
  color: var(--text-primary);
  font-family: var(--font-ja);
  font-size: 0.96875rem;
  line-height: 1.85;
  font-feature-settings: "palt";
  letter-spacing: 0.025em;
  overflow-x: hidden;
  max-width: 100vw;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
}

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

ul, ol {
  list-style: none;
}

button, input, select, textarea, label {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

/* --------------------------------------------------------------------------
   Layout Containers & Utilities
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  position: relative;
}

.container-narrow {
  max-width: var(--container-narrow);
}

.container-wide {
  max-width: var(--container-wide);
}

.section {
  padding-top: 6rem;
  padding-bottom: 6rem;
  position: relative;
}

.section-bg-subtle {
  background-color: var(--bg-subtle);
  background-image: radial-gradient(rgba(0, 0, 0, 0.02) 1px, transparent 0);
  background-size: 20px 20px;
}

@media (max-width: 768px) {
  .section {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
}

/* --------------------------------------------------------------------------
   Typography & Section Headers (Japanese Aesthetics)
   -------------------------------------------------------------------------- */
.font-en {
  font-family: var(--font-en);
}

.font-mincho {
  font-family: var(--font-mincho);
}

.text-gold {
  color: var(--primary-deep);
}

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

.text-muted {
  color: var(--text-muted);
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-ja);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--primary-deep);
  background: var(--primary-light);
  border: 1px solid var(--border-subtle);
  padding: 0.25rem 0.85rem;
  border-radius: var(--radius-xs);
  margin-bottom: 0.85rem;
}

.section-tag::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background-color: var(--primary-deep);
  border-radius: 50%;
}

.section-title {
  font-family: var(--font-mincho);
  font-size: 2.125rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.45;
  color: var(--primary-deep);
  margin-bottom: 0.85rem;
}

.section-subtitle {
  font-size: 0.96875rem;
  color: var(--text-secondary);
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.85;
}

@media (max-width: 768px) {
  .section-title {
    font-size: 1.625rem;
  }
  .section-subtitle {
    font-size: 0.875rem;
  }
}

/* --------------------------------------------------------------------------
   Header & Navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all var(--transition-normal);
  padding: 1.1rem 0;
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.site-header.is-scrolled {
  padding: 0.75rem 0;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 20px rgba(22, 43, 35, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--primary-deep);
}

.brand-logo-symbol {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--primary-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
}

.brand-logo-symbol svg {
  width: 22px;
  height: 22px;
  stroke: #FFFFFF;
}

.brand-title {
  font-family: var(--font-en);
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.1;
  color: var(--primary-deep);
}

.brand-sub {
  font-size: 0.6875rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  display: block;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-size: 0.90625rem;
  font-weight: 600;
  color: var(--text-secondary);
  position: relative;
  padding: 0.5rem 0.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  letter-spacing: 0.02em;
}

.nav-link span.en {
  display: none; /* 日本語を主役に */
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 100%;
  height: 2px;
  background: var(--primary-forest);
  transition: transform var(--transition-normal);
  border-radius: 2px;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-deep);
}

.nav-link:hover::after, .nav-link.active::after {
  transform: translateX(-50%) scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

/* Status Indicator Badge */
.occupancy-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-sm);
  background: #FFFFFF;
  border: 1px solid var(--border-medium);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  line-height: 1.4;
  box-sizing: border-box;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #2BAE66;
  position: relative;
}

.pulse-dot::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background-color: #2BAE66;
  animation: pulse-ring 1.8s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.6); opacity: 0.8; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: none;
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  color: var(--primary-deep);
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

@media (max-width: 1024px) {
  .nav-desktop, .occupancy-badge {
    display: none;
  }
  .mobile-nav-toggle {
    display: flex;
  }
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  transform: translateX(100%);
  width: 85%;
  max-width: 360px;
  height: 100vh;
  height: 100dvh;
  background: #FFFFFF;
  z-index: 1100;
  padding: 2.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
  transition: transform 0.35s var(--ease-out);
}

.mobile-drawer.is-open {
  transform: translateX(0);
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(9, 9, 11, 0.4);
  backdrop-filter: blur(4px);
  z-index: 1050;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.drawer-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.drawer-close {
  background: none;
  border: 1px solid var(--border-subtle);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.drawer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.drawer-link {
  display: flex;
  flex-direction: column;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.drawer-link:hover, .drawer-link.active {
  background: var(--bg-subtle);
  color: var(--primary-deep);
}

.drawer-link span.en {
  display: none;
}

/* --------------------------------------------------------------------------
   Buttons & Interactive Elements (Japanese Modern Style)
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.6rem;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  border-radius: var(--radius-btn);
  cursor: pointer;
  position: relative;
  transition: all var(--transition-fast);
  border: none;
  text-align: center;
  white-space: nowrap;
  max-width: 100%;
}

@media (max-width: 768px) {
  .btn {
    white-space: normal;
    word-break: break-word;
  }
}

.btn-primary {
  background-color: var(--primary-deep);
  color: #FFFFFF;
  border: 1px solid var(--primary-deep);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.btn-primary:hover {
  background-color: var(--primary-moss);
  border-color: var(--primary-moss);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  color: #FFFFFF;
}

.btn-gold {
  background: #09090B;
  color: #FFFFFF;
  border: 1px solid #09090B;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.14);
}

.btn-gold:hover {
  background: #27272A;
  border-color: #27272A;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  color: #FFFFFF;
}

.btn-outline {
  background-color: #FFFFFF;
  color: var(--primary-deep);
  border: 1.5px solid var(--primary-deep);
}

.btn-outline:hover {
  border-color: var(--primary-deep);
  background-color: var(--primary-deep);
  color: #FFFFFF;
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.55rem 1.25rem;
  font-size: 0.8125rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  line-height: 1.4;
  box-sizing: border-box;
}

.btn-lg {
  padding: 0.9rem 2rem;
  font-size: 0.96875rem;
}

/* --------------------------------------------------------------------------
   Page Header Component (Shared across all subpages)
   -------------------------------------------------------------------------- */
.page-header {
  padding-top: 8.5rem;
  padding-bottom: 4rem;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.page-header-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 900px) {
  .page-header-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.page-header-title {
  font-family: var(--font-mincho);
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--primary-deep);
  line-height: 1.3;
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .page-header-title {
    font-size: 1.875rem;
  }
}

.page-header-lead {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.85;
}

/* --------------------------------------------------------------------------
   Image & Visual Media Components
   -------------------------------------------------------------------------- */
.page-header-visual {
  width: 100%;
  aspect-ratio: 16 / 10;
  min-height: 240px;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-md);
  background: var(--bg-surface);
}

.page-header-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-slow);
}

.page-header-visual:hover img {
  transform: scale(1.03);
}

/* --------------------------------------------------------------------------
   Legal & Policy Pages Layout
   -------------------------------------------------------------------------- */
.legal-wrapper {
  max-width: 880px;
  margin: 0 auto;
  background: #FFFFFF;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-card);
  padding: 3.5rem 3rem;
  box-shadow: var(--shadow-sm);
}

@media (max-width: 768px) {
  .legal-wrapper {
    padding: 2rem 1.25rem;
  }
}

.legal-meta-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  margin-bottom: 2.5rem;
  font-size: 0.84375rem;
  color: var(--text-secondary);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.legal-section {
  margin-bottom: 2.5rem;
}

.legal-heading {
  font-family: var(--font-mincho);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-deep);
  margin-bottom: 0.85rem;
  padding-bottom: 0.4rem;
  border-bottom: 1.5px solid var(--primary-deep);
}

.legal-text {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.9;
  margin-bottom: 0.85rem;
}

.legal-list {
  padding-left: 1.4rem;
  margin-bottom: 1rem;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.85;
}

.legal-list li {
  margin-bottom: 0.4rem;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.25rem;
  font-size: 0.9375rem;
  border: 1px solid var(--border-subtle);
}

.legal-table th, .legal-table td {
  padding: 1rem 1.25rem;
  border: 1px solid var(--border-subtle);
}

.legal-table th {
  background: var(--bg-subtle);
  color: var(--primary-deep);
  font-weight: 700;
  width: 28%;
  min-width: 140px;
  vertical-align: top;
}

.legal-table td {
  color: var(--text-secondary);
  line-height: 1.75;
  background: #FFFFFF;
}

@media (max-width: 640px) {
  .legal-table, .legal-table tbody, .legal-table tr, .legal-table th, .legal-table td {
    display: block;
    width: 100%;
  }
  .legal-table th {
    border-bottom: none;
    padding-bottom: 0.4rem;
  }
  .legal-table td {
    padding-top: 0.2rem;
    border-top: none;
  }
}

/* --------------------------------------------------------------------------
   Photo Placeholder Component (Japanese Production Spec)
   -------------------------------------------------------------------------- */
.photo-placeholder {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 220px;
  background: #FAFAFA;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.25rem;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.02);
  transition: all var(--transition-normal);
}

.photo-placeholder:hover {
  border-color: var(--border-medium);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.photo-placeholder::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  bottom: 8px;
  border: 1px dashed rgba(82, 82, 91, 0.25);
  border-radius: 8px;
  pointer-events: none;
}

.placeholder-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

.placeholder-badge {
  font-family: var(--font-en);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  background: rgba(255, 255, 255, 0.92);
  color: var(--primary-deep);
  border: 1px solid var(--border-subtle);
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-xs);
}

.placeholder-ratio {
  font-family: var(--font-en);
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.85);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-subtle);
}

.placeholder-body {
  margin-top: auto;
  margin-bottom: auto;
  padding: 1rem 0;
  position: relative;
  z-index: 2;
}

.placeholder-title {
  font-family: var(--font-ja);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-deep);
  margin-bottom: 0.4rem;
  line-height: 1.4;
}

.placeholder-desc {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.placeholder-meta {
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.65rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  position: relative;
  z-index: 2;
}

.placeholder-meta strong {
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   Scroll Animations
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.reveal.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }

/* --------------------------------------------------------------------------
   Footer Styles
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: var(--bg-dark-accent);
  color: #FFFFFF;
  padding-top: 5rem;
  padding-bottom: 2.5rem;
  position: relative;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.4fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

@media (max-width: 1024px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 640px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.footer-brand .brand-title {
  color: #FFFFFF;
}

.footer-brand .brand-logo-symbol {
  background: var(--bg-dark-surface);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-brand p {
  color: var(--text-light-sub);
  font-size: 0.875rem;
  margin-top: 1rem;
  line-height: 1.8;
  max-width: 320px;
}

.footer-title {
  font-family: var(--font-ja);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #FFFFFF;
  margin-bottom: 1.15rem;
  position: relative;
  padding-bottom: 0.4rem;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 20px;
  height: 2px;
  background: #FFFFFF;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link {
  font-size: 0.875rem;
  color: var(--text-light-sub);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.footer-link:hover {
  color: #FFFFFF;
  transform: translateX(2px);
}

.footer-info-item {
  font-size: 0.875rem;
  color: var(--text-light-sub);
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.footer-info-item strong {
  color: #FFFFFF;
  display: block;
  font-size: 0.8125rem;
  margin-bottom: 0.15rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a:hover {
  color: #FFFFFF;
}

/* --------------------------------------------------------------------------
   Modal Window Styles
   -------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.is-active {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  background: #FFFFFF;
  border-radius: var(--radius-xl);
  max-width: 540px;
  width: 100%;
  padding: 2.75rem 2.25rem;
  box-shadow: var(--shadow-lg);
  text-align: center;
  transform: scale(0.95);
  transition: transform 0.3s var(--ease-out);
}

.modal-overlay.is-active .modal-box {
  transform: scale(1);
}

.modal-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary-forest);
  font-size: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.modal-title {
  font-family: var(--font-mincho);
  font-size: 1.45rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--primary-deep);
}

.modal-message {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 1.75rem;
}
