@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@100..900&family=Noto+Serif+JP:wght@200..900&display=swap');


:root {
	/*フォント*/
		--font1:"noto sans jp";	
		--font2:"noto serif jp";
		--font3:"noto serif jp";
		--line-height: 1.6;
		--letter-spacing: 0em;
		--font-size1: 16px;

	/*文字色*/
		--text1:#333;
		--footer-text:#333;
		--footer-text-hover:#666;
		--main1: #026eb7;
		--dark: #34495e;
		--light: #c1e2f9;
		--main2: #03a19a;
	
	/*レイアウト系*/
		--sec-width:1100px;
		--sec-narrow-width:800px;
		--sec-narrow-width2:800px;
		--smb:35px;
		--sec-pad:70px;
		--gap:5%;
		--scbg1:#fafafa;
		--scbg2:#fafafa;
		--scbg3:#fafafa;
}
:root{
    --grad-normal: linear-gradient(-100deg, #026eb8 0%, #4d9ad8 100%);
  --grad-patient: linear-gradient(-100deg, #ed6c15 0%, #eda115 100%);
  --grad-provider: linear-gradient(-100deg, #00c8b3 0%, #00a1b4 100%);
}

nav.role-links.role-links--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.content-body .staff-card p {
    margin-bottom: 8px;
}
a.btn.btn--A.iryo {
    background: var(--grad-provider);
}
img.kensyui {
    display: block;
    max-width: 100%;
    height: auto;
    margin-bottom: 30px;
}
/* ============================================================
   CSS_v4_diff — アクセスセクション追加分
   ============================================================ */

/* Google Maps 埋め込みラッパー */
.access-map {
	position: relative;
	width: 100%;
	margin-bottom: var(--space-lg);
	border-radius: var(--radius-md);
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
	    margin-bottom: 35px;
}

.access-map iframe {
	display: block;
	width: 100%;
	height: 400px;
}

@media (max-width: 768px) {
	.access-map iframe {
		height: 280px;
	}
}

h2.hdg.hdg--02.kanja:after {
    background: var(--grad-patient);
}

.foot-right {
    text-align: right;
}

.foot-split {
    display: flex;
    width: 100%;
    justify-content: space-between;
    margin-bottom: 30px;
    border-bottom: 1px solid #999;
    padding-bottom: 25px;
}
span.notice {
    color: #d35959;
    font-weight: 600;
}
.news-tabs a.btn.btn--A {
    margin: 30px auto 15px;
}
.gateway{

    background: #fff;
  }

  .gateway__inner{
    max-width: 1400px; /* requested */
    margin: 0 auto;
    padding: 0 16px;
  }

  .gateway__grid{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
gap: clamp(14px, 2vw, 40px);
    align-items: start;
  }

  @media (max-width: 980px){
    .gateway__grid{ grid-template-columns: 1fr; }
  }

  /* ---------------------------------------------------------
     Card base
     --------------------------------------------------------- */
  .role-card{
    --role-grad: linear-gradient(-100deg, #00c8b3 0%, #00a1b4 100%);
    position: relative;
    border: 1px solid #E5E5E5;
    border-radius: 18px;
    background: #fff;

    overflow: hidden;
  }

  /* top gradient bar */
  .role-card::before{
    content:"";
    position:absolute;
    left:0; right:0; top:0;
    height: 6px;
    background: var(--role-grad);
    z-index: 2;
  }

  /* wide image */
  .role-card__media{
    position: relative;
    height: 180px;
    overflow: hidden;
    background: #f3f3f3;
  }
  .role-card__media img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.02);
  }
  /* subtle overlay for readability */
  .role-card__media::after{
    content:"";
    position:absolute;
    inset:0;
    background: linear-gradient(to bottom, rgba(0,0,0,.18), rgba(0,0,0,0) 60%);
    pointer-events:none;
  }

  /* inner padding area */
  .role-card__head,
  .role-card__text,
  .role-links{
    padding-left: 18px;
    padding-right: 18px;
  }

  .role-card__head{
    display: grid;
    gap: 6px;
    margin-top: 14px;
    margin-bottom: 16px;
  }

  .role-card__tag{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 12px;
    letter-spacing: .08em;
    color: rgba(51,51,51,.85);
  }
  .role-card__tag::before{
    content:"";
    width: 10px; height: 10px;
    border-radius: 999px;
    background: var(--role-grad);
  }

.role-card__title {
    margin: 0;
    font-size: 27px;
    line-height: 1.35;
    color: var(--text1, #333);
    letter-spacing: .02em;
}
h3.role-card__title span {
    display: block;
    font-size: 15px;
    color: #afafaf;
    font-weight: 500;
    margin-top: 4px;
}
  .role-card__text{
    margin: 0 0 16px;
    color: var(--text1, #333);
    line-height: var(--line-height, 1.6);
    font-size: 15px;
	      height: 67px;
  }

  /* ---------------------------------------------------------
     Links: 1 row x 4 (responsive)
     --------------------------------------------------------- */
  .role-links{
    padding-bottom: 18px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));

  }

 

a.role-links__item:last-child {
    border-right: 0;
}
  .role-links__item{
    display: grid;
    gap: 8px;
    text-decoration: none;
    border-right: 1px solid #E5E5E5;

    background: #fff;
    padding: 12px 10px;
    transition: transform .15s, box-shadow .15s, border-color .15s;
    min-height: 86px;
    align-content: start;
  }

  .role-links__item:hover{
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(0,0,0,.08);
    border-color: rgba(0,0,0,.10);
  }

  .role-links__item:focus-visible{
    outline: 3px solid rgba(2,110,183,.25);
    outline-offset: 3px;
  }

.role-links__icon {

    display: grid;
    place-items: center;
}

.role-links__icon i {
	padding-bottom: 8px;
    font-size: 39px;
    background: var(--role-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.role-card--provider .role-links__label {
    color: #01bdb4;
}
  .role-links__label{
    color: #ed8c14;
    font-weight: 700;
    line-height: 1.25;
    font-size: 13px;
	      text-align: center;
  }

  /* ---------------------------------------------------------
     Variants (requested gradients)
     --------------------------------------------------------- */
  .role-card--patient{
    --role-grad: linear-gradient(-100deg, #ed6c15 0%, #eda115 100%);
  }

  .role-card--provider{
    --role-grad: linear-gradient(-100deg, #00c8b3 0%, #00a1b4 100%);
  }



:root{
  --c-main: #026eb7;
  --c-sub: #03a19a;
  --c-text: #333333;
  --c-border: #E5E5E5;
  --c-grad: linear-gradient(-100deg, #00c8b3 0%, #00a1b4 100%);
  --radius: 14px;
}

/* Alpine の x-cloak 対策（初期チラつき防止） */
[x-cloak]{ display:none !important; }

.news-tabs{
	    background: linear-gradient(-100deg, #edf8ff 0%, #e8f5ff 100%);
  color: var(--c-text);
}

.news-tabs__head{
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--c-border);
  margin-bottom: 16px;
}

.news-tabs__title{
  margin: 0;
  font-size: 22px;
  line-height: 1.3;
  color: var(--c-main);
  letter-spacing: .02em;
}

.news-tabs__tablist {
    display: flex;
    gap: 0;
    flex-wrap: wrap;
}

.news-tabs__tab {
    appearance: none;
    border: 1px solid var(--c-border);
    background: #fff;
    color: #fff;
    padding: 14px 14px;
    font-size: 17px;
    line-height: 1;
    cursor: pointer;
	    background: var(--grad-normal);
    transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s;
    width: 25%;
}

.news-tabs__tab:hover{
  border-color: rgba(2,110,183,.35);
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
}

.news-tabs__tab.is-active{
  border-color: transparent;
text-decoration: underline 1.5px;
    text-underline-offset: 5px;
  color: #fff;
}

.news-tabs__tab:focus-visible{
  outline: 2px solid rgba(3,161,154,.45);
  outline-offset: 2px;
}

.news-tabs__body{
  background: #fff;
  border: 1px solid var(--c-border);
  padding: 16px;
}

/* パネル内の余白を整える */
.news-tabs__panel > *:first-child{ margin-top: 0; }
.news-tabs__panel > *:last-child{ margin-bottom: 0; }

/* スマホ最適化 */
@media (max-width: 640px){
  .news-tabs__head{
    align-items: flex-start;
    flex-direction: column;
  }
  .news-tabs__tab{
    padding: 10px 12px;
  }
}



.is-scrolled a.site-header__logo-link {
    top: 5px;
}
.is-scrolled .site-header__logo-img {
    content: url(https://dentistryfujita-hu.jp/wp-content/uploads/2026/06/logo-yoko2.svg);
    height: 36px;
}
.is-scrolled .site-header__logo-img {
    height: 36px;
}
header.site-header.is-scrolled {
    background: #ffffffd4;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.hero {
  position: relative;
  overflow: hidden;
}

/* ぼかしレイヤー */
.hero::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;

  /* 背景をぼかす */
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  /* 上は100%効く、下に行くほど効かない（=透明にする） */
  -webkit-mask-image: linear-gradient(to bottom,
    rgba(0,0,0,1) 0%,
    rgba(0,0,0,1) 00%,
    rgba(0,0,0,0) 2%,
    rgba(0,0,0,0) 2%
  );
  mask-image: linear-gradient(to bottom,
    rgba(0,0,0,1) 0%,
    rgba(0,0,0,1) 00%,
    rgba(0,0,0,0) 2%,
    rgba(0,0,0,0) 2%
  );
opacity: .5;
  z-index: 1;
}

/* 前面コンテンツはさらに上 */
.hero > *{
  position: relative;
  z-index: 2;
}


.cc-wrap {
    margin-left: 2vw;
}
p.cc2 {
    font-size: 1.5vw;
	    color: #fff;
    font-weight: 500;

}
p.cc {
    font-family: var(--font2);
    font-size: 3vw;
    margin-bottom: 20px;
	    color: #fff;
    font-weight: 500;

}
.mv-inner {
	position: relative;
    width: 100%;
    height: 100%;
    display: flex;
	align-items:center;
}

/* メインビジュアルの下に2pxのトラック */
.mv-indicator {
    height: 4px;
    width: 100%;  background: #fafafa;
	    position: absolute;
    bottom: 0;

}

/* 伸びるバー本体 */
.mv-indicator__bar{
  display: block;
  height: 100%;
  width: 100%;
    background: linear-gradient(-100deg, #00c8b3 0%, #00a1b4 100%);
  transform: scaleX(0);
  transform-origin: left;
  will-change: transform;
}

/* 背景スライダー：全面固定 */
#mainv .kb-slider{
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* 画像を全面カバー */
#mainv .kb-slider .swiper-slide{
  position: relative;
  width: 100%;
  height: 100%;
}
#mainv .kb-slider img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center;
  will-change: transform;
}

/* 内側コンテンツは前面へ */
#mainv .inner{
  position: relative;
  z-index: 1;
}

/* Ken Burns（ズーム＋わずかなパン） */
@keyframes kenburnsZoomPan {
  0%   { transform: scale(1.00) translate(0%, 0%); }
  100% { transform: scale(1.1) translate(-2%, -2%); }
}

/* 「表示中のスライドだけ」アニメ */
#mainv .kb-slider .swiper-slide-active img{
  animation: kenburnsZoomPan 7s both;
}

/* 連続再生時のチラつき抑止 */
#mainv .kb-slider .swiper-slide img{
  backface-visibility: hidden;
}

/* 動きを減らす設定のユーザーには停止 */
@media (prefers-reduced-motion: reduce){
  #mainv .kb-slider .swiper-slide-active img{
    animation: none !important;
    transform: scale(1) !important;
  }
}


section.full-height {
    height: calc(90vh - 71px);
	    padding: 0;
    box-sizing: border-box;
	position: relative;
}
a.site-header__link.cta span:after {
    content: "\f0da";
    font-family: "Font Awesome 7 pro";
    font-weight: 900;
    line-height: 0;
    display: inline;
    margin-left: 7px;
    right: -4px;
    position: relative;
}

a.site-header__logo-link {
    margin-left: 20px;
    position: relative;
top: 21px;
}
a.site-header__link.cta.residents {

	    background: linear-gradient(-100deg, #00c8b3 0%, #00a1b4 100%);
}
.site-header__link.cta.appointment {
    background: linear-gradient(-100deg, #ed6c15 0%, #eda115 100%);
    margin-left: 10px;
}

/*レイアウト・セクション*/
section {
    padding-top: var(--sec-pad);
    padding-bottom: var(--sec-pad);
}
section.bg1 {
    background: var(--scbg1);
}
section.bg2 {
    background: var(--scbg2);
}
section.bg3 {
    background: var(--scbg3);
}
.inner {
    width: var(--sec-width);
    margin: 0 auto;
    max-width: 90%;
}


/*よく使うやつ*/

/*a.btn {
	position: relative;
    display: block;
    background: var(--main1);
    color: #fff;
    padding: 7px 0;
    text-align: center;
    text-decoration: none;
	width: 300px;
    margin: 0 auto;
	max-width: 100%;
}
*/

a.btn:after {
    content: "\f138";
    font-family: "Font Awesome 7 pro";
    font-weight: 900;
    position: absolute;
    right: 10px;
    line-height: 0;
    top: 50%;
}

h3.kmdsr {
    text-align: center;
    padding-top: 28px;
    font-weight: 600;
    font-size: 28px;
}
h3.cbar span {
    display: block;
    font-size: 32px;
    line-height: 1;
    padding-bottom: 10px;
}
h3.cbar:after {
    position: absolute;
    content: '';
    width: 60px;
    height: 2px;
    left: 50%;
    margin: 20px 0px 0 -30px;
    display: block;
    background-color: #111;
}
h3.cbar {
    text-align: center;
    padding-bottom: 40px;
    position: relative;
    font-size: 16px;
    font-weight: 400;
    line-height: 1;
}
h3.lbar span {
    display: block;
    font-size: 32px;
    line-height: 1;
    padding-bottom: 10px;
}
h3.lbar {
    padding-bottom: 40px;
    position: relative;
    font-size: 16px;
    font-weight: 400;
    line-height: 1;
}
h3.lbar:after {
    position: absolute;
    content: '';
    width: 60px;
    height: 2px;
    left: 0;
    margin: 20px 0px 0 0;
    display: block;
    background-color: #111;
}


h3.kmdsr span {
    font-weight: 900;
    position: absolute;
    color: var(--light);
    font-size: 48px;
    top: 0;
    line-height: 1;
    z-index: -1;
    left: 0;
    right: 0;
}
h3.kmdsl {
    padding-top: 28px;
    font-weight: 600;
    font-size: 28px;
}
h3.kmdsl span {
    font-weight: 900;
    position: absolute;
    color: var(--light);
    font-size: 48px;
    top: 0;
    line-height: 1;
    z-index: -1;
    left: 0;
}


dl.list dd {
    margin-left: 100px;
}
dl.list dt {
    position: absolute;
}








/* ============================
   ラッパー・コンテナ
   ============================ */
.container {
  width: 100%;
  max-width: var(--width-container);
  margin-right: auto;
  margin-left: auto;
  padding-right: var(--sp-md);
  padding-left: var(--sp-md);
}

/* ============================
   Flexbox 便利セット
   ============================ */
/* 左右中央揃え */
.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* 両端揃え（ヘッダーなどで多用） */
.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ============================
   レスポンシブ表示切り替え
   ============================ */
/* PCのみ表示（スマホで消す） */
@media (max-width: 767px) {
  .pc-only { display: none !important; }
}

/* スマホのみ表示（PCで消す） */
@media (min-width: 768px) {
  .sp-only { display: none !important; }
}


/* アニメーション系 */
.cover-bottom.sc:before {
    height: 0;
}
.cover-bottom:before {
    content: "";
    background: var(--main1);
    position: absolute;
    height: 100%;
    width: 100%;
    right: 0;
    bottom: 0;
    transition: .5s ease;
}
.cover-right.sc:before,.cover-left.sc:before {
    width: 0;
}
.cover-right:before {
    content: "";
    background: var(--main1);
    position: absolute;
    height: 100%;
    width: 100%;
    right: 0;
    top: 0;
    transition: .5s ease;
}
.cover-left:before {
    content: "";
    background: var(--main1);
    position: absolute;
    height: 100%;
    width: 100%;
    left: 0;
    top: 0;
    transition: .5s ease;
}
.cover.sc:before {
    opacity: 0;
}
.cover:before {
    content: "";
    background: var(--main1);
    position: absolute;
    height: 100%;
    width: 100%;
    left: 0;
    top: 0;
	    transition: .5s ease;
}

.fade-right.sc,.fade-left.sc,.fade-bottom.sc {
    opacity: 1;
    transform: translate(0px, 0px);
}
.fade-bottom {
    opacity: 0;
    transition: .5s ease;
    transform: translate(0, 15px);
}
.fade-left {
    opacity: 0;
    transition: .5s ease;
    transform: translate(-15px, 0px);
}
.fade-right {
    opacity: 0;
    transition: .5s ease;
    transform: translate(15px, 0px);
}
.fadein.sc {
    opacity: 1;
}
.fadein {
    opacity: 0;
    transition: .5s ease;
}


/* =========================================================
   Header / Footer (New)
   - Use :root variables provided by you
   - Reusable / low-coupling styles
   ========================================================= */

/* ---------- Common (only for header/footer area) ---------- */
.site-header,
.site-footer {
	font-size: var(--font-size1);
	line-height: var(--line-height);
	letter-spacing: var(--letter-spacing);
}

.site-header a,
.site-footer a {
	text-decoration: none;
}

.site-header a:focus-visible,
.site-footer a:focus-visible,
.site-header button:focus-visible {
	outline: 2px solid var(--main2);
	outline-offset: 3px;
}

/* =========================================================
   Header (sticky / full width)
   ========================================================= */
.site-header {
    position: fixed;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.site-header__container {
	/*max-width: var(--sec-width);*/
	margin: 0 auto;

}

.site-header__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;

}

/* Logo */
.site-header__logo-link {
	display: inline-flex;
	align-items: center;
}

.site-header__logo-img {
	display: block;
	width: auto;
    height: 57px;
}

.site-header__logo-text {
	font-family: var(--font2);
	color: var(--text1);
	font-weight: 700;
}

/* Desktop nav (default hidden -> shown on >=768px) */
.site-header__nav--desktop {
	display: none;
}

.site-header__menu {
	display: flex;
	align-items: center;
	flex-wrap: wrap;

	list-style: none;
	margin: 0;
	padding: 0;
}

.site-header__item {
	position: relative;
}

/* Link */

.is-scrolled .site-header__link{
		color: var(--text1);
	
}

.site-header__link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
    padding: 14px 16px;
	    font-weight: 500;
	color: #fff;
	    text-shadow: 0 0 4px #00000059;
}
.is-scrolled .site-header__link,.site-header__link.cta {
    text-shadow: none;
}
/* Underline hover (keeps JP/EN colors stable) */
.site-header__link::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -12px;
	height: 1px;
	background: transparent;
	transition: background 0.15s ease;
}

.site-header__item > .site-header__link {
	position: relative; /* for underline */
}

.site-header__item > .site-header__link:hover::after,
.site-header__item > .site-header__link:focus-visible::after {
	background: var(--main1);
}

/* Current */
.site-header__link--current::after {
	background: var(--main1);
}

/* Label (EN/JP) in header: EN=font2+main1, JP=font1+text1 */
.site-header .site-menu__label {
	flex-direction: column;
	gap: 2px;
	line-height: 1.2;
}

.site-header .site-menu__label-en {
	font-family: var(--font2);
	color: var(--main1);
	font-size: 12px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.site-header .site-menu__label-jp {
	font-family: var(--font1);
	color: var(--text1);
	font-size: 14px;
	font-weight: 600;
}

/* Icons */
.site-header__icon {
width: 31px;
    height: 31px;
	display: inline-block;
	color: var(--text1);
	color: #ffffff;
}
.is-scrolled .site-header__icon {
    color: #111;
}
.site-header__icon--chevron {
	opacity: 0.8;
	transition: transform 0.15s ease;
}

.site-header__item--has-children:hover .site-header__icon--chevron,
.site-header__item--has-children:focus-within .site-header__icon--chevron {
	transform: rotate(180deg);
}

/* Dropdown */
.site-header__dropdown {
	position: absolute;
	top: calc(100% + 12px);
	left: 0;
	min-width: 240px;
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.08);
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
	border-radius: 12px;
	padding: 10px;
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
}

.site-header__item--has-children:hover > .site-header__dropdown,
.site-header__item--has-children:focus-within > .site-header__dropdown {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.site-header__dropdown-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 4px;
}

.site-header__dropdown-link {
	display: block;
	padding: 10px 10px;
	border-radius: 10px;
	color: var(--text1);
}

.site-header__dropdown-link:hover,
.site-header__dropdown-link:focus-visible {
	background: var(--scbg1);
}

/* CTA (flag class) - header */
.site-header__link.cta {
    background: var(--main1);
    padding: 26px 17px;
    color: #fff;
	font-weight: 500;
}

.site-header__link.cta .site-menu__label-en,
.site-header__link.cta .site-menu__label-jp {
	color: #fff;
}

.site-header__link.cta::after {
	display: none; /* underline not needed on button */
}

.site-header__link.cta:hover,
.site-header__link.cta:focus-visible {
	filter: brightness(0.95);
}

/* Mobile toggle (shown <768px) */
.site-header__toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
    margin-right: 8px;
	color: var(--text1);
}

.site-header__toggle:hover {
	border-color: rgba(0, 0, 0, 0.2);
}

/* Mobile menu panel */
.site-header__mobile {
	position: absolute;
	top: 100%;
	left: 0;
	width: 100%;
	background: #fff;
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
	box-shadow: 0 14px 34px rgba(0, 0, 0, 0.14);
	padding: 14px clamp(16px, 4vw, var(--smb));
	    box-sizing: border-box;
}

.site-header__nav--mobile {
	max-width: var(--sec-width);
	margin: 0 auto;
}

.site-header__mobile-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 8px;
}

.site-header__mobile-link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 12px 10px;
	border-radius: 12px;
	color: var(--text1);
	background: transparent;
}

.site-header__mobile-link:hover,
.site-header__mobile-link:focus-visible {
	background: var(--scbg1);
}

/* Mobile CTA */
.site-header__mobile-link.cta {
	background: var(--main1);
}

.site-header__mobile-link.cta .site-menu__label-en,
.site-header__mobile-link.cta .site-menu__label-jp {
	color: #fff;
}

/* Mobile submenu toggle */
.site-header__mobile-subtoggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 12px;
	border: 1px solid rgba(0, 0, 0, 0.12);
	background: #fff;
	color: var(--text1);
}

.site-header__mobile-subtoggle:hover {
	border-color: rgba(0, 0, 0, 0.2);
}

/* Mobile submenu area */
.site-header__mobile-sub {
	margin-top: 6px;
	padding: 8px 0 0 14px;
	border-left: 2px solid rgba(0, 0, 0, 0.08);
}

.site-header__mobile-submenu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 6px;
}

/* NOTE: you currently output child links in mobile with .site-header__dropdown-link.
   Keep it supported here to avoid breaking. */
.site-header__mobile-submenu a {
	display: block;
	padding: 10px 10px;
	border-radius: 12px;
	color: var(--text1);
}

.site-header__mobile-submenu a:hover,
.site-header__mobile-submenu a:focus-visible {
	background: var(--scbg1);
}



/* =========================================================
   Footer (main1 background / EN hidden)
   ========================================================= */
.site-footer {
	width: 100%;
background: #dbf1ff;
	color: var(--footer-text);
    padding: 50px 0 34px;
}

.site-footer__container {
	max-width: var(--sec-width);
	margin: 0 auto;
	padding-inline: clamp(16px, 4vw, var(--smb));
}

/* Footer top logo */
.site-footer__top {
	display: flex;
	justify-content: center;
	padding-bottom: 16px;
}

.site-footer__logo-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.site-footer__logo-img {
	display: block;
	width: auto;
    height: 43px;
}

.site-footer__logo-text {
	font-family: var(--font2);
	color: var(--footer-text);
	font-weight: 700;
}

/* Footer nav: horizontal, centered */
.site-footer__nav {
	display: flex;
	justify-content: center;
}

.site-footer__menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    gap: 10px 22px;
    width: 100%;
}

/* Footer link colors follow root */
.site-footer__link {
	display: inline-flex;
	align-items: center;
	padding: 8px 10px;
	border-radius: 999px; /* neutral reusable shape */
	color: var(--footer-text);
}

.site-footer__link:hover,
.site-footer__link:focus-visible {
	color: var(--footer-text-hover);
	background: rgba(255, 255, 255, 0.14);
}

/* Footer: hide EN label */
.site-footer .site-menu__label-en {
	display: none;
}

/* Footer JP label */
.site-footer .site-menu__label-jp,
.site-footer .site-menu__label {
	font-family: var(--font1);
	color: var(--footer-text);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
}

/* Footer child link (same layer; slightly lighter) */
.site-footer__link--child {
	opacity: 0.85;
}

/* Footer CTA (flag class) - keep readable on main1 */


.site-footer__link.cta:hover,
.site-footer__link.cta:focus-visible {
	filter: brightness(0.95);
}

/* Footer bottom */
.site-footer__bottom {
	display: flex;
	justify-content: center;
	margin-top: 16px;
	padding-top: 14px;
	border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.site-footer__copy {
	color: var(--footer-text);
	opacity: 0.9;
}

/* =========================================================
   Admin Bar offset for sticky header
   ========================================================= */

/* 通常（デスクトップ）：admin bar 高さは 32px */
body.admin-bar .site-header{
	top: 32px;
}

/* モバイル：admin bar 高さは 46px */
@media (max-width: 782px){
	body.admin-bar .site-header{
		top: 46px;
	}
}



/* =========================================================
   Page Hero (Title Section)
   ========================================================= */
.page-hero{
	position: relative;
	width: 100%;
	background-color: var(--light);
	background-size: cover;
	background-position: center;
	padding: clamp(44px, 7vw, 92px) 0;
}

.page-hero::before{
	content:"";
	position:absolute;
	inset:0;
	background: linear-gradient(
		to bottom,
		rgba(0,0,0,0.10),
		rgba(0,0,0,0.22)
	);
}

.page-hero__inner{
	position: relative;
	z-index: 1;
	max-width: var(--sec-width);
	margin: 0 auto;
	padding-inline: clamp(16px, 4vw, var(--smb));
	display: flex;
	justify-content: center;
}

.page-hero__box{
	background: rgba(255,255,255,0.78); /* デフォルト：半透明白 */
	border: 1px solid rgba(0,0,0,0.10);
	border-radius: 14px;
	padding: clamp(14px, 2.2vw, 22px) clamp(18px, 3vw, 28px);
	text-align: center;
	max-width: min(760px, 100%);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	    margin-top: 30px;
}

.page-hero__title-en{
	margin: 0 0 6px;
	font-family: var(--font2);
	color: var(--main1);
	letter-spacing: 0.10em;
	text-transform: uppercase;
	font-size: 12px;
}

.page-hero__title-jp {
    margin: 0;
    font-family: var(--font1);
    color: var(--main1);
    font-weight: 700;
    line-height: 1.25;
    font-size: 30px;
}
.page-hero{
	background-image: url('https://dentistryfujita-hu.jp/wp-content/uploads/2026/06/photo5.jpg');
	background-size: cover;
	background-position: center;
}



/* =========================================================
   Contact Form 7 Generic UI
   ========================================================= */

.cf7-form{
	max-width: var(--sec-narrow-width);
	margin: 0 auto;
	font-family: var(--font1);
	color: var(--text1);
}

.cf7-lead{ margin-bottom: 16px; }
.cf7-note{ margin: 0; font-size: 14px; }

.cf7-required{
	display: inline-block;
	font-size: 12px;
	line-height: 1;
	padding: 3px 8px;
	border-radius: 999px;
	background: var(--main2);
	color: #fff;
	vertical-align: middle;
	margin-left: 6px;
}

.cf7-field{ margin: 14px 0; }

.cf7-label{
	display: inline-block;
	font-weight: 700;
	margin-bottom: 8px;
}

.cf7-help{
	margin: 8px 0 0;
	font-size: 13px;
	color: var(--dark);
	opacity: 0.85;
}

.cf7-link{
	color: var(--main1);
	text-decoration: underline;
}
.cf7-link:hover{ opacity: 0.85; }

/* layout grid */
.cf7-grid{
	display: grid;
	gap: 12px;
}
.cf7-grid--2{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cf7-grid--3{ grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (max-width: 860px){
	.cf7-grid--2, .cf7-grid--3{ grid-template-columns: 1fr; }
}

/* inputs */
.cf7-input,
.cf7-form input[type="text"],
.cf7-form input[type="email"],
.cf7-form input[type="tel"],
.cf7-form input[type="url"],
.cf7-form input[type="date"],
.cf7-form input[type="time"],
.cf7-form select,
.cf7-form textarea{
	width: 100%;
	box-sizing: border-box;
	border: 1px solid rgba(0,0,0,0.14);
	border-radius: 12px;
	padding: 12px 12px;
	background: #fff;
	color: var(--text1);
	font-size: var(--font-size1);
	line-height: var(--line-height);
}

.cf7-form textarea{ min-height: 160px; resize: vertical; }

.cf7-form input:focus,
.cf7-form select:focus,
.cf7-form textarea:focus{
	outline: 2px solid var(--light);
	border-color: var(--main1);
}

/* radio/checkbox */
.cf7-choice .wpcf7-list-item,
.cf7-accept .wpcf7-list-item{
	margin: 0 14px 8px 0;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.cf7-accept-text{ margin-left: 6px; }

/* =========================================================
   CF7 Schedule (希望日時) - redesigned
   既存の .cf7-schedule 周りはこれで置き換え
   ========================================================= */

/* 外枠：見やすいカード */
.cf7-schedule{
	border: 1px solid rgba(0,0,0,0.12);
	border-radius: 16px;
	padding: 14px;
	background: rgba(255,255,255,0.60);
}

/* 1候補 = 1行（カード風） */
.cf7-schedule__row{
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	padding: 12px;
	border-radius: 14px;
	background: #fff;
	border: 1px solid rgba(0,0,0,0.10);
}

/* 行間の余白 */
.cf7-schedule__row + .cf7-schedule__row{
	margin-top: 10px;
}

/* フォーカスした行を強調 */
.cf7-schedule__row:focus-within{
	border-color: var(--main1);
	box-shadow: 0 0 0 3px rgba(52,152,219,0.18); /* main1の近似 */
}

/* ラベル（第1候補など） */
.cf7-schedule__label{
	flex: 0 0 92px;
	font-family: var(--font1);
	font-weight: 700;
	color: var(--dark);
	line-height: 1.2;
}

/* CF7のラッパー(span)をレイアウト要素として扱う */
.cf7-schedule__row .wpcf7-form-control-wrap{
	flex: 1 1 220px;   /* 横幅があれば並ぶ / 狭ければ折り返す */
	min-width: 180px;
}

/* 入力（date / select）は行内で揃える */
.cf7-schedule__row .cf7-input,
.cf7-schedule__row input[type="date"],
.cf7-schedule__row select{
	width: 100%;
}

/* セレクトの見た目を少し整える（汎用） */
.cf7-schedule__row select{
	appearance: none;
	-webkit-appearance: none;
	background-image:
		linear-gradient(45deg, transparent 50%, rgba(0,0,0,0.55) 50%),
		linear-gradient(135deg, rgba(0,0,0,0.55) 50%, transparent 50%);
	background-position:
		calc(100% - 18px) 50%,
		calc(100% - 12px) 50%;
	background-size: 6px 6px, 6px 6px;
	background-repeat: no-repeat;
	padding-right: 36px;
}

/* モバイル：ラベルを上、入力を縦並びにして読みやすく */
@media (max-width: 560px){
	.cf7-schedule__label{
		flex: 0 0 100%;
		margin-bottom: 4px;
	}
	.cf7-schedule__row .wpcf7-form-control-wrap{
		flex: 1 1 100%;
		min-width: 0;
	}
}

/* submit */
.cf7-actions{ margin-top: 18px; }

.cf7-submit,
.cf7-form input[type="submit"]{
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	border: none;
	border-radius: 14px;
	padding: 14px 16px;
	background: var(--main1);
	color: #fff;
	font-weight: 800;
	cursor: pointer;
}

.cf7-submit:hover{ filter: brightness(0.95); }
.cf7-submit:disabled{ opacity: 0.6; cursor: not-allowed; }

/* CF7 messages */
.wpcf7 form .wpcf7-response-output{
	margin: 18px 0 0;
	border-radius: 14px;
	padding: 14px;
	border: 1px solid rgba(0,0,0,0.12);
	background: rgba(255,255,255,0.65);
}

.wpcf7-not-valid-tip{
	color: var(--main2);
	font-size: 13px;
	margin-top: 6px;
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output{
	border-color: rgba(230,126,34,0.5);
}

.wpcf7 form.sent .wpcf7-response-output{
	border-color: rgba(52,152,219,0.5);
}


/* =========================================================
   aic_posts (News/List) - Base
   - 変数は :root を利用
   ========================================================= */

.aic-posts{
  color: var(--text1);
  font-family: var(--font1);
  line-height: var(--line-height);
  letter-spacing: var(--letter-spacing);
}

.aic-posts__inner{
  max-width: var(--sec-width);
  margin: 0 auto;
  padding-inline: var(--smb);
}

/* items: デフォルトは縦積み（list） */
.aic-posts__items{
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

/* grid layout（colsは --aic-cols を使う） */
.aic-posts--grid .aic-posts__items{
  grid-template-columns: repeat(var(--aic-cols, 3), minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 860px){
  .aic-posts--grid .aic-posts__items{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px){
  .aic-posts__inner{ padding-inline: 16px; }
  .aic-posts--grid .aic-posts__items{
    grid-template-columns: 1fr;
  }
}

/* card/link baseline */
.aic-posts__item{ }
.aic-posts__link{
  display: block;
  color: inherit;
  text-decoration: none;
}

.aic-posts__link:focus-visible{
  outline: 2px solid var(--main2);
  outline-offset: 3px;
}

/* thumb baseline */
.aic-posts__thumb{
  margin: 0;
  overflow: hidden;
  border-radius: 12px;
  background: var(--scbg1);
}

.aic-posts__img{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* body baseline */
.aic-posts__body{
  display: grid;
  gap: 6px;
}

.aic-posts__title,
.aic-posts__excerpt{
  margin: 0;
}

.aic-posts__title{
  font-weight: 700;
}

.aic-posts__excerpt{
  opacity: 0.85;
}

.aic-posts__date{
  font-size: 13px;
  color: var(--dark);
  opacity: 0.85;
}

/* =========================================================
   Preset 1: Simple (no thumb, title + date only)
   variant="simple"
   ========================================================= */

.aic-posts--simple .aic-posts__item{
  border-bottom: 1px solid rgba(0,0,0,0.10);
}

.aic-posts--simple .aic-posts__link{
  padding: 12px 2px;
}

.aic-posts--simple .aic-posts__thumb{
  display: none; /* アイキャッチ非表示 */
}

.aic-posts--simple .aic-posts__excerpt{
  display: none; /* 抜粋非表示 */
}

/* タイトル左 / 日付右 の1行レイアウト */
.aic-posts--simple .aic-posts__body{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.aic-posts--simple .aic-posts__title{
  flex: 1 1 auto;
  min-width: 0;
  font-size: 16px;
  line-height: 1.35;
}

.aic-posts--simple .aic-posts__date{
  flex: 0 0 auto;
  white-space: nowrap;
	width: 8em;
}

/* hover */
.aic-posts--simple .aic-posts__link:hover .aic-posts__title{
  color: var(--main1);
}

/* =========================================================
   Preset 2: Media (thumb + horizontal)
   variant="media"
   ========================================================= */

.aic-posts--media .aic-posts__item{
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.aic-posts--media .aic-posts__link{
  display: flex;
  gap: 14px;
  padding: 12px;
}

/* サムネ左を固定幅に */
.aic-posts--media .aic-posts__thumb{
  flex: 0 0 160px;
  height: 110px;
  border-radius: 12px;
}

/* テキスト右 */
.aic-posts--media .aic-posts__body{
  flex: 1 1 auto;
  min-width: 0;
  align-content: start;
}

.aic-posts--media .aic-posts__title{
  font-size: 16px;
  line-height: 1.35;
}

.aic-posts--media .aic-posts__excerpt{
  font-size: 14px;
}

/* hover */
.aic-posts--media .aic-posts__link:hover .aic-posts__title{
  color: var(--main1);
}

/* モバイルは縦並びに */
@media (max-width: 560px){
  .aic-posts--media .aic-posts__link{
    flex-direction: column;
  }
  .aic-posts--media .aic-posts__thumb{
    flex: 0 0 auto;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }
}

/* =========================================================
   Utility (optional)
   class="" に追加して使える
   例: [aic_posts ... class="aic-posts--no-excerpt"]
   ========================================================= */

.aic-posts--no-excerpt .aic-posts__excerpt{ display: none; }
.aic-posts--no-thumb .aic-posts__thumb{ display: none; }

/* =========================================================
   Pagination (numbers / prevnext 共通)
   ========================================================= */

.aic-posts__pagination{
  margin-top: 18px;
  display: flex;
  justify-content: center;
}

/* paginate_links(type=list) は ul.page-numbers を返す */
.aic-posts__pagination .page-numbers{
  list-style: none;
  margin: 0;
  padding: 0;
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.aic-posts__pagination .page-numbers li{
  margin: 0;
  padding: 0;
}

.aic-posts__pagination .page-numbers a,
.aic-posts__pagination .page-numbers span{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.12);
  background: #fff;
  color: var(--text1);
  text-decoration: none;
}

.aic-posts__pagination .page-numbers a:hover{
  border-color: rgba(0,0,0,0.18);
  color: var(--main1);
}

.aic-posts__pagination .page-numbers .current{
  background: var(--main1);
  border-color: var(--main1);
  color: #fff;
}

/* prevnext モード（get_previous_posts_link / get_next_posts_link） */
.aic-posts__pager{
  display: inline-flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.aic-posts__pager a{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.12);
  background: #fff;
  color: var(--text1);
  text-decoration: none;
}

.aic-posts__pager a:hover{
  color: var(--main1);
}
/* =========================================================
   Heading Styles (H2想定) - Fujita Medical Univ. Dental
   変数はユーザー提示の :root を利用（--main1 / --main2 / --text1 等）
   ========================================================= */

/* =========================================================
   Heading Styles (H2想定) - Fujita Medical Univ. Dental
   変数はユーザー提示の :root を利用（--main1 / --main2 / --text1 等）
   ========================================================= */

/* 共通ベース */
.hdg{
  font-family: var(--font1, system-ui, -apple-system, "Segoe UI", sans-serif);
  color: var(--text1, #333);
  line-height: 1.35;
  letter-spacing: var(--letter-spacing, 0em);
  font-weight: 500;
font-size: clamp(31px, 2.2vw, 28px);
  margin: 0 0 16px;
	    font-family: 'Noto Serif JP';
}

/* 01) 左ボーダー（王道・信頼感） */
.hdg--01{
  padding-left: 14px;
  border-left: 4px solid var(--main1, #026eb7);
}

/* 02) 下線ショート＋グラデ（先進性） */
.hdg--02{
  position: relative;
  padding-bottom: 19px;
	   margin-bottom: 40px;
}
.hdg--02::after{
  content:"";
  position:absolute;
  left:0; bottom:0;
  width: 92px; height: 3px;
  background: linear-gradient(90deg, var(--main2, #03a19a), var(--main1, #026eb7));
  border-radius: 999px;
}
h2.hdg.hdg--02.center:after {
    margin: 0 auto;
    left: 0;
    right: 0;
}
h2.hdg.hdg--02.center {
    text-align: center;
}
/* 03) 上下ルール（端正・情報整理） */
.hdg--03{
  position: relative;
  padding: 10px 0;
  border-top: 1px solid #E5E5E5;
  border-bottom: 1px solid #E5E5E5;
}
.hdg--03::before{
  content:"";
  position:absolute;
  left:0; top:-1px;
  width: 56px; height: 1px;
  background: var(--main1, #026eb7);
}

/* 04) ドット＋リング（柔らかさ） */
.hdg--04{
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.hdg--04::before{
  content:"";
  width: 10px; height: 10px;
  border-radius: 999px;
  background: var(--main2, #03a19a);
  box-shadow: 0 0 0 4px rgba(3,161,154,.18);
}

/* 05) カード見出し（UI品質） */
.hdg--05{
  position: relative;
  padding: 14px 16px 12px;
  border: 1px solid #E5E5E5;
  border-radius: 14px;
  background: #fff;
}
.hdg--05::before{
  content:"";
  position:absolute;
  left: 12px; right: 12px; top: 10px;
  height: 3px;
  background: linear-gradient(90deg, var(--main2, #03a19a), var(--main1, #026eb7));
  border-radius: 999px;
}

/* 06) 二重ライン（学術寄り・堅め） */
.hdg--06{
  position: relative;
  padding-left: 18px;
}
.hdg--06::before,
.hdg--06::after{
  content:"";
  position:absolute;
  left:0;
  top: 0.2em;
  height: 1.1em;
  width: 2px;
  border-radius: 2px;
}
.hdg--06::before{ background: var(--main1, #026eb7); }
.hdg--06::after{ left:6px; background: rgba(2,110,183,.22); }

/* 07) ルーラー（セクション感） */
.hdg--07{
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--main1, #026eb7);
}
.hdg--07::after{
  content:"";
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, rgba(2,110,183,.25), #E5E5E5);
}

/* 08) 下線＋左端アクセント角（きっちり感） */
.hdg--08{
  position: relative;
  padding: 0 0 10px 12px;
  border-bottom: 1px solid #E5E5E5;
}
.hdg--08::before{
  content:"";
  position:absolute;
  left:0; bottom:-1px;
  width: 10px; height: 10px;
  border-left: 3px solid var(--main1, #026eb7);
  border-bottom: 3px solid var(--main1, #026eb7);
  border-radius: 0 0 0 2px;
}

/* 09) ラベルチップ付き（カテゴリ明確化） */
.hdg--09{
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
}
.hdg__label{
  font-size: 12px;
  letter-spacing: .08em;
  color: #fff;
  background: var(--main1, #026eb7);
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 700;
}

/* 10) 左にバッジ（導線見出しにも） */
.hdg--10{
  position: relative;
  padding-left: 44px;
}
.hdg--10::before{
  content:"";
  position:absolute;
  left:0; top: 0.08em;
  width: 30px; height: 30px;
  border-radius: 10px;
  background: rgba(2,110,183,.12);
  border: 1px solid rgba(2,110,183,.25);
}
.hdg--10::after{
  content:"";
  position:absolute;
  left: 10px; top: 0.56em;
  width: 10px; height: 10px;
  border-radius: 999px;
  background: var(--main2, #03a19a);
}

.mb30 {
    margin-bottom: 30px;
}
.mb40 {
    margin-bottom: 40px;
}




/* role指定（今後もこれを使い回し） */
.btn[data-role="patient"]{ --btn-grad: var(--grad-patient); }
.btn[data-role="provider"]{ --btn-grad: var(--grad-provider); }

/* base */
.btn {
	    background: linear-gradient(-100deg, #026eb8 0%, #6eb3ea 100%);
    max-width: 100%;
    margin: 0 auto;
    display: block;
    align-items: center;
    width: 350px;
    padding: 14px 16px;
    font-family: var(--font1, system-ui);
    font-weight: 700;
    font-size: 16px;
    line-height: 1;
    text-align: center;
    letter-spacing: var(--letter-spacing, 0em);
    text-decoration: none;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease, background-color .18s ease, color .18s ease;
}

.btn:focus-visible{
  outline: 3px solid rgba(2,110,183,.25);
  outline-offset: 3px;
}

.news-tabs__tab.kanja{background:var(--grad-patient)}
.news-tabs__tab.iryo{background:var(--grad-provider)}


@media (prefers-reduced-motion: reduce){
  .btn{ transition: none; }
  .btn::before, .btn::after{ transition: none; animation: none; }
}
.btn--A{
  position: relative;
  color: #fff;

  overflow: hidden;
}

/* sheen */
.btn--A::before{
  content:"";
  position: absolute;
  top: -60%;
  left: -40%;
  width: 60%;
  height: 220%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent);
  transform: rotate(20deg) translateX(-120%);
  transition: transform 1s ease;
  pointer-events: none;
}




.btn--A:hover{
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(0,0,0,.16);
  filter: brightness(1.02);
}

.btn--A:hover::before{
  transform: rotate(20deg) translateX(220%);
}

/* 変数（サイトのrootを活用） */
:root{
  --mv-grad: linear-gradient(-100deg, #00c8b3 0%, #00a1b4 100%);
}

/* キャッチの可読性：白文字＋控えめシャドウ */
#mainv p.cc,
#mainv p.cc2{
  color: #fff;
  text-shadow: 0 10px 30px rgba(2,110,183,.25);
}


/* 左側に薄いグラデ帯（写真が明るい時の保険） */
#mainv.mv-deco-01{ position: relative; }
#mainv.mv-deco-01::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background: linear-gradient(90deg, rgba(2,110,183,.42) 0%, rgba(2,110,183,.20) 28%, rgba(2,110,183,0) 60%);
  z-index: 1;
}
#mainv.mv-deco-01 .inner{ position: relative; z-index: 2; }

/* 見出し一式 */
#mainv.mv-deco-01 p.cc,
#mainv.mv-deco-01 p.cc2{
  position: relative;
  padding-left: 18px;
  margin-left: 0;
}



/* =========================================================
   Residency section (full-width background + panel + 2 cards)
   ========================================================= */

/* 研修医＝医療関係者向けグラデ（指定） */
:root{
  --grad-provider: linear-gradient(-100deg, #00c8b3 0%, #00a1b4 100%);
}

/* セクション全体（背景は疑似要素で作る） */
.residency{
  position: relative;
  padding: clamp(34px, 5vw, 64px) 0;
  overflow: hidden;
  isolation: isolate;
}

/* 背景画像（仮）＋ぼかし */

/* 背景の上に薄いトーン（読みやすさ） */
.residency::after{
  content:"";
  position:absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,.55) 0%, rgba(255,255,255,.35) 45%, rgba(255,255,255,.20) 100%),
    linear-gradient(to bottom, rgba(0,0,0,.06), rgba(0,0,0,.10));
  z-index: 1;
}

/* 内側 */
.residency__inner{
  position: relative;
  z-index: 2;
  padding: 0 16px;
}

/* 中央の大きいパネル（添付画像の白い箱） */
.residency__panel{
  max-width: 1680px;            /* 画面いっぱい寄りに使う */
  margin: 0 auto;


  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 22px;
  padding: clamp(18px, 2.4vw, 26px);
}

section.residency {
    background: url(https://dentistryfujita-hu.jp/wp-content/uploads/2026/06/mainv2.jpg);
}


@media (max-width: 1100px){
  .residency__panel{
    grid-template-columns: 1fr;
  }
}

/* 左：見出し */
.residency__intro{
  padding: 6px 4px;
}

.residency__kicker{
  margin: 0 0 8px;
  font-family: var(--font1, system-ui);
  font-size: 13px;
  letter-spacing: .10em;
  color: rgba(51,51,51,.75);
  font-weight: 700;
}

.residency__title{
  margin: 0 0 10px;
  font-family: var(--font1, system-ui);
  font-size: clamp(22px, 2.6vw, 34px);
  line-height: 1.2;
  color: var(--text1, #333);
  font-weight: 800;
  position: relative;
  padding-bottom: 10px;
}

.residency__title::after{
  content:"";
  position:absolute;
  left:0; bottom:0;
  width: 96px;
  height: 3px;
  border-radius: 999px;
  background: var(--grad-provider);
}

.residency__introtext {
    margin: 0;
    font-family: var(--font1, system-ui);
    color: #333;
    line-height: 1.8;
    font-size: 16px;
    max-width: 34ch;
}

@media (max-width: 1100px){
  .residency__introtext{ max-width: 70ch; }
}
/* 右：カード2枚 */
.residency__cards{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 18px);
  align-items: stretch;
}

@media (max-width: 820px){
  .residency__cards{
    grid-template-columns: 1fr;
  }
}

/* カード */
.res-card{
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #E5E5E5;
  box-shadow: 0 16px 40px rgba(0,0,0,.10);
  transition: transform .18s ease, box-shadow .18s ease;
}

.res-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 22px 54px rgba(0,0,0,.14);
}

.res-card__link{
  color: inherit;
  text-decoration: none;
  display: block;
}

/* 画像（横長） */
.res-card__media{
  position: relative;
  aspect-ratio: 16 / 9;
  background: #f3f3f3;
  overflow: hidden;
}

.res-card__media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
}

/* 画像上に薄いオーバーレイ（文字可読性） */
.res-card__media::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(to bottom, rgba(0,0,0,.20), rgba(0,0,0,0) 55%);
  pointer-events: none;
}

/* 縦ラベル（添付画像の雰囲気） */
.res-card__ribbon{
  position: absolute;
  top: 14px;
  right: 14px;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 10px;
  padding: 10px 8px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  color: #1a6f78;
  box-shadow: 0 18px 40px rgba(0,0,0,.12);
}

/* ボディ */
.res-card__body{
  padding: 16px 16px 18px;
}

.res-card__meta{
  margin: 0 0 6px;
  font-size: 12px;
  letter-spacing: .08em;
  color: rgba(51,51,51,.65);
  font-weight: 700;
}

.res-card__title {
    margin: 0 0 18px;
    font-size: 27px;
    line-height: 1.35;
    color: #047c87;
    font-weight: 600;
    letter-spacing: .02em;
}
h3.res-card__title span {
    display: block;
    font-size: 15px;
    color: #afafaf;
    font-weight: 500;
    margin-top: 4px;
}
.res-card__text{
    margin: 0 0 18px;   
  font-size: 14px;
  line-height: var(--line-height, 1.6);
  color: rgba(51,51,51,.88);
}

/* CTA（カード内ボタン風） */
.res-card__cta{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--grad-provider);
  color: #fff;
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: .02em;
  box-shadow: 0 12px 26px rgba(0,0,0,.12);
  transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}

.res-card__ctaIcon{
  width: 28px;
  height: 28px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.18);
  font-weight: 900;
}

.res-card:hover .res-card__cta{
  transform: translateY(-1px);
  filter: brightness(1.02);
  box-shadow: 0 16px 34px rgba(0,0,0,.14);
}

/* フォーカス */
.res-card__link:focus-visible{
  outline: 3px solid rgba(0,161,180,.35);
  outline-offset: 4px;
  border-radius: 16px;
}

/* 動きを減らす */
@media (prefers-reduced-motion: reduce){
  .res-card, .res-card__cta{ transition: none; }
}



  /* Patient gradient (required) */

  /* Section */
  .patient-two{
    padding: clamp(26px, 4vw, 48px) 0;

	      background: linear-gradient(-100deg, #ed6c1526 0%, #eda11514 100%);
  }

  .patient-two__inner{
    max-width: 1400px; /* required wide */
    margin: 0 auto;
    padding: 0 16px;
  }

  .patient-two__head{
margin-bottom: 45px;
  }

  .patient-two__lead{
    margin: 10px 0 0;
    color: var(--text1, #333);
    line-height: var(--line-height, 1.6);
    font-size: 15px;
    max-width: 80ch;
  }

  /* emphasize the key phrase without being flashy */
  .patient-two__lead strong{
    font-weight: 800;
    background: linear-gradient(to bottom, transparent 62%, rgba(237,108,21,.18) 62%);
  }

  /* 2-block layout */
  .patient-two__grid{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(14px, 2vw, 20px);
    align-items: start;
  }

  @media (max-width: 980px){
    .patient-two__grid{ grid-template-columns: 1fr; }
  }

  /* Block base (not a "card": no heavy shadow, subtle border only) */
  .pblock{
    border: 1px solid #E5E5E5;
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
  }

  /* Media */
  .pblock__media{
    position: relative;
    aspect-ratio: 16 / 9;
    background: #f3f3f3;
    overflow: hidden;
  }

  .pblock__media img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.02);
  }

  /* overlay to ensure badge readability */
  .pblock__media::after{
    content:"";
    position:absolute;
    inset:0;
    background: linear-gradient(to bottom, rgba(0,0,0,.25), rgba(0,0,0,0) 55%);
    pointer-events:none;
  }

  /* Badge with patient gradient */
  .pblock__badge{
    position: absolute;
    left: 14px;
    top: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.92);
    border: 1px solid rgba(255,255,255,.70);
    box-shadow: 0 16px 34px rgba(0,0,0,.14);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .02em;
    color: rgba(51,51,51,.92);
  }
  .pblock__badge::before{
    content:"";
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--grad-patient);
  }

  /* Body */
  .pblock__body{
    padding: 16px 18px 18px;
  }

.pblock__title {
    margin: 0 0 18px;
    font-size: 27px;
    line-height: 1.35;
    color: #ed7314;
    font-weight: 600;
    letter-spacing: .02em;
}

  /* short accent underline */


  .pblock__text{
    margin: 0 0 18px;
    font-size: 14px;
    line-height: var(--line-height, 1.6);
    color: rgba(51,51,51,.88);
  }

  .pblock__actions{
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
  }

  /* Patient button hook (in case btn--A is defined elsewhere) */
  .btn.kanja{
    /* If your existing btn--A already sets background, remove these.
       Keeping minimal only: */
    --btn-grad: var(--grad-patient);
  }
  .btn.btn--A.kanja{
    background: var(--grad-patient);
    color: #fff;
  }
.pblock__title span {
    display: block;
    font-size: 15px;
    color: #afafaf;
    font-weight: 500;
    margin-top: 4px;
}




/* =========================================================
   Content Page（コンテンツページ共通）
   ========================================================= */

.content-body{
	max-width: var(--sec-narrow-width);
	margin: 0 auto;
	font-size: 15px;
	line-height: 1.85;
	color: var(--text1);
}
.content-body p{
	margin: 0 0 1.4em;
}
.content-body p:last-child{
	margin-bottom: 0;
}

/* コンテンツ内 h3（左ボーダー） */
.content-body h3{
	font-size: 20px;
	font-weight: 700;
	margin: 2.2em 0 0.8em;
	padding-left: 14px;
	border-left: 4px solid var(--main1);
	line-height: 1.4;
	color: var(--text1);
}
.content-body h3:first-child{
	margin-top: 0;
}

/* コンテンツ内 h4 */
.content-body h4{
	font-size: 17px;
	font-weight: 700;
	margin: 1.8em 0 0.6em;
	color: var(--text1);
}

/* リード文（冒頭の強調テキスト） */
.content-lead{
	font-size: 16px;
	font-weight: 600;
	color: var(--main1);
	margin-bottom: 1.6em;
	line-height: 1.7;
}


/* =========================================================
   Stats Table（診療実績テーブル）
   ========================================================= */

.stats-table{
	width: 100%;
	border-collapse: collapse;
	margin: 0 0 1.8em;
	font-size: 15px;
}
.stats-table caption{
	text-align: left;
	font-weight: 700;
	font-size: 16px;
	padding: 0 0 8px;
	color: var(--text1);
}
.stats-table th,
.stats-table td{
	padding: 10px 14px;
	border-bottom: 1px solid rgba(0,0,0,0.10);
	text-align: left;
	vertical-align: top;
}
.stats-table thead th{
	font-weight: 700;
	background: var(--main1);
	color: #fff;
	border-bottom: none;
}
.stats-table tbody tr:nth-child(even){
	background: var(--scbg1);
}
.stats-table td:last-child{
	text-align: right;
	white-space: nowrap;
}
.stats-table tfoot td{
	font-weight: 700;
	border-top: 2px solid var(--main1);
	border-bottom: none;
}


/* =========================================================
   Info Box（案内情報ボックス）
   ========================================================= */

.info-box{
	border: 1px solid rgba(0,0,0,0.10);
	border-radius: 14px;
	padding: 20px 22px;
	margin: 0 0 1.4em;
	background: #fff;
}
.info-box__title{
	font-size: 17px;
	font-weight: 700;
	margin: 0 0 10px;
	color: var(--main1);
	display: flex;
	align-items: center;
	gap: 8px;
}
.info-box__title i{
	font-size: 20px;
}
.info-box p{
	margin: 0 0 0.8em;
	font-size: 15px;
	line-height: 1.75;
}
.info-box p:last-child{
	margin-bottom: 0;
}

/* 注意ボックス */
.info-box--notice{
	border-color: rgba(211,89,89,0.25);
	background: rgba(211,89,89,0.03);
}
.info-box--notice .info-box__title{
	color: #d35959;
}

/* 電話番号リンク */
.tel-link{
	color: var(--main1);
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}
.tel-link:hover{
	text-decoration: underline;
}

/* セクション区切り線 */
.content-divider{
	border: none;
	border-top: 1px solid rgba(0,0,0,0.08);
	margin: 2em 0;
}


/* =========================================================
   Figure（画像 + キャプション）
   ========================================================= */

.fig{
	margin: 1.6em 0;
}
.fig img{
	display: block;
	width: 100%;
	height: auto;
	border-radius: 10px;
	border: 1px solid rgba(0,0,0,0.08);
}
.fig figcaption{
	margin-top: 8px;
	font-size: 13px;
	color: var(--dark);
	line-height: 1.5;
}

/* 幅制限（フロー図など横長画像向け） */
.fig--wide{
	max-width: 100%;
}
.fig--narrow{
	max-width: 480px;
}

/* 2列グリッド（術前術後比較など） */
.fig-grid{
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
	margin: 1.6em 0;
}
.fig-grid .fig{
	margin: 0;
}
@media (max-width: 560px){
	.fig-grid{
		grid-template-columns: 1fr;
	}
}

/* 4列グリッド（小さめの画像群） */
.fig-grid--4{
	grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 860px){
	.fig-grid--4{
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* 3列グリッド */
.fig-grid--3{
	grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 680px){
	.fig-grid--3{
		grid-template-columns: 1fr;
	}
}

/* 画像＋ラベル付き比較 */
.fig-compare{
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
	margin: 1.6em 0;
}
.fig-compare__item{
	text-align: center;
}
.fig-compare__item img{
	display: block;
	width: 100%;
	height: auto;
	border-radius: 10px;
	border: 1px solid rgba(0,0,0,0.08);
}
.fig-compare__label{
	display: inline-block;
	margin-top: 6px;
	font-size: 13px;
	font-weight: 700;
	color: var(--main1);
	background: var(--scbg1);
	padding: 2px 12px;
	border-radius: 999px;
}
@media (max-width: 560px){
	.fig-compare{
		grid-template-columns: 1fr;
	}
}


/* =========================================================
   Step Flow（治療の流れ・ステップ表示）
   ========================================================= */

.step-flow{
	display: grid;
	gap: 0;
	margin: 1.6em 0;
	counter-reset: step;
}
.step-flow__item{
	display: grid;
	grid-template-columns: 48px 1fr;
	gap: 14px;
	padding: 16px 0;
	border-bottom: 1px solid rgba(0,0,0,0.06);
	position: relative;
}
.step-flow__item:last-child{
	border-bottom: none;
}
.step-flow__num{
	counter-increment: step;
	width: 40px;
	height: 40px;
	border-radius: 12px;
	background: var(--main1);
	color: #fff;
	display: grid;
	place-items: center;
	font-weight: 800;
	font-size: 15px;
	line-height: 1;
	flex-shrink: 0;
}
.step-flow__num::after{
	content: counter(step);
}
.step-flow__body h4{
	margin: 0 0 4px;
	font-size: 16px;
	font-weight: 700;
	color: var(--text1);
}
.step-flow__body p{
	margin: 0;
	font-size: 14px;
	line-height: 1.7;
	color: rgba(51,51,51,0.85);
}

/* 特色カード（MRONJなど 横並びアイテム） */
.feature-card{
	border: 1px solid rgba(0,0,0,0.10);
	border-radius: 14px;
	overflow: hidden;
	background: #fff;
	margin: 1.2em 0;
}
.feature-card__media{
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--scbg1);
}
.feature-card__media img{
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.feature-card__body{
	padding: 16px 18px;
}
.feature-card__title{
	margin: 0 0 6px;
	font-size: 16px;
	font-weight: 700;
	color: var(--main1);
}
.feature-card__text{
	margin: 0;
	font-size: 14px;
	line-height: 1.7;
	color: var(--text1);
}

/* 特色カード 2列 */
.feature-grid{
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	margin: 1.6em 0;
}
@media (max-width: 680px){
	.feature-grid{
		grid-template-columns: 1fr;
	}
}

/* =========================================================
   Patient (kanja) Section Theme Override
   ========================================================= */

section.kanja-section {
	--main1: #ed6c15;
}


/* =========================================================
   Publication List（論文・発表リスト）
   ========================================================= */

.pub-list{
	list-style: none;
	padding: 0;
	margin: 1em 0 1.6em;
}
.pub-list li{
	padding: 10px 0 10px 16px;
	border-left: 3px solid rgba(0,0,0,0.08);
	margin-bottom: 8px;
	font-size: 13px;
	line-height: 1.65;
	color: var(--dark);
}


/* =========================================================
   Staff Grid（スタッフ紹介カード）
   ========================================================= */

.staff-grid{
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: 16px;
	margin: 1.6em 0;
}
.staff-card{
	border: 1px solid rgba(0,0,0,0.10);
	border-radius: 14px;
	padding: 20px 22px;
	background: #fff;
}
.staff-card__position{
	font-size: 13px;
	font-weight: 700;
	color: var(--main1);
	margin: 0 0 4px;
}
.staff-card__name{
	font-size: 20px;
	font-weight: 700;
	margin: 0 0 10px;
	color: var(--text1);
}
.staff-card__label{
	font-size: 12px;
	font-weight: 700;
	color: var(--dark);
	margin: 6px 0 2px;
}
.staff-card__text{
	font-size: 13px;
	line-height: 1.65;
	color: var(--dark);
	margin: 0;
}


/* =========================================================
   Staff Table（歯科衛生士リスト）
   ========================================================= */

.staff-table{
	width: 100%;
	border-collapse: collapse;
	margin: 1.6em 0;
	font-size: 14px;
}
.staff-table th,
.staff-table td{
	padding: 10px 14px;
	border-bottom: 1px solid rgba(0,0,0,0.08);
	text-align: left;
	vertical-align: top;
}
.staff-table th{
	font-weight: 700;
	white-space: nowrap;
	color: var(--text1);
}
.staff-table td{
	color: var(--dark);
	font-size: 13px;
	line-height: 1.6;
}

/* =========================================================
  個別投稿（single-post）
========================================================= */
article.single-post { padding: var(--sec-pad) 0; }
.single-post__inner {
width: 800px;
	margin: 0 auto;
	max-width: 90%;
}
.single-post__meta {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 16px;
}
.single-post__date {
	font-size: 14px;
	color: #888;
}
.single-post__cats {
	display: flex;
	gap: 6px;
}
.single-post__cat {
	display: inline-block;
	font-size: 12px;
	padding: 2px 10px;
	border-radius: 999px;
	background: var(--scbg1);
	color: var(--main1);
	font-weight: 600;
}
.single-post__title {
	font-family: var(--font2);
	font-size: 28px;
	font-weight: 600;
	line-height: 1.5;
	margin: 0 0 24px;
}
.single-post__thumb {
	margin: 0 0 32px;
}
.single-post__thumb-img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 8px;
}
.single-post__content {
	line-height: var(--line-height);
}
.single-post__content h2 {
	font-family: var(--font2);
	font-size: 22px;
	font-weight: 600;
	margin: 40px 0 16px;
	padding-bottom: 10px;
	border-bottom: 2px solid var(--main1);
}
.single-post__content h3 {
	font-family: var(--font2);
	font-size: 18px;
	font-weight: 600;
	margin: 32px 0 12px;
	padding-left: 12px;
	border-left: 3px solid var(--main1);
}
.single-post__content p {
	margin: 0 0 16px;
}
.single-post__content img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
}
.single-post__content ul,
.single-post__content ol {
	margin: 0 0 16px;
	padding-left: 1.5em;
}
.single-post__content blockquote {
	margin: 24px 0;
	padding: 16px 20px;
	border-left: 4px solid var(--main1);
	background: var(--scbg1);
	border-radius: 0 8px 8px 0;
}

/* 前後ナビ */
.single-post__nav {
	background: var(--scbg1);
	padding: 32px 0;
}
.single-post__nav-links {
	display: flex;
	justify-content: space-between;
	gap: 20px;
}
.single-post__nav-link {
	display: block;
	text-decoration: none;
	color: var(--text1);
	max-width: 48%;
}
.single-post__nav-link:hover .single-post__nav-title {
	color: var(--main1);
}
.single-post__nav-link--next {
	margin-left: auto;
	text-align: right;
}
.single-post__nav-label {
	display: block;
	font-size: 13px;
	color: #888;
	margin-bottom: 4px;
}
.single-post__nav-title {
	font-size: 15px;
	line-height: 1.5;
	transition: color 0.15s ease;
}

@media (max-width: 680px) {
	.single-post__title {
		font-size: 22px;
	}
	.single-post__nav-links {
		flex-direction: column;
	}
	.single-post__nav-link {
		max-width: 100%;
	}
	.single-post__nav-link--next {
		text-align: left;
	}
}



@media (max-width: 1480px){
	.site-header__logo-img {

    height: 40px;
}
.site-header__link {
        padding: 14px 7px;
        font-size: 14px;
}
	.site-header__link.cta {
    padding: 26px 12px;
}
}



@media (max-width: 1480px){
.role-card__text {
    height: unset;
}
}




/* ============================================================
   論文業績リスト（research ページ）
   ============================================================ */
.paper-list {
    padding-left: 0;
    list-style: none;
    counter-reset: paper;
}
.paper-list__item {
    counter-increment: paper;
    padding: 18px 0 18px 3em;
    border-top: 1px solid #e6e6e6;
    position: relative;
}
.paper-list__item:last-child {
    border-bottom: 1px solid #e6e6e6;
}
.paper-list__item::before {
    content: counter(paper) ".";
    position: absolute;
    left: 0;
    top: 18px;
    width: 2.5em;
    text-align: right;
    font-weight: 700;
    color: var(--main1);
}
.paper-list__title {
    font-weight: 700;
    margin: 0 0 6px;
    line-height: 1.5;
}
.paper-list__authors {
    font-size: 0.92em;
    color: var(--dark);
    margin: 0 0 4px;
    line-height: 1.6;
}
.paper-list__cite {
    font-size: 0.88em;
    color: #666;
    margin: 0;
}
.paper-list__cite a {
    color: var(--main1);
    text-decoration: underline;
    word-break: break-all;
}

/* ============================================================
   アーカイブ／検索／404 — テーマ既定テンプレ用ルール
   （旧テーマは Tailwind 経由だったため、現テーマ移行に伴い追加）
   ============================================================ */
/* =========================================================
  アーカイブ
========================================================= */
.archive-page {
	max-width: 800px;
	margin: 0 auto;
	padding: 40px var(--smb) 60px;
}

.archive-page__header {
	margin-bottom: 40px;
	text-align: center;
}

.archive-page__title {
	font-family: var(--font2);
	font-size: 28px;
	font-weight: 600;
	color: var(--text1);
}

/* WP の「アーカイブ: 〇〇」自動タイトルを全アーカイブで非表示（ページヒーローで見出しを出すため重複回避） */
.archive-page__title {
	display: none;
}

.archive-page__desc {
	margin-top: 12px;
	color: #666;
}

.archive-page__list {
	display: grid;
	gap: 24px;
}

.archive-page__item {
	border-bottom: 1px solid #eee;
	padding-bottom: 24px;
	display: flex;
	gap: 20px;
	align-items: flex-start;
}

.archive-page__thumb {
	flex: 0 0 180px;
	height: 120px;
	border-radius: 8px;
	overflow: hidden;
	background: var(--scbg1);
}

.archive-page__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}

.archive-page__thumb:hover img {
	transform: scale(1.05);
}

.archive-page__body {
	flex: 1;
	min-width: 0;
}

.archive-page__date {
	font-size: 13px;
	color: #999;
	margin-bottom: 8px;
}

.archive-page__item-title {
	font-size: 18px;
	font-weight: 700;
	color: var(--text1);
	line-height: 1.4;
	margin-bottom: 8px;
}

.archive-page__item-title a {
	color: inherit;
	text-decoration: none;
}

.archive-page__item-title a:hover {
	color: var(--main1);
}

.archive-page__excerpt {
	font-size: 14px;
	color: #666;
	line-height: 1.6;
}

.archive-page__pagination {
	margin-top: 40px;
	display: flex;
	justify-content: center;
}

.archive-page__pagination .page-numbers {
	list-style: none;
	margin: 0;
	padding: 0;
	display: inline-flex;
	gap: 8px;
}

.archive-page__pagination .page-numbers a,
.archive-page__pagination .page-numbers span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding: 0 12px;
	border-radius: 999px;
	border: 1px solid rgba(0,0,0,0.12);
	background: #fff;
	color: var(--text1);
	text-decoration: none;
}

.archive-page__pagination .page-numbers a:hover {
	border-color: rgba(0,0,0,0.18);
	color: var(--main1);
}

.archive-page__pagination .page-numbers .current {
	background: var(--main1);
	border-color: var(--main1);
	color: #fff;
}

.archive-page__empty {
	text-align: center;
	color: #999;
	padding: 40px 0;
}

@media (max-width: 680px) {
	.archive-page__item {
		flex-direction: column;
	}
	.archive-page__thumb {
		flex: 0 0 auto;
		width: 100%;
		height: auto;
		aspect-ratio: 16 / 9;
	}
}

/* =========================================================
  カテゴリバッジ（アーカイブ・検索共通）
========================================================= */
.archive-page__cats {
	display: flex;
	gap: 6px;
	margin-bottom: 4px;
}
.archive-page__cat {
	display: inline-block;
	font-size: 11px;
	padding: 2px 10px;
	border-radius: 999px;
	background: var(--scbg1);
	color: var(--main1);
	font-weight: 600;
}

/* =========================================================
  404ページ
========================================================= */
.error-404 {
	padding: var(--sec-pad) 0;
	text-align: center;
}
.error-404__inner {
	width: var(--sec-width);
	max-width: 90%;
	margin: 0 auto;
}
.error-404__code {
	font-family: var(--font3);
	font-size: 120px;
	font-weight: 700;
	line-height: 1;
	color: var(--main1);
	opacity: 0.2;
	margin: 0 0 8px;
}
.error-404__heading {
	font-family: var(--font2);
	font-size: 22px;
	font-weight: 600;
	margin: 0 0 20px;
}
.error-404__text {
	line-height: var(--line-height);
	color: #666;
	margin: 0 0 32px;
}
.error-404__btn {
	display: inline-block;
}

@media (max-width: 680px) {
	.error-404__code {
		font-size: 80px;
	}
	.error-404__heading {
		font-size: 18px;
	}
}

/* =========================================================
  検索結果ページ
========================================================= */
.search-results {
	padding: var(--sec-pad) 0;
}
.search-results__inner {
	width: var(--sec-width);
	max-width: 90%;
	margin: 0 auto;
}
.search-results__header {
	margin-bottom: 32px;
}
.search-results__query {
	font-family: var(--font2);
	font-size: 18px;
	font-weight: 600;
	margin: 0;
}
.search-results__count {
	font-size: 14px;
	font-weight: 400;
	color: #888;
}
.search-results__list {
	margin-bottom: 40px;
}
.search-results__empty {
	text-align: center;
	padding: 40px 0;
}
.search-results__empty-text {
	font-size: 16px;
	margin: 0 0 12px;
}
.search-results__empty-hint {
	color: #888;
	margin: 0 0 32px;
}
.search-results__btn {
	display: inline-block;
}

/* =========================================================
   Fragment anchor offset (固定ヘッダーで埋もれる対策)
   ========================================================= */
:target {
	padding-top: 90px;
	margin-top: -90px;
}

