/*!
 * 3click テーマ メインスタイルシート
 * デザイン: 案A「イラスト訴求型」（docs/BRAND.md 参照）
 */

:root {
  --primary: #e8621a;
  --primary-hover: #c4501a;
  --peach: #f5c49a;
  --bg: #fef3e8;
  --surface: #fff8f0;
  --dark: #2d2018;
  --muted: #8a7060;
  --border: #f0d5bb;
  --border-strong: #e8d5bf;
  --spotify-green: #1DB954;
  --header-height: 4rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'M PLUS Rounded 1c', sans-serif;
  background: var(--bg);
  color: var(--dark);
  line-height: 1.75;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
.material-symbols-outlined { font-family: 'Material Symbols Outlined'; font-weight: normal; font-style: normal; font-size: 1.25rem; vertical-align: middle; line-height: 1; }

/* ==========================================================================
   Header / Navigation
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(254,243,232,0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(232,98,26,0.15);
  transition: box-shadow 0.2s;
}
.site-header.is-scrolled { box-shadow: 0 1px 3px rgba(45,32,24,0.08); }
.site-header-in {
  max-width: 1200px; margin: 0 auto; padding: 0.85rem 1.5rem;
  display: flex; align-items: center; justify-content: flex-end;
  min-height: var(--header-height);
}
.site-header-nav { display: none; }
@media (min-width: 860px) {
  .site-header-in { justify-content: center; }
  .site-header-nav { display: block; }
}
.site-header-menu { display: flex; gap: 1.75rem; list-style: none; margin: 0; padding: 0; }
.site-header-menu a { font-size: 0.85rem; font-weight: 700; color: var(--muted); }
.site-header-menu a:hover { color: var(--primary); }

.hamburger-btn {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 2.4rem; height: 2.4rem; border: none; background: none; cursor: pointer; padding: 0;
}
@media (min-width: 860px) { .hamburger-btn { display: none; } }
.hamburger-btn span { display: block; width: 100%; height: 2px; background: var(--dark); border-radius: 1px; transition: transform 0.2s, opacity 0.2s; }
.hamburger-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger-btn.open span:nth-child(2) { opacity: 0; }
.hamburger-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav-backdrop {
  position: fixed; inset: 0; background: rgba(45,32,24,0.4); z-index: 39;
  opacity: 0; visibility: hidden; transition: opacity 0.2s;
}
.mobile-nav-backdrop.open { opacity: 1; visibility: visible; }
.mobile-nav {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(80vw, 320px); z-index: 40;
  background: var(--surface);
  transform: translateX(100%); transition: transform 0.25s ease; box-shadow: -8px 0 24px rgba(45,32,24,0.12);
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav-inner { padding: 1.5rem; }
.mobile-nav-close {
  position: fixed; top: 0; right: 1.5rem; z-index: 41;
  display: flex; align-items: center; justify-content: center;
  width: 2.4rem; height: var(--header-height); margin: 0;
  border: none; background: none; cursor: pointer; padding: 0;
}
@media (min-width: 860px) { .mobile-nav-close { display: none; } }
.mobile-nav-close span {
  position: absolute; top: 50%; left: 50%; width: 1.4rem; height: 2px;
  background: var(--dark); border-radius: 1px;
}
.mobile-nav-close span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
.mobile-nav-close span:nth-child(2) { transform: translate(-50%, -50%) rotate(-45deg); }
.mobile-nav-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1.25rem; }
.mobile-nav-menu a { font-size: 1rem; font-weight: 800; color: var(--dark); }
@media (min-width: 860px) { .mobile-nav, .mobile-nav-backdrop { display: none; } }

/* ==========================================================================
   Hero Section (デザイン案A)
   ========================================================================== */
.hero-section { padding: 2.5rem 1.5rem 0; }
.hero-grid {
  max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: 1fr; gap: 1.75rem; align-items: center;
}
.hero-grid > * { min-width: 0; }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.1fr 1fr; gap: 2.5rem; padding-top: 2rem; }
}
.hero-copy { text-align: center; }
@media (min-width: 900px) { .hero-copy { text-align: left; } }
.badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: rgba(232,98,26,0.1); color: var(--primary);
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.15em; text-transform: uppercase;
  padding: 0.3rem 0.9rem; border-radius: 999px; margin-bottom: 0.75rem;
  font-family: 'Space Grotesk', sans-serif;
}
.hero-title {
  font-family: 'Space Grotesk', sans-serif; font-size: 2.4rem; font-weight: 700; line-height: 1.15;
  margin-bottom: 0.75rem; color: var(--dark);
}
@media (min-width: 900px) { .hero-title { font-size: 3rem; } }
.hero-desc { color: var(--muted); font-size: 1rem; max-width: 30rem; margin: 0 auto 1.5rem; }
@media (min-width: 900px) { .hero-desc { margin: 0 0 1.5rem; } }
.hero-actions { display: flex; flex-direction: column; gap: 0.75rem; align-items: center; }
@media (min-width: 900px) { .hero-actions { align-items: flex-start; } }
.hero-cta-row { display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center; justify-content: center; }
@media (min-width: 900px) { .hero-cta-row { justify-content: flex-start; } }

.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--primary); color: #fff; font-weight: 800; font-size: 0.95rem;
  padding: 0.85rem 1.9rem; border-radius: 999px; transition: background-color 0.2s, transform 0.15s;
  box-shadow: 0 6px 16px rgba(232,98,26,0.28);
}
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-2px); color: #fff; }

.hero-illustration { border-radius: 28px; overflow: hidden; background: var(--peach); }
.hero-illustration img { width: 100%; }

/* ==========================================================================
   Platform Section
   ========================================================================== */
.platform-section {
  margin-top: 3rem; padding: 1.5rem; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.platform-row { max-width: 1080px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }
.platform-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.6rem 1.3rem; border-radius: 999px; font-size: 0.85rem; font-weight: 700;
  border: 1.5px solid var(--border-strong); background: #fff;
}
.platform-btn.platform-spotify { border-color: var(--spotify-green); color: var(--spotify-green); }
.platform-btn.platform-amazon { border-color: #00A8E1; color: #00A8E1; }
.platform-btn.platform-apple { border-color: #fa233b; color: #fa233b; }
.platform-btn.platform-youtube { border-color: #ff0000; color: #ff0000; }

/* ==========================================================================
   Section common
   ========================================================================== */
.section-container { max-width: 1080px; margin: 0 auto; padding: 4rem 1.5rem; }
.section-heading { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.75rem; }
.section-heading-bar { width: 5px; height: 2.1rem; background: var(--primary); border-radius: 3px; flex-shrink: 0; }
.section-heading-en { font-family: 'Space Grotesk', sans-serif; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.2em; color: var(--primary); text-transform: uppercase; }
.section-heading-ja { font-family: 'Space Grotesk', sans-serif; font-size: 1.5rem; font-weight: 700; }

/* ==========================================================================
   Episodes
   ========================================================================== */
.episodes-section { background: var(--surface); }
.spotify-embed-container { max-width: 680px; margin: 0 auto 1.5rem; }
.episode-cards { display: flex; flex-direction: column; gap: 0.7rem; max-width: 680px; margin: 0 auto; }

.episode-card { text-decoration: none; }
.episode-card--featured {
  display: flex; background: #fff; border: 2px solid var(--primary); border-radius: 18px; overflow: hidden;
}
.episode-featured-thumb { width: 110px; flex-shrink: 0; background: var(--peach); display: flex; align-items: center; justify-content: center; position: relative; }
.episode-featured-img { width: 100%; height: 100%; object-fit: cover; }
.episode-featured-img-fallback { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; padding: 10px; }
.episode-play-overlay {
  position: absolute; bottom: 8px; right: 8px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 0.7rem;
}
.episode-card--featured .episode-info { padding: 1rem 1.1rem; flex: 1; }
.episode-badges { display: flex; gap: 0.4rem; align-items: center; margin-bottom: 0.3rem; }
.episode-ep { font-family: 'Space Grotesk', sans-serif; font-weight: 700; color: var(--primary); font-size: 0.8rem; }
.episode-ep--muted { color: var(--muted); }
.episode-new-badge { background: var(--primary); color: #fff; font-size: 0.65rem; font-weight: 800; padding: 2px 8px; border-radius: 999px; }
.episode-title { font-weight: 800; font-size: 1rem; margin-bottom: 0.2rem; display: block; }
.episode-meta { font-size: 0.75rem; color: var(--muted); }

.episode-card--list {
  display: flex; align-items: center; gap: 0.9rem; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 0.75rem 1rem;
}
.episode-list-accent { width: 4px; align-self: stretch; background: var(--border-strong); border-radius: 2px; }
.episode-card--list .episode-title { font-size: 0.9rem; margin-bottom: 0.15rem; }
.episode-list-play {
  margin-left: auto; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center; font-size: 0.7rem; color: var(--muted); flex-shrink: 0;
}
.episode-rss-placeholder {
  text-align: center; padding: 3rem 1.5rem; color: var(--muted); font-size: 0.85rem;
}
.episode-rss-placeholder .material-symbols-outlined { font-size: 2.5rem; color: var(--border-strong); margin-bottom: 0.5rem; }

/* ==========================================================================
   Members
   ========================================================================== */
.members-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1.5rem; max-width: 780px; margin: 0 auto; }
.members-grid > * { min-width: 0; }
@media (min-width: 700px) { .members-grid { grid-template-columns: repeat(4,1fr); } }
.member-card { text-align: center; }
.member-avatar {
  width: 100%; aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  border: 4px solid var(--peach); margin-bottom: 0.75rem; background: var(--peach);
}
.member-avatar img { width: 100%; height: 100%; object-fit: cover; }
.member-name { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.05rem; margin-bottom: 0.15rem; }
.member-role {
  display: inline-block; font-size: 0.7rem; font-weight: 700; color: var(--primary);
  background: rgba(232,98,26,0.1); padding: 2px 10px; border-radius: 999px; margin: 0.3rem 0 0.5rem;
  min-height: 1px;
}
.member-role--empty { visibility: hidden; }
.member-bio { font-size: 0.8rem; color: var(--muted); }

/* ==========================================================================
   SNS
   ========================================================================== */
.sns-section { background: var(--surface); }
.sns-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; max-width: 780px; margin: 0 auto; }
.sns-grid > * { min-width: 0; }
@media (min-width: 700px) { .sns-grid { grid-template-columns: 1fr 1fr; } }
.sns-grid--single { max-width: 480px; }
@media (min-width: 700px) { .sns-grid--single { grid-template-columns: 1fr; } }
.sns-card { background: #fff; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.sns-card-header { display: flex; align-items: center; justify-content: space-between; padding: 0.9rem 1rem; border-bottom: 1px solid var(--border); }
.sns-card-title { display: flex; align-items: center; gap: 0.6rem; }
.sns-icon { width: 2rem; height: 2rem; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0; }
.sns-icon.instagram { background: linear-gradient(135deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); }
.sns-icon.threads { background: #000; }
.sns-name { font-weight: 800; font-size: 0.9rem; }
.sns-follow-link { font-size: 0.75rem; font-weight: 700; color: var(--primary); }
.sns-follow-link:hover { text-decoration: underline; }
.sns-embed-body { min-height: 300px; }
.sns-embed-iframe { width: 100%; min-height: 400px; border: none; display: block; }
.sns-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 220px;
  padding: 2rem; text-align: center; color: var(--muted); gap: 0.75rem;
}
.sns-placeholder .material-symbols-outlined { font-size: 2.5rem; color: var(--border-strong); }
.sns-placeholder p { font-size: 0.85rem; line-height: 1.6; }

.sns-link-row { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; max-width: 480px; margin: 1.25rem auto 0; }
.sns-link-btn {
  flex: 1; min-width: 8rem; display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 0.9rem; font-size: 0.85rem; font-weight: 700;
}
.sns-link-btn:hover { border-color: var(--primary); color: var(--primary); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { text-align: center; padding: 2.5rem 1.5rem; color: var(--muted); font-size: 0.8rem; border-top: 1px solid var(--border); }
.site-footer-logo { font-family: 'Space Grotesk', sans-serif; font-weight: 700; color: var(--dark); margin-bottom: 0.5rem; }

/* ==========================================================================
   Basic page fallback（page.php / single.php / 404.php）
   ========================================================================== */
.basic-page { max-width: 720px; margin: 0 auto; padding: 4rem 1.5rem; }
.basic-page-title { font-family: 'Space Grotesk', sans-serif; font-size: 1.75rem; font-weight: 700; margin-bottom: 1.5rem; }
.basic-page-content { font-size: 0.95rem; }
.basic-page--404 { text-align: center; }

/* ==========================================================================
   Link Page（/link/）
   ========================================================================== */
.link-page {
  min-height: calc(100vh - var(--header-height));
  background: linear-gradient(180deg, var(--peach) 0%, var(--bg) 340px);
  display: flex; flex-direction: column; align-items: center; padding: 2.5rem 1.25rem 3rem;
}
.link-page-profile { text-align: center; margin-bottom: 2rem; }
.link-page-avatar {
  width: 96px; height: 96px; border-radius: 50%; overflow: hidden; background: var(--peach);
  border: 4px solid #fff; box-shadow: 0 4px 16px rgba(45,32,24,0.15); margin: 0 auto 1rem; padding: 12px;
}
.link-page-avatar img { width: 100%; height: 100%; object-fit: contain; }
.link-page-profile h1 { font-family: 'Space Grotesk', sans-serif; font-size: 1.15rem; font-weight: 700; }
.link-page-profile p { font-size: 0.8rem; color: var(--muted); margin-top: 0.35rem; }
.link-page-links { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 0.75rem; }
.link-page-btn {
  display: flex; align-items: center; gap: 0.85rem;
  background: #fff; border: 1.5px solid var(--border); border-radius: 16px;
  padding: 0.95rem 1.1rem; font-weight: 700; font-size: 0.92rem;
  box-shadow: 0 2px 6px rgba(45,32,24,0.05);
  transition: transform .15s, box-shadow .15s;
}
.link-page-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(45,32,24,0.1); }
.link-page-ic {
  width: 2.1rem; height: 2.1rem; border-radius: 50%; flex-shrink: 0; background: var(--primary);
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1rem;
}
.link-page-btn--spotify .link-page-ic { background: var(--spotify-green); }
.link-page-btn--youtube .link-page-ic { background: #ff0000; }
.link-page-btn--instagram .link-page-ic { background: linear-gradient(135deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); }
.link-page-btn--tiktok .link-page-ic,
.link-page-btn--x .link-page-ic,
.link-page-btn--threads .link-page-ic { background: #000; }
.link-page-btn--apple .link-page-ic { background: #fa233b; }
.link-page-btn--amazon .link-page-ic { background: #00A8E1; }
