:root {
  --cream: #fdf6e3;
  --cream-2: #f7ecd2;
  --brown: #8a5a3c;
  --brown-dark: #5b3a26;
  --text: #4a3a2e;
  --muted: #8b7a6a;
  --green: #6f9a6a;
  --card: #fffdf7;
  --line: #eadbbd;
  --radius: 14px;
  --font: "Cabin", "Zen Maru Gothic", system-ui, sans-serif;
  --font-ja: "Zen Maru Gothic", "Cabin", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: var(--font-ja);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
body.en { font-family: var(--font); }
img { max-width: 100%; display: block; }
a { color: var(--brown); }
h1, h2, h3 { font-family: var(--font); color: var(--brown); font-weight: 500; line-height: 1.25; }
body:not(.en) h2, body:not(.en) h3 { font-family: var(--font-ja); }

/* language toggle */
body:not(.en) [data-en], body.en [data-ja] { display: none; }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 24px;
  padding: 10px clamp(16px, 4vw, 40px);
  background: rgba(253, 246, 227, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--brown-dark); font-family: var(--font); font-weight: 600; font-size: 1.1rem; }
.brand img { width: 30px; height: auto; }
.nav { display: flex; gap: 20px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--text); font-size: .95rem; }
.nav a:hover { color: var(--brown); }
.lang { border: 1px solid var(--line); background: var(--card); color: var(--muted); border-radius: 999px; padding: 4px 12px; font: inherit; font-size: .85rem; cursor: pointer; }
body:not(.en) .lang-ja, body.en .lang-en { color: var(--brown); font-weight: 600; }

/* hero */
.hero {
  position: relative;
  display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: clamp(24px, 5vw, 64px);
  padding: clamp(32px, 6vw, 80px) clamp(16px, 5vw, 64px) clamp(56px, 8vw, 96px);
  background: linear-gradient(180deg, var(--cream) 0%, #fdf0d0 100%);
  overflow: hidden;
}
.hero-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 20px; box-shadow: 0 20px 50px -20px rgba(91, 58, 38, .45); }
.eyebrow { margin: 0; color: var(--green); letter-spacing: .08em; font-size: .9rem; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); margin: .1em 0 0; letter-spacing: .01em; }
.subtitle { margin: 0 0 1em; color: var(--green); font-family: var(--font); font-size: clamp(1.1rem, 2vw, 1.5rem); }
.lead { font-size: 1.05rem; }
.btn { display: inline-block; margin-top: 8px; padding: 10px 28px; border-radius: 999px; background: var(--brown); color: #fff; text-decoration: none; font-weight: 500; }
.btn:hover { background: var(--brown-dark); }
.paws { position: absolute; left: 4%; bottom: 10px; width: min(380px, 60vw); color: var(--brown); opacity: .25; }

/* sections */
.section { padding: clamp(56px, 8vw, 96px) 16px; }
.section.tint { background: var(--cream-2); }
.wrap { max-width: 1100px; margin: 0 auto; }
.section h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 .6em; text-align: center; }
.intro { max-width: 720px; margin: 0 auto 2.5em; text-align: center; color: var(--text); }

/* trailer */
.trailer { max-width: 900px; margin: 0 auto 48px; }
.trailer iframe, .trailer-placeholder { width: 100%; aspect-ratio: 16/9; border: 0; border-radius: var(--radius); }
.trailer-placeholder { background-size: cover; background-position: center; display: grid; place-items: center; position: relative; }
.trailer-placeholder::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); background: rgba(60, 40, 25, .35); }
.badge { position: relative; z-index: 1; background: rgba(255, 253, 247, .95); color: var(--brown-dark); padding: 10px 22px; border-radius: 999px; font-weight: 500; }

/* episodes */
.episodes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.ep { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.ep img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.ep-body { padding: 18px 22px 22px; }
.ep-no { margin: 0; color: var(--green); font-family: var(--font); font-size: .85rem; letter-spacing: .06em; }
.ep h3 { margin: .2em 0 .4em; font-family: var(--font); font-size: 1.35rem; }
.ep h3 small { display: block; font-family: var(--font-ja); font-size: .8rem; color: var(--muted); }
.ep p { margin: 0 0 .6em; }
.status { display: inline-block; font-size: .8rem; color: var(--brown); background: var(--cream-2); padding: 2px 12px; border-radius: 999px; }

/* characters */
.chars { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.char { margin: 0; background: var(--card); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.char img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.char figcaption { padding: 18px 22px 22px; }
.char h3 { margin: 0 0 .3em; font-family: var(--font); letter-spacing: .06em; }
.char p { margin: 0; }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gallery img { aspect-ratio: 16/9; object-fit: cover; border-radius: 10px; width: 100%; }

/* works */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 28px; }
.filters button { font: inherit; font-size: .9rem; border: 1px solid var(--line); background: var(--card); color: var(--text); padding: 4px 16px; border-radius: 999px; cursor: pointer; }
.filters button.on { background: var(--brown); border-color: var(--brown); color: #fff; }
.works { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.work { display: block; text-decoration: none; color: inherit; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .2s, box-shadow .2s; }
a.work:hover { transform: translateY(-3px); box-shadow: 0 12px 28px -14px rgba(91, 58, 38, .4); }
.work img, .work .ph { aspect-ratio: 1; object-fit: cover; width: 100%; }
.work .ph { display: grid; place-items: center; font-size: 3.5rem; background: linear-gradient(135deg, #e8f1f0, #f6e7c9); }
.work .cat { display: block; padding: 12px 16px 0; font-family: var(--font); font-size: .75rem; color: var(--green); letter-spacing: .04em; }
.work h3 { margin: .1em 0 0; padding: 0 16px 14px; font-size: 1rem; color: var(--text); }
.work.hide { display: none; }

/* links */
.links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 840px; margin: 0 auto; }
.links a { display: flex; flex-direction: column; gap: 2px; padding: 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--muted); font-size: .9rem; }
.links a strong { color: var(--brown); font-family: var(--font); font-size: 1.15rem; font-weight: 600; }
.links a:not(.soon):hover { border-color: var(--brown); }
.links a.soon { opacity: .6; }

/* about */
.about { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: center; }
.about img { border-radius: var(--radius); aspect-ratio: 16/10; object-fit: cover; object-position: center 80%; width: 100%; }
.about h2 { text-align: left; }
.contact a { font-family: var(--font); }

.site-footer { text-align: center; padding: 28px 16px; color: var(--muted); font-size: .85rem; font-family: var(--font); }

/* ===== studio top page ===== */
:root { --ink: #1c1f26; --ink-2: #262a33; --glass: #b9c7d6; }
.center { text-align: center; }
.narrow { max-width: 760px; }

.hero2 { position: relative; display: grid; grid-template-columns: 1.2fr 1fr; min-height: min(78vh, 680px); background: var(--cream); }
.duo { display: grid; grid-template-columns: 1fr 1fr; }
.duo-warm { background-image: url(img/anime/op_dog.jpg); background-size: cover; background-position: center 55%; }
.hero2 > * { min-width: 0; }
.duo-dark { background: radial-gradient(120% 90% at 30% 30%, var(--ink-2), var(--ink)); color: var(--glass); display: grid; place-items: center; }
.duo-dark .shards { width: 85%; }
.hero2-text { display: flex; flex-direction: column; justify-content: center; padding: clamp(32px, 5vw, 72px); }
.hero2 h1 { font-family: var(--font-ja); font-size: clamp(2.2rem, 4.6vw, 3.8rem); font-weight: 500; margin: 0 0 .5em; color: var(--brown-dark); }
body.en .hero2 h1 { font-family: var(--font); }
.hero2 .lead { color: var(--text); }

.why { background: var(--card); }
.manifesto { font-size: clamp(1.02rem, 1.6vw, 1.15rem); line-height: 2.1; text-align: center; margin: 0; }
.eyebrow.center { text-align: center; margin-bottom: 1.2em; }

.series { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.s-card { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.s-card img, .s-visual { aspect-ratio: 16/9; width: 100%; object-fit: cover; }
.s-body { padding: 22px 26px 26px; flex: 1; }
.s-tag { margin: 0; font-size: .85rem; letter-spacing: .05em; }
.s-card h3 { font-family: var(--font); font-size: 1.7rem; margin: .2em 0 .5em; }
.s-card h3 small { display: block; font-size: .95rem; font-weight: 400; margin-top: .2em; }
.s-card.warm { background: var(--card); border: 1px solid var(--line); color: var(--text); }
.s-card.warm .s-tag, .s-card.warm h3 small { color: var(--green); }
a.s-card:hover { transform: translateY(-3px); box-shadow: 0 14px 32px -16px rgba(91, 58, 38, .45); }
.more { color: var(--brown); font-weight: 500; }
.s-card.dark { background: var(--ink); color: #d8dee6; }
.s-card.dark h3 { color: #eef2f6; }
.s-card.dark .s-tag, .s-card.dark h3 small { color: var(--glass); }
.s-card.dark .status { background: var(--ink-2); color: var(--glass); }
.s-visual, .j-visual { display: grid; place-items: center; color: var(--glass); background: radial-gradient(100% 100% at 30% 20%, var(--ink-2), var(--ink)); }
.s-visual .shards, .j-visual .shards { width: 70%; }

.journal { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
a.j-card { text-decoration: none; color: inherit; transition: transform .2s, box-shadow .2s; }
a.j-card:hover { transform: translateY(-3px); box-shadow: 0 14px 32px -16px rgba(91, 58, 38, .45); }
.j-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.j-card img, .j-visual { aspect-ratio: 16/9; width: 100%; object-fit: cover; }
.j-body { padding: 18px 22px 22px; }
.j-series { margin: 0; font-family: var(--font); font-size: .8rem; letter-spacing: .06em; color: var(--green); }
.j-card h3 { margin: .2em 0 .4em; font-size: 1.2rem; }
.j-card p { margin: 0 0 .6em; font-size: .95rem; }
.j-next { color: var(--muted); font-size: .85rem !important; border-top: 1px dashed var(--line); padding-top: .6em; }
.j-card.dark { background: var(--ink); border-color: var(--ink); color: #d8dee6; }
.j-card.dark h3 { color: #eef2f6; }
.j-card.dark .j-series { color: var(--glass); }
.j-card.dark .j-next { color: #9aa6b4; border-color: #3a404c; }
.back { margin-top: 32px; }
.voice { background: linear-gradient(180deg, var(--cream) 0%, #fdf0d0 100%); }
.voice p { margin: 0 0 1.4em; }

/* ===== journal list ===== */
.page-title { text-align: center; font-size: clamp(1.9rem, 4vw, 2.6rem); margin: 0 0 .4em; }
.j-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.j-tabs a { text-decoration: none; border: 1px solid var(--line); background: var(--card); padding: 6px 18px; border-radius: 999px; font-family: var(--font); color: var(--brown); }
.j-sec h2 { text-align: left; margin-bottom: .2em; }
.j-sec .j-series { margin-bottom: .2em; }
.j-desc { margin: 0 0 1.6em; color: var(--muted); }
.j-list { display: grid; gap: 14px; }
.j-item { display: grid; grid-template-columns: 220px 1fr; gap: 20px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; padding-right: 20px; transition: transform .2s, box-shadow .2s; }
a.j-item:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -16px rgba(91, 58, 38, .4); }
.j-item img, .j-ph { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.j-ph { background: linear-gradient(135deg, #efe3c8, #f8efdc); }
.j-ph.dark { background: radial-gradient(100% 100% at 30% 20%, var(--ink-2), var(--ink)); }
.j-item h3 { margin: .1em 0 .3em; font-size: 1.1rem; color: var(--text); }
.j-item p { margin: 0; color: var(--muted); font-size: .92rem; }
.j-no { font-family: var(--font); color: var(--green); font-size: .85rem; }
.j-item.soon { opacity: .6; }

/* ===== article ===== */
.article { max-width: 760px; margin: 0 auto; padding: 28px 16px 64px; }
.crumbs { font-size: .85rem; color: var(--muted); margin: 0 0 24px; }
.crumbs a { color: var(--muted); }
.a-head { margin-bottom: 24px; }
.a-series { margin: 0; font-family: var(--font); color: var(--green); letter-spacing: .05em; }
.a-series span { color: var(--muted); }
.a-head h1 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); margin: .25em 0 .4em; color: var(--brown-dark); }
body:not(.en) .a-head h1 { font-family: var(--font-ja); }
.a-meta { margin: 0; font-size: .85rem; color: var(--muted); }
.draft { background: #f3d9c4; color: var(--brown-dark); padding: 2px 10px; border-radius: 999px; font-size: .8rem; }
.a-hero, .a-body figure { margin: 0 0 32px; }
.a-hero img, .a-body figure img { width: 100%; border-radius: var(--radius); }
figcaption { font-size: .85rem; color: var(--muted); margin-top: 8px; }
.a-body { font-size: 1.04rem; line-height: 2; }
.a-body h2 { font-size: 1.35rem; margin: 2.2em 0 .6em; padding-left: 12px; border-left: 4px solid var(--green); text-align: left; }
.a-body h3 { font-size: 1.08rem; margin: 1.6em 0 .4em; text-align: left; }
.a-body p { margin: 0 0 1.2em; }
.a-body li { margin-bottom: .4em; }
.a-lead { font-size: 1.12rem; }
.a-body table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: .95rem; line-height: 1.7; }
.a-body th, .a-body td { border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: left; vertical-align: top; }
.a-body tr:first-child th { color: var(--brown); }
.chips { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.chips li { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; margin: 0; line-height: 1.6; font-size: .95rem; }
.chips b { display: block; font-family: var(--font); color: var(--brown); font-size: 1.05rem; }
.a-body blockquote { margin: 0 0 1.4em; padding: 14px 18px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; font-size: 1.05rem; }
.verdict { margin: 0 0 1.4em; padding: 14px 18px; border-radius: 12px; border-left: 6px solid; }
.verdict p { margin: 0; line-height: 1.6; }
.verdict .v-label { font-size: .8rem; color: var(--muted); }
.verdict .v-main { font-size: 1.3rem; font-weight: 700; }
.verdict .v-main small { font-size: .8rem; font-weight: 400; color: var(--muted); }
.verdict .v-cost { font-size: .82rem; color: var(--muted); }
.v-no { background: #f8e6df; border-color: #b0583a; }
.v-no .v-main { color: #8f3f24; }
.v-ok { background: #e6efe2; border-color: var(--green); }
.v-ok .v-main { color: #456b40; }
.a-body b.ok { color: #456b40; }
.a-body b.ng { color: #8f3f24; }
.a-note { font-size: .85rem; color: var(--muted); }
.trailer-cap { text-align: center; color: var(--muted); font-size: .9rem; margin: 8px 0 0; }
.watch { margin: 2em 0 0; padding: 18px 20px; border-radius: 12px; background: var(--ink); color: #eef2f6; display: flex; align-items: center; gap: 14px; text-decoration: none; }
.watch b { display: block; font-size: 1.05rem; }
.watch small { color: var(--glass); }
.watch .play { flex: none; width: 44px; height: 44px; border-radius: 50%; background: #e8e0cf; color: var(--ink); display: grid; place-items: center; font-size: 1.1rem; }
.spoiler { display: inline-block; font-size: .85rem; color: var(--muted); }
.next-teaser { margin-top: 2.4em; padding: 16px 20px; background: var(--cream-2); border-radius: 12px; }
.a-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 48px 0 32px; }
.a-nav a { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); text-decoration: none; color: var(--text); line-height: 1.5; }
.a-nav a small { color: var(--muted); }
.a-nav .next { text-align: right; }
.a-nav a:not(.disabled):hover { border-color: var(--brown); }
.a-nav .disabled { opacity: .5; }
.a-voice { text-align: center; padding: 28px 16px; background: linear-gradient(180deg, var(--cream) 0%, #fdf0d0 100%); border-radius: var(--radius); }
.a-voice p { margin: 0 0 12px; }

/* responsive */
@media (max-width: 900px) {
  .hero2 { grid-template-columns: 1fr; min-height: 0; }
  .duo { aspect-ratio: 16/8; }
  .journal { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .series, .journal, .links { grid-template-columns: 1fr; }
  .j-item { grid-template-columns: 110px 1fr; gap: 14px; padding-right: 14px; }
  .j-item p { display: none; }
  .a-nav, .chips { grid-template-columns: 1fr; }
  .a-nav .next { text-align: left; }
  .hero2-text { text-align: center; min-width: 0; padding: 32px 16px 40px; }
  .hero2 .lead br { display: none; }
  .nav a { white-space: nowrap; }
  .manifesto { text-align: left; }
  .manifesto br { display: none; }
}
@media (max-width: 900px) {
  .works { grid-template-columns: repeat(3, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .site-header { flex-wrap: wrap; gap: 8px 16px; }
  .nav { order: 3; width: 100%; margin: 0; overflow-x: auto; gap: 18px; padding-bottom: 2px; }
  .lang { margin-left: auto; }
  .hero { grid-template-columns: 1fr; text-align: center; }
  .episodes, .chars, .about { grid-template-columns: 1fr; }
  .works { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .about h2 { text-align: center; }
}

/* four journal series on the top page */
@media (min-width: 1000px) { .journal.four { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 721px) and (max-width: 999px) { .journal.four { grid-template-columns: 1fr 1fr; } }

/* Blender はじめの一歩 */
.j-more { margin: 12px 0 0; color: var(--muted); font-size: .9rem; }
.a-body ol.toc { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px 14px 2.6em; }
.a-body ol.toc li { margin-bottom: .15em; }

/* 手元のファイルで開いたときの YouTube の代わり（main.js） */
.yt-local { display: grid; place-items: center; width: 100%; aspect-ratio: 16/9; border-radius: var(--radius); background-size: cover; background-position: center; text-decoration: none; }
.yt-local span { background: rgba(0,0,0,.7); color: #fff; padding: 10px 20px; border-radius: 999px; }

/* YouTube へ人を送る（2026-11-24） */
.btn.yt { background: #c4302b; }
.btn.yt:hover { background: #a52722; }
.hero-cta { margin: 1.2em 0 0; }
.latest { padding-top: clamp(40px, 6vw, 72px); }
.latest .trailer { margin-bottom: 20px; }
.latest-cta { margin: 0; color: var(--muted); }
.latest-cta .btn { margin-left: 6px; }
.yt-card { display: grid; grid-template-columns: 240px 1fr; gap: 18px; align-items: center; margin: 32px 0; padding: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.yt-thumb { position: relative; display: block; border-radius: 10px; overflow: hidden; }
.yt-thumb img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.yt-play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 2rem; text-shadow: 0 2px 8px rgba(0,0,0,.5); }
.yt-text p { margin: 0 0 6px; }
.yt-label { color: var(--green); font-size: .85rem; }
.yt-title { font-weight: 700; color: var(--text); }
.yt-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px !important; }
.yt-btns .btn { margin: 0; padding: 8px 18px; }
@media (max-width: 720px) {
  .yt-card { grid-template-columns: 1fr; }
}
/* 読みもの 5 つ（トップ） */
@media (min-width: 721px) { .journal.five { grid-template-columns: repeat(3, 1fr); } }

/* はじめの一歩：番号を重ねた図、2 列の図、できあがりの確認 */
.lab-wrap { position: relative; }
.lab-wrap img { width: 100%; border-radius: var(--radius); }
.lab { position: absolute; transform: translate(-50%, -50%); width: 26px; height: 26px; border-radius: 50%; background: #e8590c; color: #fff; font: 700 14px/26px var(--font); text-align: center; box-shadow: 0 0 0 2px #fff; }
@media (max-width: 720px) { .lab { width: 18px; height: 18px; font-size: 11px; line-height: 18px; } }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 1.4em; }
.grid2 figure { margin: 0; }
.grid2 img { width: 100%; border-radius: 10px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0 0 1.4em; }
.grid3 figure { margin: 0; }
.grid3 img { width: 100%; border-radius: 10px; }
@media (max-width: 720px) { .grid3 { grid-template-columns: 1fr; } }
.checklist { list-style: none; padding: 14px 18px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.checklist li::before { content: "✓ "; color: var(--green); font-weight: 700; }
