/*
 * マガジン・お知らせ（T-187）。接頭辞 mg-（T-111：ページごとの素の CSS）。
 * トップの「マガジン」の節もこのカード（mg-card）を使う。
 * 色はサイトの青 #469BFF。文字の大きさはサウナイキタイにそろえる（本文 16px・行の高さ 1.9、スマホ 15px）。
 */
.mg-wrap { max-width: 1100px; margin: 0 auto; padding: 40px 16px 80px; box-sizing: content-box; color: #111; }
.mg-h1 { margin: 0 0 28px; font-size: 26px; font-weight: 700; line-height: 1.4; }
.mg-h1 small { margin-left: 24px; font-size: 13px; font-weight: 500; color: #595757; }
.mg-h2 { margin: 0 0 20px; font-size: 20px; font-weight: 700; }
.mg-empty { padding: 60px 0; text-align: center; color: #595757; background: #fff; border-radius: 8px; }

/* カード（デザインイメージ_トップの「マガジン」：写真 277×166・題 13px 太字・書いた人） */
.mg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 30px; }
.mg-card { display: block; color: inherit; text-decoration: none; }
.mg-card__img { display: block; aspect-ratio: 16 / 9; border-radius: 8px; background: #B5B5B5; overflow: hidden; }
.mg-card__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mg-card__title { display: block; margin-top: 16px; font-size: 16px; font-weight: 700; line-height: 1.6; }
.mg-card:hover .mg-card__title { color: #469BFF; }
.mg-card__author { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 12px; color: #595757; }
.mg-card__author img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; }

/* お知らせ（トップの tp-notices と同じ形） */
.mg-news { list-style: none; margin: 0; padding: 30px 60px; background: #fff; border-radius: 8px; }
.mg-news li { display: flex; gap: 1em; font-size: 15px; line-height: 2.4; }
.mg-news span { flex-shrink: 0; color: #595757; }
.mg-news a { color: #469BFF; }

/* 記事（T-189。サウナイキタイのマガジンの記事と同じ作り：白い地に1段・幅 640px） */
.mg-page { max-width: 640px; margin: 0 auto; padding: 40px 16px 80px; box-sizing: content-box; color: #111; }
.mg-eyecatch { display: block; width: 100%; height: auto; margin-bottom: 24px; }
.mg-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0; font-size: 12px; color: #9FA0A0; }
.mg-chip { padding: 2px 10px; border-radius: 12px; background: #EAF3FF; color: #469BFF; font-size: 12px; font-weight: 700; text-decoration: none; }
.mg-crumb { margin: 0 0 8px; font-size: 13px; }
.mg-crumb a { color: #469BFF; font-weight: 700; }
.mg-title { margin: 10px 0 0; font-size: 26px; font-weight: 700; line-height: 1.5; }
.mg-lead { margin: 16px 0 0; font-size: 13px; line-height: 1.8; color: #595757; }
.mg-byline { display: flex; align-items: center; gap: 8px; margin: 20px 0 0; font-size: 12px; font-weight: 700; }
.mg-byline img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }

/* 本文（WordPress のブロックエディタの HTML）。見出しは飾りのない太字（サウナイキタイと同じ） */
.mg-body { margin-top: 36px; font-size: 16px; line-height: 1.9; overflow-wrap: anywhere; }
.mg-body > * { margin: 0 0 1.5em; }
.mg-body h2 { margin: 2.6em 0 1em; font-size: 22px; font-weight: 700; line-height: 1.5; }
.mg-body h3 { margin: 2.2em 0 .8em; font-size: 18px; font-weight: 700; line-height: 1.5; }
.mg-body h4 { margin: 1.8em 0 .6em; font-size: 16px; font-weight: 700; }
.mg-body strong, .mg-body b { font-weight: 700; }
.mg-body a { color: #469BFF; text-decoration: underline; }
.mg-body img { max-width: 100%; height: auto; }
.mg-body figure { margin-left: 0; margin-right: 0; }
.mg-body figcaption { margin-top: 6px; font-size: 12px; color: #898989; }
.mg-body ul, .mg-body ol { padding-left: 1.5em; }
/* Tailwind の初期化で点と番号が消えているので戻す */
.mg-body ul { list-style: disc; }
.mg-body ol { list-style: decimal; }
.mg-body li + li { margin-top: .3em; }
.mg-body blockquote { margin-left: 0; margin-right: 0; padding: 16px 20px; border-left: 4px solid #DCDDDD; background: #F7F7F7; color: #444; }
.mg-body blockquote p:last-child { margin-bottom: 0; }
.mg-body table { width: 100%; border-collapse: collapse; font-size: 14px; }
.mg-body th, .mg-body td { padding: 8px 10px; border: 1px solid #DCDDDD; text-align: left; }
.mg-body th { background: #F7F7F7; }
.mg-body .wp-block-table { overflow-x: auto; }
.mg-body iframe { max-width: 100%; }
.mg-body .wp-block-embed__wrapper { position: relative; }
.mg-body .wp-embed-aspect-16-9 .wp-block-embed__wrapper { aspect-ratio: 16 / 9; }
.mg-body .wp-embed-aspect-16-9 iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.mg-body .aligncenter { margin-left: auto; margin-right: auto; text-align: center; }
.mg-body .wp-block-columns { display: flex; gap: 12px; }
.mg-body .wp-block-column { flex: 1; min-width: 0; }
.mg-body hr { border: 0; border-top: 1px solid #DCDDDD; }

/* 感想をシェア */
.mg-share { margin-top: 56px; text-align: center; }
.mg-share p { margin: 0 0 14px; font-size: 13px; font-weight: 700; line-height: 1.7; }
.mg-share__btns { display: flex; justify-content: center; gap: 8px; }
.mg-share__btns a { display: flex; align-items: center; justify-content: center; gap: 6px; flex: 0 1 160px; padding: 9px 0; border-radius: 4px; color: #fff; font-size: 13px; font-weight: 700; text-decoration: none; }
.mg-share__btns svg { width: 16px; height: 16px; fill: currentColor; flex-shrink: 0; }
.mg-share__x { background: #111; }
.mg-share__fb { background: #1877F2; }
.mg-share__line { background: #06C755; }

/* 記事の下の節（記事を書いた人・同じテーマ・最新記事） */
.mg-sec { margin-top: 56px; }
.mg-sec__h { margin: 0 0 20px; font-size: 18px; font-weight: 700; }
.mg-writer { display: flex; align-items: flex-start; gap: 16px; }
.mg-writer img { flex-shrink: 0; width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.mg-writer__name { margin: 6px 0 0; font-size: 15px; font-weight: 700; }
.mg-writer__bio { margin: 6px 0 0; font-size: 13px; line-height: 1.7; color: #595757; }
.mg-row { display: flex; gap: 16px; padding: 10px 0; color: inherit; text-decoration: none; }
.mg-row__img { flex-shrink: 0; width: 180px; aspect-ratio: 16 / 9; border-radius: 4px; background: #D9D9D9; overflow: hidden; }
.mg-row__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mg-row__text { display: flex; flex-direction: column; justify-content: center; gap: 4px; min-width: 0; }
.mg-row__date { font-size: 11px; color: #9FA0A0; }
.mg-row__title { font-size: 15px; font-weight: 700; line-height: 1.6; }
.mg-row:hover .mg-row__title { color: #469BFF; }
.mg-row__author { display: flex; align-items: center; gap: 6px; font-size: 11px; color: #595757; }
.mg-row__author img { width: 16px; height: 16px; border-radius: 50%; object-fit: cover; }
.mg-more { margin: 20px 0 0; text-align: center; }
.mg-more a { display: inline-block; min-width: 180px; padding: 9px 24px; border-radius: 20px; background: #469BFF; color: #fff; font-size: 14px; font-weight: 700; text-decoration: none; }
.mg-crumbs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 64px; font-size: 11px; color: #898989; }
.mg-crumbs a { color: #595757; }

/* スマホ（1024px 未満）：地は白（T-88）。記事は箱をやめて全幅 */
@media (max-width: 1023px) {
    .mg-wrap { padding: 24px 16px 48px; }
    .mg-h1 { font-size: 20px; margin-bottom: 20px; }
    .mg-h1 small { display: block; margin: 6px 0 0; font-size: 12px; }
    .mg-grid { grid-template-columns: 1fr; gap: 28px; }
    .mg-news { margin: 0 -16px; padding: 8px 16px; border-radius: 0; }
    .mg-news li { flex-direction: column; gap: 0; padding: 12px 0; line-height: 1.6; border-bottom: 1px solid #EFEFEF; }
    .mg-news span { font-size: 12px; }
    .mg-page { padding: 0 16px 48px; }
    .mg-eyecatch { width: calc(100% + 32px); max-width: none; margin: 0 -16px 20px; }
    .mg-title { font-size: 21px; }
    .mg-body { font-size: 15px; }
    .mg-body h2 { font-size: 19px; }
    .mg-body h3 { font-size: 16px; }
    .mg-sec { margin: 40px -16px 0; padding: 28px 16px 0; border-top: 10px solid #F2F2F2; }
    .mg-row__img { width: 120px; }
    .mg-row__title { font-size: 14px; }
    .mg-more a { display: block; }
}

/* T-384。記事の「よくある質問」を開いて読む形（WordPress の「カスタム HTML」ブロックで <div class="ts-faq"><details><summary>…</summary><div>…</div></details>…</div>）。
   1問ずつ白いカード（角丸・薄い影）。質問の頭に青い「Q.」、答えの頭にピンクの「A.」、右に細い矢印（開くと上向き）。
   Q. と A. は CSS で付けるので、HTML ブロックには書かない（構造化データに混ざらない）。構造化データ（FAQPage）は App\Seo\ArticleFaq が同じ中身から作る */
.mg-body .ts-faq { margin: 1.4em 0 2.4em; }
.mg-body .ts-faq details { margin: 0 0 16px; background: #fff; border-radius: 12px; box-shadow: 0 2px 12px rgba(0, 0, 0, .08); overflow: hidden; }
.mg-body .ts-faq details:last-child { margin-bottom: 0; }
.mg-body .ts-faq summary { position: relative; display: block; padding: 22px 60px 22px 66px; color: #111; font-size: 16px; font-weight: 700; line-height: 1.7; cursor: pointer; list-style: none; transition: background-color .2s; }
.mg-body .ts-faq summary::-webkit-details-marker { display: none; }
.mg-body .ts-faq summary::before,
.mg-body .ts-faq details > div::before { position: absolute; left: 24px; font-size: 26px; font-weight: 500; line-height: 1; letter-spacing: 0; }
.mg-body .ts-faq summary::before { content: "Q."; top: 21px; color: #469BFF; }
.mg-body .ts-faq summary::after { content: ""; position: absolute; top: 50%; right: 24px; width: 14px; height: 20px; margin-top: -10px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 20' fill='none' stroke='%239FA0A0' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 1v17M1 12l6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat; transition: transform .2s; }
.mg-body .ts-faq details[open] summary::after { transform: rotate(180deg); }
.mg-body .ts-faq details:not([open]) summary:hover { background: #EEF5FF; }
.mg-body .ts-faq summary:focus-visible { outline: 2px solid #469BFF; outline-offset: -2px; border-radius: 12px; }
.mg-body .ts-faq details > div { position: relative; margin: 0 24px; padding: 22px 12px 26px 42px; border-top: 1px solid #DCDDDD; }
.mg-body .ts-faq details > div::before { content: "A."; left: 0; top: 20px; color: #FB7AA5; }
.mg-body .ts-faq details > div > :first-child { margin-top: 0; }
.mg-body .ts-faq details > div > :last-child { margin-bottom: 0; }
@media (max-width: 767px) {
    .mg-body .ts-faq details { margin-bottom: 12px; border-radius: 10px; }
    .mg-body .ts-faq summary { padding: 18px 46px 18px 50px; font-size: 15px; }
    .mg-body .ts-faq summary::before { left: 16px; top: 18px; font-size: 22px; }
    .mg-body .ts-faq summary::after { right: 16px; width: 12px; height: 17px; margin-top: -8px; }
    .mg-body .ts-faq details > div { margin: 0 16px; padding: 18px 4px 20px 34px; }
    .mg-body .ts-faq details > div::before { top: 17px; font-size: 22px; }
}
}
