/* ================================================================
   SORAOTO – style.css
   Mobile-first. Primary: #E8003C (HEP FIVE red)
   ================================================================ */

/* ---- Custom Properties ---- */
:root {
  --color-primary:  #E8003C;
  --color-primary-hover: #c00030;
  --color-bg:       #FFFFFF;
  --color-card-bg:  #FFF0F3;
  --color-text:     #1A1A1A;
  --color-text-sub: #555555;
  --color-border:   #E8D0D6;
  --color-badge-limited: #E8003C;
  --color-badge-regular: #444444;

  --font-base: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  --font-logo: 'Arial Black', 'Impact', sans-serif;

  --radius-card: 20px;
  --radius-btn:  100px;
  --shadow-card: 0 4px 16px rgba(0, 0, 0, 0.08);

  --header-height: 56px;
  --max-w: 480px; /* スマホファースト */
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-base);
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  min-height: 100dvh;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul, ol { list-style: none; }

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ---- Utilities ---- */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* 画像が読み込めない場合のプレースホルダー */
.img-placeholder {
  background:
    repeating-conic-gradient(#e0e0e0 0% 25%, #f5f5f5 0% 50%)
    0 0 / 32px 32px;
  width: 100%;
  height: 100%;
  min-height: 200px;
}

/* ---- Multilingual ---- */
/* 各要素は自然な display を保つ（p=block, span=inline 等）。
   JS が動く場合: body クラスで非アクティブな言語を非表示。
   JS が無効の場合: 両方表示 → 少なくとも日本語が読める。 */
body.lang-ja [data-lang="en"],
body.lang-en [data-lang="ja"] { display: none !important; }

/* ================================================================
   HEADER
   ================================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  padding: 0 16px;
  background: #fff;
  border-bottom: 1px solid #f0e0e4;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

/* ハンバーガー */
.btn-hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 4px;
  flex-shrink: 0;
}

.btn-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.2s;
}

.btn-hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.btn-hamburger.is-open span:nth-child(2) { opacity: 0; }
.btn-hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ロゴ */
.site-logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.header-logo {
  height: 28px;
  width: auto;
  display: block;
  filter: brightness(0) saturate(100%) invert(13%) sepia(100%) saturate(6000%) hue-rotate(335deg);
}

/* 言語切り替え */
.btn-lang {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
  background: var(--color-card-bg);
  border-radius: 100px;
  padding: 3px;
}

.btn-lang .lang-ja,
.btn-lang .lang-en {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-text-sub);
  padding: 3px 9px;
  border-radius: 100px;
  transition: background 0.15s, color 0.15s;
}

.btn-lang .lang-sep { display: none; }

body.lang-ja .btn-lang .lang-ja,
body.lang-en .btn-lang .lang-en {
  background: #fff;
  color: var(--color-primary);
}

/* ================================================================
   NAV DRAWER
   ================================================================ */
.nav-drawer {
  position: fixed;
  top: var(--header-height);
  left: 0;
  z-index: 90;
  width: 260px;
  height: calc(100dvh - var(--header-height));
  background: #fff;
  transform: translateX(-100%);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 24px 0;
  border-right: 1px solid var(--color-border);
}

.nav-drawer.is-open {
  transform: translateX(0);
}

.nav-drawer ul { list-style: none; }

.drawer-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
  border-bottom: 1px solid #f5e8eb;
  transition: color 0.15s, background 0.15s;
}

.drawer-link:hover {
  color: var(--color-primary);
  background: var(--color-card-bg);
}

.drawer-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--color-primary);
  opacity: 0.85;
}

.drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(0,0,0,0.35);
}

.drawer-overlay.is-active { display: block; }

/* ================================================================
   KV（キービジュアル）
   ================================================================ */
.section-kv {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #e8e8e8;
}

/* KV 画像 */
.kv-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* KV プレースホルダー */
.kv-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: repeating-conic-gradient(#e0e0e0 0% 25%, #ebebeb 0% 50%) 0 0 / 24px 24px;
}

.kv-placeholder-icon {
  width: 52px;
  height: 52px;
  opacity: 0.5;
}

.kv-placeholder-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #aaa;
}

.kv-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding-top: 100px; /* ADD for hep five sound */
  padding: 0 6%;
  background: linear-gradient(to top, rgba(0,0,0,0.35) 0%, transparent 60%);
}

.kv-logo {
  width: auto;
  height: 72px;
  display: block;
}

.kv-tagline {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.05em;
  line-height: 1.4;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

/* ================================================================
   INTRO
   ================================================================ */
.section-intro {
  padding: 32px 20px 24px;
  text-align: center;
  max-width: var(--max-w);
  margin: 0 auto;
}

.intro-catch {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--color-text);
  margin-bottom: 12px;
}

.intro-desc {
  font-size: 14px;
  color: var(--color-text-sub);
  line-height: 1.8;
  margin-bottom: 28px;
}

/* イントロナビ（3アイコン） */
.intro-nav {
  display: flex;
  justify-content: center;
  gap: 0;
}

.intro-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 104px;
  flex-shrink: 0;
  text-decoration: none;
  color: var(--color-text);
  transition: transform 0.15s;
}

.intro-nav-item:hover { transform: translateY(-2px); }

.intro-nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-card-bg);
  color: var(--color-primary);
  border: 1.5px solid #f0c0cc;
  transition: background 0.15s, border-color 0.15s;
}

.intro-nav-item:hover .intro-nav-icon {
  background: #ffd8e0;
  border-color: var(--color-primary);
}

.intro-nav-icon svg {
  width: 26px;
  height: 26px;
}

.intro-nav-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text-sub);
  text-align: center;
  white-space: nowrap;
  line-height: 1.4;
}

/* ================================================================
   CONTENTS（現在配信中）
   ================================================================ */
.section-contents {
  background: var(--color-card-bg);
  /* max-width はなし → 背景が横幅全面に広がる */
}

.section-inner {
  padding: 0 16px 40px;
  max-width: var(--max-w);
  margin: 0 auto;
}

/* ● 現在配信中 マーカー */
.section-marker {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: 0.05em;
  margin-bottom: 20px;
  padding-top: 28px;
}

.marker-dot {
  display: inline-block;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--color-primary);
  flex-shrink: 0;
  animation: live-blink 1.4s ease-in-out infinite;
}

@keyframes live-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.2; }
}

.cards-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ---- コンテンツカード ---- */
.content-card {
  border-radius: var(--radius-card);
  background: #ffffff;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid #eeeeee;
  display: flex;
  flex-direction: column;
}

/* サムネイル */
.card-thumb-wrap {
  position: relative;
  aspect-ratio: 1714 / 1094;
  overflow: hidden;
  background: #e8e8e8;
}

.card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.content-card:hover .card-thumb { transform: scale(1.03); }

/* コナンカード：画像の実比率（1714×1094）に合わせてサムネイル高さを自動調整 */
.card-thumb-wrap--conan {
  aspect-ratio: 1714 / 1094;
  overflow: visible;
}

.card-thumb-wrap--conan .card-thumb {
  width: 100%;
  height: auto;
  object-fit: unset;
}

/* バッジ */
.card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 3px 10px;
  border-radius: 100px;
  color: #fff;
}

.badge-regular  { background: #444; }
.badge-limited  { background: var(--color-primary); }

.badge-lang {
  display: inline-block;
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 3px 10px;
  border-radius: 100px;
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
  margin-bottom: 10px;
}

/* カード本文 */
.card-body {
  padding: 16px 16px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-desc {
  flex: 1;
}

.card-period {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--color-text-sub);
  margin-bottom: 8px;
}

.icon-calendar {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--color-primary);
}

.card-title {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 8px;
  color: var(--color-text);
}

.card-desc {
  font-size: 13px;
  color: var(--color-text-sub);
  line-height: 1.75;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* CTAボタン */
.btn-cta {
  display: block;
  width: 100%;
  padding: 14px 16px;
  background: var(--color-primary);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-align: center;
  border-radius: var(--radius-btn);
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.btn-cta:hover { background: var(--color-primary-hover); }
.btn-cta:active { transform: scale(0.98); }

.btn-cta-disabled {
  background: #ccc;
  color: #fff;
  cursor: not-allowed;
}

.btn-cta-disabled:hover { background: #ccc; }

/* ================================================================
   ARCHIVE（配信終了）
   ================================================================ */
.section-archive {
  background: #F2F2F2;
  border-top: 1px solid #DEDEDE;
}

.section-marker--archive {
  color: #888;
}

.marker-dot--archive {
  background: #AAAAAA;
  animation: none;
  opacity: 1;
}


/* ================================================================
   ABOUT
   ================================================================ */
.section-about {
  padding: 40px 20px;
  background: #FFF7F9;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.section-about .section-heading,
.section-faq .section-heading,
.section-notes .section-heading {
  max-width: var(--max-w);
  margin: 0 auto 20px;
}

.about-body {
  max-width: var(--max-w);
  margin: 0 auto;
}

.about-body p {
  font-size: 14px;
  line-height: 1.9;
  color: var(--color-text-sub);
  margin-bottom: 16px;
}

.about-resense {
  margin-top: 20px;
  font-size: 13px !important;
  color: var(--color-text) !important;
}

/* Re:Sense ロゴ */
.resense-logo-wrap {
  margin-top: 24px;
  display: flex;
  justify-content: center;
}

.resense-logo-img {
  max-width: 200px;
  height: auto;
  display: block;
}

/* ================================================================
   SECTION HEADING（共通）
   ================================================================ */
.section-heading {
  font-size: 20px;
  font-weight: 800;
  color: var(--color-text);
  padding-left: 12px;
  border-left: 4px solid var(--color-primary);
  line-height: 1.3;
}

/* About セクションの見出しは中央・赤・左ボーダーなし */
.section-about .section-heading {
  text-align: center;
  color: var(--color-primary);
  border-left: none;
  padding-left: 0;
}

/* ================================================================
   FAQ
   ================================================================ */
.section-faq {
  padding: 40px 20px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.faq-list { margin-top: 4px; }

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 4px;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text);
  cursor: pointer;
  user-select: none;
  line-height: 1.5;
}

.faq-q:hover { color: var(--color-primary); }

.faq-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--color-primary);
  transition: transform 0.25s;
}

.faq-q[aria-expanded="true"] .faq-icon {
  transform: rotate(180deg);
}

.faq-a {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-a.is-open {
  max-height: 400px;
}

.faq-a-inner {
  padding: 4px 4px 20px;
  font-size: 14px;
  color: var(--color-text-sub);
  line-height: 1.8;
}

/* ================================================================
   NOTES（注意事項）
   ================================================================ */
.section-notes {
  padding: 40px 20px;
  background: #fafafa;
  border-top: 1px solid var(--color-border);
}

.notes-list {
  max-width: var(--max-w);
  margin: 0 auto;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.notes-list li {
  font-size: 13px;
  color: var(--color-text-sub);
  padding-left: 16px;
  position: relative;
  line-height: 1.7;
}

.notes-list li::before {
  content: '・';
  position: absolute;
  left: 0;
  color: var(--color-primary);
}

/* ================================================================
   FOOTER
   ================================================================ */
.site-footer {
  background: #1a1a1a;
  color: #fff;
  padding: 40px 20px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.hepfive-logo-img {
  width: 140px;
  height: auto;
  display: block;
}

.footer-copy {
  font-size: 11px;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.04em;
}

/* ================================================================
   RESPONSIVE – Tablet & PC（崩れなければOK）
   ================================================================ */
@media (min-width: 600px) {
  :root { --max-w: 600px; }

  .section-kv { aspect-ratio: 21 / 9; }
  .kv-tagline { font-size: 24px; }
  .kv-logo { height: 88px; }

  .intro-catch { font-size: 26px; }
  .intro-nav { gap: 20px; }
  .intro-nav-item { width: 110px; }

  .cards-list { gap: 24px; }
  .card-title { font-size: 20px; }
}

@media (min-width: 900px) {
  :root { --max-w: 720px; }

  .section-header { padding: 0 32px; }

  .section-kv { aspect-ratio: 3 / 1; }
  .kv-overlay { padding: 0 12%; }
  .kv-logo { height: 110px; }

  .section-intro { padding: 48px 20px 32px; }
  .intro-catch { font-size: 30px; }

  .cards-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: var(--max-w);
    margin: 0 auto;
  }

  .section-inner { max-width: 720px; }
}
