/* 変数定義 */
:root {
  --main-bg-color: #fffcf8;
  --primary-color: #ebaa46;
  --secondary-color: #006da0;
  --text-color: #4d4d4d;
  --border-color: #a6a6a6;
  --container-width: 750px;
  --font-family-main: "Noto Sans JP", sans-serif;
  --font-family-accent: "Alata", sans-serif;
}

/* ベーススタイル */
body {
  background-color: var(--main-bg-color);
  color: var(--text-color);
}

.container {
  background-color: var(--main-bg-color);
}

/* レイアウト */
article {
  padding: 0 1em;
}

.center,
.txt_center,
h2.ttl {
  text-align: center !important;
}

/* コンテンツエリア共通 */
.comm_contents {
  max-width: 700px;
  margin: auto;
  text-align: center;
  position: relative;
}

/* FAQ 関連の旧スタイルは main.scss に移行済み */

/* FAQ関連スタイルは main.scss (page/_top.scss) で Figma 準拠の実装を使用するため、
   旧バージョンのレガシースタイルはここから削除しました。 */

/* 光るエフェクト共通スタイル */
.shiny-button,
.header__button a.shiny-button,
.link-fixed.shiny-button a,
.follow-button__link.shiny-button {
  position: relative;
  overflow: hidden;
}

/* 光るエフェクト - ボタン */
.header__button a.shiny-button,
.link-fixed.shiny-button a,
.follow-button__link.shiny-button {
  opacity: 1;
  transition: opacity 0.3s ease;
}

.header__button a.shiny-button:hover,
.link-fixed.shiny-button a:hover,
.follow-button__link.shiny-button:hover {
  opacity: 0.6;
}

/* 光る効果の疑似要素 */
.header__button a.shiny-button:before,
.link-fixed.shiny-button a:before,
.follow-button__link.shiny-button:before {
  position: absolute;
  content: "";
  display: inline-block;
  top: -180px;
  left: 0;
  width: 40px;
  height: 100%;
  background-color: #fff;
  z-index: 1;
  overflow: hidden;
  box-sizing: border-box;
  bottom: 0;
  animation: shiny-btn1 3s ease-in-out infinite;
}

/* 光るアニメーション */
@keyframes shiny-btn1 {
  0% {
    transform: scale(0) rotate(45deg);
    opacity: 0;
  }
  80% {
    transform: scale(0) rotate(45deg);
    opacity: 0.5;
  }
  81% {
    transform: scale(4) rotate(45deg);
    opacity: 1;
  }
  100% {
    transform: scale(50) rotate(45deg);
    opacity: 0;
  }
}
.header__button a img,
[role="image"] {
  border-radius: 40px;
  box-shadow: 0px 6px 6px 0px rgba(153, 151, 149, 0.5);
}
/* ヘッダーボタンのコンテナの調整 */
.header__button {
  position: relative;
  margin-top: 6px;
  margin-bottom: 6px;
}

/* ボタン画像のマージン調整 */
.header__button a img {
  margin-bottom: 6px;
}

/* 追従ボタン */
.link-fixed.shiny-button {
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 10px 0 !important;
  z-index: 9999 !important;
  text-align: center !important;
  border-radius: 15px 15px 0 0 !important;
  background-color: rgba(255, 255, 255, 0.9) !important;
}

.link-fixed.shiny-button a {
  display: inline-block !important;
  width: 100% !important;
  max-width: var(--container-width) !important;
  margin: 0 auto !important;
  border-radius: 15px 15px 0 0 !important;
  padding: 0 !important;
}

.link-fixed.shiny-button a img {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto !important;
}

/* フローティングボタン */
.follow-button {
  position: fixed;
  bottom: 0;
  left: 50%;
  width: 100%;
  max-width: var(--container-width);
  z-index: 9999;
  transform: translate(-50%, 100%);
  transition: transform 0.5s ease;
  border-radius: 15px 15px 0 0;
  overflow: hidden;
}

.follow-button.is-visible {
  transform: translate(-50%, 0);
}

.follow-button__link {
  display: block;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.follow-button__image {
  display: block;
  width: 100%;
  margin: 0 auto;
}

.follow-button__shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 50px;
  height: 100%;
  background: rgba(255, 255, 255, 0.7);
  transform: skewX(-20deg);
  pointer-events: none;
}

.follow-button__link:hover {
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

/* フッター */
footer#footer,
#footer {
  display: block !important;
  visibility: visible !important;
  position: relative !important;
  z-index: 9998 !important;
  color: #fff !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 35px 0 150px 0 !important;
  text-align: center !important;
  font-size: 11px !important;
  line-height: 1.5 !important;
  clear: both !important;
}

/* フッターコンテンツ */
footer#footer .footer-content,
div[class="footer-content"],
div[id="footer#footer"] {
  width: 100%;
  padding: 0 15px;
  box-sizing: border-box;
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
}

/* アクセス情報 */

/* CLINICS App セクション */
.clinics-app-section {
  margin: 0;
  width: 100%;
  overflow: hidden;
}

.clinics-app-background {
  width: 100%;
  height: auto;
  padding-bottom: 135%;
  position: relative;
  background-image: url("../images/mencli_app.webp");
  background-size: contain;
  background-position: center top;
  background-repeat: no-repeat;
  max-width: 100%;
}

.app-buttons-container {
  position: absolute;
  top: 60%;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.app-button {
  display: block;
  width: 220px;
  transition: transform 0.2s;
}

.app-button img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* メディアクエリ - PC用 */
@media screen and (min-width: 768px) {
  .container,
  .header,
  .lp-emishia__fv,
  .lp-emishia__cta,
  .check-cta-point,
  .p-access,
  article.cta_top.faq,
  .comm_contents,
  footer#footer .footer-content {
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
  }

  /* フッター幅 */
  footer#footer {
    width: 100% !important;
    max-width: 100% !important;
  }

  footer#footer .footer-content,
  footer#footer .footer-content div {
    max-width: var(--container-width);
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
}

/* メディアクエリ - タブレット、スマホ用 */
@media screen and (max-width: 767px) {
  .follow-button {
    max-width: 100%;
  }
}

/* メディアクエリ - スマホ用 */
@media (max-width: 480px) {
  .clinics-app-container {
    max-width: 300px;
  }

  .app-button {
    width: 150px;
  }
}

/* 背景色（FAQ と p-access は main.scss で個別管理） */
main#main.lp-emishia,
.lp-emishia__fv,
.lp-emishia__cta,
.check-cta-point {
  background-color: var(--main-bg-color);
}
