/* ========================================
   LLMO Audit — Page Styles
   ======================================== */

:root {
  --bg: #e2e2e2;
  --ink: #000000;
  --accent: #abff44;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Noto Sans JP', sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  max-width: 1440px;
  margin: 0 auto;
  background: var(--bg);
  border-left: 1px solid var(--ink);
  border-right: 1px solid var(--ink);
  overflow: clip;
}

/* ===== HEADER ===== */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 80px;
  border-bottom: 1px solid var(--ink);
  background: var(--bg);
  height: 100px;
}
.logo-svg {
  height: 48px;
  width: auto;
  display: block;
}
.hamburger {
  width: 64px;
  height: 17px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}
.hamburger span {
  display: block;
  height: 3px;
  background: var(--ink);
}

/* ===== DECO SQUARES ===== */
.deco-sq {
  width: 40px;
  height: 40px;
}
.deco-sq.white,
.deco-sq-white {
  background: #fff;
}
.deco-sq.accent,
.deco-sq-lime {
  background: var(--accent);
}

/* ===== TOOL HEADER — LIST/DETAIL BASE ===== */
.tool-header {
  display: flex;
  gap: 32px;
}
.tool-icon-placeholder {
  width: 130px;
  height: 130px;
  flex-shrink: 0;
  object-fit: contain;
}
.tool-title {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tool-title-bar {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  background: var(--accent);
  padding: 5px 20px;
  height: 50px;
}
.page--list .tool-title-bar,
.page--detail .tool-title-bar {
  width: 670px;
}
.tool-title-bar .title-ja {
  font-family: 'Zen Old Mincho', serif;
  font-weight: 700;
  font-size: 30px;
  line-height: 40px;
  color: var(--ink);
  white-space: nowrap;
}
.tool-title-bar .title-sub {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 500;
  font-size: 25px;
  line-height: 40px;
  color: var(--ink);
  white-space: nowrap;
}
.tool-title-en {
  font-family: 'Forum', serif;
  font-weight: 400;
  font-size: 64px;
  line-height: 70px;
  color: var(--ink);
}

/* ===== CONTENT AREA ===== */
.content-area {
  padding: 60px 120px 80px;
  display: flex;
  flex-direction: column;
  gap: 50px;
}
.page--list .content-area {
  gap: 40px;
}

/* ===== CTA FOOTER ===== */
.cta {
  background: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 50px 100px;
  gap: 30px;
}
.cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  width: 627px;
}
.cta-text {
  font-family: 'Zen Old Mincho', serif;
  font-weight: 600;
  font-size: 48px;
  line-height: 68px;
  color: #fff;
  text-align: center;
  white-space: nowrap;
}
.cta-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 30px;
  gap: 118px;
  width: 500px;
  height: 80px;
  background: var(--accent);
}
.cta-btn .label {
  font-family: 'Forum', serif;
  font-size: 70px;
  line-height: 68px;
  color: var(--ink);
  flex-grow: 1;
  text-align: center;
}
.cta-btn .arrow {
  font-family: 'Forum', serif;
  font-size: 70px;
  line-height: 68px;
  color: var(--ink);
}
.foot-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 312px;
  width: 551px;
}
.foot-links a {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 350;
  font-size: 16px;
  color: #fff;
}
.copyright {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;
  color: #fff;
}

/* ===== PHONE COMPONENTS (SHARED) ===== */
.phone-notch {
  width: 117px;
  height: 19px;
  background: #060606;
  border-radius: 50px;
  margin-bottom: 24px;
  flex-shrink: 0;
}
.phone-title {
  font-family: 'Zen Old Mincho', serif;
  font-weight: 600;
  font-size: 40px;
  color: var(--ink);
  text-align: center;
  line-height: 1.35;
  margin-bottom: 18px;
  padding: 0 16px;
  flex-shrink: 0;
}
.theme-card {
  background: var(--bg);
  border-radius: 12px;
  padding: 10px 20px;
  height: 80px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.theme-card:hover {
  opacity: 0.8;
}

/* ========================================
   INDEX PAGE
   ======================================== */

.page--index .tool-header {
  flex-direction: column;
  gap: 0;
}
.page--index .tool-title-bar {
  align-self: flex-start;
  display: inline-flex;
}
.tool-title-main {
  font-family: 'Zen Old Mincho', serif;
  font-weight: 700;
  font-size: 30px;
  color: var(--ink);
  white-space: nowrap;
}
.tool-title-sub {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 500;
  font-size: 25px;
  color: var(--ink);
  white-space: nowrap;
}
.tool-hero {
  display: flex;
  align-items: center;
  gap: 340px;
  margin-top: 30px;
}
.tool-hero-text {
  display: flex;
  flex-direction: column;
  line-height: 0.88;
}
.tool-name-llmo {
  font-family: 'Forum', serif;
  font-weight: 400;
  font-size: 210px;
  color: var(--ink);
}
.tool-name-audit {
  font-family: 'Forum', serif;
  font-weight: 400;
  font-size: 210px;
  color: var(--ink);
  margin-left: 80px;
}
.tool-hero-icon {
  width: 323px;
  height: 323px;
  flex-shrink: 0;
  object-fit: contain;
  margin-left: auto;
}

.lead-text {
  font-family: 'Zen Old Mincho', serif;
  font-weight: 500;
  font-size: 25px;
  line-height: 1.9;
  text-align: center;
  color: var(--ink);
}
.sp-br {
  display: none;
}

.main-layout {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.main-card {
  width: 800px;
  flex-shrink: 0;
  background: var(--ink);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card-deco {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  padding: 20px 30px;
  border-bottom: 2px solid #fff;
}
.card-form {
  padding: 30px 50px 50px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.form-label {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 20px;
  font-weight: 400;
  color: #fff;
  line-height: 1.6;
}
.form-input {
  background: #fff;
  border: none;
  height: 54px;
  padding: 0 16px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 18px;
  color: var(--ink);
  outline: none;
  width: 100%;
}
.form-input::placeholder {
  color: #999;
}
.field-note {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 13px;
  font-weight: 350;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
}
.form-btn {
  background: var(--accent);
  border: 2px solid var(--ink);
  width: 450px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Zen Old Mincho', serif;
  font-size: 30px;
  color: var(--ink);
  cursor: pointer;
  align-self: center;
  transition: opacity 0.2s;
  margin-top: 10px;
}
.form-btn:hover {
  opacity: 0.75;
}
.hp-field {
  display: none;
}

.phone-mock,
.right-col {
  flex: 1;
  display: flex;
  justify-content: center;
}
.phone-mock-inner {
  width: 380px;
  height: 792px;
  background: #fff;
  border: 9px solid var(--ink);
  border-radius: 62px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 0 28px;
  overflow: hidden;
  flex-shrink: 0;
}
.phone-separator {
  width: 362px;
  height: 0;
  border-top: 3px solid var(--ink);
  margin-bottom: 16px;
  flex-shrink: 0;
}
.phone-cards {
  width: 100%;
  padding: 0 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  overflow: hidden;
}
.phone-cards .theme-card span {
  font-family: 'Zen Old Mincho', serif;
  font-size: 20px;
  color: var(--ink);
  line-height: 30px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.phone-link {
  font-family: 'Zen Old Mincho', serif;
  font-weight: 500;
  font-size: 20px;
  color: var(--ink);
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  padding-right: 20px;
  width: 100%;
  flex-shrink: 0;
}

.alert {
  background: #fff3cd;
  border: 1px solid #ffc107;
  color: #856404;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 16px;
}

.loading-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 20px;
}
.loading-overlay.active {
  display: flex;
}
.loading-overlay p {
  color: #fff;
  font-family: 'Zen Old Mincho', serif;
  font-size: 20px;
}
.spinner {
  width: 48px;
  height: 48px;
  border: 5px solid rgba(255, 255, 255, 0.3);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ========================================
   LIST (HISTORY) PAGE
   ======================================== */

.list-area {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.back-row {
  display: flex;
  justify-content: flex-end;
}
.back-link {
  font-family: 'Zen Old Mincho', serif;
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 4px;
}
.back-link:hover {
  opacity: 0.7;
}

.list-card {
  background: var(--ink);
  border-radius: 20px;
  overflow: hidden;
}
.card-header {
  display: flex;
  align-items: center;
  padding: 20px 30px;
  background: var(--ink);
  border-bottom: 2px solid #fff;
}
.list-card .card-header {
  justify-content: space-between;
}
.black-card .card-header {
  justify-content: flex-end;
}
.card-header-title {
  font-family: 'Zen Old Mincho', serif;
  font-weight: 700;
  font-size: 28px;
  color: #fff;
}
.card-header-deco {
  display: flex;
  gap: 8px;
}

.table-wrap {
  margin: 40px 80px;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 0 0 1px #fff;
}
.diag-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}
.diag-table thead tr {
  background: var(--ink);
}
.diag-table thead th {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 500;
  font-size: 17px;
  color: #fff;
  padding: 14px 20px;
  text-align: left;
  border-right: 1px solid #444;
  border-bottom: 1px solid #444;
}
.diag-table thead th:last-child {
  border-right: none;
}
.diag-table thead th:first-child {
  border-top-left-radius: 19px;
}
.diag-table thead th:last-child {
  border-top-right-radius: 19px;
}
.diag-table thead th.col-rank {
  text-align: center;
  width: 110px;
}
.diag-table thead th.col-date {
  text-align: center;
  width: 150px;
}
.diag-table tbody tr {
  transition: background-color 0.15s;
  cursor: pointer;
}
.diag-table tbody tr:hover td {
  background: #f8f8f8;
}
.diag-table tbody td {
  padding: 14px 20px;
  vertical-align: middle;
  border-right: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
}
.diag-table tbody td:last-child {
  border-right: none;
}
.diag-table tbody tr:last-child td {
  border-bottom: none;
}
.diag-table tbody tr:last-child td:first-child {
  border-bottom-left-radius: 19px;
}
.diag-table tbody tr:last-child td:last-child {
  border-bottom-right-radius: 19px;
}
.cell-theme {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 500;
  font-size: 17px;
  color: var(--ink);
}
.cell-rank {
  text-align: center;
}
.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 18px;
  padding-bottom: 5px;
  color: var(--ink);
}
.rank-A {
  background: #abff44;
}
.rank-B {
  background: #ffb3c6;
}
.rank-C {
  background: #88ccff;
}
.rank-D {
  background: #555;
  color: #fff;
}
.rank-E {
  background: #ff4444;
  color: #fff;
}
.cell-date {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: var(--ink);
  text-align: center;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 20px 0 40px;
}
.pagination .pg-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  font-family: 'Forum', serif;
  font-size: 18px;
  border: 1px solid #ccc;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}
.pagination .pg-item.current {
  background: var(--accent);
  border-color: var(--ink);
}
.pagination .pg-item:not(.current):hover,
.pagination .pg-next:hover {
  background: #f8f8f8;
  border-color: var(--accent);
  border-width: 2px;
}
.pagination .pg-next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  height: 36px;
  font-family: 'Zen Old Mincho', serif;
  font-size: 16px;
  border: 1px solid #ccc;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  white-space: nowrap;
}

/* ========================================
   RESULT PAGE
   ======================================== */

.page--detail .tool-header {
  flex-direction: row;
  padding: 0 120px 40px;
  margin-top: 70px;
  margin-bottom: 40px;
}

.main-content {
  padding: 0 120px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 80px;
}
.left-col {
  width: 800px;
  flex-shrink: 0;
}

.black-card {
  background-color: var(--ink);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card-body {
  padding: 50px;
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.grade-summary-row {
  display: flex;
  flex-direction: row;
  gap: 19px;
  min-height: 260px;
  align-items: flex-start;
}
.grade-badge-area {
  width: 200px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 10px;
}
.grade-circle {
  width: 150px;
  height: 150px;
  background-color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.grade-circle.grade-A {
  background-color: #abff44;
}
.grade-circle.grade-B {
  background-color: #ffb3c6;
}
.grade-circle.grade-C {
  background-color: #88ccff;
}
.grade-circle.grade-D {
  background-color: #555;
}
.grade-circle.grade-D .grade-letter {
  color: #fff;
}
.grade-circle.grade-E {
  background-color: #ff4444;
}
.grade-circle.grade-E .grade-letter {
  color: #fff;
}
.grade-letter {
  font-family: 'Forum', serif;
  font-size: 120px;
  color: var(--ink);
  line-height: 1;
  margin-top: -4px;
}
.summary-text {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 26px;
  color: #fff;
  flex-grow: 1;
}

.meta-info-box {
  border: 1px solid #fff;
  padding: 10px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 700px;
}
.meta-row {
  display: flex;
  align-items: center;
  gap: 24px;
}
.meta-label {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: #fff;
  white-space: nowrap;
  min-width: 120px;
}
.meta-value {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: #fff;
}
.meta-value.masked {
  background-color: #555;
  color: #555;
  user-select: none;
  letter-spacing: 0.1em;
  padding: 0 4px;
}

.radar-wrap {
  width: 700px;
  height: 480px;
  background-color: #fff;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.radar-canvas-wrap {
  width: 100%;
  height: 100%;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.subscore-row {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 15px;
  min-height: 92px;
  flex-wrap: nowrap;
}
.subscore-badge {
  background-color: var(--accent);
  padding: 10px 20px;
  width: 104px;
  height: 92px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  flex-shrink: 0;
}
.badge-label {
  font-family: 'Zen Old Mincho', serif;
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
  text-align: center;
  line-height: 1.2;
}
.badge-score-wrap {
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.badge-score {
  font-family: 'Zen Old Mincho', serif;
  font-weight: 600;
  font-size: 40px;
  color: var(--ink);
  line-height: 1;
}
.badge-pct {
  font-family: 'Zen Old Mincho', serif;
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
  line-height: 1;
}

.glossary-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 700px;
}
.glossary-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.glossary-icon {
  display: flex;
  align-items: center;
}
.glossary-title {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 500;
  font-size: 20px;
  color: #fff;
}
.glossary-text {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 21px;
  color: #fff;
}
.glossary-text p {
  margin: 0 0 6px 0;
}
.glossary-text p:last-child {
  margin-bottom: 0;
}

.card-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--accent);
  width: 450px;
  height: 60px;
  cursor: pointer;
  margin: 30px auto 0;
  text-decoration: none;
}
.card-cta-btn-text {
  font-family: 'Zen Old Mincho', serif;
  font-weight: 400;
  font-size: 30px;
  color: var(--ink);
}

.right-col {
  width: 380px;
  flex-shrink: 0;
}
.phone-mockup {
  width: 380px;
  height: 792px;
  background: #fff;
  border: 9px solid var(--ink);
  border-radius: 62px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 0 28px;
  overflow: hidden;
  flex-shrink: 0;
}
.phone-divider {
  width: 362px;
  height: 0;
  border-top: 3px solid var(--ink);
  margin-bottom: 16px;
  flex-shrink: 0;
}
.theme-cards-wrap {
  width: 100%;
  padding: 0 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  overflow: hidden;
}
.theme-card-text {
  font-family: 'Zen Old Mincho', serif;
  font-size: 20px;
  color: var(--ink);
  line-height: 30px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.phone-list-link {
  font-family: 'Zen Old Mincho', serif;
  font-weight: 500;
  font-size: 20px;
  color: var(--ink);
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  padding-right: 20px;
  width: 100%;
  flex-shrink: 0;
}

.warn-box {
  background: #fff3cd;
  border: 1px solid #ffc107;
  color: #856404;
  padding: 12px 20px;
  font-size: 15px;
  line-height: 1.6;
  margin: 0 120px 20px;
}

/* ========================================
   MOBILE  (max-width: 900px)
   ======================================== */
@media (max-width: 1350px) {
  .main-layout,
  .main-content {
    flex-direction: column;
    gap: 40px;
  }
  .main-card,
  .left-col {
    width: 100%;
  }
  .phone-mock,
  .right-col {
    width: 100%;
  }
  .phone-mock-inner,
  .phone-mockup {
    width: 100%;
    max-width: 380px;
    height: auto;
  }

  .tool-hero {
    gap: 30px;
  }

  .meta-info-box {
    width: 100%;
  }
  .grade-summary-row {
    flex-direction: column;
    min-height: auto;
  }
  .grade-badge-area {
    width: 100%;
    padding-top: 0;
    margin-top: 40px;
    margin-bottom: 40px;
  }
  .radar-wrap {
    width: 100%;
  }
  .glossary-section {
    width: 100%;
  }
  .tool-hero-icon {
    width: 300px;
    height: 300px;
  }
  .tool-name-llmo,
  .tool-name-audit {
    font-size: 150px;
  }
}

@media (max-width: 1024px) {
  .content-area {
    padding: 60px 60px 40px;
  }
  .tool-hero {
    gap: 30px;
  }
  .tool-hero-icon {
    width: 200px;
    height: 200px;
  }
  .tool-name-llmo,
  .tool-name-audit {
    font-size: 150px;
  }
}

@media (max-width: 930px) {
  .tool-hero-icon {
    width: 180px;
    height: 180px;
  }
  .tool-name-llmo,
  .tool-name-audit {
    font-size: 130px;
  }
}

@media (max-width: 765px) {
  /* Common */
  header {
    padding: 16px 20px;
    height: 80px;
  }
  .logo-svg {
    height: 30px;
  }
  .hamburger {
    width: 26px;
    height: 15px;
  }
  .deco-sq {
    width: 20px;
    height: 20px;
  }

  .cta {
    padding: 34px 20px 28px;
  }
  .cta-inner {
    width: 100%;
    gap: 20px;
  }
  .cta-text {
    font-size: 24px;
    line-height: 1.5;
    white-space: normal;
  }
  .cta-btn {
    width: 100%;
    height: auto;
    padding: 12px 24px;
    gap: 20px;
  }
  .cta-btn .label,
  .cta-btn .arrow {
    font-size: 28px;
    line-height: 1.4;
  }
  .foot-links {
    width: auto;
    gap: 28px;
  }

  .phone-title {
    font-size: 25px;
  }
  .phone-title br {
    display: none;
  }

  .tool-header {
    align-items: flex-start;
  }

  /* Tool header: list / detail → grid */
  .page--list .tool-header,
  .page--detail .tool-header {
    display: grid;
    grid-template-areas: 'bar bar' 'icon text';
    grid-template-columns: auto 1fr;
    gap: 10px;
    align-items: flex-start;
  }
  .tool-icon-placeholder {
    grid-area: icon;
    width: 70px;
    height: 70px;
  }
  .tool-title {
    display: contents;
  }
  .tool-title-bar {
    grid-area: bar;
    height: auto;
    width: auto !important;
    flex-direction: column;
    align-items: flex-start;
    background: transparent;
    padding: 0;
    gap: 0;
    margin-bottom: 12px;
  }
  .tool-title-bar span {
    margin-top: 4px;
    margin-bottom: 4px;
  }
  .tool-title-bar .title-ja {
    font-size: 25px;
    line-height: normal;
    background: var(--accent);
    padding: 3px 10px;
    white-space: nowrap;
  }
  .tool-title-bar .title-sub {
    font-size: 14px;
    line-height: 25px;
    background: var(--accent);
    padding: 3px 10px;
    white-space: nowrap;
  }
  .tool-title-en {
    grid-area: text;
    font-size: 43px;
    word-break: break-all;
  }

  /* Tool title bar: index */
  .page--index .tool-title-bar {
    height: auto;
    width: auto;
    flex-direction: column;
    align-items: flex-start;
    background: transparent;
    padding: 0;
    gap: 4px;
    margin-bottom: 20px;
  }
  .tool-title-main {
    font-size: 25px;
    line-height: normal;
    background: var(--accent);
    padding: 3px 10px;
    white-space: nowrap;
  }
  .tool-title-sub {
    font-size: 14px;
    line-height: 25px;
    background: var(--accent);
    padding: 3px 10px;
    white-space: nowrap;
  }

  /* Index */
  .content-area {
    padding: 30px 20px 60px;
    gap: 30px;
  }
  .page--list .content-area {
    gap: 24px;
  }
  .tool-header {
    align-items: center;
  }
  .page--index .tool-title-bar {
    align-self: center;
  }
  .tool-hero {
    width: 100%;
    flex-direction: row;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
  }
  .tool-name-llmo,
  .tool-name-audit {
    font-size: 60px;
  }
  .tool-name-audit {
    margin-left: 30px;
  }
  .tool-hero-icon {
    width: 115px;
    height: 115px;
    margin-left: 0;
  }
  .lead-text {
    font-size: 20px;
    text-align: center;
  }
  .sp-br {
    display: inline;
  }
  .main-layout {
    flex-direction: column;
    gap: 40px;
  }
  .main-card {
    width: 100%;
  }
  .card-form {
    padding: 20px 20px 40px;
    gap: 22px;
  }
  .form-label {
    font-size: 20px;
  }
  .form-btn {
    width: 100%;
  }
  .phone-mock {
    width: 100%;
  }
  .phone-mock-inner {
    width: 100%;
    max-width: 380px;
    height: auto;
  }
  .phone-separator {
    width: calc(100% - 24px);
  }
  .phone-link {
    justify-content: center;
  }

  /* List */
  .card-header {
    padding: 20px;
  }
  .card-header-title {
    font-size: 16px;
    white-space: nowrap;
  }
  .table-wrap {
    margin: 40px 20px 20px;
  }
  .diag-table thead th,
  .diag-table tbody td {
    padding: 12px;
    border-right: 0;
  }
  .diag-table thead th.col-rank {
    width: 84px;
  }
  .diag-table thead th.col-date {
    width: auto;
  }
  .diag-table thead th:first-child {
    text-align: center;
  }

  /* Detail */
  .page--detail .tool-header {
    padding: 0 20px;
    padding-bottom: 0;
    margin-top: 30px;
    margin-bottom: 24px;
  }
  .main-content {
    padding: 0 16px;
    flex-direction: column;
    margin-top: 40px;
    margin-bottom: 40px;
  }
  .left-col {
    width: 100%;
  }
  .card-body {
    padding: 24px;
    gap: 32px;
  }
  .grade-summary-row {
    flex-direction: column;
    min-height: auto;
  }
  .grade-badge-area {
    width: 100%;
    padding-top: 0;
    margin-top: 40px;
    margin-bottom: 40px;
  }
  .meta-info-box {
    width: 100%;
  }
  .meta-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .radar-wrap {
    width: 100%;
    height: 300px;
  }
  .subscore-row {
    flex-wrap: wrap;
    gap: 10px;
  }
  .subscore-badge {
    width: calc(33.333% - 7px);
    height: auto;
    padding: 8px 10px;
  }
  .badge-score {
    font-size: 28px;
  }
  .glossary-section {
    width: 100%;
  }
  .card-cta-btn {
    width: 100%;
    margin-top: 25px;
    margin-bottom: 35px;
  }
  .right-col {
    width: 100%;
    margin-bottom: 20px;
  }
  .phone-mockup {
    width: 100%;
    height: auto;
    border-radius: 62px;
  }
  .phone-divider {
    width: calc(100% - 24px);
  }
  .phone-list-link {
    justify-content: center;
  }
  .theme-card {
    width: 100%;
    border-radius: 20px;
    height: 70px;
  }
  .warn-box {
    margin: 0 16px 20px;
  }
}

@media (max-width: 450px) {
  .page--index .tool-title-bar {
    align-self: flex-start;
  }
  .tool-header {
    align-items: normal;
  }
  .tool-hero {
    justify-content: space-between;
    width: 100%;
  }
}
