@charset "UTF-8";

/* ==========================================================
   reset
   ========================================================== */
*,
*::before,
*::after { box-sizing: border-box; }
body, h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
img { max-width: 100%; height: auto; vertical-align: top; }
a { color: inherit; text-decoration: none; }
button { padding: 0; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; }
summary { list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }

/* ==========================================================
   base
   ========================================================== */
/* 相対拡縮：192rem基準で1rem=1rem。SPは37.5rem基準（41.2rem相当で頭打ち）
   PCの文字はpx固定（折り返しで対応）。レイアウトに影響する見出し・固定枠内の文字だけ clamp(下限, rem, 上限) で縮める */
html {
  font-size: calc(100vw / 192);
  scroll-behavior: smooth;
}
body {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  color: #151515;
  background: #fff;
  -webkit-font-smoothing: antialiased;
  line-break: strict; /* 行頭に「ー」や小書きかなを置かない（デザインと同じ禁則） */
  padding-top: 164px; /* 固定ヘッダーの高さ分 */
}
body.is-locked { overflow: hidden; }

.inner {
  max-width: 138.2rem;
  margin: 0 auto;
  padding: 0 4rem;
}
.sp { display: none; }

/* スクロールで表示（JSが .reveal を付与）。transition は表示側だけに定義し、隠す瞬間は動かさない */
.reveal {
  opacity: 0;
  transform: translateY(1.6rem);
  transition: none;
}
.reveal.is-inview {
  opacity: 1;
  transform: none;
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal:nth-child(2) { transition-delay: 0.12s; }
.reveal:nth-child(3) { transition-delay: 0.24s; }
.reveal:nth-child(4) { transition-delay: 0.36s; }
.reveal:nth-child(n + 5) { transition-delay: 0.48s; }

/* hero：ページを開いたときの演出（上下に動かさず、静かに出す） */
.hero__inner > .reveal { transform: none; }
.hero__inner > .reveal.is-inview { transition-duration: 1.2s; }
.hero__title.reveal {
  opacity: 1;
  clip-path: inset(0 100% 0 0);
}
.hero__title.is-inview {
  clip-path: inset(0 -5% 0 0);
  transition: clip-path 1.2s cubic-bezier(0.2, 0.7, 0.2, 1) 0.15s;
}
.hero__desc.reveal { transition-delay: 0.5s; }
.hero__img.reveal {
  transform: scale(1.4);
  filter: blur(12px);
}
.hero__img.is-inview {
  transform: none;
  filter: none;
  transition: opacity 1.2s, transform 1.8s cubic-bezier(0.2, 0.7, 0.2, 1), filter 1.4s;
  transition-delay: 0.2s;
}
.hero { overflow: hidden; }

/* ==========================================================
   header
   ========================================================== */
.header {
  position: fixed; /* 高さを変えても下のコンテンツが動かないよう、body の padding-top で場所を確保 */
  top: 0;
  right: 0;
  left: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  height: 164px;
  padding: 0 clamp(32px, 4.6vw, 88px) 40px; /* 下に40px足して中身を上寄せ（上の余白40px・下80px） */
  background: #fff;
  transition: height 0.3s, padding 0.3s, box-shadow 0.3s;
}
/* スクロール後はコンパクトに */
.header.is-fixed {
  height: 84px;
  padding-bottom: 0;
  box-shadow: 0 2px 20px rgba(0, 0, 51, 0.06);
}
.header__logo {
  display: flex; /* 行の高さを持たせず、ロゴ画像の高さで天地中央に */
  width: clamp(64px, 7vw, 134px);
  transition: opacity 0.3s;
}
.header__logo:hover { opacity: 0.7; }
.header__nav {
  display: flex;
  flex: 1;
  align-items: center;
}
.header__links {
  display: flex;
  gap: clamp(16px, 1.25vw, 24px);
  margin-left: auto;
  padding: 0 32px 0 24px;
  font-size: clamp(14px, 0.83vw, 16px);
  letter-spacing: 0.28px;
  color: #000533;
}
.header__links a {
  position: relative;
  padding: 4px 0;
  white-space: nowrap;
}
.header__links a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.header__links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}
.header__btns {
  display: flex;
  gap: 16px;
}
.header__menu { display: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 178px;
  height: 44px;
  border: 1px solid #006;
  border-radius: 999px;
  background: #006;
  color: #fff;
  font-size: 14px;
  letter-spacing: 0.5px;
  transition: background 0.3s, color 0.3s;
}
/* タッチ端末はタップ後にホバー色が残るため、マウスのみ */
@media (hover: hover) {
  .btn:hover {
    background: #fff;
    color: #006;
  }
}
/* 1280〜1439pxはボタン2つが入りきらないため詰める */
@media (max-width: 1439px) {
  .header__links { padding-right: 24px; }
  .header .btn { width: 150px; }
}

/* ==========================================================
   hero（下層ページ共通）
   ========================================================== */
.hero__inner {
  display: grid;
  grid-template-columns: 1fr clamp(28rem, 36%, 47rem);
  grid-template-rows: auto auto 1fr;
  align-items: start;
  column-gap: 4rem;
  padding-bottom: 10rem;
}
.hero__lead {
  margin-top: 6.8rem;
  font-size: 20px;
  line-height: 1.45;
  letter-spacing: 1.5px;
  color: #006;
}
.hero__title {
  display: flex;
  align-items: center;
  min-height: 14.4rem;
  margin: 1.3rem 0 2.2rem;
  font-family: "Noto Serif JP", serif;
  font-weight: 400;
  font-size: clamp(30px, 4.8rem, 48px);
  line-height: 1.43;
  letter-spacing: 0.5px;
  color: #000533;
}
.hero__desc {
  max-width: 55.1rem;
  font-size: 17px;
  line-height: 1.95;
}
.hero__img {
  grid-column: 2;
  grid-row: 1 / 4;
  width: 100%;
}

/* ==========================================================
   section parts
   ========================================================== */
.label {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-family: "Instrument Serif", serif;
  font-size: clamp(26px, 4rem, 40px);
  line-height: 1.3;
  letter-spacing: 1.3px;
  color: #000533;
}
.label::before {
  content: "";
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: #000533;
}
.title {
  font-family: "Noto Serif JP", serif;
  font-weight: 400;
  font-size: clamp(30px, 4.8rem, 48px);
  line-height: 1.46;
  color: #000533;
}

/* ==========================================================
   bigtext（PROUD ONLINE SALON）右から左へ流れる
   ========================================================== */
.bigtext {
  overflow: hidden;
  padding: 8.1rem 0 9.7rem;
  border-top: 1px solid #dedede;
}
.bigtext__track {
  display: flex;
  width: max-content;
  animation: marquee 40s linear infinite;
}
.bigtext__track img {
  width: 174.4rem;
  max-width: none;
  margin-right: 16rem;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ==========================================================
   注意書き
   ========================================================== */
.notes {
  padding: 5.1rem 0 5.6rem;
  border-top: 1px solid #dedede;
}
.notes__text {
  font-size: 12px;
  line-height: 28px;
  color: rgba(21, 21, 21, 0.8);
}
.notes__text a {
  text-decoration: underline;
  text-underline-offset: 0.3rem;
}

/* ==========================================================
   footer
   ========================================================== */
.footer {
  padding: 8.8rem 2rem 6.1rem;
  background: #121212;
  color: rgba(255, 255, 255, 0.88);
  text-align: center;
}
.footer__links {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 8rem;
}
.footer__link {
  display: block;
  font-size: 12px;
  transition: opacity 0.3s;
}
.footer__link:hover { opacity: 0.6; }
.footer__link img {
  display: block;
  margin: 0 auto 1.5rem;
}
.footer__text {
  margin-top: 6.4rem;
  font-size: 14px;
  line-height: 1.92;
  opacity: 0.8;
}
.footer__text a {
  text-decoration: underline;
  text-underline-offset: 0.3rem;
  transition: opacity 0.3s;
}
.footer__text a:hover { opacity: 0.6; }
.footer__copy {
  margin-top: 2.4rem;
  font-size: 11px;
  opacity: 0.5;
}

/* ==========================================================
   オンライン相談予約（丸ボタン）：追従する（261111 CB）。画面右下、チャットの目印と右端をそろえて30px上
   ========================================================== */
.float {
  position: fixed;
  right: 20px;
  bottom: 210px; /* 本番のチャットの目印（261116 差し替え後の150×147px＝上端が画面下から163〜183pxでふわふわ）の中間から上30px */
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: 19.9rem;
  height: 19.9rem;
  border: 1px solid #fff;
  border-radius: 50%;
  background: rgba(0, 7, 143, 0.7); /* デザイン（紺50%＋下に透ける青い影）の見た目の色 */
  box-shadow: 0 0 2rem rgba(0, 24, 244, 0.4);
  backdrop-filter: blur(0.8rem);
  color: #fff;
  font-weight: 500;
  font-size: clamp(16px, 2.4rem, 24px);
  line-height: 1.45;
  letter-spacing: 0.5px;
  text-align: center;
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1), background 0.3s;
}
.float:hover {
  transform: scale(1.06);
  background: rgba(0, 0, 102, 0.85);
}
.float__arrow {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0.5rem 0 0.5rem 1rem;
  border-color: transparent transparent transparent #fff;
}
.float::after {
  content: "";
  width: 3.2rem;
  height: 2px;
  background: linear-gradient(to right, #fff 2px, transparent 2px) 0 0 / 0.6rem 2px repeat-x;
}

/* ==========================================================
   チャットプラス（外部ウィジェット）
   管理画面のデザインCSSがこのドメインでは読めない（アクセス拒否）ため、
   管理画面の設定値（目印の位置・SPの幅、ヘッダー色）を補う
   ========================================================== */
/* 目印画像：管理画面のふわふわ（下へ20px動く）で画面下に見切れないよう上げる */
#chatplusview #eye_catcher { translate: 0 -20px; }
/* スマホ端末：管理画面のSP用目印は縦長タブだが、デザインはPCと同じ吹き出し。PC用の画像に差し替えて右下に置く
   （本番ドメインではデザインCSSが読まれ、幅100px・下63pxに上書きされるため bottom と幅は !important） */
#chatplusview #eye_catcher:has(img[src*="eyecatcher_sp"]) {
  right: 12px;
  bottom: 0 !important;
  left: auto;
  translate: 0 -20px;
}
/* SP：魅力のカードが重なっている間は目印を隠す（TOPのJSが body に付ける） */
@media (max-width: 1023px) {
  #chatplusview #eye_catcher { transition: opacity 0.4s, visibility 0s; }
  .is-whyStuck #chatplusview #eye_catcher {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s, visibility 0s 0.4s;
  }
  /* visibility はチャットプラス側の指定に負けて効かず、見えないままタップに反応して下のナビが押せなかった（中の画像にも auto の指定あり） */
  .is-whyStuck #chatplusview #eye_catcher,
  .is-whyStuck #chatplusview #eye_catcher * { pointer-events: none !important; }
}
/* PC用の画像は管理画面で差し替えるとファイル名が変わり、古いURLは消える（261116 14:08 に吹き出し→「チャットで問合せ」に変更）。差し替えたらここも更新する */
#chatplusview #eye_catcher img[src*="eyecatcher_sp"] {
  content: url("https://appimg.chatplus.jp/app/15124/eyecatcher/eyecatcher.1794805682.png");
  width: 100px !important;
}
/* チャット画面：ヘッダーは閉じる・最小化ボタンが白なので背景色を敷く（サイトの .title も打ち消す）。本文は後ろが透けないように */
#chatplusview #chatplusheader { background: #027c96; }
#chatplusview #body { background: #fff !important; } /* チャットプラス側の指定（4段のID）が強いため */
#chatplusview #chatplusheader .title {
  font: inherit;
  line-height: 32px;
  color: inherit;
}
/* 「チャットを終了しますか？」の はい・キャンセル、終了後の「閉じる」ボタン（デザインCSSが無いと白文字×透明で見えない） */
#chatplusview button.btn {
  background: #027c96 !important;
  color: #fff !important;
}

/* ==========================================================
   1279px以下：ヘッダーの文字リンクをメニューにまとめる（ボタンはヘッダーに残す）
   （1024〜1279pxはリンクまで1行に入りきらないため。SPはサイズのみ上書き）
   ========================================================== */
@media (max-width: 1279px) {
  .header { justify-content: space-between; }
  .header__links {
    position: fixed;
    inset: 0;
    z-index: 100;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    margin: 0;
    padding: 0 20px;
    background: rgba(0, 0, 102, 0.9);
    backdrop-filter: blur(10px);
    font-size: 18px;
    color: #fff;
    opacity: 0;
    visibility: hidden;
  }
  .header.is-open .header__links {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.4s;
  }
  .header.is-closing .header__links { transition: opacity 0.4s, visibility 0s 0.4s; }
  .header__btns { margin: 0 24px 0 auto; }
  .header__menu {
    position: relative;
    z-index: 101;
    display: block;
    width: 32px;
    height: 20px;
  }
  .header__menu span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 1px;
    background: #000533;
    transition: 0.3s;
  }
  .header__menu span:nth-child(1) { top: 0; }
  .header__menu span:nth-child(2) { top: calc(50% - 1px); height: 2px; }
  .header__menu span:nth-child(3) { bottom: 0; }
  .header.is-open .header__menu span { background: #fff; }
  .header.is-open .header__menu span:nth-child(1) { top: 50%; transform: rotate(45deg); }
  .header.is-open .header__menu span:nth-child(2) { opacity: 0; }
  .header.is-open .header__menu span:nth-child(3) { top: 50%; bottom: auto; transform: rotate(-45deg); }
}

/* ==========================================================
   SP
   ========================================================== */
@media (max-width: 1023px) {
  html { font-size: min(100vw / 37.5, 11px); }
  .pc { display: none; }
  .sp { display: inline; }
  .inner { padding: 0 2rem; }
  body { padding-top: 5.2rem; }

  /* header：最初はロゴ＋メニュー、スクロール後はロゴの代わりに「オンライン相談予約」「気軽に質問」と下線（Figma 00-top_sp。261116 高橋さん）。高さは変えない */
  .header,
  .header.is-fixed {
    height: 5.2rem;
    padding: 0 2rem;
  }
  /* ロゴとボタンは同じ位置で重ね、ロゴは上へ抜け・ボタンは下から入るクロスフェード */
  .header__logo {
    position: absolute;
    inset: 0 auto 0 2rem;
    align-items: center;
    width: 5.8rem;
  }
  .header__logo,
  .header__btns,
  .header::after { transition: opacity 0.5s, translate 0.5s cubic-bezier(0.2, 0.7, 0.2, 1), visibility 0.5s; }
  /* 入ってくる側を少し遅らせ、途中で重ならないように */
  .header.is-fixed .header__btns,
  .header:not(.is-fixed) .header__logo { transition-delay: 0.2s; }
  .header.is-fixed .header__logo {
    opacity: 0;
    visibility: hidden;
    translate: 0 -1rem;
  }
  .header:not(.is-fixed) .header__btns {
    opacity: 0;
    visibility: hidden;
    translate: 0 1rem;
  }
  .header::after {
    content: "";
    position: absolute;
    right: 2rem;
    bottom: 0;
    left: 2rem;
    height: 1px;
    background: #d9d9d9;
  }
  .header:not(.is-fixed)::after { opacity: 0; }
  .header__links {
    gap: 2.8rem;
    padding: 0 2rem;
    backdrop-filter: blur(1rem);
    font-size: 1.8rem;
  }
  .header__btns {
    flex-direction: row-reverse;
    gap: 1.2rem;
    margin: 0;
  }
  .header .btn {
    width: auto;
    height: 3.2rem;
    padding: 0 1.4rem;
    font-weight: 500;
    font-size: 1.4rem;
  }
  .btn--line {
    background: #fff;
    color: #006;
  }
  .header__menu {
    width: 2rem;
    height: 1.2rem;
  }

  /* hero */
  .hero__inner {
    display: flex;
    flex-direction: column;
    padding: 1rem 2rem 5.3rem;
  }
  .hero__lead {
    margin-top: 0;
    font-size: 1.35rem;
    letter-spacing: 0.135rem;
  }
  .hero__title {
    display: block;
    min-height: 0;
    margin: 1.4rem 0 0;
    font-weight: 500;
    font-size: 3rem;
    line-height: 1.5;
    letter-spacing: 0.034rem;
  }
  .hero__img { margin: 2.3rem auto 0; }
  .hero__desc {
    order: 1;
    max-width: none;
    margin-top: 6rem;
    font-size: 1.6rem;
    line-height: 1.875;
  }

  /* section parts */
  .label {
    gap: 0.7rem;
    font-size: 2rem;
  }
  .label::before {
    width: 0.6rem;
    height: 0.6rem;
  }
  .title {
    font-size: 3rem;
    line-height: 1.33;
  }

  /* bigtext */
  .bigtext {
    padding: 3.7rem 0 3.6rem;
    border-top: 0;
  }
  .bigtext:last-child { padding-bottom: 4.6rem; } /* 下層：フッターとの間隔 */
  .bigtext__track img {
    width: 33.5rem; /* SPデザインは全ページ幅335px */
    margin-right: 3rem;
  }

  /* 注意書き */
  .notes { padding: 3.7rem 0 5.3rem; }

  /* footer */
  .footer { padding: 5.5rem 1.3rem 9.2rem; }
  .footer__links {
    flex-direction: column;
    align-items: center;
    gap: 5rem;
  }
  .footer__link img { margin-bottom: 1.7rem; }
  .footer__text { margin-top: 5.2rem; }
  .footer__copy {
    margin-top: 3rem;
    font-size: 1rem;
  }

  /* 丸ボタン：SPは全ページ非表示（ヘッダーに同じボタンがある。高橋さん 11/10「念のため非表示」）。戻す時は display を消す */
  .float {
    display: none;
    right: 12px;
    bottom: 120px; /* SPの目印（幅230px→高さ約70px＋20px上げ）の上30px */
    gap: 0.8rem;
    width: 13.4rem;
    height: 13.4rem;
    font-size: 1.6rem;
    line-height: 1.4;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bigtext__track { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
