/* === Reset === */
    *, *::before, *::after { box-sizing: border-box; }
    html, body { margin: 0; padding: 0; }
    body {
      font-family: system-ui, -apple-system, "Helvetica Neue", "Noto Sans JP", sans-serif;
      color: #202124;
      background: #FFFFFF;
      line-height: 1.6;
      -webkit-font-smoothing: antialiased;
    }
    a { color: #1a0dab; text-decoration: none; }
    a:hover { text-decoration: underline; }
    button { font-family: inherit; cursor: pointer; }
    h1, h2, h3 { margin: 0; font-weight: 600; }

    /* === Layout === */
    .site-header {
      height: 64px;
      border-bottom: 1px solid #E0E0E0;
      display: flex;
      align-items: center;
      padding: 0 24px;
      background: #FFFFFF;
    }
    .site-header__logo {
      font-size: 20px;
      font-weight: 700;
      color: #202124;
      letter-spacing: 2px;
    }
    .site-header__nav {
      margin-left: auto;
      display: flex;
      gap: 24px;
    }
    .site-header__nav a {
      color: #5f6368;
      font-size: 14px;
    }
    .site-footer {
      border-top: 1px solid #E0E0E0;
      padding: 24px;
      text-align: center;
      color: #5f6368;
      font-size: 13px;
      margin-top: 80px;
    }
    .site-footer a {
      color: #5f6368;
      margin: 0 12px;
    }

    /* === Hero (Top page) === */
    .hero {
      max-width: 720px;
      margin: 96px auto 32px;
      padding: 0 24px;
      text-align: center;
    }
    .hero__title {
      font-size: 56px;
      letter-spacing: 8px;
      margin-bottom: 8px;
    }
    .hero__subtitle {
      font-size: 14px;
      color: #5f6368;
      margin-bottom: 40px;
    }

    /* === Search Form === */
    .search-form {
      display: flex;
      gap: 8px;
      max-width: 580px;
      margin: 0 auto;
    }
    .search-form__input {
      flex: 1;
      height: 44px;
      padding: 0 20px;
      border: 1px solid #E0E0E0;
      border-radius: 22px;
      font-size: 16px;
      outline: none;
      transition: border-color 0.15s;
    }
    .search-form__input:focus {
      border-color: #1a73e8;
    }
    .search-form__button {
      height: 44px;
      padding: 0 24px;
      border: 1px solid #E0E0E0;
      border-radius: 22px;
      background: #F8F9FA;
      color: #202124;
      font-size: 14px;
      transition: background 0.15s;
    }
    .search-form__button:hover {
      background: #F1F3F4;
    }

    /* === Category chips === */
    .chips {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      justify-content: center;
      max-width: 580px;
      margin: 24px auto 0;
      padding: 0 16px;
    }
    .chip {
      display: inline-block;
      padding: 8px 16px;
      border: 1px solid #E0E0E0;
      border-radius: 16px;
      background: #FFFFFF;
      color: #202124;
      font-size: 13px;
      cursor: pointer;
      transition: background 0.15s;
    }
    .chip:hover {
      background: #F8F9FA;
    }
    .chip--active {
      background: #F1F3F4;
      border-color: #DADCE0;
      font-weight: 600;
    }

    /* === Pinned articles (top page) === */
    .pinned {
      max-width: 720px;
      margin: 64px auto 0;
      padding: 0 24px;
    }
    .pinned__title {
      font-size: 13px;
      color: #5f6368;
      margin-bottom: 16px;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }
    .pinned__list {
      list-style: none;
      padding: 0;
      margin: 0;
    }
    .pinned__item {
      padding: 12px 0;
      border-bottom: 1px solid #F1F3F4;
      font-size: 15px;
    }
    .pinned__item:last-child {
      border-bottom: none;
    }
    .pinned__category {
      display: inline-block;
      font-size: 11px;
      color: #5f6368;
      margin-left: 8px;
    }

    /* === Search results header (results page) === */
    .results-header {
      max-width: 720px;
      margin: 24px auto 0;
      padding: 0 24px;
    }
    .results-header .search-form {
      max-width: 580px;
      margin: 0;
    }
    .results-header .chips {
      justify-content: flex-start;
      max-width: none;
      margin: 16px 0 0;
      padding: 0;
    }
    .results-summary {
      max-width: 720px;
      margin: 24px auto 16px;
      padding: 0 24px;
      font-size: 14px;
      color: #5f6368;
    }

    /* === Result cards === */
    .results {
      max-width: 720px;
      margin: 0 auto;
      padding: 0 24px;
    }
    .result-card {
      padding: 16px;
      border: 1px solid #E0E0E0;
      border-radius: 8px;
      background: #FFFFFF;
      margin-bottom: 16px;
    }
    .result-card__category {
      display: inline-block;
      padding: 2px 10px;
      border-radius: 10px;
      font-size: 11px;
      font-weight: 600;
      margin-bottom: 8px;
    }
    .result-card__category--eneuru { background: #E3F2FD; color: #0D47A1; }
    .result-card__category--taiyou  { background: #FFF3E0; color: #E65100; }
    .result-card__category--baikyaku{ background: #F3E5F5; color: #4A148C; }
    .result-card__category--kimete  { background: #F1F8E9; color: #33691E; }

    .result-card__title {
      font-size: 18px;
      line-height: 1.4;
      margin-bottom: 4px;
    }
    .result-card__title a {
      color: #1a0dab;
    }
    .result-card__url {
      font-size: 12px;
      color: #006621;
      margin-bottom: 8px;
      word-break: break-all;
    }
    .result-card__excerpt {
      font-size: 14px;
      color: #5f6368;
      margin-bottom: 16px;
    }
    .result-card__excerpt mark {
      background: #FFF3CD;
      color: inherit;
      padding: 0 2px;
    }

    /* === Two CTA buttons === */
    .cta-row {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
    }
    .cta-button {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      height: 40px;
      padding: 0 20px;
      border-radius: 20px;
      font-size: 14px;
      font-weight: 500;
      text-decoration: none;
      transition: opacity 0.15s, background 0.15s;
    }
    .cta-button--primary {
      background: #1a73e8;
      color: #FFFFFF;
      border: 1px solid #1a73e8;
    }
    .cta-button--primary:hover {
      background: #1765cc;
      text-decoration: none;
    }
    .cta-button--secondary {
      background: #FFFFFF;
      color: #1a73e8;
      border: 1px solid #DADCE0;
    }
    .cta-button--secondary:hover {
      background: #F8F9FA;
      text-decoration: none;
    }

    /* === Empty state === */
    .empty-state {
      max-width: 720px;
      margin: 48px auto;
      padding: 0 24px;
      text-align: center;
      color: #5f6368;
    }
    .empty-state__title {
      font-size: 18px;
      margin-bottom: 16px;
    }
    .empty-state__suggestions {
      list-style: none;
      padding: 0;
      margin: 24px 0 0;
    }
    .empty-state__suggestions li {
      display: inline-block;
      margin: 4px;
    }

    /* === Mobile === */
    @media (max-width: 768px) {
      .site-header { padding: 0 16px; }
      .site-header__nav { gap: 16px; }
      .hero { margin: 48px auto 24px; }
      .hero__title { font-size: 40px; letter-spacing: 4px; }
      .search-form { max-width: 100%; }
      .search-form__input { font-size: 16px; }
      .chips { padding: 0 12px; }
      .pinned, .results, .results-header, .results-summary { padding: 0 16px; }
      .result-card { padding: 12px; }
      .result-card__title { font-size: 16px; }
      .cta-button { padding: 0 16px; font-size: 13px; }
    }