/* ひとやすみ工房のトップ。ゲームのポータルの形（大きな1枚の紹介・作品・お知らせ）。端末の明るい・暗いの設定に合わせる */
:root {
  --bg: #f2f4f8;
  --surface: #ffffff;
  --surface-2: #f7f8fb;
  --text: #182033;
  --muted: #5a6479;
  --line: #dde2ec;
  --accent: #b35a00;
  --accent-ink: #ffffff;
  --accent-soft: #fff1dd;
  --shadow: 0 1px 2px rgba(24, 32, 51, .06), 0 8px 24px rgba(24, 32, 51, .06);
  --serif: 'Shippori Mincho B1', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
  --sans: 'Zen Kaku Gothic New', system-ui, -apple-system, 'Hiragino Sans', 'Yu Gothic UI', sans-serif;
  --r: 16px;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #0c1120;
    --surface: #141b2e;
    --surface-2: #10172a;
    --text: #e8ebf3;
    --muted: #9ea7bc;
    --line: #253049;
    --accent: #f4a73a;
    --accent-ink: #1c1206;
    --accent-soft: #2a2010;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 28px rgba(0, 0, 0, .3);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
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%; }
body:lang(ja), :lang(ja) body { line-break: strict; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.35; text-wrap: balance; margin: 0; }
p { margin: 0 0 .7em; }
.wrap { max-width: 1080px; margin-inline: auto; padding-inline: 20px; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 50; background: var(--accent); color: var(--accent-ink); padding: 6px 12px; border-radius: 8px; }

/* 上の帯 */
.s-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top, 0px); }
.s-header-in { display: flex; align-items: center; gap: 16px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; flex: none; white-space: nowrap; }
.brand .mark { width: 30px; height: 30px; color: var(--accent); flex: none; }
.brand span { display: flex; flex-direction: column; line-height: 1.15; }
.brand b { font-family: var(--serif); font-size: 1.15rem; font-weight: 800; letter-spacing: .04em; }
.brand small { font-size: .7rem; color: var(--muted); letter-spacing: .08em; }
.s-nav { display: flex; gap: 2px; margin-left: auto; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.s-nav::-webkit-scrollbar { display: none; }
.s-nav a { color: var(--muted); text-decoration: none; font-size: .92rem; padding: 6px 10px; border-radius: 8px; white-space: nowrap; }
.s-nav a:hover { color: var(--text); background: var(--surface-2); }
.s-header .lang { flex: none; border: 1px solid var(--line); color: var(--text); text-decoration: none; font-size: .9rem; padding: 6px 12px; border-radius: 8px; white-space: nowrap; }
.s-header .lang:hover { border-color: var(--accent); }

/* ボタン */
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 8px 20px; border-radius: 10px; font-weight: 700; text-decoration: none; }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { filter: brightness(1.08); color: var(--accent-ink); }
.btn-line { border: 1px solid var(--line); color: var(--text); background: var(--surface); }
.btn-line:hover { border-color: var(--accent); }
.btn-glass { border: 1px solid rgba(255, 255, 255, .55); color: #fff; background: rgba(10, 14, 28, .35); }
.btn-glass:hover { background: rgba(10, 14, 28, .55); color: #fff; }

/* いちばん上の大きな紹介（作品が1本のうちは1枚を大きく） */
.pickup { position: relative; overflow: hidden; isolation: isolate; border-radius: 22px; margin-top: 24px; min-height: 420px; display: flex; align-items: flex-end; box-shadow: var(--shadow); background: #0b1020; }
.pickup-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 30%; z-index: -2; }
.pickup::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8, 11, 22, .9) 0%, rgba(8, 11, 22, .6) 45%, rgba(8, 11, 22, .05) 80%), linear-gradient(0deg, rgba(8, 11, 22, .7), transparent 50%); }
.pickup-in { padding: clamp(24px, 5vw, 48px); color: #fff; max-width: 620px; }
.chip { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .2em; background: #f4a73a; color: #1c1206; border-radius: 6px; padding: 2px 10px; margin-bottom: 12px; }
.pickup h1 { font-family: var(--serif); font-weight: 800; }
.pickup h1 span { display: block; font-size: clamp(1.8rem, 8vw, 3.4rem); letter-spacing: .05em; white-space: nowrap; text-shadow: 0 2px 16px rgba(0, 0, 0, .6); }
.pickup h1 small { display: block; font-size: clamp(.95rem, 2.8vw, 1.25rem); letter-spacing: .12em; color: #ffd28a; font-weight: 600; }
.pickup-catch { font-family: var(--serif); font-size: clamp(1.05rem, 3vw, 1.3rem); font-weight: 600; margin: 14px 0 4px; }
.pickup-lead { color: #dcd8cf; font-size: .95rem; margin-bottom: 20px; }

/* 見出し */
.block { padding-block: clamp(48px, 8vw, 80px) 0; }
.label { font-size: .75rem; font-weight: 700; letter-spacing: .28em; color: var(--accent); margin: 0 0 2px; }
.block h2 { font-family: var(--serif); font-weight: 800; font-size: clamp(1.5rem, 4.2vw, 2rem); margin-bottom: 20px; }

/* 作品 */
.work { display: grid; grid-template-columns: minmax(0, 240px) minmax(0, 1fr); gap: clamp(20px, 4vw, 40px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(16px, 3vw, 28px); box-shadow: var(--shadow); align-items: start; }
.work-art img { border-radius: 12px; aspect-ratio: 9 / 16; object-fit: cover; width: 100%; }
.work-head { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.work-icon { width: 64px; height: 64px; border-radius: 16px; flex: none; }
.work h3 { font-family: var(--serif); font-weight: 800; font-size: clamp(1.15rem, 3vw, 1.45rem); }
.work h3 a { color: var(--text); text-decoration: none; }
.work h3 a:hover { color: var(--accent); }
.work-head p { margin: 0; font-size: .9rem; }
.points { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.points li { position: relative; padding-left: 22px; }
.points li::before { content: ''; position: absolute; left: 4px; top: .7em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.tags { list-style: none; margin: 14px 0 20px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-size: .8rem; background: var(--accent-soft); color: var(--text); border-radius: 999px; padding: 2px 12px; }

/* お知らせ */
.news { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.news li { display: grid; grid-template-columns: auto auto 1fr; gap: 6px 14px; align-items: baseline; padding: 14px 20px; }
.news li + li { border-top: 1px solid var(--line); }
.news time { font-variant-numeric: tabular-nums; color: var(--muted); font-size: .9rem; }
.news .tag { font-size: .75rem; border: 1px solid var(--line); border-radius: 6px; padding: 0 8px; color: var(--muted); }

/* 工房について・連絡 */
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px 48px; align-items: start; }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; box-shadow: var(--shadow); }
.contact-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.mail { font-weight: 700; word-break: break-all; }
.sns { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sns a { display: inline-block; border: 1px solid var(--line); border-radius: 999px; padding: 4px 14px; text-decoration: none; color: var(--text); font-size: .9rem; }
.sns a:hover { border-color: var(--accent); }

/* 下 */
.s-footer { margin-top: clamp(56px, 8vw, 88px); border-top: 1px solid var(--line); background: var(--surface); padding-block: 24px calc(24px + env(safe-area-inset-bottom, 0px)); }
.s-footer-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: .9rem; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; }
.foot-links a { color: var(--text); }
.s-footer p { margin: 0; }

.notfound { padding-block: 96px; text-align: center; }
.notfound .actions { justify-content: center; margin-top: 16px; }

@media (max-width: 480px) {
  .s-nav { display: none; }
  .s-header .lang { margin-left: auto; }
}
@media (max-width: 640px) {
  .brand small { display: none; }
  .pickup { min-height: 460px; }
  .pickup::after { background: linear-gradient(0deg, rgba(8, 11, 22, .95) 0%, rgba(8, 11, 22, .7) 50%, rgba(8, 11, 22, .1) 100%); }
  .work { grid-template-columns: 1fr; }
  .work-art { max-width: 200px; }
  .news li { grid-template-columns: auto 1fr; padding: 12px 16px; }
  .news-text { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* 公開の前の「近日公開」 */
.btn.is-soon { cursor: default; border-style: dashed; opacity: .92; }
.btn-glass.is-soon:hover { background: rgba(10, 14, 28, .35); }
.btn-line.is-soon:hover { border-color: var(--line); }
.follow { margin: 12px 0 0; font-size: .88rem; color: #dcd8cf; }

/* ───── 2026-10-04 スマホの幅の確かめ（CHECK_1004.md）で直した所 ───── */
/* 幅 320 で「工房について」と「お問い合わせ」の欄が右の余白にはみ出さないように（300px より狭いときは画面の幅に合わせる） */
.two { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
/* お知らせの札（お知らせ／News）が狭い画面で横いっぱいにのびないように */
.news .tag { justify-self: start; }
/* 押す所を高さ 44px 以上に（上の帯・SNS の札・メール・下の帯のリンク。下の帯は見た目の間隔を変えずに押せる所だけ広げる） */
.s-nav a, .s-header .lang { display: inline-flex; align-items: center; min-height: 44px; }
.sns a { padding: 9px 14px; min-width: 44px; text-align: center; }
.mail a { display: inline-block; padding-block: 10px; }
.s-footer-in { align-items: center; }
.foot-links { gap: 0 18px; }
.foot-links a { display: inline-block; padding: 10px 8px; margin-inline: -8px; }
/* 日本語の見出しを言葉の途中で折り返さない（404 の「ページが見／つかりません」など。対応していない端末では今までどおり） */
:lang(ja) h1, :lang(ja) h2, :lang(ja) h3 { word-break: auto-phrase; }
@media (max-width: 374px) {
  /* 幅 320 で、英語の工房の名前に押されて言語の切り替えが画面の外に出ないように（横にはみ出していた）・PICK UP の題が札の端で切れないように */
  .s-header-in { gap: 10px; }
  .brand { gap: 8px; }
  .brand .mark { width: 26px; height: 26px; }
  .brand b { font-size: .95rem; letter-spacing: .02em; }
  .pickup h1 span { font-size: 1.55rem; }
  /* 幅 320 で「Coming soon to Google Play」の札が2行に割れないように・メールの宛先が「.co／m」で割れないように */
  .pickup-in { padding-inline: 20px; }
  .pickup .btn { padding-inline: 16px; }
  .contact-card { padding-inline: 18px; }
}
