/* ================================================================
   writing-task1/academic-task1 — local.css
   ================================================================ */

/* 採点基準カード 2列グリッド */
.at1-criteria-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .9rem;
  margin-bottom: 1.3rem;
}
.at1-criteria-grid .a-method { margin: 0; }

/* テーブル横スクロールラッパー */
.at1-scroll {
  overflow-x: auto;
  margin: 1rem 0 1.2rem;
  -webkit-overflow-scrolling: touch;
}
.at1-scroll > table { min-width: 400px; }

/* グラフ種類比較テーブル */
.at1-graph-type {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
}
.at1-graph-type thead tr {
  background: var(--blue);
  color: #fff;
}
.at1-graph-type th {
  padding: .6rem .9rem;
  font-weight: 700;
  text-align: center;
  font-size: .82rem;
  letter-spacing: .04em;
}
.at1-graph-type tbody th {
  background: rgba(4,63,109,.06);
  color: var(--blue);
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
  font-size: .82rem;
}
.at1-graph-type td {
  padding: .55rem .9rem;
  border: 1px solid rgba(70,162,218,.18);
  font-size: .85rem;
  line-height: 1.6;
  color: var(--black);
  vertical-align: top;
}
.at1-graph-type tbody tr:nth-child(even) td { background: rgba(70,162,218,.03); }

/* キーポイント 2列ボックス */
.at1-key-boxes {
  display: flex;
  gap: .9rem;
  margin: 1rem 0 1.2rem;
}
.at1-key-box {
  flex: 1;
  background: rgba(4,63,109,.05);
  border: 1.5px solid rgba(70,162,218,.25);
  border-radius: 8px;
  padding: .75rem 1rem;
}
.at1-key-box__label {
  font-size: .78rem;
  font-weight: 700;
  color: var(--lb);
  font-family: 'Raleway', sans-serif;
  margin-bottom: .3rem;
}
.at1-key-box__text {
  font-size: .88rem;
  color: var(--blue);
  font-weight: 600;
  line-height: 1.55;
}

/* 2列語彙比較テーブル（増える/減る, 多い/少ない） */
.at1-2col-vocab {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
}
.at1-2col-vocab thead tr {
  background: var(--blue);
  color: #fff;
}
.at1-2col-vocab th {
  padding: .55rem 1rem;
  font-weight: 700;
  text-align: center;
  font-size: .82rem;
}
.at1-2col-vocab td {
  padding: .4rem 1rem;
  border-bottom: 1px solid rgba(0,0,0,.05);
  text-align: left;
  color: var(--blue);
  font-weight: 500;
}
.at1-vocab-cat td {
  background: rgba(4,63,109,.06);
  font-size: .75rem;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: .05em;
  padding: .4rem 1rem .35rem;
  border-bottom: 1px solid rgba(70,162,218,.18);
}
.at1-2col-vocab tbody tr:hover td { background: rgba(70,162,218,.06); transition: background .15s; }

/* 表現グループDL */
.at1-expr-dl {
  margin: .6rem 0 1.2rem;
  border: 1px solid rgba(70,162,218,.18);
  border-radius: 8px;
  overflow: hidden;
}
.at1-expr-dl dt {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--blue);
  background: rgba(4,63,109,.06);
  padding: .4rem 1rem;
  font-family: 'Raleway', sans-serif;
  margin: 0;
  border-top: 1px solid rgba(70,162,218,.18);
}
.at1-expr-dl dt:first-child { border-top: none; }
.at1-expr-dl dd {
  padding: .3rem 1rem;
  font-size: .88rem;
  color: var(--black);
  line-height: 1.65;
  border-bottom: 1px solid rgba(0,0,0,.04);
  margin: 0;
}
.at1-expr-dl > dd:last-child { border-bottom: none; }

/* チャート・グラフ画像 */
.at1-chart-img {
  display: block;
  width: 100%;
  max-width: 580px;
  margin: .8rem auto 1.2rem;
  border-radius: 8px;
  border: 1px solid rgba(70,162,218,.2);
}

/* データテーブル（インフルエンザ） */
.at1-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .83rem;
}
.at1-data-table caption {
  caption-side: top;
  font-size: .75rem;
  color: var(--gray3);
  text-align: left;
  padding-bottom: .4rem;
}
.at1-data-table thead tr {
  background: var(--blue);
  color: #fff;
}
.at1-data-table th {
  padding: .5rem .7rem;
  font-weight: 700;
  text-align: center;
  font-size: .78rem;
  border: 1px solid rgba(255,255,255,.2);
}
.at1-data-table td {
  padding: .45rem .7rem;
  text-align: center;
  border: 1px solid rgba(70,162,218,.18);
  font-weight: 500;
}
.at1-data-table tbody tr:nth-child(even) td { background: rgba(70,162,218,.04); }
.at1-data-table tbody td:first-child {
  font-weight: 700;
  color: var(--blue);
}

/* ボディ構成比較テーブル（地図） */
.at1-body-struct {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
}
.at1-body-struct thead tr {
  background: var(--blue);
  color: #fff;
}
.at1-body-struct th {
  padding: .55rem .9rem;
  font-weight: 700;
  text-align: center;
  font-size: .82rem;
}
.at1-body-struct tbody th {
  background: rgba(4,63,109,.06);
  color: var(--blue);
  font-weight: 700;
  font-size: .82rem;
  white-space: nowrap;
  padding: .5rem .9rem;
}
.at1-body-struct td {
  padding: .5rem .9rem;
  border: 1px solid rgba(70,162,218,.18);
  font-size: .85rem;
  line-height: 1.55;
}
.at1-body-struct tbody tr:nth-child(even) td { background: rgba(70,162,218,.03); }

/* セクション内小見出し（h3相当） */
.at1-h3 {
  font-size: .93rem;
  font-weight: 700;
  color: var(--blue);
  margin: 1.6rem 0 .5rem;
  padding-left: .75rem;
  border-left: 3px solid var(--lb4);
  line-height: 1.5;
}

/* aside内の複数段落スペーシング・タイトル強調 */
.a-aside p + p { margin-top: .7rem; }
.a-aside p strong { color: var(--blue); }

.at1-scroll > .at1-data-table { min-width: 580px; }
.at1-scroll > .at1-graph-type { min-width: 440px; }
.at1-scroll > .at1-body-struct { min-width: 360px; }

@media (max-width: 640px) {
  .at1-criteria-grid {
    grid-template-columns: 1fr;
  }
  .at1-key-boxes {
    flex-direction: column;
  }
  .at1-scroll > table { min-width: 360px; }
  .at1-chart-img { border-radius: 6px; }
}
