/* ==============================
   BudouX: <wbr> によるフレーズ折り返し制御
   word-break: keep-all で CJK文字間の任意改行を禁止し、
   <wbr> 位置でのみ折り返すようにする
   ============================== */
.wp-block-post-title,
.mm-lead,
.mm-archive-title,
.mm-card__title,
.mm-section-title,
.mm-supervisors-archive-intro__title,
.mm-supervisors__title,
.major-links__desc,
h1.has-text-align-center,
h2.has-text-align-center,
h3.has-text-align-center {
  word-break: keep-all;
  overflow-wrap: break-word;
}

/* ==============================
   mm-cat-card-posts (Accordion Cards)
   - Shortcode: [mm_cat_card_posts]
   - Wrapper: .mm-cat-card-posts
   ============================== */
.mm-cat-card-posts {
  max-width: var(--wp--style--global--content-size, 1100px);
  margin: 1.25rem auto 2.75rem;
  padding-inline: var(--wp--preset--spacing--30, 14px);
}

/* Minimal list */
.mm-cat-card-posts .mm-cat-card-posts__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--wp--preset--spacing--20, 10px);
  grid-template-columns: 1fr;
}

.mm-cat-card-posts .mm-cat-card-posts__item {
  margin: 0;
  padding: var(--wp--preset--spacing--20, 10px) var(--wp--preset--spacing--30, 14px);
  border: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--wp--preset--color--secondary) 18%, transparent);
  border-radius: 0;
  background: transparent;
}

.mm-cat-card-posts .mm-cat-card-posts__q {
  margin: 0;
  font-weight: 700;
  line-height: 1.5;
}

.mm-cat-card-posts .mm-cat-card-posts__a {
  margin-top: 0.5em;
  line-height: 1.2;
}

.mm-cat-card-posts .mm-cat-card-posts__toggle {
  margin-left: 0.45em;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 1em;
  line-height: 1;
  opacity: 0.72;
  cursor: pointer;
  vertical-align: baseline;
}

.mm-cat-card-posts .mm-cat-card-posts__toggle:hover,
.mm-cat-card-posts .mm-cat-card-posts__toggle:focus-visible {
  opacity: 1;
}

.mm-cat-card-posts .mm-cat-card-posts__body {
  margin-top: 0.7rem;
  line-height: 1.8;
  white-space: normal;
}

.mm-cat-card-posts .mm-section-title {
  margin-bottom: 1.5rem;
  font-size: clamp(1.55rem, 2.8vw, 2.15rem);
  line-height: 1.35;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.mm-cat-card-posts .mm-cat-card-posts__cat-desc {
  margin: 0.2rem 0 clamp(1.6rem, 3vw, 2.4rem);
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.6;
  opacity: 0.85;
  text-align: center;
}

.mm-cat-card-posts .mm-cat-card-posts__item.is-hidden {
  display: none;
}

.mm-cat-card-posts .mm-cat-card-posts__more {
  margin-top: var(--wp--preset--spacing--20, 10px);
  text-align: right;
}

/* Mobile adjustments */
@media (max-width: 680px) {
  .mm-cat-card-posts {
    margin: 1rem auto 2.25rem;
  }
}
/*
Theme Name: OVER THE LIMIT 2025 (Child)
Template: twentytwentyfive
Version: 1.0.2
Author: OVER THE LIMIT
Description: Header only. All design is controlled by theme.json and the Site Editor.
*/







/* ==============================
   Global Texture Overlay (Seamless)
   - Texture file is stored in: /assets/cavs-bg.jpg
   - This path is relative to this CSS file (../assets/...).
   - mix-blend-mode:multiply approximates Photoshop "Multiply".
   ============================== */
:root {
  --mm-texture-url: url("./assets/cavs-bg.jpg");
  --mm-texture-opacity: 0.4; /* 0.05–0.12 recommended */
  --mm-texture-blend: multiply; /* try soft-light / overlay if needed */
  --mm-texture-size: 512px 512px; /* match your tile */

  /* Moving SVG background (full-page) */
  --mm-bg-line-url: url("./assets/bg-line.svg");
  --mm-bg-line-opacity: 0.55;
  --mm-bg-line-size: 100% auto; /* try: contain / cover / 1200px auto */
  --mm-bg-line-speed: 120s; /* bigger = slower */
  --mm-bg-line-offset: 2400px; /* loop distance; adjust if pattern feels repetitive */
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: var(--mm-texture-url);
  background-repeat: repeat;
  background-size: var(--mm-texture-size);
  opacity: var(--mm-texture-opacity);
  mix-blend-mode: var(--mm-texture-blend);
  pointer-events: none;
  z-index: 2;
}

/* ==============================
   Moving SVG Background (CSS only)
   - SVG file: /assets/bg-line.svg (relative: ./assets/bg-line.svg)
   - Uses background-position animation (no jQuery)
   - Stays behind content but under the texture overlay
   ============================== */
body {
  position: relative;
}

/* Prevent pseudo-element/compositing side-effects from creating horizontal scroll on mobile */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

@supports (overflow: clip) {
  html,
  body {
    overflow-x: clip;
  }
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: var(--mm-bg-line-url);
  background-repeat: repeat-y;
  background-size: var(--mm-bg-line-size);
  background-position: center 0;
  opacity: var(--mm-bg-line-opacity);
  pointer-events: none;
  z-index: 0;
  will-change: background-position;
  animation: mmBgLineScroll var(--mm-bg-line-speed) linear infinite;
}

/* Ensure site content sits above the moving background */
.wp-site-blocks,
#page,
#pagetop {
  position: relative;
  z-index: 1;
}

.wp-site-blocks {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

.wp-site-blocks > * {
  margin-block-start: 0;
}

@keyframes mmBgLineScroll {
  from { background-position: center 0; }
  to   { background-position: center calc(-1 * var(--mm-bg-line-offset)); }
}

@media (prefers-reduced-motion: reduce) {
  body::after { animation: none !important; }
}

/* Admin bar offset (optional) */
body.admin-bar::before {
  top: 32px;
  height: calc(100% - 32px);
}

@media (max-width: 782px) {
  body.admin-bar::before {
    /* Mobile admin bar changes height dynamically and can cause visible drift */
    top: 0;
    height: 100%;
  }
}

/* Fallback: if blend modes are unsupported, keep it subtle */
@supports not (mix-blend-mode: multiply) {
  body::before {
    mix-blend-mode: normal;
    opacity: calc(var(--mm-texture-opacity) * 0.6);
  }
}

@supports not (background-position: center) {
  body::after {
    animation: none;
  }
}



/* ヒーローセクション */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Front page: sponsors/partners trust section */
.mm-sponsors-trust {
  padding: clamp(2.25rem, 6vw, 4.25rem) 1rem;
}

.mm-sponsors-trust__title {
  margin: 0;
  text-align: center;
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--wp--preset--color--contrast, #1a1a1a) !important;
}

.mm-sponsors-trust__list {
  margin: 0 auto;
  padding: 0;
  max-width: 1200px;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.2rem 2rem;
}

.mm-sponsors-trust__item {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 1 calc((100% - 6rem) / 4);
}

.mm-sponsors-trust__item img {
  display: block;
  width: auto;
  max-width: 160px;
  max-height: 56px;
}

@media (max-width: 767px) {
  .mm-sponsors-trust__list {
    gap: 1rem 1.4rem;
  }

  .mm-sponsors-trust__item {
    flex-basis: calc((100% - 1.4rem) / 2);
  }
}

.mm-hero__inner {
  max-width: 1200px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding: 2rem;
  box-sizing: border-box;
  text-align: center;
}

/* Cover block inner container sometimes has its own width rules; enforce centering */
.wp-block-cover__inner-container.mm-hero__inner {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.mm-hero__title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.26;
  letter-spacing: 0.01em;
  margin: 0 0 1.15rem;
  text-align: center;
  text-wrap: balance;
  text-shadow: 0 5px 14px rgba(0, 0, 0, 0.18);
  opacity: 0.9;
}

.mm-hero__kicker {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 500;
  letter-spacing: 0.055em;
  margin: 0 0 0.9rem;
  text-align: center;
  opacity: 0.88;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.mm-hero__kicker .no-break {
  white-space: nowrap;
}

.mm-hero__desc {
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.9;
  letter-spacing: 0.015em;
  max-width: 38em;
  margin: 0 auto;
  text-align: center;
  text-wrap: pretty;
  opacity: 0.86;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.12);
}

/* Hero image — prominent, centered (strong presence) */
.hero .mm-hero__image {
  margin: clamp(2rem, 5vh, 3.5rem) auto 0;
  text-align: center;
}

.hero .mm-hero__image img {
  display: inline-block;
  width: clamp(420px, 70vw, 1200px);
  max-width: 1200px;
  height: auto;
  background: transparent;
}

/* If the hero image is wrapped by <picture>, keep it inline-block like img */
.hero .mm-hero__image picture {
  display: inline-block;
}

/* Mobile: show as a square (for header-img-sq etc.) without distortion */
@media (max-width: 680px) {
  .hero .mm-hero__image {
    width: min(86vw, 380px);
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  .hero .mm-hero__image picture,
  .hero .mm-hero__image img {
    width: 100%;
    max-width: none;
    aspect-ratio: 1 / 1;
  }

  .hero .mm-hero__image img {
    height: auto;
    object-fit: contain; /* 正方形画像を潰さず収める */
  }
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .mm-hero__inner {
    padding: 1.5rem;
  }

  .mm-hero__kicker {
    letter-spacing: 0.04em;
  }

  .mm-hero__title {
    line-height: 1.32;
  }

  .mm-hero__desc {
    line-height: 1.82;
    letter-spacing: 0.01em;
  }
  
  .mm-hero__title br {
    display: none;
  }
}






/* Hero primary CTA micro-interaction kept minimal; sizing/decoration in theme.json */
.hero .btn-hero { transition: transform 0.12s ease, box-shadow 0.2s ease; }
.hero .btn-hero:hover { transform: translateY(-2px); }
.hero .btn-hero:active { transform: translateY(0); }
.hero .hero-buttons { gap: 14px; }

/* Center align text on mobile when columns stack */
@media (max-width: 782px) {
  .hero .wp-block-columns { text-align: center; }
  .hero .wp-block-buttons { justify-content: center !important; }
}

.mm-section-title {
  border: 0;
  margin: 6rem 0 5.2rem;
  padding: clamp(1.4rem, 3.5vw, 2.2rem) clamp(1rem, 3vw, 1.6rem);
  border-radius: clamp(14px, 3vw, 20px);
  font-size: clamp(1.55rem, 2.8vw, 2.15rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.4;
  text-align: center;
  color: var(--wp--preset--color--contrast);
  background: color-mix(in srgb, #ffffff 1%, var(--wp--preset--color--accent) 1%);
  box-shadow:
    8px 8px 22px rgba(0,0,0,.07),
    -8px -8px 22px rgba(255,255,255,.6);
  position: relative;
  overflow: visible;
}

.mm-section-title::after {
  content: none;
}

/* ==============================
   Footer (text-only, trust-first)
   ============================== */
.mm-footer {
  background: color-mix(in srgb, var(--wp--preset--color--accent) 22%, #ffffff 78%);
  color: var(--wp--preset--color--contrast);
}

/* Footer boundary: add generous spacing + clear divider */
.mm-footer {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid color-mix(in srgb, var(--wp--preset--color--secondary) 22%, transparent);
}

.mm-footer__logo {
  margin: 0 auto 2rem;
  text-align: center;
}

.mm-footer__logo img {
  display: inline-block;
  width: min(160px, 50vw);
  height: auto;
  opacity: 0.95;
}

/* 2カラムグリッド（WPのis-layout-flexを上書き） */
.mm-footer__cols {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: clamp(2rem, 5vw, 4rem) !important;
  align-items: stretch !important;
  flex-wrap: unset !important;
}

.mm-footer__col--right {
  display: flex !important;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-end;
  text-align: right;
}

@media (max-width: 640px) {
  .mm-footer__cols {
    grid-template-columns: 1fr !important;
    gap: 2rem;
  }
  .mm-footer__col--right {
    align-items: flex-start;
    text-align: left;
  }
}

.mm-footer__brand {
  margin: 0 0 10px;
  font-size: 1.05rem;
  line-height: 1.1;
}

.mm-footer__title {
  margin: 0 0 10px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--wp--preset--color--contrast);
}

.mm-footer__meta {
  margin: 0 0 10px;
  font-size: 0.9rem;
  line-height: 1.1;
  opacity: 0.92;
}

.mm-footer__list {
  margin: 0;
  padding-left: 1.15em;
  font-size: 0.9rem;
  line-height: 1.75;
}

.mm-footer__list li {
  margin: 0 0 6px;
}

.mm-footer a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--wp--preset--color--secondary) 55%, transparent);
  text-underline-offset: 3px;
}

.mm-footer a:hover {
  opacity: 0.9;
}

.mm-footer__sep {
  margin: 24px 0 18px;
  opacity: 0.35;
}

.mm-footer__policy {
  font-size: 0.8rem;
  opacity: 0.85;
  margin: 0 0 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35em;
  line-height: 1.4;
}

/* Donation page */
.mm-donation-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: .75rem;
  margin: 1.5rem 0;
}
.mm-donation-btn{
  display: block;
  padding: .85rem 1rem;
  background: var(--wp--preset--color--base);
  border: 2px solid var(--wp--preset--color--primary);
  border-radius: 10px;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--wp--preset--color--primary);
  text-decoration: none;
  transition: background .15s, color .15s;
}
.mm-donation-btn:hover{
  background: var(--wp--preset--color--primary);
  color: #fff;
}
.mm-donation-btn--free{
  grid-column: 1 / -1;
  border-style: dashed;
}

.mm-footer__copy {
  margin: 0;
  font-size: 0.8rem;
  opacity: 0.7;
  text-align: center;
}

.mm-footer__line-btn {
  margin: 0;
}

.mm-footer__line-btn a {
  display: inline-block;
  padding: 0.45em 1.2em;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.5;
  border: 1px solid currentColor;
  border-radius: 2em;
  color: var(--wp--preset--color--contrast);
  text-decoration: none;
  opacity: 0.75;
  transition: opacity 0.2s;
}

.mm-footer__line-btn a:hover {
  opacity: 1;
}

/* Mobile: tighten spacing */
@media (max-width: 782px) {
  .mm-footer__meta { line-height: 1.5; }
  .mm-footer__list { padding-left: 1.05em; }
  .mm-footer__line-btn { text-align: left; }
}

@media (max-width: 640px) {
  .mm-footer__policy {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 0.55em 1em;
    text-align: left;
  }
}



/* ==============================
   Interview Template — HiNTO /
   スコープ: .post-template-single-interview-php
   ============================== */

/* --- 本文タイポグラフィ --- */
.post-template-single-interview-php .mm-article p {
  line-height: 1.5;
  margin-bottom: 1.4em;
}

/* --- リード（冒頭）セクション --- */
.post-template-single-interview-php .mm-hero {
  border-left: 3px solid var(--wp--preset--color--primary);
  padding: 1.5rem 1.75rem 1.5rem 2rem;
  margin: 0 0 3rem;
  border-radius: 0 10px 10px 0;
  background: rgba(255,255,255,0.45);
}

.post-template-single-interview-php .mm-hero p {
  font-size: clamp(0.9rem, 2vw, 0.98rem);
  line-height: 1.85;
  color: var(--wp--preset--color--contrast);
  opacity: 0.85;
}
@media (max-width: 768px) {
  .post-template-single-interview-php .mm-hero p {
    line-height: 1.6;
  }
}

/* --- 話者ラベル (例: <p><strong>山内：</strong><br />) --- */
.post-template-single-interview-php .mm-body p > strong:first-child {
  display: block;
  font-size: 1.1em;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--wp--preset--color--primary);
  margin-bottom: 0;
  opacity: 0.95;
}
/* strong の直後の <br> を非表示（display:block で不要になるため） */
.post-template-single-interview-php .mm-body p > strong:first-child + br {
  display: none;
}

/* --- セクション見出し --- */
.post-template-single-interview-php .mm-section-title {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin: 3.5rem 0 1.75rem;
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--wp--preset--color--primary);
  text-align: center;
}

.post-template-single-interview-php .mm-section-title::before,
.post-template-single-interview-php .mm-section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--wp--preset--color--primary);
  opacity: 0.3;
}

/* --- キーメッセージ引用 --- */
.post-template-single-interview-php .mm-prologue {
  position: relative;
  border-left: 3px solid var(--wp--preset--color--primary);
  padding: 1.1rem 1.5rem 1.1rem 1.75rem;
  margin: 2.5rem 0;
  background: rgba(255,255,255,0.5);
  border-radius: 0 10px 10px 0;
  font-size: clamp(1rem, 2.2vw, 1.1rem);
  line-height: 1.85;
  font-style: italic;
  color: var(--wp--preset--color--contrast);
}

.post-template-single-interview-php .mm-prologue img,
.post-template-single-interview-php .mm-prologue video {
  opacity: .8;
}

/* --- 次の記事動線 --- */
.mm-next-post__link {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.25rem);
  padding: clamp(0.9rem, 2.5vw, 1.25rem) clamp(1rem, 3vw, 1.75rem);
  border-radius: 12px;
  border: 1.5px solid var(--wp--preset--color--accent);
  background: rgba(255,255,255,0.5);
  text-decoration: none;
  color: var(--wp--preset--color--contrast);
  transition: background 0.2s, box-shadow 0.2s;
}
.mm-next-post__link:hover {
  background: rgba(255,255,255,0.8);
  box-shadow: 0 4px 18px rgba(0,0,0,0.07);
  text-decoration: none;
}
.mm-next-post__media {
  flex: 0 0 auto;
}
.mm-next-post__media img {
  width: clamp(64px, 14vw, 100px);
  height: clamp(64px, 14vw, 100px);
  object-fit: cover;
  border-radius: 8px;
  display: block;
}
.mm-next-post__text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
}
.mm-next-post__label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--wp--preset--color--primary);
  opacity: 0.85;
}
.mm-next-post__title {
  font-size: clamp(0.95rem, 2.2vw, 1.05rem);
  font-weight: 700;
  line-height: 1.5;
  word-break: normal;
}
.mm-next-post__arrow {
  flex: 0 0 auto;
  font-size: 1.3rem;
  color: var(--wp--preset--color--primary);
  opacity: 0.7;
}

/* --- 図版 --- */
.mm-figure { margin: 1.5rem 0 2.5rem; text-align: center; }
.mm-figure img { border-radius: 8px; box-shadow: 0 4px 22px rgba(0,0,0,.1); }
.mm-figure + .mm-figure { margin-top: 1.5rem; }
.mm-figure figcaption { color: var(--wp--preset--color--contrast); opacity: .6; font-size: .88rem; margin-top: .4rem; line-height: 1.6; }

/* --- グローバル .mm-prologue (interview 以外) --- */
.mm-prologue { font-size: 1.05rem; line-height: 1.9; }
.mm-prologue img,
.mm-prologue video {
  opacity: .8;
}

/* ラベル（shortcodeで出力された場合も視覚強調） */
.mm-label,
.wp-block-shortcode:has([acf*="interview_label"]) {
  text-align: center;
  font-weight: 700;
  letter-spacing: .05em;
  color: var(--wp--preset--color--primary);
  margin-bottom: .5rem;
}

/* 連載ヘッダー（連載名 / 第x回 / 回タイトル） */
.mm-series-name {
  margin: 0 0 .25rem;
}

.mm-series-episode {
  margin: 0 0 .55rem;
  text-align: center;
  font-weight: 700;
  letter-spacing: .03em;
  opacity: 0.9;
}

.mm-series-title {
  margin: 0;
  line-height: 1.35;
  text-wrap: balance;
}


/* ==============================
   記事本文　文字設定 / 
   ============================== */



.mm-article p {
  font-size: 1.4rem;
  line-height: 1.2;
}

@media (min-width: 782px) {
  .mm-article p {
    line-height: 1.3;
  }
}

.mm-article li {
  font-size: 1.3rem;
  line-height: 1.6;
}

.mm-checklist {
  margin: .5rem auto 0;
  max-width: 900px;
}

.mm-checklist li {
  margin: .25rem 0;
  padding-left: .3rem;
}

.mm-checklist li::marker {
  color: var(--wp--preset--color--primary);
}

.mm-article { max-width: 1200px; margin: 0 auto; }

/* インタビュー用ヒーロー（VH基準） */
.interview-hero {
  width: 100%;
  height: clamp(240px, 38vh, 520px); /* PC: 画面高さ基準 */
  overflow: hidden;
}

.interview-hero img,
.interview-hero-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* post-basic hero media */
.mm-hero-video,
.mm-hero-image {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.mm-hero-video {
  max-width: 100%;
  height: auto;
}

p > .mm-hero-video,
p > .mm-hero-image {
  display: block;
  margin-left: auto;
  margin-right: auto;
}


/* スマホ：高さをvh基準にせず、横幅100%から決める（正方形） */
@media (max-width: 768px) {
  .interview-hero {
    height: auto;         /* height固定を解除 */
    aspect-ratio: 1 / 1;  /* 横幅(100%)に対して高さを決定 */
  }
}






/* ==============================
   Header Logo — Force Center Alignment (Flex Layout)
   ============================== */
.wp-site-blocks > .wp-block-group.alignfull.is-layout-flex {
  justify-content: center !important;
}


/* ==============================
   Generic Card / Contact Blocks
   ============================== */

/*汎用カードレイアウト（問い合わせ・お知らせなど共通）*/
.mm-panel {
  border-radius: 0;
  padding: 0;
  margin-bottom: 28px;
  border: none;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* アクセント背景付きバリエーション（ラベンダー系） */
.mm-panel--accent {
}

/* 説明テキスト（導入文・リード文） */
.mm-lead {
  margin: 0px;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--wp--preset--color--contrast);
  opacity: 0.9;
}

/* ==============================
   About Us (Category): Theory block
   ============================== */
.mm-about-us-theory{
  max-width: 920px;
  margin: 0 auto 2.4rem;
  padding: 0 0 1.4rem;
  border-radius: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.mm-about-us-theory__title{
  margin: 0 0 1rem;
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-align: center;
  text-wrap: balance;
}

.mm-about-us-theory__photo{
  max-width: 240px;
  margin: 0 0 1.4rem;
  margin-inline: auto;
}

.mm-about-us-theory__photo img{
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: none;
}

.mm-about-us-theory__lead{
  margin: 0 auto 1.5rem;
  max-width: 760px;
  text-align: center;
  font-size: clamp(1rem, 1.9vw, 1.12rem);
  line-height: 1.68;
  text-wrap: pretty;
}

.mm-about-us-theory__intro{
  margin: 0 0 1.45rem;
}

.mm-about-us-theory__introBody{
  display: grid;
  gap: .85rem;
}

.mm-about-us-theory__lead--intro{
  margin: 0;
  font-size: clamp(1.12rem, 2.2vw, 1.38rem);
  font-weight: 700;
  line-height: 1.55;
}

.mm-about-us-supervisors-cta{
  max-width: none;
  margin: 0;
  border-top: 0;
  display: flex;
  justify-content: center;
}

.mm-about-us-supervisors-cta .mm-btn--newphoria{
  min-width: 0;
  width: fit-content;
  max-width: 100%;
}

.mm-about-us-layers{
  max-width: 940px;
  margin: 1.2rem auto 0;
}

.mm-about-us-layers__title{
  margin: 0 0 1.4rem;
  text-align: center;
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  font-weight: 800;
  letter-spacing: .02em;
}

.mm-about-us-layer{
  margin-top: 1.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid color-mix(in srgb, var(--wp--preset--color--secondary) 22%, transparent);
}

.mm-about-us-layer__title{
  margin: 0;
  font-size: clamp(1.08rem, 1.8vw, 1.28rem);
  font-weight: 800;
  line-height: 1.35;
}

.mm-about-us-layer__sub{
  margin: .35rem 0 0;
  opacity: .78;
  line-height: 1.6;
  font-size: .94rem;
}

.mm-about-us-layer__text{
  margin: .85rem 0 0;
  line-height: 1.65;
  max-width: 840px;
}

.mm-about-us-layer__points{
  margin: .75rem 0 0;
  padding-left: 1.15rem;
  line-height: 1.58;
  max-width: 840px;
}

.mm-about-us-layer__points li{
  margin-top: .32rem;
}

.mm-about-us-positioning{
  margin-top: 1.55rem;
  padding: 1rem 0 0;
  border-top: 1px solid color-mix(in srgb, var(--wp--preset--color--secondary) 22%, transparent);
}

.mm-about-us-positioning__title{
  margin: 0 0 .5rem;
  font-size: 1.04rem;
  font-weight: 800;
}

.mm-about-us-positioning p{
  margin: .65rem 0 0;
  line-height: 1.62;
}

.mm-about-us-corp{
  margin-top: 1rem;
  padding-top: .85rem;
  border-top: 1px solid color-mix(in srgb, var(--wp--preset--color--secondary) 18%, transparent);
}

.mm-about-us-corp__title{
  margin: 0 0 .55rem;
  font-size: .95rem;
  font-weight: 800;
}

.mm-about-us-corp__list{
  margin: 0;
  padding-left: 1.1rem;
  line-height: 1.62;
}

.mm-about-us-corp__list li{
  margin-top: .25rem;
}

@media (max-width: 780px){
  .mm-about-us-theory{
    margin-bottom: 2rem;
    padding-bottom: 1rem;
  }

  .mm-about-us-theory__title{
    text-align: left;
  }

  .mm-about-us-theory__lead{
    text-align: left;
    line-height: 1.62;
  }

  .mm-about-us-theory__intro .mm-about-us-theory__lead--intro{
    text-align: center;
  }

  .mm-about-us-layers__title{
    text-align: left;
  }

  .mm-about-us-layer{
    margin-top: 1.1rem;
    padding-top: 1rem;
  }

  .mm-about-us-corp{
    margin-top: .85rem;
    padding-top: .75rem;
  }

}

@media (min-width: 900px){
  .mm-about-us-theory__intro{
    display: grid;
    grid-template-columns: minmax(260px, 440px) minmax(0, 1fr);
    gap: clamp(1rem, 2.2vw, 2rem);
    align-items: center;
  }

  .mm-about-us-theory__intro .mm-about-us-theory__photo{
    max-width: none;
    margin: 0;
  }

  .mm-about-us-theory__intro .mm-about-us-theory__photo img{
    width: 100%;
    margin: 0;
  }

  .mm-about-us-theory__intro .mm-about-us-theory__lead--intro{
    text-align: center;
    max-width: none;
    font-size: clamp(1.2rem, 1.6vw, 1.42rem);
    line-height: 1.58;
  }
}

/* 背景全面に画像を敷くカード */
.mm-card {
  position: relative;
  padding: 0;
  overflow: hidden;
  color: var(--wp--preset--color--base);
  border: none;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  isolation: isolate;
  background-image: var(--mm-card-bg, none);
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
}

.mm-card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  height: 100%;
}

.mm-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: inherit;
  background-size: inherit;
  background-position: inherit;
  transform: scale(1.03);
  transition: transform 0.4s ease;
  z-index: 0;
}

.mm-card:hover::before {
  transform: scale(1.06);
}

.mm-card__inner {
  position: relative;
  z-index: 1;
  min-height: 320px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.85rem;
  background: transparent;
  flex: 1 1 auto;
}

.mm-card__title {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.35;
  display: block;
  padding: 0.35rem 1rem;
  background-color: color-mix(in srgb, var(--wp--preset--color--accent) 70%, transparent);
  color: var(--wp--preset--color--contrast);
}

.mm-card__title a {
  color: inherit;
  text-decoration: none;
}

.mm-card__title a:hover {
  opacity: 0.9;
}

.mm-card__excerpt {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.2;
  color: var(--wp--preset--color--contrast);
  margin-top: auto;
  text-shadow:
    1px 0 0 #ffffff,
   -1px 0 0 #ffffff,
    0 1px 0 #ffffff,
    0 -1px 0 #ffffff,
    1px 1px 0 #ffffff,
   -1px 1px 0 #ffffff,
    1px -1px 0 #ffffff,
   -1px -1px 0 #ffffff;
}

.mm-card__readmore {
  display: block;
  width: 100%;
  text-align: center;
  padding: 1rem 0rem;
  border-radius: 0;
  border: none;
  background-color: color-mix(in srgb, var(--wp--preset--color--pink) 70%, transparent);
  color: var(--wp--preset--color--contrast);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  backdrop-filter: blur(4px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.18);
  text-decoration: none;
}


.mm-card__readmore:hover {
  opacity: 0.98;
  background-color: color-mix(in srgb, var(--wp--preset--color--pink) 85%, white);
  color: var(--wp--preset--color--contrast);
  text-decoration: none;
}

.mm-card__readmore:focus,
.mm-card__readmore:active,
.mm-card__readmore:focus-visible {
  text-decoration: none;
}

/* ==============================
   LP Final CTA — reuse existing button
   ============================== */

/* 最終CTA内ではボタンを少し大きく（mm-panel--accent を条件に限定） */
.mm-panel--accent .mm-card__readmore {
  font-size: 1.9rem;
  padding: 1.15rem 0;
}

.mm-panel--accent .mm-final-cta__title {
  text-align: center;
  font-size: 1.2rem;
  line-height: 1.45;
  margin: 0 0 0.8rem;
}

.mm-panel--accent .mm-final-cta__title-break {
  display: none;
}

.mm-panel--accent .mm-final-cta__button-wrap {
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
}

.mm-panel--accent .mm-final-cta__subtitle {
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0.75rem 0 0;
}

.mm-panel--accent .mm-final-cta__subtitle-break {
  display: none;
}

/* Final CTA button: mobile-first interaction */
.mm-panel--accent .mm-final-cta__btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: min(100%, 520px);
  margin-inline: auto;
  min-height: 52px;
  padding: 0.95rem 1.2rem;
  line-height: 1.25;
  border: 1px solid color-mix(in srgb, var(--wp--preset--color--accent) 72%, white 28%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.45) inset,
    10px 10px 22px rgba(157, 141, 185, 0.36),
    -9px -9px 20px rgba(255, 255, 255, 0.96),
    0 0 10px rgba(232, 215, 247, 0.22);
  transition: transform 120ms ease, box-shadow 220ms ease, filter 220ms ease;
  animation: mm-final-cta-pulse 3s ease-in-out infinite;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.mm-panel--accent .mm-final-cta__btn::before {
  content: "";
  position: absolute;
  top: -130%;
  left: -58%;
  width: 42%;
  height: 320%;
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.42) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(18deg) translateX(-180%);
  animation-name: mm-final-cta-sweep;
  animation-duration: 2.8s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

.mm-panel--accent .mm-final-cta__btn::after {
  content: "";
  position: absolute;
  top: -120%;
  left: -55%;
  width: 36%;
  height: 300%;
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 235, 255, 0.34) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(-18deg) translateX(-220%);
  animation: mm-final-cta-sweep-2 3.6s linear infinite;
}

.mm-panel--accent .mm-final-cta__btn > * {
  position: relative;
  z-index: 1;
}

.mm-panel--accent .mm-final-cta__btn:focus-visible {
  outline: 0;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.45) inset,
    10px 10px 22px rgba(157, 141, 185, 0.36),
    -9px -9px 20px rgba(255, 255, 255, 0.96),
    0 0 10px rgba(232, 215, 247, 0.22),
    0 0 0 3px color-mix(in srgb, var(--wp--preset--color--base) 75%, white 25%),
    0 0 0 6px color-mix(in srgb, var(--wp--preset--color--accent) 70%, transparent);
}

.mm-panel--accent .mm-final-cta__btn:focus {
  outline: 0;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.45) inset,
    10px 10px 22px rgba(157, 141, 185, 0.36),
    -9px -9px 20px rgba(255, 255, 255, 0.96),
    0 0 10px rgba(232, 215, 247, 0.22),
    0 0 0 2px color-mix(in srgb, var(--wp--preset--color--base) 75%, white 25%),
    0 0 0 4px color-mix(in srgb, var(--wp--preset--color--accent) 55%, transparent);
}

.mm-panel--accent .mm-final-cta__btn:active {
  transform: scale(0.98);
  box-shadow:
    5px 5px 12px rgba(157, 141, 185, 0.26),
    -4px -4px 12px rgba(255, 255, 255, 0.9),
    0 0 6px rgba(232, 215, 247, 0.16);
  filter: brightness(1.03) saturate(1.04);
}

@keyframes mm-final-cta-pulse {
  0%, 100% {
    filter: brightness(1) saturate(1);
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.45) inset,
      10px 10px 22px rgba(157, 141, 185, 0.36),
      -9px -9px 20px rgba(255, 255, 255, 0.96),
      0 0 10px rgba(232, 215, 247, 0.22);
  }
  50% {
    filter: brightness(1.04) saturate(1.05);
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.5) inset,
      12px 12px 25px rgba(157, 141, 185, 0.4),
      -10px -10px 24px rgba(255, 255, 255, 0.98),
      0 0 12px rgba(232, 215, 247, 0.24);
  }
}

@keyframes mm-final-cta-sweep {
  0% {
    transform: rotate(18deg) translateX(-180%);
    opacity: 0;
  }
  18% {
    opacity: 0.46;
  }
  42% {
    transform: rotate(18deg) translateX(460%);
    opacity: 0;
  }
  100% {
    transform: rotate(18deg) translateX(460%);
    opacity: 0;
  }
}

@keyframes mm-final-cta-sweep-2 {
  0% {
    transform: rotate(-18deg) translateX(-220%);
    opacity: 0;
  }
  30% {
    opacity: 0.34;
  }
  62% {
    transform: rotate(-18deg) translateX(520%);
    opacity: 0;
  }
  100% {
    transform: rotate(-18deg) translateX(520%);
    opacity: 0;
  }
}

@media (hover: hover) and (pointer: fine) {
  .mm-panel--accent .mm-final-cta__btn:hover {
    transform: none;
    filter: brightness(1.04) saturate(1.06);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mm-panel--accent .mm-final-cta__btn {
    animation: none;
    transition: none;
  }

  .mm-panel--accent .mm-final-cta__btn::before {
    animation: none;
    opacity: 0;
  }

  .mm-panel--accent .mm-final-cta__btn::after {
    animation: none;
    opacity: 0;
  }
}

@media (max-width: 768px) {
  .mm-panel--accent .mm-card__readmore {
    font-size: 1.9rem;
    padding: 1.1rem 0;
  }

  .mm-panel--accent .mm-final-cta__title-break {
    display: block;
  }

  .mm-panel--accent .mm-final-cta__subtitle-break {
    display: block;
  }

  .mm-panel--accent .mm-final-cta__title {
    margin-bottom: 0.7rem;
  }

  .mm-panel--accent .mm-final-cta__subtitle {
    margin-top: 0.65rem;
  }
}

.mm-card__loadmore {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: auto;
  min-width: 220px;
  padding: 0.9rem 2.25rem;
  border-radius: 0;
  border: none;
  background: transparent;
  color: var(--wp--preset--color--contrast);
  letter-spacing: 0.08em;
  font-size: 1.15rem;
  font-weight: 700;
  text-transform: none;
  box-shadow: none;
  cursor: pointer;
}

.mm-card__loadmore:hover {
  opacity: 1;
  background: transparent;
  color: var(--wp--preset--color--secondary);
}

.mm-card-archive-link {
  margin-top: 1.5rem;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid color-mix(in srgb, var(--wp--preset--color--secondary) 40%, transparent);
  text-align: right;
}

/* ===== Symptom TOC (目次) ===== */
.mm-symptom-toc-wrap {
  margin: 1rem 0 2rem;
}

.mm-symptom-toc-wrap h3 {
  margin: 0 0 .5rem;
}

.mm-symptom-toc-wrap p {
  margin: 0 0 1rem;
}

.mm-symptom-toc {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
}

@media (min-width: 700px) {
  .mm-symptom-toc {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1000px) {
  .mm-symptom-toc {
    grid-template-columns: repeat(4, 1fr);
  }
}

.mm-symptom-item {
  display: grid;
  grid-template-rows: auto auto;
  gap: .25rem;
  padding: .9rem 1rem;
  text-decoration: none;
  border: none;
  background: rgba(255, 255, 255, .7);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  border-radius: 8px;
  transition: transform .06s ease-in-out, box-shadow .2s ease, background .2s ease;
  color: var(--wp--preset--color--contrast, #111);
}

.mm-symptom-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
  background: color-mix(in srgb, var(--wp--preset--color--accent, #e0d4f7) 20%, white);
  border-color: color-mix(in srgb, var(--wp--preset--color--accent, #e0d4f7) 35%, rgba(0, 0, 0, .08));
}

.mm-symptom-title {
  font-weight: 700;
  margin: 0;
}

.mm-symptom-title a {
  color: inherit;
  text-decoration: none;
}

.mm-symptom-title a:hover {
  text-decoration: underline;
}

.mm-symptom-note {
  font-size: .9rem;
  opacity: .75;
  margin: 0;
}

/* major-links cards responsive (moved from major-links.html inline styles) */
.major-links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
  margin-top: 2rem;
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  grid-auto-rows: 1fr;
  padding: 0 1rem; /* 左右余白 */
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .major-links-grid {
    grid-template-columns: repeat(2, 1fr);
    padding-left: 0;
    padding-right: 0;
    gap: 16px;
  }
}

/* ==============================
   major-links — Soft UI variant (override)
   - “面”はほぼ透明（ごく薄いフィルム）
   - 影（左上ハイライト / 右下シャドウ）を強めて Neumorphism に寄せる
   ============================== */
.major-links{
  /* shape / spacing はカードとして維持 */
  border-radius: clamp(12px, 3vw, 16px);
  padding: clamp(16px, 4vw, 32px);

  /* surface: 透過のままだと立体が消えるので、1枚の超薄フィルムだけ置く */
  background: rgba(255,255,255,.02);
  border: 0;

  /* stronger dual shadow (soft UI) */
  box-shadow:
    9px 9px 24px rgba(0,0,0,.04),
    -9px -9px 24px rgba(255,255,255,.6);

  position: relative;
  overflow: hidden;
  transition: transform .10s ease, box-shadow .18s ease, filter .18s ease;
}

/* glossy highlight (convex feel) */
.major-links::before{
  content:"";
  position:absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(120% 90% at 28% 20%,
      rgba(255,255,255,.70) 0%,
      rgba(255,255,255,.18) 32%,
      rgba(255,255,255,0) 62%),
    radial-gradient(120% 90% at 78% 85%,
      rgba(0,0,0,.10) 0%,
      rgba(0,0,0,0) 48%);
  pointer-events:none;
  opacity: .55;
}

/* hover: lift a touch */
.major-links:hover{
  filter: brightness(1.015);
  transform: translateY(-1px);
  box-shadow:
    22px 22px 44px rgba(0,0,0,.24),
    -22px -22px 44px rgba(255,255,255,.94);
}

/* active: pressed (inset) */
.major-links:active{
  transform: translateY(0);
  box-shadow:
    inset 14px 14px 28px rgba(0,0,0,.20),
    inset -14px -14px 28px rgba(255,255,255,.86);
}

/* link layout */
.major-links > a {
  display: flex;
  align-items: center;
  gap: clamp(12px, 3vw, 16px);
  text-decoration: none;
  color: var(--wp--preset--color--contrast);
  width: 100%;
  justify-content: flex-start;
}

/* icon: responsive */
.major-links > a svg,
.major-links > a .major-links__icon {
  color: var(--wp--preset--color--primary);
  width: clamp(56px, 14vw, 96px);
  height: clamp(56px, 14vw, 96px);
  display: block;
  flex: 0 0 auto;
  max-width: 100%;
  max-height: 100%;
  box-sizing: border-box;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

/* thumb image: responsive (when the “icon” is an <img>) */
.major-links__thumb {
  width: clamp(56px, 14vw, 96px);
  height: clamp(56px, 14vw, 96px);
  object-fit: cover;
  display: block;
  border-radius: 50%;
}

.major-links__thumb--empty {
  width: clamp(56px, 14vw, 96px);
  height: clamp(56px, 14vw, 96px);
  background: var(--wp--preset--color--accent);
  color: var(--wp--preset--color--primary);
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

/* text block */
.major-links__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

/* title/desc: responsive */
.major-links__title {
  font-weight: 800;
  line-height: 1.4;
  font-size: clamp(1.05rem, 2.6vw, 1.4rem);
}

.major-links__desc {
  opacity: 0.85;
  line-height: 1.5;
  font-size: clamp(0.85rem, 2.2vw, 0.95rem);
}

/* Tablet layout: icon → title → subtitle (vertical), keep multi-column grid */
@media (max-width: 1024px) {
  .major-links > a {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    gap: 10px;
  }

  .major-links__text {
    align-items: center;
  }
}

/* SP layout: keep icon sizes tighter */
@media (max-width: 768px) {

  .major-links > a svg,
  .major-links > a .major-links__icon {
    width: 72px;
    height: 72px;
  }

  .major-links__thumb,
  .major-links__thumb--empty {
    width: 72px;
    height: 72px;
  }
}

/* contact actions: LINEを主役化 */
.mm-contact-actions {
  margin-top: 1rem;
}

.mm-contact-actions__primary,
.mm-contact-actions__secondary {
  width: min(66.666%, 860px);
  margin-left: auto;
  margin-right: auto;
}

.mm-contact-actions__secondary {
  margin-top: 1.1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.mm-contact-actions .major-links {
  padding: clamp(14px, 3vw, 24px);
  border-radius: clamp(10px, 2.2vw, 14px);
}

.mm-contact-actions .major-links > a {
  gap: clamp(10px, 2.6vw, 16px);
}

.mm-contact-actions .major-links > a .major-links__icon,
.mm-contact-actions .major-links > a .major-links__thumb,
.mm-contact-actions .major-links > a .major-links__thumb--empty {
  width: clamp(56px, 12vw, 90px);
  height: clamp(56px, 12vw, 90px);
}

.mm-contact-actions .major-links .major-links__title {
  font-size: clamp(1rem, 2.2vw, 1.3rem);
}

.mm-contact-actions .major-links:not(.is-primary) > a .major-links__icon,
.mm-contact-actions .major-links:not(.is-primary) > a .major-links__thumb,
.mm-contact-actions .major-links:not(.is-primary) > a .major-links__thumb--empty {
  width: clamp(44px, 9vw, 68px);
  height: clamp(44px, 9vw, 68px);
}

.mm-contact-actions .major-links.is-primary {
  background: rgba(255, 255, 255, 0.015);
  border: 0;
  box-shadow:
    6px 6px 16px rgba(0, 0, 0, 0.03),
    -6px -6px 14px rgba(255, 255, 255, 0.56);
}

.mm-contact-actions .major-links.is-primary .major-links__title {
  font-size: clamp(1.12rem, 2.8vw, 1.55rem);
}

.mm-contact-actions .major-links.is-primary .major-links__desc {
  opacity: 0.9;
  font-weight: 600;
}

.mm-contact-actions .major-links:not(.is-primary) {
  background: rgba(255, 255, 255, 0.015);
  box-shadow:
    6px 6px 16px rgba(0, 0, 0, 0.03),
    -6px -6px 14px rgba(255, 255, 255, 0.56);
}

.mm-contact-actions .major-links:not(.is-primary) .major-links__desc {
  font-size: clamp(0.76rem, 1.7vw, 0.84rem);
  line-height: 1.3;
}

.mm-contact-actions .major-links__icon--trail {
  display: none !important;
}

@media (min-width: 861px) {
  .mm-contact-actions .major-links.is-primary > a {
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
  }

  .mm-contact-actions .major-links__icon--trail {
    display: block !important;
    margin-left: auto;
  }

  .mm-contact-actions .major-links.is-primary > a .major-links__icon,
  .mm-contact-actions .major-links.is-primary > a .major-links__thumb,
  .mm-contact-actions .major-links.is-primary > a .major-links__thumb--empty {
    width: 124px;
    height: 124px;
  }
}

@media (max-width: 860px) {
  .mm-contact-actions__primary,
  .mm-contact-actions__secondary {
    width: 100%;
  }

  .mm-contact-actions__secondary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mm-contact-actions .major-links.is-primary > a .major-links__icon,
  .mm-contact-actions .major-links.is-primary > a .major-links__thumb,
  .mm-contact-actions .major-links.is-primary > a .major-links__thumb--empty {
    width: 112px;
    height: 112px;
  }

  .mm-contact-actions .major-links__icon--trail {
    display: none !important;
  }
}

/* ==============================
   Q&A Category Cards
   ============================== */
.mm-qa-page {
  margin-top: 2rem;
  margin-bottom: 3rem;
}

.mm-qa-section {
  margin-top: 2.5rem;
  margin-bottom: 3rem;
}

.mm-qa-section__head {
  margin-bottom: 1.2rem;
  text-align: center;
}

.mm-qa-section__head h3 {
  margin: 0 0 0.4rem;
  font-size: 1.4rem;
}

.mm-qa-section__desc {
  margin: 0;
  color: color-mix(in srgb, var(--wp--preset--color--contrast) 75%, rgba(0,0,0,0.4));
  font-size: 0.95rem;
}

.mm-qa-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}


.mm-qa-card {
  background: color-mix(in srgb, var(--wp--preset--color--accent) 10%, #fff);
  border: none;
  padding: 1.2rem;
  box-shadow: 0 6px 16px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

/* mm_cat_posts: card base (no background, no shadow) */
.mm-cat-posts .mm-qa-card {
  position: relative;
  isolation: isolate;
  background: transparent;
  box-shadow: none;
}


.mm-cat-posts .mm-qa-card > * {
  position: relative;
  z-index: 1;
}

/* Lead card (1st item) */
.mm-cat-posts__card.is-lead {
  gap: 1rem;
}

.mm-cat-posts__lead-title {
  margin: 0;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  line-height: 1.2;
  font-weight: 700;
  color: var(--wp--preset--color--contrast);
}

.mm-cat-posts__cover {
  width: 100%;
  overflow: hidden;
  border-radius: 14px;
  box-shadow:
    7px 7px 18px rgba(0, 0, 0, 0.12),
    -9px -9px 22px rgba(255, 255, 255, 0.84);
}

.mm-cat-posts__cover img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 14px;
  opacity: 0.9;
}


.mm-cat-posts__catch {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
  color: color-mix(in srgb, var(--wp--preset--color--contrast) 90%, rgba(0,0,0,0.3));
}

/* Side cards (2nd–): square cover image left, text right */
.mm-cat-posts__card:not(.is-lead) {
  gap: 0.9rem; /* reduce default gap for side cards */
}

.mm-cat-posts__side {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 0.9rem;
  align-items: start;
  width: 100%;
}

.mm-cat-posts__side-media {
  width: 120px;            /* larger square */
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 12px;
  background: transparent;
  box-shadow:
    5px 5px 14px rgba(0, 0, 0, 0.1),
    -7px -7px 18px rgba(255, 255, 255, 0.8);
}
.mm-cat-posts a.mm-cat-posts__card,
.mm-cat-posts a.mm-cat-posts__card:hover,
.mm-cat-posts a.mm-cat-posts__card:focus,
.mm-cat-posts a.mm-cat-posts__card:active,
.mm-cat-posts a.mm-cat-posts__card:focus-visible {
  text-decoration: none;
  color: inherit;
}

.mm-cat-posts__side-media img,
.mm-cat-posts__side-media picture,
.mm-cat-posts__side-media figure,
.mm-cat-posts__side-media .wp-post-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 12px;
  opacity: 0.9;
}

.mm-cat-posts__side-media > * {
  width: 100%;
  height: 100%;
}

.mm-cat-posts__side-body .mm-qa-question {
  margin: 0 0 .35rem;
  font-weight: 700;
  line-height: 1.25;
}


.mm-cat-posts__side-body .mm-cat-posts__catch,
.mm-cat-posts__side-body .mm-qa-answer {
  margin: 0;
  font-size: .95rem;
  line-height: 1.6;
}

/* ==============================
   mm_cat_posts: Load more
   - SP: 2 columns
   - PC: 4 columns
   ============================== */
.mm-cat-posts__more {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: stretch;
  margin-top: 1.2rem;
}

.mm-cat-posts__more-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding: 0 1rem; /* 追加分のカード全体の左右余白 */
}

@media (min-width: 782px) {
  .mm-cat-posts__more-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Simple card: cover-image over title, full-card link */
.mm-cat-posts__more-card {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  text-decoration: none;
  color: inherit;
}

.mm-cat-posts__more-media {
  width: 86%;              /* 画像を小さく見せる */
  margin: 0 auto;          /* 中央寄せ */
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 12px;
  background: transparent; /* 背景なし */
  box-shadow:
    5px 5px 14px rgba(0, 0, 0, 0.1),
    -7px -7px 18px rgba(255, 255, 255, 0.78);
}

.mm-cat-posts__more-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 12px;
  opacity: 0.9;
}

.mm-cat-posts__more-title {
  font-weight: 700;
  line-height: 1.25;
  font-size: 0.98rem;
  word-break: keep-all;
  overflow-wrap: break-word;
}

/* Bottom-right “more” link */
.mm-cat-posts__more-link {
  align-self: flex-end;
  background: transparent;
  border: 0;
  padding: 0 1rem 0 0; /* 右だけ余白 1rem */
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--wp--preset--color--contrast);
  text-decoration: none;
}

.mm-cat-posts__more-link:hover {
  text-decoration: underline;
}

.mm-cat-posts__more-link:disabled {
  opacity: .55;
  cursor: default;
}

/* ==============================
   mm_cat_posts: card logo overlay
   ============================== */
.mm-cat-posts__more-media,
.mm-cat-posts__cover,
.mm-cat-posts__side-media {
  position: relative;
}

.mm-cat-posts__card-logo {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 2;
  width: auto;
  height: clamp(20px, 4vw, 30px);
  object-fit: contain;
  pointer-events: none;
  opacity: 0.85;
}

/* 各コンテナの img ルールによる誤適用を打ち消す */
.mm-cat-posts__more-media > .mm-cat-posts__card-logo,
.mm-cat-posts__cover > .mm-cat-posts__card-logo,
.mm-cat-posts__side-media > .mm-cat-posts__card-logo {
  width: auto;
  height: clamp(20px, 4vw, 30px);
  aspect-ratio: auto;
  border-radius: 0;
  opacity: 0.85;
}

/* 1-3 サイドカード（120px 正方形）: ロゴをさらに小さく */
.mm-cat-posts--layout-1-3 .mm-cat-posts__side-media > .mm-cat-posts__card-logo {
  height: clamp(12px, 2.5vw, 18px);
  top: 0.3rem;
  left: 0.3rem;
}

/* モバイル: 全レイアウトのロゴを1段大きく */
@media (max-width: 781px) {
  .mm-cat-posts__more-media > .mm-cat-posts__card-logo,
  .mm-cat-posts__cover > .mm-cat-posts__card-logo,
  .mm-cat-posts__side-media > .mm-cat-posts__card-logo {
    height: clamp(26px, 5.5vw, 36px);
  }

  .mm-cat-posts--layout-1-3 .mm-cat-posts__side-media > .mm-cat-posts__card-logo {
    height: clamp(16px, 3.5vw, 22px);
  }
}


.mm-qa-question {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--wp--preset--color--contrast);
}

.mm-qa-answer {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: color-mix(in srgb, var(--wp--preset--color--contrast) 85%, rgba(0,0,0,0.4));
}

.mm-qa-button {
  margin-top: auto;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 0.55rem 0.75rem;
  border-radius: 4px;
  background: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--base);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: opacity 0.15s ease;
  align-self: flex-end;
}

.mm-qa-button:hover {
  opacity: 0.9;
}

.mm-qa-empty {
  text-align: center;
  color: color-mix(in srgb, var(--wp--preset--color--contrast) 70%, rgba(0,0,0,0.4));
}

@media (max-width: 767px) {
  .mm-card__inner {
    min-height: 260px;
    padding: 1rem;
  }
}

/* Contact Form 7 などフォーム全体を囲む枠 */
.mm-panel-form {
  border-radius: 0;
  padding: 0 !important;
  margin: 0 !important;
}

.mm-panel-form .wpcf7-form {
  margin: 0 !important;
  padding: 0 !important;
  font-size: 1rem;
}

.mm-panel-form .wpcf7-form p {
  margin: 0 !important;
  padding: 0 !important;
}

/* CF7 input fields 100% width & taller */
.mm-panel-form .wpcf7-form input[type="text"],
.mm-panel-form .wpcf7-form input[type="email"],
.mm-panel-form .wpcf7-form input[type="tel"],
.mm-panel-form .wpcf7-form input[type="number"],
.mm-panel-form .wpcf7-form select,
.mm-panel-form .wpcf7-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  font-size: 1rem;
  box-sizing: border-box;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 8px;
  padding-bottom: 8px;
}
.mm-panel-form .wpcf7-form textarea {
  height: 140px;
}

/* CF7 submit button */
.mm-panel-form .wpcf7-form input[type="submit"] {
  width: 100%;
  padding: 14px 0;
  font-size: 1rem;
  font-weight: 600;
  margin-top: 14px;
  border: none;
  border-radius: 0;
  background-color: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--base);
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}

.mm-panel-form .wpcf7-form input[type="submit"]:hover {
  background-color: var(--wp--preset--color--secondary);
  box-shadow: 0 4px 10px rgba(0,0,0,0.12);
  transform: translateY(-1px);
}

.mm-panel-form .wpcf7-form input[type="submit"]:active {
  transform: translateY(0);
  box-shadow: none;
}

.mm-panel-form .wpcf7-form p:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}


.mm-panel-form .wpcf7-form label {
  font-size: 0.95rem;
  color: var(--wp--preset--color--contrast);
  display: block;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

@media (min-width: 768px) {
  .mm-panel-form {
    padding: 20px 18px;
  }
}

/* ==============================
   Global Safe Padding (All Viewports)
   ============================== */
.mm-article,
.mm-breadcrumb {
  padding-left: clamp(0.75rem, 2vw, 1.5rem);
  padding-right: clamp(0.75rem, 2vw, 1.5rem);
}

/* フル幅ブロック内でも本文の左右余白を確保 */
.alignfull .mm-article {
  padding-left: clamp(0.75rem, 2vw, 1.5rem);
  padding-right: clamp(0.75rem, 2vw, 1.5rem);
}

.mm-breadcrumb {
  max-width: 1100px;
  width: 100%;
  margin: 1rem auto;
  display: block !important;
  margin-left: auto !important;
  margin-right: auto !important;
  font-size: clamp(0.72rem, 1.6vw, 0.82rem);
}

@media (max-width: 768px) {
  .mm-breadcrumb {
    padding-left: 1rem;
    padding-right: 1rem;
    box-sizing: border-box;
  }
}

/* ==============================
   Post Images — Responsive
   ============================== */

/* 記事テンプレート内の画像（本文のみ：中央寄せ／制限解除） */
.mm-article img {
  width: auto;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* ヒーローカバー画像（従来どおり制限あり） */
.mm-hero-cover img {
  max-width: 80vw;
  width: auto;
  height: auto;
  max-height: 80vh;
  display: block;
}

/* 余白・センタリング調整（必要なら） */
.mm-hero-cover {
  margin-left: auto;
  margin-right: auto;
}

/* スマホ：本文画像は画面からはみ出さず縮小（元サイズを尊重しつつfit） */
@media (max-width: 768px) {
  .mm-article img {
    max-width: 100% !important; /* 画面からはみ出さない */
    width: auto !important;     /* 元サイズを尊重（必要な場合だけ縮小） */
    height: auto !important;
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .mm-article figure.mm-figure img {
    max-width: 100% !important;
    height: auto !important;
  }

  /* スマホでヒーロー画像がはみ出さないように強制 */
  .mm-hero-cover img {
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    max-height: none !important;
  }
}

/* Self Check 用：カバー画像調整（中央トリミング & 余白）  */
.mm-hero-cover--crop {
  max-width: 900px;
  margin: 0 auto 1.8rem;   /* 上下の余白だけ・左右は中央寄せ */
  padding: 0 1rem;         /* カード全体に左右 1rem の余白 */
}

.mm-hero-cover--crop img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 7;               /* 表示枠の比率を固定してトリミング */
  object-fit: cover;                  /* 枠いっぱいに収めて、はみ出した分をカット */
  object-position: center center !important;  /* ← トリミング基準点を中央に固定 */
}
.mm-card-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 24px;
}

@media (min-width: 1200px) {
  .mm-card-list {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 782px) and (max-width: 1199px) {
  .mm-card-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 781px) {
  .mm-card-list {
    grid-template-columns: 1fr;
  }
}



/* Align mm_cat_posts horizontal padding with hero/major-links wrappers.
   When the shortcode is placed inside a constrained block group that already has global padding,
   do not add extra horizontal padding at the mm-cat-posts level. */
.wp-block-group.has-global-padding.is-layout-constrained .mm-cat-posts {
  padding-left: 0;
  padding-right: 0;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

/* ==============================
   Existing Card Layout Override (Scoped)
   - Scope: .mm-cat-posts only
   - PC: 1 (lead) : 3 (side)
   - SP: 1 (lead) + 4 (2x2)
   ============================== */

.mm-cat-posts--layout-1-3 .mm-card-list,
.mm-cat-posts--layout-2-2 .mm-card-list,
.mm-cat-posts--layout-1-1 .mm-card-list {
  grid-template-columns: 1fr; /* reset existing column rules */
}

/* Make cards stretch to the grid row height */
.mm-cat-posts--layout-1-3 .mm-card-list > li,
.mm-cat-posts--layout-2-2 .mm-card-list > li,
.mm-cat-posts--layout-1-1 .mm-card-list > li {
  height: 100%;
}

.mm-cat-posts--layout-1-3 .mm-card-list > li > a.mm-cat-posts__card,
.mm-cat-posts--layout-2-2 .mm-card-list > li > a.mm-cat-posts__card,
.mm-cat-posts--layout-1-1 .mm-card-list > li > a.mm-cat-posts__card {
  display: flex;
  height: 100%;
}

/* ---------- PC: 1 : 3 ---------- */
@media (min-width: 782px) {
  .mm-cat-posts--layout-1-3 .mm-card-list {
    display: grid;
    gap: 12px;
    grid-template-columns: 6fr 4fr;
    grid-template-areas:
      "lead side1"
      "lead side2"
      "lead side3";
    align-items: stretch;
  }


  .mm-cat-posts--layout-1-3 .mm-card-list > *:nth-child(1) { grid-area: lead; }
  .mm-cat-posts--layout-1-3 .mm-card-list > *:nth-child(2) { grid-area: side1; }
  .mm-cat-posts--layout-1-3 .mm-card-list > *:nth-child(3) { grid-area: side2; }
  .mm-cat-posts--layout-1-3 .mm-card-list > *:nth-child(4) { grid-area: side3; }


  /* hide overflow */
  .mm-cat-posts--layout-1-3 .mm-card-list > *:nth-child(n+5) {
    display: none;
  }
}

/* ---------- SP: 1 + 4 (2x2) ---------- */
@media (max-width: 781px) {
  .mm-cat-posts--layout-1-3 .mm-card-list {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, 1fr);
    grid-template-areas:
      "lead lead"
      "a b"
      "c d";
  }

  .mm-cat-posts--layout-1-3 .mm-card-list > *:nth-child(1) { grid-area: lead; }
  .mm-cat-posts--layout-1-3 .mm-card-list > *:nth-child(2) { grid-area: a; }
  .mm-cat-posts--layout-1-3 .mm-card-list > *:nth-child(3) { grid-area: b; }
  .mm-cat-posts--layout-1-3 .mm-card-list > *:nth-child(4) { grid-area: c; }
  .mm-cat-posts--layout-1-3 .mm-card-list > *:nth-child(5) { grid-area: d; }

  .mm-cat-posts--layout-1-3 .mm-card-list > *:nth-child(n+6) {
    display: none;
  }
}

/* ---------- very small screens fallback ---------- */
@media (max-width: 600px) {
  .mm-cat-posts--layout-1-3 .mm-card-list {
    grid-template-columns: 1fr;
    grid-template-areas:
      "lead"
      "a"
      "b"
      "c"
      "d";
  }
}

/* ---------- layout: 2-2 ---------- */
@media (min-width: 782px) {
  .mm-cat-posts--layout-2-2 .mm-card-list {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mm-cat-posts--layout-2-2 .mm-card-list > *:nth-child(n+5) {
    display: none;
  }
}

@media (max-width: 781px) {
  .mm-cat-posts--layout-2-2 .mm-card-list {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mm-cat-posts--layout-2-2 .mm-card-list > *:nth-child(n+5) {
    display: none;
  }
}

@media (max-width: 420px) {
  .mm-cat-posts--layout-2-2 .mm-card-list {
    grid-template-columns: 1fr;
  }
}

/* ---------- layout: 1-1 ---------- */
@media (min-width: 782px) {
  .mm-cat-posts--layout-1-1 .mm-card-list {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mm-cat-posts--layout-1-1 .mm-card-list > *:nth-child(n+3) {
    display: none;
  }
}

@media (max-width: 781px) {
  .mm-cat-posts--layout-1-1 .mm-card-list {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mm-cat-posts--layout-1-1 .mm-card-list > *:nth-child(n+3) {
    display: none;
  }
}

@media (max-width: 420px) {
  .mm-cat-posts--layout-1-1 .mm-card-list {
    grid-template-columns: 1fr;
  }
}

/* layout-2-2 / 1-1: make image larger (image top, text bottom) */
.mm-cat-posts--layout-2-2 .mm-cat-posts__side,
.mm-cat-posts--layout-1-1 .mm-cat-posts__side {
  grid-template-columns: 1fr;
  gap: 0.7rem;
}

.mm-cat-posts--layout-2-2 .mm-cat-posts__side-media,
.mm-cat-posts--layout-1-1 .mm-cat-posts__side-media {
  width: 100%;
  aspect-ratio: 16 / 10;
}

.mm-cat-posts--layout-2-2 .mm-cat-posts__side-body .mm-qa-question,
.mm-cat-posts--layout-1-1 .mm-cat-posts__side-body .mm-qa-question {
  font-size: clamp(1rem, 1.35vw, 1.12rem);
}


/* ==============================
   Link Focus / Active Border Reset
   ============================== */

/* マウスクリック時の青枠・ボーダーを無効化 */
a:focus,
a:active,
button:focus,
button:active {
  outline: none;
  box-shadow: none;
}

/* キーボード操作時のみフォーカスを残す（アクセシビリティ配慮） */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--wp--preset--color--secondary);
  outline-offset: 2px;
}

/* ==============================
   Slider Posts (mm_slider_posts)
   ============================== */
.mm-slider-posts {
  --mm-slider-gap: 24px;
  max-width: 1200px;
  margin-inline: auto;
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: transparent;
  box-shadow:
    10px 10px 26px rgba(0, 0, 0, 0.1),
    -12px -12px 30px rgba(255, 255, 255, 0.72);
}

.mm-slider-posts::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow:
    inset 4px 4px 10px rgba(0, 0, 0, 0.16),
    inset -4px -4px 10px rgba(255, 255, 255, 0.46);
  z-index: 3;
}

.mm-slider-posts__viewport {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-inline: 6%;
  position: relative;
  z-index: 1;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.mm-slider-posts__viewport::-webkit-scrollbar {
  display: none;
}

.mm-slider-posts__track {
  display: flex;
  gap: var(--mm-slider-gap);
  align-items: center;
  flex-wrap: nowrap;
}

.mm-slider-posts__item {
  flex: 0 0 86%;
  scroll-snap-align: center;
}

.mm-slider-posts__link {
  display: block;
}

.mm-slider-posts__link img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

@media (max-width: 900px) {
  .mm-slider-posts {
    --mm-slider-gap: 16px;
  }
  .mm-slider-posts__item {
    flex-basis: 90%;
  }
}

@media (max-width: 600px) {
  .mm-slider-posts__viewport {
    padding-inline: 4%;
  }
  .mm-slider-posts__item {
    flex-basis: 92%;
  }
}


/* ==============================
   Supervisors (監修者) cards
   - Rendered by: parts/supervisors.php
   ============================== */
.mm-supervisors{
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem 1.25rem;
}


/* Softer title (do not use the strong .mm-section-title here) */
.mm-supervisors__title{
  margin: 2.25rem 0 1.25rem;
  padding: 0;
  text-align: left;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  font-weight: 800;
  line-height: 1.6;
  color: var(--wp--preset--color--contrast);
}

.mm-supervisors__title::after{
  content: "";
  display: block;
  margin-top: .65rem;
  width: 84px;
  height: 2px;
  background: color-mix(in srgb, var(--wp--preset--color--secondary) 45%, transparent);
}

.mm-supervisors__grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.mm-supervisor{
  background: var(--wp--preset--color--base);
  border-radius: 14px;
  padding: 1rem;
}

/* Supervisors card: larger photo, 2-col grid */
.mm-supervisor__link{
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: start;
  text-decoration: none;
  color: inherit;
  color: inherit;
}

.mm-supervisor__photo{
  position: relative;
  width: 120px;
  height: 120px;
  flex-shrink: 0;
  border-radius: 14px;
  overflow: hidden;
}

.mm-supervisor__photoImg{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  opacity: .8;
}

/* PC */
@media (min-width: 782px){
  .mm-supervisor__link{
    grid-template-columns: 140px 1fr;
  }

  .mm-supervisor__photo{
    width: 140px;
    height: 140px;
  }
}

.mm-supervisor__body{
  min-width: 0;
}

.mm-supervisor__catch{
  font-weight: 900;
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.mm-supervisor__comment{
  margin-top: .45rem;
  font-size: 0.86rem;
  line-height: 1.7;
  opacity: 0.85;
}

.mm-supervisor__name{
  margin-top: .65rem;
  font-weight: 800;
  line-height: 1.25;
  font-size: 0.95rem;
}

.mm-supervisor__title{
  margin-top: 0.2rem;
  font-size: 0.86rem;
  opacity: 0.85;
}

.mm-supervisor__meta{
  margin-top: 0.35rem;
  display: grid;
  gap: 0.35rem;
  font-size: 0.84rem;
  opacity: 0.85;
  line-height: 1.55;
}

.mm-supervisor__metaLine{
  opacity: 0.9;
}

.mm-supervisor__metaTitle{
  font-weight: 700;
  opacity: 0.92;
}

.mm-supervisor__metaOrg{
  opacity: 0.85;
}

.mm-supervisor__tags{
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .4rem;
}

.mm-supervisor__tag{
  display: inline-flex;
  align-items: center;
  padding: .28rem .5rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--wp--preset--color--accent) 55%, #ffffff 45%);
  color: var(--wp--preset--color--contrast);
  font-size: 0.78rem;
  line-height: 1.1;
}

.mm-supervisor__cta{
  margin-top: 0.55rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--wp--preset--color--secondary);
}

.mm-supervisor__link:hover .mm-supervisor__cta{
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Archive supervisors: horizontal list, one card per row */
.mm-supervisors--archive .mm-supervisors__grid{
  grid-template-columns: 1fr;
  row-gap: 2.8rem;
}

.mm-supervisors-archive-intro{
  max-width: 1100px;
  margin: 1.25rem auto 2.25rem;
  padding: 0 1rem;
}

.mm-supervisors-archive-intro__title{
  margin: 0 0 .75rem;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  line-height: 1.25;
  font-weight: 900;
  text-wrap: balance;
}

.mm-supervisors-archive-intro__lead{
  margin: 0;
  line-height: 1.9;
  opacity: .9;
}

.mm-supervisors-archive-intro__note{
  margin: .75rem 0 0;
  line-height: 1.8;
  opacity: .78;
}

.mm-supervisors-archive-names{
  max-width: 1100px;
  margin: 0 auto 2.25rem;
  padding: 0 1rem;
}

.mm-supervisors-archive-names__title{
  margin: 0 0 .9rem;
  font-size: 1.05rem;
  font-weight: 900;
}

.mm-supervisors-archive-names__list{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .55rem .6rem;
}

.mm-supervisors-archive-names__item{
  margin: 0;
  padding: 0;
}

.mm-supervisors-archive-names__link{
  display: inline-flex;
  align-items: center;
  padding: .42rem .68rem;
  border-radius: 999px;
  text-decoration: none;
  color: inherit;
  background: color-mix(in srgb, var(--wp--preset--color--base) 86%, var(--wp--preset--color--accent) 14%);
  border: 1px solid color-mix(in srgb, var(--wp--preset--color--base) 68%, #d7dde5 32%);
  box-shadow:
    6px 6px 14px rgba(148, 164, 184, 0.16),
    -6px -6px 14px rgba(255, 255, 255, 0.75);
}

a.mm-supervisors-archive-names__link:hover,
a.mm-supervisors-archive-names__link:focus-visible{
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mm-supervisors-archive-names__empty{
  margin: 0;
  opacity: .85;
}

.mm-supervisors--archive .mm-supervisor{
  padding: 1.1rem;
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--wp--preset--color--base) 78%, #d7dde5 22%);
  background: color-mix(in srgb, var(--wp--preset--color--base) 90%, #eef2f7 10%);
  box-shadow:
    10px 10px 20px rgba(148, 164, 184, 0.22),
    -8px -8px 18px rgba(255, 255, 255, 0.8);
  transition: box-shadow .22s ease, transform .22s ease;
}

.mm-supervisors--archive .mm-supervisor__link{
  grid-template-columns: minmax(180px, 260px) 1fr;
  gap: 1.15rem;
}

.mm-supervisors--archive .mm-supervisor__photo,
.mm-supervisors--archive .mm-supervisor__photoImg{
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
}

.mm-supervisors--archive .mm-supervisor__photoImg{
  box-shadow:
    inset 2px 2px 5px rgba(255, 255, 255, 0.55),
    inset -2px -2px 5px rgba(148, 164, 184, 0.2);
}

.mm-supervisors--archive .mm-supervisor__name{
  font-size: 1.08rem;
  padding-bottom: .45rem;
  border-bottom: 1px solid color-mix(in srgb, var(--wp--preset--color--secondary) 24%, transparent);
}

.mm-supervisors--archive .mm-supervisor:hover{
  transform: translateY(-1px);
  box-shadow:
    14px 14px 26px rgba(148, 164, 184, 0.26),
    -10px -10px 22px rgba(255, 255, 255, 0.82);
}

.mm-supervisors--archive .mm-supervisor:active{
  transform: translateY(0);
  box-shadow:
    inset 6px 6px 12px rgba(148, 164, 184, 0.22),
    inset -6px -6px 12px rgba(255, 255, 255, 0.82);
}

@media (max-width: 560px){
  .mm-supervisor__link{
    grid-template-columns: 1fr;
  }

  .mm-supervisors--archive .mm-supervisor__link{
    grid-template-columns: 1fr;
    gap: .75rem;
  }

  .mm-supervisors--archive .mm-supervisor__photo,
  .mm-supervisors--archive .mm-supervisor__photoImg{
    aspect-ratio: 2 / 3;
    border-radius: 12px;
  }

  /* Mobile: keep vertical stack, but shrink the photo */
  .mm-supervisors--archive .mm-supervisor__photo{
    width: clamp(120px, 56vw, 220px);
    margin-inline: auto;
  }

  .mm-supervisors--archive .mm-supervisor__photoImg{
    width: 100%;
    height: 100%;
  }
}


/* ==============================
   Supervisor Single Page
   - Template: single-supervisor.php
   - .mm-sup-hero / .mm-sup-comment / .mm-sup-clinics / .mm-sup-back
   ============================== */

/* Hero layout */
.mm-sup-hero__layout {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.mm-sup-hero__photo {
  flex: 0 0 180px;
  width: 180px;
}

.mm-sup-hero__img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

.mm-sup-hero__img--placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--wp--preset--color--base-2, #f0f0f0);
  border-radius: 8px;
}

.mm-sup-hero__profile {
  flex: 1 1 0;
  min-width: 0;
}

.mm-sup-hero__catch {
  font-size: 1rem;
  font-style: italic;
  opacity: 0.8;
  margin: 0 0 0.5rem;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.mm-sup-hero__name {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.mm-sup-hero__meta {
  margin-top: 0.5rem;
}

.mm-sup-hero__metaLine {
  font-size: 0.9rem;
  opacity: 0.8;
  line-height: 1.6;
}

.mm-sup-hero__org {
  font-weight: 600;
}

.mm-sup-hero__tags {
  margin-top: 0.75rem;
}

/* Comment blockquote */
.mm-sup-comment__body {
  margin: 0;
  padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--wp--preset--color--contrast, #333);
  font-size: 1rem;
  line-height: 1.8;
  opacity: 0.85;
}

/* Affiliated clinics */
.mm-sup-clinics__list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.mm-sup-clinics__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--wp--preset--color--base-2, #e0e0e0);
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s;
}

.mm-sup-clinics__item:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.mm-sup-clinics__thumb img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
}

.mm-sup-clinics__name {
  font-size: 0.95rem;
  font-weight: 600;
}

/* Career */
.mm-sup-career__body {
  font-size: var(--wp--preset--font-size--small);
  line-height: 1.8;
  opacity: 0.8;
}

/* Back link */
.mm-sup-back {
  display: inline-block;
  font-size: 0.9rem;
  color: inherit;
  opacity: 0.75;
  text-decoration: none;
  padding: 0.4em 0.8em;
  border: 1px solid currentColor;
  border-radius: 2em;
  transition: opacity 0.2s;
}

.mm-sup-back:hover {
  opacity: 1;
}

/* Responsive */
@media (max-width: 600px) {
  .mm-sup-hero__layout {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .mm-sup-hero__photo {
    flex: 0 0 140px;
    width: 140px;
  }

  .mm-sup-hero__tags {
    justify-content: center;
  }

  .mm-sup-clinics__list {
    flex-direction: column;
  }
}

/* ==============================
   Category Header Media (Shortcode)
   - Shortcode: [mm_cat_header_media]
   - Figure: .mm-archive-hero
   ============================== */
.mm-archive-hero {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto 0;
  overflow: hidden;
  border-radius: 12px;
  box-sizing: border-box;
}

/* Match previous inline styles */
.mm-archive-hero__mov,
.mm-archive-hero__img {
  border-radius: 12px;
}

/* Base: media fills the figure */
.mm-archive-hero video,
.mm-archive-hero img,
.mm-archive-hero picture {
  display: block;
  width: 100%;
  height: auto;
}

/* Ensure cover behavior when a fixed aspect ratio is applied */
.mm-archive-hero img,
.mm-archive-hero video {
  object-fit: cover;
}

/* Self Check Post: header media opacity */
body.page-template-self-check-post .mm-archive-hero img,
body.page-template-self-check-post .mm-archive-hero video,
body.page-template-self-check-post-php .mm-archive-hero img,
body.page-template-self-check-post-php .mm-archive-hero video {
  opacity: 0.8;
}

/* Mobile: keep image heroes in their natural landscape ratio */
@media (max-width: 781px) {
  .mm-archive-hero:has(picture) picture,
  .mm-archive-hero:has(picture) img {
    width: 100%;
    height: auto;
  }
}

/* Fallback (if :has() is unsupported): keep natural image ratio on mobile */
@supports not selector(:has(*)) {
  @media (max-width: 781px) {
    .mm-archive-hero img {
      width: 100%;
      height: auto;
      object-fit: cover;
    }
  }
}

/* ==============================
   Post Style: HiNTO Ring STAFF
   - Target wrapper: .mm-article.rings-contents
   ============================== */
.mm-article.rings-contents {
  color: var(--wp--preset--color--contrast);
  line-height: 1.7;
  padding-inline: 0 !important;
}

.mm-article.rings-contents .mm-prologue {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(0.5rem, 1.2vw, 1rem) 0;
}

.mm-article.rings-contents .mm-band {
  padding: clamp(1.5rem, 3vw, 2.75rem) 0;
}

.mm-article.rings-contents .mm-hero-media-row {
  max-width: 980px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.mm-article.rings-contents .mm-hero-image-wrap {
  margin-left: auto;
  text-align: right;
}

.mm-article.rings-contents .mm-hero-image-wrap img {
  display: block;
  width: min(533px, 100%);
  height: auto;
  margin: 0 0 0 auto;
  float: none;
}

.mm-article.rings-contents .mm-btn--newphoria,
.mm-panel--accent .mm-btn--newphoria {
  border-radius: 14px;
  box-shadow:
    10px 10px 22px rgba(157, 141, 185, 0.35),
    -8px -8px 18px rgba(255, 255, 255, 0.95);
  padding: 1rem 1.35rem;
  min-width: 220px;
  font-weight: 800;
  text-align: center;
  background: color-mix(in srgb, var(--wp--preset--color--base) 92%, var(--wp--preset--color--accent) 8%);
  color: var(--wp--preset--color--contrast);
  border: 1px solid color-mix(in srgb, var(--wp--preset--color--base) 85%, var(--wp--preset--color--accent) 15%);
}

.mm-article.rings-contents .mm-ring-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

.mm-article.rings-contents .mm-ring-card {
  display: block;
  color: var(--wp--preset--color--contrast);
  background: var(--wp--preset--color--base);
  border: 1px solid color-mix(in srgb, var(--wp--preset--color--contrast) 8%, transparent);
  border-radius: 18px;
  padding: 1.1rem;
  padding-bottom: 5.5rem;
  box-shadow: 0 16px 40px rgba(17, 24, 39, 0.06);
  background-image: none;
  overflow: visible;
}

.mm-article.rings-contents .mm-ring-card__kicker {
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.01em;
  padding: 0.35rem 0.6rem;
  margin: 0 0 0.75rem;
  color: var(--wp--preset--color--contrast);
}

.mm-article.rings-contents .mm-ring-card::before {
  content: none;
}

.mm-article.rings-contents .mm-ring-card .mm-ring-card__body {
  display: flex !important;
  gap: 0.9rem;
  align-items: flex-start;
  padding-bottom: 1rem;
}

.mm-article.rings-contents .mm-ring-card .mm-ring-card__media {
  flex: 0 0 320px;
  margin: 0;
  align-self: flex-end;
}

.mm-article.rings-contents .mm-ring-card .mm-ring-card__media img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  float: none !important;
  margin: 0 !important;
}

.mm-article.rings-contents .mm-ring-card .mm-ring-card__body > .mm-muted {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
}

.mm-article.rings-contents .mm-media-split {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}

.mm-article.rings-contents .mm-media-split__media {
  flex: 0 0 320px;
  margin: 0;
}

.mm-article.rings-contents .mm-media-split__media img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  float: none !important;
  margin: 0 !important;
}

.mm-article.rings-contents .mm-media-split > .mm-muted {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
}

.mm-article.rings-contents > p:empty,
.mm-article.rings-contents .mm-ring-cards > p:empty,
.mm-article.rings-contents .mm-ring-card > p:empty,
.mm-article.rings-contents .mm-ring-card__body > p:empty {
  display: none;
}

.mm-article.rings-contents .mm-figure--newphoria img {
  border-radius: 14px;
  box-shadow:
    10px 10px 22px rgba(157, 141, 185, 0.35),
    -8px -8px 18px rgba(255, 255, 255, 0.95);
  display: block;
  margin-inline: auto !important;
  float: none !important;
}

.mm-article.rings-contents .mm-figure--newphoria img.alignleft {
  float: none !important;
  margin: 0 auto !important;
}

.mm-article.rings-contents .mm-muted {
  color: var(--wp--preset--color--contrast) !important;
}

.mm-fineprint {
  display: block;
  font-size: 0.82em;
  line-height: 1.45;
}

.mm-article.rings-contents .mm-muted ul {
  margin: 0.5rem 0 0;
  padding-left: 1.15rem;
  list-style: none;
}

.mm-article.rings-contents .mm-muted li {
  position: relative;
  padding-left: 1.2em;
  line-height: 1.2;
  margin-top: 1.2rem;
}

.mm-article.rings-contents .mm-muted li:first-child {
  margin-top: 0;
}

.mm-article.rings-contents .mm-muted li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: color-mix(in srgb, var(--wp--preset--color--accent) 65%, var(--wp--preset--color--contrast) 35%);
  font-weight: 700;
}

.mm-article.rings-contents .mm-cta {
  text-align: center;
  padding: clamp(1.75rem, 3.5vw, 3rem);
  background: linear-gradient(
    180deg,
    var(--wp--preset--color--base) 0%,
    color-mix(in srgb, var(--wp--preset--color--base) 94%, var(--wp--preset--color--accent) 6%) 100%
  );
  border-top: 1px solid color-mix(in srgb, var(--wp--preset--color--contrast) 6%, transparent);
}

.mm-article.rings-contents [aria-labelledby="mm-examples-fineprint"] .mm-muted > div {
  display: grid;
  gap: 1rem;
}

.mm-article.rings-contents [aria-labelledby="mm-examples-fineprint"] .mm-muted ul {
  margin: 0.35rem 0 0.8rem;
  padding-left: 1rem;
}

.mm-article.rings-contents [aria-labelledby="mm-examples-fineprint"] .mm-muted li {
  font-size: 1.3rem;
  margin-top: 0.45rem;
  position: relative;
  padding-left: 1.1em;
}

@media (min-width: 861px) {
  .mm-article.rings-contents [aria-labelledby="mm-examples-fineprint"] .mm-muted > div {
    grid-template-columns: 1fr 1fr;
    column-gap: 1.6rem;
    align-items: start;
  }
}

.mm-article.rings-contents [aria-labelledby="mm-examples-fineprint"] .mm-muted li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--wp--preset--color--primary);
  font-weight: 700;
}

.mm-article.rings-contents [aria-labelledby="mm-examples-fineprint"] .mm-muted summary {
  color: var(--wp--preset--color--primary);
}

.mm-article.rings-contents [aria-labelledby="mm-examples-fineprint"] .mm-muted details {
  border: 0 !important;
  box-shadow: none;
}

.mm-article.rings-contents .rings-contents__more > summary {
  font-size: inherit;
  padding: 0.15rem 0.25rem;
}

.mm-article.rings-contents .rings-contents__more > summary:focus,
.mm-article.rings-contents .rings-contents__more > summary:focus-visible {
  outline: none;
}

.rings-contents__title-gap-md {
  margin-top: 2rem;
}

.rings-contents__title-gap-lg {
  margin-top: 2.25rem;
}

.rings-contents__spacer-lg {
  height: 4.5rem;
}

@media (max-width: 860px) {
  .mm-article.rings-contents .mm-hero-media-row {
    flex-direction: column;
    align-items: center;
  }

  .mm-article.rings-contents .mm-btn--newphoria,
  .mm-panel--accent .mm-btn--newphoria {
    width: min(100%, 420px);
  }

  .mm-panel--accent .mm-final-cta__btn {
    width: 100%;
    min-height: 52px;
    font-size: 1.45rem;
  }

  .mm-article.rings-contents .mm-ring-card .mm-ring-card__body {
    display: block !important;
  }

  .mm-article.rings-contents .mm-ring-card .mm-ring-card__media {
    max-width: 100%;
    margin-bottom: 0.75rem;
  }

  .mm-article.rings-contents .mm-media-split {
    display: block;
  }

  .mm-article.rings-contents .mm-media-split__media {
    max-width: 100%;
    margin-bottom: 0.75rem;
  }
}

/* ==============================
   mm-value-row
   - Icon + text side-by-side (→ stacked on mobile)
   ============================== */
.mm-value-row {
  display: flex;
  align-items: center;
  gap: 1.6em;
  justify-content: center;
}
.mm-value-row__icon-orbit {
  position: relative;
  width: 166px;
  height: 166px;
  flex-shrink: 0;
}
.mm-value-row__icon-talk {
  position: relative;
  flex-shrink: 0;
}
.mm-value-row__icon-talk > .mm-value-row__icon-orbit {
  cursor: pointer;
  display: block;
  list-style: none;
}
.mm-value-row__icon-talk > .mm-value-row__icon-orbit:focus {
  outline: none;
}
.mm-value-row__icon-talk > .mm-value-row__icon-orbit:focus:not(:focus-visible) {
  outline: none;
}
.mm-value-row__icon-talk > .mm-value-row__icon-orbit::-webkit-details-marker {
  display: none;
}
.mm-value-row__icon-talk > .mm-value-row__icon-orbit:focus-visible {
  outline: 2px solid var(--wp--preset--color--primary);
  outline-offset: 4px;
  border-radius: 50%;
}
.mm-value-row__icon-orbit > * {
  pointer-events: none;
}
.mm-value-row__orbit-text {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  --mm-orbit-scale: 1.30;
  fill: var(--wp--preset--color--primary);
  opacity: 0.76;
  letter-spacing: 0.23em;
  font-size: 9.5px;
  font-weight: 700;
  animation: mmValueOrbit 56s linear infinite reverse;
}
.mm-value-row__bubble {
  position: absolute;
  top: 26px;
  right: calc(100% - 44px);
  left: auto;
  z-index: 4;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--wp--preset--color--primary) 35%, white 65%);
  background: color-mix(in srgb, white 92%, var(--wp--preset--color--primary) 8%);
  color: var(--wp--preset--color--primary);
  font-size: 0.82rem;
  line-height: 1.1;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}
.mm-value-row__bubble::before {
  content: "";
  position: absolute;
  right: -7px;
  left: auto;
  top: 50%;
  width: 12px;
  height: 12px;
  border-right: 1px solid color-mix(in srgb, var(--wp--preset--color--primary) 35%, white 65%);
  border-top: 1px solid color-mix(in srgb, var(--wp--preset--color--primary) 35%, white 65%);
  border-left: 0;
  border-bottom: 0;
  background: color-mix(in srgb, white 92%, var(--wp--preset--color--primary) 8%);
  transform: translateY(-50%) rotate(45deg);
}
.mm-value-row__icon-talk[open] .mm-value-row__bubble {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.mm-value-row__icon {
  position: absolute;
  inset: 34px;
  width: calc(100% - 68px);
  height: calc(100% - 68px);
  border-radius: 50%;
  padding: 0;
  background: color-mix(in srgb, var(--wp--preset--color--base) 92%, var(--wp--preset--color--accent) 8%);
  border: 1px solid color-mix(in srgb, var(--wp--preset--color--base) 85%, var(--wp--preset--color--accent) 15%);
  box-shadow:
    10px 10px 22px rgba(157, 141, 185, 0.35),
    -8px -8px 18px rgba(255, 255, 255, 0.95);
}
@keyframes mmValueOrbit {
  from { transform: scale(var(--mm-orbit-scale)) rotate(0deg); }
  to { transform: scale(var(--mm-orbit-scale)) rotate(360deg); }
}
.mm-value-row__text {
  text-align: left;
}

.mm-article.rings-contents .mm-value-row__text p {
  line-height: 1.7;
}
@media (max-width: 768px) {
  .mm-value-row {
    flex-direction: column;
    text-align: center;
    gap: 1.1em;
  }
  .mm-article .mm-value-row__icon-orbit {
    width: 150px !important;
    height: 150px !important;
  }
  .mm-value-row__bubble {
    top: -44px;
    left: 50%;
    right: auto;
    width: max-content;
    max-width: min(88vw, 240px);
    white-space: normal;
    text-align: center;
    transform: translate(-50%, 6px);
    font-size: 0.76rem;
  }
  .mm-value-row__bubble::before {
    left: 50%;
    top: calc(100% - 2px);
    border-left: 0;
    border-bottom: 0;
    border-right: 1px solid color-mix(in srgb, var(--wp--preset--color--primary) 35%, white 65%);
    border-top: 1px solid color-mix(in srgb, var(--wp--preset--color--primary) 35%, white 65%);
    transform: translateX(-50%) rotate(45deg);
  }
  .mm-value-row__icon-talk[open] .mm-value-row__bubble {
    transform: translate(-50%, 0);
  }
  .mm-article .mm-value-row__icon {
    inset: 28px;
    width: calc(100% - 56px);
    height: calc(100% - 56px);
  }
  .mm-value-row__orbit-text {
    --mm-orbit-scale: 1.30;
    font-size: 7px;
    letter-spacing: 0.1em;
  }
  .mm-value-row__text {
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mm-value-row__orbit-text {
    animation: none !important;
  }
}

/* ==============================
   Dr.英子 update ハワイ — 特設カテゴリーページ
   Template: category-hideko-review.php
   .mm-cat-top-hero / .mm-cat-top-posts
   ============================== */

/* ヘッダー画像あり時：テキスト左・画像右の横並び */
.mm-cat-top-hero__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2.5rem;
}

.mm-cat-top-hero__body {
  flex: 1 1 0;
  min-width: 0;
}

.mm-cat-top-hero__media {
  flex: 0 0 clamp(200px, 35%, 380px);
  border-radius: 12px;
  overflow: hidden;
}

.mm-cat-top-hero__media .mm-archive-hero {
  margin: 0;
}

.mm-cat-top-hero__media .mm-archive-hero__img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

@media (max-width: 640px) {
  .mm-cat-top-hero__inner {
    flex-direction: column;
  }

  .mm-cat-top-hero__media {
    flex: none;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
  }
}

.mm-cat-top-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--wp--preset--color--primary) 8%, white 92%) 0%,
    color-mix(in srgb, var(--wp--preset--color--accent)  6%, white 94%) 100%
  );
  padding: 3.5rem 1rem 4rem;
}

.mm-cat-top-hero__inner {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  z-index: 1;
}

.mm-cat-top-hero__breadcrumb {
  margin-bottom: 2rem;
  flex-basis: 100%;
}

.mm-cat-top-hero__kicker {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--wp--preset--color--primary);
  background: color-mix(in srgb, var(--wp--preset--color--primary) 12%, white 88%);
  border: 1px solid color-mix(in srgb, var(--wp--preset--color--primary) 30%, white 70%);
  border-radius: 999px;
  padding: 0.3em 0.9em;
  margin: 0 0 1rem;
}

.mm-cat-top-hero__title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 0.4rem;
  word-break: keep-all;
  overflow-wrap: break-word;
  color: var(--wp--preset--color--contrast);
}

.mm-cat-top-hero__subtitle {
  font-size: 1rem;
  font-weight: 600;
  color: color-mix(in srgb, var(--wp--preset--color--contrast) 60%, transparent 40%);
  margin: 0 0 1.25rem;
  letter-spacing: 0.04em;
}

.mm-cat-top-hero__desc {
  font-size: clamp(0.9rem, 1.5vw, 1rem);
  line-height: 1.9;
  color: color-mix(in srgb, var(--wp--preset--color--contrast) 80%, transparent 20%);
  margin: 0 0 1.5rem;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.mm-cat-top-hero__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mm-cat-top-hero__badge {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--wp--preset--color--primary);
  background: color-mix(in srgb, var(--wp--preset--color--primary) 10%, white 90%);
  border: 1px solid color-mix(in srgb, var(--wp--preset--color--primary) 25%, white 75%);
  border-radius: 6px;
  padding: 0.25em 0.8em;
}

/* 装飾リング */
.mm-cat-top-hero__deco {
  position: absolute;
  top: 0;
  right: 0;
  width: 340px;
  height: 340px;
  pointer-events: none;
}

.mm-cat-top-hero__deco-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--wp--preset--color--primary) 20%, transparent 80%);
}

.mm-cat-top-hero__deco-ring--1 {
  width: 220px;
  height: 220px;
  top: -60px;
  right: -60px;
}

.mm-cat-top-hero__deco-ring--2 {
  width: 340px;
  height: 340px;
  top: -110px;
  right: -110px;
}

.mm-cat-top-hero__deco-ring--3 {
  width: 120px;
  height: 120px;
  top: 60px;
  right: 60px;
  border-color: color-mix(in srgb, var(--wp--preset--color--accent) 25%, transparent 75%);
}


@media (max-width: 640px) {
  .mm-cat-top-hero {
    padding: 2.5rem 1rem 3rem;
  }

  .mm-cat-top-hero__deco {
    width: 220px;
    height: 220px;
    opacity: 0.6;
  }

  .mm-cat-top-hero__deco-ring--1 {
    width: 150px;
    height: 150px;
  }

  .mm-cat-top-hero__deco-ring--2 {
    width: 220px;
    height: 220px;
  }

  .mm-cat-top-hero__deco-ring--3 {
    width: 80px;
    height: 80px;
    top: 40px;
    right: 40px;
  }
}

/* ==============================
   cat-top-index: 子カテゴリーナビゲーション
   .mm-cat-top-nav
   ============================== */

.mm-cat-top-nav {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 2rem 0 3rem;
}

.mm-cat-top-nav__card {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
  border-radius: 12px;
  overflow: hidden;
  background: var(--wp--preset--color--base, #fff);
  box-shadow: 0 2px 8px rgba(0,0,0,.09);
  transition: box-shadow .25s, transform .25s;
}

.mm-cat-top-nav__card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,.15);
  transform: translateY(-3px);
}

.mm-cat-top-nav__media {
  width: 45%;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--wp--preset--color--accent, #f0e8f8);
  position: relative;
  aspect-ratio: 16 / 9;
}

.mm-cat-top-nav__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}

.mm-cat-top-nav__card:hover .mm-cat-top-nav__media img {
  transform: scale(1.04);
}

.mm-cat-top-nav__media-empty {
  width: 100%;
  height: 100%;
  min-height: 200px;
  background: var(--wp--preset--color--accent, #f0e8f8);
}

.mm-cat-top-nav__body {
  padding: 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .5rem;
  flex: 1;
}

.mm-cat-top-nav__kicker {
  margin: 0;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--wp--preset--color--primary, #b499d9);
  opacity: .9;
}

.mm-cat-top-nav__title {
  margin: 0;
  font-weight: 700;
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  line-height: 1.35;
  color: var(--wp--preset--color--contrast, #5D576B);
  word-break: keep-all;
  overflow-wrap: break-word;
}

.mm-cat-top-nav__desc {
  margin: .25rem 0 0;
  font-size: clamp(.82rem, 1.5vw, .92rem);
  line-height: 1.7;
  opacity: .72;
  word-break: keep-all;
  overflow-wrap: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 600px) {
  .mm-cat-top-nav__card {
    flex-direction: column;
    min-height: auto;
  }

  .mm-cat-top-nav__media {
    width: 100%;
    aspect-ratio: 16 / 9;
  }

  .mm-cat-top-nav__media-empty {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .mm-cat-top-nav__body {
    padding: 1rem 1.1rem 1.2rem;
  }

  .mm-cat-top-nav__title {
    font-size: 1.05rem;
  }
}


/* clinic region cards */
.mm-clinic-region-posts__card {
  padding: 1rem;
}

.mm-clinic-region-posts__card + .mm-clinic-region-posts__card {
  border-top: 1px solid color-mix(in srgb, var(--wp--preset--color--base) 78%, var(--wp--preset--color--contrast) 22%);
  padding-top: 1.2rem;
}

.mm-clinic-region-posts__card-inner {
  display: block;
}

.mm-clinic-region-posts__thumb {
  margin-bottom: 0.75rem;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.mm-clinic-region-posts__thumb img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

.mm-clinic-region-posts__specialty {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0.25rem 0;
}

.mm-clinic-region-posts__name {
  margin: 0.25rem 0;
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  font-weight: 800;
  line-height: 1.3;
  color: var(--wp--preset--color--contrast);
}

.mm-clinic-region-posts__detail-link {
  margin-left: 0.5rem;
  font-size: 0.78em;
  font-weight: 600;
  color: var(--wp--preset--color--primary);
  text-decoration: none;
}

.mm-clinic-region-posts__actions {
  margin-top: 0.75rem;
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.mm-telemedicine-experts-cta {
  display: flex;
  justify-content: center;
  padding: clamp(1.5rem, 4vw, 2.5rem) 1rem;
}

.mm-telemedicine-experts-cta .mm-btn--newphoria {
  border-radius: 14px;
  box-shadow:
    10px 10px 22px rgba(157, 141, 185, 0.35),
    -8px -8px 18px rgba(255, 255, 255, 0.95);
  padding: 1rem 2.5rem;
  font-weight: 800;
  font-size: clamp(0.9rem, 2vw, 1rem);
  text-align: center;
  background: color-mix(in srgb, var(--wp--preset--color--base) 92%, var(--wp--preset--color--accent) 8%);
  color: var(--wp--preset--color--secondary);
  border: 1px solid color-mix(in srgb, var(--wp--preset--color--base) 85%, var(--wp--preset--color--accent) 15%);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: box-shadow 0.2s ease, transform 0.15s ease;
}

.mm-telemedicine-experts-cta .mm-btn--newphoria:hover {
  box-shadow:
    inset 5px 5px 12px rgba(157, 141, 185, 0.28),
    inset -5px -5px 12px rgba(255, 255, 255, 0.88);
  transform: translateY(1px);
}

@media (max-width: 640px) {
  .mm-telemedicine-experts-cta .mm-btn--newphoria {
    width: min(100%, 380px);
  }
}

.mm-clinic-region-posts .mm-btn--newphoria {
  border-radius: 12px;
  box-shadow:
    4px 4px 10px rgba(157, 141, 185, 0.16),
    -3px -3px 8px rgba(255, 255, 255, 0.78);
  padding: 0.72rem 1rem;
  min-width: 148px;
  font-weight: 800;
  font-size: 0.94rem;
  text-align: center;
  background: color-mix(in srgb, var(--wp--preset--color--base) 97%, var(--wp--preset--color--accent) 3%);
  color: var(--wp--preset--color--contrast);
  border: 1px solid color-mix(in srgb, var(--wp--preset--color--base) 92%, var(--wp--preset--color--accent) 8%);
  text-decoration: none;
}

@media (min-width: 782px) {
  .mm-clinic-region-posts__card-inner {
    display: grid;
    grid-template-columns: minmax(220px, 280px) 1fr;
    gap: 1rem;
    align-items: start;
  }

  .mm-clinic-region-posts__thumb {
    margin-bottom: 0;
  }
}

@media (max-width: 860px) {
  .mm-clinic-region-posts__actions {
    justify-content: center;
  }

  .mm-clinic-region-posts .mm-btn--newphoria {
    width: min(100%, 420px);
  }
}
