:root {
  --bg: #f6f6f3;
  --ink: #1d1f24;
  --muted: #6b6f78;
  --line: #e2e2dc;
  --accent: #0e7c86;
  --link: #2a4fb8;
  --sans: -apple-system, "Segoe UI", "Hiragino Sans", "Noto Sans JP", "Yu Gothic UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); line-height: 1.6; overflow-x: clip; }
button { font: inherit; cursor: pointer; }
a { color: inherit; }

/* ロゴ */
.logo { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; letter-spacing: -0.02em; text-decoration: none; color: var(--ink); }
.logo .thin { font-weight: 300; }
.logo .mark { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--accent); position: relative; }
.logo .mark::after { content: ""; position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); top: -4px; right: -1px; box-shadow: 0 0 0 2px var(--bg); }
.logo.big { font-size: clamp(2.3rem, 9vw, 4.2rem); gap: 10px; }
.logo.big .mark { width: .85em; height: .85em; border-width: .07em; animation: orbit 12s linear infinite; }
.logo.big .mark::after { width: .28em; height: .28em; top: -.14em; right: .02em; }
/* ロゴの小さな丸が、輪の周りをゆっくり回る */
@keyframes orbit { to { transform: rotate(360deg); } }
:root { --bg: #fff; }
body[data-bg="cream"] { --bg: #f6f6f3; }
.home-foot { background: #f4f4f2 !important; }
.labels { position: fixed; top: 10px; left: 50%; transform: translateX(-50%); font-size: .75rem; color: var(--muted); background: #fffbe6; border: 1px dashed #e6cf73; border-radius: 8px; padding: 6px 10px; display: flex; flex-wrap: wrap; gap: 4px 10px; justify-content: center; width: max-content; max-width: calc(100% - 20px); }
.labels button { background: none; border: 0; padding: 0; color: var(--link); text-decoration: underline; font-size: .75rem; }

/* 検索ボタンを押した時の演出 */
.search button.glitch { animation: glitch .22s steps(2) both; background: var(--ink); color: #fff; }
@keyframes glitch {
  0% { transform: translate(0); text-shadow: none; }
  20% { transform: translate(-3px, 1px); text-shadow: 3px 0 #ff2bd6, -3px 0 #19e6ff; }
  40% { transform: translate(3px, -1px); text-shadow: -4px 0 #ff2bd6, 4px 0 #19e6ff; clip-path: inset(10% 0 40% 0); }
  60% { transform: translate(-2px, 0); text-shadow: 2px 0 #ff2bd6, -2px 0 #19e6ff; clip-path: inset(50% 0 5% 0); }
  80% { transform: translate(1px, 1px); text-shadow: -1px 0 #ff2bd6, 1px 0 #19e6ff; clip-path: none; }
  100% { transform: translate(0); text-shadow: none; }
}
@media (prefers-reduced-motion: reduce) {
  .logo.big .mark, .search button.glitch { animation: none; }
}
.logo.small { font-size: 1.15rem; flex-shrink: 0; }

/* 検索画面 */
.home { min-height: calc(100vh - 48px); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 16px 120px; text-align: center; }
.search { width: min(580px, 100%); margin-top: 28px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.bar { width: 100%; display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 99px; padding: 13px 22px; box-shadow: 0 2px 10px rgba(0,0,0,.05); color: var(--muted); cursor: text; }
.bar:focus-within { box-shadow: 0 2px 14px rgba(0,0,0,.12); }
.bar input { flex: 1; min-width: 0; font: inherit; font-size: 1.05rem; color: var(--ink); border: 0; background: none; outline: none; }
.birth { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .9rem; }
.birth select { font: inherit; font-size: .95rem; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 7px 8px; }
.birth select:invalid { color: var(--muted); }
.search button { border: 0; background: #e9e9e4; color: var(--ink); border-radius: 8px; padding: 10px 22px; font-size: .92rem; }
.search button:hover { background: var(--ink); color: #fff; }
.catch { margin: 26px 0 0; color: var(--muted); font-size: .95rem; }
.home-foot { height: 48px; display: flex; justify-content: space-between; align-items: center; padding: 0 20px; font-size: .75rem; color: var(--muted); border-top: 1px solid var(--line); background: #efefeb; }
.samples button { background: none; border: 0; color: var(--muted); text-decoration: underline; padding: 0 4px; }
.garbled { letter-spacing: .08em; color: var(--muted); }

/* 接続の演出 */
.connecting { min-height: 100vh; background: #0b0d10; display: grid; place-items: center; position: relative; overflow: hidden; }
.connecting pre { position: relative; color: #7fe3c0; font: 14px/1.9 ui-monospace, Consolas, monospace; margin: 0; padding: 16px; min-width: min(420px, 90vw); white-space: pre-wrap; }
.noise { position: absolute; inset: -50%; background: repeating-linear-gradient(0deg, rgba(255,255,255,.04) 0 1px, transparent 1px 3px); animation: drift 0.4s steps(4) infinite; }
@keyframes drift { to { transform: translateY(6px); } }

/* 検索結果 */
.serp-head { display: flex; align-items: center; gap: 20px; padding: 16px 24px 10px; flex-wrap: wrap; }
.serp-box { flex: 1; min-width: 220px; max-width: 640px; display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 99px; padding: 9px 18px; }
.signal { margin: 0 24px; font-size: .75rem; color: var(--muted); display: flex; align-items: center; gap: 8px; font-family: ui-monospace, Consolas, monospace; }
.signal .dot { width: 7px; height: 7px; border-radius: 50%; background: #26b47e; animation: blink 1.4s infinite; }
.signal .bars { color: #26b47e; letter-spacing: -2px; }
@keyframes blink { 50% { opacity: .3; } }
.tabs { display: flex; gap: 22px; padding: 10px 24px 0; border-bottom: 1px solid var(--line); font-size: .9rem; overflow-x: auto; }
.tabs a { padding-bottom: 8px; color: var(--muted); white-space: nowrap; }
.tabs a.on { color: var(--accent); border-bottom: 3px solid var(--accent); font-weight: 600; }

.serp-top { padding: 14px 24px 0; max-width: 1100px; }
.serp { display: grid; grid-template-columns: minmax(0, 640px) 360px; gap: 48px; padding: 12px 24px 40px; align-items: start; }
.count { font-size: .8rem; color: var(--muted); margin: 0 0 4px; }
.maybe { margin: 0 0 8px; font-size: .95rem; }
.maybe b { color: var(--accent); }
.result { margin-bottom: 26px; }
.result .src { display: flex; align-items: center; gap: 10px; font-size: .8rem; }
.result .src div { display: flex; flex-direction: column; line-height: 1.3; }
.result .src small { color: var(--muted); }
.result .src em { margin-left: auto; font-style: normal; font-size: .7rem; border: 1px solid #c9a227; color: #8a6d0b; border-radius: 4px; padding: 0 6px; }
.fav { width: 28px; height: 28px; border-radius: 50%; background: #ecebe6; display: grid; place-items: center; font-size: .65rem; font-weight: 700; color: var(--muted); flex-shrink: 0; }
.result > a { display: inline-block; margin: 6px 0 2px; color: var(--link); font-size: 1.15rem; text-decoration: none; line-height: 1.4; }
.result > a:hover { text-decoration: underline; }
.result p { margin: 0; font-size: .88rem; color: #3f434b; }
.result.ad { background: #fffbea; border: 1px dashed #e6cf73; border-radius: 12px; padding: 12px 14px; }
.related h3 { font-size: 1.05rem; margin: 30px 0 10px; }
.related div { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.related span { display: flex; align-items: center; gap: 8px; background: #ecebe6; border-radius: 99px; padding: 8px 14px; font-size: .85rem; }
.pager { display: flex; gap: 18px; margin-top: 30px; color: var(--link); }
.pager b { color: var(--ink); }

.panel { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.panel h2 { margin: 14px 0 0; font-size: 1.5rem; line-height: 1.3; }
.panel .native { margin: 0; color: var(--muted); font-size: .9rem; }
.panel .role { margin: 4px 0 12px; font-weight: 600; color: var(--accent); }
.panel dl { display: grid; grid-template-columns: 6.5em 1fr; margin: 0; font-size: .86rem; border-top: 1px solid var(--line); }
.panel dt, .panel dd { margin: 0; padding: 7px 0; border-bottom: 1px solid var(--line); }
.panel dt { color: var(--muted); }
.panel dd small { display: block; color: var(--accent); font-size: .72rem; }
.panel h3 { font-size: .95rem; margin: 16px 0 6px; }
.more summary { cursor: pointer; color: var(--link); font-size: .85rem; padding: 8px 0; }
.more dl { border-top: 0; }

/* 個人ブログ */
.site-blog { background: #f3efe6; color: #2d2a26; }
.b-head { text-align: center; padding: 40px 16px 28px; background: #fff; border-bottom: 1px solid #e3dccd; }
.b-head a { font-size: clamp(1.5rem, 5vw, 2.1rem); font-weight: 700; letter-spacing: .05em; }
.b-head p { margin: 6px 0 0; color: #8a8173; font-size: .85rem; }
.b-body { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 28px; max-width: 980px; margin: 0 auto; padding: 28px 16px 40px; }
.b-post { background: #fff; padding: 24px 26px; margin-bottom: 20px; border-radius: 4px; }
.b-post time { color: #a39a8b; font-size: .8rem; }
.b-post h2 { margin: 4px 0 14px; font-size: 1.3rem; border-bottom: 2px dotted #e3dccd; padding-bottom: 10px; }
.b-post p { line-height: 1.95; margin: 0 0 1em; }
.b-post footer { font-size: .75rem; color: #a39a8b; border-top: 1px solid #f0ebe0; padding-top: 10px; }
.b-pager { text-align: center; color: #8a8173; }
.b-side section { background: #fff; padding: 16px; margin-bottom: 16px; border-radius: 4px; font-size: .88rem; }
.b-side h3 { margin: 0 0 10px; font-size: .9rem; border-left: 4px solid #c9b48a; padding-left: 8px; }
.b-side .photo { aspect-ratio: 1; margin-bottom: 10px; }
.b-side ul { margin: 0; padding-left: 1.2em; }
.b-foot { text-align: center; font-size: .75rem; color: #a39a8b; padding: 20px 16px 40px; }
@media (max-width: 760px) { .b-body { grid-template-columns: 1fr; } .b-post { padding: 18px; } }
.timeline { list-style: none; padding: 0; margin: 0; font-size: .82rem; }
.timeline li { padding: 4px 0 4px 12px; border-left: 2px solid var(--line); }
.timeline li b { display: block; color: var(--muted); font-size: .72rem; }
.timeline li.latest { border-left-color: var(--accent); }
.timeline li.death { border-left-color: #333; color: #444; }
.timeline li em { font-style: normal; margin-left: 6px; background: var(--accent); color: #fff; border-radius: 4px; padding: 0 5px; font-size: .68rem; }
.fact { margin: 14px 0 0; font-size: .78rem; color: var(--muted); background: var(--bg); border-radius: 8px; padding: 8px 10px; }
.serp-foot { text-align: center; font-size: .75rem; color: var(--muted); padding: 24px 16px 40px; border-top: 1px solid var(--line); }

@media (max-width: 960px) {
  .serp { grid-template-columns: 1fr; gap: 24px; padding: 12px 16px 32px; }
  .panel { order: -1; }
  .serp-head, .tabs, .serp-top { padding-left: 16px; padding-right: 16px; }
  .panel-head { display: grid; grid-template-columns: 104px 1fr; gap: 14px; align-items: center; }
  .panel-head .photo { aspect-ratio: 1; font-size: 0; }
  .panel-head h2 { margin-top: 0; font-size: 1.3rem; }
  .panel-head .role { margin-bottom: 0; }
  .panel dl { margin-top: 12px; }
  .signal { margin: 0 16px; }
  .related div { grid-template-columns: 1fr; }
}

/* 古い写真風の仮画像 */
.photo { position: relative; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; display: grid; place-items: center; text-align: center; font-size: .72rem; color: rgba(255,255,255,.85); }
.photo.old { background:
  repeating-linear-gradient(0deg, rgba(0,0,0,.08) 0 1px, transparent 1px 3px),
  radial-gradient(circle at 30% 30%, #b9a888, #6d5f4b 70%, #3c342a); filter: saturate(.8); }
.photo span { position: relative; text-shadow: 0 1px 2px rgba(0,0,0,.5); }
.photo.mono { filter: grayscale(1); }

/* 中のサイト共通 */
.browser-bar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: #2a2d33; color: #fff; font-size: .8rem; }
.browser-bar .url { flex: 1; min-width: 0; background: #3b3f47; border-radius: 99px; padding: 5px 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #cfd3da; }
.browser-bar button { background: #3b3f47; color: #fff; border: 0; border-radius: 8px; padding: 5px 10px; white-space: nowrap; }
.browser-bar .share { background: #fff; color: #111; font-weight: 600; }

/* 公式サイト */
.site-official { background: #fbfaf7; color: #222; font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; }
.o-nav { display: flex; justify-content: space-between; align-items: center; padding: 18px 32px; flex-wrap: wrap; gap: 10px; letter-spacing: .08em; }
.o-nav nav { display: flex; gap: 20px; font-size: .78rem; font-family: var(--sans); flex-wrap: wrap; }
.o-hero { position: relative; }
.o-hero .photo.wide { aspect-ratio: 16 / 7; border-radius: 0; }
.o-hero-text { position: absolute; left: 32px; bottom: 28px; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.4); }
.o-name { margin: 0; letter-spacing: .2em; font-size: .85rem; }
.o-hero h1 { margin: 4px 0 0; font-size: clamp(1.5rem, 4.5vw, 2.6rem); font-weight: 500; }
.o-sec { max-width: 900px; margin: 0 auto; padding: 48px 24px 0; }
.o-sec h2 { font-size: .95rem; letter-spacing: .25em; font-weight: 500; border-bottom: 1px solid #ddd; padding-bottom: 8px; }
.o-news { list-style: none; padding: 0; margin: 0; font-family: var(--sans); font-size: .9rem; }
.o-news li { display: flex; gap: 20px; padding: 12px 0; border-bottom: 1px solid #eee; }
.o-news time { color: #999; flex-shrink: 0; font-variant-numeric: tabular-nums; }
.o-sec.two { display: grid; grid-template-columns: 1fr 260px; gap: 32px; align-items: end; }
.o-sec.two > div > p { font-family: var(--sans); font-size: .92rem; line-height: 1.9; }
.o-birth { color: #888; font-size: .8rem !important; }
.o-works, .o-goods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; font-family: var(--sans); font-size: .85rem; }
.o-works p, .o-goods p { margin: 2px 0 0; color: #777; }
.o-works .photo.book { aspect-ratio: 3 / 4; }
.o-works b, .o-goods b { display: block; margin-top: 8px; }
.o-fc { text-align: center; font-family: var(--sans); }
.o-fc button { background: #222; color: #fff; border: 0; padding: 12px 28px; letter-spacing: .1em; }
.o-foot { text-align: center; font-size: .72rem; color: #999; padding: 60px 16px 40px; font-family: var(--sans); }
@media (max-width: 700px) {
  .o-sec.two { grid-template-columns: 1fr; }
  .o-works, .o-goods { grid-template-columns: 1fr 1fr; }
  .o-nav { padding: 14px 16px; }
  .o-hero-text { left: 16px; bottom: 14px; }
}

/* 攻略Wiki */
.site-wiki { background: #eef1ec; font-size: .9rem; }
.w-head { background: #3d6b3a; color: #fff; display: flex; justify-content: space-between; align-items: center; padding: 12px 20px; flex-wrap: wrap; gap: 6px; }
.w-head b { font-size: 1.15rem; }
.w-head span { font-size: .75rem; opacity: .85; }
.w-body { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 16px; max-width: 1060px; margin: 0 auto; padding: 16px; }
.w-side { background: #fff; border: 1px solid #c9d2c4; padding: 10px; display: flex; flex-direction: column; gap: 4px; align-self: start; }
.w-side b { background: #dfe8da; padding: 4px 8px; margin-bottom: 4px; }
.w-side a { color: #1f57a6; text-decoration: underline; padding: 0 8px; font-size: .85rem; }
.w-main { background: #fff; border: 1px solid #c9d2c4; padding: 16px 20px 28px; min-width: 0; }
.w-crumb { font-size: .75rem; color: #888; margin: 0; }
.w-main h1 { font-size: 1.4rem; border-bottom: 3px solid #3d6b3a; padding-bottom: 4px; margin: 6px 0 14px; }
.w-main h2 { font-size: 1.05rem; background: #e4ecdf; border-left: 6px solid #3d6b3a; padding: 4px 10px; margin: 26px 0 10px; }
.w-top { display: grid; grid-template-columns: 200px 1fr; gap: 16px; align-items: start; }
.w-top .photo { border-radius: 0; }
.w-main table { border-collapse: collapse; width: 100%; font-size: .86rem; }
.w-main th, .w-main td { border: 1px solid #c9d2c4; padding: 6px 10px; text-align: left; vertical-align: top; }
.w-main th { background: #f3f6f1; width: 38%; font-weight: 600; }
.w-main ul { padding-left: 1.2em; }
.w-stats { display: grid; grid-template-columns: 320px 1fr; gap: 12px; align-items: center; }
.w-stats dl { margin: 0; font-size: .85rem; }
.w-stats dt { font-weight: 600; margin-top: 8px; }
.w-stats dt b { color: #3d6b3a; margin-left: 4px; }
.w-stats dd { margin: 2px 0 0; color: #555; }
.radar { width: 100%; max-width: 320px; font-size: 12px; }
.radar .grid { fill: none; stroke: #c9d2c4; }
.radar .value { fill: rgba(61,107,58,.35); stroke: #3d6b3a; stroke-width: 2; }
.radar text { fill: #333; }
.radar .grade { font-weight: 700; fill: #3d6b3a; }
@media (max-width: 760px) { .w-stats { grid-template-columns: 1fr; justify-items: center; } }
.w-comments { list-style: none; padding: 0 !important; }
.w-comments li { border-bottom: 1px dotted #c9d2c4; padding: 8px 0; }
.w-comments b { color: #3d6b3a; font-size: .82rem; }
.w-comments span { color: #999; font-size: .75rem; margin-left: 10px; }
.w-comments p { margin: 2px 0 0; }
@media (max-width: 760px) {
  .w-body { grid-template-columns: 1fr; padding: 8px; }
  .w-side { display: none; }
  .w-top { grid-template-columns: 1fr; }
  .w-main { padding: 12px; }
}

/* 取扱説明書 */
.site-manual { background: #8b8f96; padding: 24px 12px; }
.m-paper { max-width: 760px; margin: 0 auto; background: #fff; color: #111; padding: 40px clamp(18px, 5vw, 56px); box-shadow: 0 6px 24px rgba(0,0,0,.25); font-size: .9rem; }
.m-eos { margin: 0 0 20px; padding: 10px 14px; background: #f1f1f1; border-left: 4px solid #555; font-size: .85rem; }
.m-cover { text-align: center; border: 2px solid #111; padding: 24px 16px; margin-bottom: 24px; }
.m-cover p { margin: 0; }
.m-cover h1 { margin: 8px 0 2px; font-size: clamp(1.4rem, 4vw, 2rem); }
.m-model { font-family: ui-monospace, Consolas, monospace; font-size: .85rem; }
.m-cover .photo { max-width: 280px; margin: 18px auto; border-radius: 0; filter: grayscale(1) contrast(1.1); }
.m-made { font-size: .78rem; color: #444; }
.m-paper h2 { font-size: 1rem; background: #111; color: #fff; padding: 4px 10px; margin: 28px 0 12px; }
.m-warn { border: 2px solid #111; padding: 8px 12px; margin-bottom: 8px; display: grid; grid-template-columns: 70px 1fr; gap: 10px; align-items: center; }
.m-warn.strong { border-color: #b3261e; }
.m-warn.strong b { color: #b3261e; }
.m-warn p { margin: 0; }
.m-parts { padding-left: 1.4em; }
.m-parts li { margin-bottom: 6px; }
.m-parts b { margin-right: 10px; }
.m-paper table { border-collapse: collapse; width: 100%; font-size: .85rem; }
.m-paper th, .m-paper td { border: 1px solid #111; padding: 6px 10px; text-align: left; vertical-align: top; }
.m-paper th { background: #eee; }
.m-warranty { margin-top: 28px; border: 2px dashed #111; padding: 12px 16px; }
.m-warranty p { margin: 4px 0 0; }
.m-page { text-align: center; margin: 32px 0 0; color: #666; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: #1d1f24; color: #fff; padding: 10px 18px; border-radius: 99px; font-size: .85rem; z-index: 10; }
