/* 映作堂 広告特化のトップ（2026-12-02 下書き）
   決まり: content/kancopy/_kit/design_rules.md。色は3色（朱・黒・生成り）＋朱の淡い色（背景の帯だけ）。グラデーション・影・つやは使わない */
:root {
  --red: #E8452A; --redL: #F27459; --ink: #111111; --crm: #F6F0E4;
  --en: "Jost", "Futura", system-ui, sans-serif;
  --jp: "Zen Kaku Gothic New", "Hiragino Sans", "Hiragino Kaku Gothic ProN", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .9, .25, 1.25);
  --hd: 64px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--hd); }
body { margin: 0; background: var(--ink); color: var(--ink); font-family: var(--jp); font-weight: 700; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video { max-width: 100%; display: block; }
a { color: inherit; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--crm); padding: 8px 14px; z-index: 99; }
.skip:focus { left: 8px; }

/* ヘッダー */
.hd { position: sticky; top: 0; z-index: 50; height: var(--hd); display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(14px, 3vw, 36px); background: var(--crm); border-bottom: 3px solid var(--ink); }
.hd-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 900; font-size: 1.3rem; letter-spacing: .04em; }
.hd-logo img { width: 36px; height: 36px; }
.hd-nav { display: flex; align-items: center; gap: clamp(12px, 2.4vw, 30px); }
.hd-nav a { text-decoration: none; font-size: .95rem; }
.hd-nav a:not(.hd-btn):hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }
.hd-btn { background: var(--ink); color: var(--crm); padding: 10px 20px; border-radius: 999px; }
.hd-btn:hover { animation: squash .45s; }
@media (max-width: 720px) { .hd-nav a:not(.hd-btn) { display: none; } }

/* 場面（セクション） */
.sc { position: relative; overflow: hidden; padding: clamp(56px, 11vh, 120px) clamp(16px, 4vw, 48px); text-align: center; isolation: isolate; }
.sc > *:not(.bands):not(.caps):not(.tris) { position: relative; z-index: 2; }
.sc-red { background: var(--red); }
.sc-crm { background: var(--crm); }
.sc-ink { background: var(--ink); color: var(--crm); }

/* 転換: 大きな円が一気に開く（JS があるときだけ） */
/* 円の転換は使わない（黒い待ち時間が疲れるため・2026-12-02 社長） */

/* 巨大な英単語（文字そのものが絵） */
.giant { display: flex; justify-content: center; align-items: center; font-family: var(--en); font-weight: 800; line-height: .74; letter-spacing: -.035em; white-space: nowrap; margin: 0 -8vw; user-select: none; }
.brk { display: none; }
.giant .l { display: inline-flex; align-items: center; justify-content: center; padding: .07em 0 0; }
html.js .giant .l { opacity: 0; transform: translateY(-60%) rotate(-8deg); }
html.js .in .giant .l { opacity: 1; transform: none; transition: transform .45s var(--ease) calc(var(--i, 0) * 45ms), opacity .05s linear calc(var(--i, 0) * 45ms); }
.giant span.l:hover { animation: squash .5s; }
@keyframes squash { 0% { transform: none; } 25% { transform: scale(1.14, .84); } 55% { transform: scale(.93, 1.08); } 80% { transform: scale(1.03, .98); } 100% { transform: none; } }

.giant-hero { font-size: min(36vw, 60vh); color: var(--crm); }
.giant-short { font-size: min(27vw, 44vh); color: var(--ink); }
.giant-look { font-size: min(31vw, 50vh); color: var(--crm); }
.giant-yours { font-size: min(25vw, 42vh); color: var(--crm); }
.giant-ok { font-size: min(34vw, 56vh); color: var(--ink); }

/* 見立て①: PLAY の A＝再生ボタン */
.play-a { width: .76em; height: .86em; margin: 0 .02em 0 .06em; border: 0; padding: 0; background: none; cursor: pointer; font-size: inherit; }
.play-a svg { width: 100%; height: 100%; fill: var(--crm); stroke: var(--ink); stroke-width: 0; transition: transform .3s var(--ease); }
.play-a:hover svg, .play-a:focus-visible svg { transform: scale(1.1) rotate(-6deg); }
.play-a:focus-visible { outline: 6px solid var(--ink); outline-offset: 6px; border-radius: 12px; }
html.js .in .play-a svg { animation: nudge 2.6s ease-in-out 2s infinite; }
@keyframes nudge { 0%, 70%, 100% { transform: none; } 78% { transform: scale(1.12, .9); } 86% { transform: scale(.95, 1.06); } }

/* 見立て②: SHORT の O＝スマホの画面 */
.phone { width: .5em; height: .92em; margin: 0 .04em; border: .04em solid var(--ink); border-radius: .085em; background: var(--ink); overflow: hidden; padding: 0 !important; align-self: center; }
.phone video { width: 100%; height: 100%; object-fit: cover; }

/* 見立て③: LOOK の OO＝目（ポインタを追う） */
.eye { width: .7em; height: .7em; margin: 0 .025em; border-radius: 50%; background: var(--crm); position: relative; padding: 0 !important; }
.eye i { position: absolute; left: 50%; top: 50%; width: .3em; height: .3em; margin: -.15em 0 0 -.15em; border-radius: 50%; background: var(--ink); transform: translate(var(--px, 0), var(--py, 0)); transition: transform .12s linear; }
html.js .in .eye { animation: blink 4.5s 2s infinite; }
@keyframes blink { 0%, 93%, 100% { transform: none; } 96% { transform: scaleY(.08); } }

/* 見立て④: YOURS の O＝角印（ぽんと押す） */
.seal { width: .7em; height: .7em; margin: 0 .04em; padding: 0 !important; }
.seal img { width: 100%; height: 100%; transform: rotate(-8deg); }
html.js .seal { transform: scale(2.6) rotate(24deg) !important; opacity: 0 !important; }
html.js .in .seal { transform: none !important; opacity: 1 !important; transition: transform .38s cubic-bezier(.6, 0, .9, .4) .35s, opacity .1s .35s !important; }
.shake { animation: shake .4s; }
@keyframes shake { 20% { transform: translate(-6px, 4px); } 40% { transform: translate(5px, -3px); } 60% { transform: translate(-3px, 2px); } 80% { transform: translate(2px, -1px); } }

/* 見立て⑤: OK の O＝相談のボタン */
.ok-o { width: .76em; height: .76em; margin: 0 .03em; border-radius: 50%; background: var(--ink); color: var(--crm); text-decoration: none; position: relative; padding: 0 !important; }
.ok-o span { font-family: var(--jp); font-weight: 900; font-size: .14em; line-height: 1.25; letter-spacing: .06em; }
.ok-o::after { content: ""; position: absolute; inset: -.04em; border-radius: 50%; border: .03em solid var(--ink); animation: ring 1.8s ease-out infinite; }
.ok-o:hover { animation: squash .5s; }
.ok-o:focus-visible { outline: 6px solid var(--crm); outline-offset: 8px; }
@keyframes ring { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(1.35); opacity: 0; } }

/* 日本語は小さく1行（帯なし） */
.hero-copy { margin-top: clamp(20px, 4vh, 44px); }
.tag { display: inline-block; margin: 0 0 10px; font-size: clamp(.8rem, 1.4vw, 1rem); letter-spacing: .12em; color: var(--ink); }
.tag-crm { color: var(--crm); margin-top: clamp(26px, 4vh, 44px); }
h1 { margin: 0; font-weight: 900; font-size: clamp(1.6rem, 4vw, 3rem); line-height: 1.35; color: var(--ink); }
.sub { margin: 10px 0 0; font-size: clamp(1rem, 1.6vw, 1.2rem); font-weight: 700; color: var(--ink); }
.sub-crm { color: var(--crm); }
.hero-copy .btn { margin-top: clamp(20px, 3.4vh, 32px); }
.btn-end { margin-top: 22px; }
.line { margin: clamp(22px, 4vh, 40px) 0 0; font-weight: 900; font-size: clamp(1.45rem, 3.4vw, 2.6rem); line-height: 1.4; color: var(--ink); }
.line-crm { color: var(--crm); }
.sc-red .line-crm { color: var(--ink); }
.small-crm { margin: 8px 0 0; font-size: .9rem; color: var(--ink); opacity: .85; }
.note { margin: 18px 0 0; font-size: .95rem; color: var(--ink); }

/* ボタン */
.btn { display: inline-block; padding: 18px 40px; border-radius: 999px; font-weight: 900; font-size: 1.1rem; text-decoration: none; }
.btn-ink { background: var(--ink); color: var(--crm); }
.btn:hover { animation: squash .5s; }

/* 動く背景①: 斜めの太い帯が流れる */
.bands { position: absolute; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; }
.bands i { position: absolute; top: -60%; left: 0; height: 220%; background: var(--redL); animation: band 26s linear infinite; }
.bands i:nth-child(1) { width: 11vw; animation-delay: -2s; }
.bands i:nth-child(2) { width: 4vw; animation-delay: -7s; }
.bands i:nth-child(3) { width: 17vw; animation-delay: -12s; }
.bands-slow i { animation-duration: 34s; }
@keyframes band { from { transform: translateX(-40vw) rotate(24deg); } to { transform: translateX(140vw) rotate(24deg); } }

/* 動く背景②: ふちだけのカプセルが端から滑り込む */
.caps { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.caps i { position: absolute; height: clamp(26px, 3.4vw, 44px); border: clamp(4px, .45vw, 6px) solid var(--crm); border-radius: 99px; transition: transform .9s var(--ease); }
.caps-ink i { border-color: var(--ink); }
.caps i:nth-child(1) { width: clamp(150px, 26vw, 380px); top: 7%; right: -40px; transform: translateX(120%); }
.caps i:nth-child(2) { width: clamp(110px, 18vw, 260px); top: calc(7% + clamp(36px, 4.6vw, 60px)); right: -70px; transform: translateX(120%); transition-delay: .1s; }
.caps i:nth-child(3) { width: clamp(150px, 28vw, 420px); bottom: 3%; left: -50px; transform: translateX(-120%); transition-delay: .2s; }
.in .caps i { transform: none; }
.in .caps i:nth-child(odd) { animation: slide 7s ease-in-out 1.2s infinite alternate; }
@keyframes slide { to { translate: -30px 0; } }

/* 動く背景③: 三角が漂う */
.tris { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.tris i { position: absolute; width: 56px; height: 52px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 56'%3E%3Cpath d='M30 5 L55 50 L5 50 Z' fill='none' stroke='%23111' stroke-width='5' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; animation: drift 9s ease-in-out infinite alternate; }
.tris-crm i { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 56'%3E%3Cpath d='M30 5 L55 50 L5 50 Z' fill='none' stroke='%23F6F0E4' stroke-width='5' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.tris i:nth-child(1) { left: 6%; top: 12%; animation-delay: -1s; }
.tris i:nth-child(2) { right: 8%; top: 10%; width: 40px; animation-delay: -4s; }
.tris i:nth-child(3) { right: 5%; bottom: 16%; width: 70px; animation-delay: -2s; }
.tris i:nth-child(4) { left: 4%; bottom: 10%; width: 44px; animation-delay: -6s; }
.tris i:nth-child(5) { left: 46%; top: 4%; width: 32px; animation-delay: -3s; }
@keyframes drift { from { transform: translate(0, 0) rotate(-10deg); } to { transform: translate(14px, -26px) rotate(40deg); } }

/* 流れる帯（スクロールの速さで速くなる） */
.marquee { background: var(--ink); color: var(--crm); overflow: hidden; border-block: 3px solid var(--ink); }
.mq-track { display: flex; align-items: center; gap: .5em; width: max-content; padding: .18em 0 .1em; font-family: var(--jp); font-weight: 900; font-size: clamp(2rem, 5.6vw, 4.6rem); line-height: 1.2; letter-spacing: 0; animation: mq 40s linear infinite; }
.mq-track b { color: var(--red); font-size: .5em; }
@keyframes mq { to { transform: translateX(-50%); } }

/* 見本 */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 32px); max-width: 1240px; margin: clamp(30px, 5vh, 56px) auto 0; text-align: left; align-items: start; }
@media (max-width: 900px) { .gallery { grid-template-columns: 1fr; max-width: 560px; } }
.card { background: var(--crm); border: 4px solid var(--ink); border-radius: 20px; overflow: hidden; }
html.js .card { transform: translateY(80px) rotate(3deg); opacity: 0; }
html.js .in .card { transform: none; opacity: 1; transition: transform .7s var(--ease), opacity .3s; }
html.js .in .card:nth-child(2) { transition-delay: .12s; }
html.js .in .card:nth-child(3) { transition-delay: .24s; }
.card-media { position: relative; background: var(--ink); display: flex; justify-content: center; border-bottom: 4px solid var(--ink); }
.card-play { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; border: 4px solid var(--ink); background: var(--crm); cursor: pointer; display: grid; place-items: center; padding: 0 0 0 6px; transition: transform .25s var(--ease); }
.card-play svg { width: 30px; height: 33px; fill: var(--ink); }
.card-play:hover { transform: scale(1.12) rotate(-6deg); }
.card-media.playing .card-play { display: none; }
.card-media video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--ink); }
.card-media.is-v video { width: auto; height: min(62vh, 560px); aspect-ratio: 9 / 16; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; }
.card-foot h3 { margin: 0; font-size: 1.05rem; font-weight: 900; }
.seg { display: flex; border: 3px solid var(--ink); border-radius: 999px; overflow: hidden; flex: none; }
.seg button { font: inherit; font-weight: 900; font-size: .9rem; padding: 6px 16px; border: 0; background: var(--crm); color: var(--ink); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--crm); }

/* 頼み方 */
.giant-jp { margin: 0; font-weight: 900; font-size: clamp(2.2rem, 7.4vw, 6.4rem); line-height: 1.15; letter-spacing: -.01em; }
.giant-jp em { font-style: normal; color: var(--red); display: inline-block; }
html.js .giant-jp em { transform: scale(0); }
html.js .in .giant-jp em { transform: none; transition: transform .5s var(--ease) .5s; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 3vw, 40px); max-width: 1100px; margin: clamp(36px, 6vh, 64px) auto 0; padding: 0; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; max-width: 360px; } }
.steps li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.steps .num { position: absolute; top: -.18em; left: 50%; translate: -150% 0; font-family: var(--en); font-weight: 800; font-size: clamp(7rem, 13vw, 11rem); line-height: 1; color: transparent; -webkit-text-stroke: 5px var(--red); z-index: -1; }
.steps img { height: clamp(200px, 24vw, 300px); width: auto; }
html.js .steps li { transform: translateY(60px); opacity: 0; }
html.js .in .steps li { transform: none; opacity: 1; transition: transform .6s var(--ease), opacity .3s; }
html.js .in .steps li:nth-child(2) { transition-delay: .15s; }
html.js .in .steps li:nth-child(3) { transition-delay: .3s; }
.in .steps img { animation: bob 1.1s ease-in-out infinite alternate; }
.in .steps li:nth-child(2) img { animation-delay: -.4s; }
.in .steps li:nth-child(3) img { animation-delay: -.8s; }
@keyframes bob { to { transform: translateY(-8px) rotate(1.5deg); } }
.steps strong { font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 900; margin-top: 6px; }
.steps li > span:last-child { font-size: .95rem; }

/* 最後: 人が並ぶ */
.end { padding-bottom: 0; }
.crowd { display: flex; justify-content: center; align-items: flex-end; gap: clamp(4px, 2vw, 30px); margin-top: clamp(26px, 5vh, 48px); height: clamp(170px, 24vw, 320px); }
.crowd img { height: 100%; width: auto; }
html.js .crowd img { transform: translateY(105%); }
html.js .in .crowd img { transform: none; transition: transform .5s var(--ease) calc(var(--i, 0) * 50ms + .2s); }
.in .crowd img { animation: bob 1s ease-in-out calc(var(--i, 0) * -.13s) infinite alternate; }
@media (max-width: 640px) { .crowd img:nth-child(n+6) { display: none; } }

/* フッター */
.ft { background: var(--ink); color: var(--crm); padding: 40px clamp(16px, 4vw, 48px) 28px; text-align: center; font-size: .9rem; }
.ft-brand { display: flex; justify-content: center; align-items: center; gap: 8px; margin: 0 0 6px; font-weight: 900; font-size: 1.1rem; }
.ft-brand span { font-size: 1.25rem; }
.ft-op { margin: 0 0 16px; opacity: .85; }
.ft-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; }
.ft-nav a { text-decoration: none; opacity: .9; }
.ft-nav a:hover { text-decoration: underline; }
.ft-c { margin: 18px 0 0; opacity: .6; font-size: .8rem; }

/* 見本の動画を大きく（音あり） */
.reel { width: min(92vw, 1200px); padding: 0; border: 4px solid var(--ink); border-radius: 18px; background: var(--ink); overflow: visible; }
.reel::backdrop { background: rgba(17, 17, 17, .85); }
.reel video { width: 100%; border-radius: 14px; }
.reel form { position: absolute; top: -56px; right: 0; }
.reel-close { font: inherit; font-weight: 900; background: var(--crm); border: 3px solid var(--ink); border-radius: 999px; padding: 8px 20px; cursor: pointer; }

/* 動きを減らす設定の人: 動きを止めて、全部見えるようにする */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html.js .wipe, html.js .giant .l, html.js .seal, html.js .card, html.js .steps li, html.js .crowd img, html.js .giant-jp em, .caps i { clip-path: none !important; transform: none !important; opacity: 1 !important; }
}

/* スマホの調整 */
.sp { display: none; }
@media (max-width: 640px) {
  .sp { display: inline; }
  .tris i:nth-child(3), .tris i:nth-child(4) { display: none; }
  .caps-ink { display: none; }
  .hero { min-height: calc(100svh - var(--hd)); display: flex; flex-direction: column; justify-content: center; }
  .giant-hero { flex-wrap: wrap; font-size: 60vw; row-gap: .06em; margin: 0; }
  .giant-hero .brk { display: block; flex-basis: 100%; height: 0; }
}
.line .pre { display: block; font-size: .62em; margin-bottom: 6px; }
