/* ============================================
   tamaSPACE - メインスタイルシート
   ポップ＆ふわかわテーマ
   ============================================ */

/* --- リセット & 基本設定 --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* カラーパレット - パステルポップ */
  --bg-primary: #fef7f4;
  --bg-secondary: #fff5f9;
  --bg-card: #ffffff;
  --bg-card-hover: #fff0f5;
  --text-primary: #4a3548;
  --text-secondary: #7a6578;
  --text-muted: #b8a0b2;
  --accent-pink: #ff8fab;
  --accent-pink-light: #ffc2d4;
  --accent-purple: #c8a2e0;
  --accent-purple-light: #dfc2f0;
  --accent-mint: #a8e6cf;
  --accent-yellow: #ffe0a0;
  --shadow-soft: rgba(255, 143, 171, 0.15);
  --shadow-card: rgba(200, 162, 224, 0.12);
  --border-color: rgba(255, 143, 171, 0.18);
  --border-hover: rgba(255, 143, 171, 0.4);

  /* DLsite / FANZA / Booth / pictSPACE カラー */
  --dlsite-color: #5db8e8;
  --fanza-color: #ff8fab;
  --booth-color: #ff7b7d;
  --pictspace-color: #f5c36b;

  /* フォント */
  --font-main: 'Zen Maru Gothic', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', sans-serif;
  --font-accent: 'Quicksand', 'Zen Maru Gothic', sans-serif;

  /* サイズ */
  --nav-height: 64px;
  --max-width: 1200px;
  --radius: 18px;
  --radius-sm: 12px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font-main);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
}

a {
  color: var(--accent-pink);
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: #e06080;
}

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

/* --- 年齢確認ゲート --- */
.age-gate {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: linear-gradient(135deg, #fef7f4 0%, #fff0f5 50%, #f5edff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 2rem;
}

.age-gate.hidden {
  display: none;
}

.age-gate__title {
  font-family: var(--font-accent);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--accent-pink);
  margin-bottom: 1rem;
  letter-spacing: 2px;
}

.age-gate__text {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 400px;
  line-height: 1.8;
}

.age-gate__buttons {
  display: flex;
  gap: 1rem;
}

.age-gate__btn {
  padding: 0.9rem 2.5rem;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-family: var(--font-main);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
}

.age-gate__btn--enter {
  background: linear-gradient(135deg, var(--accent-pink), var(--accent-purple));
  color: white;
  box-shadow: 0 6px 24px var(--shadow-soft);
}

.age-gate__btn--enter:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(255, 143, 171, 0.3);
}

.age-gate__btn--leave {
  background: white;
  color: var(--text-secondary);
  border: 2px solid var(--border-color);
}

.age-gate__btn--leave:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
}

/* --- ナビゲーション --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(254, 247, 244, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 0 2rem;
}

.nav__inner {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-family: var(--font-accent);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent-pink);
}

.nav__logo:hover {
  color: #e06080;
}

.nav__links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav__link {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-family: var(--font-accent);
  font-weight: 600;
  letter-spacing: 1px;
  transition: color 0.3s;
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-pink), var(--accent-purple));
  border-radius: 2px;
  transition: all 0.3s;
  transform: translateX(-50%);
}

.nav__link:hover,
.nav__link.active {
  color: var(--accent-pink);
}

.nav__link:hover::after,
.nav__link.active::after {
  width: 100%;
}

/* ハンバーガーメニュー（モバイル） */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--accent-pink);
  border-radius: 2px;
  transition: all 0.3s;
}

.nav__hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav__hamburger.active span:nth-child(2) {
  opacity: 0;
}

.nav__hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- ヒーローセクション --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(255, 194, 212, 0.4) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 60%, rgba(200, 162, 224, 0.3) 0%, transparent 60%),
    radial-gradient(ellipse at 50% 90%, rgba(168, 230, 207, 0.2) 0%, transparent 50%);
  z-index: 0;
}

/* パーティクル背景 → ふわふわバブル */
.hero__particles {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: var(--accent-pink-light);
  opacity: 0;
  animation: particle-float 10s infinite;
  filter: blur(1px);
}

.particle:nth-child(odd) {
  background: var(--accent-purple-light);
}

.particle:nth-child(3n) {
  background: var(--accent-mint);
}

@keyframes particle-float {
  0% {
    opacity: 0;
    transform: translateY(100vh) scale(0) rotate(0deg);
  }
  10% {
    opacity: 0.5;
  }
  50% {
    opacity: 0.4;
  }
  90% {
    opacity: 0.3;
  }
  100% {
    opacity: 0;
    transform: translateY(-20vh) scale(1) rotate(180deg);
  }
}

.hero__content {
  position: relative;
  z-index: 1;
}

.hero__title {
  font-family: var(--font-accent);
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 700;
  letter-spacing: 4px;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--accent-pink);
  text-shadow: 0 2px 20px rgba(255, 143, 171, 0.25);
}

.hero__subtitle {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  font-weight: 500;
  font-family: var(--font-accent);
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2.8rem;
  background: linear-gradient(135deg, var(--accent-pink), var(--accent-purple));
  color: white;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 50px;
  box-shadow: 0 6px 24px var(--shadow-soft);
  transition: all 0.3s;
}

.hero__cta:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 32px rgba(255, 143, 171, 0.3);
  color: white;
}

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  animation: bounce 2s infinite;
}

.hero__scroll svg {
  width: 24px;
  height: 24px;
  stroke: var(--text-muted);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-8px); }
  60% { transform: translateX(-50%) translateY(-4px); }
}

/* --- セクション共通 --- */
.section {
  padding: 5rem 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.section__header {
  text-align: center;
  margin-bottom: 3rem;
}

.section__title {
  font-family: var(--font-accent);
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
  color: var(--accent-pink);
}

.section__subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* --- 作品カードグリッド --- */
.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.work-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  box-shadow: 0 4px 16px var(--shadow-card);
}

.work-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: 0 12px 36px rgba(255, 143, 171, 0.2), 0 4px 20px rgba(200, 162, 224, 0.15);
}

.work-card__thumbnail {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--bg-secondary);
  overflow: hidden;
}

.work-card__thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.work-card:hover .work-card__thumbnail img {
  transform: scale(1.05);
}

.work-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(74, 53, 72, 0.6) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
}

.work-card:hover .work-card__overlay {
  opacity: 1;
}

.work-card__overlay-text {
  color: white;
  font-size: 0.85rem;
  font-weight: 500;
}

.work-card__body {
  padding: 1.2rem;
}

.work-card__tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 0.8rem;
}

.work-card__tag {
  font-size: 0.7rem;
  padding: 0.25rem 0.7rem;
  border-radius: 50px;
  background: rgba(200, 162, 224, 0.18);
  color: #9a6ec0;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.work-card__tag--new {
  background: rgba(255, 143, 171, 0.2);
  color: var(--accent-pink);
}

.work-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  line-height: 1.4;
  color: var(--text-primary);
}

.work-card__desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.work-card__date {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.work-card__links {
  display: flex;
  gap: 0.5rem;
}

.work-card__link {
  flex: 1 1 0;
  min-width: 0;
  padding: 0.5rem 0.4rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
  transition: all 0.3s;
  color: white;
}

.work-card__link:hover {
  color: white;
  transform: translateY(-2px);
}

.work-card__link--dlsite {
  background: var(--dlsite-color);
  box-shadow: 0 3px 12px rgba(93, 184, 232, 0.25);
}

.work-card__link--dlsite:hover {
  box-shadow: 0 6px 20px rgba(93, 184, 232, 0.4);
}

.work-card__link--fanza {
  background: var(--fanza-color);
  box-shadow: 0 3px 12px rgba(255, 143, 171, 0.25);
}

.work-card__link--fanza:hover {
  box-shadow: 0 6px 20px rgba(255, 143, 171, 0.4);
}

.work-card__link--booth {
  background: var(--booth-color);
  box-shadow: 0 3px 12px rgba(255, 123, 125, 0.25);
}

.work-card__link--booth:hover {
  box-shadow: 0 6px 20px rgba(255, 123, 125, 0.4);
}

.work-card__link--pictspace {
  background: var(--pictspace-color);
  box-shadow: 0 3px 12px rgba(245, 195, 107, 0.25);
}

.work-card__link--pictspace:hover {
  box-shadow: 0 6px 20px rgba(245, 195, 107, 0.4);
}

/* --- モーダル（作品詳細/サンプル） --- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 5000;
  background: rgba(74, 53, 72, 0.5);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal__content {
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  max-width: 800px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s;
  box-shadow: 0 20px 60px rgba(200, 162, 224, 0.25);
}

.modal.active .modal__content {
  transform: scale(1) translateY(0);
}

.modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: white;
  border: 2px solid var(--border-color);
  color: var(--text-primary);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  z-index: 10;
  box-shadow: 0 4px 12px var(--shadow-soft);
}

.modal__close:hover {
  background: var(--accent-pink);
  border-color: var(--accent-pink);
  color: white;
}

.modal__gallery {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--bg-secondary);
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
}

.modal__gallery img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.modal__gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  border: 2px solid var(--border-color);
  color: var(--text-primary);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  box-shadow: 0 4px 12px var(--shadow-soft);
}

.modal__gallery-nav:hover {
  background: var(--accent-pink);
  color: white;
  border-color: var(--accent-pink);
}

.modal__gallery-nav--prev {
  left: 0.5rem;
}

.modal__gallery-nav--next {
  right: 0.5rem;
}

.modal__body {
  padding: 1.5rem;
}

.modal__title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.modal__desc {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.modal__links {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.modal__link {
  padding: 0.7rem 1.5rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.85rem;
  color: white;
  transition: all 0.3s;
}

.modal__link:hover {
  color: white;
  transform: translateY(-2px);
}

.modal__link--dlsite {
  background: var(--dlsite-color);
  box-shadow: 0 4px 14px rgba(93, 184, 232, 0.25);
}

.modal__link--fanza {
  background: var(--fanza-color);
  box-shadow: 0 4px 14px rgba(255, 143, 171, 0.25);
}

.modal__link--booth {
  background: var(--booth-color);
  box-shadow: 0 4px 14px rgba(255, 123, 125, 0.25);
}

.modal__link--pictspace {
  background: var(--pictspace-color);
  box-shadow: 0 4px 14px rgba(245, 195, 107, 0.25);
}

/* --- About ページ --- */
.about {
  padding-top: calc(var(--nav-height) + 3rem);
}

.about__content {
  max-width: 700px;
  margin: 0 auto;
}

.about__avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 2rem;
  background: linear-gradient(135deg, var(--accent-pink-light), var(--accent-purple-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-accent);
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
  box-shadow: 0 8px 30px var(--shadow-soft);
  border: 4px solid white;
}

.about__name {
  text-align: center;
  font-family: var(--font-accent);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--accent-pink);
}

.about__role {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-family: var(--font-accent);
  font-weight: 500;
}

.about__bio {
  color: var(--text-secondary);
  line-height: 2;
  margin-bottom: 2rem;
  text-align: center;
}

.about__social {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.about__social-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  border-radius: 50px;
  background: white;
  border: 2px solid var(--border-color);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s;
  box-shadow: 0 4px 12px var(--shadow-card);
}

.about__social-link:hover {
  border-color: var(--accent-pink);
  box-shadow: 0 6px 20px var(--shadow-soft);
  color: var(--accent-pink);
  transform: translateY(-2px);
}

.about__stores {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.about__store {
  padding: 1.2rem;
  border-radius: 50px;
  text-align: center;
  font-weight: 700;
  color: white;
  transition: all 0.3s;
}

.about__store:hover {
  color: white;
  transform: translateY(-3px);
}

.about__store--dlsite {
  background: var(--dlsite-color);
  box-shadow: 0 4px 16px rgba(93, 184, 232, 0.25);
}

.about__store--fanza {
  background: var(--fanza-color);
  box-shadow: 0 4px 16px rgba(255, 143, 171, 0.25);
}

.about__store--booth {
  background: var(--booth-color);
  box-shadow: 0 4px 16px rgba(255, 123, 125, 0.25);
}

.about__store--pictspace {
  background: var(--pictspace-color);
  box-shadow: 0 4px 16px rgba(245, 195, 107, 0.25);
}

/* --- Contact ページ --- */
.contact {
  padding-top: calc(var(--nav-height) + 3rem);
}

.contact__content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.contact__text {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.contact__methods {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.contact__method {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.5rem;
  background: white;
  border: 2px solid var(--border-color);
  border-radius: var(--radius);
  color: var(--text-primary);
  transition: all 0.3s;
  box-shadow: 0 4px 16px var(--shadow-card);
}

.contact__method:hover {
  border-color: var(--accent-pink);
  box-shadow: 0 8px 24px var(--shadow-soft);
  transform: translateY(-2px);
  color: var(--text-primary);
}

.contact__method-icon {
  font-size: 1.5rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-pink), var(--accent-purple));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px var(--shadow-soft);
}

.contact__method-info {
  text-align: left;
}

.contact__method-label {
  font-weight: 700;
  font-size: 1rem;
}

.contact__method-detail {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* --- フッター --- */
.footer {
  padding: 2rem;
  text-align: center;
  border-top: 1px solid var(--border-color);
  margin-top: 4rem;
  background: var(--bg-secondary);
}

.footer__text {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.footer__logo {
  font-family: var(--font-accent);
  font-weight: 700;
  color: var(--accent-pink);
}

/* --- ユーティリティ --- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* サムネイルプレースホルダー */
.placeholder-thumb {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg-secondary), var(--accent-pink-light));
  color: var(--text-muted);
  font-size: 2.5rem;
}

/* --- レスポンシブ --- */
@media (max-width: 768px) {
  .nav__links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(254, 247, 244, 0.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    gap: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
  }

  .nav__links.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav__hamburger {
    display: flex;
  }

  .works-grid {
    grid-template-columns: 1fr;
  }

  .about__stores {
    grid-template-columns: 1fr;
  }

  .hero__title {
    letter-spacing: 2px;
  }

  .section {
    padding: 3rem 1.2rem;
  }

  .modal__content {
    width: 95%;
  }

  .work-card__links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
  }

  .work-card__link {
    min-width: 0;
  }

  .about__social {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .age-gate__buttons {
    flex-direction: column;
  }

  .hero {
    min-height: 80vh;
  }
}
