/*
  confiture.info のトップ（4言語共通）。build.py が書き出すページが読む。
  作品のキービジュアルが明るいので、ページは白地の一枚で通す（暗い画面への切り替えは
  持たない。色はすべてここで明示している）。
  角は丸めずに斜めに落とす。ロゴの「C」の角が 45 度で切れているのに合わせた。
  ただし任天堂のバッジだけは配布物なので、切らず・丸めず・縦横比を変えずに置く。
*/
:root {
  --ink: #221b2e;
  --ink-soft: #5d566b;
  --line: #e6e2ee;
  --paper: #ffffff;
  --mist: #f3f8fc;
  --field: #f6f8fb;
  --berry: #ff4fae;
  --apricot: #f18f00;
  --sky: #2fa8e0;
  --danger: #c8264b;
  --jam: linear-gradient(100deg, var(--berry) 0%, #fa6a6a 55%, var(--apricot) 100%);
  --cut: 14px;
  --latin: "Jost", "Futura", "Century Gothic", sans-serif;
  --jp: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
}
html[lang="zh-Hans"] { --jp: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif; }
html[lang="zh-Hant"] { --jp: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif; }
html[lang="en"] { --jp: "Jost", "Helvetica Neue", Arial, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--jp);
  font-size: 16px;
  line-height: 1.85;
  overflow-wrap: anywhere;
}
/* 日本語は、書き出すときに BudouX が入れた <wbr>（文節の切れ目）でだけ折り返す。
   入力欄やコードは普通に折り返す（imel.co.jp の assets/overrides.css と同じ）。 */
html[lang="ja"] body { word-break: keep-all; }
html[lang="ja"] :is(textarea, input, pre, code, kbd, samp) { word-break: normal; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--berry); outline-offset: 3px; }
.nb { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }

/* ---- ヘッダー ---- */
.site-head { border-bottom: 1px solid var(--line); background: var(--paper); }
.site-head .wrap { display: flex; align-items: center; gap: 12px 28px; min-height: 72px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand .mark { width: 34px; }
.brand .word { width: 132px; }
.nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 28px); font-weight: 700; font-size: 14px; }
.nav a { text-decoration: none; padding-block: 6px; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--berry); }
.langs { display: flex; gap: 2px; font-size: 12px; }
.langs a { text-decoration: none; padding: 4px 9px; color: var(--ink-soft); }
.langs a:hover { color: var(--ink); }
.langs a[aria-current="page"] { color: #fff; background: var(--ink); clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%); }

/* ---- ヒーロー（最新作） ---- */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); background: var(--mist); overflow: hidden; }
.hero-art { position: relative; min-height: clamp(460px, 62vw, 760px); }
.hero-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 72% 30%; }
/* 文字の側と絵の側の境目を、ロゴの色で斜めに切る */
.hero-art::before {
  content: ""; position: absolute; z-index: 1; inset: 0 auto 0 -1px; width: clamp(60px, 9vw, 130px);
  background: var(--mist);
  clip-path: polygon(0 0, 100% 0, 0 100%);
}
.hero-art::after {
  content: ""; position: absolute; z-index: 2; inset: 0 auto 0 -1px; width: clamp(60px, 9vw, 130px);
  background: var(--jam);
  clip-path: polygon(calc(100% - 7px) 0, 100% 0, 7px 100%, 0 100%);
}
.hero-copy { position: relative; z-index: 3; padding: clamp(36px, 6vw, 84px) 12px clamp(36px, 6vw, 72px) max(16px, calc((100vw - 1180px) / 2)); display: flex; flex-direction: column; justify-content: center; gap: 22px; }
.eyebrow { margin: 0; display: inline-flex; align-items: center; gap: 12px; font-weight: 700; font-size: 13px; letter-spacing: .12em; color: var(--ink-soft); }
.eyebrow b { font-family: var(--latin); color: #fff; background: var(--jam); padding: 3px 12px; letter-spacing: .18em; clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%); }
.hero-logo { width: min(440px, 100%); margin-left: -6px; }
.hero h2 { margin: 0; font-size: clamp(18px, 1.9vw, 23px); font-weight: 700; line-height: 1.6; text-wrap: balance; }
.release { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; }
.release .date { font-family: var(--latin); font-weight: 600; font-size: clamp(30px, 3.6vw, 44px); line-height: 1; letter-spacing: .02em; background: var(--jam); -webkit-background-clip: text; background-clip: text; color: transparent; }
.release .state { font-family: var(--latin); font-weight: 600; letter-spacing: .2em; font-size: 14px; }
.platforms { margin: 0; font-size: 14px; color: var(--ink-soft); }

/* 公式サイトのボタンとストアのロゴの並び。ロゴは同じ大きさの札（--tile 幅）にそろえて
   横1列に並べ、公式サイトのボタンはその列とちょうど同じ幅にする。列の数（--cols）は
   build.py がストアの数から入れる。幅も高さも --tile から決まるので、狭い画面では
   --tile を縮めるだけで全体がそのまま縮む。 */
.actions {
  --cols: 2; --tile: 156px; --tile-h: calc(var(--tile) * 122 / 332);
  display: grid; grid-template-columns: repeat(var(--cols), var(--tile)); gap: 10px; align-items: center;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 12px 28px; border: 0; cursor: pointer; text-decoration: none;
  font: inherit; font-weight: 700; font-size: 16px; line-height: 1.3;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  transition: filter .15s ease, transform .15s ease;
}
.btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn-main { background: var(--jam); color: #fff; }
.actions .btn-main { grid-column: 1 / -1; min-height: var(--tile-h); }
/* 斜めに切った角は枠線も一緒に切ってしまうので、線ではなく面で分ける */
.btn-ghost { background: #e9eef6; color: var(--ink); }
.btn-ghost:hover { background: #dde5f0; }
.hero .btn-ghost { background: var(--ink); color: #fff; }
.actions .btn-ghost { min-height: var(--tile-h); padding: 6px 10px; font-size: 14px; }
.btn .arrow { font-family: var(--latin); font-weight: 500; }
/* ストアのバッジ。任天堂と PlayStation は 400×154 の画像で、見える札は内側の 332×122
   （周りは透明）。見える札の幅を --tile にそろえ、透明な余白は外へはみ出させる。
   画像そのものは切らず、縦横比も変えない（各社の配布物なので）。 */
.badge { display: block; line-height: 0; width: var(--tile); }
.badge img { width: calc(var(--tile) * 400 / 332); max-width: none; height: auto; margin: calc(var(--tile) * -16 / 332) calc(var(--tile) * -34 / 332); }
/* PlayStation Store のバナーは白い札なので、白地の上では縁が消える。札そのものは変えず、
   札の形に沿った薄い影で縁取る（透明な余白ごと線を引くと、札より大きな枠になる）。 */
.badge-ps img { filter: drop-shadow(0 0 1px rgba(34, 27, 46, .45)); }
/* Steam のロゴは横長の文字組みで、余白が無い。2つのバッジの見える札と同じ大きさの
   白い札に置く。ロゴの色と形は変えない。 */
.badge-steam { display: flex; align-items: center; justify-content: center; height: var(--tile-h); background: #fff; border-radius: calc(var(--tile) * 5 / 156); filter: drop-shadow(0 0 1px rgba(34, 27, 46, .45)); }
.badge-steam img { width: auto; height: calc(var(--tile) * 26 / 156); margin: 0; }

/* ---- 見出し ---- */
.section { padding-block: clamp(56px, 8vw, 104px); }
.section-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 18px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head h2 { margin: 0; font-family: var(--latin); font-weight: 600; font-size: clamp(34px, 5vw, 56px); line-height: 1; letter-spacing: .06em; }
.section-head span { font-size: 14px; color: var(--ink-soft); }

/* ---- 作品 ---- */
.title { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 56px); align-items: start; padding-block: clamp(32px, 4vw, 48px); border-top: 1px solid var(--line); }
.title:last-child { border-bottom: 1px solid var(--line); }
.title-media { display: grid; gap: 8px; }
.title-media .main { clip-path: polygon(22px 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%, 0 22px); aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.thumbs img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.chara { margin: 16px 0 0; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 20px; align-items: center; padding: 20px; background: var(--mist); clip-path: polygon(18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%, 0 18px); }
.chara img { max-height: 340px; width: auto; justify-self: center; }
.chara figcaption { display: grid; gap: 4px; }
.chara strong { font-size: 20px; }
.chara span { font-size: 14px; color: var(--ink-soft); }
.chara p { margin: 8px 0 0; font-size: 14px; line-height: 1.8; }
.title-body { display: flex; flex-direction: column; gap: 18px; }
.no { margin: 0; display: flex; align-items: center; gap: 14px; font-family: var(--latin); font-weight: 600; font-size: 13px; letter-spacing: .22em; color: var(--ink-soft); }
.no strong { font-size: 54px; line-height: .9; letter-spacing: 0; background: var(--jam); -webkit-background-clip: text; background-clip: text; color: transparent; }
.title-logo { width: min(300px, 75%); }
.title h3 { margin: 0; font-size: 22px; line-height: 1.5; }
.title h3 small { display: block; font-size: 14px; font-weight: 500; color: var(--ink-soft); }
.lead { margin: 0; font-weight: 500; }
.facts { margin: 0; display: grid; font-size: 14px; }
.facts div { display: grid; grid-template-columns: 7em 1fr; gap: 12px; padding-block: 7px; border-bottom: 1px dashed var(--line); }
.facts dt { color: var(--ink-soft); }
.facts dd { margin: 0; font-variant-numeric: tabular-nums; }

/* ---- 沿革 ---- */
.about { background: var(--mist); }
.about .wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.about .section-head { margin-bottom: 18px; }
.about-logo { width: min(300px, 70%); justify-self: center; }
.history { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.history li { display: grid; grid-template-columns: 5em 1fr; gap: 14px; padding-block: 10px; border-bottom: 1px solid var(--line); font-size: 15px; }
.history .y { font-family: var(--latin); font-weight: 600; letter-spacing: .06em; }

/* ---- お問い合わせ ---- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(20px, 4vw, 48px); align-items: start; }
.contact-side { display: grid; gap: 16px; }
.contact-item { padding: 24px 26px; background: var(--mist); clip-path: polygon(18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%, 0 18px); display: flex; flex-direction: column; gap: 10px; }
.contact-item h3 { margin: 0; font-family: var(--latin); font-weight: 600; letter-spacing: .14em; font-size: 14px; color: var(--ink-soft); }
.contact-item p { margin: 0; font-size: 15px; }
.contact-item .big { font-family: var(--latin); font-weight: 600; font-size: clamp(19px, 2.2vw, 24px); letter-spacing: .02em; text-decoration: none; }
.contact-item .big:hover { color: var(--berry); }
.small-links { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 14px; }

.form { display: grid; gap: 20px; padding: clamp(22px, 3vw, 36px); border-top: 4px solid transparent; border-image: var(--jam) 1; background: var(--paper); box-shadow: 0 1px 0 var(--line), 0 18px 40px -28px rgba(34, 27, 46, .35); }
.form h3 { margin: 0; font-size: 22px; }
.form-desc { margin: -10px 0 0; font-size: 14px; color: var(--ink-soft); }
.field { margin: 0; padding: 0; border: 0; display: grid; gap: 6px; min-width: 0; }
.field label, .field legend { padding: 0; font-weight: 700; font-size: 15px; }
.field em { font-style: normal; font-size: 11px; font-weight: 700; color: #fff; background: var(--berry); padding: 1px 7px; margin-left: 6px; vertical-align: 2px; }
.field small { font-size: 13px; color: var(--ink-soft); }
.field input[type="text"], .field input[type="email"], .field input[type="url"], .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  padding: 11px 14px; background: var(--field); border: 1px solid #d6dbe6; border-radius: 0;
}
.field textarea { resize: vertical; min-height: 160px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--berry); box-shadow: 0 0 0 3px rgba(255, 79, 174, .18); background: #fff; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
/* .field label より強くする（そちらの padding: 0 が先に当たっていた） */
.field .opt { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; background: var(--field); border: 1px solid #d6dbe6; cursor: pointer; font-size: 15px; font-weight: 500; }
.opt input { accent-color: var(--berry); margin: 0; }
.opt:has(input:checked) { border-color: var(--berry); background: #fff0f7; }
.field[data-field="feedback-other"] { display: none; }
.form.other .field[data-field="feedback-other"] { display: grid; }
/* Steam キュレーターコネクトを選んだときだけ出す欄（URL・希望コピー数・注意書き） */
.curator { display: none; gap: 18px; padding: 18px 20px; background: #f1f6fd; border-left: 3px solid var(--sky); }
.form.curator-on .curator { display: grid; }
.curator-notice { margin: 0; font-size: 13px; line-height: 1.75; color: var(--ink-soft); }
.err { margin: 0; min-height: 0; font-size: 13px; color: var(--danger); }
.err:empty { display: none; }
.field.bad input, .field.bad textarea, .field.bad .opt { border-color: var(--danger); }
.form .btn { justify-self: start; min-width: 200px; }
.form .btn[disabled] { opacity: .6; cursor: progress; }
.form-status { margin: 0; font-weight: 700; }
.form-status.ok { color: #138a5b; }
.form-status.ng { color: var(--danger); }

/* PlayStation ファミリーマーク。imel.co.jp のフッターと同じ画像（13×10 を 21×16 で表示）。
   マークそのものは変えない（色を変えたり描き直したりしない）。 */
.psmark { display: inline-block; width: 21px; height: 16px; vertical-align: middle; }

/* ---- フッター ---- */
/* フッターは淡い地。PlayStation ファミリーマーク（濃い灰色の元画像）を、手を加えずに置ける地にした。
   濃い地に白い札を敷いたら浮いて見えた（2026-10-15）。 */
.site-foot { background: var(--mist); color: var(--ink-soft); border-top: 1px solid var(--line); padding-block: 40px 48px; font-size: 12px; line-height: 1.8; }
.site-foot .wrap { display: grid; gap: 14px; }
.site-foot .copy { font-family: var(--latin); font-size: 14px; letter-spacing: .08em; color: var(--ink); }
.site-foot p { margin: 0; }
.site-foot .bar { height: 4px; background: var(--jam); width: 72px; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero-art { order: -1; min-height: 0; aspect-ratio: 4 / 3; }
  .hero-art::before, .hero-art::after { inset: auto 0 -1px 0; width: auto; height: 48px; }
  .hero-art::before { clip-path: polygon(0 100%, 100% 0, 100% 100%); }
  .hero-art::after { clip-path: polygon(0 calc(100% - 5px), 100% 0, 100% 5px, 0 100%); }
  .hero-copy { padding: 8px 16px 44px; }
  .title { grid-template-columns: 1fr; }
  .title-body { order: -1; }
  .about .wrap { grid-template-columns: 1fr; }
  .about-logo { width: 200px; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .site-head .wrap { min-height: 60px; padding-block: 10px; }
  .brand .mark { width: 28px; }
  .brand .word { width: 108px; }
  .nav { display: none; }
  .langs { width: 100%; justify-content: flex-end; }
  .btn { width: 100%; }
  /* 札を画面の幅に合わせて縮める（16px の余白が左右、札の間は 10px） */
  .actions { --tile: min(156px, calc((100vw - 32px - (var(--cols) - 1) * 10px) / var(--cols))); }
  .facts div { grid-template-columns: 6em 1fr; }
  .chara { grid-template-columns: 1fr 1fr; padding: 16px; gap: 14px; }
  .chara img { max-height: 260px; }
  .thumbs.six { grid-template-columns: repeat(3, 1fr); }
  .form .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .btn:hover { transform: none; }
}
