body{background:#F8FCFE;}
/* =============================================
   TOP MV / ファーストビュー
============================================= */
.mv{
  background-color:#EAF7FD;
  position:relative;
  overflow:hidden;
  display:flex;
  align-items:center;
  height:541px;
}
.mv .container{
  position:relative;
  width:100%;
  height:100%;
  margin:0 auto;
  padding:0;
}
.mv-subtitle,
.mv-title,
.mv-catch{
  position:absolute;
  left:18%;
  z-index:2;
}
.mv-subtitle{
  top:10%;
  display:inline-flex;
  align-items:center;
  gap:2px;
  background:#1f9d55;
  color:#fff;
  font-size:.95rem;
  font-weight:700;
  padding:7px 20px 7px 12px;
  border-radius:999px;
  box-shadow:0 6px 16px rgba(46,168,213,.22);
}
.mv-subtitle svg{
  width:20px;
  height:20px;
  fill:currentColor;
  flex:none;
  filter:drop-shadow(0 1px 1px rgba(0,0,0,.15));
  opacity:.95;
}
.mv-title{
  top:18%;
  font-size:4.5rem;
  color:#0a2d4a;
  font-weight:900;
  line-height:1.2;
  margin:0;
}
.mv-catch{
  top:55%;
  max-width:480px;
  color:#0a2d4a;
  font-size:1rem;
  font-weight:600;
  line-height:1.8;
  margin:0;
}
.mv-title,.mv-catch{
text-shadow:
  1px 1px 0 #fff,
 -1px 1px 0 #fff,
  1px -1px 0 #fff,
 -1px -1px 0 #fff,
  1px 0 0 #fff,
 -1px 0 0 #fff,
  0 1px 0 #fff,
  0 -1px 0 #fff;
}
.mv-person{
  position:absolute;
  inset:0;
  z-index:1;
}
.mv-person img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  display:block;
}
/* =============================================
   共通レイアウト
============================================= */
main{padding:0;}
#ranking,#usage,#prompt,#caution,#flow,#links,
#kouka,#erabi,#tokucho,#fukusayo,#nomiawase,#tsukakata,
#soukou,#ichihan,#shohou,#megusuri,#tenbi,#nemuku,#kodomo,#supple,
#megusuri-ichihan,#megusuri-shohou,#tenbi-ichihan,#tenbi-shohou,
#symptom,#diag,
#faq,#matome{scroll-margin-top:90px!important;}

.usuao{color: #2EA8D5;}
/* =============================================
   本文（見出し背景色のみ common.css を上書き）
============================================= */
.simple-body h2{
  background:#EEF7FC;
}
h2#soukou,h2#ichihan,h2#shohou,h2#megusuri,h2#tenbi,h2#nemuku,h2#kodomo,h2#supple{display: flex;align-items: center;}
/* =============================================
   比較表
============================================= */
.compare-table-wrap,
.table-scroll{
  width:100%;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
}
.compare-table{
  width:auto;
  min-width:100%;
  border-collapse:collapse;
  margin-bottom:24px;
}
.compare-table th,
.compare-table td{
  border:1px solid var(--color-border);
  vertical-align:middle;
  white-space:nowrap;
}
.compare-table th{
  background:var(--color-main);
  color:#fff;
  font-size:.8rem;
  font-weight:700;
  text-align:center;
  padding:10px 8px;
}
.compare-table td{font-size:1rem; padding:10px 6px;}
.compare-table th:first-child{background:var(--color-dark); text-align: left; min-width:90px;}
.compare-table td:first-child{
  background:var(--color-bg);
  font-weight:700;
  text-align:left;
  white-space:normal;
}
.compare-table tr:nth-child(even) td{background:#f9fdff;}.compare-table .best{color:var(--color-accent);font-weight:900;}

/* 薬名リンク（各薬ページへ。ページがない薬はリンクなしのプレーンテキスト） */
.compare-table td:first-child a.drug-link{
  color:var(--color-dark);
  text-decoration:none;
}
.compare-table td:first-child a.drug-link:hover{
  color:var(--color-main);
  text-decoration:underline;
}

/* 早見表（◎〇△×比較）: 症状5項目は均等・最小幅、薬名列を広く */
.compare-table.hayami-table{table-layout:fixed;}
.compare-table.hayami-table th:first-child,
.compare-table.hayami-table td:first-child{width:33%;}/*40%*/
.compare-table.hayami-table th:not(:first-child),
.compare-table.hayami-table td:not(:first-child){width:10%;}
.compare-table .tc-best{font-weight:bold!important; color:green;}

/* カテゴリ別テーブル見出し（左端セルのみ色分け、右側は共通の水色のまま） */
.compare-table.cat-soukou th:first-child{background:#2F6FB3;}
.compare-table.cat-ichihan th:first-child{background:#43A047;}
.compare-table.cat-shohou th:first-child{background:#6A4FB3;}
.compare-table.cat-megusuri th:first-child{background:#EC5B8C;}
.compare-table.cat-tenbi th:first-child{background:#21A8B8;}
.compare-table.cat-nemuku th:first-child{background:#4A90E2;}
.compare-table.cat-kodomo th:first-child{background:#F39C12;}
.compare-table.cat-supple th:first-child{background:#8D6E63;}

.compare-table.cat-soukou td:nth-child(2),
.compare-table.cat-soukou td:nth-child(3),
.compare-table.cat-soukou td:nth-child(4),
.compare-table.cat-soukou td:nth-child(5),
.compare-table.cat-soukou td:nth-child(6),
.compare-table.cat-soukou td:nth-child(7),
.compare-table.cat-ichihan td:nth-child(2),
.compare-table.cat-ichihan td:nth-child(3),
.compare-table.cat-ichihan td:nth-child(4),
.compare-table.cat-ichihan td:nth-child(5),
.compare-table.cat-ichihan td:nth-child(6),
.compare-table.cat-ichihan td:nth-child(7),
.compare-table.cat-ichihan td:nth-child(8),
.compare-table.cat-ichihan td:nth-child(9),
.compare-table.cat-shohou td:nth-child(2),
.compare-table.cat-shohou td:nth-child(3),
.compare-table.cat-shohou td:nth-child(4),
.compare-table.cat-shohou td:nth-child(5),
.compare-table.cat-shohou td:nth-child(6),
.compare-table.cat-shohou td:nth-child(7),
.compare-table.cat-megusuri td:nth-child(2),
.compare-table.cat-megusuri td:nth-child(3),
.compare-table.cat-megusuri td:nth-child(4),
.compare-table.cat-tenbi td:nth-child(2),
.compare-table.cat-tenbi td:nth-child(3),
.compare-table.cat-tenbi td:nth-child(4),
.compare-table.cat-nemuku td:nth-child(2),
.compare-table.cat-nemuku td:nth-child(3)
{text-align: center;font-size:1.4rem;
}
.compare-table.cat-soukou td:nth-child(8),
.compare-table.cat-soukou td:nth-child(9),
.compare-table.cat-ichihan td:nth-child(8),
.compare-table.cat-ichihan td:nth-child(9)
{font-size:1rem;}

#faq h3,#matome h3,#faq p,#matome p{width:96%; margin: 2% auto}

/* =============================================
   症状から比較を探す
============================================= */
.symptom-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:16px;
}
.symptom-card{
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  gap:6px;
  background:#fff;
  border:1px solid var(--color-border);
  border-radius:12px;
  padding:22px 12px;
  color:var(--color-text);
  transition:box-shadow .2s;
}
.symptom-card:hover{box-shadow:var(--shadow-hover);color:var(--color-text);}

.symptom-label{font-weight:900;font-size:.95rem;color:var(--color-dark);}
.symptom-more{font-size:.78rem;color:var(--color-main);}

/* =============================================
   診断・ランキング CTA
============================================= */
.cta-mid-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:8px;
}
.cta-mid-grid a{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:60px;
  background:#1f9d55;
  color:#fff;
  font-weight:900;
  font-size:1rem;
  border-radius:10px;
  text-align:center;
  padding:10px 0px ;
  transition:background .2s;
}
.cta-mid-grid a:hover{background:#178048;color:#fff;}

.cta-small-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:10px;
}
.cta-small-grid a{
  display:block;
  text-align:center;
  padding:12px 8px;
  border:1px solid var(--color-border);
  border-radius:8px;
  color:var(--color-main);
  font-weight:700;
  font-size:.85rem;
  transition:background .2s;
}
.cta-small-grid a:hover{background:#f7fbfe;}

@media (max-width:680px){
  .symptom-grid{grid-template-columns:repeat(2,1fr);}
  .cta-mid-grid{grid-template-columns:1fr;}
  .cta-small-grid{grid-template-columns:repeat(2,1fr);}
}

/* =============================================
   比較表 星評価カラー（CSSで色分け・絵文字は使わない）
============================================= */
.compare-table td .star{font-weight:700;letter-spacing:1px;}
.star-g{color:#1f9d55;}
.star-y{color:#e6b800;}
.star-o{color:#e67e22;}
.star-r{color:#e74c3c;}

/* =============================================
   結局どれ？ おすすめピックカード
============================================= */
.pick-cards{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
  margin:20px 0 32px;
}

.pick-card{
  position:relative;
  padding:18px 20px;
  border-radius:12px;
  border:1px solid #dbe8f1;
  overflow:hidden;
  transition:.25s;
}

.pick-card:hover{
  transform:translateY(-3px);
  box-shadow:0 8px 20px rgba(0,0,0,.08);
}

.pick-card::before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  width:6px;
  height:100%;
}

.pick-red{
  background:linear-gradient(135deg,#fff5f5,#ffe8e8);
}
.pick-red::before{
  background:#ef5350;
}
.pick-red .pick-card-label{
  background:#ef5350;
  color:#fff;
}
.pick-blue{
  background:linear-gradient(135deg,#f5f9ff,#e8f3ff);
}
.pick-blue::before{
  background:#3b82f6;
}
.pick-blue .pick-card-label{
  background:#3b82f6;
  color:#fff;
}

.pick-green{
   background:linear-gradient(135deg,#f4fff6,#e5f8ea);
}
.pick-green::before{
  background:#2e7d32;
}
.pick-green .pick-card-label{
  background:#2e7d32;
  color:#fff;
}

.pick-card-label{
  display:inline-block;
  padding:5px 12px;
  margin-bottom:10px;
  border-radius:999px;
  font-size:.82rem;
  font-weight:700;
  line-height:1;
}

.pick-card-drug{
  display:block;
  margin:8px 0;
  font-size:1.3rem;
  font-weight:900;
  color:#0a2d4a;
  text-decoration:none;
  transition:.2s;
}

.pick-card-drug:hover{
  color:#2EA8D5;
}

.pick-card-desc{
  font-size:.88rem;
  line-height:1.7;
  color:#555;
}

@media (max-width:680px){
  .pick-cards{grid-template-columns:1fr;}
}

/* =============================================
   Responsive
============================================= */
@media (min-width:901px) and (max-width:1366px){
  .mv{height:450px;
  }
  .mv-title,
  .mv-subtitle,.mv-catch{
    left:8%;
  }
.mv-title{
  top:22%;
  font-size:3.5rem;
  }

  .side-link{
    gap:10px;
    padding:10px 4px;
  }}
@media (max-width:900px){
  .mv{
    height:350px;
    font-size:3.5rem;
  }

  .mv-subtitle{
    font-size:.75rem;
    padding:6px 18px 6px 10px;
  }
  .mv-title{
    top:22%;
    font-size:2.8rem;
  }
  .mv-title,
  .mv-subtitle, .mv-catch{
    left:8%;
  }

  .mv-catch{
    top:60%;
    font-size:.9rem;
  }

.pick-card{
  padding:12px 14px;
}
.pick-card-drug{
  font-size:1.1rem;
}
.pick-card-desc{
  line-height:1.5;margin-bottom: 0!important;
}
.sidebar-title{
  padding:12px;
  font-size:0.8rem;
}

  .air-icon-grid,
  .air-maker-grid,.kalam2{
    grid-template-columns:repeat(2,1fr);
  }
  .side-diagnosis{
    padding:16px 12px;
  }
  .diag-title{
    font-size:1rem;
    gap:6px;
  }
  .diag-text{
    font-size:.78rem;
    line-height:1.5;
  }
  .diag-btn{
    padding:10px;
    font-size:.82rem;
  }
  .side-link{
    gap:4px;
    padding:10px 4px;
  }
  .side-link strong{
    font-size:.85rem;
  }
  .side-link p{
    font-size:.65rem;
  }}
@media (max-width:680px){
  .mv{
    height:auto;/*重要*/
    min-height:0;
  }
  .mv-person{
  position:relative;/*重要*/
  }
  .mv-subtitle,
  .mv-title,.mv-catch{
    left:5%;
  }
 
  .mv-subtitle{
    top:6%;
    font-size:3vw;
  }
  .mv-title{
    top:15%;
    width:90%;
    white-space:normal;
    font-size:15vw;
    line-height:1.2;
  }
  .mv-title .usuao{ font-size: 13vw;}
  .mv-catch{
    top:45%;
    width:51%;
    font-size:4vw;
  }

  .simple-wrap,
  .related-grid,
  .air-icon-grid,
  .air-point-grid,
  .air-maker-grid{
    grid-template-columns:1fr;
  }

.simple-title{
 font-size:1.25rem;
}
  .air-lead-box,
  .air-point-card,
  .air-maker-card,
  .air-aff-card{
    padding:20px;
  }

.sidebar-title{
  padding:16px;
  font-size:1.1rem;
  text-align: center;
  /*background:#eef8fd;*/
}
  .side-diagnosis{
    margin-bottom:36px;
  }
  .diag-title{
    font-size:1.4rem;
    gap:6px;
    margin-bottom:14px;
  }
  .diag-text{
    font-size:1.3rem;
    line-height:1.2;
    margin-bottom:18px;
  }
  .diag-btn{
    padding:10px;
    font-size:1.4rem;
  }
  .side-link{
    gap:10px;
    padding:16px;
  }
  .side-link strong{
    font-size:1.2rem;
  }
  .side-link p{
    font-size:.78rem;
  }
.compare-table th{
  font-size:.7rem;
  padding:10px 4px;
}
.compare-table td{font-size:1.05rem; padding:10px 4px;}

}