/* 洗濯機のまじん 口コミ下書きページの見た目（元：mockups/index.html の確定版）
   読み込む部品は自分のサイトだけ（外部のフォント・画像・スクリプトは使わない） */
  :root{
    --blue:#0084D9;      /* まじんブルー（公式サイトの色）：飾り・目印 */
    --blue-deep:#0070BA; /* ボタン・お客様の吹き出し（白文字が読める濃さ） */
    --navy:#0B3B66;      /* 見出し */
    --ink:#22313F;       /* 本文 */
    --muted:#5B6B7A;     /* 補足 */
    --water:#E8F4FC;     /* 背景の水色 */
    --foam:#FFFFFF;
    --cream:#FFF3B8;     /* 公式サイトの下線の色 */
    --line:#C9DCEB;
    --warn-bg:#FFF8E1;
    --warn-ink:#6B5200;
    --radius-card:20px;
    --radius-btn:14px;
    --font-round:"Zen Maru Gothic","Hiragino Maru Gothic ProN","ヒラギノ丸ゴ ProN",sans-serif;
    --font-body:"Zen Maru Gothic","Hiragino Maru Gothic ProN","ヒラギノ丸ゴ ProN",sans-serif;
  }
  *{box-sizing:border-box}
  html,body{margin:0;height:100%}
  body{
    font-family:var(--font-body);font-size:17px;line-height:1.7;color:var(--ink);font-weight:500;font-feature-settings:"palt";letter-spacing:.02em;
    background:var(--water);
    -webkit-text-size-adjust:100%;
  }
  button{font:inherit;color:inherit}
  :focus-visible{outline:3px solid #F2B600;outline-offset:2px}
  .app{max-width:480px;margin:0 auto;min-height:100%;display:flex;flex-direction:column;background:var(--water);position:relative}

  /* 上の帯 */
  .top{position:sticky;top:0;z-index:10;background:var(--foam);box-shadow:0 1px 0 var(--line)}
  .brand{display:flex;align-items:center;justify-content:center;gap:10px;padding:10px 16px 4px}
  .logo{display:block;width:150px;height:34px;background:url(img/logo.png) center/193px auto no-repeat}
  .brand-sub{font-size:12px;font-weight:700;color:var(--blue-deep);border-left:1px solid var(--line);padding-left:10px;line-height:1.3}
  .steps{display:flex;align-items:center;justify-content:space-between;padding:6px 18px 12px;margin:0;list-style:none;gap:6px}
  .steps li{display:flex;align-items:center;gap:6px;font-size:13px;color:var(--muted);white-space:nowrap}
  .steps li .n{width:22px;height:22px;border-radius:50%;display:grid;place-items:center;font-size:12px;font-weight:700;border:2px solid var(--line);background:#fff;color:var(--muted)}
  .steps li.on{color:var(--navy);font-weight:700}
  .steps li.on .n{background:var(--blue-deep);border-color:var(--blue-deep);color:#fff}
  .steps li.done .n{background:var(--water);border-color:var(--blue);color:var(--blue)}
  .steps li.bar{flex:1;height:2px;background:var(--line);border-radius:2px;display:block}
  .steps li.bar.done{background:var(--blue)}

  main{flex:1;padding:18px 14px 140px}
  .screen{display:none}
  .screen.show{display:block}

  /* 泡のような吹き出し */
  .msg,.me,.card{scroll-margin-top:96px}
  .msg{display:flex;gap:8px;align-items:flex-end;margin:0 0 14px}
  .msg .face{flex:none;width:46px;height:46px;border-radius:50%;background:#fff;border:2px solid #fff;box-shadow:0 0 0 1px var(--line);object-fit:cover;padding:0}
  .bubble{background:var(--foam);border-radius:18px 18px 18px 6px;padding:12px 15px;max-width:86%;box-shadow:0 1px 0 var(--line)}
  .bubble p{margin:0}
  .bubble p+p{margin-top:8px}
  .bubble strong{font-family:var(--font-round);color:var(--navy);font-size:18px}
  .me{display:flex;justify-content:flex-end;margin:0 0 14px}
  .me .bubble{background:var(--blue-deep);color:#fff;border-radius:18px 18px 6px 18px;box-shadow:none;max-width:80%}
  .me .bubble small{display:block;opacity:.85;font-size:12px;line-height:1.4}

  /* 質問のカード */
  .card{background:var(--foam);border-radius:var(--radius-card);padding:18px 16px 16px;margin:0 0 14px;border:1px solid var(--line)}
  .card h2{font-family:var(--font-round);font-size:19px;line-height:1.5;color:var(--navy);margin:0 0 4px}
  .card .hint{font-size:13px;color:var(--muted);margin:0 0 12px}
  .card h3{font-size:14px;color:var(--muted);margin:14px 0 6px;font-weight:700}
  .card h3:first-of-type{margin-top:4px}
  .opts{display:grid;gap:8px}
  .opts.two{grid-template-columns:1fr 1fr}
  .opts.two .opt{font-size:16px;padding:8px 10px;gap:8px}
  .opt{display:flex;align-items:center;gap:10px;width:100%;min-height:52px;padding:10px 12px;text-align:left;background:#fff;border:2px solid var(--line);border-radius:var(--radius-btn);cursor:pointer;line-height:1.45}
  .opt .tick{flex:none;width:22px;height:22px;border-radius:6px;border:2px solid #9DB6C9;display:grid;place-items:center;background:#fff}
  .opt.single .tick{border-radius:50%}
  .opt[aria-pressed="true"]{border-color:var(--blue);background:#EEF8FF}
  .opt[aria-pressed="true"] .tick{background:var(--blue);border-color:var(--blue)}
  .opt[aria-pressed="true"] .tick::after{content:"";width:10px;height:6px;border:solid #fff;border-width:0 0 3px 3px;transform:translateY(-1px) rotate(-45deg)}
  .opt.single[aria-pressed="true"] .tick::after{width:8px;height:8px;border:0;border-radius:50%;background:#fff;transform:none}
  .opt .sub{display:block;font-size:12.5px;color:var(--muted)}
  .opt.none{border-style:dashed}

  .addnote{margin-top:12px}
  .addnote > button{background:none;border:0;color:var(--blue-deep);font-weight:700;padding:8px 0;min-height:44px;cursor:pointer;font-size:16px}
  .addnote .box{display:none;margin-top:4px}
  .addnote.open .box{display:block}
  .addnote .lead{font-size:14px;margin:0 0 4px}
  .addnote .warn{font-size:13px;background:var(--warn-bg);color:var(--warn-ink);border-radius:10px;padding:6px 10px;margin:0 0 6px}
  textarea{width:100%;font:inherit;font-size:16px;line-height:1.7;border:2px solid var(--line);border-radius:12px;padding:10px 12px;color:var(--ink);background:#fff;resize:vertical}
  textarea:focus{border-color:var(--blue);outline:none}
  .count{font-size:12px;color:var(--muted);text-align:right;margin-top:2px}

  .row{display:flex;gap:10px;margin-top:16px;align-items:center}
  .qcard{padding:0 0 16px;overflow:hidden}
  .qcard > :not(.qhead){margin-left:16px;margin-right:16px}
  .qhead{background:linear-gradient(180deg,#EAF5FD,#F6FBFF);border-bottom:1px solid var(--line);padding:14px 16px 14px;margin-bottom:14px}
  .qmeta{display:flex;align-items:center;justify-content:space-between;margin-bottom:6px}
  .qno{font-size:13px;font-weight:700;color:var(--blue-deep)}
  .dots{display:flex;gap:5px}
  .dots i{width:8px;height:8px;border-radius:50%;background:#C9DCEB;display:block}
  .dots i.d{background:var(--blue)}
  .dots i.c{background:var(--blue-deep);width:20px;border-radius:4px}
  .qtopic{font-family:var(--font-round);font-size:23px;line-height:1.35;color:var(--navy);margin:0;letter-spacing:-.01em}
  .qtext{margin:4px 0 8px;font-size:15.5px;line-height:1.55;color:var(--ink)}
  .chip{display:inline-block;font-size:13px;font-weight:700;color:var(--blue-deep);background:#fff;border:1px solid #BFDDF3;border-radius:999px;padding:2px 10px}
  .actionbar{position:fixed;left:0;right:0;bottom:0;z-index:20;display:none;gap:10px;align-items:center;padding:10px 14px calc(10px + env(safe-area-inset-bottom));max-width:480px;margin:0 auto;background:rgba(232,244,252,.82);-webkit-backdrop-filter:blur(16px) saturate(160%);backdrop-filter:blur(16px) saturate(160%);border-top:1px solid rgba(255,255,255,.7);box-shadow:0 -4px 16px rgba(11,59,102,.08)}
  .actionbar.show{display:flex}
  .actionbar .btn{flex:1}
  .btn.quiet.anon{display:block;width:auto;margin:22px auto 0;font-size:13px;min-height:40px;padding:6px 12px}
  .btn.main.skip{background:#fff;color:var(--blue-deep);border:2px solid var(--blue-deep);box-shadow:none}
  .barhint{flex:1;text-align:center;font-size:14px;color:var(--muted)}
  .opt:active,.btn:active,.tab:active,.redo:active{transform:scale(.98)}
  .opt{transition:transform 90ms ease-out,background-color 120ms,border-color 120ms}
  @media (prefers-reduced-transparency: reduce){ .actionbar{background:#E8F4FC;backdrop-filter:none;-webkit-backdrop-filter:none} }
  .back{flex:none;background:none;border:0;color:var(--muted);font-size:15px;padding:10px 6px;min-height:48px;cursor:pointer;text-decoration:underline}

  /* ボタン */
  .btn{display:flex;align-items:center;justify-content:center;width:100%;min-height:56px;border-radius:var(--radius-btn);border:0;font-family:var(--font-round);font-weight:700;font-size:18px;cursor:pointer;padding:10px 16px;text-align:center;line-height:1.4}
  .btn.main{background:var(--blue-deep);color:#fff;box-shadow:0 3px 0 #004F85}
  .btn.main:active{transform:translateY(2px);box-shadow:0 1px 0 #004F85}
  .btn.main:disabled{background:#B8CBDA;box-shadow:none;cursor:default}
  .btn.sub{background:#fff;color:var(--navy);border:2px solid var(--line);font-size:16px;min-height:52px}
  .btn.quiet{background:none;color:var(--muted);font-family:var(--font-body);font-weight:400;font-size:14px;min-height:44px;text-decoration:underline}
  .stack{display:grid;gap:10px;margin-top:14px}
  .note{font-size:13px;color:var(--muted);margin:10px 0 0}
  .note a{color:var(--blue-deep)}

  /* E案：大きな2つのボタン */
  .e-head{display:flex;flex-direction:column;align-items:center;gap:10px;padding-top:22px;text-align:center}
  .e-title{margin:0;font-family:var(--font-round);font-weight:700;font-size:min(22px,5.6vw);line-height:1.4;color:var(--navy);white-space:nowrap;letter-spacing:-.01em}
  .e-face{width:104px;height:auto;flex:none}
  .e-sub{text-align:center;margin:8px 0 22px;font-size:15px;color:var(--muted)}
  .e-tiles{display:grid;grid-template-columns:1fr 1fr;gap:12px}
  .e-tile{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;min-height:178px;border-radius:24px;border:2px solid var(--line);background:#fff;font-family:var(--font-round);font-weight:700;font-size:19px;line-height:1.4;color:var(--navy);cursor:pointer;box-shadow:0 6px 16px rgba(11,59,102,.06)}
  .e-tile svg{width:56px;height:56px}
  .e-tile.yes{background:var(--blue-deep);border-color:var(--blue-deep);color:#fff;box-shadow:0 4px 0 #004F85}
  .e-tile.yes svg circle{fill:#fff}
  .e-tile.yes svg path{stroke:var(--blue-deep)}
  .e-tile.no svg rect:first-child{fill:var(--blue)}
  .e-tile.no svg circle{fill:#fff}
  .line-btn{display:flex;align-items:center;justify-content:center;gap:12px;width:100%;min-height:72px;border:0;border-radius:22px;background:#008A3E;color:#fff;font-family:var(--font-round);font-weight:700;font-size:19px;cursor:pointer;box-shadow:0 4px 0 #005F2A}
  .line-btn svg{width:34px;height:34px;flex:none}
  .e-tile:active,.line-btn:active{transform:scale(.98)}
  /* 文章づくり中：洗濯機の窓 */
  .wash{text-align:center;padding-top:28px}
  .door{width:190px;height:190px;margin:0 auto 26px;border-radius:50%;background:#DDE6EE;display:grid;place-items:center;box-shadow:inset 0 -6px 0 #C4D1DC}
  .glass{width:146px;height:146px;border-radius:50%;background:#F4FAFF;border:8px solid #fff;overflow:hidden;position:relative;box-shadow:inset 0 0 0 2px #B9CCDB}
  .water{position:absolute;left:-25%;width:150%;height:150%;top:48%;background:var(--blue);border-radius:42%;animation:spin 3.2s linear infinite;opacity:.9}
  .water.b{background:#5CB8F0;top:44%;border-radius:38%;animation-duration:4.6s;opacity:.7}
  .foam{position:absolute;border-radius:50%;background:#fff;border:2px solid #CFE8FA;animation:rise 2.6s ease-in infinite}
  @keyframes spin{to{transform:rotate(360deg)}}
  @keyframes rise{0%{transform:translateY(40px);opacity:0}20%{opacity:1}100%{transform:translateY(-90px);opacity:0}}
  .wash h1{font-family:var(--font-round);font-size:20px;color:var(--navy);margin:0 0 4px}
  .wash p{margin:0 0 18px;color:var(--muted);font-size:14px}
  .progress{height:12px;background:#fff;border-radius:999px;border:1px solid var(--line);overflow:hidden;max-width:300px;margin:0 auto}
  .progress span{display:block;height:100%;width:0;background:var(--blue);border-radius:999px;transition:width .3s}

  /* 結果 */
  .done-head{text-align:center;margin:4px 0 16px}
  .done-head h1{font-family:var(--font-round);font-size:21px;color:var(--navy);margin:0;line-height:1.5}
  .done-head p{margin:2px 0 0;font-size:14px;color:var(--muted)}
  .drafts{background:var(--foam);border-radius:var(--radius-card);border:1px solid var(--line);overflow:hidden}
  .tabs{display:grid;grid-template-columns:repeat(2,1fr);border-bottom:1px solid var(--line)}
  .tab{background:none;border:0;padding:10px 2px 8px;cursor:pointer;font-family:var(--font-round);font-weight:700;color:var(--muted);font-size:15px;border-bottom:3px solid transparent;line-height:1.3}
  .tab[aria-selected="true"]{color:var(--blue-deep);border-bottom-color:var(--blue-deep)}
  .draftbody{padding:14px 14px 12px}
  .draftbody textarea{min-height:160px;border-color:#D7E6F1;overflow:hidden;resize:none}
  .draftmeta{display:flex;justify-content:space-between;align-items:center;font-size:12.5px;color:var(--muted);margin-top:4px}
  .redo{background:#fff;border:2px solid var(--line);border-radius:999px;padding:6px 16px;min-height:44px;font-size:15px;font-weight:700;color:var(--navy);cursor:pointer}
  .redo:disabled{color:#9AAAB8;cursor:default}
  .free{background:var(--cream);border-radius:12px;padding:10px 12px;font-size:14px;margin:14px 0 0;line-height:1.6}
  .edit-ok{text-align:center;font-size:13px;color:var(--blue-deep);font-weight:700;margin:16px 0 0}

  /* 下から出る案内 */
  .sheet-bg{position:fixed;inset:0;background:rgba(11,59,102,.45);display:none;z-index:50;align-items:flex-end;justify-content:center}
  .sheet-bg.show{display:flex}
  .sheet{background:#fff;width:100%;max-width:480px;border-radius:22px 22px 0 0;padding:22px 18px calc(20px + env(safe-area-inset-bottom));max-height:92vh;overflow:auto}
  .sheet h2:focus{outline:none}
  .sheet h2{font-family:var(--font-round);font-size:20px;color:var(--navy);margin:0 0 8px;line-height:1.5}
  .sheet ol{padding-left:1.3em;margin:8px 0}
  .sheet li{margin:0 0 10px}
  .copybox{background:#F6FAFD;border:2px solid var(--blue);border-radius:12px;padding:12px;font-size:16px;user-select:all;-webkit-user-select:all;white-space:pre-wrap}

  /* 上限 */
  .limit .card{text-align:center;padding:26px 18px 20px}
  .limit h1{font-family:var(--font-round);font-size:20px;color:var(--navy);margin:0 0 8px;line-height:1.55}
  .limit p{margin:0 0 6px}

  .toast{position:fixed;left:50%;top:84px;transform:translateX(-50%);background:var(--navy);color:#fff;padding:8px 16px;border-radius:999px;font-size:14px;z-index:70;display:none}

  @media (prefers-reduced-motion: reduce){
    .water,.foam{animation:none}
    .progress span{transition:none}
  }

  /* 本番で足したもの（見本では画面のファイルに直接書いていた指定など） */
  .visually-hidden{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
  .loading{text-align:center;color:var(--muted);padding-top:60px}
  .center{text-align:center}
  .card.center{padding:26px 18px 20px}
  .card-title{font-family:var(--font-round);font-size:20px;color:var(--navy);margin:0 0 8px;line-height:1.55}
  .gap-top{margin-top:10px}
  .gap-bottom{margin-bottom:18px}
  .stack.tight{margin-top:6px}
  .consent{margin:0 0 12px;color:var(--ink);font-size:14px}
  .consent a{display:inline-block;margin-left:4px}
  .opts.none-wrap{margin-top:8px}
  .sheet-lead{margin:0 0 8px;font-size:15px}
  .foam.f1{width:14px;height:14px;left:30px;top:80px;animation-delay:.2s}
  .foam.f2{width:9px;height:9px;left:70px;top:90px;animation-delay:1.1s}
  .foam.f3{width:18px;height:18px;left:92px;top:84px;animation-delay:.6s}
  .foam.f4{width:7px;height:7px;left:52px;top:96px;animation-delay:1.7s}
  .toast.show{display:block}
  .noscript{max-width:480px;margin:20px auto;padding:0 16px;color:var(--ink)}
  .tab:focus-visible,.opt:focus-visible{outline-offset:-3px}
  .card-title{white-space:pre-line}
  [hidden]{display:none!important}
  .btn,.card-title,.e-sub,.sheet h2{text-wrap:balance}
  /* 文章の行の終わりに1〜2文字だけ残らないように（対応していない端末ではふつうに折り返す） */
  p,li,.bubble span{text-wrap:pretty;word-break:auto-phrase}
  /* 文字を大きくしたときにはみ出さないよう、狭い画面では見出しを折り返す */
  @media (max-width:340px){ .e-title{white-space:normal;text-wrap:balance} }
  .tab{min-height:48px}
  .btn.quiet.anon{min-height:44px}
