@charset "UTF-8";
/* CSS Document */
/* きょうの天気と服装提案 CSS */
/* みんなの知識 ちょっと便利帳 */
/* 2026/07/07 */

  /* 親ページのレイアウトを崩さないよう、すべて「.w-sim-」から始まるクラス名に限定 */
  .w-sim-container {
    max-width: 900px;
    margin: 20px auto;
    background: AliceBlue;
    border-radius: 16px;
    padding: 25px;
    border: 2px solid #1f6feb;
    box-shadow: 0 4px 20px rgba(0,0,0,.02);
    color: #222222;
    font-family: system-ui, -apple-system, "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
    box-sizing: border-box;
  }
  .w-sim-container * {
    box-sizing: border-box;
  }
  .w-sim-header {
    margin-bottom: 24px;
    border-bottom: 2px solid #f0f2f5;
    padding-bottom: 16px;
  }  .w-sim-title {
    margin: 0 0 15px;
    font-size: 28px;
    color: #1f6feb;
    font-weight: 800;
	text-align: center;
  }
  .w-sim-subtitle {
    margin: 0;
    color: #555555;
    font-size: 14px;
    line-height: 1.5;
    padding-left: 1em;
    text-indent: -1em;
  }

  .w-sim-control-panel {
    background: #f8fafc;
    padding: 10px;
    border-radius: 12px;
    margin-bottom: 24px;
    border: 1px solid #e2e8f0;
  }
  .w-sim-input-row {
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    gap: 12px;
    margin-bottom: 16px;
  }
  .w-sim-input, .w-sim-select, .w-sim-btn {
    font-size: 16px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    padding: 12px 16px;
    outline: none;
    background: #fff;
    color: #222222;
  }
  .w-sim-input:focus, .w-sim-select:focus {
    border-color: #1f6feb;
    box-shadow: 0 0 0 3px rgba(31, 111, 235, 0.15);
  }
  .w-sim-btn:focus-visible, .w-sim-input:focus-visible, .w-sim-select:focus-visible {
    outline: 2px solid #1f6feb;
    outline-offset: 2px;
  }

  .w-sim-mode-select-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .w-sim-mode-select-wrapper .w-sim-select {
    width: 100%;
  }
  .w-sim-label {
    font-weight: 700;
    font-size: 14px;
    color: #475569;
  }
  .w-sim-select {
    flex: 1;
    font-weight: bold;
    color: #1e293b;
    border-color: #94a3b8;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
    -webkit-appearance: none;
    appearance: none;
  }

  .w-sim-btn {
    cursor: pointer;
    background: #1f6feb;
    color: #fff;
    border: none;
    font-weight: 600;
    transition: all 0.2s;
  }
  .w-sim-btn:hover { background: #1552b9; }
  .w-sim-btn-secondary {
    background: #e2e8f0;
    color: #334155;
    border: 1px solid #cbd5e1;
  }
  .w-sim-btn-secondary:hover { background: #cbd5e1; }
  .w-sim-btn:disabled { background: #cbd5e1; cursor: not-allowed; }

  .w-sim-map-wrapper {
    margin-top: 16px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #cbd5e1;
  }
  .w-sim-map-instruction {
    background: #f1f5f9;
    padding: 8px 12px;
    font-size: 13px;
    color: #475569;
    border-bottom: 1px solid #cbd5e1;
    font-weight: bold;
  }
  #wSimMap {
    width: 100%;
    height: 250px;
    background: #e0e0e0;
  }

  /* 地図レイヤー切り替え（右上コントロール） */
  .w-sim-map-layer-control {
    background: #FFFFFF;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.2);
    padding: 3px;
  }
  .w-sim-map-layer-select {
    font-size: 12.5px;
    font-weight: 700;
    color: #1e293b;
    border: none;
    background: transparent;
    padding: 4px 6px;
    cursor: pointer;
    outline: none;
  }

  .w-sim-status { margin: 16px 0; padding: 14px; border-radius: 10px; font-weight: 600; }
  .w-sim-status.w-sim-status-error { background: #fef2f2; color: #991b1b; border: 1px solid #fee2e2; }
  .w-sim-status.w-sim-status-loading { background: #f0fdf4; color: #166534; border: 1px solid #dcfce7; }

  .w-sim-target-place {
    font-size: 25px;
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 12px;
    padding-left: 4px;
    border-left: 6px solid #1f6feb;
    line-height: 1.1;
  }

  .w-sim-advice-card {
    padding: 24px;
    border-radius: 14px;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border: 1px solid #bfdbfe;
    margin-bottom: 20px;
  }
  .w-sim-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    background: #1f6feb;
    color: white;
    margin-bottom: 10px;
  }
  .w-sim-advice-title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 8px;
    color: #1e3a8a;
  }
  .w-sim-advice-reason {
    font-size: 15px;
    color: #1e40af;
    line-height: 1.6;
  }

  .w-sim-sun-card {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: center;
    background: linear-gradient(135deg, #fff7e6, #ffedd5);
    border: 1px solid #fde3b8;
    border-radius: 14px;
    padding: 14px 20px;
    margin-bottom: 20px;
  }
  .w-sim-sun-item {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .w-sim-sun-icon { font-size: 24px; line-height: 1; }
  .w-sim-sun-text { display: flex; flex-direction: column; line-height: 1.2; }
  .w-sim-sun-label { font-size: 12px; font-weight: 700; color: #b45309; }
  .w-sim-sun-time { font-size: 20px; font-weight: 800; color: #78350f; }

  .w-sim-forecast-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.01);
  }
  .w-sim-forecast-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
  }
  .w-sim-forecast-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #334155;
  }
  .w-sim-forecast-range-badge {
    background: #f1f5f9;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: bold;
    color: #475569;
    border: 1px solid #e2e8f0;
  }
  .w-sim-table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .w-sim-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
    font-size: 14px;
    min-width: 620px;
  }
  .w-sim-table th, .w-sim-table td {
    padding: 10px 8px;
    border-bottom: 1px solid #e2e8f0;
  }
  .w-sim-table th {
    background: #f8fafc;
    color: #475569;
    font-weight: 700;
    font-size: 13px;
  }
  .w-sim-table th:first-child, .w-sim-table td:first-child {
    position: -webkit-sticky;
    position: sticky;
    left: 0;
    background: #fff;
    font-weight: 700;
    z-index: 2;
    border-right: 2px solid #e2e8f0;
    min-width: 95px;
    text-align: left;
  }
  .w-sim-table th:first-child {
    background: #f8fafc;
  }
  .w-sim-table tr:hover td {
    background: #f8fafc;
  }
  .w-sim-table tr:hover td:first-child {
    background: #f8fafc;
  }
  .w-sim-td-label { color: #475569; }
  .w-sim-td-weather { font-weight: 700; color: #1e40af; }
  .w-sim-td-temp { font-weight: 800; color: #475569; }
  .w-sim-td-feels { font-weight: 600; color: #475569; font-size: 12px; }
  .w-sim-td-pop { font-weight: 700; color: #0284c7; }
  .w-sim-td-wind { font-weight: 600; color: #15803d; }

  .w-sim-cell-max-badge {
    display: inline-block;
    background: #fef2f2;
    color: #b91c1c;
    padding: 2px 6px;
    border-radius: 6px;
    border: 1px solid #fca5a5;
    font-weight: 800;
  }
  .w-sim-cell-min-badge {
    display: inline-block;
    background: #eff6ff;
    color: #1e40af;
    padding: 2px 6px;
    border-radius: 6px;
    border: 1px solid #93c5fd;
    font-weight: 800;
  }

  .w-sim-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 16px;
  }
  .w-sim-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
  }
  .w-sim-card .label { font-size: 13px; color: #64748b; font-weight: 600; margin-bottom: 6px; }
  .w-sim-card .value { font-size: 22px; font-weight: 800; color: #0f172a; }
  .w-sim-card .subtext { font-size: 17px; color: #64748b; font-weight: bold; margin-top: 6px; line-height: 1.4; }

  .w-sim-items-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
  }
  .w-sim-item-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.01);
  }
  .w-sim-item-title { margin: 0 0 10px; font-size: 16px; font-weight: 700; color: #334155; border-left: 4px solid #1f6feb; padding-left: 8px; }

  .w-sim-list { margin: 0; padding-left: 20px; color: #334155; line-height: 1.7; }
  .w-sim-list li { margin-bottom: 4px; font-size: 17px; font-weight: bold; }

  .w-sim-detail {
    padding: 16px;
    background: #fafafa;
    border-radius: 10px;
    border: 1px dashed #cbd5e1;
    color: #475569;
    font-size: 13px;
    line-height: 1.6;
  }
  .w-sim-detail ul { margin: 8px 0 0; padding-left: 20px; }
  .w-sim-detail li { margin-bottom: 4px; }

  @media (max-width: 700px) {
    .w-sim-input-row { grid-template-columns: 1fr; }
    .w-sim-summary-grid { grid-template-columns: 1fr; }
    .w-sim-items-container { grid-template-columns: 1fr; }
    .w-sim-target-place { font-size: 25px; }
  }

  /* お気に入り（星ボタン・チップ一覧） */
  .w-sim-star-btn {
    font-size: 20px;
    line-height: 1;
    padding: 12px 16px;
    background: #fff;
  }
  .w-sim-star-btn.is-fav {
    background: #fffbeb;
    border-color: #fbbf24;
    color: #d97706;
  }
  .w-sim-fav-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px;
  }
  .w-sim-fav-row-label {
    font-size: 12px;
    font-weight: 700;
    color: #475569;
    white-space: nowrap;
  }
  .w-sim-fav-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
  }
  .w-sim-fav-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e3a8a;
    border-radius: 999px;
    padding: 5px 6px 5px 14px;
    font-size: 13px;
    font-weight: 700;
  }
  .w-sim-fav-chip-name {
    cursor: pointer;
  }
  .w-sim-fav-chip-name:hover {
    text-decoration: underline;
  }
  .w-sim-fav-remove {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 15px;
    cursor: pointer;
    line-height: 1;
    padding: 2px 6px;
    border-radius: 999px;
  }
  .w-sim-fav-remove:hover { color: #fff; background: #ef4444; }

  /* タブ（今日 / 週間） */
  .w-sim-tabs {
    display: flex;
    gap: 4px;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 18px;
  }
  .w-sim-tab-btn {
    background: none;
    border: none;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
  }
  .w-sim-tab-btn:hover { color: #1f6feb; }
  .w-sim-tab-btn.active { color: #1f6feb; border-bottom-color: #1f6feb; }

  /* 週間予報 */
  .w-sim-weekly-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
  }
  @media (max-width: 700px) {
    .w-sim-weekly-grid { grid-template-columns: repeat(4, 1fr); }
  }
  .w-sim-weekly-day-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 6px;
    text-align: center;
  }
  .w-sim-weekly-day-card.is-today {
    background: #eff6ff;
    border-color: #93c5fd;
  }
  .w-sim-weekly-dow { font-size: 12px; font-weight: 800; color: #334155; }
  .w-sim-weekly-date { font-size: 11px; color: #94a3b8; margin-bottom: 4px; }
  .w-sim-weekly-icon { font-size: 24px; margin: 4px 0; }
  .w-sim-weekly-temp { font-size: 13px; font-weight: 800; }
  .w-sim-weekly-temp .max { color: #c23b3b; }
  .w-sim-weekly-temp .min { color: #3b82c4; margin-left: 4px; }
  .w-sim-weekly-pop { font-size: 11px; color: #0284c7; margin-top: 4px; font-weight: 700; }

  /* 洗濯指数・花粉情報 */
  .w-sim-extra-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
  }
  @media (max-width: 700px) {
    .w-sim-extra-grid { grid-template-columns: 1fr; }
  }
  .w-sim-wash-card, .w-sim-pollen-card {
    border-radius: 12px;
    padding: 14px 16px;
    border: 1px solid;
  }
  .w-sim-wash-card { background: #f0fdf4; border-color: #bbf7d0; }
  .w-sim-pollen-card { background: #fefce8; border-color: #fde68a; }
  .w-sim-wash-card .label { color: #166534; }
  .w-sim-pollen-card .label { color: #92400e; }
  .w-sim-wash-card .label, .w-sim-pollen-card .label {
    font-size: 12px; font-weight: 700; margin-bottom: 4px;
  }
  .w-sim-wash-card .value { color: #14532d; font-size: 18px; font-weight: 800; }
  .w-sim-pollen-card .value { color: #78350f; font-size: 18px; font-weight: 800; }
  .w-sim-wash-card .subtext, .w-sim-pollen-card .subtext {
    font-size: 12px; color: #475569; margin-top: 6px; line-height: 1.6;
  }
  