/* ============================================================
   effects.css – 奥行き・強弱・動き（全ページ共通）
   ------------------------------------------------------------
   ・レイアウトは変えず、影／ホバー／スクロール演出／装飾線を足す
   ・不要になったら functions.php の skp-effects の読み込みを外すだけで
     元の見た目に戻る
   ・動きの強さは下の変数で一括調整できる
   ============================================================ */
:root {
  --fx-distance: 24px;     /* スクロールで現れるときの移動量 */
  --fx-duration: .7s;      /* 現れる速さ */
  --fx-ease: cubic-bezier(.22, .61, .36, 1);
  --fx-gold: #CCAD26;
  --fx-gold-light: #E6C65A;
  --fx-green: #006036;
  --fx-shadow: 0 6px 24px rgba(0, 0, 0, .07);
  --fx-shadow-hover: 0 14px 36px rgba(0, 0, 0, .14);
}

/* ------------------------------------------------------------
   1. スクロールで現れる（クラスは main.js が付ける）
   html.js が付いたとき＝JS が動いているときだけ隠す
   ------------------------------------------------------------ */
.js .js-reveal {
  opacity: 0;
  transform: translateY(var(--fx-distance));
  transition:
    opacity var(--fx-duration) var(--fx-ease),
    transform var(--fx-duration) var(--fx-ease);
  will-change: opacity, transform;
}
.js .js-reveal.is-inview {
  opacity: 1;
  transform: none;
}

/* トップのメイン画像：読み込み時にゆっくり現れる */
#fv .hero__wrapper { overflow: hidden; }
#fv .hero__image {
  animation: fx-fv-in 1.4s var(--fx-ease) both;
}
@keyframes fx-fv-in {
  from { opacity: 0; transform: scale(1.04); }
  to   { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------
   2. ヘッダー固定＋スクロールで影
   ------------------------------------------------------------ */
.header {
  position: sticky;
  top: 0;
  z-index: 950;            /* 暗転オーバーレイ(900)より上。ドロワーはヘッダー内 */
  transition: box-shadow .3s ease;
}
.header.is-scrolled {
  box-shadow: 0 4px 18px rgba(0, 0, 0, .08);
}
.header__nav-list a { position: relative; }
@media (min-width: 1025px) {
  /* ナビ：下線が左から伸びる（お問い合わせボタンは除く） */
  .header__nav-list li:not(.header__nav-cta) a::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -6px;
    height: 2px;
    background: var(--fx-gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s var(--fx-ease);
  }
  .header__nav-list li:not(.header__nav-cta) a:hover { opacity: 1; }
  .header__nav-list li:not(.header__nav-cta) a:hover::after { transform: scaleX(1); }
}

/* ------------------------------------------------------------
   3. 奥行き：カードの影とホバー
   ------------------------------------------------------------ */
.service-card__body,
.testimonial__content,
.process-card__body,
.column-card,
.voice-card,
.generic-list__item {
  box-shadow: var(--fx-shadow);
}
/* リンクを持つカードは、乗せると少し浮く */
.column-card,
.generic-list__item {
  transition: transform .35s var(--fx-ease), box-shadow .35s var(--fx-ease);
}
.column-card:hover,
.generic-list__item:hover {
  transform: translateY(-4px);
  box-shadow: var(--fx-shadow-hover);
}
/* サムネイルは枠の中でゆっくり拡大 */
.column-card__thumb { overflow: hidden; }
.column-card__thumb img {
  display: block;
  transition: transform .6s var(--fx-ease);
}
.column-card:hover .column-card__thumb img { transform: scale(1.05); }

/* 写真にも薄い影 */
.reason-card__image,
.message-card_img {
  box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
}

/* ------------------------------------------------------------
   4. ボタンのホバー
   ------------------------------------------------------------ */
/* 枠線ボタン（READ MORE）：金色が左から塗られる */
.r-button a {
  background-image: linear-gradient(var(--fx-gold), var(--fx-gold));
  background-repeat: no-repeat;
  background-size: 0% 100%;
  transition: background-size .4s var(--fx-ease), color .3s ease, letter-spacing .4s var(--fx-ease);
}
.r-button a:hover {
  background-size: 100% 100%;
  color: #fff;
  letter-spacing: .08em;
}
/* 塗りボタン：立体感（グラデーション・上辺のハイライト・影）を付け、
   乗せると少し浮く。色味は従来の金・緑・LINE 緑をそのまま使う */
.c-button--primary,
.contact__btn__wrapper a,
.btn__wrap a,
.generic-btn a,
.btn-line,
.header__line {
  position: relative;
  letter-spacing: .08em;
  transition:
    transform .25s var(--fx-ease),
    box-shadow .25s var(--fx-ease),
    filter .25s ease;
}

/* 金（お問い合わせ） */
.c-button--primary,
.contact__btn__wrapper a {
  color: #fff;
  background: linear-gradient(180deg, #DDBF45 0%, #CCAD26 55%, #B8981A 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .45),     /* 上辺のハイライト */
    inset 0 -2px 0 rgba(0, 0, 0, .10),          /* 下辺の締まり */
    0 6px 16px rgba(120, 95, 0, .28);           /* 落ち影 */
  text-shadow: 0 1px 2px rgba(90, 70, 0, .45);  /* 白文字を読みやすく */
}
/* 緑（READ MORE →／トップへ戻る） */
.btn__wrap a,
.generic-body .generic-btn a {
  background: linear-gradient(180deg, #0B7A49 0%, #006036 55%, #004F2C 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .25),
    inset 0 -2px 0 rgba(0, 0, 0, .15),
    0 6px 16px rgba(0, 60, 34, .28);
}
/* LINE */
.btn-line,
.header__line {
  background: linear-gradient(180deg, #1ED76A 0%, #06C755 55%, #05AE4A 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .40),
    inset 0 -2px 0 rgba(0, 0, 0, .10),
    0 6px 16px rgba(0, 110, 45, .30);
  text-shadow: 0 1px 2px rgba(0, 80, 30, .35);
}

/* ヘッダー／メニュー内のボタンは、ナビ用の指定（黒文字・乗せると薄くなる）を打ち消す */
.header__nav-list .header__cta,
.header__nav-list .header__line { color: #fff; }
.header__cta { white-space: nowrap; }   /* 「お問い合わせ →」を途中で折り返さない */
.header__nav-list .header__cta:hover,
.header__nav-list .header__line:hover { opacity: 1; }

/* ヘッダー／メニューの「お問い合わせ」：矢印を付け、乗せると右へ動く */
.header__cta::after {
  content: "→";
  display: inline-block;
  margin-left: .5em;
  transition: transform .25s var(--fx-ease);
}
.header__cta:hover::after { transform: translateX(4px); }

/* 乗せたとき：浮く＋影が深くなる＋少し明るく */
.c-button--primary:hover { opacity: 1; }
.contact__btn__wrapper:hover { opacity: 1; }
.c-button--primary:hover,
.contact__btn__wrapper a:hover,
.btn__wrap a:hover,
.generic-btn a:hover,
.btn-line:hover,
.header__line:hover {
  transform: translateY(-3px);
  filter: brightness(1.06);
}
.c-button--primary:hover,
.contact__btn__wrapper a:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .45),
    inset 0 -2px 0 rgba(0, 0, 0, .10),
    0 12px 26px rgba(120, 95, 0, .36);
}
.btn__wrap a:hover,
.generic-body .generic-btn a:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .25),
    inset 0 -2px 0 rgba(0, 0, 0, .15),
    0 12px 26px rgba(0, 60, 34, .36);
}
.btn-line:hover,
.header__line:hover {
  opacity: 1;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .40),
    inset 0 -2px 0 rgba(0, 0, 0, .10),
    0 12px 26px rgba(0, 110, 45, .38);
}
/* 押したとき：沈む */
.c-button--primary:active,
.contact__btn__wrapper a:active,
.btn__wrap a:active,
.generic-btn a:active,
.btn-line:active,
.header__line:active {
  transform: translateY(0);
  filter: brightness(.97);
}

/* ------------------------------------------------------------
   5. 強弱：見出しの金色の線・数字の強調・本文の読みやすさ
   ------------------------------------------------------------ */
/* セクションタイトル（画像）の下に細い線。現れるときに左右へ伸びる */
.section-title::after {
  content: "";
  display: block;
  width: 56px;
  height: 2px;
  margin: 28px auto 0;
  background: var(--fx-gold);
}
.js .section-title.js-reveal::after {
  transform: scaleX(0);
  transition: transform .8s var(--fx-ease) .35s;
}
.js .section-title.js-reveal.is-inview::after { transform: scaleX(1); }

/* 下層ページのタイトル（h1）の下に線 */
.hero__content h1 {
  position: relative;
  padding-bottom: 24px;
}
.hero__content h1::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 56px;
  height: 2px;
  background: var(--fx-gold);
}
.single-title,
.generic-title {
  padding-left: 18px;
  border-left: 3px solid var(--fx-gold);
}

/* 数字の強調（skp_emphasize_numbers() が付ける） */
.u-num {
  font-size: 1.9em;
  font-weight: 700;
  line-height: 1;
  color: var(--fx-gold-light);
  margin: 0 .08em;
  letter-spacing: 0;
}
.u-num__unit { font-size: .6em; margin-left: .04em; }

/* 長い説明文：行間と字間を少し広げる */
.hero__content p,
.service-card__body p,
.testimonial__content p,
.about__item p,
.message-card_body p {
  line-height: 2;
  letter-spacing: .04em;
}

@media (max-width: 480px) {
  .section-title::after { margin-top: 18px; width: 40px; }
  .hero__content h1 { padding-bottom: 18px; }
}

/* ------------------------------------------------------------
   6. 文字サイズの基準
   ------------------------------------------------------------
   大きさの順序を PC でもスマホでも
     ページの主題(h1) ＞ セクションタイトル ＞ 欄の見出し ＞ カードの見出し ＞ 本文
   にそろえる。各ページの CSS に同じ指定が重複しているため、ここ 1 か所で上書きする。
   （セクションタイトル自体の大きさは style.css の「Section heading」）

                          PC      スマホ
     ページの主題 h1      40px    30px
     セクションタイトル   36px    約24px
     欄の見出し           28px    22〜24px
     カードの見出し       19〜32  19〜20px
     サブ見出し           18〜24  17〜18px
     ボタン               20〜24  18〜20px
     本文                 16px    16px
   ------------------------------------------------------------ */
/* 欄の見出し（PC） */
.cta-duo__ttl,
.contact__text h3 {
  font-size: 28px;
}

@media (max-width: 480px) {
  /* ページの主題・サブ見出し */
  .hero__content h1 { font-size: 30px; }
  .hero__content h4 { font-size: 18px; line-height: 1.7; }

  /* 欄の見出し */
  .contact__text h3 { font-size: 24px; }
  .cta-duo__ttl,
  .about__item-title { font-size: 22px; }
  .about__item-sub { font-size: 17px; }

  /* カードの見出し */
  .service-card__body h3,
  .testimonial__content h3,
  h3.mmv-title { font-size: 20px; }
  .reason-card__body h3,
  .process-card h3,
  .column-card__title { font-size: 19px; }

  /* ボタン */
  .contact__btn__wrapper a { font-size: 20px; }
  .btn { font-size: 19px; }
  .r-button a { font-size: 18px; }
}

/* ------------------------------------------------------------
   7. 動きを減らす設定の人には動かさない
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  .js .js-reveal,
  .js .section-title.js-reveal::after {
    opacity: 1;
    transform: none;
    transition: none;
  }
  #fv .hero__image { animation: none; }
  .column-card, .generic-list__item, .column-card__thumb img,
  .r-button a, .contact__btn__wrapper a, .btn__wrap a, .generic-btn a, .btn,
  .c-button--primary, .btn-line, .header__line, .header__cta::after {
    transition: none;
  }
}
