/* ==========================================================================
   材料リスト（変数設定）
   ========================================================================== */
:root {
  /* ブランドカラー */
  --main-color: #00c2b8; /* ティファニーブルー */
  --accent-color: #ff5a1f; /* オレンジ */
  --header-color: #1a3a6b; /* ネイビー */
  --bg-color-light-blue: #d1eefb;
  --bg-color-blue-gray: #eef2f9;
  --bg-color-light-green: #e8f7f0;
  --bg-color-light-beige: #f5eee7;

  --text-color: #333333;
  --text-color-light: #afafb0;
  --text-color-light-gray: #6d6e74;
  --text-color-gray: #555555;
  --text-color-green: #2db37b;

  /* フォント種類 */
  --font-family-jp-mincho: 'Noto Serif JP', serif;
  --font-family-jp-gothic:
    'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Noto Sans JP', sans-serif;
  --font-family-display: 'Josefin Sans', sans-serif; /* 「300」などの特大数字用 */

  /* フォントサイズ */
  --font-size-xxs: 10px;
  --font-size-xs: 12px;
  --font-size-s: 14px;
  --font-size-m: 16px;
  --font-size-l: 20px;
  --font-size-xl: 24px;
  --font-size-xxl: 40px; /* 少し大きい見出し用 */
  --font-size-display: 64px; /* 「300」などの特大数字用 */

  --font-size-h1: 32px;
  --font-size-h2: 32px;
  --font-size-h3: 20px;
  --font-size-h4: 18px;
}

/* ==========================================================================
   基本リセット（お守り）
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(10px); /* 少し下から上に浮き上がる */
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
body {
  font-family: var(--font-family-jp-gothic);
  line-height: 1.7;
  background-color: #fff;
  color: var(--text-color);
  font-size: var(--font-size-m);
  word-break: auto-phrase;
  position: relative; /* to-topボタンの絶対配置の基準にするため追加 */
  padding-top: 72px;
}
@media screen and (max-width: 768px) {
  body {
    padding-top: 56px;
  }
}
body.is-fixed {
  overflow: hidden;
}

/* リストの「・」を消す（メニューや表で便利） */
ul,
ol {
  list-style: none;
}

/* リンクの設定 */
a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s; /* ホバー時の動きを滑らかにする */
}

/* 画像の設定 */
img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
}

/* ボタンの標準デザインをリセット */
button {
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
  font: inherit; /* 親のフォントを引き継ぐ */
}

/* ==========================================================================
共通パーツ
   ========================================================================== */
.btn__inner {
  display: inline-block;
  border-radius: 50px;
  text-align: center;
  transition: 0.3s;
  padding: 10px 32px;
  box-shadow: 0 4px 15px var(--btn-shadow-color);
}
/* 影を少し深くし、位置を少し上にずらす */
.btn__inner:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}
/* オレンジ色ボタン */
.btn__inner--accent {
  background-color: var(--accent-color);
  padding: 2px 10px;
  color: #fff;
  padding: 10px 32px;
  --btn-shadow-color: rgba(255, 90, 31, 0.3);
}
/* ティファニーブルーボタン */
.btn__inner--primary {
  background-color: var(--main-color);
  padding: 10px 32px;
  color: #fff;
  --btn-shadow-color: rgba(0, 194, 184, 0.3);
}
.btn__inner--secondary {
  border: 1px solid #333333;
}
.view-more__btn-wrapper {
  display: flex;
  justify-content: flex-end;
  margin-top: 40px;
}
.common-section {
  width: 100%;
  padding: 120px 0;
}
.l-inner {
  width: 90%;
  margin: 0 auto;
}

.l-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 4%;
}
.common-section__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 40px;
}
.common-section__label {
  font-size: var(--font-size-xs);
  color: var(--accent-color);
  letter-spacing: 0.1em;
}
.common-section__title {
  line-height: 1.3;
  border-bottom: 1px solid var(--accent-color);
  padding-bottom: 4px;
}
h2 {
  font-family: var(--font-family-jp-mincho);
  color: var(--header-color);
  font-size: clamp(var(--font-size-xl), 5vw, var(--font-size-h2));
}
h3 {
  font-size: var(--font-size-h3);
  color: var(--header-color);
  font-family: var(--font-family-jp-mincho);
}
.pc-only {
  display: block;
}
.sp-only {
  display: none !important;
}
.common-section__label,
.service-detail__number {
  text-transform: uppercase;
}
.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 50px;
  height: 50px;
  z-index: 100;
  transition:
    opacity 0.3s,
    transform 0.3s;
  opacity: 0;
  pointer-events: none;
}

.to-top.is-show {
  opacity: 1;
  pointer-events: auto;
}
/* スクロールダウン全体 */
.scrolldown {
  position: absolute;
  top: 70vh;
  left: 5%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 15px;
  color: var(--main-color);
  font-family: var(--font-family-display);
  font-size: 12px;
  letter-spacing: 0.2em;
  z-index: 10;
}

/* 文字の部分（縦書きに） */
.scrolldown span {
  display: block;
  writing-mode: vertical-rl; /* 縦書きに */
  line-height: 1;
}

/* 線のコンテナ */
.scrolldown-arrow {
  position: relative;
  width: 2px;
  height: 60px;
  background: rgba(0, 194, 184, 0.2);
  overflow: hidden;
}

/* 動く線の本体 */
.scrolldown-arrow::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--main-color);
  animation: pathmove 1.8s infinite;
}

/* 矢印の先端（三角形） */
/* .scrolldown-arrow::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 6px solid var(--main-color);
  z-index: 2;
} */

/* スルスル動くアニメーション */
@keyframes pathmove {
  0% {
    transform: translateY(-100%);
  }
  30% {
    transform: translateY(0);
  }
  60% {
    transform: translateY(100%);
  }
  100% {
    transform: translateY(100%);
  }
}

@media (hover: hover) {
  .to-top:hover {
    transform: translateY(-5px);
    opacity: 0.8;
  }
}
@media screen and (max-width: 768px) {
  .pc-only {
    display: none !important;
  }
  .sp-only {
    display: block !important;
  }
  .cta__title {
    font-size: 32px;
  }
}
