/*基本CSS*/
body {
  background-color: #000000 !important;
}

/*ホバーで大きく*/
.img-hover-action figure {
  overflow: hidden;
}

.img-hover-action img {
  transition: transform .2s ease;
}

.img-hover-action img:hover {
  transform: scale(1.1);
}

#news .img-hover-action img:hover {
  transform: scale(1.05);

}

.no-line-break {
  white-space: nowrap;
}


.logo-font {
  font-family: 'Cinzel', serif;
  letter-spacing: -0.02em;
  font-weight: 800;
}


/*タブレット調整*/
@media screen and (max-width: 960px) {
  .font45 {
    font-size: 50px !important;
  }

}

/*spフォント調整*/
@media screen and (max-width: 599px) {
  .font45 {
    font-size: 45px !important;
  }

  .font20 {
    font-size: 20px !important;
  }

  .font22 {
    font-size: 22px !important;
  }

  .font18 {
    font-size: 18px !important;
  }

  .font16 {
    font-size: 16px !important;
  }

  .font14 {
    font-size: 14px !important;
  }

  .font13 {
    font-size: 13px !important;
  }

  .font12 {
    font-size: 12px !important;
  }

  .font9 {
    font-size: 9px !important;
  }
}

/* =========================================
   FV 基本設定
   ========================================= */
:root {
  --fv-h: 80vh;
  --copy-max: 720px;

  --dur: 4.6s;
  /* ワイプ全体 */
  --delay: .35s;
  /* 開始待ち */
  --char-in: 3.6s;
  /* ②：回転時間 */
}

/* FV本体 */
.fv-peel {
  position: relative;
  width: 100%;
  height: var(--fv-h);
  overflow: hidden;
  visibility: hidden;
}

.fv-peel__media {
  position: relative;
  width: 100%;
  height: 100%;
  isolation: isolate;
}

/* 画像共通 */
.fv-peel__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% top;
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* =========================================
   写真レイヤー（右→左ワイプ：白帯対策版）
   ========================================= */
.fv-peel__photoLayer {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

/* 写真：現像だけ（動かすのはOK） */
.fv-peel__img--photo {
  filter: blur(1.2px) brightness(.94) contrast(1.05) saturate(.95);
  transform: translateZ(0) scale(1.01);
  animation: fvDevelopInside var(--dur) cubic-bezier(.25, .1, .25, 1) var(--delay) forwards;
  will-change: filter, transform;
}

/* イラスト：これが“マスク”になる（右→左で削る） */
.fv-peel__img--illust {
  z-index: 2;

  /* ここがポイント：右側を削っていく */
  clip-path: inset(0 0 0 0);
  opacity: 1;

  animation: fvIllustWipe var(--dur) cubic-bezier(.25, .1, .25, 1) var(--delay) forwards;
  will-change: clip-path, opacity;
}


/* =========================================
   イラスト（右→左で消える）
   ========================================= */
.fv-peel__img--illust {
  z-index: 2;
  clip-path: inset(0 0 0 0);
  opacity: 1;

  animation: fvIllustHide var(--dur) cubic-bezier(.2, 0, .2, 1) var(--delay) forwards;
  will-change: clip-path, opacity;
}

/* =========================================
   コピー（常に最前面）
   ========================================= */
.fv-peel__copy {
  position: absolute;
  top: clamp(16px, 4vw, 56px);
  left: clamp(16px, 4vw, 56px);
  max-width: min(92vw, var(--copy-max));
  z-index: 10;
  pointer-events: none;

  color: #fff;
  text-shadow:
    0 2px 14px rgba(0, 0, 0, .35),
    0 8px 30px rgba(0, 0, 0, .25);
}

/* 行共通 */
.fv-line {
  margin: 0;
  line-height: 1.25;
  letter-spacing: .02em;
}

/* ① */
.fv-line--1 {
  font-size: clamp(16px, 4vw, 32px);
  font-weight: 600;
  text-shadow:
    0 0 0 rgba(255, 255, 255, .22),
    0 1px 2px rgba(0, 0, 0, .35),
    0 3px 10px rgba(0, 0, 0, .18);
}

/* ② */
.fv-line--2 {
  margin-top: .35em;
  font-size: clamp(20px, 2.8vw, 36px);
  font-weight: 600;
  white-space: nowrap;
  display: inline-block;
  text-shadow:
    0 0 0 rgba(255, 255, 255, .22),
    0 1px 2px rgba(0, 0, 0, .35),
    0 3px 10px rgba(0, 0, 0, .18);

  perspective: 900px;
  transform-style: preserve-3d;
}

/* ②：初期（隠す＋回転待機） */
.fv-line--2 .fv-char {
  display: inline-block;
  opacity: 0;
  transform-origin: 50% 50%;
  backface-visibility: visible;

  /* 横から回る：Y軸 */
  transform: rotateY(90deg) rotateX(10deg) translateY(6px);
  will-change: transform, opacity;
}

/* ②：ワイプが来たら回転開始 */
.fv-line--2 .fv-char.is-on {
  opacity: 1;
  animation: fvCharFlipSpin var(--char-in) cubic-bezier(.12, .75, .18, 1) forwards;
}

/* ③ */
.fv-line--3 {
  margin-top: .30em;
  font-size: clamp(20px, 2.1vw, 26px);
  /* ←少し大きめ */
  font-weight: 700;

  opacity: 0;
  transform: translateY(10px);

  text-shadow:
    0 0 0 rgba(255, 255, 255, .22),
    0 1px 2px rgba(0, 0, 0, .35),
    0 3px 10px rgba(0, 0, 0, .18);
}

.fv-line--3.is-on {
  animation: fvPopOvershoot .9s cubic-bezier(.2, .9, .2, 1) forwards;
}

/* ロゴ */
.fv-logoWrap {
  margin-top: .45em;
  opacity: 0;
  transform: translateY(10px);
  transform-origin: 50% 50%;
}

.fv-logo {
  display: block;
  height: 150px;
  /* ←要望どおり固定150px */
  width: auto;
  filter:
    drop-shadow(0 1px 2px rgba(0, 0, 0, .35)) drop-shadow(0 6px 14px rgba(0, 0, 0, .25));
}

.fv-logoWrap.is-on {
  animation: fvLogoBounce .95s cubic-bezier(.2, .9, .2, 1) forwards;
}

/* =========================================
   SKIPボタン
   ========================================= */
.fv-skip {
  position: absolute;
  left: 50%;
  bottom: clamp(16px, 4vh, 32px);
  transform: translateX(-50%);

  padding: 7px 16px;
  font-size: 12px;
  letter-spacing: .18em;
  font-weight: 700;

  color: #fff;
  background: rgba(0, 0, 0, .35);
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 999px;

  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);

  cursor: pointer;
  z-index: 20;

  transition: opacity .25s ease, transform .25s ease, background .25s ease;
}

.fv-skip:hover {
  background: rgba(0, 0, 0, .55);
  transform: translateX(-50%) translateY(-2px);
}

/* =========================================
   SKIP：押したら最終状態に固定
   ========================================= */
.fv-peel.is-skip .fv-peel__photoLayer {
  clip-path: inset(0 0 0 0) !important;
  animation: none !important;
}

.fv-peel.is-skip .fv-peel__photoLayer::after {
  animation: none !important;
  transform: translateX(0) !important;
}

.fv-peel.is-skip .fv-peel__img--photo {
  filter: none !important;
  transform: translateZ(0) scale(1) !important;
  animation: none !important;
}

.fv-peel.is-skip .fv-peel__img--illust {
  opacity: 0 !important;
  clip-path: inset(0 100% 0 0) !important;
  animation: none !important;
}

.fv-peel.is-skip .fv-line--2 .fv-char {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}

.fv-peel.is-skip .fv-line--3 {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}

.fv-peel.is-skip .fv-logoWrap {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}

/* =========================================
   Keyframes
   ========================================= */

/* イラストワイプ：前半ゆっくり（止める）→中盤じわ→最後まで */
@keyframes fvIllustWipe {
  0% {
    clip-path: inset(0 0 0 0);
    opacity: 1;
  }

  20% {
    clip-path: inset(0 0 0 0);
    opacity: 1;
  }

  /* 前半20%ほぼ止める */
  65% {
    clip-path: inset(0 94% 0 0);
    opacity: .6;
  }

  /* じわっと削れる */
  100% {
    clip-path: inset(0 100% 0 0);
    opacity: 0;
  }

  /* 全消し */
}

/* 境界影：ワイプに追従 */
@keyframes fvEdgeShadow {
  0% {
    transform: translateX(100vw);
  }

  20% {
    transform: translateX(100vw);
  }

  65% {
    transform: translateX(6vw);
  }

  100% {
    transform: translateX(0);
  }
}

/* 写真：現像 */
@keyframes fvDevelopInside {

  0%,
  20% {
    filter: blur(1.2px) brightness(.94) contrast(1.05) saturate(.95);
    transform: translateZ(0) scale(1.01);
  }

  100% {
    filter: blur(0) brightness(1) contrast(1.06) saturate(1.05);
    transform: translateZ(0) scale(1);
  }
}

/* イラスト：消える */
@keyframes fvIllustHide {
  0% {
    clip-path: inset(0 0 0 0);
    opacity: 1;
  }

  100% {
    clip-path: inset(0 100% 0 0);
    opacity: 0;
  }
}

/* ②：横回転（Y軸）1.5周（-540deg） */
@keyframes fvCharFlipSpin {
  0% {
    transform: rotateY(80deg) rotateX(10deg) translateY(3px);
  }

  18% {
    transform: rotateY(0deg) rotateX(3deg) translateY(0);
  }

  78% {
    transform: rotateY(-540deg) rotateX(-2deg) translateY(0);
  }

  100% {
    transform: rotateY(0deg) rotateX(0deg) translateY(0);
  }
}

/* ③：バウンド */
@keyframes fvPopOvershoot {
  0% {
    opacity: 0;
    transform: translateY(14px);
  }

  55% {
    opacity: 1;
    transform: translateY(-8px);
  }

  72% {
    opacity: 1;
    transform: translateY(3px);
  }

  86% {
    opacity: 1;
    transform: translateY(-2px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ロゴ：バウンド */
@keyframes fvLogoBounce {
  0% {
    opacity: 0;
    transform: translateY(14px) scale(.98);
  }

  55% {
    opacity: 1;
    transform: translateY(-7px) scale(1);
  }

  72% {
    opacity: 1;
    transform: translateY(3px) scale(1);
  }

  86% {
    opacity: 1;
    transform: translateY(-2px) scale(1);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* =========================================
   SP
   ========================================= */
@media (max-width: 599px) {
  :root {
    --fv-h: 65vh;
  }

  .fv-peel__img {
    object-position: 75% top;
  }

  .fv-peel__copy {
    top: 100px;
    left: 16px;
    max-width: 92vw;
  }

  .fv-line--2 {
    white-space: normal;
  }

  .fv-logo {
    height: 120px;
  }

  /* SPは少し抑える */
}

/* =========================================
   Motion配慮
   ========================================= */
@media (prefers-reduced-motion: reduce) {

  .fv-peel__photoLayer,
  .fv-peel__img--photo,
  .fv-peel__img--illust {
    animation: none;
    clip-path: none;
    filter: none;
    opacity: 1;
    transform: none;
  }

  .fv-peel__photoLayer::after {
    display: none;
  }

  .fv-line--2 .fv-char,
  .fv-line--3,
  .fv-logoWrap {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* =========================================
   終了時の退場アニメーション（修正版）
   ========================================= */

/* FV本体に transition を設定 */
.fv-peel {
  /* 既存のプロパティに追加/確認 */
  transition: all 1.6s cubic-bezier(0.65, 0, 0.35, 1);
  will-change: margin-top, height, opacity;
}

/* 退場用クラス：最強の設定 */
.fv-peel.is-dismissed {
  /* 自身の高さ分だけ上に釣り上げる */
  margin-top: calc(var(--fv-h) * -1) !important;

  /* さらに高さを0にしてスペースを強制消滅させる */
  height: 0 !important;
  min-height: 0 !important;

  /* 念のため透明にして操作不能に */
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

/*アニメーション途中再生防止*/
/* 初期：アニメを走らせない（途中スタート防止） */
.fv-peel:not(.is-ready) .fv-peel__img--illust,
.fv-peel:not(.is-ready) .fv-peel__img--photo {
  animation: none !important;
}

/* 初期：イラストは「消えていない状態」を確定 */
.fv-peel:not(.is-ready) .fv-peel__img--illust {
  clip-path: inset(0 0 0 0);
  opacity: 1;
}

.fv-peel.is-ready {
  visibility: visible;
}

/* is-ready になったら初めてアニメ付与 */
.fv-peel.is-ready .fv-peel__img--photo {
  animation: fvDevelopInside var(--dur) cubic-bezier(.25, .1, .25, 1) var(--delay) forwards;
}

.fv-peel.is-ready .fv-peel__img--illust {
  animation: fvIllustHide var(--dur) cubic-bezier(.2, 0, .2, 1) var(--delay) forwards;
}



/* イントロダクション　ふわふわアニメーションのスタイル */
.fuwafuwa-text span {
  display: inline-block;
  animation: float-anim 3s ease-in-out infinite;
}

@keyframes float-anim {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }

  /* 動きの幅はここで調整 */
}

/* 背景装飾の土台 */
.swell-block-fullWide.back-area-number {
  position: relative;
  overflow: visible;
  /* はみ出し防止 */
}

/* 巨大番号（右下） */
.swell-block-fullWide.back-area-number::after {
  content: "";
  position: absolute;
  font-family: 'Cinzel', serif;
  font-size: clamp(240px, 38vw, 560px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: .02em;
  pointer-events: none;
  z-index: 1;
}

.back-num-1::after {
  content: "1" !important;
}

.back-num-2::after {
  content: "2" !important;
}

.back-num-3::after {
  content: "3" !important;
}

.back-num-4::after {
  content: "4" !important;
}

.back-num-5::after {
  content: "5" !important;
}

.back-num-6::after {
  content: "6" !important;
}

/*位置情報*/
.back-pos-a::after {
  right: 1vw;
  bottom: -9vw;
}

.back-pos-b::after {
  left: 1vw;
  bottom: -8vw;
}

.back-pos-c::after {
  right: 0;
  bottom: -12vw;
}

/*色*/
.back-color-gray::after {
  color: rgb(110, 110, 110, .4);
}

.back-color-black::after {
  color: rgb(0, 0, 0, .15);
}

.back-color-white::after {
  color: rgb(255, 255, 255, .25);
}



@media (max-width: 599px) {
  .back-pos-a::after {
    bottom: -18vw;
  }

  .back-pos-b::after {
    bottom: -22vw;
  }
}

/* 中身を前に出す（疑似要素より上） */
.swell-block-fullWide.back-area-number>.swell-block-fullWide__inner {
  position: relative;
  z-index: 2;
}

/*キャッチフレーズの明瞭化*/
.catch-copy-shadow {
  text-shadow:
    0 2px 14px rgba(255, 255, 255, .35),
    0 8px 30px rgba(255, 255, 255, .18);
}

/* 下線付き見出し（共通） */
.ttl-underline {
  position: relative;
  display: inline-block;
  /* ← 見出し自体を基準にする */
  padding-bottom: 0.6em;
}

/* 下線本体 */
.ttl-underline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  /* ← テキスト幅と一致 */
  height: 2px;
}

.underline-white::after {
  background-color: #fff;
}

.underline-black::after {
  background-color: #000;
}

/*worksセクション*/
/* ============================
   Modal Base
============================ */

.modal-box {
  position: fixed;
  inset: 0;
  display: none;
  justify-content: center;
  background: rgba(0, 0, 0, .6);
  align-items: flex-start;
  /* 上寄せ */
  box-sizing: border-box;
  padding-top: 80px;
  z-index: 99999;
}

.modal-box.is-open {
  display: flex;
}

/* ============================
   Modal Inner
============================ */

.modal-inner {
  position: relative;
  background: #fff;
  width: 95%;
  max-width: 1200px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
  border-radius: 8px;
  box-sizing: border-box;
  margin-top: 0;
}

/* ============================
   Close Button（上）
============================ */

.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: transparent;
  border: none;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  z-index: 10;
}

/* ============================
   Trigger
============================ */

.modal-switch {
  cursor: pointer;
}

.modal-switch:hover {
  opacity: .85;
}

/* ============================
   Footer Close（下）
============================ */

.modal-footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  text-align: center;
  border-top: 1px solid #eee;
  background: linear-gradient(to bottom,
      rgba(255, 255, 255, 0),
      #fff 30%);
}

.modal-close-bottom {
  appearance: none;
  background: none;
  border: none;
  font-size: 16px;
  font-weight: 600;
  color: #333;
  padding: 12px 24px;
  cursor: pointer;
}

/* ============================
   Responsive（SP）
============================ */

@media (max-width:599px) {

  /* カラム並び調整（必要な場合のみ） */
  .modal-inner .swell-block-columns__inner {
    flex-direction: column-reverse;
  }

  /* モーダル配置 */
  .modal-box {
    align-items: flex-start;
  }

  .modal-inner {
    width: 100%;
    max-width: none;
    margin-top: env(safe-area-inset-top);
    margin-bottom: 80px;
    /* 下部固定フッター分 */
    max-height: calc(100vh - 80px);
    border-radius: 12px 12px 0 0;
    padding: 3rem 1rem 2rem;
  }

  /* ×ボタン位置 */
  .modal-close {
    top: 63px;
    right: 0;
  }

  /* 下部閉じる文字を少し大きく */
  .modal-close-bottom {
    font-size: 18px;
  }
}

.works-image {
  position: relative;
}

.works-image-label {
  background-color: #ffffff;
  padding: 6px 10px;
  position: absolute;
  bottom: 40px;
  left: 20px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.12);
}

@media (max-width:599px) {
  .works-image-label {
    bottom: 20px;
    left: 5px;
  }
}

.work-label-property {
  margin-top: -8px !important;
}

.section-divider {
  position: relative;
  width: 100%;
  margin: 40px 0;
  text-align: center;
}

/* 横罫線（要素いっぱい） */
.section-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: #d1d5db;
  /* 薄めグレー */
  transform: translateY(-50%);
}

/* テキスト */
.section-divider__text {
  position: relative;
  display: inline-block;
  padding: 0 24px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #9ca3af;
  background-color: #fff;
  /* 背景色に合わせて */
}

/*ai　seo*/
.wp-block-columns.works-column {
  --wp-column-gap: 0.5em !important;
}

/*service*/
.section-ttl-line {
  position: relative;
  padding-bottom: 14px;
}

.section-ttl-line::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: #bbb;
}

.view-price-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #000;
  text-decoration: none;
  position: relative;
  padding-bottom: 6px;
}

/* 下線 */
.view-price-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: #000;
}

/* 矢印 */
.view-price-link .arrow {
  display: inline-block;
  transition: transform 0.3s ease;
}

/* ホバー時：矢印だけ伸ばす */
.view-price-link:hover .arrow {
  transform: translateX(8px);
}

.js-slide-trigger {
  /* displayは触らない（pのブロック幅を維持） */
  opacity: 0;
  transform: translateX(-120px);

  /* 右寄せ文字なら、左を100%カット→0にして「右から現れる」 */
  clip-path: inset(0 0 0 100%);
  -webkit-clip-path: inset(0 0 0 100%);

  will-change: transform, opacity, clip-path;
}

.js-slide-trigger.is-show {
  opacity: 1;
  transform: translateX(0);

  clip-path: inset(0 0 0 0);
  -webkit-clip-path: inset(0 0 0 0);

  transition:
    transform 1.2s cubic-bezier(.16, 1, .3, 1),
    clip-path 1.2s cubic-bezier(.16, 1, .3, 1),
    opacity .4s ease-out;
}

.works-arrow {
  text-align: right;
}


/*profile*/
.img-bw {
  filter: grayscale(100%) saturate(0) brightness(.9) contrast(1.05);
  transition: filter 2.5s cubic-bezier(.22, .61, .36, 1);
}

.img-bw:hover {
  filter: grayscale(0%) saturate(1) brightness(1) contrast(1);
}

.blog-link {
  text-align: right;
}

/*CONTACT*/
.contact-2btn {
  display: flex;
  gap: 24px;
  align-items: stretch;
}

/* 画面が狭いときは縦並びに */
@media (max-width: 600px) {
  .contact-2btn {
    flex-direction: column;
    gap: 14px;
  }
}

.cbtn {
  flex: 1;
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  height: 60px;
  padding: 18px 16px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: transparent;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: .06em;
  border-radius: 2px;
  transition:
    color .35s ease,
    border-color .35s ease,
    box-shadow .45s ease,
    text-shadow .45s ease,
    transform .15s ease;
}

.cbtn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, .35);
  outline-offset: 3px;
}

.cbtn:active {
  transform: translateY(1px);
}

/* LINE：にじんわりLINEっぽい色へ */
.cbtn--line:hover {
  color: #06C755;
  border-color: #06C755;
  box-shadow: 0 0 0 1px rgba(6, 199, 85, .25), 0 0 18px rgba(6, 199, 85, .25);
  text-shadow: 0 0 10px rgba(6, 199, 85, .35);
}

/* 電話：ホバーはグレイ */
.cbtn--tel:hover {
  color: rgba(255, 255, 255, .72);
  border-color: rgba(255, 255, 255, .35);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .10);
}

.cbtn--line .swl-inline-icon,
.cbtn--tel .swl-inline-icon {
  font-size: 25px;
  /* 好きな大きさに調整 */
}