    :root {
      --bg: #fffbf5;
      --surface: #ffffff;
      --surface-warm: #fff3e6;
      --text: #1c1917;
      --muted: #736c66; /* WCAG AA(4.5:1)を全背景(bg/surface/warm)で満たすよう微調整 */
      --line: rgba(28, 25, 23, 0.08);
      --orange: #f97316;
      --orange-soft: rgba(249, 115, 22, 0.12);
      --blue: #0ea5e9;
      --blue-soft: rgba(14, 165, 233, 0.12);
      --card-tint: white;
      --card-border: rgba(14,165,233,0.18);
      --green: #22c55e;
      --green-soft: rgba(34, 197, 94, 0.12);
      --purple: #a855f7;
      --purple-soft: rgba(168, 85, 247, 0.12);
      --yellow: #fbbf24;
      --pink: #f472b6;
      --radius-xl: 28px;
      --radius-lg: 20px;
      --radius-md: 14px;
      --shadow-sm: 0 2px 12px rgba(0,0,0,0.06);
      --shadow: 0 8px 32px rgba(0,0,0,0.09);
      --shadow-lg: 0 20px 60px rgba(0,0,0,0.12);
      --container: min(1100px, calc(100% - 40px));
      --agent-bg: rgba(15, 15, 25, 0.96);
      --agent-surface: rgba(255, 255, 255, 0.04);
      --agent-accent: #8b5cf6;
      --agent-accent-2: #06b6d4;
      --agent-text: #e8eaf2;
      --agent-muted: #9aa1b4;
      --agent-bubble-user: linear-gradient(135deg, rgba(6, 182, 212, 0.22), rgba(139, 92, 246, 0.14));
      --agent-bubble-agent: rgba(255, 255, 255, 0.05);
    }

    * { box-sizing: border-box; margin: 0; padding: 0; }
    html { scroll-behavior: smooth; }
    body {
      background: var(--bg);
      color: var(--text);
      font-family: "Aptos", "Segoe UI Variable", "Yu Gothic UI", "Hiragino Sans", "Meiryo", sans-serif;
      line-height: 1.75;
      overflow-x: hidden;
    }
    a { color: inherit; text-decoration: none; }
    img { max-width: 100%; display: block; }

    /* ─── Canvas Background ─── */
    #bg-canvas {
      position: fixed;
      inset: 0;
      z-index: -1;
      pointer-events: none;
    }

    /* ─── Header ─── */
    .site-header {
      position: sticky;
      top: 0;
      z-index: 100;
      background: rgba(255, 251, 245, 0.85);
      backdrop-filter: blur(18px);
      border-bottom: 1px solid var(--line);
    }
    .header-inner {
      width: var(--container);
      margin: 0 auto;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 20px;
      min-height: 70px;
    }
    .brand {
      display: flex;
      align-items: center;
      gap: 10px;
      font-weight: 800;
      font-size: 1.2rem;
      letter-spacing: -0.02em;
      flex-shrink: 0;
    }
    .brand-logo {
      height: 40px;
      width: auto;
      display: block;
      filter: drop-shadow(0 0 6px rgba(0, 245, 255, 0.5));
      transition: filter 0.3s ease;
    }
    .brand-logo:hover {
      filter: drop-shadow(0 0 12px rgba(0, 245, 255, 0.9))
              drop-shadow(0 0 24px rgba(155, 89, 255, 0.5));
    }
    .site-nav {
      display: flex;
      align-items: center;
      gap: 4px;
      flex-wrap: nowrap;
      min-width: 0;
      overflow-x: auto;
      scrollbar-width: thin;
      -webkit-mask-image: linear-gradient(to right, transparent 0, #000 16px, #000 calc(100% - 16px), transparent 100%);
      mask-image: linear-gradient(to right, transparent 0, #000 16px, #000 calc(100% - 16px), transparent 100%);
    }
    .site-nav::-webkit-scrollbar { height: 4px; }
    .site-nav::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; }
    .site-nav a,
    .site-nav button.nav-locate-btn {
      padding: 8px 14px;
      border-radius: 999px;
      color: var(--muted);
      font-size: 0.9rem;
      font-weight: 500;
      white-space: nowrap;
      flex-shrink: 0;
      transition: background 0.2s, color 0.2s;
    }
    .site-nav button.nav-locate-btn {
      border: 1px solid rgba(14,165,233,0.18);
      background: rgba(14,165,233,0.08);
      color: var(--blue);
      cursor: pointer;
      font-family: inherit;
      white-space: nowrap;
    }
    .site-nav a:hover,
    .site-nav button.nav-locate-btn:hover {
      background: var(--orange-soft);
      color: var(--orange);
    }
    .site-nav a.nav-active {
      background: rgba(14,165,233,0.12);
      color: var(--blue);
      border-bottom: 2px solid var(--blue);
    }
    #scroll-progress-bar {
      position: fixed;
      top: 0;
      left: 0;
      width: 0%;
      height: 3px;
      background: linear-gradient(90deg, #0ea5e9, #9b59ff);
      z-index: 9999;
      transition: width 0.1s linear;
      pointer-events: none;
    }
    .site-nav button.nav-locate-btn:disabled {
      cursor: wait;
      opacity: 0.72;
    }
    .lang-btn {
      margin-left: 6px;
      padding: 5px 13px;
      border-radius: 999px;
      border: 1px solid var(--line);
      background: transparent;
      color: var(--muted);
      font-size: 0.78rem;
      font-weight: 700;
      cursor: pointer;
      letter-spacing: 0.5px;
      transition: background 0.2s, color 0.2s, border-color 0.2s;
      white-space: nowrap;
      flex-shrink: 0;
    }
    .lang-btn:hover { background: var(--orange-soft); color: var(--orange); border-color: var(--orange); }
    .lang-btn[data-active="en"] { background: var(--orange-soft); color: var(--orange); border-color: var(--orange); }

    /* ─── Sections ─── */
    .section-inner {
      width: var(--container);
      margin: 0 auto;
    }
    main section {
      padding: 80px 0;
    }

    /* ─── Hero ─── */
    .hero {
      padding-top: 60px !important;
      padding-bottom: 60px !important;
      text-align: center;
      position: relative;
    }
    .hero-badge {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      background: var(--orange-soft);
      color: var(--orange);
      font-size: 0.85rem;
      font-weight: 700;
      padding: 6px 16px;
      border-radius: 999px;
      margin-bottom: 24px;
      border: 1px solid rgba(249,115,22,0.2);
    }
    .hero-badge .dot {
      width: 7px;
      height: 7px;
      background: var(--orange);
      border-radius: 50%;
      animation: pulse 2s ease-in-out infinite;
    }
    @keyframes pulse {
      0%, 100% { transform: scale(1); opacity: 1; }
      50% { transform: scale(1.4); opacity: 0.6; }
    }
    .hero h1 {
      font-size: clamp(2.4rem, 6vw, 4rem);
      font-weight: 900;
      line-height: 1.15;
      letter-spacing: -0.03em;
      margin-bottom: 20px;
    }
    .hero h1 .highlight {
      background: linear-gradient(135deg, var(--orange), #f43f5e);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }
    .hero-desc {
      font-size: clamp(1rem, 2.2vw, 1.15rem);
      color: var(--muted);
      max-width: 560px;
      margin: 0 auto 32px;
    }
    .hero-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      justify-content: center;
      margin-bottom: 48px;
    }
    .btn {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 12px 24px;
      border-radius: 999px;
      font-weight: 700;
      font-size: 0.95rem;
      cursor: pointer;
      border: none;
      transition: transform 0.2s, box-shadow 0.2s;
    }
    .btn:hover { transform: translateY(-2px); }
    .btn-primary {
      background: linear-gradient(135deg, var(--orange), #fb923c);
      color: white;
      box-shadow: 0 4px 20px rgba(249,115,22,0.4);
    }
    .btn-primary:hover { box-shadow: 0 8px 28px rgba(249,115,22,0.5); }
    .btn-outline {
      background: white;
      color: var(--text);
      border: 1.5px solid var(--line);
      box-shadow: var(--shadow-sm);
    }
    .btn-outline:hover { border-color: var(--orange); color: var(--orange); }

    .hero-chips {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      justify-content: center;
    }
    .chip {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 7px 16px;
      background: white;
      border: 1.5px solid var(--line);
      border-radius: 999px;
      font-size: 0.85rem;
      font-weight: 600;
      color: var(--muted);
      box-shadow: var(--shadow-sm);
      transition: border-color 0.2s, color 0.2s, transform 0.2s;
    }
    .chip:hover { border-color: var(--orange); color: var(--orange); transform: translateY(-2px); }
    .chip-icon { font-size: 1rem; }

    /* ─── Hero Two-Column Layout ─── */
    .hero-inner {
      display: grid;
      grid-template-columns: 1fr auto;
      gap: 48px;
      align-items: center;
      text-align: left;
    }
    .hero-left .hero-desc { margin: 0 0 32px; }
    .hero-left .hero-actions { justify-content: flex-start; }
    .hero-left .hero-chips { justify-content: flex-start; }

    /* ─── Profile Card ─── */
    .hero-profile-card {
      background: white;
      border: 1.5px solid rgba(249,115,22,0.22);
      border-radius: var(--radius-xl);
      padding: 32px 28px;
      box-shadow: var(--shadow);
      text-align: center;
      width: 260px;
      flex-shrink: 0;
      animation: floatCard 6s ease-in-out infinite;
      position: relative;
      overflow: hidden;
    }
    .hero-profile-card::before {
      content: '';
      position: absolute;
      inset: 0;
      background: radial-gradient(circle at 65% 30%, rgba(249,115,22,0.07) 0%, transparent 60%);
      pointer-events: none;
    }
    .hero-profile-avatar { font-size: 4rem; line-height: 1; margin-bottom: 12px; }
    .hero-profile-name {
      font-size: 1.15rem;
      font-weight: 800;
      color: var(--text);
      margin-bottom: 6px;
    }
    .hero-profile-status {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-size: 0.8rem;
      color: #16a34a;
      font-weight: 600;
      margin-bottom: 20px;
    }
    .hero-profile-status::before {
      content: '';
      width: 7px; height: 7px;
      background: #22c55e;
      border-radius: 50%;
      animation: pulse 2s ease-in-out infinite;
    }
    .hero-profile-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 7px;
      justify-content: center;
      margin-bottom: 20px;
    }
    .hero-profile-tag {
      padding: 3px 11px;
      background: var(--orange-soft);
      color: var(--orange);
      border-radius: 999px;
      font-size: 0.75rem;
      font-weight: 700;
    }
    .hero-profile-stats {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 6px;
      border-top: 1px solid var(--line);
      padding-top: 16px;
    }
    .hero-profile-stat-n {
      font-size: 1.4rem;
      font-weight: 900;
      color: var(--orange);
      display: block;
      line-height: 1.1;
    }
    .hero-profile-stat-l {
      font-size: 0.68rem;
      color: var(--muted);
      font-weight: 600;
    }
    @keyframes floatCard {
      0%, 100% { transform: translateY(0); }
      50%       { transform: translateY(-12px); }
    }

    /* ─── Typewriter cursor ─── */
    .tw-cursor {
      display: inline-block;
      width: 3px;
      height: 0.85em;
      background: var(--orange);
      margin-left: 2px;
      vertical-align: text-bottom;
      border-radius: 2px;
      animation: blink 0.8s step-end infinite;
    }
    @keyframes blink {
      0%, 100% { opacity: 1; }
      50%       { opacity: 0; }
    }

    /* ─── Scroll hint ─── */
    .scroll-hint {
      display: flex;
      justify-content: center;
      padding-top: 36px;
      color: var(--muted);
      opacity: 0.45;
      transition: opacity 0.2s;
      animation: bounceDown 2s ease-in-out infinite;
      text-decoration: none;
    }
    .scroll-hint:hover { opacity: 0.9; }
    .scroll-hint svg { width: 28px; height: 28px; }
    @keyframes bounceDown {
      0%, 100% { transform: translateY(0); }
      50%       { transform: translateY(8px); }
    }

    /* ─── AI Banner Strip ─── */
    .ai-strip {
      background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #0f172a 100%);
      border-top: 1px solid rgba(168,85,247,0.25);
      border-bottom: 1px solid rgba(168,85,247,0.25);
      padding: 18px 0;
    }
    .ai-strip-inner {
      display: flex;
      align-items: center;
      gap: 18px;
      flex-wrap: wrap;
    }
    .ai-strip-icon {
      font-size: 2rem;
      flex-shrink: 0;
    }
    .ai-strip-text {
      flex: 1;
      min-width: 0;
      color: #e2e8f0;
      font-size: 0.95rem;
      line-height: 1.55;
    }
    .ai-strip-text strong {
      color: #c4b5fd;
      font-size: 1.05rem;
    }
    .ai-strip-link {
      flex-shrink: 0;
      padding: 8px 18px;
      border-radius: 999px;
      background: rgba(168,85,247,0.22);
      border: 1px solid rgba(168,85,247,0.45);
      color: #c4b5fd;
      font-weight: 700;
      font-size: 0.88rem;
      white-space: nowrap;
      transition: background 0.2s;
    }
    .ai-strip-link:hover { background: rgba(168,85,247,0.38); }
    @media (max-width: 600px) {
      .ai-strip-text { font-size: 0.88rem; }
      .ai-strip-link { display: none; }
    }

    /* ─── Hero entrance stagger ─── */
    @keyframes fadeSlideUp {
      from { opacity: 0; transform: translateY(20px); }
      to   { opacity: 1; transform: translateY(0); }
    }
    .hs1 { animation: fadeSlideUp 0.6s ease both 0.1s; }
    .hs2 { animation: fadeSlideUp 0.6s ease both 0.25s; }
    .hs3 { animation: fadeSlideUp 0.6s ease both 0.4s; }
    .hs4 { animation: fadeSlideUp 0.6s ease both 0.55s; }
    .hs5 { animation: fadeSlideUp 0.6s ease both 0.7s; }

    /* ─── Hero responsive collapse ─── */
    @media (max-width: 860px) {
      .hero-inner { grid-template-columns: 1fr; text-align: center; }
      .hero-left .hero-desc { margin: 0 auto 32px; }
      .hero-left .hero-actions { justify-content: center; }
      .hero-left .hero-chips { justify-content: center; }
      .hero-right { display: none; }
    }

    /* ─── Section Header ─── */
    .sec-label {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      font-size: 0.78rem;
      font-weight: 800;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--orange);
      margin-bottom: 10px;
    }
    .sec-label::before {
      content: "";
      width: 24px;
      height: 2px;
      background: var(--orange);
      border-radius: 999px;
    }
    .sec-title {
      font-size: clamp(1.6rem, 4vw, 2.2rem);
      font-weight: 900;
      letter-spacing: -0.03em;
      line-height: 1.2;
      margin-bottom: 10px;
    }
    .sec-desc {
      color: var(--muted);
      font-size: 1rem;
      max-width: 520px;
    }
    .sec-header {
      margin-bottom: 40px;
    }

    /* ─── Card Base ─── */
    .card {
      background: white;
      border: 1.5px solid var(--line);
      border-radius: var(--radius-lg);
      box-shadow: var(--shadow-sm);
      transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
    }
    .card:hover {
      transform: translateY(-4px);
      box-shadow: var(--shadow);
    }

    /* ─── Local Info ─── */
    .local-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 20px;
    }
    .local-hero-card {
      grid-column: 1 / -1;
      padding: 32px 36px;
      background: linear-gradient(135deg, #fff7ed, #fef3c7);
      border-color: rgba(249,115,22,0.2);
      display: flex;
      align-items: center;
      gap: 32px;
    }
    .local-map-icon {
      font-size: 5rem;
      flex-shrink: 0;
      animation: floatY 3s ease-in-out infinite;
    }
    @keyframes floatY {
      0%, 100% { transform: translateY(0); }
      50% { transform: translateY(-10px); }
    }
    .local-hero-text h3 {
      font-size: 1.5rem;
      font-weight: 800;
      margin-bottom: 8px;
    }
    .local-hero-text p {
      color: var(--muted);
      font-size: 0.95rem;
    }
    .local-spot-card {
      padding: 24px 26px;
    }
    .spot-emoji { font-size: 2rem; margin-bottom: 12px; }
    .spot-name {
      font-size: 1rem;
      font-weight: 700;
      margin-bottom: 6px;
    }
    .spot-desc {
      font-size: 0.87rem;
      color: var(--muted);
      line-height: 1.6;
    }
    .spot-tag {
      display: inline-block;
      margin-top: 10px;
      font-size: 0.75rem;
      font-weight: 700;
      padding: 3px 10px;
      border-radius: 999px;
      background: var(--orange-soft);
      color: var(--orange);
      transition: background 0.2s, transform 0.2s;
    }
    a.spot-tag:hover {
      background: var(--orange);
      color: white;
      transform: translateY(-1px);
    }

    /* ─── Population Chart ─── */
    .local-pop-card { grid-column: 1 / -1; padding: 24px 28px; }
    .local-pop-header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
    .local-pop-title { font-size: 1rem; font-weight: 700; }
    .local-pop-sub { font-size: 0.78rem; color: var(--muted); margin-top: 2px; }
    #local-pop-canvas { width: 100%; height: 160px; display: block; }
    .local-pop-source { font-size: 0.72rem; color: var(--muted); margin-top: 8px; text-align: right; }

    /* ─── Population Pyramid ─── */
    .local-pyr-card { grid-column: 1 / -1; padding: 24px 28px; }
    #local-pyr-canvas { width: 100%; height: 360px; display: block; }

    /* ─── Households ─── */
    .household-card {
      background: linear-gradient(180deg, rgba(16,185,129,0.16), rgba(45,212,191,0.12)), #fff;
      border-color: rgba(16,185,129,0.2);
    }
    .household-head {
      display: flex;
      align-items: center;
      gap: 10px;
      border-bottom: 3px solid rgba(16,185,129,0.28);
      padding-bottom: 8px;
    }
    .household-icon { font-size: 1.65rem; }
    .household-kpi {
      display: flex;
      align-items: baseline;
      justify-content: flex-end;
      gap: 7px;
      color: #047857;
      font-weight: 900;
      line-height: 1;
    }
    .household-kpi strong {
      font-size: clamp(1.9rem, 5vw, 2.45rem);
      letter-spacing: 0;
    }
    .household-kpi span {
      font-size: 0.82rem;
      font-weight: 800;
    }
    .household-meta {
      text-align: right;
      color: #047857;
      font-size: 0.9rem;
      font-weight: 800;
    }
    #home-household-chart {
      width: 100%;
      height: 130px;
      display: block;
      border-radius: 8px;
      background: rgba(255,255,255,0.66);
      border: 1px solid rgba(16,185,129,0.12);
    }
    .household-tooltip {
      position: fixed;
      background: rgba(4,120,87,0.93);
      color: #fff;
      padding: 5px 11px;
      border-radius: 7px;
      font-size: 0.82rem;
      font-weight: 700;
      pointer-events: none;
      white-space: nowrap;
      z-index: 9999;
      display: none;
      box-shadow: 0 2px 8px rgba(0,0,0,0.18);
    }

    /* ─── Event Calendar ─── */
    .local-event-card { grid-column: 1 / -1; padding: 28px 32px; }
    .event-cal-header {
      display: flex; align-items: center; gap: 16px;
      margin-bottom: 20px; flex-wrap: wrap;
    }
    .event-cal-icon { font-size: 2.4rem; flex-shrink: 0; }
    .event-cal-title h3 { font-size: 1.15rem; font-weight: 800; }
    .event-cal-title p { font-size: 0.85rem; color: var(--muted); }
    .event-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
      gap: 12px;
    }
    .event-item {
      border: 1.5px solid var(--line);
      border-radius: var(--radius-md);
      padding: 14px 16px;
      position: relative;
      transition: border-color 0.2s, transform 0.2s;
      display: block;
      color: inherit;
    }
    .event-item:hover { transform: translateY(-2px); }
    .event-item.upcoming { border-color: rgba(14,165,233,0.35); background: var(--blue-soft); }
    .event-item.next-up {
      border-color: var(--blue);
      background: linear-gradient(135deg, rgba(14,165,233,0.13), rgba(14,165,233,0.05));
    }
    .event-item.past { opacity: 0.42; }
    .event-item-emoji { font-size: 1.5rem; margin-bottom: 6px; }
    .event-item-date { font-size: 0.72rem; font-weight: 700; color: var(--blue); margin-bottom: 4px; }
    .event-item-name { font-size: 0.9rem; font-weight: 700; margin-bottom: 4px; line-height: 1.4; }
    .event-item-location { font-size: 0.77rem; color: var(--muted); }
    .event-item-desc { font-size: 0.75rem; color: var(--muted); margin-top: 4px; line-height: 1.5; }
    .event-item-badge {
      position: absolute; top: 10px; right: 10px;
      font-size: 0.62rem; font-weight: 700;
      padding: 2px 8px; border-radius: 999px;
    }
    .event-item-badge.badge-next { background: var(--blue-soft); color: var(--blue); }
    .event-item-badge.badge-soon { background: var(--orange-soft); color: var(--orange); }
    @media (max-width: 640px) { .event-grid { grid-template-columns: 1fr 1fr; } }
    @media (max-width: 400px) { .event-grid { grid-template-columns: 1fr; } }

    /* ─── Hobbies ─── */
    .hobby-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 18px;
    }
    .hobby-card {
      padding: 28px 24px;
      text-align: center;
    }
    .hobby-icon {
      font-size: 2.8rem;
      margin-bottom: 14px;
      display: block;
    }
    .hobby-name {
      font-size: 1.05rem;
      font-weight: 800;
      margin-bottom: 8px;
    }
    .hobby-desc {
      font-size: 0.85rem;
      color: var(--muted);
      line-height: 1.65;
    }

    /* ─── Pet ─── */
    .pet-section {
      background: linear-gradient(135deg, #f0fdf4, #ecfeff);
    }
    .pet-card {
      padding: 40px;
      display: grid;
      grid-template-columns: auto 1fr;
      gap: 40px;
      align-items: center;
      border-color: rgba(34,197,94,0.2);
      background: white;
    }
    .pet-avatar {
      width: 160px;
      height: 160px;
      border-radius: 50%;
      background: linear-gradient(135deg, #bbf7d0, #a7f3d0);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 5.5rem;
      border: 4px solid white;
      box-shadow: 0 8px 32px rgba(34,197,94,0.25);
      animation: petFloat 4s ease-in-out infinite;
      flex-shrink: 0;
    }
    @keyframes petFloat {
      0%, 100% { transform: rotate(-3deg) scale(1); }
      50% { transform: rotate(3deg) scale(1.04); }
    }
    .pet-info h3 {
      font-size: 1.8rem;
      font-weight: 900;
      margin-bottom: 8px;
    }
    .pet-breed {
      display: inline-block;
      font-size: 0.8rem;
      font-weight: 700;
      padding: 4px 12px;
      border-radius: 999px;
      background: var(--green-soft);
      color: var(--green);
      margin-bottom: 14px;
    }
    .pet-info p {
      color: var(--muted);
      font-size: 0.95rem;
      max-width: 440px;
    }
    .pet-stats {
      display: flex;
      gap: 20px;
      margin-top: 20px;
      flex-wrap: wrap;
    }
    .pet-stat {
      text-align: center;
      background: #f0fdf4;
      padding: 12px 18px;
      border-radius: var(--radius-md);
    }
    .pet-stat strong {
      display: block;
      font-size: 1.2rem;
      font-weight: 900;
      color: var(--green);
    }
    .pet-stat span {
      font-size: 0.78rem;
      color: var(--muted);
    }

    /* ─── Dev Blog ─── */
    .blog-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 20px;
    }
    .blog-card {
      padding: 24px 26px;
      display: flex;
      flex-direction: column;
      gap: 10px;
    }
    .blog-card:hover { border-color: var(--blue); }
    .blog-tag {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-size: 0.74rem;
      font-weight: 700;
      letter-spacing: 0.06em;
      padding: 3px 10px;
      border-radius: 999px;
      align-self: flex-start;
    }
    .blog-tag.blue { background: var(--blue-soft); color: var(--blue); }
    .blog-tag.purple { background: var(--purple-soft); color: var(--purple); }
    .blog-tag.orange { background: var(--orange-soft); color: var(--orange); }
    .blog-tag.green { background: var(--green-soft); color: var(--green); }
    .blog-card h3 {
      font-size: 1rem;
      font-weight: 700;
      line-height: 1.5;
    }
    .blog-card p {
      font-size: 0.86rem;
      color: var(--muted);
      flex: 1;
      line-height: 1.65;
    }
    .blog-date {
      font-size: 0.78rem;
      color: var(--muted);
    }
    .blog-status {
      display: inline-block;
      font-size: 0.74rem;
      font-weight: 700;
      padding: 2px 8px;
      background: #f1f5f9;
      color: var(--muted);
      border-radius: 4px;
    }

    /* ─── Claude Tools ─── */
    .tools-section {
      background: linear-gradient(135deg, #fdf4ff, #fae8ff);
    }
    .tools-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 20px;
    }
    .tool-card {
      padding: 28px 30px;
      display: grid;
      grid-template-columns: 56px 1fr;
      gap: 18px;
      align-items: start;
      background: white;
      border-color: rgba(168,85,247,0.15);
    }
    .tool-card:hover { border-color: var(--purple); }
    .tool-icon {
      width: 56px;
      height: 56px;
      border-radius: 16px;
      display: grid;
      place-items: center;
      font-size: 1.6rem;
      flex-shrink: 0;
    }
    .tool-icon.orange { background: var(--orange-soft); }
    .tool-icon.blue { background: var(--blue-soft); }
    .tool-icon.green { background: var(--green-soft); }
    .tool-icon.purple { background: var(--purple-soft); }
    .tool-icon.pink { background: rgba(244,114,182,0.12); }
    .tool-icon.cyan { background: rgba(34,211,238,0.12); }
    .tool-body h3 {
      font-size: 1.05rem;
      font-weight: 800;
      margin-bottom: 6px;
    }
    .tool-body p {
      font-size: 0.86rem;
      color: var(--muted);
      line-height: 1.6;
      margin-bottom: 12px;
    }
    .tool-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
    }
    .ttag {
      font-size: 0.73rem;
      font-weight: 600;
      padding: 2px 9px;
      border-radius: 999px;
      background: #f8fafc;
      color: var(--muted);
      border: 1px solid var(--line);
    }
    .tool-link {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      font-size: 0.82rem;
      font-weight: 700;
      color: var(--purple);
      margin-top: 10px;
      transition: gap 0.2s;
    }
    .tool-link:hover { gap: 8px; }
    .claude-badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-size: 0.72rem;
      font-weight: 700;
      padding: 3px 10px;
      border-radius: 999px;
      background: linear-gradient(135deg, #a855f7, #7c3aed);
      color: white;
      margin-bottom: 6px;
    }
    .new-badge {
      display: inline-flex;
      align-items: center;
      font-size: 0.72rem;
      font-weight: 700;
      padding: 3px 10px;
      border-radius: 999px;
      background: linear-gradient(135deg, #22d3ee, #0ea5e9);
      color: white;
      margin-bottom: 6px;
      margin-left: 6px;
    }
    .tools-filter {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-bottom: 24px;
    }
    .tools-filter-btn {
      padding: 6px 16px;
      border: 1.5px solid var(--muted, #d1d5db);
      border-radius: 999px;
      background: transparent;
      color: var(--text, #1f2937);
      font-size: 0.82rem;
      font-weight: 600;
      cursor: pointer;
      transition: background 0.18s, border-color 0.18s, color 0.18s;
      white-space: nowrap;
    }
    .tools-filter-btn:hover {
      border-color: var(--purple, #a855f7);
      color: var(--purple, #a855f7);
    }
    .tools-filter-btn.active {
      background: var(--purple, #a855f7);
      border-color: var(--purple, #a855f7);
      color: #fff;
    }
    .tool-card[data-category].hidden {
      display: none;
    }
    .tool-body p.clamped {
      display: -webkit-box;
      -webkit-line-clamp: 3;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }
    .tool-body .tool-more-btn {
      display: inline-block;
      background: none;
      border: none;
      padding: 0;
      margin: -8px 0 12px;
      font-size: 0.8rem;
      font-weight: 700;
      color: var(--purple);
      cursor: pointer;
    }
    .tool-body .tool-more-btn:hover { text-decoration: underline; }

    /* ─── Dashboard ─── */
    .dashboard-section {
      background: linear-gradient(135deg, #f0f9ff, #ecfeff);
    }
    .dashboard-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 20px;
    }
    .dashboard-toolbar {
      display: flex;
      justify-content: flex-end;
      gap: 8px;
      flex-wrap: wrap;
      margin: -8px 0 18px;
    }
    .dashboard-layout-btn {
      border: 1px solid rgba(14,165,233,0.22);
      border-radius: 999px;
      background: rgba(14,165,233,0.08);
      color: var(--blue);
      padding: 7px 13px;
      font: inherit;
      font-size: 0.8rem;
      font-weight: 800;
      cursor: pointer;
      transition: background 0.18s, border-color 0.18s, transform 0.18s;
    }
    .dashboard-layout-btn:hover {
      background: rgba(14,165,233,0.14);
      border-color: rgba(14,165,233,0.44);
      transform: translateY(-1px);
    }
    .dashboard-layout-panel {
      display: none;
      border: 1px solid rgba(14,165,233,0.18);
      border-radius: 8px;
      background: rgba(255,255,255,0.78);
      backdrop-filter: blur(14px);
      box-shadow: var(--shadow-sm);
      padding: 14px;
      margin-bottom: 18px;
    }
    .dashboard-layout-panel.open { display: block; }
    .dashboard-layout-panel-head {
      display: flex;
      justify-content: space-between;
      gap: 12px;
      align-items: center;
      margin-bottom: 10px;
    }
    .dashboard-layout-panel-title {
      font-size: 0.9rem;
      font-weight: 900;
      color: var(--text);
    }
    .dashboard-layout-panel-note {
      color: var(--muted);
      font-size: 0.78rem;
      line-height: 1.5;
      margin-bottom: 10px;
    }
    .dashboard-layout-list {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 8px;
    }
    .dashboard-layout-item {
      display: grid;
      grid-template-columns: auto minmax(0, 1fr) auto auto;
      align-items: center;
      gap: 8px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: #fff;
      padding: 8px 9px;
      min-height: 42px;
    }
    .dashboard-layout-item input {
      width: 16px;
      height: 16px;
      accent-color: var(--blue);
    }
    .dashboard-layout-name {
      font-size: 0.82rem;
      font-weight: 700;
      color: var(--text);
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .dashboard-move-btn {
      width: 28px;
      height: 28px;
      border: 1px solid rgba(14,165,233,0.2);
      border-radius: 50%;
      background: rgba(14,165,233,0.08);
      color: var(--blue);
      font: inherit;
      font-size: 0.86rem;
      font-weight: 900;
      cursor: pointer;
      line-height: 1;
    }
    .dashboard-move-btn:disabled {
      cursor: not-allowed;
      opacity: 0.32;
    }
    .dashboard-card.dashboard-hidden {
      display: none;
    }
    .dashboard-card {
      padding: 24px 26px;
      background: var(--card-tint);
      border-color: var(--card-border);
      display: flex;
      flex-direction: column;
      gap: 10px;
      min-height: 230px;
    }
    .dashboard-grid > .local-pop-card,
    .dashboard-grid > .local-pyr-card {
      grid-column: auto;
    }
    .dashboard-card:hover { border-color: var(--blue); }
    .dashboard-card[draggable="true"] { cursor: grab; user-select: none; }
    .dashboard-card.card-dragging { opacity: 0.35; cursor: grabbing !important; }
    .dashboard-card.card-dragover { outline: 2px dashed var(--blue); outline-offset: 3px; }
    .dashboard-theme-swatches { display: flex; gap: 5px; align-items: center; margin-left: 4px; }
    .dashboard-theme-swatch {
      width: 18px; height: 18px; border-radius: 50%;
      border: 2.5px solid transparent; cursor: pointer;
      transition: transform 0.15s, border-color 0.15s;
      flex-shrink: 0; padding: 0;
    }
    .dashboard-theme-swatch.active { border-color: var(--text); transform: scale(1.25); }
    .traffic-map-wrap {
      border-radius: 8px;
      border: 1px solid rgba(0,200,255,0.13);
      background: rgba(0,200,255,0.04);
      margin-bottom: 4px;
      min-height: 60px;
      position: relative;
    }
    .dashboard-card h3 {
      font-size: 1.02rem;
      font-weight: 800;
      line-height: 1.3;
    }
    .dashboard-kpi {
      font-size: 1.8rem;
      font-weight: 900;
      color: var(--blue);
      letter-spacing: -0.02em;
      line-height: 1.2;
      margin-top: 2px;
    }
    .dashboard-sub {
      color: var(--muted);
      font-size: 0.85rem;
      line-height: 1.6;
    }
    .dashboard-mini-list {
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: 8px;
      margin-top: 4px;
      flex: 1;
    }
    .dashboard-mini-item {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      background: #ffffff;
      border: 1px solid var(--line);
      border-radius: 12px;
      padding: 8px 10px;
      font-size: 0.84rem;
    }
    .dashboard-mini-item small {
      font-size: 0.74rem;
      color: var(--muted);
    }

    .game-history-item {
      display: flex;
      align-items: center;
      gap: 8px;
      border: 1px solid var(--line);
      border-radius: 12px;
      padding: 8px 10px;
      font-size: 0.84rem;
      overflow: hidden;
    }
    .game-history-item .gh-name { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .game-history-badge {
      font-size: 0.72rem;
      padding: 2px 7px;
      border-radius: 20px;
      font-weight: 600;
      white-space: nowrap;
    }
    .game-history-badge.win   { background: rgba(15,114,64,.15);  color: #0f7240; border: 1px solid rgba(15,114,64,.3); }
    .game-history-badge.clear { background: rgba(91,71,214,.15);  color: #5b47d6; border: 1px solid rgba(91,71,214,.3); }
    .game-history-badge.lose,
    .game-history-badge.gameover { background: rgba(180,40,16,.15); color: #b42810; border: 1px solid rgba(180,40,16,.3); }
    .game-history-badge.draw  { background: rgba(107,107,107,.15); color: #6b6b6b; border: 1px solid rgba(107,107,107,.3); }
    #home-game-history-clear { float: right; background: none; border: none; color: var(--muted); cursor: pointer; font-size: 0.75rem; padding: 0; line-height: 1; }
    #home-game-history-clear:hover { color: var(--text); }

    .dash-todo-form {
      display: flex;
      gap: 8px;
      margin-top: 4px;
      flex-wrap: wrap;
    }
    .dash-todo-head {
      display: flex;
      align-items: center;
      gap: 8px;
      flex-wrap: wrap;
    }
    .dash-status-pill {
      margin-left: auto;
      border: 1px solid rgba(0,229,255,0.28);
      border-radius: 999px;
      padding: 3px 9px;
      color: var(--blue);
      background: rgba(0,229,255,0.08);
      font-size: 0.72rem;
      font-weight: 700;
      white-space: nowrap;
    }
    .dash-todo-form input {
      flex: 1;
      min-width: 140px;
      border: 1.5px solid var(--line);
      border-radius: 10px;
      padding: 8px 10px;
      font-size: 0.84rem;
      font-family: inherit;
      outline: none;
      background: #fff;
    }
    .dash-todo-form input:focus { border-color: var(--blue); }
    .dash-priority-select {
      flex: 0 0 86px;
      border: 1.5px solid var(--line);
      border-radius: 10px;
      padding: 8px 9px;
      font-size: 0.8rem;
      font-family: inherit;
      color: var(--text);
      background: #fff;
      outline: none;
    }
    .dash-priority-select:focus { border-color: var(--blue); }
    .dash-todo-btn {
      border: none;
      border-radius: 10px;
      padding: 8px 12px;
      font-size: 0.82rem;
      font-weight: 700;
      color: #fff;
      background: var(--blue);
      cursor: pointer;
      transition: opacity 0.2s;
    }
    .dash-todo-btn:hover { opacity: 0.88; }
    .pomo-dot { width:7px;height:7px;border-radius:50%;background:rgba(99,102,241,0.18);transition:background 0.3s;display:inline-block; }
    .pomo-dot.done { background:#6366f1; }
    .dash-voice-btn {
      display: inline-grid;
      place-items: center;
      width: 38px;
      min-height: 36px;
      border: 1px solid rgba(0,229,255,0.22);
      border-radius: 10px;
      color: var(--blue);
      background: rgba(0,229,255,0.08);
      cursor: pointer;
      font-size: 1rem;
      line-height: 1;
      transition: border-color 0.2s, background 0.2s, color 0.2s;
    }
    .dash-voice-btn:hover,
    .dash-voice-btn.is-listening {
      border-color: rgba(124,58,237,0.32);
      color: #6d28d9;
      background: rgba(124,58,237,0.1);
    }
    .dash-voice-btn:disabled {
      color: var(--muted);
      background: #f4f4f5;
      border-color: var(--line);
      cursor: not-allowed;
      opacity: 0.72;
    }
    .btn:focus-visible,
    .dash-todo-btn:focus-visible,
    .dash-voice-btn:focus-visible,
    .nav-link:focus-visible,
    a:focus-visible,
    button:focus-visible,
    [role="button"]:focus-visible,
    [role="tab"]:focus-visible,
    input:focus-visible,
    select:focus-visible,
    textarea:focus-visible,
    summary:focus-visible,
    [tabindex]:not([tabindex="-1"]):focus-visible {
      outline: 2px solid var(--orange);
      outline-offset: 3px;
      border-radius: 4px;
    }
    /* ── Skip link（本文へスキップ） ── */
    .skip-link {
      position: fixed;
      top: 8px;
      left: 8px;
      z-index: 1000;
      padding: 10px 18px;
      background: var(--blue, #0ea5e9);
      color: #fff;
      font-size: 0.85rem;
      font-weight: 700;
      text-decoration: none;
      border-radius: 10px;
      box-shadow: 0 6px 20px rgba(14,165,233,0.35);
      transform: translateY(-150%);
      transition: transform 0.2s ease;
    }
    .skip-link:focus {
      transform: translateY(0);
      outline: 2px solid var(--orange);
      outline-offset: 3px;
    }
    @media (prefers-reduced-motion: reduce) {
      .skip-link { transition: none; }
    }
    /* ── Skeleton loading ── */
    .skeleton-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 6px 0;
    }
    .skeleton-bar {
      height: 13px;
      border-radius: 6px;
      background: linear-gradient(90deg,
        rgba(120,113,108,0.15) 25%,
        rgba(120,113,108,0.07) 50%,
        rgba(120,113,108,0.15) 75%);
      background-size: 200% 100%;
      animation: skeleton-shimmer 1.5s infinite;
    }
    @keyframes skeleton-shimmer {
      0%   { background-position: 200% 0; }
      100% { background-position: -200% 0; }
    }
    @media (prefers-reduced-motion: reduce) {
      .skeleton-bar { animation: none; }
    }
    .dash-todo-check {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      flex: 1;
      min-width: 0;
    }
    .dash-todo-check input[type="checkbox"] {
      accent-color: var(--blue);
      width: 15px;
      height: 15px;
      cursor: pointer;
      flex-shrink: 0;
    }
    .dash-todo-text {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      font-size: 0.84rem;
    }
    .dash-todo-done .dash-todo-text {
      color: var(--muted);
      text-decoration: line-through;
    }
    .dash-todo-meta {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      flex-shrink: 0;
    }
    .dash-priority-badge {
      border-radius: 999px;
      padding: 2px 7px;
      font-size: 0.68rem;
      font-weight: 800;
      line-height: 1.3;
      white-space: nowrap;
    }
    .dash-priority-high {
      color: #b91c1c;
      background: rgba(239,68,68,0.12);
      border: 1px solid rgba(239,68,68,0.18);
    }
    .dash-priority-normal {
      color: #075985;
      background: rgba(0,229,255,0.12);
      border: 1px solid rgba(0,229,255,0.2);
    }
    .dash-priority-later {
      color: #6d28d9;
      background: rgba(124,58,237,0.1);
      border: 1px solid rgba(124,58,237,0.18);
    }
    .dash-icon-btn {
      display: inline-grid;
      place-items: center;
      width: 24px;
      height: 24px;
      border: 1px solid transparent;
      border-radius: 8px;
      color: var(--muted);
      background: transparent;
      cursor: pointer;
      font-size: 0.88rem;
      line-height: 1;
      transition: border-color 0.2s, color 0.2s, background 0.2s;
    }
    .dash-icon-btn:hover {
      color: var(--blue);
      border-color: rgba(0,229,255,0.22);
      background: rgba(0,229,255,0.08);
    }
    .dash-open-link {
      margin-top: 6px;
      align-self: flex-start;
      font-size: 0.82rem;
      font-weight: 700;
      color: var(--blue);
    }
    .dash-open-link:hover { text-decoration: underline; }
    .dash-mini-note {
      font-size: 0.76rem;
      color: var(--muted);
      margin-top: 4px;
    }
    /* ── Weather visuals ── */
    #home-weather-visuals { margin-top: 10px; }
    .weather-vis-row {
      display: flex;
      gap: 12px;
      align-items: center;
      margin-bottom: 10px;
    }
    #home-weather-compass {
      flex-shrink: 0;
      display: flex;
      flex-direction: column;
      align-items: center;
    }
    .weather-uvpress {
      flex: 1;
      display: flex;
      flex-direction: column;
      gap: 6px;
    }
    .weather-uvpress-item {
      background: #fff;
      border: 1px solid var(--line);
      border-radius: 12px;
      padding: 7px 10px;
      font-size: 0.82rem;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
    }
    .weather-uvpress-item small {
      font-size: 0.72rem;
      color: var(--muted);
    }
    .weather-tempchart-wrap {
      position: relative;
    }
    .weather-tempchart-label {
      font-size: 0.72rem;
      color: var(--muted);
      margin-bottom: 4px;
    }
    #home-weather-tempchart {
      display: block;
      width: 100%;
      height: 115px;
      border-radius: 10px;
      background: rgba(0,229,255,0.03);
      border: 1px solid var(--line);
    }
    /* ── Weather weekly forecast ── */
    #home-weather-weekly { margin-top: 10px; }
    .weather-weekly-title {
      font-size: 0.72rem;
      color: var(--muted);
      margin-bottom: 6px;
    }
    .weather-weekly-grid {
      display: flex;
      gap: 6px;
      overflow-x: auto;
      padding-bottom: 4px;
    }
    .weather-day-item {
      flex: 0 0 auto;
      min-width: 48px;
      background: rgba(0,229,255,0.04);
      border: 1px solid var(--line);
      border-radius: 10px;
      padding: 6px 4px;
      text-align: center;
      font-size: 0.72rem;
    }
    .weather-day-item .wd-label { color: var(--muted); margin-bottom: 3px; }
    .weather-day-item .wd-icon { font-size: 1.1rem; margin: 2px 0; font-family: 'Segoe UI Emoji','Apple Color Emoji','Noto Color Emoji',sans-serif; }
    /* ── Weather lifestyle indices ── */
    #home-weather-indices { margin-top: 8px; }
    .weather-indices-title { font-size: 0.72rem; color: var(--muted); margin-bottom: 6px; }
    .weather-indices-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
    .weather-index-item {
      background: rgba(0,229,255,0.04);
      border: 1px solid var(--line);
      border-radius: 10px;
      padding: 6px 8px;
      font-size: 0.72rem;
    }
    .weather-index-item .wi-name { color: var(--muted); margin-bottom: 2px; }
    .weather-index-item .wi-val { font-weight: 600; }
    .weather-day-item .wd-temp { color: var(--cyan); }
    .weather-day-item .wd-temp .wd-min { color: var(--muted); }
    .weather-day-item .wd-rain { color: var(--muted); font-size: 0.65rem; margin-top: 2px; }
    /* ── FX rate cards ── */
    .fx-rate-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 6px;
      margin-bottom: 8px;
    }
    .fx-rate-card {
      border: 1px solid var(--line);
      border-radius: 8px;
      padding: 7px 9px 5px;
      overflow: hidden;
    }
    .fx-rate-card.up   { background: rgba(22,163,74,0.06); }
    .fx-rate-card.down { background: rgba(220,38,38,0.06); }
    .frc-pair { font-size: 0.6rem; color: var(--muted); }
    .frc-rate { font-size: 0.88rem; font-weight: 700; line-height: 1.2; }
    .frc-chg  { font-size: 0.6rem; }
    canvas.fx-sparkline { display: block; width: 100%; height: 26px; margin-top: 2px; opacity: 0.85; }
    /* ── FX chart ── */
    #home-fx-chart {
      display: block;
      width: 100%;
      height: 100px;
      border-radius: 10px;
      background: rgba(0,229,255,0.03);
      border: 1px solid var(--line);
    }
    .fx-chart-legend {
      display: flex;
      gap: 14px;
      margin-top: 6px;
      justify-content: flex-end;
    }
    .fx-legend-item {
      display: flex;
      align-items: center;
      gap: 5px;
      font-size: 0.72rem;
      color: var(--muted);
    }
    .fx-legend-dot {
      width: 18px;
      height: 3px;
      border-radius: 2px;
      flex-shrink: 0;
    }
    .dash-note-box {
      width: 100%;
      border: 1.5px solid var(--line);
      border-radius: 10px;
      padding: 10px;
      font-size: 0.82rem;
      font-family: inherit;
      background: #fff;
      min-height: 72px;
      resize: vertical;
      outline: none;
    }
    .dash-note-box:focus { border-color: var(--blue); }
    .dash-memo-tools {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      flex-wrap: wrap;
      margin-top: 2px;
    }
    .dash-link-btn {
      border: none;
      padding: 0;
      color: var(--blue);
      background: transparent;
      font-size: 0.76rem;
      font-weight: 700;
      cursor: pointer;
    }
    .dash-link-btn:hover { text-decoration: underline; }
    .dash-row {
      display: flex;
      align-items: center;
      gap: 8px;
      flex-wrap: wrap;
    }
    .dash-input {
      border: 1.5px solid var(--line);
      border-radius: 10px;
      padding: 7px 9px;
      font-size: 0.82rem;
      font-family: inherit;
      background: #fff;
      outline: none;
      min-height: 34px;
    }
    .dash-input:focus { border-color: var(--blue); }
    .dash-input[type="date"] { min-width: 136px; }
    .dash-row .dash-input.grow { flex: 1; min-width: 160px; }
    .dash-calendar-head {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 8px;
      font-size: 0.84rem;
      color: var(--muted);
      margin-bottom: 6px;
    }
    .dash-calendar-grid {
      display: grid;
      grid-template-columns: repeat(7, 1fr);
      gap: 4px;
      margin-bottom: 8px;
    }
    .dash-cal-cell {
      text-align: center;
      border-radius: 8px;
      font-size: 0.74rem;
      padding: 4px 2px;
      border: 1px solid transparent;
      color: #334155;
      background: rgba(255,255,255,0.72);
      min-height: 24px;
    }
    .dash-cal-dow {
      font-size: 0.7rem;
      color: var(--muted);
      background: transparent;
      min-height: auto;
      border: 0;
      padding: 0 0 2px;
    }
    .dash-cal-empty {
      background: transparent;
      border-color: transparent;
    }
    .dash-cal-today {
      border-color: rgba(14,165,233,0.45);
      background: rgba(14,165,233,0.13);
      color: var(--blue);
      font-weight: 800;
    }
    .dash-market-up { color: #16a34a; font-weight: 700; }
    .dash-market-down { color: #dc2626; font-weight: 700; }
    /* ── Gas chart ── */
    .gas-chart-tabs {
      display: flex;
      gap: 4px;
      margin: 10px 0 6px;
    }
    .gas-tab-btn {
      border: 1px solid var(--line);
      border-radius: 8px;
      padding: 3px 11px;
      font-size: 0.72rem;
      font-weight: 700;
      cursor: pointer;
      background: transparent;
      color: var(--muted);
      transition: background 0.15s, color 0.15s;
    }
    .gas-tab-btn.active {
      background: var(--orange);
      color: #fff;
      border-color: var(--orange);
    }
    #home-gas-chart {
      display: block;
      width: 100%;
      height: 100px;
      border-radius: 10px;
      background: rgba(249,115,22,0.03);
      border: 1px solid var(--line);
    }
    #home-gas-chart-msg {
      font-size: 0.72rem;
      color: var(--muted);
      text-align: center;
      padding: 12px 0;
    }
    /* ガソリン価格ランキング */
    .gas-rank-wrap { margin: 10px 0 4px; }
    .gas-rank-title { font-size: 0.72rem; color: var(--muted); margin-bottom: 6px; font-weight: 600; }
    .gas-rank-item {
      display: flex; align-items: flex-start; gap: 8px;
      padding: 7px 0; border-bottom: 1px solid var(--line);
    }
    .gas-rank-item:last-child { border-bottom: none; }
    .gas-rank-num {
      font-size: 1rem; font-weight: 800; color: var(--muted);
      min-width: 22px; text-align: center; padding-top: 1px;
    }
    .gas-rank-num.r1 { color: #f59e0b; }
    .gas-rank-num.r2 { color: #94a3b8; }
    .gas-rank-num.r3 { color: #b45309; }
    .gas-rank-body { flex: 1; min-width: 0; }
    .gas-rank-name {
      font-size: 0.82rem; font-weight: 600; color: var(--text);
      white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }
    .gas-rank-addr {
      font-size: 0.66rem; color: var(--muted);
      white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
      margin-top: 1px;
    }
    .gas-rank-price { text-align: right; white-space: nowrap; }
    .gas-rank-badge {
      display: inline-block; background: #1d4ed8; color: #fff;
      font-size: 0.58rem; padding: 1px 5px; border-radius: 3px;
      vertical-align: middle; margin-right: 3px;
    }
    .gas-rank-yen { font-size: 1rem; font-weight: 800; }
    /* ── Stock chart ── */
    .stock-chart-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin: 10px 0 4px;
      gap: 6px;
    }
    #home-stock-chart-label {
      font-size: 0.72rem;
      font-weight: 700;
      color: var(--blue);
      flex: 1;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .stock-chart-tabs {
      display: flex;
      gap: 4px;
      flex-shrink: 0;
    }
    .stock-tab-btn {
      border: 1px solid var(--line);
      border-radius: 8px;
      padding: 3px 9px;
      font-size: 0.72rem;
      font-weight: 700;
      cursor: pointer;
      background: transparent;
      color: var(--muted);
      transition: background 0.15s, color 0.15s;
    }
    .stock-tab-btn.active {
      background: var(--blue);
      color: #fff;
      border-color: var(--blue);
    }
    #home-stock-chart {
      display: block;
      width: 100%;
      height: 100px;
      border-radius: 10px;
      background: rgba(14,165,233,0.03);
      border: 1px solid var(--line);
    }
    #stock-hover-tip {
      position: fixed;
      background: rgba(12,22,42,0.94);
      color: #cde;
      border: 1px solid rgba(100,160,220,0.4);
      border-radius: 7px;
      padding: 8px 13px;
      font-size: 0.72rem;
      pointer-events: none;
      z-index: 9999;
      display: none;
      line-height: 1.75;
      min-width: 150px;
    }
    #stock-hover-tip .sht-date { font-weight: 700; margin-bottom: 3px; color: #e8f4ff; }
    #stock-hover-tip .sht-hi { color: #f97316; }
    #stock-hover-tip .sht-lo { color: #60a5fa; }
    a.stock-company-link {
      color: inherit;
      text-decoration: none;
      border-bottom: 1px dashed var(--blue);
    }
    a.stock-company-link:hover { color: var(--blue); }
    #home-stock-chart-msg {
      font-size: 0.72rem;
      color: var(--muted);
      text-align: center;
      padding: 4px 0;
    }
    .dashboard-mini-item.col {
      align-items: flex-start;
      flex-direction: column;
    }

    /* ── Stock detail chips (custom watchlist) ── */
    .stock-detail-chips { display:inline-flex; flex-wrap:wrap; align-items:center; gap:3px 6px; margin-left:2px; }
    .sdc-chip { font-size:0.68rem; color:var(--muted); background:var(--line); border-radius:6px; padding:1px 6px; white-space:nowrap; }
    .sdc-chip b { color:var(--text); font-weight:600; }
    .sdc-yutai { font-size:0.68rem; color:var(--blue); text-decoration:none; white-space:nowrap; }
    .sdc-yutai:hover { text-decoration:underline; }

    /* ── Stock index cards ── */
    .stock-index-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 6px;
      margin-bottom: 8px;
    }
    .stock-index-card {
      border: 1px solid var(--line);
      border-radius: 8px;
      padding: 7px 9px 5px;
      overflow: hidden;
    }
    .stock-index-card.up   { background: rgba(22,163,74,0.06); }
    .stock-index-card.down { background: rgba(220,38,38,0.06); }
    .stock-index-card .sic-name  { font-size: 0.65rem; color: var(--muted); }
    .stock-index-card .sic-price { font-size: 0.95rem; font-weight: 700; line-height: 1.2; }
    .stock-index-card .sic-chg   { font-size: 0.65rem; }
    .stock-index-card .sic-mcap  { font-size: 0.6rem; color: var(--muted); margin-top: 1px; }
    canvas.stock-index-sparkline {
      display: block; width: 100%; height: 30px; margin-top: 3px; opacity: 0.85;
    }
    canvas.stock-custom-sparkline {
      display: inline-block; width: 54px; height: 20px;
      vertical-align: middle; margin: 0 3px;
    }
    .market-badge {
      padding: 1px 6px; border-radius: 10px; font-size: 0.6rem; font-weight: 700;
    }
    .market-badge.open   { background: rgba(22,163,74,0.18);   color: #16a34a; }
    .market-badge.closed { background: rgba(100,100,120,0.15); color: var(--muted); }
    @keyframes stockFlip {
      0%   { opacity: 0; transform: translateY(-4px); }
      100% { opacity: 1; transform: translateY(0); }
    }
    .stock-val-flip { animation: stockFlip 0.25s ease; }

    /* ─── Works (Games) ─── */
    .works-filter {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-bottom: 24px;
    }
    .works-filter-btn {
      padding: 6px 16px;
      border: 1.5px solid var(--muted, #d1d5db);
      border-radius: 999px;
      background: transparent;
      color: var(--text, #1f2937);
      font-size: 0.82rem;
      font-weight: 600;
      cursor: pointer;
      transition: background 0.18s, border-color 0.18s, color 0.18s;
      white-space: nowrap;
    }
    .works-filter-btn:hover {
      border-color: var(--orange, #f97316);
      color: var(--orange, #f97316);
    }
    .works-filter-btn.active {
      background: var(--orange, #f97316);
      border-color: var(--orange, #f97316);
      color: #fff;
    }
    .work-card[data-category].hidden {
      display: none;
    }
    .work-share-btn {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      margin-top: 8px;
      padding: 4px 12px;
      border: 1.5px solid #1d9bf0;
      border-radius: 999px;
      background: transparent;
      color: #1d9bf0;
      font-size: 0.75rem;
      font-weight: 600;
      cursor: pointer;
      text-decoration: none;
      transition: background 0.18s, color 0.18s;
      align-self: flex-start;
    }
    .work-share-btn:hover {
      background: #1d9bf0;
      color: #fff;
    }
    .work-share-btn + .work-share-btn { margin-left: 6px; }
    /* Threads: ブランド色の黒の単色。Xボタンと同じ「枠→塗り」の挙動に揃える */
    .work-share-btn.work-share-threads {
      border-color: #101010;
      color: #101010;
    }
    .work-share-btn.work-share-threads:hover {
      background: #101010;
      color: #fff;
    }
    .work-share-btn:focus-visible {
      outline: 2px solid var(--orange, #f97316);
      outline-offset: 2px;
    }
    .works-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 20px;
    }
    .work-card {
      display: flex;
      flex-direction: column;
      overflow: hidden;
    }
    .work-thumb {
      height: 140px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 3.5rem;
      position: relative;
    }
    .work-thumb-1 { background: linear-gradient(135deg, #1e3a5f, #2d5a8e); }
    .work-thumb-2 { background: linear-gradient(135deg, #3d1a6e, #7c3aed); }
    .work-thumb-3 { background: linear-gradient(135deg, #1a3a2e, #065f46); }
    .work-thumb-4 { background: linear-gradient(135deg, #5c1a1a, #991b1b); }
    .city-builder-thumb .work-thumb-emoji { display: none; }
    .work-thumb-go {
      background: #d4a84e url("../go-gpt/go-thumb-gpt-image-2.webp") center/cover no-repeat;
      overflow: hidden;
    }
    .work-thumb-go .work-thumb-emoji { display: none; }
    .work-thumb-estate {
      background: #07111f url("../estate-tycoon-gpt/estate-thumb-gpt-image-2.webp") center/cover no-repeat;
      gap: 12px;
      overflow: hidden;
    }
    .work-thumb-estate .estate-thumb-board,
    .work-thumb-estate .estate-thumb-icon {
      display: none;
    }
    .estate-thumb-icon {
      width: 48px;
      height: 48px;
      padding: 10px;
      border-radius: 8px;
      background: rgba(2, 6, 23, 0.58);
      border: 1px solid rgba(34,211,238,0.28);
      box-shadow: 0 10px 20px rgba(0,0,0,0.35);
      position: relative;
      z-index: 1;
    }
    .estate-thumb-board {
      position: absolute;
      width: 132px;
      height: 92px;
      border: 2px solid rgba(248,211,111,0.72);
      border-radius: 8px;
      inset: 24px auto auto 26px;
      opacity: 0.45;
    }
    .estate-thumb-board::before {
      content: "";
      position: absolute;
      inset: 16px;
      border: 1px solid rgba(248,211,111,0.62);
      border-radius: 4px;
    }
    .work-thumb-shogi {
      background:#c99a34 url("../shogi-gpt/shogi-thumb-gpt-image-2.webp") center/cover no-repeat;
    }
    .work-thumb-shogi .shogi-piece{display:none;}
    .work-thumb-backgammon {
      background: #0a1628 url("../backgammon/backgammon-thumb-gpt-image-2.webp") center/cover no-repeat;
      overflow: hidden;
    }
    .work-thumb-trigon {
      background: #0d1117;
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
    }
    .work-thumb-trigon img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .work-thumb-blokus {
      background: linear-gradient(135deg, #0a0a1a 0%, #0d0d2b 100%);
      overflow: hidden;
      position: relative;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .blokus-thumb-board {
      width: 108px;
      height: 90px;
      position: relative;
    }
    .blokus-thumb-cell {
      position: absolute;
      width: 12px;
      height: 12px;
      border-radius: 2px;
    }
    .blokus-thumb-cell.c1 { background: #06b6d4; }
    .blokus-thumb-cell.c2 { background: #f87171; }
    .blokus-thumb-cell.c3 { background: #fbbf24; }
    .blokus-thumb-cell.c4 { background: #a78bfa; }
    /* ノーラックポーカーサムネイル */
    .work-thumb-no-luck-poker {
      background: linear-gradient(135deg, #0f2d18 0%, #1a4a28 50%, #0d2a18 100%);
      overflow: hidden;
    }
    .no-luck-poker-thumb-img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.4s ease;
    }
    .work-card:hover .no-luck-poker-thumb-img { transform: scale(1.06); }

    .work-thumb-dots {
      background:
        radial-gradient(circle at 18% 24%, rgba(0, 245, 255, 0.18), transparent 28%),
        radial-gradient(circle at 82% 76%, rgba(168, 85, 247, 0.20), transparent 30%),
        linear-gradient(135deg, #05070d 0%, #111827 52%, #17111f 100%);
      overflow: hidden;
    }
    .dots-thumb-img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      filter: saturate(1.05) contrast(1.03);
      transition: transform 0.4s ease, filter 0.4s ease;
    }
    .work-card:hover .dots-thumb-img {
      transform: scale(1.04);
      filter: saturate(1.12) contrast(1.06);
    }
    .work-thumb-hex {
      background:
        radial-gradient(circle at 18% 24%, rgba(66, 111, 143, 0.25), transparent 18%),
        radial-gradient(circle at 82% 72%, rgba(180, 100, 69, 0.24), transparent 20%),
        linear-gradient(135deg, #fbefd3 0%, #d6b47b 52%, #9d794b 100%);
      overflow: hidden;
    }
    .work-thumb-conhex {
      background:
        radial-gradient(circle at 18% 22%, rgba(65, 111, 140, 0.24), transparent 18%),
        radial-gradient(circle at 82% 76%, rgba(173, 99, 71, 0.24), transparent 20%),
        linear-gradient(135deg, #fff3d4 0%, #d9b979 52%, #9c7a4d 100%);
      overflow: hidden;
    }
    .conhex-thumb-board {
      position: relative;
      width: 132px;
      height: 92px;
      transform: rotate(-4deg);
    }
    .conhex-thumb-cell,
    .conhex-thumb-hole {
      position: absolute;
    }
    .conhex-thumb-cell {
      width: 24px;
      height: 21px;
      clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
      background: rgba(255, 250, 240, 0.88);
      border: 1px solid rgba(63, 52, 37, 0.34);
    }
    .conhex-thumb-cell.blue { background: #416f8c; }
    .conhex-thumb-cell.clay { background: #ad6347; }
    .conhex-thumb-hole {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: #4a3b28;
      box-shadow: 0 1px 2px rgba(255,255,255,0.7);
    }
    .work-thumb-carrom {
      background: linear-gradient(135deg, #3d2200 0%, #7a4a00 50%, #3d2200 100%);
      display: flex; align-items: center; justify-content: center;
      position: relative; overflow: hidden;
    }
    .carrom-thumb-board {
      width: 80px; height: 80px;
      border: 4px solid #c8a45a;
      border-radius: 6px;
      background: radial-gradient(circle, #d4a843 30%, #b8860b 100%);
      box-shadow: 0 0 20px rgba(200,164,90,0.4);
      position: relative;
    }
    .carrom-thumb-board::before {
      content: "";
      position: absolute; inset: 8px;
      border: 2px solid rgba(0,0,0,0.4);
      border-radius: 50%;
    }
    .carrom-thumb-board::after {
      content: "◎";
      position: absolute; top: 50%; left: 50%;
      transform: translate(-50%,-50%);
      color: rgba(0,0,0,0.4); font-size: 24px;
    }
    .work-thumb-indigo {
      background:
        radial-gradient(circle at 30% 30%, rgba(6,182,212,0.28), transparent 35%),
        radial-gradient(circle at 70% 70%, rgba(168,85,247,0.22), transparent 32%),
        linear-gradient(135deg, #0d0d2a 0%, #141428 60%, #0a0a20 100%);
      overflow: hidden; display: flex; align-items: center; justify-content: center;
    }
    .indigo-thumb-board {
      width: 110px; height: 96px;
      background-image:
        radial-gradient(circle, rgba(6,182,212,0.7) 2px, transparent 2px),
        radial-gradient(circle, rgba(168,85,247,0.5) 2px, transparent 2px);
      background-size: 22px 19px, 22px 19px;
      background-position: 0 0, 11px 9.5px;
      filter: drop-shadow(0 0 8px rgba(6,182,212,0.4));
    }
    .work-thumb-momentum {
      background:
        radial-gradient(circle at 20% 18%, rgba(63, 115, 93, 0.22), transparent 20%),
        radial-gradient(circle at 78% 78%, rgba(182, 99, 69, 0.2), transparent 22%),
        linear-gradient(135deg, #fff6e4 0%, #d8c19b 54%, #8f7552 100%);
      overflow: hidden;
    }
    .work-thumb-fixer {
      background:
        radial-gradient(circle at 26% 20%, rgba(34, 211, 238, 0.18), transparent 28%),
        radial-gradient(circle at 78% 76%, rgba(244, 213, 141, 0.2), transparent 24%),
        linear-gradient(135deg, #120f19 0%, #22172d 52%, #2a1d18 100%);
      overflow: hidden;
    }
    .work-thumb-fixer::before {
      content: "";
      position: absolute;
      inset: 28px 38px;
      border: 1px solid rgba(245, 222, 179, 0.34);
      border-radius: 6px;
      background:
        linear-gradient(90deg, transparent 48%, rgba(245, 222, 179, 0.22) 49%, rgba(245, 222, 179, 0.22) 51%, transparent 52%),
        linear-gradient(rgba(245, 222, 179, 0.14), rgba(245, 222, 179, 0.04));
      transform: rotate(-5deg);
    }
    .work-thumb-fixer::after {
      content: "";
      position: absolute;
      width: 120px;
      height: 72px;
      border-radius: 50%;
      border: 1px solid rgba(34, 211, 238, 0.2);
      transform: rotate(-18deg);
    }
    .work-thumb-fixer .work-thumb-emoji {
      position: relative;
      z-index: 1;
      color: #f4d58d;
      font-size: 2.35rem;
      font-weight: 900;
      text-shadow: 0 2px 16px rgba(0,0,0,0.55);
    }
    .momentum-thumb-field {
      position: relative;
      width: 148px;
      height: 90px;
      border: 1px solid rgba(73, 58, 38, 0.34);
      border-radius: 8px;
      background:
        linear-gradient(90deg, rgba(63,115,93,0.12) 1px, transparent 1px),
        linear-gradient(0deg, rgba(63,115,93,0.1) 1px, transparent 1px),
        rgba(255, 250, 239, 0.78);
      background-size: 24px 24px;
      box-shadow: inset 0 0 18px rgba(73, 58, 38, 0.12);
    }
    .momentum-thumb-trail,
    .momentum-thumb-shot {
      position: absolute;
      border-radius: 999px;
    }
    .momentum-thumb-trail {
      height: 6px;
      transform-origin: left center;
      box-shadow: 0 1px 4px rgba(73, 58, 38, 0.18);
    }
    .momentum-thumb-trail.player { background: #3f735d; }
    .momentum-thumb-trail.cpu { background: #b66345; }
    .momentum-thumb-shot {
      width: 12px;
      height: 12px;
      border: 2px solid rgba(255,255,255,0.78);
      box-shadow: 0 2px 5px rgba(73, 58, 38, 0.22);
    }
    .momentum-thumb-shot.player { background: #2d5e49; }
    .momentum-thumb-shot.cpu { background: #904a32; }
    .work-thumb-hanafuda {
      background:
        radial-gradient(circle at 22% 18%, rgba(255, 55, 130, 0.42), transparent 25%),
        radial-gradient(circle at 78% 28%, rgba(0, 245, 255, 0.32), transparent 24%),
        linear-gradient(135deg, #230816 0%, #5b1238 48%, #0a3550 100%);
      gap: 12px;
      isolation: isolate;
    }
    .work-thumb-hanafuda::before {
      content: "";
      position: absolute;
      inset: 0;
      background:
        linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px),
        linear-gradient(0deg, rgba(255,255,255,0.06) 1px, transparent 1px);
      background-size: 22px 22px;
      opacity: 0.25;
      transform: perspective(180px) rotateX(58deg) translateY(28px);
      transform-origin: bottom;
      z-index: 0;
    }
    .work-thumb-hanafuda::after {
      content: "AI";
      position: relative;
      z-index: 2;
      display: grid;
      place-items: center;
      width: 46px;
      height: 46px;
      border: 1px solid rgba(0,245,255,0.58);
      border-radius: 50%;
      background: rgba(3, 12, 24, 0.72);
      box-shadow: 0 0 24px rgba(0,245,255,0.35), inset 0 0 14px rgba(255, 40, 170, 0.22);
      color: #f7fbff;
      font-size: 0.85rem;
      font-weight: 900;
      letter-spacing: 0.08em;
    }
    .work-thumb-hanafuda .hanafuda-card-img {
      position: relative;
      inset: auto;
      z-index: 1;
      width: 52px;
      height: 86px;
      object-fit: contain;
      border-radius: 5px;
      filter: drop-shadow(0 12px 16px rgba(0,0,0,0.45));
      transition: transform 0.45s ease, filter 0.45s ease;
    }
    .work-thumb-hanafuda .hanafuda-card-img.is-pine {
      transform: rotate(-9deg) translateX(6px);
    }
    .work-thumb-hanafuda .hanafuda-card-img.is-moon {
      transform: rotate(8deg) translateX(-6px);
    }
    .work-card:hover .work-thumb-hanafuda .hanafuda-card-img.is-pine {
      transform: rotate(-12deg) translateX(2px) translateY(-3px) scale(1.05);
    }
    .work-card:hover .work-thumb-hanafuda .hanafuda-card-img.is-moon {
      transform: rotate(11deg) translateX(-2px) translateY(-3px) scale(1.05);
    }
    /* いろはかるたサムネイル */
    .work-thumb-karuta {
      background: linear-gradient(135deg, #1a0a00 0%, #3d1a00 50%, #1a1a00 100%);
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
      overflow: hidden;
    }
    .work-thumb-karuta::before {
      content: "";
      position: absolute;
      inset: 0;
      background:
        linear-gradient(45deg, rgba(248,211,111,0.08) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(248,211,111,0.08) 25%, transparent 25%);
      background-size: 8px 8px;
    }
    .karuta-thumb-kana {
      font-size: 5rem;
      font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
      color: #f8d36f;
      text-shadow: 0 0 20px rgba(248,211,111,0.4);
      position: relative;
      z-index: 1;
    }
    /* 麻雀ソリティアサムネイル */
    .work-thumb-mahjong-sol {
      background:
        radial-gradient(circle at 18% 22%, rgba(0, 245, 255, 0.16), transparent 28%),
        radial-gradient(circle at 82% 78%, rgba(168, 85, 247, 0.18), transparent 30%),
        linear-gradient(135deg, #05070d 0%, #102618 52%, #17111f 100%);
      display: flex;
      align-items: center;
      justify-content: center;
      isolation: isolate;
      overflow: hidden;
    }
    .mahjong-sol-thumb-img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      filter: saturate(1.05) contrast(1.04);
      transition: transform 0.42s ease, filter 0.42s ease;
    }
    .work-card:hover .mahjong-sol-thumb-img {
      transform: scale(1.04);
      filter: saturate(1.12) contrast(1.07);
    }
    /* カードゲーム集ハブサムネイル */
    .work-thumb-card-games {
      background: linear-gradient(135deg, #0a0a1a 0%, #0d1a2e 50%, #1a0a2e 100%);
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      overflow: hidden;
    }
    .cg-card {
      width: 52px;
      height: 74px;
      border-radius: 4px;
      box-shadow: 0 4px 12px rgba(0,0,0,0.6);
      object-fit: contain;
      transition: transform 0.35s ease, filter 0.35s ease;
    }
    .cg-card-left  { transform: rotate(-10deg) translateX(4px); }
    .cg-card-center { position: relative; z-index: 2; }
    .cg-card-right { transform: rotate( 10deg) translateX(-4px); }
    .work-card:hover .cg-card-left  { transform: rotate(-14deg) translateX(2px) translateY(-5px) scale(1.06); }
    .work-card:hover .cg-card-center { transform: translateY(-6px) scale(1.07); }
    .work-card:hover .cg-card-right { transform: rotate( 14deg) translateX(-2px) translateY(-5px) scale(1.06); }
    .shogi-piece {
      position: absolute;
      width: 28px;
      height: 32px;
      clip-path: polygon(50% 0%, 100% 28%, 100% 100%, 0% 100%, 0% 28%);
      background: linear-gradient(165deg, #fef6dc, #e8cf78);
      display: flex;
      align-items: center;
      justify-content: center;
      padding-top: 5px;
      font-size: 0.82rem;
      font-weight: 900;
      color: #1a0600;
      filter: drop-shadow(0 1px 3px rgba(0,0,0,0.55));
      z-index: 1;
    }
    .work-body { padding: 22px 24px; flex: 1; }
    .work-kicker {
      font-size: 0.74rem;
      font-weight: 700;
      color: var(--orange);
      letter-spacing: 0.06em;
      margin-bottom: 6px;
    }
    .work-body h3 {
      font-size: 1.05rem;
      font-weight: 800;
      margin-bottom: 8px;
    }
    .work-body p {
      font-size: 0.85rem;
      color: var(--muted);
      line-height: 1.6;
    }
    .work-link {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      font-size: 0.85rem;
      font-weight: 700;
      color: var(--orange);
      margin-top: 14px;
      transition: gap 0.2s;
    }
    .work-link:hover { gap: 8px; }

    /* ─── Contact ─── */
    .contact-card {
      padding: 48px;
      text-align: center;
      background: linear-gradient(135deg, #fffbf5, #fff7ed);
      border-color: rgba(249,115,22,0.15);
    }
    .contact-card h2 {
      font-size: 1.8rem;
      font-weight: 900;
      margin-bottom: 12px;
    }
    .contact-card p { color: var(--muted); margin-bottom: 28px; }
    .contact-links {
      display: flex;
      gap: 14px;
      justify-content: center;
      flex-wrap: wrap;
    }
    .contact-link {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 12px 22px;
      border-radius: 999px;
      font-weight: 700;
      font-size: 0.9rem;
      background: white;
      border: 1.5px solid var(--line);
      box-shadow: var(--shadow-sm);
      transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    }
    .contact-link:hover {
      transform: translateY(-2px);
      box-shadow: var(--shadow);
      border-color: var(--orange);
      color: var(--orange);
    }

    /* ─── Footer ─── */
    footer {
      border-top: 1.5px solid var(--line);
      padding: 28px 0;
      text-align: center;
      color: var(--muted);
      font-size: 0.85rem;
    }
    .footer-nav {
      display: flex;
      justify-content: center;
      flex-wrap: wrap;
      gap: 4px 12px;
      margin-bottom: 16px;
    }
    .footer-nav a {
      color: var(--muted);
      font-size: 0.82rem;
      text-decoration: none;
      opacity: 0.7;
      transition: opacity 0.2s, color 0.2s;
    }
    .footer-nav a:hover {
      opacity: 1;
      color: var(--blue);
    }

    /* ─── Scroll Reveal ─── */
    .reveal {
      opacity: 0;
      transition: opacity 0.5s ease;
    }
    .reveal.visible {
      opacity: 1;
    }

    /* ─── Responsive ─── */
    @media (max-width: 900px) {
      .local-grid { grid-template-columns: 1fr; }
      .hobby-grid { grid-template-columns: 1fr 1fr; }
      .blog-grid { grid-template-columns: 1fr 1fr; }
      .tools-grid { grid-template-columns: 1fr; }
      .dashboard-grid { grid-template-columns: 1fr; }
      .dashboard-layout-list { grid-template-columns: 1fr; }
      .works-grid { grid-template-columns: 1fr 1fr; }
      .pet-card { grid-template-columns: 1fr; text-align: center; }
      .pet-avatar { margin: 0 auto; }
      .pet-stats { justify-content: center; }
    }
    @media (min-width: 901px) and (max-width: 1200px) {
      .dashboard-grid { grid-template-columns: repeat(2, 1fr); }
    }
    @media (max-width: 640px) {
      .header-inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 12px 0 14px;
        min-height: unset;
      }
      .site-nav { width: 100%; }
      main section { padding: 56px 0; }
      .hobby-grid { grid-template-columns: 1fr; }
      .blog-grid { grid-template-columns: 1fr; }
      .works-grid { grid-template-columns: 1fr; }
      .local-hero-card { flex-direction: column; text-align: center; gap: 16px; }
      .contact-card { padding: 28px 20px; }
    }
    @media (prefers-reduced-motion: reduce) {
      html { scroll-behavior: auto; }
      *, *::before, *::after {
        animation: none !important;
        transition-duration: 0.01ms !important;
      }
      .reveal { opacity: 1; transform: none; }
    }

    /* ─── Hero Orbs ─── */
    .hero-orbs {
      position: absolute;
      inset: 0;
      pointer-events: none;
      overflow: hidden;
      z-index: 0;
    }
    .hero-orb {
      position: absolute;
      border-radius: 50%;
      filter: blur(70px);
    }
    .hero-orb-1 {
      width: 520px; height: 520px;
      top: -180px; left: -100px;
      background: radial-gradient(circle, rgba(249,115,22,0.13) 0%, transparent 70%);
      animation: heroOrb1 14s ease-in-out infinite;
    }
    .hero-orb-2 {
      width: 420px; height: 420px;
      bottom: -120px; right: -80px;
      background: radial-gradient(circle, rgba(168,85,247,0.10) 0%, transparent 70%);
      animation: heroOrb2 18s ease-in-out infinite reverse;
    }
    .hero-orb-3 {
      width: 360px; height: 360px;
      top: 40%; left: 45%;
      background: radial-gradient(circle, rgba(14,165,233,0.08) 0%, transparent 70%);
      animation: heroOrb3 22s ease-in-out infinite;
    }
    @keyframes heroOrb1 {
      0%, 100% { transform: translate(0,0) scale(1); }
      33%       { transform: translate(50px, 35px) scale(1.08); }
      66%       { transform: translate(-15px, 55px) scale(0.94); }
    }
    @keyframes heroOrb2 {
      0%, 100% { transform: translate(0,0) scale(1); }
      50%       { transform: translate(-35px,-25px) scale(1.12); }
    }
    @keyframes heroOrb3 {
      0%, 100% { transform: scale(1); }
      50%       { transform: scale(1.18); }
    }
    .hero .section-inner { position: relative; z-index: 1; }

    /* ─── Hero Photo Strip ─── */
    .hero-photo-strip {
      position: relative;
      margin-top: 48px;
      border-radius: var(--radius-xl);
      overflow: hidden;
      height: 200px;
    }
    .hero-photo-strip img {
      width: 100%; height: 100%;
      object-fit: cover;
      object-position: center 60%;
      display: block;
    }
    .hero-photo-overlay {
      position: absolute;
      inset: 0;
      background:
        linear-gradient(to right,  rgba(255,251,245,0.92) 0%, transparent 28%),
        linear-gradient(to left,   rgba(255,251,245,0.92) 0%, transparent 28%),
        linear-gradient(to top,    rgba(255,251,245,0.96) 0%, transparent 45%),
        linear-gradient(to bottom, rgba(255,251,245,0.80) 0%, transparent 38%);
    }
    @media (max-width: 640px) {
      .hero-photo-strip { height: 140px; }
    }

    /* ─── Pet Avatar Photo ─── */
    .pet-avatar { overflow: hidden; font-size: 0; }
    .pet-avatar img {
      width: 100%; height: 100%;
      object-fit: cover;
      object-position: center top;
      border-radius: 50%;
    }

    /* ─── Work Thumb Photo ─── */
    .work-thumb { overflow: hidden; }
    .work-thumb img {
      position: absolute;
      inset: 0;
      width: 100%; height: 100%;
      object-fit: cover;
      transition: transform 0.45s ease;
    }
    .work-card:hover .work-thumb img { transform: scale(1.07); }
    .work-thumb-emoji {
      position: relative;
      z-index: 1;
      text-shadow: 0 2px 12px rgba(0,0,0,0.4);
    }

    /* ─── Local Spot Card Photo ─── */
    .local-spot-card { padding: 0; overflow: hidden; }
    .spot-card-img {
      height: 130px;
      border-radius: var(--radius-lg) var(--radius-lg) 0 0;
      overflow: hidden;
      flex-shrink: 0;
    }
    .spot-card-img img {
      width: 100%; height: 100%;
      object-fit: cover;
      display: block;
      transition: transform 0.45s ease;
    }
    .card.local-spot-card:hover .spot-card-img img { transform: scale(1.05); }
    .spot-card-body { padding: 20px 26px 24px; }

    /* ─── Hobby Card SVG Banner ─── */
    .hobby-card { padding: 0; overflow: hidden; text-align: center; }
    .hobby-banner { width: 100%; height: 80px; display: block; flex-shrink: 0; }
    .hobby-banner svg { width: 100%; height: 100%; display: block; border-radius: 14px 14px 0 0; }
    .hobby-card .hobby-icon { display: block; margin-top: 18px; }
    .hobby-card .hobby-name { padding: 0 20px; }
    .hobby-card .hobby-desc { padding: 0 20px 24px; }

    /* ─── Blog Card Accent Strip ─── */
    .blog-card { padding: 0; overflow: hidden; }
    .blog-card-cover { height: 5px; width: 100%; flex-shrink: 0; }
    .blog-card-cover.cover-purple { background: linear-gradient(90deg, #a855f7, #7c3aed, #c026d3); }
    .blog-card-cover.cover-orange { background: linear-gradient(90deg, #f97316, #fb923c, #f59e0b); }
    .blog-card-cover.cover-blue   { background: linear-gradient(90deg, #0ea5e9, #38bdf8, #0284c7); }
    .blog-card-cover.cover-green  { background: linear-gradient(90deg, #22c55e, #4ade80, #16a34a); }
    .blog-card-body { padding: 20px 26px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
    #home-stock-candidates {
      list-style: none;
      display: none;
      flex-direction: column;
      gap: 2px;
      margin-top: 2px;
      background: #fff;
      border: 1.5px solid var(--blue);
      border-radius: 10px;
      padding: 4px;
      box-shadow: 0 4px 16px rgba(14,165,233,0.15);
    }
    #home-stock-candidates.active { display: flex; }
    .stock-candidate-btn {
      display: flex;
      align-items: center;
      gap: 8px;
      width: 100%;
      background: none;
      border: none;
      border-radius: 7px;
      padding: 7px 10px;
      font-size: 0.84rem;
      font-family: inherit;
      cursor: pointer;
      text-align: left;
      color: inherit;
    }
    .stock-candidate-btn:hover { background: rgba(14,165,233,0.10); color: var(--blue); }

  /* ── Sports Section ── */
  .sports-section { padding: 80px 0; }
  .sports-tabs { display:flex; gap:8px; margin-bottom:24px; flex-wrap:wrap; }
  .sports-tab-btn {
    padding: 8px 20px;
    border-radius: 20px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--muted);
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all .2s;
  }
  .sports-tab-btn.active {
    background: var(--blue);
    color: #fff;
    border-color: var(--blue);
  }
  .sports-panel { display:none; }
  .sports-panel.active { display:block; }
  .sports-standings-table {
    width:100%; border-collapse:collapse;
    font-size:0.82rem; margin-bottom:24px;
  }
  .sports-standings-table th {
    text-align:left; padding:6px 8px;
    color:var(--muted); font-weight:600;
    border-bottom:1px solid var(--line);
  }
  .sports-standings-table td {
    padding:7px 8px;
    border-bottom:1px solid var(--line);
    vertical-align:middle;
  }
  .sports-standings-table tr:hover td { background:rgba(255,255,255,0.04); }
  .sports-group-header {
    font-size: 0.82rem; font-weight: 700; color: var(--cyan);
    margin: 14px 0 4px; padding-bottom: 4px;
    border-bottom: 1px solid var(--line);
  }
  .sports-group-header:first-child { margin-top: 0; }
  .sports-team-logo {
    width:24px; height:24px;
    object-fit:contain; margin-right:6px;
    vertical-align:middle;
  }
  .sports-team-logo-lg {
    width:36px; height:36px;
    object-fit:contain; border-radius:4px;
  }
  .sports-cards-grid {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:16px;
  }
  .sports-npb-leagues-grid {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:16px;
    margin-bottom:8px;
  }
  @media(max-width:640px){
    .sports-cards-grid { grid-template-columns:1fr; }
    .sports-npb-leagues-grid { grid-template-columns:1fr; }
    .sports-standings-table th:nth-child(n+4),
    .sports-standings-table td:nth-child(n+4) { display:none; }
  }
  .sports-match-card {
    background:var(--surface);
    border:1px solid var(--card-border, var(--line));
    border-radius:12px;
    padding:14px 16px;
  }
  .sports-match-score {
    font-size:1.5rem; font-weight:700;
    text-align:center; color:var(--blue);
    margin:8px 0 4px;
  }
  .sports-match-teams {
    display:flex; align-items:center;
    justify-content:space-between; gap:8px;
  }
  .sports-match-team {
    display:flex; flex-direction:column;
    align-items:center; gap:4px;
    font-size:0.72rem; text-align:center;
    flex:1; line-height:1.4;
  }
  .sports-match-vs {
    font-size:0.75rem; color:var(--muted);
    flex-shrink:0; font-weight:600;
  }
  .sports-date-badge {
    font-size:0.68rem; color:var(--muted);
    margin-bottom:4px;
  }
  .sports-venue {
    font-size:0.68rem; color:var(--muted);
    text-align:center; margin-top:6px;
  }
  .sports-skeleton-row {
    height:14px; margin:8px 0;
    border-radius:4px;
    background:linear-gradient(90deg,var(--line,#333) 25%,rgba(255,255,255,0.06) 50%,var(--line,#333) 75%);
    background-size:200% 100%;
    animation:sports-shimmer 1.4s infinite;
  }
  @keyframes sports-shimmer {
    0%{background-position:200% 0}
    100%{background-position:-200% 0}
  }
  .sports-fallback-note {
    font-size:0.7rem; color:var(--muted);
    margin-bottom:8px; opacity:0.7;
  }
  .sports-update-time {
    font-size:0.68rem; color:var(--muted);
    margin-top:8px; text-align:right; opacity:0.6;
  }
  .sports-error-msg {
    font-size:0.8rem; color:var(--muted);
    padding:20px; text-align:center;
  }
  /* NPB 本日の試合 */
  .npb-today-header {
    display:flex; align-items:center; justify-content:space-between; margin-bottom:10px;
  }
  .npb-refresh-btn {
    background:none; border:1px solid var(--line); border-radius:6px;
    color:var(--muted); font-size:0.72rem; padding:3px 10px; cursor:pointer;
    display:flex; align-items:center; gap:4px; transition:color 0.2s, border-color 0.2s;
    flex-shrink:0;
  }
  .npb-refresh-btn:hover { color:var(--text); border-color:rgba(255,255,255,0.25); }
  .npb-refresh-btn.spinning { animation:npb-spin 0.7s linear infinite; }
  @keyframes npb-spin { to { transform:rotate(360deg); } }
  .npb-game-row {
    display:flex; align-items:center; padding:9px 12px;
    border:1px solid var(--line); border-radius:9px; margin-bottom:6px;
    gap:7px; transition:border-color 0.2s;
  }
  .npb-game-row:last-child { margin-bottom:0; }
  .npb-team-badge {
    display:inline-flex; align-items:center; justify-content:center;
    width:28px; height:28px; border-radius:50%;
    font-size:10px; font-weight:700; flex-shrink:0;
  }
  .npb-team-logo {
    width:28px; height:28px; object-fit:contain; flex-shrink:0; border-radius:4px;
  }
  .npb-team-name {
    font-size:0.83rem; font-weight:600; flex:1;
    white-space:nowrap; overflow:hidden; text-overflow:ellipsis; min-width:0;
  }
  .npb-team-name.home { text-align:right; }
  .npb-score-box {
    font-size:1.05rem; font-weight:700;
    min-width:68px; text-align:center; flex-shrink:0; letter-spacing:1px;
  }
  .npb-score-box.kick { font-size:0.8rem; font-weight:600; color:var(--cyan); letter-spacing:0; }
  .npb-status-badge {
    font-size:0.62rem; padding:2px 7px; border-radius:10px;
    font-weight:700; flex-shrink:0; white-space:nowrap;
  }
  .npb-status-badge.fin  { background:rgba(100,120,100,0.15); color:var(--muted); }
  .npb-status-badge.live { background:rgba(248,113,113,0.18); color:#f87171; }
  .npb-status-badge.pre  { background:rgba(0,229,255,0.1);   color:var(--cyan); }
  .npb-game-venue {
    font-size:0.62rem; color:var(--muted); flex-shrink:0;
    max-width:90px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
  }
  @media(max-width:480px){ .npb-game-venue { display:none; } }

/* ── SEO: 画面には出さず、検索エンジンと読み上げにだけ届ける文言（H1の補足など） ── */
.visually-hidden{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* ── FAQ（JSON-LD の FAQPage と同じ文言を画面にも出す） ── */
.faq-list{padding:8px 28px}
.faq-item{border-bottom:1px solid var(--card-border)}
.faq-item:last-child{border-bottom:0}
.faq-item summary{cursor:pointer;padding:16px 0;font-weight:700;line-height:1.5;list-style:none;display:flex;justify-content:space-between;gap:16px}
.faq-item summary::-webkit-details-marker{display:none}
.faq-item summary::after{content:"+";color:var(--muted);font-weight:400;flex-shrink:0}
.faq-item[open] summary::after{content:"−"}
.faq-item p{margin:0 0 16px;color:var(--muted);line-height:1.8;font-size:.92rem}
@media (max-width:600px){.faq-list{padding:4px 18px}}

/* ── 気分で選ぶおすすめゲーム（ゲーム欄の先頭） ── */
.genre-guide{padding:20px 24px;margin-bottom:24px;overflow-x:auto}
.genre-table{width:100%;border-collapse:collapse;font-size:.9rem}
.genre-table caption{text-align:left;font-weight:800;font-size:1.02rem;padding-bottom:12px}
.genre-table th,.genre-table td{padding:10px 12px;text-align:left;vertical-align:top;border-bottom:1px solid var(--card-border);line-height:1.6}
.genre-table thead th{font-size:.78rem;color:var(--muted);font-weight:700}
.genre-table tbody th{font-weight:700;white-space:nowrap}
.genre-table tbody tr:last-child th,.genre-table tbody tr:last-child td{border-bottom:0}
.genre-table td:last-child{color:var(--muted);white-space:nowrap}
.genre-table a{color:inherit;text-decoration:underline;text-decoration-color:var(--purple);text-underline-offset:3px}
@media (max-width:600px){
  .genre-guide{padding:14px 16px}
  .genre-table thead{display:none}
  .genre-table tr{display:block;padding:10px 0;border-bottom:1px solid var(--card-border)}
  .genre-table tbody tr:last-child{border-bottom:0}
  .genre-table th,.genre-table td{display:block;padding:2px 0;border:0;white-space:normal}
  .genre-table td:last-child{font-size:.8rem}
}

/* ── 運営者について ── */
.about-card{padding:28px 32px}
.about-lead{font-size:1.02rem;line-height:1.9;margin:0 0 20px}
.about-cols{display:grid;grid-template-columns:3fr 2fr;gap:28px}
.about-card h3{font-size:.95rem;margin:0 0 10px}
.about-list{margin:0;padding-left:1.2em;line-height:1.8;font-size:.9rem;color:var(--muted)}
.about-list li+li{margin-top:4px}
.about-links a{color:var(--text);text-decoration:underline;text-decoration-color:var(--purple);text-underline-offset:3px}
@media (max-width:760px){.about-card{padding:20px 18px}.about-cols{grid-template-columns:1fr;gap:18px}}
