/* ==========================================================================
   Layout
   ========================================================================== */

#page-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--c-bg);
  color: var(--c-text);
  opacity: 1;
  transition: opacity 0.4s ease;
}

#page-container.is-exiting {
  opacity: 0;
}

#main-content {
  flex-grow: 1;
  width: 100%;
}

.section {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

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

.container {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

@media (max-width: 768px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* ==========================================================================
   Header & Navigation (New Design)
   ========================================================================== */

/* Header */
.header{
  position:fixed;
  top: 0;
  left: 0;
  right: 0;
  height:64px;
  z-index: 1000;
  background: linear-gradient(45deg, rgba(254, 215, 229, 0.85), rgba(255, 120, 188, 0.95));
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  border-bottom:1px solid rgba(255,255,255,.2);
  box-shadow: 0 4px 24px rgba(0,0,0,.1);
  color: var(--text);
}
.header .nav-a { color: var(--muted); text-transform: uppercase; }
.header .nav-a:hover { color: var(--text); }
.header-inner{
  display:flex;
  justify-content:space-between;
  align-items:center;
  height:64px;
  position: relative;
}
.logo {
  display: flex;
  align-items: center;
}
.logo-img { height: 32px; width: auto; }
.nav{display:flex;gap:28px}
.nav-a { color: var(--muted); font-weight: 600; }
.nav-a::after{content:"";position:absolute;left:0;bottom:-2px;height:2px;width:0;background:var(--accent);transition:width .4s var(--ease-out-cubic)}
.nav-a:hover::after{width:100%}

/* ワイドスクリーン時にヘッダーのコンテンツ幅を広げる */
.header .container {
  max-width: 1360px;
}

/* Mobile Navigation */
.mobile-nav-toggle {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 24px;
  width: 24px;
  height: 24px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1002;
  -webkit-tap-highlight-color: transparent;
}

.mobile-nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: transform 0.3s, opacity 0.3s;
  border-radius: 1px;
}

/* メニューを開いた時にアイコンを「×」印に変化させる */
.mobile-nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.mobile-nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.mobile-nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  bottom: 0;
  background: rgba(253, 203, 219, 0.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1001;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease-out-cubic);
  padding: 80px 40px 40px;
  box-sizing: border-box;
  overflow-y: auto;
}

/* ▼▼▼ 追加した閉じるボタンのスタイル ▼▼▼ */
.mobile-nav-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    z-index: 1003;
    -webkit-tap-highlight-color: transparent;
}

.mobile-nav-close svg {
    width: 32px;
    height: 32px;
    color: var(--text);
}
/* ▲▲▲ 追加ここまで ▲▲▲ */

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

.mobile-nav-inner { display: flex; flex-direction: column; gap: 24px; align-items: center; }
.mobile-nav-inner .nav-a { font-size: 20px; font-weight: 700; color: var(--text); text-transform: uppercase; }

@media (max-width: 768px) {
  .nav { display: none; }
  .mobile-nav-toggle { display: block; }
}

/* Footer */
.footer {
  background: linear-gradient(180deg, rgba(255, 245, 250, 0.7) 0%, rgba(255, 255, 255, 0.5) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.05);
  padding: 40px 0;
  text-align: center;
  color: var(--text);
}
.footer-logo img { height: 96px; width: auto; }
.footer-nav { display: flex; justify-content: center; gap: 24px; margin: 24px 0; font-size: 14px; }
.footer-nav a { color: var(--muted); }
.footer-nav a.external-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.footer-nav a .external-icon {
  width: 1em;
  height: 1em;
  opacity: 0.6;
}
.footer-copy { font-size: 12px; color: var(--muted); }


/* ==========================================================================
   Utilities
   ========================================================================== */

/* Loader */
#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--c-bg);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s ease, visibility 0.4s;
}

#loader.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--c-accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
