@charset "utf-8";

/* =========================================================
   ブログ
   - トップ MY WORDS の記事カード（既存 .p-message-wrap を踏襲）
   - blog/ 配下の記事ページ / 一覧ページ
   配色・書体は style-10th.css のトークンをそのまま使う
   ========================================================= */

/* ---------------------------------------------------------
   記事カード（トップ / 一覧 共通）
   --------------------------------------------------------- */
.c-blog-card {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  color: var(--color-text-white);
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.c-blog-card:hover {
  opacity: 0.82;
}

.c-blog-meta {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 0.8rem;
  font-size: 1.3rem;
  letter-spacing: 0.08em;
}

.c-blog-meta time {
  opacity: 0.9;
}

.c-blog-cat {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  padding: 0.3em 1.1em 0.3em 0.85em;
  border: 1px solid currentColor;
  border-radius: 9999px;
  font-size: 1.2rem;
  line-height: 1.4;
  white-space: nowrap;
}

/* チップ内のカテゴリアイコン */
.c-cat-ico {
  width: 1.5em;
  height: 1.5em;
  flex-shrink: 0;
}

/* カテゴリアーカイブの見出しに置く大きめのアイコン */
.c-cat-title-ico {
  width: 1.3em;
  height: 1.3em;
  vertical-align: -0.28em;
  margin-right: 0.35em;
}

.c-blog-more {
  display: inline-block;
  margin-top: 1.4rem;
  font-size: 1.3rem;
  letter-spacing: 0.14em;
}

.c-blog-more::after {
  content: '';
  display: inline-block;
  width: 2.4em;
  height: 1px;
  margin-left: 0.8em;
  vertical-align: middle;
  background-color: currentColor;
  transition: width 0.3s ease;
}

.c-blog-card:hover .c-blog-more::after {
  width: 3.4em;
}

/* サムネイルは縮ませない（親が flex のため） */
.c-blog-card > .c-image {
  flex-shrink: 0;
}

/* ボタン
   既存の .c-button は .section-10thcontents 配下でしか定義されていないため、
   ブログで使う分だけここでスタイルを与える */
.c-blog-viewall .c-button,
.c-blog-back .c-button,
.c-notfound-actions .c-button {
  display: inline-block;
  padding: 1.6rem 6.4rem 1.6rem 2.4rem;
  border-radius: 10px 60px 60px 10px;
  background: var(--color-blue);
  color: var(--color-text-white);
  font-size: 1.5rem;
  letter-spacing: 0.12em;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.c-blog-viewall .c-button:hover,
.c-blog-back .c-button:hover,
.c-notfound-actions .c-button:hover {
  opacity: 0.82;
}

/* 一覧の下の「VIEW ALL POSTS」 */
.c-blog-viewall {
  margin-top: 4rem;
  text-align: center;
}

@media screen and (max-width: 1024px) {
  .c-blog-card {
    display: block;
  }

  .c-blog-meta {
    font-size: 1.2rem;
  }
}

/* ---------------------------------------------------------
   記事ページ / 一覧ページの外枠
   --------------------------------------------------------- */
.l-blog-page {
  background-color: var(--color-10th-bg);
}

/* 下層ページのヘッダーもトップと同じ固定ピル＋ハンバーガー（style-10th.css）を使う。
   SP はトップだと FV に重ねるため透明だが、下層は本文が下を通るので面を敷く */
@media screen and (max-width: 767px) {
  .l-blog-page header {
    background: var(--color-10th-bg);
    padding-bottom: 10px;
  }
}

.c-blog-nav {
  color: var(--color-blue);
  font-size: 1.3rem;
  letter-spacing: 0.16em;
  text-decoration: none;
}

.c-blog-nav:hover {
  text-decoration: underline;
}

.l-blog-main {
  max-width: 900px;
  margin: 0 auto;
  padding: 6rem calc(var(--section-margin, 6%) / 2) 8rem;
}

@media screen and (max-width: 767px) {
  .c-blog-nav {
    font-size: 1.2rem;
  }

  .l-blog-main {
    padding-top: 3.5rem;
    padding-bottom: 5rem;
  }
}

/* ---------------------------------------------------------
   記事本文
   --------------------------------------------------------- */
.p-article .c-blog-meta {
  color: var(--color-blue);
  margin-bottom: 1.6rem;
}

.c-article-title {
  font-size: 3.4rem;
  line-height: 1.5;
  font-weight: 700;
  margin-bottom: 3rem;
}

.c-article-title span {
  display: block;
  margin-top: 1rem;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--color-blue);
  letter-spacing: 0.14em;
}

.c-article-hero {
  margin-bottom: 4rem;
  border-radius: 20px;
  overflow: hidden;
  background-color: var(--color-pblue);
}

.c-article-hero img {
  display: block;
  width: 100%;
  height: auto;
}

.c-article-body p {
  margin-bottom: 2.4rem;
  font-size: 1.6rem;
  line-height: 2.1;
}

.c-article-body p:last-child {
  margin-bottom: 0;
}

.c-article-sign {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-pblue);
  font-size: 1.4rem;
  color: var(--color-blue);
  text-align: right;
}

@media screen and (max-width: 767px) {
  .c-article-title {
    font-size: 2.4rem;
    margin-bottom: 2rem;
  }

  .c-article-hero {
    margin-bottom: 2.6rem;
  }

  .c-article-body p {
    font-size: 1.5rem;
    line-height: 2;
    margin-bottom: 2rem;
  }
}

/* ---------------------------------------------------------
   前後の記事
   --------------------------------------------------------- */
.c-blog-pager {
  display: flex;
  gap: 2rem;
  margin-top: 5rem;
}

.c-blog-pager-item {
  flex: 1 1 0;
  min-width: 0;
  padding: 2rem;
  border-radius: 16px;
  background-color: #fff;
  color: var(--color-text-black);
  font-size: 1.4rem;
  line-height: 1.7;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.c-blog-pager-item span {
  display: block;
  margin-bottom: 0.6rem;
  font-size: 1.2rem;
  color: var(--color-blue);
  letter-spacing: 0.1em;
}

.c-blog-pager-item.is-next {
  text-align: right;
}

a.c-blog-pager-item:hover {
  transform: translateY(-3px);
}

.c-blog-pager-item.is-empty {
  background-color: transparent;
}

.c-blog-back {
  margin-top: 4rem;
  text-align: center;
}

@media screen and (max-width: 767px) {
  .c-blog-pager {
    flex-direction: column;
    gap: 1.2rem;
  }

  .c-blog-pager-item.is-empty {
    display: none;
  }

  .c-blog-pager-item.is-next {
    text-align: left;
  }
}

/* ---------------------------------------------------------
   記事一覧ページ
   --------------------------------------------------------- */
.p-blog-list {
  margin-top: 4rem;
}

.p-blog-list li {
  background-color: var(--color-blue);
  padding: 20px;
  border-radius: 20px 160px 160px 20px;
  margin-bottom: 24px;
}

.p-blog-list li .c-image {
  width: 200px;
  height: 200px;
  border-radius: 10px;
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
}

.p-blog-list li .c-image img {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.p-blog-list li .c-text {
  width: calc(100% - 200px);
  padding-left: 3rem;
}

.p-blog-list .c-text-02 {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.6;
  margin-bottom: 0.8rem;
}

.p-blog-list .c-message-text {
  font-size: 1.4rem;
  line-height: 1.9;
}

@media screen and (max-width: 1024px) {
  .p-blog-list li {
    border-radius: 20px;
    padding: 1.6rem;
  }

  .p-blog-list li .c-image {
    width: 100%;
    height: 0;
    padding-top: 56%;
    border-radius: 14px;
    margin-bottom: 1.4rem;
  }

  .p-blog-list li .c-text {
    width: 100%;
    padding-left: 0;
  }

  .p-blog-list .c-text-02 {
    font-size: 1.8rem;
  }
}

/* =========================================================
   モバイル調整

   トップの記事カードは旧「お祝いメッセージ」用の指定を継いでおり、
   1024px 以下でサムネイルが正方形（padding-top: 100%）になって
   1 枚あたり 600px 超の高さになっていた。ブログ一覧としては重すぎるので、
   横長のサムネイルに変えてカードを圧縮する。
   ========================================================= */
@media screen and (max-width: 1024px) {
  .section-message-thanks .p-message-wrap li {
    border-radius: 20px 20px 40px 40px;
    padding: 1.2rem 1.2rem 2rem;
  }

  .section-message-thanks .p-message-wrap li .c-image {
    height: 0;
    padding-top: 52%;
    border-radius: 14px;
    margin-bottom: 1.4rem;
  }

  .section-message-thanks .p-message-wrap li .c-image img {
    object-position: 50% 42%;
  }

  .section-message-thanks .p-message-wrap li .c-text {
    padding: 0 0.6rem;
  }

  .c-blog-meta {
    margin-bottom: 0.6rem;
  }

  .section-message-thanks .p-message-wrap li .c-text .c-text-02 {
    font-size: 1.6rem;
    line-height: 1.6;
    margin-bottom: 0.6rem;
  }

  .section-message-thanks .p-message-wrap li .c-text .c-message-text {
    font-size: 1.3rem;
    line-height: 1.85;
  }

  .c-blog-more {
    margin-top: 1rem;
    font-size: 1.2rem;
  }
}

@media screen and (max-width: 767px) {
  .section-message-thanks .p-message-wrap li {
    margin-bottom: 1.6rem;
  }

  .c-blog-viewall {
    margin-top: 3rem;
  }

  .c-blog-viewall .c-button,
  .c-blog-back .c-button {
    padding: 1.4rem 4.8rem 1.4rem 2rem;
    font-size: 1.4rem;
  }

  /* 記事ページ側 */
  .l-blog-main {
    padding-left: var(--section-spMargin);
    padding-right: var(--section-spMargin);
  }

  .p-blog-list li .c-image {
    padding-top: 52%;
  }
}

/* =========================================================
   サムネイルをやめた記事カード

   使える画像が UUUM のアートワークしかなかったため、
   カードから画像を外してテキスト主体にした。
   左に色帯を置いて、カードとしての輪郭を保つ。
   ========================================================= */
.section-message-thanks .p-message-wrap li,
.p-blog-list li {
  position: relative;
  overflow: hidden;
}

.section-message-thanks .p-message-wrap li .c-text,
.p-blog-list li .c-text {
  width: 100%;
  padding-left: 0;
}

.c-blog-card {
  display: block;
}

/* 記事ページのリード文（旧ヒーロー画像の位置） */
.c-article-lead {
  margin-bottom: 3.4rem;
  padding: 2rem 2.4rem;
  border-left: 3px solid var(--color-blue);
  background: rgba(255, 255, 255, 0.7);
  font-size: 1.5rem;
  line-height: 1.95;
}

@media screen and (max-width: 767px) {
  .c-article-lead {
    margin-bottom: 2.6rem;
    padding: 1.6rem 1.8rem;
    font-size: 1.45rem;
  }
}

/* PC：画像がなくなり 1 枚 1,194px の細長い帯になってしまうので 2 カラムに */
@media screen and (min-width: 768px) {
  .section-message-thanks .p-message-wrap {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.4rem;
    align-items: start;
  }

  .section-message-thanks .p-message-wrap li {
    display: block;
    margin-bottom: 0;
    padding: 3.2rem 3.4rem;
    border-radius: 24px;
  }

  .p-blog-list li {
    padding: 3rem 3.4rem;
    border-radius: 24px;
  }
}

/* =========================================================
   記事内の回遊パーツ（シェア / 著者 / 関連記事）
   ========================================================= */

/* --- シェア --- */
.p-share-inline {
  margin-top: 4.4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--color-pblue);
}

.c-share-label {
  margin-bottom: 1.4rem;
  font-size: 1.3rem;
  letter-spacing: 0.08em;
  color: var(--color-blue);
}

.p-share-inline ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  list-style: none;
}

.p-share-inline .c-share-btn {
  min-height: 46px;
  padding: 0 2.2rem;
  font-size: 1.35rem;
  font-family: inherit;
}

/* --- 著者ボックス --- */
.p-author {
  display: flex;
  gap: 2.4rem;
  align-items: flex-start;
  margin-top: 3.2rem;
  padding: 2.8rem 3rem;
  border-radius: 20px;
  background: #fff;
}

.c-author-photo {
  flex-shrink: 0;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--color-pblue);
  position: relative;
}

.c-author-photo img {
  position: absolute;
  left: 50%;
  bottom: -6%;
  width: 104%;
  height: auto;
  transform: translateX(-50%);
}

.c-author-role {
  margin-bottom: 0.6rem;
  font-size: 1.15rem;
  letter-spacing: 0.14em;
  color: var(--color-blue);
}

.c-author-name {
  margin-bottom: 1rem;
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1.3;
}

.c-author-name span {
  margin-left: 0.8rem;
  font-size: 1.15rem;
  font-weight: 500;
  opacity: 0.6;
}

.c-author-text {
  font-size: 1.4rem;
  line-height: 1.9;
}

.c-author-links {
  display: flex;
  gap: 1.6rem;
  margin-top: 1.4rem;
}

.c-author-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--color-blue);
  font-size: 1.35rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* --- 関連記事 --- */
.p-related-posts {
  margin-top: 5rem;
  padding-top: 4rem;
  border-top: 1px solid var(--color-pblue);
}

.p-related-posts ul {
  list-style: none;
}

.p-related-posts li + li {
  margin-top: 1rem;
}

.p-related-posts a {
  display: block;
  padding: 1.8rem 2rem;
  border-radius: 14px;
  background: #fff;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.p-related-posts a:hover {
  transform: translateY(-2px);
}

/* カテゴリのタグがアーカイブへのリンクになった分 */
a.c-blog-cat {
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

a.c-blog-cat:hover {
  background: currentColor;
}

.p-article a.c-blog-cat:hover {
  background: var(--color-blue);
  color: #fff;
}

@media screen and (max-width: 767px) {
  .p-author {
    flex-direction: column;
    gap: 1.6rem;
    padding: 2.4rem 2rem;
    border-radius: 18px;
  }

  .c-author-photo {
    width: 80px;
    height: 80px;
  }

  .p-share-inline ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .p-share-inline li:last-child {
    grid-column: 1 / -1;
  }

  .p-share-inline .c-share-btn {
    width: 100%;
  }
}

/* =========================================================
   本文に差し込む画像・動画

   画像には width / height を必ず付けているので、
   読み込み中もこの比率ぶんの場所が確保され、レイアウトがずれない。
   ========================================================= */
.c-figure {
  margin: 3.4rem 0;
}

.c-figure img,
.c-figure video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  background: var(--color-pblue);
}

.c-figure-caption {
  margin-top: 1.2rem;
  font-size: 1.3rem;
  line-height: 1.8;
  color: var(--color-blue);
  text-align: center;
}

/* 動画は背景を敷いて、読み込み前でも枠が分かるように */
.c-figure.is-video video {
  background: #0d2530;
}

/* YouTube 等の埋め込み。16:9 を保つ */
.c-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: #0d2530;
}

.c-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media screen and (max-width: 767px) {
  .c-figure {
    margin: 2.6rem 0;
  }

  .c-figure img,
  .c-figure video,
  .c-embed {
    border-radius: 12px;
  }

  .c-figure-caption {
    margin-top: 0.9rem;
    font-size: 1.2rem;
    text-align: left;
  }
}
