/*!
 * post.css
 *
 * ・レイアウト（body#post ...）… 通常のブログ記事のみ。
 *   イベントカテゴリの記事は event.css に専用レイアウトがあるため対象外にしている。
 * ・本文（body.single-post .post__body ...）… カテゴリを問わず全ての記事に適用。
 *   以前は本文の見出しCSSも body#post 限定だったため、イベント記事では
 *   見出しがまったく効いていなかった。
 */

body#post #stage{
  padding-top: calc(250 / var(--spSize) * 100vw);
}
@media (768px <= width) {
  body#post #stage{
    padding-top: calc(10.39 * var(--oldrem));
  }}
body#post .post__contents{
  padding: 0 calc(30 / var(--spSize) * 100vw) calc(200 / var(--spSize) * 100vw);
  position: relative;
}
@media (768px <= width) {
  body#post .post__contents{
    padding: 0 0 calc(11.29 * var(--oldrem));
    display: grid;
    grid-template-columns: minmax(0, 1fr) max(380px, calc(38 * var(--oldrem)));
    -moz-column-gap: calc(7 * var(--oldrem));
         column-gap: calc(7 * var(--oldrem));
  }}
body#post .post__contents::before,
body#post .post__contents::after{
  content: "";
  height: 1px;
  position: absolute;
  left: calc(30 / var(--spSize) * 100vw);
  top: 0;
}
@media (768px <= width) {
  body#post .post__contents::before,
body#post .post__contents::after{
    left: 0;
  }}
body#post .post__contents::before{
  border-top: 1px dotted var(--clr-lightYellow3);
  width: calc(100% - 60 / var(--spSize) * 100vw);
}
@media (768px <= width) {
  body#post .post__contents::before{
    width: 100%;
  }}
body#post .post__contents::after{
  width: 18.75%;
  background-color: var(--clr-blue);
}
@media (768px <= width) {
  body#post .post__contents::after{
    width: calc(30 * var(--oldrem));
  }}
body#post .post__header{
  display: grid;
  grid-template-columns: auto calc(280 / var(--spSize) * 100vw) auto;
  gap: calc(20 / var(--spSize) * 100vw) 0;
  align-items: center;
  padding: calc(60 / var(--spSize) * 100vw) 0;
}
@media (768px <= width) {
  body#post .post__header{
    grid-column: 1/3;
    grid-template-columns: 135px auto auto;
    justify-content: flex-start;
    gap: calc(2 * var(--oldrem)) 0;
    padding: calc(5.89 * var(--oldrem)) 0 calc(5.67 * var(--oldrem));
  }}
body#post .post__header .time{
  padding-right: calc(20 / var(--spSize) * 100vw);
  font-size: calc(1.4 * var(--oldrem));
  color: #999;
}
@media (768px <= width) {
  body#post .post__header .time{
    font-size: calc(1.5 * var(--oldrem));
    padding-right: 0px;
  }}
body#post .post__header .category{
  border: 1px solid var(--clr-blue);
  border-radius: 5px;
  font-size: calc(1.4 * var(--oldrem));
  line-height: 1.2;
  color: var(--clr-blue);
  padding: 5px 1em;
  white-space: nowrap;
  text-align: center;
}
@media (768px <= width) {
  body#post .post__header .category{
    font-size: calc(1.5 * var(--oldrem));
  }}
body#post .post__header .title{
  grid-column: 1/4;
  font-size: calc(2.4 * var(--oldrem));
  font-family: var(--ff-shippori);
  font-weight: 500;
  line-height: 1.55;
}
@media (768px <= width) {
  body#post .post__header .title{
    font-size: calc(2 * var(--oldrem));
  }}
body#post .post__header .author{
  grid-column: 1/4;
  font-size: calc(1.2 * var(--oldrem));
  font-family: var(--ff-shippori);
  color: #999;
}
@media (768px <= width) {
  body#post .post__header .author{
    font-size: calc(1.4 * var(--oldrem));
  }}
body.single-post .post__body{
  margin-bottom: calc(200 / var(--spSize) * 100vw);
}
body.single-post .post__body figure{
  margin-bottom: calc(50 / var(--spSize) * 100vw);
}
@media (768px <= width) {
  body.single-post .post__body{
    margin-bottom: 0;
    font-size: max(15px, calc(1.6 * var(--oldrem)));
  }
  body.single-post .post__body figure{
    margin-bottom: calc(4.54 * var(--oldrem));
  }}
body.single-post .post__body #toc_container{
  border: 1px dotted var(--clr-lightYellow3);
  border-width: 1px 0;
  background: none;
  margin: calc(100 / var(--spSize) * 100vw) 0;
  padding: calc(20 / var(--spSize) * 100vw) 0;
  width: 100%;
}
@media (768px <= width) {
  body.single-post .post__body #toc_container{
    margin: calc(6.79 * var(--oldrem)) 0;
    padding: calc(2 * var(--oldrem)) 0;
  }}
body.single-post .post__body #toc_container .toc_title{
  text-align: left;
  font-family: var(--ff-shippori);
}
body.single-post .post__body #toc_container .toc_list{
  margin-top: 0;
  padding-left: 0.2em;
}
body.single-post .post__body #toc_container .toc_list li{
  padding: 0;
}
body.single-post .post__body #toc_container .toc_list a{
  color: var(--clr-blue);
  position: relative;
  padding-left: 1.5em;
  display: block;
}
body.single-post .post__body #toc_container .toc_list a::before{
  content: "";
  width: calc(1 * var(--oldrem));
  height: calc(1 * var(--oldrem));
  border-radius: calc(10 * var(--oldrem));
  background-color: var(--clr-blue);
  position: absolute;
  left: 0;
  top: 0.7em;
}
body.single-post .post__body h2{
  background-color: var(--clr-blue);
  color: #fff;
  font-size: calc(2.2 * var(--oldrem));
  font-family: var(--ff-shippori);
  font-weight: 500;
  line-height: 1.8;
  margin: calc(80 / var(--spSize) * 100vw) 0 calc(50 / var(--spSize) * 100vw);
  position: relative;
  padding: calc(0.5 * var(--oldrem)) calc(1.5 * var(--oldrem)) calc(0.5 * var(--oldrem)) calc(4 * var(--oldrem));
}
@media (768px <= width) {
  body.single-post .post__body h2{
    font-size: calc(2.4 * var(--oldrem));
    margin: calc(5.89 * var(--oldrem)) 0 calc(4.54 * var(--oldrem));
  }}
body.single-post .post__body h2::before{
  content: "";
  width: calc(0.5 * var(--oldrem));
  background-color: #fff;
  position: absolute;
  left: calc(2 * var(--oldrem));
  top: calc(1.5 * var(--oldrem));
  bottom: calc(1.5 * var(--oldrem));
}
body.single-post .post__body h3{
  border: 1px dotted var(--clr-lightYellow3);
  border-width: 1px 0;
  margin: calc(80 / var(--spSize) * 100vw) 0 calc(50 / var(--spSize) * 100vw);
  padding: calc(20 / var(--spSize) * 100vw) 0;
  font-size: calc(1.4 * var(--oldrem));
  font-family: var(--ff-shippori);
  font-weight: 500;
  line-height: 1.8;
}
@media (768px <= width) {
  body.single-post .post__body h3{
    font-size: calc(2.2 * var(--oldrem));
  }}
body.single-post .post__body p{
  word-break: break-all;
}
body.single-post .post__body table{
  margin: calc(50 / var(--spSize) * 100vw) 0;
}
body.single-post .post__body table th,
body.single-post .post__body table td{
  border: 1px solid var(--clr-lightYellow3);
  padding: calc(1 * var(--oldrem));
}
body.single-post .post__body table th{
  background-color: var(--clr-lightYellow2);
}
body.single-post .post__body table td{
  background-color: #f9f7f4;
}
body.single-post .post__body p:has(iframe[src*="youtube.com"]),
body.single-post .post__body div:has(iframe[src*="youtube.com"]){
  width: 100%;
  aspect-ratio: 560/315;
  margin: calc(50 / var(--spSize) * 100vw) 0;
}
body.single-post .post__body p:has(iframe[src*="youtube.com"]) iframe,
body.single-post .post__body div:has(iframe[src*="youtube.com"]) iframe{
  width: 100%;
  height: 100%;
}
body.single-post .post__body iframe.wp-embedded-content{
  width: 100%;
}
body.single-post .post__body ul li{
  position: relative;
  padding-left: 1.5em;
}
body.single-post .post__body ul li::before{
  content: "";
  width: calc(1 * var(--oldrem));
  height: calc(1 * var(--oldrem));
  border-radius: calc(10 * var(--oldrem));
  background-color: var(--clr-lightYellow4);
  position: absolute;
  left: 0;
  top: 0.7em;
}
body.single-post .post__body ol{
  counter-reset: numberdot;
}
body.single-post .post__body ol li{
  position: relative;
  padding-left: 1.5em;
  counter-increment: numberdot;
}
body.single-post .post__body ol li::before{
  content: counter(numberdot) ". ";
  position: absolute;
  left: 0;
  color: var(--clr-gray1);
  font-weight: 500;
}
body.single-post .post__body p a{
  color: var(--clr-blue);
  text-decoration: underline;
}
@media (hover: hover) and (width >= 768px) {
  body.single-post .post__body p a{
    transition: all var(--speed) ease-in-out;
  }
  body.single-post .post__body p a:hover{
    text-decoration: none;
  }}
body#post .post-meta.bottom{
  margin-top: calc(80 / var(--spSize) * 100vw);
}
@media (768px <= width) {
  body#post .post-meta.bottom{
    margin-top: calc(5.89 * var(--oldrem));
  }}
body#post .post_meta_sns_btn{
  display: flex;
  gap: calc(0.8 * var(--oldrem));
  align-items: flex-start;
}
body#post .post_meta_sns_btn .arrow_box_feedly{
  border: 1px solid #bbb;
  border-radius: calc(0.3 * var(--oldrem));
  background-color: #fff;
  width: calc(7.7 * var(--oldrem));
  height: calc(3.5 * var(--oldrem));
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
body#post .post_meta_sns_btn .arrow_box_feedly::before{
  content: "";
  position: absolute;
  bottom: calc(-0.6 * var(--oldrem));
  left: calc(50% - calc(0.5 * var(--oldrem)));
  width: calc(1 * var(--oldrem));
  height: calc(0.5 * var(--oldrem));
  clip-path: polygon(0 0, 100% 0%, 50% 100%);
  background-color: #bbb;
}
body#post .post_meta_sns_btn .arrow_box_feedly::after{
  content: "";
  position: absolute;
  bottom: calc(-0.4 * var(--oldrem));
  left: calc(50% - calc(0.5 * var(--oldrem)));
  width: calc(1 * var(--oldrem));
  height: calc(0.5 * var(--oldrem));
  clip-path: polygon(0 0, 100% 0%, 50% 100%);
  background-color: #fff;
}
body#post .post_meta_sns_btn .arrow_box_feedly .icon-comments{
  position: relative;
  font-family: dpicons;
  font-style: normal;
  font-weight: normal;
  speak: none;
  text-decoration: inherit;
  font-variant: normal;
  text-transform: none;
  vertical-align: text-bottom;
  margin-right: 0.15em;
  margin-left: 0.15em;
  font-size: calc(1.2 * var(--oldrem));
  color: #444;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body#post .post_meta_sns_btn .arrow_box_feedly .icon-comments:before{
  content: "\e68b";
  /* font-size: 28px; */
}
body#post .meta__categories{
  display: grid;
  gap: calc(20 / var(--spSize) * 100vw) 0;
  grid-template-columns: auto auto;
  justify-content: start;
  background-color: var(--clr-lightYellow2);
  padding: calc(60 / var(--spSize) * 100vw) calc(40 / var(--spSize) * 100vw);
  font-size: calc(1.2 * var(--oldrem));
  margin-top: calc(100 / var(--spSize) * 100vw);
}
@media (768px <= width) {
  body#post .meta__categories{
    gap: calc(2 * var(--oldrem)) 0;
    margin-top: calc(6.79 * var(--oldrem));
    padding: calc(4 * var(--oldrem)) calc(3 * var(--oldrem));
    font-size: calc(1.4 * var(--oldrem));
  }}
body#post .meta__categories .meta__lbl{
  padding-right: 1em;
  font-family: var(--ff-ci);
}
body#post .meta__categories .meta__body{
  display: flex;
  flex-wrap: wrap;
  gap: calc(0.5 * var(--oldrem));
}
body#post .meta__categories .meta__body a{
  line-height: 2.11;
}
body#post .meta__categories .meta__body a.category{
  border: 1px solid var(--clr-blue);
  color: var(--clr-blue);
  padding: 0 calc(0.8 * var(--oldrem));
  border-radius: calc(0.3 * var(--oldrem));
}
body#post .meta__categories .meta__body a.tag{
  background-color: #e5e2da;
  color: #666;
  padding: 0 calc(0.8 * var(--oldrem));
}
body#post .related__posts{
  margin-top: calc(90 / var(--spSize) * 100vw);
}
body#post .related__title{
  font-size: calc(2.2 * var(--oldrem));
  font-family: var(--ff-shippori);
  font-weight: 500;
}
body#post .related__lists{
  display: grid;
  gap: calc(100 / var(--spSize) * 100vw) 0;
  margin-top: calc(30 / var(--spSize) * 100vw);
}
@media (768px <= width) {
  body#post .related__lists{
    gap: 0;
    border-top: 1px solid var(--clr-lightYellow3);
  }}
body#post .related__item{
  border-bottom: 1px solid var(--clr-lightYellow3);
  padding-bottom: calc(10 / var(--spSize) * 100vw);
}
@media (768px <= width) {
  body#post .related__item{
    padding: 40px 0;
    display: grid;
    grid-template-columns: 300fr 735fr;
    gap: 5.4545454545%;
    position: relative;
  }}
@media (hover: hover) and (width >= 768px) {
  body#post .related__item{
    transition: all var(--speed) ease-in-out;
  }
  body#post .related__item img,
body#post .related__item .noimage{
    transition: all 750ms cubic-bezier(0.43, 0.05, 0.17, 1);
  }
  body#post .related__item figure{
    overflow: hidden;
  }
  body#post .related__item:hover{
    opacity: 0.7;
  }}
body#post .related__item figure{
  margin-bottom: 0;
}
@media (768px <= width) {
  body#post .related__item figure{
    margin-bottom: 0;
  }}
body#post .related__item img{
  aspect-ratio: 300/170;
  -o-object-fit: cover;
     object-fit: cover;
}
body#post .related__item .noimage{
  background: #fff url(../images/common/logo-square.webp) center/auto 60% no-repeat;
  background-image: -webkit-image-set(url(../images/common/logo-square.webp) 1x, url(../images/common/logo-square@2x.webp) 2x);
  background-image: image-set(url(../images/common/logo-square.webp) 1x, url(../images/common/logo-square@2x.webp) 2x);
  background-color: #fff;
  aspect-ratio: 300/170;
}
body#post .related__item .wrap{
  margin-top: calc(60 / var(--spSize) * 100vw);
  padding-bottom: calc(20 / var(--spSize) * 100vw);
  position: relative;
}
@media (768px <= width) {
  body#post .related__item .wrap{
    margin-top: 0;
    padding-bottom: 0;
    position: static;
    display: grid;
    grid-template-rows: 30px auto 30px;
  }}
body#post .related__item .category{
  color: var(--clr-blue);
  border: 1px solid var(--clr-blue);
  font-size: calc(1.2 * var(--oldrem));
  line-height: 25px;
  border-radius: 5px;
  width: calc(280 / var(--spSize) * 100vw);
  display: inline-block;
  text-align: center;
}
@media (768px <= width) {
  body#post .related__item .category{
    width: auto;
    padding: 0 14px;
    justify-self: flex-start;
  }}
body#post .related__item .title{
  font-size: calc(1.4 * var(--oldrem));
  font-family: var(--ff-shippori);
  font-weight: 500;
  line-height: 1.8333;
  margin-top: calc(20 / var(--spSize) * 100vw);
  margin-bottom: calc(30 / var(--spSize) * 100vw);
}
@media (768px <= width) {
  body#post .related__item .title{
    font-size: calc(2.2 * var(--oldrem));
    margin-top: 10px;
    margin-bottom: auto;
  }}
body#post .related__item .time{
  font-size: calc(1.2 * var(--oldrem));
  color: #999;
}
body#post .related__item .arrow{
  position: absolute;
  right: 0;
  bottom: 0;
  width: calc(60 / var(--spSize) * 100vw);
  height: calc(60 / var(--spSize) * 100vw);
  display: flex;
  align-items: center;
  justify-content: center;
  border-left: 1px dotted #333;
}
@media (768px <= width) {
  body#post .related__item .arrow{
    width: 60px;
    height: 40px;
    bottom: 15px;
  }}
/* 記事ページの枠を広げる（2026-09-11）PC表示のみ。
   .w_1600 は全ページ共通で 1000px のため、ここでは記事ページ(body#post)だけに
   上書きしている。パンくずと本文の左右が揃うよう両方を対象にする。 */
@media (768px <= width) {
  body#post .w_1600 {
    margin-left: max(50% - 600px, calc(6 * var(--oldrem)));
    margin-right: max(50% - 600px, calc(6 * var(--oldrem)));
    max-width: 1200px;
  }}

/* ─────── 記事ページの調整（2026-09-11 第2弾）───────
   いずれもPC表示のみ。スマホ側の指定はそのまま。 */
@media (768px <= width) {
  /* ナビの下に出る飾り線（点線と青い線）は不要とのことで消す */
  body#post .post__contents::before,
  body#post .post__contents::after {
    display: none;
  }
  /* 記事タイトル。本文のh2（20.5〜24px）より少し大きい26〜27pxにする */
  body#post .post__header .title {
    font-size: max(26px, calc(2.7 * var(--oldrem)));
  }
  /* アイキャッチ画像の上辺をサイドバーの上辺に揃える */
  body#post .post__body > figure:first-child {
    margin-top: 0;
  }
  /* 本文の後ろが空きすぎるので詰める。
     .related__posts はPC用の指定が無く、スマホ用の
     calc(90 / var(--spSize) * 100vw)（＝約173px）がそのまま効いていた。 */
  body#post .meta__categories {
    margin-top: calc(3.4 * var(--oldrem));
  }
  body#post .related__posts {
    margin-top: calc(7 * var(--oldrem));
  }
  body#post .related__lists {
    margin-top: calc(3 * var(--oldrem));
  }
  /* 関連情報の記事タイトル。一覧ページと同じ18px・黒字に揃える */
  body#post .related__item .title {
    font-size: max(18px, calc(1.8 * var(--oldrem)));
    color: #333;
  }}

/* 関連情報の行もリンク全体に下線が付くため外す（カテゴリ名・日付も一緒に消える） */
body#post .related__item,
body#post .related__item .title {
  text-decoration: none;
}


/* ══════════ 縦持ちタブレット（768〜1199px）の記事の幅（2026-09-12）══════════
   1列にすると本文が画面いっぱいに広がり、幅1199pxでは1行73文字と長くなる。
   パソコン表示と同じ750pxで止めて中央に置く（パンくずも一緒に揃う）。
   幅768〜1024pxでは画面のほうが狭いので、左右の余白だけが効く。 */
@media (768px <= width <= 1199px) {
  body#post .w_1600 {
    margin-left: max(50% - 375px, calc(6 * var(--oldrem)));
    margin-right: max(50% - 375px, calc(6 * var(--oldrem)));
    max-width: 750px;
  }
}

/* ══════════ 縦持ちタブレット（768〜1199px）の記事（2026-09-12）══════════
   一覧と同じく1列にして、サイドバーを本文の下に置く。 */
@media (768px <= width <= 1199px) {
  body#post .post__contents {
    grid-template-columns: minmax(0, 1fr);
  }
  /* タイトル部分は2列ぶち抜き指定のため、1列に直す */
  body#post .post__header {
    grid-column: 1 / -1;
  }
  body#post .post__side {
    min-width: 0;
    width: 100%;
    margin-top: calc(6 * var(--oldrem));
  }
}
