:root {
  --font-en: "Outfit", sans-serif;
  --blue: #0D47BC;
  --green: #009A48;
  --red: #CD2900;
  --orange: #E8A200;
  --purple: #7400C4;
  --black: #000000;
}

/* ================================
   Common (base / utilities)
================================ */
.hidden {
  display: none !important;
}

/* select の矢印は共通で定義 */
.select-wrap {
  position: relative;
}
.select-wrap::after {
  content: "";
  position: absolute;
  right: 19px;
  top: 50%;
  width: 12px;
  height: 8px;
  transform: translateY(-50%) rotate(0deg); /* 閉＝下向き */
  transition: transform 0.2s ease;
  background-repeat: no-repeat;
  background-size: 12px 8px;
  pointer-events: none;
  background-image: url('data:image/svg+xml;utf8,<svg width="12" height="8" viewBox="0 0 12 8" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M11 1.5L6 6.5L1 1.5" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>');
}
.select-wrap.is-open::after {
  transform: translateY(-50%) rotate(180deg);
}

/* select 本体の共通体裁（サイズはブレイクポイントで上書き） */
#categoryFilter {
  padding: 8px 40px 8px 20px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #fff;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}
#categoryFilter:focus-visible {
  outline: 0;
}
.contents .block a{
  text-decoration: underline;
}
/* ================================
   Desktop ≥ 769px
================================ */
@media screen and (min-width: 769px) {
  .contents {
    max-width: 1104px;
    margin-left: auto;
    margin-right: auto;
    padding: 120px 40px;
  }
  .contents h1{
    font-size: 54px;
    margin: 28px 0 0 0;
    font-weight: 800;
    line-height: 1.58;
    letter-spacing: 0.1em;
  }
  .contents h2{
    font-size: 48px;
    margin: 28px 0 0 0;
    font-weight: 800;
    line-height: 1.58;
    letter-spacing: 0.1em;
  }
  .contents h3{
    font-size: 24px;
    margin: 28px 0 30px 0;
    font-weight: 800;
    line-height: 1.58;
    letter-spacing: 0.1em;
  }
  .contents h4{
    font-size: 20px;
    margin: 28px 0 30px 0;
    font-weight: 800;
    line-height: 1.58;
    letter-spacing: 0.1em;
  }
  .contents h5{
    font-size: 16px;
    margin: 28px 0 30px 0;
    font-weight: 800;
    line-height: 1.58;
    letter-spacing: 0.1em;
  }
  .contents h6{
    font-size: 14px;
    margin: 28px 0 30px 0;
    font-weight: 800;
    line-height: 1.58;
    letter-spacing: 0.1em;
  }
  .contents .thumb{
    position: relative;
    width: 100%;
    border-radius: 8px;
    max-width: 720px;
    margin: 64px auto;
    overflow: hidden;
  }
  .contents .link-more{
    font-weight: 500;
    font-size: 16px;
    text-decoration-line: underline;
    color: #007AE5;
    margin: 20px 0 0 0;
    display: inline-block;
  }

  time {
    color: #969696;
    font-family: var(--font-en);
    font-size: 18px;
    letter-spacing: 0.04em;
    margin: 0 20px 10px 0;
    display: inline-block;
  }
  .tag-cat {
    display: inline-block;
    padding: 4px 8px 8px;
    border-radius: 6px;
    background: #F0F2F9;
    color: #007AE5;
    font-size: 16px;
    letter-spacing: 0.06em;
  }
  .block{
    font-size: 16px;
    line-height: 2;
    white-space: pre-wrap;
    word-wrap: break-word;
  }
  .block img{
    height: auto;
    display: block;
    margin: 40px auto;
    width: 100%;
    border-radius: 8px;
    max-width: 720px;
  }
  article .link__btn{
    width: clamp(12.5rem, 4.961rem + 15.69vw, 15rem);
    margin: 60px auto 0;
  }

  article .link__btn a i{
    transform: rotateY(180deg);
    left: 24px;
    top: 38%;
  }


}
/* ================================
   Mobile ≤ 768px
================================ */
@media screen and (max-width: 768px) {
  .contents {
    padding: 12.6vw 6vw;
  }
  .tag-cat {
    display: inline-block;
    padding: 2vw 2vw;
    border-radius: 6px;
    background: #F0F2F9;
    color: #007AE5;
    font-size: 4vw;
    letter-spacing: 0.02em;
  }

  time {
    color: #969696;
    font-family: var(--font-en);
    font-size: 4.7vw;
    letter-spacing: 0.04em;
    margin: 0 20px 10px 0;
    display: inline-block;
  }
  .contents h1{
    font-size: 9.2vw;
    margin: 4vw 0 0 0;
    font-weight: 800;
    line-height: 1.58;
    letter-spacing: 0.1em;
  }
  .contents h2{
    font-size: 8.8vw;
    margin: 4vw 0 0 0;
    font-weight: 800;
    line-height: 1.58;
    letter-spacing: 0.1em;
  }
  .contents h3{
    font-size: 4vw;
    margin: 4vw 0 0 0;
    font-weight: 800;
    line-height: 1.58;
    letter-spacing: 0.1em;
  }
  .contents h4{
    font-size: 3vw;
    margin: 4vw 0 0 0;
    font-weight: 800;
    line-height: 1.58;
    letter-spacing: 0.1em;
  }
  .contents h5{
    font-size: 2.5vw;
    margin: 4vw 0 0 0;
    font-weight: 800;
    line-height: 1.58;
    letter-spacing: 0.1em;
  }
  .contents h6{
    font-size: 2vw;
    margin: 4vw 0 0 0;
    font-weight: 800;
    line-height: 1.58;
    letter-spacing: 0.1em;
  }
  .contents .thumb{
    position: relative;
    width: 100%;
    border-radius: 8px;
    margin: 10vw auto;
    overflow: hidden;
  }
  .contents .link-more{
    font-weight: 500;
    font-size: 4.1vw;
    text-decoration-line: underline;
    color: #007AE5;
    margin: 4.4vw 0 0 0;
    display: inline-block;
  }
  .block{
    font-size: 4.1vw;
    line-height: 2;
    white-space: pre-wrap;
    word-wrap: break-word;
  }
  .block img{
    height: auto;
    display: block;
    margin: 8vw auto;
    width: 100%;
    border-radius: 8px;
    max-width: 720px;
    }
  article .link__btn{
    width: clamp(16rem, 4.961rem + 15.69vw, 15rem);
    margin: 60px auto 0;
  }
  article .link__btn a{
    height: 15vw;
  }
  article .link__btn a i{
    transform: rotateY(180deg);
    left: 24px;
    top: 38%;
    width: 2.2vw;
  }

}
