/* ============ Design Tokens ============ */
:root {
  /* Color — Figma抽出 */
  --color-primary: #a3d13f;
  --color-primary-light: #daedb2;
  --color-primary-pale: #c3e180;
  --color-accent: #ffa732;
  --color-accent-light: #ffdeb1;
  --color-accent-dark: #F18900;
  --color-sky: #a3def8;
  --color-sky-light: #def1fb;
  --color-line: #06c755;
  --color-text: #675855;
  --color-text-dark: #404040;
  --color-text-muted: #7d7d7d;
  --color-bg: #ffffff;
  --color-bg-gray: #f5f5f5;
  --color-footer-blue: #80d0f3;
  --color-footer-pink: #f8a3be;

  /* Typography */
  --font-base: 'Zen Kaku Gothic Antique', sans-serif;
  --font-en: 'Montserrat', sans-serif;

  /* Font Size */
  --text-xs: 0.75rem;
  /* 12px */
  --text-sm: 0.875rem;
  /* 14px */
  --text-base: 1rem;
  /* 16px */
  --text-lg: 1.125rem;
  /* 18px */
  --text-xl: 1.25rem;
  /* 20px */
  --text-2xl: 1.5rem;
  /* 24px */
  --text-3xl: 1.875rem;
  /* 30px */
  --text-4xl: 2.25rem;
  /* 36px */
  --text-5xl: 3rem;
  /* 48px */

  /* Spacing */
  --space-xs: 0.25rem;
  /* 4px */
  --space-sm: 0.5rem;
  /* 8px */
  --space-md: 1rem;
  /* 16px */
  --space-lg: 1.5rem;
  /* 24px */
  --space-xl: 2rem;
  /* 32px */
  --space-2xl: 3rem;
  /* 48px */
  --space-3xl: 4rem;
  /* 64px */
  --space-4xl: 6rem;
  /* 96px */

  /* Layout */
  --container-max: calc(1240px + var(--container-padding)*2);
  --container-w1280: calc(1280px + var(--container-padding)*2);
  --container-w1000: calc(1000px + var(--container-padding)*2);
  --container-padding: 20px;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  /* Transition */
  --transition-base: 0.2s ease;
  --transition-slow: 0.4s ease;
}

/* ============ Device ============ */
@media (min-width: 960px) {
  .is-hidden_pc {
    display: none !important;
  }
}

@media (min-width: 600px) and (max-width: 959px) {
  .is-hidden_tb {
    display: none !important;
  }
}

@media (max-width: 599px) {
  .is-hidden_sp {
    display: none !important;
  }
}

/* ============ Base ============ */
html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body {
  font-family: var(--font-base);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.8;
  letter-spacing: 0.05em;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: opacity var(--transition-base);
}

a img {
  transition: opacity var(--transition-base);
}

a:hover,
a:hover img {
  opacity: 0.7;
}

a:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}


@media (max-width: 959px) {
  body {
    font-size: 14px;
  }
}

/* ============ Color Utility ============ */
.u-color__accent {
  color: var(--color-accent);
}

.u-color__primary {
  color: var(--color-primary);
}

.u-color__blue {
  color: var(--color-footer-blue);
}

.u-color__pink {
  color: var(--color-footer-pink);
}

/* ============ Margin Utility ============ */
.u-mt20 {
  margin-block-start: 20px;
}

/* ============ Layout Utilities ============ */
.l-wrap,
.body_wrap {
  position: relative;
  z-index: 0;
}

.l-container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-padding);
}

.l-container--w1280 {
  max-width: var(--container-w1280);
}

.l-container--w1000 {
  max-width: var(--container-w1000);
}

.l-main {
  overflow-x: clip;
}

@media (max-width: 959px) {
  .l-container {
    max-width: 600px;
  }
}

/* ============ Shared Section Header ============ */
.p-section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

/* ============ Components: Title ============ */
.c-title__primary {
  font-family: "Kaisei Opti", serif;
  font-size: 56px !important;
  text-align: center;
  letter-spacing: 0.1em;
  line-height: 1.4;
  margin-block-end: 80px;
  position: relative;
}

.c-title__primary--vertical {
  margin-block-end: 0;
}

.c-title__primary--small {
  font-size: 36px !important;
  margin-block-end: 60px;
}

@media (min-width: 960px) {
  .c-title__primary--vertical {
    text-align: left;
    -ms-writing-mode: tb-rl;
    writing-mode: vertical-rl;
  }
}

@media (max-width: 959px) {
  .c-title__primary {
    font-size: 26px !important;
    margin-block-end: 40px;
  }
}

/* ============ Components: Button ============ */
.c-link {
  color: var(--color-accent);
  text-decoration: underline;
}

.c-link:hover {
  text-decoration: none;
}

.c-btn:not(.swell-block-button),
.swell-block-button.c-btn a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.75em 2em;
  font-family: var(--font-base);
  font-weight: 700;
  border: 2px solid transparent;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: background-color var(--transition-base), color var(--transition-base), border-color var(--transition-base), opacity var(--transition-base);
  text-align: center;
  position: relative;
}

.c-btn:not(.swell-block-button)::after,
.swell-block-button.c-btn a::after {
  content: "";
  background: url(../img/icon/arrow_l.svg) no-repeat center / contain;
  height: 10px;
  width: auto;
  aspect-ratio: 1;
}

.c-btn--accent:not(.swell-block-button),
.swell-block-button.c-btn--accent a {
  background-color: var(--color-accent);
  color: var(--color-bg);
  border: 2px solid var(--color-accent);
}

.c-btn--accent:not(.swell-block-button)::after,
.swell-block-button.c-btn--accent a::after {
  mask: url(../img/icon/arrow_l.svg) no-repeat center / contain;
  background: #fff;
}

.c-btn--accent:not(.swell-block-button):hover,
.swell-block-button.c-btn--accent a:hover {
  opacity: 0.8;
}

.c-btn--primary:not(.swell-block-button),
.swell-block-button.c-btn--primary a {
  background-color: var(--color-primary);
  color: var(--color-bg);
  border: 2px solid var(--color-primary);
}

.c-btn--primary:not(.swell-block-button)::after,
.swell-block-button.c-btn--primary a::after {
  mask: url(../img/icon/arrow_l.svg) no-repeat center / contain;
  background: #fff;
}

.c-btn--primary:not(.swell-block-button):hover,
.swell-block-button.c-btn--primary a:hover {
  opacity: 0.8;
}

.c-btn--blue:not(.swell-block-button),
.swell-block-button.c-btn--blue a {
  background-color: var(--color-footer-blue);
  color: var(--color-bg);
  border: 2px solid var(--color-footer-blue);
}

.c-btn--blue:not(.swell-block-button)::after,
.swell-block-button.c-btn--blue a::after {
  mask: url(../img/icon/arrow_l.svg) no-repeat center / contain;
  background: #fff;
}

.c-btn--blue:not(.swell-block-button):hover,
.swell-block-button.c-btn--blue a:hover {
  opacity: 0.8;
}

.c-btn--pink:not(.swell-block-button),
.swell-block-button.c-btn--pink a {
  background-color: var(--color-footer-pink);
  color: var(--color-bg);
  border: 2px solid var(--color-footer-pink);
}

.c-btn--pink:not(.swell-block-button)::after,
.swell-block-button.c-btn--pink a::after {
  mask: url(../img/icon/arrow_l.svg) no-repeat center / contain;
  background: #fff;
}

.c-btn--pink:not(.swell-block-button):hover,
.swell-block-button.c-btn--pink a:hover {
  opacity: 0.8;
}

.c-btn--outline {
  background-color: transparent;
  color: var(--color-text);
  border: 2px solid var(--color-text);
}

.c-btn--outline:hover {
  background-color: var(--color-text);
  color: var(--color-bg);
  opacity: 1;
}

.c-btn--outline-white {
  background-color: transparent;
  color: var(--color-bg);
  border: 2px solid var(--color-bg);
}

.c-btn--outline-white:hover {
  background-color: var(--color-bg);
  color: var(--color-text);
  opacity: 1;
}

.c-btn--line {
  background-color: var(--color-line);
  color: var(--color-bg);
}

.c-btn--line::after {
  mask: url(../img/icon/arrow_l.svg) no-repeat center / contain;
  background: #fff;
}

.c-btn--chatbot {
  background-color: var(--color-primary);
  color: var(--color-bg);
  border-color: var(--color-primary);
  font-size: var(--text-xs);
  padding: 0.5em 1.2em;
}

.c-btn__more-wrap {
  display: flex;
  justify-content: center;
  width: 100% !important;
}

.c-btn__more:not(.swell-block-button),
.swell-block-button.c-btn__more a {
  background: var(--color-accent);
  color: #fff;
  font-weight: 700;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  margin-inline-start: 45px;
  text-align: center;
  padding: 18px 0 18px 20px;
  position: relative;
  max-width: 320px;
  width: 90%;
}

.c-btn__more:not(.swell-block-button)::before,
.swell-block-button.c-btn__more a::before {
  content: "";
  background: url(../img/common/btn_teeth_orange.svg) no-repeat center / contain;
  aspect-ratio: 1;
  width: 66px;
  height: auto;
  margin-block: auto;
  position: absolute;
  inset: 0 auto 0 -45px;
}

.c-btn__more:not(.swell-block-button)::after,
.swell-block-button.c-btn__more a::after {
  content: "";
  mask: url(../img/icon/arrow_l.svg) no-repeat center / contain;
  background: #fff;
  height: 10px;
  width: auto;
  aspect-ratio: 1;
}

.c-btn__more--white {
  background: #fff;
  color: var(--color-primary);
}

.c-btn__more--white::before {
  background: url(../img/common/btn_teeth_white.svg) no-repeat center / contain;
}

.c-btn__more--white::after {
  mask: url(../img/icon/arrow_l.svg) no-repeat center / contain;
  background: var(--color-primary);
}

/* ============ Components: Label ============ */
.c-label {
  display: inline-block;
  padding: 0.25em 1em;
  background-color: var(--color-primary);
  color: var(--color-bg);
  font-size: var(--text-sm);
  font-weight: 700;
  border-radius: var(--radius-full);
}

.c-label--sky {
  background-color: var(--color-sky);
  color: var(--color-text);
}

/* ============ Components: Youtube ============ */
.c-youtube {
  width: 100%;
  aspect-ratio: 16 / 9;
}

.c-youtube iframe {
  width: 100%;
  height: 100%;
}

/* ============ Components: Visually Hidden ============ */
.c-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* ============ Header ============ */
.site-header {
  display: flex;
  justify-content: center;
  padding: 30px 0;
  position: absolute;
  inset: 0 0 auto;
  z-index: 1;
}

.site-header__contact {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.site-header__tel {
  background: #fff;
  border-radius: 0px 0px 0 8px;
  padding: 10px 24px 16px;
  position: absolute;
  inset: 0 0 auto auto;
}

.site-header__tel img {
  filter: brightness(0) saturate(100%) invert(68%) sepia(29%) saturate(1064%) hue-rotate(348deg) brightness(99%) contrast(104%);
}

.gnav {
  position: sticky;
  top: 10px;
  /* site-header__top の高さ分オフセット。スクロール時は info bar がビューポート外に隠れ、nav-wrap が上端に留まる */
  z-index: 100;
  margin-top: -50px;
  margin-inline: auto;
  /* FV 下部にナビバーが約50px重なるよう引き上げる */
  background-color: var(--color-bg);
  border-radius: 8px;
  width: 1000px;
  max-width: 90%;
}

.gnav.is-scrolled {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.gnav__nav-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xl);
}

.gnav__nav-list {
  display: flex;
  align-items: stretch;
  gap: 0;
}

.gnav__nav-list>.gnav__nav-item>.gnav__nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 20px;
  text-decoration: none;
  color: var(--color-text-muted);
  transition: color var(--transition-base);
  position: relative;
  height: 100px;
}

.gnav__nav-list>.gnav__nav-item>.gnav__nav-link::before {
  content: "";
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  aspect-ratio: 1;
  width: 24px;
  height: auto;
}

.gnav__nav-item--top>.gnav__nav-link::before {
  background-image: url(../img/icon/home.svg);
}

.gnav__nav-item--guide>.gnav__nav-link::before {
  background-image: url(../img/icon/hospital.svg);
}

.gnav__nav-item--fee>.gnav__nav-link::before {
  background-image: url(../img/icon/fee.svg);
}

.gnav__nav-item--clinic>.gnav__nav-link::before {
  background-image: url(../img/icon/help.svg);
}

.gnav__nav-item--kodawari>.gnav__nav-link::before {
  background-image: url(../img/icon/favorite.svg);
}

.gnav__nav-item--medical>.gnav__nav-link::before {
  background-image: url(../img/icon/file.svg);
}

.gnav__nav-item--faq>.gnav__nav-link::before {
  background-image: url(../img/icon/faq.svg);
}

.gnav__nav-item--contact>.gnav__nav-link::before {
  background-image: url(../img/icon/mail.svg);
}

.gnav__nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: width var(--transition-base);
}

.gnav__nav-link:hover {
  color: var(--color-primary);
}

.gnav__nav-list>.gnav__nav-item>.gnav__nav-link:hover::after {
  width: calc(100% - 40px);
}

.gnav__nav-label {
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  line-height: 1;
}

.gnav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.gnav__hamburger-bar {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-text);
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.gnav__hamburger.is-open .gnav__hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.gnav__hamburger.is-open .gnav__hamburger-bar:nth-child(2) {
  opacity: 0;
}

.gnav__hamburger.is-open .gnav__hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.gnav__mobile-menu {
  display: none;
  background-color: var(--color-bg);
  border-top: 1px solid var(--color-primary-light);
}

.gnav__mobile-menu.is-open {
  display: block;
}

.gnav__mobile-list {
  list-style: none;
}

.gnav__mobile-link {
  display: block;
  padding: var(--space-md) var(--space-lg);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-text);
  text-decoration: none;
  border-bottom: 1px solid var(--color-primary-light);
  transition: color var(--transition-base), background-color var(--transition-base);
}

.gnav__mobile-link:hover {
  color: var(--color-primary);
  background-color: var(--color-primary-light);
}

@media (max-width: 959px) {
  .site-header {
    justify-content: normal;
    padding: 5px 10px;
  }

  .site-header__logo {
    width: 150px;
  }

  .site-header__tel {
    width: 160px;
    padding: 5px 10px;
  }

  .gnav {
    display: none;
    position: fixed;
    inset: 0 0 auto auto;
    margin-block-start: 0;
  }

  .gnav__nav {
    display: none;
  }

  .gnav__hamburger {
    display: flex;
  }

  .gnav__nav-inner {
    padding-block: var(--space-sm);
  }
}

/* ============ FV（ファーストビュー） ============ */
.p-fv__hero {
  position: relative;
  width: 100%;
}

.p-fv__hero-img {
  position: relative;
  z-index: -1;
}

.p-fv__hero-img::after {
  content: "";
  background: rgba(0, 0, 0, 0.1);
  position: absolute;
  inset: 0;
}

.p-fv__hero-img video {
  display: block;
  width: 100%;
  height: 750px;
  object-fit: cover;
  object-position: center;
}

/* 左下: 診療時間ボックス */
.p-fv__hours-box {
  position: absolute;
  inset: auto auto 90px 3.5vw;
  width: 450px;
  max-width: 100%;
}

.p-fv__hours-box::after {
  content: "";
  background: url(../img/illust/teeth_08.svg) no-repeat center / contain;
  aspect-ratio: 83/86;
  width: 83px;
  height: auto;
  position: absolute;
  inset: -40px auto auto -40px;
}


/* 中央: 吹き出し + 縦書き */
.p-fv__catch-box {
  display: flex;
  align-items: flex-start;
  margin: 0 auto;
  position: absolute;
  inset: 110px 0 auto;
  width: fit-content;
  height: fit-content;
  max-width: 20%;
}

@media (max-width: 959px) {
  .p-fv__hero-img video {
    height: 500px;
  }

  .p-fv__hours-box {
    margin-inline: auto;
    position: relative;
    inset: auto;
    width: 95%;
    margin-block-start: -40px;
  }

  .p-fv__hours-box::after {
    width: 45px;
    inset: -25px auto auto -5px;
  }

  .p-fv__catch-box {
    inset: auto auto 32% 0;
    flex-direction: column;
    width: 180px;
    max-width: 44%;
  }

  .p-fv__hukidashi {
    margin-block-end: -30px;
  }
}

/* ============ 診療への想い ============ */
.p-philosophy {
  background: url(../img/common/bg_dot.svg) repeat-x center #fff;
  padding-block: 100px 200px;
}

.p-philosophy__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
}

/* 左カラム */
.p-philosophy__left {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  position: relative;
}

.p-philosophy__left::before {
  content: "";
  background: url(../img/illust/teeth_07.svg) no-repeat center / contain;
  aspect-ratio: 226/203;
  width: 226px;
  height: auto;
  position: absolute;
  inset: auto 110px 190px auto;
}

/* 中央カラム */
.p-philosophy__title {
  margin-block-end: 50px;
}

.p-philosophy__text {
  display: flex;
  flex-direction: column;
  gap: 1em;
}

.p-philosophy__text p {
  line-height: 2;
  text-align: center;
}

.p-philosophy__btn {
  margin-block-start: 80px;
}

/* 右カラム */
.p-philosophy__right {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  position: relative;
}

.p-philosophy__right::before {
  content: "";
  background: url(../img/illust/toothbrush_04.svg) no-repeat center / contain;
  aspect-ratio: 170/89;
  width: 170px;
  height: auto;
  position: absolute;
  inset: 20px auto auto 0;
}

.p-philosophy__right img {
  margin-block-end: 120px;
}

@media (max-width: 959px) {
  .p-philosophy {
    padding: 60px 20px;
  }

  .p-philosophy__inner {
    grid-template-columns: 1fr;
  }

  .p-philosophy__title {
    margin-block-end: 40px;
  }

  .p-philosophy__right {
    order: -2;
    grid-column: auto;
  }

  .p-philosophy__right::before {
    display: none;
  }

  .p-philosophy__right img {
    margin-block-end: 60px;
    width: 300px;
  }

  .p-philosophy__left {
    padding-top: 40px;
  }

  .p-philosophy__left::before {
    display: none;
  }

  .p-philosophy__left img {
    width: 280px;
  }

  .p-philosophy__btn {
    margin-block-start: 30px;
  }

  .p-philosophy__body {
    order: -1;
  }
}

@media (max-width: 599px) {
  .p-philosophy__text p {
    text-align: left;
    line-height: inherit;
  }
}

/* ============ 8つのこだわり ============ */
.p-features {
  position: relative;
  z-index: 1;
}

.p-features__title {
  display: flex;
  gap: 30px;
  justify-content: center;
  align-items: flex-end;
  padding-inline: var(--container-padding);
  margin-block-end: 25px;
}

.p-features__title::before {
  content: "";
  background: url(../img/common/hukidashi_pop_l.svg) no-repeat center / contain;
  aspect-ratio: 63/112;
  width: 63px;
  height: auto;
}

.p-features__title::after {
  content: "";
  background: url(../img/common/hukidashi_pop_r.svg) no-repeat center / contain;
  aspect-ratio: 63/112;
  width: 63px;
  height: auto;
}

.p-features__group {
  position: relative;
}

.p-features__group--1 {
  background-color: #e7f6c6;
  padding-block: 80px;
}

.p-features__group--1::before {
  content: "";
  background: url(../img/illust/kirakira_pink.svg) no-repeat center / contain;
  aspect-ratio: 93/100;
  width: 93px;
  height: auto;
  position: absolute;
  inset: -30px auto auto 66px;
}

.p-features__group--1::after {
  content: "";
  background: url(../img/illust/mirror_01.svg) no-repeat center / contain;
  aspect-ratio: 132/125;
  width: 132px;
  height: auto;
  position: absolute;
  inset: -90px 110px auto auto;
  rotate: 11.48deg;
  scale: -1 1;
}

.p-features__group--2 {
  background-color: var(--color-primary-light);
  padding-block: 85px 60px;
}

.p-features__group--2::before {
  content: "";
  background: url(../img/illust/floss_02.svg) no-repeat center / contain;
  aspect-ratio: 171/65;
  width: 171px;
  position: absolute;
  inset: -32px 40px auto auto;
}

.p-features__group--3 {
  background-color: #cde5aa;
  padding: 85px 0 120px;
}


.p-features__group--3::before {
  content: "";
  background: url(../img/illust/implant_01.svg) no-repeat center / contain;
  aspect-ratio: 110/135;
  width: 120px;
  height: auto;
  margin-inline: auto;
  position: absolute;
  inset: -40px 46vw auto 0;
  z-index: 1;
}

.p-features__group-head {
  margin-bottom: 60px;
  background-color: var(--color-bg);
  background-position: left top, right bottom;
  background-repeat: no-repeat;
  background-size: 114px, 153px;
  padding: 30px var(--container-padding);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.p-features__group--1 .p-features__group-head {
  background-image: url(../img/common/title_dot_orange.webp), url(../img/common/title_stripe_green.webp);
}

.p-features__group--2 .p-features__group-head {
  background-image: url(../img/common/title_dot_pink.webp), url(../img/common/title_stripe_blue.webp);
}

.p-features__group--3 .p-features__group-head {
  background-image: url(../img/common/title_dot_orange.webp), url(../img/common/title_stripe_pink.webp);
}

.p-features__group-head::after {
  content: '';
  background: #fff;
  aspect-ratio: 25/27;
  width: 25px;
  height: auto;
  margin-inline: auto;
  position: absolute;
  inset: 100% 0 auto;
  clip-path: polygon(50% 100%, 0 0, 100% 0);
}

.p-features__group-num {
  margin-inline: auto;
  position: absolute;
  inset: -42px 0 auto -8px;
  aspect-ratio: 114/134;
  width: 62px;
  height: auto;
  z-index: 2;
}

.p-features__group-title {
  font-size: 36px;
  font-family: "Kaisei Opti", serif;
  font-weight: 700;
  color: var(--color-text);
  text-align: center;
  line-height: 1.5;
}

.p-features__group--2 .c-feature-card:first-child,
.p-features__group--3 .c-feature-card:nth-child(2) {
  box-shadow: 15px 15px 0px var(--color-footer-blue);
}

.p-features__group--2 .c-feature-card:nth-child(2),
.p-features__group--3 .c-feature-card:nth-child(3) {
  box-shadow: 15px 15px 0px var(--color-footer-pink);
}

.p-features__group--1 .c-feature-card:first-child,
.p-features__group--2 .c-feature-card:nth-child(3) {
  box-shadow: 15px 15px 0px var(--color-primary);
}

.p-features__group--1 .c-feature-card:nth-child(2),
.p-features__group--3 .c-feature-card:first-child {
  box-shadow: 15px 15px 0px var(--color-accent);
}

.c-feature-card {
  position: relative;
}

/* Group 1 cards – 2-column grid */
.p-features__g1-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.c-feature-card--g1 {
  background-color: var(--color-bg);
  display: flex;
  gap: 40px;
  flex-direction: column;
  padding: 20px 20px 40px 40px;
}

.c-feature-card--g1:first-child::before {
  content: "";
  background: url(../img/illust/teeth_05.svg) no-repeat center / contain;
  aspect-ratio: 120/112;
  width: 120px;
  height: auto;
  position: absolute;
  inset: -50px auto auto -40px;
}

.c-feature-card--g1:nth-child(2)::before {
  content: "";
  background: url(../img/illust/toothbrush_03.svg) no-repeat center / contain;
  aspect-ratio: 122/80;
  width: 122px;
  height: auto;
  position: absolute;
  inset: -15px auto auto -10px;
}

.c-feature-card--g1 .c-feature-card__upper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.c-feature-card--g1 .c-feature-card__title {
  font-size: 21px;
  font-weight: 900;
  color: var(--color-text);
  line-height: 1.6;
  flex-shrink: 0;
}

.c-feature-card__photo-pair {
  position: relative;
  flex-shrink: 0;
}

.c-feature-card--g1:first-child .c-feature-card__photo-pair::after {
  content: "";
  background: url(../img/illust/microscope_01.svg) no-repeat center / contain;
  aspect-ratio: 76/84;
  width: 76px;
  height: auto;
  position: absolute;
  inset: auto auto -15px -40px;
}

.c-feature-card--g1:nth-child(2) .c-feature-card__photo-pair::after {
  content: "";
  background: url(../img/illust/cup_02.svg) no-repeat center / contain;
  aspect-ratio: 91/111;
  width: 91px;
  height: auto;
  position: absolute;
  inset: auto auto -15px -50px;
}

.c-feature-card__photo-main,
.c-feature-card__photo-sub {
  object-fit: cover;
  aspect-ratio: 3/2;
  height: auto;
}

.c-feature-card--g1 .c-feature-card__photo-pair {
  width: 67.96%;
}

.c-feature-card--g1 .c-feature-card__photo-main {
  width: 75%;
  margin-inline-start: auto;
}

.c-feature-card--g1 .c-feature-card__photo-sub {
  width: 50.41%;
  margin: -19.07% 0 0 0;
}

.c-feature-card--g1 .c-feature-card__lower {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.c-feature-card__badge--green {
  border: 2px solid var(--color-primary);
  border-radius: 100px;
  color: var(--color-primary);
  font-weight: 700;
  padding: 6px 24px;
  line-height: 1.4;
  width: fit-content;
}

.c-feature-card__badge--sky {
  border: 2px solid var(--color-footer-blue);
  border-radius: 100px;
  color: var(--color-footer-blue);
  font-weight: 700;
  margin-inline: auto;
  padding: 6px 24px;
  line-height: 1.4;
  width: fit-content;
}

.c-feature-card__desc {
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: 1.8;
  letter-spacing: 0;
}

/* Group 2 & 3 cards – 3-column grid */
.p-features__g23-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  position: relative;
}

.p-features__group--2 .p-features__g23-cards::before {
  content: "";
  background: url(../img/illust/teeth_04.svg) no-repeat center / contain;
  aspect-ratio: 176/105;
  width: 140px;
  height: auto;
  position: absolute;
  inset: -30px auto auto -55px;
  z-index: 1;
}

.p-features__group--3 .p-features__g23-cards::before {
  content: "";
  background: url(../img/illust/teeth_06.svg) no-repeat center / contain;
  aspect-ratio: 115/87;
  width: 115px;
  height: auto;
  position: absolute;
  inset: auto auto -50px -50px;
  z-index: 1;
}

.p-features__group--3 .p-features__g23-cards::after {
  content: "";
  background: url(../img/illust/pc_01.svg) no-repeat center / contain;
  aspect-ratio: 150/126;
  width: 150px;
  height: auto;
  position: absolute;
  inset: -52px -76px auto auto;
  z-index: 1;
}

.c-feature-card--g23 {
  background-color: var(--color-bg);
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px 20px 45px;
}

.c-feature-card--g23 .c-feature-card__photo-main {
  width: 58%;
}

.c-feature-card--g23 .c-feature-card__photo-sub {
  width: 69%;
  margin: -27px 0 0 auto;
}

.c-feature-card--g23 .c-feature-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.c-feature-card--g23 .c-feature-card__title {
  font-size: 21px;
  font-weight: 700;
  text-align: center;
  line-height: 1.6;
}

.p-features__cta {
  margin-inline: auto;
  position: absolute;
  inset: auto 0 -30px;
}

@media (max-width: 959px) {

  .p-features__group--1::after,
  .p-features__group--1::before {
    display: none;
  }

  .c-feature-card--g1:first-child::before {
    width: 80px;
    inset: -40px auto auto -30px;
  }

  .c-feature-card--g1:first-child .c-feature-card__photo-pair::after {
    width: 56px;
    inset: auto -20px 15px auto;
  }

  .c-feature-card--g1:nth-child(2)::before {
    width: 80px;
    inset: -10px auto auto -10px;
  }

  .c-feature-card--g1:nth-child(2) .c-feature-card__photo-pair::after {
    width: 56px;
    inset: auto -20px 15px auto;
  }

  .p-features__group--2::before {
    width: 90px;
    inset: -15px 20px auto auto;
  }

  .p-features__group--2 .p-features__g23-cards::before {
    inset: -20px auto auto -15px;
    width: 90px;
  }

  .p-features__group--3 {
    padding-block-end: 85px;
  }

  .p-features__group--3::before {
    width: 80px;
    inset-inline-start: 40px;
  }

  .p-features__group--3 .p-features__g23-cards::after {
    width: 75px;
    inset: -20px 20px auto auto;
  }

  .p-features__group--3 .p-features__g23-cards::before {
    inset: auto auto -30px -15px;
    width: 70px;
  }

  .p-features__title {
    gap: 5px;
  }

  .p-features__title::before,
  .p-features__title::after {
    width: 30px;
  }

  .p-features__group-title {
    font-size: 20px;
  }

  .p-features__group-head {
    background-size: 60px, 75px;
    padding: 15px;
    margin-bottom: 30px;
  }

  .p-features__group-num {
    width: 40px;
    inset: -30px 0 auto -4px;
  }

  .c-feature-card--g1 {
    gap: 20px;
    padding: 40px 20px;
  }

  .p-features__g1-cards {
    grid-template-columns: 1fr;
  }


  .c-feature-card--g1 .c-feature-card__upper {
    flex-direction: column;
    gap: 20px;
  }

  .c-feature-card--g1 .c-feature-card__photo-pair,
  .c-feature-card--g23 .c-feature-card__photo-pair {
    order: -1;
    width: 80%;
  }

  .c-feature-card--g23 {
    padding: 40px 20px;
    align-items: center;
  }

  .p-features__g23-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .p-features__g1-cards,
  .p-features__g23-cards {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .c-feature-card--g1 .c-feature-card__title,
  .c-feature-card--g23 .c-feature-card__title {
    font-size: 18px;
    text-align: center;
  }

  .p-features__group--2 .c-feature-card:first-child,
  .p-features__group--3 .c-feature-card:nth-child(2) {
    box-shadow: 10px 10px 0px var(--color-footer-blue);
  }

  .p-features__group--2 .c-feature-card:nth-child(2),
  .p-features__group--3 .c-feature-card:nth-child(3) {
    box-shadow: 10px 10px 0px var(--color-footer-pink);
  }

  .p-features__group--1 .c-feature-card:first-child,
  .p-features__group--2 .c-feature-card:nth-child(3) {
    box-shadow: 10px 10px 0px var(--color-primary);
  }

  .p-features__group--1 .c-feature-card:nth-child(2),
  .p-features__group--3 .c-feature-card:first-child {
    box-shadow: 10px 10px 0px var(--color-accent);
  }
}

/* ============ ギャラリー ============ */
.p-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.p-gallery__item img {
  aspect-ratio: 4 / 3;
  width: 100%;
  height: auto;
  object-fit: cover;
}

@media (max-width: 959px) {
  .p-gallery__item img {
    object-fit: cover;
    height: 160px;
  }
}

/* ============ インプラント・矯正治療 ============ */
.p-implant {
  background: url(../img/common/shape_dot.svg) no-repeat top 197px right 50px var(--color-bg);
  position: relative;
  padding-block: 100px 120px;
  z-index: 1;
}

.p-implant::before {
  content: "";
  background: url(../img/illust/teeth_04.svg) no-repeat center / contain;
  aspect-ratio: 176/105;
  width: 176px;
  height: auto;
  position: absolute;
  inset: auto auto -50px 106px;
  z-index: 1;
}

.p-implant::after {
  content: "";
  background-image: linear-gradient(90deg, rgba(163, 209, 63, 1) 25%, rgba(255, 167, 50, 1) 25% 50%, rgba(128, 208, 243, 1) 50% 75%, rgba(248, 163, 190, 1) 75%);
  height: 10px;
  position: absolute;
  inset: auto 0 0 0;
}

/* ============ インプラント・矯正治療（上） ============ */
.p-implant-top__inner {
  display: flex;
  align-items: flex-start;
}

.p-implant-top__photo-wrap {
  display: flex;
  align-items: center;
  flex: 1;
  position: relative;
}

.p-implant-top__photo-wrap::after {
  content: "";
  background: url(../img/illust/toothbrush_02.svg) no-repeat center / contain;
  aspect-ratio: 201/107;
  width: 201px;
  height: auto;
  position: absolute;
  inset: auto 34px -30px auto;
}

.p-implant-top__photo {
  width: 100%;
  position: relative;
}

.p-implant-top__photo::after {
  content: "";
  background: url(../img/illust/implant_02.svg) no-repeat center / contain;
  aspect-ratio: 174/200;
  width: 174px;
  height: auto;
  position: absolute;
  inset: -120px -80px auto auto;
}

.p-implant-top__photo img {
  display: block;
  width: 100%;
  height: 563px;
  object-fit: cover;
  object-position: 0 9%;
}

.p-implant-top__body {
  width: 62%;
  background-color: rgba(255, 167, 50, 0.9);
  padding: 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 1em;
  color: var(--color-bg);
  font-weight: 700;
  margin-inline-start: -8.33vw;
  position: relative;
  z-index: 1;
}

.p-implant-top__deco {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22.92vw;
  flex-shrink: 0;
  position: relative;
}

.p-implant-top__heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

@media (max-width: 959px) {
  .p-implant-top__photo-wrap::after {
    display: none;
  }

  .p-implant::before {
    width: 95px;
    inset: auto auto -24px 50px;
  }

  .p-implant {
    padding-block: 60px 100px;
  }

  .p-implant-top__photo::after {
    width: 90px;
    inset: 0 30px auto auto;
  }

  .p-implant-top__inner {
    flex-direction: column;
  }

  .p-implant-top__photo-wrap {
    flex-direction: column;
    align-items: normal;
    width: 100%;
  }

  .p-implant-top__photo img {
    height: 195px;
    width: 70%;
  }

  .p-implant-top__body {
    width: 90%;
    margin-inline-start: auto;
    margin-block-start: -40px;
    padding: 25px 20px;
  }

  .p-implant-top__deco {
    width: 100%;
    order: -1;
  }

  .p-implant-top__heading {
    gap: 10px;
  }

  .p-implant-top__heading-label {
    width: 120px;
  }

  .p-implant-top__heading-label {
    width: 100px;
  }
}

/* ============ インプラント・矯正治療（下） ============ */
.p-implant-cards__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.c-treatment-card {
  position: relative;
}

.c-treatment-card::before {
  content: '';
  position: absolute;
  inset: auto -15px -15px auto;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 1);
  background-image: repeating-linear-gradient(135deg, transparent, transparent 4px, rgba(163, 209, 63, 1) 4px, rgba(163, 209, 63, 1) 8px);
  background-size: auto auto;
}

.c-treatment-card--ortho::before {
  background-image: repeating-linear-gradient(135deg, transparent, transparent 4px, rgba(255, 167, 50, 1) 4px, rgba(255, 167, 50, 1) 8px);
}

.c-treatment-card__inner {
  position: relative;
  z-index: 1;
  background-color: var(--color-bg);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.c-treatment-card--implant .c-treatment-card__inner {
  border: 10px solid var(--color-primary);
}

.c-treatment-card--ortho .c-treatment-card__inner {
  border: 10px solid var(--color-accent);
}

.c-treatment-card__title {
  font-size: var(--text-4xl) !important;
  font-family: "Kaisei Opti", serif;
  font-weight: 700;
  line-height: 1.6;
}

.c-treatment-card__divider {
  height: 2px;
}

.c-treatment-card--implant .c-treatment-card__divider {
  background-color: var(--color-primary-light);
}

.c-treatment-card--ortho .c-treatment-card__divider {
  background-color: var(--color-accent-light);
}

.c-treatment-card__subtitle {
  font-size: 1.375rem;
  font-weight: 700;
}

.c-treatment-card__em {
  font-style: normal;
}

.c-treatment-card__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.c-treatment-card__list-item {
  font-size: 15px;
  font-weight: 700;
  position: relative;
  line-height: 1.6;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.c-treatment-card__list-item::before {
  content: '';
  display: block;
  width: 15px;
  height: auto;
  aspect-ratio: 1;
  background: url(../img/icon/teeth.svg) no-repeat center / contain;
  flex-shrink: 0;
}

.c-treatment-card--ortho .c-treatment-card__list-item::before {
  background-image: url(../img/icon/teeth_orange.svg);
}

.c-treatment-card__img {
  position: relative;
}

.c-treatment-card__img img {
  object-fit: cover;
  aspect-ratio: 3 / 2;
  height: auto;
}

.c-treatment-card__img img:first-child {
  width: 75%;
}

.c-treatment-card__img img:nth-child(2) {
  width: 60%;
  margin: -40px 0 0 auto;
}

@media (max-width: 959px) {
  .p-implant-cards__grid {
    grid-template-columns: 1fr;
  }

  .p-implant-cards {
    margin-block-start: 60px;
  }

  .c-treatment-card::before {
    inset: auto -10px -10px auto;
  }

  .c-treatment-card__inner {
    padding: 25px;
    border-width: 5px !important;
  }

  .c-treatment-card__title {
    font-size: 20px !important;
  }

  .c-treatment-card__subtitle {
    font-size: 18px;
  }

  .c-treatment-card__list-item {
    font-size: inherit;
  }

  .c-treatment-card__img {
    width: 80%;
    margin-inline: auto;
  }
}

/* ============ 診療案内 ============ */
.p-treatments {
  background: url(../img/common/syape_dot_three.svg) no-repeat top 148px center var(--color-bg);
  padding-block: var(--space-4xl);
}

.p-treatments__title {
  position: relative;
  width: fit-content;
  margin-inline: auto;
}

.p-treatments__title::before {
  content: "";
  background: url(../img/illust/mirror_01.svg) no-repeat center / contain;
  aspect-ratio: 132 / 125;
  width: 132px;
  height: auto;
  position: absolute;
  inset: 6px calc(100% - 10px) auto auto;
}

.p-treatments__title::after {
  content: "";
  background: url(../img/illust/floss_01.svg) no-repeat center / contain;
  aspect-ratio: 171 / 65;
  width: 171px;
  height: auto;
  position: absolute;
  inset: 40px auto auto calc(100% + 27px);
}

.p-treatments__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  position: relative;
}

.p-treatments__grid::before {
  content: "";
  background: url(../img/illust/cup_01.svg) no-repeat center / contain;
  aspect-ratio: 123/133;
  width: 123px;
  height: auto;
  position: absolute;
  inset: 200px auto auto calc(100% + 56px);
}

.p-treatments__grid::after {
  content: "";
  background: url(../img/illust/teeth_03.svg) no-repeat center / contain;
  aspect-ratio: 157/119;
  width: 157px;
  height: auto;
  position: absolute;
  inset: auto calc(100% + 56px) 50px auto;
}

.p-treatments__video {
  padding: 80px 50px;
  position: relative;
  background: #fff;
  border: 10px solid #FFA732;
  margin-block-start: 120px;
}

.p-treatments__video::before {
  content: "";
  position: absolute;
  inset: auto 0 100%;
  aspect-ratio: 69/63;
  width: 69px;
  height: auto;
  background: var(--color-accent);
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  margin-inline: auto;
}

.p-treatments__video::after {
  content: "";
  background: url(../img/illust/toothbrush_02.svg) no-repeat center / contain;
  aspect-ratio: 201 / 107;
  width: 201px;
  height: auto;
  position: absolute;
  inset: -40px -120px auto auto;
}

.p-treatments__video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 20px;
}

.p-treatments__video-text {
  font-weight: 700;
  text-align: center;
  margin-block-start: 20px;
  letter-spacing: 0;
}

.p-treatments__video-btn {
  margin-inline: 0;
  position: absolute;
  inset: calc(100% - 30px) 0 auto;
}

.c-menu-card {
  border: 4px solid var(--color-accent);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: var(--color-bg);
  overflow: hidden;
  text-decoration: none;
  transition: .2s;
}

.c-menu-card--menu {
  background-color: var(--color-accent);
	color: #fff;
	font-size: 1.375rem;
	font-weight: 700;
	text-align: center;
	justify-content: center;
	transition: background-color .2s ease, opacity 0.6s ease, transform 0.6s ease !important;
}

.c-menu-card>* {
  transition: .2s;
}

.c-menu-card::after {
  content: '';
  position: absolute;
  inset: auto 0 0 auto;
  width: 40px;
  height: auto;
  aspect-ratio: 1;
  background-color: var(--color-accent);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
  transition: .2s;
}

.c-menu-card--menu::after {
  background-color: #fff;
}

.c-menu-card__top {
  width: 100%;
  background-color: var(--color-accent-light);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px 0 40px;
}

.c-menu-card__top img {
  width: 98px;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
}

.c-menu-card__badge {
  background-color: var(--color-accent);
  color: var(--color-bg);
  font-size: 1.375rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  padding: 8px 32px;
  margin-top: -24px;
  text-align: center;
  line-height: 1.6;
}

.c-menu-card__desc {
  font-weight: 700;
  text-align: center;
  line-height: 1.6;
  padding: var(--space-md) var(--space-md) var(--space-xl);
}

.c-menu-card:hover {
  background-color: var(--color-accent-light);
  border-color: var(--color-accent-dark);
  opacity: 1;
}

.c-menu-card--menu:hover {
  background-color: var(--color-accent-dark);
}

.c-menu-card:hover .c-menu-card__top {
  background-color: #fff;
}

.c-menu-card:hover .c-menu-card__badge,
.c-menu-card:not(.c-menu-card--menu):hover::after {
  background-color: var(--color-accent-dark);
}

@media (max-width: 959px) {

  .p-treatments__grid::before,
  .p-treatments__grid::after {
    display: none;
  }

  .p-treatments {
    padding-block: 60px;
  }

  .p-treatments__title::before {
    width: 70px;
    inset: auto calc(100% - -10px) auto auto;
  }

  .p-treatments__title::after {
    width: 90px;
    inset: auto auto auto calc(100% + 23px);
  }

  .p-treatments__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
	
	.c-menu-card--menu {
    font-size: inherit;
		padding: 1rem;
		grid-column: 1 / 3;
    order: 1;
	}

  .c-menu-card__top {
    padding: 20px 0 30px;
  }

  .c-menu-card__top img {
    width: 50px;
  }

  .c-menu-card__badge {
    font-size: inherit;
    padding: 4px 20px;
    margin-top: -15px;
  }

  .c-menu-card__desc {
    padding: 15px 5px;
  }

  .c-menu-card::after {
    width: 20px;
  }

  .p-treatments__video {
    border-width: 5px;
    margin-block-start: 60px;
    padding: 40px 20px;
  }

  .p-treatments__video::before {
    width: 40px;
  }

  .p-treatments__video::after {
    inset: -30px 0px auto auto;
    width: 100px;
  }

  .p-treatments__video-grid {
    grid-template-columns: 1fr;
  }

  .p-treatments__video-text {
    margin-block-start: 10px;
  }

  .p-treatments__video-btn {
    position: static;
    margin-block-start: 40px;
  }
}

.p-treatments__video-more {
  display: none;
}

@media (max-width: 599px) {
  .p-treatments__video-item--hidden {
    display: none;
  }

  .p-treatments__video-grid.is-expanded .p-treatments__video-item--hidden {
    display: block;
  }

  .p-treatments__video-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 24px auto 0;
    padding: 10px 24px;
    background: #fff;
    border: 2px solid var(--color-accent);
    border-radius: 100px;
    color: var(--color-accent);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
  }

  .p-treatments__video-more::after {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    margin-top: -3px;
    transition: transform 0.2s;
  }

  .p-treatments__video-more[aria-expanded="true"]::after {
    transform: rotate(-135deg);
    margin-top: 3px;
  }

}

/* ============ ブログ ============ */
.p-blog {
  background-color: var(--color-bg);
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.p-blog__inner {
  display: flex;
  align-items: center;
  padding-top: 80px;
}

.p-blog__lede {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 56px;
  padding-right: 40px;
  width: 20.83vw;
  flex-shrink: 0;
  position: relative;
}

.p-blog__lede::after {
  content: "";
  background: url(../img/illust/implant_01.svg) no-repeat center / contain;
  aspect-ratio: 110/135;
  width: 110px;
  height: auto;
  position: absolute;
  inset: -80px auto auto calc(100% - 50px);
  z-index: 1;
}

.p-blog__title-wrap {
  display: flex;
  flex-direction: row-reverse;
  gap: 20px;
}

.p-blog__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 24px 35px;
  background-color: var(--color-accent);
  color: var(--color-bg);
  font-size: var(--text-base);
  font-weight: 700;
  text-decoration: none;
  transition: opacity var(--transition-base);
}

.p-blog__btn::after {
  content: "";
  background: url(../img/icon/arrow_teeth.svg) no-repeat center / contain;
  aspect-ratio: 27/28;
  width: 27px;
  height: auto;
}

.p-blog__btn:hover {
  opacity: 0.85;
}

.p-blog__slider-area {
  flex: 1;
  position: relative;
  overflow: hidden;
  background-color: var(--color-bg-gray);
  padding: 64px 0 40px 64px;
}

/* Swiper管理のため display/gap/transition はSwiper側に委譲 */
.c-blog-card {
  width: 421px;
}

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

.c-blog-card__img {
  width: 421px;
  height: 303px;
  overflow: hidden;
}

.c-blog-card__img img {
  aspect-ratio: 421/303;
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.c-blog-card:hover .c-blog-card__img img {
  transform: scale(1.04);
}

.c-blog-card__title {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-text);
  margin-top: 24px;
  line-height: 1.6;
}

.c-blog-card__date {
  display: block;
  font-family: var(--font-en);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-text);
  margin-top: var(--space-md);
}

/* Swiperデフォルトのナビゲーションボタンは使用しない */
.p-blog__slider-area .swiper-button-prev,
.p-blog__slider-area .swiper-button-next {
  display: none;
}

.p-blog__controls {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  padding: 32px 0 0;
}

.p-blog__pagination.swiper-pagination {
  position: static;
  width: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.p-blog__pagination .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: #ccc;
  opacity: 1;
  margin: 0;
  border-radius: var(--radius-full);
  transition: background-color var(--transition-base), width var(--transition-base), border-radius var(--transition-base);
}

.p-blog__pagination .swiper-pagination-bullet-active {
  background: var(--color-accent);
  width: 24px;
  border-radius: 4px;
}

.p-blog__nav-btn {
  background: #fff;
  width: 40px;
  height: 40px;
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-full);
  color: var(--color-accent);
  font-size: 2rem;
  padding: 0 0 8px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background-color var(--transition-base), color var(--transition-base);
}

.p-blog__nav-btn:hover {
  background-color: var(--color-accent);
  color: #fff;
}

@media (max-width: 959px) {
  .p-blog__lede::after {
    width: 80px;
    inset: 50px auto auto 10px;
  }

  .p-blog__inner {
    flex-direction: column;
    align-items: center;
    padding-top: 0;
    gap: 0;
  }

  .p-blog__lede {
    display: contents;
    width: 100%;
    padding: 0 20px;
  }

  .p-blog__title-wrap {
    flex-direction: row;
    gap: var(--space-xs);
  }

  .p-blog__slider-area {
    width: 100%;
    padding: var(--space-xl) 0 var(--space-md) var(--space-xl);
  }

  .p-blog__controls {
    padding: 24px var(--space-xl) 0;
    justify-content: center;
  }

  .c-blog-card {
    width: 300px;
  }

  .c-blog-card__img {
    width: 300px;
    height: 215px;
  }

  .p-blog__btn {
    width: auto;
    margin-block-start: 20px;
    padding: var(--space-md) var(--space-xl);
    order: 1;
  }

  /* unused in md breakpoint */
  .p-blog__header,
  .p-blog__grid {
    display: none;
  }
}

@media (max-width: 599px) {
  .c-blog-card {
    width: 260px;
  }

  .c-blog-card__img {
    width: 260px;
    height: 187px;
  }

  .p-blog__slider-area {
    padding-inline: 0;
  }

  .p-blog__controls {
    padding-inline: var(--space-md);
  }

  .p-blog__swiper {
    overflow: visible;
  }
}

/* fallback: hide removed elements */
.p-blog__header,
.p-blog__subtitle,
.p-blog__grid {
  display: none;
}

@media (max-width: 959px) {
  .p-blog__header {
    display: none;
  }

  .p-blog__grid {
    display: none;
  }
}

/* ============ バナー ============ */
.p-banner {
  padding-block: var(--space-4xl);
  position: relative;
  z-index: 0;
}

.p-banner::before {
  content: "";
  background: url(../img/common/syape_dot_two.svg) no-repeat center;
  width: 100%;
  height: 1252px;
  margin: auto;
  position: absolute;
  inset: 0;
  z-index: -2;
}

.p-banner__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.p-banner__item {
  display: block;
  overflow: hidden;
  transition: opacity var(--transition-base);
}

.p-banner__item:hover {
  opacity: 0.85;
}

.p-banner__img {
  display: block;
  width: 100%;
  height: auto;
}

.p-banner__cta {
  margin-top: var(--space-3xl);
}

@media (max-width: 959px) {
  .p-banner {
    padding-block: 60px;
  }

  .p-banner__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .p-banner__cta {
    margin-top: 40px;
  }
}

/* ============ 概要 ============ */
.p-info__inner {
  display: flex;
  align-items: stretch;
  min-height: 600px;
  padding-inline: 0;
}

/* 地図 */
.p-info__map {
  flex: 1;
  position: relative;
  margin-inline-end: calc(50% - 50vw);
}

.p-info__map iframe {
  width: 100%;
  height: 100%;
  min-height: 600px;
  display: block;
}

/* インフォパネル */
.p-info__panel {
  width: 37.85vw;
  min-width: 480px;
  flex-shrink: 0;
  background-color: var(--color-primary);
  padding: 48px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  position: relative;
  z-index: 1;
}

.p-info__panel::before {
  content: "";
  background: url(../img/illust/teeth_02.svg) no-repeat center / contain;
  aspect-ratio: 120/108;
  width: 120px;
  height: auto;
  position: absolute;
  inset: -20px auto auto -26px;
}

.p-info__panel::after {
  content: "";
  background: url(../img/illust/toothbrush_01.svg) no-repeat center / contain;
  aspect-ratio: 106/55;
  width: 106px;
  height: auto;
  position: absolute;
  inset: auto 30px -30px auto;
}

/* カードグループ */
.p-info__cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.p-info__info-cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ロゴカード */
.p-info__logo-card {
  background-color: var(--color-bg);
  padding: 16px 48px 24px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.p-info__logo-card img {
  height: 48px;
  width: auto;
}

/* 診療時間カード */
.p-info__hours-card {
  background-color: var(--color-bg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.p-info__hours-table {
  width: 100%;
  border-collapse: collapse;
}

.p-info__hours-table th,
.p-info__hours-table td {
  background: transparent !important;
  border: none !important;
  color: inherit !important;
  padding: 0 6px;
  text-align: center;
  vertical-align: middle;
}

.p-info__hours-label {
  color: var(--color-primary);
  font-size: 0.9375rem;
  font-weight: 700;
  text-align: left !important;
  white-space: nowrap;
}

.p-info__hours-table thead th:not(.p-info__hours-label) {
  font-weight: 400;
}

.p-info__hours-time {
  font-family: var(--font-en);
  font-size: 0.875rem;
  font-weight: 500;
  text-align: left !important;
  white-space: nowrap;
}

/* 診療マーク */
.p-info__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  vertical-align: middle;
}

.p-info__mark--open {
  width: 12px;
  height: 12px;
  background: var(--color-text);
  border-radius: 50%;
}

.p-info__mark--partial {
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 12px solid var(--color-primary);
}

.p-info__mark--closed {
  color: var(--color-text);
}

.p-info__hours-note {
  font-family: var(--font-en);
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;

}

.p-info__hours-holiday {
  font-size: 0.875rem;
  font-weight: 500;
}

/* 診療内容カード */
.p-info__treatments-card {
  background-color: var(--color-bg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.p-info__card-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--color-primary);
}

.p-info__treatments {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.p-info__treatments li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 700;
  width: calc((100% - 16px) / 3);
}

.p-info__treatments li::before {
  content: '';
  display: block;
  width: 15px;
  height: auto;
  aspect-ratio: 1;
  background: url(../img/icon/teeth.svg) no-repeat center / contain;
  flex-shrink: 0;
}

/* 所在地・アクセス */
.p-info__location {
  display: flex;
  flex-direction: column;
  gap: 24px;
  border-block-start: 1px solid #fff;
  padding-block-start: 40px;
}

.p-info__address {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  font-size: 1.125rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.6;
}

.p-info__address-label {
  flex-shrink: 0;
}

.p-info__access-title {
  border-inline: 5px solid var(--color-primary-light);
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 12px;
  padding-inline: 13px;
  width: fit-content;
}

.p-info__access-list {
  display: flex;
  flex-direction: column;
  padding-inline-start: 0 !important;
  gap: 16px;
}

.p-info__access-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-weight: 700;
  color: #fff;
  line-height: 1.5;
}

.p-info__access-icon {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  color: #fff;
}

@media (max-width: 959px) {
  .p-info__panel::before {
    width: 80px;
    inset: -12px auto auto -10px;
  }

  .p-info__panel::after {
    display: none;
  }

  .p-info__inner {
    flex-direction: column;
  }

  .p-info__map {
    margin: 0;
  }

  .p-info__map iframe {
    min-height: 300px;
  }

  .p-info__panel {
    margin-left: 0;
    padding: 40px 20px;
    gap: 20px;
    width: 100%;
    min-width: auto;
  }

  .p-info__cta {
    width: 100%;
  }

  .p-info__hours-card {
    padding: 20px;
  }

  .p-info__treatments li {
    width: calc((100% - 16px) / 2);
  }

  .p-info__location {
    padding-block-start: 20px;
  }

  .p-info__address {
    font-size: inherit;
    flex-direction: column;
    gap: 0;
  }

  .p-info__access-list {
    gap: 10px;
  }
}

/* ============ 問い合わせ ============ */
.p-contact {
  padding-block: var(--space-4xl);
}

.p-contact__container {
  display: flex;
}

.c-contact-card__title-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16.32vw;
  flex-shrink: 0;
  position: relative;
}

.c-contact-card__title-wrap::after {
  content: "";
  background: url(../img/icon/arrow_single.svg) no-repeat center / contain;
  height: auto;
  width: 22.55%;
  aspect-ratio: 1;
  margin-block: auto;
  position: absolute;
  inset: 0 1.39vw 0 auto;
}

.p-contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  flex: 1;
  position: relative;
}

.p-contact__grid::after {
  content: "";
  background: url(../img/illust/teeth_01.svg) no-repeat center / contain;
  aspect-ratio: 84/131;
  width: 84px;
  height: auto;
  position: absolute;
  inset: 110px 10px auto auto;
}

.c-contact-card {
  padding: var(--space-2xl) var(--space-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  text-align: center;
}

.c-contact-card--line {
  background: var(--color-line);
}

.c-contact-card--line .c-btn--line {
  background: #fff;
  color: var(--color-line);
  border-color: #fff;
}

.c-contact-card--line .c-btn--line::after {
  mask: url(../img/icon/arrow_l.svg) no-repeat center / contain;
  background: var(--color-line);
}

.c-contact-card--tel {
  background: var(--color-text);
}

.c-contact-card--web {
  background: var(--color-accent);
}

.c-contact-card--web .c-btn--accent {
  background: #fff;
  color: var(--color-accent);
  border-color: #fff;
}

.c-contact-card--web .c-btn--accent::after {
  mask: url(../img/icon/arrow_l.svg) no-repeat center / contain;
  background: var(--color-accent);
}

.c-contact-card__subtitle {
  color: #fff;
  font-size: var(--text-lg) !important;
  font-weight: 700 !important;
  line-height: 1.6 !important;
  margin-block-end: 0 !important;
}

.c-contact-card__subtitle-highlight {
  font-size: 22px;
}

.c-contact-card--line .c-contact-card__subtitle {
  font-size: 15px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
  align-items: center;
}

.c-contact-card--web .c-contact-card__heading {
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.6;
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
}

.c-contact-card__tel-num {
  font-family: var(--font-en);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: 0.05em;
}

.c-contact-card__hours {
  font-size: var(--text-sm);
  font-weight: 700;
  color: #fff;
}

.c-contact-card__note {
  font-size: var(--text-sm);
  color: #fff;
  font-weight: 700;
  line-height: 1.6;
  text-align: center;
}

@media (min-width: 1201px) {
  .c-contact-card--web {
    padding-inline-end: 5.56vw;
  }
}

@media (max-width: 1200px) {
  .p-contact {
    padding-block: 60px 0;
  }

  .p-contact__container {
    flex-direction: column;
  }

  .c-contact-card__title-wrap {
    width: 100%;
  }

  .c-contact-card__title-wrap::after {
    rotate: 90deg;
    width: 30px;
    margin: 0 auto;
    inset: auto 0 5px;
  }

  .post_content div>:last-child.c-contact-card__title {
    writing-mode: inherit;
    -ms-writing-mode: inherit;
    margin-block-end: 40px !important;
  }
}

@media (max-width: 959px) {
  .p-contact__grid {
    grid-template-columns: 1fr;
  }

  .p-contact__grid::after {
    display: none;
  }

  .c-contact-card {
    padding: 30px 20px;
  }

  .c-contact-card--line .c-contact-card__subtitle {
    display: grid;
    justify-content: center;
    align-items: center;
    gap: 0 10px;
  }

  .c-contact-card--line .c-contact-card__subtitle img {
    grid-area: 1 / 1 / 3 / 2;
    width: 40px;
  }

  .c-contact-card--line .c-contact-card__subtitle-sub {
    grid-area: 1 / 2 / 2 / 3;
  }

  .c-contact-card--line .c-contact-card__subtitle-highlight {
    grid-area: 2 / 2 / 3 / 3;
  }
}

/* ============ Footer ============ */
.site-footer {
  background-color: var(--color-bg-gray);
}

.site-footer__cols {
  display: flex;
  gap: 8px;
}

.site-footer__col {
  background-color: var(--color-bg);
  padding: var(--space-xl) 25px;
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.site-footer__col--1 {
  flex: 218;
  --col-icon-color: var(--color-primary);
}

.site-footer__col--2 {
  flex: 316;
  --col-icon-color: var(--color-accent);
}

.site-footer__col--3 {
  flex: 287;
  --col-icon-color: var(--color-footer-blue);
}

.site-footer__col--4 {
  flex: 435;
  --col-icon-color: var(--color-footer-pink);
}

.site-footer__col-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.375rem;
  font-weight: 900;
  line-height: 1.6;
}

.site-footer__col-title::before {
  content: '';
  background: url(../img/icon/teeth_silhouette.svg) no-repeat center/ contain;
  width: 20px;
  height: auto;
  aspect-ratio: 1;
  flex-shrink: 0;
}

.site-footer__col--2 .site-footer__col-title::before {
  mask: url(../img/icon/teeth_silhouette.svg) no-repeat center/ contain;
  background: var(--color-accent);
}

.site-footer__col--3 .site-footer__col-title::before {
  mask: url(../img/icon/teeth_silhouette.svg) no-repeat center/ contain;
  background: var(--color-footer-blue);
}

.site-footer__col--4 .site-footer__col-title::before {
  mask: url(../img/icon/teeth_silhouette.svg) no-repeat center/ contain;
  background: var(--color-footer-pink);
}

.site-footer__col-list.wp-block-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding: 0 !important;
  width: 100%;
}

.site-footer__col-list.wp-block-list.site-footer__col-list--menu {
  display: grid;
  grid-template-columns: repeat(3, auto);
}

@media (max-width: 959px) {
  .site-footer__col-list.wp-block-list.site-footer__col-list--menu {
    grid-template-columns: repeat(2, 1fr);
  }
}

.site-footer__col-list.wp-block-list li {
  list-style-type: disc;
  margin-inline-start: 1em;
}

.site-footer__col-list>li>a {
  font-size: 0.9375rem;
  font-weight: 700;
}

.site-footer__col-sublist {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-top: var(--space-sm) !important;
  padding-left: 0 !important;
  list-style: none !important;
}

.site-footer__col-sublist li::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 1px;
  background-color: currentColor;
  vertical-align: middle;
  margin-right: 7px;
  opacity: 0.6;
}

.site-footer__col-sublist a {
  font-size: var(--text-sm) !important;
  font-weight: 700;
}

.site-footer__col-grid>* {
  display: flex;
  gap: 15px;
}

.site-footer__bottom {
  padding-block: 16px;
}

.site-footer__bottom .l-container {
  display: flex;
  justify-content: flex-end;
}

.copyright {
  background-color: var(--color-bg);
  padding: var(--space-sm) var(--space-lg);
  font-family: var(--font-en);
  font-size: var(--text-xs);
  font-weight: 500;
  width: fit-content;
  margin-left: auto;
}

@media (max-width: 959px) {
  .site-footer {
    padding-block-end: 70px;
  }

  .site-footer__col-title {
    font-size: 20px;
  }

  .site-footer__col-list {
    gap: 5px;
  }

  .site-footer__cols {
    flex-direction: column;
    gap: var(--space-sm);
  }

  .site-footer__col--1,
  .site-footer__col--2,
  .site-footer__col--3,
  .site-footer__col--4 {
    flex: none;
  }

  .site-footer__col-grid>* {
    flex-wrap: wrap;
    gap: var(--space-lg);
  }

  .site-footer__bottom .l-container {
    justify-content: center;
  }

  .copyright {
    margin-left: 0;
  }
}

/* ============ Floating: サイドボタン ============ */
.c-floating-side {
  position: fixed;
  inset: 20% 0 auto auto;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: auto;
  height: fit-content;
}

.c-floating-side__btn {
  border-radius: 8px 0 0 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 118px;
  height: 145px;
}

.c-floating-side__btn--line {
  background-color: var(--color-line);
}

.c-floating-side__btn--yoyaku {
  background-color: var(--color-accent);
}

.c-floating-side__btn--tel {
  background-color: var(--color-text);
}

.c-floating-side__btn-text {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  line-height: 1.4;
}

@media (max-width: 959px) {
  .c-floating-side {
    inset: auto 0 0;
    flex-direction: row;
    gap: 0;
  }

  .c-floating-side__btn {
    border-radius: 0;
    width: calc(100% / 3);
    height: 70px;
    gap: 3px;
  }

  .c-floating-side__btn-text {
    font-size: 11px;
  }

  .c-floating-side__btn img {
    width: 20px;
  }
}


/* ============ Floating: 自動応答サービス（チャットボット） ============ */
.c-chatbot {
  background-color: transparent;
  border: 0;
  padding: 0;
  position: fixed;
  inset-block-end: 30px;
  inset-inline-end: 5px;
  z-index: 200;
}

@media (max-width: 959px) {
  .c-chatbot {
    inset-block-end: 80px;
    width: 90px;
  }
}

/* ============ お知らせ ============ */
.p-news {
  margin-block-start: 110px;
  padding-inline-start: 64px;
  width: 775px;
  max-width: 90%;
  margin-inline: auto;
  position: relative;
}

.p-news::before {
  content: "";
  background: url(../img/common/btn_teeth_orange.svg) no-repeat center / contain;
  aspect-ratio: 1;
  width: 102px;
  margin-block: auto;
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 1;
}

.p-news__box {
  position: relative;
  background-color: var(--color-accent);
  padding: 40px 60px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.p-news__list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  list-style: none;
}

.p-news__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.p-news__link {
  display: flex;
  gap: 8px;
  color: var(--color-bg);
  font-weight: 700;
  flex: 1;
  padding-bottom: 4px;
  border-bottom: 1px solid #fff;
  position: relative;
}

.p-news__link::before {
  content: "";
  mask: url(../img/icon/teeth_silhouette.svg) no-repeat center / contain;
  display: block;
  background: #fff;
  flex-shrink: 0;
  aspect-ratio: 1;
  width: 17px;
  height: auto;
}

.p-news__link:hover .p-news__title {
  text-decoration: underline;
}

.p-news__arrow {
  flex-shrink: 0;
}

.p-news__date {
  display: inline-flex;
  align-items: center;
  padding: 2px 11px;
  background-color: var(--color-bg);
  color: var(--color-accent);
  font-family: var(--font-en);
  font-size: var(--text-sm);
  font-weight: 500;
  border-radius: var(--radius-full);
  white-space: nowrap;
  flex-shrink: 0;
}

.p-news__side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.p-news__heading {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--color-bg);
}

.p-news__btn {
  background-color: var(--color-bg);
  border-color: #DEDEDE;
  line-height: 1.6;
}

.p-news__btn:hover {
  opacity: 0.85;
}

.p-news__btn::after {
  filter: brightness(0) saturate(100%) invert(60%) sepia(98%) saturate(400%) hue-rotate(357deg) brightness(100%) contrast(100%);
}

@media (max-width: 959px) {
  .p-news {
    margin-block-start: 60px;
    padding-inline-start: 0;
    width: 600px;
  }

  .p-news::before {
    width: 50px;
    inset: -25px 0 auto;
    margin-inline: auto;
  }

  .p-news__box {
    flex-direction: column;
    padding: 30px 20px;
    gap: 20px;
  }

  .p-news__heading {
    font-size: 20px;
  }

  .p-news__list {
    gap: 10px;
    width: 100%;
  }

  .p-news__side {
    display: contents;
  }

  .p-news__item {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }

  .p-news__link {
    width: 100%;
  }

  .p-news__btn {
    order: 1;
  }
}

/* ============ Main Visual Document Title (h1) ============ */
/* 背景画像（.l-topTitleArea__img）と同様に絶対配置にし、
   .l-topTitleArea__body の flex 中央寄せレイアウトに影響を与えないようにする */
.l-topTitleArea__docTitle {
  position: absolute;
  top: 0.75em;
  left: 0;
  right: 0;
  z-index: 3;
  margin-top: 0;
  margin-bottom: 0;
  font-weight: normal;
  opacity: 0.8;
  padding-inline: 10px;
  width: 37vw;
}

@media (max-width: 959px) {
  .l-topTitleArea__docTitle {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
}


/* ============ Scroll Fade-Up Animation ============ */
.js-fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js-fade-up.on {
  opacity: 1;
  transform: translateY(0);
}