:root {
  --yp-night-1000: #050505;
  --yp-night-950: #090909;
  --yp-night-900: #101010;
  --yp-night-850: #151515;
  --yp-night-800: #1b1b1b;
  --yp-navy-950: #090909;
  --yp-navy-900: #101010;
  --yp-navy-800: #1b1b1b;
  --yp-blue-700: #aaa;
  --yp-blue-100: #181818;
  --yp-accent: #9b3e4a;
  --yp-accent-bright: #c05b67;
  --yp-amber: #a86f3d;
  --yp-ink: #e8e8e8;
  --yp-muted: #9b9b9b;
  --yp-line: #303030;
  --yp-surface: #090909;
  --yp-panel: #151515;
  --yp-white: #fff;
  --yp-cta: #e2e2df;
  --yp-cta-hover: #f4f4f1;
  --yp-warning: #a86f3d;
  --yp-radius: 4px;
  --yp-shadow: 0 12px 30px rgba(0, 0, 0, 0.34);
}

html { scroll-behavior: smooth; }
body {
  background-color: var(--yp-surface);
  background-image:
    linear-gradient(rgba(255,255,255,.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.009) 1px, transparent 1px);
  background-size: 28px 28px;
  color: var(--yp-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  font-size: 18px;
  line-height: 1.9;
}
a { color: #c7c7c7; text-decoration-color: rgba(155, 62, 74, 0.85); text-underline-offset: 0.24em; }
a:hover { color: #fff; }
.site-name-text, .logo-text { letter-spacing: 0.05em; overflow-wrap: normal; word-break: keep-all; }
#header-container, #navi { background: var(--yp-night-1000); }
#header-container a, #navi a { color: var(--yp-white); }
#navi .navi-in > ul > li > a { font-weight: 700; letter-spacing: 0.02em; }
#navi .navi-in > ul > li > a:hover { background: rgba(155, 62, 74, 0.16); }
.main, .sidebar { background: var(--yp-night-900); border: 1px solid #292929; border-radius: var(--yp-radius); box-shadow: var(--yp-shadow); }
.entry-title { color: #f4f1eb; font-size: clamp(1.65rem, 5.4vw, 2.35rem); line-height: 1.42; }
.article { color: var(--yp-ink); font-size: 18px; line-height: 1.9; }
.single .article { margin-inline: auto; max-width: 47rem; }
.single .article::before {
  border-bottom: 1px solid #2d2d2d;
  color: #8e8e8e;
  content: "ARCHIVE / 編集部の調査記録";
  display: block;
  font-family: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  margin: 0 0 1.35rem;
  padding: 0 0 0.65rem;
}
.single:has(.yp-flow-step) .article::before { color: #b06972; content: "PERSONAL LOG / 携帯ウェブ時代からの利用記録"; }
.article > p,
.article > ul,
.article > ol { max-width: 43rem; }
.article h2 {
  background: #171717;
  border-bottom: 1px solid #2d2d2d;
  border-left: 3px solid var(--yp-accent);
  border-radius: 0 2px 2px 0;
  color: #f4f1eb;
  font-size: clamp(1.35rem, 4.5vw, 1.85rem);
  line-height: 1.55;
  margin: 3.2em 0 1.35em;
  padding: 0.72em 0.9em 0.72em 1em;
  position: relative;
}
.article h2::before {
  color: #a25a63;
  content: "SECTION";
  display: block;
  font-family: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.54em;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1;
  margin-bottom: 0.48rem;
}
.article h3 {
  border-bottom: 1px dashed #393939;
  border-left: 0;
  color: #dedede;
  font-size: clamp(1.12rem, 3.9vw, 1.35rem);
  line-height: 1.6;
  margin: 2.15em 0 1em;
  padding: 0.2em 0 0.45em 1.15em;
  position: relative;
}
.article h3::before {
  color: var(--yp-accent-bright);
  content: ">";
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  left: 0;
  position: absolute;
}
.article p { margin: 1.35em 0; }
.article li { margin-block: 0.52em; }
.article blockquote {
  background: #111;
  border: 0;
  border-left: 3px solid var(--yp-accent);
  color: #dce2e8;
  margin: 1.7rem 0;
  padding: 1rem 1.15rem;
}

.yp-disclosure,
.yp-age-notice {
  align-items: flex-start;
  background: #151313;
  border: 1px solid #453033;
  border-radius: 10px;
  color: #d8d2d3;
  display: flex;
  font-size: 0.9rem;
  gap: 0.8rem;
  line-height: 1.65;
  margin: 0 0 1.4rem;
  padding: 0.95rem 1.05rem;
}
.yp-disclosure strong,
.yp-age-notice strong { flex: 0 0 auto; letter-spacing: 0.04em; }
.yp-age-notice { background: #141414; border-color: #343434; color: #d4d4d4; }

.yp-hero {
  background:
    radial-gradient(circle at 84% 12%, rgba(155, 62, 74, 0.17), transparent 28%),
    linear-gradient(145deg, #0a0a0a 0%, #121212 62%, #171313 100%);
  border: 1px solid #333;
  border-radius: 3px;
  color: var(--yp-white);
  margin: 0 0 1.5rem;
  overflow: hidden;
  padding: clamp(1.5rem, 5vw, 3.5rem);
  position: relative;
}
.yp-hero::after {
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.025) 0, rgba(255,255,255,.025) 1px, transparent 1px, transparent 4px);
  content: "";
  height: 18rem;
  pointer-events: none;
  position: absolute;
  right: -8rem;
  top: -8rem;
  width: 18rem;
}
.yp-eyebrow { color: #b85a65; font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 0.76rem; font-weight: 800; letter-spacing: 0.18em; margin: 0 0 0.5rem; text-transform: uppercase; }
.yp-hero__logline { color: #888; display: flex; flex-wrap: wrap; font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 0.7rem; gap: 0.4rem 1rem; letter-spacing: 0.12em; margin: 0 0 1.5rem; }
.yp-hero h1,
.yp-hero__title { color: var(--yp-white); font-size: clamp(2rem, 8vw, 3.25rem); font-weight: 800; line-height: 1.2; margin: 0 0 0.6rem; }
.home.page .entry-title {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}
.yp-hero__lead { font-size: clamp(1.05rem, 3.8vw, 1.35rem); font-weight: 700; line-height: 1.7; margin: 0; max-width: 36em; }
.yp-hero__text { border-top: 1px dashed #3a3031; color: #aaa; font-size: 0.95rem; margin-top: 1.35rem; max-width: 43em; padding-top: 1rem; }
.yp-log-strip { border-block: 1px solid #292929; color: #818181; display: flex; flex-wrap: wrap; font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 0.68rem; gap: 0.35rem 1.2rem; letter-spacing: 0.08em; margin: -0.35rem 0 1.5rem; padding: 0.55rem 0.15rem; }
.yp-log-strip b { color: #b35b65; font-weight: 700; }

.yp-route-grid,
.yp-card-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; margin: 1.4rem 0 2rem; }
.yp-route-card,
.yp-content-card {
  background: var(--yp-panel);
  border: 1px solid var(--yp-line);
  border-radius: 3px;
  box-shadow: none;
  color: var(--yp-ink);
  display: block;
  padding: 1.15rem;
  text-decoration: none;
}
.yp-route-card:hover,
.yp-content-card:hover { background: #191515; border-color: #713740; box-shadow: none; transform: translateX(2px); }
.yp-route-card strong,
.yp-content-card strong { color: #f0f2f4; display: block; font-size: 1.05rem; }
.yp-route-card span,
.yp-content-card span { color: var(--yp-muted); display: block; font-size: 0.9rem; margin-top: 0.25rem; }
.yp-route-card b { color: #b85a65; display: block; font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 0.72rem; letter-spacing: 0.12em; margin-bottom: 0.45rem; }
.yp-content-card::before { color: #8e555b; content: "調査ファイル"; display: block; font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 0.65rem; font-weight: 700; letter-spacing: 0.1em; margin-bottom: 0.35rem; }

.yp-section { margin: 3.2rem 0; }
.yp-section__heading { margin-bottom: 0.4rem !important; }
.yp-section__intro { color: var(--yp-muted); margin-top: 0; }
.yp-flow { align-items: stretch; display: grid; gap: 0.75rem; grid-template-columns: 1fr; list-style: none; margin: 1rem 0; padding: 0; }
.yp-flow li { background: var(--yp-panel); border: 1px solid var(--yp-line); border-radius: 10px; padding: 0.95rem; }
.yp-flow b { color: #b85a65; display: block; font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 0.72rem; letter-spacing: .08em; }

.yp-table-wrap { border: 1px solid var(--yp-line); border-radius: 2px; margin: 1.8rem 0; max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; -webkit-overflow-scrolling: touch; }
.yp-table-wrap table { border-collapse: separate; border-spacing: 0; min-width: 720px; width: 100%; }
.yp-table-wrap th,
.yp-table-wrap td { background: var(--yp-panel); border-bottom: 1px solid var(--yp-line); border-right: 1px solid var(--yp-line); padding: 0.85rem; text-align: left; vertical-align: top; }
.yp-table-wrap th { background: #1a1415; color: #f0eded; font-size: 0.9rem; position: sticky; top: 0; }
.yp-table-wrap th:first-child,
.yp-table-wrap td:first-child { border-left: 1px solid var(--yp-line); left: 0; min-width: 9rem; position: sticky; z-index: 1; }
.yp-table-wrap td:first-child { background: #182330; font-weight: 700; }
.yp-table-note { color: var(--yp-muted); font-size: 0.82rem; }

.yp-cta-card { background: #171717; border: 1px solid #3d3d3d; border-radius: 4px; margin: 2rem 0; padding: 1.1rem; text-align: center; }
.yp-cta-card::before { color: #b85a65; content: "PR / 公式サイトの案内"; display: block; font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.1em; margin: 0 0 0.75rem; }
.yp-cta-button {
  align-items: center;
  background: var(--yp-cta);
  border: 0;
  border-radius: 10px;
  box-sizing: border-box;
  box-shadow: none;
  color: #111 !important;
  display: inline-flex;
  font-size: 1rem;
  font-weight: 800;
  justify-content: center;
  line-height: 1.4;
  min-height: 56px;
  padding: 0.9rem 1.2rem;
  text-decoration: none;
  width: min(100%, 30rem);
}
.yp-cta-button:hover { background: var(--yp-cta-hover); outline: 2px solid #713740; outline-offset: 2px; transform: none; }
.yp-cta-button.is-disabled { background: #69727c; color: #f5f7f9 !important; box-shadow: none; cursor: not-allowed; flex-direction: column; }
.yp-cta-button small { display: block; font-size: 0.72rem; font-weight: 600; }
.yp-cta-card p { color: var(--yp-muted); font-size: 0.8rem; line-height: 1.5; margin: 0.8rem 0 0; }
.yp-cta-error { border: 1px solid #8f5353; color: #f0b8b8; padding: 0.8rem; }

.yp-pending-link {
  align-items: center;
  background: #1a2430;
  border: 1px solid var(--yp-line);
  border-radius: 2px;
  color: #d6dce2;
  display: inline-flex;
  flex-wrap: wrap;
  font-weight: 700;
  gap: 0.55rem;
  line-height: 1.5;
  margin: 0.35rem 0;
  max-width: 100%;
  padding: 0.7rem 0.9rem;
}
.yp-pending-link small { color: var(--yp-muted); font-size: 0.7rem; font-weight: 600; }
.yp-author-profile { background: #121212; border: 1px solid #363636; border-left: 3px solid #6e353c; border-radius: 2px; margin: 2.4rem 0; padding: 1.15rem; }
.yp-author-profile__label { color: #d3d3d3; font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 1rem; font-weight: 800; margin: 0 0 0.45rem !important; }
.yp-author-profile p { margin: 0.5rem 0; }
.yp-author-profile small { color: var(--yp-muted); display: block; line-height: 1.65; }

.yp-box { background: #141414; border: 1px solid #333; border-radius: 2px; margin: 1.8rem 0; padding: 1.15rem; }
.yp-box:not(.yp-box--conclusion):not(.yp-box--warning)::before { color: #8f8f8f; content: "確認記録 / VERIFIED DATA"; display: block; font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; margin-bottom: 0.65rem; }
.yp-box[role="figure"]::before { color: #a85a63 !important; content: "時系列ログ / ARCHIVE" !important; }
.yp-box--conclusion { background: #171314; border-color: #503238; border-left: 3px solid var(--yp-accent); }
.yp-box--conclusion::before { color: #c46b75; content: "編集部メモ / EDITOR'S NOTE"; display: block; font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.1em; margin-bottom: 0.65rem; }
.yp-box--warning { background: #191512; border-color: #4c3928; border-left: 3px solid var(--yp-warning); }
.yp-box--warning::before { color: #bd8552; content: "注意 / CAUTION"; display: block; font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.1em; margin-bottom: 0.65rem; }
.yp-flow-step { border-left: 2px solid #63343a; margin: 1rem 0; padding: 0.2rem 0 0.2rem 1rem; }
.single:has(.yp-flow-step) .article > p:nth-of-type(-n+4) { position: relative; }
.yp-pros-cons { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.yp-checklist li { margin-bottom: 0.55rem; }
.yp-meta { color: var(--yp-muted); font-size: 0.82rem; }

.yp-evidence-key {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1.2rem 0 1.8rem;
}
.yp-evidence-key__item {
  align-items: center;
  background: #141414;
  border: 1px solid #353535;
  color: #c9c9c9;
  display: inline-flex;
  font-size: 0.78rem;
  gap: 0.45rem;
  line-height: 1.45;
  padding: 0.5rem 0.65rem;
}
.yp-evidence-key__item b {
  color: #f0f0f0;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
}
.yp-evidence-key__item--personal { border-left: 3px solid #9c4a55; }
.yp-evidence-key__item--official { border-left: 3px solid #788897; }
.yp-evidence-key__item--unconfirmed { border-left: 3px solid #a66e3f; }

.yp-evidence {
  background: #131313;
  border: 1px solid #343434;
  margin: 1.5rem 0;
  padding: 1rem 1.1rem;
}
.yp-evidence > strong {
  display: block;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}
.yp-evidence p { margin: 0.55rem 0; }
.yp-evidence--personal { border-left: 3px solid #9c4a55; }
.yp-evidence--personal > strong { color: #d67b86; }
.yp-evidence--official { border-left: 3px solid #788897; }
.yp-evidence--official > strong { color: #aebdca; }
.yp-evidence--unconfirmed { background: #181411; border-left: 3px solid #a66e3f; }
.yp-evidence--unconfirmed > strong { color: #d49a67; }

.yp-age-gate[hidden] { display: none; }
.yp-age-gate { align-items: center; background: rgba(5, 14, 26, 0.86); display: flex; inset: 0; justify-content: center; padding: 1rem; position: fixed; z-index: 999999; }
.yp-age-gate__panel { background: var(--yp-night-850); border: 1px solid #394452; border-radius: 18px; box-shadow: 0 24px 80px rgba(0,0,0,.55); max-width: 31rem; padding: clamp(1.35rem, 5vw, 2.2rem); text-align: center; width: 100%; }
.yp-age-gate__panel h2 { color: #f4f1eb; font-size: 1.7rem; margin: 0.2rem 0 0.8rem; }
.yp-age-gate__eyebrow { color: #b85a65; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.18em; margin: 0; }
.yp-age-gate__enter { background: #e2e2df; border: 0; border-radius: 4px; color: #111; cursor: pointer; display: block; font-size: 1rem; font-weight: 800; margin: 1.2rem 0 0.8rem; min-height: 56px; width: 100%; }
.yp-age-gate__leave { display: block; font-size: 0.9rem; margin: 0.4rem; }
.yp-age-gate__panel small { color: var(--yp-muted); display: block; font-size: 0.75rem; margin-top: 1rem; }
.yp-age-gate-open { overflow: hidden; }

.footer-bottom { background: var(--yp-night-1000); color: #dbe7ef; }

@media (min-width: 600px) {
  .yp-route-grid { grid-template-columns: repeat(3, 1fr); }
  .yp-card-grid { grid-template-columns: repeat(2, 1fr); }
  .yp-flow { grid-template-columns: repeat(4, 1fr); }
  .yp-pros-cons { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 599px) {
  body { font-size: 18px; line-height: 1.9; }
  .site-name-text, .logo-text { font-size: clamp(1.15rem, 6vw, 1.55rem); white-space: nowrap; }
  .main { border-left: 0; border-radius: 0; border-right: 0; padding-left: 16px; padding-right: 16px; }
  .yp-hero { margin-left: -8px; margin-right: -8px; }
  .yp-hero__title { font-size: clamp(1.95rem, 10vw, 2.55rem); }
  .yp-hero__lead { font-size: 1.08rem; }
  .article h2 { font-size: 1.35rem; margin-top: 2.9em; padding: 0.75em 0.78em; }
  .article h3 { font-size: 1.13rem; margin-top: 2.2em; }
  .article p { margin: 1.45em 0; }
  .article ul, .article ol { padding-left: 1.35em; }
  .yp-box { padding: 1rem; }
  .yp-box p:first-child { margin-top: 0.4em; }
  .yp-box p:last-child { margin-bottom: 0.4em; }
  .yp-cta-button { font-size: 1rem; min-height: 58px; padding-inline: 0.9rem; }
  .yp-disclosure, .yp-age-notice { display: block; }
  .yp-disclosure strong, .yp-age-notice strong { display: block; margin-bottom: 0.25rem; }
  .yp-evidence-key { display: grid; grid-template-columns: 1fr; }
  .yp-evidence { padding: 0.9rem; }
  .yp-table-wrap::after { color: var(--yp-muted); content: "横にスクロールできます →"; display: block; font-size: 0.75rem; margin-top: 0.35rem; text-align: right; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
