/* Zen Old Mincho: ヒーローコピー用フォントを確実に読み込む */
@import url('https://fonts.googleapis.com/css2?family=Zen+Old+Mincho:wght@400;700;900&display=swap');

/* =======================================　共通レイアウト =======================================　*/
html {
  scroll-behavior: smooth;
}

section[id] {
  scroll-margin-top: 80px;
}

/* =======================================　ヘッダー（参照サイト準拠） =======================================　*/
/* #header（テーマstyle.css/responsive.css）を確実に上書きするため ID+class で詳細度を上げる */
#header.header,
.header {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  height: auto;
  background: #FEFDFB;
  background-color: #FEFDFB;
  border: none;
  border-bottom: 1px solid #e9e9e2;
  border-radius: 0;
  box-shadow: none;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

#header.header.header--scrolled,
.header.header--scrolled {
  background-color: #FEFDFB;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

#header.header .header__inner,
.header__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.header__logo a {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 11px;
}

.header__logo-img {
  height: 28px;
  width: auto;
}

.header__logo-tagline {
  height: 15px;
  width: auto;
  object-fit: contain;
}

.header__nav {
  margin-left: auto;
  margin-right: 32px;
  height: 100%;
}

.header__nav-list {
  display: flex;
  gap: 32px;
  list-style: none;
  padding: 0;
  margin: 0;
  height: 100%;
  font-family: var(--font-ja, 'Zen Kaku Gothic New', 'Hiragino Kaku Gothic ProN', sans-serif);
}

.header__nav-list a {
  font-size: 16px;
  font-weight: 500;
  color: #42220f;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  transition: color 0.25s ease;
}

.header__nav-list a:hover {
  color: #8a6d45;
}

/* PC: マイリリーについて ドロップダウン（Figma 7649:13531） */
.header__nav-item {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
}

.header__dropdown {
  position: absolute;
  left: 0;
  top: 100%;
  padding: 0 16px 16px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 4px;
  list-style: none;
  margin: 0;
  min-width: 200px;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.header__nav-item:hover .header__dropdown,
.header__nav-item:focus-within .header__dropdown {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.header__dropdown-item {
  margin: 0;
  padding: 0;
}

.header__dropdown-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  font-size: 14px;
  font-weight: 500;
  color: #42220f;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.25s ease;
}

.header__dropdown-link:hover {
  color: #8a6d45;
}

.header__dropdown-line {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  width: 6px;
  height: 1px;
  background-color: #b2a581;
}

.header__dropdown-line img {
  display: none;
}

.btn--header-filled {
  position: relative;
  overflow: hidden;
  background-color: transparent;
  color: #fefdfb;
  border: none;
  box-shadow: none;
  padding: 16px;
  font-size: 16px;
  font-weight: 500;
  font-family: var(--font-ja, 'Zen Kaku Gothic New', 'Hiragino Kaku Gothic ProN', sans-serif);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  transition: color 0.3s ease, filter 0.3s ease;
  cursor: pointer;
  text-decoration: none;
}

.btn--header-filled__bg {
  position: absolute;
  inset: 0;
  background-color: #73885a;
  z-index: 0;
  transition: background-color 0.3s ease;
}

.btn--header-filled__texture {
  position: absolute;
  inset: 0;
  background-image: url("../img/renewal/cta-texture.jpg");
  background-size: cover;
  background-position: center;
  mix-blend-mode: multiply;
  opacity: 0.6;
  z-index: 1;
}

.btn--header-filled__content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn--header-filled:hover {
  color: #fefdfb;
  box-shadow: none;
  filter: brightness(0.9);
}

.btn--header-filled:hover .btn--header-filled__bg {
  background-color: #5f6f4a;
}

.btn--header-filled__arrow {
  flex-shrink: 0;
  width: 6px;
  height: 10px;
  display: block;
  object-fit: contain;
}

.header__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.header__hamburger-line {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #75612c;
  transition: all 0.3s ease;
  transform-origin: center;
}

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

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

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

/* SP・Tablet: ナビをハンバーガーに切り替え（1250px以下） */
@media (max-width: 1250px) {
  .header__nav {
    display: none;
  }

  .header__hamburger {
    display: flex;
  }

  .header__cta {
    display: none;
  }

  #header.header .header__inner,
  .header__inner {
    padding: 0 16px;
    height: 56px;
  }

  .header__logo-img {
    height: 22px;
  }

  .header__logo-tagline {
    height: 12px;
    width: auto;
    object-fit: contain;
  }

  /* ヘッダー56px化に合わせてヒーローのmargin-topを調整 */
  #container .header-content.hero {
    margin-top: 56px;
  }
}

#container {
  position: relative;
  overflow-x: hidden;
}

#container .header-content {
  position: relative;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

#header_button img {
  width: 36px;
  height: 34.37px;
  position: static;
  display: inline-block;
}

@keyframes zoom {
  0% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =======================================　Hero（キービジュアル・トップページ・参照HTML準拠） =======================================　*/
.header-content.hero,
.header-content.hero * {
  font-family: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", sans-serif;
}

/* KVはヘッダー下端を起点に配置（重ならないよう margin-top でヘッダー高さ分下げる）
   全サイズ vw 比率（1440px 基準）で統一し、背景とオーバーレイが同率で縮む */
.header-content.hero {
  position: relative;
  width: 100%;
  max-width: 1440px;
  height: min(680px, 47.22vw);
  overflow: visible;
  margin-top: 72px; /* ヘッダー高さ（PC） */
  box-sizing: border-box;
  z-index: 5;
  margin-left: auto;
  margin-right: auto;
}

/* 背景画像は幅いっぱい（最大1440px） */
.hero__bg {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 1440px;
  z-index: 0;
  overflow: hidden;
}

.hero__bg img {
  width: 100%;
  height: min(680px, 47.22vw);
  display: block;
  object-fit: cover;
  object-position: 50% center;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to left, rgba(251, 253, 249, 0) 30%, rgba(251, 253, 249, 0.6) 65%);
  pointer-events: none;
  z-index: 1;
}

.hero__content {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: min(144px, 10vw) 0 0 min(200px, 13.89vw);
  z-index: 2;
}

.hero__main-text {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  max-width: min(623px, 43.25vw);
}

/* 累計診療件数バッジ（Figma PC 7649:13632 / SP 7649:12349）
   PC: main-text 基準で top:0（32px上に調整）※1.2倍スケール */
.hero__achievement {
  position: absolute;
  top: 0;
  right: min(-24px, -1.67vw);
  width: min(199px, 13.84vw);
  height: auto;
  z-index: 2;
}

.hero__achievement-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero__insurance-badge {
  display: block;
  height: min(58px, 4vw);
  width: auto;
  margin-bottom: min(32px, 2.22vw);
}

/* コピー（Figma PC 7649:13599 / SP 7649:12365 準拠・テキスト+背景グラデーション+ロゴ） */
.hero__title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: min(4px, 0.28vw);
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
  max-width: min(623px, 43.25vw);
}

.hero__copy-line {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  padding: min(16px, 1.11vw) min(12px, 0.83vw);
  width: fit-content;
  max-width: 100%;
}

.hero__copy-line::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(254, 255, 254, 0) 0%, rgba(254, 255, 254, 0) 17%, rgba(236, 244, 233, 1) 87%, rgba(236, 244, 233, 1) 100%);
  pointer-events: none;
  z-index: 0;
}

.hero__copy-text {
  position: relative;
  z-index: 1;
  font-family: "Zen Old Mincho", serif;
  font-weight: 700;
  font-size: min(64px, 4.44vw);
  line-height: 1;
  letter-spacing: min(7.68px, 0.53vw);
  color: #75612c;
  white-space: nowrap;
}

.hero__copy-img-wrap {
  display: block;
  max-width: min(623px, 43.25vw);
}

.hero__copy-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: left top;
}

.hero__copy-logo {
  display: block;
  padding-left: min(16px, 1.11vw);
  margin-top: min(24px, 1.67vw);
}

.hero__logo {
  width: min(284px, 19.75vw);
  height: min(70px, 4.84vw);
  object-fit: contain;
  object-position: left center;
}

/* SP用注釈（ロゴ横）: PCでは非表示 */
.hero__footnote-sp {
  display: none;
}

/* PC: Figma 7649:13585 - フロー内配置、116×134px each, gap 12px */
.hero__badges {
  position: static;
  transform: none;
  margin: min(40px, 2.78vw) 0 0;
  padding-left: min(16px, 1.11vw);
  z-index: 10;
  display: flex;
  flex-wrap: nowrap;
  gap: min(12px, 0.83vw);
  align-items: flex-end;
}

.hero__badges-img {
  height: min(134px, 9.31vw);
  width: auto;
  max-width: 100%;
  display: block;
  flex-shrink: 0;
}

/* PC用注釈（KV右下・Figma 7649:13640: left:1188 top:622 → bottom:58px right:252px） */
.hero__footnote {
  position: absolute;
  bottom: min(58px, 4.03vw);
  right: min(36px, 2.5vw);
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: min(11px, 0.76vw);
  letter-spacing: min(0.44px, 0.03vw);
  color: #fefdfb;
  margin: 0;
  z-index: 2;
  text-align: right;
}

/* SP（768px以下） */
@media (max-width: 768px) {
  .header-content.hero {
    height: 414px;
    margin-top: 56px; /* ヘッダー高さ（SP） */
    max-height: 414px;
    /* バッジ半分（46px）が下に重なる分、次のセクションを引き上げ */
    margin-bottom: -46px;
  }

  .hero__bg img {
    height: 414px;
    min-height: 414px;
    width: 100%;
    object-position: 60% center;
    transform: scale(1.25);
    transform-origin: 65% 55%;
  }

  .hero__overlay {
    background: linear-gradient(254.71deg, rgba(255, 255, 255, 0) 45%, rgba(251, 253, 249, 0.6) 65%);
  }

  /* コンテンツをヘッダー1つ分（56px）上に：88px → 32px、左はバッジ（16px）に寄せる */
  .hero__content {
    top: 0;
    left: 0;
    padding: 32px 16px 0;
    align-items: flex-start;
    transform: scale(0.92);
    transform-origin: left top;
  }

  .hero__main-text {
    align-items: flex-start;
    gap: 0;
    max-width: 623px;
  }

  .hero__title {
    gap: 0;
    padding-bottom: 0;
    text-align: left;
    margin-top: 12px;
    max-width: 623px;
  }

  .hero__copy-line {
    padding: 16px 0;
  }

  .hero__copy-text {
    font-size: 32px;
    letter-spacing: 2.56px;
  }

  .hero__copy-img-wrap {
    max-width: 623px;
  }

  .hero__copy-img {
    max-width: min(360px, calc(100vw - 80px));
  }

  .hero__copy-logo {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-left: 8px;
    margin-top: 16px;
  }

  .hero__logo {
    width: 128px;
    height: 32px;
  }

  .hero__insurance-badge {
    height: 42px;
    margin-bottom: 12px; /* Figma 7649:12358 gap 12px */
  }

  .hero__achievement {
    position: static;
    width: 149px;
    height: 126px;
    margin-top: -16px;
    margin-left: 0px;
    margin-bottom: 24px;
  }

  /* SP: バッジ中央がKV切り目に重なる（PC同様・半分がHero内・半分が下のセクションに）
     左の隙間なし、3枚並び gap 8px（Figma 7649:12384）、サイズ1.5倍 */
  .hero__badges {
    position: absolute;
    bottom: 0;
    left: 0;
    transform: translateY(90%);
    margin: 0;
    padding-left: 16px;
    z-index: 10;
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    align-items: flex-end;
    max-width: min(305px, calc(100vw - 32px));
  }

  .hero__badges-img {
    height: 110px;
    width: auto;
    display: block;
    flex-shrink: 0;
  }

  /* PC用注釈を非表示、SP用注釈を表示（Figma 7649:12383） */
  .hero__footnote {
    display: none;
  }

  .hero__footnote-sp {
    display: inline-block;
    font-family: "Zen Kaku Gothic New", sans-serif;
    font-size: 10px;
    line-height: 1.2;
    letter-spacing: 0.32px;
    color: #75612c;
    white-space: normal;
  }
}

/* =======================================　モバイルメニュー（Figma準拠・右スライドイン） =======================================　*/
body.no-scroll {
  overflow: hidden;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu--active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-menu__overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(66, 34, 15, 0.4);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-menu--active .mobile-menu__overlay {
  opacity: 1;
}

.mobile-menu__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 75%;
  max-width: 293px;
  background-color: #fefdfb;
  padding: 0;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
}

.mobile-menu--active .mobile-menu__panel {
  transform: translateX(0);
}

.mobile-menu__panel-header {
  flex-shrink: 0;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 16px;
}

.mobile-menu__close {
  width: 28px;
  height: 28px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu__close-icon {
  width: 18px;
  height: 19px;
  display: block;
  object-fit: contain;
}

.mobile-menu__nav {
  flex-shrink: 0;
  padding: 24px 24px 0;
  overflow-y: auto;
}

.mobile-menu__list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-menu__item {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-menu__link {
  font-size: 18px;
  font-weight: 500;
  font-family: var(--font-ja, 'Zen Kaku Gothic New', 'Hiragino Kaku Gothic ProN', sans-serif);
  color: #42220f;
  letter-spacing: 0.72px;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1.7;
  transition: color 0.25s ease;
}

.mobile-menu__link:hover {
  color: #8a6d45;
}

.mobile-menu__sub-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  list-style: none;
  padding: 0;
  margin: 0;
  padding-left: 14px;
}

.mobile-menu__sub-item {
  list-style: none;
}

.mobile-menu__sub-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  font-family: var(--font-ja, 'Zen Kaku Gothic New', 'Hiragino Kaku Gothic ProN', sans-serif);
  color: #42220f;
  letter-spacing: 0.6px;
  text-decoration: none;
  line-height: 1.5;
}

.mobile-menu__sub-text {
  color: inherit;
  transition: color 0.25s ease;
}

.mobile-menu__sub-link:hover .mobile-menu__sub-text {
  color: #8a6d45;
}

.mobile-menu__sub-line {
  flex-shrink: 0;
  width: 6px;
  height: 2px;
  background-color: #42220f;
}

.mobile-menu__cta {
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  margin: 32px 24px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: calc(100% - 48px);
  padding: 24px;
  font-size: 16px;
  box-sizing: border-box;
  font-weight: 500;
  font-family: var(--font-ja, 'Zen Kaku Gothic New', 'Hiragino Kaku Gothic ProN', sans-serif);
  letter-spacing: 0.64px;
  text-transform: uppercase;
  border: none;
  border-radius: 0;
  box-shadow: none;
  background-color: transparent;
  color: #fefdfb;
  text-decoration: none;
  transition: opacity 0.3s ease, color 0.3s ease, filter 0.3s ease;
}

.mobile-menu__cta-bg {
  position: absolute;
  inset: 0;
  background-color: #73885a;
  z-index: 0;
  transition: background-color 0.3s ease;
}

.mobile-menu__cta-texture {
  position: absolute;
  inset: 0;
  background-image: url("../img/renewal/cta-texture.jpg");
  background-size: cover;
  background-position: center;
  mix-blend-mode: multiply;
  opacity: 0.6;
  z-index: 1;
}

.mobile-menu__cta-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.mobile-menu__cta:hover .mobile-menu__cta-bg {
  background-color: #5f6f4a;
}

.mobile-menu__cta:hover {
  color: #fefdfb;
  filter: brightness(0.9);
}

.mobile-menu__cta-arrow {
  flex-shrink: 0;
  width: 6px;
  height: 10px;
  display: block;
  object-fit: contain;
}
