/* =====================================================
   MedType CSS 完全版（構造安定・衝突ゼロ）
===================================================== */


/* =========================
   共通UI
========================= */

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
               "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  color: #222;
}

/* 汎用ボタン */
.btn-primary {
  display: inline-block;
  padding: 14px 24px;
  border-radius: 999px;
  background: linear-gradient(135deg, #2563eb, #4f8cff);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: 0.2s;
}

.btn-primary:hover {
  transform: translateY(-2px);
}

/* カード */
.card {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}


/* =========================
   ヘッダー（統一）
========================= */

.medtype-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
}

.medtype-header .header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-logo {
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  color: #1f2937;
}

.header-cta {
  padding: 10px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  color: #fff;
  text-decoration: none;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;

  text-decoration: none;
}

.site-logo-image {
  height: 52px;
  width: auto;
  display: block;
  border-radius: 12px;
}

.site-logo-text {
  color: #222;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
}

.site-logo-text ruby rt {
  font-size: 10px;
}

@media (max-width: 768px) {

  .site-logo-image {
    height: 40px;
  }

  .site-logo-text {
    font-size: 16px;
  }

}

.site-header-logo {
  display: none !important;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 20px;

  display: flex;
  justify-content: space-between;
  align-items: center;

  flex-wrap: wrap;
  gap: 14px;
}

@media (max-width: 768px) {

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-nav {
    width: 100%;

    display: flex;
    justify-content: flex-end;

    gap: 20px; 
  }

 .header-link,
  .header-cta {
    font-size: 12px;
  }

  .header-cta {
    padding: 7px 12px;
  }

}



/* =========================
   トップページ
========================= */

body.home .medtype-front {
  max-width: 980px;
  margin: 0 auto;
  padding: 24px 16px 72px;
}

/* HERO */
.hero {
  text-align: center;
  padding: 56px 16px;
}

.hero h1 {
  font-size: 2rem;
  font-weight: 700;
}

.hero span {
  color: #2f7df6;
}

/* CTA */
.cta-top {
  margin-top: 32px;
}

/* FEATURE */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 64px;
}

.feature {
  background: #f7f9fc;
  border-radius: 16px;
  padding: 24px;
}

/* =========================
   COLUMN
========================= */

.front-columns{
  margin:80px 0;
}

.section-head{
  text-align:center;
  margin-bottom:40px;
}

.section-label{
  font-size:12px;
  font-weight:700;
  letter-spacing:2px;
  color:#4f46e5;
  margin-bottom:10px;
}

.section-desc{
  color:#666;
  margin-top:10px;
}

.column-grid{
  display:grid;
  gap:24px;
}

.column-card{
  display:block;
  background:#fff;
  border-radius:20px;
  padding:28px;
  text-decoration:none;
  color:#222;
  box-shadow:0 8px 24px rgba(0,0,0,0.06);
  transition:.2s;
}

.column-card:hover{
  transform:translateY(-4px);
}

.column-category{
  display:inline-block;
  font-size:12px;
  font-weight:700;
  color:#4f46e5;
  margin-bottom:14px;
}

.column-card h3{
  font-size:24px;
  line-height:1.5;
  margin-bottom:14px;
}

.column-card p{
  color:#666;
  line-height:1.8;
}

.column-more{
  margin-top:20px;
  font-weight:700;
  color:#4f46e5;
}

/* =========================
RESULT SAMPLE
========================= */

.result-sample{
  padding:100px 20px;
  background:
  linear-gradient(
    180deg,
    #f8fafc 0%,
    #ffffff 100%
  );
}

.sample-head{
  text-align:center;
  margin-bottom:50px;
}

.sample-label{
  display:inline-block;
  padding:7px 14px;
  border-radius:999px;
  background:#dbeafe;
  color:#2563eb;
  font-size:12px;
  font-weight:700;
  letter-spacing:.08em;
  margin-bottom:16px;
}

.result-sample h2{
  font-size:38px;
  color:#0f172a;
  margin-bottom:18px;
}

.sample-desc{
  color:#64748b;
  line-height:1.9;
  font-size:16px;
}

/* CARD */

.sample-result-card{
  max-width:920px;
  margin:0 auto;
  background:#ffffff;
  border-radius:32px;
  padding:25px;
  border:1px solid #e2e8f0;
  box-shadow:
  0 20px 50px rgba(15,23,42,0.08);
}

/* TYPE */

.sample-type-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 18px;
  border-radius:999px;
  background:
  linear-gradient(
    135deg,
    #2563eb,
    #60a5fa
  );
  color:#ffffff;
  font-size:14px;
  font-weight:700;
  margin-bottom:24px;
}

.sample-result-title{
  font-size:34px;
  line-height:1.5;
  color:#0f172a;
  margin-bottom:24px;
}

.sample-result-lead{
  font-size:20px;
  line-height:2;
  color:#334155;
  margin-bottom:18px;
}

.sample-result-lead strong{
  color:#2563eb;
}

.sample-result-text{
  color:#64748b;
  line-height:2;
  font-size:15px;
  margin-bottom:34px;
}

/* GRID */

.sample-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px;
  margin-bottom:20px;
}

/* BOX */

.sample-box{
  background:#f8fafc;
  border:1px solid #e2e8f0;
  border-radius:22px;
  padding:10px;
  margin-bottom:20px;
}

.sample-box h4{
  font-size:20px;
  color:#0f172a;
  margin-bottom:18px;
}

.sample-box ul{
  padding-left:20px;
}

.sample-box li{
  margin-bottom:12px;
  line-height:1.8;
  color:#475569;
}

.sample-box p{
  color:#475569;
  line-height:2;
}

/* TRAIT */

.trait-item{
  margin-bottom:22px;
}

.trait-item:last-child{
  margin-bottom:0;
}

.trait-item strong{
  display:block;
  color:#2563eb;
  font-size:17px;
  margin-bottom:8px;
}

.trait-item span{
  color:#64748b;
  line-height:1.8;
  font-size:14px;
}

/* WARNING */

.warning-box{
  background:#fff7ed;
  border-color:#fdba74;
}

.warning-box h4{
  color:#9a3412;
}

.warning-box p{
  color:#9a3412;
}

/* PREMIUM */

.sample-premium-box{
  margin-top:10px;
  padding:36px;
  border-radius:28px;
  background:
  linear-gradient(
    135deg,
    #0f172a,
    #1e293b
  );
  color:#ffffff;
  text-align:center;
}

.premium-mini{
  display:inline-block;
  padding:6px 14px;
  border-radius:999px;
  background:rgba(255,255,255,0.12);
  font-size:11px;
  font-weight:700;
  letter-spacing:.08em;
  margin-bottom:16px;
}

.sample-premium-box h3{
  font-size:30px;
  margin-bottom:18px;
}

.sample-premium-box p{
  color:#cbd5e1;
  line-height:1.9;
  margin-bottom:24px;
}

.sample-premium-box ul{
  list-style:none;
  padding:0;
  margin:0 0 30px;
}

.sample-premium-box li{
  margin-bottom:12px;
  color:#e2e8f0;
}

.sample-premium-box a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:58px;
  padding:0 34px;
  border-radius:14px;
  background:#ffffff;
  color:#0f172a;
  font-weight:700;
  text-decoration:none;
  transition:.2s;
}

.sample-premium-box a:hover{
  transform:translateY(-2px);
}

/* SP */

@media(max-width:768px){

  .result-sample{
    padding:70px 16px;
  }

  .sample-result-card{
    padding:26px;
    border-radius:24px;
  }

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

  .result-sample h2{
    font-size:28px;
  }

  .sample-result-title{
    font-size:26px;
  }

  .sample-result-lead{
    font-size:16px;
    line-height:1.9;
  }

  .sample-premium-box h3{
    font-size:22px;
    line-height:1.5;
  }

}



.paid-preview{
  margin:70px 0;
  text-align:center;
}

.preview-badge{
  display:inline-block;
  background:#eff6ff;
  color:#2563eb;
  font-size:12px;
  font-weight:700;
  padding:6px 12px;
  border-radius:999px;
  margin-bottom:16px;
}

.paid-preview h2{
  font-size:32px;
  line-height:1.5;
  margin-bottom:16px;
}

.preview-lead{
  color:#666;
  line-height:1.9;
  margin-bottom:36px;
}

.preview-card{
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:24px;
  padding:36px;
  text-align:left;
  box-shadow:0 10px 30px rgba(0,0,0,.06);
}

.preview-section{
  margin-bottom:42px;
}

.preview-label{
  display:inline-block;
  background:#f3f4f6;
  color:#374151;
  font-size:13px;
  font-weight:700;
  padding:6px 12px;
  border-radius:999px;
  margin-bottom:18px;
}

.preview-section h3{
  font-size:28px;
  line-height:1.6;
  margin-bottom:16px;
}

.preview-section h3 span{
  color:#2563eb;
}

.preview-section p{
  color:#444;
  line-height:1.9;
}

.preview-list{
  margin-top:16px;
  padding-left:18px;
  line-height:2;
}

.axis-row{
  display:grid;
  grid-template-columns:140px 1fr 50px;
  gap:14px;
  align-items:center;
  margin-bottom:16px;
}

.axis-bar{
  height:10px;
  background:#e5e7eb;
  border-radius:999px;
  overflow:hidden;
}

.axis-fill{
  height:100%;
  background:#2563eb;
  border-radius:999px;
}

.w100{ width:100%; }
.w20{ width:20%; }

.axis-comment{
  margin-top:18px;
}

.preview-table{
  width:100%;
  border-collapse:collapse;
  margin-top:10px;
}

.preview-table th,
.preview-table td{
  border-bottom:1px solid #e5e7eb;
  padding:14px;
  text-align:left;
}

.preview-table th{
  background:#f9fafb;
}

.blur-section{
  position:relative;
  filter:blur(2px);
  opacity:.92;
}

.blur-cover{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(255,255,255,.72);
  font-size:20px;
  font-weight:700;
}


.column-page{
  background:#f7f8fb;
  padding:60px 20px;
}

.column-article{
  max-width:820px;
  margin:auto;
  background:#fff;
  padding:50px;
  border-radius:24px;
}

.column-title{
  font-size:38px;
  line-height:1.5;
  margin-bottom:20px;
}

.column-meta{
  color:#888;
  margin-bottom:30px;
}

.column-thumbnail img{
  width:100%;
  border-radius:20px;
  margin-bottom:40px;
}

.column-content{
  font-size:17px;
  line-height:2.2;
  color:#333;
}

.column-content h2{
  margin-top:60px;
  margin-bottom:24px;
  font-size:30px;
}

.column-content p{
  margin-bottom:28px;
}

.column-cta{
  margin-top:80px;
  padding:40px;
  border-radius:20px;
  background:#eef4ff;
  text-align:center;
}

/* =========================
   診断ページ
========================= */

.page-template-page-diagnosis .medtype-diagnosis {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 16px 64px;
}

/* 質問カード */
.diagnosis-question {
  background: #fff;
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

/* 選択肢（カード型） */
.choice-card {
  display: block;
  padding: 14px;
  margin-bottom: 12px;
  border-radius: 10px;
  border: 2px solid #e5e7eb;
  cursor: pointer;
  transition: 0.2s;
}

.choice-card input {
  display: none;
}

.choice-card:hover {
  border-color: #2563eb;
}

.choice-card input:checked + span {
  background: #2563eb;
  color: #fff;
  display: block;
  border-radius: 8px;
}

/* スケール（1〜5） */
.choice-scale {
  display: flex;
  gap: 6px;
}

.choice-scale label {
  flex: 1;
  text-align: center;
}

.choice-scale input {
  display: none;
}

.choice-scale span {
  display: block;
  padding: 10px 0;
  border-radius: 8px;
  border: 1px solid #ccc;
}

.choice-scale input:checked + span {
  background: #2563eb;
  color: #fff;
}

/* ボタン */
.cta-diagnosis {
  width: 100%;
  margin-top: 20px;
}


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

.medtype-result-wrap{
  padding:80px 20px;
  background:
  linear-gradient(
    180deg,
    #f8fafc 0%,
    #ffffff 100%
  );
}

/* HERO */

.result-hero{
  text-align:center;
  margin-bottom:50px;
}

.result-mini{
  display:inline-block;
  padding:7px 14px;
  border-radius:999px;
  background:#dbeafe;
  color:#2563eb;
  font-size:12px;
  font-weight:700;
  letter-spacing:.08em;
  margin-bottom:18px;
}

.result-hero h1{
  font-size:42px;
  line-height:1.5;
  color:#0f172a;
  margin-bottom:18px;
}

.result-hero h1 span{
  color:#2563eb;
}

.hero-desc{
  color:#64748b;
  line-height:1.9;
  font-size:16px;
}

/* MAIN CARD */

.result-card{
  max-width:920px;
  margin:0 auto;
  background:#ffffff;
  border-radius:32px;
  padding:40px;
  border:1px solid #e2e8f0;
  box-shadow:
  0 20px 50px rgba(15,23,42,0.08);
}

/* TYPE */

.result-type-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 18px;
  border-radius:999px;
  background:
  linear-gradient(
    135deg,
    #2563eb,
    #60a5fa
  );
  color:#ffffff;
  font-size:14px;
  font-weight:700;
  margin-bottom:24px;
}

.result-main-title{
  font-size:36px;
  line-height:1.5;
  color:#0f172a;
  margin-bottom:18px;
}

.result-main-lead{
  color:#475569;
  font-size:17px;
  line-height:2;
  margin-bottom:34px;
}

/* GRID */

.result-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px;
  margin-bottom:20px;
}

/* BOX */

.result-box{
  background:#f8fafc;
  border:1px solid #e2e8f0;
  border-radius:24px;
  padding:28px;
  margin-bottom:22px;
}

.result-box h3{
  font-size:20px;
  margin-bottom:18px;
  color:#0f172a;
}

.result-box p{
  color:#475569;
  line-height:2;
}

/* LIST */

.result-list{
  padding-left:20px;
}

.result-list li{
  margin-bottom:12px;
  color:#475569;
  line-height:1.8;
}

/* TRAIT */

.trait-card{
  margin-bottom:22px;
}

.trait-card:last-child{
  margin-bottom:0;
}

.trait-card strong{
  display:block;
  color:#2563eb;
  font-size:17px;
  margin-bottom:8px;
}

.trait-card span{
  color:#64748b;
  line-height:1.8;
  font-size:14px;
}

/* WARNING */

.warning-box{
  background:#fff7ed;
  border-color:#fdba74;
}

.warning-box h3{
  color:#9a3412;
}

.warning-box p{
  color:#9a3412;
}

/* SP */

@media(max-width:768px){

  .medtype-result-wrap{
    padding:60px 16px;
  }

  .result-card{
    padding:26px;
    border-radius:24px;
  }

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

  .result-hero h1{
    font-size:30px;
  }

  .result-main-title{
    font-size:28px;
  }

}

/* =========================
   PREMIUM CTA
========================= */

.cta-premium{
    display:block;
    text-decoration:none;
    text-align:center;

    background: linear-gradient(135deg,#111,#2b2b2b);
    color:#fff;

    padding:24px 20px;
    border-radius:18px;

    margin-top:28px;

    box-shadow:
        0 10px 30px rgba(0,0,0,.18);

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        opacity .2s ease;
}

.cta-premium:hover{
    transform:translateY(-3px);
    box-shadow:
        0 14px 38px rgba(0,0,0,.24);
    opacity:.96;
}

.cta-main{
    display:block;
    font-size:22px;
    font-weight:700;
    line-height:1.5;
    margin-bottom:8px;
}

.cta-sub{
    display:block;
    font-size:14px;
    line-height:1.7;
    color:rgba(255,255,255,.82);
    margin-bottom:18px;
}

.cta-arrow{
    display:inline-block;

    background:#fff;
    color:#111;

    font-size:15px;
    font-weight:700;

    padding:12px 22px;
    border-radius:999px;

    transition:
        transform .2s ease,
        background .2s ease;
}

.cta-premium:hover .cta-arrow{
    transform:translateX(4px);
    background:#f3f3f3;
}

.premium-cta-note{
    text-align:center;
    margin-top:12px;

    font-size:13px;
    color:#777;
    line-height:1.6;
}

/* =========================
   有料レポート（戦略版）
========================= */

.medtype-strategy {
  background: #f8fafc;
  padding: 40px 20px;
}

.medtype-strategy h1 {
  text-align: center;
  margin-bottom: 32px;
  color: #1e3a8a;
}

.strategy-section {
  background: #fff;
  border-radius: 16px;
  margin-bottom: 32px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
  overflow: hidden;
}

.strategy-section summary {
  padding: 20px;
  font-weight: 700;
  background: linear-gradient(135deg, #1e3a8a, #2f7df6);
  color: #fff;
  cursor: pointer;
}

.strategy-section > *:not(summary) {
  padding: 24px;
}

.strategy-upgrade-box{
  position: relative;
  background: #fff;
  border: 2px solid #2563eb;
  border-radius: 18px;
  padding: 28px;
  margin: 40px 0;
  box-shadow: 0 10px 30px rgba(37,99,235,0.08);
}

.strategy-upgrade-box h3{
  font-size: 24px;
  margin-bottom: 14px;
  color: #111827;
}

.strategy-upgrade-box .lead{
  color: #4b5563;
  line-height: 1.8;
  margin-bottom: 20px;
}

.strategy-list{
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.strategy-list li{
  padding: 8px 0;
  font-size: 15px;
  color: #111827;
}

.strategy-button{
  display: inline-block;
  background: #2563eb;
  color: #fff;
  text-decoration: none;
  padding: 16px 28px;
  border-radius: 12px;
  font-weight: bold;
  font-size: 16px;
  transition: .2s;
}

.strategy-button:hover{
  transform: translateY(-2px);
  opacity: .95;
}

.badge{
  position: absolute;
  top: -12px;
  left: 20px;
  background: #f59e0b;
  color: #fff;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: bold;
}

.mini{
  margin-top: 14px;
  font-size: 12px;
  color: #6b7280;
}


/* =========================
   PDFボタン
========================= */

.btn-pdf {
  display: inline-block;
  padding: 16px 36px;
  border-radius: 8px;
  background: #1e3a8a;
  color: #fff;
  text-decoration: none;
}

.pdf-button-top{
  display: flex;
  justify-content: flex-end;
  margin-bottom: 20px;
}

/* =====================================================
   MedType 診断ページ 完全対応CSS
   （このPHP/JS専用・動作保証版）
===================================================== */

/* =========================
  全体
========================= */
.medtype-diagnosis {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 16px 64px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
               "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
}

/* =========================
  STEP0（属性入力）
========================= */

.step-attr h2 {
  text-align: center;
  font-size: 22px;
  margin-bottom: 20px;
}

.attr-block {
  margin-bottom: 28px;
}

.attr-title {
  font-weight: 600;
  margin-bottom: 10px;
}

/* ラジオボタン */
.attr-btn {
  display: block;
  margin-bottom: 10px;
  cursor: pointer;
}

.attr-btn input {
  display: none;
}

.attr-btn span {
  display: block;
  padding: 14px;
  border-radius: 12px;
  border: 2px solid #e5e7eb;
  background: #fff;
  transition: 0.2s;
}

.attr-btn span:hover {
  border-color: #2563eb;
  background: #f0f6ff;
}

.attr-btn input:checked + span {
  background: #2563eb;
  color: #fff;
  border-color: #2563eb;
}

/* セレクト */
select {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: 2px solid #e5e7eb;
  font-size: 14px;
}

/* =========================
  満足度（1〜5）
========================= */

.scale-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #666;
  margin-bottom: 6px;
}

.choices {
  display: flex;
  gap: 6px;
}

.choice {
  flex: 1;
}

.choice input {
  display: none;
}

.choice .num {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  border-radius: 10px;
  border: 2px solid #e5e7eb;
  background: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}

.choice .num:hover {
  border-color: #2563eb;
  background: #f0f6ff;
}

.choice input:checked + .num {
  background: #2563eb;
  color: #fff;
  border-color: #2563eb;
}

/* =========================
  スタートボタン
========================= */

#startBtn {
  width: 100%;
  margin-top: 20px;
  padding: 16px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #2563eb, #4f8cff);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

#startBtn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* =========================
  進捗
========================= */

#progressArea {
  margin: 20px 0;
  text-align: center;
  font-size: 14px;
}

.progress-bar {
  height: 6px;
  background: #eee;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 8px;
}

#progressFill {
  height: 100%;
  width: 0;
  background: #2563eb;
  transition: 0.3s;
}

/* =========================
  質問カード
========================= */

#questionArea {
  margin-top: 20px;
}

.question {
  background: #fff;
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

.question h2 {
  font-size: 16px;
  margin-bottom: 10px;
  color: #2563eb;
}

.question p {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.6;
  margin-bottom: 20px;
}

/* =========================
  ナビボタン
========================= */

.nav-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

.nav-btn {
  width: 48%;
  padding: 12px;
  border-radius: 10px;
  border: none;
  background: #e5e7eb;
  cursor: pointer;
}

#nextBtn {
  background: #2563eb;
  color: #fff;
}

#nextBtn:disabled {
  background: #ccc;
}

/* =========================
  最終送信
========================= */

#submitArea {
  margin-top: 24px;
  text-align: center;
}

#submitArea .cta-primary {
  width: 100%;
  padding: 18px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #2563eb, #4f8cff);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
}

/* =========================
  モバイル最適化
========================= */

@media (max-width: 480px) {

  .question p {
    font-size: 15px;
  }

  .choice .num {
    height: 40px;
    font-size: 14px;
  }

  .nav-btn {
    font-size: 14px;
  }
}
/* =========================
  アニメーション
========================= */

.question {
  animation: fadeSlide 0.25s ease;
}

@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 押しやすさ強化 */
.choice span {
  min-height: 56px;
  font-size: 18px;
}

/* タップ時フィードバック */
.choice span:active {
  transform: scale(0.96);
}

.choice input:checked + .num {
  background: #2563eb;
  color: #fff;
  border-color: #2563eb;
  transform: scale(1.05);
}

/* =====================================================
   MedType 有料版説明ページ（CV特化デザイン）
===================================================== */

/* =========================
  全体
========================= */
.medtype-premium {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 16px 80px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
               "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  color: #222;
}

/* =========================
  HERO
========================= */
.medtype-premium .hero {
  text-align: center;
  margin-bottom: 40px;
}

.medtype-premium .hero h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
}

.medtype-premium .hero p {
  font-size: 15px;
  color: #555;
}

/* キャンペーン */
.campaign-box {
  margin-top: 20px;
  padding: 16px;
  border-radius: 12px;
  background: #fff7ed;
  border: 2px solid #f59e0b;
}

.campaign-box strong {
  color: #d97706;
  font-size: 18px;
}

.payment-note{
    margin-top:14px;
    font-size:12px;
    line-height:1.7;
    color:#666;
    text-align:center;
}

.save-url-box{
    margin-top:20px;
    text-align:center;
}

.save-url-btn{
    background:#fff;
    border:1px solid #d0d7de;
    color:#333;
    padding:12px 18px;
    border-radius:12px;
    font-size:14px;
    font-weight:600;
    cursor:pointer;
    transition:.2s;
    width:100%;
    max-width:320px;
}

.save-url-btn:hover{
    background:#f7f9fb;
}

.save-url-note{
    margin-top:8px;
    font-size:12px;
    color:#666;
}

/* =========================
  プラン比較
========================= */
.plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* カード */
.plan {
  background: #fff;
  border-radius: 16px;
  padding: 28px 24px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  text-align: center;
}

/* タイトル */
.plan h2 {
  font-size: 20px;
  margin-bottom: 16px;
}

.plan-lead{
  margin-top: 20px;
}

/* 価格 */
.price {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 0px;
}

/* 元価格 */
.old-price {
  text-decoration: line-through;
  font-size: 14px;
  color: #999;
  margin-right: 8px;
}

/* リスト */
.plan ul {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.plan ul li {
  padding: 8px 0;
  border-bottom: 1px solid #eee;
  font-size: 14px;
}

/* =========================
  ボタン（CV最重要）
========================= */

/* 簡易版 */
.btn-simple {
  width: 100%;
  padding: 16px;
  border-radius: 999px;
  border: none;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;

  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;

  box-shadow: 0 8px 20px rgba(34,197,94,0.3);
  transition: 0.2s;
}

.btn-simple:hover {
  transform: translateY(-2px);
}

/* 戦略版（主役） */
.plan.strategy {
  border: 2px solid #2563eb;
  transform: scale(1.03);
}

.btn-strategy {
  width: 100%;
  padding: 18px;
  border-radius: 999px;
  border: none;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;

  background: linear-gradient(135deg, #2563eb, #4f8cff);
  color: #fff;

  box-shadow: 0 10px 28px rgba(37,99,235,0.35);
  transition: 0.2s;
}

.btn-strategy:hover {
  transform: translateY(-3px);
}

/* =========================
  比較テーブル
========================= */
.comparison {
  margin-top: 60px;
  text-align: center;
}

.comparison h2 {
  margin-bottom: 20px;
}

.comparison table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.comparison th,
.comparison td {
  border: 1px solid #e5e7eb;
  padding: 12px;
}

.comparison th {
  background: #f8fafc;
}

/* =========================
  クロージング
========================= */
.closing {
  margin-top: 60px;
  text-align: center;
}

.closing h2 {
  font-size: 22px;
  margin-bottom: 12px;
}

.closing p {
  color: #555;
  line-height: 1.8;
}

/* =========================
  モバイル
========================= */
@media (max-width: 768px) {

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

  .plan.strategy {
    transform: none;
  }

  .medtype-premium .hero h1 {
    font-size: 22px;
  }
}

.promo-access-box{
    margin-top:40px;
    display:flex;
    flex-direction:column;
    gap:16px;
}

.promo-success{
    background:#ecfdf5;
    border:1px solid #86efac;
    color:#166534;
    padding:16px;
    border-radius:16px;
    font-weight:700;
    text-align:center;
}

.promo-access-btn{
    display:block;
    width:100%;
    text-align:center;
    padding:18px 20px;
    border-radius:18px;
    text-decoration:none;
    font-weight:700;
    transition:.2s;
    box-sizing:border-box;
}

.promo-access-btn:hover{
    transform:translateY(-2px);
}

.promo-access-btn.simple{
    background:#2563eb;
    color:#fff;
}

.promo-access-btn.strategy{
    background:#111827;
    color:#fff;
}

/* =========================
  有料簡易版（ライトUI）
========================= */

.premium-report {
  max-width: 820px;
  margin: 0 auto;
  padding: 24px 16px 60px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
}

/* タイトル */
.premium-report h1 {
  font-size: 22px;
  margin-bottom: 20px;
  font-weight: 600;
  text-align: center;
}

/* セクション */
.premium-section {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  margin-bottom: 14px;
  background: #fff;
}

/* 見出し */
.premium-section summary {
  padding: 14px;
  font-weight: 600;
  cursor: pointer;
  background: #f9fafb;
}

/* 開いたとき */
.premium-section[open] summary {
  background: #eef2ff;
}

/* 中身 */
.premium-section > *:not(summary) {
  padding: 16px;
}

/* PDFボタン */
.pdf-button,
.pdf-button-outline {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
}

.pdf-button {
  background: #4f46e5;
  color: #fff;
}

.pdf-button-outline {
  border: 1px solid #4f46e5;
  color: #4f46e5;
}

.pdf-button-wrapper {
  text-align: center;
  margin-top: 40px;
}

.pdf-note {
  font-size: 12px;
  color: #666;
  margin-top: 8px;
}

/* =========================
  MedType 戦略版レポートUI
========================= */

.medtype-report {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 20px 80px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.8;
  background: #f8fafc;
}

/* タイトル */
.medtype-report h1 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 28px;
  text-align: center;
}

/* =========================
  結論ボックス（最重要）
========================= */
.report-summary-box {
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  color: #fff;
  padding: 24px;
  border-radius: 16px;
  margin-bottom: 28px;
  box-shadow: 0 10px 30px rgba(79,70,229,0.2);
}

.report-summary-box h2 {
  font-size: 18px;
  margin-bottom: 10px;
}

.report-summary-box p {
  font-size: 15px;
}

/* =========================
  セクション
========================= */
.report-section {
  margin-bottom: 18px;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 18px rgba(0,0,0,0.05);
  transition: all 0.25s ease;
}

/* ホバーで浮く */
.report-section:hover {
  transform: translateY(-2px);
}

/* summary */
.report-section summary {
  padding: 16px 18px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  position: relative;
  font-size: 15px;
  background: #ffffff;
  border-bottom: 1px solid #eee;
}

/* 矢印消す */
.report-section summary::-webkit-details-marker {
  display: none;
}

/* カスタム矢印 */
.report-section summary::after {
  content: "＋";
  position: absolute;
  right: 16px;
  font-size: 18px;
  transition: 0.2s;
}

.report-section[open] summary::after {
  content: "−";
}

/* 本文 */
.section-body {
  padding: 18px;
  font-size: 14px;
  color: #333;
}

/* =========================
  強調セクション
========================= */
.section-important {
  border-left: 4px solid #4f46e5;
}

.section-important summary {
  background: #eef2ff;
}

/* =========================
  注意セクション
========================= */
.section-warning {
  border-left: 4px solid #ef4444;
}

.section-warning summary {
  background: #fef2f2;
}

/* =========================
  カード（内部で使う用）
========================= */
.strategy-card {
  background: #fff;
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}

/* =========================
  見出し（中）
========================= */
.strategy-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
  border-left: 4px solid #4f46e5;
  padding-left: 10px;
}

/* =========================
  スコアバー
========================= */
.score-bar {
  height: 8px;
  background: #e5e7eb;
  border-radius: 6px;
  margin-top: 6px;
}

.score-fill {
  height: 100%;
  background: #4f46e5;
  border-radius: 6px;
}

/* =========================
  リスト
========================= */
.medtype-report ul {
  padding-left: 18px;
}

.medtype-report li {
  margin-bottom: 6px;
}

/* =========================
  モバイル最適化
========================= */
@media (max-width: 768px) {

  .medtype-report {
    padding: 20px 14px 60px;
  }

  .medtype-report h1 {
    font-size: 20px;
  }

  .report-summary-box {
    padding: 18px;
  }

  .report-section summary {
    font-size: 14px;
  }

}

/* ===== リスト崩れ修正 ===== */
ul, ol {
  padding-left: 1.4em;
  margin: 0;
}

li {
  line-height: 1.7;
}

/* 番号がはみ出ないように */
ol {
  list-style-position: inside;
}

/* ===== STEPS 洗練UI ===== */
.steps {
  display: grid;
  gap: 20px;
  margin-top: 40px;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.step-number {
  min-width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #111;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-content h4 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 600;
}

.step-content p {
  margin: 0;
  font-size: 14px;
  color: #555;
}

.features {
  display: grid;
  gap: 20px;
  margin-top: 40px;
}

.feature {
  padding: 20px;
  border: 1px solid #eee;
  border-radius: 12px;
  background: #fafafa;
}

.feature h3 {
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 600;
}

.feature p {
  margin: 0;
  font-size: 14px;
  color: #555;
}

.testimonials {
  margin-top: 60px;
}

.testimonial-list {
  display: grid;
  gap: 20px;
  margin-top: 20px;
}

.testimonial {
  padding: 20px;
  border-radius: 12px;
  background: #f7f7f7;
  font-size: 14px;
  line-height: 1.7;
}

.testimonial .user {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  color: #888;
}

.hero {
  text-align: center;
  padding: 60px 20px 40px;
}

.hero h1 {
  font-size: 24px;
  line-height: 1.6;
  font-weight: 700;
}

.hero h1 span {
  color: #0073aa;
}

.hero p {
  margin-top: 16px;
  font-size: 14px;
  color: #555;
}

.cta-primary {
  display: inline-block;
  margin-top: 24px;
  padding: 14px 24px;
  background: #0073aa;
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
}

.cta-note {
  margin-top: 10px;
  font-size: 12px;
  color: #888;
}

.cta-legal-note {
  margin-top: 12px;
  font-size: 11px;
  color: #888;
  text-align: center;
}

.cta-legal-note a {
  text-decoration: underline;
}

/* =========================
  追加質問セクション
========================= */
#extraStep {
  max-width: 680px;
  margin: 0 auto;
  padding: 32px 20px;
  text-align: center;
  animation: fadeIn 0.4s ease;
}

#extraStep h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

#extraStep .note {
  font-size: 13px;
  color: #888;
  margin-bottom: 24px;
}

/* ブロック */
#extraStep .attr-block {
  margin-bottom: 28px;
  text-align: left;
}

#extraStep .attr-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
}

/* ラジオボタン横並び */
#extraStep label {
  display: inline-block;
  margin: 6px 10px 6px 0;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid #ddd;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 14px;
}

/* ホバー */
#extraStep label:hover {
  background: #f7f9fc;
}

/* 選択状態 */
#extraStep input[type="radio"]:checked + span,
#extraStep label:has(input:checked) {
  background: #eaf2ff;
  border-color: #4a7cff;
  color: #2a4fd7;
}

/* ボタン */
#extraStep .cta-primary {
  width: 100%;
  margin-top: 16px;
}

#extraStep .nav-btn {
  margin-top: 12px;
  background: none;
  border: none;
  color: #888;
  cursor: pointer;
}

/* アニメーション */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ラジオを完全に隠す */
#extraStep input[type="radio"] {
  display: none;
}

/* ボタン化 */
#extraStep label {
  display: inline-block;
  margin: 6px 10px 6px 0;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid #ddd;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 14px;
  background: #fff;
}

/* ホバー */
#extraStep label:hover {
  background: #f7f9fc;
}

/* 選択状態（ここが本体） */
#extraStep label:has(input:checked) {
  background: #4a7cff;
  border-color: #4a7cff;
  color: #fff;
  font-weight: 500;
  transform: translateY(-1px);
}

/* =========================
   FOOTER
========================= */

.medtype-footer{
  background:#111827;
  color:#cbd5e1;
  padding:50px 20px;
  margin-top:80px;
}

.medtype-footer .footer-inner{
  max-width:900px;
  margin:0 auto;
  text-align:center;
}

.footer-logo{
  font-size:26px;
  font-weight:700;
  color:#fff;
  margin-bottom:14px;
}

.footer-description{
  max-width:720px;
  margin:0 auto 24px;
  font-size:14px;
  line-height:1.9;
  color:#94a3b8;
}

.footer-note{
  font-size:13px;
  line-height:1.8;
  color:#94a3b8;
  margin-bottom:26px;
}

.footer-links{
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:18px;
  margin-bottom:20px;
}

.footer-links a{
  color:#e2e8f0;
  text-decoration:none;
  font-size:14px;
  transition:.2s;
}

.footer-links a:hover{
  opacity:.7;
}

.footer-sub-links{
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:16px;
  margin-bottom:24px;
}

.footer-sub-links a{
  color:#94a3b8;
  text-decoration:none;
  font-size:13px;
}

.footer-copy{
  font-size:12px;
  color:#64748b;
}

.about-workmt {
  padding: 80px 20px;
  background: #f8fafc;
}

.about-inner {
  max-width: 900px;
  margin: 0 auto;
}

.about-head {
  text-align: center;
  margin-bottom: 70px;
}

.about-label {
  display: inline-block;
  padding: 6px 14px;
  background: #e0f2fe;
  color: #0284c7;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  margin-bottom: 20px;
}

.about-head h1 {
  font-size: 42px;
  line-height: 1.4;
  margin-bottom: 24px;
  color: #0f172a;
}

.about-lead {
  font-size: 18px;
  line-height: 2;
  color: #475569;
}

.about-section {
  margin-bottom: 70px;
}

.about-section h2 {
  font-size: 28px;
  margin-bottom: 24px;
  color: #0f172a;
}

.about-section p {
  font-size: 16px;
  line-height: 2;
  color: #334155;
  margin-bottom: 20px;
}

.about-list {
  padding-left: 20px;
  margin-bottom: 24px;
}

.about-list li {
  margin-bottom: 12px;
  line-height: 1.8;
  color: #334155;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
  gap: 18px;
}

.about-card {
  background: white;
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  font-weight: 700;
  color: #0f172a;
  box-shadow: 0 10px 30px rgba(0,0,0,.05);
}

.about-cta {
  background: white;
  border-radius: 24px;
  padding: 50px 30px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0,0,0,.06);
}

.about-cta h2 {
  font-size: 32px;
  margin-bottom: 20px;
  color: #0f172a;
}

.about-cta p {
  font-size: 16px;
  line-height: 1.8;
  color: #475569;
  margin-bottom: 32px;
}

.about-btn {
  display: inline-block;
  background: linear-gradient(135deg,#0ea5e9,#2563eb);
  color: white;
  padding: 18px 34px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: .25s;
}

.about-btn:hover {
  transform: translateY(-2px);
  opacity: .9;
}

@media (max-width: 768px) {

  .about-workmt {
    padding: 60px 20px;
  }

  .about-head h1 {
    font-size: 32px;
  }

  .about-section h2 {
    font-size: 24px;
  }

  .about-cta h2 {
    font-size: 26px;
  }

}