  * { box-sizing: border-box; margin: 0; padding: 0; }
  body { font-family: "Hiragino Sans","Noto Sans JP",sans-serif; font-size: 13px; color: #1a1a1a; background: #e8e6e2; line-height: 1.6; }
  a { color: inherit; text-decoration: none; }

  /* ─── ツールバー ─── */
  .toolbar { position: sticky; top: 0; z-index: 50; background: #1a1a1a; color: #aaa; display: flex; align-items: center; gap: 12px; padding: 10px 16px; flex-wrap: wrap; }
  .toolbar .tb-title { color: #c8a96e; font-weight: 700; font-size: 12px; letter-spacing: .08em; margin-right: auto; }
  .toolbar button { font-family: inherit; font-size: 11px; background: #2a2a2a; color: #aaa; border: 1px solid #333; border-radius: 4px; padding: 5px 12px; cursor: pointer; }
  .toolbar button.on { background: #c8a96e; color: #1a1a1a; border-color: #c8a96e; font-weight: 700; }

  .intro { max-width: 960px; margin: 24px auto 16px; padding: 0 16px; font-size: 12px; color: #555; line-height: 1.8; }
  .intro strong { color: #1a1a1a; }

  /* ─── PAGE WRAPPER ─── */
  .page-wrap { max-width: 960px; margin: 0 auto 60px; background: #fff; border: 1px solid #ccc; border-radius: 4px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,.12); container-type: inline-size; transition: max-width .25s; }
  body.sp .page-wrap { max-width: 375px; }
  .page-label { background: #1a1a1a; color: #c8a96e; padding: 10px 20px; font-size: 11px; font-weight: 700; letter-spacing: .12em; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
  .page-label .pg-tag { background: #c8a96e; color: #1a1a1a; border-radius: 3px; padding: 2px 8px; font-size: 10px; }
  .page-label .pg-url { color: #666; font-weight: 400; font-size: 10px; }

  /* ─── 注釈 ─── */
  .ann { background: #fffbe6; border-left: 3px solid #c8a96e; padding: 8px 12px; font-size: 11px; color: #555; line-height: 1.7; }
  .ann strong { color: #b5842a; }
  .ann .tbd { display: inline-block; background: #fbe3e0; color: #c0392b; font-weight: 700; font-size: 10px; padding: 0 6px; border-radius: 3px; margin-right: 4px; }
  body.no-ann .ann { display: none; }

  /* ─── ヘッダー ─── */
  .site-header { background: #1a1a1a; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; height: 56px; gap: 16px; }
  .site-logo { color: #c8a96e; font-size: 15px; font-weight: 700; letter-spacing: .06em; white-space: nowrap; }
  .site-logo span { color: #fff; font-size: 9px; display: block; letter-spacing: .1em; margin-top: -2px; font-weight: 400; }
  .header-nav { display: flex; gap: 18px; }
  .header-nav a { color: #aaa; font-size: 11px; white-space: nowrap; }
  .header-nav a.active { color: #c8a96e; }
  .btn-mypage { background: transparent; border: 1px solid #c8a96e; color: #c8a96e; border-radius: 4px; padding: 5px 12px; font-size: 11px; white-space: nowrap; }
  .hamburger { display: none; color: #c8a96e; font-size: 20px; }

  /* ─── HERO（検索） ─── */
  .hero { background: #1a1a1a; padding: 36px 24px 32px; color: #fff; border-top: 1px solid #2a2a2a; }
  .hero .kicker { font-size: 10px; letter-spacing: .2em; color: #c8a96e; font-weight: 700; margin-bottom: 10px; }
  .hero h1 { font-size: 24px; line-height: 1.5; font-weight: 700; margin-bottom: 8px; }
  .hero h1 span { color: #c8a96e; }
  .hero .sub { font-size: 12px; color: #888; margin-bottom: 20px; }
  .search-big { display: flex; background: #fff; border-radius: 8px; overflow: hidden; max-width: 620px; }
  .search-big .sb-input { flex: 1; padding: 13px 16px; font-size: 13px; color: #aaa; }
  .search-big .sb-btn { background: #c8a96e; color: #1a1a1a; font-weight: 700; padding: 13px 20px; font-size: 13px; white-space: nowrap; }
  .hot { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
  .hot .hot-label { font-size: 10px; color: #666; margin-right: 2px; }
  .hot a { font-size: 11px; color: #ccc; border: 1px solid #3a3a3a; border-radius: 14px; padding: 2px 10px; }
  .stats { display: flex; gap: 28px; margin-top: 24px; padding-top: 18px; border-top: 1px solid #2a2a2a; flex-wrap: wrap; }
  .stats div { font-size: 10px; color: #888; }
  .stats b { display: block; font-size: 20px; color: #fff; font-weight: 700; line-height: 1.3; }

  /* ─── オーナー帯（北原／アカデミー生） ─── */
  .owner { background: #f2f0ec; padding: 12px 24px; display: flex; align-items: baseline; gap: 10px; border-top: 3px solid #c8a96e; }
  .owner.academy { border-top-color: #4a90a4; }
  .owner .o-name { font-size: 15px; font-weight: 700; letter-spacing: .04em; }
  .owner .o-sub { font-size: 11px; color: #888; }

  /* ─── セクション共通 ─── */
  .sec { padding: 22px 24px 26px; border-bottom: 1px solid #eeece8; }
  .sec-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
  .sec-head .s-key { font-size: 10px; font-weight: 700; color: #fff; background: #1a1a1a; border-radius: 3px; padding: 1px 7px; letter-spacing: .06em; }
  .sec-head h2 { font-size: 16px; font-weight: 700; }
  .sec-head .s-sub { font-size: 11px; color: #888; }
  .sec-head .see-all { margin-left: auto; font-size: 11px; color: #b5842a; }

  /* 悩みから探す */
  .worry-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .worry { border: 1px solid #e0ddd8; border-radius: 8px; padding: 12px 12px 10px; background: #fff; display: flex; flex-direction: column; gap: 6px; }
  .worry:hover { border-color: #c8a96e; }
  .worry .w-q { font-size: 13px; font-weight: 700; line-height: 1.45; }
  .worry .w-meta { font-size: 10px; color: #999; margin-top: auto; }
  .worry .w-types { display: flex; gap: 3px; flex-wrap: wrap; }
  .worry.more { background: #faf9f7; border-style: dashed; align-items: center; justify-content: center; color: #999; font-size: 11px; }

  /* 悩みから探す：段階ごと */
  .phase-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
  .phase { display: flex; flex-direction: column; gap: 6px; background: #faf9f7; border-radius: 10px; padding: 10px; }
  .phase .ph-head { display: flex; flex-direction: column; padding: 2px 4px 6px; border-bottom: 2px solid #c8a96e; margin-bottom: 2px; }
  .phase .ph-no { font-size: 17px; font-weight: 800; letter-spacing: .02em; }
  .phase .ph-sub { font-size: 11px; color: #888; }
  .phase .worry { padding: 10px 11px 8px; }
  @container (max-width: 640px) {
    .phase-grid { grid-template-columns: 1fr; }
    .phase .ph-head { flex-direction: row; align-items: baseline; gap: 8px; }
  }

  .phase .ph-more { display: flex; flex-direction: column; gap: 6px; }
  .phase .ph-more[hidden] { display: none; }
  .phase .ph-toggle { margin-top: 2px; background: none; border: 0; padding: 4px 2px; font: inherit; font-size: 11px; color: #b5842a; cursor: pointer; text-align: left; }
  .phase .ph-toggle:hover { text-decoration: underline; }

  .worry .w-sub { font-size: 11px; color: #777; line-height: 1.45; margin-top: -3px; }

  /* 悩みから探す：段階を上から下に並べ、悩みの文を直接並べる */
  .phase-list { display: flex; flex-direction: column; gap: 10px; }
  .phase-row { display: grid; grid-template-columns: 150px 1fr; gap: 14px; align-items: start; background: #faf9f7; border-radius: 10px; padding: 12px 14px; }
  .phase-row .ph-head { display: flex; flex-direction: column; border-left: 3px solid #c8a96e; padding: 2px 0 2px 10px; }
  .phase-row .ph-no { font-size: 17px; font-weight: 800; letter-spacing: .02em; }
  .phase-row .ph-sub { font-size: 11px; color: #888; }
  .ph-items { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; align-items: stretch; }
  .ph-items .worry { padding: 10px 12px 8px; }
  .ph-items .ph-more { display: contents; }
  .ph-items .ph-more[hidden] { display: none; }
  .ph-items .ph-toggle { align-self: center; justify-self: start; background: none; border: 0; padding: 4px 2px; font: inherit; font-size: 11px; color: #b5842a; cursor: pointer; }
  .ph-items .ph-toggle:hover { text-decoration: underline; }
  @container (max-width: 640px) {
    .phase-row { grid-template-columns: 1fr; gap: 8px; }
    .phase-row .ph-head { flex-direction: row; align-items: baseline; gap: 8px; }
    .ph-items { grid-template-columns: 1fr; }
  }

  /* テーマから探す */
  .theme-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .theme { border: 1px solid #e0ddd8; border-radius: 8px; overflow: hidden; display: flex; }
  .theme .t-no { background: #1a1a1a; color: #c8a96e; font-weight: 700; font-size: 16px; width: 52px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
  .theme .t-body { padding: 10px 12px; display: flex; flex-direction: column; }
  .theme .t-name { font-size: 13px; font-weight: 700; }
  .theme .t-subs { font-size: 10px; color: #888; line-height: 1.6; margin-top: 2px; }
  .theme .t-count { font-size: 10px; color: #b5842a; margin-top: 4px; }

  /* TYPEバッジ */
  .type { display: inline-block; font-size: 9px; font-weight: 700; letter-spacing: .08em; padding: 1px 6px; border-radius: 3px; color: #fff; line-height: 1.6; white-space: nowrap; }
  .type-case { background: #b5842a; }
  .type-view { background: #1a1a1a; color: #c8a96e; }
  .type-qa { background: #3b5a8a; }
  .type-guide { background: #2f5d50; }
  .type-video { background: #7a3b3b; }
  .type-diagram { background: #6b6b6b; }

  /* コンテンツから探す（シリーズ） */
  .series-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .series { border: 1px solid #e0ddd8; border-radius: 8px; padding: 12px; background: #fff; }
  .series .se-top { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
  .series .se-name { font-size: 13px; font-weight: 700; }
  .series .se-desc { font-size: 10px; color: #888; line-height: 1.6; margin-bottom: 8px; }
  .series .se-item { font-size: 11px; font-weight: 600; line-height: 1.5; padding: 6px 8px; background: #f7f6f3; border-radius: 4px; }
  .series .se-count { font-size: 10px; color: #b5842a; margin-top: 6px; }

  /* 動画から生まれたコンテンツ */
  .feature { display: grid; grid-template-columns: 260px 1fr; gap: 14px; }
  .feature .f-video { background: #2a2a2a; border-radius: 8px; color: #888; padding: 14px; display: flex; flex-direction: column; justify-content: space-between; min-height: 180px; }
  .feature .f-video .fv-play { font-size: 28px; color: #fff; text-align: center; margin: 14px 0; }
  .feature .f-video .fv-title { font-size: 12px; color: #fff; font-weight: 700; line-height: 1.5; }
  .feature .f-video .fv-meta { font-size: 10px; color: #888; margin-top: 4px; }
  .derived { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
  .derived a { border: 1px solid #e0ddd8; border-radius: 6px; padding: 8px 10px; display: flex; flex-direction: column; gap: 4px; }
  .derived a:hover { border-color: #c8a96e; }
  .derived .d-title { font-size: 11px; font-weight: 700; line-height: 1.45; }
  .derived .d-tc { font-size: 9px; color: #aaa; }

  /* 学習ルート */
  .route-main { border: 1px solid #e0ddd8; border-radius: 10px; overflow: hidden; }
  .route-main .rm-head { background: #1a1a1a; color: #fff; padding: 14px 16px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
  .route-main .rm-title { font-size: 14px; font-weight: 700; }
  .route-main .rm-meta { font-size: 10px; color: #888; margin-left: auto; }
  .route-main .rm-bar { height: 4px; background: #333; border-radius: 2px; width: 120px; overflow: hidden; }
  .route-main .rm-bar i { display: block; height: 100%; width: 30%; background: #c8a96e; }
  .route-steps { display: grid; grid-template-columns: repeat(3, 1fr); }
  .route-steps a { padding: 12px 12px 14px; border-right: 1px solid #eeece8; position: relative; display: flex; flex-direction: column; gap: 6px; }
  .route-steps a:last-child { border-right: none; }
  .route-steps a:nth-child(3n) { border-right: none; }
  .route-steps a:nth-child(n+4) { border-top: 1px solid #eeece8; }
  .route-steps .r-no { font-size: 10px; font-weight: 700; color: #c8a96e; }
  .route-steps .r-title { font-size: 11px; font-weight: 700; line-height: 1.45; }
  .route-steps a.done .r-no::after { content: " ✓ 読了"; color: #2f5d50; }
  .route-others { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
  .route-others a { border: 1px solid #e0ddd8; border-radius: 8px; padding: 10px 12px; display: flex; justify-content: space-between; gap: 8px; align-items: center; }
  .route-others .ro-title { font-size: 12px; font-weight: 700; }
  .route-others .ro-meta { font-size: 10px; color: #999; white-space: nowrap; }

  /* 今日の語録 */
  .quote { background: #1a1a1a; border-radius: 10px; padding: 18px 20px; color: #fff; display: flex; gap: 16px; align-items: center; }
  .quote .q-k { font-size: 9px; letter-spacing: .15em; color: #c8a96e; font-weight: 700; writing-mode: vertical-rl; flex-shrink: 0; }
  .quote .q-text { font-size: 15px; font-weight: 700; line-height: 1.7; }
  .quote .q-text em { color: #c8a96e; font-style: normal; }
  .quote .q-link { font-size: 10px; color: #888; margin-top: 6px; }

  /* 新着カード（既存WFの棚） */
  .shelf-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .sh-card { border: 1px solid #e0ddd8; border-radius: 6px; overflow: hidden; }
  .sh-thumb { background: #f0efed; height: 68px; display: flex; align-items: center; justify-content: center; font-size: 10px; color: #aaa; border-bottom: 1px solid #e8e5e0; }
  .sh-thumb.vid { background: #2a2a2a; color: #666; }
  .sh-thumb.arc { background: #1e2e38; color: #4a90a4; font-size: 18px; }
  .sh-body { padding: 8px 10px; }
  .sh-cat { font-size: 9px; color: #c8a96e; font-weight: 700; margin-bottom: 2px; }
  .sh-cat.arc { color: #4a90a4; }
  .sh-title { font-size: 11px; font-weight: 700; line-height: 1.4; }
  .sh-meta { font-size: 9px; color: #aaa; margin-top: 3px; }

  .footer { background: #1a1a1a; color: #666; font-size: 10px; padding: 18px 24px; display: flex; gap: 18px; flex-wrap: wrap; }

  /* ─── スマホ幅（コンテナ幅で切替） ─── */
  @container (max-width: 640px) {
    .header-nav, .btn-mypage { display: none; }
    .hamburger { display: block; }
    .site-header, .hero, .sec, .owner { padding-left: 16px; padding-right: 16px; }
    .hero h1 { font-size: 20px; }
    .stats { gap: 18px; }
    .worry-grid { grid-template-columns: 1fr 1fr; }
    .theme-grid { grid-template-columns: 1fr 1fr; }
    .theme .t-no { width: 36px; font-size: 13px; }
    .theme .t-subs { display: none; }
    .series-grid { display: flex; overflow-x: auto; gap: 8px; padding-bottom: 4px; }
    .series { min-width: 220px; }
    .feature { grid-template-columns: 1fr; }
    .feature .f-video { min-height: 140px; }
    .derived { grid-template-columns: 1fr; }
    .route-steps { grid-template-columns: 1fr; }
    .route-steps a { border-right: none; border-bottom: 1px solid #eeece8; flex-direction: row; align-items: baseline; gap: 10px; }
    .route-steps .r-no { width: 64px; flex-shrink: 0; }
    .route-others { grid-template-columns: 1fr; }
    .shelf-cards { display: flex; overflow-x: auto; }
    .sh-card { min-width: 200px; }
    .search-big .sb-btn { padding: 13px 14px; }
  }
  /* 実挙動化で追加 */
  .search-big { border: 0; }
  .search-big .sb-input { border: 0; outline: none; font-family: inherit; color: #1a1a1a; min-width: 0; }
  .search-big .sb-btn { border: 0; cursor: pointer; font-family: inherit; }
  .hd-search-icon { font-size: 15px; }
  .series .se-top { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
  .series .se-top:hover .se-name { color: #b5842a; }
  .series .se-item { display: block; }
  .series .se-item:hover { background: #fdf9f2; }
  .series .se-count { display: block; }
  .route-others .ro { border: 1px dashed #e0ddd8; border-radius: 8px; padding: 10px 12px; display: flex; justify-content: space-between; gap: 8px; align-items: center; color: #999; }
  .quote:hover .q-link { color: #c8a96e; }
  .route-main + .route-main { margin-top: 12px; }
  .route-steps.s4 { grid-template-columns: repeat(3, 1fr); }
  .route-steps.s3 { grid-template-columns: repeat(3, 1fr); }
  @container (max-width: 640px) { .route-steps.s4, .route-steps.s3 { grid-template-columns: 1fr; } }
  .route-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
  .rc { border: 1px solid #e0ddd8; border-radius: 10px; padding: 14px 14px 10px; background: #fff; display: flex; flex-direction: column; }
  .rc-head { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; flex-wrap: wrap; }
  .rc-title { font-size: 13px; font-weight: 700; line-height: 1.5; }
  .rc-meta { font-size: 10px; color: #999; white-space: nowrap; }
  .rc-for { font-size: 10px; color: #8a6a2a; background: #fdf9f2; border-radius: 4px; padding: 3px 8px; margin: 6px 0 8px; line-height: 1.6; }
  .rc-steps { list-style: none; counter-reset: rs; }
  .rc-steps li { counter-increment: rs; border-top: 1px solid #f0efed; }
  .rc-steps a { display: flex; gap: 8px; align-items: center; padding: 7px 0; font-size: 11px; font-weight: 600; line-height: 1.45; }
  .rc-steps a::before { content: counter(rs); flex-shrink: 0; width: 18px; height: 18px; border-radius: 50%; background: #1a1a1a; color: #c8a96e; font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
  .rc-steps a:hover { color: #b5842a; }
  .rc-steps .type { flex-shrink: 0; }
  @container (max-width: 640px) { .route-grid { grid-template-columns: 1fr; } }
  .t-count:empty::after, .w-meta:empty::after { content: "…"; }
