/* ==========================================================================
   Percify就活 コラム（スマホ優先。読者のほとんどが iPhone で読む前提で寸法を決める）
   構成：カバー（大きな帯の見出し）→ グラデーションの帯と PROFILE → 白いカードに本文
   色：グラデーションは「表紙と章見出しの帯」「背景の帯」だけ。ほかは紫1色＋墨＋淡い紫で組む
   書体：ヒラギノ角ゴシック（W3 / W6 / W7）。写真の角丸は 16px、小さな部品は 12px にそろえる
   ========================================================================== */

@font-face { font-family: "PF Hiragino"; font-weight: 100 500; src: local("HiraginoSans-W3"), local("Hiragino Sans W3"), local("HiraKakuProN-W3"); }
@font-face { font-family: "PF Hiragino"; font-weight: 600;     src: local("HiraginoSans-W6"), local("Hiragino Sans W6"), local("HiraKakuProN-W6"); }
@font-face { font-family: "PF Hiragino"; font-weight: 700 900; src: local("HiraginoSans-W7"), local("Hiragino Sans W7"), local("HiraginoSans-W6"), local("HiraKakuProN-W6"); }

:root {
  --ink: #17141F;            /* 見出し・強調 */
  --text: #3B3745;           /* 本文 */
  --sub: #77727F;            /* キャプション・補足 */
  --line: #ECE6F3;           /* 罫線 */
  --brand: #8A3FD8;          /* 紫（線・番号） */
  --brand-text: #6E33B5;     /* 紫の文字（白地で読みやすい濃さ） */
  --btn: #9951D4;            /* ボタン（マイページと同じ紫） */
  --btn-hover: #8A44C6;
  --tint: #F7F3FC;           /* 淡い紫の面 */
  --strip: linear-gradient(100deg, #8A3FD8 0%, #B843DE 100%);   /* 白い文字の帯（白とのコントラスト 4.1 以上） */
  --stage: linear-gradient(180deg, #F8D2F3 0%, #E7CCF8 40%, #CDB9F5 100%);
  --marker: linear-gradient(transparent 62%, #E9DCFB 62%);       /* 強調のマーカー（淡い紫） */
  --r: 16px;                 /* 写真・カード */
  --r-s: 12px;               /* 小さな部品 */
  --pad: 20px;               /* カードの内側の余白（スマホ） */
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: #fff; color: var(--text);
  font-family: "PF Hiragino", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Noto Sans CJK JP", "Yu Gothic", YuGothic, Meiryo, sans-serif;
  font-size: 16px; line-height: 1.95; letter-spacing: .04em; -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-text); }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
:focus-visible { outline: 3px solid rgba(138, 63, 216, .4); outline-offset: 2px; }
/* 見出し・引用：build.py の PHRASES で入れた区切り（ゼロ幅スペース）でだけ改行する。入りきらないときだけ途中で折り返す */
.opener h2, .prose h3, .quote p, .can-t, .notice-h, .bubble, .d-pl, .tl-ttl, .st-t, .next b, .toc a, .acard-t, .aitem-t { word-break: keep-all; overflow-wrap: anywhere; }

/* ---- カバー ---- */
.cover { position: relative; min-height: clamp(560px, 88svh, 820px); overflow: hidden; background: #2A1B36; color: #fff; display: flex; align-items: flex-end; }
.cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(24, 12, 36, .68) 0%, rgba(24, 12, 36, .2) 42%, rgba(24, 12, 36, 0) 62%, rgba(24, 12, 36, .26) 100%); }
.cover-logo, .cover-menu { position: absolute; z-index: 2; top: calc(14px + env(safe-area-inset-top, 0px)); }
.cover-logo { left: max(14px, env(safe-area-inset-left, 0px)); display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border-radius: var(--r-s); background: #fff; text-decoration: none; }
.cover-logo img { height: 17px; width: auto; }
.cover-logo span { font-size: 9.5px; font-weight: 700; letter-spacing: .16em; color: var(--ink); line-height: 1; padding-left: 8px; border-left: 1px solid #E2DCEA; }
.cover-menu { right: max(14px, env(safe-area-inset-right, 0px)); display: inline-flex; align-items: center; height: 38px; padding: 0 14px; border-radius: var(--r-s); background: rgba(255, 255, 255, .92); color: var(--ink); font-size: 12px; font-weight: 700; text-decoration: none; }
.cover-in { position: relative; z-index: 1; width: 100%; padding: 0 max(16px, env(safe-area-inset-left, 0px)) 34px; }
.cover-tag { display: inline-block; padding: 3px 12px; border-radius: 999px; background: #fff; color: var(--brand-text); font-size: 11.5px; font-weight: 700; letter-spacing: .12em; line-height: 1.6; }
.cover-ttl { margin-top: 14px; font-size: clamp(30px, 9.2vw, 64px); font-weight: 700; line-height: 1.52; letter-spacing: .02em; color: #fff; }   /* 帯と帯のすき間＝約 .2em */
.cover-ttl span { background: var(--strip); padding: .14em .44em .2em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }   /* 帯の内側の余白（文字の大きさに合わせて増減） */
.cover-sub { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: 12.5px; font-weight: 700; line-height: 1.7; letter-spacing: .06em; color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, .45); }

/* ---- 帯と PROFILE ---- */
.stage { background: var(--stage); padding: 44px 8px 64px; }
.profile { text-align: center; padding: 0 12px; }
.profile-h { display: inline-block; font-size: 15px; font-weight: 700; letter-spacing: .18em; line-height: 1.4; color: var(--ink); }
.profile-h::after { content: ""; display: block; width: 26px; height: 2px; margin: 10px auto 0; background: var(--ink); }
.profile p { margin-top: 16px; font-size: 12.5px; line-height: 2; color: var(--ink); letter-spacing: .03em; }

/* ---- 白いカード ---- */
.sheet { max-width: 800px; margin: 32px auto 0; background: #fff; border-radius: 20px; padding: 32px var(--pad) 48px; }
.prose { max-width: 600px; margin: 0 auto; }
.prose > * + * { margin-top: 1.45em; }
.prose p { font-size: 16px; line-height: 1.95; }

/* 強調（文言は変えず、一部を囲む）：マーカーと太字の2種類だけ */
.mk { font-weight: 700; color: var(--ink); background: var(--marker); }
.em { font-weight: 700; color: var(--ink); }
mark.todo { background: #FFF1B8; color: inherit; padding: 0 2px; box-shadow: inset 0 -2px 0 #F2C94C; }

/* 囲み（冒頭のお知らせ・まだできないこと） */
.notice { padding: 20px 18px; border-radius: var(--r); background: var(--tint); }
.notice-h { font-size: 16px !important; font-weight: 700; line-height: 1.7 !important; color: var(--ink); }
.notice p + p { margin-top: 8px; }
.notice.is-gray { background: #F5F4F7; }

/* 目次 */
.toc { border-top: 2px solid var(--ink); }
.toc-h { padding: 14px 0 6px; font-size: 13px !important; font-weight: 700; letter-spacing: .1em; line-height: 1.6 !important; color: var(--ink); }
.toc li { border-bottom: 1px solid var(--line); }
.toc a { display: grid; grid-template-columns: 1.6em 1fr; align-items: baseline; padding: 12px 2px; font-size: 15px; font-weight: 700; line-height: 1.6; color: var(--ink); text-decoration: none; }
.toc a span { color: var(--brand); font-variant-numeric: tabular-nums; }

/* 章の始まり：角丸の写真＋下端に半分かぶる帯の見出し */
.prose > .opener { margin-top: 3.4em; scroll-margin-top: 16px; }
.opener-ph { border-radius: var(--r); overflow: hidden; aspect-ratio: 3 / 2; background: var(--line); }
.opener-ph img { width: 100%; height: 100%; object-fit: cover; }
.opener h2 { position: relative; margin: -24px 0 0 -6px; padding-right: 8px; font-size: 22px; font-weight: 700; line-height: 1.62; letter-spacing: .03em; color: #fff; }
.opener h2 span { background: var(--strip); padding: 2px 12px 4px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* 小見出し：上に短い紫の線 */
.prose h3 { margin-top: 2.6em; font-size: 18px; font-weight: 700; line-height: 1.6; letter-spacing: .03em; color: var(--ink); }
.prose h3::before { content: ""; display: block; width: 20px; height: 3px; margin-bottom: 12px; border-radius: 2px; background: var(--brand); }
.prose .opener + h3 { margin-top: 2.1em; }
.prose h3 + p, .prose h3 + .photo, .prose h3 + .timeline, .prose h3 + .can, .prose h3 + .notice { margin-top: .9em; }

/* 写真（角丸） */
.photo img { width: 100%; border-radius: var(--r); aspect-ratio: 3 / 2; object-fit: cover; }
.photo.logos img { aspect-ratio: auto; border: 1px solid var(--line); }
figcaption { margin-top: 8px; font-size: 11.5px; line-height: 1.75; color: var(--sub); letter-spacing: .02em; }

/* 引用：左に紫の線 */
.quote { padding: 2px 0 2px 16px; border-left: 3px solid var(--brand); }
.quote p { font-size: 18px !important; font-weight: 700; line-height: 1.8 !important; color: var(--ink); }
.prose > .quote { margin-top: 1.9em; margin-bottom: .4em; }

/* 年表：日付（紫の文字）→ 見出し → 本文 → 写真。項目の間は罫線 */
.timeline { border-top: 1px solid var(--line); }
.tl { padding: 22px 0 26px; border-bottom: 1px solid var(--line); }
.tl-h { display: flex; flex-direction: column; gap: 2px; }
.tl-date { font-size: 13px; font-weight: 700; letter-spacing: .08em; line-height: 1.6; color: var(--brand-text); font-variant-numeric: tabular-nums; }
.tl-ttl { font-size: 17px; font-weight: 700; line-height: 1.6; color: var(--ink); }
.tl > p:not(.tl-h) { margin-top: 8px; }
.tl .photo, .tl .flyers { margin-top: 16px; }
.flyers-in { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.flyers-in img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }

/* アプリストアの紹介画像（2枚並び） */
.shots { padding: 18px 14px 14px; border-radius: var(--r); background: var(--tint); }
.shots-in { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 420px; margin: 0 auto; }
.shots-in img { width: 100%; border-radius: 14px; box-shadow: 0 6px 18px rgba(60, 30, 100, .10); }
.shots figcaption { text-align: center; margin-top: 12px; }

/* アプリの画面（スマホの枠） */
.phone { display: block; width: 176px; padding: 6px; border-radius: 30px; background: #1C1A22; }
.phone img { width: 100%; border-radius: 24px; }

/* 今できること：写真が上のカード（影なし・細い罫線） */
.can { margin-inline: -6px; padding: 8px 8px 24px; border-radius: 20px; background: #fff; border: 1px solid var(--line); }
.can + .can { margin-top: 14px !important; }
.can > *:not(.can-ph) { margin-left: 12px; margin-right: 12px; }
.can > * + * { margin-top: 1.1em; }
.can-ph { display: block; border-radius: var(--r-s); overflow: hidden; }
.can-ph.banner img { width: 100%; }
.can-ph.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.can-ph.grid2 img { aspect-ratio: 1; object-fit: cover; }
.can-ph.app { display: flex; flex-direction: column; align-items: center; padding: 18px 0 14px; background: var(--tint); }
.can-ph.app .phone { width: 150px; }
.can-ph.app figcaption { text-align: center; padding: 0 16px; margin-top: 10px; }
.can-t { margin-top: 20px !important; font-size: 18px; font-weight: 700; line-height: 1.6; color: var(--ink); }
.can p { font-size: 15.5px; }
.plans { border-top: 1px solid var(--line); }
.plans li { display: flex; align-items: center; gap: 12px; padding: 10px 2px; border-bottom: 1px solid var(--line); line-height: 1.5; color: var(--ink); }
.plans b { display: block; font-size: 15px; font-weight: 700; }
.plans small { display: block; font-size: 12px; color: var(--sub); }
.plans img { width: 36px; height: 36px; flex: none; }
.labomi { display: flex; align-items: flex-end; gap: 6px; }
.labomi img { width: 66px; height: auto; flex: none; }
.bubble { position: relative; flex: 1; min-width: 0; margin-bottom: 16px; padding: 12px 14px; border-radius: 14px; background: var(--tint); font-size: 14px !important; font-weight: 700; line-height: 1.75 !important; color: var(--ink); }
.bubble::before { content: ""; position: absolute; left: -7px; bottom: 16px; border: 7px solid transparent; border-right-color: var(--tint); border-left: 0; }
/* EXPO の日程：1行に1回 */
.dates { border-top: 1px solid var(--line); }
.dates li { display: grid; grid-template-columns: 6.2em 1fr; align-items: baseline; gap: 10px; padding: 11px 2px; border-bottom: 1px solid var(--line); }
.d-md { white-space: nowrap; color: var(--ink); }
.d-md b { font-size: 19px; font-weight: 700; letter-spacing: .02em; line-height: 1.3; font-variant-numeric: tabular-nums; }
.d-md small { font-size: 11.5px; font-weight: 700; color: var(--sub); }
.d-pl { font-size: 14px; font-weight: 700; line-height: 1.6; color: var(--ink); }

/* 3つの進め方 */
.steps { border-top: 1px solid var(--line); }
.steps li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.steps b { display: flex; gap: 8px; font-size: 16px; font-weight: 700; line-height: 1.7; color: var(--ink); }
.st-n { color: var(--brand); }
.steps .st-d { display: block; margin-top: 4px; padding-left: 1.55em; font-size: 15px; line-height: 1.9; }
.example { padding: 16px 18px; border-radius: var(--r); background: var(--tint); }
.example p { font-size: 15px; line-height: 1.95; }

/* Instagram */
.insta { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r); border: 1px solid var(--line); background: #fff; text-decoration: none; color: var(--ink); }
.insta-ic { flex: none; width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: linear-gradient(135deg, #FEDA75 0%, #FA7E1E 25%, #D62976 55%, #962FBF 80%, #4F5BD5 100%); }
.insta-ic svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 1.9; }
.insta-t { min-width: 0; }
.insta b { display: block; font-size: 14.5px; font-weight: 700; line-height: 1.5; }
.insta small { display: block; font-size: 12px; color: var(--sub); line-height: 1.5; }
.insta-go { flex: none; margin-left: auto; font-size: 13px; font-weight: 700; color: var(--brand-text); white-space: nowrap; }
.insta-go::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 6px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); }

/* 署名 */
.prose .sign { margin-top: 2.4em; text-align: right; font-size: 14px; font-weight: 700; color: var(--ink); }

/* ボタン（マイページと同じ形） */
.btn-row { text-align: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 30px; border-radius: 999px; background: var(--btn); color: #fff; font-size: 14.5px; font-weight: 700; letter-spacing: .04em; text-decoration: none; transition: background-color .15s, transform .12s; }
.btn:hover { background: var(--btn-hover); }
.btn:active { transform: scale(.98); }

/* カードの下 */
.after { max-width: 800px; margin: 24px auto 0; text-align: center; }
.next { display: grid; grid-template-columns: 120px 1fr; align-items: center; gap: 14px; padding: 12px; border-radius: 18px; background: #fff; text-align: left; text-decoration: none; color: var(--ink); }
.next img { border-radius: 10px; }
.next small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .1em; color: var(--brand-text); line-height: 1.5; }
.next b { display: block; font-size: 14.5px; line-height: 1.6; }
.share { margin-top: 18px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.share a, .share button { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 999px; background: rgba(255, 255, 255, .85); border: 0; color: var(--ink); font: inherit; font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-decoration: none; cursor: pointer; }
.back { margin-top: 16px; }
.back a { font-size: 13px; font-weight: 700; color: var(--ink); }

/* フッター */
.ft { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 32px 16px calc(32px + env(safe-area-inset-bottom, 0px)); text-align: center; }
.ft img { height: 17px; width: auto; }
.ft nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 20px; }
.ft nav a { font-size: 12px; color: var(--sub); text-decoration: none; padding: 6px 0; }
.ft small { font-size: 11px; color: var(--sub); }

/* ---- 一覧ページ（写真が主役。注目記事 → 分類のタブ → 横にスクロールする記事の列 → すべての記事） ---- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.preview-note { padding: 10px 16px; background: #FFF4CC; color: #5C4A00; font-size: 12px; font-weight: 700; line-height: 1.6; text-align: center; }
/* 注目記事：横にめくれる大きな写真 */
.hero { position: relative; background: #1D1424; }
.hero .cover-logo { position: absolute; z-index: 3; top: calc(14px + env(safe-area-inset-top, 0px)); }
.hero-rail { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; }
.hero-rail::-webkit-scrollbar { display: none; }
.hero-slide { position: relative; display: flex; align-items: flex-end; min-height: clamp(500px, 74svh, 760px); overflow: hidden; color: #fff; scroll-snap-align: start; }
.hero-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(24, 12, 36, .72) 0%, rgba(24, 12, 36, .2) 44%, rgba(24, 12, 36, 0) 62%, rgba(24, 12, 36, .26) 100%); }
.hero-slide .cover-in { padding-bottom: 44px; }
.hero-ttl { margin-top: 12px; font-size: clamp(26px, 8vw, 54px); font-weight: 700; line-height: 1.52; letter-spacing: .02em; }
.hero-ttl a { color: #fff; text-decoration: none; }
.hero-ttl span { background: var(--strip); padding: .14em .44em .2em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.hero-meta { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: 12.5px; font-weight: 700; line-height: 1.7; letter-spacing: .06em; color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, .45); }
.hero-go { display: inline-flex; align-items: center; margin-top: 16px; height: 44px; padding: 0 24px; border-radius: 999px; background: #fff; color: var(--ink); font-size: 14px; font-weight: 700; letter-spacing: .04em; text-decoration: none; transition: transform .12s; }
.hero-go:active { transform: scale(.98); }
.hero-dots { position: absolute; z-index: 3; right: 16px; bottom: 20px; display: flex; gap: 6px; }
.hero-dot { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 4px; background: rgba(255, 255, 255, .5); cursor: pointer; transition: width .25s, background-color .25s; }
.hero-dot.is-on { width: 20px; background: #fff; }
/* 分類のタブ（上に貼りつく） */
.cats { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.cats-in { display: flex; gap: 8px; overflow-x: auto; padding: 10px max(16px, env(safe-area-inset-left, 0px)); scrollbar-width: none; }
.cats-in::-webkit-scrollbar { display: none; }
.cat { flex: none; display: inline-flex; align-items: center; height: 34px; padding: 0 15px; border-radius: 999px; border: 1px solid #E3DCEC; background: #fff; color: var(--ink); font-size: 13px; font-weight: 700; letter-spacing: .04em; text-decoration: none; transition: background-color .2s, color .2s, border-color .2s; }
.cat.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
/* 列 */
.rows { padding: 28px 0 52px; }
.row { scroll-margin-top: 64px; }
.row + .row { margin-top: 36px; }
.row-h { display: flex; align-items: baseline; gap: 10px; padding: 0 max(16px, env(safe-area-inset-left, 0px)); font-size: 18px; font-weight: 700; line-height: 1.5; letter-spacing: .04em; color: var(--ink); }
.row-h small { font-size: 12px; color: var(--sub); letter-spacing: .02em; }
.rail-wrap { position: relative; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: 72%; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; padding: 12px max(16px, env(safe-area-inset-left, 0px)) 4px; scroll-padding-inline: 16px; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail.is-tall { grid-auto-columns: 44%; }
/* 記事のカード：写真 → 分類 → 題名（2行まで）→ 日付 */
.acard, .tile { scroll-snap-align: start; display: block; min-width: 0; color: var(--ink); text-decoration: none; }
.acard-img, .tile-img { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--r-s); background: var(--line); }
.acard.is-tall .acard-img { aspect-ratio: 3 / 4; }
.acard-img img, .tile-img img, .aitem-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
a.acard:hover .acard-img img, a.tile:hover .tile-img img, .aitem:hover .aitem-img img { transform: scale(1.04); }
.acard-cat { display: block; margin-top: 10px; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; line-height: 1.5; color: var(--brand-text); }
.acard-t { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 2px; font-size: 14.5px; font-weight: 700; line-height: 1.55; color: var(--ink); }
.acard-d { display: block; margin-top: 4px; font-size: 11.5px; line-height: 1.5; color: var(--sub); font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.tile-t { display: block; margin-top: 10px; font-size: 14.5px; font-weight: 700; line-height: 1.55; color: var(--ink); }
.tile-t small { display: block; font-size: 11.5px; color: var(--sub); }
.tile-ic { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, #FEDA75 0%, #FA7E1E 25%, #D62976 55%, #962FBF 80%, #4F5BD5 100%); }
.tile-ic.is-corner { position: absolute; z-index: 1; left: 12px; bottom: 12px; box-shadow: 0 4px 12px rgba(0, 0, 0, .2); }
.tile-ic svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2; }
.rail-btn { display: none; }
/* すべての記事：写真が左の一覧 */
.alist { margin-top: 8px; padding: 0 max(16px, env(safe-area-inset-left, 0px)); }
.alist li { border-bottom: 1px solid var(--line); }
.alist li.is-more { display: none; }
.aitem { display: grid; grid-template-columns: 128px 1fr; gap: 14px; align-items: center; padding: 14px 0; color: var(--ink); text-decoration: none; }
.aitem-img { display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 8px; background: var(--line); }
.aitem-b { min-width: 0; }
.aitem .acard-cat { margin-top: 0; }
.aitem-t { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 2px; font-size: 14px; font-weight: 700; line-height: 1.55; }
.more { margin-top: 20px; text-align: center; }
.more-btn { height: 44px; padding: 0 32px; border-radius: 999px; border: 1px solid #D9D1E3; background: #fff; color: var(--ink); font: inherit; font-size: 13.5px; font-weight: 700; letter-spacing: .04em; cursor: pointer; }

/* ---- 出てくる動き ---- */
.js [data-reveal] { opacity: 0; transform: translateY(12px); transition: opacity .6s ease, transform .6s ease; }
.js [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .btn, .hero-go, .hero-dot, .cat, .acard-img img, .tile-img img, .aitem-img img { transition: none; }
}

/* ---- 小さいスマホ（SE など） ---- */
@media (max-width: 359px) {
  :root { --pad: 16px; }
  body, .prose p { font-size: 15px; }
  .opener h2 { font-size: 20px; }
  .can { margin-inline: -4px; }
  .next { grid-template-columns: 96px 1fr; }
}

/* ---- PC ---- */
@media (min-width: 768px) {
  :root { --pad: 56px; --r: 20px; }
  .cover { min-height: clamp(600px, 88vh, 860px); }
  .cover-in { padding: 0 8% 72px; }
  .cover-logo { top: 24px; left: 32px; }
  .cover-menu { top: 24px; right: 32px; }
  .cover-sub { font-size: 14px; }
  .stage { padding: 72px 24px 96px; }
  .profile p { font-size: 13.5px; }
  .sheet { margin-top: 48px; padding: 64px var(--pad) 80px; border-radius: 28px; }
  .prose p { font-size: 16px; }
  .opener-ph { aspect-ratio: 16 / 9; margin-inline: -32px; }
  .opener h2 { margin-left: -38px; font-size: 28px; }
  br.sp { display: none; }
  .prose h3 { font-size: 20px; }
  .quote p { font-size: 21px !important; }
  .phone { width: 200px; }
  .can { margin-inline: 0; padding: 14px 14px 28px; }
  .can > *:not(.can-ph) { margin-left: 18px; margin-right: 18px; }
  .plans { display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; }
  .flyers-in { gap: 10px; }
  .labomi img { width: 80px; }
  .next { grid-template-columns: 180px 1fr; }
  .hero .cover-logo { top: 24px; left: 32px; }
  .hero-slide { min-height: clamp(560px, 76vh, 780px); }
  .hero-slide .cover-in { padding: 0 8% 72px; }
  .hero-dots { right: 32px; bottom: 32px; }
  .cats-in { justify-content: center; padding: 12px 32px; }
  .rows { max-width: 1240px; margin: 0 auto; padding: 44px 0 80px; }
  .row + .row { margin-top: 52px; }
  .row-h { padding: 0 32px; font-size: 21px; }
  .rail { grid-auto-columns: calc((100% - 64px - 42px) / 4); gap: 14px; padding: 14px 32px 4px; scroll-padding-inline: 32px; }
  .rail.is-tall { grid-auto-columns: calc((100% - 64px - 56px) / 5); }
  .acard-t { font-size: 15px; }
  .alist { display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; padding: 0 32px; }
  .aitem { grid-template-columns: 168px 1fr; }
  /* PC：列の左右に送るボタン（マウスで操作する画面だけ）。写真の高さの真ん中に置く */
  @media (hover: hover) {
    .rail-btn { display: grid; place-items: center; position: absolute; z-index: 2; top: 14px; width: 44px; height: 44px; margin-top: calc((100% - 64px - 42px) / 4 * 9 / 16 / 2 - 22px); border: 0; border-radius: 50%; background: #fff; color: var(--ink); box-shadow: 0 6px 18px rgba(40, 20, 70, .18); cursor: pointer; transition: opacity .2s; }
    .rail-btn::before { content: ""; width: 9px; height: 9px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: translateX(-2px) rotate(45deg); }
    .rail-btn.is-prev { left: 12px; } .rail-btn.is-prev::before { transform: translateX(2px) rotate(-135deg); }
    .rail-btn.is-next { right: 12px; }
    .rail-btn[disabled] { opacity: 0; pointer-events: none; }
    .rail-wrap:has(.is-tall) .rail-btn { margin-top: calc((100% - 64px - 56px) / 5 * 4 / 3 / 2 - 22px); }
  }
}
