/* 麺談（ブログ）の見た目。アプリの /blog.html と、公開用に書き出すページの両方で使う */
  /* ブログ（ひなたが取材して書いた記事）。見た目は blog-sample.html と同じ */
  :root {
    --bg: #fff8ee; --panel: #fffdf8; --ink: #4a332c; --sub: #a08070; --line: #f0e2d4;
    --accent: #e8893a; --accent-soft: #fdebd6; --soup: #f6dfb8; --me: #dcecf8; --her: #ffffff;
    --nori: #2c3a2e; --spinach: #4f8a4a;
  }
  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body { margin: 0; background: var(--bg); color: var(--ink); line-height: 1.9;
         font-family: "Noto Sans JP", "Hiragino Sans", system-ui, sans-serif; font-size: 16px; }
  a { color: inherit; }
  img { display: block; }

  /* ヘッダー */
  header.site { border-bottom: 1.5px solid var(--line); background: var(--panel); }
  .siteIn { max-width: 1120px; margin: 0 auto; padding: 18px 20px; display: flex; align-items: center; gap: 14px; }
  .logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
  .logoMark { width: 46px; height: 46px; border-radius: 50%; background: var(--accent-soft); display: grid; place-items: center; }
  .logoText b { display: block; font-size: 22px; font-weight: 900; letter-spacing: .04em; line-height: 1.2; }
  .logoText span { font-size: 12px; color: var(--sub); }
  .logoText .kana { font-size: 12px; font-weight: 500; color: var(--accent); letter-spacing: .12em; margin-left: 4px; }
  nav.gnav { margin-left: auto; display: flex; gap: 20px; font-size: 14px; font-weight: 500; }
  nav.gnav a { text-decoration: none; color: var(--sub); }
  nav.gnav a.on, nav.gnav a:hover { color: var(--accent); }

  /* レイアウト */
  .wrap { max-width: 1120px; margin: 0 auto; padding: 28px 20px 60px; display: grid;
          grid-template-columns: minmax(0, 1fr) 300px; gap: 36px; }
  .crumbs { font-size: 12px; color: var(--sub); margin-bottom: 12px; }
  .crumbs a { text-decoration: none; }

  /* 記事 */
  article.post { background: var(--panel); border: 1.5px solid var(--line); border-radius: 0; overflow: hidden; }
  .hero { position: relative; overflow: hidden; background: #f3e4d2; }
  .hero img { width: 100%; height: 380px; object-fit: cover; object-position: 40% 45%; }
  .hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 60px; background: linear-gradient(transparent, rgba(0,0,0,.12)); }
  /* 記事の中の写真 */
  figure.photo { margin: 22px 0; }
  figure.photo img { width: 100%; border-radius: 0; object-fit: cover; }
  figure.photo.wide img { aspect-ratio: 16 / 9; }
  figure.photo.half { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  figure.photo.half img { aspect-ratio: 1 / 1; object-fit: none; } /* 縮めずに一部を切り出す（寄りの写真にする） */
  figure.photo.wide img { object-fit: none; }
  figure.photo figcaption { grid-column: 1 / -1; font-size: 12.5px; color: var(--sub); margin-top: 6px; display: flex; gap: 6px; }
  figure.photo figcaption::before { content: "📷"; }
  .hero .badge { position: absolute; left: 18px; top: 18px; z-index: 2; background: #fff; border-radius: 0;
                 padding: 4px 14px; font-size: 13px; font-weight: 700; color: var(--accent); box-shadow: 0 2px 0 rgba(0,0,0,.05); }
  .postBody { padding: 28px 40px 40px; }
  .meta { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 13px; color: var(--sub); align-items: center; }
  .cat { background: var(--accent); color: #fff; border-radius: 0; padding: 1px 10px; font-weight: 700; font-size: 12px; }
  h1.title { font-size: 28px; line-height: 1.5; margin: 12px 0 16px; font-weight: 900; }
  .lead { font-size: 15px; color: #6b5048; background: var(--bg); border-radius: 0; padding: 16px 20px; margin: 0 0 24px; }


  .toc { border: 1.5px dashed var(--line); border-radius: 0; padding: 14px 20px; margin-bottom: 32px; font-size: 14px; }
  .toc p { margin: 0 0 4px; font-weight: 700; }
  .toc ol { margin: 0; padding-left: 1.3em; }
  .toc a { text-decoration: none; color: var(--sub); }
  .toc a:hover { color: var(--accent); }

  .postBody h2 { font-size: 20px; font-weight: 900; margin: 40px 0 18px; padding: 0 0 0 14px; border-left: 6px solid var(--accent); line-height: 1.5; }

  /* 対談 */
  .talk { display: flex; gap: 12px; align-items: flex-start; margin: 14px 0; }
  .talk.me { flex-direction: row-reverse; }
  .who { flex-shrink: 0; width: 60px; text-align: center; font-size: 11px; color: var(--sub); line-height: 1.4; }
  .face { width: 56px; height: 56px; border-radius: 50%; border: 2px solid var(--line); background: #fff; object-fit: cover; margin: 0 auto 2px; }
  /* 全身の絵から顔だけを丸く切り出す */
  .face.crop { background-size: 260%; background-position: 51% 27%; background-repeat: no-repeat; }
  .face.laugh { background-image: url(chara_laugh.png); }
  .face.think { background-image: url(chara_think.png); }
  .say { position: relative; padding: 12px 18px; border-radius: 6px; max-width: calc(100% - 140px); font-size: 15px; line-height: 1.85; }
  .her .say { background: var(--her); border: 1.5px solid var(--line); border-top-left-radius: 0; }
  .me .say { background: var(--me); border-top-right-radius: 0; }
  .say strong { background: linear-gradient(transparent 60%, #ffe0a8 60%); }

  .point { background: var(--bg); border-radius: 0; padding: 16px 20px 16px 20px; margin: 22px 0; display: flex; gap: 14px; }
  .point .ico { font-size: 22px; line-height: 1.4; }
  .point p { margin: 0; font-size: 14px; }
  .point b { display: block; font-size: 15px; margin-bottom: 2px; }


  /* まとめ */
  .summary { background: linear-gradient(160deg, #fff4e4, #ffe8cc); border-radius: 0; padding: 22px 24px; margin: 34px 0 10px; display: flex; gap: 18px; align-items: center; }
  .summary .face { width: 84px; height: 84px; flex-shrink: 0; }
  .summary h3 { margin: 0 0 6px; font-size: 16px; }
  .summary ul { margin: 0; padding-left: 1.2em; font-size: 14px; }

  /* お店の情報 */
  table.shop { width: 100%; border-collapse: collapse; font-size: 14px; margin: 8px 0; }
  table.shop th, table.shop td { border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: left; vertical-align: top; }
  table.shop th { width: 7em; color: var(--sub); font-weight: 500; white-space: nowrap; }
  .links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0 6px; }
  .linkBtn { display: flex; align-items: center; gap: 12px; text-decoration: none; border: 1.5px solid var(--line); border-radius: 0;
             padding: 10px 14px; background: #fff; transition: border-color .15s, transform .15s; }
  .linkBtn:hover { transform: translateY(-2px); }
  .linkBtn.tabelog:hover { border-color: #e2a33c; } .linkBtn.gmap:hover { border-color: #4a8fdc; }
  .linkBtn .lIco { width: 36px; height: 36px; border-radius: 0; display: grid; place-items: center; font-size: 18px; flex-shrink: 0; }
  .tabelog .lIco { background: #fff1d6; } .gmap .lIco { background: #e3effc; }
  .linkBtn b { display: block; font-size: 14px; line-height: 1.4; }
  .linkBtn small { display: block; font-size: 11px; color: var(--sub); line-height: 1.4; }
  .linkBtn .arrow { margin-left: auto; color: var(--sub); }
  .linkNote { font-size: 12px; color: var(--sub); margin: 6px 0 0; }
  .chk { display: inline-block; font-size: 11px; background: #fff1c7; color: #8a6400; border-radius: 0; padding: 0 7px; margin-left: 6px; }

  .tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 0; }
  .tags a, .tags .tag { text-decoration: none; font-size: 13px; background: var(--bg); border: 1px solid var(--line); border-radius: 0; padding: 3px 12px; color: var(--sub); }
  .tags a:hover, .tags .tag:hover { border-color: var(--accent); color: var(--accent); }

  .authors { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 30px; }
  .author { display: flex; gap: 12px; align-items: center; background: var(--bg); border-radius: 0; padding: 12px 14px; }
  .author .face { width: 48px; height: 48px; margin: 0; }
  .author b { font-size: 14px; display: block; line-height: 1.4; }
  .author span { font-size: 12px; color: var(--sub); line-height: 1.6; display: block; }

  .pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 22px; }
  .pager a { text-decoration: none; border: 1.5px solid var(--line); border-radius: 0; padding: 12px 16px; font-size: 14px; background: var(--panel); }
  .pager a:hover { border-color: var(--accent); }
  .pager small { display: block; color: var(--sub); font-size: 11px; }
  .pager .next { text-align: right; }

  /* 関連記事 */
  section.related { margin-top: 36px; }
  .secTitle { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 900; margin: 0 0 16px; }
  .secTitle::after { content: ""; flex: 1; height: 1.5px; background: var(--line); }
  .cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .card { text-decoration: none; background: var(--panel); border: 1.5px solid var(--line); border-radius: 0; overflow: hidden;
          transition: transform .15s, box-shadow .15s; display: flex; flex-direction: column; }
  .card:hover { transform: translateY(-3px); box-shadow: 0 8px 18px rgba(90,62,54,.08); }
  .thumb { aspect-ratio: 16 / 10; display: grid; place-items: center; }
  .thumb svg { width: 56%; height: auto; }
  .card div.txt { padding: 12px 14px 14px; }
  .card .cat { font-size: 11px; }
  .card h3 { font-size: 14px; line-height: 1.6; margin: 6px 0 6px; }
  .card time { font-size: 11px; color: var(--sub); }

  /* サイドバー */
  /* 横の欄は、記事をスクロールしても画面の上に残す（PC 幅だけ。欄が画面より長いときは欄の中でスクロール） */
  @media (min-width: 901px) {
    aside.side { position: sticky; top: 20px; align-self: start; max-height: calc(100vh - 40px); overflow-y: auto; scrollbar-width: thin; }
    aside.side > div:last-child { margin-bottom: 0; }
  }
  aside.side > div { background: var(--panel); border: 1.5px solid var(--line); border-radius: 0; padding: 18px 20px; margin-bottom: 20px; }
  .side h4 { margin: 0 0 12px; font-size: 15px; display: flex; align-items: center; gap: 6px; }
  .duo { display: flex; justify-content: center; gap: 4px; margin: 6px 0 10px; }
  .duo .face { width: 72px; height: 72px; margin: 0; }
  .about p { font-size: 13px; margin: 0; color: #6b5048; }
  .rank { list-style: none; margin: 0; padding: 0; counter-reset: r; }
  .rank li { counter-increment: r; display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 13px; line-height: 1.6; }
  .rank li:last-child { border-bottom: 0; }
  .rank li::before { content: counter(r); flex-shrink: 0; width: 22px; height: 22px; border-radius: 0; background: var(--accent-soft);
                     color: var(--accent); font-weight: 900; font-size: 12px; display: grid; place-items: center; margin-top: 1px; }
  .rank li:first-child::before { background: var(--accent); color: #fff; }
  .rank a { text-decoration: none; }
  .rank a:hover { color: var(--accent); }
  .catList { list-style: none; padding: 0; margin: 0; font-size: 14px; }
  .catList li { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed var(--line); }
  .catList li:last-child { border-bottom: 0; }
  .catList span { color: var(--sub); font-size: 12px; }
  .tier { font-size: 13px; }
  .tier div { display: flex; gap: 8px; align-items: center; padding: 5px 0; }
  .tier b { width: 30px; height: 30px; border-radius: 0; color: #fff; display: grid; place-items: center; font-weight: 900; flex-shrink: 0; }
  .tier .s { background: #e8693a; } .tier .a { background: #f0a14a; } .tier .b { background: #c9a97a; }

  footer.site { border-top: 1.5px solid var(--line); text-align: center; font-size: 12px; color: var(--sub); padding: 24px 16px 40px; }

  /* スマホ */
  @media (max-width: 900px) {
    .wrap { grid-template-columns: 1fr; }
    nav.gnav { display: none; }
  }
  @media (max-width: 600px) {
    .hero img { height: 240px; }
    .wrap { padding: 16px 12px 40px; gap: 24px; }
    .postBody { padding: 20px 16px 28px; }
    h1.title { font-size: 21px; }
      .say { max-width: calc(100% - 64px); font-size: 14.5px; padding: 10px 14px; }
    .who { width: 44px; } .face { width: 42px; height: 42px; }
    .cards { grid-template-columns: 1fr; }
    .card { flex-direction: row; } .thumb { width: 38%; aspect-ratio: auto; } .card div.txt { flex: 1; }
    .authors, .pager, .links { grid-template-columns: 1fr; }
    .summary { flex-direction: column; align-items: flex-start; }
  }
  /* ---- ここから本番用の追加 ---- */
  /* スマホの写真は大きいので、縮めて切り出す（サンプルの object-fit: none をやめる） */
  figure.photo.wide img, figure.photo.half img { object-fit: cover; }
  .hero img { object-fit: cover; }
  .hero.noPhoto { height: 12px; background: var(--accent); }
  .hero.noPhoto::after { display: none; }

  /* 下書きの操作（アプリの中だけで見えるもの） */
  .editBar { background: #4a332c; color: #fff; }
  .editIn { max-width: 1120px; margin: 0 auto; padding: 10px 20px; display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; font-size: 13px; }
  .editIn a { color: #ffd7ad; text-decoration: none; }
  .state { font-weight: 700; padding: 1px 10px; background: #fff; color: var(--ink); }
  .state.published { background: #3f9e7f; color: #fff; }
  .editIn .grow { flex: 1; }
  .eBtn { font: inherit; font-size: 13px; border: 1px solid rgba(255,255,255,.5); background: transparent; color: #fff; padding: 4px 12px; cursor: pointer; }
  .eBtn:hover { background: rgba(255,255,255,.12); }
  .eBtn.main { background: var(--accent); border-color: var(--accent); }
  .eBtn:disabled { opacity: .5; cursor: default; }
  .revise { max-width: 1120px; margin: 0 auto; padding: 0 20px 12px; display: flex; gap: 8px; }
  .revise textarea { flex: 1; font: inherit; font-size: 14px; padding: 8px 10px; border: 0; resize: vertical; min-height: 40px; color: var(--ink); }
  /* 出典のリンク */
  a.source { display: flex; align-items: center; gap: 10px; text-decoration: none; border: 1.5px solid var(--line); background: #fff;
             padding: 8px 12px; margin: -6px 0 14px; max-width: calc(100% - 140px); font-size: 13px; line-height: 1.5; }
  a.source.me { margin-left: auto; margin-right: 72px; }
  a.source.her { margin-left: 72px; }
  a.source:hover { border-color: var(--accent); }
  a.source .sIco { width: 30px; height: 30px; flex-shrink: 0; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-size: 13px; }
  a.source.video .sIco { background: #e8453c; color: #fff; }
  a.source b { display: block; font-weight: 700; }
  a.source small { display: block; color: var(--sub); font-size: 11px; }
  a.source .arrow { margin-left: auto; color: var(--sub); }
  /* 埋め込みのプレーヤー */
  .embed { border: 1.5px solid var(--line); background: #fff; padding: 8px; margin: -6px 0 14px; max-width: calc(100% - 140px); }
  .embed.me { margin-left: auto; margin-right: 72px; } .embed.her { margin-left: 72px; }
  .embed .player { display: block; width: 100%; height: auto; padding: 0; border: 0; aspect-ratio: 16 / 9; background: #000; position: relative; overflow: hidden; }
  button.player { cursor: pointer; }
  .embed .player img { width: 100%; height: 100%; object-fit: cover; }
  .embed .player i { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 64px; height: 44px; background: #e8453c; color: #fff;
                     font-style: normal; font-size: 18px; display: grid; place-items: center; border-radius: 10px; transition: background .15s; }
  button.player:hover i { background: #c9362e; }
  .embed iframe { width: 100%; height: 100%; border: 0; display: block; }
  .embed a { display: block; text-decoration: none; padding: 8px 4px 2px; font-size: 13px; line-height: 1.5; }
  .embed a b { display: block; } .embed a small { color: var(--sub); font-size: 11px; }
  @media (max-width: 600px) { .embed { max-width: calc(100% - 56px); } .embed.me { margin-right: 52px; } .embed.her { margin-left: 52px; } }
  @media (max-width: 600px) { a.source { max-width: calc(100% - 56px); } a.source.me { margin-right: 52px; } a.source.her { margin-left: 52px; } }
  .checks { max-width: 1120px; margin: 0 auto 10px; padding: 8px 20px; font-size: 13px; }
  .checks b { color: #ffd7ad; }
  .checks ul { margin: 2px 0 0; padding-left: 1.2em; }
  .eMsg { max-width: 1120px; margin: 0 auto; padding: 0 20px 10px; font-size: 13px; color: #ffd7ad; }
  .eMsg:empty { display: none; }

  /* 書いている途中・失敗 */
  .waiting { text-align: center; padding: 60px 20px; }
  .waiting .face { width: 96px; height: 96px; margin: 0 auto 14px; }
  .waiting p { margin: 4px 0; }
  .waiting small { color: var(--sub); }
  .dots span { animation: blink 1.4s infinite both; } .dots span:nth-child(2) { animation-delay: .2s; } .dots span:nth-child(3) { animation-delay: .4s; }
  @keyframes blink { 0%, 80%, 100% { opacity: .2; } 40% { opacity: 1; } }

  /* 一覧 */
  .listHead { display: flex; align-items: baseline; gap: 10px; margin: 0 0 16px; }
  .listHead h1 { font-size: 22px; margin: 0; }
  .listHead span { color: var(--sub); font-size: 13px; }
  .cards.all { grid-template-columns: repeat(2, 1fr); }
  .thumb img { width: 100%; height: 100%; object-fit: cover; }
  .card .draftTag { background: #fff1c7; color: #8a6400; font-size: 11px; padding: 0 7px; margin-left: 6px; }
  .empty { background: var(--panel); border: 1.5px dashed var(--line); padding: 40px 20px; text-align: center; color: var(--sub); }
  .empty a { color: var(--accent); }
  .shopNote { font-size: 12px; color: #8a6400; background: #fff1c7; padding: 6px 10px; margin: 8px 0 0; }
  .linkBtn.off { opacity: .55; pointer-events: none; }
  @media (max-width: 600px) { .cards.all { grid-template-columns: 1fr; } .revise { flex-direction: column; } }
