/* =========================================
   基本設定
========================================= */

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  animation: bgFade 1.5s forwards;
  font-family: 'Yu Gothic', sans-serif;
  overflow-x: hidden;
}

body.top-page {
  animation-duration: 3s;  /* ← ここだけ3秒 */
}

@media (max-width: 768px) {
  body {
    overflow-x: hidden;
  }
}
.page-wrapper {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

/* 背景フェード */
@keyframes bgFade {
  0%   { background: #ffffff; }
  100% { background: rgb(164, 113, 197); }
}


/* =========================================
   画面固定要素（ロゴ・キャラ）
========================================= */

/* 左上タイトル（そのままOK） */
.site-title {
  display: inline-block;
  position: fixed;
  top: 30px;
  left: 30px;
  font-size: 28px;
  color: white;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-shadow: 0 0 6px rgba(255,255,255,0.7);
  z-index: 30;
  text-decoration: none;
}

/* 概要説明 */
.circle-text {
  position: absolute;
  top: 18%;
  left: 49.5%;
  transform: translateX(-50%);
  width: 260px;
  height: 130px;
  pointer-events: none;
}

.circle-text span {
  position: absolute;
  left: 50%;
  top: 0%;
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  transform-origin: 0 120px;
  opacity: 0;
  animation: fadeLetter 0.8s forwards;
  animation-delay: 5s;
}

@keyframes fadeLetter {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* ロゴ */
.logo-box {
  position: absolute;
  top: 10%;
  left: 40%;
  transform: translateX(-50%);
  z-index: 10;
}

.moon-img,
.fog-img {
  width: 360px;
  position: absolute;
}

.fog-img {
  opacity: 0;
  animation: fogfade 3s ease forwards;
  animation-delay: 4s;
}

@keyframes fogfade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@media (max-width: 768px) {
  .fog-img {
    width: 200%;
    left: -50%;
    top: -10%;
  }
}

/* キャラ（固定表示） */
.chara-box {
  position: fixed;
  bottom: 0;
  right: 3%;
  z-index: 2;
}

.chara-img {
  height: 95vh;
  opacity: 0;
  transform: translateY(40px);
  filter: blur(4px);
  animation: charaIn 1.2s ease-out forwards;
  animation-delay: 2.2s;
}

@keyframes charaIn {
  0%   { opacity: 0; transform: translateY(40px); filter: blur(4px); }
  100% { opacity: 1; transform: translateY(10px);   filter: blur(0); }
}

@media (max-width: 768px) {
  .chara-box {
    position: static;
    display: flex;
    justify-content: center;
    margin-top: 20px;
    height: auto;
  }

  .chara-img {
    width: 70%;  /* ← ここで立ち絵の大きさ調整 */
    height: auto;
  }
}

/* 霧の流れ */
.fog-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 300%;
  height: 215%;
  pointer-events: none;
  z-index: 1;

  background-image: url('./assets/fog.png');
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0.18;

  animation: fogMove 22s ease-in-out infinite alternate;
}

@keyframes fogMove {
  0% {
    transform: translate(-10%, -10%) scale(1.1);
  }
  100% {
    transform: translate(-25%, -15%) scale(1.15);
  }
}

.draw-line {
  position: fixed;
  top: 20%;
  left: -20%;
  width: 0;
  height: 3px;
  background: white;
  opacity: 0.25;
  transform: rotate(35deg);  
  z-index: 2;            
  
  animation: drawLine 3s ease-out infinite;
}


@keyframes drawLine {
  0% {
    width: 0;
    opacity: 0;
  }
  10% {
    opacity: 0.3;
  }
  60% {
    width: 140%;
    opacity: 0.3;
  }
  100% {
    width: 140%;
    opacity: 0;
  }
}
/* =========================================
   art section
========================================= */
.art-main {
  padding-top: 140px;
  padding-bottom: 80px;
  max-width: calc(480px * 3 + 20px * 2 + 200);
  margin: 0 auto;
  color: white;
}

.art-title {
  font-size: 36px;
  margin-bottom: 20px;
}

.art-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.art-row {
  display: flex;
  gap: 20px;
  padding: 10px 0;
  overflow-x: auto;
  scroll-behavior: smooth;
  max-width: calc(480px * 3 + 20px * 2); 
  flex-shrink: 1;
  min-width: 0; 
}

.art-row::-webkit-scrollbar {
  height: 8px;
}

.art-row::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.3);
  border-radius: 4px;
}

.art-row-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
}

.arrow {
  display: inline-flex;
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: none;
  font-size: 24px;
  padding: 10px 14px;
  cursor: pointer;
  border-radius: 6px;
  transition: 0.2s;
  z-index: 10;
}

.arrow:hover {
  background: rgba(255,255,255,0.35);
}

.left {
  margin-right: 10px;
}
.right {
  margin-left: 10px;
}

.art-thumb {
  width: 480px;
  height: 640px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0; 
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.top-face {
  object-position: top;
}

.position-fix {
  object-fit: none;
  object-position: 50% 0%;
}

.art-thumb:hover {
  transform: scale(1.03);
  box-shadow: 0px 4px 14px rgba(0,0,0,0.4);
}

.viewer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(4px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.viewer img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 6px;
}

.hidden {
  display: none;
}
/* =========================================
   info
========================================= */
.info {
  width: 60%;
  margin-left: 20%;
  padding-top: 40px;
  padding-bottom: 640px;
  color: white;
  overflow: visible; 
}

.info-title {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 2px;
  margin-bottom: 16px;
  text-shadow: 0 0 4px rgba(0,0,0,0.4);
}

.info-list {
  display: block;
  max-height: 240px;
  overflow-y: auto;
  padding-right: 10px;
}

.info-list::-webkit-scrollbar {
  width: 6px;
}
.info-list::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.35);
  border-radius: 4px;
}


/* 情報アイテム */
.info-item {
  display: flex;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.25);
}

.info-date {
  width: 120px;
  font-weight: 600;
  opacity: 0.9;
}

.info-text {
  flex: 1;
  opacity: 0.95;
  margin-left: 16px;
}

/* =========================================
   title section
========================================= */
/* 横スクロール製品バー */
.title-banner-scroll {
  height: auto;
  padding-left: 60px;
  padding-top: 120px;
  padding-bottom: 30px;
  white-space: nowrap;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.title-banner-scroll::-webkit-scrollbar {
  display: none;
}

.banner-container {
  display: flex;
  gap: 24px;
  padding: 8px 20px;
}

.title-banner {
  width: 300px;
  height: auto;
  object-fit: cover;
  border-radius: 14px;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.title-banner:hover {
  transform: scale(1.04);
}

/* セクション区切り */
.section-divider {
  width: 100%;
  height: 3px;
  border: none;
  border-top: 1px solid #ddd;
}

.highlight-glow {
  animation: glowFlash 3s ease-out;
}

@keyframes glowFlash {
  0% {
    background: rgba(255, 255, 255, 0.0);
    transform: scale(1);
    box-shadow: none;
  }
  20% {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.03);
    box-shadow: 0 0 20px rgba(255,255,255,0.8);
  }
  60% {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.01);
    box-shadow: 0 0 12px rgba(255,255,255,0.5);
  }
  100% {
    background: rgba(255, 255, 255, 0);
    transform: scale(1);
    box-shadow: none;
  }
}

/* ==============================
   タイムライン本体
================================ */
.timeline {
  width: 100%;
  max-width: 900px;
  margin: 0;
  padding-bottom: 140px;
  position: relative;
}

.timeline-line {
  position: absolute;
  top: 0;
  left: 6%;
  width: 3px;
  height: 100%;
  background: white;
  opacity: 0.6;
}

.timeline-item {
  position: relative;
  margin: 80px 0;
  opacity: 0;
  transform: translateY(20px);
  animation: appear 0.8s forwards;
}

/* 内容 */
.tl-content {
  margin-left: 8%;
  display: flex;
  align-items: center;
  gap: 24px;
  white-space: nowrap;
}

.tl-year {
  font-size: 18px;
  white-space: nowrap;
  color: white;
}

.tl-text {
  font-size: 18px;
  white-space: nowrap;
  color: white;
  text-decoration: none;
}

/* ==============================
   分岐
================================ */
.branch {
  position: absolute;
  margin-top: 12px;
  left: calc(3% + 300px); 
  top: 0;
  opacity: 0.6;
}

.branch-line {
  width: 150px;
  height: 3px;
  background: white;
  margin-bottom: 4px;
}

.branch-down {
  width: 3px;
  height: 190px;
  background: white;
  margin-top: -7px;
  margin-left: 150px;
}

.branch-item {
  margin-left: 160px;
  margin-top: -110px;
  color: white;
  font-size: 16px;
}

#L341 .tl-text {
  margin-left: 275px;
}

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

/* =========================================
   プロダクト
========================================= */
.product-container {
  display: flex;
  gap: 40px;
  padding: 40px;
  max-width: 1200px;
  margin: 0 auto;
  color: white;
}

.product-info {
  flex: 0.7;
}

.product-visual {
  position: fixed;
  display: flex;
  right: -30px;
  bottom: 0;
  z-index: 1;
  align-items: flex-end;
  height: calc(100vh - 150px);
  justify-content: center;
}

.product-visual img {
  height: 120%;
  opacity: 0.8;
}

@media (max-width: 768px) {
  .product-container {
    flex-direction: column;
  }
}

/* ストアセクション */
.store-title .store-note {
  display: block;
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  margin-top: 4px;    /* ストアと少し距離 */
}
.store-links {
  display: flex;
  gap: 24px;
  margin: 40px 0;
  flex-wrap: wrap;
}

.store-card {
  background: rgba(255,255,255,0.08);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: top;
  justify-content: center;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card-noimage {
  width: 240px;
  height: 180px;
  background: linear-gradient(135deg, #3a3a3a, #555);
  border-radius: 12px;
  text-decoration: none;
  color: white;
  font-size: 20px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 14px rgba(0,0,0,0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}

/* 視認性アップのため文字に影 */
.card-noimage span {
  text-shadow: 0 0 8px rgba(0,0,0,0.7);
}

.store-card img {
  width: 240px;
  height: 180px;
  object-fit: cover;
}

.dlsite-card {
  background-image: url("https://img.dlsite.jp/modpub/images2/work/doujin/RJ01118000/RJ01117269_img_sam.jpg");
  background-size: cover;
  background-position: center;
}

.fanza-card {
  background-image: url("./assets/art/banner/fanza_sample.jpg");
  background-size: cover;
  background-position: center;
}

.steam-widget {
  width: 100%;
  height: 100%;
}

.store-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.5);
}

.card-noimage:hover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.07);
}

.dlsite-card {
  width: 100%;
  height: 100%;
  background-image: url("./assets/art/banner/product1.png");
  background-size: cover;
  background-position: center;
}

.fanza-card {
  width: 100%;
  height: 100%;
  background-image: url("./assets/art/banner/product1.png"); 
  background-size: cover;
  background-position: center;
}
/* =========================================
   サークル説明
========================================= */
.about-layout {
  text-align: left;
  display: flex;
  align-items: flex-start;
  gap: 40px;
  padding-top: 160px;
  padding-bottom: 120px;
  position: relative;
}

.about-text {
  margin-left: 30%;
  text-align: left;
  color: white;
}

.about-text h1 {
  font-size: 40px;
  margin-bottom: 20px;
}

.about-text h2 {
  font-size: 28px;
  margin-bottom: 10px;
}

.about-text h3 {
  font-size: 20px;
  margin-top: 24px;
  margin-bottom: 12px;
  opacity: 0.8;
}

.about-text p,
.about-text li {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 18px;
  opacity: 0.9;
}

.about-text ul {
  margin-left: 5px;
}

.about-visual {
  position: relative;
  flex: 0 0 auto;
}


/* =========================================
   ナビ
========================================= */
.navbar {
  position: fixed;
  top: 20px;
  right: 30px;
  display: flex;
  gap: 24px;
  list-style: none;
  z-index: 30;
}

.navbar a {
  color: white;
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
}


/* =========================================
   コンテンツ領域
========================================= */

main {
  flex: 1 0 auto;
  margin-top: 100vh;
}

.content {
  padding: 40px;
  color: #fff;
  font-size: 24px;
}


/* =========================================
   フッター
========================================= */
.footer {
  flex-shrink: 0;
  background: rgba(171, 220, 235, 1);
  padding: 16px 0;
  position: relative;
  z-index: 5;
  margin-top: auto;
}

.footer-inner {
  width: 100%;
  max-width: none; 
  margin: 0 auto;
  padding: 0 24px;

  display: flex;
  justify-content: space-between; 
  align-items: center;
  gap: 40px;
}

.footer-left p {
  color: rgb(164, 113, 197);
  font-size: 14px;
  margin: 0;
}

.footer-right {
  display: flex;
  gap: 16px;
  margin-right: 32px;
}

/* SNSアイコン */
.sns-icon img {
  width: 26px;
  height: 26px;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.cien-icon img {
  height: 26px;
  width: auto;
}

.sns-icon img:hover {
  opacity: 1;
}

