/*
Theme Name: Choco Time Studio
Theme URI: https://chocotimestudio.com
Author: Choco Time Studio
Description: ちょこっと遊べる、たのしいゲーム
Version: 1.0.0
Text Domain: choco-time-studio
*/

/* ========================================
   RESET & BASE
======================================== */

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

:root {
  --choco-dark:    #2C1810;
  --choco-brown:   #6B3A2A;
  --choco-amber:   #C85C1E;
  --pepper-red:    #E8401A;
  --pepper-orange: #FF6B35;
  --gold:          #FFB347;
  --cream:         #FFF8F0;
  --cream-dark:    #F5E6D3;
  --white:         #FFFFFF;
  --text:          #2C1810;
  --text-mid:      #7B5C54;
  --text-light:    #B08070;

  --font-title:  'Fredoka One', cursive;
  --font-body:   'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;

  --radius:      16px;
  --radius-lg:   24px;
  --shadow:      0 4px 24px rgba(44, 24, 16, 0.12);
  --shadow-lg:   0 8px 40px rgba(44, 24, 16, 0.22);
  --transition:  0.25s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--cream);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--pepper-orange);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--pepper-red);
}

/* ========================================
   LAYOUT UTILITIES
======================================== */

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-label {
  display: inline-block;
  font-family: var(--font-title);
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--pepper-orange);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-title);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--choco-dark);
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.section-subtitle {
  margin-top: 16px;
  font-size: 1rem;
  color: var(--text-mid);
}

/* ========================================
   BUTTONS
======================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  border: 2px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--pepper-orange), var(--pepper-red));
  color: var(--white);
  box-shadow: 0 4px 16px rgba(232, 64, 26, 0.35);
}

.btn-primary:hover {
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232, 64, 26, 0.45);
}

.btn-outline {
  background: transparent;
  color: var(--choco-dark);
  border-color: var(--choco-brown);
}

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

.btn-ghost {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(4px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.25);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.7);
}

/* ========================================
   HEADER & NAV
======================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 0;
  transition: all var(--transition);
}

.site-header.scrolled {
  background: rgba(44, 24, 16, 0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.site-logo img {
  height: 80px;
  width: auto;
}

.site-logo-text {
  font-family: var(--font-title);
  font-size: 1.25rem;
  color: var(--white);
  letter-spacing: 0.02em;
  line-height: 1;
}

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

.site-nav a {
  font-size: 14px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color var(--transition);
}

.site-nav a:hover {
  color: var(--gold);
}

/* ========================================
   HERO
======================================== */

.site-hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(145deg, var(--choco-dark) 0%, #4A1E10 35%, #8B3A1A 65%, #C85C1E 100%);
}

/* Floating bubbles background */
.hero-bubbles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-bubbles span {
  position: absolute;
  display: block;
  border-radius: 50%;
  animation: bubbleFloat linear infinite;
  opacity: 0;
}

.hero-bubbles span:nth-child(1)  { width: 80px;  height: 80px;  left: 5%;  background: rgba(255, 107, 53, 0.2); animation-duration: 14s; animation-delay: 0s; }
.hero-bubbles span:nth-child(2)  { width: 40px;  height: 40px;  left: 15%; background: rgba(255, 179, 71, 0.25); animation-duration: 11s; animation-delay: 2s; }
.hero-bubbles span:nth-child(3)  { width: 60px;  height: 60px;  left: 30%; background: rgba(255, 107, 53, 0.15); animation-duration: 16s; animation-delay: 4s; }
.hero-bubbles span:nth-child(4)  { width: 30px;  height: 30px;  left: 50%; background: rgba(255, 179, 71, 0.3);  animation-duration: 9s;  animation-delay: 1s; }
.hero-bubbles span:nth-child(5)  { width: 100px; height: 100px; left: 65%; background: rgba(255, 107, 53, 0.1);  animation-duration: 18s; animation-delay: 3s; }
.hero-bubbles span:nth-child(6)  { width: 50px;  height: 50px;  left: 80%; background: rgba(255, 179, 71, 0.2);  animation-duration: 12s; animation-delay: 5s; }
.hero-bubbles span:nth-child(7)  { width: 70px;  height: 70px;  left: 90%; background: rgba(255, 107, 53, 0.18); animation-duration: 15s; animation-delay: 0.5s; }

@keyframes bubbleFloat {
  0%   { transform: translateY(110vh) scale(0.5); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateY(-10vh) scale(1.1); opacity: 0; }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
  width: 100%;
  max-width: 700px;
}

.hero-logo-img {
  width: clamp(300px, 65vw, 620px);
  height: auto;
  object-fit: contain;
  margin: 0 auto 32px;
  filter: drop-shadow(0 4px 24px rgba(0,0,0,0.35));
}

/* ロゴ画像がない場合のフォールバック */
.hero-logo-placeholder {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, var(--pepper-orange), var(--gold));
  border-radius: 24px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  box-shadow: 0 8px 32px rgba(255, 107, 53, 0.4);
}

.hero-brand {
  font-family: var(--font-title);
  font-size: clamp(2.5rem, 7vw, 5rem);
  color: var(--white);
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  margin-bottom: 20px;
}

.hero-brand em {
  font-style: normal;
  color: var(--gold);
}

.hero-tagline {
  font-size: clamp(2.2rem, 7vw, 3.4rem);
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: 0.06em;
  margin-bottom: 48px;
  font-family: 'Mochiy Pop One', sans-serif;
  line-height: 1.4;
}

.hero-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
}

.hero-actions .btn {
  justify-content: center;
  width: 100%;
  padding: 14px 12px;
}

.hero-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.hero-social-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: color var(--transition);
}

.hero-social-link:hover {
  color: var(--gold);
}

.hero-social-divider {
  color: rgba(255, 255, 255, 0.25);
  font-size: 14px;
}

.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: scrollBounce 2s ease-in-out infinite;
}

.hero-scroll::after {
  content: '';
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ========================================
   GAMES SECTION
======================================== */

.section-games {
  background: var(--cream);
}

/* Featured game card */
.game-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-bottom: 48px;
}

.game-featured-visual {
  position: relative;
  background: linear-gradient(135deg, #1A0A06 0%, #3D1A10 50%, #6B2A10 100%);
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.game-screenshot {
  width: 100%;
  max-width: 220px;
  border-radius: 20px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 1;
}

/* スクリーンショット画像がない場合のフォールバック */
.game-screenshot-placeholder {
  width: 220px;
  height: 390px;
  background: linear-gradient(180deg, #1A1A2E 0%, #E8401A 40%, #FF6B35 100%);
  border-radius: 20px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: var(--font-title);
  color: white;
  font-size: 1.1rem;
  text-align: center;
  padding: 24px;
  position: relative;
  z-index: 1;
}

.game-featured-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(255, 107, 53, 0.15) 0%, transparent 60%);
}

.game-featured-info {
  padding: 48px 48px 48px 0;
}

.game-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--pepper-orange), var(--pepper-red));
  color: white;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 16px;
}

.game-title {
  font-family: var(--font-title);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--choco-dark);
  letter-spacing: 0.03em;
  line-height: 1.1;
  margin-bottom: 12px;
}

.game-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.game-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--cream-dark);
  color: var(--text-mid);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 50px;
}

.game-desc {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-mid);
  margin-bottom: 32px;
}

.game-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Coming soon grid */
.coming-soon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.coming-soon-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 32px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 2px dashed var(--cream-dark);
  transition: all var(--transition);
}

.coming-soon-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.coming-soon-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--cream-dark), var(--gold));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 28px;
}

.coming-soon-card h3 {
  font-family: var(--font-title);
  font-size: 1.5rem;
  color: var(--choco-dark);
  margin-bottom: 8px;
}

.coming-soon-card p {
  color: var(--text-light);
  font-size: 14px;
}

/* ========================================
   ABOUT SECTION
======================================== */

.section-about {
  background: linear-gradient(135deg, var(--choco-dark) 0%, #4A2010 100%);
  color: var(--white);
}

.section-about .section-title {
  color: var(--white);
}

.section-about .section-label {
  color: var(--gold);
}

.about-layout {
  max-width: 760px;
  margin: 0 auto;
}

.about-text p {
  font-size: 1rem;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 20px;
}

.about-text p:last-child {
  margin-bottom: 0;
}

.about-highlight {
  font-family: var(--font-title);
  font-size: 1.5rem;
  color: var(--gold);
  line-height: 1.5;
  border-left: 4px solid var(--pepper-orange);
  padding-left: 20px;
  margin-bottom: 28px;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  backdrop-filter: blur(8px);
}

.stat-number {
  font-family: var(--font-title);
  font-size: 2.5rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.05em;
}

/* ========================================
   FOOTER
======================================== */

.site-footer {
  background: var(--choco-dark);
  color: rgba(255, 255, 255, 0.6);
  padding: 48px 0 32px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.footer-logo img {
  height: 64px;
  opacity: 0.9;
}

.footer-logo-text {
  font-family: var(--font-title);
  font-size: 1.1rem;
  color: var(--white);
  letter-spacing: 0.02em;
}

.footer-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color var(--transition);
}

.footer-nav a:hover {
  color: var(--gold);
}

.footer-divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 24px;
}

/* ========================================
   SNS SECTION
======================================== */

.section-sns {
  background: var(--cream-dark);
}

.sns-feeds {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.sns-feed-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.sns-feed-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--cream-dark);
}

.sns-feed-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--white);
}

.sns-icon-x {
  background: #000;
}

.sns-icon-youtube {
  background: #FF0000;
}

.sns-icon-tiktok {
  background: #010101;
}

.sns-icon-instagram {
  background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.sns-icon-note {
  background: linear-gradient(135deg, var(--choco-dark), var(--choco-brown));
}

.sns-feed-name {
  font-family: var(--font-title);
  font-size: 1rem;
  color: var(--choco-dark);
  line-height: 1.2;
}

.sns-feed-handle {
  font-size: 12px;
  color: var(--pepper-orange);
  font-weight: 600;
}

.sns-feed-follow {
  margin-left: auto;
  padding: 6px 16px;
  border: 1.5px solid var(--choco-brown);
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  color: var(--choco-brown);
  text-decoration: none;
  white-space: nowrap;
  transition: all var(--transition);
}

.sns-feed-follow:hover {
  background: var(--choco-dark);
  color: var(--white);
  border-color: var(--choco-dark);
}

.sns-feed-body {
  min-height: 200px;
}

.note-post-list {
  list-style: none;
}

.note-post-item {
  border-bottom: 1px solid var(--cream-dark);
}

.note-post-item:last-child {
  border-bottom: none;
}

.note-post-item a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 16px 20px;
  color: var(--text);
  text-decoration: none;
  transition: background var(--transition);
}

.note-post-item a:hover {
  background: var(--cream);
  color: var(--choco-dark);
}

.note-post-title {
  font-size: 14px;
  line-height: 1.5;
  flex: 1;
}

.note-post-date {
  font-size: 12px;
  color: var(--text-light);
  white-space: nowrap;
  flex-shrink: 0;
}

.sns-feed-empty {
  padding: 40px 20px;
  text-align: center;
  color: var(--text-mid);
  font-size: 14px;
  line-height: 1.9;
}

.sns-feed-empty a {
  color: var(--pepper-orange);
}

@media (max-width: 700px) {
  .sns-feeds {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   FOOTER SOCIAL
======================================== */

.footer-social {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 20px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  padding: 8px 18px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50px;
  transition: all var(--transition);
}

.social-link:hover {
  color: var(--gold);
  border-color: var(--gold);
  background: rgba(255, 179, 71, 0.08);
}

.footer-bottom {
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.05em;
}

/* ========================================
   GENERIC PAGE
======================================== */

.page-hero {
  background: linear-gradient(135deg, var(--choco-dark), var(--choco-amber));
  padding: 140px 0 80px;
  text-align: center;
}

.page-hero h1 {
  font-family: var(--font-title);
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--white);
  letter-spacing: 0.02em;
}

.page-content {
  padding: 80px 0;
}

.entry-content h2,
.entry-content h3 {
  font-family: var(--font-title);
  color: var(--choco-dark);
  margin: 2em 0 0.7em;
}

.entry-content p {
  margin-bottom: 1.5em;
  line-height: 1.9;
}

/* ========================================
   RESPONSIVE
======================================== */

@media (max-width: 900px) {
  .game-featured {
    grid-template-columns: 1fr;
  }
  .game-featured-visual {
    min-height: 320px;
  }
  .game-featured-info {
    padding: 36px;
  }
}


@media (max-width: 680px) {
  .section {
    padding: 72px 0;
  }
  .header-inner {
    padding: 16px 20px;
    justify-content: center;
  }
  .site-nav {
    display: none;
  }
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
  .footer-nav ul {
    justify-content: center;
  }
}
