/* ------------------------------------------------
* 共通設定
------------------------------------------------ */
* {
    font-family: 'Noto Serif JP', serif;
    box-sizing: border-box;
}

:root {
    --ink: #f7f7f7;
    --ink-dim: #d7dbe0;
    --bg: #2F353A;
    --bg-hover: #262c31;
    --accent: #C0A146;
    --gap: clamp(12px, 2vw, 20px);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.sp_only {
    display: none;
}

.pc_only {
    display: block;
}
.line_p{
border-bottom: 1.5px solid #C0A146;
}
.small_p{
        font-size: 0.7em;
    }

/* スマホ表示の切り替え (768px以下) */
@media (max-width: 768px) {
    .sp_only {
        display: block;
    }

    .pc_only {
        display: none;
    }
 .small_p{
        font-size: 0.85em;
    }
}

/* ------------------------------------------------
* ヘッダー (PC版)
------------------------------------------------ */
.site-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 20;
}

.header-inner {
    margin: 0 auto;
    padding: 0.75em clamp(14px, 4vw, 28px);
    /* emをpx換算で調整 */
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1em;
}

.header-left {
    position: relative;
}

.logo-text {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: center;
    text-decoration: none;
    color: #333;
    letter-spacing: 0.05em;
    line-height: 1.25;
}

.logo-text_name {
    font-size: clamp(1.25rem, 4vw, 1.625rem);
    font-weight: 600;
    color: #3e2c2e;
}

.logo-text_line {
    width: 100%;
    max-width: 260px;
    /* 16.25em = 260px */
    height: 1px;
    background: rgba(0, 0, 0, .5);
    margin: 0.5em 0 0.375em 2em;
}

.logo-text_tagline {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 500;
    color: #3e2c2e;
    letter-spacing: 0.04em;
    line-height: 1.4;
}

.header-right {
    display: flex;
    align-items: flex-start;
    gap: 0.75em;
    position: relative;
}

.header-banner {
    display: inline-block;
    text-decoration: none;
}

.header-banner img {
    display: block;
    width: min(220px, 28vw);
    /* 13.75em = 220px */
    height: auto;
    transition: all 0.1s;
}

.header-banner img:hover {
    opacity: 0.8;
    transform: translateY(3px);
}

/* ハンバーガーボタン (PC非表示) */
/* ====== ハンバーガー（デフォルトは非表示） ====== */
.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  width: 2.75em;
  height: 2.75em;
  padding: 0;
  position: relative;
  align-items: center;
  justify-content: center;
}

.nav-toggle_line {
  position: absolute;
  left: 50%;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 999px;
  transform: translateX(-50%);
  transition: top 0.25s ease, transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle_line--1 {
  top: calc(50% - 8px);
}

.nav-toggle_line--2 {
  top: 50%;
  transform: translateX(-50%) translateY(-50%);
}

.nav-toggle_line--3 {
  top: calc(50% + 8px);
}

/* 開いた時に × にする */
.nav-toggle.is-active .nav-toggle_line--1,
.nav-toggle[aria-expanded="true"] .nav-toggle_line--1 {
  top: 50%;
  transform: translateX(-50%) translateY(-50%) rotate(45deg);
}

.nav-toggle.is-active .nav-toggle_line--2,
.nav-toggle[aria-expanded="true"] .nav-toggle_line--2 {
  opacity: 0;
}

.nav-toggle.is-active .nav-toggle_line--3,
.nav-toggle[aria-expanded="true"] .nav-toggle_line--3 {
  top: 50%;
  transform: translateX(-50%) translateY(-50%) rotate(-45deg);
}

/* ------------------------------------------------
*【噛み合わせ、顎関節症治療】
------------------------------------------------ */
/* ------------------------------------------------
* メインビジュアル (PC版)
------------------------------------------------ */
.fv-unit {
    width: 100%;
    aspect-ratio: 1440 / 563;
    background-image: url(../images/others_fv.png);
    background-size: cover;
    background-position: center center;
    position: relative;
    display: flex;
    align-items: flex-end;
    box-sizing: border-box;
}

.fv-unit p {
    position: absolute;
    top: 80%;
    left: clamp(14px, 4vw, 28px);
    margin: 0;
    color: #5B4A2B;
    font-size: 2.4vw;
    font-weight: 500;
    letter-spacing: 0.1em;
    white-space: nowrap;
}

.fv-unit p::after {
    content: '';
    width: 650px;
    max-width: 80vw;
    height: 1px;
    display: block;
    background-color: #C0A146;
    position: absolute;
    bottom: -10px;
    left: 0;
}

/* ------------------------------------------------
* ナビゲーション (PC版)
------------------------------------------------ */
.nav {
    background: #fff;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.nav-inner {
    max-width: 1280px;
    margin: 0 auto;
}

.nav-list {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-list li {
    display: flex;
    align-items: center;
}

/* --- メインリンク設定 ＆ 下線アニメーション --- */
.nav-list a {
    display: block;
    padding: 1.25em 1.5em;
    color: #333;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    position: relative; /* アニメーションの基準 */
    transition: opacity .25s ease;
}
.nav-list li a:hover{
    color: #C0A146;
}

.nav-list a.nav-gaku{
color:#b20014;	
}

.header-right {
  display: flex;
  align-items: flex-start;
  gap: 0.75em;
  position: relative;
}

/* 共通 */
.header-banner {
  display: inline-block;
  text-decoration: none;
}

.header-banner img {
  display: block;
  width: min(13.75em, 28vw);
  height: auto;
  transition: all 0.1s;
}

/* 無料相談バナーのみホバー */
.header-banner--consult img:hover {
  opacity: 0.8;
  transform: translateY(3px);
}

/* 診療時間バナーは動かさない */
.header-banner--time img,
.header-banner--time img:hover {
  opacity: 1;
  transform: none;
}

/* PC版：ホバーで左から右に伸びる下線 */
@media (min-width: 961px) {
.nav-list a:not(.btn--primary)::after {
        content: "";
        position: absolute;
        left: 1.875em;
        right: 1.875em;
        bottom: 12px;
        height: 2px;
        background: #C0A146;
        transform: scaleX(0);
        transform-origin: left;
        transition: transform .3s ease;
    }

    .nav-list a:not(.btn--primary):hover::after {
        transform: scaleX(1);
    }

    /* --- 2列プルダウン設定 --- */
    .nav-item--hasSub {
        position: relative;
    }

.nav-sub {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    display: grid;
    grid-template-columns: 1fr; /* 2列 → 1列 */
    gap: 0;
    min-width: 280px; /* 必要に応じて調整 */
    background: #fff;
    padding: 15px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.2);
    opacity: 0;
    pointer-events: none;
    transition: all .3s ease;
    z-index: 1000;
    list-style: none;
    background-color: #faf8f1;
  }

  .nav-item--hasSub:hover .nav-sub {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
  }

  .nav-list .nav-sub li {
    display: block;
    width: 100%;
  }

  .nav-list .nav-sub a {
    display: block;
    width: 100%;
    padding: 15px;
    font-size: 0.85rem;
    font-weight: 500;
    border-bottom: 1px solid #ffffff;
    color: #333;
  }

    /* 子メニューの下線の位置と太さを微調整 */
    .nav-list .nav-sub a::after {
        left: 15px;   /* paddingに合わせて調整 */
        right: 15px;
        bottom: 8px;
        height: 1px;  /* 子メニューは少し細く */
    }

    .nav-list .nav-sub a:hover {
        background: #F5EFDE;
        color: #C0A146;
    }
  .header-right {
    /* 固定される無料相談バナー分のスペースを確保 */
    padding-right: calc(min(13.75em, 28vw) + 0.75em);
  }

  .header-banner-fixed {
    position: fixed;
    top: 12px;
    right: clamp(14px, 2vw, 28px);
    z-index: 1200;
    width: min(13.75em, 28vw);
  }

  .header-banner-fixed img {
    width: 100%;
  }
}
/* --- スマホ版アコーディオン設定 (960px以下) --- */
@media (max-width: 960px) {
    .nav-item--hasSub .nav-sub {
        display: none; /* JSで.is-subOpenをtoggleして制御 */
        list-style: none;
        padding: 0;
        background: #F2EBE1;
    }

    .nav-item--hasSub.is-subOpen .nav-sub {
        display: block;
    }

    /* 矢印アイコン追加 */
    .sub-trigger::after {
        content: "▼";
        font-size: 0.6rem;
        margin-left: 8px;
        display: inline-block;
        transition: transform 0.3s;
    }

    .nav-item--hasSub.is-subOpen .sub-trigger::after {
        transform: rotate(180deg);
    }
}

@media (max-width: 960px) {

    /* ヘッダーレイアウト */
    .site-header .header-inner {
        display: block;
        position: relative;
        padding: 0;
        height: auto;
    }

    /* 左側ロゴエリア */
    .site-header .header-left {
        display: block;
        padding: 10px 0 0 10px;
        width: calc(100% - 70px);
    }

    .logo-text {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .logo-text_name {
        font-size: 0.8rem;
        line-height: 1.3;
    }

    .logo-text_line {
        max-width: 180px;
        margin: 4px 0;
    }

    .logo-text_tagline {
        position: static;
        writing-mode: horizontal-tb;
        background: rgba(255, 255, 255, 0.5);
		padding: 5px 10px;
        font-size: 0.6rem;
        color: #3e2c2e;
    }

    /* 右側エリア（予約バナー消去） */
    .header-banner {
        display: none !important;
    }

    .header-right {
        position: absolute;
        top: 0;
        right: 0;
        margin: 0;
    }

    .site-header .header-inner .header-right .nav-toggle {
display: flex;
        position: fixed;
        top: 0;
        right: 0;
        width: 65px;
        height: 65px;
        background-color: #C0A146;
        z-index: 2001;
        margin: 0;
        justify-content: center;
        align-items: center;
        border: none;
    }

    /* FVテキスト */
    .fv-unit p {
        left: 15px;
        top: 75%;
        font-size: 0.9rem;
    }

    .fv-unit p::after {
        width: 240px;
        bottom: -5px;
        max-width: 70vw;
    }
}

@media (max-width:960px) {
 
   .nav-toggle {
    display: flex;
    position: fixed;
    top: 0;
    right: 0;
    width: 65px;
    height: 65px;
    background-color: #C0A146;
    z-index: 3000;
    margin: 0;
    justify-content: center;
    align-items: center;
    border: none;
}

  /* --- 4. ハンバーガーを右上固定配置（absolute） --- */
  .site-header .header-inner .header-right .nav-toggle {
    display: flex;
    position: fixed;
    top: 0;
    right: 0;
    width: 65px;
    height: 65px;
    background-color: #C0A146;
    margin: 0;
    justify-content: center;
    align-items: center;
    border: none;
  }

  .site-header .nav-toggle_line {
    background-color: #ffffff;
  }

  .header-banner img {
    display: none;
  }
  
}
/* ------------------------------------------------
* ドロワーメニュー (タブレット・スマホ共通 960px以下)
------------------------------------------------ */
@media (max-width: 960px) {
    #global-nav.nav {
        display: block;
        position: fixed;
        top: 0;
        right: 0;
        width: 80%;
        height: 100dvh;
        background: #F2EBE1;
        z-index: 1000;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        border: none;
        overflow-y: auto;
    }

    #global-nav.nav.is-open {
        transform: translateX(0);
    }

    .nav-list {
        flex-direction: column !important;
        padding: 80px 20px 40px;
        align-items: stretch;
        justify-content: flex-start;
    }

    .nav-list li {
        width: 100%;
        display: block; /* 区切り線対策 */
    }

    .nav-list li::after {
        display: none;
    }

    .nav-list a {
        padding: 1.25em 1em;
        border-bottom: 0.6px solid rgba(153, 154, 154, 0.3);
        width: 100%;
        font-size: 1.1rem;
        color: #333333;
        font-weight: 400;
    }

    /* --- スマホ版アコーディオン設定 --- */
    .nav-item--hasSub .nav-sub {
        display: none; /* JSのclassList.toggle('is-subOpen')で制御 */
        list-style: none;
        padding: 0;
        background: #F2EBE1;
    }

    .nav-item--hasSub.is-subOpen .nav-sub {
        display: block;
    }

    .nav-sub a {
        padding-left: 2.5em ;
        font-size: 0.95rem ;
        border-bottom: 0.6px solid rgba(153, 154, 154, 0.3) ;
    }

    /* スマホ用プルダウン矢印 */
    .sub-trigger::after {
        content: "▼";
        font-size: 0.6rem;
        margin-left: 8px;
        display: inline-block;
        transition: transform 0.3s;
    }

    .nav-item--hasSub.is-subOpen .sub-trigger::after {
        transform: rotate(180deg);
    }
}

/* ------------------------------------------------

*フッターCSS

　------------------------------------------------ */
.footer * {
    color: #fff;
}

.footer {
    position: relative;
    /* 疑似要素を適切に配置するために relative を設定 */
    padding: 40px 20px;
    background: url(../images/footerbg.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}


/* フッター内のテキストを前面に配置 */
.footerinner {
    position: relative;
    z-index: 2;
    /* コンテンツを最前面に */
    color: #363636;
    max-width: 90%;
}

/* フッター内のテキストの視認性を確保 */
.footer-content {
    position: relative;
    z-index: 3;
    /* テキストを最前面に */
    color: #363636;
    /* 適宜調整 */
}

/* フッター上部（ロゴ・住所・予約） */
.footer-top {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
    padding-bottom: 20px;
    gap: 5vw;
}

.page-title {
    font-size: 0.8rem;
}

.footer-logo {
    flex: 1 1 50%;
    /* 50%を基準にしつつ、狭くなったら縮む設定 */
    min-width: 0;
    /* これが重要：flex子要素がコンテンツ幅以下に縮むのを許可する */
    text-align: center;
}

.footer-title {
    margin: 0 auto;
    padding-bottom: 23px;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, .4);
}

.footer-title p {
    text-align: center;
    font-size: 1.2em;
    letter-spacing: 0.18em;
}

/* フッターの情報エリア */
.footer-info {
    text-align: left;
    font-size: 12px;
    color: #363636;
    margin-left: 0px;
    /* または 20px など、必要な値に調整 */
    margin-right: 40px;
    margin-top: 40px;
    flex: 0 1 330px;
    /* 最大400px、狭くなれば縮む */
    margin: 40px 0 0 0;
    /* 余計なmargin-rightをリセット */
    min-width: 250px;
    /* 住所が読めなくなるほど縮まないための最低ライン */
}

/* 各項目のアイコン */
.footer-info p {
    position: relative;
    padding-left: 25px;
    margin: 5px 0;
    line-height: 2.2em;
    font-size: 16px;
    letter-spacing: .2em;
}

/* 住所アイコン */
.footer-info p:nth-child(1)::before {
    content: "\f3c5";
    /* FontAwesomeのマップピンアイコン */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
}

/* アクセス方法アイコン */
.footer-info p:nth-child(2)::before {
    content: "\f3c5";
    /* 同じくマップピンアイコン */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
}

/* バスアイコン */
.footer-info p:nth-child(3)::before {
    content: "\f238";
    /* FontAwesomeの電車アイコン */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
}

/* 電話番号アイコン */
.footer-info p:nth-child(6)::before {
    content: "\f095";
    /* FontAwesomeの電話アイコン */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
}

.footer-info .access-train {
    margin-bottom: 1px;
    line-height: 1.2em;
}

.footer-info .ac-top {
    margin-top: 1em;
}

.footer-info .ac-bottom {
    margin-bottom: 1em;
}

/* 診療時間表 */
.footer-schedule {
    max-width: 600px;
    text-align: center;
    flex-grow: 1;
    padding: 0;
    letter-spacing: 0.18em;
    white-space: nowrap;
}

.footer-schedule h3 {
    font-size: 18px;
    color: #fff;
    margin-bottom: 10px;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    background: #fff;
    overflow: hidden;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);

}

.schedule-table th,
.schedule-table td {
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, .8);
    text-align: center;
    font-size: 14px;
}

/* 見出し背景をグラデーションで上品に */
.schedule-table th {
    background: linear-gradient(to top, #6E5B1D, #C0A146);
    color: #fff;
    font-weight: 500;
    width: 20%;
    white-space: nowrap
}

/* 偶数行に薄い背景色で見やすく */
.schedule-table tbody tr:nth-child(even) td {
    background: #F2EFE9;
}

.schedule-table td {
    background: #F2EFE9;
    color: #444;
    letter-spacing: .15em;
    font-weight: 600;

}

.schedule-table .sat {
    color: #8e6c2d;
    font-weight: bold;
}

.schedule-table .closed {
    color: #C0A146;
    font-weight: 500;
}

.footer-schedule .schedule-note {
    font-size: 12px;
    color: #fff;
    margin-top: 20px;
    text-align: left;
    letter-spacing: .3em;
}

.footer-reservation {
    margin-left: 40px;
    margin-top: 20px;
    transition: all 0.1s;
}

.footer-reservation img:hover {
    opacity: 0.8;
    transform: translateY(3px);
}

.schedule-table th:nth-child(1) {
    width: 30%;
}

.schedule-table th:nth-child(2),
.schedule-table th:nth-child(3),
.schedule-table th:nth-child(4),
.schedule-table th:nth-child(6),
.schedule-table td:nth-child(2),
.schedule-table td:nth-child(3),
.schedule-table td:nth-child(4),
.schedule-table td:nth-child(6) {
    width: 11%;
    /* 月〜金を同じ幅（11%ずつ）に固定 */
}

.schedule-table th:nth-child(7),
.schedule-table td:nth-child(7) {
    width: 13%;
}

.schedule-table th:nth-child(8),
.schedule-table td:nth-child(8) {
    width: 13%;
    padding: 0px;
}

.schedule-table th:nth-child(5),
.schedule-table td:nth-child(5){
 width: 13%;
  padding: 0px;
}

@media (max-width: 960px) {
    .schedule-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .schedule-table th,
    .schedule-table td {
        font-size: 12px;
        padding: 6px;
    }
}

/* スマホ対応：横スクロール可能に */
@media (max-width: 600px) {
    .schedule-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .schedule-table th,
    .schedule-table td {
        font-size: 12px;
        padding: 6px;
    }
}

/* ----------------------------------------------------
スマホ用（〜767px）
---------------------------------------------------- */

@media (max-width: 768px) {
    .page-title {
        font-size: 0.7rem;
    }

    .footer {
        padding: 40px 20px;
    }

    .footer-logo img {
        margin: 0 auto;
        margin-bottom: 30px;
    }

    .footer-top {
        display: block;
    }

    .footer-info {
        margin-right: 0;
    }

    .footer-info p {
        letter-spacing: 0.15em;
    }

    .footer-schedule {
        margin: 20px 0;
        font-size: 16px;
        letter-spacing: 0.18em;
        font-weight: 100;
    }

    .schedule-table th,
    .schedule-table td {
        font-size: 12px;
        padding: 6px;
    }

    .footer-reservation {
        margin: 30px 0 0 0;
        text-align: center;
        width: 100%;
    }

    .footer-reservation img {
        margin-left: 0;
    }

    .web-reserve {
        display: inline-block;
        width: auto;

    }
}

.footer {
    width: 100%;
    margin: 0 auto;
}

.footerinner {
    max-width: 100%;
}

/* ナビゲーションメニュー */
.footer-nav {
    text-align: center;
    margin: 20px 0;
}

.footer-nav ul {
    list-style: none;
    padding: 0;
}

.footer-nav ul li {
    display: inline-block;
    margin: 0 30px;
}

.footer-nav ul li a {
    text-decoration: none;
    font-size: 16px;
}

/* 診療内容のリンク */
.footer-links {
    display: flex;
    justify-content: space-between;
    max-width: 1100px;
    margin: 20px auto;
}

.footer-section {
    width: 30%;
}

.footer-section h4 {
    font-size: 18px;
    color: #fff;
    margin-bottom: 10px;
    border-bottom: 2px solid #fff;
    padding-bottom: 5px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    text-decoration: none;
    font-size: 14px;
}

/* フッター下部（著作権） */
.footer-bottom {
    text-align: center;
    font-size: 14px;
    color: #555;
    border-top: 1px solid rgba(255, 255, 255, .4);
    padding-top: 30px;
}

.footer-bottom p {
    text-align: center;
}

:root {
    --side-bg: repeating-linear-gradient(45deg, #f4eee4, #f5f5f5 3px,
            /* 薄い色の幅を3px */
            #e9e9e9 3px, #e9e9e9 6px
            /* 濃い色の幅を3px */
        );
    --side-ink: #69492a;
    --side-border: #ddd;
}

.side-fixed {
    position: fixed;
    top: 25%;
    right: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.side-btn {
    writing-mode: vertical-rl;
    text-orientation: upright;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    min-height: 180px;
    padding: 12px 6px;
    background: var(--side-bg);
    color: var(--side-ink);
    border: 1px solid var(--side-border);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.8;
    letter-spacing: 0.1em;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .12);
    transition: all 0.5s ease;
}

/* hover */
.side-btn:hover {
    background: #938068;
    color: #fff;
    transform: translateX(-4px);
}

.bnnerdiv {
    width: 35%;
    margin: 15px auto;
}


@media (max-width: 768px) {
    .bnnerdiv {
        width: 100%;
        margin: 15px auto;
    }

    :root {
        --cta-bg: #a19175;
        --cta-ink: #ffffff;
        --cta-sub: #b5b5b5;
        --cta-accent: #d7c76e;
        --cta-sep: rgba(255, 255, 255, .14);
        --shadow: 0 -6px 16px rgba(0, 0, 0, .35);
    }

    .fixed-cta {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 9999;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        background: var(--cta-bg);
        color: var(--cta-ink);
        border-top: 1px solid rgba(255, 255, 255, .08);
        box-shadow: var(--shadow);
        padding-bottom: env(safe-area-inset-bottom);
    }

    /* 各ボタン */
    .fixed-cta .cta {
        position: relative;
        display: flex;
        gap: 6px;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        color: inherit;
        min-height: 72px;
        /* タップ領域確保 */
        padding: 10px 6px;
        -webkit-tap-highlight-color: transparent;
        width: 100%;
        border-left: 1px solid #b7b1a7ad;
    }

    /* アイコン */
    .fixed-cta .ico {
        width: 28px;
        height: 28px;
        stroke: currentColor;
        fill: none;
        stroke-width: 1.6;
    }

    /* ラベル */
    .fixed-cta .ftlabel {
        font-size: 13px;
        line-height: 1;
        letter-spacing: .04em;
        text-align: center;
        white-space: nowrap;
    }

    .fixed-cta .ftlabel em {
        color: var(--cta-accent);
        font-style: normal;
        font-weight: 700;
    }

    /* ホバー/押下 */
    .fixed-cta .cta:active {
        background: rgba(255, 255, 255, .12);
    }

    .footer-nav ul li a {
        font-size: 16px;
        font-weight: 200;
        letter-spacing: 0.16em;
    }

    .footer-nav ul li {
        display: block;
        margin: 0;
        margin-bottom: 10px;
    }

    .footer-nav ul li a {
        text-align: left;
    }

    .footer-nav ul {
        text-align: left;
        border-top: 1px solid rgba(255, 255, 255, .4);
        padding-top: 20px;
    }

    .footer-bottom {
        font-weight: 100;
    }
}

/* ============================================================
 * 
   お知らせシングル レイアウト

============================================================ */

/* メイン＋サイドバーのレイアウト */
#main_contents {
  max-width: 1100px;
  margin: 40px auto 80px;
  display: flex;
  gap: 40px;
}

/* 記事エリア */
#main_col {
  flex: 1 1 auto;
}

/* サイドバー */
#main_contents .sidebar {
  flex: 0 0 280px;
}

/* ==============================
   記事本体（.news-single）
============================== */

.news-single {
  background: #ffffff;
  padding: 32px 32px 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  border-radius: 8px;
}


.news-single .entry-header {
  margin-bottom: 24px;
}

.news-single .entry-meta {
  font-size: 14px;
  color: #777;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.news-single .entry-meta time {
  font-weight: 600;
  letter-spacing: 0.05em;
}

.news-single .entry-meta .entry-terms {
  display: inline-block;
  padding: 2px 8px;
  font-size: 12px;
  border-radius: 999px;
  background-color: #f0f6fb;
  color: #5b9fbf;
}

.news-single .entry-content {
  font-size: 16px;
  line-height: 1.9;
  color: #333;
}

.news-single .entry-content p {
  margin-bottom: 1.4em;
}

.news-single .entry-content h2,
.news-single .entry-content h3,
.news-single .entry-content h4 {
  margin: 2.2em 0 1.0em;
  line-height: 1.5;
}

.news-single .entry-content h2 {
  font-size: 24px;
	border-left: 5px solid #C0A146;
  padding-left: 12px;
	background-color:#faf8f1;
		font-weight:600;
	line-height: 1.4;
	padding: 0.4em 0.6em;
	letter-spacing:0.08em;
	color:#C49B22;
}

.news-single .entry-content h3 {
  font-size: 20px;
  border-bottom: 1px solid #e1c773;
  padding-bottom: 6px;
	color:#C49B22;
	font-weight:500;
}

.news-single .entry-content h4 {
  font-size: 19px;
	border-left: 3px solid #C59300;
  padding-left: 12px;
		font-weight:500;
	line-height: 1.4;
	letter-spacing:0.08em;
	color:#C49B22;
}

.news-single .entry-content a {
  color: #5b9fbf;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.news-single .entry-content a:hover {
  color: #417c9c;
}

.news-single .entry-content ul,
.news-single .entry-content ol {
  padding-left: 1.5em;
  margin-bottom: 1.4em;
}

/* ページネーション（複数ページに分かれる場合） */
.news-single .page-links {
  margin-top: 24px;
  font-size: 14px;
}

.news-single .page-links a {
  display: inline-block;
  margin: 0 4px;
  padding: 2px 8px;
  border-radius: 4px;
  background: #f0f6fb;
  color: #5b9fbf;
}

/* ==============================
   関連（ほかのお知らせ）
============================== */

.related-posts.related-news {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid #e3edf5;
}

/* 「ほかのお知らせ」タイトル */
.related-posts .term-title.case_heading.case_span {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 24px;
  position: relative;
  padding-left: 14px;
}

.related-posts .term-title.case_heading.case_span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 4px;
  height: 26px;
  background:  #C0A146;
}

/* カード一覧 */
.related-cases-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

/* カード本体 */
.related-case-item {
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.related-case-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
}

/* サムネイル */
.related-case-thumbnail {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.related-case-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* タイトル＋日付＋ボタン部分 */
.related-case-title {
  font-size: 15px;
  font-weight: 600;
  margin: 16px 16px 8px;
  line-height: 1.6;
}

.related-case-title .related-case-a {
  color: #333;
  text-decoration: none;
}

.related-case-title .related-case-a:hover {
  color: #5b9fbf;
}

.related-case-meta {
  margin: 0 16px;
  font-size: 13px;
  color: #777;
}

.related_hr {
  margin: 16px 16px 0;
  border: none;
  border-top: 1px solid #e3edf5;
}

/* 詳細ボタン */
.related-case-link {
  margin: 12px 16px 16px;
  text-align: right;
}

.btn.case_btn {
  display: inline-block;
  padding: 6px 14px;
  font-size: 13px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #5b9fbf;
  color: #5b9fbf;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn.case_btn:hover {
  background: #D7A400;
  color: #ffffff;
}

/* ==============================
   「お知らせ一覧へ」ボタン
============================== */

.btn-center {
  margin-top: 40px;
  text-align: center;
}

.btn-blue {
  display: inline-block;
  min-width: 220px;
  padding: 12px 32px;
  border-radius: 999px;
  background: #C0A146;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
  transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.btn-blue:hover {
  background: #D7A400;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

/* ==============================
   サイドバー（最近のお知らせ）
============================== */

#main_contents .sidebar {
  background-color: #ffffff;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  border-radius: 8px;
  height: fit-content;
}

.sidebar-section {
  margin-bottom: 32px;
}

.sidebar-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
  padding-left: 12px;
  border-left: 4px solid #C0A146;
  color: #333;
}

.sidebar-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.sidebar-list li {
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.6;
}

.sidebar-list a {
  color: #5b9fbf;
  text-decoration: none;
  position: relative;
  padding-left: 12px;
}

.sidebar-list a::before {
  content: "▶";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 10px;
}

.sidebar-list a:hover {
  color: #417c9c;
}

/* ==============================
   レスポンシブ
============================== */

@media screen and (max-width: 1024px) {
  #main_contents {
    flex-direction: column;
    gap: 24px;
    margin: 24px auto 60px;
    padding: 0 16px;
  }

  #main_contents .sidebar {
    width: 100%;
  }

  .related-cases-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (max-width: 640px) {
  .news-single {
    padding: 24px 20px 32px;
  }

  .related-cases-grid {
    grid-template-columns: 1fr;
  }

  .btn-blue {
    width: 100%;
  }
}

/* ==============================
   投稿ページ 見出しデザイン
   （post-single 専用）
============================== */
.related-posts.related-blog {
    margin: 50px 0;
}
/* ベースを整える */
.wp-block-list{
	list-style: none;
	padding: 0;
	margin: 1.2em 0;
	background: #f8fafc;
}

/* 各項目のデザイン */
.wp-block-list li{
	position: relative;
	padding: 10px 12px 10px 32px;
	margin-bottom: 8px;
	border-radius: 8px;
}

/* チェックマーク風の装飾 */
.wp-block-list li::before{
	content: "●";
	position: absolute;
	left: 10px;
	top: 50%;
	transform: translateY(-50%);
	color: #6d8bbd;
	font-weight: 700;
}

table.has-fixed-layout {
    margin: 20px 0;
}
/* ===== Entry header area ===== */
.entry-header{
  margin: 0 0 18px;
}

/* メタ情報（日時 / カテゴリ） */
.entry-header .entry-meta{
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  line-height: 1.6;
  color: #6b7280; /* グレー */
}

/* 日付 */
.entry-header time{
  font-weight: 600;
  letter-spacing: .02em;
}

/* スラッシュの見え方調整（元の “ / ” が強い場合） */
.entry-header .entry-meta{
  position: relative;
}
.entry-header .entry-meta::after{
  content: "";
  display: block;
  width: 100%;
  border-bottom: 1px solid #e5e7eb;
  margin-top: 10px;
}

/* カテゴリ */
.entry-terms{
  font-weight: 600;
}

/* ===== ラベルをCSSで追加（カテゴリの手前に出す） ===== */
.entry-header .entry-meta::before{
	content: "コラム";
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  margin-right: 4px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  color: #0f172a;
  background: #eef2ff; /* 薄い色 */
  border: 1px solid #c7d2fe;
}

/* ===== タイトル（今はpで入ってる前提） ===== */
.entry-content > p:first-child{
  margin: 14px 0 0;
  font-size: clamp(20px, 2.2vw, 30px);
  font-weight: 600;
  line-height: 1.5;
  color: #111827;
  letter-spacing: .02em;
}

/* タイトル内の “｜博多のむらつ歯科クリニック” を控えめにしたい場合（完全一致が難しいので最後だけ軽く） */
.entry-content > p:first-child{
  /* タイトルが長いときの見やすさ */
  word-break: break-word;
}

/* SP微調整 */
@media (max-width: 768px){
  .entry-header .entry-meta{
    font-size: 12px;
  }
  .entry-header .entry-meta::after{
    margin-top: 8px;
  }
}

.post-single .entry-content h2,
.post-single .entry-content h3,
.post-single .entry-content h4{
  margin: 2.2em 0 1.0em;
  line-height: 1.5;	
}

/* ---- h2 ---- */
.post-single .entry-content h2 {
  font-size: 24px;
	border-left: 5px solid #C0A146;
  padding-left: 12px;
	background-color:#faf8f1;
		font-weight:600;
	line-height: 1.4;
	padding: 0.4em 0.6em;
	letter-spacing:0.08em;
	color:#C49B22;
}

/* ---- h3 ---- */
.post-single .entry-content h3 {
  font-size: 20px;
  border-bottom: 1px solid #e1c773;
  padding-bottom: 6px;
	color:#C49B22;
	font-weight:500;
}

/* ---- h4 ---- */
.post-single .entry-content h4 {
  font-size: 19px;
	border-left: 3px solid #C59300;
  padding-left: 12px;
		font-weight:500;
	line-height: 1.4;
	letter-spacing:0.08em;
	color:#C49B22;
}

/* SP微調整 */
@media (max-width: 768px){
	.post-single .entry-content h2 {
		font-size: 18px;
	}
	.post-single .entry-content h3 {
		font-size: 16px;
	}
}
/* ============================================================
 * 
   コラムアーカイブページ用

============================================================ */

main.column_main.page,
main.news_main.page{
    width: 95%;
    margin: auto;
}
.content-sidebar-wrapper {
	display: flex;
    gap: 20px;
}
.content-sidebar-wrapper .contentout {
	width:70%;
}

/* ===== カード全体（念のため） ===== */
.blog-list__list-item {
  margin-bottom: 24px;
}

.blog-item {
  display: flex;
  gap: 16px;
  text-decoration: none;
  color: inherit;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
  overflow: hidden;
  transition: .2s ease;
}

.blog-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,.12);
}

/* ===== 画像側 ===== */
.blog-item__thumbnail {
  width: 40%;
  min-width: 240px;
}

.blog-item__content {
	width: 100%;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* タイトル */
.blog-item__title {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.6;
  color: #111827;
}

.blog-item__button {
  margin-top: auto;
}

.blog-item__button-more {
  display: inline-block;
  padding: 8px 40px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
	background: #C0A146;
  color: #fff;
  transition: .2s ease;
}

.blog-item:hover .blog-item__button-more {
	background: #bf9e32;
}

/* ============================= */
/* スマホ調整 */
/* ============================= */
@media (max-width: 768px) {

  .blog-item {
    flex-direction: column;
  }

  .blog-item__thumbnail,
  .blog-item__content {
    width: 100%;
    min-width: auto;
  }

  .blog-item__content {
    padding: 14px 14px 16px;
  }

  .blog-item__title {
	  font-size: 12px;
  }
	.content-sidebar-wrapper {
		flex-direction: column;
	}
	.content-sidebar-wrapper .contentout {
		width:100%;
	}
}


/* ===================================================================
 * 
   症例シングル（single-case）レイアウト

=================================================================== */

/* 全体幅＆センタリング */
#main_col {
  max-width: 1100px;
  margin: 40px auto 80px;
}

/* 症例記事ボックス */
.case-single {
  background: #ffffff;
  padding: 32px 32px 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  border-radius: 8px;
  font-size: 16px;
  line-height: 1.8;
  color: #333;
}

/* 本文エリア */
.case-single .entry-content p {
  margin-bottom: 1.4em;
}

/* =====================================
   症例 画像エリア
===================================== */

.case-study-images {
  margin-bottom: 32px;
}

.case-study-images .two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.case-image {
  position: relative;
  background: #f5f7fa;
  padding: 16px;
  border-radius: 8px;
  text-align: center;
}

.case-image img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 8px auto 0;
}

/* 「治療前 / 治療後」ラベル */
.syourei_span {
  display: inline-block;
  padding: 4px 10px;
  font-size: 12px;
  border-radius: 999px;
  background: #5b9fbf;
  color: #fff;
}

/* 画像が1枚のみのとき */
.case-image.single-image {
  max-width: 640px;
  margin: 0 auto;
}

/* =====================================
   症例コメント（自由テキスト）
===================================== */

.free-text {
  margin-bottom: 32px;
  padding: 16px 20px;
  border-radius: 6px;
  background: #f7fafd;
  border-left: 4px solid #5b9fbf;
}

.free-text p {
  margin: 0;
  font-size: 15px;
}

/* =====================================
   症例詳細テーブル
===================================== */

.case-study-details {
  margin-top: 24px;
}

.case-study-details table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.case-study-details th,
.case-study-details td {
  padding: 12px 14px;
  border-bottom: 1px solid #e3edf5;
  vertical-align: top;
}

.case-study-details th {
  width: 25%;
  background: #f5f7fa;
  font-weight: 600;
  color: #333;
}

.case-study-details td {
  width: 75%;
}

/* =====================================
   関連する症例
===================================== */

.related-cases {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid #e3edf5;
}

/* 見出し（「関連する症例」） */
.related-cases .term-title.case_heading.case_span {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 24px;
  position: relative;
  padding-left: 14px;
}

.related-cases .term-title.case_heading.case_span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 4px;
  height: 18px;
  border-radius: 999px;
  background: #5b9fbf;
}

/* カード一覧 */
.related-cases-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

/* カード本体 */
.related-case-item {
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.related-case-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
}

/* サムネイル */
.related-case-thumbnail {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.related-case-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* タイトル */
.related-case-title {
  font-size: 15px;
  font-weight: 600;
  margin: 16px 16px 8px;
  line-height: 1.6;
}

.related-case-title .related-case-a {
  color: #333;
  text-decoration: none;
}

.related-case-title .related-case-a:hover {
  color: #5b9fbf;
}

/* 用語（治療法 / お悩み） */
.related-case-meta {
  margin: 0 16px;
  font-size: 13px;
  color: #777;
}

/* HR */
.related_hr {
  margin: 16px 16px 0;
  border: none;
  border-top: 1px solid #e3edf5;
}

/* 年齢・性別 */
.case-person {
  margin: 8px 16px 12px;
  font-size: 13px;
  color: #555;
}

/* ボタン */
.related-case-link {
  margin: 0 16px 16px;
  text-align: right;
}


/* =====================================
   「もっと見る」ボタン
===================================== */

.btn-center {
  margin-top: 40px;
  text-align: center;
}

.btn-blue {
  display: inline-block;
  min-width: 220px;
  padding: 12px 32px;
  border-radius: 999px;
  background: #C0A146;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
  transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.btn-blue:hover {
  background: #bf9e32;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

/* =====================================
   レスポンシブ
===================================== */

/* タブレット 〜1024px */
@media screen and (max-width: 1024px) {
  #main_col {
	  margin: 32px auto 64px;
	  padding: 0 20px;
  }

  .case-single {
    padding: 28px 24px 36px;
  }

  .case-study-images .two-column {
    gap: 12px;
  }

  .related-cases-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
}

/* スマホ 〜767px */
@media screen and (max-width: 767px) {
  #main_col {
	  margin: 24px auto 56px;
	  padding: 0;
  }

  .case-single {
    padding: 20px 16px 28px;
    font-size: 14px;
  }

  .case-study-images .two-column {
    grid-template-columns: 1fr;
  }

  .case-image {
    padding: 12px;
  }

  .free-text {
    padding: 12px 14px;
    font-size: 14px;
  }

  .case-study-details table {
    font-size: 14px;
  }

  .case-study-details th,
  .case-study-details td {
    display: block;
    width: 100%;
    padding: 8px 10px;
  }

  .case-study-details th {
    border-bottom: none;
    border-radius: 4px 4px 0 0;
  }

  .case-study-details td {
    border-top: none;
    margin-bottom: 8px;
    background: #fff;
  }

  .related-cases-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .related-case-title {
    margin: 12px 12px 6px;
    font-size: 14px;
  }

  .related-case-meta,
  .case-person {
    margin: 0 12px 8px;
    font-size: 12px;
  }

  .related-case-link {
    margin: 0 12px 12px;
  }

  .btn-blue {
    width: 100%;
    min-width: auto;
    padding: 12px 0;
  }
}

/* ========== 症例アーカイブ（treatment別 3件表示） ========== */

/* 全体幅・余白（Astraと共存） */
#primary.content-area.primary {
	width: 90%;
	margin: auto;
}
#primary .site-main {
  padding: 24px 0 40px;
}

/* セクション（診療科目単位） */
#primary .term-section {
  margin: 0 0 48px;
}
#primary .term-title.case_heading.case_span {
  margin: 0 0 16px;
  padding: 0 0 10px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  letter-spacing: 0.02em;
}

/* カード一覧：3列（PC） */
#primary .term-section {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

/* 見出しと「もっと見る」ボタンは全幅 */
#primary .term-section > .term-title,
#primary .term-section > .btn-center {
  grid-column: 1 / -1;
}

/* 症例カード */
#primary .related-case-item.casekanren {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
#primary .related-case-item.casekanren:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0,0,0,0.10);
}

/* サムネ */
#primary .related-case-thumbnail a {
  display: block;
}
#primary .related-case-thumbnail img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* タイトル */
#primary .related-case-title {
  margin: 14px 14px 10px;
  font-size: 16px;
  line-height: 1.45;
  font-weight: 700;
}
#primary .related-case-title .related-case-a {
  color: inherit;
  text-decoration: none;
}
#primary .related-case-title .related-case-a:hover {
  text-decoration: underline;
}



/* ===== レスポンシブ ===== */
@media (max-width: 1024px) {
  #primary .term-section {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  #primary .site-main {
    padding: 18px 0 34px;
  }
  #primary .term-section {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 38px;
  }
  #primary .term-title.case_heading.case_span {
    margin-bottom: 10px;
  }
  #primary .related-case-title {
    font-size: 15px;
  }
}

/*==================================================================================================================================

  *監修者情報

==================================================================================================================================*/
.sprvs-info {
  width: 100%;
  margin: auto;
  padding: 20px;
  border: 1px solid #e6e6e6; /* ▶色変え：外枠色 */
  border-radius: 12px; /* ▶デザイン：角丸 */
  background: #fff;
  font-family: 'Noto Serif', serif; /* ▶全体見出しフォント */
}

.sprvs-info__dl {
  margin: 0;
}

.sprvs-info__title {
  font-weight: 400;
  font-size: 150%;
  padding-bottom: 12px;
  margin-bottom: 14px;
  color: #000; /* ▶色変え：監修医情報文字色 */
  border-bottom: 1px solid #eaeaea; /* ▶色変え：監修医情報アンダーライン色 */
}

.sprvs-info__body {
  margin: 0;
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 16px 20px;
  grid-template-areas:
    "photo   heading"
    "meta    meta";
  align-items: start;
}

.sprvs-info__heading {
  grid-area: heading;
  margin: 0;
  align-self: center;
}

.sprvs-info__clinic {
  margin: 0 0 6px;
  font-size: 100%;
  color: #555; /* ▶色変え：○○医院 院長の文字色 */
}

.sprvs-info__name {
  margin: 0;
  font-size: 140%;
  font-weight: 400;
  color: #111; /* ▶色変え：医師の名前の文字色 */
}

.sprvs-info__grid {
  display: contents;
}

.sprvs-info__photo {
  grid-area: photo;
  width: 160px;
  margin: 0;
}

.sprvs-info__photo img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px; /* ▶デザイン：角丸 */
}

.sprvs-info__meta {
  grid-area: meta;
  min-width: 0;
}

.sprvs-info__block {
  margin-bottom: 14px;
}

.sprvs-info__block-title {
  font-weight: 600;
  font-size: 110%;
  margin-bottom: 8px;
  padding-left: 10px;
  color: #444; /* ▶色変え：経歴/資格/所属学会-見出し文字色 */
  border-left: 4px solid #111; /* ▶色変え：経歴/資格/所属学会-見出しの前のライン色 */
}

.sprvs-info__table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #eee; /* ▶色変え：表の外枠色 */
  border-radius: 10px;
  overflow: hidden;
}

.sprvs-info__table td {
  padding: 10px 12px;
  border-top: 1px solid #eee; /* ▶色変え：表の間のライン色 */
  vertical-align: top;
  font-size: 90%;
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", 游ゴシック, "Yu Gothic", Meiryo, sans-serif; /* ▶見出しとフォントを変えたい場合設置 */
  line-height: 1.6;
}

.sprvs-info__table tr:first-child td {
  border-top: none;
}

.sprvs-info__year {
  width: 92px;
  white-space: nowrap;
  color: #666;
  background: #fafafa; /* ▶色変え：経歴表の西暦背景色 */
}

.sprvs-info__desc {
  color: #333;
}

.sprvs-info__two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.sprvs-info__two-col .sprvs-info__block {
  margin-bottom: 0;
}

.sprvs-info__list {
  margin: 0;
  padding-left: 18px;
  font-size: 90%;
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", 游ゴシック, "Yu Gothic", Meiryo, sans-serif; /* ▶見出しとフォントを変えたい場合設置 */
  line-height: 1.7;
  color: #333; /* ▶色変え：資格/所属学会リスト文字色 */
}

/* ==============================
  ▼タブレット・スマホ
================================ */
@media screen and (max-width: 768px) {
  .sprvs-info {
    padding: 16px;
		width: auto;
  }

  .sprvs-info__body {
    grid-template-columns: 1fr;
    grid-template-areas:
      "heading"
      "photo"
      "meta";
  }

  .sprvs-info__photo img {
  width: 200%;
}

  .sprvs-info__photo {
    width: 160px;
  }

  .sprvs-info__two-col {
    grid-template-columns: 1fr;
  }
}
