:root {
  --ink: #102019;
  --muted: #53635c;
  --line: #d7e2dc;
  --paper: #f6f9f7;
  --panel: #ffffff;
  --green: #087a55;
  --green-dark: #075a41;
  --mint: #dff5e9;
  --navy: #173f34;
  --violet: #6746d9;
  --violet-soft: #f1edff;
  --coral: #f06432;
  --coral-soft: #fff2eb;
  --shadow-sm: 0 8px 24px rgba(17, 49, 39, .06);
  --shadow-md: 0 18px 50px rgba(17, 49, 39, .1);
}

html { scroll-padding-top: 92px; }
body { -webkit-font-smoothing: antialiased; }
a, button, input, select, summary { transition: border-color .18s ease, background-color .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid rgba(8, 122, 85, .3); outline-offset: 3px; }
.skip { border-radius: 8px; font-weight: 800; }
.skip:focus { left: 18px; top: 18px; z-index: 100; }

.site-header { height: 74px; padding: 0; }
.header-inner { width: min(1180px, calc(100% - 40px)); height: 100%; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.brand span:first-child { color: var(--green); font-size: .9rem; }
.desktop-nav { display: flex; align-items: center; gap: 6px; font-size: .84rem; }
.desktop-nav > a, .nav-more > summary { min-height: 42px; display: inline-flex !important; align-items: center; padding: 0 10px; border-radius: 8px; }
.desktop-nav > a:hover, .nav-more > summary:hover, .desktop-nav > a.active { color: var(--green-dark); background: #e8f3ed; }
.desktop-nav > a.active { box-shadow: inset 0 -2px var(--green); }
.desktop-nav > a[href="/ai-money/"] { color: #a53e18; background: var(--coral-soft); }
.desktop-nav > a[href="/ai-stocks/"] { color: #5637b7; background: var(--violet-soft); }
.desktop-nav > a[href="/ai-money/"]:hover, .desktop-nav > a[href="/ai-money/"].active { color: #7e2f12; background: #ffe1d3; box-shadow: inset 0 -2px var(--coral); }
.desktop-nav > a[href="/ai-stocks/"]:hover, .desktop-nav > a[href="/ai-stocks/"].active { color: #41268f; background: #e4dcff; box-shadow: inset 0 -2px var(--violet); }
.nav-more { position: relative; }
.nav-more > summary { cursor: pointer; list-style: none; }
.nav-more > summary::-webkit-details-marker, .mobile-nav > summary::-webkit-details-marker { display: none; }
.nav-more > summary::after { content: ""; width: 6px; height: 6px; margin-left: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.nav-more[open] > summary { color: var(--green-dark); background: #e8f3ed; }
.nav-more[open] > summary::after { transform: rotate(225deg) translate(-1px, -1px); }
.nav-menu { position: absolute; top: calc(100% + 10px); right: 0; width: 380px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, .98); box-shadow: var(--shadow-md); }
.nav-menu a { display: block !important; padding: 10px 12px; border-radius: 8px; color: #30443b; }
.nav-menu a:hover, .nav-menu a.active { background: #edf7f2; color: var(--green-dark); }
.nav-search { border: 1px solid var(--line); background: #fff; }
.mobile-nav { display: none; position: relative; }

main { width: min(1180px, calc(100% - 40px)); }
.hero { max-width: none; }
.home-search-hero { padding: 18px 0 20px; }
.home-search label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.home-search > div { max-width: 920px; margin: auto; display: grid; grid-template-columns: 1fr auto; padding: 7px; border: 1px solid #d9cffc; border-radius: 999px; background: #fff; box-shadow: 0 10px 30px rgba(71, 45, 142, .06); }
.home-search input { min-width: 0; min-height: 46px; padding: 0 22px; border: 0; outline: 0; background: transparent; color: var(--ink); font: inherit; font-size: 1rem; }
.home-search input::placeholder { color: #8b8a94; }
.home-search button { min-width: 116px; border: 0; border-radius: 999px; background: var(--violet); color: #fff; font: inherit; font-weight: 850; cursor: pointer; }
.home-search button:hover { background: #5335bd; transform: translateY(-1px); }
.home-editorial { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(330px, .95fr); gap: 18px; align-items: stretch; padding: 0 0 24px; }
.home-feature-card, .home-daily-board { border: 1px solid #e0e0e5; border-radius: 20px; background: #fff; box-shadow: var(--shadow-sm); }
.home-feature-card { position: relative; overflow: hidden; min-height: 470px; padding: clamp(30px, 4vw, 52px); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; border-color: #f0c9ba; background: #fffaf7; }
.home-feature-card h1 { margin: 12px 0 22px; font-size: clamp(2.6rem, 5vw, 4.4rem); letter-spacing: -.055em; line-height: 1; }
.home-feature-card h2 { max-width: 720px; margin: 16px 0 12px; font-size: clamp(1.65rem, 2.8vw, 2.65rem); line-height: 1.25; letter-spacing: -.025em; }
.home-feature-card > p { max-width: 690px; margin: 0 0 22px; color: var(--muted); font-size: 1rem; }
.home-feature-tag { display: inline-flex; padding: 6px 10px; border-radius: 7px; background: var(--coral); color: #fff; font-size: .72rem; font-weight: 850; }
.home-feature-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; color: #6c6663; font-size: .78rem; }
.home-feature-card > a { margin-top: 26px; color: #a53e18; font-weight: 850; }
.home-daily-board { padding: 20px; }
.home-board-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.home-board-head h2 { margin: 3px 0 0; font-size: 1.42rem; }
.home-board-head > span { color: var(--muted); font-size: .75rem; }
.home-board-group { min-height: 104px; margin-top: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.home-board-group > div { display: flex; justify-content: space-between; gap: 10px; }
.home-board-group > div b { font-size: .84rem; }
.home-board-group > div a { font-size: .68rem; font-weight: 800; color: var(--violet); }
.home-board-group ol { margin: 6px 0 0; padding-left: 22px; }
.home-board-group li { overflow: hidden; padding: 2px 0 2px 4px; color: #323235; font-size: .74rem; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.home-board-group.hot { border-color: #f5d3c6; background: #fffaf7; }
.home-board-group.skill { border-color: #ded5ff; background: #faf8ff; }
.home-board-group.model { border-color: #cfe8d9; background: #f8fcfa; }
.home-daily-board > p { margin: 10px 2px 0; color: var(--muted); font-size: .7rem; }
.home-focus-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0 0 18px; }
.home-focus-card { position: relative; overflow: hidden; min-height: 270px; display: flex; flex-direction: column; padding: 30px; border: 1px solid; border-radius: 18px; box-shadow: var(--shadow-sm); }
.home-focus-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.home-focus-card.money { border-color: #f2b69f; background: var(--coral-soft); }
.home-focus-card.stocks { border-color: #cfc2ff; background: var(--violet-soft); }
.home-focus-label { width: fit-content; padding: 6px 9px; border-radius: 999px; background: rgba(255,255,255,.72); font-size: .7rem; font-weight: 850; letter-spacing: .04em; }
.home-focus-card.money .home-focus-label, .home-focus-card.money b { color: #a53e18; }
.home-focus-card.stocks .home-focus-label, .home-focus-card.stocks b { color: #5637b7; }
.home-focus-card h2 { max-width: 580px; margin: 18px 0 10px; font-size: clamp(1.55rem, 2.7vw, 2.25rem); line-height: 1.2; letter-spacing: -.03em; }
.home-focus-card p { margin: 0 0 22px; color: #4e4b52; }
.home-focus-card > div { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; margin-top: auto; font-size: .78rem; }
.home-focus-card > div b { white-space: nowrap; }
.home-focus-card > small { margin-top: 12px; color: #5e5572; }
.home-trust-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 0 0 54px; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--line); }
.home-trust-strip span { padding: 14px 17px; background: #fff; color: var(--muted); font-size: .74rem; }
.home-trust-strip b { display: block; margin-bottom: 2px; color: var(--ink); font-size: .8rem; }
.home-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(330px, 380px); gap: clamp(40px, 4vw, 56px); align-items: center; padding: 76px 0 68px; }
.hero-copy { min-width: 0; }
.home-hero h1 { font-size: clamp(3.25rem, 5vw, 5rem); max-width: 820px; }
.hero p, .page-head p { line-height: 1.75; }
.hero .actions { margin-top: 26px; }
.hero > small, .hero-copy > small { display: block; color: var(--muted); margin-top: 16px; }
.hero-snapshot { overflow: hidden; border: 1px solid #b8d5c8; border-radius: 18px; background: var(--navy); color: #fff; box-shadow: var(--shadow-md); }
.hero-snapshot-head { padding: 18px 20px 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid rgba(255,255,255,.14); }
.hero-snapshot-head .kicker { color: #a9dac5; }
.hero-snapshot-head a { font-size: .76rem; font-weight: 800; color: #fff; }
.hero-snapshot > a { display: grid; gap: 3px; padding: 15px 20px; border-bottom: 1px solid rgba(255,255,255,.12); }
.hero-snapshot > a:hover { color: #fff; background: rgba(255,255,255,.07); }
.hero-snapshot > a span { font-size: .68rem; font-weight: 850; letter-spacing: .08em; color: #8fcdb5; text-transform: uppercase; }
.hero-snapshot > a b { font-size: .92rem; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hero-snapshot > a small { color: #bed4cb; }
.hero-snapshot > p { margin: 0; padding: 14px 20px 18px; font-size: .76rem; color: #bed4cb; }

.operation-brief { margin: 0 0 54px; border-radius: 18px; box-shadow: var(--shadow-sm); }
.operation-signal-grid a:hover { background: #f2f8f5; }
.use-cases { margin: 0 0 72px; }
.use-cases a, .category-grid a, .card, .guide-summary, .update-entry { border-radius: 14px; }
.use-cases a:hover, .category-grid a:hover { border-color: #96bba9; box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.category-grid { gap: 12px; margin-bottom: 74px; }
.category-grid a { min-height: 92px; display: flex; flex-direction: column; justify-content: space-between; }
.warning, .danger { border-radius: 16px; }

.page-head { padding: 60px 0 38px; }
.page-head h1 { font-size: clamp(2.85rem, 5.5vw, 4.65rem); max-width: 1000px; }
.freshness { padding: 12px 0 0; border-top: 1px solid var(--line); }
.method-strip, .share-bar, .compare-bar { border-radius: 14px; }
.daily-columns a { border-radius: 14px; }
.daily-columns a:hover { border-color: #96bba9; box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.rank-item { padding: 24px 8px; }
.rank-item:hover { background: rgba(255,255,255,.5); }
.rank-item h2 { font-size: 1.18rem; }

.filters { border-radius: 14px; box-shadow: var(--shadow-sm); }
.filters input, .filters select { min-height: 42px; border-radius: 8px; }
.filters input:focus, .filters select:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(8,122,85,.1); outline: 0; }
.filters button { min-height: 40px; border-radius: 8px; }
.filters button:hover { background: #edf7f2; }
.result-meta { min-height: 38px; align-items: center; padding: 0 2px; }
.card { box-shadow: 0 1px 0 rgba(17,49,39,.02); }
.card:hover { box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.card h2 { font-size: 1.2rem; }
.card-actions { gap: 8px; }
.button { min-height: 42px; align-items: center; justify-content: center; padding: 9px 15px; border-radius: 9px; }
.button:hover { border-color: #8fb3a2; transform: translateY(-1px); }
.button.primary:hover { background: var(--green-dark); border-color: var(--green-dark); color: #fff; }

.site-footer { padding: 48px 0 30px; grid-template-columns: minmax(220px, .8fr) minmax(0, 1.7fr); gap: 46px; }
.footer-intro p { max-width: 310px; margin: 14px 0 0; }
.footer-links { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px !important; }
.footer-links > div { display: grid; align-content: start; gap: 8px; }
.footer-links b { color: var(--ink); margin-bottom: 4px; }
.footer-links a { width: fit-content; min-height: 28px; }
.disclaimer { margin: 0; }

@media (max-width: 980px) {
  .desktop-nav { gap: 2px; }
  .desktop-nav > a, .nav-more > summary { padding: 0 7px; }
  .home-hero { grid-template-columns: 1fr; gap: 34px; }
  .home-editorial { grid-template-columns: 1fr; }
  .home-feature-card { min-height: 410px; }
  .home-daily-board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .home-board-head, .home-daily-board > p { grid-column: 1 / -1; }
  .home-board-group { margin-top: 0; }
  .hero-snapshot { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-snapshot-head, .hero-snapshot > p { grid-column: 1 / -1; }
  .hero-snapshot > a { border-right: 1px solid rgba(255,255,255,.12); }
}

@media (max-width: 800px) {
  .site-header { height: 64px; }
  .header-inner { width: calc(100% - 28px); }
  .desktop-nav { display: none; }
  .mobile-nav { display: block; }
  .mobile-nav > summary { min-height: 42px; display: inline-flex; align-items: center; padding: 0 14px; border: 1px solid var(--line); border-radius: 9px; background: #fff; cursor: pointer; font-weight: 800; list-style: none; }
  .mobile-nav[open] > summary { color: var(--green-dark); background: #e8f3ed; border-color: #b7d6c7; }
  .mobile-nav nav { position: absolute; top: calc(100% + 10px); right: 0; width: min(340px, calc(100vw - 28px)); max-height: calc(100vh - 90px); overflow: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.99); box-shadow: var(--shadow-md); }
  .mobile-nav nav a { display: block !important; padding: 11px 12px; border-radius: 8px; color: #30443b; }
  .mobile-nav nav a:hover, .mobile-nav nav a.active { background: #edf7f2; color: var(--green-dark); }
  .mobile-nav nav a[href="/ai-money/"] { color: #8b3517; background: var(--coral-soft); }
  .mobile-nav nav a[href="/ai-stocks/"] { color: #5031aa; background: var(--violet-soft); }
  main { width: calc(100% - 28px); }
  .home-search-hero { padding-top: 14px; }
  .home-focus-grid { grid-template-columns: 1fr; }
  .home-trust-strip { grid-template-columns: 1fr; }
  .home-hero { padding: 50px 0 44px; }
  .home-hero h1 { font-size: clamp(2.65rem, 13vw, 4rem); }
  .hero-snapshot { grid-template-columns: 1fr; }
  .hero-snapshot-head, .hero-snapshot > p { grid-column: auto; }
  .hero-snapshot > a { border-right: 0; }
  .operation-brief { margin-bottom: 44px; }
  .page-head { padding: 44px 0 30px; }
  .page-head h1 { font-size: clamp(2.55rem, 12vw, 3.8rem); }
  .freshness { gap: 7px 14px; }
  .site-footer { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 560px) {
  .brand { font-size: .9rem; }
  .mobile-nav nav { grid-template-columns: 1fr 1fr; }
  .hero p, .page-head p { font-size: 1rem; }
  .home-search > div { grid-template-columns: 1fr auto; padding: 5px; }
  .home-search input { padding: 0 14px; font-size: .9rem; }
  .home-search button { min-width: 80px; }
  .home-feature-card { min-height: 0; padding: 28px 22px; }
  .home-feature-card h1 { font-size: 2.65rem; }
  .home-feature-card h2 { font-size: 1.55rem; }
  .home-daily-board { display: block; padding: 20px; }
  .home-board-group { margin-top: 10px; }
  .home-focus-card { min-height: 0; padding: 24px 22px; }
  .home-focus-card > div { align-items: flex-start; flex-direction: column; gap: 8px; }
  .hero .actions { display: grid; grid-template-columns: 1fr; }
  .hero .actions .button { width: 100%; }
  .operation-brief, .home-daily { padding: 20px; }
  .operation-signal-grid { margin-left: -20px; margin-right: -20px; }
  .share-bar > div:last-child { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .share-bar .button { width: 100%; }
  .filters { padding: 14px; }
  .card { padding: 18px; }
  .card-actions .button, .card-actions .source { min-height: 40px; display: inline-flex; align-items: center; }
  .footer-links { grid-template-columns: 1fr 1fr; gap: 28px 20px !important; }
  .footer-links > div:last-child { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
