/* ─────────────────────────────────────────────
   Karou Portfolio — 空と草地のテーマ
   にゃっとランドforXの世界（空色・ドットの草・土）から取った配色。
   見出しだけドット書体、本文は端末の角ゴシック。
   ───────────────────────────────────────────── */

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url(/assets/fonts/jetbrains-mono-normal-400-500.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --sky: #ddf0fa;
    --sky-deep: #b8def2;
    --field: #f1f7ee;
    --paper: #ffffff;
    --ink: #1c2b22;
    --ink-2: #47564d;
    --ink-3: #66756c;
    --grass: #58a845;
    --grass-light: #86c96b;
    --grass-deep: #2f7d3b;
    --soil: #8b5e3c;
    --tabby: #f0a03a;
    --line: rgba(28, 43, 34, 0.12);
    --line-strong: rgba(28, 43, 34, 0.24);
    --night: #183324;

    --font-jp: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', 'Yu Gothic', YuGothic, 'Meiryo', sans-serif;
    --font-dot: 'DotGothic16', var(--font-jp);
    --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

    --gutter: clamp(1rem, 4vw, 2.5rem);
    --radius-s: 6px;
    --radius-m: 12px;
    --radius-l: 20px;

    /* 開発ツールページ（tools.css）と記事本文の旧マークアップが参照する名前 */
    --paper-deep: #e4eee0;
    --card: #ffffff;
    --rule: var(--line-strong);
    --rule-soft: var(--line);
    --rule-faint: rgba(28, 43, 34, 0.06);
    --accent: var(--grass-deep);
    --accent-text: var(--grass-deep);
    --font-serif: var(--font-dot);
    --text-primary: var(--ink);
    --text-secondary: var(--ink-2);
    --text-tertiary: var(--ink-3);
    --border: var(--line);
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

html,
body {
    overflow-x: clip;
    width: 100%;
}

body {
    font-family: var(--font-jp);
    font-size: 1rem;
    color: var(--ink);
    line-height: 1.8;
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    font-feature-settings: 'palt' 1;
    line-break: strict;
}

::selection {
    background: var(--grass-light);
    color: var(--ink);
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 var(--gutter);
}

[hidden] {
    display: none !important;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
    outline: 3px solid var(--tabby);
    outline-offset: 3px;
    border-radius: 4px;
}

.section-title,
.page-hero h1,
.hh-title,
.footer-lead,
.section-sub,
.page-hero-lead {
    word-break: auto-phrase;
    text-wrap: pretty;
}

.pixel {
    image-rendering: pixelated;
}

/* ─── ドットの草地 ─── */
.grass {
    height: 32px;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='16' shape-rendering='crispEdges'%3E%3Crect y='8' width='24' height='8' fill='%232f7d3b'/%3E%3Crect y='6' width='24' height='4' fill='%2358a845'/%3E%3Crect x='1' y='3' width='2' height='4' fill='%2358a845'/%3E%3Crect x='5' y='4' width='2' height='3' fill='%2386c96b'/%3E%3Crect x='9' y='2' width='2' height='5' fill='%2358a845'/%3E%3Crect x='10' y='1' width='1' height='2' fill='%2386c96b'/%3E%3Crect x='14' y='4' width='2' height='3' fill='%2358a845'/%3E%3Crect x='18' y='3' width='2' height='4' fill='%2386c96b'/%3E%3Crect x='21' y='5' width='2' height='2' fill='%2358a845'/%3E%3Crect x='3' y='11' width='2' height='1' fill='%2358a845'/%3E%3Crect x='15' y='12' width='2' height='1' fill='%2358a845'/%3E%3C/svg%3E")
        repeat-x left bottom / 48px 32px;
    image-rendering: pixelated;
}

/* ─── ヘッダー ─── */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: saturate(1.4) blur(8px);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 60px;
}

.logo {
    display: inline-flex;
    align-items: baseline;
    gap: 0.5rem;
}

.logo-word {
    font-family: var(--font-dot);
    font-size: 1.45rem;
    line-height: 1;
    letter-spacing: 0.02em;
}

.logo-sub {
    font-size: 0.78rem;
    color: var(--ink-3);
}

.nav {
    display: flex;
    align-items: center;
    gap: clamp(0.25rem, 2vw, 1.25rem);
    font-size: 0.92rem;
}

.nav a {
    padding: 0.4rem 0.5rem;
    border-radius: var(--radius-s);
    color: var(--ink-2);
}

.nav a:hover {
    color: var(--ink);
    background: var(--field);
}

.nav a[aria-current='page'] {
    color: var(--ink);
    font-weight: 700;
}

.nav .nav-cta {
    padding: 0.4rem 0.9rem;
    border: 1.5px solid var(--grass-deep);
    border-radius: 999px;
    color: var(--grass-deep);
    font-weight: 700;
}

.nav .nav-cta:hover {
    background: var(--grass-deep);
    color: #fff;
}

/* ─── ボタン ─── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 46px;
    padding: 0.6rem 1.3rem;
    border-radius: 999px;
    background: var(--grass-deep);
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.3;
    border: 2px solid var(--grass-deep);
    transition: background 0.15s, color 0.15s, transform 0.15s;
}

.btn:hover {
    background: #25652f;
    border-color: #25652f;
}

.btn:active {
    transform: translateY(1px);
}

.btn--ghost {
    background: transparent;
    color: var(--grass-deep);
}

.btn--ghost:hover {
    background: var(--field);
    color: var(--grass-deep);
}

.btn--line {
    background: #06c755;
    border-color: #06c755;
}

.btn--line:hover {
    background: #05a847;
    border-color: #05a847;
}

.btn--block {
    width: 100%;
}

.arrow {
    font-size: 0.9em;
}

/* ─── トップ：にゃっとランドの常設ヒーロー ─── */
.home-hero {
    background: linear-gradient(180deg, var(--sky) 0%, #eaf6fc 70%, #f3faf0 100%);
    position: relative;
}

.hh-site {
    padding-top: clamp(1.25rem, 3vw, 2rem);
    font-size: 0.88rem;
    color: var(--ink-2);
    font-weight: 400;
}

.hh-site strong {
    font-family: var(--font-dot);
    font-weight: 400;
    color: var(--ink);
}

.hh-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    align-items: center;
    gap: clamp(1.5rem, 4vw, 3.5rem);
    padding: clamp(1.5rem, 4vw, 2.75rem) 0 clamp(1.25rem, 3vw, 2rem);
}

.hh-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    background: var(--tabby);
    color: #3a2306;
    font-size: 0.8rem;
    font-weight: 700;
}

.hh-title {
    font-family: var(--font-dot);
    font-weight: 400;
    font-size: clamp(2.1rem, 4.4vw, 3.6rem);
    line-height: 1.1;
    letter-spacing: 0.01em;
    white-space: nowrap;
    margin: 0.9rem 0 0.75rem;
}

.hh-title span {
    font-size: 0.62em;
    margin-left: 0.15em;
    color: var(--grass-deep);
}

.hh-tagline {
    font-family: var(--font-dot);
    font-size: clamp(1.15rem, 2.4vw, 1.5rem);
    line-height: 1.5;
    color: var(--ink);
}

.hh-desc {
    margin-top: 1rem;
    max-width: 34em;
    color: var(--ink-2);
    line-height: 1.9;
}

.hh-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.hh-facts {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.1rem;
    margin-top: 1.1rem;
    font-size: 0.84rem;
    color: var(--ink-3);
}

.hh-facts li::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 0.45rem;
    vertical-align: middle;
    background: var(--grass);
}

.hh-shot {
    position: relative;
    border-radius: var(--radius-l);
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 18px 40px -24px rgba(28, 66, 90, 0.45);
}

.hh-shot img {
    width: 100%;
    height: auto;
}

.hh-meadow {
    position: relative;
    margin-top: clamp(0.5rem, 2vw, 1rem);
}

.hh-cats {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 22px;
    height: 69px;
    pointer-events: none;
}

.hh-cats img {
    position: absolute;
    bottom: 0;
    width: 69px;
    height: 69px;
    image-rendering: pixelated;
}

.hh-cats img:nth-child(1) { left: 6%; }
.hh-cats img:nth-child(2) { left: 31%; transform: scaleX(-1); }
.hh-cats img:nth-child(3) { left: 63%; }
.hh-cats img:nth-child(4) { left: 86%; transform: scaleX(-1); }

/* 猫が一度だけ草地を歩いて定位置に着く。ページで唯一の自動の動き */
@media (prefers-reduced-motion: no-preference) {
    .hh-cats img:nth-child(1) { animation: hh-walk-in 1.6s steps(8) both; }
    .hh-cats img:nth-child(3) { animation: hh-walk-in 1.6s 0.25s steps(8) both; }
}

@keyframes hh-walk-in {
    from { translate: -90px 0; opacity: 0; }
    15% { opacity: 1; }
    to { translate: 0 0; opacity: 1; }
}

.hh-notes {
    background: var(--grass-deep);
    color: #fff;
    padding: 1.1rem 0 1.4rem;
}

.hh-notes-inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.75rem 2rem;
    align-items: start;
}

.hh-notes-title {
    font-family: var(--font-dot);
    font-weight: 400;
    font-size: 1.05rem;
    padding-top: 0.15rem;
    white-space: nowrap;
}

.hh-notes ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem 1.5rem;
}

.hh-notes a {
    display: block;
    font-size: 0.9rem;
    line-height: 1.6;
}

.hh-notes a:hover .hh-note-title {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.hh-notes time {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    opacity: 0.75;
}

.hh-notes-more {
    grid-column: 2;
    font-size: 0.85rem;
    justify-self: start;
    border-bottom: 1px solid rgba(255, 255, 255, 0.6);
}

/* ─── セクション共通 ─── */
.section {
    padding: clamp(3rem, 7vw, 5.5rem) 0;
}

.section--field {
    background: var(--field);
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem 2rem;
    flex-wrap: wrap;
    margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

.section-title {
    font-family: var(--font-dot);
    font-weight: 400;
    font-size: clamp(1.6rem, 3.4vw, 2.2rem);
    line-height: 1.3;
}

.section-sub {
    color: var(--ink-3);
    font-size: 0.95rem;
    max-width: 32em;
}

.section-link {
    color: var(--grass-deep);
    font-weight: 700;
    font-size: 0.92rem;
    border-bottom: 2px solid currentColor;
    padding-bottom: 1px;
}

/* ─── 自己紹介 ─── */
.about {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: clamp(1.5rem, 5vw, 4rem);
    align-items: start;
}

.about-text p {
    color: var(--ink-2);
    margin-bottom: 1rem;
    max-width: 38em;
}

.about-text p:first-of-type {
    font-size: 1.12rem;
    color: var(--ink);
    line-height: 1.85;
}

.about-links {
    list-style: none;
    border-top: 1px solid var(--line-strong);
}

.about-links li {
    border-bottom: 1px solid var(--line);
}

.about-links a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0.25rem;
}

.about-links a:hover {
    color: var(--grass-deep);
}

.about-links small {
    color: var(--ink-3);
    font-size: 0.8rem;
}

/* ─── プロダクト ─── */
.works {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1rem, 2.4vw, 1.5rem);
}

.work {
    display: flex;
    flex-direction: column;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-m);
    overflow: hidden;
}

.work-media {
    aspect-ratio: 1200 / 630;
    background: var(--paper-deep);
    border-bottom: 1px solid var(--line);
}

.work-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.work-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1rem 1.15rem 1.15rem;
}

.work-kind {
    font-size: 0.78rem;
    color: var(--ink-3);
}

.work h3 {
    font-size: 1.12rem;
    line-height: 1.45;
    margin: 0.15rem 0 0.35rem;
}

.work p {
    font-size: 0.9rem;
    color: var(--ink-2);
    line-height: 1.75;
    flex: 1;
}

.work-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin: 0.8rem 0 0.9rem;
}

.chip {
    font-size: 0.72rem;
    padding: 0.1rem 0.55rem;
    border-radius: 999px;
    background: var(--field);
    color: var(--ink-2);
}

.work-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1rem;
    font-size: 0.88rem;
    font-weight: 700;
}

.work-links a {
    color: var(--grass-deep);
}

.work-links a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ─── LINEスタンプ ─── */
.stamps {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: center;
    background: #fff4f7;
    border-radius: var(--radius-l);
    padding: clamp(1.5rem, 4vw, 2.75rem);
}

.stamps-art {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
}

.stamps-art img {
    width: 100%;
    height: auto;
}

.stamps h2 {
    font-family: var(--font-dot);
    font-weight: 400;
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    line-height: 1.35;
}

.stamps p {
    color: var(--ink-2);
    margin: 0.75rem 0 1.25rem;
}

/* ─── 記事リスト ─── */
.post-list {
    list-style: none;
    border-top: 1px solid var(--line-strong);
}

.post-row {
    border-bottom: 1px solid var(--line);
}

.post-row a {
    display: grid;
    grid-template-columns: 136px minmax(0, 1fr);
    gap: 1rem 1.25rem;
    align-items: center;
    padding: 0.9rem 0;
}

.post-row img {
    width: 136px;
    height: 72px;
    object-fit: cover;
    border-radius: var(--radius-s);
    background: var(--paper-deep);
}

.post-row-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.75rem;
    font-size: 0.78rem;
    color: var(--ink-3);
}

.post-row-series {
    color: var(--grass-deep);
    font-weight: 700;
}

.post-row h3 {
    font-size: 1rem;
    line-height: 1.55;
    margin-top: 0.15rem;
}

.post-row a:hover h3 {
    color: var(--grass-deep);
}

/* ─── タイムライン ─── */
.timeline {
    border-top: 1px solid var(--line-strong);
}

.timeline-item {
    display: grid;
    grid-template-columns: 2.25rem minmax(0, 12rem) minmax(0, 1fr);
    gap: 0.25rem 1rem;
    align-items: baseline;
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--line);
}

.timeline-tag {
    display: none;
}

.timeline-icon {
    font-size: 1.2rem;
}

.timeline-item h3 {
    font-size: 0.98rem;
}

.timeline-item p {
    color: var(--ink-2);
    font-size: 0.9rem;
}

.timeline-more {
    margin-top: 1rem;
}

.timeline-more summary {
    cursor: pointer;
    display: inline-block;
    color: var(--grass-deep);
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.4rem 0;
}

.timeline-more[open] summary {
    margin-bottom: 0.5rem;
}

/* ─── フッター ─── */
.footer {
    margin-top: clamp(2rem, 5vw, 3rem);
    color: #e7f0e9;
}

.footer .grass {
    background-color: var(--paper);
}

.footer-body {
    background: var(--night);
    padding: clamp(2.25rem, 5vw, 3.5rem) 0 1.5rem;
}

.footer-top {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 2rem;
}

.footer-lead {
    font-family: var(--font-dot);
    font-size: clamp(1.25rem, 2.6vw, 1.6rem);
    line-height: 1.5;
    color: #fff;
}

.footer-lead small {
    display: block;
    margin-top: 0.75rem;
    font-family: var(--font-jp);
    font-size: 0.85rem;
    color: #b9cbbf;
    line-height: 1.8;
}

.footer-col h2 {
    font-size: 0.82rem;
    font-weight: 700;
    color: #b9cbbf;
    margin-bottom: 0.6rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    padding: 0.2rem 0;
    font-size: 0.92rem;
}

.footer-col a:hover {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 0.78rem;
    color: #9fb3a6;
}

/* ─── 下層ページのヘッダー ─── */
.page-hero {
    background: var(--field);
    padding: clamp(2.25rem, 6vw, 4rem) 0 clamp(1.75rem, 4vw, 2.75rem);
    border-bottom: 1px solid var(--line);
}

.page-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
    gap: 1rem clamp(1.5rem, 5vw, 4rem);
    align-items: end;
}

.page-hero h1 {
    font-family: var(--font-dot);
    font-weight: 400;
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.2;
}

.page-hero-lead {
    color: var(--ink-2);
    margin-bottom: 0.6rem;
    max-width: 36em;
}

.page-hero-lead:last-child {
    margin-bottom: 0;
}

.page-hero-sign {
    color: var(--ink-3);
    font-size: 0.9rem;
}

/* ─── ブログ一覧 ─── */
.blog-intro {
    padding: clamp(1.5rem, 3vw, 2rem) 0 0;
}

.blog-intro p {
    color: var(--ink-2);
    max-width: 46em;
}

.series-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1.5rem 0 0;
    list-style: none;
}

.series-nav a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.85rem;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    font-size: 0.86rem;
    background: var(--paper);
}

.series-nav a:hover {
    border-color: var(--grass-deep);
    color: var(--grass-deep);
}

.series-nav span {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--ink-3);
}

.blog-section {
    padding: clamp(1.5rem, 4vw, 2.5rem) 0 clamp(2rem, 5vw, 3.5rem);
}

.series {
    padding-top: clamp(2rem, 5vw, 3rem);
    scroll-margin-top: 72px;
}

.series-head {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 0.5rem 1.25rem;
    align-items: center;
    margin-bottom: 1.25rem;
}

.series-head img {
    width: 160px;
    height: 84px;
    object-fit: cover;
    border-radius: var(--radius-m);
    background: var(--paper-deep);
}

.series-head h2 {
    font-family: var(--font-dot);
    font-weight: 400;
    font-size: clamp(1.4rem, 3vw, 1.85rem);
    line-height: 1.3;
}

.series-head h2 span {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--ink-3);
    margin-left: 0.5rem;
}

.series-head p {
    color: var(--ink-2);
    font-size: 0.92rem;
    margin-top: 0.25rem;
}

.series-head a {
    color: var(--grass-deep);
    font-weight: 700;
}

.blog-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 clamp(1.5rem, 4vw, 3rem);
    border-top: 1px solid var(--line-strong);
}

.blog-card a {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 0.9rem;
    padding: 0.95rem 0;
    border-bottom: 1px solid var(--line);
    height: 100%;
}

.blog-card-thumb {
    width: 112px;
    height: 59px;
    border-radius: var(--radius-s);
    overflow: hidden;
    background: var(--paper-deep);
}

.blog-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-card-meta {
    display: flex;
    gap: 0.75rem;
    font-size: 0.75rem;
    color: var(--ink-3);
}

.blog-card h3 {
    font-size: 0.95rem;
    line-height: 1.55;
    margin-top: 0.1rem;
}

.blog-card a:hover h3 {
    color: var(--grass-deep);
}

.blog-card p {
    display: none;
}

/* ─── 記事ページ ─── */
.article-hero {
    background: var(--field);
    border-bottom: 1px solid var(--line);
    padding: clamp(1.75rem, 5vw, 3rem) 0 clamp(1.5rem, 4vw, 2.25rem);
}

.article-hero-content {
    max-width: 760px;
    margin: 0 auto;
}

.article-kicker {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    font-size: 0.82rem;
    color: var(--ink-3);
}

.article-kicker a {
    color: var(--grass-deep);
}

.article-kicker a:hover {
    text-decoration: underline;
}

.article-hero h1 {
    font-size: clamp(1.45rem, 3.4vw, 2.1rem);
    line-height: 1.5;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin: 0.6rem 0 0.75rem;
    text-wrap: pretty;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1rem;
    font-size: 0.82rem;
    color: var(--ink-3);
}

.article-body {
    padding: clamp(2rem, 5vw, 3rem) 0 clamp(2rem, 5vw, 3rem);
}

.article-content {
    max-width: 760px;
    margin: 0 auto;
}

.article-content h2 {
    font-size: clamp(1.25rem, 2.6vw, 1.5rem);
    font-weight: 800;
    line-height: 1.5;
    margin: 3rem 0 1rem;
    padding-left: 0.85rem;
    border-left: 6px solid var(--grass);
}

.article-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.55;
    margin: 2rem 0 0.75rem;
}

.article-content h4 {
    font-size: 1rem;
    font-weight: 700;
    margin: 1.5rem 0 0.5rem;
}

.article-content p {
    color: var(--ink-2);
    line-height: 2;
    margin-bottom: 1.4rem;
    font-size: 1.03rem;
}

.article-content a {
    color: var(--grass-deep);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.article-content a:hover {
    text-decoration-thickness: 2px;
}

.article-content strong {
    color: var(--ink);
}

.article-content ul,
.article-content ol {
    margin-bottom: 1.4rem;
    padding-left: 1.4rem;
}

.article-content li {
    color: var(--ink-2);
    line-height: 1.9;
    margin-bottom: 0.4rem;
    font-size: 1.03rem;
}

.article-content li::marker {
    color: var(--grass-deep);
}

.article-content code {
    font-family: var(--font-mono);
    font-size: 0.86em;
    background: var(--field);
    color: var(--ink);
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    overflow-wrap: anywhere;
}

.article-content pre {
    background: var(--night);
    color: #eef5ef;
    border-radius: var(--radius-m);
    padding: 1.25rem 1.4rem;
    overflow-x: auto;
    margin: 1.75rem 0;
}

.article-content pre code {
    background: none;
    padding: 0;
    color: inherit;
    font-size: 0.85rem;
    line-height: 1.75;
    overflow-wrap: normal;
}

.article-content blockquote {
    border-left: 4px solid var(--line-strong);
    padding: 0.25rem 0 0.25rem 1.25rem;
    margin: 1.75rem 0;
}

.article-content blockquote p {
    color: var(--ink-3);
    margin-bottom: 0;
}

.article-content hr {
    border: none;
    border-top: 1px solid var(--line);
    margin: 2.5rem 0;
}

.article-content table {
    display: block;
    width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
    margin: 1.75rem 0;
    font-size: 0.9rem;
}

.article-content th {
    text-align: left;
    font-weight: 700;
    font-size: 0.82rem;
    color: var(--ink);
    background: var(--field);
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid var(--line-strong);
    white-space: nowrap;
}

.article-content td {
    color: var(--ink-2);
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid var(--line);
    line-height: 1.7;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-m);
    margin: 1.25rem 0;
}

.highlight-card {
    background: var(--field);
    border-radius: var(--radius-m);
    padding: 1.25rem 1.5rem;
    margin: 2rem 0;
}

.highlight-card h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--grass-deep);
    margin: 0 0 0.6rem;
}

.highlight-card ul {
    margin-bottom: 0;
}

.highlight-card p:last-child {
    margin-bottom: 0;
}

.series-box {
    margin-top: 3rem;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-m);
    padding: 1.25rem 1.4rem;
}

.series-box h2 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
}

.series-box ol {
    list-style: none;
    max-height: 22rem;
    overflow-y: auto;
}

.series-box li {
    font-size: 0.9rem;
    border-top: 1px solid var(--line);
}

.series-box a {
    display: flex;
    gap: 0.75rem;
    padding: 0.5rem 0;
    color: var(--ink-2);
}

.series-box a:hover {
    color: var(--grass-deep);
}

.series-box time {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--ink-3);
    flex: none;
    padding-top: 0.15rem;
}

.series-box [aria-current='page'] {
    color: var(--ink);
    font-weight: 700;
}

.article-nav {
    display: grid;
    gap: 0.5rem;
    margin-top: 1.5rem;
    font-size: 0.92rem;
}

.article-nav a {
    color: var(--grass-deep);
    font-weight: 700;
}

.article-nav a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.promo-box {
    display: grid;
    grid-template-columns: 168px minmax(0, 1fr);
    gap: 1rem 1.25rem;
    align-items: center;
    margin-top: 2.25rem;
    padding: 1rem;
    border-radius: var(--radius-m);
    background: var(--sky);
}

.promo-box img {
    width: 168px;
    height: auto;
    border-radius: var(--radius-s);
}

.promo-box p {
    font-size: 0.85rem;
    color: var(--ink-2);
}

.promo-box strong {
    display: block;
    font-family: var(--font-dot);
    font-weight: 400;
    font-size: 1.15rem;
    color: var(--ink);
}

.promo-box a {
    display: inline-block;
    margin-top: 0.4rem;
    color: var(--grass-deep);
    font-weight: 700;
    font-size: 0.88rem;
}

/* 記事本文の見出し・リンク・リストの指定を、本文の外の部品では打ち消す */
.article-content .series-box h2 {
    margin: 0 0 0.6rem;
    padding: 0;
    border: 0;
    font-size: 1rem;
}

.article-content .series-box ol {
    padding: 0;
    margin: 0;
}

.article-content .series-box li,
.article-content .promo-box p {
    font-size: 0.9rem;
    line-height: 1.7;
    margin: 0;
}

.article-content .series-box a,
.article-content .article-nav a,
.article-content .promo-box a {
    text-decoration: none;
}

.article-content .series-box a {
    color: var(--ink-2);
}

.article-content .series-box a:hover span,
.article-content .article-nav a:hover,
.article-content .promo-box a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.article-content .promo-box img {
    margin: 0;
}

/* ─── 応援ページ ─── */
.support-block {
    padding: clamp(2.5rem, 6vw, 4rem) 0;
}

.support-block:nth-of-type(even) {
    background: var(--field);
}

.feature {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: clamp(1.25rem, 4vw, 2.5rem);
    align-items: center;
    background: var(--sky);
    border-radius: var(--radius-l);
    padding: clamp(1rem, 3vw, 1.75rem);
}

.feature-media {
    border-radius: var(--radius-m);
    overflow: hidden;
}

.feature-media img {
    width: 100%;
    height: auto;
}

.feature-body h3 {
    font-family: var(--font-dot);
    font-weight: 400;
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    line-height: 1.35;
    margin-bottom: 0.6rem;
}

.feature-body p {
    color: var(--ink-2);
    margin-bottom: 1.1rem;
}

.feature-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.feature-note {
    margin-top: 0.75rem;
    font-size: 0.82rem;
    color: var(--ink-3);
}

.card-grid {
    display: grid;
    gap: 1rem;
}

.card-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.link-card {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-m);
    padding: 1.15rem;
}

.link-card h3 {
    font-size: 1rem;
    line-height: 1.5;
}

.link-card p {
    font-size: 0.88rem;
    color: var(--ink-2);
    flex: 1;
    margin-bottom: 0.5rem;
}

.link-card-icon {
    font-size: 1.4rem;
    line-height: 1;
}

.link-card-media img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-s);
}

.notice {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    gap: 1.5rem 2.5rem;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-m);
    padding: clamp(1.25rem, 3vw, 1.75rem);
}

.notice h3 {
    font-size: 1.05rem;
    margin: 0.4rem 0;
}

.notice-lead {
    color: var(--ink-2);
    margin-bottom: 1rem;
    font-size: 0.92rem;
}

.notice ul {
    padding-left: 1.2rem;
    color: var(--ink-2);
    font-size: 0.86rem;
}

.notice li {
    margin-bottom: 0.4rem;
}

/* ─── プライバシーポリシー ─── */
.legal {
    max-width: 760px;
    margin: 0 auto;
    padding: clamp(2rem, 5vw, 3rem) var(--gutter) clamp(2.5rem, 6vw, 4rem);
}

.legal article {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--line);
}

.legal h2 {
    font-size: 1.15rem;
    margin-bottom: 0.6rem;
}

.legal h3 {
    font-size: 0.98rem;
    margin: 0.75rem 0 0.35rem;
}

.legal p,
.legal li,
.legal dd {
    color: var(--ink-2);
    font-size: 0.95rem;
}

.legal p + p {
    margin-top: 0.6rem;
}

.legal ul {
    padding-left: 1.3rem;
    margin-top: 0.4rem;
}

.legal a {
    color: var(--grass-deep);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.legal dl {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 0.4rem 1.5rem;
}

.legal dt {
    font-weight: 700;
    font-size: 0.9rem;
}

.legal-updated {
    padding-top: 1.5rem;
    color: var(--ink-3);
    font-size: 0.85rem;
}

/* ─── リリースノート ─── */
.release-summary {
    padding: clamp(1.5rem, 4vw, 2.5rem) 0 0;
}

.release-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.release-stats > div {
    background: var(--field);
    border-radius: var(--radius-m);
    padding: 1rem 1.25rem;
}

.release-label {
    font-size: 0.78rem;
    color: var(--ink-3);
}

.release-number {
    font-family: var(--font-dot);
    font-size: 1.6rem;
}

.release-latest {
    font-weight: 700;
    margin-top: 0.4rem;
}

.release-section {
    padding: clamp(1.5rem, 4vw, 2.5rem) 0 clamp(2.5rem, 6vw, 4rem);
}

.release-entry {
    display: grid;
    grid-template-columns: 11rem minmax(0, 1fr);
    gap: 0.75rem 2rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--line);
}

.release-entry-meta {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    align-items: flex-start;
}

.release-badge {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--grass-deep);
    background: var(--field);
    padding: 0.1rem 0.6rem;
    border-radius: 999px;
}

.release-entry time {
    font-size: 0.92rem;
    font-weight: 700;
}

.release-entry-body > p {
    color: var(--ink-2);
    margin-bottom: 0.75rem;
}

.release-posts {
    display: grid;
    gap: 0.5rem;
}

.release-post {
    display: block;
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-s);
}

.release-post:hover {
    border-color: var(--grass-deep);
}

.release-post div {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.release-post h2 {
    font-size: 0.95rem;
    line-height: 1.55;
    margin-top: 0.15rem;
}

/* ─── 404 ─── */
.not-found {
    max-width: 640px;
    margin: 0 auto;
    padding: clamp(3rem, 10vw, 6rem) var(--gutter);
    display: grid;
    gap: 1rem;
}

.not-found h1 {
    font-family: var(--font-dot);
    font-weight: 400;
    font-size: clamp(1.6rem, 4vw, 2.2rem);
}

.not-found a {
    color: var(--grass-deep);
    font-weight: 700;
}

/* ─── 狭い画面 ─── */
@media (max-width: 960px) {
    .works,
    .card-grid--3,
    .card-grid--5 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hh-notes ul {
        grid-template-columns: minmax(0, 1fr);
    }

    .blog-list {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 760px) {
    .logo-sub {
        display: none;
    }

    .nav {
        font-size: 0.86rem;
    }

    .hh-grid,
    .about,
    .stamps,
    .feature,
    .notice,
    .page-hero-grid,
    .footer-top,
    .card-grid--2 {
        grid-template-columns: minmax(0, 1fr);
    }

    .hh-shot {
        order: 2;
    }

    .hh-cats img {
        width: 46px;
        height: 46px;
    }

    .hh-cats {
        height: 46px;
    }

    .hh-notes-inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .hh-notes-more {
        grid-column: 1;
    }

    .post-row a {
        grid-template-columns: 96px minmax(0, 1fr);
        gap: 0.85rem;
    }

    .post-row img {
        width: 96px;
        height: 51px;
    }

    .timeline-item {
        grid-template-columns: 2rem minmax(0, 1fr);
    }

    .timeline-item p {
        grid-column: 2;
    }

    .release-entry {
        grid-template-columns: minmax(0, 1fr);
    }

    .release-stats {
        grid-template-columns: minmax(0, 1fr);
    }

    .promo-box {
        grid-template-columns: minmax(0, 1fr);
    }

    .promo-box img {
        width: 100%;
    }
}

@media (max-width: 520px) {
    .works,
    .card-grid--3,
    .card-grid--5 {
        grid-template-columns: minmax(0, 1fr);
    }

    .nav {
        gap: 0;
    }

    .nav a {
        padding: 0.35rem 0.4rem;
    }

    .nav .nav-cta {
        padding: 0.3rem 0.7rem;
    }

    .series-head {
        grid-template-columns: 96px minmax(0, 1fr);
    }

    .series-head img {
        width: 96px;
        height: 50px;
    }

    .blog-card a {
        grid-template-columns: 88px minmax(0, 1fr);
    }

    .blog-card-thumb {
        width: 88px;
        height: 46px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .btn {
        transition: none;
    }
}

.article-cover {
    display: block;
    width: 100%;
    height: auto;
    margin-top: 1.25rem;
    border-radius: var(--radius-m, 12px);
    border: 1px solid var(--line);
}
