@import "./liftkitvars.css";

/* =========================================================
   Global Styles (site-wide) — iOS/Safari robust
   - ベース/カラー/タイポ
   - コンテナ/セクション/見出し/ボタン
   - 便利ユーティリティ
   - 「Productions 見出し⇄カルーセル」の境界線除去
   - Certifications（資格）… 行ごとに見栄えを統一（色も固定）
   - ★要望対応：セクションの背景色分け/区切り線を全面オフ
   ========================================================= */

/* ----- Reset（最小限） ----- */
*,
*::before,
*::after { box-sizing: border-box; }
html, body { height: 100%; }
body, h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; }

/* ----- Tokens（ダーク基調・可読性固定） ----- */
:root{
  /* Canon-like neutral palette */
  --bg: #f4f4f4;
  --bg-2: #f4f4f4;
  --panel: #ffffff;
  --text: #121212;
  --muted: #5a5f67;
  --line: #d9dce2;
  --brand: #cc0000;
  --brand-2: #cc0000;
  --accent: #e7362d;

  --shadow-1: 0 6px 20px rgba(17,17,17,.06);
  --shadow-2: 0 12px 30px rgba(17,17,17,.1);

  --radius: 8px;
  --space-xs: var(--lk-size-xs);
  --space-sm: var(--lk-size-sm);
  --space-md: var(--lk-size-md);
  --space-lg: var(--lk-size-lg);

  /* iOS の動的ツールバー対策（svh 非対応環境フォールバック用） */
  --vh-62: 62vh;
  --vh-58: 58vh;
  --vh-54: 54vh;
}

/* ----- Base ----- */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%; /* iOS 文字拡大で改行崩れを防ぐ */
}
body{
  background: var(--bg);
  background-color: var(--bg);
  color: var(--text);
  font-family: "Helvetica Neue", "Noto Sans JP", "Noto Sans", Arial, system-ui, -apple-system, "Segoe UI", Roboto, "Hiragino Kaku Gothic ProN", Meiryo, "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  letter-spacing: .005em;
}

/* ----- Container / Section ----- */
.container{
  max-width: 1200px;
  width: min(94vw, 1200px);
  margin-inline: auto;
}
.section{
  padding-block: clamp(calc(var(--space-lg) * 1.05), 6vw, calc(var(--lk-size-2xl) * 1.1));
}

/* ----- Page Head ----- */
.page-head{
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  margin-bottom: clamp(24px, 4vw, 40px);
}
.page-head .container{ padding-block: clamp(18px, 2.8vw, 28px); }
.page-head .title{
  font-weight: 900;
  font-size: clamp(24px, 4.2vw, 40px);
  letter-spacing: .01em;
  color: var(--brand);
  background: none;
  -webkit-text-fill-color: currentColor;
}
.page-head .lede{
  color: var(--muted);
  font-weight: 700;
  margin-top: 4px;
}
.page-head__cta{
  margin-top: 10px;
}

/* ----- Links / Buttons ----- */
a{ color: var(--brand); text-decoration: none; }
a:hover{ text-decoration: underline; }

.btn{
  display: inline-flex; align-items: center; gap: .5rem;
  height: clamp(44px, calc(var(--lk-size-xl) * 1.25), 52px);
  padding: 0 clamp(14px, 3vw, 20px);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--text); font-weight: 800; letter-spacing: .018em;
  box-shadow: 0 4px 14px rgba(17,17,17,.08);
  transition: transform .1s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  min-width: 0; /* iOS の text-overflow 回避 */
}
.btn:hover{ transform: translateY(-1px); box-shadow: var(--shadow-2); text-decoration: none; }
.btn:active{ transform: translateY(0); }
.btn--primary{
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  box-shadow: 0 8px 22px rgba(204,0,0,.24);
}
.btn--primary:hover{ box-shadow: 0 12px 28px rgba(204,0,0,.28); }
.btn--ghost{
  background: #ffffff;
  border-color: var(--brand);
  color: var(--brand);
  box-shadow: 0 8px 22px rgba(0,0,0,.06);
}

/* ----- Focus ring ----- */
:where(a, button, [tabindex]):focus-visible{
  /* color-mix が無い環境でも明るい水色にフォールバック */
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: var(--radius);
}
@supports (outline-color: color-mix(in oklab, white, black)) {
  :where(a, button, [tabindex]):focus-visible{
    outline-color: color-mix(in oklab, var(--brand) 70%, white);
  }
}

/* ----- Utils ----- */
.sr-only{
  position: absolute!important; width: 1px!important; height: 1px!important;
  padding: 0!important; margin: -1px!important; overflow: hidden!important;
  clip: rect(0,0,0,0)!important; white-space: nowrap!important; border: 0!important;
}
.center { display:grid; place-items:center; }

/* アンカー遷移時の余白（未設定/単位付でもOKな JS とペア） */
[id]{ scroll-margin-top: clamp(60px, 8vw, 80px); }

/* 小さなフェード */
[data-animate="fade-up"]{ opacity: 0; transform: translateY(12px); transition: opacity .5s ease, transform .5s ease; }
[data-animate="fade-up"].is-in{ opacity: 1; transform: translateY(0); }

/* ============================
   「Productions 見出し⇄カルーセル」の線を消す
   ============================ */
.page-head, .page-head .container{ box-shadow: none; }
.page-head::before, .page-head::after, .page-head .container::before, .page-head .container::after{
  content: none !important;
  border: 0 !important;
  box-shadow: none !important;
}
#Productions .container, #Productions .carousel{ border-top: none; box-shadow: none; }
.page-head { margin-bottom: clamp(18px, 3vw, 28px); }
#Productions.section { margin-top: 0; }
#main hr{ display:none!important; border:0!important; height:0!important; }

.scroll-hint{
  width: min(360px, 92vw);
  display:flex;
  flex-direction:column;
  align-items:center;
  gap: clamp(8px, 2vw, 12px);
  text-align:center;
  color: var(--muted, #6b6f76);
  padding: 0;
  border-radius: 18px;
  background: transparent;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  position: fixed;
  left: 50%;
  bottom: clamp(24px, 6vw, 64px);
  transform: translate(-50%, 0);
  z-index: 30;
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
  animation: scrollHintFloat 3.6s ease-in-out infinite;
}
.scroll-hint.is-off{
  opacity: 0;
  transform: translate(-50%, 20px);
  animation: none;
}
.scroll-hint__body{
  display:flex;
  flex-direction:column;
  gap: 12px;
  align-items:center;
}
.scroll-hint__circle{
  position: relative;
  isolation: isolate;
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 1px solid rgba(230,235,245,.9);
  display:grid; place-items:center;
  background: linear-gradient(135deg, rgba(255,255,255,.86), rgba(245,248,255,.52));
  box-shadow:
    0 10px 28px rgba(12,16,26,.18),
    inset 0 1px 0 rgba(255,255,255,.8),
    inset -1px -1px 0 rgba(210,220,235,.35);
  backdrop-filter: blur(10px) saturate(1.2);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
  overflow: hidden;
  animation: scrollHintPulse 2.2s ease-in-out infinite;
}
.scroll-hint__circle::before,
.scroll-hint__circle::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius: inherit;
  pointer-events:none;
}
.scroll-hint__circle::before{
  background:
    radial-gradient(150% 120% at 20% 20%, rgba(255,255,255,.55), transparent 50%),
    radial-gradient(120% 110% at 80% 0%, rgba(255,255,255,.35), transparent 60%);
  mix-blend-mode: screen;
  z-index: 1;
}
.scroll-hint__circle::after{
  background: linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.05));
  z-index: 1;
}
.scroll-hint__chevron{
  display:block;
  width: 12px; height: 12px;
  border-left: 3px solid var(--brand);
  border-bottom: 3px solid var(--brand);
  transform: translateY(-2px) rotate(-45deg);
  animation: scrollHintArrowFloat 1.4s ease-in-out infinite;
}
.scroll-hint__label{
  display:flex;
  align-items:center;
  gap: 8px;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: none;
  font-size: clamp(13px, 2.4vw, 16px);
  color: var(--text);
}
.scroll-hint__label-arrow{
  font-weight: 900;
  color: var(--brand);
  font-size: 18px;
  line-height: 1;
}
.scroll-hint__label-text{ display:block; }
@keyframes scrollHintFloat{
  0%, 100%{ transform: translate(-50%, 0); }
  50%{ transform: translate(-50%, -6px); }
}
@keyframes scrollHintPulse{
  0%, 100%{ box-shadow: 0 10px 28px rgba(12,16,26,.18), 0 0 0 1px rgba(255,255,255,.9), 0 0 0 8px rgba(204,0,0,.05); }
  50%{ box-shadow: 0 14px 32px rgba(12,16,26,.22), 0 0 0 1px rgba(255,255,255,1), 0 0 0 12px rgba(204,0,0,.08); }
}
@keyframes scrollHintArrowFloat{
  0%, 100%{ transform: translateY(-2px) rotate(-45deg); }
  50%{ transform: translateY(3px) rotate(-45deg); }
}

@media (max-width: 768px){
  .scroll-hint{
    bottom: clamp(16px, 12vw, 40px);
  }
}
@media (min-width: 1280px) and (max-width: 1536px) and (max-height: 900px){
  .scroll-hint{
    bottom: clamp(10px, 2vh, 20px);
  }
  .scroll-hint__circle{
    width: 48px;
    height: 48px;
  }
  .scroll-hint__label{
    font-size: clamp(12px, 1.4vw, 14px);
  }
}



/* =========================================================
   Certifications（資格）
   - 行ごとの高さ合わせ（JSが per-row で min-height を付与）
   - 開閉時に min-height も滑らかに変化
   - 色は常に読みやすい明度
   ========================================================= */
#qualifications {
  color: var(--text);
  margin-top: clamp(28px, 5vw, 72px);
}
#qualifications .section-title{
  font-weight: 900;
  font-size: clamp(22px, 3.6vw, 34px);
  letter-spacing: .01em;
  color: var(--brand);
  margin-bottom: clamp(16px, 3vw, 24px);
}

#qualifications .quals{
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: clamp(12px, 2.4vw, 18px);
}
@media (max-width: 1024px){ #qualifications .quals{ grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 640px){  #qualifications .quals{ grid-template-columns: 1fr; } }

#qualifications .qualification-item{
  display: flex; flex-direction: column;
  min-height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow-1);
  overflow: hidden;
  transition: box-shadow .2s ease, transform .06s ease, min-height .28s ease;
  color: var(--text);
}
#qualifications .qualification-item:hover{
  box-shadow: var(--shadow-2);
  transform: translateY(-1px);
}

#qualifications .q-head{
  display: flex; align-items: center; gap: .6rem;
  padding: clamp(12px, 2vw, 16px) clamp(14px, 2.2vw, 18px);
  width: 100%; border: 0; text-align: left;
  font-weight: 900; color: var(--text);
  font-size: clamp(17px, 2vw, 17px);
  line-height: 1.35;
  background: transparent; cursor: pointer;
  transition: background .2s ease; min-height: 56px;
}
#qualifications .q-head:hover{ background: rgba(0,0,0,.04); }
#qualifications .q-head:focus-visible{
  outline: 3px solid var(--brand);
  outline-offset: -2px;
}
@supports (outline-color: color-mix(in oklab, white, black)) {
  #qualifications .q-head:focus-visible{
    outline-color: color-mix(in oklab,var(--brand) 70%, #fff);
  }
}

#qualifications .q-index{
  display:inline-grid; place-items:center;
  width: 26px; height: 26px; border-radius: 999px;
  background: linear-gradient(180deg, var(--brand), var(--brand-2));
  color: #fff; font-size: 12px; font-weight: 900;
}
#qualifications .q-icon{ margin-left: auto; font-weight: 900; color: var(--muted); transition: transform .25s ease; }
#qualifications .q-head[aria-expanded="true"] .q-icon{ transform: rotate(45deg); }

#qualifications .qualification-description{
  padding: 0 clamp(14px, 2.2vw, 18px);
  line-height: 1.75;
  overflow: hidden;
  height: 0;               /* 初期は隠す（JSで制御） */
  border-top: 1px dashed rgba(45,58,76,.18);
  color: var(--text);
  opacity: 0;
  transition:
    height .32s cubic-bezier(.2,.8,.2,1),
    opacity .28s ease;
}
#qualifications .qualification-description.is-open{
  opacity: 1;
}
#qualifications .qualification-description p{
  margin: 12px 0 16px; color: var(--text);
}
#qualifications .qualification-description a{
  color: var(--brand); text-decoration: underline;
}

/* iOS: remove tap highlight */
:where(a,button,[role='button'],.btn){ -webkit-tap-highlight-color: transparent; }

/* =========================================================
   ★ Section background / divider の簡素化（Canonトーン）
   - セクションはフラットな白基調に統一
   - 見出しにブランドレッドのラインを付与
   ========================================================= */
.section{
  background: transparent;
  border: 0;
  box-shadow: none;
}
.section .container{
  background: transparent;
}
.page-head,
.page-head .container{
  background: transparent;
  border: 0;
  box-shadow: none;
}
.section::before, .section::after,
.page-head::before, .page-head::after {
  content: none;
}
#Productions .container,
#Productions .carousel {
  background: transparent;
  border: 0;
  box-shadow: none;
}
