@charset "UTF-8";
/* =========================================================
   記事ページ（post.html）― note のような1カラムの読みもの
   ※ ヘッダー・フッター・共通変数は blog.css を使用
   ========================================================= */

.post {
  --read: 680px;          /* 本文の幅 */
  --wide: 820px;          /* 画像など少し広げる要素の幅 */
  padding: 0 20px 80px;
  background: var(--white);
}

/* ---------- パンくず ---------- */
.breadcrumb {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 16px 0 0;
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 11px;
  color: var(--text-sub);
}
.breadcrumb li { white-space: nowrap; }
.breadcrumb li:last-child { overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.breadcrumb li + li::before { content: "/"; margin: 0 8px; color: var(--line); }
.breadcrumb a:hover { color: var(--orange); }

/* ---------- 記事ヘッダー ---------- */
.article { max-width: var(--read); margin: 0 auto; }
.article__head { padding: 48px 0 28px; }
.article__cat {
  position: static;          /* カードでは absolute、ここでは流し込み */
  display: inline-block;
  box-shadow: none;
}
.article__title {
  margin-top: 14px;
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 900;
  line-height: 1.5;
  letter-spacing: .02em;
}

.byline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}
.byline__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}
.byline__name { font-size: 14px; font-weight: 700; line-height: 1.4; }
.byline__date { font-size: 12px; color: var(--text-sub); line-height: 1.4; }

/* アイキャッチは少し広く */
.article__eyecatch {
  margin: 0 calc((var(--read) - var(--wide)) / 2);
}
.article__eyecatch img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center 30%;
  border-radius: 8px;
}

/* ---------- 本文 ---------- */
.article__body {
  padding-top: 40px;
  font-size: 16.5px;
  line-height: 2;
  letter-spacing: .03em;
  color: #2f2420;
}
.article__body > * + * { margin-top: 1.4em; }
.article__body p { margin: 0; }
.article__body p + p { margin-top: 1.1em; }

.article__body h2 {
  margin-top: 3em;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.5;
  scroll-margin-top: 20px;
}
.article__body h2 + p { margin-top: 1em; }

.article__body figure { margin-left: 0; margin-right: 0; }
.article__body figure img { width: 100%; border-radius: 6px; }
.article__body figcaption {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--text-sub);
  text-align: center;
}

/* 3枚並びの写真 */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.gallery img { aspect-ratio: 3 / 2; object-fit: cover; }
.gallery figcaption { grid-column: 1 / -1; }

/* 目次 */
.toc {
  padding: 20px 24px;
  background: var(--cream);
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.8;
}
.toc__title { font-weight: 700; margin-bottom: 6px !important; }
.toc ol {
  margin: 0;
  padding-left: 1.4em;
}
.toc li::marker { color: var(--orange); font-weight: 700; }
.toc a { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; }
.toc a:hover { color: var(--orange); text-decoration-color: currentColor; }

/* 選手の声（引用） */
.voice {
  margin: 1.6em 0 0;
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--orange);
}
.voice p { font-size: 17px; font-weight: 700; line-height: 1.9; }
.voice__who {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-sub);
}
.voice__who img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }

/* ---------- 記事フッター ---------- */
.article__foot { margin-top: 56px; }

.hashtags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.hashtags a {
  display: inline-block;
  padding: 4px 12px;
  font-size: 12px;
  background: var(--cream);
  border-radius: 999px;
  transition: background-color .2s, color .2s;
}
.hashtags a:hover { background: var(--orange); color: var(--white); }

.share {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.share__label { font-size: 12px; font-weight: 700; margin-right: auto; }
.share__btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--brown);
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.share__btn svg { width: 17px; height: 17px; fill: currentColor; }
.share__btn:hover { background: var(--brown); border-color: var(--brown); color: var(--white); }

/* 書いた人 */
.author {
  display: flex;
  gap: 18px;
  margin-top: 36px;
  padding: 24px;
  background: var(--cream);
  border-radius: 8px;
}
.author__avatar {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
}
.author__role { font-size: 11px; color: var(--text-sub); }
.author__name { font-size: 16px; font-weight: 900; margin-top: 2px; }
.author__text { font-size: 13px; line-height: 1.9; margin-top: 8px; }
.author__link {
  display: inline-block;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--orange);
}
.author__link::after { content: " →"; }
.author__link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- 関連記事 ---------- */
.related {
  max-width: var(--wide);
  margin: 80px auto 0;
}
.related__title {
  font-size: 16px;
  font-weight: 900;
  margin-bottom: 18px;
}
.related__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.related__list a { display: block; }
.related__list img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 6px;
  transition: opacity .2s;
}
.related__list a:hover img { opacity: .85; }
.related__list a:hover .related__name { text-decoration: underline; text-underline-offset: 3px; }
.related__meta {
  display: block;
  margin-top: 10px;
  font-size: 11px;
  color: var(--text-sub);
}
.related__name {
  display: block;
  margin-top: 2px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
}

.post-nav { margin-top: 40px; text-align: center; }
.post-nav__back {
  display: inline-block;
  padding: 10px 28px;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid var(--brown);
  border-radius: 999px;
  transition: background-color .2s, color .2s;
}
.post-nav__back:hover { background: var(--brown); color: var(--white); }

/* ---------- 入団申し込み ---------- */
.post-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: var(--wide);
  margin: 64px auto 0;
  padding: 22px 28px;
  border-radius: var(--radius);
  background: var(--orange);
  color: var(--white);
  transition: background-color .2s;
}
.post-cta:hover { background: var(--orange-deep); }
.post-cta__text { font-size: 13px; }
.post-cta__label { font-size: 18px; font-weight: 900; margin-right: auto; }
.post-cta .arrow-btn { transition: transform .2s; }
.post-cta:hover .arrow-btn { transform: translateX(4px); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 860px) {
  .article__eyecatch { margin: 0; }
}

@media (max-width: 600px) {
  .post { padding: 0 16px 60px; }
  .article__head { padding: 32px 0 22px; }
  .article__body { font-size: 16px; padding-top: 28px; }
  .article__body h2 { font-size: 19px; }
  .toc { padding: 16px 18px; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery img:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
  .author { flex-direction: column; gap: 12px; padding: 20px; }
  .related__list { grid-template-columns: 1fr; gap: 16px; }
  .related__list a {
    display: grid;
    grid-template-columns: 110px 1fr;
    grid-template-rows: auto auto;
    column-gap: 14px;
    align-content: start;
  }
  .related__list img { grid-row: 1 / 3; }
  .related__meta { margin-top: 0; }
  .post-cta { flex-wrap: wrap; padding: 18px 20px; }
  .post-cta__text { width: 100%; }
}

/* ---------- CMS用の追加パーツ ---------- */
.related__noimg {
  display: block;
  aspect-ratio: 16 / 10;
  border-radius: 6px;
  background: var(--cream-2) url(../images/logo-mark.png) center / 44px auto no-repeat;
}
@media (max-width: 600px) { .related__noimg { grid-row: 1 / 3; } }
.preview-bar {
  max-width: var(--wide);
  margin: 16px auto 0;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 700;
  background: #fff6e0;
  border: 1px solid #f1d58f;
  border-radius: 8px;
}
.preview-bar a { margin-left: 12px; color: var(--orange); text-decoration: underline; }
.share__btn.is-copied { background: var(--orange); border-color: var(--orange); color: var(--white); }
.article--404 { padding: 80px 0; text-align: center; }
.article--404 p { margin-top: 16px; }
.article__body h3 { margin-top: 2.2em; font-size: 18px; font-weight: 900; line-height: 1.6; }
.article__body ul, .article__body ol:not(.toc ol) { padding-left: 1.4em; }
.article__body hr { border: 0; border-top: 2px dotted var(--line); margin: 2.6em 0; }
.article__body a:not(.toc a) { color: var(--orange); text-decoration: underline; text-underline-offset: 3px; }
.article__body blockquote:not(.voice) { margin: 1.6em 0 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--line); color: var(--text-sub); }
.hashtags span {
  display: inline-block;
  padding: 4px 12px;
  font-size: 12px;
  background: var(--cream);
  border-radius: 999px;
}

/* 本文のリスト（箇条書き・番号付き） */
.article__body > ul { list-style: disc; }
.article__body > ol { list-style: decimal; }
.article__body > ul li::marker, .article__body > ol li::marker { color: var(--orange); font-weight: 700; }
.article__body > ul li + li, .article__body > ol li + li { margin-top: .3em; }
.article__body > ul + p, .article__body > ol + p { margin-top: 1.4em; }

/* ---------- 記事ページの上：ブログトップと同じバナー＋CATEGORY ---------- */
.post-catbar {
  max-width: var(--container);
  margin: 0 auto;
  padding: 12px 20px 14px;
}
.post-catbar .filter-bar { margin-bottom: 0; }
.post-catbar .filter-bar .filter a.is-current:not(:hover) { background: var(--orange); }

/* 「サイトTOPのカレンダーを開く」記事（練習日程表など）の、本文の下のボタン */
.article__body .post-calbtn { margin-top: 2em; text-align: center; }
.article__body .post-calbtn a:not(.toc a) {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 999px;
  background: var(--orange);
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color .2s;
}
.article__body .post-calbtn a:not(.toc a):hover { background: #c9431e; }

/* ---------- 写真はアップしたときの縦横比・大きさのまま表示（切り取らない） ---------- */
.article__eyecatch img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: initial;
  margin: 0 auto;
}
.article__body figure:not(.gallery) img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}
