/*
 * 共通CSS - スマホ用（768px以下）
 *
 * 全ページで読み込まれます
 */

/* ========================================
   Reset & Base Styles
======================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

/* ========================================
   Mobile Styles (max-width: 768px)
======================================== */
.pc_only,
.pcOnly,
.pc-only,
.PC_only,
.PC-only {
  display: none;
}
/* ========================================
   Mobile Styles (max-width: 768px)
======================================== */

/* Inherit design tokens from PC CSS */
:root {
  /* Colors */
  --color-text: #000000;
  --color-bg: #ffffff;
  --color-accent-tan: #b8a991;
  --color-accent-brown: #a49276;
  --color-bg-beige: #f2ede8;
  --color-bg-blue: #e1eeef;
  --color-bg-cream: #eee6da;
  --color-gray: #c4c4c4;
  --color-gray-light: #f0f0f0;
  --color-gray-border: #d9d9d9;
  --color-bg-overlay: rgba(255, 255, 255, 0.34);
  --color-btn-brown: #b8a991;
  --color-btn-white: #fff;

  /* Typography */
  --font-primary: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Meiryo",
    system-ui, sans-serif;
  --font-secondary: "TOT-ShizukaMin StdN", serif;
  --font-accent: "Inter", sans-serif;
  --font-futura: "Futura PT", sans-serif;
}

/* ========================================
 Header (Mobile)
======================================== */
.header {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 1000;
  width: 100%;
  padding: 8px 12px;
}
.header::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(30px);
  /* opacity: 0; */
  transition: opacity 0.3s ease;
}
.header.active::before {
  opacity: 1;
}
.header.active.menu-open::before {
  opacity: 0;
}

.header__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 40px;
}

.header__logo {
  display: flex;
  align-items: center;
  transition: opacity 0.3s ease;
}

.header.menu-open .header__logo {
  opacity: 0;
  pointer-events: none;
}

.header__logo-cont {
  width: 40px;
}

.header__logo-text {
  font-family: var(--font-accent);
  font-size: 22px;
  line-height: 1.21;
  text-shadow: 2px 0px 8px rgba(0, 0, 0, 0.4);
}

.header__title {
  font-size: 10px;
  line-height: 1.2;
  font-weight: 400;
  margin-top: 0;
  margin-left: 12px;
}

.header__info {
}

/* SPナビゲーション */
.header__nav.sp_only {
  position: fixed;
  top: 0px; /* ヘッダーの高さ分下げる */
  left: 0;
  z-index: 999;
  width: 100%;
  height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  background-color: rgba(238, 230, 218, 0.4);
  opacity: 0;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(50px);
  pointer-events: none;
  overflow: scroll;
}
.header__nav.sp_only:before {
  /* content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: -1;
  display: block;
  width: 100%;
  height: 100svh;
  background: rgba(235,235,235,0.3); */
}
.header__nav.sp_only.active {
  opacity: 1;
  pointer-events: auto;
}

.header__nav-item {
  font-size: 16px;
  line-height: 1.5;
  padding: 10px 20px;
  width: 100%;
  text-align: center;
}

/* ハンバーガーボタン */
.header__hamburger {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 7px;
  width: 36px;
  position: relative;
  z-index: 1000;
}

.header__hamburger span {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--color-text);
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

/* ハンバーガーアイコンの回転アニメーション */
.header__hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.header__hamburger.active span:nth-child(2) {
  opacity: 0;
}

.header__hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ========================================
  パンくずリスト
======================================== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  line-height: 2;
}

.breadcrumb__separator {
  font-size: 10px;
}

.breadcrumb__current {
  font-size: 10px;
  line-height: 1.2;
}

/* ========================================
  保険診療・自由診療
======================================== */
.treatment-menu {
  width: 100%;
  max-width: 500px;
  margin: 40px auto 10px auto;
}

.treatment-menu__section {
  padding: 5px 0 7px 0;
  border-radius: 14px;
}

.treatment-menu__section.insured {
  background: var(--color-bg-blue);
  margin: 0 auto 5px auto;
}

.treatment-menu__section.private {
  background: var(--color-bg-cream);
}

.treatment-menu__title {
  font-size: 16px;
  line-height: 1;
  text-align: center;
  font-weight: 400;
  margin-bottom: 16px;
}

.treatment-menu__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  width: calc(100% - 8px);
  margin: 0 auto;
}

.treatment-menu__item {
  width: calc((100% - 6px) / 4);
  background: rgba(255, 255, 255, 0.6);
  border-radius: 10px;
  padding: 2px 0px 2px 0px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.treatment-menu span {
  display: inline-block;
}

.treatment-menu .text-thin {
  letter-spacing: -0.1em;
}

/* .treatment-menu__item:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
} */

.treatment-menu__img {
  width: 10vw;
  max-width: 50px;
  height: auto;
  aspect-ratio: 94 / 79;
  object-fit: cover;
}

.treatment-menu__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 28px;
  text-align: center;
}

.treatment-menu__name {
  font-size: 8px;
  line-height: 1;
  font-weight: 400;
}
.treatment-menu__name span{
  display: inline-block;
}
.treatment-menu__desc {
  font-size: 7px;
  line-height: 1;
  font-weight: 400;
}

@media (min-width: 360px) {
  .treatment-menu__item {
    width: calc((100% - 18px) / 4);
  }
  .treatment-menu__grid {
    gap: 6px;
  }
}
@media (min-width: 500px) {
  .treatment-menu__grid {
    width: calc(100% - 40px);
  }
}

.treatment-pop {
  width: calc(100% - 8px);
  margin: 25px auto 0 auto;
}
.treatment-pop.private {
  margin-bottom: 10px;
}

.treatment-pop .treatment-menu__grid {
  width: 100%;
}

/* ========================================
   Footer (Mobile)
======================================== */
.footer {
  display: none;
}

/* ==========================================================================
   Navi menu
========================================================================== */
.header__nav .menu-header {
  margin: 0 auto;
  padding-top: 25px;
  text-align: center;
}

.header__nav .clinic-logo {
  margin-bottom: 15px;
}
.header__nav .clinic-logo img{
  width: 80px;
  margin: 0 auto;
}
.header__nav .clinic-name {
  font-size: 13px;
  letter-spacing: 0.1em;
  line-height: 2;
  font-weight: 400;
  margin-top: 0;
  margin-bottom: 0;
}

.header__nav .clinic-address {
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: 0.2em;
  margin-top: 20px;
}

.header__nav .clinic-phone {
  font-size: 26px;
  line-height: 1;
  letter-spacing: 0.2em;
  font-weight: 400;
  margin-top: 20px;
  margin-bottom: 0;
}

.header__nav .clinic-hours {
  font-size: 13px;
  line-height: 2;
  letter-spacing: 0.1em;
  margin-top: 0px;
  margin-bottom: 20px;
}

.header__nav .reservation-btn {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.header__nav .reservation-btn a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 200px;
  height: 50px;
  background-color: #97876f;
  color: #fff;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.3em;
  line-height: 2.6;
  border-radius: 0;
  transition: opacity 0.3s ease;
}

/* .header__nav .reservation-btn a:hover {
  opacity: 0.8;
} */

/* ==========================================================================
     Navigation Menu
========================================================================== */
.header__nav .menu-nav {
  width: calc(100% - 20px);
  max-width: 500px;
  margin-top: 10px;
}

.header__nav .nav-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
}

.header__nav .nav-item {
  width: calc(50% - 6px);
  margin-right: 6px;
  margin-bottom: 6px;
}
.header__nav .nav-item:nth-child(2n) {
  margin-right: 0;
}

.header__nav .nav-item a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border-radius: 6px;
  aspect-ratio: 4/1;
  background: rgba(255, 255, 255, 0.3);
  box-shadow: 0px 0px 4px 4px rgba(151, 135, 111, 0.03);
  font-size: clamp(13px, calc(13px + (100vw - 320px) * (16 - 13) / (400 - 320)), 16px);
  letter-spacing: 0.1em;
  text-align: center;
  transition: background-color 0.3s ease;
}

/* .header__nav .nav-item a:hover {
  background-color: rgba(255, 255, 255, 0.5);
} */


.arrow-01 {
  position: relative;
}

.arrow-01:before {
  content: "";
  position: absolute;
  bottom: -3px;
  right: 0;
  display: block;
  width: 122px;
  height: 9px;
  background: url(../../assets/imgs/common/arrow-01.svg);
  background-size: 100% auto;
}
