:root {
  color-scheme: light;
  --bg: #f6f7f2;
  --paper: #ffffff;
  --ink: #17231f;
  --muted: #607069;
  --line: #dce2d9;
  --soft: #eef3ec;
  --teal: #2f8778;
  --teal-dark: #1d5f55;
  --coral: #e65b52;
  --gold: #e2ad3d;
  --green-ink: #183d36;
  --shadow: 0 18px 45px rgba(24, 61, 54, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: 0;
}

img {
  display: block;
  height: auto;
  max-width: 100%;
}

a {
  color: var(--teal-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--coral);
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 1rem;
  font-size: 2.25rem;
  line-height: 1.35;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 1rem;
  font-size: 1.75rem;
  line-height: 1.45;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0.45rem;
  font-size: 1.35rem;
  line-height: 1.45;
  letter-spacing: 0;
}

h4 {
  margin-bottom: 0.65rem;
  font-size: 1rem;
  line-height: 1.5;
}

ul,
ol {
  margin-top: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 0.5rem;
  z-index: 20;
  transform: translateY(-160%);
  border-radius: 6px;
  background: var(--green-ink);
  color: #fff;
  padding: 0.5rem 0.75rem;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(220, 226, 217, 0.9);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
}

.site-header__inner,
.hero__inner,
.page-shell,
.site-footer__inner {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header__inner {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.brand__mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: var(--teal);
  color: #fff;
  font-weight: 800;
  line-height: 1;
}

.brand__text {
  white-space: nowrap;
}

.global-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.92rem;
}

.global-nav a {
  color: var(--muted);
  text-decoration: none;
}

.global-nav a:hover {
  color: var(--teal-dark);
}

.hero {
  border-bottom: 1px solid var(--line);
  background: #fbfcf8;
}

.portal-hero {
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(47, 135, 120, 0.1), rgba(226, 173, 61, 0.12)),
    #fbfcf8;
}

.hero__inner {
  padding: 3.2rem 0 2.6rem;
}

.portal-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 2rem;
  align-items: center;
  padding: 3.5rem 0 3rem;
}

.hero__copy {
  max-width: 860px;
  min-width: 0;
}

.portal-hero__copy {
  max-width: 780px;
}

.portal-hero__panel {
  border: 1px solid rgba(47, 135, 120, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
  padding: 1.25rem;
}

.portal-hero__panel p {
  margin-bottom: 0.35rem;
  color: var(--coral);
  font-size: 0.82rem;
  font-weight: 900;
}

.portal-hero__panel strong {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--green-ink);
  font-size: 1.25rem;
  line-height: 1.35;
}

.portal-hero__panel span {
  display: block;
  color: var(--muted);
  font-size: 0.94rem;
}

.breadcrumbs {
  margin-bottom: 1.25rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumbs li:not(:last-child)::after {
  margin-left: 0.45rem;
  color: #9ba79f;
  content: "/";
}

.breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
}

.eyebrow,
.section-kicker {
  margin-bottom: 0.6rem;
  color: var(--coral);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.lead {
  max-width: 760px;
  margin-bottom: 1.35rem;
  color: #3b4b45;
  font-size: 1.05rem;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.meta-row span,
.platforms span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.18rem 0.7rem;
}

.hero__actions,
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: 800;
  line-height: 1.3;
  padding: 0.7rem 1rem;
  text-decoration: none;
}

.button--primary {
  background: var(--teal);
  color: #fff;
}

.button--primary:hover {
  background: var(--teal-dark);
  color: #fff;
}

.button--secondary,
.button--store {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--green-ink);
}

.button--secondary:hover,
.button--store:hover {
  border-color: var(--teal);
  color: var(--teal-dark);
}

.page-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 2rem;
  align-items: start;
  padding: 1.6rem 0 4rem;
}

.page-shell--home {
  padding-top: 2rem;
}

.content {
  min-width: 0;
}

.notice,
.portal-context,
.summary,
.section,
.app-card {
  margin-bottom: 1.5rem;
}

.portal-context {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 1.1rem;
  align-items: stretch;
  border: 1px solid rgba(47, 135, 120, 0.22);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
  padding: 1.5rem;
}

.portal-context h2 {
  margin-bottom: 0.7rem;
}

.portal-context p:last-child {
  margin-bottom: 0;
  color: #3b4b45;
}

.portal-grid,
.category-grid,
.policy-list {
  display: grid;
  gap: 0.85rem;
}

.portal-grid {
  grid-template-columns: 1fr;
}

.portal-card,
.category-grid a {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcf8;
  color: var(--ink);
  padding: 0.95rem;
  text-decoration: none;
}

.portal-card span {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--coral);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.portal-card strong,
.category-grid strong {
  display: block;
  color: var(--green-ink);
  line-height: 1.35;
}

.category-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.category-grid span {
  display: block;
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.policy-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.policy-list div {
  min-height: 168px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcf8;
  padding: 1rem;
}

.policy-list strong {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--green-ink);
}

.policy-list p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.home-section .section-heading p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.featured-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(220px, 0.75fr);
  gap: 1rem;
}

.featured-card {
  display: block;
  min-height: 180px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcf8;
  color: var(--ink);
  padding: 1rem;
  text-decoration: none;
}

.featured-card--primary {
  display: grid;
  grid-row: span 2;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  background: #ffffff;
}

.featured-card--app {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 0.9rem;
  align-items: start;
  min-height: 0;
  background: #ffffff;
}

.featured-card__image {
  display: grid;
  width: 84px;
  height: 84px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.featured-card--app .featured-card__image {
  width: 68px;
  height: 68px;
}

.featured-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-card span {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 900;
}

.featured-card h3 {
  margin-bottom: 0.45rem;
  color: var(--green-ink);
}

.featured-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.featured-card--soon {
  background: #fbfcf8;
}

.category-grid--home {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-ranking {
  display: grid;
  gap: 0.8rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-ranking a {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 0.85rem;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcf8;
  color: var(--ink);
  padding: 1rem;
  text-decoration: none;
}

.home-ranking span {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 8px;
  background: var(--teal);
  color: #fff;
  font-weight: 900;
}

.home-ranking strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--green-ink);
}

.home-ranking p {
  margin-bottom: 0;
  color: var(--muted);
}

.notice {
  border: 1px solid #f1d39a;
  border-radius: 8px;
  background: #fff8e7;
  padding: 1rem 1.1rem;
}

.notice p {
  margin-bottom: 0;
  color: #61513a;
  font-size: 0.92rem;
}

.summary,
.section {
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.summary-item {
  display: block;
  min-height: 116px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcf8;
  color: var(--ink);
  padding: 1rem;
  text-decoration: none;
}

.summary-item strong {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--green-ink);
  font-size: 1rem;
}

.summary-item span {
  color: var(--muted);
  font-size: 0.92rem;
}

.section-heading {
  max-width: 740px;
  margin-bottom: 1.1rem;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
  background: #fff;
}

caption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 0.95rem;
  text-align: left;
  vertical-align: top;
}

thead th {
  background: var(--green-ink);
  color: #fff;
  font-size: 0.9rem;
}

tbody th {
  color: var(--teal-dark);
  white-space: nowrap;
}

tbody tr:last-child th,
tbody tr:last-child td {
  border-bottom: 0;
}

.app-card {
  scroll-margin-top: 96px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}

.app-card--featured {
  border-color: rgba(47, 135, 120, 0.45);
  background: linear-gradient(180deg, #ffffff 0%, #f7fbf7 100%);
}

.app-card--featured .rank {
  background: var(--teal);
  color: #fff;
}

.app-card__top {
  display: grid;
  grid-template-columns: 44px 74px minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
}

.rank {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 8px;
  background: var(--gold);
  color: #1f241f;
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1;
}

.app-icon {
  position: relative;
  display: grid;
  width: 74px;
  height: 74px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  color: var(--teal-dark);
  font-weight: 900;
}

.app-icon::before {
  content: attr(data-fallback);
}

.app-icon img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-icon.is-missing img {
  display: none;
}

.app-card__label {
  margin-bottom: 0.15rem;
  color: var(--coral);
  font-size: 0.86rem;
  font-weight: 800;
}

.platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.app-card__intro {
  color: #34443e;
}

.fact-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 1.1rem 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.fact-list div {
  min-height: 86px;
  border-right: 1px solid var(--line);
  background: #fbfcf8;
  padding: 0.85rem;
}

.fact-list div:last-child {
  border-right: 0;
}

.fact-list span {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.fact-list strong {
  display: block;
  color: var(--ink);
  line-height: 1.45;
}

.pros-cons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.1rem 0;
}

.pros-cons > div {
  border-left: 4px solid var(--teal);
  background: #f7fbf7;
  padding: 0.95rem 1rem 0.95rem 1.1rem;
}

.pros-cons > div:nth-child(2) {
  border-left-color: var(--coral);
  background: #fff8f6;
}

.pros-cons ul,
.criteria-list {
  padding-left: 1.2rem;
}

.pros-cons li,
.criteria-list li {
  margin-bottom: 0.55rem;
}

.review-note {
  border-top: 1px solid var(--line);
  margin: 1rem 0;
  color: var(--muted);
  font-size: 0.92rem;
  padding-top: 1rem;
}

.criteria-list {
  margin-bottom: 0;
}

.criteria-list li {
  padding-left: 0.3rem;
}

.criteria-list strong {
  display: block;
  color: var(--green-ink);
}

.faq-list {
  display: grid;
  gap: 0.7rem;
}

details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcf8;
}

summary {
  cursor: pointer;
  color: var(--green-ink);
  font-weight: 800;
  padding: 0.9rem 1rem;
}

details p {
  margin: 0;
  border-top: 1px solid var(--line);
  color: #3b4b45;
  padding: 0.9rem 1rem 1rem;
}

.sidebar {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 1rem;
}

.toc,
.media-card,
.side-note {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  padding: 1rem;
}

.media-card {
  border-color: rgba(47, 135, 120, 0.32);
  background: #fbfcf8;
}

.media-card__label {
  margin-bottom: 0.25rem;
  color: var(--coral);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.media-card strong {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--green-ink);
  font-size: 1.05rem;
}

.media-card p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.toc__title {
  margin-bottom: 0.8rem;
  color: var(--green-ink);
  font-weight: 900;
}

.toc a {
  display: block;
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: 0.65rem 0;
  text-decoration: none;
}

.toc a:hover {
  color: var(--teal-dark);
}

.side-note strong {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--coral);
}

.side-note p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.side-note--links a {
  display: block;
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: 0.55rem 0;
  text-decoration: none;
}

.side-note--links a:last-child {
  padding-bottom: 0;
}

.side-note--links a:hover {
  color: var(--teal-dark);
}

.site-footer {
  background: var(--green-ink);
  color: #dce8e2;
}

.site-footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 2.2rem 0;
}

.footer-brand {
  margin-bottom: 0.4rem;
  color: #fff;
  font-weight: 900;
}

.site-footer p {
  margin-bottom: 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 0.7rem 1rem;
}

.site-footer a {
  color: #fff;
  text-decoration: none;
}

@media (max-width: 960px) {
  .portal-hero__inner,
  .page-shell {
    grid-template-columns: 1fr;
  }

  .portal-context,
  .policy-list {
    grid-template-columns: 1fr;
  }

  .hero__inner {
    padding-top: 2.5rem;
  }

  .sidebar {
    position: static;
    order: -1;
  }

  .toc {
    display: none;
  }

  .summary-grid,
  .category-grid,
  .category-grid--home,
  .featured-grid,
  .fact-list,
  .pros-cons {
    grid-template-columns: 1fr;
  }

  .fact-list div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .fact-list div:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 15px;
  }

  h1 {
    font-size: 1.85rem;
  }

  h2 {
    font-size: 1.45rem;
  }

  .site-header__inner,
  .hero__inner,
  .page-shell,
  .site-footer__inner {
    width: min(100% - 28px, 1120px);
  }

  .site-header__inner {
    min-height: auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 0.9rem 0;
  }

  .brand__text {
    white-space: normal;
  }

  .global-nav {
    width: 100%;
    justify-content: space-between;
    gap: 0.5rem;
  }

  .hero__actions,
  .cta-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .summary,
  .portal-context,
  .section,
  .app-card {
    padding: 1rem;
  }

  .app-card__top {
    grid-template-columns: 38px 62px minmax(0, 1fr);
    gap: 0.7rem;
  }

  .rank {
    width: 38px;
    height: 38px;
    font-size: 1.05rem;
  }

  .app-icon {
    width: 62px;
    height: 62px;
  }

  .meta-row span,
  .platforms span {
    min-height: 28px;
    font-size: 0.78rem;
  }

  .site-footer__inner {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.7rem;
  }

  .breadcrumbs {
    display: none;
  }

  .hero__inner {
    padding: 1.7rem 0 1.6rem;
  }

  .portal-hero__inner {
    padding: 2rem 0 1.8rem;
  }

  .lead {
    font-size: 1rem;
  }

  .hero__actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero__actions .button {
    min-height: 42px;
    padding-right: 0.55rem;
    padding-left: 0.55rem;
    font-size: 0.88rem;
  }

  .featured-card--primary {
    grid-template-columns: 62px minmax(0, 1fr);
  }

  .featured-card--app {
    grid-template-columns: 62px minmax(0, 1fr);
  }

  .featured-card__image {
    width: 62px;
    height: 62px;
  }

  .featured-card--app .featured-card__image {
    width: 62px;
    height: 62px;
  }

}
