@charset "UTF-8";

/*
==========================================================================
   スクロールバー非表示設定（スクロール機能は維持）
   ※現在、一時的に無効化（表示させる）しています。元に戻す場合は以下のコメントアウトを外してください。
==========================================================================
*/ 
/* 
::-webkit-scrollbar {
    display: none;
}
html, body {
    -ms-overflow-style: none; 
    scrollbar-width: none; 
}
*/


/* ==========================================================================
   CSS Variables
   ========================================================================== */
:root {
  /* Colors */
  --color-blue: #308BB9;
  --color-white: #FFFFFF;
  --color-header-bg: #F5EBE6;
  /* ヘッダー背景色（画像から抽出） */
  --color-text-main: #333333;
  /* 基本のテキストカラー */

  /* Fonts */
  /* 明朝体: Playwrite GB S Guides, Sawarabi Mincho */
  --font-mincho: 'Playwrite GB S Guides', 'Sawarabi Mincho', serif;
  /* ゴシック体: Playwrite GB S Guides, Sawarabi Mincho, Zen Kaku Gothic New */
  --font-gothic: 'Playwrite GB S Guides', 'Sawarabi Mincho', 'Zen Kaku Gothic New', sans-serif;
  --font-gothic-sawarabi: 'Sawarabi Gothic', sans-serif;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
}

body {
  font-family: var(--font-gothic);
  color: var(--color-text-main);
  background-color: var(--color-white);
  overflow-x: hidden;
  /* システムルール：PC版は横幅1920px固定 */
  min-width: 1920px;
}

/* ==========================================================================
   Animations
   ========================================================================== */
/* 文字がぼかしから鮮明になるアニメーション */
.js-fade-text {
  opacity: 0;
  filter: blur(10px);
  transition: opacity 1.5s ease, filter 1.5s ease;
}

.js-fade-text.is-active {
  opacity: 1;
  filter: blur(0);
}

/* ヘッダー内アニメーションの遅延設定（左から順にフワッと出るように） */
.p-header__item:nth-child(1) {
  transition-delay: 0.1s;
}

.p-header__item:nth-child(2) {
  transition-delay: 0.2s;
}

.p-header__item:nth-child(3) {
  transition-delay: 0.3s;
}

.p-header__item:nth-child(4) {
  transition-delay: 0.4s;
}

.p-header__item:nth-child(5) {
  transition-delay: 0.5s;
}

/* ==========================================================================
   Header (ヘッダー)
   ========================================================================== */
.l-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 96px;
  /* 画像の比率から推測 */
  background-color: var(--color-header-bg);
  z-index: 100;
  display: flex;
  align-items: center;
  border-radius: 0;
}

.l-header__inner {
  width: 100%;
  padding: 0 100px 0 100px;
  /* 左右の余白を画像と合わせる（約1.5cm右へ戻すため100pxに調整） */
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.p-header__logo {
  display: flex;
  align-items: center;
  transform: translate(-30px, -4px);
}

.p-header__logo a {
  display: block;
}

/* hedder_logo.svgのサイズ調整 */
.p-header__logo img {
  height: 41px;
  /* 画像内のロゴ高さを再現 */
  width: auto;
}

.p-header__nav {
  display: block;
}

.p-header__list {
  display: flex;
  align-items: center;
  gap: 75px;
  /* 各メニュー間の余白 */
}

.p-header__link {
  display: block;
  font-family: var(--font-mincho);
  /* 明朝体指定 */
  font-size: 16px;
  font-weight: 500;
  color: #333333;
  letter-spacing: 0.08em;
  /* 文字間隔を調整 */
  text-decoration: none;
  position: relative;
}

.p-header__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background-color: #333333;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease-out;
}

.p-header__link:hover::after {
  transform: scaleX(1);
}

/* ==========================================================================
   Hamburger & Drawer Menu
   ========================================================================== */
.p-hamburger {
  position: relative;
  z-index: 200; /* ドロワーよりも上に配置 */
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  margin-left: 75px; /* 各項目の間隔と統一 */
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
}

.p-hamburger span {
  display: block;
  width: 30px;
  height: 2px;
  background-color: var(--color-text-main);
  transition: all 0.3s ease-in-out;
  transform-origin: center;
}

/* is-active付与時の「×」アニメーション */
.p-hamburger.is-active span:nth-child(1) {
  transform: translateY(11px) rotate(45deg);
}
.p-hamburger.is-active span:nth-child(2) {
  opacity: 0;
}
.p-hamburger.is-active span:nth-child(3) {
  transform: translateY(-11px) rotate(-45deg);
}

/* ドロワーメニュー */
.p-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 400px;
  max-width: 100%;
  height: 100vh;
  background-color: var(--color-header-bg);
  z-index: 150;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: -5px 0 15px rgba(0,0,0,0.1);
}

.p-drawer.is-active {
  transform: translateX(0);
}

.p-drawer__list {
  display: flex;
  flex-direction: column;
  gap: 40px;
  text-align: center;
}

.p-drawer__link {
  font-size: 20px;
  font-weight: bold;
  color: var(--color-text-main);
  text-decoration: none;
  transition: opacity 0.3s;
}

.p-drawer__link:hover {
  opacity: 0.6;
}

/* オーバーレイ */
.p-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 140;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.p-drawer-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

/* ==========================================================================
   Main Content
   ========================================================================== */
.l-main {
  /* ヘッダー固定分の余白確保 */
  padding-top: 96px;
}

/* ==========================================================================
   Section 1 (ファーストビュー)
   ========================================================================== */
.p-section1 {
  width: 100%;
  /* ファーストビュー高さ900pxからヘッダー高さを引いた値 */
  height: 804px;
  display: flex;
  flex-direction: column;
  overflow: visible;
  background-color: var(--color-white);
}

.p-section1__slider {
  width: 100%;
  height: 350px;
  /* 350px * 2 (上下) + 104px (帯) = 804px */
  overflow: hidden;
  position: relative;
}

.p-section1__track {
  display: flex;
  height: 100%;
  width: max-content;
}

.p-section1__track img {
  height: 100%;
  width: 640px;
  /* 画像の幅を固定して大きくトリミング */
  object-fit: cover;
  flex-shrink: 0;
}

.p-section1__track img.p-section1__img-small {
  width: 480px;
  /* top10.jpgだけ少し小さめにトリミング */
}

/* 上段スライダーアニメーション（左へ） */
.p-section1__track--left {
  animation: slideLeft 80s linear infinite;
  /* ゆっくりにする */
}

@keyframes slideLeft {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* 下段スライダーアニメーション（右へ） */
.p-section1__track--right {
  transform: translateX(-50%);
  animation: slideRight 80s linear infinite;
  /* ゆっくりにする */
}

@keyframes slideRight {
  0% {
    transform: translateX(-50%);
  }

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

/* 中央の帯 */
.p-section1__band {
  width: 100%;
  height: 104px;
  background-color: var(--color-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.8s ease-out;
}

.p-section1__catch-img {
  height: 50px;
  /* top_copy.png の高さに合わせて調整 */
  width: auto;
}

/* ==========================================================================
   Section 2 (メッセージ)
   ========================================================================== */
.p-section2 {
  position: relative;
  width: 100%;
  padding: 260px 0 100px;
  background-color: var(--color-blue);
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background-color 0.8s ease-out;
}

.p-section2__bg-logo {
  position: absolute;
  top: 50%;
  /* やや上に移動 */
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40.32%;
  /* 先ほどの70%のサイズに縮小 */
  max-width: 605px;
  /* 先ほどの70%のサイズに縮小 */
  opacity: 0;
  transition: opacity 2s ease 0.5s;
  pointer-events: none;
}

.p-section2__bg-logo.is-active {
  opacity: 0.05;
  /* 5%へ変更 */
}

.p-section2__inner {
  position: relative;
  z-index: 2;
  text-align: center;
}

.p-section2__message-box {
  position: relative;
  display: inline-block;
  padding: 15px 70px;
  /* パディングを減らして四角を少し小さくする */
  margin-bottom: 70px;
}

.p-section2__line {
  position: absolute;
  background-color: var(--color-white);
}

/* 右上の頂点を起点に時計回りに線が引かれるアニメーション */
.p-section2__line--right {
  top: 0;
  right: 0;
  width: 1px;
  height: 0;
  transition: height 0.4s linear 1.5s;
}

.p-section2__line--bottom {
  bottom: 0;
  right: 0;
  height: 1px;
  width: 0;
  transition: width 0.4s linear 1.9s;
}

.p-section2__line--left {
  bottom: 0;
  left: 0;
  width: 1px;
  height: 0;
  transition: height 0.4s linear 2.3s;
}

.p-section2__line--top {
  top: 0;
  left: 0;
  height: 1px;
  width: 0;
  transition: width 0.4s linear 2.7s;
}

.js-draw-box.is-active .p-section2__line--right,
.js-draw-box.is-active .p-section2__line--left {
  height: 100%;
}

.js-draw-box.is-active .p-section2__line--bottom,
.js-draw-box.is-active .p-section2__line--top {
  width: 100%;
}

.p-section2__message {
  font-family: var(--font-mincho);
  font-size: 56px;
  color: var(--color-white);
  letter-spacing: 0.15em;
  font-weight: normal;
}

.p-section2__character.js-fade-text {
  text-align: center;
  margin-top: -20px;
  margin-bottom: 40px;
  /* 親コンテナ自体のフェードは無効化（子要素で個別にアニメーションするため） */
  opacity: 1;
  filter: none;
  transform: none;
  transition: none;
}

.p-section2__character-group {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  width: 450px;
  max-width: 100%;
  margin: 0 auto;
}

.p-section2__character-group img.p-section2__character-part {
  height: auto;
  width: auto;
  /* 初期状態は非表示・下にずらす */
  opacity: 0;
  filter: blur(10px);
  transform: translateY(40px);
  transition: opacity 0.5s ease, filter 0.5s ease, transform 0.5s ease-out;
}

/* アクティブ時に元の位置・表示に戻す */
.p-section2__character.is-active .p-section2__character-part {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

/* 文字（遅延0.8s）より後に、01→02→03→04の順で表示 */
.p-section2__character-group img.p-section2__character-part--1 { width: 17.17%; transition-delay: 1.0s; }
.p-section2__character-group img.p-section2__character-part--2 { width: 18.70%; margin-right: 2%; transition-delay: 1.15s; }
.p-section2__character-group img.p-section2__character-part--3 { width: 17.03%; margin-right: 2%; transition-delay: 1.3s; }
.p-section2__character-group img.p-section2__character-part--4 { width: 44.54%; transition-delay: 1.45s; }

.p-section2__text-wrap {
  /* 文章は少し遅れてフェードインさせる */
  transition-delay: 0.8s;
}

.p-section2__text {
  font-family: var(--font-mincho);
  font-size: 18px;
  color: var(--color-white);
  line-height: 2.4;
  letter-spacing: 0.12em;
  text-align: center;
}

/* ==========================================================================
   Section 3 (私たちにできること)
   ========================================================================== */
.p-section3 {
  background-color: var(--color-blue);
  padding: 450px 0 150px;
  position: relative;
  overflow: hidden;
  transition: background-color 0.8s ease-out;
  /* ピンクへの滑らかなグラデーション変化 */
}

body.is-pink .p-section1__band,
body.is-pink .p-section2,
body.is-pink .p-section3,
body.is-pink .p-section4,
body.is-pink .p-section5 {
  background-color: #CA5386;
}

body.is-orange .p-section1__band,
body.is-orange .p-section2,
body.is-orange .p-section3,
body.is-orange .p-section4,
body.is-orange .p-section5 {
  background-color: #D35100;
}

body.is-green .p-section1__band,
body.is-green .p-section2,
body.is-green .p-section3,
body.is-green .p-section4,
body.is-green .p-section5 {
  background-color: #41A92C;
}

.p-section3__wave {
  position: absolute;
  left: 0;
  width: 100%;
  height: 200px;
  pointer-events: none;
  z-index: 0;
}

.p-section3__wave--1 {
  top: 150px;
  height: 350px;
  will-change: height;
}

.p-section3__wave--1 path {
  will-change: transform;
}


.p-section3__inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 50px;
  position: relative;
  z-index: 1;
}

.p-section3__block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 120px;
}

.p-section3__block:last-child {
  margin-bottom: 0;
}

.p-section3__content {
  width: 45%;
  position: relative;
  z-index: 2;
}

.p-section3__img {
  width: 48%;
  position: relative;
  z-index: 1;
}

.p-section3__img img {
  width: 100%;
  height: auto;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* 段落テキストのコンテナ自体は写真と重ならないようにする */
.p-section3__block--right-img .p-section3__content {
  margin-right: 0;
  padding-right: 0;
}

.p-section3__block--left-img {
  flex-direction: row-reverse;
}

.p-section3__block--left-img .p-section3__content {
  margin-left: 0;
  padding-left: 0;
}

/* タイトル画像（_front.png）のみが写真（_back.png）に大きく重なるように調整 */
.p-section3__title-wrap {
  position: relative;
  display: block;
  margin-bottom: 40px;
}

.p-section3__block--right-img .p-section3__title-wrap {
  width: 130%;
  /* 右側の写真にはみ出させる */
}

.p-section3__block--left-img .p-section3__title-wrap {
  width: 130%;
  margin-left: -30%;
  /* 左側の写真にはみ出させる */
}

.p-section3__cat {
  position: absolute;
  top: -15px;
  border: 1px solid var(--color-white);
  padding: 4px 14px;
  font-family: var(--font-gothic);
  font-size: 14px;
  color: var(--color-white);
  letter-spacing: 0.1em;
  white-space: nowrap;
}

/* Marketing ウサギのラッパー（スクロール検知同期用） */
.p-marketing-rabbits {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 1 !important; /* ラッパー自体は最初から表示（子が個別にフェードインする） */
}

/* Marketing ウサギのバウンドアニメーション */
.p-marketing-char {
  position: absolute;
  z-index: 10;
  opacity: 0;
}

/* 左のウサギ (character03) - 後ろを追いかける */
.p-marketing-char--03 {
  top: -130px; 
  left: 140px; 
}
.p-marketing-rabbits.is-active .p-marketing-char--03 {
  animation: moveMarketingX 1.4s cubic-bezier(0.2, 0, 0.4, 1) 1.3s forwards;
  transition: none;
}
.p-marketing-rabbits.is-active .p-marketing-char--03 .p-marketing-char__bounce {
  animation: moveMarketingY 1.4s 1.3s forwards;
}

/* 右のウサギ (character02) - 先を走る */
.p-marketing-char--02 {
  top: -80px; 
  left: 215px; 
}
.p-marketing-rabbits.is-active .p-marketing-char--02 {
  animation: moveMarketingX 1.4s cubic-bezier(0.2, 0, 0.4, 1) 1.2s forwards; 
  transition: none;
}
.p-marketing-rabbits.is-active .p-marketing-char--02 .p-marketing-char__bounce {
  animation: moveMarketingY 1.4s 1.2s forwards;
}

@keyframes moveMarketingX {
  0% { opacity: 0; transform: translateX(-200px); }
  15% { opacity: 1; }
  100% { opacity: 1; transform: translateX(0px); }
}

@keyframes moveMarketingY {
  0% {
    transform: translateY(-60px);
    animation-timing-function: cubic-bezier(0.5, 0, 1, 1);
  }
  35% {
    transform: translateY(20px);
    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
  }
  70% {
    transform: translateY(-5px); 
    animation-timing-function: cubic-bezier(0.5, 0, 1, 1);
  }
  100% {
    transform: translateY(0px);
  }
}

.p-section3__title-img img {
  max-width: 100%;
  height: auto;
}

.p-section3__text {
  font-family: "Sawarabi Mincho", serif;
  font-size: 16px;
  color: var(--color-white);
  line-height: 2.2;
  letter-spacing: 0.05em;
}

/* New Layout for Marketing Block */
.p-section3__full-block {
  display: flex;
  align-items: stretch;
  width: 100%;
  max-width: 1920px;
  margin: 0 auto 120px;
}

.p-section3__content--half {
  width: 50%;
  padding-top: 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.p-section3__content--half.is-left {
  padding-left: calc(50% - 600px);
  padding-right: 50px;
}

.p-section3__content--half.is-right {
  padding-right: calc(50% - 600px);
  padding-left: 50px;
}

.p-section3__title-wrap--styled {
  position: relative;
  display: inline-block;
  margin-left: -280px;
  margin-bottom: 20px;
}

.p-section3__title-wrap--press {
  margin-left: -150px;
}

.p-section3__gear-wrapper {
  position: absolute;
  top: 4px;
  right: 20px;
  width: 200px;
  height: 200px;
  z-index: 10;
}

.p-section3__gear-animation {
  position: relative;
  width: 100%;
  height: 100%;
  opacity: 0.8;
  display: block;
  transform: scale(0.8);
  transform-origin: center center;
  transition: transform 0.3s ease, opacity 0.3s ease;
  cursor: pointer;
  filter: drop-shadow(3px 3px 0px rgba(0, 0, 0, 0.3));
}

.p-section3__gear-animation:hover {
  transform: scale(0.85);
  opacity: 1;
}

.p-section3__gear-text-svg {
  position: absolute;
  top: 70px;
  left: 70px;
  transform: translate(-50%, -50%);
  width: 90px;
  height: auto;
  z-index: 2;
  fill: #308BB9;
  transition: fill 0.8s ease-out;
}

body.is-pink .p-section3__gear-text-svg { fill: #CA5386; }
body.is-orange .p-section3__gear-text-svg { fill: #D35100; }
body.is-green .p-section3__gear-text-svg { fill: #41A92C; }

.p-section3__gear {
  position: absolute;
}

.p-section3__gear--1 {
  width: 140px;
  top: 0;
  left: 0;
  animation: spinRight 20s linear infinite;
}

@keyframes spinRight {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.is-right .p-section3__title-wrap--styled {
  margin-left: 80px;
}

.p-section3__cat--marketing {
  position: absolute;
  left: 620px;
  top: 10px;
  font-family: "Sawarabi Mincho", serif;
  font-size: 20px;
  color: var(--color-white);
  letter-spacing: 0.1em;
}

.p-section3__cat--creative {
  position: absolute;
  left: 140px; /* ウサギたちが元々いた左側へ移動 */
  top: 10px;
  font-family: "Sawarabi Mincho", serif;
  font-size: 20px;
  color: var(--color-white);
  letter-spacing: 0.1em;
}

/* Creative ウサギのバウンドアニメーション（右側に着地） */
.p-creative-char {
  position: absolute;
  z-index: 10;
  opacity: 0;
}

/* 左のウサギ (character04) - 後ろを追いかける */
.p-creative-char--04 {
  top: -110px; /* 5ミリほど下へ調整 */
  left: 500px; /* クリエイティブの文字があった位置 */
}
.p-marketing-rabbits.is-active .p-creative-char--04 {
  animation: moveCreativeX 1.4s cubic-bezier(0.2, 0, 0.4, 1) 1.3s forwards;
  transition: none;
}
.p-marketing-rabbits.is-active .p-creative-char--04 .p-marketing-char__bounce {
  animation: moveCreativeY 1.4s 1.3s forwards; /* Creative専用の下から飛び上がるアニメーション */
}

/* 右のウサギ (character05) - 先を走る */
.p-creative-char--05 {
  top: -60px; /* 5ミリほど下へ調整 */
  left: 575px; 
}
.p-marketing-rabbits.is-active .p-creative-char--05 {
  animation: moveCreativeX 1.4s cubic-bezier(0.2, 0, 0.4, 1) 1.2s forwards; 
  transition: none;
}
.p-marketing-rabbits.is-active .p-creative-char--05 .p-marketing-char__bounce {
  animation: moveCreativeY 1.4s 1.2s forwards; /* Creative専用の下から飛び上がるアニメーション */
}

@keyframes moveCreativeX {
  0% { opacity: 0; transform: translateX(0px); }
  40% { opacity: 0; } /* 文字を通過する間は見えないようにする */
  70% { opacity: 1; transform: translateX(0px); } /* eの上（定位置）に到着する頃に100% */
  100% { opacity: 1; transform: translateX(0px); }
}

@keyframes moveCreativeY {
  0% {
    transform: translateY(150px); /* 下からスタート */
    animation-timing-function: cubic-bezier(0.2, 0, 0.2, 1); /* スッと上に上がる */
  }
  70% {
    transform: translateY(0px); /* 早めに定位置へ */
  }
  100% {
    transform: translateY(0px); /* そのまま制止 */
  }
}

/* Press ウサギの配置（左からフェードイン） */
.p-press-rabbits {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.p-press-char {
  position: absolute;
  z-index: 10;
  opacity: 0;
}

/* 左側の大きいウサギ */
.p-press-char--07 {
  top: -122px; /* 2mm（約8px）下へ移動 */
  left: -30px; 
}
.p-press-rabbits.is-active .p-press-char--07 {
  animation: fadeLeftX 1.4s cubic-bezier(0.2, 0, 0.4, 1) 1.35s forwards; /* 後から追いかける */
}

/* 右側の小さいウサギ */
.p-press-char--06 {
  top: -72px; /* 2mm（約8px）下へ移動 */
  left: 65px; 
}
.p-press-rabbits.is-active .p-press-char--06 {
  animation: fadeLeftX 1.4s cubic-bezier(0.2, 0, 0.4, 1) 1.2s forwards; /* 先に走る */
}

@keyframes fadeLeftX {
  0% { opacity: 0; transform: translateX(-150px); }
  100% { opacity: 1; transform: translateX(0px); }
}

.p-section3__cat--press {
  position: absolute;
  left: 320px;
  top: 10px;
  font-family: "Sawarabi Mincho", serif;
  font-size: 20px;
  color: var(--color-white);
  letter-spacing: 0.1em;
}

.p-section3__title-svg {
  display: block;
}

.p-section3__title-text {
  font-family: "Sawarabi Mincho", serif;
  font-weight: 400;
  font-style: normal;
  font-size: 110pt;
  fill: transparent;
  stroke: var(--color-white);
  stroke-width: 1px;
}

text.js-fade-text {
  opacity: 1 !important;
  filter: none !important;
  stroke-dasharray: 1500;
  stroke-dashoffset: 1500;
  transition: stroke-dashoffset 2.5s ease-in-out;
}

text.js-fade-text.is-active {
  stroke-dashoffset: 0;
}

.p-section3__text--styled {
  font-size: 14px;
  margin-left: -200px;
}

.is-right .p-section3__text--styled {
  margin-left: 80px;
}

.p-section3__img-wrap {
  width: 50%;
}

.p-section3__img-wrap img {
  width: 100%;
  height: auto;
}

/* ==========================================================================
   Section 4 (Works 制作実績)
   ========================================================================== */
.p-section4__wave {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 350px;
  overflow: visible;
  pointer-events: none;
  z-index: 10;
  transition: height 0.3s ease-out;
}

.p-section4__wave path {
  transition: transform 0s;
}

.p-section4 {
  background-color: var(--color-blue);
  padding: 400px 0 150px;
  /* Section3との間隔をSection2〜3と同等に空ける */
  transition: background-color 0.8s ease-out;
  overflow: hidden;
  position: relative;
  width: 100%;
}


.p-section4__inner {
  width: 1920px;
  height: 1400px;
  /* 2000pxの70% */
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

.p-section4__title-wrap {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: var(--color-white);
  z-index: 10;
  width: 320px;
  height: 320px;
  border: 1px solid var(--color-white);
  /* 線を細く変更 */
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
}

.p-section4__title-en {
  display: block;
  font-family: "Sawarabi Mincho", serif;
  font-weight: 400;
  font-style: normal;
  font-size: 24px;
  letter-spacing: 0.1em;
  margin-bottom: 15px;
}

.p-section4__title-ja {
  font-family: "Sawarabi Mincho", serif;
  font-weight: 400;
  font-style: normal;
  font-size: 40px;
  letter-spacing: 0.2em;
  margin: 0;
}

/* 背景装飾バブル */
.p-section4__bg-bubbles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  /* タイトルや実績画像より奥 */
}

.p-section4__bg-bubble {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 50%;
  will-change: transform;
  box-sizing: border-box;
}

/* 実績画像バブル */
.p-section4__item {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 50%;
  background-color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
  /* ほんのり影を落とす */
}

.p-section4__item img {
  max-width: 70%;
  max-height: 70%;
  object-fit: contain;
}

/* クリップマスク用レイヤー */
.p-section4__clip-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 15;
  clip-path: url(#bubble-clip);
}

/* 重なり部分描画用レイヤー */
.p-section4__overlap-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 11;
  /* ホバー中のバブル(z-index:10)の上に描画する */
  color: var(--color-blue);
  transition: color 0.8s ease-out;
}

body.is-pink .p-section4__overlap-layer {
  color: #CA5386;
}

body.is-orange .p-section4__overlap-layer {
  color: #D35100;
}

body.is-green .p-section4__overlap-layer {
  color: #41A92C;
}

.p-section4__title-wrap--clipped .p-section4__title-en,
.p-section4__title-wrap--clipped .p-section4__title-ja {
  color: currentColor;
  /* .p-section4__clip-layerのcolorを継承 */
}

.p-section4__title-wrap--clipped {
  border-color: currentColor;
  /* クリップされる円の枠線も色を反転させる */
  color: var(--color-blue);
  transition: color 0.8s ease-out;
}

body.is-pink .p-section4__title-wrap--clipped .p-section4__title-en,
body.is-pink .p-section4__title-wrap--clipped .p-section4__title-ja {
  color: #CA5386;
}

body.is-orange .p-section4__title-wrap--clipped {
  color: #D35100;
}

body.is-green .p-section4__title-wrap--clipped {
  color: #41A92C;
}

body.is-orange .p-modal__thumb.is-active {
  border-color: #D35100;
  box-shadow: 0 0 10px #D35100;
}

body.is-green .p-modal__thumb.is-active {
  border-color: #41A92C;
  box-shadow: 0 0 10px #41A92C;
}

body.is-orange .p-section4__title-wrap--clipped .p-section4__title-en,
body.is-orange .p-section4__title-wrap--clipped .p-section4__title-ja {
  color: #D35100;
}

body.is-green .p-section4__title-wrap--clipped .p-section4__title-en,
body.is-green .p-section4__title-wrap--clipped .p-section4__title-ja {
  color: #41A92C;
}

/* JSで座標制御するためのベース指定 (初期配置用トップレフトはJS側に移行) */
.p-section4__item--1 {
  width: 250px;
  height: 250px;
}

.p-section4__item--2 {
  width: 330px;
  height: 330px;
}

.p-section4__item--3 {
  width: 450px;
  height: 450px;
}

.p-section4__item--4 {
  width: 210px;
  height: 210px;
}

.p-section4__item--5 {
  width: 390px;
  height: 390px;
}

.p-section4__item--6 {
  width: 280px;
  height: 280px;
}

.p-section4__item--7 {
  width: 420px;
  height: 420px;
}

.p-section4__item--8 {
  width: 220px;
  height: 220px;
}

.p-section4__item--9 {
  width: 360px;
  height: 360px;
}

.p-section4__item--10 {
  width: 250px;
  height: 250px;
}

.p-section4__item--11 {
  width: 150px;
  height: 150px;
}

/* ==========================================================================
   Modal Gallery (Section 4 ライトボックス)
   ========================================================================== */
.p-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.p-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.p-modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  cursor: pointer;
}

.p-modal__content {
  position: relative;
  z-index: 1;
  width: 90%;
  max-width: 1400px;
  height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.p-modal__close {
  position: absolute;
  top: -20px;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 50px;
  cursor: pointer;
  z-index: 10;
  line-height: 1;
  transition: opacity 0.3s;
}

.p-modal__close:hover {
  opacity: 0.7;
}

.p-modal__main {
  position: relative;
  width: 100%;
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  overflow: hidden;
}

.p-modal__arrow {
  background: none;
  border: none;
  color: #fff;
  width: 60px;
  height: 60px;
  cursor: pointer;
  transition: transform 0.3s, opacity 0.3s;
  opacity: 0.7;
  flex-shrink: 0;
}

.p-modal__arrow:hover {
  opacity: 1;
  transform: scale(1.1);
}

.p-modal__img-wrap {
  flex-grow: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 40px;
}

.p-modal__caption {
  color: #fff;
  margin-top: 20px;
  font-size: 16px;
  text-align: center;
  font-family: "Sawarabi Gothic", sans-serif;
  letter-spacing: 0.05em;
  line-height: 1.6;
  white-space: nowrap;
  height: 26px;
}

.p-modal__img-wrap img {
  width: 70vmin;
  height: 70vmin;
  object-fit: contain;
  background-color: rgba(255, 255, 255, 0.8);
  /* 不透明度80%の白 */
  border-radius: 30px;
  /* 角丸 */
  padding: 40px;
  /* 画像と白枠の間の余白 */
  box-sizing: border-box;
  filter: drop-shadow(0 10px 40px rgba(0, 0, 0, 0.5));
  flex-shrink: 0;
}

.p-modal__thumbnails {
  display: flex;
  gap: 15px;
  justify-content: center;
  height: 100px;
  padding-bottom: 10px;
  flex-shrink: 0;
}

.p-modal__thumb {
  background: none;
  border: 3px solid transparent;
  padding: 5px;
  cursor: pointer;
  border-radius: 10px;
  overflow: hidden;
  height: 100%;
  aspect-ratio: 1;
  opacity: 0.5;
  transition: opacity 0.3s, border-color 0.3s;
  background-color: var(--color-white);
}

.p-modal__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.p-modal__thumb:hover {
  opacity: 0.8;
}

.p-modal__thumb.is-active {
  opacity: 1;
  border-color: var(--color-blue);
}

body.is-pink .p-modal__thumb.is-active {
  border-color: #CA5386;
}

/* ==========================================================================
   Section 5 (Topics)
   ========================================================================== */
.p-section5__wave {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 350px;
  overflow: visible;
  pointer-events: none;
  z-index: 10;
  transition: height 0.3s ease-out;
}

.p-section5__wave path {
  transition: transform 0s;
}

.p-section5 {
  background-color: var(--color-blue);
  padding: 400px 0 150px;
  transition: background-color 0.8s ease-out;
  width: 100%;
  position: relative;
  overflow: hidden;
}

/* body.is-pink / body.is-orange for .p-section5 moved to global rule */

.p-section5__inner {
  width: 900px;
  margin: 0 auto;
}

.p-section5__title-wrap {
  text-align: center;
  color: var(--color-white);
  margin-bottom: 80px;
}

.p-section5__title-en {
  display: block;
  font-family: "Sawarabi Mincho", serif;
  font-weight: 400;
  font-style: normal;
  font-size: 20px;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}

.p-section5__title-ja {
  font-family: "Sawarabi Mincho", serif;
  font-weight: 400;
  font-style: normal;
  font-size: 36px;
  letter-spacing: 0.2em;
  margin: 0;
}

.p-section5__list {
  display: block;
}

.p-section5__item {
  position: relative;
  border-top: 1px solid var(--color-white);
}

.p-section5__item::before,
.p-section5__item::after {
  content: "";
  position: absolute;
  top: -4px;
  width: 7px;
  height: 7px;
  background-color: var(--color-white);
  border-radius: 50%;
}

.p-section5__item::before {
  left: 0;
}

.p-section5__item::after {
  right: 0;
}

.p-section5__item:last-child {
  border-bottom: 1px solid var(--color-white);
}

.p-section5__item:last-child .p-section5__row::before,
.p-section5__item:last-child .p-section5__row::after {
  content: "";
  position: absolute;
  bottom: -4px;
  width: 7px;
  height: 7px;
  background-color: var(--color-white);
  border-radius: 50%;
}

.p-section5__item:last-child .p-section5__row::before {
  left: 0;
}

.p-section5__item:last-child .p-section5__row::after {
  right: 0;
}

.p-section5__row {
  display: flex;
  align-items: center;
  padding: 40px 0;
  color: var(--color-white);
  position: relative;
}

.p-section5__img-link {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.3s ease;
  display: block;
  flex-shrink: 0;
  margin-right: 40px;
}

.p-section5__heading-link {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.3s ease;
  display: inline-block;
  margin-bottom: 20px;
}

a.p-section5__img-link:hover,
a.p-section5__heading-link:hover {
  opacity: 0.7;
}

.p-section5__img {
  width: 232px;
  height: 160px;
  background-color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.p-section5__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.p-section5__content {
  flex-grow: 1;
}

.p-section5__meta {
  margin-bottom: 15px;
}

.p-section5__date {
  display: inline-block;
  background-color: var(--color-white);
  color: var(--color-blue);
  font-family: var(--font-gothic-sawarabi);
  font-size: 14px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 2px;
}

body.is-pink .p-section5__date {
  color: #CA5386;
}

body.is-orange .p-section5__date {
  color: #D35100;
}

body.is-green .p-section5__date {
  color: #41A92C;
}

.p-section5__heading {
  font-family: var(--font-gothic-sawarabi);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 0;
  letter-spacing: 0.05em;
}

.p-section5__line {
  width: 100%;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.4);
  margin-bottom: 20px;
}

.p-section5__desc {
  font-family: var(--font-gothic-sawarabi);
  font-size: 15px;
  line-height: 1.8;
  letter-spacing: 0.05em;
  font-weight: normal;
}

.p-section5__text-link {
  text-decoration: underline;
}


/* ==========================================================================
   Section 6 (Recruit 採用情報)
   ========================================================================== */
.p-section6 {
  background-color: var(--color-blue);
  padding: 400px 0 150px;
  position: relative;
  width: 100%;
  text-align: center;
  color: var(--color-white);
  overflow: hidden;
  transition: background-color 0.8s ease-out;
}

body.is-pink .p-section6 {
  background-color: #CA5386;
}

body.is-orange .p-section6 {
  background-color: #D35100;
}

body.is-green .p-section6 {
  background-color: #41A92C;
}

.p-section6__wave {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 200px;
  pointer-events: none;
  z-index: 10;
}

.p-section6__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.p-section6__title-wrap {
  margin-bottom: 60px;
}

.p-section6__title-en {
  display: block;
  font-size: 18px;
  letter-spacing: 0.1em;
  margin-bottom: 15px;
}

.p-section6__title-ja {
  font-size: 36px;
  letter-spacing: 0.2em;
  margin: 0;
}

.p-section6__btn-wrap {
  margin-top: 20px;
}

.p-section6__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 320px;
  height: 60px;
  background-color: var(--color-white);
  color: var(--color-blue);
  font-size: 18px;
  font-weight: bold !important;
  letter-spacing: 0.1em;
  text-decoration: none;
  position: relative;
  transition: opacity 0.3s ease, color 0.8s ease-out;
}

.p-section6__btn:hover {
  opacity: 0.8;
}

.p-section6__btn::after {
  content: "";
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 0 20px 20px;
  border-color: transparent transparent var(--color-blue) transparent;
  transform-origin: bottom right;
  transition: transform 0.3s ease-out, border-color 0.8s ease-out;
}

.p-section6__btn:hover::after {
  transform: scale(0);
}

body.is-pink .p-section6__btn {
  color: #CA5386;
}

body.is-pink .p-section6__btn::after {
  border-color: transparent transparent #CA5386 transparent;
}

body.is-orange .p-section6__btn {
  color: #D35100;
}

body.is-orange .p-section6__btn::after {
  border-color: transparent transparent #D35100 transparent;
}

body.is-green .p-section6__btn {
  color: #41A92C;
}

body.is-green .p-section6__btn::after {
  border-color: transparent transparent #41A92C transparent;
}

/* 指定されたフォントクラス */
.sawarabi-mincho-regular {
  font-family: "Sawarabi Mincho", serif;
  font-weight: 400;
  font-style: normal;
}

.sawarabi-gothic-regular {
  font-family: "Sawarabi Gothic", sans-serif;
  font-weight: 400;
  font-style: normal;
}

/* ==========================================================================
   Section 7 (Company 会社概要)
   ========================================================================== */
.p-section7 {
  background-color: var(--color-blue);
  padding: 150px 0;
  color: var(--color-white);
  transition: background-color 0.8s ease-out;
}

body.is-pink .p-section7 {
  background-color: #CA5386;
}

body.is-orange .p-section7 {
  background-color: #D35100;
}

body.is-green .p-section7 {
  background-color: #41A92C;
}

.p-section7__inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 40px;
}

.p-section7__title {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  letter-spacing: 0.1em;
  margin-bottom: 80px;
  font-weight: normal;
}

.p-section7__title::before,
.p-section7__title::after {
  content: "";
  flex-grow: 1;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.4);
}

.p-section7__title::before {
  margin-right: 30px;
}

.p-section7__title::after {
  margin-left: 30px;
}

.p-section7__content {
  display: flex;
  justify-content: center;
  gap: 120px;
}

.p-section7__col {
  width: auto;
}

.p-section7__list {
  font-size: 15px;
  line-height: 2.2;
  letter-spacing: 0.05em;
  margin: 0;
}

.p-section7__row {
  display: flex;
  margin-bottom: 25px;
}

.p-section7__row dt {
  white-space: nowrap;
}

.p-section7__row dd {
  margin: 0;
}

/* ==========================================================================
   Contact (お問い合わせ)
   ========================================================================== */
.p-contact {
  background-color: var(--color-blue);
  padding: 150px 0;
  color: var(--color-white);
  text-align: center;
  transition: background-color 0.8s ease-out;
}

body.is-pink .p-contact {
  background-color: #CA5386;
}

body.is-orange .p-contact {
  background-color: #D35100;
}

body.is-green .p-contact {
  background-color: #41A92C;
}

.p-contact__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.p-contact__title-wrap {
  margin-bottom: 60px;
}

.p-contact__title-en {
  display: block;
  font-size: 16px;
  letter-spacing: 0.1em;
  margin-bottom: 15px;
}

.p-contact__title-ja {
  font-size: 32px;
  letter-spacing: 0.2em;
  margin: 0;
}

.p-contact__lead {
  font-size: 14px;
  line-height: 2.2;
  letter-spacing: 0.1em;
  margin-bottom: 80px;
}

.p-contact__items {
  display: flex;
  justify-content: center;
  align-items: center;
}

.p-contact__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.p-contact__item--center::before,
.p-contact__item--center::after {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 140px;
  background-color: rgba(255, 255, 255, 0.5);
}

.p-contact__item--center::before {
  left: 0;
}

.p-contact__item--center::after {
  right: 0;
}

.p-contact__icon {
  height: 60px;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.p-contact__icon img {
  height: 60px;
  width: auto;
  display: block;
}

/* メールアイコンのみ一回り小さく */
.p-contact__item:first-child .p-contact__icon img {
  height: 48px;
}

.p-contact__label {
  font-size: 13px;
  letter-spacing: 0.1em;
  margin-bottom: 15px;
}

.p-contact__info {
  font-size: 18px;
  letter-spacing: 0.1em;
  margin: 0;
}

.p-contact__info--large {
  font-size: 26px;
}

/* ==========================================================================
   Banners
   ========================================================================== */
.p-banners {
  background-color: var(--color-blue);
  padding: 0 0 300px;
  width: 100%;
  transition: background-color 0.8s ease-out;
}

body.is-pink .p-banners {
  background-color: #CA5386;
}

body.is-orange .p-banners {
  background-color: #D35100;
}

body.is-green .p-banners {
  background-color: #41A92C;
}

.p-banners__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: center;
  gap: 60px;
}

.p-banners__link {
  display: block;
  flex: 1;
  max-width: none;
  transition: opacity 0.3s ease;
}

.p-banners__link:hover {
  opacity: 0.8;
}

.p-banners__link img {
  width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.p-footer {
  position: relative;
  z-index: 10000; /* 右下のキャラページボタン（z-index: 9999）を後ろに隠すための設定 */
  background-color: #FDF5F2;
  padding: 60px 0;
  color: #333;
}

.p-footer__character {
  position: absolute;
  top: 0;
  right: 15%;
  transform: translateY(-98%);
  width: 350px;
  pointer-events: none;
}

.p-footer__character img {
  width: 100%;
  height: auto;
  display: block;
}

.p-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.p-footer__content {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 50px;
}

.p-footer__companies {
  display: flex;
  gap: 80px;
}

.p-footer__company-name {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 5px;
}

/* 第一オフ輪印刷株式会社のリンクスタイル */
.p-footer__company-link {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: opacity 0.3s ease;
}

.p-footer__company-link .p-footer__company-name {
  display: inline-block;
  border-bottom: 0.3pt dashed currentColor;
  padding-bottom: 0px;
}

.p-footer__company-link:hover {
  opacity: 0.7;
}

.p-footer__company-info {
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
  letter-spacing: 0.05em;
  color: #555;
}

.p-footer__sns {
  display: flex;
  gap: 40px;
  margin-bottom: 10px;
  transform: translateX(20px);
}

.p-footer__sns-link {
  width: 60px;
  height: 60px;
  display: block;
  transition: opacity 0.3s ease;
}

.p-footer__sns-link:hover {
  opacity: 0.7;
}

.p-footer__sns-link img {
  width: 100%;
  height: auto;
  display: block;
}

.p-footer__links {
  border-top: none;
}

.p-footer__link-list {
  display: flex;
  gap: 60px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.p-footer__link-list li {
  position: relative;
}

.p-footer__link-list li:not(:last-child)::after {
  content: "/";
  position: absolute;
  right: -30px;
  top: 50%;
  transform: translateY(-50%);
  color: #555;
  font-size: 13px;
}

.p-footer__link-list a {
  color: #555;
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.05em;
  transition: opacity 0.3s ease;
}

.p-footer__link-list a:hover {
  opacity: 0.7;
}

/* ==========================================================================
   トップページ ファーストビュー お問い合わせボタン
   ========================================================================== */
.p-section1 {
  position: relative;
}

/* 一定間隔で大きくなる鼓動（パルス）アニメーション */
@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  10% { transform: scale(1.05); }
  20% { transform: scale(1); }
}



/* リロード時にポップアップで登場するアニメーション */
@keyframes popupBtn {
  0% { transform: scale(0); opacity: 0; }
  60% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

/* 登場アニメーションはラッパー側で制御し、ホバーリセットを防ぐ */
.p-fv-contact-btn-wrapper {
  position: absolute;
  bottom: -80px;
  left: 100px;
  width: 240px;
  height: 240px;
  z-index: 90;
  /* 最初は非表示で待機し、1.2秒後にポップアップ登場 */
  animation: popupBtn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) 1.2s both;
}

.p-fv-contact-btn {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--color-blue);
  text-decoration: none;
  background-color: #FFCC00;
  box-shadow: 6px 6px 0px #0C5072;
  /* ポップアップ完了後（1.2s+0.8s=2.0s以降）から鼓動を開始 */
  animation: heartbeat 2s 2.0s infinite both;
  /* ホバー時によりふわっと大きくなるように、0.6秒かけて滑らかに変化 */
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}



/* 1.5mm内側の線（1pt, 文字と同じ色） */
.p-fv-contact-btn::before {
  content: "";
  position: absolute;
  top: 1.5mm;
  left: 1.5mm;
  right: 1.5mm;
  bottom: 1.5mm;
  border: 1pt solid var(--color-blue);
  border-radius: 50%;
  pointer-events: none;
}

.p-fv-contact-btn__text {
  font-size: 22.5pt;
  font-weight: bold;
  line-height: 1.3;
  transform: translateY(1.5mm);
}

.p-fv-contact-btn:hover {
  opacity: 1;
  animation: none; /* 鼓動のみ止まる（親のポップアップは止まらないため再登場しない） */
  transform: scale(1.1);
}

.kiwi-maru-regular {
  font-family: "Kiwi Maru", "ヒラギノ丸ゴ ProN", "Hiragino Maru Gothic ProN", "メイリオ", Meiryo, sans-serif;
  font-weight: 400;
  font-style: normal;
}

/* ==========================================================================
   Floating Character Button
   ========================================================================== */
.p-floating-character {
  position: fixed;
  bottom: -65px;
  right: 80px;
  width: 90px;
  z-index: 9999;
  display: block;
  /* 初期状態は画面下に見えないように下げる */
  transform: translateY(150%);
  opacity: 0;
  transition: transform 0.3s ease;

  /* アニメーション状態制御用の変数 */
  --badge-s-min: 1;
  --badge-s-max: 1.1;
  --badge-ty-min: 0px;
  --badge-ty-max: -3px;
  --badge-op-min: 0.7;
  --badge-op-max: 1;

  --char-s-qX: 1.05; --char-s-qY: 0.95; --char-ty-q: 2px;
  --char-s-sX: 0.95; --char-s-sY: 1.05; --char-ty-s: -5px;
  --char-s-eX: 1.02; --char-s-eY: 0.98; --char-ty-e: 1px;
}

.p-floating-character.is-active {
  /* jsでクラス付与後に登場 */
  animation: popUpCharacter 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.p-floating-character:hover {
  /* 全体が少し上に上がる（元の仕様） */
  transform: translateY(-10px) !important;
  
  /* ホバー時は変数を上書きし、進行中のアニメーションを見かけ上固定状態にする */
  --badge-s-min: 1.1;
  --badge-ty-min: -3px;
  --badge-op-min: 1;

  --char-s-qX: 1; --char-s-qY: 1; --char-ty-q: 0px;
  --char-s-sX: 1; --char-s-sY: 1; --char-ty-s: 0px;
  --char-s-eX: 1; --char-s-eY: 1; --char-ty-e: 0px;
}

.p-floating-character__main-img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.15));
  position: relative;
  z-index: 1;
  transform-origin: bottom center;
}

.p-floating-character.is-active .p-floating-character__main-img {
  /* 4秒に1回、ピクッと動く */
  animation: characterTwitch 4s ease-in-out infinite;
}

.p-floating-character__badge {
  position: absolute;
  top: -19px;
  left: -29px;
  width: 55px;
  height: auto;
  z-index: 2;
  opacity: 0;
  transform: scale(0);
  /* 吹き出しの円の中心付近（少し右上）を軸に設定 */
  transform-origin: 75% 25%;
}

.p-floating-character.is-active .p-floating-character__badge {
  /* 0.3秒後にポップアップ登場し、その後（0.9秒後から）ふわふわと大小を繰り返す */
  animation: 
    popUpBadge 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.3s forwards,
    badgePulse 2.5s ease-in-out 0.9s infinite;
}

@keyframes popUpCharacter {
  0% {
    transform: translateY(150%);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes popUpBadge {
  0% {
    opacity: 0;
    transform: scale(0);
  }
  100% {
    opacity: var(--badge-op-max);
    transform: scale(var(--badge-s-max)) translateY(var(--badge-ty-max));
  }
}

@keyframes characterTwitch {
  0%, 85%, 100% {
    transform: scale(1) translateY(0);
  }
  88% {
    transform: scale(var(--char-s-qX), var(--char-s-qY)) translateY(var(--char-ty-q));
  }
  92% {
    transform: scale(var(--char-s-sX), var(--char-s-sY)) translateY(var(--char-ty-s));
  }
  96% {
    transform: scale(var(--char-s-eX), var(--char-s-eY)) translateY(var(--char-ty-e));
  }
}

@keyframes badgePulse {
  0%, 100% {
    transform: scale(var(--badge-s-max)) translateY(var(--badge-ty-max));
    opacity: var(--badge-op-max);
  }
  50% {
    transform: scale(var(--badge-s-min)) translateY(var(--badge-ty-min));
    opacity: var(--badge-op-min);
  }
}

/* ==========================================================================
   ノートパソコン等（1920px未満）向けのスケール調整
   ========================================================================== */
@media screen and (max-width: 1919px) {
  body {
    zoom: calc(100vw / 1920);
  }
}