body.article-page {
  background: #f7f5ef;
}

.article-header {
  min-height: 70px;
  padding: 0 max(4vw, 24px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border-bottom: 1px solid #e1e7e6;
}

.article-header .back-link {
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
}

.article-shell {
  max-width: 900px;
  margin: 0 auto;
  padding: 58px 24px 90px;
}

.article-kicker {
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
}

.article-shell h1,
.article-hero-band h1 {
  margin: 10px 0 18px;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.45;
}

/* タイトルの背景に写真を敷く記事で使う。
   各ページの<style>で --hero-img: url('../public/images/○○.jpg') を指定するだけでよい */
.article-hero-band {
  /* 紙色のかぶせ。パソコンは左から、スマホは上からかける（記事ごとに上書き可） */
  --hero-overlay: linear-gradient(96deg,
    rgba(247, 245, 239, .94) 0%,
    rgba(247, 245, 239, .88) 30%,
    rgba(247, 245, 239, .42) 62%,
    rgba(247, 245, 239, .08) 100%);
  --hero-overlay-sp: linear-gradient(
    rgba(247, 245, 239, .93) 0%,
    rgba(247, 245, 239, .86) 52%,
    rgba(247, 245, 239, .72) 80%,
    rgba(247, 245, 239, .38) 100%);
  /* 写真のどこを見せるかは記事ごとに調整できる（--hero-pos ＝ パソコン用、--hero-pos-sp ＝ スマホ用） */
  --hero-pos: center 58%;
  --hero-pos-sp: 72% 62%;
  position: relative;
  background-color: #eaf1e6;
  background-image: var(--hero-overlay), var(--hero-img);
  background-position: var(--hero-pos);
  background-size: cover;
  background-repeat: no-repeat;
}

.article-hero-band::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 42px;
  background: #f7f5ef;
  clip-path: polygon(0 65%, 12% 50%, 25% 70%, 39% 43%, 55% 65%, 70% 40%, 85% 66%, 100% 45%, 100% 100%, 0 100%);
}

.hero-band-inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 72px 24px 92px;
}

.hero-band-inner .article-meta {
  margin-bottom: 0;
  color: #4d6068;
}

/* 写真の出典表示（借りた写真を使うページで） */
.hero-band-inner .hero-credit {
  margin: 14px 0 0;
  color: #5f7278;
  font-size: 10px;
  line-height: 1.6;
}

.hero-band-inner .hero-credit a {
  color: #4a6068;
  text-decoration: underline;
}

.article-hero-band + .article-shell {
  padding-top: 40px;
}

.article-hero-band + .article-shell .article-body {
  margin-top: 0;
}

.article-lead {
  max-width: 760px;
  font-size: 18px;
}

.article-meta {
  margin-bottom: 28px;
  color: #708188;
  font-size: 12px;
}

.article-hero {
  margin: 34px 0 10px;
}

.article-hero img {
  display: block;
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border-radius: 9px;
}

/* 記事の途中に置く写真 */
.article-figure {
  margin: 40px 0 36px;
}

.article-figure img {
  display: block;
  width: 100%;
  max-height: 430px;
  object-fit: cover;
  border-radius: 9px;
}

/* 本文の脇に小さく添えるアクセント写真。文章は横に回り込む */
.article-figure.is-accent {
  float: right;
  width: 300px;
  margin: 6px 0 20px 30px;
}

.article-figure.is-accent.to-left {
  float: left;
  margin: 6px 30px 20px 0;
}

.article-figure.is-accent img {
  height: 200px;
  max-height: none;
  border-radius: 7px;
}

/* 見出し・囲み・表は写真の横に押し込めず、必ず下から始める */
.article-body h2,
.article-body .article-callout,
.article-body .article-checklist,
.article-body .article-table {
  clear: both;
}

.photo-credit {
  margin-top: 7px;
  color: #718087;
  font-size: 10px;
  line-height: 1.5;
}

.photo-credit a,
.article-sources a {
  color: var(--blue);
  text-decoration: underline;
}

.article-body {
  max-width: 760px;
  margin: 48px auto 0;
}

.article-body h2 {
  margin: 52px 0 15px;
  font-size: 30px;
  line-height: 1.5;
}

.article-body h3 {
  margin: 28px 0 8px;
  color: var(--ink);
  font-size: 20px;
}

.article-body p,
.article-body li {
  font-size: 16px;
}

.article-body li + li {
  margin-top: 8px;
}

.article-body ul,
.article-body ol {
  padding-left: 1.4em;
}

.article-table {
  width: 100%;
  margin: 22px 0;
  border-collapse: collapse;
  background: #fff;
}

.article-table th,
.article-table td {
  padding: 13px 14px;
  border: 1px solid #d9e4e5;
  text-align: left;
  vertical-align: top;
}

.article-table th {
  background: #eaf7f7;
  color: var(--ink);
}

.article-callout {
  margin: 30px 0;
  padding: 20px 22px;
  border-left: 4px solid var(--blue);
  background: #eaf7f7;
}

.article-checklist {
  margin: 26px 0;
  padding: 24px 28px;
  border: 1px solid #d9e4e5;
  border-radius: 7px;
  background: #fff;
}

.article-sources {
  margin-top: 58px;
  padding-top: 24px;
  border-top: 1px solid #d7dfdf;
  color: #65777d;
  font-size: 12px;
}

.article-sources li {
  font-size: 12px;
}

.article-bottom {
  margin-top: 54px;
  text-align: center;
}

.article-bottom a {
  display: inline-flex;
  min-height: 48px;
  padding: 0 26px;
  align-items: center;
  border: 1px solid var(--blue);
  border-radius: 4px;
  color: var(--blue);
  font-weight: 700;
}

.article-card-image {
  display: block;
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 5px 5px 0 0;
}

.article-grid .article-card-link {
  display: block;
}

.article-grid .article-card-link h3 {
  margin-top: 8px;
}

.article-grid .card-photo-credit {
  display: block;
  margin: 5px 20px 0;
  color: #708188;
  font-size: 9px;
  text-decoration: underline;
}

.article-grid .article-read {
  display: inline-block;
  margin: 3px 20px 0;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
}

@media (max-width: 640px) {
  /* 画面が狭いと回り込みが窮屈になるので、横幅いっぱいの細い帯にする */
  .article-figure.is-accent,
  .article-figure.is-accent.to-left {
    float: none;
    width: 100%;
    margin: 26px 0 24px;
  }

  .article-figure.is-accent img {
    height: 160px;
  }

  .article-hero-band {
    /* 画面が狭いと文字が写真に重なるため、上から紙色をかけて読みやすくする */
    background-image: var(--hero-overlay-sp), var(--hero-img);
    background-position: var(--hero-pos-sp);
  }

  .hero-band-inner {
    padding: 44px 18px 66px;
  }

  .article-hero-band + .article-shell {
    padding-top: 26px;
  }

  .article-header {
    min-height: 64px;
  }

  .article-header .brand {
    font-size: 18px;
  }

  .article-shell {
    padding: 38px 18px 64px;
  }

  .article-shell h1 {
    font-size: 34px;
  }

  .article-lead {
    font-size: 16px;
  }

  .article-body h2 {
    font-size: 25px;
  }

  .article-table,
  .article-table tbody,
  .article-table tr,
  .article-table th,
  .article-table td {
    display: block;
  }

  .article-table tr + tr {
    margin-top: 12px;
  }
}
