/* ==================================================
   VVM / Volume Visual Meter（おとみえ）
   File: style.css
   Role: ブランド表示・測定画面・操作ボタン・Tipsのデザイン
   ================================================== */

* { box-sizing: border-box; }
  body {
    margin: 0; padding: 20px;
    background: #0b0e14; color: #e8eaf2;
    font-family: system-ui, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  }
  .wrap {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    align-items: start;
    gap: 28px;
    max-width: 748px;
    margin: 12px auto 0;
  }
  .main {
    min-width: 0;
  }
  /* ロゴと名称をまとめたブランドカード */
  .brand {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 160px;
    max-width: 100%;
    margin: 0;
    padding: 22px 12px 14px;
    background: #12161f;
    border: 1px solid #262c3d;
    border-radius: 14px;
    text-align: center;
  }
  .logo {
    display: block;
    width: 110px;
    height: 110px;
    border-radius: 22px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.3);
  }
  .brand-name {
    display: inline-block;
    margin-top: 10px;
    font-size: 31px;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.08;
    text-align: left;
  }

  .brand-nickname {
    position: absolute;
    top: 0;
    left: 12px;
    transform: translateY(-50%);
    padding: 0 6px;
    background: #12161f;
    color: #e8eaf2;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.2;
    white-space: nowrap;
  }
  .c-y { color: #f5e926; } .c-c { color: #2fd4f7; } .c-p { color: #b45cf0; } .c-m { color: #f047a8; }
  .brand-sub { color: #9aa3b5; letter-spacing: 7px; font-size: 12px; margin-top: 6px; }
  .brand-english {
    color: #9aa3b5;
    font-size: 13px;
    letter-spacing: 1px;
    margin-top: 8px;
  }
  .sub { color: #9aa3b5; font-size: 12.5px; margin-bottom: 16px; line-height: 1.6; }
  .row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
  button {
    padding: 9px 14px; border-radius: 10px; cursor: pointer; font-size: 14px;
    border: 1px solid #2a3042; background: #12161f; color: #e8eaf2;
  }
  button.primary { background: #e8e33d; border-color: #e8e33d; color: #141414; font-weight: 700; }
  button:disabled { opacity: 0.45; cursor: default; }
  .seg button.on {
    border-color: #f5e926; color: #f5e926; background: rgba(245,233,38,0.07);
    box-shadow: 0 0 10px rgba(245,233,38,0.35), inset 0 0 6px rgba(245,233,38,0.12);
    font-weight: 700;
  }
  .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .card {
    background: #12161f; border: 1px solid #262c3d;
    border-radius: 16px; padding: 14px;
  }
  .card .label { font-size: 12px; color: #9aa3b5; }
  .card .value { font-size: 34px; font-weight: 800; margin-top: 2px; }
  .card .unit { font-size: 13px; color: #9aa3b5; font-weight: 400; }
  .card.small .value { font-size: 24px; }
  #v-int { color: #2fd4f7; }
  #v-tp { color: #f047a8; }
  #v-st { color: #f5e926; }
  .judge {
    margin-top: 10px; background: rgba(245,233,38,0.05);
    border: 1px solid rgba(245,233,38,0.45); border-radius: 14px; padding: 14px;
    font-size: 14px; line-height: 1.7; min-height: 84px;
  }
  .ok { color: #3ddc84; font-weight: 700; }
  .warn { color: #ff5d7a; font-weight: 700; }
  .gain { font-size: 19px; font-weight: 800; }
  .status { color: #c9cede; font-size: 13px; margin-bottom: 10px; min-height: 20px; }
  .note { color: #9aa3b5; font-size: 12.5px; line-height: 1.8; margin-top: 14px; }
  .note b { color: #f5e926; }
  input[type="file"] { color: #c9cede; font-size: 13px; }

  /* paw tips */
  .paw-btn {
    position: fixed; right: 12px; top: 50%; transform: translateY(-50%);
    width: 58px; height: 58px; padding: 6px; background: rgba(18,22,31,0.85);
    border: 1px solid #2a3042; border-radius: 50%; cursor: pointer; z-index: 60;
  }
  .paw-btn:active { transform: translateY(-50%) scale(0.92); }
  .paw-btn svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 0 5px rgba(240,71,168,0.45)); }
  .tips-bubble {
    position: fixed; right: 84px; top: 50%; transform: translateY(-50%);
    width: 264px; max-width: calc(100vw - 110px); z-index: 59;
    background: #171c2a; border: 1px solid rgba(245,233,38,0.5); border-radius: 14px;
    padding: 13px 15px; display: none; box-shadow: 0 8px 28px rgba(0,0,0,0.5);
  }
  .tips-bubble.open { display: block; }
  .tips-bubble::after {
    content: ""; position: absolute; right: -8px; top: 50%; width: 14px; height: 14px;
    background: #171c2a; border-top: 1px solid rgba(245,233,38,0.5); border-right: 1px solid rgba(245,233,38,0.5);
    transform: translateY(-50%) rotate(45deg);
  }
  .tips-title { font-size: 13px; font-weight: 800; color: #f5e926; margin-bottom: 5px; }
  .tips-body { font-size: 12.5px; line-height: 1.7; color: #e8eaf2; min-height: 108px; }
  .tips-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 9px; }
  .tips-nav button { padding: 5px 10px; font-size: 12px; border-radius: 8px; }
  .tips-count { font-size: 11.5px; color: #9aa3b5; }

  @media (max-width: 640px) {
    .wrap {
      grid-template-columns: minmax(0, 1fr);
      gap: 24px;
    }

    .brand {
      margin: 0 auto;
    }
  }

