@charset "UTF-8";

/*================================================
 *  一般・共通設定
 ================================================*/
html {
  font-size: 62.5%;
  scroll-padding-top: 70px;
}

body {
  position: relative;
  font-size: 1.5rem;
  font-family: "Noto Sans JP", sans-serif;
  line-height: 1.6;
  letter-spacing: .05em;
  color: #333;
  z-index: 1;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg-color);
  color: var(--text-color);
  font-family: "Noto Sans JP", sans-serif;
}

:root {
  --main-color: #CFE7EE;
  --sub-color: #8db9ca;
  --accent-color: #F7EEDC;
  --text-color: #333;
  --bg-color: #fff;
  --red: #ff0000;
  --ttl: #ddcecd;
  --easing: cubic-bezier(0.25, 1, 0.5, 1);
  --transition: .8s var(--easing);
}

.wrap {
  max-width: 1000px;
  margin: 0 auto;
}

a {
  color: #555;
  text-decoration: none;
  transition: all .3s ease-in-out;
}

a:hover {
  opacity: .7;
  text-decoration: none;
  -webkit-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}

img {
  max-width: 100%;
  vertical-align: bottom;
}

p {
  margin: 0 0 1em;
  line-height: 1.8;
}

strong {
  font-weight: bold;
}

p.strong {
  font-size: 24px;
  font-weight: bold;
  text-align: center;
}

small {
  font-size: smaller;
}

ul,
ol,
dl {
  margin: 0;
}

ul li {
  list-style: none;
  margin-left: 0;
}

/* section */
section {
  padding: 10rem 0;
}

.section {
  padding: 10rem 0;
}

/* タイトル */
h1,
h2 {
  font-family: "Kiwi Maru", serif;
  text-align: center;
  font-size: 3rem;
  margin-bottom: 30px;
  color: #333;
}

h3 {
  font-family: "Kiwi Maru", serif;
  text-transform: uppercase;
  font-size: 25px;
  color: #333;
  border-bottom: 1px solid #333;
  padding-bottom: 5px;
  margin-bottom: 30px;
}

h2.section-title {
  text-align: center;
  line-height: 1.2;
}

.section-title .en {
  font-family: "Playfair Display", serif;
  font-size: 3.5rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #2276ad;
  margin: 6rem 0 0;
  text-transform: uppercase;
}

.section-title .jp {
  font-family: "Kiwi Maru", serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: #333;
  margin-top: 0.8rem;
  letter-spacing: 0.05em;
}


.marker {
  background-color: #fff4e0;
}

.red {
  color: var(--red);
}

@media screen and (max-width: 768px) {
  body {
    font-size: 1.4rem;
    background-size: auto;
  }

  .wrap {
    width: 100%;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
  }

  section {
    padding: 6rem 0;
  }

  .section {
    padding: 6rem 0;
  }

  .section-title .en {
    font-size: 24px;
  }
}

/*================================================
 *  ヘッダー
 ================================================*/
#mainnav {
  position: fixed;
  top: -5px;
  left: 0;
  width: 100%;
  height: 86px;
  background-color: transparent;
  z-index: 1000;
}

#nav-container {
  padding: 20px;
  position: relative;
  z-index: 1001;
}

.nav-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}

.nav-left {
    display: flex;
    align-items: center;
  z-index: 1051;
}

.logo-image {
  height: 60px;
}

.nav-center {
  display: flex;
  align-items: center;
  margin-left: auto;
  gap: 2rem;
  margin-right: 40px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* PCメニュー */
.menu-list {
  display: flex;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin-right: 40px;
}

.menu-list li a {
  position: relative;
  display: inline-block;
  color: #333;
  text-decoration: none;
  padding: 5px 0;
  transition: color 0.4s ease;
  font-size: 14px;
}

.menu-list li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: currentColor;
  transition: width 0.3s ease;
}

.menu-list li a:hover::after {
  width: 100%;
}

@media screen and (max-width:1024px) {
  .menu-list li a {
    font-size: 8px;
}
}

@media screen and (max-width:768px) {
  .menu-list {
    display: none;
  }

  .logo-image {
    height: 44px;
  }

  
}

/* === Overlay（そのまま） === */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: var(--sub-color);
  opacity: 0;
  pointer-events: none;
  transition: opacity .12s linear;
  z-index: 9998;
}

.nav-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* === Menu container（そのまま） === */
.accordion-menu {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  /* 初期は非表示 */
  pointer-events: none;
  /* クリック不可 */
  transform: none;
  /* ← translateYをやめる */
  transition: opacity .12s linear;
  visibility: hidden;
  /* フォーカスも外す */
  z-index: 9999;
}

.accordion-menu.open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transform: none;
}

/* ===== 左右2カラムの“本体” ===== */
.nav-center-split {
  display: grid;
  grid-template-columns: 58vw 42vw;
  width: 100vw;
  height: min(84vh, 820px);
  margin: 0;
  padding: 0;
}

/* 左：全面画像（追加） */
.nav-left-side {
  position: relative;
  overflow: hidden;
}

.nav-left-side .nav-photo,
.nav-left-side .nav-photo img {
  width: 100%;
  height: 100%;
  display: block;
}

.nav-left-side .nav-photo {
  height: 100%;
}

.nav-left-side .nav-photo img {
  object-fit: cover;
  object-position: center;
}

/* 右：メニュー */
/* ==========================
   nav-right-side（右メニュー共通）
========================== */
.nav-right-side {
  display: grid;
  align-items: center;
  padding: clamp(24px, 4vw, 56px) clamp(28px, 5vw, 72px);
}

/* メニューの下線アニメ */
.nav_container li a {
  position: relative;
  text-decoration: none;
  font-size: 2.4rem;
}

.nav_container li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background-color: rgba(255, 255, 255, .7);
  transition: width .3s ease;
}

.nav_container li a:hover::after {
  width: 100%;
}

/* 右側の文字色：白固定 */
.nav-right-side a {
  color: #f6f6f6;
}

.nav-right-side a:hover {
  opacity: .8;
}

/* SNSアイコン */
.nav-right-side .link_box {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-top: 3rem;
  justify-content: flex-start;
}

.nav-right-side .link_box .menu-item img {
  width: 28px;
  height: 28px;
  display: block;
}

/* ====== スマホ調整 ====== */
@media (max-width: 900px) {
  .nav-center-split {
    grid-template-columns: 1fr;
    grid-template-rows: 40vh auto;
  }

  .nav-right-side {
    padding: 24px;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .nav-center-split {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 3rem;
  }

  .nav-left-side .nav-photo {
    aspect-ratio: 16 / 9;
  }

  .nav-right-side .link_box {
    justify-content: center;
  }
}


/* ==========================
   メニュー内 3カラムレイアウト（追加）
========================== */

.nav-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(32px, 5vw, 56px);
  max-width: 960px;
  width: 100%;
  margin: 0 auto clamp(32px, 5vw, 64px);
}

.nav-col.nav-col--home,
.nav-col.nav-col--menu {
  text-align: left;
}

.nav-col__title {
  font-size: 1.3rem;
  letter-spacing: 0.12em;
  color: #363330;
  margin: 0 0 0.3rem;
}

.sp-only {
  display: none;
}

.nav-col__title--sub {
  margin-top: 1.6rem;
}

.nav-col__list {
  list-style: none;
  margin: 0;
    padding: 0 0 0 16px;
}

.nav-col__list li + li {
  margin-top: 0.35rem;
}

.nav-col__list a {
  font-size: 1.4rem;
  text-decoration: none;
}

.nav-col__list a:hover {
  text-decoration: underline;
}

/* メニュー中身を縦スクロールできるようにする */
.accordion-menu {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 900px) {
  .nav-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (max-width:768px) {
  .pc-only {
    display: none;
  }

 .sp-only {
    display: block;
  }

  .nav-col__title {
    margin: 0 0 0;
}

  .nav-col__list {
    margin-bottom: 20px;
}

  .nav-col__list a {
  font-size: 1.3rem;
}
}

/* ==========================
   メニュー開いている間のスクロール制御
========================== */
body.is-menu-open {
  overflow: hidden;
  touch-action: none;
}

/* ハンバーガー（2本線→×） */
#nav-toggle {
  position: fixed;
  top: 53px;
  right: 24px;
  width: 40px;
  height: 14px;
  cursor: pointer;
  z-index: 99999;
}

#nav-toggle span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  background: #132f7b;
  border-radius: 2px;
  transition: all 0.4s ease;
}

#nav-toggle span:nth-of-type(1) {
  top: 0;
}

#nav-toggle span:nth-of-type(2) {
  bottom: 0;
}

#nav-toggle.open span:nth-of-type(1) {
  transform: translateY(7px) rotate(45deg);
}

#nav-toggle.open span:nth-of-type(2) {
  transform: translateY(-6px) rotate(-45deg);
}

@media screen and (max-width:768px) {
  #nav-toggle {
    top: 32px;
  }
}


/* =======================================================
* Hero
* ======================================================*/
.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h, 86px));
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem 0 0;

}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 33.333%;
  height: 100%;
  background-color: #e5e3e3;
  z-index: -2;
}

.hero__title-jp-wrap,
.hero__content {
  position: relative;
  z-index: 1;
}

.hero__inner {
  width: min(1500px, 100%);
  margin: 80px auto 0;
}

.hero__title-en {
  text-align: center;
  display: inline-block;
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: 8rem;
  letter-spacing: .06em;
  color: #bbb;
  line-height: 1.05;
  margin: 0;
  padding: 0;
}

.hero__title-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.hero__title-jp-sub {
  margin-top: 1rem;
  font-family: "Kiwi Maru", serif;
  font-size: 1.8rem;
  color: #5e6a70;
  letter-spacing: 0.04em;
  opacity: 0.9;
  line-height: 1.1;
}

/* 日本語タイトル＋落下ライン */
.hero__title-jp-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 3rem;
  margin-bottom: 1.2rem;
}

.hero__title-jp {
  text-align: center;
  font-family: "Kiwi Maru", serif;
  color: #2d4b5a;
  font-size: clamp(1.6rem, 2.2vw, 2.2rem);
  margin: 0;
  line-height: 1.5;
}

/* 落ちる四角ライン */
.falling-line {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 0;
  margin: 8px auto 0;
  height: var(--boxSize, 6px);
  width: 0;
  overflow: visible;
}

p.hero__lead {
    text-align: center;
}



.falling-line .box-blue {
  width: var(--boxSize, 6px);
  height: var(--boxSize, 6px);
  background: #8DB9CA;
  opacity: 0;
  will-change: transform, opacity;
}

@media screen and (max-width:768px) {
  .hero__inner {
    width: 100%;
    max-width: none;
    padding: 0 12px;
    margin: 50px auto 0;
  }

  .hero__title-en {
    font-size: 2.8rem;
  }
}

/* 背景アクセント帯（右1/3） */
.bg-accentRight {
  position: relative;
  z-index: 0;
}

.bg-accentRight::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 33.333%;
  height: 100%;
  background-color: #e5e3e3;
  z-index: -1;
}

.bg-accentLeft {
  position: relative;
  z-index: 0;
}

.bg-accentLeft::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  /* ← right を left に変更 */
  width: 33.333%;
  /* ← 比率は右側と同じに */
  height: 100%;
  background-color: #e5e3e3;
  z-index: -1;
}


/* ===================================
   2カラム：治療 / ホワイトニング
=================================== */
.split {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: 4rem;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 26px rgba(0, 0, 0, .08);
  height: 60vh;
}

.split::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  transform: translateX(-0.5px);
  background: #e6e6e6;
  pointer-events: none;
}

.split__divider,
.split__dot {
  display: none;
}

.split a:hover {
  opacity: 1;
}

/* ===============================
   パネル（a.panel でも .panel でもOK）
================================= */
.panel {
  position: relative;
  display: block;
  min-height: inherit;
  overflow: hidden;
}

a.panel img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transition: transform .6s var(--easing), opacity .6s var(--easing);
  will-change: transform;
  transform-origin: center center;
  backface-visibility: hidden;
}

/* a.panel:hover img {
  filter: brightness(1);
} */

/* 左右で見せ方を微調整したい場合だけ個別指定 */
.panel--left img {
  object-position: 50% center;
}

.panel--right img {
  object-position: 50% center;
}

@media (hover:hover) and (pointer:fine) {

  .panel:hover img,
  .panel:focus-visible img {
    transform: scale(1.3);
  }
}


/* 下グラデーション（文字読みやすく） */
.panel__mask::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .45) 0%, rgba(0, 0, 0, 0) 55%);
  z-index: 1;
  pointer-events: none;
}

/* =====================================
   パネル内ラベル（上下中央表示・最初から見える）
===================================== */
.panel__label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 3;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .3);
  width: min(90%, 560px);
  pointer-events: none;
  line-height: 1.4;
  opacity: 1;
  padding: 10px 0;
}

.panel__label::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 16px;
  backdrop-filter: blur(2px);
  z-index: -1;
}

/* 各行デザイン */
.label__main {
  margin: .25em 0 .1em;
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: clamp(2rem, 3.5vw, 3rem);
  letter-spacing: .06em;
  line-height: 1.1;
}

.label__jp {
  font-family: "Kiwi Maru", serif;
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  margin-top: .3rem;
  opacity: .95;
}

.panel__label--center {
  text-align: center;
  color: #fff;
}

@media (max-width: 1024px) {
  .split {
    grid-template-columns: 1fr;
    border-radius: 14px;
  }

  .split__divider,
  .split__dot {
    display: none;
  }

  a.panel img {
    object-position: center;
  }

  .panel__label {
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 86%;
  }

  .label__main {
    font-size: clamp(1.8rem, 5vw, 2.4rem);
  }

  .label__jp {
    font-size: 1.1rem;
  }

}

@media (max-width: 768px) {
  .split {
    grid-template-columns: 1fr;
    border-radius: 14px;
    min-height: auto;
  }

  .split__divider,
  .split__dot {
    display: none;
  }

  .panel {
    height: 100%;
    min-height: auto;
    position: relative;
  }

  .panel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  /* 治療画像 */
  #treatment picture>img {
    object-fit: cover;
    object-position: 50% 71%;
  }

  /* ホワイトニング画像 */
  #prevention picture>img {
    object-fit: cover;
    object-position: 50% 30%;
  }

  /* ラベルは中央の少し下。行長も短めに */
  .panel__label {
    top: 18%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56%;
  }

  .panel__label::before {
    background: rgba(0, 0, 0, .22);
    border-radius: 12px;
  }

  .label__en {
    font-size: .95rem;
    letter-spacing: .12em;
  }

  .label__main {
    font-size: clamp(1.6rem, 6vw, 2.1rem);
  }

  .label__jp {
    font-size: 1rem;
  }

  .panel__cta {
    font-size: .95rem;
    padding: 6px 12px;
  }
}

/* =======================================
   Clinic Info
======================================= */
.clinic-info__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 3rem;
  flex-wrap: wrap;
}

.clinic-info__text {
  flex: 1 1 45%;
}

.clinic-info__image {
  flex: 1 1 45%;
}

.clinic-info__text .lead {
  font-size: 1.6rem;
  color: #333;
  margin: 1.5em 0;
  line-height: 1.8;
}

.clinic-info__image img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .clinic-info__inner {
    flex-direction: column;
  }

  .clinic-info__image img {
    max-width: 100%;
    height: auto;
  }
}


/* =======================================
   feature
======================================= */
.section.feature {
  background-color: var(--sub-color);
}

#feature h2.section-title span.en {
  color: #fff;
}

.section-lead {
  text-align: center;
  color: #fff;
  letter-spacing: .08em;
  font-size: 2rem;
}

.feature__items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 960px) {
  .feature__items {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.feature__item {
  background: #fff;
  border-radius: 16px;
  padding: 2.2rem 1.6rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .06);
  text-align: center;
  transition: transform .25s ease, box-shadow .25s ease;
}

.feature__item:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, .08);
}

.feature__icon {
  width: 84px;
  height: 84px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: color-mix(in oklab, #8DB9CA 18%, white);
  display: grid;
  place-items: center;
  color: color-mix(in oklab, #8DB9CA 70%, black);
}

.feature__item h3 {
  font-family: "Kiwi Maru", serif;
  font-size: 2rem;
  color: var(--tiara-ink);
  margin: .4rem 0 .6rem;
  line-height: 1.4;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  flex-wrap: wrap;
}

.feature__item .num {
  display: inline-block;
  min-width: 2.2rem;
  padding: .18rem .5rem;
  font-size: 2rem;
  border: 1px solid color-mix(in oklab, var(--tiara-accent) 70%, white);
  color: color-mix(in oklab, var(--tiara-accent) 80%, black);
  border-radius: 999px;
  line-height: 1.1;
  letter-spacing: .06em;
}

.feature__item p {
  color: var(--tiara-muted);
  line-height: 1.8;
  margin: 0;
}

.feature__icon svg {
  width: 48px;
  height: 48px;
}

@media (max-width:640px) {
  .feature__icon {
    width: 96px;
    height: 96px;
  }

  .feature__icon svg {
    width: 56px;
    height: 56px;
  }
}

/* =======================================================
*Clinic Gallery
* ===================================================== */
.clinic-gallery .section-title {
  text-align: center;
}

.section-lead {
  text-align: center;
  margin: 1rem 0 3rem;
  color: #555;
  font-size: 2rem;
  letter-spacing: 0.05em;
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.gallery__item {
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
}

.gallery__item img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}

.gallery__item figcaption {
  text-align: center;
  padding: 0.8rem 0;
  font-family: "Kiwi Maru", serif;
  font-size: 1.6rem;
  background: #fff;
  border-top: 1px solid #eee;
}

.clinic-gallery__intro {
  margin-top: 30px;
}

@media (max-width: 1024px) {
  .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

@media (max-width: 768px) {
  .section-lead {
    font-size: 1.4rem;
  }
}

/* =======================================================
*treatment-index
* ===================================================== */
.treatment-index {
  background: #f7f9f9;
  ;
}

.treatment-index .tgrid {
  --card-bg: #efe6d8;
  display: grid;
  gap: 1.6rem;
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1100px) {
  .treatment-index .tgrid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .treatment-index .tgrid {
    grid-template-columns: repeat(2, 1fr);
  }

    .tcard__icon i {
    font-size: 50px;  /* ← 好きなサイズに調整してOK */
  }
}

/* @media (max-width: 480px) {
  .treatment-index .tgrid {
    grid-template-columns: 1fr;
  }
} */

/* カード：正方形・角丸・影 */
.tcard {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  border-radius: 16px;
  background: #98c6d0;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 0 rgba(0, 0, 0, .05) inset;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.tcard:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, .10);
}

/* アイコンとラベル */
.tcard__icon {
  font-size: 6.8rem;
  color: #fff;
}

.tcard__icon img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 0 0 rgba(0, 0, 0, 0));
  /* 余計な色を付けない */
}

.tcard__label {
  font-weight: 700;
  font-size: 1.8rem;
  line-height: 1.3;
  text-align: center;
  color: #132f7b;
  padding-bottom: 20px;
}

/* =======================================================
*doctor
* ===================================================== */
#doctor {
  position: relative;
  overflow: hidden; /* 回転で飛び出す部分を隠す */
}

/* 回転する背景 */
#doctor::before {
  content: "";
  position: absolute;
  inset: -40%; /* ← 周囲に25%はみ出すサイズで大きくする */
  background: url("../images/color.png") no-repeat center center / contain;
  opacity: 0.7;
  animation: spin 80s linear infinite;
  z-index: -1;
}

/* 回転アニメーション */
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}


/* =======================================================
* news
* ======================================================= */
section#news {
  background-color: #f9f9f9;
}

iframe#blogCont {
  width: 100%;
}

/* =======================================================
*access
* ======================================================= */
#access {
  text-align: center;
}

table {
  border-collapse: collapse;
}

th,
td {
  padding: 0.5rem 1rem;
  text-align: left;
  border-bottom: 1px solid #b5b5b5;
}

td.name {
  width: 180px;
  text-align: left;
}

.name i {
  color: #5A718B;
  margin-right: 5px;
}

td a {
  color: #333;
}

.mapArea {
  margin-top: 80px;
  text-align: center;
}

.mapArea iframe {
  width: 100%;
}

@media (max-width: 768px) {

  th,
  td {
    padding: 0.5rem 0rem;
    font-size: 13px;
  }

  td.name {
    width: 100px;
  }
}

caption {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  color: #6c757d;
  text-align: left;
  caption-side: bottom;
}

th {
  text-align: inherit;
}

label {
  display: inline-block;
  margin-bottom: 0.5rem;
  padding-left: 5px;
}

.photo_container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 0 auto;
}

.photo_box {
  max-width: 1000px;
  display: flex;
  justify-content: space-between;
  margin: 20px 0 80px 0;
}


.photo_box img {
  width: calc(1000px / 3 - 20px);
  height: auto;
  margin: 0 10px;
}

@media screen and (max-width:1024px) {
  .photo_box img {
    width: calc(820px / 3 - 20px);
  }
}

@media screen and (max-width:768px) {
  .photo_box {
    margin: 0 10px;
  }

  .photo_box img {
    margin-bottom: 10px;
    width: calc(720px / 3 - 20px);
  }
}

@media screen and (max-width:520px) {

  .photo_box {
    flex-direction: column;
    align-items: center;
    margin: 10px auto;
  }
}


/* =======================================================
*sub_main
* ======================================================= */
#sub_main {
  /* display: flex;
  justify-content: space-evenly; */
  flex-wrap: wrap;
  max-width: 1200px;
  height: 300px;
  margin-top: 50px;
  align-items: center;
  margin: 50px auto;
}

.sub_block {
  width: 40%;
}

.sub_img {
  width: 50%;
}

.sub_img img {
  width: 100%;
  border-radius: 40%;
}

h2.playfair-display {
  font-size: 40px;
  font-style: italic;
  font-weight: 300;
  line-height: 1.2;
}

h2.playfair-display span {
  font-size: 20px;
  color: var(--sub-color);
  font-style: normal;
}

.sub_ttl {
  max-width: 400px;
  margin: 0 auto;
}

.sub_ttl p {
  color: var(--color-theme);
  font-weight: bold;
  font-size: 20px;
}

.sub_ttl.menuText {
  position: absolute;
  top: 3%;
  left: 40%;
}

.sp_only {
  display: none;
}

@media screen and (max-width:768px) {
  #sub_main {
    flex-direction: column-reverse;
    margin-top: 100px;
    height: auto;
  }

  .sub_block {
    width: 100%;
  }

  .pc_only {
    display: none;
  }

  .sp_only {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
  }

  .sub_img {
    position: relative;
    width: 90%;
  }

  .sub_ttl p {
    font-size: 14px;
    padding: 30px 20px 0;
    margin-bottom: 0;
  }

  .sub_ttl.menuText {
    top: 30px;
    width: 219px;
    left: 2%;
    z-index: 5;
  }
}

@media screen and (max-width:520px) {
  h2.playfair-display {
    top: 225px;
    left: 205px;
    font-size: 30px;
    line-height: .8;
  }

  h2.playfair-display span {
    font-size: 16px;
  }
}

/* =======================================
   FAQ
======================================= */

.faq {
  background-color: #f5fafc; /* ほんのり水色の背景 */
  padding: 6rem 0;
}

/* FAQ リスト全体 */
.faq__list {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

/* 1つ1つのQ&Aカード */
.faq-item {
  background: #ffffff;
  border-radius: 12px;
  padding: 1.8rem 2.2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  border-left: 4px solid #9ebfcc; /* treat-nav と合わせた色 */
}

/* 質問 */
.faq-question {
  font-size: 1.6rem;
  font-weight: 600;
  margin: 0 0 0.8rem;
  color: #234353;
}

/* 答え */
.faq-answer {
  font-size: 1.5rem;
  line-height: 1.8;
  margin: 0;
  color: #555;
}

@media screen and (max-width:1024px) {
  .faq__list {
    padding: 0 15px;
}
}

/* スマホ調整 */
@media screen and (max-width: 768px) {
  .faq {
    padding: 4rem 0;
  }

  .faq-item {
    padding: 1.6rem 1.6rem;
  }

  .faq-question {
    font-size: 1.5rem;
  }

  .faq-answer {
    font-size: 1.4rem;
  }
}

/* ===========================
   First Visit（初めての方へ）
=========================== */

.first-visit {
  background: #f7f9fb;
  padding: 6rem 0;
}

.first-visit__intro {
  text-align: center;
  margin-bottom: 3.5rem;
  color: #555;
  line-height: 1.8;
  font-size: 1.4rem;
}

/* ---------- STEP：flexで横並び ---------- */
.first-visit__flow {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  flex-wrap: wrap; /* ← スマホでは折り返す */
  gap: 1.5rem;
  margin-bottom: 4rem;
}

/* STEPカード */
.first-visit__step {
  flex: 1 1 calc(25% - 1.5rem); /* PC：4つ横並び */
  min-width: 220px;
  background: #fff;
  border-radius: 16px;
  padding: 2.2rem 2rem 2rem;
  position: relative;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

/* STEP番号バッジ */
.first-visit__step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #1a4c8b;
  color: #fff;
  font-weight: 600;
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
}

/* STEPタイトル */
.first-visit__step-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
  color: #234353;
}

/* STEP本文 */
.first-visit__step p {
  font-size: 1.35rem;
  color: #555;
  line-height: 1.7;
}

/* 矢印（PC：横向き） */
.first-visit__step::after {
  content: "➜";
  position: absolute;
  top: 50%;
  right: -1rem;
  transform: translateY(-50%);
  font-size: 1.8rem;
  color: #b7c7dd;
}

/* 最後だけ矢印無し */
.first-visit__step:last-child::after {
  content: none;
}

/* ---------- メモカード ---------- */
.first-visit__notes {
  display: flex;
      flex-direction: column;
  flex-wrap: wrap;
  gap: 2rem;
}

.first-visit__note-item {
  min-width: 240px;
  background: #fff;
  border-radius: 14px;
  padding: 2rem 2.4rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

.first-visit__note-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: #1a4c8b;
  margin-bottom: 0.6rem;
  border-bottom: 1px solid #e0e6f0;
  padding-bottom: 0.4rem;
}

.first-visit__note-title i {
  margin-right: 0.5rem;
  color: #1a4c8b;
  font-size: 1.6rem;
}

.first-visit__note-item p {
  font-size: 1.35rem;
  color: #555;
  line-height: 1.7;
}

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

  .first-visit {
    padding: 4rem 0;
  }

  .first-visit__step {
    flex: 1 1 100%; /* 1列表示 */
  }

  /* SP：矢印を下向きに変更して "縦の流れ" に */
  .first-visit__step::after {
    content: "↓";
    right: 50%;
    top: auto;
    bottom: -1.4rem;
    transform: translateX(50%);
  }

  .first-visit__step:last-child::after {
    content: none;
  }

  .first-visit__notes {
    flex-direction: column;
  }

  .first-visit__note-item {
    flex: 1 1 100%;
  }
}



/* =======================================================
policy
*
* ======================================================= */
#policy h2 {
  margin-top: 80px;
  font-size: 30px;
}

#policy h3 {
  margin-top: 50px;
}

#policy dt {
  padding-bottom: 5px;
}

#policy dd {
  padding-bottom: 10px;
}

.article ol {
  list-style: none;
  counter-reset: item;
  padding-left: 0;
}

.article ol li {
  counter-increment: item;
  position: relative;
  padding-left: 25px;
}

.article ol li::before {
  content: counter(item) ". ";
  position: absolute;
  left: 0;
}

@media screen and (max-width:768px) {
  #policy h2 {
    font-size: 20px;
  }
}

/* ===========================
   FOOTER 共通
   =========================== */

.site-footer {
  background-color: var(--sub-color);
  color: #fff;
  padding: 40px 0 20px;
  font-size: 1.3rem;
}

.site-footer a {
  color: #fff;
  text-decoration: none;
}
.site-footer a:hover {
  text-decoration: underline;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  align-items: flex-start;
}

/* 左側：ロゴ・住所など */
.footer-brand {
  flex: 1;
}

.footer-logo img {
  width: 180px;
  max-width: 100%;
  display: block;
  margin-bottom: 10px;
}

.footer-clinic-name {
  font-family: 'Kiwi Maru', serif;
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.footer-address,
.footer-time {
  line-height: 1.8;
}

/* ===========================
   右側：フッターナビ（PC）
   =========================== */

/* PC では4カラム表示 */
.footer-nav {
  flex: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 30px;
}

.footer-nav-block {
  display: flex;
  flex-direction: column;
}

/* タイトル（・サイトメニュー など） */
.footer-nav-title,
.footer-nav-block-title {
  font-weight: bold;
  margin-bottom: 8px;
  font-size: 1.3rem;
}

/* リスト共通 */
.footer-menu,
.footer-nav-block ul {
  list-style: none;
    padding-left: 14px;
}

.footer-menu li,
.footer-nav-block li {
  margin-bottom: 6px;
}

/* ===========================
   フッター下部
   =========================== */
.footer-bottom {
  text-align: center;
  margin-top: 30px;
  font-size: 1.1rem;
  opacity: 0.8;
}

/* ===========================
   RESPONSIVE（スマホ）
   =========================== */
@media (max-width: 768px) {

  /* ロゴ＋医院情報 → 上 / ナビ → 下 */
  .footer-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }

  /* ナビ部分を2列グリッドにする */
  .footer-nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 16px;
    row-gap: 8px;  /* 行間は少し詰める */
  }

  /* =====＝ 並び順（修正版） ======
     左列：
        ① サイトメニュー
        ② 診療メニュー

     右列：
        ① 予防治療 ← ★ここに来る！
        ② 歯のお悩み（＋SNS）
  */

  /* 左列 */
  .footer-nav-block--site {
    grid-area: 1 / 1 / 2 / 2;  /* row1 col1 */
  }
  .footer-nav-block--menu {
    grid-area: 2 / 1 / 3 / 2;  /* row2 col1 */
  }

  /* 右列 */
  .footer-nav-block--preventive {
    grid-area: 1 / 2 / 2 / 3;  /* ★row1 col2 → 一番上へ！ */
  }

  .footer-nav-block--trouble {
    grid-area: 2 / 2 / 4 / 3;  /* 予防治療の下に縦長で入る */
  }

  /* 行間 */
  .footer-menu li,
  .footer-nav-block li {
    margin-bottom: 4px;
  }

  /* 各リストの最後は余白なし */
  .footer-menu li:last-child,
  .footer-nav-block ul li:last-child {
    margin-bottom: 0;
  }

  .footer-nav-title,
  .footer-nav-block-title {
    margin: 1.2rem 0 0.4rem;
  }
}




/*================================================
 *  ページトップへの戻り
 ================================================*/
#pagetop {
  width: 90px;
  height: 90px;
  position: fixed;
  right: 0;
  bottom: 0;
  opacity: 0.6;
}

#pagetop a::before {
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  content: '\f102';
  font-size: 25px;
  color: var(--sub-color);
  position: absolute;
  width: 25px;
  height: 25px;
  top: -40px;
  bottom: 0;
  right: 0;
  left: 0;
  margin: auto;
  text-align: center;
}

#pagetop a::after {
  content: 'PAGE TOP';
  font-size: 13px;
  position: absolute;
  top: 45px;
  bottom: 0;
  right: 0;
  left: 0;
  margin: auto;
  text-align: center;
  color: var(--sub-color);
}

