:root {
  --ink: #111318;
  --muted: #667085;
  --line: #f0e3d1;
  --panel: #ffffff;
  --soft: #fff7e8;
  --cream: #fff7e8;
  --cream-deep: #fff0c4;
  --orange: #ff5a1f;
  --orange-dark: #f04b14;
  --green: #16c65b;
  --yellow: #ffc928;
  --red: #f1375b;
  --navy: #0f2a4d;
  --charcoal: #303846;
  --shadow: 0 8px 24px rgba(15, 42, 77, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #ffffff;
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
}

.site-header {
  min-height: 68px;
  padding: 12px clamp(18px, 5vw, 48px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 12px rgba(15, 42, 77, 0.06);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #ffffff;
  background: var(--navy);
  font-weight: 900;
}

.brand-name,
.brand-line {
  display: block;
}

.brand-name {
  font-size: 17px;
  font-weight: 900;
}

.brand-line {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Noto Sans JP", "Yu Gothic", sans-serif;
}

.site-nav a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  color: #111318;
  text-decoration: none;
  font-size: 15px;
  font-weight: 900;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--orange);
  outline: none;
}

.hero-section {
  min-height: 520px;
  display: flex;
  align-items: center;
  background: linear-gradient(115deg, #fffef8 0%, var(--cream) 46%, var(--cream-deep) 100%);
  color: var(--ink);
}

.hero-inner {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.8fr);
  align-items: center;
  gap: 48px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--orange-dark);
  font-size: 12px;
  font-weight: 900;
}

.hero-copy h1,
.section-heading h2,
.unable-layout h2 {
  margin: 0;
  line-height: 1.18;
}

.hero-copy h1 {
  font-size: 46px;
}

.lead {
  max-width: 620px;
  margin: 20px 0 0;
  color: #3b4652;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.85;
}

.phone-visual {
  min-height: 360px;
  display: grid;
  place-items: center;
}

.phone-outline {
  width: 230px;
  height: 360px;
  padding: 18px;
  border: 9px solid var(--navy);
  border-radius: 34px;
  background: #ffffff;
  box-shadow: 0 24px 60px rgba(15, 42, 77, 0.16);
}

.phone-screen {
  height: 100%;
  padding: 22px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: center;
  gap: 12px;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff, #fff6e3);
  position: relative;
  overflow: hidden;
}

.scan-line {
  position: absolute;
  inset: 42px 22px auto;
  height: 2px;
  background: var(--orange);
  box-shadow: 0 0 18px rgba(255, 90, 31, 0.45);
}

.rank-chip {
  min-height: 70px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #ffffff;
  font-size: 28px;
  font-weight: 900;
}

.rank-s { background: var(--orange); }
.rank-a { background: var(--green); }
.rank-b { background: var(--yellow); color: #111318; }
.rank-c { background: var(--red); }
.rank-j {
  grid-column: span 2;
  background: var(--charcoal);
}

.summary-band,
.check-section {
  background: linear-gradient(180deg, var(--cream), #ffffff);
}

.section-inner {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
}

.summary-grid {
  padding: 34px 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.summary-grid article,
.rank-card,
.check-list div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.summary-grid article {
  padding: 22px;
}

.summary-grid span {
  color: var(--orange-dark);
  font-size: 13px;
  font-weight: 900;
}

.summary-grid h2,
.check-list h3 {
  margin: 8px 0;
  font-size: 17px;
}

.summary-grid p,
.section-heading p,
.check-list p,
.unable-layout p,
.unable-layout li,
.rank-card li,
.site-footer p {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.75;
}

.rank-section {
  padding: 72px 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-heading .eyebrow,
.unable-layout .eyebrow {
  color: var(--orange-dark);
}

.section-heading h2,
.unable-layout h2 {
  font-size: 31px;
}

.rank-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.rank-card {
  padding: 22px;
}

.rank-card-j {
  grid-column: span 2;
}

.rank-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.rank-head > span {
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #ffffff;
  font-size: 24px;
  font-weight: 900;
}

.rank-card-s .rank-head > span { background: var(--orange); }
.rank-card-a .rank-head > span { background: var(--green); }
.rank-card-b .rank-head > span { background: var(--yellow); color: #111318; }
.rank-card-c .rank-head > span { background: var(--red); }
.rank-card-j .rank-head > span { background: var(--charcoal); }

.rank-head h3,
.rank-head p {
  margin: 0;
}

.rank-head h3 {
  font-size: 20px;
}

.rank-head p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.rank-card ul,
.unable-layout ul {
  margin: 18px 0 0;
  padding-left: 1.25em;
}

.rank-card li + li,
.unable-layout li + li {
  margin-top: 8px;
}

.check-section {
  padding: 72px 0;
}

.check-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: 34px;
}

.check-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.check-list div {
  padding: 20px;
}

.unable-section {
  padding: 72px 0;
}

.unable-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: 34px;
  align-items: start;
}

.unable-layout ul {
  margin-top: 0;
  padding: 24px 24px 24px 44px;
  border-left: 4px solid var(--red);
  background: #fff7e8;
}

.site-footer {
  padding: 28px 18px;
  text-align: center;
  border-top: 1px solid var(--line);
  background: #fffdf8;
}

.site-footer p {
  margin: 4px 0;
}

.site-footer p:first-child {
  color: var(--ink);
  font-weight: 900;
}

@media (max-width: 820px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    width: 100%;
    flex-wrap: wrap;
    gap: 8px 16px;
    justify-content: space-between;
  }

  .hero-section {
    min-height: auto;
    padding: 54px 0;
  }

  .hero-inner,
  .summary-grid,
  .rank-grid,
  .check-layout,
  .check-list,
  .unable-layout {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    font-size: 34px;
  }

  .rank-card-j {
    grid-column: auto;
  }

  .phone-visual {
    min-height: 300px;
  }

  .phone-outline {
    width: 206px;
    height: 320px;
  }
}
