:root {
  --bg: #f6f8f5;
  --surface: #ffffff;
  --surface-muted: #eef4f1;
  --text: #17201d;
  --muted: #65716b;
  --line: #dfe7e1;
  --primary: #0f7c72;
  --primary-dark: #095b54;
  --accent: #d58b2a;
  --accent-soft: #fff2df;
  --shadow: 0 18px 50px rgba(22, 33, 29, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;
  line-height: 1.7;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(20px, 5vw, 64px);
  background: rgba(246, 248, 245, 0.92);
  border-bottom: 1px solid rgba(223, 231, 225, 0.86);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  font-weight: 800;
  letter-spacing: 0;
}

.brand img {
  width: auto;
  height: 34px;
  max-width: min(220px, 52vw);
  object-fit: contain;
}

.site-nav {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.site-nav a:hover {
  color: var(--primary);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  min-height: calc(100vh - 70px);
  padding: clamp(48px, 7vw, 92px) clamp(20px, 5vw, 64px) clamp(36px, 5vw, 72px);
}

.hero-copy {
  max-width: 640px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 74px);
  line-height: 1.08;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.25;
}

h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.lead {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 20px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
}

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

.button.primary:hover {
  background: var(--primary-dark);
}

.button.secondary {
  background: #fff;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 34px 0 0;
}

.hero-stats div {
  padding: 14px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.hero-stats dt {
  font-size: 22px;
  font-weight: 900;
}

.hero-stats dd {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.hero-media {
  margin: 0;
}

.hero-media img {
  width: 100%;
  border-radius: 8px;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.section {
  padding: clamp(48px, 7vw, 86px) clamp(20px, 5vw, 64px);
}

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

.section-heading p:not(.eyebrow) {
  margin: 10px 0 0;
  color: var(--muted);
}

.diagnosis-section {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.diagnosis-flow {
  max-width: 1040px;
  margin: 0 0 30px;
}

.diagnosis-flow img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 36px rgba(22, 33, 29, 0.08);
}

.diagnosis-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.82fr);
  gap: 24px;
  align-items: start;
}

.diagnosis-form,
.result-panel,
.type-grid article,
.disclosure {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(22, 33, 29, 0.06);
}

.diagnosis-form {
  display: grid;
  gap: 18px;
  padding: clamp(20px, 3vw, 32px);
}

.field {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}

.field span,
.field legend {
  color: #2d3934;
  font-weight: 800;
}

select,
input[type="text"] {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  color: var(--text);
  background: #fff;
  border: 1px solid #cfdad3;
  border-radius: 8px;
  font: inherit;
}

select:focus,
input:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(15, 124, 114, 0.24);
  outline-offset: 3px;
}

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

.choice-grid label {
  display: flex;
  align-items: center;
  min-height: 48px;
  gap: 9px;
  padding: 10px 12px;
  background: #fbfcfb;
  border: 1px solid #dce5df;
  border-radius: 8px;
  font-weight: 700;
}

input[type="radio"],
input[type="checkbox"] {
  accent-color: var(--primary);
}

.submit-button {
  width: 100%;
  margin-top: 4px;
  font-size: 16px;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.result-panel {
  position: sticky;
  top: 96px;
  min-height: 430px;
  padding: clamp(20px, 3vw, 32px);
}

.result-panel h2 {
  font-size: clamp(24px, 3vw, 34px);
}

.result-panel p {
  color: var(--muted);
}

.result-badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  margin: 0 0 14px;
  color: #7a4807;
  background: var(--accent-soft);
  border: 1px solid #f0d2a9;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.result-list {
  display: grid;
  gap: 10px;
  margin: 18px 0;
  padding: 0;
  list-style: none;
}

.result-list li {
  padding: 12px 14px;
  background: var(--surface-muted);
  border-radius: 8px;
  color: #28352f;
  font-weight: 700;
}

.result-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 2px;
}

.result-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  color: var(--primary-dark);
  background: #e6f3ef;
  border: 1px solid #cde4dd;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.affiliate-box {
  margin-top: 18px;
  padding: 16px;
  background: #16211d;
  color: #f6f8f5;
  border-radius: 8px;
}

.affiliate-box strong {
  display: block;
  margin-bottom: 6px;
}

.affiliate-box p {
  margin: 0;
  color: #d4ddd8;
  font-size: 14px;
}

.affiliate-box small {
  display: block;
  margin-top: 12px;
  color: #b8c6c0;
  font-size: 12px;
  line-height: 1.6;
}

.result-detail-button {
  width: 100%;
  margin-top: 14px;
}

.service-grid {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.service-card {
  display: grid;
  gap: 6px;
  padding: 14px;
  color: #17201d;
  background: #f6f8f5;
  border: 1px solid #dce5df;
  border-radius: 8px;
}

.service-card:hover {
  border-color: #8fc8bd;
  transform: translateY(-1px);
}

.service-card span {
  width: fit-content;
  padding: 2px 8px;
  color: var(--primary-dark);
  background: #dff0ec;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
}

.service-card strong {
  margin: 0;
  color: #17201d;
  font-size: 16px;
}

.service-card p {
  color: #53635c;
  font-size: 13px;
}

.service-card em {
  color: var(--primary);
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
}

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

.type-grid article {
  padding: 20px;
}

.type-grid p {
  margin: 0;
  color: var(--muted);
}

.articles-section {
  background: #17201d;
  color: #fff;
}

.articles-section .eyebrow {
  color: #8fd9cf;
}

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

.article-list a {
  display: flex;
  align-items: center;
  min-height: 96px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  font-weight: 800;
}

.article-list a:hover {
  background: rgba(255, 255, 255, 0.14);
}

.article-more-button {
  width: fit-content;
  margin-top: 22px;
  color: #17201d;
  background: #fff;
}

.article-hero {
  padding: clamp(52px, 8vw, 112px) clamp(20px, 5vw, 64px) clamp(36px, 6vw, 72px);
  background: #17201d;
  color: #fff;
}

.article-hero .eyebrow {
  color: #8fd9cf;
}

.article-hero .lead {
  max-width: 860px;
  color: #d4ddd8;
}

.article-library-section {
  background: var(--surface);
}

.article-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.filter-button {
  min-height: 40px;
  padding: 0 14px;
  color: var(--primary-dark);
  background: #e6f3ef;
  border: 1px solid #cde4dd;
  border-radius: 999px;
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.filter-button.active,
.filter-button:hover {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
}

.article-count {
  margin-bottom: 18px;
  color: var(--muted);
  font-weight: 800;
}

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

.article-card {
  display: grid;
  gap: 10px;
  min-height: 238px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(22, 33, 29, 0.06);
}

.article-card:hover {
  border-color: #9ccdc5;
  transform: translateY(-1px);
}

.article-card span,
.article-meta span,
.article-meta a {
  width: fit-content;
  min-height: 28px;
  padding: 0 10px;
  color: var(--primary-dark);
  background: #e6f3ef;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.article-meta a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.article-meta a:hover {
  text-decoration: underline;
}

.article-card h2 {
  font-size: 21px;
}

.article-card p {
  margin: 0;
  color: var(--muted);
}

.article-card small {
  align-self: end;
  color: var(--muted);
  font-weight: 800;
}

.article-detail {
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(40px, 7vw, 88px) clamp(20px, 5vw, 40px);
}

.article-detail-header {
  margin-bottom: 36px;
}

.back-link {
  display: inline-flex;
  margin-bottom: 22px;
  color: var(--primary);
  font-weight: 900;
}

.article-detail section,
.article-cta {
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.article-body {
  display: grid;
  gap: 18px;
}

.article-body h2 {
  margin-top: 28px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.article-body ul {
  display: grid;
  gap: 10px;
  padding-left: 24px;
}

.article-link-note {
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 900;
}

.article-detail section h2,
.article-body h2,
.article-cta h2 {
  font-size: clamp(24px, 3vw, 32px);
}

.article-detail p,
.article-detail li {
  color: #3d4a44;
  font-size: 17px;
}

.article-detail ol {
  display: grid;
  gap: 10px;
  padding-left: 24px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.diagnosis-score-card {
  margin-top: 34px;
  padding: clamp(22px, 4vw, 32px);
  background:
    radial-gradient(circle at top right, rgba(255, 122, 0, 0.14), transparent 34%),
    linear-gradient(135deg, #f8fcff 0%, #fffaf4 100%);
  border: 1px solid #d9ecfa;
  border-radius: 18px;
  box-shadow: 0 16px 38px rgba(18, 109, 162, 0.1);
}

.score-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.score-card-header h2,
.score-card-header h3 {
  margin: 6px 0 0;
  color: var(--ink);
  font-size: clamp(22px, 3vw, 30px);
}

.score-kicker {
  display: inline-flex;
  width: fit-content;
  padding: 5px 10px;
  color: var(--primary-dark);
  background: #ddf4ff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.05em;
}

.score-total {
  flex: 0 0 auto;
  color: var(--accent);
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1;
}

.score-total small {
  color: var(--muted);
  font-size: 15px;
}

.score-summary,
.score-note {
  margin: 16px 0 0;
  color: var(--muted);
}

.score-grid {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.score-item {
  display: grid;
  grid-template-columns: minmax(120px, 0.8fr) minmax(120px, 1.4fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(217, 236, 250, 0.9);
  border-radius: 12px;
}

.score-item span,
.score-item b {
  color: var(--ink);
  font-weight: 900;
}

.score-meter {
  height: 10px;
  overflow: hidden;
  background: #e7f0f6;
  border-radius: 999px;
}

.score-meter span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: inherit;
}

.article-cta {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(22, 33, 29, 0.06);
}

.result-depth-section,
.result-case-section,
.result-template-section,
.result-today-section,
.result-roadmap-section,
.result-menu-section,
.result-fit-section,
.result-checklist-section,
.result-related-box,
.result-review-note {
  margin-top: 34px;
  padding: clamp(22px, 4vw, 32px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(18, 109, 162, 0.08);
}

.result-depth-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.result-depth-grid article {
  padding: 18px;
  background: #f8fcff;
  border: 1px solid #d9ecfa;
  border-radius: 12px;
}

.result-depth-grid span {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 10px;
  padding: 4px 10px;
  color: var(--primary-dark);
  background: #ddf4ff;
  border: 1px solid #bfe9ff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.result-case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.result-case-grid article {
  display: grid;
  gap: 8px;
  padding: 18px;
  background: #fff;
  border: 1px solid #d9ecfa;
  border-radius: 12px;
  align-content: start;
}

.result-case-grid span,
.proposal-box span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  width: fit-content;
  max-width: 100%;
  min-height: 32px;
  padding: 6px 12px;
  color: var(--accent);
  background: #fff1e5;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.result-case-grid p {
  margin: 0;
  font-weight: 600;
  line-height: 1.85;
}

.proposal-box {
  margin-top: 16px;
  padding: 18px 20px;
  background: #0f4668;
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(15, 70, 104, 0.12);
}

.proposal-box p {
  margin: 12px 0 0;
  color: #eef8ff;
  font-weight: 600;
  line-height: 1.8;
}

.template-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.template-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 18px;
  background: #fff;
  border: 1px solid #d9ecfa;
  border-radius: 14px;
  align-content: start;
}

.template-card span,
.today-action-header span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  width: fit-content;
  max-width: 100%;
  min-height: 32px;
  padding: 6px 12px;
  color: var(--primary-dark);
  background: #ddf4ff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.template-card pre {
  min-height: 178px;
  margin: 0;
  padding: 14px;
  overflow-x: auto;
  color: #26342f;
  background: #f8fcff;
  border: 1px solid #e4f1f9;
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.75;
  white-space: pre-wrap;
}

.result-today-section {
  background:
    radial-gradient(circle at top right, rgba(255, 122, 0, 0.16), transparent 34%),
    #0f4668;
}

.today-action-header h2 {
  margin: 10px 0 0;
  color: #fff;
}

.result-today-section p {
  color: #dff3ff;
}

.today-action-list {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.today-action-list li {
  padding: 12px 14px;
  color: #0f2735;
  background: #fff;
  border-radius: 10px;
  font-weight: 600;
  line-height: 1.7;
}

.result-depth-grid p,
.result-menu-section p,
.result-fit-section p,
.result-related-box p,
.result-review-note p {
  margin-bottom: 0;
  color: #3d4a44;
}

.result-week-plan,
.result-menu-list,
.result-check-list {
  display: grid;
  gap: 10px;
  margin-bottom: 0;
}

.result-menu-list,
.result-check-list,
.result-fit-section ul {
  padding-left: 24px;
}

.result-related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.result-related-links a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 14px;
  color: var(--primary-dark);
  background: #ddf4ff;
  border: 1px solid #bfe9ff;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 900;
}

.result-review-note {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 13px;
  background:
    radial-gradient(circle at top right, rgba(18, 109, 162, 0.1), transparent 34%),
    linear-gradient(135deg, #f8fcff 0%, #ffffff 64%, #fffaf4 100%);
  border: 1px solid #d9ecfa;
  box-shadow: 0 14px 34px rgba(18, 109, 162, 0.08);
}

.result-review-note::before {
  content: "補足情報";
  display: inline-flex;
  width: fit-content;
  padding: 5px 10px;
  color: var(--primary-dark);
  background: #ddf4ff;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.result-review-note h2 {
  margin: 0;
  color: var(--primary-ink);
}

.result-review-note p {
  margin: 0;
  color: #4c635d;
}

.result-review-note .pdf-offer-button {
  justify-self: start;
  width: fit-content;
  min-height: 46px;
  padding: 10px 18px;
  color: var(--primary-dark);
  background: #ffffff;
  border: 1px solid #bfe9ff;
  border-radius: 999px;
  box-shadow: none;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.55;
  text-align: center;
  animation: none;
  will-change: auto;
}

.result-review-note .pdf-offer-button:hover {
  color: var(--primary-dark);
  background: #f8fcff;
  transform: translateY(-1px);
}

.result-review-note small {
  display: block;
  margin-top: 0;
  color: #60748a;
  font-weight: 600;
}

.ad-slot {
  display: grid;
  place-items: center;
  min-height: 96px;
  margin: 0 auto 28px;
  padding: 18px;
  color: #63716b;
  background: #f3f7f5;
  border: 1px dashed #bfd1ca;
  border-radius: 8px;
  text-align: center;
}

.ad-slot span {
  font-size: 12px;
  font-weight: 900;
}

.ad-slot strong {
  display: block;
  color: #394842;
  font-size: 14px;
}

.ad-slot-wide {
  max-width: 970px;
}

.legal-page {
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(44px, 7vw, 86px) clamp(20px, 5vw, 40px);
}

.legal-page section {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.legal-page p,
.legal-page li {
  color: #3d4a44;
  font-size: 17px;
}

.legal-page a {
  color: var(--primary);
  font-weight: 800;
}

.article-trust-box,
.article-disclaimer {
  max-width: 860px;
  margin: 28px auto;
  padding: clamp(20px, 3vw, 28px);
  background: #f8fcff;
  border: 1px solid #d9ecfa;
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(18, 109, 162, 0.08);
}

.article-trust-box h2,
.article-disclaimer h2 {
  margin-top: 0;
  font-size: clamp(20px, 3vw, 24px);
}

.article-trust-box p,
.article-disclaimer p {
  color: #3d4a44;
}

.article-trust-box a {
  color: var(--primary-dark);
  font-weight: 900;
}

.article-outcome-box {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 18px;
  margin-top: 34px;
  padding: clamp(22px, 4vw, 32px);
  background:
    radial-gradient(circle at top right, rgba(255, 122, 0, 0.12), transparent 36%),
    linear-gradient(135deg, #f8fcff 0%, #fffaf4 100%);
  border: 1px solid #d9ecfa;
  border-radius: 18px;
  box-shadow: 0 16px 38px rgba(18, 109, 162, 0.1);
}

.article-outcome-box .eyebrow {
  margin-bottom: 8px;
}

.article-outcome-box h2,
.article-outcome-box h3 {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.article-outcome-box ul {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding-left: 22px;
}

.article-outcome-box li,
.article-outcome-box p {
  color: #31413b;
}

.article-one-action {
  align-self: stretch;
  padding: 20px;
  color: #fff;
  background:
    radial-gradient(circle at top right, rgba(255, 122, 0, 0.18), transparent 40%),
    linear-gradient(145deg, var(--primary-dark), #105c86);
  border-radius: 14px;
}

.article-one-action h3,
.article-one-action p {
  color: #fff;
}

.article-one-action p {
  margin-bottom: 0;
}

.article-deep-dive {
  margin-top: 34px;
  padding: clamp(22px, 4vw, 34px);
  background:
    radial-gradient(circle at top right, rgba(18, 109, 162, 0.12), transparent 34%),
    linear-gradient(135deg, #fffaf4 0%, #f8fcff 100%);
  border: 1px solid #d9ecfa;
  border-radius: 18px;
  box-shadow: 0 16px 38px rgba(18, 109, 162, 0.1);
}

.article-deep-dive h2 {
  margin-top: 6px;
  padding-top: 0;
  border-top: 0;
}

.deep-dive-example,
.deep-dive-sample {
  margin-top: 18px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid #d9ecfa;
  border-radius: 14px;
}

.deep-dive-example span {
  display: inline-flex;
  width: fit-content;
  padding: 4px 10px;
  color: var(--accent);
  background: #fff1e5;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.deep-dive-example p,
.deep-dive-sample li {
  color: #31413b;
}

.deep-dive-table-wrap {
  margin-top: 18px;
  overflow-x: auto;
  border: 1px solid #d9ecfa;
  border-radius: 14px;
  background: #fff;
}

.deep-dive-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
}

.deep-dive-table th,
.deep-dive-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid #e4f1f9;
  vertical-align: top;
}

.deep-dive-table th {
  color: var(--primary-dark);
  background: #ddf4ff;
  font-weight: 900;
}

.deep-dive-table tr:last-child td {
  border-bottom: 0;
}

.deep-dive-sample h3 {
  margin-top: 0;
}

.deep-dive-sample ul {
  display: grid;
  gap: 8px;
  margin-bottom: 0;
}

.article-quality-guide {
  max-width: 1120px;
  margin: 0 auto;
}

.quality-guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 26px;
}

.quality-guide-grid article,
.updated-article-links {
  padding: clamp(20px, 3vw, 28px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(18, 109, 162, 0.08);
}

.quality-guide-grid h3,
.updated-article-links h3 {
  margin-top: 0;
}

.quality-guide-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

.updated-article-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 18px;
}

.updated-article-links h3 {
  width: 100%;
  margin-bottom: 4px;
}

.updated-article-links a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 14px;
  color: var(--primary-dark);
  background: #ddf4ff;
  border: 1px solid #bfe9ff;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 900;
}

.contact-section {
  padding-top: 28px;
}

.contact-form {
  display: grid;
  gap: 22px;
  margin-top: 26px;
  padding: clamp(22px, 4vw, 36px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.contact-field {
  display: grid;
  gap: 8px;
}

.contact-field label {
  color: var(--primary-ink);
  font-weight: 800;
}

.contact-field label span {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 7px;
  color: #fff;
  background: var(--accent);
  border-radius: 4px;
  font-size: 11px;
  vertical-align: 2px;
}

.contact-field input,
.contact-field textarea {
  width: 100%;
  padding: 13px 14px;
  color: var(--text);
  background: #f8fcff;
  border: 1px solid #c9e2f3;
  border-radius: 8px;
  font: inherit;
}

.contact-field textarea {
  min-height: 190px;
  resize: vertical;
}

.contact-field input:focus,
.contact-field textarea:focus {
  border-color: var(--primary);
  outline: 3px solid rgba(28, 182, 241, 0.18);
}

.contact-submit {
  justify-self: start;
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.contact-submit:hover {
  color: #fff;
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.contact-note {
  margin: -4px 0 0;
  color: var(--muted) !important;
  font-size: 14px !important;
}

.contact-status {
  margin-top: 24px;
  padding: 14px 16px;
  border: 1px solid;
  border-radius: 8px;
  font-weight: 800;
}

.contact-status.is-success {
  color: #075d3a;
  background: #e8fbf2;
  border-color: #91d9b7;
}

.contact-status.is-error {
  color: #8a3200;
  background: #fff3e8;
  border-color: #ffb979;
}

.contact-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.legal-updated {
  margin-top: 32px;
  color: var(--muted);
  font-size: 14px;
}

.disclosure {
  max-width: 980px;
  margin: clamp(36px, 5vw, 72px) auto;
  padding: clamp(20px, 3vw, 32px);
}

.disclosure h2 {
  font-size: 24px;
}

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

.site-footer {
  padding: 24px;
  color: var(--muted);
  text-align: center;
  border-top: 1px solid var(--line);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 18px;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 800;
}

.footer-nav a:hover {
  color: var(--primary);
}

@media (max-width: 920px) {
  .hero,
  .diagnosis-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-media {
    order: -1;
  }

  .result-panel {
    position: static;
  }

  .type-grid,
  .result-depth-grid,
  .result-case-grid,
  .template-grid,
  .quality-guide-grid,
  .article-list,
  .article-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
  }

  .hero-stats,
  .choice-grid,
  .type-grid,
  .result-depth-grid,
  .result-case-grid,
  .template-grid,
  .quality-guide-grid,
  .article-list,
  .article-card-grid {
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }
}

/* AI副業診断 latest brand theme */
:root {
  --bg: #eef8ff;
  --surface: #ffffff;
  --surface-muted: #e9f6ff;
  --text: #26323f;
  --muted: #60748a;
  --line: #cfe4f4;
  --primary: #1cb6f1;
  --primary-dark: #126da2;
  --primary-ink: #0b3c5f;
  --accent: #fb7800;
  --accent-dark: #d85f00;
  --accent-soft: #fff1e4;
  --shadow: 0 20px 54px rgba(18, 109, 162, 0.16);
}

body {
  background: linear-gradient(180deg, #eaf8ff 0, #f8fcff 42%, #ffffff 100%);
  color: var(--text);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  min-height: 72px;
  padding: 12px clamp(20px, 5vw, 64px);
  background: rgba(255, 255, 255, 0.95);
  border-bottom-color: rgba(207, 228, 244, 0.9);
  box-shadow: 0 8px 28px rgba(18, 109, 162, 0.08);
  backdrop-filter: blur(16px);
}

.brand img {
  height: 38px;
}

.site-nav {
  align-items: center;
  gap: 8px;
  color: var(--primary-ink);
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
}

.site-nav a:first-child {
  color: #fff;
  background: var(--accent);
  box-shadow: 0 10px 22px rgba(251, 120, 0, 0.22);
}

.site-nav a:hover {
  color: var(--primary-dark);
  background: #e9f6ff;
}

.site-nav a:first-child:hover {
  color: #fff;
  background: var(--accent-dark);
}

.hero {
  background: linear-gradient(130deg, rgba(28, 182, 241, 0.13), rgba(255, 255, 255, 0.78) 52%, rgba(251, 120, 0, 0.09));
}

.hero-copy {
  width: 100%;
  min-width: 0;
  max-width: 640px;
}

h1,
h2,
h3,
.field span,
.field legend {
  color: var(--primary-ink);
}

.eyebrow {
  color: var(--primary-dark);
}

.button {
  border-radius: 999px;
}

.button.primary {
  color: #fff;
  background: #fb7800;
  border-color: #fb7800;
  box-shadow: 0 14px 24px rgba(251, 120, 0, 0.2);
}

.button.primary:hover {
  color: #fff;
  background: #d85f00;
}

.button.secondary {
  color: var(--primary-dark);
  background: #fff;
  border-color: rgba(28, 182, 241, 0.38);
}

.hero-stats {
  width: 100%;
  max-width: 480px;
  gap: 14px;
}

.hero-stats div {
  min-width: 0;
  padding: 0;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.hero-stats img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 12px 24px rgba(18, 109, 162, 0.12));
}

.hero-media img {
  border: 8px solid #fff;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.intent-section,
.faq-section {
  background: linear-gradient(180deg, #ffffff 0, #f0f9ff 100%);
}

.intent-grid,
.step-flow,
.faq-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
}

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

.diagnosis-card,
.step-flow article,
.faq-list article {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 220px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(18, 109, 162, 0.09);
}

.diagnosis-card::before {
  content: "";
  width: 42px;
  height: 5px;
  background: var(--primary);
  border-radius: 999px;
}

.diagnosis-card.accent-card::before,
.diagnosis-card.accent-card strong {
  background: var(--accent);
}

.diagnosis-card span,
.step-flow span {
  width: fit-content;
  padding: 3px 10px;
  color: var(--primary-dark);
  background: #ddf4ff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.diagnosis-card strong {
  width: fit-content;
  margin-top: 8px;
  padding: 8px 12px;
  color: #fff;
  background: var(--primary-dark);
  border-radius: 999px;
  font-size: 13px;
}

.intent-copy {
  display: grid;
  gap: 14px;
  width: 100%;
  margin-top: 28px;
  padding: 28px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary-ink), var(--primary-dark));
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(11, 60, 95, 0.18);
}

.intent-copy h3,
.intent-copy p {
  margin: 0;
  color: #fff;
}

.intent-copy .button {
  width: fit-content;
}

.diagnosis-section {
  background: #fff;
  border-color: var(--line);
}

.diagnosis-flow {
  width: 100%;
  max-width: none;
}

.step-flow article {
  min-height: 310px;
}

.step-flow article:nth-child(2) span {
  color: #fff;
  background: var(--accent);
}

.flow-visual {
  display: grid;
  place-items: center;
  min-height: 118px;
  padding: 18px;
  background: linear-gradient(145deg, rgba(28, 182, 241, 0.16), rgba(255, 255, 255, 0.96), rgba(251, 120, 0, 0.13));
  border: 1px solid rgba(28, 182, 241, 0.25);
  border-radius: 8px;
  text-align: center;
}

.flow-visual strong {
  color: var(--primary-ink);
  font-size: 22px;
}

.flow-visual small {
  color: var(--muted);
  font-weight: 800;
}

.step-flow p,
.intent-grid p,
.faq-list p {
  margin: 0;
  color: var(--muted);
}

.diagnosis-form,
.result-panel,
.type-grid article,
.article-card,
.article-cta,
.disclosure {
  border-color: var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(18, 109, 162, 0.08);
}

select,
input[type="text"],
.choice-grid label {
  background: #f8fcff;
  border-color: #d9ecfa;
  border-radius: 8px;
}

input[type="radio"],
input[type="checkbox"] {
  accent-color: var(--accent);
}

select:focus,
input:focus,
button:focus-visible,
a:focus-visible {
  outline-color: rgba(28, 182, 241, 0.3);
}

.result-meta span,
.article-card span,
.article-meta span,
.article-meta a,
.service-card span,
.next-article-card span {
  color: var(--primary-dark);
  background: #ddf4ff;
  border-color: #bfe9ff;
}

.affiliate-box,
.articles-section,
.article-hero,
.next-action-diagnosis {
  color: #fff;
  background: var(--primary-ink);
}

.affiliate-box p,
.affiliate-box small,
.article-hero .lead,
.next-action-diagnosis p {
  color: #d8efff;
}

.affiliate-box .service-card p {
  color: #40566b;
}

.articles-section h2,
.article-hero h1 {
  color: #fff;
}

.service-card {
  color: var(--primary-ink);
  background: #f8fcff;
  border-color: #d9ecfa;
}

.service-card strong {
  color: var(--primary-ink);
}

.service-card:hover,
.article-card:hover,
.next-article-card:hover {
  border-color: var(--primary);
}

.filter-button {
  color: var(--primary-dark);
  background: #ddf4ff;
  border-color: #bfe9ff;
}

.filter-button.active,
.filter-button:hover {
  color: #fff;
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.pdf-offer {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 16px;
  margin-top: 38px;
  padding: clamp(24px, 4vw, 36px);
  color: var(--primary-ink);
  background: linear-gradient(135deg, #ff9a2f 0%, #fff7ef 43%, #ffffff 56%, #7bd6ff 100%);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  box-shadow: 0 24px 54px rgba(18, 109, 162, 0.2);
}

.pdf-offer .eyebrow,
.pdf-offer p,
.pdf-offer small,
.pdf-offer li {
  color: #28465f;
}

.pdf-offer h2 {
  color: var(--primary-ink);
}

.pdf-offer strong {
  color: var(--primary-ink);
}

.pdf-offer-alert {
  width: fit-content;
  margin: 0;
  padding: 8px 14px;
  color: #fff !important;
  background: var(--accent);
  border-radius: 999px;
  font-size: clamp(18px, 2.4vw, 24px);
  font-weight: 900;
}

.pdf-offer-transition {
  margin: 4px 0 0;
  color: var(--accent-dark) !important;
  font-size: 20px;
  font-weight: 900;
}

.pdf-offer-benefits-title {
  margin: 6px 0 0;
  padding-bottom: 10px;
  color: var(--primary-ink);
  border-bottom: 2px solid rgba(18, 109, 162, 0.24);
  font-size: 22px;
}

.pdf-offer ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(18, 109, 162, 0.18);
  border-radius: 8px;
  list-style: none;
}

.pdf-offer-story {
  display: grid;
  gap: 8px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.66);
  border-left: 4px solid var(--primary);
  border-radius: 0 8px 8px 0;
}

.pdf-offer-story p {
  margin: 0;
}

.pdf-offer-highlight {
  display: grid;
  place-items: center;
  padding: 18px 20px;
  color: var(--primary-ink);
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid rgba(251, 120, 0, 0.32);
  border-radius: 8px;
  box-shadow: 0 14px 28px rgba(251, 120, 0, 0.14);
  text-align: center;
}

.pdf-offer-highlight strong {
  color: var(--accent-dark);
  font-size: clamp(22px, 3vw, 32px);
}

.pdf-offer-highlight span {
  color: #40566b;
  font-weight: 800;
}

.pdf-offer .pdf-offer-button {
  position: relative;
  justify-self: center;
  width: min(100%, 680px);
  min-width: 0;
  min-height: 60px;
  height: auto;
  padding: 14px 24px;
  overflow: hidden;
  color: #fff;
  background-color: var(--accent);
  background-image: linear-gradient(135deg, var(--accent), #ffb33f);
  line-height: 1.5;
  text-align: center;
}

.pdf-offer .pdf-offer-button:hover {
  color: #fff;
  background-color: #ff8a13;
  background-image: linear-gradient(135deg, #ff8a13, #ffc057);
}

.pdf-offer .pdf-offer-button::after {
  content: "";
  position: absolute;
  top: -45%;
  left: -35%;
  width: 28%;
  height: 190%;
  background: linear-gradient(110deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0));
  transform: rotate(18deg);
  animation: cta-shine 2.6s ease-in-out infinite;
}

@keyframes cta-shine {
  0% { left: -38%; }
  42%, 100% { left: 112%; }
}

@keyframes pdf-cta-breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.035); }
}

@media (prefers-reduced-motion: reduce) {
  .result-review-note .pdf-offer-button {
    animation: none;
  }
}

@media (max-width: 920px) {
  .intent-grid,
  .step-flow,
  .faq-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .intent-grid,
  .step-flow,
  .faq-list {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .article-outcome-box {
    grid-template-columns: 1fr;
  }

  .intent-copy .button {
    width: 100%;
  }
}

/* Article footer actions */
.article-next-actions {
  display: grid;
  gap: 32px;
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}

.article-detail .article-next-actions {
  margin-top: 48px;
  padding-top: 36px;
}

.article-next-actions .next-action-diagnosis {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px 28px;
  margin: 0;
  padding: clamp(26px, 4vw, 38px);
  overflow: hidden;
  background: var(--primary-ink);
  border: 0;
  border-radius: 16px;
  box-shadow: 0 18px 42px rgba(11, 60, 95, 0.18);
}

.article-next-actions .next-action-diagnosis .eyebrow,
.article-next-actions .next-action-diagnosis h2,
.article-next-actions .next-action-diagnosis p {
  grid-column: 1;
}

.article-next-actions .next-action-diagnosis .eyebrow {
  margin: 0 0 2px;
  color: #8fdcff;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.article-next-actions .next-action-diagnosis h2 {
  max-width: 16em;
  margin: 0;
  padding: 0;
  color: #ffffff;
  border: 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.35;
}

.article-next-actions .next-action-diagnosis p {
  max-width: 44em;
  margin: 2px 0 0;
  color: #d8efff;
  font-size: 15px;
  line-height: 1.8;
}

.article-next-actions .next-action-diagnosis .button {
  grid-column: 2;
  grid-row: 1 / 4;
  align-self: end;
  width: fit-content;
  min-width: 190px;
  margin: 0;
  white-space: nowrap;
}

.article-next-actions .next-action-block {
  margin: 0;
  padding: clamp(24px, 3vw, 32px);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(18, 109, 162, 0.08);
}

.article-next-actions .next-action-block > h2 {
  margin: 0 0 22px;
  padding: 0;
  color: var(--primary-ink);
  border: 0;
  font-size: clamp(23px, 3vw, 30px);
}

.next-article-grid,
.article-next-actions .service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
}

.next-article-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-content: start;
  gap: 12px;
  min-width: 0;
  min-height: 190px;
  padding: 20px;
  color: var(--primary-ink);
  background: #f8fcff;
  border: 1px solid #d9ecfa;
  border-radius: 12px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.next-article-card:hover {
  border-color: var(--primary);
  box-shadow: 0 12px 28px rgba(18, 109, 162, 0.12);
  transform: translateY(-2px);
}

.next-article-card span {
  width: fit-content;
  padding: 3px 9px;
  border: 1px solid #bfe9ff;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
}

.next-article-card strong {
  min-width: 0;
  color: var(--primary-ink);
  font-size: 16px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.next-article-card small {
  color: #60748a;
  font-size: 12px;
  font-weight: 800;
}

.article-next-actions .service-card {
  min-width: 0;
  margin: 0;
}

@media (max-width: 760px) {
  .score-card-header,
  .score-item {
    grid-template-columns: 1fr;
  }

  .score-card-header {
    align-items: stretch;
    flex-direction: column;
  }

  .score-total {
    justify-self: start;
  }

  .article-next-actions {
    gap: 22px;
    margin-top: 36px;
    padding-top: 28px;
  }

  .article-next-actions .next-action-diagnosis {
    grid-template-columns: 1fr;
    padding: 24px 20px;
  }

  .article-next-actions .next-action-diagnosis .eyebrow,
  .article-next-actions .next-action-diagnosis h2,
  .article-next-actions .next-action-diagnosis p,
  .article-next-actions .next-action-diagnosis .button {
    grid-column: 1;
    grid-row: auto;
  }

  .article-next-actions .next-action-diagnosis .button {
    width: 100%;
    min-width: 0;
    margin-top: 8px;
  }

  .article-next-actions .next-action-block {
    padding: 22px 18px;
  }

  .next-article-grid,
  .article-next-actions .service-grid {
    grid-template-columns: 1fr;
  }

  .next-article-card {
    min-height: 0;
  }
}
