    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    body {
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      background: #f0f2f5;
      color: #1a1a18;
      min-height: 100vh;
      padding: 2rem 1rem;
    }

    .container {
      max-width: 760px;
      margin: 0 auto;
    }

    header { margin-bottom: 1.75rem; }

    header h1 {
      font-size: 22px;
      font-weight: 600;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    header p {
      font-size: 13px;
      color: #888;
      margin-top: 4px;
    }

    /* ---- ヘッダーサブテキスト ---- */
    .header-sub {
      font-size: 12px;
      color: #aaa;
      margin-top: 3px;
    }

    /* ---- 検索欄 ---- */
    .search-row {
      display: flex;
      gap: 8px;
      margin-bottom: 1.5rem;
    }

    .search-row input {
      flex: 1;
      min-width: 0; /* はみ出し防止 */
      height: 44px;
      border: 1px solid #ddd;
      border-radius: 10px;
      padding: 0 14px;
      font-size: 15px;
      outline: none;
      background: #fff;
      transition: border-color .2s, box-shadow .2s;
    }

    .search-row input:focus {
      border-color: #378ADD;
      box-shadow: 0 0 0 3px rgba(55,138,221,0.15);
    }

    .btn {
      height: 44px;
      padding: 0 18px;
      border: 1px solid #ddd;
      border-radius: 10px;
      background: #fff;
      font-size: 14px;
      cursor: pointer;
      white-space: nowrap;
      transition: background .15s, transform .1s;
      display: flex;
      align-items: center;
      gap: 5px;
      color: #333;
    }

    .btn:hover  { background: #f4f4f2; }
    .btn:active { transform: scale(0.97); }

    .btn-primary {
      background: #378ADD;
      color: #fff;
      border-color: #378ADD;
    }

    .btn-primary:hover { background: #2a6fc2; }

    /* ---- ローディング ---- */
    .spinner-wrap {
      display: flex;
      align-items: center;
      gap: 10px;
      font-size: 14px;
      color: #888;
      margin-bottom: 1rem;
    }

    .spinner {
      width: 18px;
      height: 18px;
      border: 2px solid #ddd;
      border-top-color: #378ADD;
      border-radius: 50%;
      animation: spin .7s linear infinite;
    }

    @keyframes spin { to { transform: rotate(360deg); } }

    /* ---- エラー ---- */
    .error-box {
      background: #fff0ee;
      border: 1px solid #f8ccc9;
      border-radius: 10px;
      padding: 12px 16px;
      font-size: 14px;
      color: #c0392b;
      margin-bottom: 1rem;
    }

    /* ---- 場所ヘッダー ---- */
    .location-header {
      display: flex;
      align-items: baseline;
      gap: 10px;
      margin-bottom: 1rem;
      animation: fadeUp .35s ease;
    }

    .city-name   { font-size: 22px; font-weight: 600; }
    .country-name { font-size: 13px; color: #888; }
    .updated-at  { font-size: 12px; color: #aaa; margin-left: auto; }

    /* ---- 今日のヒーローカード ---- */
    .today-hero {
      background: linear-gradient(135deg, #5B8FA8 0%, #79AFCA 60%, #97C6DC 100%);
      border-radius: 18px;
      padding: 18px 20px 20px;
      margin-bottom: 1.25rem;
      color: #fff;
      animation: fadeUp .4s ease;
      box-shadow: 0 4px 20px rgba(55,138,221,0.30);
    }

    .today-hero.rainy  {
      background: linear-gradient(135deg, #6E6E9E 0%, #8888B4 60%, #9E9EC8 100%);
      box-shadow: 0 4px 20px rgba(58,97,134,0.30);
    }
    .today-hero.cloudy {
      background: linear-gradient(135deg, #888498 0%, #9E9AB0 60%, #B6B2C6 100%);
      box-shadow: 0 4px 20px rgba(99,110,114,0.30);
    }
    .today-hero.hot {
      background: linear-gradient(135deg, #C87860 0%, #DA9278 60%, #E8A890 100%);
      box-shadow: 0 4px 20px rgba(225,112,85,0.30);
    }
    .today-hero.cold {
      background: linear-gradient(135deg, #508C8C 0%, #6EA4A4 60%, #88BCBC 100%);
      box-shadow: 0 4px 20px rgba(44,62,80,0.30);
    }

    /* ---- 明日のカード（today-heroより影を控えめに） ---- */
    .tomorrow-hero {
      background: linear-gradient(135deg, #5B8FA8 0%, #79AFCA 60%, #97C6DC 100%);
      border-radius: 18px;
      padding: 18px 20px 20px;
      margin-bottom: 1.25rem;
      color: #fff;
      animation: fadeUp .45s ease;
      box-shadow: 0 3px 14px rgba(91,143,168,0.18);
    }
    .tomorrow-hero.rainy  {
      background: linear-gradient(135deg, #6E6E9E 0%, #8888B4 60%, #9E9EC8 100%);
      box-shadow: 0 3px 14px rgba(110,110,158,0.18);
    }
    .tomorrow-hero.cloudy {
      background: linear-gradient(135deg, #888498 0%, #9E9AB0 60%, #B6B2C6 100%);
      box-shadow: 0 3px 14px rgba(136,132,152,0.18);
    }
    .tomorrow-hero.hot {
      background: linear-gradient(135deg, #C87860 0%, #DA9278 60%, #E8A890 100%);
      box-shadow: 0 3px 14px rgba(200,120,96,0.18);
    }
    .tomorrow-hero.cold {
      background: linear-gradient(135deg, #508C8C 0%, #6EA4A4 60%, #88BCBC 100%);
      box-shadow: 0 3px 14px rgba(80,140,140,0.18);
    }

    .hero-label {
      font-size: 11px;
      opacity: 0.8;
      font-weight: 600;
      letter-spacing: 0.8px;
      text-transform: uppercase;
      margin-bottom: 12px;
    }

    /* ---- 時間帯スロット ---- */
    .time-slots-grid {
      display: grid;
      grid-template-columns: 1fr auto 1fr auto 1fr;
      align-items: start;
    }

    .time-slot {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 4px;
      text-align: center;
      padding: 0 6px;
    }

    .slot-divider {
      width: 1px;
      background: rgba(255,255,255,0.25);
      align-self: stretch;
      margin: 0 4px;
    }

    .slot-label         { font-size: 12px; font-weight: 600; opacity: 0.9; }
    .slot-weather-icon  { font-size: 26px; line-height: 1; margin: 4px 0 2px; }
    .slot-weather-label { font-size: 11px; opacity: 0.8; }
    .slot-temp          { font-size: 24px; font-weight: 700; margin: 2px 0; }
    .slot-outfit-icon   { font-size: 34px; line-height: 1; margin: 2px 0; }
    .slot-outfit-label  { font-size: 12px; font-weight: 600; }

    .slot-badges {
      display: flex;
      flex-wrap: wrap;
      gap: 3px;
      justify-content: center;
      margin-top: 4px;
    }

    .hero-badge {
      font-size: 10px;
      background: rgba(255,255,255,0.22);
      padding: 2px 7px;
      border-radius: 20px;
      white-space: normal;
      word-break: keep-all;
      text-align: center;
    }

    .hero-badge.rain   { background: rgba(80,160,255,0.35); }
    .hero-badge.wind   { background: rgba(255,255,255,0.18); }
    .hero-badge.snow   { background: rgba(180,220,255,0.35); }
    .hero-badge.layer  { background: rgba(255,210,80,0.30); }
    .hero-badge.feels  { background: rgba(255,255,255,0.14); font-style: italic; }

    /* ---- セクションラベル ---- */
    .section-label {
      font-size: 13px;
      color: #888;
      font-weight: 500;
      margin-bottom: 10px;
    }

    /* ---- カードグリッド ---- */
    .cards-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
      gap: 10px;
      animation: fadeUp .5s ease;
    }

    @keyframes fadeUp {
      from { opacity: 0; transform: translateY(12px); }
      to   { opacity: 1; transform: translateY(0); }
    }

    .day-card {
      background: #fff;
      border: 1px solid #e5e5e5;
      border-radius: 14px;
      padding: 14px 10px;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 4px;
      transition: box-shadow .2s;
    }

    .day-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }

    .day-card.today {
      border: 2px solid #378ADD;
      box-shadow: 0 2px 12px rgba(55,138,221,0.15);
    }

    .today-badge {
      font-size: 11px;
      background: #E6F1FB;
      color: #185FA5;
      padding: 2px 9px;
      border-radius: 20px;
      font-weight: 600;
    }

    .day-label      { font-size: 12px; color: #888; }
    .weather-icon   { font-size: 24px; line-height: 1; margin: 2px 0; }
    .weather-label  { font-size: 11px; color: #999; }

    .temp-row {
      display: flex;
      align-items: baseline;
      gap: 4px;
    }

    .temp-max { font-size: 18px; font-weight: 600; }
    .temp-min { font-size: 12px; color: #999; }

    .precip-row {
      display: flex;
      align-items: center;
      gap: 3px;
      font-size: 11px;
      color: #6aabdd;
    }

    .wind-row {
      display: flex;
      align-items: center;
      gap: 2px;
      font-size: 11px;
      color: #aaa;
    }

    .divider {
      width: 100%;
      height: 1px;
      background: #f0f0ee;
      margin: 2px 0;
    }

    .outfit-icon  { font-size: 26px; line-height: 1; }

    .outfit-label {
      font-size: 11px;
      color: #555;
      text-align: center;
      line-height: 1.4;
    }

    .outfit-rain-badge {
      font-size: 10px;
      color: #5a9fd4;
      text-align: center;
    }

    .outfit-wind-note {
      font-size: 10px;
      color: #bbb;
      text-align: center;
    }

    /* ---- ヘッダー設定ボタン ---- */
    .header-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .btn-icon {
      width: 38px;
      height: 38px;
      padding: 0;
      border-radius: 10px;
      font-size: 18px;
      justify-content: center;
      flex-shrink: 0;
    }

    /* ---- 設定オーバーレイ ---- */
    .settings-overlay {
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,0.35);
      z-index: 99;
      opacity: 0;
      pointer-events: none;
      transition: opacity .25s ease;
    }

    .settings-overlay.open {
      opacity: 1;
      pointer-events: auto;
    }

    /* ---- 設定パネル ---- */
    .settings-panel {
      position: fixed;
      top: 0;
      right: 0;
      width: 100%;
      max-width: 440px;
      height: 100%;
      background: #f8f9fb;
      z-index: 100;
      transform: translateX(100%);
      transition: transform .28s cubic-bezier(.4,0,.2,1);
      overflow-y: auto;
      box-shadow: -4px 0 24px rgba(0,0,0,0.12);
      display: flex;
      flex-direction: column;
    }

    .settings-panel.open { transform: translateX(0); }

    .settings-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 16px;
      background: #fff;
      border-bottom: 1px solid #eee;
      position: sticky;
      top: 0;
      z-index: 1;
    }

    .settings-header h2 { font-size: 17px; font-weight: 600; }

    .settings-body { flex: 1; padding: 16px; }

    .settings-desc {
      font-size: 13px;
      color: #888;
      margin-bottom: 16px;
      line-height: 1.6;
    }

    .setting-row {
      display: flex;
      align-items: center;
      gap: 10px;
      background: #fff;
      border: 1px solid #e5e5e5;
      border-radius: 12px;
      padding: 10px 12px;
      margin-bottom: 8px;
    }

    .setting-icon {
      font-size: 26px;
      line-height: 1;
      flex-shrink: 0;
      width: 32px;
      text-align: center;
    }

    .setting-fields {
      flex: 1;
      display: flex;
      flex-direction: column;
      gap: 6px;
    }

    .setting-temp-wrap {
      display: flex;
      align-items: center;
      gap: 5px;
    }

    .setting-temp-input {
      width: 64px;
      height: 32px;
      border: 1px solid #ddd;
      border-radius: 8px;
      padding: 0 8px;
      font-size: 14px;
      text-align: right;
      outline: none;
    }

    .setting-temp-input:focus {
      border-color: #378ADD;
      box-shadow: 0 0 0 2px rgba(55,138,221,0.15);
    }

    .setting-temp-input:disabled { background: #f4f4f2; color: #aaa; }
    .setting-temp-unit { font-size: 13px; color: #888; }

    .setting-label-input {
      width: 100%;
      height: 32px;
      border: 1px solid #ddd;
      border-radius: 8px;
      padding: 0 10px;
      font-size: 13px;
      outline: none;
    }

    .setting-label-input:focus {
      border-color: #378ADD;
      box-shadow: 0 0 0 2px rgba(55,138,221,0.15);
    }

    .settings-footer {
      padding: 14px 16px;
      background: #fff;
      border-top: 1px solid #eee;
      display: flex;
      gap: 8px;
    }

    .settings-footer .btn {
      flex: 1;
      justify-content: center;
      height: 46px;
      font-size: 15px;
    }

    .settings-note {
      font-size: 11px;
      color: #bbb;
      text-align: center;
      margin-top: 10px;
    }

    /* ---- トグルスイッチ ---- */
    .toggle-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 12px 4px 14px;
      border-bottom: 1px solid #f0f0f0;
      margin-bottom: 14px;
    }
    .toggle-info { display: flex; flex-direction: column; gap: 3px; }
    .toggle-label { font-size: 14px; font-weight: 600; color: #333; }
    .toggle-desc  { font-size: 11px; color: #aaa; }
    .toggle-switch {
      position: relative;
      display: inline-block;
      width: 44px;
      height: 26px;
      flex-shrink: 0;
    }
    .toggle-switch input { opacity: 0; width: 0; height: 0; }
    .toggle-slider {
      position: absolute;
      cursor: pointer;
      inset: 0;
      background: #ccc;
      border-radius: 26px;
      transition: background .2s;
    }
    .toggle-slider::before {
      content: "";
      position: absolute;
      width: 20px;
      height: 20px;
      left: 3px;
      bottom: 3px;
      background: #fff;
      border-radius: 50%;
      transition: transform .2s;
      box-shadow: 0 1px 3px rgba(0,0,0,.2);
    }
    .toggle-switch input:checked + .toggle-slider { background: #378ADD; }
    .toggle-switch input:checked + .toggle-slider::before { transform: translateX(18px); }

    /* ---- 検索履歴チップ ---- */
    .history-chips {
      display: flex;
      gap: 6px;
      flex-wrap: wrap;
      margin-top: -0.75rem;
      margin-bottom: 1rem;
    }

    .history-chip {
      display: flex;
      align-items: center;
      border: 1px solid #ddd;
      border-radius: 20px;
      background: #fff;
      font-size: 13px;
      color: #555;
      overflow: hidden;
      transition: border-color .15s;
    }
    .history-chip:hover { border-color: #378ADD; }

    .history-chip-name {
      display: flex;
      align-items: center;
      gap: 4px;
      padding: 3px 6px 3px 11px;
      background: none;
      border: none;
      color: inherit;
      font-size: inherit;
      cursor: pointer;
    }
    .history-chip-name::before { content: "🕐"; font-size: 11px; }
    .history-chip-name:hover { color: #2a6fc2; }

    .history-chip-del {
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 3px 9px 3px 3px;
      background: none;
      border: none;
      color: #ccc;
      font-size: 11px;
      cursor: pointer;
      line-height: 1;
    }
    .history-chip-del:hover { color: #e74c3c; }

    /* ---- 不具合報告 iframe ---- */
    .bug-iframe-wrap {
      flex: 1;
      overflow: hidden;
      display: flex;
    }

    #bugIframe {
      width: 100%;
      height: 100%;
      border: none;
    }

    /* ---- 不具合報告フォーム（旧・削除可） ---- */
    .bug-form {
      display: flex;
      flex-direction: column;
      gap: 12px;
    }

    .bug-field-label {
      font-size: 12px;
      font-weight: 600;
      color: #666;
      margin-bottom: 4px;
    }

    .bug-field { display: flex; flex-direction: column; }

    .bug-input-ro {
      width: 100%;
      padding: 8px 12px;
      border: 1px solid #e8e8e8;
      border-radius: 8px;
      font-size: 14px;
      background: #f7f7f7;
      color: #888;
      font-family: inherit;
    }

    .bug-textarea {
      width: 100%;
      padding: 8px 12px;
      border: 1px solid #ddd;
      border-radius: 8px;
      font-size: 14px;
      resize: vertical;
      font-family: inherit;
      outline: none;
      transition: border-color .2s, box-shadow .2s;
      line-height: 1.5;
    }

    .bug-textarea:focus {
      border-color: #378ADD;
      box-shadow: 0 0 0 3px rgba(55,138,221,0.15);
    }

    .bug-status {
      font-size: 13px;
      min-height: 18px;
      padding: 2px 0;
    }

    /* ---- フッター ---- */
    .app-footer {
      text-align: center;
      padding: 1.25rem 0 0.25rem;
    }

    /* ヘッダーのロゴリンク（見た目は従来どおり） */
    .brand-link {
      color: inherit;
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      gap: 0.35em;
    }

    .brand-logo {
      height: 48px;
      width: auto;
      display: block;
    }

    /* 都市別ページへのリンク一覧 */
    .city-links {
      text-align: left;
      background: #fff;
      border-radius: 12px;
      padding: 1rem 1.1rem;
      margin-bottom: 0.75rem;
      box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    }

    .city-links-title {
      font-size: 13px;
      font-weight: 700;
      color: #667;
      margin-bottom: 0.6rem;
    }

    .city-links-row {
      font-size: 12px;
      line-height: 2;
      display: flex;
      gap: 0.5rem;
    }

    .city-links-region {
      flex: 0 0 6.5em;
      color: #99a;
      font-weight: 600;
      white-space: nowrap;
    }

    .city-links-items { flex: 1; }

    .city-link {
      color: #5B8FA8;
      text-decoration: none;
      margin-right: 0.65em;
      white-space: nowrap;
    }

    .city-link:hover { text-decoration: underline; }

    .city-link.current {
      color: #bbb;
      font-weight: 600;
      margin-right: 0.65em;
    }

    .attribution {
      font-size: 11px;
      color: #bbb;
      margin-top: 0.5rem;
      line-height: 1.8;
    }

    .attribution a {
      color: #bbb;
      text-decoration: none;
    }

    .attribution a:hover {
      color: #888;
      text-decoration: underline;
    }

    .btn-ghost {
      background: transparent;
      border-color: transparent;
      color: #bbb;
      font-size: 12px;
      padding: 0 10px;
      height: 32px;
    }

    .btn-ghost:hover {
      color: #666;
      background: transparent;
      border-color: transparent;
    }

    /* ---- レスポンシブ ---- */
    @media (max-width: 480px) {
      .cards-grid        { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
      .city-name         { font-size: 18px; }
      .slot-temp         { font-size: 20px; }
      .slot-outfit-icon  { font-size: 28px; }
      .slot-weather-icon { font-size: 22px; }
      /* 現在地ボタンはアイコンのみ表示してスペースを節約 */
      .btn-location-text { display: none; }
      .btn              { padding: 0 12px; }
    }

    /* ---- シェアボタン ---- */
    .share-row {
      display: flex;
      justify-content: flex-end;
      margin: -0.25rem 0 1rem;
      animation: fadeUp .5s ease;
    }
    .btn-share {
      height: 36px;
      padding: 0 16px;
      border-radius: 18px;
      font-size: 13px;
      color: #378ADD;
      border-color: #c2dcf7;
      background: #f0f6ff;
    }
    .btn-share:hover { background: #daeeff; border-color: #378ADD; }

    /* ---- シェアモーダル ---- */
    .share-modal-overlay {
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,0.45);
      z-index: 200;
      display: flex;
      align-items: center;
      justify-content: center;
      opacity: 0;
      pointer-events: none;
      transition: opacity .2s;
    }
    .share-modal-overlay.open { opacity: 1; pointer-events: auto; }
    .share-modal {
      background: #fff;
      border-radius: 18px;
      padding: 22px 20px 18px;
      width: 90%;
      max-width: 340px;
      box-shadow: 0 8px 40px rgba(0,0,0,0.18);
    }
    .share-modal h3 {
      font-size: 16px;
      font-weight: 600;
      margin-bottom: 12px;
      text-align: center;
    }
    .share-preview {
      background: #f7f9fb;
      border-radius: 10px;
      padding: 10px 12px;
      font-size: 12px;
      color: #555;
      white-space: pre-wrap;
      line-height: 1.6;
      margin-bottom: 14px;
      max-height: 130px;
      overflow-y: auto;
    }
    .share-buttons { display: flex; flex-direction: column; gap: 8px; }
    .btn-line, .btn-x {
      display: flex;
      align-items: center;
      justify-content: center;
      height: 44px;
      border-radius: 10px;
      font-size: 15px;
      font-weight: 600;
      text-decoration: none;
      border: none;
      cursor: pointer;
    }
    .btn-line { background: #06C755; color: #fff; }
    .btn-line:hover { background: #05b34c; }
    .btn-x { background: #000; color: #fff; }
    .btn-x:hover { background: #222; }

    /* ---- 法的ページパネル ---- */
    .legal-body {
      flex: 1;
      padding: 20px;
      font-size: 13px;
      line-height: 1.8;
      color: #444;
      overflow-y: auto;
    }
    .legal-body h3 {
      font-size: 14px;
      font-weight: 600;
      margin: 20px 0 6px;
      color: #222;
      border-left: 3px solid #378ADD;
      padding-left: 8px;
    }
    .legal-body h3:first-child { margin-top: 0; }
    .legal-body p { margin-bottom: 8px; }
    .legal-body ul { padding-left: 18px; margin-bottom: 8px; }
    .legal-body li { margin-bottom: 4px; }
    .legal-body a { color: #378ADD; word-break: break-all; }
    .legal-updated { font-size: 11px; color: #aaa; margin-bottom: 16px; }

    /* ---- フッターリンク ---- */
    .footer-links {
      display: flex;
      justify-content: center;
      gap: 16px;
      margin-top: 6px;
      flex-wrap: wrap;
    }
    .footer-link {
      font-size: 11px;
      color: #bbb;
      text-decoration: none;
      background: none;
      border: none;
      cursor: pointer;
      padding: 0;
      font-family: inherit;
    }
    .footer-link:hover { color: #888; text-decoration: underline; }

    /* ---- 設定行 削除ボタン・追加ボタン ---- */
    .btn-delete-row {
      width: 28px;
      height: 28px;
      border: 1px solid #e0e0e0;
      border-radius: 8px;
      background: #fff;
      color: #ccc;
      font-size: 13px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      transition: background .15s, color .15s, border-color .15s;
      padding: 0;
    }
    .btn-delete-row:hover { background: #fff0f0; color: #e74c3c; border-color: #e74c3c; }

    .btn-sort-col {
      display: flex;
      flex-direction: column;
      gap: 2px;
      flex-shrink: 0;
    }
    .btn-sort-row {
      width: 26px;
      height: 22px;
      border: 1px solid #e0e0e0;
      border-radius: 6px;
      background: #fff;
      color: #bbb;
      font-size: 10px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 0;
      transition: background .15s, color .15s, border-color .15s;
    }
    .btn-sort-row:hover:not(:disabled) { background: #f0f6ff; color: #378ADD; border-color: #378ADD; }
    .btn-sort-row:disabled { opacity: 0.25; cursor: default; }

    .setting-temp-placeholder {
      font-size: 13px;
      color: #aaa;
      padding: 5px 4px;
      font-style: italic;
    }

    .btn-add-row {
      width: 100%;
      margin-top: 10px;
      height: 40px;
      border: 1.5px dashed #bbb;
      border-radius: 10px;
      background: #fafafa;
      font-size: 14px;
      color: #888;
      cursor: pointer;
      transition: background .15s, border-color .15s, color .15s;
    }
    .btn-add-row:hover { background: #f0f6ff; border-color: #378ADD; color: #378ADD; }

    /* ---- 絵文字ピッカー ---- */
    .emoji-picker {
      position: fixed;
      background: #fff;
      border: 1px solid #ddd;
      border-radius: 14px;
      padding: 10px;
      z-index: 300;
      box-shadow: 0 8px 30px rgba(0,0,0,0.18);
      max-width: 290px;
      max-height: 360px;
      overflow-y: auto;
    }
    .picker-section-label {
      font-size: 11px;
      color: #aaa;
      font-weight: 600;
      padding: 4px 2px 4px;
      display: block;
    }
    .picker-grid {
      display: grid;
      gap: 4px;
    }
    .picker-grid-img  { grid-template-columns: repeat(5, 1fr); }
    .picker-grid-emoji{ grid-template-columns: repeat(6, 1fr); }
    .emoji-btn {
      width: 36px;
      height: 36px;
      border: none;
      background: none;
      font-size: 22px;
      cursor: pointer;
      border-radius: 8px;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: background .15s;
    }
    .emoji-btn:hover { background: #f0f0f0; }
    .img-btn {
      width: 48px;
      height: 48px;
      border: 1.5px solid transparent;
      background: #f4f7fb;
      border-radius: 10px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 4px;
      transition: border-color .15s, background .15s;
    }
    .img-btn:hover { background: #e6f0fb; border-color: #378ADD; }
    .img-btn img { width: 100%; height: 100%; object-fit: contain; }
    .setting-icon { cursor: pointer; }
    .setting-icon:hover { opacity: 0.7; }
    /* 画像アイコン */
    .setting-icon img,
    .outfit-icon img,
    .slot-outfit-icon img {
      border-radius: 6px;
    }
