@charset "UTF-8";
/* CSS Variables 定義 */
:root {
  --font-primary: "Marcellus", "Helvetica Neue", "Arial", sans-serif;
  --font-size-base: 1rem;
  --font-size-md: 1.2rem;
  --font-size-lg: 1.4rem;
  --font-size-xl: 1.8rem;
  --font-size-xxl: 4rem;
  --text-color: #fff;
  --accent-color: #f9dfff;
  --accent-gradient: linear-gradient(to right, #f9dfff, #ffccff);
  --box-shadow-img: 0 4px 12px rgba(0, 0, 0, 0.5);
  --section-divider-color: linear-gradient(to right, transparent, #f9dfff, transparent);
  --fade-transition: opacity 0.8s ease, transform 0.8s ease;
  --background-overlay: rgba(17, 25, 45, 0.95);
  --profile-img-size: 130px;
  --spacing-base: 1rem;
  --spacing-lg: 2rem;
  --spacing-xl: 4rem;
  --bg-dark: rgba(0, 0, 0, 0.4);
}

body.loading * {
  opacity: 0;
  transition: none !important;
}

.sidebar,
.container-wrapper {
  opacity: 0;
  transform: translateX(-30px);
  transition: all 0.8s ease;
}

.sidebar.loaded,
.container-wrapper.loaded {
  opacity: 1;
  transform: translateX(0);
}

#page-wrapper {
  filter: blur(20px) brightness(1.8);
  transition: filter 0.5s ease;
}

#page-wrapper.focused {
  filter: blur(0) brightness(1);
}

#page-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.4), transparent 70%);
  pointer-events: none;
  z-index: 1;
  opacity: 1;
  transition: opacity 1s ease;
}

#page-wrapper.focused::before {
  opacity: 0;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: var(--font-primary);
  color: var(--text-color);
  overflow: hidden;
}

h2 {
  position: relative;
  font-size: var(--font-size-xl);
  color: var(--accent-color);
  padding-bottom: 0.5rem;
  margin-top: 2.5rem;
}

h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 3px;
  background: var(--accent-gradient);
  border-radius: 2px;
  box-shadow: 0 0 8px var(--accent-color);
}

p {
  font-size: var(--font-size-md);
  line-height: 2rem;
}

.layout {
  display: flex;
  height: 100vh;
  box-sizing: border-box;
}

.sidebar {
  width: 45%;
  padding: var(--spacing-lg);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 5;
  box-sizing: border-box;
  height: 100vh;
}

.sidebar-inner {
  position: absolute;
  width: 50%;
  right: 50px;
  bottom: 10%;
  min-width: 410px;
}

.sidebar h1 {
  font-size: var(--font-size-base);
  margin: 0 0 var(--spacing-base);
}

.sidebar a,
.btn {
  display: inline-block;
  background: var(--accent-color);
  color: #000;
  padding: 0.5rem 1.5rem;
  text-decoration: none;
  border-radius: 30px;
  font-weight: bold;
  margin-bottom: var(--spacing-base);
  margin-top: 10px;
}

.sidebar section {
  margin-top: var(--spacing-base);
}

.sidebar-inner h2 {
  font-size: var(--font-size-lg);
  margin-top: 0;
}

.sidebar-inner p {
  margin: 0;
  font-size: var(--font-size-base);
}

.profile-img {
  width: var(--profile-img-size);
  height: var(--profile-img-size);
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: var(--spacing-base);
  box-shadow: var(--box-shadow-img);
}

.container-wrapper {
  margin-left: 45%;
  width: 35%;
  height: 100vh;
  overflow-y: auto;
  box-sizing: border-box;
  position: relative;
  z-index: 0;
  background: var(--background-overlay);
  min-width: 580px;
}

.container-wrapper::-webkit-scrollbar {
  display: none;
}

.container {
  width: 100%;
  padding: 0;
  background: none;
  border-radius: 0;
}

.content-inner {
  padding: var(--spacing-lg);
}

.content-inner h2 {
  font-size: var(--font-size-xxl);
  margin-bottom: var(--spacing-lg);
}

.content-inner-box {
  margin-bottom: var(--spacing-xl);
}

.content-inner-box p {
  margin-bottom: var(--spacing-lg);
}

.voice {
  background: rgba(255, 255, 255, 0.1);
  padding: 15px;
  margin: 10px 0;
  border-left: 5px solid var(--accent-color);
  line-height: 1.8rem;
}

.spacer {
  width: 20%;
}

.bg-layer {
  transform: scale(1.1);
  transform-origin: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: url("https://images.unsplash.com/photo-1506744038136-46273834b3fb?auto=format&fit=crop&w=1950&q=80") center center / cover no-repeat;
  z-index: -2;
  filter: brightness(0.6);
  will-change: transform;
  pointer-events: none;
}

.section-divider {
  height: 1px;
  background: var(--section-divider-color);
  margin: 6rem auto;
  width: 60%;
}

.fade-in,
.scroll-fade {
  opacity: 0;
  transform: translateY(30px);
  transition: var(--fade-transition);
}

.fade-in.show,
.scroll-fade.show {
  opacity: 1;
  transform: translateY(0);
}

.curtain {
  position: fixed;
  top: 0;
  width: 50vw;
  height: 100vh;
  background: #000;
  z-index: 9999;
  animation-fill-mode: forwards;
}

#curtain-left {
  left: 0;
  animation: open-left 1.5s ease forwards;
  animation-delay: 0.5s;
}

#curtain-right {
  right: 0;
  animation: open-right 1.5s ease forwards;
  animation-delay: 0.5s;
}

/* アニメーション後に本体が現れる演出 */
.sidebar,
.container-wrapper {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.3s ease, transform 0.8s ease;
}

.sidebar.show,
.container-wrapper.show {
  opacity: 1;
  transform: translateY(0);
}

.scroll-fade {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-fade.show {
  opacity: 1;
  transform: translateY(0);
}

@keyframes open-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

@keyframes open-right {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(100%);
  }
}

@media screen and (max-width: 1024px) {
  html,
  body {
    height: auto;
    overflow-y: visible;
    overflow-x: hidden;
  }

  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
    padding: 1.5rem;
    background: var(--bg-dark);
    overflow-y: visible;
    max-height: none;
  }

  .sidebar-inner {
    position: relative;
    width: 100%;
    bottom: auto;
    right: auto;
  }

  .profile-img {
    width: 200px;
    height: 200px;
    margin: 0 auto var(--spacing-base);
    display: block;
  }

  .layout {
    flex-direction: column;
    height: auto;
  }

  .container-wrapper {
    width: 100%;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    height: auto;
    margin-left: 0;
    min-width: auto;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.6);
  }
}

@media screen and (max-width: 768px) {
  html,
  body {
    height: auto;
    overflow-y: visible;
    overflow-x: hidden;
  }

  h2 {
    font-size: var(--font-size-lg);
  }

  p {
    font-size: var(--font-size-base);
  }

  .layout {
    flex-direction: column;
    padding: 0;
    height: auto;
  }

  .sidebar {
    position: relative;
    width: 100%;
    top: 0;
    left: 0;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.5);
    height: auto;
  }

  .sidebar-inner {
    position: relative;
    bottom: auto;
    width: 100%;
    right: auto;
    min-width: auto;
  }

  .sidebar-inner p {
    font-size: 0.8rem;
  }

  .profile-img {
    width: 250px;
    height: 250px;
    margin: 0 auto var(--spacing-base);
    display: block;
  }

  .container-wrapper {
    width: 100%;
    margin-left: 0;
    height: auto;
    overflow: visible;
    min-width: auto;
  }

  .content-inner {
    padding: 1rem;
  }
}
