/* =========================================================================
   最愛のパートナー — 共通デザインシステム
   ミニマル・モダン / ゴシック / 暖色ニュートラル + 差し色1色（テーマ切替）
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&family=Zen+Kaku+Gothic+New:wght@400;500;700;900&display=swap');

/* ---- テーマ（差し色） -------------------------------------------------- */
:root {
  /* ニュートラル（暖色寄り） */
  --bg:        oklch(0.975 0.006 85);
  --bg-deep:   oklch(0.955 0.008 84);
  --surface:   oklch(0.993 0.004 86);
  --ink:       oklch(0.245 0.010 60);
  --ink-soft:  oklch(0.430 0.010 60);
  --muted:     oklch(0.585 0.008 65);
  --faint:     oklch(0.700 0.006 70);
  --line:      oklch(0.895 0.008 80);
  --line-soft: oklch(0.930 0.006 82);

  /* 差し色：朱（デフォルト） */
  --accent:      oklch(0.555 0.135 33);
  --accent-deep: oklch(0.470 0.120 33);
  --accent-soft: oklch(0.955 0.030 40);
  --accent-name: "朱";

  /* タイポ */
  --sans: "Zen Kaku Gothic New", "Noto Sans JP", system-ui, sans-serif;
  --body: "Noto Sans JP", "Zen Kaku Gothic New", system-ui, sans-serif;

  /* レイアウト */
  --maxw: 1180px;
  --readw: 720px;
  --radius: 3px;
}
[data-theme="ai"] {
  --accent:      oklch(0.520 0.110 252);
  --accent-deep: oklch(0.430 0.100 252);
  --accent-soft: oklch(0.955 0.024 250);
  --accent-name: "藍";
}
[data-theme="midori"] {
  --accent:      oklch(0.495 0.095 158);
  --accent-deep: oklch(0.410 0.085 158);
  --accent-soft: oklch(0.955 0.022 160);
  --accent-name: "深緑";
}

/* ---- リセット --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.85;
  font-feature-settings: "palt" 1;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--sans); font-weight: 700; line-height: 1.4; margin: 0; }
p { margin: 0; }

/* ---- 共通ユーティリティ ------------------------------------------------ */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
}
.label-jp {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--muted);
}
.num {
  font-family: var(--sans);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
}

/* ---- ヘッダー --------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklch, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.1) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: baseline; gap: 12px; min-width: 0; }
.brand__mark {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.brand__mark .dot { color: var(--accent); }
.brand__by {
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--muted);
  white-space: nowrap;
}
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  padding: 8px 14px;
  border-radius: var(--radius);
  transition: color .18s ease, background .18s ease;
  white-space: nowrap;
}
.nav a:hover { color: var(--ink); background: var(--bg-deep); }
.nav a.is-active { color: var(--accent); }
.nav a.ext::after { content: "↗"; font-size: 0.85em; margin-left: 4px; opacity: 0.6; }

/* ---- フッター --------------------------------------------------------- */
.site-footer {
  margin-top: 96px;
  border-top: 1px solid var(--line);
  background: var(--bg-deep);
}
.site-footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 48px 32px 56px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 28px;
}
.site-footer__brand { font-family: var(--sans); font-weight: 700; font-size: 16px; letter-spacing: 0.04em; }
.site-footer__brand .dot { color: var(--accent); }
.site-footer p { font-size: 12.5px; color: var(--muted); line-height: 1.9; }
.site-footer a.u { color: var(--ink-soft); border-bottom: 1px solid var(--line); padding-bottom: 1px; transition: color .18s, border-color .18s; }
.site-footer a.u:hover { color: var(--accent); border-color: var(--accent); }
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; font-family: var(--sans); font-size: 13px; }

/* ---- 画像プレースホルダー ---------------------------------------------- */
.ph {
  position: relative;
  background-color: var(--bg-deep);
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(60, 50, 40, 0) 0 10px,
    rgba(60, 50, 40, 0.055) 10px 11px
  );
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--muted);
}
.ph::after {
  content: "";
}
.ph__tag {
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  padding: 7px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--muted);
  box-shadow: 0 1px 3px rgba(60, 50, 40, 0.06);
}
/* 実画像（プレースホルダー差し替え） */
.img-fill { width: 100%; height: 100%; object-fit: cover; display: block; background: var(--bg-deep); }
.card__media.has-img, .article-media .frame, .profile-portrait.frame { overflow: hidden; }
.article-media .frame { aspect-ratio: 16 / 9; border-radius: var(--radius); }
.profile-portrait.frame { aspect-ratio: 3 / 4; border-radius: var(--radius); }
.card__media.has-img { aspect-ratio: 4 / 3; }

/* ---- ボタン / リンク ---------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  padding: 12px 22px;
  border-radius: 100px;
  border: 1px solid var(--ink);
  color: var(--ink);
  transition: all .2s ease;
}
.btn:hover { background: var(--ink); color: var(--bg); }
.btn--accent { border-color: var(--accent); color: var(--accent); }
.btn--accent:hover { background: var(--accent); color: var(--surface); }
.arrow-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans); font-size: 13.5px; font-weight: 500; letter-spacing: 0.06em;
  color: var(--accent);
}
.arrow-link .ar { transition: transform .2s ease; }
.arrow-link:hover .ar { transform: translateX(4px); }

/* ====== Tweaks パネル =================================================== */
#tw-panel {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
  width: 248px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 18px 48px -16px oklch(0.2 0.02 60 / 0.30), 0 2px 8px oklch(0.2 0.02 60 / 0.08);
  font-family: var(--sans);
  padding: 16px 16px 18px;
  display: none;
}
#tw-panel.open { display: block; }
.tw-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.tw-title { font-size: 12px; font-weight: 700; letter-spacing: 0.18em; color: var(--ink); }
.tw-close { border: 0; background: none; cursor: pointer; color: var(--faint); font-size: 18px; line-height: 1; padding: 2px; border-radius: 4px; }
.tw-close:hover { color: var(--ink); }
.tw-sec { font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.tw-swatches { display: flex; gap: 10px; }
.tw-swatch {
  flex: 1;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 6px 8px;
  background: var(--bg);
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  transition: border-color .15s, transform .12s;
}
.tw-swatch:hover { transform: translateY(-1px); }
.tw-swatch .chip { width: 26px; height: 26px; border-radius: 50%; box-shadow: inset 0 0 0 1px oklch(0.2 0.02 60 / 0.08); }
.tw-swatch .nm { font-size: 12px; font-weight: 500; color: var(--ink-soft); }
.tw-swatch[aria-pressed="true"] { border-color: var(--ink); }
.tw-swatch[aria-pressed="true"] .nm { color: var(--ink); }

/* ====== TOP：ヒーロー =================================================== */
.hero { padding: 88px 0 64px; }
.hero__eyebrow { margin-bottom: 26px; }
.hero__title {
  font-size: clamp(40px, 6.5vw, 76px);
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1.2;
  margin: 0 0 28px;
}
.hero__title .dot { color: var(--accent); }
.hero__lead {
  font-family: var(--sans);
  font-size: clamp(16px, 1.9vw, 20px);
  font-weight: 500;
  color: var(--ink);
  max-width: 30em;
  margin-bottom: 30px;
  line-height: 1.9;
}
.hero__concept {
  max-width: 38em;
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 2.05;
  border-left: 2px solid var(--accent);
  padding-left: 22px;
}
.hero__concept strong { color: var(--ink); font-weight: 700; }

/* メタバー */
.listbar {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; padding: 20px 0 26px; border-top: 1px solid var(--ink);
  margin-top: 8px;
}
.listbar__count { font-family: var(--sans); font-size: 13px; letter-spacing: 0.16em; color: var(--muted); }
.listbar__count b { color: var(--ink); font-weight: 700; font-size: 15px; }
.listbar__note { font-size: 12px; color: var(--faint); letter-spacing: 0.08em; }

/* ====== カードグリッド ================================================== */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px 8px;
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
}
.card {
  background: var(--surface);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column;
  transition: background .2s ease;
}
.card:hover { background: var(--bg-deep); }
.card__link { display: flex; flex-direction: column; height: 100%; padding: 0; }
.card__media { aspect-ratio: 4 / 3; }
.card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.card__kicker {
  display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
  font-family: var(--sans); font-size: 11.5px; letter-spacing: 0.14em; color: var(--muted);
}
.card__kicker .no { color: var(--accent); font-weight: 700; font-variant-numeric: tabular-nums; }
.card__kicker .sep { width: 14px; height: 1px; background: var(--line); }
.card__title {
  font-size: 21px; font-weight: 700; line-height: 1.5; letter-spacing: 0.01em;
  margin-bottom: 10px; text-wrap: pretty;
}
.card:hover .card__title { color: var(--accent-deep); }
.card__name { font-family: var(--sans); font-size: 12.5px; font-weight: 500; color: var(--faint); letter-spacing: 0.08em; margin-bottom: 14px; }
.card__lead {
  font-size: 13.5px; color: var(--ink-soft); line-height: 1.95; margin-bottom: 20px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.card__more { margin-top: auto; font-family: var(--sans); font-size: 12.5px; font-weight: 500; letter-spacing: 0.1em; color: var(--accent); display: inline-flex; align-items: center; gap: 7px; }
.card:hover .card__more .ar { transform: translateX(4px); }
.card__more .ar { transition: transform .2s ease; }

/* ====== 記事ページ ===================================================== */
.crumb { padding: 28px 0 0; font-family: var(--sans); font-size: 12.5px; letter-spacing: 0.08em; color: var(--muted); display: flex; gap: 10px; align-items: center; }
.crumb a { color: var(--ink-soft); }
.crumb a:hover { color: var(--accent); }
.crumb .sep { color: var(--faint); }
.crumb > span { white-space: nowrap; }

.article-hero { padding: 36px 0 40px; }
.article-kicker {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  font-family: var(--sans); font-size: 12px; letter-spacing: 0.16em; color: var(--muted); margin-bottom: 22px;
}
.article-kicker .no { color: var(--accent); font-weight: 700; font-size: 13px; font-variant-numeric: tabular-nums; }
.article-kicker .en { letter-spacing: 0.24em; }
.article-kicker .sep { width: 16px; height: 1px; background: var(--line); }
.article-title {
  font-size: clamp(32px, 5vw, 54px); font-weight: 900; line-height: 1.32; letter-spacing: 0.01em;
  max-width: 18em; margin-bottom: 22px; text-wrap: balance;
}
.article-name { font-family: var(--sans); font-size: 15px; font-weight: 700; color: var(--ink); letter-spacing: 0.06em; margin-bottom: 6px; }
.article-product { font-size: 13px; color: var(--muted); letter-spacing: 0.04em; }
.article-lead {
  max-width: var(--readw); margin: 30px 0 0; font-family: var(--sans); font-weight: 500;
  font-size: clamp(16px, 2vw, 19px); line-height: 1.95; color: var(--ink);
}
.article-media { margin: 44px 0 8px; }
.article-media .ph { aspect-ratio: 16 / 9; border-radius: var(--radius); }

.article-body { max-width: var(--readw); margin: 0 auto; padding: 56px 0 0; }
.article-body section { margin-bottom: 48px; }
.article-body h2 {
  font-size: 13px; letter-spacing: 0.2em; color: var(--accent); font-weight: 700;
  margin-bottom: 18px; display: flex; align-items: center; gap: 12px;
}
.article-body h2::before { content: ""; width: 22px; height: 2px; background: var(--accent); display: inline-block; }
.article-body p { font-size: 16.5px; line-height: 2.1; color: var(--ink); text-wrap: pretty; }
.inline-verify {
  display: inline-block; font-family: var(--sans); font-size: 10.5px; letter-spacing: 0.1em;
  color: var(--muted); border: 1px solid var(--line); border-radius: 100px; padding: 2px 9px;
  margin-left: 8px; vertical-align: 1px;
}

.pull {
  max-width: var(--readw); margin: 8px auto 56px; padding: 38px 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.pull p {
  font-family: var(--sans); font-weight: 700; font-size: clamp(20px, 3vw, 28px);
  line-height: 1.65; letter-spacing: 0.01em; color: var(--ink); text-wrap: balance;
}
.pull .mk { color: var(--accent); margin-right: 10px; }

.spec { max-width: var(--readw); margin: 0 auto 28px; }
.spec__title { font-family: var(--sans); font-size: 11.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.spec dl { margin: 0; border-top: 1px solid var(--line); }
.spec .row { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 14px 4px; border-bottom: 1px solid var(--line); }
.spec dt { font-family: var(--sans); font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: 0.08em; margin: 0; }
.spec dd { margin: 0; font-size: 14.5px; color: var(--ink); line-height: 1.7; }
.verify-note {
  max-width: var(--readw); margin: 0 auto; font-size: 12.5px; color: var(--faint);
  line-height: 1.85; letter-spacing: 0.04em;
}
.verify-note b { color: var(--ink-soft); font-weight: 500; }

.pager { max-width: var(--readw); margin: 64px auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.pager a { background: var(--surface); padding: 24px 26px; transition: background .2s; min-height: 92px; display: flex; flex-direction: column; justify-content: center; }
.pager a:hover { background: var(--bg-deep); }
.pager .dir { font-family: var(--sans); font-size: 11px; letter-spacing: 0.18em; color: var(--accent); margin-bottom: 9px; }
.pager .ttl { font-family: var(--sans); font-size: 15px; font-weight: 700; line-height: 1.5; color: var(--ink); }
.pager .next { text-align: right; }
.pager .empty { background: var(--bg-deep); pointer-events: none; }
.back-all { max-width: var(--readw); margin: 28px auto 0; text-align: center; }

/* ====== プロフィール =================================================== */
.profile-hero { padding: 72px 0 8px; display: grid; grid-template-columns: 1fr 360px; gap: 56px; align-items: start; }
.profile-hero__text { padding-top: 10px; }
.profile-hero h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 900; line-height: 1.25; margin: 22px 0 24px; letter-spacing: 0.02em; }
.profile-hero .reading { font-family: var(--sans); font-size: 13px; letter-spacing: 0.24em; color: var(--muted); }
.profile-hero__lead { font-family: var(--sans); font-weight: 500; font-size: 18px; line-height: 1.95; color: var(--ink); max-width: 26em; }
.profile-portrait { aspect-ratio: 3 / 4; border-radius: var(--radius); }
.profile-body { max-width: var(--readw); margin: 56px auto 0; }
.profile-body section { margin-bottom: 46px; }
.profile-body h2 { font-size: 13px; letter-spacing: 0.2em; color: var(--accent); font-weight: 700; margin-bottom: 18px; display: flex; align-items: center; gap: 12px; }
.profile-body h2::before { content: ""; width: 22px; height: 2px; background: var(--accent); display: inline-block; }
.profile-body p { font-size: 16px; line-height: 2.05; color: var(--ink); margin-bottom: 16px; text-wrap: pretty; }
.profile-body p + p { margin-top: 0; }

/* ---- レスポンシブ ------------------------------------------------------ */
@media (max-width: 960px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .profile-hero { grid-template-columns: 1fr; gap: 32px; }
  .profile-portrait { max-width: 320px; }
}
@media (max-width: 720px) {
  .wrap, .site-header__inner, .site-footer__inner { padding-left: 20px; padding-right: 20px; }
  .brand__by { display: none; }
  .nav a { padding: 8px 9px; }
}
