    :root {
      /* ★木パターン透かし（差し替えはここだけ） */
      --tree-pattern-url: url('img/trees-pattern.svg');
      /* ★透かしの濃さ（0.03〜0.10くらいで調整） */
      --tree-pattern-opacity: 0.3;
    }

    body {
      font-family: Arial, sans-serif;
      margin: 0;
      padding: 0 16px;
    }

    .wrap {
      max-width: 720px;
      margin: 0 auto;
    }

    h1 {
      font-size: 20px;
      margin: 8px 0 16px;
    }

    .card {
      border: 1px solid #ddd;
      border-radius: 12px;
      padding: 14px;
      margin: 12px 0;
    }

    label {
      display: block;
      font-weight: bold;
      margin: 10px 0 6px;
    }

    select,
    input {
      width: 100%;
      box-sizing: border-box;
      border: 2px solid #333;
      border-radius: 10px;
      padding: 10px 12px;
      font-size: 16px;
      background: #fff;
    }

    .row {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
    }

    .row>div {
      flex: 1;
      min-width: 220px;
    }

    .btn {
      width: 100%;
      border: none;
      background: #0b0b0bbd;
      color: #fff;
      padding: 12px 14px;
      font-size: 16px;
      border-radius: 10px;
      cursor: pointer;
      margin-top: 25px;
      font-weight: bold;
    }

    .btn:disabled {
      opacity: 0.5;
      cursor: not-allowed;
    }

    .hint {
      font-size: 12px;
      color: #555;
      margin-top: 6px;
    }

    .error {
      color: #d00;
      font-size: 13px;
      margin-top: 8px;
      display: none;
    }

    .loading {
      font-size: 13px;
      margin-top: 10px;
      display: none;
    }

    .result h2 {
      font-size: 20px;
      margin: 0 0 10px;
    }

    .big {
      font-size: 28px;
      font-weight: bold;
      margin: 0 0 2px;
    }

    /* 年間予想排出量（「計算結果（簡易表示）」と同等くらいのサイズ） */
    .mid {
      font-size: 16px;
      font-weight: bold;
      margin: 6px 0 2px;
      color: #111;
    }

    .sub {
      font-size: 16px;
      color: #333;
      margin: 10px 0 20px;
    }

    .kv {
      border-top: 1px solid #eee;
      margin-top: 10px;
      padding-top: 10px;
    }

    .kv div {
      display: flex;
      justify-content: space-between;
      gap: 12px;
      padding: 4px 0;
    }

    .kv b {
      white-space: nowrap;
    }

    .small {
      font-size: 12px;
      color: #666;
      margin-top: 10px;
    }

    .small2 {
      font-size: 15px;
      margin-top: 10px;
    }

    .mono {
      font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
      font-size: 12px;
    }

    /* ====== コメント吹き出し（クリックで検索） ====== */
    .insight-list {
      margin-top: 14px;
      display: flex;
      flex-direction: column;
      gap: 12px;
    }

    .insight-wrap {
      display: flex;
      gap: 10px;
      align-items: flex-start;
      margin-top: 0;
    }

    .avatar {
      flex: 0 0 54px;
      width: 54px;
      height: 54px;
      border-radius: 50%;
      overflow: hidden;
      border: 2px solid #333;
      background: #fff;
    }

    .avatar svg {
      width: 54px;
      height: 54px;
      display: block;
    }

    /* クリックされる吹き出し本体 */
    .bubble-link {
      position: relative;
      display: block;
      width: 100%;
      border: 2px solid #333;

      border-radius: 14px;

      /* ★バッジを右下に置くので、下側を空ける */
      padding: 12px 12px 42px;

      background: #fff;
      color: #111;
      text-decoration: none;
      line-height: 1.55;
      word-break: break-word;
      cursor: pointer;
      user-select: text;
    }

    /* hoverでテキストだけ下線 */
    .bubble-link:hover .bubble-text {
      text-decoration: underline;
    }

    /* クリック中の軽い反応 */
    .bubble-link:active {
      transform: translateY(1px);
    }

    .bubble-link:before {
      content: '';
      position: absolute;
      left: -10px;
      top: 16px;
      width: 0;
      height: 0;
      border-style: solid;
      border-width: 10px 10px 10px 0;
      border-color: transparent #333 transparent transparent;
    }

    .bubble-link:after {
      content: '';
      position: absolute;
      left: -7px;
      top: 17px;
      width: 0;
      height: 0;
      border-style: solid;
      border-width: 9px 9px 9px 0;
      border-color: transparent #fff transparent transparent;
    }

    .bubble-text {
      display: block;
    }

    /* 吹き出し内：赤い「クリックしてAI検索する」バッジ（★右下） */
    .bubble-badge {
      position: absolute;
      right: 10px;
      bottom: 10px;
      top: auto;

      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-size: 11px;
      font-weight: bold;
      color: #d00000;
      background: #fff2f2;
      border: 1.5px solid #d00000;
      border-radius: 999px;
      padding: 4px 10px;
      line-height: 1;
      white-space: nowrap;
    }

    .bubble-badge svg {
      width: 14px;
      height: 14px;
      display: block;
    }

    .bubble-badge-label {
      display: inline-block;
    }

    /* ====== 削減/増加の差分バッジ ====== */
    .delta {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      margin-left: 10px;
      font-size: 12px;
      font-weight: bold;
      padding: 2px 8px;
      border-radius: 999px;
      border: 1px solid;
      line-height: 1.25;
      vertical-align: middle;
      white-space: nowrap;
    }

    .delta--down {
      color: #0b63c7;
      background: #eef6ff;
      border-color: #0b63c7;
    }

    .delta--up {
      color: #d00000;
      background: #fff2f2;
      border-color: #d00000;
    }

    .delta--flat {
      color: #444;
      background: #f3f3f3;
      border-color: #999;
    }

    .delta-icon {
      font-size: 13px;
      line-height: 1;
    }

    /* ====== 比較プラン一覧 ====== */
    .plan-compare-wrap {
      margin-top: 16px;
      border-top: 1px solid #eee;
      padding-top: 14px;
    }

    .plan-compare-title {
      font-size: 18px;
      font-weight: 900;
      margin: 0 0 10px;
    }

    /* ★ plan-item：透かし対応（trees-pattern.svg） */
    .plan-item {
      border: 2px solid #111;
      border-radius: 14px;
      padding: 12px 12px 14px;
      background: linear-gradient(180deg, #ffffff 0%, #fbfbff 100%);
      margin: 12px 0;

      position: relative;
      overflow: hidden;
    }

    /* ★透かし（木パターン） */
    .plan-item::before {
      content: "";
      position: absolute;
      inset: 0;
      background-image: var(--tree-pattern-url);
      background-repeat: repeat;
      background-size: 240px auto;
      background-position: center bottom;
      opacity: var(--tree-pattern-opacity);
      pointer-events: none;
      z-index: 0;
    }

    /* ★カード中身は透かしより上へ */
    .plan-item>* {
      position: relative;
      z-index: 1;
    }

    .plan-item.best {
      outline: 3px solid rgba(11, 99, 199, 0.18);
    }

    .plan-name {
      font-size: 18px;
      font-weight: 900;
      margin: 2px 0 8px;
      line-height: 1.35;
    }

    .plan-row {
      margin: 6px 0;
    }

    .plan-site-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      border: 2px solid #111;
      border-radius: 12px;
      padding: 10px 12px;
      background: #fff;
      color: #111;
      font-weight: 900;
      text-decoration: none;
      margin-top: 10px;
      width: 100%;
      box-sizing: border-box;
    }

    .plan-site-btn:hover {
      background: #f7f7f7;
    }

    .plan-anchor-hint {
      font-size: 12px;
      color: #555;
      margin-top: 6px;
    }

    .flash-target {
      animation: flashBg 1.2s ease;
    }

    @keyframes flashBg {
      0% {
        background: rgba(11, 99, 199, 0.10);
      }

      100% {
        background: transparent;
      }
    }

    /* ====== ★木々の画像：各plan-itemの直下に表示する（＝毎回出す） ====== */
    .plan-illustration {
      margin: 10px 0 14px;
    }

    .plan-illustration img {
      width: 100%;
      height: auto;
      display: block;
      border-radius: 16px;
      border: 1px solid rgba(0, 0, 0, 0.08);
      background: #fff;
      box-shadow: 0 10px 26px rgba(0, 0, 0, 0.06);
    }

    /* ====== モーダル ====== */
    .modal-overlay {
      position: fixed;

      /* iOS12対策：insetの代わりに四辺指定を入れる */
      top: 0;
      right: 0;
      bottom: 0;
      left: 0;

      inset: 0;
      background: rgba(0, 0, 0, 0.55);
      display: none;
      align-items: center;
      justify-content: center;
      z-index: 9999;
      padding: 18px;
      overscroll-behavior: contain;
    }

    .modal-card {
      width: 100%;
      max-width: 560px;
      background: #fff;
      border-radius: 14px;
      border: 2px solid #111;
      box-sizing: border-box;
      padding: 18px;
      position: relative;
      transform: translateY(8px);
      opacity: 0;
      transition: opacity 160ms ease, transform 160ms ease;

      max-height: calc(100vh - 36px);
      max-height: calc(100dvh - 36px);
      overflow-y: auto;
      -webkit-overflow-scrolling: touch;
      overscroll-behavior: contain;
    }

    .modal-overlay.show .modal-card {
      opacity: 1;
      transform: translateY(0px);
    }

    .modal-close {
      position: absolute;
      top: 10px;
      right: 10px;
      width: 34px;
      height: 34px;
      border-radius: 10px;
      border: 2px solid #111;
      background: #fff;
      cursor: pointer;
      font-size: 18px;
      line-height: 30px;
      text-align: center;
      font-weight: bold;
      z-index: 2;
    }

    body.modal-open {
      overflow: hidden;
    }

    .fade-in {
      opacity: 0;
      transform: translateY(6px);
      transition: opacity 220ms ease, transform 220ms ease;
    }

    .fade-in.show {
      opacity: 1;
      transform: translateY(0px);
    }




    /* ====== 入力モード（ラジオ）小さめ ====== */
    .input-mode {
      margin-top: 10px;
    }

    .input-mode .mode-row {
      display: flex;
      gap: 14px;
      flex-wrap: wrap;
      align-items: center;
      margin-top: 6px;
    }

    .input-mode .mode-item {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      font-weight: 700;
      font-size: 14px;
      line-height: 1.2;
      cursor: pointer;
      user-select: none;
      padding: 0;
      /* ←ボタン化しない */
      border: none;
      background: transparent;
    }

    .input-mode .mode-item input[type="radio"] {
      width: 16px;
      height: 16px;
      margin: 0;
      transform: scale(0.85);
      transform-origin: left center;
    }

    .input-mode .mode-note {
      font-size: 12px;
      color: #666;
      margin-top: 8px;
      line-height: 1.6;
    }

    /* ====== 入力モード（ラジオ）を小さめ＆整える ====== */
    .input-mode {
      margin-top: 10px;
    }

    .input-mode .mode-title {
      display: block;
      font-weight: 900;
      margin: 10px 0 8px;
    }

    .input-mode .mode-row {
      display: flex;
      flex-wrap: wrap;
      gap: 14px;
      align-items: center;
    }

    .input-mode .mode-item {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      font-weight: 700;
      font-size: 14px;
      /* ←小さめ */
      line-height: 1.2;
      cursor: pointer;
      user-select: none;
    }

    /* ★ラジオ自体を小さく（ブラウザ標準のまま縮小） */
    .input-mode .mode-item input[type="radio"] {
      width: 16px;
      height: 16px;
      margin: 0;
      transform: scale(0.85);
      /* ←小さくする本体 */
      transform-origin: left center;
    }

    .input-mode .mode-note {
      font-size: 12px;
      color: #666;
      margin-top: 8px;
      line-height: 1.6;
    }


    /* ====== ★参考：推定kWh表示（薄いグレー / readonly） ====== */
    .kwh-hint input[readonly] {
      background: #f3f4f6;
      border-color: #c9cdd3;
      color: #555;
    }

    .kwh-hint label {
      color: #444;
    }

    /* ====== ★推定kWh：計算中... をハイペース点滅 ====== */
    .kwh-hint.is-calculating input[readonly] {
      /* 読み取り専用の薄グレーを維持しつつ、点滅がわかるように */
      background: #f3f4f6;
      border-color: #c9cdd3;
      color: #111;
    }

    .kwh-hint.is-calculating input[readonly] {
      animation: kwhBlink 0.55s steps(2, end) infinite;
    }

    /* 「見えたり見えなかったり」をハッキリさせる */
    @keyframes kwhBlink {
      0% {
        opacity: 1;
      }

      50% {
        opacity: 0.15;
      }

      100% {
        opacity: 1;
      }
    }

    /* ====== ★新しいモーダル文言（要件に合わせた表示） ====== */
    .modal-hero {
      font-size: 20px;
      font-weight: 900;
      line-height: 1.42;
      margin: 10px 44px 10px 0;
      letter-spacing: 0.1px;
    }

    .modal-hero2 {
      font-size: 18px;
      font-weight: 900;
      line-height: 1.42;
      margin: 14px 0 10px;
      letter-spacing: 0.1px;
    }

    /* ====== “燃料換算”アニメ表示エリア ====== */
    .fuel-area {
      margin-top: 10px;
      padding: 14px;
      border: 1px solid #eee;
      border-radius: 16px;
      background: linear-gradient(180deg, #fbfbfc 0%, #f5f7fb 100%);
    }

    .fuel-stack {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      align-items: flex-end;
      justify-content: center;
      min-height: 86px;
      padding: 6px 2px;
    }

    /* ====== ★CO2=0kg 専用：称賛GIFエリア ====== */
    .zero-area {
      margin-top: 12px;
      padding: 14px;
      border: 1px solid #eee;
      border-radius: 16px;
      background: linear-gradient(180deg, #ffffff 0%, #f7fff6 100%);
      text-align: center;
    }

    .zero-title {
      font-size: 18px;
      font-weight: 900;
      margin: 2px 0 10px;
    }

    .zero-area img {
      width: 100%;
      max-width: 360px;
      height: auto;
      border-radius: 14px;
      border: 1px solid rgba(0, 0, 0, 0.08);
      box-shadow: 0 10px 26px rgba(0, 0, 0, 0.06);
      background: #fff;
      display: block;
      margin: 0 auto;
    }

    .zero-note {
      font-size: 12px;
      color: #333;
      margin-top: 10px;
      line-height: 1.6;
      font-weight: 700;
    }

    .unit {
      position: relative;
      display: inline-flex;
      align-items: flex-end;
      justify-content: center;
      opacity: 0;
      transform: translateY(10px) scale(0.96);
      animation: popIn 220ms ease forwards;
      filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.08));
    }

    @keyframes popIn {
      0% {
        opacity: 0;
        transform: translateY(12px) scale(0.94);
      }

      100% {
        opacity: 1;
        transform: translateY(0px) scale(1);
      }
    }

    .unit--bottle {
      width: 30px;
      height: 74px;
    }

    .unit--can {
      width: 44px;
      height: 64px;
    }

    .unit--drum {
      width: 40px;
      height: 76px;
    }

    .unit svg {
      display: block;
      width: 100%;
      height: 100%;
    }

    .unit-badge {
      position: absolute;
      right: -8px;
      top: -8px;
      font-size: 11px;
      font-weight: bold;
      color: #111;
      background: rgba(255, 255, 255, 0.92);
      border: 1.5px solid #111;
      border-radius: 999px;
      padding: 2px 6px;
      line-height: 1.2;
      backdrop-filter: blur(2px);
    }

    /* ★ローディング表示（1.5秒待機中） */
    .fuel-loading {
      display: none;
      align-items: center;
      justify-content: center;
      gap: 10px;
      padding: 12px 0 14px;
      user-select: none;
    }

    .spinner {
      width: 22px;
      height: 22px;
      border-radius: 999px;
      border: 3px solid #ddd;
      border-top-color: #111;
      animation: spin 0.9s linear infinite;
      flex: 0 0 auto;
    }

    @keyframes spin {
      to {
        transform: rotate(360deg);
      }
    }

    .fuel-loading-text {
      font-size: 13px;
      color: #111;
      font-weight: bold;
    }

    /* ====== ★内側の“別モーダル”2つ（要件④⑤） ====== */
    .inner-overlay {
      position: fixed;

      /* iOS12対策：insetの代わりに四辺指定を入れる */
      top: 0;
      right: 0;
      bottom: 0;
      left: 0;

      /* inset: 0; は残してもOK（対応ブラウザ向け） */
      inset: 0;

      display: none;
      align-items: center;
      justify-content: center;
      padding: 18px;
      background: rgba(0, 0, 0, 0.55);
      z-index: 10010;
      overscroll-behavior: contain;
    }

    .inner-modal {
      width: 100%;
      max-width: 520px;
      background: #fff;
      border-radius: 14px;
      border: 2px solid #111;
      box-sizing: border-box;
      padding: 16px;
      position: relative;
      box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22);
      transform: translateY(6px);
      opacity: 0;
      transition: opacity 180ms ease, transform 180ms ease;
      max-height: calc(100vh - 36px);
      max-height: calc(100dvh - 36px);
      overflow-y: auto;
      -webkit-overflow-scrolling: touch;
    }

    .inner-overlay.show .inner-modal {
      opacity: 1;
      transform: translateY(0px);
    }

    .inner-close {
      position: absolute;
      top: 10px;
      right: 10px;
      width: 34px;
      height: 34px;
      border-radius: 10px;
      border: 2px solid #111;
      background: #fff;
      cursor: pointer;
      font-size: 18px;
      line-height: 30px;
      text-align: center;
      font-weight: bold;
    }

    .inner-big {
      font-size: 20px;
      font-weight: 900;
      line-height: 1.35;
      margin: 2px 44px 10px 0;
    }

    .inner-sub {
      font-size: 12px;
      color: #333;
      line-height: 1.55;
      margin-top: 8px;
      white-space: pre-wrap;
      word-break: break-word;
    }

    .inner-plan-text {
      font-size: 18px;
      line-height: 1.45;
      font-weight: 400;
      letter-spacing: 0.1px;
      margin: 6px 44px 12px 0;
      white-space: pre-wrap;
    }

    .plan-btn {
      margin-top: 12px;
    }

    /* ====== ★要望：ガソリン換算まとめモーダルをエレガントに（余白増） ====== */
    .inner-modal--summary {
      padding: 24px 22px 20px;
      border-radius: 18px;
      background: linear-gradient(180deg, #ffffff 0%, #fafbff 100%);
    }

    .inner-modal--summary .inner-big {
      font-size: 22px;
      line-height: 1.45;
      margin: 6px 44px 14px 0;
      letter-spacing: 0.1px;
    }

    .inner-modal--summary .inner-sub {
      font-size: 13px;
      line-height: 1.75;
      color: #222;
      margin-top: 14px;
      padding-top: 14px;
      border-top: 1px solid #eee;
    }

    /* ====== タイトル末尾に炎（3つ）メラメラ ====== */
    .summary-flames {
      display: inline-flex;
      align-items: flex-end;
      gap: 6px;
      margin-left: 4px;
      position: relative;
      top: 4px;
      vertical-align: middle;
    }

    .flame {
      position: relative;
      width: 20px;
      height: 32px;
      border-radius: 50% 50% 50% 50%;
      transform-origin: 50% 100%;
      /* 炎っぽいグラデ */
      background: radial-gradient(circle at 50% 65%,
          rgba(255, 255, 255, 0.95) 0%,
          rgba(255, 220, 120, 0.95) 25%,
          rgba(255, 140, 40, 0.95) 55%,
          rgba(220, 40, 20, 0.92) 100%);
      /* 形を炎っぽく（上を尖らせる） */
      clip-path: polygon(50% 0%, 62% 10%, 76% 28%, 86% 52%, 82% 78%, 67% 92%, 50% 100%, 33% 92%, 18% 78%, 14% 52%, 24% 28%, 38% 10%);
      /* ★光を強める */
      filter: drop-shadow(0 4px 12px rgba(255, 120, 0, 0.55));
      /* ★速く・荒く */
      animation: flameFlicker 0.62s ease-in-out infinite;
    }

    /* それぞれ微妙に位相をずらす */
    .flame:nth-child(2) {
      animation-delay: -0.12s;
      transform: scale(0.92);
    }

    .flame:nth-child(3) {
      animation-delay: -0.24s;
      transform: scale(0.84);
    }

    @keyframes flameFlicker {
      0% {
        /* ★振れ幅アップ */
        transform: translateY(0px) rotate(-6deg) scale(1);
        filter: drop-shadow(0 4px 12px rgba(255, 120, 0, 0.55));
        opacity: 0.9;
      }

      35% {
        transform: translateY(-3px) rotate(7deg) scale(1.22);
        filter: drop-shadow(0 6px 18px rgba(255, 160, 0, 0.72));
        opacity: 1;
      }

      70% {
        transform: translateY(-1px) rotate(-5deg) scale(0.95);
        filter: drop-shadow(0 5px 14px rgba(255, 110, 0, 0.62));
        opacity: 0.88;
      }

      100% {
        transform: translateY(0px) rotate(-6deg) scale(1);
        filter: drop-shadow(0 4px 12px rgba(255, 120, 0, 0.55));
        opacity: 0.9;
      }
    }

    /* さらに「暴れ」を足す（上下＆左右に細かく揺らす） */
    .flame::after {
      content: '';
      position: absolute;
      left: 50%;
      top: 10%;
      width: 60%;
      height: 65%;
      transform: translateX(-50%);
      border-radius: 50%;
      background: radial-gradient(circle at 50% 60%,
          rgba(255, 255, 255, 0.55) 0%,
          rgba(255, 220, 140, 0.35) 35%,
          rgba(255, 140, 40, 0.12) 70%,
          rgba(255, 80, 0, 0) 100%);
      mix-blend-mode: screen;
      animation: flameJitter 0.22s linear infinite;
      pointer-events: none;
    }

    @keyframes flameJitter {
      0% {
        transform: translateX(-50%) translateY(0px) scale(1);
      }

      25% {
        transform: translateX(-52%) translateY(-1px) scale(1.06);
      }

      50% {
        transform: translateX(-48%) translateY(0px) scale(0.98);
      }

      75% {
        transform: translateX(-51%) translateY(-2px) scale(1.08);
      }

      100% {
        transform: translateX(-50%) translateY(0px) scale(1);
      }
    }

    /* ★「温室効果ガス削減プランを見る」専用：可愛いオレンジ×イエローのグラデ */
    .btn.plan-btn {
      background: linear-gradient(135deg, #ffd36b6a 0%, #ffb36b9b 45%, #ffa45eb7 100%);
      color: #7a4d04;
      border: 2px solid rgba(34, 17, 0, 0.18);
      box-shadow:
        0 10px 22px rgba(255, 170, 80, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.85);
      letter-spacing: 0.2px;
      transition: transform 120ms ease, filter 160ms ease, box-shadow 160ms ease;
    }

    .btn.plan-btn:hover {
      filter: brightness(1.03) saturate(1.05);
      box-shadow:
        0 12px 26px rgba(255, 170, 80, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    }

    .btn.plan-btn:active {
      transform: translateY(1px) scale(0.99);
    }

    .btn.plan-btn:focus {
      outline: none;
    }

    .btn.plan-btn:focus-visible {
      box-shadow:
        0 0 0 4px rgba(255, 196, 86, 0.35),
        0 12px 26px rgba(255, 170, 80, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    }

    .sr-only {
      position: absolute !important;
      width: 1px !important;
      height: 1px !important;
      padding: 0 !important;
      margin: -1px !important;
      overflow: hidden !important;
      clip: rect(0, 0, 0, 0) !important;
      white-space: nowrap !important;
      border: 0 !important;
    }

    /* ====== PCでも「計算結果」を入力フォーム(.wrap)と同じ幅に揃える ====== */
    #result {
      max-width: 720px;
      /* .wrap と同じ */
      margin: 12px auto;
      /* 中央寄せ */
      box-sizing: border-box;
    }

    /* 下の API 表示も揃えたい場合（任意） */
    .small {
      max-width: 720px;
      /* .wrap と同じ */
      margin: 0 auto;
      box-sizing: border-box;
    }

    /* ====== PC/タブレット時だけ trees-row.png（.plan-illustration内画像）を横幅500pxに制限 ====== */
    @media (min-width: 768px) {
      .plan-illustration img {
        width: 100%;
        /* 親が狭い場合は縮む */
        max-width: 500px;
        /* ただし最大500px */
        margin: 0 auto;
        /* 中央寄せ */
        display: block;
      }
    }

    /* ====== フッター：紹介（シェア） ====== */
    .share-footer {
      max-width: 720px;
      /* .wrap と同じ */
      margin: 5px auto 10px;
      padding: 16px 12px;
      box-sizing: border-box;
      border-top: 1px solid #eee;
    }

    .share-title {
      font-size: 15px;
      font-weight: 900;
      margin: 0 0 10px;
      color: #111;
    }

    .share-row {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      align-items: center;
    }

    .share-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 10px 12px;
      border-radius: 10px;
      border: 2px solid #111;
      background: #fff;
      color: #111;
      font-weight: 900;
      text-decoration: none;
      cursor: pointer;
      user-select: none;
      line-height: 1;
    }

    .share-btn:hover {
      background: #f7f7f7;
    }

    .share-btn:active {
      transform: translateY(1px);
    }

    .share-note {
      font-size: 12px;
      color: #666;
      margin-top: 10px;
      line-height: 1.6;
    }

    /* ====== トースト（コピーしました等） ====== */
    .toast {
      position: fixed;
      left: 50%;
      bottom: 18px;
      transform: translateX(-50%) translateY(10px);
      background: rgba(17, 17, 17, 0.92);
      color: #fff;
      border: 1px solid rgba(255, 255, 255, 0.15);
      border-radius: 999px;
      padding: 10px 14px;
      font-size: 13px;
      font-weight: 900;
      letter-spacing: 0.2px;
      opacity: 0;
      pointer-events: none;
      transition: opacity 180ms ease, transform 180ms ease;
      z-index: 20000;
      box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
      max-width: calc(100vw - 30px);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .toast.show {
      opacity: 1;
      transform: translateX(-50%) translateY(0px);
    }

    /* ====== ★環境にやさしい度（SVG星：環境依存を減らして安定表示） ====== */
    .eco-rate {
      margin-top: 10px;
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 8px;
    }

    /* 左のラベル（ピル） */
    .eco-pill {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 6px 10px;
      border-radius: 999px;
      border: 1px solid rgba(17, 17, 17, 0.22);
      background: linear-gradient(180deg, #ffffff 0%, #fafbff 100%);
      box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
    }

    .eco-pill b {
      font-size: 12px;
      font-weight: 900;
      color: #111;
      letter-spacing: 0.1px;
      white-space: nowrap;
    }

    /* 星の並び（SVG） */
    .eco-stars {
      display: inline-flex;
      align-items: center;
      gap: 3px;
      line-height: 1;
    }

    .eco-star {
      width: 18px;
      height: 18px;
      display: inline-block;
      vertical-align: middle;
    }

    .eco-star svg {
      width: 100%;
      height: 100%;
      display: block;
    }

    .eco-star .star-shape {
      stroke: rgba(92, 58, 10, 0.85);
      stroke-width: 1.35;
    }

    .eco-star--on .star-shape {
      fill: #f2c94c;
      /* 明るいゴールド */
    }

    .eco-star--off .star-shape {
      fill: rgba(0, 0, 0, 0.08);
    }

    /* 右側の補足（削減率） */
    .eco-note {
      font-size: 11px;
      font-weight: 800;
      color: #666;
      padding: 3px 8px;
      border-radius: 999px;
      border: 1px solid rgba(0, 0, 0, 0.12);
      background: rgba(255, 255, 255, 0.9);
      white-space: nowrap;
    }

    /* ====== ★全画面ローディング（お洒落・中央表示） ====== */
    .global-loading {
      position: fixed;

      /* iOS12対策：insetの代わりに四辺指定を入れる */
      top: 0;
      right: 0;
      bottom: 0;
      left: 0;

      /* inset: 0; は残してもOK（対応ブラウザ向け） */
      inset: 0;

      display: none;
      /* ← show時にflex */
      align-items: center;
      justify-content: center;
      padding: 18px;
      background: rgba(17, 17, 17, 0.55);
      backdrop-filter: blur(3px);
      -webkit-backdrop-filter: blur(3px);
      z-index: 30000;
      /* モーダル/トーストより上 */
    }

    .global-loading.show {
      display: flex;
    }

    .global-loading-card {
      width: 100%;
      max-width: 360px;
      background: linear-gradient(180deg, #ffffff 0%, #fafbff 100%);
      border: 2px solid #111;
      border-radius: 18px;
      padding: 18px 16px 16px;
      box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
      text-align: center;
      transform: translateY(8px);
      opacity: 0;
      transition: opacity 160ms ease, transform 160ms ease;
    }

    .global-loading.show .global-loading-card {
      transform: translateY(0px);
      opacity: 1;
    }

    /* 二重リング + ほのかに光る、上品スピナー */
    .gl-ring {
      width: 54px;
      height: 54px;
      margin: 0 auto 10px;
      border-radius: 999px;
      border: 3px solid rgba(0, 0, 0, 0.12);
      border-top-color: rgba(0, 0, 0, 0.92);
      animation: glSpin 0.9s linear infinite;
      position: relative;
    }

    .gl-ring::after {
      content: "";
      position: absolute;
      inset: 7px;
      border-radius: 999px;
      border: 3px solid rgba(0, 0, 0, 0.08);
      border-bottom-color: rgba(11, 99, 199, 0.75);
      animation: glSpin 1.25s linear reverse infinite;
      filter: drop-shadow(0 6px 18px rgba(11, 99, 199, 0.20));
    }

    @keyframes glSpin {
      to {
        transform: rotate(360deg);
      }
    }

    .gl-title {
      font-size: 16px;
      font-weight: 900;
      color: #111;
      letter-spacing: 0.2px;
      margin: 2px 0 6px;
    }

    .gl-sub {
      font-size: 12px;
      color: #444;
      line-height: 1.6;
      margin: 0;
    }

    /* --- SEO/AI 情報アコーディオン --- */
    #seoInfo {
      margin-bottom: 55px;
      max-width: 720px;
      margin-left: auto;
      margin-right: auto;
      box-sizing: border-box;
      width: 100%;
    }

    #seoInfo details {
      border-radius: 13px;
    }

    #seoInfo .seo-summary {
      cursor: pointer;
      font-weight: 700;
      padding: 2px 10px;
      list-style: none;
    }

    #seoInfo details>summary::-webkit-details-marker {
      display: none;
    }

    #seoInfo .info-block {
      margin-top: 10px;
    }

    #seoInfo .info-block h2 {
      font-size: 15px;
      margin: 12px 0 8px;
    }

    #seoInfo .info-block p,
    #seoInfo .info-block li {
      line-height: 1.7;
      font-size: 13px;
    }

    #seoInfo .faq-item {
      margin: 18px 0;
    }

    #seoInfo .faq-item summary {
      cursor: pointer;
      font-weight: 600;
      font-size: 13px;
    }

    #seoInfo .faq-item p {
      margin: 6px 0 0;
    }

    .kwh-hint-msg {
      margin-top: 6px;
      font-size: 12px;
      line-height: 1.4;
      color: #b00020;
    }

    /* ★全画面ローディング中だけのクラス（modal-openとは別） */
    body.loading-open {
      overflow: hidden;
    }

    /* overlayを show で表示する（←これが無いと永遠に出ない） */
    .modal-overlay.show {
      display: flex;
      overflow-y: auto;
      /* ★ */
      -webkit-overflow-scrolling: touch;
      /* ★ */
    }

    .inner-overlay.show {
      display: flex;
    }