:root {
  --pink: #f9a8c9;
  --pink-light: #fce4f0;
  --pink-dark: #e8749f;
  --orange: #ffb347;
  --cream: #fff9f5;
  --text: #4a3040;
  --text-light: #9a7080;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Zen Maru Gothic", sans-serif;
  color: var(--text);
  background: var(--cream);
  overflow-x: hidden;
}

/* ===== NAVIGATION ===== */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 52px;
  transition: background 0.4s, border-color 0.4s, box-shadow 0.4s;
  background: transparent;
  border-bottom: 1px solid transparent;
}

nav.scrolled {
  background: rgba(255,255,255,0.94);
  border-bottom: 1px solid rgba(249,168,201,0.35);
  box-shadow: 0 2px 20px rgba(232,116,159,0.08);
}

.nav-logo {
  font-family: "Kaisei Opti", serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: white;
  text-decoration: none;
  letter-spacing: 0.05em;
  cursor: pointer;
  text-shadow: 0 1px 8px rgba(0,0,0,0.4);
  transition: color 0.4s, text-shadow 0.4s;
}

nav.scrolled .nav-logo {
  color: var(--text);
  text-shadow: none;
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  color: rgba(255,255,255,0.88);
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-shadow: 0 1px 6px rgba(0,0,0,0.3);
  transition: color 0.4s, text-shadow 0.4s;
  cursor: pointer;
}

nav.scrolled .nav-links a {
  color: var(--text);
  text-shadow: none;
}

.nav-links a:hover,
nav.scrolled .nav-links a:hover {
  color: var(--pink-dark);
}

/* ===== TOP SECTION ===== */
#sec-top {
  height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
}

.top-left {
  background: #1a0e14;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px 52px 52px;
  overflow: hidden;
}

.top-left::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    0deg,
    transparent, transparent 2px,
    rgba(255,255,255,0.012) 2px, rgba(255,255,255,0.012) 4px
  );
  pointer-events: none;
}

.top-site-url {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.28);
  letter-spacing: 0.2em;
  font-family: "Noto Serif JP", serif;
}

.top-center-block {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.top-logo {
  font-family: "Kaisei Opti", serif;
  font-size: 3.8rem;
  font-weight: 700;
  color: white;
  letter-spacing: 0.08em;
  line-height: 1.2;
  margin-bottom: 12px;
  text-shadow: 0 2px 16px rgba(249,168,201,0.4);
}

.top-logo-sub {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.25em;
  margin-bottom: 36px;
  font-family: "Noto Serif JP", serif;
}

.top-logo-img {
  margin-bottom: 40px;
  width: 100%;
}

.top-logo-img img {
  width: 100%;
  max-width: 420px;
  height: auto;
  display: block;
  filter: drop-shadow(0 0 18px rgba(249,168,201,0.5));
}

.nav-logo-img {
  height: 32px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1) drop-shadow(0 1px 6px rgba(0,0,0,0.4));
  transition: filter 0.4s;
}

nav.scrolled .nav-logo-img {
  filter: brightness(0) saturate(100%) invert(27%) sepia(20%) saturate(800%) hue-rotate(280deg) brightness(80%);
}

.top-nav-inline {
  display: flex;
  gap: 30px;
  list-style: none;
  margin-bottom: 52px;
}

.top-nav-inline a {
  color: rgba(255,255,255,0.72);
  text-decoration: none;
  font-size: 0.88rem;
  letter-spacing: 0.15em;
  transition: color 0.2s;
  cursor: pointer;
}

.top-nav-inline a::before {
  content: "·";
  margin-right: 4px;
  color: var(--pink);
}

.top-nav-inline a:hover { color: var(--pink-light); }

.top-news-list { list-style: none; }

.top-news-entry {
  display: block;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  text-decoration: none;
  transition: opacity 0.2s;
}

.top-news-entry:first-child { border-top: 1px solid rgba(255,255,255,0.07); }

.top-news-entry:hover { opacity: 0.7; }

.top-news-more {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--pink);
  text-decoration: none;
  border-bottom: 1px solid rgba(249,168,201,0.4);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}

.top-news-more:hover {
  color: var(--pink-light);
  border-color: var(--pink-light);
}

.top-news-d {
  display: block;
  font-size: 0.67rem;
  color: var(--pink);
  letter-spacing: 0.15em;
  text-align: right;
  margin-bottom: 2px;
  font-family: "Noto Serif JP", serif;
}

.top-news-t {
  display: block;
  font-size: 0.81rem;
  color: rgba(255,255,255,0.68);
  line-height: 1.5;
}

.top-right {
  position: relative;
  overflow: hidden;
}

.top-right-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  opacity: 0;
  transition: opacity 1.3s ease-in-out;
}

.top-right-slide.active { opacity: 1; }

/* ===== SECTION COMMON ===== */
.section-header {
  text-align: center;
  padding: 80px 0 52px;
}

.section-header h2 {
  font-family: "Kaisei Opti", serif;
  font-size: 2.3rem;
  letter-spacing: 0.2em;
  color: var(--text);
}

.section-header h2 span {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.35em;
  color: var(--pink-dark);
  margin-bottom: 8px;
  font-family: "Zen Maru Gothic", sans-serif;
  font-weight: 400;
}

/* ===== WORKS SECTION ===== */
#sec-works {
  background: var(--cream);
  position: relative;
}

#sec-works::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, var(--pink) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.05;
  pointer-events: none;
}

.works-carousel-wrap {
  position: relative;
  padding: 0 80px 80px;
}

.works-carousel { overflow: hidden; }

.works-track {
  display: flex;
  gap: 28px;
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
}

.work-card {
  flex-shrink: 0;
  width: 260px;
  border-radius: 22px;
  overflow: hidden;
  background: white;
  box-shadow: 0 4px 28px rgba(232,116,159,0.13);
  transition: transform 0.35s, box-shadow 0.35s;
  cursor: pointer;
}

.work-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 16px 48px rgba(232,116,159,0.28);
}

.work-card img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.work-coming-soon {
  width: 100%;
  height: 340px;
  background: linear-gradient(135deg, #f9e4ec, #e8d0f0, #d4dff8);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.coming-soon-q {
  font-family: "Kaisei Opti", serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--pink-dark);
  letter-spacing: 0.15em;
}

.coming-soon-label {
  font-size: 0.82rem;
  letter-spacing: 0.25em;
  color: var(--text-light);
  font-family: "Noto Serif JP", serif;
}

.work-card-body { padding: 18px 22px 22px; }

.work-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.4;
}

.work-card-meta { font-size: 0.75rem; color: var(--text-light); }

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-70%);
  width: 48px; height: 48px;
  border-radius: 50%;
  background: white;
  border: 2px solid var(--pink);
  color: var(--pink-dark);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(232,116,159,0.2);
  transition: all 0.2s;
  z-index: 10;
}

.carousel-btn:hover {
  background: var(--pink-dark);
  border-color: var(--pink-dark);
  color: white;
}

.carousel-btn.prev { left: 16px; }
.carousel-btn.next { right: 16px; }

/* ===== ABOUT SECTION ===== */
#sec-about { background: #faf8f6; }

.about-main {
  display: grid;
  grid-template-columns: 45% 1fr;
  min-height: 100vh;
}

.about-photo {
  position: sticky;
  top: 60px;
  height: calc(100vh - 60px);
  overflow: hidden;
  align-self: start;
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.about-body {
  padding: 72px 72px 80px 80px;
}

.about-headline {
  display: flex;
  justify-content: flex-end;
  gap: 20px;
  margin-bottom: 60px;
}

.about-headline-col {
  writing-mode: vertical-rl;
  font-family: "Noto Serif JP", serif;
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1.3;
  color: #2a1e26;
  letter-spacing: 0.1em;
}

.about-headline-col.accent {
  color: var(--pink-dark);
  font-size: 1.7rem;
}

.about-prose p {
  font-size: 0.93rem;
  line-height: 2.1;
  color: #5a4050;
  margin-bottom: 28px;
}

.about-divider {
  width: 40px; height: 2px;
  background: linear-gradient(90deg, var(--pink-dark), var(--orange));
  border-radius: 2px;
  margin: 40px 0;
}

.about-second {
  display: grid;
  grid-template-columns: 1fr 45%;
}

.about-second-body {
  padding: 80px 80px 80px 72px;
  background: white;
}

.about-member { margin-bottom: 36px; }

.about-member-name {
  font-family: "Kaisei Opti", serif;
  font-size: 1.25rem;
  color: #2a1e26;
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.about-member-name span {
  font-size: 0.75rem;
  color: var(--text-light);
  font-family: "Zen Maru Gothic", sans-serif;
  margin-left: 10px;
  letter-spacing: 0.1em;
}

.about-member p {
  font-size: 0.88rem;
  line-height: 1.9;
  color: #7a6070;
}

.about-second-photo { overflow: hidden; }

.about-second-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* ===== NEWS SECTION ===== */
#sec-news {
  background: var(--cream);
  position: relative;
}

#sec-news::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, var(--pink) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.05;
  pointer-events: none;
}

.news-list {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 48px 80px;
}

.news-item {
  display: grid;
  grid-template-columns: 110px 82px 1fr;
  gap: 20px;
  align-items: start;
  padding: 26px 0;
  border-bottom: 1px solid rgba(249,168,201,0.3);
  text-decoration: none;
  color: var(--text);
  transition: color 0.2s;
}

.news-item:hover { color: var(--pink-dark); }

.news-date {
  font-size: 0.8rem;
  color: var(--text-light);
  padding-top: 3px;
  white-space: nowrap;
}

.news-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.tag-event   { background: #fce4f0; color: var(--pink-dark); }
.tag-release { background: #fff0d4; color: #c07818; }
.tag-info    { background: #e8f4f8; color: #4080a0; }

.news-title { font-size: 0.94rem; line-height: 1.65; }

.news-more-wrap {
  text-align: center;
  padding: 8px 0 72px;
}

.news-more-btn {
  display: inline-block;
  padding: 12px 40px;
  border: 1.5px solid var(--pink-dark);
  border-radius: 99px;
  color: var(--pink-dark);
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  transition: background 0.2s, color 0.2s;
}

.news-more-btn:hover {
  background: var(--pink-dark);
  color: white;
}

/* ===== CONTACT SECTION ===== */
#sec-contact {
  background: white;
  min-height: 60vh;
}

.contact-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 48px 80px;
}

.contact-intro {
  text-align: center;
  margin-bottom: 56px;
  color: var(--text-light);
  font-size: 0.92rem;
  line-height: 2;
}

.contact-cards {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
}

.contact-card {
  background: var(--cream);
  border-radius: 26px;
  padding: 44px 36px;
  text-align: center;
  box-shadow: 0 4px 36px rgba(232,116,159,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  text-decoration: none;
  color: var(--text);
  display: block;
  border: 2px solid transparent;
}

.contact-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 14px 52px rgba(232,116,159,0.22);
  border-color: var(--pink-light);
}

.contact-card-avatar {
  width: 88px; height: 88px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink-light), var(--orange));
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.1rem;
  overflow: hidden;
}

.contact-card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.contact-card-name {
  font-family: "Kaisei Opti", serif;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.contact-card-role {
  font-size: 0.78rem;
  color: var(--text-light);
  letter-spacing: 0.1em;
  margin-bottom: 26px;
}

.contact-card-x {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #1a1a2e;
  color: white;
  padding: 10px 24px;
  border-radius: 26px;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  transition: background 0.2s;
}

.contact-card:hover .contact-card-x { background: #333; }

/* ===== LIGHTBOX ===== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(0,0,0,0.75);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  animation: lbFadeIn 0.25s ease;
}

.lightbox.active { display: flex; }

.lightbox img {
  max-width: 85vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 16px 64px rgba(0,0,0,0.4);
  animation: lbZoomIn 0.3s ease;
}

@keyframes lbFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes lbZoomIn { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ===== FOOTER ===== */
footer {
  background: #1a0e14;
  color: rgba(255,255,255,0.35);
  text-align: center;
  padding: 32px;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
}

/* ===== LOADING ===== */
#loading {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #0e080e;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

#loading.hidden {
  opacity: 0;
  visibility: hidden;
}

.loading-logo {
  width: min(320px, 70vw);
  opacity: 0;
  transform: translateY(10px);
  animation: loadFadeIn 0.7s 0.2s forwards;
}

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

.loading-bar-wrap {
  width: min(200px, 50vw);
  height: 1px;
  background: rgba(249,168,201,0.2);
  border-radius: 2px;
  overflow: hidden;
  opacity: 0;
  animation: loadFadeIn 0.5s 0.5s forwards;
}

.loading-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--pink), var(--orange));
  border-radius: 2px;
  width: 0%;
  transition: width 0.05s linear;
}

.loading-text {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.25em;
  font-family: "Noto Serif JP", serif;
  opacity: 0;
  animation: loadFadeIn 0.5s 0.6s forwards;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  #sec-top {
    grid-template-columns: 1fr;
    height: 100svh;
    min-height: 100svh;
    position: relative;
  }

  .top-right {
    position: absolute !important;
    inset: 0 !important;
    height: 100% !important;
    z-index: 0;
  }

  .top-left {
    position: relative;
    z-index: 2;
    height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(
      to top,
      rgba(14,8,14,0.88) 0%,
      rgba(14,8,14,0.55) 40%,
      rgba(14,8,14,0.1) 70%,
      transparent 100%
    );
    padding: 0 36px 52px;
  }

  .top-site-url { display: none; }

  .top-center-block {
    flex: 0;
    justify-content: flex-end;
  }

  .top-logo { font-size: 3rem; }

  #top-news-list { display: none; }
  .top-news-more { display: none; }

  nav { padding: 14px 28px; }
  .nav-logo-img { height: 26px; }
  .nav-links { gap: 20px; }

  .works-carousel-wrap { padding: 0 52px 64px; }

  .about-main { grid-template-columns: 1fr; }

  .about-photo {
    position: relative;
    top: 0;
    height: 60vw;
    min-height: 260px;
  }

  .about-body { padding: 48px 36px 56px; }
  .about-headline { margin-bottom: 36px; }
  .about-headline-col { font-size: 1.6rem; }
  .about-headline-col.accent { font-size: 1.3rem; }

  .about-second { grid-template-columns: 1fr; }
  .about-second-photo { height: 60vw; min-height: 240px; }
  .about-second-body { padding: 48px 36px 56px; }

  .news-list { padding: 0 28px 64px; }
  .news-item {
    grid-template-columns: 96px 72px 1fr;
    gap: 12px;
  }

  .contact-content { padding: 0 28px 64px; }
  .contact-cards {
    grid-template-columns: 1fr !important;
    max-width: 400px;
    margin: 0 auto;
  }
}

@media (max-width: 600px) {
  nav { padding: 12px 20px; }
  .nav-links { gap: 14px; }
  .nav-links a { font-size: 0.72rem; letter-spacing: 0.08em; }
  .nav-logo-img { height: 22px; }

  .top-left { padding: 28px 24px 40px; }
  .top-logo { font-size: 2.6rem; }
  .top-logo-img img { max-width: 200px; }
  .top-nav-inline { gap: 14px; margin-bottom: 0; }
  .top-nav-inline a { font-size: 0.8rem; }

  .top-news-entry { padding: 7px 0; }
  .top-news-t { font-size: 0.76rem; }

  .section-header { padding: 56px 0 36px; }
  .section-header h2 { font-size: 1.9rem; }

  .works-carousel-wrap { padding: 0 44px 52px; }
  .work-card { width: 200px; }
  .work-card img { height: 260px; }

  .about-headline-col { font-size: 1.3rem; }
  .about-headline-col.accent { font-size: 1.1rem; }

  .news-item {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 18px 0;
  }

  .contact-cards { grid-template-columns: 1fr !important; }
  .contact-card { padding: 32px 24px; }
}

/* ===== PERSEID BANNER ===== */
.perseid-bnr {
  position: fixed;
  bottom: 1.5rem; right: 1.5rem;
  z-index: 900;
  display: block;
  width: 320px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.35);
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.3s ease;
  pointer-events: none;
}
.perseid-bnr.show {
  opacity: 1; transform: translateY(0);
  pointer-events: auto;
}
.perseid-bnr.show:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.45), 0 0 16px rgba(111,160,212,0.3);
}
.perseid-bnr img { width: 100%; display: block; }
.perseid-bnr-close {
  position: absolute; top: 4px; right: 8px;
  color: rgba(255,255,255,0.7); font-size: 1.2rem;
  line-height: 1; cursor: pointer;
  transition: color 0.2s;
}
.perseid-bnr-close:hover { color: #fff; }
.perseid-bnr.hidden { display: none; }
@media (max-width: 700px) {
  .perseid-bnr { width: 180px; bottom: 0.8rem; right: 0.8rem; }
}
