/* eelグループ 会社のサイト: トップ LP（layout/eel.liquid だけで読む） */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 60px; }
body {
  font-family: "Noto Sans JP", system-ui, sans-serif;
  color: var(--ink); background: var(--bg);
  line-height: 1.9; letter-spacing: .04em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
.red { color: var(--red); }
.sp { display: none; }
@media (max-width: 720px) { .sp { display: inline; } }

/* ── ページを縫う赤い線 ───────────────────── */
.thread { position: absolute; left: 0; top: 0; width: 100%; pointer-events: none; z-index: 2; overflow: visible; }
.thread path { fill: none; stroke: var(--red); stroke-width: 1.6; stroke-linecap: round; opacity: .85; }
main { position: relative; z-index: 1; }

/* ── 共通 ─────────────────────────────── */
section { padding: clamp(96px, 14vw, 200px) var(--pad); position: relative; }
.kicker {
  font-family: Inter, sans-serif; font-size: 12px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase;
  color: var(--mute); display: flex; align-items: center; gap: 12px; margin-bottom: 20px;
}
.kicker--name { text-transform: none; letter-spacing: .14em; font-size: 14px; color: var(--ink); } /* 名前は小文字のまま（ロゴの eel に合わせる） */
.kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.h2 { font-size: clamp(26px, 3.6vw, 44px); font-weight: 700; line-height: 1.45; letter-spacing: .06em; }
.lead { margin-top: 20px; font-size: clamp(15px, 1.4vw, 17px); color: var(--sub); max-width: 760px; word-break: auto-phrase; }

/* スクロールで現れる */
.reveal { opacity: 0; transform: translateY(28px); filter: blur(6px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease), filter 1.1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; filter: none; }

/* ── 1. 冒頭 ──────────────────────────── */
.hero { min-height: 100svh; display: grid; place-items: center; text-align: center; overflow: hidden; padding-top: 60px; }
.hero__eel { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__inner { position: relative; z-index: 1; }
.hero .kicker { justify-content: center; }
.hero__title { font-size: clamp(28px, 4.2vw, 58px); font-weight: 700; line-height: 1.4; letter-spacing: .05em; }
.hero__title .line { display: block; }
.hero__gap { display: inline-block; width: 1em; }
@media (max-width: 720px) { .hero__gap { display: none; } }
.hero__lead { margin-top: 32px; font-size: clamp(14px, 1.5vw, 18px); color: var(--sub); }
/* ピント送り: ぼけた状態から合う */
.hero .kicker, .hero__title .line, .hero__lead { opacity: 0; filter: blur(14px); transform: scale(1.04); }
.is-loaded .hero .kicker, .is-loaded .hero__title .line, .is-loaded .hero__lead {
  opacity: 1; filter: blur(0); transform: none;
  transition: opacity 1.8s var(--ease), filter 1.8s var(--ease), transform 2.4s var(--ease);
}
.is-loaded .hero__title .line:nth-child(1) { transition-delay: .5s; }
.is-loaded .hero__title .line:nth-child(2) { transition-delay: .8s; }
.is-loaded .hero__lead { transition-delay: 1.4s; }
.hero__scroll { position: absolute; bottom: 32px; left: 50%; width: 1px; height: 64px; background: var(--line); overflow: hidden; }
.hero__scroll span { position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--ink); animation: drip 2.2s var(--ease) infinite; }
@keyframes drip { to { top: 100%; } }

/* ── 2. 小さく完璧な世界 ───────────────── */
.phil { text-align: center; }
.phil .kicker { justify-content: center; }
.phil__title {
  font-weight: 700; font-size: clamp(26px, 2.9vw, 42px); line-height: 1.5; letter-spacing: .42em; padding-left: .42em;
}
.phil__title .ch { display: inline-block; opacity: 0; transform: translateY(.5em) rotate(4deg); filter: blur(8px); transition: opacity 1.2s var(--ease), transform 1.2s var(--ease), filter 1.2s var(--ease); }
.phil__title.is-in .ch { opacity: 1; transform: none; filter: none; }
.phil__rule { width: 0; height: 2px; background: var(--red); margin: 32px auto 44px; transition: width 1.6s var(--ease) .9s; }
.phil__title.is-in + .phil__rule { width: 40px; }
.phil__body { max-width: 760px; margin: 0 auto; font-size: clamp(15px, 1.4vw, 17px); line-height: 2.2; }
.phil__values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 1080px; margin: 64px auto; }
.value {
  background: var(--box); padding: 48px 24px; display: flex; flex-direction: column; gap: 10px; align-items: center;
  transition: transform .6s var(--ease), background .6s, opacity 1.1s var(--ease), filter 1.1s var(--ease);
}
.value:nth-child(2) { transition-delay: .12s; } .value:nth-child(3) { transition-delay: .24s; }
.value:hover { transform: translateY(-6px); background: #ebebeb; }
.value__en { font-family: Inter, sans-serif; font-size: clamp(20px, 2vw, 26px); font-weight: 600; letter-spacing: .02em; }
.value__ja { font-size: 14px; color: var(--sub); }
@media (max-width: 720px) { .phil__values { grid-template-columns: 1fr; } .value { padding: 32px 20px; } }

/* ── 3. ブランドベンチャースタジオ（共通の土台 → ブランド） ─────── */
.studio__head { max-width: 1080px; margin: 0 auto; }
.lab { position: relative; max-width: 1080px; margin: 72px auto 0; display: grid; grid-template-columns: 420px minmax(0, 500px); justify-content: center; gap: 72px; align-items: center; }
.lab__lines { position: absolute; left: 0; top: 0; pointer-events: none; z-index: 0; }
.core { position: relative; width: 420px; height: 420px; z-index: 1; }
.core__orbit { position: absolute; inset: 70px; border-radius: 50%; border: 1px dashed #cfcfcf; animation: spin 36s linear infinite reverse; } /* 赤い点は衛星（右回り）と逆向きに、少し速く */
.core__orbit::before { content: ""; position: absolute; left: 14%; top: 14%; width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
@keyframes spin { to { transform: rotate(360deg); } }
.core__body {
  position: absolute; inset: 100px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  background: radial-gradient(circle at 38% 28%, #fff 10%, #f6f6f6 100%); box-shadow: 0 0 0 1px #dcdcdc, 0 18px 50px rgba(0,0,0,.06);
}
.core__body::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 1px solid var(--red); opacity: 0; }
.core.pulse .core__body::after { animation: corePulse .9s var(--ease); }
@keyframes corePulse { 0% { opacity: .6; transform: scale(1); } 100% { opacity: 0; transform: scale(1.35); } }
.core__en { font-family: Inter, sans-serif; font-weight: 600; font-size: 22px; letter-spacing: .2em; padding-left: .2em; }
.core__ja { font-size: 13px; color: var(--sub); letter-spacing: .12em; }
/* 衛星: 7 項目が共通の土台（母星）のまわりを右回りにゆっくり回る。文字は常に正立 */
.core__items { position: absolute; inset: 0; animation: orbitCw 70s linear infinite; }
.core__items li { animation: orbitCcw 70s linear infinite; }
@keyframes orbitCw { to { transform: rotate(360deg); } }
@keyframes orbitCcw { from { transform: translate(-50%, -50%) rotate(0deg); } to { transform: translate(-50%, -50%) rotate(-360deg); } }
.core__items li {
  position: absolute; transform: translate(-50%, -50%); white-space: nowrap;
  font-size: 13px; font-weight: 500; background: #fff; padding: 4px 10px; border: 1px solid #e6e6e6; border-radius: 999px;
}
.bcards { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.bcard:nth-child(even) { translate: 0 32px; }
.bcard {
  position: relative; display: grid; gap: 4px; padding: 14px 16px 14px 20px; background: #fff; border: 1px solid #e7e7e7; border-radius: 10px;
  box-shadow: 0 10px 28px rgba(0,0,0,.05);
  opacity: 0; transform: scale(.85); filter: blur(6px); transition: opacity .6s var(--ease), transform .8s cubic-bezier(.16,1.34,.3,1), filter .6s, border-color .3s;
}
.bcard.shown { opacity: 1; transform: none; filter: none; }
.bcard:hover { border-color: rgba(198,0,25,.4); }
.bcard__bar { position: absolute; left: 0; top: 16px; bottom: 16px; width: 3px; border-radius: 0 3px 3px 0; background: var(--red); }
.bcard__no { position: absolute; right: 12px; top: 10px; font-family: Inter, sans-serif; font-size: 10px; color: #aaa; letter-spacing: .08em; }
.bcard__name { font-family: Inter, "Noto Sans JP", sans-serif; font-size: 16px; font-weight: 700; letter-spacing: .04em; line-height: 1.3; }
.bcard__cat { font-size: 11px; color: #858585; }
@media (max-width: 1000px) {
  .lab { grid-template-columns: 1fr; gap: 40px; justify-items: center; }
  .bcards { width: 100%; }
  .bcard:nth-child(even) { translate: none; }
}
@media (max-width: 720px) {
  .lab { margin-top: 40px; }
  .core { width: 300px; height: 300px; }
  .core__orbit { inset: 54px; }
  .core__body { inset: 76px; }
  .core__en { font-size: 16px; }
  .core__ja { font-size: 11px; }
  .core__items li { font-size: 11px; padding: 3px 8px; }
  .bcards { gap: 12px; }
  .bcard { padding: 14px 26px 14px 18px; }
  .bcard__no { right: 10px; top: 10px; font-size: 10px; }
  .bcard__name { font-size: 13px; letter-spacing: 0; }
  .bcard__cat { font-size: 11px; }
}

/* ── 4. グループ会社とブランド ──────────── */
.group { background: var(--ink); color: #fff; }
.group .kicker { color: #888; }
.group .h2 { margin-bottom: 64px; }
.co { max-width: 1080px; margin: 0 auto 56px; }
.group > .kicker, .group > .h2 { max-width: 1080px; margin-left: auto; margin-right: auto; }
.co__name { font-size: 15px; font-weight: 500; color: #aaa; padding-bottom: 16px; border-bottom: 1px solid #333; margin-bottom: 8px; letter-spacing: .1em; }
.brands { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 32px; }
.brand a { display: grid; gap: 6px; padding: 28px 0; border-bottom: 1px solid #333; position: relative; }
.brand a::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); }
.brand a:hover::after { transform: scaleX(1); }
.brand__name { font-family: Inter, sans-serif; font-size: clamp(20px, 2vw, 26px); font-weight: 600; letter-spacing: .06em; }
.brand__desc { font-size: 14px; color: #bbb; }
.brand__go { font-family: Inter, "Noto Sans JP", sans-serif; font-size: 12px; color: #888; letter-spacing: .12em; }
.brand__go::after { content: " ↗"; display: inline-block; transition: transform .5s var(--ease); }
.brand a:hover .brand__go { color: #fff; }
.brand a:hover .brand__go::after { transform: translate(3px, -3px); color: var(--red); }
@media (max-width: 900px) { .brands { grid-template-columns: 1fr; } }

/* ── 5. お知らせ ───────────────────────── */
.news, .company { max-width: calc(1080px + var(--pad) * 2); margin: 0 auto; }
.news__list { margin-top: 40px; border-top: 1px solid var(--line); }
.news__list a { display: flex; gap: 32px; padding: 24px 0; border-bottom: 1px solid var(--line); transition: padding .5s var(--ease); }
.news__list a:hover { padding-left: 12px; }
.news__list time { font-family: Inter, sans-serif; color: var(--mute); font-size: 14px; }
.more { display: inline-block; margin-top: 28px; font-size: 14px; border-bottom: 1px solid var(--ink); padding-bottom: 2px; }
.more::after { content: " →"; }

/* ── 6. 会社概要 ───────────────────────── */
.company { padding-top: 0; }
.table { margin-top: 40px; border-top: 1px solid var(--ink); }
.row { display: grid; grid-template-columns: 200px 1fr; padding: 24px 0; border-bottom: 1px solid var(--line); }
.row dt { color: var(--sub); font-size: 14px; }
@media (max-width: 720px) { .row { grid-template-columns: 1fr; gap: 4px; } }

/* ── 7. お問い合わせ ───────────────────── */
.contact { background: var(--box); }
.contact__inner { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; }
.contact__addr { margin-top: 32px; font-size: 14px; color: var(--sub); }
.form { display: grid; gap: 20px; }
.form__types { border: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.form__types label { cursor: pointer; }
.form__types input { position: absolute; opacity: 0; }
.form__types span { display: inline-block; padding: 10px 18px; border: 1px solid #ccc; background: #fff; font-size: 14px; transition: all .3s; }
.form__types input:checked + span { border-color: var(--ink); background: var(--ink); color: #fff; }
.field { display: grid; gap: 6px; font-size: 13px; color: var(--sub); }
.field input, .field textarea { font: inherit; font-size: 15px; color: var(--ink); padding: 14px; border: 1px solid #ccc; background: #fff; border-radius: 0; transition: border-color .3s; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--red); }
.btn { justify-self: start; position: relative; overflow: hidden; border: 0; background: var(--ink); color: #fff; font: inherit; font-weight: 700; padding: 16px 56px; cursor: pointer; letter-spacing: .1em; }
.btn::before { content: ""; position: absolute; inset: 0; background: var(--red); transform: translateX(-101%); transition: transform .6s var(--ease); }
.btn:hover::before { transform: none; }
.btn span { position: relative; }
@media (max-width: 900px) { .contact__inner { grid-template-columns: 1fr; gap: 40px; } }

/* 動きを減らす設定の人には動かさない */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal, .hero .kicker, .hero__title .line, .hero__lead, .phil__title .ch { opacity: 1 !important; transform: none !important; filter: none !important; }
}

@media (max-width: 720px) {
  .hero__title { font-size: min(26px, 5.5vw); }
  .phil__title { font-size: 24px; letter-spacing: .3em; padding-left: .3em; }
  .h2 { font-size: 24px; }
  .studio .h2 { font-size: min(24px, 5.2vw); }
}


/* お問い合わせの送信結果・読み上げ用の見出し */
.form__msg { padding: 14px 16px; font-size: 14px; background: #fff; border-left: 3px solid var(--ink); }
.form__msg--err { border-left-color: var(--red); color: var(--red); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
