@charset "UTF-8";

/* 「利益を最大化する3つの要素」診断ページ専用。
   共通部分（セクション・チェック項目・判定枠・保存/メール・下部バー）は
   doc-open.css を読み込んで流用し、ここには固有の部品だけを置く。 */

/* ------------------------------------------------------------------ *
 * 業態の選択
 * ------------------------------------------------------------------ */
.p-roiBiz {
  margin: 0 0 3.2rem;
  padding: 2rem;
  border: 0.1rem solid var(--docOpen-line);
  border-radius: 0.8rem;
  background: var(--docOpen-bg);
}

.p-roiBiz__label {
  display: block;
  margin: 0 0 0.8rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--docOpen-navy);
}

.p-roiBiz__note {
  margin: 0 0 1.2rem;
  font-size: 1.3rem;
  line-height: 1.7;
  color: #5a6a72;
}

.p-roiBiz__select {
  width: 100%;
  padding: 1.2rem 1.4rem;
  border: 0.1rem solid #c3d4d9;
  border-radius: 0.6rem;
  background: #fff;
  font-size: 1.5rem;
  color: var(--docOpen-txt);
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #5a6a72 50%), linear-gradient(135deg, #5a6a72 50%, transparent 50%);
  background-position: calc(100% - 1.8rem) 55%, calc(100% - 1.3rem) 55%;
  background-size: 0.5rem 0.5rem, 0.5rem 0.5rem;
  background-repeat: no-repeat;
}

.p-roiBiz__select:focus-visible {
  outline: 0.2rem solid var(--docOpen-primary);
  outline-offset: 0.2rem;
}

/* ------------------------------------------------------------------ *
 * 3要素のスコアバー
 * ------------------------------------------------------------------ */
.p-roiBars {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.p-roiBar__head {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  margin: 0 0 0.6rem;
}

.p-roiBar__mark {
  flex-shrink: 0;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: #d8e6ea;
  color: var(--docOpen-navy);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 2.2rem;
  text-align: center;
}

.p-roiBar.-top .p-roiBar__mark {
  background: var(--docOpen-primary);
  color: #fff;
}

.p-roiBar__name {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--docOpen-navy);
  text-decoration: none;
}

.p-roiBar__name:hover {
  text-decoration: underline;
}

.p-roiBar__count {
  margin-left: auto;
  flex-shrink: 0;
  font-size: 1.3rem;
  color: #5a6a72;
}

.p-roiBar__count b {
  font-size: 1.7rem;
  color: var(--docOpen-navy);
}

.p-roiBar__track {
  display: block;
  height: 1rem;
  border-radius: 0.5rem;
  background: #e5eef0;
  overflow: hidden;
}

.p-roiBar__fill {
  display: block;
  height: 100%;
  border-radius: 0.5rem;
  background: #9ec9c2;
  transition: width 0.3s ease;
}

.p-roiBar.-top .p-roiBar__fill {
  background: var(--docOpen-primary);
}

/* ------------------------------------------------------------------ *
 * 結果に出す「近い事例」
 * ------------------------------------------------------------------ */
.p-roiPicks {
  list-style: none;
  margin: 1.6rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.p-roiPick__link {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  padding: 1.6rem;
  border: 0.1rem solid var(--docOpen-line);
  border-radius: 0.8rem;
  background: #fff;
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.p-roiPick__link:hover {
  border-color: var(--docOpen-primary);
  box-shadow: 0 0.2rem 0.8rem rgba(18, 59, 94, 0.08);
}

.p-roiPick.-match .p-roiPick__link {
  border-color: #9ed7cc;
  background: var(--docOpen-bg);
}

.p-roiPick__num {
  flex-shrink: 0;
  min-width: 11rem;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--docOpen-primary);
}

.p-roiPick__body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.p-roiPick__shop {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--docOpen-navy);
}

.p-roiPick__meta {
  font-size: 1.3rem;
  line-height: 1.5;
  color: #5a6a72;
}

/* ------------------------------------------------------------------ *
 * 事例カード（常時表示。SEOのため中身はHTMLに置く）
 * ------------------------------------------------------------------ */
.p-roiCases {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  margin-top: 2.4rem;
}

.p-roiCase {
  padding: 2rem;
  border: 0.1rem solid var(--docOpen-line);
  border-radius: 0.8rem;
  background: #fff;
  scroll-margin-top: 8rem;
}

/* 店舗写真を左に置き、テーマ・店名・業態を右に積む。
   数値（__metric）が主役なので、写真は小さめにとどめる */
.p-roiCase__head {
  display: grid;
  grid-template-columns: 6rem 1fr;
  align-items: center;
  gap: 0.4rem 1.2rem;
  margin: 0 0 1.2rem;
  padding: 0 0 1.2rem;
  border-bottom: 0.1rem solid var(--docOpen-line);
}

.p-roiCase__img {
  grid-row: 1 / span 3;
  width: 6rem;
  height: 6rem;
  border-radius: 0.6rem;
  object-fit: cover;
}

.p-roiCase__head > .p-roiCase__theme,
.p-roiCase__head > .p-roiCase__shop,
.p-roiCase__head > .p-roiCase__meta {
  grid-column: 2;
}

/* グリッドの子は既定で列幅いっぱいに伸びる。ラベルは中身ぶんに戻す */
.p-roiCase__head > .p-roiCase__theme {
  justify-self: start;
}

.p-roiCase__theme {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  background: var(--docOpen-navy);
  border-radius: 0.3rem;
  padding: 0.3rem 0.8rem;
}

.p-roiCase__shop {
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--docOpen-navy);
  margin: 0;
}

.p-roiCase__meta {
  font-size: 1.3rem;
  color: #5a6a72;
}

.p-roiCase__metric {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin: 0 0 1.2rem;
}

.p-roiCase__metricValue {
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--docOpen-primary);
}

.p-roiCase__metricLabel {
  font-size: 1.4rem;
  color: #5a6a72;
}

.p-roiCase__rows {
  margin: 0 0 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.p-roiCase__row {
  display: flex;
  gap: 1rem;
}

.p-roiCase__rowLabel {
  flex-shrink: 0;
  width: 3.6rem;
  height: 2.2rem;
  border-radius: 0.3rem;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 2.2rem;
  text-align: center;
}

.p-roiCase__row.-problem .p-roiCase__rowLabel {
  background: #fbeced;
  color: #b4434a;
}

.p-roiCase__row.-solution .p-roiCase__rowLabel {
  background: #e3f4f0;
  color: #1a7c6c;
}

.p-roiCase__rowTxt {
  margin: 0;
  font-size: 1.4rem;
  line-height: 1.8;
  color: var(--docOpen-txt);
}

.p-roiCase__link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.4rem;
  font-weight: 700;
  color: #0f8d79;
  text-decoration: underline;
  text-underline-offset: 0.3rem;
}

.p-roiCase__link:hover {
  text-decoration: none;
}

.p-roiCase__link::after {
  content: "";
  width: 0.6rem;
  height: 0.6rem;
  border-top: 0.2rem solid currentColor;
  border-right: 0.2rem solid currentColor;
  transform: rotate(45deg);
}

/* 免責 */
.p-roiNote {
  margin: 2.4rem 0 0;
  padding: 1.6rem;
  border-radius: 0.6rem;
  background: #f4f6f7;
  font-size: 1.3rem;
  line-height: 1.8;
  color: #5a6a72;
}

/* [hidden] を display:flex より優先させる */
.p-roiPicks[hidden],
.p-roiBars[hidden],
.p-roiCases[hidden],
.p-roiCase__rows[hidden] {
  display: none;
}

@media screen and (min-width: 768px) {
  .p-roiBiz {
    display: flex;
    align-items: center;
    gap: 2.4rem;
    padding: 2.4rem 3.2rem;
  }

  .p-roiBiz__body {
    flex: 1;
  }

  .p-roiBiz__note {
    margin-bottom: 0;
  }

  .p-roiBiz__select {
    width: 32rem;
    flex-shrink: 0;
  }

  .p-roiBar__name {
    font-size: 1.7rem;
  }

  .p-roiPick__num {
    min-width: 14rem;
    font-size: 1.8rem;
  }

  .p-roiPick__shop {
    font-size: 1.6rem;
  }

  .p-roiCase {
    padding: 2.8rem 3.2rem;
  }

  .p-roiCase__shop {
    font-size: 1.9rem;
  }

  .p-roiCase__metricValue {
    font-size: 2.8rem;
  }

  .p-roiCase__rowTxt {
    font-size: 1.5rem;
  }

  .p-roiCases {
    gap: 2rem;
  }
}

/* ------------------------------------------------------------------ *
 * 3つの要素のカード
 * 配布PDF（4ページ目）と同じ3カラムの見せ方に合わせている。
 * ------------------------------------------------------------------ */
.p-roiElems {
  display: grid;
  gap: 1.6rem;
  margin-top: 2.4rem;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.p-roiElem {
  display: flex;
  flex-direction: column;
  padding: 2rem;
  border: 0.1rem solid #d8e8e4;
  border-radius: 0.8rem;
  background: #fff;
}

.p-roiElem__head {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  padding-bottom: 1.4rem;
  border-bottom: 0.1rem solid #e6f1ee;
}

/* 番号は装飾。読み上げでは順序リストの構造が伝わるので aria-hidden にしている */
.p-roiElem__num {
  flex: none;
  display: grid;
  place-items: center;
  margin-top: 0.9rem;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: #123b5e;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1;
  color: #fff;
}

.p-roiElem__icon {
  flex: none;
  width: 4.4rem;
  height: 4.4rem;
}

.p-roiElem__title {
  margin: 0;
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1.4;
  color: #123b5e;
}

.p-roiElem__sub {
  display: block;
  margin-top: 0.2rem;
  font-size: 1.3rem;
  font-weight: 500;
  color: #5b7285;
}

.p-roiElem__txt {
  margin-top: 1.4rem;
  font-size: 1.5rem;
  line-height: 1.8;
  color: #3c3c3c;
}

/* 数字の例は補足なので、カード下端に寄せて高さを揃える */
.p-roiElem__metrics {
  margin-top: auto;
  padding-top: 1.6rem;
  font-size: 1.4rem;
  line-height: 1.7;
  color: #3c3c3c;
}

.p-roiElem__metricsHdg {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 1.3rem;
  font-weight: 700;
  color: #1f9d88;
}

@media screen and (min-width: 768px) {
  .p-roiElems {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3.2rem;
  }

  .p-roiElem {
    padding: 2.4rem;
  }

  /* 横並びのときだけ、見出しの行数の違いで区切り線がずれないように
     2行ぶんの高さを確保する。縦積みのSPでは不要な余白になるので付けない */
  .p-roiElem__head {
    min-height: 8.8rem;
  }

  .p-roiElem__title {
    font-size: 1.7rem;
  }

  .p-roiElem__txt {
    font-size: 1.6rem;
  }
}
