/* ===========================================================
   Ameba Owndの終了と移行ガイド（ameba-ownd-end.html）専用スタイル
   共通の style.css と、比較ページの php-compare.css（「pc-」で始まる部品：
   ファーストビュー・提案カード・FAQ・関連記事・情報源）を前提に、
   このページだけで使う部品を「oe-」で始まる名前でまとめています。
=========================================================== */

/* ---------------- ファーストビューの補足 ---------------- */
.oe-hero-note {
  max-width: 31em;
  margin-top: 18px;
  padding: 12px 16px;
  font-size: 0.92rem;
  line-height: 1.8;
  color: var(--text-900);
  background: rgba(255, 255, 255, 0.85);
  border-left: 4px solid var(--orange-500);
  border-radius: 0 10px 10px 0;
}

.oe-hero-note strong {
  color: var(--green-900);
}

/* とても小さい画面では、注記の中の折り返し禁止の部分も折り返せるようにする */
@media (max-width: 480px) {
  .oe-hero-note .no-break {
    white-space: normal;
  }
}

.oe-hero-date {
  margin-top: 10px;
  font-size: 0.8rem;
  color: var(--text-600);
}

/* ---------------- まずやること ---------------- */
.oe-todo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.oe-todo {
  display: flex;
  flex-direction: column;
  padding: 24px 22px 22px;
  background: var(--white);
  border: 2px solid var(--pc-a-line);
  border-top: 8px solid var(--green-700);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.oe-todo-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.oe-todo-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1;
  color: var(--white);
  background: var(--green-700);
  border-radius: 50%;
}

.oe-todo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  color: var(--green-700);
  background: var(--green-100);
  border-radius: 20px;
}

.oe-todo-icon svg {
  width: 42px;
  height: 42px;
}

.oe-todo-title {
  margin-bottom: 8px;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.5;
  color: var(--green-900);
}

.oe-todo-text {
  font-size: 0.95rem;
  line-height: 1.9;
  color: var(--text-600);
}

.oe-todo-sub {
  margin-top: auto;
  padding: 10px 14px;
  font-size: 0.88rem;
  line-height: 1.8;
  color: var(--text-900);
  background: #fff7ed;
  border-radius: var(--radius-sm);
}

.oe-dates {
  max-width: 860px;
  margin: 36px auto 0;
  padding: 24px 28px 20px;
  background: var(--white);
  border: 1px solid var(--pc-line);
  border-radius: var(--radius-lg);
}

.oe-dates-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--green-900);
}

.oe-dates-list {
  margin-top: 10px;
  list-style: none;
}

.oe-dates-list li {
  display: grid;
  grid-template-columns: 12.5em minmax(0, 1fr);
  gap: 4px 16px;
  padding: 13px 0;
  border-top: 1px dashed var(--pc-line);
}

.oe-date {
  font-weight: 800;
  line-height: 1.6;
  color: var(--green-900);
}

.oe-date-end .oe-date {
  color: var(--pc-c);
}

.oe-date-text {
  font-size: 0.92rem;
  line-height: 1.8;
  color: var(--text-600);
}

.oe-dates-note {
  margin-top: 6px;
  font-size: 0.88rem;
  line-height: 1.85;
  color: var(--text-600);
}

/* ---------------- 移行先の比べ方（5つのものさし） ---------------- */
.oe-scale-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.oe-scale {
  display: flex;
  flex-direction: column;
  padding: 22px 22px 20px;
  background: var(--white);
  border: 1px solid var(--pc-line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.oe-scale-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 12px;
  color: var(--green-700);
  background: var(--green-100);
  border-radius: 16px;
}

.oe-scale-icon svg {
  width: 32px;
  height: 32px;
}

.oe-scale-title {
  margin-bottom: 6px;
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.55;
  color: var(--green-900);
}

.oe-scale-text {
  font-size: 0.9rem;
  line-height: 1.85;
  color: var(--text-600);
}

.oe-scale--ask {
  background: var(--orange-100);
  border: 2px solid var(--pc-c-line);
}

.oe-scale--ask .oe-scale-icon {
  color: var(--pc-c);
  background: var(--white);
}

.oe-scale-btn {
  width: 100%;
  margin-top: auto;
  padding: 14px 16px;
  line-height: 1.5;
  text-align: center;
}

.oe-scale--ask .oe-scale-text {
  margin-bottom: 14px;
}

/* ---------------- 今も無料で使える移行先 ---------------- */
.oe-mark {
  display: inline-block;
  flex-shrink: 0;
  width: 26px;
  height: 26px;
}

.oe-mark svg {
  display: block;
  width: 100%;
  height: 100%;
}

.oe-mark--ok {
  color: var(--green-700);
}

.oe-mark--warn {
  color: #b9770e;
}

.oe-mark--no {
  color: #a8402c;
}

.oe-mark--none {
  color: #8a9490;
}

.oe-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  margin-bottom: 28px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-900);
}

.oe-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.oe-legend .oe-mark {
  width: 20px;
  height: 20px;
}

/* 移行先の比較表：PCは表、スマホは項目ごとの帯 */
.oe-tbl-wrap {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--pc-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.oe-tbl {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.oe-tbl-corner {
  width: 15%;
  background: var(--pc-soft);
}

.oe-tbl thead th {
  padding: 14px 10px 12px;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.45;
  text-align: center;
  color: var(--white);
  border-left: 1px solid rgba(255, 255, 255, 0.4);
}

.oe-tbl thead small {
  display: block;
  margin-top: 2px;
  font-size: 0.76rem;
  font-weight: 600;
  opacity: 0.95;
}

.oe-tbl-h--free {
  background: var(--green-700);
}

.oe-tbl-h--ours {
  background: var(--pc-c);
}

.oe-tbl tbody th,
.oe-tbl tbody td {
  border-top: 1px solid var(--pc-line);
}

.oe-tbl tbody th {
  padding: 16px 14px;
  text-align: left;
  vertical-align: middle;
  background: var(--pc-soft);
}

.oe-tbl-rowtitle {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.45;
  color: var(--green-900);
}

.oe-tbl-rowsub {
  display: block;
  font-size: 0.74rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--text-600);
}

.oe-tbl-cell {
  padding: 16px 12px 14px;
  text-align: center;
  vertical-align: top;
  border-left: 1px solid var(--pc-line);
}

.oe-tbl-cell--ours {
  background: #fffaf5;
  border-left: 2px solid var(--pc-c-line);
  border-right: 2px solid var(--pc-c-line);
}

.oe-tbl-who {
  display: none;
}

.oe-tbl-cell .oe-mark {
  display: block;
  width: 34px;
  height: 34px;
  margin: 0 auto 6px;
}

.oe-tbl-label {
  display: block;
  margin-bottom: 4px;
  font-size: 0.98rem;
  line-height: 1.45;
  color: var(--green-900);
}

.oe-tbl-note {
  display: block;
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--text-600);
  text-align: left;
}

.oe-tbl-links .oe-tbl-cell {
  padding-top: 14px;
  text-align: left;
}

.oe-tbl-link {
  display: block;
  margin-bottom: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.6;
  color: var(--green-700);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.oe-caution {
  max-width: 860px;
  margin: 32px auto 0;
  padding: 18px 22px;
  background: #fff7ed;
  border-left: 4px solid #cc995d;
  border-radius: 0 10px 10px 0;
}

.oe-caution p {
  font-size: 0.9rem;
  line-height: 1.85;
  color: var(--text-900);
}

.oe-caution .oe-caution-title {
  margin-bottom: 2px;
  font-weight: 800;
  color: #8a4b12;
}

/* ---------------- 当社にお任せの場合 ---------------- */
.oe-price-tax {
  margin-left: 4px;
  font-size: 0.6em;
  font-weight: 700;
}

.oe-fit {
  margin-top: 32px;
}

/* ---------------- 画面幅ごとの調整 ---------------- */
@media (max-width: 960px) {
  .oe-scale-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .oe-todo-grid {
    grid-template-columns: minmax(0, 1fr);
    max-width: 560px;
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  .oe-scale-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .oe-todo {
    padding: 22px 18px 18px;
  }

  .oe-dates {
    padding: 20px 18px 16px;
  }

  .oe-dates-list li {
    grid-template-columns: minmax(0, 1fr);
  }

  .oe-caution {
    padding: 16px 16px;
  }
}

/* 比較表：幅が狭いときは、項目名を各行の帯にし、サービスごとのセルを2列に並べる（先頭に名前を出す） */
@media (max-width: 860px) {
  .oe-tbl,
  .oe-tbl tbody {
    display: block;
  }

  .oe-tbl thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .oe-tbl tbody tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .oe-tbl tbody th {
    grid-column: 1 / -1;
    padding: 9px 14px;
  }

  .oe-tbl-rowtitle,
  .oe-tbl-rowsub {
    display: inline;
  }

  .oe-tbl-rowsub {
    margin-left: 8px;
  }

  .oe-tbl-cell {
    padding: 9px 9px 11px;
  }

  .oe-tbl-cell:nth-of-type(odd) {
    border-left: 0;
  }

  /* 4つのサービスは2×2に並べる。同じ内容を共有する行（更新など）は、全幅で1つにまとめる */
  .oe-tbl-cell--span,
  .oe-tbl-cell--span + .oe-tbl-cell--ours {
    grid-column: 1 / -1;
  }

  .oe-tbl-cell--ours {
    border-left: 2px solid var(--pc-c-line);
    border-right: 0;
  }

  .oe-tbl-cell--span + .oe-tbl-cell--ours {
    border-left: 0;
    border-top: 2px solid var(--pc-c-line);
  }

  .oe-tbl-who {
    display: inline-block;
    margin-bottom: 5px;
    padding: 0 9px;
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 1.7;
    color: var(--white);
    background: var(--green-700);
    border-radius: 999px;
  }

  .oe-tbl-cell--ours .oe-tbl-who {
    background: var(--pc-c);
  }

  .oe-tbl-cell .oe-mark {
    width: 26px;
    height: 26px;
    margin-bottom: 2px;
  }

  .oe-tbl-label {
    margin-bottom: 2px;
    font-size: 0.86rem;
  }

  .oe-tbl-note {
    font-size: 0.76rem;
    line-height: 1.6;
  }

  .oe-tbl-links .oe-tbl-cell {
    padding-top: 9px;
  }

  .oe-tbl-link {
    margin-bottom: 4px;
    font-size: 0.78rem;
  }
}
