/* ラン＆トレイル アイテム比較室
   紺（夜明け前の稜線）＋ コーステープのピンク。飾りはヘッダー下のテープ帯だけ。 */
:root {
  --kon: #0d2340;
  --kon-2: #173a63;
  --tape: #ff2d78;
  --white: #ffffff;
  --rock: #e6eaef;
  --sumi: #1b2430;
  --ridge: #5d6f84;
  --wrap: 1120px;
  --font: "IBM Plex Sans JP", "Hiragino Sans", "Yu Gothic UI", sans-serif;
  --num: "Archivo", "IBM Plex Sans JP", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--sumi); background: var(--white); line-height: 1.8; font-size: 16px; }
a { color: var(--kon-2); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--tape); }
:focus-visible { outline: 3px solid var(--tape); outline-offset: 2px; }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* PR（ステマ規制の表示） */
.prbar { background: var(--kon); color: #c9d6e6; font-size: .75rem; padding: .3rem 0; }
.prbar .wrap { display: flex; gap: .5rem; align-items: center; }
.prbar b { background: var(--tape); color: var(--white); font-weight: 700; padding: 0 .35rem; border-radius: 2px; font-family: var(--num); letter-spacing: .04em; }

/* header */
.site-header { background: var(--white); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: .6rem; color: var(--kon); text-decoration: none; font-weight: 700; font-size: 1.05rem; letter-spacing: .02em; }
.nav { display: flex; gap: 1.6rem; }
.nav a { color: var(--sumi); text-decoration: none; font-size: .92rem; font-weight: 500; padding: .3rem 0; border-bottom: 3px solid transparent; }
.nav a[aria-current="page"] { border-color: var(--tape); }
.nav a:hover { color: var(--kon-2); border-color: var(--rock); }

/* コーステープ（このサイトの唯一の飾り） */
.tape { height: 8px; background: repeating-linear-gradient(-45deg, var(--tape) 0 14px, var(--white) 14px 22px); }

/* 紺の帯（トップの導入・各ページの見出し） */
.band { background: var(--kon); color: var(--white); }
.band .wrap { padding-top: 2.4rem; padding-bottom: 2.4rem; }
.band h1 { margin: 0; font-size: clamp(1.5rem, 3.2vw, 2.25rem); line-height: 1.4; font-weight: 700; letter-spacing: .01em; max-width: 34em; }
.band .lead { margin: 0; color: #d7e1ee; font-size: 1rem; max-width: 36em; }
.crumbs { font-size: .8rem; margin-bottom: .6rem; color: #b8c7da; }
.crumbs a { color: #b8c7da; }
.meta-line { margin-top: .9rem; display: flex; flex-wrap: wrap; gap: .3rem 1.4rem; font-size: .82rem; color: #b8c7da; }
.draft { display: inline-block; vertical-align: middle; font-size: .75rem; border: 1px solid #b8c7da; color: #d7e1ee; padding: 0 .4rem; border-radius: 2px; margin-left: .4rem; }

/* トップ：季節の写真の帯。説明文は帯の下の方 */
.home-band { min-height: 340px; display: flex; align-items: flex-end; background-color: var(--kon); background-size: cover; background-position: center; }
.home-band .wrap { width: 100%; padding-top: 2rem; padding-bottom: 1.6rem; }
.home-band .lead { font-size: 1.05rem; font-weight: 500; color: var(--white); }
.home-band.has-photo .lead { text-shadow: 0 1px 8px rgba(0, 0, 0, .45); }
.logo-icon { display: block; }

/* sections */
main { padding-bottom: 3rem; }
.section { padding-top: 2.4rem; }
.section h2.sec { font-size: 1.25rem; margin: 0 0 1rem; padding-left: .7rem; border-left: 5px solid var(--tape); line-height: 1.3; }
.more { margin: .8rem 0 0; font-size: .9rem; }

/* 記事一覧（カードではなく行） */
.article-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--kon); }
.article-list li { border-bottom: 1px solid var(--rock); }
.article-list a { display: grid; grid-template-columns: 7rem 1fr auto; gap: 1.2rem; align-items: baseline; padding: 1.1rem 0; text-decoration: none; color: var(--sumi); }
.article-list a:hover h3 { color: var(--kon-2); text-decoration: underline; text-underline-offset: 4px; }
.cat { font-size: .78rem; font-weight: 700; color: var(--tape); }
.article-list h3 { margin: 0 0 .2rem; font-size: 1.08rem; line-height: 1.5; }
.article-list p { margin: 0; font-size: .88rem; color: var(--ridge); line-height: 1.6; }
.article-list time { font-family: var(--num); font-size: .85rem; color: var(--ridge); white-space: nowrap; }
.empty { color: var(--ridge); }

/* 記事本文 */
.article-body { padding-top: 2rem; }
.article-body > *:not(.table-wrap):not(.products):not(.reviews):not(.section) { max-width: 46em; }
.article-body > p { max-width: 46em; }
.prnote { font-size: .7rem; color: var(--ridge); margin: 0 0 1rem; line-height: 1.4; }
.article-body h2 { font-size: 1.3rem; margin: 2.6rem 0 1rem; padding-left: .7rem; border-left: 5px solid var(--tape); line-height: 1.35; }
.article-body h3 { font-size: 1.05rem; margin: 1.6rem 0 .5rem; }
.article-body ul { padding-left: 1.2rem; }
.article-body li { margin: .35rem 0; }
.article-body hr { border: 0; border-top: 1px solid var(--rock); margin: 2.4rem 0 1rem; }
.sources { font-size: .8rem; color: var(--ridge); }
.table-note { font-size: .8rem; color: var(--ridge); }

/* 表（横スクロールは使わない。スマホでは1行ずつ縦並び） */
.table-wrap { margin: 0 0 1rem; }
table { border-collapse: collapse; width: 100%; font-size: .9rem; line-height: 1.55; }
th, td { padding: .65rem .75rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rock); }
thead th { background: var(--kon); color: var(--white); font-weight: 700; font-size: .82rem; white-space: nowrap; }
tbody td:first-child { font-weight: 700; }
tbody tr:hover td { background: #f6f8fa; }
td { font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }

@media (max-width: 760px) {
  table, tbody, tr, td { display: block; width: 100%; }
  thead { display: none; }
  tbody tr { border-top: 2px solid var(--kon); margin-bottom: 1rem; }
  td { display: grid; grid-template-columns: 6.5em 1fr; gap: .8rem; padding: .45rem 0; }
  td::before { content: attr(data-label); color: var(--ridge); font-size: .78rem; font-weight: 700; }
  tbody td:first-child { grid-template-columns: 1fr; font-size: 1rem; padding-top: .6rem; }
  tbody td:first-child::before { display: none; }
  tbody tr:hover td { background: none; }
}

/* 商品（1商品＝1枠。枠どうしは隙間で区切る） */
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; margin: 0 0 1.2rem; }
.product { border: 1px solid #c3ccd7; border-top: 4px solid var(--kon); border-radius: 4px; padding: 1rem 1rem 1.1rem; display: flex; flex-direction: column; background: var(--white); }
.product img { aspect-ratio: 1 / 1; object-fit: contain; width: 100%; margin-bottom: .8rem; }
.product h3 { margin: 0; font-size: 1.02rem; line-height: 1.45; }
.product .maker { margin: .15rem 0 .7rem; font-size: .8rem; color: var(--ridge); }
.product dl { margin: 0; display: grid; grid-template-columns: 5.2em 1fr; font-size: .85rem; line-height: 1.5; }
.product dt, .product dd { padding: .35rem 0; border-top: 1px solid var(--rock); }
.product dt { color: var(--ridge); }
.product dd { margin: 0; padding-left: .6rem; }
.product .buy { margin: auto 0 0; padding-top: .9rem; font-size: .9rem; font-weight: 700; }
.link-pending { color: var(--ridge); font-weight: 400; font-size: .85rem; }

/* 購入者の評価（使う場面の観点ごとに 良い声／気になる声。折りたたまない） */
.reviews { display: grid; gap: 22px; margin: 0 0 1.2rem; }
.rv { border: 1px solid #c3ccd7; border-radius: 4px; overflow: hidden; }
.rv-head { background: var(--kon); color: var(--white); padding: .8rem 1.1rem; display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.rv-head h3 { margin: 0; font-size: 1.05rem; }
.rv-count { font-size: .82rem; color: #d7e1ee; }
.rv-cols-head, .rv-row { display: grid; grid-template-columns: 9.5em 1fr 1fr; }
.rv-cols-head { font-size: .8rem; font-weight: 700; border-bottom: 2px solid var(--kon); }
.rv-cols-head span { padding: .45rem .9rem; }
.rv-cols-head .g { color: #12806b; }
.rv-cols-head .b { color: #d81b60; }
.rv-row { border-bottom: 1px solid var(--rock); }
.rv-row:last-child { border-bottom: 0; }
.rv-axis { padding: .7rem .9rem; font-size: .85rem; font-weight: 700; background: #f4f6f9; }
.rv-good, .rv-bad { list-style: none; margin: 0; padding: .6rem .9rem; display: grid; gap: .35rem; font-size: .9rem; line-height: 1.5; }
.rv-good { border-left: 3px solid #12806b; }
.rv-bad { border-left: 3px solid var(--tape); }
.rv-good li, .rv-bad li { display: flex; justify-content: space-between; gap: .8rem; }
.rv .n { font-family: var(--num); font-size: .78rem; color: var(--ridge); white-space: nowrap; }
.rv .n::after { content: "件"; }
.rv .none { color: var(--ridge); font-size: .82rem; }

.rv-feel { grid-template-columns: 9.5em 1fr; border-bottom: 2px solid var(--kon); }
.feel-body { padding: .8rem .9rem; display: grid; gap: .6rem; }
.feel-bar { display: flex; height: 14px; border-radius: 7px; overflow: hidden; background: var(--rock); }
.feel-bar i { display: block; height: 100%; }
.feel-bar .pos, .feel-legend .pos::before { background: #12806b; }
.feel-bar .none, .feel-legend .none::before { background: #9aa8b8; }
.feel-bar .neg, .feel-legend .neg::before { background: var(--tape); }
.feel-legend { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; font-size: .82rem; color: var(--ridge); }
.feel-legend span::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: .35rem; }
.feel-legend b { font-family: var(--num); color: var(--sumi); font-size: .95rem; }
.feel-says { display: grid; grid-template-columns: 1fr 1fr; gap: 0 .8rem; }
.feel-says ul { padding: .2rem .7rem; }
.feel-says ul:empty { display: none; }
.feel-says .rv-good::before { content: "感じた声"; font-size: .75rem; font-weight: 700; color: #12806b; }
.feel-says .rv-bad { border-left-color: #9aa8b8; }
.feel-says .rv-bad::before { content: "感じなかった声"; font-size: .75rem; font-weight: 700; color: var(--ridge); }

@media (max-width: 760px) {
  .rv-feel { grid-template-columns: 1fr; }
  .feel-says { grid-template-columns: 1fr; }
  .rv-cols-head { display: none; }
  .rv-row { grid-template-columns: 1fr; }
  .rv-good::before { content: "良い声"; font-size: .75rem; font-weight: 700; color: #12806b; }
  .rv-bad::before { content: "気になる声"; font-size: .75rem; font-weight: 700; color: #d81b60; }
}

/* 走行記録 */
.month-sum { display: flex; flex-wrap: wrap; gap: .3rem 1.6rem; margin: -.4rem 0 .9rem; font-size: .85rem; color: var(--ridge); }
.month-sum b { font-family: var(--num); color: var(--sumi); font-size: 1.05rem; margin-right: .15rem; }

/* 走行記録の表：数字は右そろえ・数字用書体、単位は小さく */
.rec th.numc, .rec td.numc { text-align: right; }
.rec td .v { font-family: var(--num); font-weight: 600; font-size: 1.02rem; letter-spacing: .01em; }
.rec td .u { font-size: .72rem; color: var(--ridge); margin-left: .15rem; }
.rec td:nth-child(1) { font-family: var(--num); font-weight: 600; }
@media (max-width: 760px) {
  .rec td.numc { text-align: left; }
  .rec tbody tr { display: grid; grid-template-columns: 1fr 1fr; column-gap: 1rem; }
  .rec tbody td:first-child { grid-column: 1 / -1; }
  .rec td { display: flex; align-items: baseline; gap: .2rem; }
  .rec td::before { flex: none; width: 4.8em; }
}

/* フォーム */
form.contact { display: grid; gap: 1.1rem; max-width: 560px; }
form.contact label { display: grid; gap: .35rem; font-weight: 700; font-size: .9rem; }
form.contact input, form.contact select, form.contact textarea { font: inherit; font-weight: 400; padding: .7rem .8rem; border: 1px solid #b9c4d0; border-radius: 4px; background: var(--white); }
form.contact textarea { min-height: 180px; }
form.contact button { justify-self: start; font: inherit; font-weight: 700; background: var(--kon); color: var(--white); border: 0; border-radius: 4px; padding: .75rem 2.2rem; cursor: pointer; }
form.contact button:hover { background: var(--kon-2); }
.hidden { display: none; }

/* footer */
.site-footer { background: var(--kon); color: #b8c7da; font-size: .8rem; margin-top: 3rem; }
.site-footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .8rem; padding-top: 1.4rem; padding-bottom: 1.6rem; }
.site-footer nav { display: flex; gap: 1.4rem; }
.site-footer a { color: var(--white); }
.site-footer p { margin: 0; }

@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .home-band { min-height: 240px; }
  .article-list a { grid-template-columns: 1fr; gap: .2rem; }
  .article-list time { order: -1; }
  .nav { gap: 1.1rem; }
  .band .wrap { padding-top: 1.8rem; padding-bottom: 1.8rem; }
  .product { padding-right: 0; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ===== 早見表（楽天での人気順） ===== */
.spec table { border: 1px solid #c3ccd7; }
.spec caption { caption-side: top; text-align: left; font-size: .8rem; font-weight: 700; color: var(--ridge); padding: 0 0 .4rem; }
.spec thead th { padding: .7rem .7rem; }
.spec .st-name a { display: flex; align-items: center; gap: .7rem; color: var(--sumi); text-decoration: none; }
.spec .st-name a:hover .st-n { color: var(--kon-2); text-decoration: underline; text-underline-offset: 3px; }
.st-rank { flex: none; width: 2.1rem; height: 2.1rem; display: grid; place-items: center; background: var(--kon); color: var(--white);
  font-family: var(--num); font-weight: 800; font-size: 1.15rem; border-radius: 3px; }
tbody tr:nth-child(-n+3) .st-rank { background: var(--tape); }
.st-n { display: grid; font-weight: 700; line-height: 1.35; }
.st-n small { font-weight: 400; font-size: .74rem; color: var(--ridge); margin-top: .15rem; }
.spec td { vertical-align: middle; }
.spec td:not(.st-name) { font-family: var(--num); font-weight: 600; font-size: .92rem; }

/* ===== 購入者の評価：見出し（順位を大きく） ===== */
.rv { border: 0; border-radius: 6px; box-shadow: 0 0 0 1px #c3ccd7; }
.rv-head { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 0 1.1rem; align-items: center; padding: 1rem 1.2rem 1rem .9rem; }
.rv-head::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px;
  background: repeating-linear-gradient(-45deg, var(--tape) 0 10px, var(--kon) 10px 16px); }
.rv-rank { font-family: var(--num); font-weight: 800; font-stretch: 75%; font-size: 3.4rem; line-height: .9; color: var(--tape); min-width: 2.2rem; text-align: center; }
.rv-title h3 { margin: 0; font-size: 1.12rem; line-height: 1.4; }
.rv-maker { margin: .15rem 0 0; font-size: .78rem; color: #b8c7da; }
.rv-side { display: grid; justify-items: end; gap: .15rem; text-align: right; }
.rv-rk { font-size: .82rem; color: #d7e1ee; }
.rv-rk b { font-family: var(--num); font-size: 1.25rem; color: var(--white); margin: 0 .1rem; }
.rv-head .rv-count { font-size: .74rem; color: #9fb1c6; }
.rv-buy { margin-top: .35rem; }
.rv-buy a { display: inline-block; color: var(--white); font-weight: 700; font-size: .85rem; border-bottom: 2px solid var(--tape); text-decoration: none; padding-bottom: 1px; }
.rv-buy a:hover { color: var(--tape); }
.rv-buy .link-pending { color: #9fb1c6; }

@media (max-width: 760px) {
  .rv-head { grid-template-columns: auto 1fr; }
  .rv-side { grid-column: 1 / -1; justify-items: start; text-align: left; margin-top: .6rem; }
  .rv-rank { font-size: 2.8rem; }
  .spec caption { display: block; width: 100%; }
  .spec table { border: 0; }
  .spec tbody td.st-name { background: none !important; color: var(--sumi); }
  .spec tbody td.st-name a { color: var(--sumi); }
}

/* 商品名は意味の切れ目でだけ改行 */
.nms .nm { display: inline; }
.nms .w { display: inline-block; white-space: nowrap; max-width: 100%; }
@media (min-width: 761px) { .nms .nm { display: inline-block; white-space: nowrap; } }
.spec td[data-label="内容量"], .spec td[data-label="エネルギー"], .spec td[data-label="炭水化物"] { white-space: nowrap; }
.spec .st-n { white-space: normal; }
.table-note, .sources { font-size: .76rem; }

/* 楽天アフィリエイトの「画像＋テキスト」コード（中身は改変せず、外枠だけ整える） */
.rv-shop { padding: .8rem 1.1rem; border-bottom: 1px solid var(--rock); background: #fff; overflow: hidden; }
.rv-shop img { max-width: 160px; height: auto; }
/* 楽天のコード自体は改変せず、表示幅だけ枠に収める */
.rv-shop table, .rv-shop tbody, .rv-shop tr, .rv-shop td, .rv-shop div { max-width: 100% !important; box-sizing: border-box; }
.rv-shop table { width: auto !important; }
.rv-shop img { max-width: 100% !important; height: auto !important; }
/* 枠の中は「左に写真・右に商品名と価格」の横並びに。下の余白（空の段落）は出さない */
.rv-shop div > table td:first-child { width: 112px !important; vertical-align: top; }
.rv-shop div > table td:first-child img { max-width: 104px !important; }
.rv-shop div > table td + td { width: auto !important; display: table-cell !important; }
.rv-shop > table > tbody > tr > td > br, .rv-shop p:empty { display: none; }
.rv-shop > table, .rv-shop > table > tbody, .rv-shop > table > tbody > tr, .rv-shop > table > tbody > tr > td { display: block; width: 100% !important; }

/* ===== 走行記録（日記） ===== */
.diary { display: grid; gap: 0; border-top: 2px solid var(--kon); }
.dy { display: grid; grid-template-columns: 4.6rem 1fr; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--rock); }
.dy-date { text-align: center; line-height: 1.1; padding-top: .1rem; }
.dy-date b { display: block; font-family: var(--num); font-weight: 800; font-size: 1.45rem; color: var(--kon); }
.dy-date span { font-size: .75rem; color: var(--ridge); }
.dy-body { display: grid; gap: .6rem; }
.dy-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .8rem; }
.dy-stats { display: flex; flex-wrap: wrap; gap: .2rem 1rem; }
.dy-stats .v { font-family: var(--num); font-weight: 600; font-size: 1rem; }
.dy-stats .u { font-size: .72rem; color: var(--ridge); margin-left: .12rem; }
.dy-note { margin: .2rem 0 0; font-size: .95rem; line-height: 1.85; color: var(--sumi); white-space: normal; }
.tag { display: inline-block; font-size: .74rem; font-weight: 700; padding: .05rem .5rem; border-radius: 3px; color: var(--white); background: var(--kon-2); }
.tag.t-trail { background: #2e7d4f; }
.tag.t-hike { background: #8a6d3b; }
.tag.t-race { background: var(--tape); }
details.mo { border-bottom: 1px solid var(--rock); }
details.mo > summary { list-style: none; cursor: pointer; display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 1.2rem; padding: 1.2rem 0 .8rem; }
details.mo > summary::-webkit-details-marker { display: none; }
details.mo > summary h2 { margin: 0; font-size: 1.2rem; padding-left: .7rem; border-left: 5px solid var(--tape); }
details.mo > summary::after { content: "開く"; margin-left: auto; font-size: .8rem; font-weight: 700; color: var(--kon-2); }
details.mo[open] > summary::after { content: "閉じる"; }
details.mo .month-sum { margin: 0; }
@media (max-width: 760px) {
  .dy { grid-template-columns: 3.4rem 1fr; gap: .7rem; }
  .dy-date b { font-size: 1.15rem; }
}

/* ===== 評価ブロック（コンパクト版） ===== */
.rv-rank { display: grid; place-items: center; min-width: 3.2rem; line-height: .9; color: var(--tape); }
.rv-rank b { font-family: var(--num); font-weight: 800; font-stretch: 75%; font-size: 3rem; }
.rv-rank small { font-size: .8rem; font-weight: 700; color: #ffd0e1; margin-top: .15rem; }
.st-rank { width: auto; min-width: 2.6rem; padding: 0 .35rem; font-size: .78rem; }
.st-rank b { font-size: 1.15rem; margin-right: .05rem; }
.rv-body { display: grid; grid-template-columns: 320px 1fr; gap: 0; border-bottom: 1px solid var(--rock); }
.rv-body > .rv-shop { border-bottom: 0; border-right: 1px solid var(--rock); padding: .9rem; }

.rv-body > .rv-shop, .rv-body > .rv-shop * { font-size: .78rem !important; line-height: 1.45 !important; }
.rv-main { padding: .9rem 1.1rem; display: grid; gap: .9rem; align-content: start; }
.rv h4 { margin: 0 0 .45rem; }
.rv-effect .feel-bar { height: 10px; margin-bottom: .45rem; }
.rv-quotes { list-style: none; margin: .5rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem .5rem; }
.rv-quotes li { font-size: .82rem; padding: .15rem .6rem; border-radius: 999px; background: #e8f4ee; color: #0f5e4b; }
.rv-quotes li.b { background: #eef1f5; color: var(--ridge); }
.rv-quotes li::before { content: "「"; } .rv-quotes li::after { content: "」"; }
.rv-pros { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.rv-pros ul { padding: .2rem .7rem; }
details.rv-all > summary { list-style: none; cursor: pointer; padding: .7rem 1.1rem; font-size: .85rem; font-weight: 700; color: var(--kon-2); }
details.rv-all > summary::-webkit-details-marker { display: none; }
details.rv-all > summary::after { content: " ＋"; }
details.rv-all[open] > summary::after { content: " －"; }
details.rv-all[open] > summary { border-bottom: 1px solid var(--rock); }
@media (max-width: 760px) {
  .rv-body { grid-template-columns: 1fr; }
  .rv-body > .rv-shop { border-right: 0; border-bottom: 1px solid var(--rock); }
  .rv-pros { grid-template-columns: 1fr; gap: .6rem; }
  .rv-rank b { font-size: 2.4rem; }
}
/* 一般の表のスマホ用ルール（縦並び）を、楽天の枠の中だけ打ち消す */
.rv-shop div table { display: table !important; width: 100% !important; }
.rv-shop div table tbody { display: table-row-group !important; }
.rv-shop div table tr { display: table-row !important; border: 0 !important; margin: 0 !important; }
.rv-shop div table td { display: table-cell !important; padding: 0 !important; border: 0 !important; grid-template-columns: none !important; }
.rv-shop td::before { content: none !important; display: none !important; }
.rv-pros ul::before { content: none !important; }
.rv-pros ul { gap: .25rem; }
@media (max-width: 760px) {
  .rv-main { gap: .7rem; padding: .8rem .9rem; }
  .rv-quotes li { font-size: .78rem; }
}
.rv-shop div[style] { width: 100% !important; }

/* 自己紹介（走行記録ページの上） */
.profile { display: grid; grid-template-columns: 56px 1fr; gap: 1rem; align-items: start; padding: 1rem 1.1rem; margin: 0 0 1.4rem; border: 1px solid #c3ccd7; border-left: 5px solid var(--tape); border-radius: 4px; max-width: none !important; }
.profile img { border-radius: 50%; object-fit: cover; }
.profile h2 { margin: 0 0 .3rem; font-size: 1.05rem; }
.profile p { margin: 0; font-size: .92rem; line-height: 1.8; }

/* 日記の写真 */
.dy-pics { display: flex; gap: 6px; flex-wrap: wrap; margin-top: .45rem; }
.dy-pics a { display: block; width: 92px; height: 92px; border-radius: 4px; overflow: hidden; background: var(--rock); }
.dy-pics img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) { .dy-pics a { width: 72px; height: 72px; } }
.article-body .profile h2 { border: 0; padding: 0; margin: 0 0 .3rem; }
@media (max-width: 760px) { .profile { grid-template-columns: 44px 1fr; gap: .8rem; } .profile img { width: 44px; height: 44px; } }

/* ===== 計算ページ ===== */
.calc-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin: 1rem 0 1.4rem; max-width: none !important; }
.calc-form label { display: grid; gap: .35rem; font-weight: 700; font-size: .88rem; }
.calc-form select, .calc-form input { font: inherit; font-weight: 400; padding: .6rem .7rem; border: 1px solid #b9c4d0; border-radius: 4px; background: #fff; }
.c-time { display: flex; align-items: center; gap: .4rem; font-weight: 400; }
.c-time input { width: 5em; }
.calc-out { max-width: none !important; }
.calc-result { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.6rem; background: var(--kon); color: var(--white); border-radius: 6px; padding: 1rem 1.3rem; position: relative; overflow: hidden; }
.calc-result::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: repeating-linear-gradient(-45deg, var(--tape) 0 10px, var(--kon) 10px 16px); }
.calc-big b { font-family: var(--num); font-weight: 800; font-stretch: 75%; font-size: 4rem; line-height: 1; color: var(--tape); }
.calc-big { font-weight: 700; }
.calc-sub { display: flex; flex-wrap: wrap; gap: .2rem 1.2rem; font-size: .9rem; color: #d7e1ee; }
.calc-sub b { font-family: var(--num); color: #fff; }
.calc-table { margin: 1rem 0; max-width: 520px; }
.calc-links { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; font-weight: 700; }
.calc-note { background: #f4f6f9; padding: .8rem 1rem; border-radius: 4px; }
.calc-form { grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }
.calc-form select, .calc-form input { max-width: 100%; min-width: 0; width: 100%; }
.calc-form .c-time input { width: 5em; }
/* タイミング表はスマホでも2列のまま（縦並びにしない） */
.calc-table { display: table !important; width: 100% !important; }
.calc-table tbody { display: table-row-group !important; }
.calc-table thead { display: table-header-group !important; }
.calc-table tr { display: table-row !important; border: 0 !important; margin: 0 !important; }
.calc-table td, .calc-table th { display: table-cell !important; padding: .45rem .7rem !important; width: auto !important; grid-template-columns: none !important; font-size: .92rem !important; }
.calc-table td:last-child { font-family: var(--num); font-weight: 600; }
.calc-table td::before { content: none !important; }

details.calc-more { margin: -.4rem 0 1.4rem; border: 1px solid #c3ccd7; border-radius: 4px; padding: .2rem 1rem .6rem; max-width: none !important; }
details.calc-more > summary { cursor: pointer; font-weight: 700; font-size: .9rem; color: var(--kon-2); padding: .6rem 0; }
details.calc-more .calc-form { margin: .4rem 0 .6rem; }
.c-check { display: flex !important; align-items: center; gap: .5rem; font-weight: 500 !important; }
.c-check input { width: auto !important; }
.calc-form select:disabled { background: #eef1f5; color: var(--ridge); }

.calc-buy { list-style: none; padding: 0; margin: .4rem 0 1rem; display: grid; gap: .4rem; font-size: .9rem; max-width: none !important; }
.calc-buy li { padding: .55rem .8rem; border: 1px solid #c3ccd7; border-left: 4px solid var(--tape); border-radius: 4px; }
.calc-table td[data-label="ジェル"] { font-family: var(--font) !important; font-weight: 500 !important; font-size: .82rem !important; }

/* 計算ページ：エイド・食べ物の枠と、必要な糖質の内訳 */
.calc-aid { border: 1px solid #c3ccd7; border-left: 4px solid var(--tape); border-radius: 4px; padding: .8rem 1rem .4rem; margin: -.4rem 0 1.4rem; max-width: none !important; }
.calc-aid > label { display: block; font-weight: 700; font-size: .88rem; margin-bottom: .35rem; }
.calc-aid input { font: inherit; padding: .5rem .7rem; border: 1px solid #b9c4d0; border-radius: 4px; width: 6em; }
.calc-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin: .7rem 0 .2rem; }
.calc-chip { font: inherit; font-size: .82rem; padding: .4rem .7rem; border: 1px solid var(--kon); border-radius: 999px; background: #fff; color: var(--kon); cursor: pointer; }
.calc-chip b { font-family: var(--num); }
.calc-chip:hover { background: var(--kon); color: #fff; }
.calc-chip-reset { border-color: #b9c4d0; color: var(--ridge); }
.calc-need { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin: 0 0 .8rem; max-width: none !important; }
.calc-need > div { border: 1px solid #c3ccd7; border-radius: 4px; padding: .6rem .8rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .15rem; font-weight: 700; }
.calc-need span { width: 100%; font-size: .8rem; color: var(--kon-2); }
.calc-need b { font-family: var(--num); font-weight: 800; font-size: 2rem; line-height: 1.1; color: var(--kon); }
.calc-need small { width: 100%; font-weight: 400; font-size: .75rem; color: var(--ridge); }
.calc-need .calc-need-rest { background: #fff0f5; border-color: var(--tape); }
.calc-need .calc-need-rest b { color: var(--tape); }
.calc-zone { font-size: .88rem; margin: 0 0 .8rem; }
@media (max-width: 560px) { .calc-need { grid-template-columns: 1fr; } .calc-need b { font-size: 1.7rem; } }
