@charset "UTF-8";
/* ============================================
   問いの編集室 - マガジン専用CSS
   magazine.css
   ============================================ */
/**********************************
* Media queries breakpoints
**********************************/
/* Extra small screen / phone
------------------------*/
/* Small screen / tablet
------------------------*/
/* Medium screen / desktop
------------------------*/
/* Large screen / wide desktop
------------------------*/
/* So media queries don't overlap when required, provide a maximum
------------------------*/
/**********************************
* Responsive mixins
**********************************/
/* --- CSS変数 --- */
:root {
  --mag-main-color: #333;
  --mag-sub-color: #666;
  --mag-border: #333;
  --mag-light-border: #eee;
  --mag-accent: #1a1a1a;
  --mag-tag-bg: #fff;
  --mag-sidebar-width: 420px;
  --mag-container-width: 1280px;
  --black: #02041B;
}

/* --- リセット・基本設定 --- */
html {
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  padding: 0;
}

.mag-wrap {
  font-family: "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "游ゴシック Medium", "Yu Gothic Medium", "游ゴシック体", YuGothic, Meiryo, sans-serif;
  color: var(--mag-main-color);
  font-weight: 300;
  line-height: 180%;
  font-size: 15px;
  background: #fff;
}

.mag-wrap *,
.mag-wrap *::before,
.mag-wrap *::after {
  box-sizing: border-box;
}

:where(.mag-wrap a) {
  color: inherit;
  text-decoration: none;
}

:where(.mag-wrap a:hover) {
  text-decoration: underline;
}

:where(.mag-wrap figure) {
  margin: 0;
}

.mag-wrap img {
  max-width: 100%;
  height: auto;
  display: block;
}

.mag-container {
  max-width: var(--mag-container-width);
  margin: 0 auto;
  padding: 0 16px;
}
@media screen and (min-width: 768px) {
  .mag-container {
    padding: 0 40px;
  }
}

/* ============================================
   ヘッダー
   ============================================ */
.mag-header {
  display: flex;
  align-items: center;
  margin: 0 -16px 24px;
  padding-left: 16px;
  height: 48px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}
@media screen and (min-width: 768px) {
  .mag-header {
    margin: 0;
    padding: 12px 0;
    height: auto;
  }
}
@media screen and (min-width: 1024px) {
  .mag-header {
    padding: 20px 0;
    border-bottom: none;
  }
}

.mag-site-logo {
  margin-right: auto;
}
.mag-site-logo h1 {
  margin: 0;
}
.mag-site-logo a {
  text-decoration: none;
  color: inherit;
}
.mag-site-logo img {
  width: 120px;
}
@media screen and (min-width: 768px) {
  .mag-site-logo img {
    width: 160px;
  }
}

.mag-header-right {
  display: flex;
  gap: 24px;
  align-items: center;
}

/* PCリンク */
.mag-pc-links {
  display: none;
}
@media screen and (min-width: 1024px) {
  .mag-pc-links {
    display: flex;
  }
}
.mag-pc-links a {
  font-size: 14px;
  line-height: 1;
  color: var(--black);
  font-weight: bold;
  text-decoration: none;
}
.mag-pc-links a:hover {
  text-decoration: underline;
}
.mag-pc-links a:not(:last-child) {
  padding-right: 16px;
  border-right: 1px solid var(--black);
  margin-right: 16px;
}

/* PC検索 */
.mag-pc-search {
  position: relative;
  width: 280px;
  display: none;
  align-items: center;
}
@media screen and (min-width: 1024px) {
  .mag-pc-search {
    display: block;
  }
}

.mag-pc-search input {
  width: 100%;
  border: 1px solid #8E8E8E;
  border-radius: 100px;
  padding: 0 40px 0 16px;
  height: 34px;
  font-size: 15px;
  outline: none;
}
.mag-pc-search input:focus {
  border-color: var(--mag-main-color);
}
.mag-pc-search input::placeholder {
  color: rgba(0, 0, 0, 0.3);
}

.mag-pc-search-btn {
  position: absolute;
  right: 8px;
  top: 0;
  height: 100%;
  width: 36px;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 15px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* MENUボタン（黄色・常時表示） */
.mag-menu-label {
  font-family: "Be Vietnam Pro", sans-serif;
  font-weight: 600;
  font-size: 13px;
  line-height: 1;
  color: var(--black);
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 18px;
  gap: 8px;
  background: linear-gradient(90deg, #EDFE00 0%, #88FF00 100%);
  height: 48px;
}
@media screen and (min-width: 768px) {
  .mag-menu-label {
    border-radius: 100px;
    width: 130px;
    height: 48px;
    margin-left: 16px;
    transition: all 0.4s ease;
  }
  .mag-menu-label:hover {
    background: var(--black);
    color: #fff;
  }
}

/* MENUボタン内のバーガーアイコン */
.mag-menu-burger {
  width: 17px;
  height: 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.mag-menu-burger span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--black);
  transition: all 0.4s ease;
}

@media screen and (min-width: 768px) {
  .mag-menu-label:hover .mag-menu-burger span {
    background-color: #fff;
  }
}

/* ============================================
   フッター
   ============================================ */
.mag-footer-cta-section {
  padding: 16px 0;
  color: #fff;
  background: var(--black);
  position: relative;
  inset-inline: 50%;
  width: 100vw;
  margin-inline: -50vw;
  padding-inline: calc((100vw - 100%) / 2);
}
@media screen and (min-width: 768px) {
  .mag-footer-cta-section {
    padding: 24px 0;
    padding-inline: calc((100vw - 100%) / 2);
  }
}

.mag-footer-cta-btn {
  aspect-ratio: 343/69;
  display: grid;
  place-content: center;
  position: relative;
  text-align: center;
  z-index: 0;
  text-decoration: none;
}
@media screen and (min-width: 768px) {
  .mag-footer-cta-btn {
    aspect-ratio: 1200/242;
    transition: opacity 0.2s ease;
  }
  .mag-footer-cta-btn:hover {
    text-decoration: none;
    opacity: 0.7;
  }
}
.mag-footer-cta-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../images/magazine/footer_interview.jpg") center/cover no-repeat;
  opacity: 0.7;
  z-index: -1;
}

.mag-footer-cta-section .mag-footer-cta-label {
  font-size: 14px;
  line-height: 120%;
  margin: 0 0 4px;
}
@media screen and (min-width: 768px) {
  .mag-footer-cta-section .mag-footer-cta-label {
    font-size: 16px;
    margin: 0 0 16px;
  }
}

.mag-footer-cta-section .mag-footer-cta-title {
  font-weight: bold;
  font-size: 18px;
  line-height: 120%;
  margin: 0;
}
@media screen and (min-width: 768px) {
  .mag-footer-cta-section .mag-footer-cta-title {
    font-size: 26px;
  }
}

.mag-footer {
  padding: 0 0 24px;
  color: #fff;
  background: var(--black);
  position: relative;
  inset-inline: 50%;
  width: 100vw;
  margin-inline: -50vw;
  padding-inline: calc((100vw - 100%) / 2);
}

.mag-footer-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
@media screen and (min-width: 768px) {
  .mag-footer-grid {
    flex-direction: row;
    gap: 24px;
    align-items: center;
    justify-content: space-between;
  }
}

.mag-univ-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: bold;
  letter-spacing: 1px;
}

.mag-univ-logo img {
  width: 194px;
}
@media screen and (min-width: 768px) {
  .mag-univ-logo img {
    width: 263px;
  }
}

.mag-footer-links {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
@media screen and (min-width: 768px) {
  .mag-footer-links {
    justify-content: flex-end;
  }
}

.mag-footer-links a {
  display: block;
  color: inherit;
  font-size: 14px;
  line-height: 140%;
  font-weight: bold;
  text-decoration: none;
}
@media screen and (min-width: 768px) {
  .mag-footer-links a {
    font-size: 15px;
  }
  .mag-footer-links a:hover {
    text-decoration: underline;
  }
}
.mag-footer-links a:not(:last-child) {
  padding-right: 16px;
  border-right: 1px solid #fff;
  margin-right: 16px;
}

.mag-footer-copy {
  font-size: 13px;
  line-height: 150%;
}
@media screen and (min-width: 768px) {
  .mag-footer-copy {
    text-align: right;
  }
}

/* ============================================
   メインレイアウト（2カラム）
   ============================================ */
.mag-main {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-bottom: 40px;
}
@media screen and (min-width: 768px) {
  .mag-main {
    display: grid;
    grid-template-columns: 37fr 21fr;
    gap: 40px;
    align-items: start;
    padding-bottom: 80px;
  }
}

@media screen and (min-width: 768px) {
  .mag-main-content {
    min-width: 0;
  }
}

/* ============================================
   サイドバー
   ============================================ */
@media screen and (min-width: 768px) {
  .mag-sidebar {
    position: sticky;
    top: 20px;
  }
}

.mag-sidebar-popular {
  background: #F8F8F8;
  padding: 32px 16px;
  margin: 0 -16px 16px;
}
@media screen and (min-width: 768px) {
  .mag-sidebar-popular {
    padding: 40px 24px;
    margin: 0 0 16px;
  }
}

/* PC サイドバー内では縦型カードに上書き（モバイルは mag-card-item デフォルトの横型を使用） */
@media screen and (min-width: 768px) {
  .mag-sidebar-popular .mag-card-list {
    gap: 0;
  }
  .mag-sidebar-popular li {
    padding: 16px 0;
    border-bottom: 1px solid #d8d8d8;
  }
  .mag-sidebar-popular li:first-child {
    padding-top: 0;
  }
  .mag-sidebar-popular li:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
  /* カード: 縦並び・透明背景 */
  .mag-sidebar-popular .mag-card-item {
    display: block;
    padding: 0;
    background: transparent;
    transition: opacity 0.2s ease;
  }
  .mag-sidebar-popular .mag-card-item:hover {
    opacity: 0.7;
    text-decoration: none;
  }
  /* サムネイル: 全幅・16/9 */
  .mag-sidebar-popular .mag-card-thumb {
    width: 100%;
    max-width: none;
    aspect-ratio: 16/9;
  }
  /* タイトル */
  .mag-sidebar-popular .mag-card-title {
    font-size: 16px;
    padding: 8px 0;
    margin: 0;
  }
}

/* サイドバー記事カード（縦型・画像全幅） */
.mag-sidebar-card-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

/* アイテム間の区切り線（PC サイドバー用） */
.mag-sidebar-card-list li {
  padding: 16px 0;
  border-bottom: 1px solid #e8e8e8;
}
.mag-sidebar-card-list li:first-child {
  padding-top: 0;
}
.mag-sidebar-card-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

/* ---- ベーススタイル（PC 縦型） ---- */
.mag-sidebar-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

.mag-sidebar-card-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #e8e8e8;
}

.mag-sidebar-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mag-sidebar-card-title {
  font-size: 13px;
  font-weight: bold;
  line-height: 130%;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  padding: 6px 0 4px;
}

/* ---- PC 追加スタイル ---- */
@media screen and (min-width: 768px) {
  .mag-sidebar-card {
    transition: opacity 0.2s ease;
  }
  .mag-sidebar-card:hover {
    text-decoration: none;
    opacity: 0.7;
  }
  .mag-sidebar-card-title {
    font-size: 16px;
    padding: 8px 0;
  }
}

/* ---- モバイル: mag-card-item と同一レイアウト（ベースより後に定義して上書き） ---- */
@media screen and (max-width: 767px) {
  .mag-sidebar-card-list li {
    padding: 0;
    border-bottom: none;
  }
  .mag-sidebar-card {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 8px 8px 8px 6px;
    background: #F8F8F8;
  }
  .mag-sidebar-card-thumb {
    width: 86px;
    flex-shrink: 0;
    aspect-ratio: 86/48;
    /* overflow・background はベースから継承 */
  }
  .mag-sidebar-card-body {
    flex: 1;
  }
}

.mag-sidebar-cta {
  display: block;
}
@media screen and (min-width: 768px) {
  .mag-sidebar-cta {
    transition: opacity 0.2s ease;
  }
  .mag-sidebar-cta:hover {
    text-decoration: none;
    opacity: 0.7;
  }
}

/* ============================================
   固定ページ
   ============================================ */
.mag-page-header {
  margin: 0 0 16px;
  font-size: 24px;
  line-height: 1;
  font-weight: bold;
}
@media screen and (min-width: 768px) {
  .mag-page-header {
    margin: 0 0 32px;
    font-size: 36px;
    line-height: 140%;
  }
}

/* マガジン名ボックス */
.mag-page-logo-box {
  background: #F8F8F8;
  text-align: center;
  padding: 35px 16px;
  margin-bottom: 32px;
}
@media screen and (min-width: 768px) {
  .mag-page-logo-box {
    margin-bottom: 40px;
  }
}
.mag-page-logo-box img {
  margin: auto;
}
.mag-page-logo-box + .mag-page-section {
  margin-top: 0;
}

/* 各セクション */
.mag-page-section {
  margin-top: 40px;
  margin-bottom: 40px;
}
@media screen and (min-width: 768px) {
  .mag-page-section {
    margin-top: 56px;
    margin-bottom: 56px;
  }
}
.mag-page-section:first-child {
  margin-top: 0;
}
.mag-page-section:last-child {
  margin-bottom: 0;
}

.mag-page-section h2 {
  border-width: 1px 0px;
  border-style: dashed;
  border-color: #535564;
  font-size: 19px;
  line-height: 140%;
  font-weight: bold;
  padding: 7px 0 7px 20px;
  margin: 0 0 24px;
  line-height: 1.5;
  position: relative;
}
@media screen and (min-width: 768px) {
  .mag-page-section h2 {
    font-size: 24px;
    margin: 0 0 32px;
  }
}
.mag-page-section h2::before {
  content: "";
  display: block;
  width: 4px;
  height: 24px;
  background: #FCF51D;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  margin: auto;
}
.mag-page-section p {
  font-size: 15px;
  line-height: 180%;
  color: #000;
  margin: 0 0 16px;
}
.mag-page-section p:first-child {
  margin-top: 0;
}
.mag-page-section p:last-child {
  margin-bottom: 0;
}
.mag-page-section h3 {
  font-size: 18px;
  line-height: 150%;
  color: var(--black);
  margin: 32px 0 8px;
}
@media screen and (min-width: 768px) {
  .mag-page-section h3 {
    font-size: 20px;
    margin: 56px 0 24px;
  }
}
.mag-page-section h3:first-child {
  margin-top: 0;
}
.mag-page-section h3:last-child {
  margin-bottom: 0;
}
.mag-page-section h2 + h3 {
  margin-top: 0;
}
.mag-page-section .mag-buttons .mag-button {
  margin: 0;
}
@media screen and (min-width: 768px) {
  .mag-page-section .mag-buttons .mag-button {
    width: 100%;
  }
}
.mag-page-section .mag-button {
  margin: 16px 0;
}
@media screen and (min-width: 768px) {
  .mag-page-section .mag-button {
    margin: 24px 0;
    min-width: 220px;
    width: fit-content;
  }
}
.mag-page-section .mag-button:first-child {
  margin-top: 0;
}
.mag-page-section .mag-button:last-child {
  margin-bottom: 0;
}
.mag-page-section .mag-page-imgtxt {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-bottom: 32px;
}
@media screen and (min-width: 768px) {
  .mag-page-section .mag-page-imgtxt {
    grid-template-columns: 310fr 398fr;
    gap: 32px;
    margin-bottom: 48px;
  }
}
.mag-page-section .mag-page-imgtxt-title {
  margin: 0;
}
@media screen and (min-width: 768px) {
  .mag-page-section .mag-page-imgtxt-title {
    margin: 0 0 16px;
  }
}

/* ============================================
   投稿ページ
   ============================================ */
.mag-grid {
  display: grid;
  gap: 8px;
}
.mag-grid--col2 {
  grid-template-columns: 1fr 1fr;
  margin-bottom: 24px;
}
@media screen and (min-width: 768px) {
  .mag-grid--col2 {
    margin-bottom: 32px;
  }
}
.mag-grid--col3 {
  grid-template-columns: 1fr;
  margin-bottom: 32px;
}
@media screen and (min-width: 768px) {
  .mag-grid--col3 {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.mag-image {
  margin-bottom: 24px;
}
@media screen and (min-width: 768px) {
  .mag-image {
    margin-bottom: 32px;
  }
}
.mag-image figcaption {
  margin-top: 4px;
  text-align: center;
  font-size: 11px;
  line-height: 160%;
  padding-bottom: 10px;
}
@media screen and (min-width: 768px) {
  .mag-image figcaption {
    margin-top: 10px;
  }
}

.mag-grid .mag-image {
  margin-bottom: 0;
}

.mag-post-header {
  margin: 0 0 16px;
}
@media screen and (min-width: 768px) {
  .mag-post-header {
    margin: 0 0 32px;
  }
}

.mag-post-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}
@media screen and (min-width: 768px) {
  .mag-post-meta {
    margin-bottom: 16px;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.mag-post-meta-date {
  font-size: 11px;
  font-family: "Be Vietnam Pro", sans-serif;
  line-height: 1;
  font-weight: 300;
}
@media screen and (min-width: 768px) {
  .mag-post-meta-date {
    font-size: 13px;
  }
}

.mag-post-meta-update::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  background: url(../images/icon/refresh.svg) center center/cover no-repeat;
  vertical-align: bottom;
}
@media screen and (min-width: 768px) {
  .mag-post-meta-update::before {
    width: 13px;
    height: 13px;
  }
}

.mag-post-meta-tags {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mag-post-title {
  font-size: 20px;
  line-height: 140%;
  font-weight: bold;
  margin: 0;
}
@media screen and (min-width: 768px) {
  .mag-post-title {
    font-size: 28px;
  }
}

.mag-post-eyecatch {
  margin-bottom: 32px;
}
.mag-post-eyecatch img {
  width: 100%;
}
@media screen and (min-width: 768px) {
  .mag-post-eyecatch {
    margin-bottom: 48px;
  }
}

@media screen and (min-width: 768px) {
  .mag-post-body {
    margin-bottom: 72px;
  }
}
.mag-post-body h2 {
  margin: 0 0 16px;
  color: #fff;
  padding: 12px 16px 8px;
  border-bottom: 2px solid #FCF51D;
  font-size: 18px;
  line-height: 150%;
  font-weight: bold;
  background: var(--black);
}
@media screen and (min-width: 768px) {
  .mag-post-body h2 {
    margin: 0 0 24px;
    font-size: 20px;
  }
}
.mag-post-body p {
  font-size: 15px;
  line-height: 180%;
  margin: 0;
}
.mag-post-body a {
  color: #3D94FF;
  text-decoration: underline;
}
@media screen and (min-width: 768px) {
  .mag-post-body a:hover {
    text-decoration: none;
  }
}

/* SNSシェア */
.mag-post-share {
  text-align: center;
  padding: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  background: #3D94FF;
  color: #fff;
  margin-bottom: 32px;
}
@media screen and (min-width: 768px) {
  .mag-post-share {
    padding: 9px;
    margin-bottom: 40px;
  }
}

.mag-post-share-title {
  font-size: 13px;
  line-height: 1;
  margin: 0;
}
@media screen and (min-width: 768px) {
  .mag-post-share-title {
    font-size: 14px;
  }
}

.mag-share-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mag-share-button {
  width: 32px;
  height: 32px;
}
@media screen and (min-width: 768px) {
  .mag-share-button--line svg path {
    transition: fill 0.2s ease;
  }
  .mag-share-button--line:hover svg path {
    fill: var(--black);
  }
}
@media screen and (min-width: 768px) {
  .mag-share-button--x svg rect {
    transition: fill 0.2s ease;
  }
  .mag-share-button--x:hover svg rect {
    fill: var(--black);
  }
}

/* プロフィールボックス */
.mag-profile-section {
  margin-bottom: 24px;
}
@media screen and (min-width: 768px) {
  .mag-profile-section {
    margin-bottom: 40px;
  }
}

.mag-profile {
  background-color: #f8f8f8;
  position: relative;
}
.mag-profile::before {
  content: "";
  display: block;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(160, 160, 160, 0.6) 100%);
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 35px;
}
@media screen and (min-width: 768px) {
  .mag-profile::before {
    display: none;
  }
}
.mag-profile.is-open::before {
  display: none;
}

.mag-profile-switch {
  width: 40px;
  height: 40px;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
  transform: translateY(50%);
}
@media screen and (min-width: 768px) {
  .mag-profile-switch {
    display: none;
  }
}

.mag-profile.is-open .mag-profile-switch {
  display: none;
}

.mag-profile-content {
  height: 140px;
  overflow: hidden;
  transition: height 0.6s ease;
}
@media screen and (min-width: 768px) {
  .mag-profile-content {
    height: auto;
  }
}

.mag-profile.is-open .mag-profile-content {
  height: auto;
}

.mag-profile-inner {
  padding: 16px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 16px 8px;
}
@media screen and (min-width: 768px) {
  .mag-profile-inner {
    padding: 24px 16px;
    align-items: flex-start;
    gap: 16px 32px;
  }
}
.mag-profile-inner .mag-buttons {
  grid-column: 1/3;
}

.mag-profile-photo {
  width: 70px;
  height: 70px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 100%;
}
@media screen and (min-width: 768px) {
  .mag-profile-photo {
    width: 126px;
    height: 126px;
    grid-row: 1/3;
  }
}
.mag-profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mag-profile-dept {
  font-size: 13px;
  line-height: 140%;
  font-weight: bold;
  margin: 0 0 2px;
}
@media screen and (min-width: 768px) {
  .mag-profile-dept {
    font-size: 14px;
    margin: 0 0 8px;
  }
}

.mag-profile-name {
  padding: 5px 0;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  font-size: 20px;
  line-height: 1;
  font-weight: bold;
  margin: 0;
}
@media screen and (min-width: 768px) {
  .mag-profile-name {
    padding: 4px 0;
    font-size: 22px;
  }
}

.mag-profile-en {
  font-size: 11px;
  font-family: "Be Vietnam Pro", sans-serif;
  font-weight: 300;
}
@media screen and (min-width: 768px) {
  .mag-profile-en {
    font-size: 13px;
  }
}

.mag-profile-body {
  grid-column: 1/3;
}
@media screen and (min-width: 768px) {
  .mag-profile-body {
    grid-column: auto;
  }
}

.mag-profile-field {
  display: grid;
  gap: 4px;
  margin: 0;
}
@media screen and (min-width: 768px) {
  .mag-profile-field {
    gap: 12px;
    grid-template-columns: auto 1fr;
    align-items: flex-start;
  }
}
.mag-profile-field:has(+ .mag-profile-field) {
  margin: 0 0 8px;
}
@media screen and (min-width: 768px) {
  .mag-profile-field:has(+ .mag-profile-field) {
    margin: 0 0 12px;
  }
}

.mag-profile-field-label {
  display: block;
  border: 1px solid #000;
  width: 100px;
  padding: 4px 0;
  font-size: 12px;
  line-height: 1;
  font-weight: bold;
  text-align: center;
}
@media screen and (min-width: 768px) {
  .mag-profile-field-label {
    padding: 6px;
  }
}

.mag-profile-field-value {
  font-size: 13px;
  line-height: 140%;
  margin: 0;
}
@media screen and (min-width: 768px) {
  .mag-profile-field-value {
    font-size: 14px;
    line-height: 150%;
  }
}
.mag-profile-field-value ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.mag-profile-field-value ul li {
  padding-left: 1em;
}
.mag-profile-field-value ul li::before {
  content: "・";
}
.mag-profile-field-value ul li::first-letter {
  margin-left: -1em;
}

/* 関連キーワード */
.mag-post-keywords {
  border: 1px dashed rgba(2, 4, 27, 0.3);
  padding: 15px;
  margin-bottom: 24px;
}
@media screen and (min-width: 768px) {
  .mag-post-keywords {
    padding: 15px 23px;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: space-between;
  }
}

.mag-post-keywords-label {
  font-size: 15px;
  line-height: 1;
  font-weight: bold;
  margin: 0 0 10px;
}
@media screen and (min-width: 768px) {
  .mag-post-keywords-label {
    margin: 0;
  }
}

.mag-post-keywords-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.mag-post-keywords-list a {
  display: inline-block;
  padding: 4px 12px;
  color: #1a6a7a;
  font-size: 13px;
  line-height: 1;
  background: #f4f8f9;
  border: 1px solid #d4e2e5;
  border-radius: 2px;
  text-decoration: none;
  transition: all 0.2s;
}
@media screen and (min-width: 768px) {
  .mag-post-keywords-list a {
    padding: 5px 14px;
    font-size: 13px;
  }
  .mag-post-keywords-list a:hover {
    background: #1a6a7a;
    color: #fff;
    border-color: #1a6a7a;
    text-decoration: none;
  }
}

.mag-related-section .mag-ribbon-title {
  margin-bottom: 8px;
}
@media screen and (min-width: 768px) {
  .mag-related-section .mag-ribbon-title {
    margin-bottom: 16px;
  }
}

/* ============================================
   このウェブマガジンについて ページ
   ============================================ */
/* ============================================
   記事詳細ページ
   ============================================ */
/* ============================================
   創価大学の研究紹介 ページ
   ============================================ */
/* ============================================
   PCナビゲーション（カテゴリバー）
   ============================================ */
.mag-pc-nav {
  display: none;
  margin-bottom: 40px;
}
@media screen and (min-width: 768px) {
  .mag-pc-nav {
    display: block;
    position: relative;
    isolation: isolate;
  }
  .mag-pc-nav::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc(50% - 50vw);
    right: calc(50% - 50vw);
    background-color: #36BBD5;
    z-index: -1;
  }
}

.mag-pc-nav ul {
  display: flex;
  justify-content: space-between;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  background-color: #36BBD5;
}

.mag-pc-nav ul li {
  width: 100%;
}

.mag-pc-nav ul li {
  border-left: 1px solid #fff;
}
.mag-pc-nav ul li:last-child {
  border-right: 1px solid #fff;
}

.mag-pc-nav ul li a {
  text-decoration: none;
  font-weight: bold;
  font-size: 15px;
  line-height: 1;
  color: #fff;
  padding: 16.5px 0;
  transition: background-color 0.2s;
  background-color: #36BBD5;
  display: block;
  text-align: center;
}

.mag-pc-nav ul li a:hover,
.mag-pc-nav ul li.current a {
  background-color: var(--black);
  text-decoration: none;
}

/* ============================================
   ドロワーメニュー（フルスクリーンオーバーレイ）
   ============================================ */
.mag-menu-toggle {
  display: none;
}

.mag-menu-btn {
  display: none;
}

/* フルスクリーンオーバーレイ */
.mag-nav-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.mag-sp-search-toggle:checked + .mag-sp-search-label + .mag-nav-overlay,
.mag-menu-toggle:checked + .mag-menu-label + .mag-nav-overlay {
  opacity: 1;
  pointer-events: auto;
}

/* 内側レイアウト（PC: 左右2分割） */
.mag-overlay-inner {
  display: flex;
  flex-direction: column;
  max-width: 300px;
  width: 100%;
  margin: auto;
  position: relative;
}
@media screen and (min-width: 1000px) {
  .mag-overlay-inner {
    max-width: 1200px;
    flex-direction: row;
  }
}

/* 閉じるボタン */
.mag-close-btn {
  width: 50px;
  position: absolute;
  top: 0;
  right: 0;
  line-height: 1;
  cursor: pointer;
  z-index: 10;
  user-select: none;
  transform: translateY(-100%);
}
@media screen and (min-width: 1000px) {
  .mag-close-btn {
    width: 70px;
  }
}

.mag-close-btn:hover {
  opacity: 0.7;
}

/* 左エリア：検索 */
.mag-overlay-left {
  background: #F8F8F8;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  border-radius: 8px 8px 0 0;
  overflow: hidden;
}
@media screen and (min-width: 1000px) {
  .mag-overlay-left {
    padding: 40px 48px;
    width: 43.3333333333%;
    gap: 16px;
    border-radius: 8px 0 0 8px;
  }
}

/* 検索ボックス */
.mag-overlay-search {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 100px;
  border: 1px solid #000;
  height: 36px;
  padding: 0 8px 0 12px;
  gap: 10px;
}
@media screen and (min-width: 1000px) {
  .mag-overlay-search {
    height: 44px;
    padding: 0 12px 0 16px;
  }
}

.mag-overlay-search input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 15px;
  flex: 1;
  color: var(--black);
}
.mag-overlay-search input::placeholder {
  color: rgba(0, 0, 0, 0.3);
}

.mag-overlay-search button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

@media screen and (min-width: 1000px) {
  .mag-overlay-search img {
    width: 38px;
    height: 38px;
  }
}

.mag-overlay-search-hints {
  color: var(--black);
  font-size: 12px;
  line-height: 1;
  margin: 0;
  padding: 0 8px;
}
@media screen and (min-width: 1000px) {
  .mag-overlay-search-hints {
    font-size: 13px;
  }
}

/* 右エリア：カテゴリ + サブリンク */
.mag-overlay-right {
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  border-radius: 0 0 8px 8px;
  overflow: hidden;
}
@media screen and (min-width: 1000px) {
  .mag-overlay-right {
    padding: 40px 32px;
    width: 56.6666666667%;
    border-radius: 0 8px 8px 0;
  }
}

/* カテゴリ 2列グリッド */
.mag-overlay-categories {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
}
@media screen and (min-width: 1000px) {
  .mag-overlay-categories {
    grid-template-columns: 1fr 1fr;
    margin-bottom: 24px;
  }
}

.mag-overlay-categories a {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  background: #36BBD5;
  color: #fff;
  font-size: 18px;
  line-height: 1;
  font-weight: bold;
  padding: 14px 24px;
  text-align: center;
  text-decoration: none;
}
@media screen and (min-width: 1000px) {
  .mag-overlay-categories a {
    justify-content: center;
    padding: 24px 16px;
    transition: background 0.2s;
  }
  .mag-overlay-categories a:hover {
    background: var(--black);
    text-decoration: none;
  }
}
.mag-overlay-categories a::before {
  content: "";
  display: block;
  width: 24px;
  height: 24px;
  background: url(../images/icon/right-arrow.svg) center center/cover no-repeat;
}
@media screen and (min-width: 1000px) {
  .mag-overlay-categories a::before {
    display: none;
  }
}

/* サブリンク（このマガジンについて等） */
.mag-overlay-sub-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  padding: 24px 16px;
}
@media screen and (min-width: 1000px) {
  .mag-overlay-sub-links {
    flex-direction: row;
    justify-content: center;
    gap: 0;
    padding: 0;
  }
}

.mag-overlay-sub-links a {
  color: var(--black);
  font-size: 15px;
  font-weight: bold;
  line-height: 140%;
  text-decoration: none;
}
@media screen and (min-width: 1000px) {
  .mag-overlay-sub-links a {
    flex: 1;
    font-size: 14px;
    text-align: center;
    padding: 0 16px;
    white-space: nowrap;
  }
}

@media screen and (min-width: 1000px) {
  .mag-overlay-sub-links a + a {
    border-left: 1px solid var(--black);
  }
}

.mag-overlay-sub-links a:hover {
  text-decoration: none;
}

/* ============================================
   パンくず
   ============================================ */
.mag-breadcrumb {
  background-color: #282A3D;
  color: #fff;
  font-size: 10px;
  line-height: 1;
  padding-top: 10px;
  padding-bottom: 10px;
  position: relative;
  inset-inline: 50%;
  width: 100vw;
  margin-inline: -50vw;
  padding-inline: calc((100vw - 100%) / 2);
}
@media screen and (min-width: 768px) {
  .mag-breadcrumb {
    font-size: 13px;
    padding-top: 13.5px;
    padding-bottom: 13.5px;
  }
}
.mag-breadcrumb ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
}
@media screen and (min-width: 768px) {
  .mag-breadcrumb ul {
    gap: 6px;
  }
}
.mag-breadcrumb a {
  display: block;
  padding-right: 8px;
  background: url(../images/icon/right-triangle.svg) center right no-repeat;
  text-decoration: none;
}
@media screen and (min-width: 768px) {
  .mag-breadcrumb a {
    padding-right: 10px;
  }
  .mag-breadcrumb a:hover {
    text-decoration: underline;
  }
}

/* ============================================
   汎用タイトル
   ============================================ */
.mag-ribbon-title {
  font-size: 14px;
  line-height: 1;
  color: #fff;
  border-bottom: 1px solid var(--black);
  margin: 0 0 14px;
}
@media screen and (min-width: 768px) {
  .mag-ribbon-title {
    margin: 0 0 16px;
  }
}
.mag-ribbon-title span {
  display: block;
  width: fit-content;
  padding: 6px;
  background: var(--black);
}
.mag-ribbon-title:has(+ .mag-profile) {
  margin: 0;
}

/* ============================================
   ヒーローカード
   ============================================ */
.mag-hero {
  margin-bottom: 24px;
  display: block;
  text-decoration: none;
  background: #F8F8F8;
}
@media screen and (min-width: 768px) {
  .mag-hero {
    transition: opacity 0.2s ease;
  }
  .mag-hero:hover {
    text-decoration: none;
    opacity: 0.7;
  }
}

.mag-hero-thumb {
  aspect-ratio: 16/9;
}
.mag-hero-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mag-hero-body {
  padding: 8px 12px 12px;
  position: relative;
}
@media screen and (min-width: 768px) {
  .mag-hero-body {
    padding: 16px 24px;
  }
}

.mag-hero-heading {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(360deg, #000000 0%, rgba(0, 0, 0, 0.1) 100%);
  color: #fff;
  transform: translateY(calc(-100% - 8px));
  padding: 8px;
}
@media screen and (min-width: 768px) {
  .mag-hero-heading {
    background: linear-gradient(360deg, #000000 0%, rgba(0, 0, 0, 0.15) 100%);
    transform: translateY(-100%);
    padding: 16px 24px;
    display: flex;
    gap: 16px;
    align-items: center;
  }
}

.mag-hero-date {
  font-family: "Be Vietnam Pro", sans-serif;
  font-weight: 300;
  font-size: 12px;
  line-height: 1;
  margin: 0 0 4px;
}
@media screen and (min-width: 768px) {
  .mag-hero-date {
    font-size: 13px;
    margin: 0;
    width: 99px;
    text-align: center;
  }
}

.mag-hero-title {
  margin: 0;
  font-size: 15px;
  font-weight: bold;
  line-height: 140%;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media screen and (min-width: 768px) {
  .mag-hero-title {
    font-size: 24px;
  }
}

.mag-hero-excerpt {
  font-size: 14px;
  line-height: 140%;
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mag-hero-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.mag-hero-footer .mag-author-info {
  min-width: 140px;
}
@media screen and (min-width: 768px) {
  .mag-hero-footer .mag-author-info {
    min-width: auto;
  }
}

.mag-hero-hashtags {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
@media screen and (min-width: 768px) {
  .mag-hero-hashtags {
    gap: 8px;
  }
}
.mag-hero-hashtags .mag-hashtag {
  background: #fff;
}

/* ============================================
   記事カード
   ============================================ */
.mag-card-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 4px;
}
@media screen and (min-width: 768px) {
  .mag-card-list {
    gap: 8px;
  }
}
@media screen and (min-width: 768px) {
  .mag-card-list--home {
    gap: 16px;
  }
}

.mag-card-item {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 8px 8px 8px 6px;
  text-decoration: none;
  background: #F8F8F8;
}
@media screen and (min-width: 768px) {
  .mag-card-item {
    gap: 16px;
    padding: 16px;
    display: grid;
    grid-template-columns: 200fr 492fr;
    transition: opacity 0.2s ease;
  }
  .mag-card-item:hover {
    text-decoration: none;
    opacity: 0.7;
  }
}
@media screen and (min-width: 992px) {
  .mag-card-item {
    grid-template-columns: 280fr 412fr;
  }
}

.mag-card-thumb {
  position: relative;
  width: 86px;
  aspect-ratio: 86/48;
}
@media screen and (min-width: 768px) {
  .mag-card-thumb {
    max-width: 280px;
    width: 100%;
    aspect-ratio: 280/156;
  }
}
.mag-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mag-card-body {
  flex: 1;
}

.mag-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
@media screen and (min-width: 768px) {
  .mag-card-meta {
    margin-bottom: 6px;
  }
}

.mag-card-date {
  font-family: "Be Vietnam Pro", sans-serif;
  font-weight: 300;
  font-size: 11px;
  line-height: 1;
  color: #000;
  opacity: 0.6;
}
@media screen and (min-width: 768px) {
  .mag-card-date {
    font-size: 13px;
  }
}

.mag-card-title {
  color: #000;
  font-size: 13px;
  font-weight: bold;
  line-height: 130%;
  margin: 0 0 4px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media screen and (min-width: 768px) {
  .mag-card-title {
    font-size: 18px;
    line-height: 140%;
  }
}

.mag-card-excerpt {
  display: none;
}
@media screen and (min-width: 768px) {
  .mag-card-excerpt {
    font-size: 14px;
    line-height: 140%;
    margin: 0 0 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

.mag-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.mag-card-hashtags {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
@media screen and (min-width: 768px) {
  .mag-card-hashtags {
    gap: 8px;
  }
}
.mag-card-hashtags .mag-hashtag {
  background: #fff;
}

.mag-author-info {
  display: grid;
  align-items: center;
  grid-template-columns: auto auto;
  justify-content: flex-start;
  min-width: 130px;
}
@media screen and (min-width: 768px) {
  .mag-author-info {
    display: flex;
    min-width: auto;
  }
}

.mag-author-avatar {
  width: 34px;
  height: 34px;
  aspect-ratio: 1;
  border-radius: 100%;
  object-fit: cover;
  flex-shrink: 0;
  margin-right: 4px;
  grid-row: 1/3;
}
@media screen and (min-width: 768px) {
  .mag-author-avatar {
    width: 44px;
    height: 44px;
    margin-right: 8px;
  }
}

.mag-author-dept {
  display: inline;
  font-size: 12px;
  line-height: 120%;
  opacity: 0.6;
  margin: 0;
}
@media screen and (min-width: 768px) {
  .mag-author-dept {
    font-size: 13px;
  }
}
.mag-author-dept::after {
  content: "　"; /* 全角スペース: 役職と氏名を1行に繋ぐ */
}

.mag-author-name {
  display: inline;
  font-size: 12px;
  line-height: 120%;
  opacity: 0.6;
  margin: 0;
}
@media screen and (min-width: 768px) {
  .mag-author-name {
    font-size: 13px;
  }
}

/* ============================================
   ページネーション
   ============================================ */
.mag-pager {
  text-align: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--mag-light-border);
}

.mag-pager a,
.mag-pager span {
  display: inline-block;
  padding: 6px 14px;
  margin: 0 4px;
  border: 1px solid var(--black);
  font-size: 13px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

.mag-pager a:hover {
  background: var(--black);
  color: #fff;
  text-decoration: none;
}

.mag-pager-prev,
.mag-pager-next {
  text-decoration: none;
}

/* 記事なし */
.mag-no-article {
  padding: 30px;
  text-align: center;
  color: var(--mag-sub-color);
  font-size: 14px;
}

/* ============================================
   タグ・メタ情報（カテゴリ一覧共通）
   ============================================ */
.mag-tag {
  display: inline-block;
  border: 1px solid #000;
  padding: 3px 8px;
  font-size: 11px;
  line-height: 1;
  font-weight: bold;
  white-space: nowrap;
}
@media screen and (min-width: 768px) {
  .mag-tag {
    font-size: 12px;
    padding: 4px 10px;
  }
}

/* ============================================
   ハッシュタグ
   ============================================ */
.mag-hashtag {
  font-size: 11px;
  font-weight: bold;
  line-height: 1;
  padding: 2px 8px 2px 6px;
  border-radius: 100px;
  background: #f8f8f8;
  display: inline-flex;
  align-items: center;
}
@media screen and (min-width: 768px) {
  .mag-hashtag {
    font-size: 12px;
    padding: 1px 8px 1px 4px;
  }
}
.mag-hashtag svg {
  width: 16px;
  height: 16px;
}
@media screen and (min-width: 768px) {
  .mag-hashtag svg {
    width: 20px;
    height: 20px;
  }
}
.mag-hashtag--red {
  color: #E87D7F;
}
.mag-hashtag--blue {
  color: #699BD1;
}
.mag-hashtag--green {
  color: #90BC5F;
}
.mag-hashtag--yellow {
  color: #DAB623;
}
.mag-hashtag--turquoise {
  color: #41C8B4;
}
.mag-hashtag--purple {
  color: #8273C5;
}

/* ============================================
   ボタン
   ============================================ */
.mag-buttons {
  display: grid;
  gap: 4px;
}
@media screen and (min-width: 768px) {
  .mag-buttons {
    gap: 8px;
  }
}
.mag-buttons--col2 {
  grid-template-columns: 1fr 1fr;
}

.mag-button {
  display: block;
  padding: 16px 4px;
  font-size: 13px;
  line-height: 1;
  font-weight: bold;
  text-align: center;
  background: #FCF51D;
  color: var(--black);
  text-decoration: none;
}
@media screen and (min-width: 768px) {
  .mag-button {
    padding: 17px 8px;
    font-size: 15px;
    transition: all 0.2s ease;
  }
  .mag-button:hover {
    background: var(--black);
    color: #fff;
  }
}

/* ============================================
   ユーティリティ
   ============================================ *//*# sourceMappingURL=magazine.css.map */
/* ---- リッチテキスト要素 ---- */

/* h3 */
.mag-post-body h3 {
  font-size: 16px;
  font-weight: bold;
  line-height: 150%;
  margin: 24px 0;
  padding: 8px 0 8px 12px;
  border-left: 4px solid #FCF51D;
}
@media screen and (min-width: 768px) {
  .mag-post-body h3 {
    font-size: 18px;
  }
}

/* h4 */
.mag-post-body h4 {
  font-size: 15px;
  font-weight: bold;
  line-height: 150%;
  margin: 42px 0 42px;
  padding-bottom: 4px;
  border-bottom: 1px solid #ddd;
}
@media screen and (min-width: 768px) {
  .mag-post-body h4 {
    font-size: 16px;
  }
}

/* リスト */
.mag-post-body ul,
.mag-post-body ol {
  padding-left: 1.6em;
  font-size: 15px;
  line-height: 180%;
}
.mag-post-body ul {
  list-style: disc;
}
.mag-post-body ol {
  list-style: decimal;
}
.mag-post-body li {
  margin-bottom: 6px;
}
.mag-post-body li:last-child {
  margin-bottom: 0;
}

/* テーブル */
.mag-post-body .c-table {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 32px;
}
.mag-post-body table {
  width: 100% !important;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 160%;
  margin-bottom: 0;
}
@media screen and (min-width: 768px) {
  .mag-post-body table {
    font-size: 15px;
  }
}
.mag-post-body th,
.mag-post-body td {
  border: 1px solid #ddd;
  padding: 8px 12px;
  text-align: left;
  vertical-align: top;
}
.mag-post-body th {
  background: var(--black);
  color: #fff;
  font-weight: bold;
}
.mag-post-body tbody tr:nth-child(even) {
  background: #f8f8f8;
}

/* blockquote */
.mag-post-body blockquote {
  margin: 0 0 24px;
  padding: 16px 20px;
  border-left: 4px solid #FCF51D;
  background: #f9f9f9;
  font-size: 15px;
  line-height: 180%;
  color: #555;
}
@media screen and (min-width: 768px) {
  .mag-post-body blockquote {
    margin-bottom: 32px;
    padding: 20px 24px;
  }
}
.mag-post-body blockquote p {
  margin-bottom: 0;
}

/* 画像 */
.mag-post-body img {
  max-width: 100%;
  height: auto;
  display: block;
  margin-bottom: 24px;
}

/* figure / figcaption */
.mag-post-body figure {
  margin: 0 0 24px;
}
.mag-post-body figcaption {
  font-size: 13px;
  color: #777;
  margin-top: 6px;
  line-height: 150%;
}

/* 水平線 */
.mag-post-body hr {
  border: none;
  border-top: 1px solid #ddd;
  margin: 32px 0;
}

/* strong / em */
.mag-post-body strong {
  font-weight: bold;
}
.mag-post-body em {
  font-style: italic;
}

/* ===========================
   検索結果
   =========================== */
.mag-search-results {
  padding: 2rem 0 3rem;
}

.mag-search-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mag-search-item {
  border-bottom: 1px solid #e8e8e8;
}
.mag-search-item:first-child {
  border-top: 1px solid #e8e8e8;
}

.mag-search-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 0.25rem;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}
.mag-search-link:hover {
  background: #f8f8f8;
}

.mag-search-thumb {
  flex: 0 0 90px;
  width: 90px;
  height: 60px;
  overflow: hidden;
  border-radius: 4px;
  background: #eee;
}
.mag-search-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mag-search-body {
  flex: 1;
  min-width: 0;
}

.mag-search-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.3rem;
}

.mag-search-title {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.5;
  margin: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: #1a1a1a;
}
.mag-search-link:hover .mag-search-title {
  color: #007b6e;
}

.mag-search-count {
  font-size: 0.85rem;
  color: #666;
  font-weight: normal;
  margin-left: 0.5rem;
}

.mag-tag--sub {
  background: #f0f0f0;
  color: #555;
}

@media (max-width: 640px) {
  .mag-search-thumb {
    flex: 0 0 70px;
    width: 70px;
    height: 48px;
  }
  .mag-search-title {
    font-size: 0.875rem;
  }
}

/* --- 目次（INDEX） --- */
.mag-post-index { margin:32px 0 36px; padding:24px 28px; background:#fbfbf9; border-top:2px solid #1a2a2e; border-bottom:1px solid #e2e8ea; }
.mag-post-index__label { font-size:11px; font-weight:700; letter-spacing:0.2em; color:#1a2a2e; margin:0 0 14px; display:flex; align-items:center; gap:10px; }
.mag-post-index__label::after { content:""; flex:1; height:1px; background:#1a2a2e; opacity:0.2; }
.mag-post-index__list { list-style:none; padding:0; margin:0; }
.mag-post-index__item { list-style:none; border-bottom:1px dotted #c8cccf; }
.mag-post-index__item:last-child { border-bottom:none; }
.mag-post-index .mag-post-index__link { display:flex; align-items:baseline; padding:11px 4px; color:#1a2a2e; font-size:14px; text-decoration:none; transition:color 0.2s, padding-left 0.2s; }
.mag-post-index .mag-post-index__link:hover { color:#1a6a7a; text-decoration:none; padding-left:8px; }
.mag-post-index__text { flex:1; }
.mag-post-index__item--sub .mag-post-index__link { padding-left:20px; font-size:13px; }
.mag-post-index__item--sub .mag-post-index__link:hover { padding-left:28px; }
@media (max-width:767px) {
  .mag-post-index { padding:16px; margin:24px 0 16px; }
  .mag-post-index__link { font-size:13px; }
}

/* --- 記事本文内の画像 (c-gallery) --- */
/* 08_image.php (旧) は width/height 属性なし → max-width:100% で自動的に横幅いっぱい。
   08b_image.php (新) は width="520" 等の固定属性を出力するため、
   CSS で上書きして常に横幅いっぱいに表示する。                              */
.mag-post-body .c-gallery__item__pct img {
  width: 100%;
  height: auto;
}

/* --- 記事冒頭著者情報 --- */
.mag-post-author-brief { display:flex; align-items:center; gap:16px; padding:14px 18px; margin:0 0 28px; background:#fff; border:1px solid #e2e8ea; border-left:3px solid #1a6a7a; border-radius:2px; }
.mag-post-author-brief__photo { flex-shrink:0; width:56px; height:56px; border-radius:50%; overflow:hidden; }
.mag-post-author-brief__photo img { width:100%; height:100%; object-fit:cover; }
.mag-post-author-brief__info { flex:1; min-width:0; }
.mag-post-author-brief__dept { font-size:11px; color:#666; margin:0 0 2px; }
.mag-post-author-brief__name { font-size:15px; font-weight:700; margin:0 0 6px; color:#1a2a2e; }
.mag-post-author-brief__tags { display:flex; flex-wrap:wrap; gap:6px; }
.mag-post-author-brief__tag { font-size:10px; padding:2px 8px; background:#f4f8f9; color:#1a6a7a; border-radius:2px; }
.mag-post-author-brief__link { flex-shrink:0; font-size:11px; color:#1a6a7a; border:1px solid #1a6a7a; padding:6px 12px; text-decoration:none; white-space:nowrap; }
.mag-post-author-brief__link:hover { background:#1a6a7a; color:#fff; text-decoration:none; }
@media screen and (max-width:767px) {
  .mag-post-author-brief { flex-wrap:wrap; }
  .mag-post-author-brief__link { width:100%; text-align:center; }
}
