/* fil-m. B案（採用版）スタイル
   色は仕様書 v1.0 の初期案。--label だけは小さな文字用にアクセント色を濃くしたもの（コントラスト確保のため） */
:root {
  --bg: #F5F0E8;        /* 生成り */
  --bg-sub: #FBF8F2;    /* アイボリー */
  --ink: #302920;       /* ダークブラウン（見出し） */
  --text: #51463A;      /* ブラウン（本文） */
  --accent: #B49A7E;    /* ベージュブラウン（糸・装飾） */
  --line: #DDD0C0;      /* ライトベージュ（区切り線） */
  --label: #7A6650;     /* 小さなラベル文字用 */

  --font-body: 'Zen Kaku Gothic New', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Yu Gothic', sans-serif;
  --font-head: 'Shippori Mincho', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
  --font-latin: 'Jost', var(--font-body);

  --gutter: 16px;
  --max: 1080px;
  --radius: 6px;
  --header-h: 56px;
  --head-gap: clamp(32px, 4.5vw, 48px);   /* 見出し→本文の距離（全セクション共通） */
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: 16px; line-height: 1.95; letter-spacing: .04em;
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg-sub); padding: 8px 14px; border-radius: 4px; text-decoration: none; }
.skip:focus { top: 8px; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  display: flex; align-items: center; gap: 12px; padding: 0 var(--gutter);
  background: rgb(245 240 232 / .97); /* ぼかし(backdrop-filter)はスクロールが重くなるので使わない */
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.brand { flex: none; display: block; padding: 6px 0; }
.brand img { width: 52px; height: auto; }
.site-header nav { margin-left: auto; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.site-header nav::-webkit-scrollbar { display: none; }
.site-header ul { display: flex; white-space: nowrap; }
.site-header nav a {
  display: block; padding: 14px 5px; font-family: var(--font-latin); font-size: 12px; letter-spacing: .06em;
  text-decoration: none; color: var(--text); position: relative;
}
.site-header nav a[aria-current="true"] { color: var(--ink); }
.site-header nav a[aria-current="true"]::after { content: ""; position: absolute; left: 5px; right: 5px; bottom: 8px; height: 1px; background: var(--accent); }
@media (min-width: 760px) {
  :root { --gutter: 40px; --header-h: 68px; }
  .brand img { width: 76px; }
  .site-header ul { gap: 10px; }
  .site-header nav a { font-size: 13px; letter-spacing: .14em; padding: 14px 8px; }
}

/* ---------- 共通の見出し ---------- */
.section { padding: clamp(72px, 10vw, 128px) var(--gutter) 0; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; }
.eyebrow, .label { font-family: var(--font-latin); letter-spacing: .2em; color: var(--label); font-weight: 500; }
.eyebrow { font-size: 13px; }
.sec-head { margin-bottom: var(--head-gap); text-align: center; }
.sec-head h2, .connect h2 {
  font-family: var(--font-head); color: var(--ink); font-weight: 500;
  font-size: clamp(22px, 3vw, 28px); line-height: 1.5; letter-spacing: .1em; margin-top: 6px;
}

/* ---------- 糸 ---------- */
.thread { display: block; width: 100%; overflow: visible; }
.thread path { fill: none; stroke: var(--accent); stroke-width: 1.2; stroke-linecap: round; vector-effect: non-scaling-stroke; }
/* JSが有効で、動きを減らす設定でないときだけ「描かれる」演出。無効時は最初から線が見える */
.js .thread.draw path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.4s cubic-bezier(.45, .05, .25, 1); }
.js .thread.draw.in path { stroke-dashoffset: 0; }
@media (prefers-reduced-motion: reduce) { .js .thread.draw path { stroke-dasharray: none; stroke-dashoffset: 0; transition: none; } }
.divider { height: clamp(56px, 8vw, 110px); margin-top: clamp(64px, 9vw, 112px); }
.divider + .section { padding-top: clamp(28px, 4vw, 48px); }

/* ---------- HOME：正式アニメーション（添付 fil-m-animation をそのまま表示） ---------- */
:root { --hero-bg: #FBF3EF; }  /* アニメーション画像の地の色（実測） */
.hero { background: var(--hero-bg); }
.hero-visual { max-width: 1586px; margin: 0 auto; }   /* 画像の原寸幅より大きく引き伸ばさない */
.hero-anim { display: block; width: 100%; height: auto; aspect-ratio: 800 / 500; }
.hero-fade { height: clamp(32px, 6vw, 72px); background: linear-gradient(var(--hero-bg), var(--bg)); }  /* 画像の地色からページの地色へなじませる */
.site-header:not(.scrolled) { background: var(--hero-bg); }   /* 最上部ではヘッダーも画像と同じ地色に */

/* ---------- 日本語の折り返し（文節の切れ目 <wbr> でだけ折り返す） ---------- */
.jp { word-break: keep-all; overflow-wrap: anywhere; line-break: strict; }
.jp, .sec-head h2, .story-title, .work-title, .connect h2 { text-wrap: pretty; }
.sec-head h2, .story-title, .work-title, .connect h2, .work-sub, .service-text { text-wrap: balance; }

/* ---------- ABOUT US（紹介文 → MEMBER → ふたりのプロフィール） ---------- */
.hero + .section { padding-top: clamp(40px, 6vw, 72px); }
.about-intro { max-width: 560px; margin: 0 auto; line-height: 2.1; }
.about-intro p + p { margin-top: .9em; }
@media (min-width: 760px) { .about-intro { text-align: center; } }
.member { margin-top: clamp(64px, 9vw, 104px); }
.member-head { text-align: center; margin-bottom: var(--head-gap); }
.member-title { font-family: var(--font-head); color: var(--ink); font-weight: 500; font-size: clamp(18px, 2.2vw, 21px); letter-spacing: .14em; line-height: 1.5; margin-top: 4px; }
.people { display: grid; gap: 56px; max-width: 920px; margin: 0 auto; }
.person {
  display: grid; grid-template-columns: 104px 1fr; grid-template-areas: "photo id" "text text";
  column-gap: 20px; row-gap: 22px; align-items: center;
}
.person-photo { grid-area: photo; width: 104px; height: 104px; border-radius: 50%; object-fit: cover; }
.person-id { grid-area: id; }
.person-name { font-family: var(--font-head); color: var(--ink); font-weight: 500; font-size: 23px; letter-spacing: .16em; line-height: 1.4; }
.kana { font-size: 12px; letter-spacing: .16em; color: var(--label); margin-top: 2px; line-height: 1.6; }
.role { font-size: 13px; letter-spacing: .1em; color: var(--text); margin-top: 8px; line-height: 1.6; }
.origin { margin-top: 6px; font-size: 14px; display: flex; gap: 10px; align-items: center; line-height: 1.6; }
.origin .label { font-family: var(--font-body); font-size: 11px; letter-spacing: .12em; border: 1px solid var(--line); padding: 1px 9px; border-radius: 20px; }
.person-text { grid-area: text; font-size: 15px; line-height: 2; letter-spacing: .03em; }
@media (min-width: 760px) {
  .people { grid-template-columns: 1fr 1fr; gap: clamp(48px, 7vw, 96px); max-width: 960px; }
  .person { grid-template-columns: 1fr; grid-template-areas: "photo" "id" "text"; justify-items: center; row-gap: 0; align-items: start; }
  .person-photo { width: 176px; height: 176px; }
  .person-id { text-align: center; margin-top: 24px; }
  .origin { justify-content: center; }
  .person-text { margin-top: 24px; max-width: 400px; }
}

/* ---------- OUR STORY ---------- */
.story { text-align: center; }
.story-title { font-family: var(--font-head); color: var(--ink); font-weight: 600; font-size: clamp(26px, 4.2vw, 40px); letter-spacing: .16em; line-height: 1.6; margin-top: 10px; }
.strung { display: flex; align-items: flex-end; max-width: 720px; margin: clamp(32px, 4.5vw, 48px) auto clamp(36px, 5vw, 56px); }
.strung .thread { flex: 1 1 0; width: auto; min-width: 0; height: 44px; }
.strung img { flex: none; width: clamp(112px, 22vw, 152px); height: auto; margin: 0 6px; }
.story { padding-bottom: clamp(16px, 3vw, 32px); }
.story-body { max-width: 560px; margin: 0 auto; line-height: 2.2; }
.story-body p + p { margin-top: 1.3em; }

/* ---------- OUR WORK（紹介文 → 動画 → チャンネル を1つの流れで） ---------- */
.work-intro { max-width: 640px; margin: 0 auto; text-align: center; }
.work-title { font-family: var(--font-head); color: var(--ink); font-weight: 500; font-size: clamp(20px, 2.8vw, 26px); line-height: 1.7; letter-spacing: .1em; margin: 6px 0 var(--head-gap); }
.work-intro p + p { margin-top: 1em; }
/* 「YouTube動画制作」＋説明文をひとまとまりに。その下の「制作事例」「携わっているチャンネル」は同じ階層の小見出し */
.service { margin-top: clamp(56px, 8vw, 88px); }
.service-title { font-family: var(--font-head); color: var(--ink); font-weight: 500; font-size: clamp(19px, 2.3vw, 22px); letter-spacing: .12em; line-height: 1.5; text-align: center; }
.service-text { max-width: 640px; margin: 14px auto 0; text-align: center; }
.service-text p + p { margin-top: .9em; }
.work-sub { font-family: var(--font-body); color: var(--label); font-weight: 500; font-size: 14px; letter-spacing: .2em; line-height: 1.6; text-align: center; margin: clamp(56px, 8vw, 80px) 0 clamp(20px, 2.6vw, 28px); }
.service-text + .work-sub { margin-top: clamp(36px, 5vw, 52px); }
@media (max-width: 759px) { .work-intro, .service-text { text-align: left; } .work-intro .eyebrow, .work-title { text-align: center; } }

/* 動画：スマホは1列（サムネイル左・タイトル右）、PCは3列 */
.videos { display: grid; grid-template-columns: 1fr; gap: 22px; }
.vcard a { display: grid; grid-template-columns: 44% 1fr; gap: 14px; align-items: start; text-decoration: none; color: var(--text); border-radius: var(--radius); }
.thumb { display: block; overflow: hidden; border-radius: 4px; aspect-ratio: 16 / 9; background: var(--line); }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.vcard a:hover .thumb img { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) { .thumb img { transition: none; } .vcard a:hover .thumb img { transform: none; } }
.vmeta { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.vtitle { font-size: 14px; line-height: 1.6; letter-spacing: .02em; color: var(--ink); }   /* スマホは全文表示 */
.vsub { font-size: 12px; letter-spacing: .06em; color: var(--label); line-height: 1.5; }
.vsub .sep { margin: 0 .5em; color: var(--line); }
@media (min-width: 760px) {
  .videos { grid-template-columns: repeat(3, 1fr); gap: 44px 28px; }
  .vcard a { grid-template-columns: 1fr; gap: 12px; }
  .vtitle { font-size: 15px; line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: calc(1.65em * 2); }   /* PCは2行（全文はマウスを乗せると表示） */
}

/* チャンネル：スマホ2列×2段、PC4列 */
.channels { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 16px; max-width: 880px; margin: 0 auto; }
.chan { display: flex; flex-direction: column; align-items: center; gap: 14px; text-decoration: none; text-align: center; font-size: 14px; line-height: 1.6; color: var(--ink); padding: 6px; border-radius: var(--radius); }
.chan img { width: 88px; height: 88px; border-radius: 50%; transition: transform .4s ease; }
.chan:hover img { transform: translateY(-3px); }
@media (prefers-reduced-motion: reduce) { .chan img { transition: none; } .chan:hover img { transform: none; } }
@media (min-width: 760px) { .channels { grid-template-columns: repeat(4, 1fr); } .chan img { width: 104px; height: 104px; } }

/* ---------- CONNECT ---------- */
.connect { text-align: center; padding-bottom: clamp(80px, 11vw, 140px); }
.connect-thread { max-width: 280px; margin: 20px auto 0; height: 36px; }
.contact { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: var(--head-gap); }
.contact li { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.contact .label { font-size: 12px; }
.contact a { font-family: var(--font-latin); font-size: clamp(20px, 2.6vw, 24px); color: var(--ink); text-decoration: none; letter-spacing: .08em; border-bottom: 1px solid var(--accent); padding: 8px 2px 6px; }
.contact a:hover { border-bottom-color: var(--ink); }

/* ---------- フッター ---------- */
.site-footer { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 44px var(--gutter) 64px; border-top: 1px solid var(--line); color: var(--label); font-family: var(--font-latin); }
.site-footer small { font-size: 12px; letter-spacing: .14em; }

