/* 共通ヘッダー（2026-10-21 first-ch.com のトンマナに揃えて作り直し・5サイトで同一に保つ）
   ロゴ＋サイト名、英字の大きいラベル＋日本語の補足、主色のピル型「相談する」。主色は first-ch.com の #b45309（白地で4.5:1以上） */
@font-face{font-family:"CH Montserrat";src:url(/discovery/montserrat-latin.woff2) format("woff2");font-weight:500 700;font-display:swap;unicode-range:U+0000-00FF,U+2013-2014,U+2018-201D}
.ch-nav{--ch-ink:#1f2937;--ch-sub:#6b7280;--ch-line:#e5e7eb;--ch-paper:#ffffff;--ch-accent:#b45309;--ch-accent-dk:#92400e;--ch-tint:#fffbeb;position:sticky;top:0;z-index:90;background:rgba(255,255,255,.92);-webkit-backdrop-filter:saturate(1.4) blur(10px);backdrop-filter:saturate(1.4) blur(10px);color:var(--ch-ink);border-bottom:1px solid var(--ch-line);box-shadow:0 1px 4px rgba(0,0,0,.06);font-family:"Hiragino Sans","Hiragino Kaku Gothic ProN","Noto Sans JP","Yu Gothic UI",Meiryo,sans-serif;font-size:14px;line-height:1.5;isolation:isolate}
.ch-nav,.ch-nav *{box-sizing:border-box}
.ch-nav__inner{max-width:1200px;margin:auto;padding:0 24px;min-height:72px;display:flex;align-items:center;justify-content:space-between;gap:16px}
.ch-nav a{color:inherit;text-decoration:none}
.ch-nav__brand{display:inline-flex;align-items:center;gap:12px;min-height:48px;white-space:nowrap}
.ch-nav__brand img{display:block;width:auto;height:36px}
.ch-nav__site{display:flex;flex-direction:column;line-height:1.2;padding-left:12px;border-left:1px solid var(--ch-line)}
.ch-nav__site b{font-family:"CH Montserrat",inherit;font-size:18px;font-weight:700;letter-spacing:.01em;color:var(--ch-ink)}
.ch-nav__site small{margin-top:3px;font-size:12px;font-weight:500;color:var(--ch-sub);letter-spacing:.04em}
.ch-nav__actions{display:flex;align-items:center;gap:4px}
.ch-nav__actions>a,.ch-sites>summary{min-height:48px;display:inline-flex;flex-direction:column;align-items:center;justify-content:center;padding:4px 14px;cursor:pointer;white-space:nowrap;border-radius:8px;transition:color 160ms ease-out,background 160ms ease-out}
.ch-nav__en{font-family:"CH Montserrat",inherit;font-size:15px;font-weight:600;line-height:1.3;color:var(--ch-ink)}
.ch-nav__ja{margin-top:2px;font-size:12px;font-weight:500;line-height:1.3;color:var(--ch-sub)}
.ch-nav__actions>a:hover .ch-nav__en,.ch-sites>summary:hover .ch-nav__en,.ch-sites[open]>summary .ch-nav__en{color:var(--ch-accent)}
.ch-nav__actions>a:hover,.ch-sites>summary:hover,.ch-sites[open]>summary{background:var(--ch-tint)}
.ch-sites>summary{list-style:none;position:relative;padding-right:26px}
.ch-sites>summary::-webkit-details-marker{display:none}
.ch-sites>summary::after{content:"";position:absolute;right:10px;top:50%;width:6px;height:6px;margin-top:-5px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);color:var(--ch-sub)}
.ch-nav__lang{border:1px solid var(--ch-line)}
.ch-nav__actions>a.ch-nav__cta{flex-direction:row;margin-left:8px;padding:0 24px;min-height:44px;border-radius:999px;background:var(--ch-accent);color:#fff;font-weight:700;font-size:14px;letter-spacing:.04em;box-shadow:0 4px 14px rgba(217,119,6,.3)}
.ch-nav__actions>a.ch-nav__cta:hover{background:var(--ch-accent-dk);color:#fff}
.ch-sites__panel{position:absolute;right:24px;top:calc(100% + 8px);width:min(660px,calc(100vw - 32px));padding:14px;border:1px solid var(--ch-line);border-radius:14px;background:var(--ch-paper);box-shadow:0 18px 44px rgba(31,41,55,.14);display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.ch-sites__panel a{display:flex;flex-direction:column;gap:4px;padding:12px 14px;border:1px solid transparent;border-radius:10px;min-height:68px;min-width:0}
.ch-sites__panel a:hover,.ch-sites__panel a[aria-current=page]{border-color:#fde68a;background:var(--ch-tint)}
.ch-sites__panel b{font-family:"CH Montserrat",inherit;font-size:15px;font-weight:700}
.ch-sites__panel a[aria-current=page] b{color:var(--ch-accent)}
.ch-sites__panel span{font-size:12px;color:var(--ch-sub)}
@media(max-width:900px){.ch-nav__all{display:none!important}.ch-nav__actions>a,.ch-sites>summary{padding:4px 10px}.ch-sites>summary{padding-right:22px}}
@media(max-width:640px){.ch-nav__inner{padding:0 12px;gap:6px;min-height:60px}.ch-nav__brand{gap:8px}.ch-nav__brand img{height:28px}.ch-nav__site{padding-left:8px}.ch-nav__site b{font-size:15px}.ch-nav__site small{display:none}.ch-nav__actions{gap:0}.ch-nav__actions>a,.ch-sites>summary{min-height:44px;padding:2px 7px}.ch-sites>summary{padding-right:18px}.ch-sites>summary::after{right:6px}.ch-nav__en{font-size:12px}.ch-nav__ja{font-size:12px}.ch-nav__actions>a[data-ch-search]{width:44px;min-width:44px;padding:0;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f2937' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-4-4'/%3E%3C/svg%3E") center/20px no-repeat}.ch-nav__actions>a[data-ch-search] span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}.ch-nav__actions>a.ch-nav__cta{margin-left:4px;padding:0 14px;font-size:12px;min-height:40px}.ch-sites__panel{right:12px;grid-template-columns:1fr;max-height:calc(100dvh - 88px);overflow-y:auto}.ch-sites__panel a{min-height:56px;padding:9px 12px}}
@media(max-width:640px){.ch-nav__brand{flex-shrink:0}}
/* 400px 以下: サイト名（Designs・Showcase）が検索アイコンに重ならないよう、補足と余白を詰める */
@media(max-width:400px){.ch-nav__inner{padding:0 8px;gap:2px}.ch-nav__brand{gap:6px}.ch-nav__brand img{height:24px}.ch-nav__site{padding-left:6px}.ch-nav__site b{font-size:14px}.ch-sites .ch-nav__ja{display:none}.ch-sites>summary{padding:2px 16px 2px 6px}.ch-nav__lang{padding:2px 8px!important}.ch-nav__actions>a.ch-nav__cta{margin-left:2px;padding:0 11px}}
@media(max-width:362px){.ch-nav__brand img{height:22px}.ch-nav__site{padding-left:5px}.ch-nav__site b{font-size:13px}.ch-sites>summary{padding:2px 14px 2px 4px}.ch-sites>summary::after{right:4px}.ch-nav__lang{padding:2px 6px!important}.ch-nav__actions>a.ch-nav__cta{padding:0 9px;font-size:12px}}
@media(max-width:340px){.ch-nav__actions>a[data-ch-search]{display:none!important}}
@media(prefers-reduced-motion:reduce){.ch-nav__actions>a,.ch-sites>summary{transition:none}}
.ch-nav :focus-visible,.ch-controls :focus-visible,.ch-rail :focus-visible{outline:2px solid var(--ch-accent,#b45309);outline-offset:3px}
.ch-skip{position:fixed;z-index:200;top:4px;left:8px;transform:translateY(-150%);padding:12px 18px;background:#1f2937;color:white!important}
.ch-skip:focus{transform:none}
.ch-rail-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 12px}
.ch-rail-head h2{font-size:16px;font-weight:700;margin:0;color:inherit;letter-spacing:0}
.ch-controls{display:flex;align-items:center;gap:6px;flex-shrink:0}
.ch-controls button{white-space:nowrap}
.ch-rail-head h2{min-width:0}
.ch-controls button,.ch-reset,.ch-more{min-width:44px;min-height:44px;cursor:pointer;border:1px solid #e5e7eb;background:#ffffff;color:#1f2937;font:inherit;font-size:13px;padding:8px 12px;border-radius:5px}
.ch-controls button:hover,.ch-reset:hover,.ch-more:hover{background:#fffbeb}
.ch-rail{display:flex;gap:16px;overflow-x:auto;scroll-snap-type:x proximity;scroll-behavior:smooth;padding-bottom:12px;scroll-padding-inline:1px;overscroll-behavior-x:contain}
.ch-rail>*{flex:0 0 min(30%,420px);scroll-snap-align:start;min-width:240px}
.ch-feature{display:grid;grid-template-columns:112px minmax(0,1fr);align-items:center;gap:16px;padding:12px;background:white;border:1px solid #e5e7eb;color:inherit;text-decoration:none;font-size:15px}
.ch-feature img{width:112px;height:86px;object-fit:cover;display:block;transition:transform 260ms ease-out}
.ch-feature:hover img{transform:scale(1.04)}
.ch-feature strong{display:block;line-height:1.55}
.ch-feature small{display:block;margin-top:6px;color:#6b7280;font-size:12px;line-height:1.6}
.ch-feature-strip{margin:0 0 28px}
.ch-meta-row{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:12px 0 16px}
.ch-meta-row p{margin:0;font-size:13px}
.ch-more{display:block;min-width:200px;margin:24px auto 40px}
.ch-empty{padding:32px 20px;border:1px dashed #e5e7eb;text-align:center}
.ch-empty button{display:block;margin:16px auto 0}
.ch-nav~header.site-header{position:static}
@media(min-width:1700px){.ch-rail>*{flex-basis:calc((100% - 48px)/4)}}
@media(max-width:640px){.ch-rail>*{flex-basis:86%;min-width:0}.ch-feature-strip{margin-bottom:18px}.ch-feature{grid-template-columns:90px minmax(0,1fr);gap:12px}.ch-feature img{width:90px;height:72px}.ch-rail-head h2{font-size:14px}.ch-controls button{padding:8px}}
@media(prefers-reduced-motion:reduce){.ch-rail{scroll-behavior:auto}.ch-feature img{transition:none}.ch-feature:hover img{transform:none}}

.ch-sites:not([open])>.ch-sites__panel{display:none}.ch-nav__actions>a{min-width:44px}

.ch-nav{display:block;padding:0;margin:0}.ch-nav__inner{width:100%}.ch-feature small{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}

.ch-controls[hidden]{display:none!important}
.ch-controls button:disabled{opacity:.35;cursor:default}
.ch-load-sentinel{height:1px;margin-top:24px}

/* 共通フッターと新着（2026-10-16・5サイト共通。tools/apps/games/designs/showcase の navigation.css は同一に保つ） */
/* 共通フッター（2026-10-21 first-ch.com のフッターと同じ段組み・5サイトで同一に保つ）
   左: ロゴ・一言・相談ボタン／中: First CH が運営するサイト（7件・現在地に「このサイト」）／右: このサイトについて */
.ch-foot{--ch-ink:#1f2937;--ch-text:#374151;--ch-muted:#6b7280;--ch-accent:#b45309;--ch-accent-dk:#92400e;--ch-line:#e5e7eb;position:relative;isolation:isolate;width:100%;margin:64px 0 0;background:#fff;color:var(--ch-text);border-top:3px solid #1f2937;font-family:"Hiragino Sans","Hiragino Kaku Gothic ProN","Noto Sans JP","Yu Gothic UI",Meiryo,sans-serif;font-size:14px;line-height:1.7;text-align:left}
.ch-foot,.ch-foot *{box-sizing:border-box}
.ch-foot a{color:inherit;text-decoration:none}
.ch-foot :focus-visible{outline:2px solid var(--ch-accent);outline-offset:3px;border-radius:2px}
.ch-foot ol,.ch-foot ul{list-style:none;margin:0;padding:0}
.ch-foot__in{max-width:1200px;margin:auto;padding:48px 24px 36px;display:grid;grid-template-columns:minmax(220px,1fr) minmax(0,2fr) minmax(160px,.8fr);gap:40px}
.ch-foot__logo{display:inline-flex;min-height:44px;align-items:center}
.ch-foot__logo img{display:block;width:auto;height:36px}
.ch-foot__lead{margin:12px 0 20px;color:var(--ch-text);font-size:13px;line-height:1.8;word-break:auto-phrase;text-wrap:pretty}
.ch-foot__cta{display:inline-flex;align-items:center;min-height:44px;padding:0 24px;border-radius:999px;background:var(--ch-accent);color:#fff!important;font-weight:700;font-size:14px;letter-spacing:.04em;box-shadow:0 4px 14px rgba(217,119,6,.3);transition:background 160ms ease-out}
.ch-foot__cta:hover{background:var(--ch-accent-dk)}
.ch-foot .ch-foot__heading{margin:0 0 14px;padding-bottom:12px;border-bottom:1px solid var(--ch-line);color:var(--ch-ink);font-family:inherit;font-size:15px;font-weight:700;line-height:1.5;letter-spacing:.02em}
.ch-foot__sites ol{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 24px}
.ch-foot__sites a{display:block;padding:8px 0;min-height:44px}
.ch-foot__stop{display:flex;flex-wrap:wrap;align-items:center;gap:2px 8px}
.ch-foot__stop b{font-family:"CH Montserrat",inherit;font-size:14px;font-weight:700;color:var(--ch-ink)}
.ch-foot__sites a:hover b{color:var(--ch-accent)}
.ch-foot__desc{flex-basis:100%;color:var(--ch-muted);font-size:12px;line-height:1.6}
.ch-foot__here{padding:0 8px;border-radius:999px;background:#fffbeb;border:1px solid #fde68a;color:var(--ch-accent);font-size:12px;font-weight:700;line-height:1.6}
.ch-foot__site a{display:flex;align-items:center;min-height:40px;color:var(--ch-text);font-size:13px}
.ch-foot__site a:hover{color:var(--ch-accent);text-decoration:underline;text-underline-offset:4px}
.ch-foot__legal{border-top:1px solid var(--ch-line)}
.ch-foot__legal p{max-width:1200px;margin:auto;padding:16px 24px 20px;color:#9ca3af;font-size:12px}
.ch-foot__legal a:hover{color:var(--ch-accent)}
@media(max-width:900px){.ch-foot__in{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:32px 28px}.ch-foot__brand{grid-column:1/-1}.ch-foot__sites{grid-column:1/-1}.ch-foot__site{grid-column:1/-1}}
@media(max-width:640px){.ch-foot{margin-top:48px}.ch-foot__in{padding:36px 20px 28px;gap:28px}.ch-foot__sites ol{gap:0 16px}.ch-foot__desc{display:none}.ch-foot__site ul{display:flex;flex-wrap:wrap;gap:0 20px}.ch-foot__legal p{padding-inline:20px}}
@media(prefers-reduced-motion:reduce){.ch-foot__cta{transition:none}}
/* 新着（2026-10-21 サムネイル付きのカードに変更・5サイトで同一に保つ）
   マークアップ: li > a > img.ch-new__thumb（無ければ省略可）+ span.ch-new__body > (span.ch-new__meta, strong, span.ch-new__desc) */
.ch-new{margin-block-end:36px}
.ch-new :focus-visible{outline:2px solid #b45309;outline-offset:3px}
.ch-new__head{display:flex;align-items:baseline;justify-content:space-between;gap:16px;margin:0 0 14px}
.ch-new__head h2{margin:0;font-size:18px;font-weight:700;letter-spacing:.02em;color:inherit}
.ch-new__head a{font-size:13px;color:#b45309;font-weight:600;text-decoration:none;min-height:44px;display:inline-flex;align-items:center}
.ch-new__head a:hover{text-decoration:underline;text-underline-offset:3px}
.ch-new__list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.ch-new__list li{min-width:0}
.ch-new__list a{display:flex;flex-direction:column;height:100%;overflow:hidden;border:1px solid #e5e7eb;border-radius:12px;background:#fff;color:inherit;text-decoration:none;box-shadow:0 1px 3px rgba(0,0,0,.05);transition:border-color 160ms ease-out,box-shadow 160ms ease-out,transform 160ms ease-out}
.ch-new__list a:hover{border-color:#f3b04a;box-shadow:0 10px 24px rgba(31,41,55,.1);transform:translateY(-2px)}
.ch-new__thumb{display:block;width:100%;height:auto!important;max-height:none;aspect-ratio:16/9;object-fit:cover;background:#f3f4f6;border-bottom:1px solid #e5e7eb}
.ch-new__body{display:flex;flex-direction:column;gap:4px;padding:12px 14px 14px}
.ch-new__meta{font-size:12px;font-weight:600;color:#b45309;font-variant-numeric:tabular-nums}
.ch-new__list strong{font-size:15px;line-height:1.5;color:#1f2937;word-break:auto-phrase;text-wrap:pretty}
.ch-new__list span.ch-new__desc{font-size:13px;line-height:1.65;color:#6b7280;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
@media(max-width:1000px){.ch-new__list{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.ch-new__list{display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x proximity;padding-bottom:8px}.ch-new__list li{flex:0 0 78%;scroll-snap-align:start}.ch-new__list strong{font-size:14px}}
@media(prefers-reduced-motion:reduce){.ch-new__list a{transition:none}.ch-new__list a:hover{transform:none}}
