/* May Hill Studio（may-hill.com）v5・2026-10-20。大手の放送局のサイトの組み方を手本に：
   明るい灰の地・白い上の帯とアイコンの案内・「NEW」の帯・角の丸い大きな絵・絵のカードの並び・
   上の角を丸めた色の面が重なっていく・丸いボタン・矢印つきのおしらせ。スマホは浮いた上の帯と下のアイコンの帯。
   メインの絵は1枚の静止画で、星・蛍・灯り・煙・霧だけを CSS で動かす（カメラは動かさない） */
:root {
  --bg: #f3f4f1; --white: #fff; --ink: #14251b; --text: #29322c; --sub: #66706a; --line: #e2e5df;
  --green: #1f6b45; --green2: #18553a; --night: #101b2c; --amber: #e3a238; --amber-d: #b9791a;
  --sans: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Meiryo", system-ui, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
  --r: 18px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.8; -webkit-text-size-adjust: 100%; overflow-x: hidden; padding-bottom: 72px; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: #fff; padding: 8px 12px; z-index: 60; }

/* 上の帯：スマホは浮いた丸い帯・PC は白い帯 */
.hd { position: sticky; top: 8px; z-index: 30; margin: 8px 10px 0; height: 58px; display: flex; align-items: center; gap: 12px; padding: 0 8px 0 16px; background: var(--white); border-radius: 999px; box-shadow: 0 6px 20px rgba(20, 37, 27, .1); }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); }
.brand img { width: 42px; }
.brand b { display: block; font-family: var(--serif); font-size: 15px; letter-spacing: .08em; line-height: 1.15; }
.brand small { display: block; font-size: 15px; color: var(--sub); line-height: 1.3; }
.gnav { display: none; }
.hd__contact { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 14px; border-radius: 999px; background: var(--green); color: #fff; text-decoration: none; font-weight: 700; font-size: 15px; }
.hd__contact span { display: none; }
.hd__contact:hover { background: var(--amber-d); }

/* NEW の帯 */
.ticker { display: flex; align-items: center; gap: 10px; margin: 14px 10px 0; padding: 10px 14px; background: var(--white); border-radius: 999px; font-size: 15px; }
.ticker__badge { flex: 0 0 auto; padding: 2px 10px; border-radius: 999px; background: var(--amber); color: #3a2400; font-weight: 800; font-size: 15px; letter-spacing: .06em; }
.ticker a { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; color: var(--ink); text-decoration: none; }
.ticker a:hover { color: var(--green); }
.ticker time { flex: 0 0 auto; display: none; font-family: var(--serif); font-weight: 700; font-size: 22px; color: var(--green); line-height: 1; }
.ticker time small { display: block; font-size: 15px; color: var(--sub); font-weight: 400; }

/* メインの絵 */
/* 全幅：枠（.kv）いっぱいに絵の板（.kv__stage・16:9）を敷く。灯りなどの位置は板の % なので、絵とずれない。
   スマホ（縦長）は工房（横 68% のあたり）が真ん中に来るように板をずらす */
.top { padding: 0 0 8px; }
.kv { position: relative; overflow: hidden; height: 64svh; margin-top: 14px; background: #0d1622; --sw: calc(64svh * 16 / 9); }
.kv__stage { position: absolute; top: 0; height: 100%; width: var(--sw); left: clamp(calc(100% - var(--sw)), calc(50% - var(--sw) * .66), 0px); }
.kv__img { width: 100%; height: 100%; }
.kv__fx { position: absolute; inset: 0; pointer-events: none; }
.fx-glow { position: absolute; border-radius: 50%; mix-blend-mode: screen; transform: translate(-50%, -50%); }
.fx-glow--win { left: 74.2%; top: 36.4%; width: 15%; aspect-ratio: 1; background: radial-gradient(circle, rgba(255, 200, 110, .55) 0%, rgba(255, 170, 70, .18) 45%, transparent 70%); animation: flicker 4.2s infinite; }
.fx-glow--lamp { left: 64.6%; top: 30.6%; width: 6%; aspect-ratio: 1; background: radial-gradient(circle, rgba(255, 210, 120, .7) 0%, transparent 65%); animation: flicker 3.1s infinite reverse; }
@keyframes flicker { 0%, 100% { opacity: .85; } 18% { opacity: 1; } 32% { opacity: .78; } 47% { opacity: .95; } 63% { opacity: .82; } 80% { opacity: 1; } }
.fx-smoke { position: absolute; left: 74.6%; top: 15%; width: 4%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(220, 225, 235, .28), transparent 70%); filter: blur(4px); animation: smoke 7s infinite ease-out; }
.fx-smoke--2 { animation-delay: 3.5s; }
@keyframes smoke { 0% { transform: translate(-50%, 0) scale(.6); opacity: 0; } 15% { opacity: .9; } 100% { transform: translate(10%, -140%) scale(2.2); opacity: 0; } }
.fx-mist { position: absolute; left: -20%; top: 40%; width: 80%; height: 22%; background: radial-gradient(ellipse at center, rgba(200, 210, 225, .16), transparent 70%); filter: blur(8px); animation: mist 26s infinite ease-in-out alternate; }
@keyframes mist { from { transform: translateX(0); } to { transform: translateX(18%); } }
.fx-stars, .fx-flies { position: absolute; inset: 0; }
.fx-stars i { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #fff; box-shadow: 0 0 6px 1px rgba(255, 255, 255, .7); animation: twinkle 3s infinite ease-in-out; }
@keyframes twinkle { 0%, 100% { opacity: .15; transform: scale(.7); } 50% { opacity: 1; transform: scale(1.1); } }
.fx-flies i { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: #ffe08a; box-shadow: 0 0 10px 4px rgba(255, 210, 100, .55); animation: fly 9s infinite ease-in-out; }
@keyframes fly { 0% { transform: translate(0, 0); opacity: 0; } 15% { opacity: 1; } 50% { transform: translate(var(--dx, 20px), var(--dy, -26px)); opacity: .9; } 85% { opacity: 1; } 100% { transform: translate(0, -6px); opacity: 0; } }
.top__title { margin: 18px 14px 4px; font-size: clamp(24px, 5.6vw, 34px); line-height: 1.45; font-weight: 800; color: var(--ink); letter-spacing: .02em; }
.top__sub { margin: 0 14px; color: var(--sub); font-size: 15px; }

/* 見出し */
.h2 { margin: 0 0 22px; font-size: clamp(28px, 6.6vw, 42px); font-weight: 800; line-height: 1.3; letter-spacing: .03em; }
.h2 small { display: block; font-family: var(--serif); font-size: 15px; font-weight: 400; letter-spacing: .2em; text-transform: uppercase; opacity: .8; }
.h2--ink { color: var(--ink); }
.h2--ink small { color: var(--amber-d); opacity: 1; }
.h2--gap { margin-top: 64px; }

/* May Hill Studio とは */
.about { padding: 56px 16px 8px; }
.about .h2 { color: var(--ink); }
.about .h2 small { color: var(--amber-d); }
.about__body { max-width: 760px; }
.about__body p { margin: 0 0 16px; font-size: 17px; line-height: 2; }
.about__lead { font-size: clamp(21px, 4.4vw, 28px) !important; word-break: keep-all; overflow-wrap: anywhere; font-weight: 800; line-height: 1.6 !important; color: var(--green); margin-bottom: 22px !important; }
.about__more { margin-top: 26px !important; }
.pill--green { background: var(--green); color: #fff; }
.pill--green:hover { background: var(--amber-d); color: #fff; }

/* 事業：絵のカード（スマホ 2列・PC 4列） */
.biz { padding: 48px 10px 72px; }
.biz .h2 { color: var(--ink); }
.biz .h2 small { color: var(--amber-d); }
.biz__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 22px 12px; }
.biz__list img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; }
.biz__list h3 { margin: 10px 0 2px; font-size: 17px; line-height: 1.4; color: var(--ink); }
.biz__list h3 small { display: block; font-family: var(--serif); font-size: 15px; font-weight: 400; color: var(--amber-d); letter-spacing: .08em; }
.biz__list p { margin: 0; font-size: 15px; color: var(--sub); line-height: 1.7; }

/* 色の面：上の角を丸めて、前の面に少し重ねる */
.panel { position: relative; margin-top: -28px; border-radius: 36px 36px 0 0; padding: 56px 16px 84px; color: #fff; }
.panel--green { background: var(--green); }
.panel--night { background: var(--night); }
.panel--white { background: var(--white); color: var(--text); padding-bottom: 72px; }
.panel__in { max-width: 1120px; margin: 0 auto; }
.panel__hd { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.panel__more { margin: 30px 0 0; text-align: center; }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 12px 26px; border-radius: 999px; background: #fff; color: var(--ink); font-weight: 700; font-size: 15px; text-decoration: none; box-shadow: 0 6px 16px rgba(0, 0, 0, .14); transition: transform .25s; }
.pill:hover { transform: translateY(-2px); }
.pill svg { width: 18px; height: 18px; }

/* 作品のカード */
.works { display: grid; gap: 28px; }
.work { display: block; text-decoration: none; color: #fff; }
.work img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 14px; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.work:hover img { transform: scale(1.02); }
.work__kind { display: block; margin-top: 12px; font-size: 15px; color: #ffd791; font-weight: 700; }
.work__t { display: block; font-size: 19px; font-weight: 800; line-height: 1.45; }
.work__d { display: block; font-size: 15px; color: #d7e6dc; }

/* 動画のカード（縦長・日付つき） */
.vids { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 22px 12px; }
.vids a { display: block; text-decoration: none; color: #fff; }
.vids img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 12px; background: #0a1220; transition: transform .4s; }
.vids a:hover img { transform: translateY(-4px); }
.vid__kind { display: block; margin-top: 10px; font-size: 15px; color: #ffd791; font-weight: 700; }
.vid__t { display: block; font-size: 15px; line-height: 1.6; font-weight: 700; }
.vid__date { display: block; font-size: 15px; color: #a9b6c9; }

/* おしらせ */
.news { list-style: none; margin: 0; padding: 0; }
.news li { border-bottom: 1px solid var(--line); }
.news a { display: flex; align-items: center; gap: 14px; padding: 18px 2px; text-decoration: none; color: var(--text); }
.news a:hover { color: var(--green); }
.news time { flex: 0 0 auto; font-family: var(--serif); font-size: 15px; color: var(--sub); }
.news span { flex: 1 1 auto; font-weight: 700; }
.news svg { color: var(--green); }

/* スタジオ概要 */
.profile { margin: 0; }
.profile div { display: grid; gap: 2px; padding: 16px 2px; border-bottom: 1px solid var(--line); }
.profile dt { font-weight: 800; color: var(--ink); font-size: 15px; }
.profile dd { margin: 0; }
.profile a { color: var(--green); }

/* お問い合わせ */
.contact { margin-top: 72px; padding: 44px 0 48px; background: #e6efe8; box-shadow: 0 0 0 100vmax #e6efe8; clip-path: inset(0 -100vmax); }   /* 2026-10-21 背景色で分かりやすく＝画面の端までの帯 */
.contact p { margin: 0 0 16px; }
.contact__mail { display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border-radius: 999px; background: var(--green); color: #fff; font-weight: 800; font-size: clamp(17px, 4.4vw, 22px); text-decoration: none; word-break: break-all; }
.contact__mail:hover { background: var(--amber-d); }

/* 足もと */
.ft { background: var(--night); color: #c7d0dc; padding: 44px 16px 28px; }
.ft__in { max-width: 1120px; margin: 0 auto; }
.brand--ft { color: #fff; }
.brand--ft img { filter: brightness(0) invert(.92); }
.brand--ft small { color: #a9b6c9; }
.ft__nav { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; }
.ft__nav a { color: #c7d0dc; text-decoration: none; font-size: 15px; }
.ft__nav a:hover { color: #fff; }
.ft__copy { margin: 28px 0 0; font-size: 15px; color: #8492a6; }

/* スマホの下のアイコンの帯 */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(5, 1fr); background: var(--green2); padding-bottom: env(safe-area-inset-bottom); }
.tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 9px 0 8px; color: #fff; text-decoration: none; font-size: 15px; font-weight: 700; line-height: 1.2; }
.tabbar svg { width: 22px; height: 22px; }

@media (min-width: 1000px) {
  body { padding-bottom: 0; }
  .hd { top: 0; margin: 0; height: 72px; border-radius: 0; padding: 0 0 0 28px; box-shadow: 0 1px 0 var(--line); }
  .brand b { font-size: 17px; }
  .gnav { display: flex; margin-left: 40px; gap: 6px; }
  .gnav a { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 15px; }
  .gnav a svg { color: var(--green); }
  .gnav a:hover { background: var(--bg); }
  .hd__contact { height: 72px; border-radius: 0; padding: 0 28px; flex-direction: column; justify-content: center; gap: 2px; font-size: 15px; }
  .hd__contact span { display: block; }
  .ticker { max-width: 920px; margin: 22px auto 0; padding: 12px 22px; }
  .ticker time { display: block; }
  .kv { height: calc(100svh - 72px); min-height: 520px; margin-top: 0; }
  .kv__stage { width: max(100%, calc((100svh - 72px) * 16 / 9)); height: auto; aspect-ratio: 16 / 9; left: 50%; top: 50%; transform: translate(-50%, -50%); }
  .top__title, .top__sub { max-width: 1120px; margin-left: auto; margin-right: auto; padding: 0 16px; }
  .top__title { margin-top: 36px; }
  .about { max-width: 1120px; margin: 0 auto; padding: 96px 16px 8px; display: grid; grid-template-columns: 4fr 8fr; gap: 40px; }
  .biz { max-width: 1120px; margin: 0 auto; padding: 72px 16px 96px; }
  .biz__list { grid-template-columns: repeat(4, 1fr); gap: 24px; }
  .panel { margin-top: -36px; border-radius: 48px 48px 0 0; padding: 80px 32px 110px; }
  .panel__more { text-align: right; margin-top: 36px; }
  .works { grid-template-columns: 1fr 1fr; gap: 32px; }
  .vids { grid-template-columns: repeat(5, 1fr); gap: 20px; }
  .profile div { grid-template-columns: 200px 1fr; gap: 24px; }
  .ft__nav { grid-template-columns: repeat(6, auto); justify-content: start; gap: 8px 28px; }
  .tabbar { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fx-glow, .fx-smoke, .fx-mist, .fx-stars i, .fx-flies i { animation: none; }
  .fx-smoke, .fx-flies { display: none; }
}

/* 文字の粒（letters.js）。絵の上・クリックは通す */
.kv__letters { position: absolute; inset: 0; z-index: 2; pointer-events: none; }

/* 計測の断り（2026-10-21） */
.ft__note { flex-basis: 100%; margin: 8px 0 0; font-size: 15px; line-height: 1.8; opacity: .8; }
.ft__note a { color: inherit; text-decoration: underline; }

/* お問い合わせのフォーム（2026-10-21・トップと /contact/ で共通） */
.cform { max-width: 560px; }
.cform .field { margin: 0 0 12px; }
.cform label { display: block; margin: 0 0 4px; font-weight: 700; color: var(--ink); line-height: 1.5; }
.cform input, .cform select, .cform textarea { width: 100%; box-sizing: border-box; font: inherit; font-size: 16px; line-height: 1.5; padding: 9px 12px; border: 1px solid #c9cfc6; border-radius: 8px; background: #fff; color: var(--ink); }
.cform input:focus, .cform select:focus, .cform textarea:focus { outline: 2px solid var(--green); outline-offset: 1px; }
.cform textarea { min-height: 7.5em; resize: vertical; }
.cform .req, .cform .opt { margin-left: 6px; font-size: 15px; font-weight: 500; color: var(--sub); }
.cform .req { color: var(--green); }
.field__help, .cform__privacy { margin: 4px 0 0; font-size: 15px; line-height: 1.6; color: var(--sub); }
.cform__privacy { margin: 0 0 10px; }
.field__err { margin: 6px 0 0; font-size: 15px; font-weight: 700; color: #a3361f; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cform .cf-turnstile { margin: 0 0 10px; min-height: 65px; }
.cform__send { display: inline-flex; align-items: center; gap: 10px; padding: 12px 30px; border: 0; border-radius: 999px; background: var(--green); color: #fff; font: inherit; font-weight: 800; font-size: 18px; cursor: pointer; }
.cform__send svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
.cform__send:hover { background: var(--amber-d); }
.alert { padding: 4px 0 4px 16px; border-left: 3px solid var(--line); color: var(--ink); }
.alert--error { border-left-color: #a3361f; }
.cpage { background: var(--bg); }
.cpage__hd { padding: 18px 16px; background: #fff; border-bottom: 1px solid var(--line); }
.cpage__brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.cpage__brand b { display: block; font-family: var(--serif); letter-spacing: .08em; }
.cpage__brand small { display: block; font-size: 15px; color: var(--sub); }
.cpage__in { max-width: 760px; margin: 0 auto; padding: 40px 16px 80px; }
