:root {
  /* 墨藍 lock #2C3340 — Takuya OK 2026-09-07 */
  --paper: #F4F1EC;
  --ink: #161513;
  --accent: #2C3340;
  --stone: #6E6A64;
  --line: #D6D0C6;
  --card: #FFFcf8;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: "IBM Plex Sans JP", system-ui, sans-serif; background: var(--paper); color: var(--ink); line-height: 1.6; }
.w { width: min(1100px, calc(100% - 1.75rem)); margin-inline: auto; }
.flag { background: var(--accent); color: #efeae2; text-align: center; font-size: 0.62rem; letter-spacing: 0.05em; padding: 0.35rem; }
a { color: inherit; text-decoration: none; }

.hdr { border-bottom: 1px solid var(--ink); background: var(--paper); position: sticky; top: 0; z-index: 8; }
.hdr-row { display: flex; align-items: center; min-height: 3.4rem; gap: 1.25rem; }
.logo { font-family: "Shippori Mincho", serif; font-weight: 700; font-size: 1.3rem; letter-spacing: 0.22em; }
.nav { margin-left: auto; display: flex; gap: 1rem; font-size: 0.8rem; color: var(--stone); }
.tagline { font-size: 0.7rem; color: var(--stone); padding: 0 0 0.65rem; line-height: 1.5; border-top: 1px solid var(--line); padding-top: 0.45rem; }


/* Cover carousel */
.cover { position: relative; min-height: min(62vh, 520px); color: #f4f0ea; overflow: hidden; }
.cover-track { position: relative; min-height: inherit; }
.cover-slide {
  position: absolute; inset: 0;
  display: grid; align-items: end;
  opacity: 0; pointer-events: none;
  transition: opacity 0.7s ease;
}
.cover-slide.is-active { position: relative; opacity: 1; pointer-events: auto; min-height: min(62vh, 520px); }
.cover-bg {
  position: absolute; inset: 0;
  background-color: var(--accent);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
/* Cover photos: dark gradient overlay + real images */
.cover-bg.bg-a {
  /* 赤坂四方 eye-catch — temporary / permission-pending preview only */
  background-image:
    linear-gradient(180deg, rgba(22,21,19,0.18) 0%, rgba(22,21,19,0.72) 78%),
    url("media/shiho/eyecatch.jpg");
}
.cover-bg.bg-b {
  /* 国宝社公式 https://www.kokuhosha.co.jp/ ABOUT/bind.jpg */
  background-image:
    linear-gradient(180deg, rgba(22,21,19,0.22) 0%, rgba(22,21,19,0.76) 80%),
    url("media/kokuhosha-eyecatch.jpg");
}
.cover-bg.bg-c {
  background-image:
    linear-gradient(180deg, rgba(22,21,19,0.2) 0%, rgba(22,21,19,0.78) 82%),
    url("media/goto-hero.jpg");
}
.cover-inner { position: relative; padding: 2.5rem 0 3.4rem; max-width: 36rem; }
.cover-kicker { font-size: 0.68rem; letter-spacing: 0.16em; margin-bottom: 0.75rem; opacity: 0.85; }
.cover h1 { font-family: "Shippori Mincho", serif; font-size: clamp(1.55rem, 3.4vw, 2.35rem); line-height: 1.4; font-weight: 700; }
.cover-deck { margin-top: 0.9rem; font-size: 0.92rem; line-height: 1.75; opacity: 0.9; }
.cover-meta { margin-top: 0.85rem; font-size: 0.75rem; opacity: 0.75; }
.cover-controls {
  position: absolute; left: 0; right: 0; bottom: 0.85rem;
  display: flex; align-items: center; justify-content: flex-end; gap: 0.65rem;
  z-index: 2;
}
.cover-prev, .cover-next {
  width: 2rem; height: 2rem; border: 1px solid rgba(244,240,234,0.45);
  background: rgba(22,21,19,0.35); color: #f4f0ea; font-size: 1.2rem; line-height: 1;
  cursor: pointer;
}
.cover-dots { display: flex; gap: 0.4rem; }
.cover-dots .dot {
  width: 0.55rem; height: 0.55rem; border-radius: 50%;
  border: 0; background: rgba(244,240,234,0.35); cursor: pointer; padding: 0;
}
.cover-dots .dot.is-on { background: #f4f0ea; }
@media (prefers-reduced-motion: reduce) {
  .cover-slide { transition: none; }
}
@media (max-width: 820px) {
  .cover, .cover-slide.is-active { min-height: 420px; }
  .cover-controls { justify-content: center; }
}



/* Feed list thumbs */
.feed-list a {
  display: grid;
  grid-template-columns: 2.8rem 3.2rem 4.8rem 1fr;
  gap: 0.55rem;
  padding: 0.75rem 0;
  align-items: center;
}
.feed-thumb {
  width: 3.2rem; height: 2.15rem;
  background-size: cover; background-position: center; background-repeat: no-repeat;
  background-color: #2a3038;
  border: 1px solid var(--line);
  flex-shrink: 0;
}
.feed-thumb.ft1 { background-image: url("media/shiho/featured.jpg"); }
.feed-thumb.ft2 { background-image: url("media/goto-card.jpg"); }
.feed-thumb.ft3 { background-image: url("media/kokuhosha-thumb.jpg"); }
.feed-thumb.ft4 { background-image: url("media/goto-series.jpg"); }
.feed-thumb.ft5 { background-image: url("media/goto-feature.jpg"); }

.pickup { padding: 1.5rem 0 0.5rem; }
.sec-h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.75rem; }
.sec-h h2 { font-family: "Shippori Mincho", serif; font-size: 1.05rem; letter-spacing: 0.1em; }
.sec-h a { font-size: 0.75rem; color: var(--stone); }

.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 240px);
  gap: 0.75rem; overflow-x: auto; padding-bottom: 0.75rem; scroll-snap-type: x mandatory;
}
.rail-card { scroll-snap-align: start; background: var(--card); border: 1px solid var(--line); }
.rc-img {
  aspect-ratio: 16/10;
  background-color: #2a3038;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.rc-img.i1 {
  background-image:
    linear-gradient(180deg, rgba(22,21,19,0.08) 0%, rgba(22,21,19,0.28) 100%),
    url("media/kokuhosha-eyecatch.jpg");
}
.rc-img.i2 {
  background-image:
    linear-gradient(180deg, rgba(22,21,19,0.08) 0%, rgba(22,21,19,0.28) 100%),
    url("media/goto-card.jpg");
}
.rc-img.i3 {
  background-image:
    linear-gradient(180deg, rgba(22,21,19,0.08) 0%, rgba(22,21,19,0.28) 100%),
    url("media/goto-series.jpg");
}
.rc-img.empty {
  background-color: #fff;
  background-image: url("brand/logo-vertical.jpg");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  display: grid; place-items: center;
  border-bottom: 1px solid var(--line);
  font-family: "Shippori Mincho", serif; letter-spacing: 0.14em; font-size: 0.8rem; color: var(--accent);
}
.rc-img.empty span { display: none; /* logo image is the brand mark */ }
.rail-card .rc-cat, .rail-card h3 { padding: 0 0.7rem; }
.rc-cat { font-size: 0.65rem; color: var(--stone); margin: 0.55rem 0 0.2rem; }
.rail-card h3 { font-size: 0.88rem; line-height: 1.4; font-weight: 600; padding-bottom: 0.75rem; }

.split {
  display: grid; grid-template-columns: 1.35fr 0.85fr; gap: 1.25rem;
  padding: 1.25rem 0 1.5rem; border-top: 1px solid var(--line);
}
.feed-list { list-style: none; }
.feed-list li + li { border-top: 1px solid var(--line); }
.feed-list .d { font-size: 0.72rem; color: var(--stone); font-variant-numeric: tabular-nums; }
.feed-list .c { font-size: 0.68rem; color: var(--accent); }
.feed-list strong { font-size: 0.92rem; font-weight: 600; line-height: 1.4; }

/* Rank C — media density */
.rank {
  background: var(--card);
  border: 0;
  border-top: 3px solid var(--accent);
  padding: 0;
}
.rank-head {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 0.75rem 0.85rem 0.4rem;
  border-bottom: 1px solid var(--line);
}
.rank-head h2 {
  font-family: "Shippori Mincho", serif;
  font-size: 1.05rem; letter-spacing: 0.1em; font-weight: 700;
}
.rank-head a { font-size: 0.7rem; color: var(--stone); }
.rank ol { list-style: none; padding: 0.15rem 0.85rem 0.75rem; margin: 0; }
.rank li + li { border-top: 1px solid var(--line); }
.rank a {
  display: grid; grid-template-columns: 2.65rem 1fr; gap: 0.65rem;
  padding: 0.65rem 0; align-items: center; font-size: 0.84rem; line-height: 1.4;
}
.rank .rn {
  position: relative; width: 2.65rem; height: 2.65rem;
  background-color: #2a3038;
  background-size: cover; background-position: center; background-repeat: no-repeat;
  flex-shrink: 0;
}
.rank .rn::after {
  content: attr(data-n);
  position: absolute; left: 0; bottom: 0;
  background: var(--accent); color: #f4f0ea;
  font-size: 0.65rem; font-weight: 600; letter-spacing: 0.02em;
  padding: 0.12rem 0.38rem; line-height: 1.15;
  font-family: "IBM Plex Sans JP", system-ui, sans-serif;
  font-style: normal;
}
.rank li:first-child .rn::after { background: #8B3A2F; }
.rank .rt { font-weight: 600; }
.rank .rn1 { background-image: url("media/shiho/featured.jpg"); }
.rank .rn2 { background-image: url("media/kokuhosha-eyecatch.jpg"); }
.rank .rn3 { background-image: url("media/goto-card.jpg"); }
.rank .rn4 { background-image: url("media/goto-series.jpg"); }
.rank .rn5 {
  background-color: #fff;
  background-image: url("brand/logo-vertical.jpg");
  background-size: contain; background-position: center;
}

.series { padding: 0.5rem 0 1.5rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.chips a {
  border: 1px solid var(--ink); padding: 0.45rem 0.75rem; font-size: 0.8rem;
  background: var(--card);
}
.chips a:hover { background: var(--accent); color: #f3efe8; }

.about { padding: 0 0 2rem; border-top: 1px solid var(--line); padding-top: 1.25rem; }
.about h2 { font-family: "Shippori Mincho", serif; font-size: 1rem; margin-bottom: 0.4rem; }
.about p { font-size: 0.88rem; color: var(--stone); max-width: 40em; }
.about a { text-decoration: underline; text-underline-offset: 2px; }

.ft { border-top: 1px solid var(--ink); padding: 1.5rem 0 2rem; background: #ebe6de; }
.fn { font-family: "Shippori Mincho", serif; letter-spacing: 0.2em; font-weight: 700; }
.fb { font-size: 0.7rem; color: var(--stone); margin: 0.3rem 0 0.85rem; }
.addr { display: grid; gap: 0.3rem; }
.addr > div { display: grid; grid-template-columns: 5.5em 1fr; gap: 0.5rem; }
.addr dt { font-size: 0.7rem; color: var(--accent); font-weight: 600; }
.addr dd { font-size: 0.84rem; color: var(--stone); }

@media (max-width: 820px) {
  .nav { display: none; }
  .split { grid-template-columns: 1fr; }
  .feed-list a { grid-template-columns: 2.4rem 2.6rem 1fr; }
  .feed-list .c { display: none; }
  .feed-thumb { width: 2.6rem; height: 1.75rem; }
  .cover { min-height: 420px; }
}



/* ===== Level-2 & hubs (墨藍 lock) ===== */
.page-hero { padding: 1.75rem 0 1.1rem; border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.page-hero .kicker { font-size: 0.68rem; letter-spacing: 0.16em; color: var(--stone); margin-bottom: 0.45rem; }
.page-hero h1 { font-family: "Shippori Mincho", serif; font-size: clamp(1.55rem, 3vw, 2.1rem); letter-spacing: 0.08em; font-weight: 700; }
.page-hero .deck { margin-top: 0.65rem; font-size: 0.92rem; color: var(--stone); max-width: 36rem; line-height: 1.75; }
.page-hero .mark {
  position: absolute; right: 4%; top: 10%;
  font-family: "Shippori Mincho", serif; font-size: clamp(5rem, 14vw, 9rem);
  color: var(--accent); opacity: 0.06; line-height: 1; pointer-events: none; user-select: none;
}
.nav a[aria-current="page"] { color: var(--ink); font-weight: 600; border-bottom: 1px solid var(--ink); }

.filters { display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 1rem 0 0.25rem; }
.filters a, .filters span {
  border: 1px solid var(--line); padding: 0.35rem 0.7rem; font-size: 0.75rem; background: var(--card); color: var(--stone);
}
.filters a.is-on, .filters span.is-on { border-color: var(--accent); color: #f4f0ea; background: var(--accent); }

.alist { list-style: none; padding: 0.5rem 0 2rem; }
.alist li + li { border-top: 1px solid var(--line); }
.alist a {
  display: grid; grid-template-columns: 5.5rem 7.5rem 1fr; gap: 0.85rem;
  padding: 0.95rem 0; align-items: center;
}
.alist .d { font-size: 0.72rem; color: var(--stone); font-variant-numeric: tabular-nums; }
.alist .thumb {
  width: 7.5rem; height: 4.6rem; background: #2a3038; background-size: cover; background-position: center; border: 1px solid var(--line);
}
.alist .meta .c { font-size: 0.68rem; color: var(--accent); display: block; margin-bottom: 0.2rem; }
.alist .meta strong { font-size: 1rem; font-weight: 600; line-height: 1.4; display: block; }
.alist .meta .ex { font-size: 0.8rem; color: var(--stone); margin-top: 0.25rem; line-height: 1.5; }
.t1 { background-image: url("media/shiho/featured.jpg"); }
.t2 { background-image: url("media/kokuhosha-eyecatch.jpg"); }
.t3 { background-image: url("media/goto-card.jpg"); }
.t4 { background-image: url("media/goto-series.jpg"); }
.t5 { background: #fff url("brand/logo-vertical.jpg") center/contain no-repeat; }

.dgrid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.85rem;
  padding: 1.25rem 0 2rem;
}
.dcard {
  background: var(--card); border: 1px solid var(--line); padding: 1.1rem 1rem 1.2rem;
  display: flex; flex-direction: column; gap: 0.45rem; min-height: 9.5rem;
}
.dcard:hover { border-color: var(--accent); }
.dcard .dk { font-size: 0.65rem; letter-spacing: 0.12em; color: var(--accent); font-weight: 600; }
.dcard h2 { font-family: "Shippori Mincho", serif; font-size: 1.05rem; letter-spacing: 0.06em; }
.dcard p { font-size: 0.82rem; color: var(--stone); line-height: 1.55; flex: 1; }
.dcard .go { font-size: 0.72rem; color: var(--ink); border-top: 1px solid var(--line); padding-top: 0.55rem; margin-top: auto; }

.rgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.85rem; padding: 1.25rem 0 2rem; }
.rcard {
  display: grid; grid-template-columns: 4.2rem 1fr; gap: 0.9rem;
  background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--accent);
  padding: 1rem;
}
.ravatar {
  width: 4.2rem; height: 4.2rem; border-radius: 50%;
  background: linear-gradient(145deg, #3d4550, var(--accent));
  display: grid; place-items: center;
  font-family: "Shippori Mincho", serif; color: #f4f0ea; font-size: 1.1rem; letter-spacing: 0.08em;
}
.rcard h2 { font-size: 0.98rem; font-weight: 600; margin-bottom: 0.15rem; }
.rcard .role { font-size: 0.7rem; color: var(--accent); margin-bottom: 0.35rem; }
.rcard p { font-size: 0.8rem; color: var(--stone); line-height: 1.55; }

.about-body { padding: 1.5rem 0 2.5rem; max-width: 38rem; }
.about-body p { font-size: 1rem; line-height: 1.9; margin-bottom: 1.1rem; }
.about-body a { text-decoration: underline; text-underline-offset: 3px; }
.about-note {
  margin-top: 1.5rem; padding: 0.9rem 1rem; border-left: 3px solid var(--accent);
  background: var(--card); font-size: 0.85rem; color: var(--stone); line-height: 1.7;
}

/* Article detail */
.article {
  padding: 1.5rem 0 2.5rem; max-width: 40rem;
}
.article .ac { font-size: 0.68rem; letter-spacing: 0.14em; color: var(--accent); margin-bottom: 0.5rem; }
.article h1 {
  font-family: "Shippori Mincho", serif; font-size: clamp(1.45rem, 2.8vw, 1.95rem);
  line-height: 1.45; font-weight: 700; letter-spacing: 0.04em; margin-bottom: 0.75rem;
}
.article .ameta { font-size: 0.78rem; color: var(--stone); margin-bottom: 1.25rem; }
.article .eyecatch {
  aspect-ratio: 16/9; background: #2a3038 center/cover no-repeat; border: 1px solid var(--line);
  margin-bottom: 1.35rem;
}
.article .abody p { font-size: 1.05rem; line-height: 2.05; letter-spacing: 0.02em; margin-bottom: 1.25rem; }
.article .abody h2 {
  font-family: "Shippori Mincho", serif; font-size: 1.15rem; margin: 1.75rem 0 0.65rem; letter-spacing: 0.06em;
}
.article .credit { font-size: 0.72rem; color: var(--stone); margin-top: 1.5rem; padding-top: 0.85rem; border-top: 1px solid var(--line); }
.article .back { display: inline-block; margin-top: 1.5rem; font-size: 0.8rem; color: var(--stone); border-bottom: 1px solid var(--line); }

@media (max-width: 820px) {
  .alist a { grid-template-columns: 3.2rem 1fr; }
  .alist .thumb { display: none; }
  .dgrid { grid-template-columns: 1fr; }
  .rgrid { grid-template-columns: 1fr; }
}


.article .adek { font-size: 0.92rem; color: var(--stone); margin: -0.35rem 0 0.75rem; }
.article .alead {
  font-size: 1.05rem; line-height: 2.0; letter-spacing: 0.02em; margin: 0 0 1.35rem;
  padding-bottom: 1.1rem; border-bottom: 1px solid var(--line);
}
.article .abody h2 {
  font-family: "Shippori Mincho", serif; font-size: 1.15rem;
  margin: 1.75rem 0 0.65rem; letter-spacing: 0.06em;
}
.cover-slide { cursor: pointer; }
.cover-link {
  position: relative; z-index: 1; display: block; color: inherit; text-decoration: none;
}
.cover-link:focus-visible { outline: 2px solid #f4f0ea; outline-offset: 4px; }


/* Writer intro (v1相当・墨藍) */
.author-card {
  display: grid; grid-template-columns: 4.5rem 1fr; gap: 0.95rem 1.1rem;
  margin-top: 2rem; padding: 1.15rem 1.1rem;
  background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--accent);
}
.author-avatar {
  width: 4.5rem; height: 4.5rem; border-radius: 50%;
  background: linear-gradient(145deg, #3d4550, var(--accent));
  display: grid; place-items: center;
  font-family: "Shippori Mincho", serif; color: #f4f0ea;
  font-size: 1rem; letter-spacing: 0.08em;
}
.author-label { margin: 0; font-size: 0.62rem; letter-spacing: 0.16em; color: var(--stone); }
.author-name { margin: 0.2rem 0 0.15rem; font-size: 1rem; font-weight: 600; }
.author-role { margin: 0 0 0.45rem; font-size: 0.75rem; color: var(--accent); }
.author-bio { margin: 0; font-size: 0.88rem; line-height: 1.7; color: var(--stone); letter-spacing: 0.01em; }
.author-links { margin: 0.55rem 0 0; display: flex; gap: 0.85rem; font-size: 0.75rem; }
.author-links a { text-decoration: underline; text-underline-offset: 2px; color: var(--ink); }
@media (max-width: 820px) {
  .author-card { grid-template-columns: 3.5rem 1fr; }
  .author-avatar { width: 3.5rem; height: 3.5rem; font-size: 0.9rem; }
}
