/* カラーパレットやグラデーション、シャドウ、ボーダーなどの変数定義 */
:root {
  --primary: #0088C7; /* メインの青色 */
  --primary-dark: #006A9E;
  --primary-gradient: linear-gradient(45deg, #0088C7, #32B8DF);
  --secondary: #FFB000; /* セカンダリーカラー（オレンジ） */
  --secondary-gradient: linear-gradient(45deg, #FFB000, #FFCB47);
  --accent: #FFE500; /* アクセントカラー（黄色） */
  --accent-gradient: linear-gradient(45deg, #FFE500, #FFED47);
  --pop1: #36ea66; /* ポップカラー1（緑） */
  --pop1-gradient: linear-gradient(45deg, #06C755, #01b504);
  --pop2: #e81469; /* ポップカラー2（赤） */
  --pop2-gradient: linear-gradient(45deg, #a40000, #ef5a5a);
  --dark: #333333; /* テキスト用のダークグレー */
  --light: #F9F9FF;  /* 背景用の明るい色 */
  --white: #FFFFFF;  /* 白 */
  --gray: #777777;   /* 中間のグレー */
  --light-gray: #E5E1F4;
  --shadow: 0 8px 25px rgba(0, 136, 199, 0.15);
  --card-shadow: 0 15px 35px rgba(154, 108, 255, 0.1);
  --hover-shadow: 0 20px 40px rgba(0, 136, 199, 0.25);
  --border-radius: 20px;
  --border-radius-lg: 30px;
  --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* グローバルリセット：全要素のマージン、パディングをリセットし、指定のフォントを適用 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Noto Sans JP', sans-serif;
}

/* ボディ全体の基本スタイル */
body {
  background-color: var(--white);
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

/* 見出しの基本スタイル：太字と行間 */
h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  line-height: 1.2;
}

/* コンテナクラス：中央寄せで最大幅を指定 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

/* ハイライトテキスト：背景グラデーションを文字に適用して目立たせる */
.highlight-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

/* バッジ（小さなラベル）のスタイル */
.badge {
  display: inline-block;
  padding: 5px 15px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.badge-primary {
  background: var(--primary-gradient);
  color: var(--white);
}
.badge-secondary {
  background: var(--secondary-gradient);
  color: var(--dark);
}
.badge-accent {
  background: var(--accent-gradient);
  color: var(--dark);
}

/* ========================================================================= ナビゲーション部分 ========================================================================= */
.navbar {
  position: fixed; /* 常に画面上部に固定 */
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.98); /* 半透明の白背景 */
  box-shadow: var(--shadow);
  padding: 15px 0;
  z-index: 1000;
  transition: var(--transition);
}
.navbar.scrolled {
  padding: 10px 0; /* スクロール時にナビゲーションのパディングを小さく */
}
.navbar-container {
  display: flex;
  justify-content: space-between; /* 左右に要素を配置 */
  align-items: center;
}
/* ロゴのスタイル */
.logo {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  position: relative;
}
/* ロゴ下部の装飾ライン */
.logo::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--accent-gradient);
  border-radius: 10px;
}
.logo img {
  height: 40px;
  margin-right: 10px;
}

.contact-btn {
  background: var(--pop1-gradient);
  color: var(--white);
  border: none;
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 10px 25px rgba(73, 255, 134, 0.39);
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transform-origin: center;
}
.contact-btn:before {
  content: '';
  margin-right: 8px;
  font-size: 1.2em;
}
.contact-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(73, 255, 134, 0.888);
}

@media (max-width: 768px) {
  .logo {
    font-size: 1.2rem; /* ロゴサイズを調整 */
  }
  
  .logo img {
    height: 30px; /* ロゴ画像のサイズを調整 */
  }
  
  .hamburger {
    margin-right: 5px; /* ハンバーガーメニューの位置調整 */
  }
  
  .nav-links {
    width: 100%; /* モバイルメニューを全幅に */
    padding: 20px;
  }
  
  .nav-links a {
    font-size: 1.1rem; /* モバイルメニューのフォントサイズ調整 */
    padding: 12px 0; /* タップ領域を広げる */
  }
  
  .contact-btn {
    padding: 5px 10px; /* ボタンサイズの調整 */
    font-size: 0.9rem;
  }
}

/* =========================================================================ナビゲーションリンク========================================================================= */
.nav-links {
  display: flex;
  list-style: none;
}
.nav-links li {
  margin-left: 30px;
}
.nav-links a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 700;
  transition: var(--transition);
  position: relative;
}
/* =========================================================================ホバー時にリンク下にアンダーラインが伸びるアニメーション========================================================================= */
.nav-links a:after {
  content: '';
  position: absolute;
  width: 0;
  height: 3px;
  bottom: -5px;
  left: 0;
  background: var(--primary-gradient);
  transition: var(--transition);
  border-radius: 3px;
}
.nav-links a:hover {
  color: var(--primary);
}
.nav-links a:hover:after {
  width: 100%;
}

/* =========================================================================ハンバーガーメニュー（モバイル用）========================================================================= */
.hamburger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  z-index: 1010;
}
.hamburger span {
  display: block;
  width: 30px;
  height: 3px;
  background-color: var(--primary);
  margin: 6px 0;
  transition: var(--transition);
  border-radius: 3px;
}

/* ========================================================================= ヒーローセクション ========================================================================= */

/* PC・モバイル切り替え用の基本クラス */
.pc-only {
  display: block;
}

.mobile-only {
  display: none;
}

.hero {
  position: relative;
  overflow: hidden;
  background-color: #ffffff; /* ヒーロー背景色 */
  padding: 0;
  margin-top: 80px;
}
.hero-image-full {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}
.main-visual {
  width: 100%;
  height: auto;
  display: block;
}
.hero-content {
  position: absolute;
  bottom: 60px;
  left: 0;
  width: 100%;
  text-align: center;
  z-index: 10;
}

@media (max-width: 768px) {

  .pc-only {
    display: none;
  }
  
  .mobile-only {
    display: block;
  }

  .hero-image-full .mobile-only {
    width: 100%;
    height: auto;
    object-fit: cover;
  }

  .hero {
    padding: 10px 10px; /* ナビバーとの間隔調整 */
  }
  
  .hero-content {
    bottom: 40px; /* 位置調整 */
  }
  
  .hero-cta {
    padding: 5px 10px; /* ボタンサイズ調整 */
    font-size: 1.1rem;
    min-width: 200px; /* 幅調整 */
    display: none;
  }
  
  .cta-buttons {
    flex-direction: column; /* 縦並びに */
    gap: 15px;
    padding: 5px 10px;
  }
}

@media (max-width: 480px) {
  .hero {
    margin-top: 60px; /* ナビバーとの間隔調整 */
  }
  
  .hero-content {
    bottom: 40px; /* 位置調整 */
  }
  
  .hero-cta {
    padding: 12px 25px; /* ボタンサイズ調整 */
    font-size: 1.1rem;
    min-width: 200px; /* 幅調整 */
  }
  
  .cta-buttons {
    flex-direction: column; /* 縦並びに */
    gap: 15px;
  }
}

/* -- =========================================================================「初期費用0円」に隠れたリスク =========================================================================-- */
/* 不安感を出すためのエリア */
.anxious-intro {
/* センター配置・余白など調整 */
text-align: center;
margin-bottom: 30px;
/* やや薄い赤系の背景で不安感を演出 */
background: rgba(232, 20, 105, 0.05);
padding: 20px;
border: 3px dashed rgba(232, 20, 105, 0.3); /* 赤系の点線 */
border-radius: 15px;
box-shadow: 0 5px 15px rgba(232, 20, 105, 0.1);
position: relative;
}

/* 見出しを少し揺らすようなアニメーションで不安定さを演出 */
.anxious-heading {
font-size: 2rem;
color: var(--pop2); /* 例: #e81469 */
line-height: 1.6;
margin: 0;
font-weight: 800;
text-shadow: 1px 1px 0 rgba(232, 20, 105, 0.2);
animation: shaky 3.5s infinite alternate ease-in-out; /* ゆっくりとした揺れアニメーションに変更 */
}


/* 揺れアニメーション keyframes はそのまま */
@keyframes shaky {
0% {
transform: translate(0, 0) rotate(0deg);
}
20% {
transform: translate(-2px, 1px) rotate(-1deg);
}
40% {
transform: translate(2px, -2px) rotate(1deg);
}
60% {
transform: translate(-1px, 1px) rotate(0deg);
}
80% {
transform: translate(1px, 0px) rotate(1deg);
}
100% {
transform: translate(0, 0) rotate(0deg);
}
}

.concerns {
width: 100%;
background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
padding: 100px 0;
position: relative;
overflow: hidden;
}

/* セクションの背景パターン - 軽快なドット柄 */
.concerns::before {
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-image: radial-gradient(#ff6b6b 2px, transparent 2px);
background-size: 30px 30px;
opacity: 0.08;
z-index: 0;
}

/* 警告タイトルのスタイリング - ポップな色使い */
.concerns .section-title h2 {
font-size: 2.8rem;
background: linear-gradient(45deg, #ff3333, #ff5c5c);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
position: relative;
margin-bottom: 40px;
letter-spacing: 1px;
font-weight: 800;
display: inline-block;
padding: 0 15px;
}

/* タイトル下のアクセントライン */
.concerns .section-title h2::after {
content: "";
position: absolute;
bottom: -5px;
left: 0;
width: 100%;
height: 5px;
background: linear-gradient(to right, #ff2f2f, #ff6666);
border-radius: 5px;
}

.concerns .section-title::before,
.concerns .section-title::after {
content: "";
position: absolute;
font-size: 1.8rem;
top: 0;
}

.concerns .section-title::before {
left: -40px;
}

.concerns .section-title::after {
right: -40px;
}

/* リスクカードのグリッド */
.concerns-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 25px;
max-width: 1200px;
margin: 0 auto;
position: relative;
z-index: 1;
}

/* リスクカードの基本スタイル - ポップでかわいらしく */
.concern-item {
position: relative;
background: white;
border-radius: 20px;
height: 180px;
transition: all 0.3s ease;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
overflow: hidden;
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
border: 3px solid #ff9e9e;
padding: 20px;
}

/* カードホバー効果 */
.concern-item:hover {
transform: translateY(-10px);
box-shadow: 0 15px 30px rgba(255, 107, 107, 0.2);
border-color: #ff6b6b;
}

/* カード内の警告アイコン */
.concern-icon {
position: absolute;
top: 10px;
left: 50%;
transform: translateX(-50%);
width: 50px;
height: 50px;
border-radius: 50%;
background: linear-gradient(45deg, #ff6b6b, #ff9e9e);
display: flex;
align-items: center;
justify-content: center;
color: white;
font-size: 1.5rem;
box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
border: 3px solid white;
z-index: 2;
transition: all 0.3s ease;
}

/* アイコンホバーエフェクト */
.concern-item:hover .concern-icon {
transform: translateX(-50%) scale(1.1);
box-shadow: 0 8px 20px rgba(255, 107, 107, 0.4);
}

/* テキスト部分 */
.concern-text {
color: #444;
font-size: 1.3rem;
font-weight: 700;
text-align: center;
padding: 10px;
margin-top: 20px;
position: relative;
z-index: 2;
line-height: 1.4;
}

/* テキスト下の装飾ライン */
.concern-text::after {
content: "";
position: absolute;
bottom: -5px;
left: 50%;
transform: translateX(-50%);
width: 40px;
height: 3px;
background: linear-gradient(90deg, #ffcece, #ff6b6b, #ffcece);
transition: all 0.3s ease;
border-radius: 3px;
}

/* ホバー時のラインアニメーション */
.concern-item:hover .concern-text::after {
width: 70%;
}

/* ポップなバッジ */
.concern-badge {
position: absolute;
top: 10px;
right: 10px;
background: #ffcece;
color: #ff6b6b;
padding: 3px 8px;
border-radius: 10px;
font-size: 0.7rem;
font-weight: 700;
border: 1px dashed #ff6b6b;
letter-spacing: 0.5px;
}

/* 各カードの色バリエーション */
.concern-item:nth-child(1) {
border-color: #ff9e9e;
}
.concern-item:nth-child(2) {
border-color: #ffb88c;
}
.concern-item:nth-child(2) .concern-icon {
background: linear-gradient(45deg, #ff8c61, #ffb88c);
}
.concern-item:nth-child(2) .concern-badge {
background: #ffead8;
color: #ff8c61;
border-color: #ff8c61;
}
.concern-item:nth-child(2) .concern-text::after {
background: linear-gradient(90deg, #ffead8, #ff8c61, #ffead8);
}

.concern-item:nth-child(3) {
border-color: #7ce57f;
}
.concern-item:nth-child(3) .concern-icon {
background: linear-gradient(45deg, #7ce57f, #bcfdb9);
}
.concern-item:nth-child(3) .concern-badge {
background: #e1f2ff;
color: #7ce57f;
border-color: #7ce57f;
}
.concern-item:nth-child(3) .concern-text::after {
background: linear-gradient(90deg, #e1f2ff, #7ce57f, #e1f2ff);
}

.concern-item:nth-child(4) {
border-color: #c4a1ff;
}
.concern-item:nth-child(4) .concern-icon {
background: linear-gradient(45deg, #9c6eff, #c4a1ff);
}
.concern-item:nth-child(4) .concern-badge {
background: #ece1ff;
color: #9c6eff;
border-color: #9c6eff;
}
.concern-item:nth-child(4) .concern-text::after {
background: linear-gradient(90deg, #ece1ff, #9c6eff, #ece1ff);
}

.concern-item:nth-child(5) {
border-color: #ffbaf8;
}
.concern-item:nth-child(5) .concern-icon {
background: linear-gradient(45deg, #ff78e1, #ffbaf8);
}
.concern-item:nth-child(5) .concern-badge {
background: #ffe6fb;
color: #ff78e1;
border-color: #ff78e1;
}
.concern-item:nth-child(5) .concern-text::after {
background: linear-gradient(90deg, #ffe6fb, #ff78e1, #ffe6fb);
}

.concern-item:nth-child(6) {
border-color: #a0e9ff;
}
.concern-item:nth-child(6) .concern-icon {
background: linear-gradient(45deg, #59d4ff, #a0e9ff);
}
.concern-item:nth-child(6) .concern-badge {
background: #e0f8ff;
color: #59d4ff;
border-color: #59d4ff;
}
.concern-item:nth-child(6) .concern-text::after {
background: linear-gradient(90deg, #e0f8ff, #59d4ff, #e0f8ff);
}

/* カードの丸い角装飾 */
.concern-item::before {
content: "";
position: absolute;
width: 20px;
height: 20px;
background: rgba(255, 255, 255, 0.7);
border-radius: 50%;
top: 10px;
left: 10px;
}

.concern-item::after {
content: "";
position: absolute;
width: 10px;
height: 10px;
background: rgba(255, 255, 255, 0.5);
border-radius: 50%;
bottom: 10px;
right: 10px;
}

/* 脈動アニメーション */
@keyframes pulse {
0%, 100% {
opacity: 0.6;
transform: scale(1);
}
50% {
opacity: 1;
transform: scale(1.1);
}
}

/* 揺れるアニメーション */
@keyframes shake {
0%, 100% {
transform: translateX(0);
}
10%, 30%, 50%, 70%, 90% {
transform: translateX(-5px);
}
20%, 40%, 60%, 80% {
transform: translateX(5px);
}
}

.concern-item:hover::before {
opacity: 1;
}

@keyframes float {
0% {
transform: translateY(0) translateX(0);
opacity: 0;
}
10% {
opacity: 1;
}
90% {
opacity: 1;
}
100% {
transform: translateY(-500px) translateX(100px);
opacity: 0;
}
}

/* 不安なテキストの震え効果 */
.concern-text {
animation: textShake 3s infinite;
}

@keyframes textShake {
0%, 100% {
transform: translateX(0);
}
5%, 15%, 25% {
transform: translateX(-2px);
}
10%, 20%, 30% {
transform: translateX(2px);
}
35% {
transform: translateX(0);
}
}

/* 不安を煽るイントロのスタイル変更 */
.anxious-intro {
text-align: center;
margin-bottom: 30px;
background: rgba(255, 155, 155, 0.1);
padding: 20px;
border: 2px dashed rgba(255, 107, 107, 0.3);
border-radius: 15px;
box-shadow: 0 5px 15px rgba(255, 107, 107, 0.1);
position: relative;
}

.anxious-heading {
font-size: 1.8rem;
color: #ff6b6b;
line-height: 1.6;
margin: 0;
font-weight: 700;
}

/* 強調部分のスタイル */
.anxious-heading strong {
font-weight: 800;
background: linear-gradient(45deg, #ff6b6b, #ff9e9e);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}

/* レスポンシブ対応 */
@media (max-width: 1024px) {
  .concerns-grid {
  grid-template-columns: repeat(2, 1fr);
  }
  }
  
  @media (max-width: 768px) {
  .concerns-grid {
  grid-template-columns: 1fr;
  }
  
  .concerns .section-title h2 {
  font-size: 1.35rem;
  }
  
  .concern-text {
  font-size: 1.1rem;
  }
  
  .anxious-heading {
  font-size: 0.8rem;
  }
  
  
  .concerns .section-title::before,
  .concerns .section-title::after {
  display: none;
  }
  }

/* =========================================================================お部屋LABOはその全ての心配を排除セクション========================================================================= */

.transition-message {
  position: relative;
  padding: 70px 0;
  margin: 0 0 60px;
  overflow: hidden;
  background: linear-gradient(135deg, #f5f7ff, #eef2ff);
  text-align: center;
}

/* 背景装飾 */
.transition-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* 光のエフェクト */
.transition-light {
  position: absolute;
  width: 150%;
  height: 150%;
  top: -25%;
  left: -25%;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 255, 255, 0.7) 0%,
    rgba(255, 255, 255, 0) 70%
  );
  opacity: 0.8;
  z-index: 0;
  animation: lightRotate 20s linear infinite;
  pointer-events: none;
}

@keyframes lightRotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* 装飾的な形 */
.transition-shape {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(45deg, rgba(0, 136, 199, 0.08), rgba(0, 136, 199, 0.02));
  opacity: 0.5;
  filter: blur(60px);
}

.shape1 {
  width: 300px;
  height: 300px;
  top: -100px;
  right: -50px;
  animation: floatShape 15s infinite alternate ease-in-out;
}

.shape2 {
  width: 250px;
  height: 250px;
  bottom: -80px;
  left: -50px;
  background: linear-gradient(45deg, rgba(255, 176, 0, 0.08), rgba(255, 176, 0, 0.02));
  animation: floatShape 12s infinite alternate-reverse ease-in-out;
}

@keyframes floatShape {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(20px, -20px);
  }
}

/* コンテナ */
.transition-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

/* コンテンツ - ボックス全体に外側から光を当てる */
.transition-content {
  background: rgba(255, 255, 255, 1); /* 完全な白背景 */
  border-radius: 15px;
  padding: 35px 40px;
  box-shadow: 
    0 15px 35px rgba(0, 0, 0, 0.1),
    0 0 30px rgba(0, 136, 199, 0.2),
    0 0 80px rgba(0, 136, 199, 0.15);
  position: relative;
  overflow: hidden;
  display: inline-block;
  min-width: 60%;
  /* 光を放つような効果 */
  animation: glowPulse 4s infinite alternate;
}

@keyframes glowPulse {
  0% {
    box-shadow: 
      0 15px 35px rgba(0, 0, 0, 0.1),
      0 0 30px rgba(0, 136, 199, 0.15),
      0 0 50px rgba(0, 136, 199, 0.1);
  }
  100% {
    box-shadow: 
      0 15px 35px rgba(0, 0, 0, 0.15),
      0 0 50px rgba(0, 136, 199, 0.25),
      0 0 80px rgba(0, 136, 199, 0.15);
  }
}

/* 光の動きを表現する装飾エフェクト */
.transition-content::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(30deg);
  animation: lightSweep 8s infinite ease-out;
  z-index: 0;
}

@keyframes lightSweep {
  0% {
    transform: translate(-100%, -100%) rotate(30deg);
  }
  50%, 100% {
    transform: translate(100%, 100%) rotate(30deg);
  }
}

/* タイトル - 通常の文字は黒色 */
.transition-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0;
  position: relative;
  z-index: 1;
  padding: 10px 0;
  color: #333; /* 黒色 */
  display: inline-block;
  line-height: 1.4;
}

/* 強調単語スタイル */
.highlight-word {
  color: #0088C7; /* ブルー */
  font-size: 3rem; /* 大きめ */
  font-weight: 800; /* より太く */
  display: inline-block;
  position: relative;
  margin: 0 2px;
}

/* 強調単語のエフェクト */
.highlight-word::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(0, 136, 199, 0.15);
  border-radius: 2px;
}

/* 矢印 */
.transition-arrow {
  width: 40px;
  height: 40px;
  margin: 15px auto 0;
  color: #0088C7;
  animation: bounce 2s infinite;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 2px 5px rgba(0, 136, 199, 0.3));
}

.transition-arrow svg {
  width: 100%;
  height: 100%;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(10px);
  }
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .transition-message {
    padding: 50px 0;
    margin: 0 0 40px;
  }
  
  .transition-content {
    padding: 25px 30px;
    min-width: 80%;
  }
  
  .transition-title {
    font-size: 2rem;
  }
  
  .highlight-word {
    font-size: 2.4rem;
  }
}

@media (max-width: 480px) {
  .transition-message {
    padding: 40px 0;
    margin: 0 0 30px;
  }
  
  .transition-content {
    padding: 20px 25px;
    width: 90%;
  }
  
  .transition-title {
    font-size: 1.1rem;
  }
  
  .highlight-word {
    font-size: 1.8rem;
  }
  
  .transition-arrow {
    width: 30px;
    height: 30px;
    margin-top: 10px;
  }
}

/* ========================================================================= 5つの0円セクション ========================================================================= */
.modern-title {
  font-size: 3rem;                
  font-weight: 900;               
  background: linear-gradient(45deg, #1100ff, #06c7fc);
  -webkit-background-clip: text;  
  -webkit-text-fill-color: transparent;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
  letter-spacing: 2px;
  }
  
  /* 「最大」テキストのスタイル */
  .maximum-text {
    font-size: 0.5em; /* 0円の文字サイズの半分 */
    font-weight: 600;
    vertical-align: middle;
    display: inline-block;
    margin-right: 5px;
    color: #999; /* グレーの色で控えめに表示 */
    position: relative;
    top: -5px; /* 少し上に配置 */
  }
  
  /* 縦向きモバイル画面での調整 */
  @media (max-width: 480px) {
    .maximum-text {
      font-size: 0.6em;
      top: -3px;
    }
  }
  
  .zero-fees {
    padding: 100px 0 80px;
    background-color: var(--white);
    position: relative;
    overflow: hidden;
    margin-top: 0;
  }
  /* 背景パターン */
  .zero-fees::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%239C92AC' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
  }
  .section-title {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
  }
  /* タイトルバッジ */
  .title-badge {
    display: inline-block;
    background: var(--secondary-gradient);
    color: var(--dark);
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 15px;
    box-shadow: 0 5px 15px rgba(255, 176, 0, 0.3);
    position: relative;
  }
  .title-badge::before,
  .title-badge::after {
    content: '✨';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
  }
  .title-badge::before {
    left: -25px;
  }
  .title-badge::after {
    right: -25px;
  }
  .section-title h2 {
    font-size: 2.8rem;
    color: var(--dark);
    display: inline-block;
    position: relative;
    z-index: 1;
    padding: 0 15px;
  }
  .section-title h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 5px;
    width: 100%;
    height: 15px;
    background-color: rgba(0, 136, 199, 0.1);
    z-index: -1;
    border-radius: 10px;
  }
  .zero-intro {
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
  }
  .zero-intro-box {
    background-color: var(--light);
    border-radius: var(--border-radius);
    padding: 20px 30px;
    display: flex;
    align-items: center;
    max-width: 800px;
    box-shadow: var(--card-shadow);
    border-left: 5px solid var(--primary);
  }
  .intro-icon {
    font-size: 2.5rem;
    margin-right: 20px;
    flex-shrink: 0;
  }
  .zero-intro-box p {
    font-size: 1.2rem;
    color: var(--dark);
    line-height: 1.7;
    font-weight: 600;
    margin: 0;
  }
  .fees-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
  }
  /* 各費用カードのスタイル */
  .fee-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 30px 25px;
    text-align: center;
    box-shadow: var(--card-shadow);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    transform: translateY(0) rotate(0deg);
    border: 3px solid transparent;
  }
  .fee-card:nth-child(odd) {
    transform: rotate(-1deg);
  }
  .fee-card:nth-child(even) {
    transform: rotate(1deg);
  }
  .fee-card:hover {
    transform: translateY(-15px) rotate(0deg);
    box-shadow: var(--hover-shadow);
    border-color: var(--secondary);
  }
  .fee-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: var(--primary-gradient);
  }
  .fee-card:nth-child(2)::before {
    background: var(--secondary-gradient);
  }
  .fee-card:nth-child(3)::before {
    background: var(--accent-gradient);
  }
  .fee-card:nth-child(4)::before {
    background: var(--pop1-gradient);
  }
  .fee-card:nth-child(5)::before {
    background: var(--pop2-gradient);
  }
  .fee-icon {
    width: 80px;
    height: 80px;
    background: var(--light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--white);
    font-size: 2.5rem;
    position: relative;
    z-index: 1;
  }
  .fee-icon::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    background: var(--primary-gradient);
    border-radius: 50%;
    z-index: -1;
  }
  .fee-card:nth-child(2) .fee-icon::before {
    background: var(--secondary-gradient);
  }
  .fee-card:nth-child(3) .fee-icon::before {
    background: var(--accent-gradient);
  }
  .fee-card:nth-child(4) .fee-icon::before {
    background: var(--pop1-gradient);
  }
  .fee-card:nth-child(5) .fee-icon::before {
    background: var(--pop2-gradient);
  }
  .fee-title {
    font-size: 1.4rem;
    margin-bottom: 15px;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
  }
  .fee-amount {
    font-size: 3.5rem;
    font-weight: 800;
    margin: 20px 0;
    color: var(--primary);
    position: relative;
    display: inline-block;
    animation: bounce 3s ease-in-out infinite;
  }
  .fee-card:nth-child(2) .fee-amount {
    color: var(--secondary);
    animation-delay: 0.2s;
  }
  .fee-card:nth-child(3) .fee-amount {
    color: var(--accent);
    animation-delay: 0.4s;
  }
  .fee-card:nth-child(4) .fee-amount {
    color: var(--pop1);
    animation-delay: 0.6s;
  }
  .fee-card:nth-child(5) .fee-amount {
    color: var(--pop2);
    animation-delay: 0.8s;
  }
  .fee-amount::after {
    content: '✓';
    position: absolute;
    top: -5px;
    right: -15px;
    font-size: 1.2rem;
    background: var(--accent);
    color: var(--dark);
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotate(15deg);
  }
  .fee-amount span {
    font-size: 1.5rem;
  }
  .fee-description {
    color: var(--gray);
    font-size: 1rem;
    min-height: 100px;
    position: relative;
  }
  .fee-description p {
    margin-bottom: 25px;
    line-height: 1.7;
  }
  .fee-badge {
    display: inline-block;
    background: rgba(0, 136, 199, 0.1);
    color: var(--primary-dark);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-top: 10px;
  }
  .fee-card:nth-child(2) .fee-badge {
    background: rgba(255, 176, 0, 0.1);
    color: var(--secondary);
  }
  .fee-card:nth-child(3) .fee-badge {
    background: rgba(255, 229, 0, 0.1);
    color: #D1B000;
  }
  .fee-card:nth-child(4) .fee-badge {
    background: rgba(154, 108, 255, 0.1);
    color: var(--pop1);
  }
  .fee-card:nth-child(5) .fee-badge {
    background: rgba(0, 214, 143, 0.1);
    color: var(--pop2);
  }
  .total-savings {
    background: var(--accent-gradient);
    border-radius: var(--border-radius);
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 600px;
    margin: 0 auto 30px;
    box-shadow: 0 15px 30px rgba(255, 229, 0, 0.2);
  }
  .savings-icon {
    font-size: 3rem;
    margin-right: 30px;
  }
  .savings-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--dark);
  }
  .savings-amount {
    font-size: 3rem;
    font-weight: 800;
    color: var(--dark);
  }
  .savings-amount span {
    font-size: 1.8rem;
  }
  .fees-note {
    text-align: center;
    color: var(--gray);
    font-size: 0.9rem;
    margin-top: 20px;
    padding: 15px;
    background-color: rgba(0, 136, 199, 0.05);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 800px;
    margin: 0 auto;
  }
  .note-icon {
    margin-right: 10px;
    font-size: 1.3rem;
  }
  
  /* ========================================================================= なんで0円に出来るの？セクション ========================================================================= */
  /* 理由カードセクション全体のスタイルを高級感ある雰囲気に */
  .why-zero {
  padding: 100px 0 80px;
  background-color: #fafafa; /* 少し明るいオフホワイト */
  position: relative;
  overflow: hidden;
  }
  
  /* 背景に上品な斜めストライプパターン */
  .why-zero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(45deg, rgba(0, 0, 0, 0.02) 25%, transparent 25%, transparent 50%, rgba(0, 0, 0, 0.02) 50%, rgba(0, 0, 0, 0.02) 75%, transparent 75%, transparent);
  background-size: 100px 100px;
  opacity: 0.5;
  z-index: 0;
  }
  
  /* セクションタイトルをより洗練された印象に */
  .why-zero .section-title h2 {
  font-size: 2.8rem;
  color: #333;
  letter-spacing: 1px;
  position: relative;
  padding-bottom: 15px;
  margin-bottom: 30px;
  }
  
  /* タイトル下の装飾ライン */
  .why-zero .section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(to right, #d4af37, #f8e9a1, #d4af37); /* 金色のグラデーション */
  border-radius: 2px;
  }

  .reason-headline {
  position: relative;
  margin: 50px auto;
  padding: 25px 50px;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: #333;
  text-align: center;
  background: linear-gradient(to right, #f8f6f0, #ffffff, #f8f6f0);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border-radius: 3px;
  overflow: hidden;
  display: block;
  width: 80%;
  max-width: 800px;
  border: 1px solid rgba(212, 175, 55, 0.5);
  }
  
  /* 枠の光る効果 */
  .reason-headline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 2px solid transparent;
  border-image: linear-gradient(45deg, #d4af37, #f8e9a1, #d4af37);
  border-image-slice: 1;
  box-sizing: border-box;
  pointer-events: none;
  }
  
  /* キラキラの光る効果を作るための要素 */
  .glitter-effect {
  position: absolute;
  top: 0;
  left: -100%;
  width: 50px;
  height: 100%;
  background: linear-gradient(
  90deg,
  rgba(255, 255, 255, 0) 0%,
  rgba(255, 255, 255, 0.8) 50%,
  rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-20deg);
  animation: glitter 8s infinite;
  z-index: 1;
  }
  
  /* 2つ目のキラキラ効果（タイミングをずらす） */
  .glitter-effect.delay1 {
  animation-delay: 3s;
  }
  
  /* 3つ目のキラキラ効果（さらにタイミングをずらす） */
  .glitter-effect.delay2 {
  animation-delay: 3s;
  }
  
  /* テキスト */
  .reason-headline-text {
  position: relative;
  z-index: 2;
  }
  
  /* 「経費削減」の部分を強調 */
  .text-keihisakugen {
  display: inline-block;
  color: #d4af37;
  animation: smooth-float 3s ease-in-out infinite;
  }
  
  /* 「最大還元」の部分を強調 */
  .text-saidaikangen {
  display: inline-block;
  color: #d4af37;
  animation: smooth-float 3s ease-in-out infinite;
  animation-delay: 1.5s; /* ずらしてアニメーション */
  }
  
  /* キラキラエフェクトのアニメーション */
  @keyframes glitter {
  0% {
  left: -100%;
  }
  20%, 100% {
  left: 100%;
  }
  }
  
  /* 波打つようなアニメーション */
  @keyframes smooth-float {
  0%, 100% {
  transform: translateY(0);
  }
  25% {
  transform: translateY(-3px);
  }
  50% {
  transform: translateY(0);
  }
  75% {
  transform: translateY(3px);
  }
  }
  
  /* 全体のフェードイン */
  .reason-headline {
  animation: fadeIn 1s ease forwards;
  }
  
  @keyframes fadeIn {
  from {
  opacity: 0;
  transform: translateY(20px);
  }
  to {
  opacity: 1;
  transform: translateY(0);
  }
  }
  
  /* 理由カードのグリッドレイアウト - 統一感を重視 */
  .reasons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  }
  
  /* 理由カードの基本スタイル - 高級感あるデザイン */
  .reason-card {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  }
  
  /* ホバー効果 - 控えめながら高級感ある変化 */
  .reason-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  border-color: rgba(212, 175, 55, 0.3); /* 金色の境界線 */
  }
  
  /* カード内の上部装飾ライン */
  .reason-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(to right, #d4af37, #f8e9a1, #d4af37);
  opacity: 0.7;
  }
  
  /* カードアイコンコンテナ - 上品で洗練された印象に */
  .reason-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  color: #fff;
  font-size: 2rem;
  position: relative;
  background: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.05);
  }
  
  /* アイコン背景のグラデーション - 統一感のある色合い */
  .reason-icon::before {
  content: '';
  position: absolute;
  top: 5px;
  left: 5px;
  right: 5px;
  bottom: 5px;
  border-radius: 50%;
  background: linear-gradient(135deg, #003366, #0066a2);
  z-index: -1;
  }
  
  /* すべてのカードでアイコン背景を統一 */
  .reason-card:nth-child(1) .reason-icon::before,
  .reason-card:nth-child(2) .reason-icon::before,
  .reason-card:nth-child(3) .reason-icon::before,
  .reason-card:nth-child(4) .reason-icon::before {
  background: linear-gradient(135deg, #003366, #0066a2);
  }
  
  /* タイトルのスタイル - フォントと間隔を洗練させる */
  .reason-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #333;
  letter-spacing: 0.5px;
  position: relative;
  padding-bottom: 15px;
  }
  
  /* タイトル下の装飾ライン */
  .reason-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background: linear-gradient(to right, #d4af37, #f8e9a1, #d4af37);
  border-radius: 1px;
  }
  
  /* 説明文のスタイル - 上品で読みやすく */
  .reason-description {
  font-size: 1rem;
  color: #666;
  line-height: 1.7;
  flex-grow: 1;
  }
  
  /* カード下部の装飾エフェクト */
  .reason-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.02), transparent);
  z-index: -1;
  }
  
  .why-zero .section-title h2 {
  font-size: 2.2rem;
  }
  
  .reason-title {
  font-size: 1.3rem;
  }
  
  
  /* タグライン（キャッチコピー）の新しいスタイル */
  .tagline {
  position: relative;
  margin: 40px auto 50px;
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  background: linear-gradient(135deg, var(--primary), #6634e5);
  padding: 25px 40px;
  border-radius: 15px;
  display: inline-block;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
  transform: perspective(800px) rotateX(5deg);
  border-bottom: 5px solid rgba(0, 0, 0, 0.1);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  z-index: 1;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .tagline:hover {
  transform: perspective(800px) rotateX(0deg) translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  }
  
  /* キラキラエフェクト用の疑似要素 */
  .tagline::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
  to right,
  rgba(255, 255, 255, 0) 0%,
  rgba(255, 255, 255, 0.3) 50%,
  rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(30deg);
  animation: shineEffect 3s infinite;
  z-index: -1;
  }
  
  /* 強調マーカー用の疑似要素 */
  .tagline::after {
  content: "";
  position: absolute;
  bottom: 12px;
  left: 5%;
  width: 90%;
  height: 6px;
  background: var(--accent);
  border-radius: 3px;
  opacity: 0.6;
  z-index: -1;
  }
  
  .tagline-text::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
  animation: pulse 1s infinite;
  }
  
  /* キラキラシャインエフェクトのアニメーション */
  @keyframes shineEffect {
  0% {
  transform: translateX(-100%) rotate(50deg);
  }
  20%, 100% {
  transform: translateX(100%) rotate(50deg);
  }
  }
  
  /* 点滅アニメーション */
  @keyframes pulse {
  0%, 100% {
  opacity: 0.6;
  transform: scaleX(1);
  }
  50% {
  opacity: 1;
  transform: scaleX(1.05);
  }
  }
  
  /* レスポンシブ対応 */
  @media (max-width: 768px) {
  .tagline {
  font-size: 1.5rem;
  padding: 20px 30px;
  }
  
  .why-zero .section-title h2 {
  font-size: 1.5rem;
  }

  .reason-title {
  font-size: 1.7rem;
  }

  .reason-headline {
  font-size: 1.6rem;
  padding: 20px 30px;
  width: 90%;
  }
  }
  
  /* ========================================================================= LINE登録特典セクション ========================================================================= */
  .line-benefits {
    padding: 120px 0;
    background: linear-gradient(to bottom, #f5f7ff, #eef2ff);
    position: relative;
    overflow: hidden;
  }
  
  /* 背景装飾 */
  .benefits-bg-decoration {
    position: absolute;
    border-radius: 50%;
    opacity: 0.04;
    filter: blur(40px);
    z-index: 0;
  }
  
  .benefits-deco-1 {
    width: 500px;
    height: 500px;
    background: linear-gradient(45deg, #06C755, #01b504);
    top: -100px;
    right: -200px;
  }
  
  .benefits-deco-2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(45deg, #0088C7, #32B8DF);
    bottom: -150px;
    left: -150px;
  }
  
  /* セクションタイトル */
  .line-benefits .section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    z-index: 1;
  }
  
  .line-benefits .title-badge {
    display: inline-block;
    background: linear-gradient(45deg, #06C755, #01b504);
    color: white;
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 15px;
    box-shadow: 0 5px 15px rgba(6, 199, 85, 0.2);
    position: relative;
  }
  
  .line-benefits .section-title h2 {
    font-size: 2.8rem;
    color: #333;
    margin-bottom: 15px;
  }
  
  .line-benefits .highlight-text-line {
    position: relative;
    z-index: 1;
    display: inline-block;
    color: #06C755; /* LINE緑色 */
    font-weight: 800;
  }
  
  .line-benefits .highlight-text-line::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 5px;
    width: 100%;
    height: 10px;
    background-color: rgba(6, 199, 85, 0.2);
    z-index: -1;
    border-radius: 5px;
  }
  
  /* 特典コンテンツボックス */
  .line-benefits-box {
    display: flex;
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
  }
  
  /* 左側: チェックシート説明 */
  .benefits-content {
    flex: 1;
    padding: 40px;
    position: relative;
  }
  
  .benefits-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
  }
  
  .benefits-header h3 {
    font-size: 1.8rem;
    color: #333;
    margin-right: 15px;
    margin-bottom: 10px;
  }
  
  .benefits-badge {
    background: linear-gradient(45deg, #FF3366, #FF9933);
    color: white;
    padding: 5px 15px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-block;
    animation: pulse 2s infinite;
  }
  
  @keyframes pulse {
    0% {
      transform: scale(1);
      box-shadow: 0 5px 15px rgba(255, 51, 102, 0.3);
    }
    50% {
      transform: scale(1.05);
      box-shadow: 0 8px 20px rgba(255, 51, 102, 0.4);
    }
    100% {
      transform: scale(1);
      box-shadow: 0 5px 15px rgba(255, 51, 102, 0.3);
    }
  }
  
  .benefits-description {
    color: #555;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 30px;
  }
  
  .benefits-description strong {
    color: #06C755;
    font-weight: 700;
  }
  
  /* チェックリスト */
  .benefits-list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
  }
  
  .benefits-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
  }
  
  .benefits-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
  }
  
  .check-icon {
    width: 30px;
    height: 30px;
    background: linear-gradient(45deg, #06C755, #01b504);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
    font-weight: 700;
    box-shadow: 0 5px 10px rgba(6, 199, 85, 0.2);
  }
  
  .item-text {
    font-size: 1.05rem;
    color: #333;
  }
  
  /* 注釈 */
  .benefits-note {
    display: flex;
    align-items: center;
    background: rgba(6, 199, 85, 0.05);
    padding: 15px 20px;
    border-radius: 10px;
    border-left: 4px solid #06C755;
  }
  
  .note-icon {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: #06C755;
  }
  
  .note-icon svg {
    width: 24px;
    height: 24px;
  }
  
  .benefits-note p {
    margin: 0;
    color: #555;
    font-size: 0.95rem;
  }
  
  /* 右側: LINE登録QRコード */
  
  /* PC・モバイル切り替え用の基本クラス */
  .pc-only {
    display: block;
  }
  
  .mobile-only {
    display: none;
  }
  
  .benefits-qr {
    width: 400px;
    background: linear-gradient(135deg, #06C755, #01b504);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    position: relative;
    overflow: hidden;
  }
  
  /* シャイン効果 */
  .benefits-qr::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
      to right,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.3) 50%,
      rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(30deg);
    animation: shineEffect 10s infinite;
    z-index: 0;
  }
  
  @keyframes shineEffect {
    0% {
      transform: translateX(-100%) rotate(30deg);
    }
    15%, 100% {
      transform: translateX(100%) rotate(30deg);
    }
  }
  
  .qr-container {
    background: white;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 1;
    max-width: 100%;
    width: 300px;
  }
  
  .qr-header {
    color: #06C755;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
  }
  
  .mobile-only{
    display: none;
  }
  
  .qr-header::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, #06C755, #01b504);
    border-radius: 3px;
  }
  
  .qr-code-wrapper {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto 20px;
    border: 10px solid white;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    animation: float 5s infinite ease-in-out;
    overflow: hidden;
  }
  
  @keyframes float {
    0%, 100% {
      transform: translateY(0);
    }
    50% {
      transform: translateY(-10px);
    }
  }
  
  .qr-shine {
    position: absolute;
    top: -10px;
    left: -100px;
    width: 40px;
    height: 200px;
    background: rgba(255, 255, 255, 0.7);
    transform: rotate(45deg);
    animation: qrScan 3s infinite;
    filter: blur(3px);
    z-index: 1;
  }
  
  @keyframes qrScan {
    0% {
      left: -100px;
    }
    100% {
      left: 300px;
    }
  }
  
  .qr-code {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 0;
  }
  
  .qr-instruction {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .qr-instruction::before,
  .qr-instruction::after {
    content: '';
    flex-grow: 1;
    height: 1px;
    background: rgba(0, 0, 0, 0.1);
    margin: 0 10px;
  }
  
  /* LINE登録ボタン */
  .register-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, #06C755, #01b504);
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(6, 199, 85, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
  }
  
  .register-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(6, 199, 85, 0.4);
  }
  
  .register-button::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
      to right,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.3) 50%,
      rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(30deg);
    animation: buttonShine 3s infinite;
    z-index: 1;
  }
  
  @keyframes buttonShine {
    0% {
      transform: translateX(-100%) rotate(30deg);
    }
    20%, 100% {
      transform: translateX(100%) rotate(30deg);
    }
  }
  
  .button-icon {
    display: inline-flex;
    margin-right: 10px;
    position: relative;
    z-index: 2;
  }
  
  .button-icon svg {
    width: 20px;
    height: 20px;
  }
  
  /* キラキラエフェクト */
  .benefits-sparkle {
    position: absolute;
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.8);
    filter: blur(2px);
    pointer-events: none;
    z-index: 2;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    animation: sparkle 3s infinite;
  }
  
  .sparkle-1 {
    top: 20%;
    right: 15%;
    animation-delay: 0s;
  }
  
  .sparkle-2 {
    top: 60%;
    right: 25%;
    width: 20px;
    height: 20px;
    animation-delay: 0.6s;
  }
  
  .sparkle-3 {
    bottom: 25%;
    right: 10%;
    width: 15px;
    height: 15px;
    animation-delay: 1.2s;
  }
  
  @keyframes sparkle {
    0%, 100% {
      opacity: 0;
      transform: scale(0) rotate(0deg);
    }
    50% {
      opacity: 1;
      transform: scale(1) rotate(180deg);
    }
  }
  
  /* フッター部分を削除 */
  
  /* アニメーション */
  .animate-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
  }
  
  .animated {
    opacity: 1;
    transform: translateY(0);
  }
  
  /* レスポンシブ対応 */
  @media (max-width: 992px) {
    .line-benefits-box {
      flex-direction: column;
    }
    
    .benefits-qr {
      width: 100%;
      padding: 30px;
    }
    
    .qr-container {
      width: 100%;
      max-width: 350px;
    }
  }
  
  @media (max-width: 768px) {
    .pc-only {
      display: none !important;
    }
    
    .mobile-only {
      display: block;
    }
  
    .line-benefits {
      padding: 80px 0;
    }
    
    .line-benefits .section-title h2 {
      font-size: 2.2rem;
    }
    
    .benefits-content {
      padding: 30px;
    }
    
    .benefits-header h3 {
      font-size: 1.5rem;
    }
    
    .benefits-description {
      font-size: 1rem;
    }
    
    .item-text {
      font-size: 1rem;
    }
  }
  
  @media (max-width: 480px) {
    .line-benefits {
      padding: 60px 0;
    }
    
    .line-benefits .section-title h2 {
      font-size: 2.2rem;
    }
    
    .benefits-content {
      padding: 25px 20px;
    }
    
    .benefits-header h3 {
      font-size: 1.5rem;
      margin-bottom: 15px;
    }
    
    .benefits-badge {
      font-size: 0.8rem;
      padding: 4px 12px;
    }
    
    .benefits-description {
      font-size: 0.95rem;
      margin-bottom: 20px;
    }
    
    .check-icon {
      width: 25px;
      height: 25px;
      margin-right: 10px;
    }
    
    .item-text {
      font-size: 0.9rem;
    }
    
    .qr-header {
      font-size: 1.1rem;
    }
    
    .qr-code-wrapper {
      width: 150px;
      height: 150px;
      border-width: 8px;
    }
    
    .register-button {
      padding: 10px 20px;
      font-size: 0.9rem;
    }
    
    .benefits-footer p {
      font-size: 0.95rem;
    }
  }

/* =========================================================================== 初期費用のメリットセクション ===================================================================================== */
.benefits-section {
  padding: 120px 0;
  background-color: #f9f9ff;
  position: relative;
  overflow: hidden;
  color: #333;
}

/* 背景 */
.benefits-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 80% 80%, rgba(103, 0, 255, 0.05) 0%, rgba(103, 0, 255, 0) 50%),
              radial-gradient(circle at 20% 30%, rgba(0, 183, 255, 0.05) 0%, rgba(0, 183, 255, 0) 50%);
  z-index: 0;
}

/* セクションタイトル */
.benefits-section .section-title {
  text-align: center;
  margin-bottom: 70px;
  position: relative;
  z-index: 1;
}

.benefits-section .section-title h2 {
  font-size: 3.2rem;
  color: #333;
  margin-bottom: 15px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.benefits-section .highlight-text {
  background: linear-gradient(45deg, #0088C7, #32B8DF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  position: relative;
  font-weight: 800;
}

.benefits-section .highlight-text::after {
  content: '';
  position: absolute;
  bottom: 0px;
  left: 0;
  width: 100%;
  height: 8px;
  background: linear-gradient(45deg, rgba(0, 136, 199, 0.15), rgba(50, 184, 223, 0.15));
  border-radius: 4px;
  z-index: -1;
}

/* 風船グリッド - 上段 */
.benefits-grid-top {
  display: flex;
  justify-content: center;
  gap: 50px;
  margin-bottom: 40px;
  position: relative;
  z-index: 2;
}

/* 風船グリッド - 下段 */
.benefits-grid-bottom {
  display: flex;
  justify-content: center;
  gap: 50px;
  margin-bottom: 70px;
  position: relative;
  z-index: 2;
}

/* 風船デザイン */
.benefit-balloon {
  position: relative;
  width: 240px;
  height: 240px;
  border-radius: 50%;  /* 円形 */
  overflow: visible; /* 紐を表示するために変更 */
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  cursor: pointer;
  text-align: center;
  transform-origin: center bottom;
  animation: balloonFloat 5s infinite alternate ease-in-out;
  margin-bottom: 30px; /* 紐のスペースを確保 */
}

/* 風船全体のカラー背景 */
.benefit-balloon::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%; /* 完全な円 */
  z-index: 1;
}

/* 風船の白い部分（中央の半円） */
.benefit-balloon::after {
  content: '';
  position: absolute;
  top: 40%; /* 中央から */
  left: 5%; /* 左端より少し中に */
  width: 90%; /* 横幅90%に縮小 */
  height: 55%; /* 高さは45%に */
  background: white;
  border-radius: 10px 10px 120px 120px; /* 半円形に整形 */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  z-index: 2; /* カラー背景の上に */
}

/* 風船の色 - 全体 */
.benefit-balloon:nth-child(1)::before {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  box-shadow: 0 10px 30px rgba(79, 172, 254, 0.3);
}

.benefit-balloon:nth-child(2)::before {
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
  box-shadow: 0 10px 30px rgba(67, 233, 123, 0.3);
}

.benefit-balloon:nth-child(3)::before {
  background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
  box-shadow: 0 10px 30px rgba(250, 112, 154, 0.3);
}

.benefits-grid-bottom .benefit-balloon:nth-child(1)::before {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.benefits-grid-bottom .benefit-balloon:nth-child(2)::before {
  background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 100%);
  box-shadow: 0 10px 30px rgba(255, 154, 158, 0.3);
}

/* 風船の結び目と紐 */
.balloon-string {
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 0;
}

.string-knot {
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid #ccc;
  border-radius: 50%;
  margin: 0 auto 5px;
}

.string-line {
  width: 2px;
  height: 150px; /* 紐をさらに長く */
  background: linear-gradient(to bottom, #ccc, #f5f5f5);
  margin: 0 auto;
}

/* 風船が浮かぶようなアニメーション */
@keyframes balloonFloat {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  25% {
    transform: translateY(-10px) rotate(-1deg);
  }
  75% {
    transform: translateY(-15px) rotate(1deg);
  }
  100% {
    transform: translateY(-5px) rotate(0deg);
  }
}

/* アニメーションの遅延 */
.benefits-grid-top .benefit-balloon:nth-child(1) {
  animation-delay: 0s;
}

.benefits-grid-top .benefit-balloon:nth-child(2) {
  animation-delay: 0.7s;
}

.benefits-grid-top .benefit-balloon:nth-child(3) {
  animation-delay: 0.3s;
}

.benefits-grid-bottom .benefit-balloon:nth-child(1) {
  animation-delay: 0.5s;
}

.benefits-grid-bottom .benefit-balloon:nth-child(2) {
  animation-delay: 0.2s;
}

/* 風船内のコンテンツ */
.balloon-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 15px;
  z-index: 3; /* 最前面に */
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

/* 風船表面の光沢効果 */
.balloon-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%; /* 全体に */
  border-radius: 50%; /* 円形に */
  background: radial-gradient(ellipse at 30% 30%, rgba(255, 255, 255, 0.5), transparent 60%);
  z-index: 2;
  pointer-events: none;
}

/* ホバーエフェクト */
.benefit-balloon:hover {
  transform: translateY(-20px) scale(1.05);
  z-index: 10;
}

.benefit-balloon:hover .balloon-overlay {
  background: radial-gradient(ellipse at 30% 30%, rgba(255, 255, 255, 0.7), transparent 70%);
}

/* アイコン - 上半分に配置 */
.benefit-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 8px;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.1));
  transition: all 0.4s ease;
  position: relative;
  top: -60px; /* さらに上に移動 */
}

.benefit-balloon:hover .benefit-icon {
  transform: scale(1.2);
}

/* タイトルとテキスト */
.benefit-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff; /* 上半分のタイトルは白 */
  margin: 0 0 5px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  position: relative;
  top: -55px; /* さらに上に移動 */
}

.benefit-tagline {
  font-size: 1.2rem;
  color: #333; /* 下半分のテキストは黒 */
  line-height: 1.3;
  margin: 5px 0;
  font-weight: 600;
  position: relative;
  top: -20px; /* 白い部分に合わせて位置調整 */
  max-width: 75%; /* 幅を制限 */
}

@keyframes buttonShine {
  0% {
    transform: translateX(-100%) rotate(30deg);
  }
  20%, 100% {
    transform: translateX(100%) rotate(30deg);
  }
}

/* アニメーション */
.animate-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.animated {
  opacity: 1;
  transform: translateY(0);
}

/* レスポンシブデザイン */
@media (max-width: 1200px) {
  .benefits-grid-top {
    gap: 30px;
  }
  
  .benefits-grid-bottom {
    gap: 30px;
  }
  
}

@media (max-width: 992px) {
  .benefits-section .section-title h2 {
    font-size: 2.6rem;
  }
  
  .benefits-grid-top {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .benefits-grid-bottom {
    flex-wrap: wrap;
    justify-content: center;
  }
  
}

@media (max-width: 768px) {
  .benefits-section {
    padding: 80px 0;
  }
  
  .benefits-section .section-title h2 {
    font-size: 2.4rem;
  }
  
  .benefits-grid-top,
  .benefits-grid-bottom {
    flex-direction: column;
    align-items: center;
    gap: 60px;
  }
  
  .benefits-grid-top {
    margin-bottom: 20px;
  }
  
  .benefits-cta p {
    font-size: 1.5rem;
  }
  
  .benefits-cta {
    padding: 30px 20px;
  }
}

@media (max-width: 576px) {

  .benefits-section {
    padding: 60px 0;
  }
  
  .benefits-section .section-title h2 {
    font-size: 1.8rem;
  }
  
  .cta-button {
    padding: 14px 30px;
    font-size: 1rem;
  }
  
  .benefits-cta p {
    font-size: 1.3rem;
  }
}

/* ========================================================================= サービスの流れセクション ========================================================================= */
.service-flow {
padding: 120px 0;
background: linear-gradient(to bottom, #f9fbff, #eef4ff);
position: relative;
overflow: hidden;
}

/* 背景装飾 */
.flow-bg-decoration {
position: absolute;
border-radius: 50%;
opacity: 0.04;
filter: blur(40px);
z-index: 0;
}

.flow-decoration-1 {
width: 500px;
height: 500px;
background: linear-gradient(45deg, #0088C7, #32B8DF);
top: -100px;
right: -200px;
}

.flow-decoration-2 {
width: 400px;
height: 400px;
background: linear-gradient(45deg, #FFB000, #FFCB47);
bottom: -150px;
left: -150px;
}

.flow-decoration-3 {
width: 300px;
height: 300px;
background: linear-gradient(45deg, #06C755, #01b504);
top: 50%;
left: 20%;
transform: translateY(-50%);
}

/* 縦のラインガイド */
.flow-bg-line {
position: absolute;
top: 0;
left: 50%;
transform: translateX(-50%);
width: 3px;
height: 100%;
background: linear-gradient(to bottom, rgba(0, 136, 199, 0), rgba(0, 136, 199, 0.1) 20%, rgba(0, 136, 199, 0.1) 80%, rgba(0, 136, 199, 0));
z-index: 0;
}

/* セクションタイトル */
.service-flow .section-title {
text-align: center;
margin-bottom: 40px;
position: relative;
z-index: 1;
}

.service-flow .title-badge {
display: inline-block;
background: linear-gradient(45deg, #0088C7, #32B8DF);
color: white;
padding: 8px 20px;
border-radius: 30px;
font-weight: 700;
font-size: 0.9rem;
margin-bottom: 15px;
box-shadow: 0 5px 15px rgba(0, 136, 199, 0.2);
position: relative;
}

.service-flow .section-title h2 {
font-size: 2.8rem;
color: #333;
margin-bottom: 15px;
}

/* 紹介テキスト */
.flow-intro {
text-align: center;
max-width: 800px;
margin: 0 auto 60px;
position: relative;
z-index: 1;
}

.flow-intro p {
font-size: 1.2rem;
line-height: 1.8;
color: #555;
}

.flow-intro .highlight {
font-weight: 700;
color: #0088C7;
position: relative;
display: inline-block;
}

.flow-intro .highlight::after {
content: '';
position: absolute;
left: 0;
bottom: 0;
width: 100%;
height: 5px;
background: rgba(0, 136, 199, 0.1);
border-radius: 5px;
}

/* フローチャート */
.flow-chart {
position: relative;
max-width: 850px;
margin: 0 auto;
z-index: 1;
}

/* 各ステップ */
.flow-step {
display: flex;
margin-bottom: 50px;
position: relative;
padding-left: 40px;
z-index: 1;
}

.flow-step:last-child {
margin-bottom: 0;
}

/* ステップ番号 */
.step-number {
position: relative;
flex-shrink: 0;
width: 80px;
height: 80px;
margin-right: 30px;
display: flex;
align-items: center;
justify-content: center;
}

.step-number span {
position: relative;
width: 60px;
height: 60px;
background: white;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 1.8rem;
font-weight: 800;
color: #0088C7;
box-shadow: 0 8px 25px rgba(0, 136, 199, 0.2);
z-index: 2;
}

/* 各ステップに対する番号の色変更 */
.flow-step[data-step="1"] .step-number span {
color: #0088C7;
}

.flow-step[data-step="2"] .step-number span {
color: #FFB000;
}

.flow-step[data-step="3"] .step-number span {
color: #36ea66;
}

.flow-step[data-step="4"] .step-number span {
color: #e81469;
}

.flow-step[data-step="5"] .step-number span {
color: #0088C7;
}

/* ステップアイコン */
.step-icon {
position: absolute;
top: -10px;
right: -10px;
width: 40px;
height: 40px;
border-radius: 50%;
background: white;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
display: flex;
align-items: center;
justify-content: center;
color: #0088C7;
z-index: 2;
animation: pulse 2s infinite;
}

.step-icon svg {
width: 20px;
height: 20px;
}

/* 各ステップに対するアイコンの色変更 */
.flow-step[data-step="1"] .step-icon {
color: #0088C7;
}

.flow-step[data-step="2"] .step-icon {
color: #FFB000;
}

.flow-step[data-step="3"] .step-icon {
color: #36ea66;
}

.flow-step[data-step="4"] .step-icon {
color: #e81469;
}

.flow-step[data-step="5"] .step-icon {
color: #0088C7;
}

/* ステップコンテンツ */
.step-content {
flex-grow: 1;
background: white;
border-radius: 20px;
padding: 30px;
box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
transition: all 0.3s ease;
position: relative;
z-index: 1;
}

.flow-step:hover .step-content {
transform: translateY(-5px);
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* 各ステップに対する内容の上部ボーダー色変更 */
.flow-step[data-step="1"] .step-content {
border-top: 5px solid #0088C7;
}

.flow-step[data-step="2"] .step-content {
border-top: 5px solid #FFB000;
}

.flow-step[data-step="3"] .step-content {
border-top: 5px solid #36ea66;
}

.flow-step[data-step="4"] .step-content {
border-top: 5px solid #e81469;
}

.flow-step[data-step="5"] .step-content {
border-top: 5px solid #0088C7;
}

/* ステップタイトル */
.step-title {
font-size: 1.3rem;
font-weight: 700;
margin-bottom: 15px;
color: #333;
display: flex;
align-items: center;
flex-wrap: wrap;
}

.step-subtitle {
font-size: 0.9rem;
font-weight: 600;
color: #888;
margin-left: 10px;
position: relative;
padding-left: 12px;
}

.step-subtitle::before {
content: '|';
position: absolute;
left: 0;
top: 0;
color: #ddd;
}

/* ステップの説明文 */
.step-description {
color: #666;
line-height: 1.7;
margin: 0;
}

/* ステップ間の矢印 */
.flow-arrow {
position: absolute;
bottom: -40px;
left: 79px; /* step-numberの中心に合わせる */
transform: translateX(-50%);
width: 40px;
height: 30px;
color: rgba(0, 136, 199, 0.3);
z-index: 1;
}

.flow-arrow svg {
width: 100%;
height: 100%;
}

/* ステップ5の完了マーク */
.step-complete {
position: absolute;
bottom: -40px;
left: 79px; /* step-numberの中心に合わせる */
transform: translateX(-50%);
width: 80px;
height: 40px;
display: flex;
align-items: center;
justify-content: center;
font-weight: 700;
color: #0088C7;
background: #fff;
border-radius: 20px;
box-shadow: 0 8px 20px rgba(0, 136, 199, 0.2);
z-index: 2;
}

.step-complete svg {
width: 20px;
height: 20px;
margin-right: 5px;
color: #0088C7;
}

/* 補足情報 */
.flow-note {
max-width: 800px;
margin: 80px auto 40px;
background: rgba(0, 136, 199, 0.05);
border-radius: 15px;
padding: 25px;
display: flex;
align-items: center;
position: relative;
z-index: 1;
}

.note-icon {
flex-shrink: 0;
width: 40px;
height: 40px;
background: #0088C7;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
margin-right: 15px;
color: white;
}

.note-icon svg {
width: 20px;
height: 20px;
}

.flow-note p {
margin: 0;
color: #555;
line-height: 1.7;
}

/* CTAボタン */
.flow-cta {
text-align: center;
margin-top: 50px;
position: relative;
z-index: 1;
}

.flow-cta .cta-button {
display: inline-flex;
align-items: center;
justify-content: center;
background: linear-gradient(45deg, #06C755, #01b504);
color: white;
padding: 15px 30px;
border-radius: 50px;
font-size: 1.1rem;
font-weight: 700;
text-decoration: none;
box-shadow: 0 10px 25px rgba(73, 255, 134, 0.39);
transition: all 0.3s ease;
}

.flow-cta .cta-button:hover {
transform: translateY(-5px);
box-shadow: 0 10px 25px rgba(73, 255, 134, 0.888);
}

.cta-icon {
display: flex;
align-items: center;
justify-content: center;
margin-right: 10px;
}

.cta-icon svg {
width: 20px;
height: 20px;
}

/* パルスアニメーション */
@keyframes pulse {
0% {
transform: scale(1);
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
50% {
transform: scale(1.1);
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}
100% {
transform: scale(1);
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
}

.pulse {
animation: pulse 2s infinite;
}

/* アニメーション付きの表示 */
.animate-up {
opacity: 0;
transform: translateY(30px);
transition: all 0.8s ease-out;
}

.animated {
opacity: 1;
transform: translateY(0);
}

/* レスポンシブ対応 */
@media (max-width: 992px) {
.service-flow {
padding: 100px 0;
}

.service-flow .section-title h2 {
font-size: 2.5rem;
}

.flow-intro p {
font-size: 1.1rem;
}
}

@media (max-width: 768px) {
.service-flow {
padding: 80px 0;
}

.service-flow .section-title h2 {
font-size: 2.2rem;
}

.flow-step {
flex-direction: column;
padding-left: 0;
align-items: center;
text-align: center;
margin-bottom: 70px;
}

.step-number {
margin-right: 0;
margin-bottom: 20px;
}

.flow-arrow {
left: 50%;
bottom: -50px;
}

.step-complete {
left: 50%;
bottom: -50px;
}

.flow-note {
flex-direction: column;
text-align: center;
}

.note-icon {
margin-right: 0;
margin-bottom: 15px;
}

.step-icon {
  top: -10px;
  right: -30px;
  }

}

@media (max-width: 480px) {
.service-flow {
padding: 60px 0;
}

.service-flow .section-title h2 {
font-size: 1.8rem;
}

.flow-intro p {
font-size: 1rem;
}

.step-content {
padding: 20px;
}

.step-title {
font-size: 1.2rem;
flex-direction: column;
align-items: flex-start;
}

.step-subtitle {
margin-left: 0;
padding-left: 0;
margin-top: 5px;
}

.step-subtitle::before {
display: none;
}

.flow-cta .cta-button {
padding: 12px 25px;
font-size: 1rem;
}
}

@media (max-width: 480px) {
  .flow-step {
    margin-bottom: 40px;
  }
  
  .step-number {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
  }
  
  .step-number span {
    width: 45px;
    height: 45px;
    font-size: 1.4rem;
  }
  
  .step-content {
    padding: 20px 15px;
  }
  
  .step-title {
    font-size: 1.1rem;
  }
  
  .flow-arrow {
    width: 30px;
    height: 20px;
    bottom: -30px;
  }
}

/* CSSだけでアニメーション効果を実現する追加スタイル */

/* スクロールアニメーションの代替 */
@keyframes fadeInUp {
from {
opacity: 0;
transform: translateY(30px);
}
to {
opacity: 1;
transform: translateY(0);
}
}

/* 各要素に順番に適用するアニメーション */
.service-flow .section-title {
animation: fadeInUp 0.8s ease-out forwards;
}

.flow-intro {
animation: fadeInUp 0.8s 0.2s ease-out forwards;
opacity: 0;
}

.flow-step[data-step="1"] {
animation: fadeInUp 0.8s 0.3s ease-out forwards;
opacity: 0;
}

.flow-step[data-step="2"] {
animation: fadeInUp 0.8s 0.5s ease-out forwards;
opacity: 0;
}

.flow-step[data-step="3"] {
animation: fadeInUp 0.8s 0.7s ease-out forwards;
opacity: 0;
}

.flow-step[data-step="4"] {
animation: fadeInUp 0.8s 0.9s ease-out forwards;
opacity: 0;
}

.flow-step[data-step="5"] {
animation: fadeInUp 0.8s 1.1s ease-out forwards;
opacity: 0;
}

.flow-note {
animation: fadeInUp 0.8s 1.3s ease-out forwards;
opacity: 0;
}

.flow-cta {
animation: fadeInUp 0.8s 1.5s ease-out forwards;
opacity: 0;
}

/* ステップに対するホバーエフェクト */
.flow-step:hover .step-number span {
transform: scale(1.1);
transition: transform 0.3s ease;
}

/* ========================================================================= よくある質問セクション ========================================================================= */
.faq-section {
padding: 120px 0;
background: linear-gradient(to bottom, #fafbfe, #f0f3fc);
position: relative;
overflow: hidden;
}

/* 背景装飾 */
.faq-bg-decoration {
position: absolute;
border-radius: 50%;
opacity: 0.04;
filter: blur(40px);
z-index: 0;
}

.faq-decoration-1 {
width: 500px;
height: 500px;
background: linear-gradient(45deg, #9c27b0, #673ab7);
top: -100px;
left: -200px;
}

.faq-decoration-2 {
width: 400px;
height: 400px;
background: linear-gradient(45deg, #2196f3, #03a9f4);
bottom: -150px;
right: -150px;
}

.faq-decoration-3 {
width: 300px;
height: 300px;
background: linear-gradient(45deg, #ffb000, #ffcb47);
top: 40%;
right: 20%;
transform: translateY(-50%);
}

/* Q&A模様の背景パターン */
.faq-bg-pattern {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='%23000000' fill-opacity='0.02'%3E%3Cpath d='M23.5 47.5c-7.18 0-13-5.82-13-13s5.82-13 13-13h33c7.18 0 13 5.82 13 13s-5.82 13-13 13h-33zm0-24c-6.08 0-11 4.92-11 11s4.92 11 11 11h33c6.08 0 11-4.92 11-11s-4.92-11-11-11h-33zm-2 11c0-1.1.9-2 2-2s2 .9 2 2-.9 2-2 2-2-.9-2-2zm10 0c0-1.1.9-2 2-2s2 .9 2 2-.9 2-2 2-2-.9-2-2zm10 0c0-1.1.9-2 2-2s2 .9 2 2-.9 2-2 2-2-.9-2-2zm10 0c0-1.1.9-2 2-2s2 .9 2 2-.9 2-2 2-2-.9-2-2z' /%3E%3C/g%3E%3C/svg%3E");
opacity: 0.5;
z-index: 0;
}

/* セクションタイトル */
.faq-section .section-title {
text-align: center;
margin-bottom: 60px;
position: relative;
z-index: 1;
}

.faq-section .title-badge {
display: inline-block;
background: linear-gradient(45deg, #673ab7, #9c27b0);
color: white;
padding: 8px 20px;
border-radius: 30px;
font-weight: 700;
font-size: 0.9rem;
margin-bottom: 15px;
box-shadow: 0 5px 15px rgba(103, 58, 183, 0.2);
position: relative;
}

.faq-section .section-title h2 {
font-size: 2.8rem;
color: #333;
margin-bottom: 15px;
}

.faq-section .section-subtitle {
color: #666;
font-size: 1.1rem;
max-width: 800px;
margin: 0 auto;
line-height: 1.8;
}

/* FAQ コンテナ */
.faq-container {
max-width: 850px;
margin: 0 auto 60px;
position: relative;
z-index: 1;
}

/* FAQ アイテム */
.faq-item {
background: white;
border-radius: 20px;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
margin-bottom: 30px;
overflow: hidden;
transition: all 0.3s ease;
position: relative;
}

.faq-item:hover {
transform: translateY(-5px);
box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

/* チェックボックスを非表示 */
.faq-toggle {
position: absolute;
opacity: 0;
z-index: -1;
}

/* 質問部分 */
.faq-question {
padding: 25px 30px;
display: flex;
align-items: center;
position: relative;
cursor: pointer;
transition: all 0.3s ease;
background: white;
z-index: 2;
}

.faq-question:hover {
background: rgba(103, 58, 183, 0.02);
}

.question-icon {
flex-shrink: 0;
width: 40px;
height: 40px;
border-radius: 50%;
background: linear-gradient(45deg, #673ab7, #9c27b0);
color: white;
display: flex;
align-items: center;
justify-content: center;
font-size: 1.2rem;
font-weight: 700;
margin-right: 20px;
box-shadow: 0 5px 15px rgba(103, 58, 183, 0.2);
}

.faq-question h3 {
flex-grow: 1;
margin: 0;
font-size: 1.2rem;
color: #333;
transition: color 0.3s ease;
}

/* トグルアイコン */
.toggle-icon {
flex-shrink: 0;
width: 30px;
height: 30px;
border-radius: 50%;
background: #f0f0f0;
display: flex;
align-items: center;
justify-content: center;
position: relative;
transition: all 0.3s ease;
}

.toggle-icon span {
position: absolute;
font-size: 1.5rem;
line-height: 1;
color: #673ab7;
transition: all 0.3s ease;
}

.toggle-icon .plus {
opacity: 1;
transform: rotate(0);
}

.toggle-icon .minus {
opacity: 0;
transform: rotate(90deg);
}

/* 回答部分 */
.faq-answer {
max-height: 0;
opacity: 0;
overflow: hidden;
transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
padding: 0 30px 0 90px;
position: relative;
z-index: 1;
}

.answer-icon {
position: absolute;
left: 30px;
top: 20px;
width: 40px;
height: 40px;
border-radius: 50%;
background: linear-gradient(45deg, #2196f3, #03a9f4);
color: white;
display: flex;
align-items: center;
justify-content: center;
font-size: 1.2rem;
font-weight: 700;
box-shadow: 0 5px 15px rgba(33, 150, 243, 0.2);
}

.answer-content {
padding: 10px 0 30px;
}

.answer-content p {
margin: 0;
color: #555;
line-height: 1.8;
font-size: 1.05rem;
}

.answer-content strong {
color: #2196f3;
font-weight: 700;
}

/* チェックボックスでの制御 - アクティブ状態 */
.faq-toggle:checked ~ .faq-question {
background: rgba(103, 58, 183, 0.02);
}

.faq-toggle:checked ~ .faq-question h3 {
color: #673ab7;
}

.faq-toggle:checked ~ .faq-question .toggle-icon {
background: #673ab7;
}

.faq-toggle:checked ~ .faq-question .toggle-icon span {
color: white;
}

.faq-toggle:checked ~ .faq-question .toggle-icon .plus {
opacity: 0;
transform: rotate(90deg);
}

.faq-toggle:checked ~ .faq-question .toggle-icon .minus {
opacity: 1;
transform: rotate(0);
}

.faq-toggle:checked ~ .faq-answer {
max-height: 800px;
opacity: 1;
padding-top: 10px;
padding-bottom: 30px;
}

/* その他質問 */
.faq-more {
text-align: center;
background: white;
border-radius: 20px;
padding: 40px;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
max-width: 850px;
margin: 0 auto;
display: flex;
flex-direction: column;
align-items: center;
position: relative;
z-index: 1;
}

.more-icon {
width: 60px;
height: 60px;
border-radius: 50%;
background: linear-gradient(45deg, #673ab7, #9c27b0);
color: white;
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 20px;
box-shadow: 0 10px 20px rgba(103, 58, 183, 0.2);
animation: pulse 2s infinite;
}

.more-icon svg {
width: 30px;
height: 30px;
}

.faq-more p {
color: #555;
margin-bottom: 30px;
font-size: 1.1rem;
}

.more-btn {
display: inline-flex;
align-items: center;
justify-content: center;
background: linear-gradient(45deg, #06C755, #01b504);
color: white;
padding: 15px 30px;
border-radius: 50px;
font-size: 1.1rem;
font-weight: 700;
text-decoration: none;
box-shadow: 0 10px 20px rgba(6, 199, 85, 0.3);
transition: all 0.3s ease;
}

.more-btn:hover {
transform: translateY(-5px);
box-shadow: 0 15px 25px rgba(6, 199, 85, 0.4);
}

/* アニメーション */
@keyframes pulse {
0% {
transform: scale(1);
box-shadow: 0 10px 20px rgba(103, 58, 183, 0.2);
}
50% {
transform: scale(1.05);
box-shadow: 0 15px 30px rgba(103, 58, 183, 0.3);
}
100% {
transform: scale(1);
box-shadow: 0 10px 20px rgba(103, 58, 183, 0.2);
}
}

/* エントリーアニメーション */
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(30px);
}
to {
opacity: 1;
transform: translateY(0);
}
}

.section-title {
animation: fadeIn 0.8s ease-out forwards;
}

.faq-item:nth-child(1) {
animation: fadeIn 0.8s 0.2s ease-out forwards;
opacity: 0;
}

.faq-item:nth-child(2) {
animation: fadeIn 0.8s 0.4s ease-out forwards;
opacity: 0;
}

.faq-item:nth-child(3) {
animation: fadeIn 0.8s 0.6s ease-out forwards;
opacity: 0;
}

.faq-item:nth-child(4) {
animation: fadeIn 0.8s 0.8s ease-out forwards;
opacity: 0;
}

.faq-item:nth-child(5) {
  animation: fadeIn 0.8s 1s ease-out forwards;
  opacity: 0;
  }

.faq-item:nth-child(5) {
  animation: fadeIn 0.8s 1s ease-out forwards;
  opacity: 0;
  }  

.faq-item:nth-child(6) {
  animation: fadeIn 0.8s 1.2s ease-out forwards;
  opacity: 0;
  }  

.faq-item:nth-child(7) {
animation: fadeIn 0.8s 1.4s ease-out forwards;
opacity: 0;
}  

.faq-item:nth-child(8) {
animation: fadeIn 0.8s 1.6s ease-out forwards;
opacity: 0;
}  

.faq-more {
animation: fadeIn 0.8s 1s ease-out forwards;
opacity: 0;
}

/* ホバーエフェクト - トグルアイコンの回転 */
.faq-question:hover .toggle-icon {
transform: rotate(45deg);
transition: transform 0.3s ease;
}

.faq-toggle:checked ~ .faq-question:hover .toggle-icon {
transform: rotate(0);
}

/* マイナスボタンをクリックしたときの効果 - このセレクタで「-」ボタンも同じラベル扱いにする */
.toggle-icon {
pointer-events: none; /* アイコン自体はクリック判定から除外 */
}

/* レスポンシブ対応 */
@media (max-width: 992px) {
.faq-section {
padding: 100px 0;
}

.faq-section .section-title h2 {
font-size: 2.5rem;
}

.faq-section .section-subtitle {
font-size: 1rem;
}
}

@media (max-width: 768px) {
.faq-section {
padding: 80px 0;
}

.faq-section .section-title h2 {
font-size: 2.2rem;
}

.faq-question {
padding: 20px;
}

.question-icon {
width: 35px;
height: 35px;
font-size: 1rem;
margin-right: 15px;
}

.faq-question h3 {
font-size: 1.1rem;
}

.faq-answer {
padding: 0 20px 0 70px;
}

.answer-icon {
width: 35px;
height: 35px;
font-size: 1rem;
left: 20px;
}

.faq-more {
padding: 30px 20px;
}
}

@media (max-width: 480px) {
.faq-section {
padding: 60px 0;
}

.faq-section .section-title h2 {
font-size: 1.8rem;
}

.question-icon {
width: 30px;
height: 30px;
font-size: 0.9rem;
margin-right: 10px;
}

.faq-question h3 {
font-size: 1rem;
}

.toggle-icon {
width: 25px;
height: 25px;
}

.answer-icon {
width: 30px;
height: 30px;
font-size: 0.9rem;
}

.faq-answer {
padding: 0 15px 0 55px;
}

.answer-content p {
font-size: 0.95rem;
}

.more-icon {
width: 50px;
height: 50px;
}

.more-icon svg {
width: 25px;
height: 25px;
}

.more-btn {
padding: 12px 25px;
font-size: 1rem;
}
}


/*  =========================================================================TikTokセクション ========================================================================= */

.tiktok-showcase {
  padding: 120px 0;
  background: linear-gradient(to bottom, #f9fafe, #f0f2fd);
  position: relative;
  overflow: hidden;
}

/* 背景装飾 */
.tiktok-bg-decoration {
  position: absolute;
  border-radius: 50%;
  opacity: 0.06;
  filter: blur(40px);
  z-index: 0;
}

.decoration-1 {
  width: 500px;
  height: 500px;
  background: linear-gradient(45deg, #ff0050, #00f2ea);
  top: -100px;
  right: -200px;
}

.decoration-2 {
  width: 400px;
  height: 400px;
  background: linear-gradient(45deg, #69c9d0, #ee1d52);
  bottom: -150px;
  left: -150px;
}

.decoration-3 {
  width: 300px;
  height: 300px;
  background: linear-gradient(45deg, #25f4ee, #fe2c55);
  top: 40%;
  right: 20%;
}

/* セクションタイトル */
.tiktok-showcase .section-title {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
  z-index: 1;
}

/* カルーセル基本設定 */
.tiktok-carousel {
  position: relative;
  max-width: 1200px;
  margin: 0 auto 80px;
  padding: 20px 0;
}

/* ラジオボタンを非表示 */
.tiktok-carousel .carousel-radio {
  position: absolute;
  opacity: 0;
  z-index: -1;
}

/* カルーセルコンテナ */
.tiktok-carousel-container {
  width: 100%;
  overflow: hidden;
  border-radius: 20px;
  position: relative;
}

/* カルーセルトラック - PC表示では1/3幅のスライド3つ、モバイルでは1スライドのみ表示 */
.tiktok-carousel-track {
  display: flex;
  width: 300%; /* PCでは3つ分表示 */
  transition: transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* スライド制御 - PCモード */
#tiktok-slide1:checked ~ .tiktok-carousel-container .tiktok-carousel-track {
  transform: translateX(0);
}

#tiktok-slide2:checked ~ .tiktok-carousel-container .tiktok-carousel-track {
  transform: translateX(-33.333%);
}

#tiktok-slide3:checked ~ .tiktok-carousel-container .tiktok-carousel-track {
  transform: translateX(-66.666%);
}

/* TikTokスライド - PC表示用 */
.tiktok-video-slide {
  width: 33.333%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
}

/* スマホコンテナ */
.phone-container {
  position: relative;
  max-width: 280px;
  width: 100%;
  margin: 0 auto;
  transform-style: preserve-3d;
  perspective: 1000px;
  transition: all 0.5s ease;
  animation: phoneFloat 5s infinite alternate ease-in-out;
}

@keyframes phoneFloat {
  0% {
    transform: translateY(0) rotateY(0deg);
  }
  100% {
    transform: translateY(-10px) rotateY(5deg);
  }
}

/* スマホフレーム */
.phone-frame {
  position: relative;
  width: 100%;
  padding-bottom: 177.77%; /* 動画のアスペクト比 16:9 の逆数で計算 */
  border-radius: 25px;
  background: #000;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  border: 4px solid #1a1a1a;
  transition: all 0.3s ease;
  height: 0; /* パディング方式を使用するために必要 */
}

.phone-frame:hover {
  transform: scale(1.03) rotateY(10deg);
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.3);
}

/* スマホのノッチ */
.phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50%;
  height: 20px;
  background: #000;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  z-index: 10;
}

/* スマホのボタン */
.phone-button {
  position: absolute;
  right: -6px;
  top: 80px;
  width: 3px;
  height: 25px;
  background: #1a1a1a;
  border-radius: 3px;
}

/* スマホの画面 */
.phone-screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000; /* 背景を黒に変更してビデオに合わせる */
  border-radius: 20px;
  overflow: hidden;
}

/* TikTok動画 */
.tiktok-video {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
  cursor: pointer;
}

/* ビデオプレイヤーコンテナ */
.video-player-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ビデオプレイヤー */
.video-player {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 再生ボタン */
.tiktok-play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  z-index: 5;
  cursor: pointer;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  opacity: 0.9;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.tiktok-video:hover .tiktok-play-button {
  opacity: 1;
}

.tiktok-video.is-playing .tiktok-play-button {
  opacity: 0;
  visibility: hidden;
}

/* PCのナビゲーションドット */
.carousel-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}

.nav-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.3s ease;
}

.nav-dot:hover {
  background: rgba(255, 0, 80, 0.5);
}

#tiktok-slide1:checked ~ .carousel-nav label:nth-child(1),
#tiktok-slide2:checked ~ .carousel-nav label:nth-child(2),
#tiktok-slide3:checked ~ .carousel-nav label:nth-child(3) {
  background: linear-gradient(45deg, #ff0050, #00f2ea);
  transform: scale(1.2);
}

/* モバイル用ナビゲーション（PCでは非表示） */
.tiktok-mobile-nav {
  display: none;
}

/* 矢印ナビゲーション */
.tiktok-carousel-arrows {
  position: absolute;
  width: 110%;
  top: 50%;
  left: -5%;
  transform: translateY(-50%);
  z-index: 10;
  pointer-events: none;
}

.tiktok-arrow-prev,
.tiktok-arrow-next {
  position: absolute;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  pointer-events: auto;
  color: #333;
}

.tiktok-arrow-prev {
  left: 20px;
}

.tiktok-arrow-next {
  right: 20px;
}

.tiktok-arrow-prev:hover,
.tiktok-arrow-next:hover {
  background: linear-gradient(45deg, #ff0050, #00f2ea);
  color: white;
  transform: scale(1.1);
}

/* CTA部分 */
.tiktok-cta {
  text-align: center;
  margin-top: 50px;
  padding: 30px;
  background: linear-gradient(to right, rgba(255, 0, 80, 0.05), rgba(0, 242, 234, 0.05));
  border-radius: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.tiktok-cta::before {
  content: "";
  position: absolute;
  top: -100%;
  left: -100%;
  width: 300%;
  height: 300%;
  background: linear-gradient(45deg, 
    rgba(255, 0, 80, 0) 0%,
    rgba(255, 0, 80, 0.1) 25%, 
    rgba(0, 242, 234, 0.1) 75%, 
    rgba(0, 242, 234, 0) 100%
  );
  animation: ctaGradient 8s linear infinite;
  z-index: -1;
}

@keyframes ctaGradient {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.tiktok-cta p {
  font-size: 1.3rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 20px;
}

.tiktok-cta .cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(45deg, #ff0050, #00f2ea);
  color: white;
  padding: 15px 30px;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 20px rgba(255, 0, 80, 0.2);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.tiktok-cta .cta-button:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 25px rgba(255, 0, 80, 0.3);
}

.button-icon {
  display: inline-flex;
  margin-left: 10px;
  position: relative;
  z-index: 2;
}

.button-icon svg {
  width: 20px;
  height: 20px;
}

.tiktok-play-button.loading {
  opacity: 0.7;
  animation: rotate 1.5s linear infinite;
}

@keyframes rotate {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* 動画が最初に表示される前の背景を設定 */
.video-player {
  background-color: #f3f3f3;
}

/* モバイル用の矢印スタイル調整 */
.tiktok-carousel-arrows.mobile-arrows {
  width: 100%;
  left: 0;
}

.tiktok-carousel-arrows.mobile-arrows .tiktok-arrow-prev,
.tiktok-carousel-arrows.mobile-arrows .tiktok-arrow-next {
  width: 40px;
  height: 40px;
}

.tiktok-carousel-arrows.mobile-arrows .tiktok-arrow-prev {
  left: 5px;
}

.tiktok-carousel-arrows.mobile-arrows .tiktok-arrow-next {
  right: 5px;
}

/* スマホ表示用の調整 */
@media (max-width: 768px) {
  /* スマホでは9つの動画を一つずつ表示 */
  .tiktok-carousel-track {
    width: 900%; /* 9つの動画分の幅 */
  }
  
  /* 各ビデオスライドの幅を調整 */
  .tiktok-video-slide {
    width: 11.111%; /* 9つで100%になるように */
  }
  
  /* PCのナビゲーションを非表示 */
  .carousel-nav {
    display: none !important;
  }
  
  /* モバイル用ナビゲーションを表示 */
  .tiktok-mobile-nav {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
  }
  
  /* モバイル用ナビドット */
  .mobile-nav-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
  }
  
  /* アクティブなドット */
  #tiktok-slide1:checked ~ .tiktok-mobile-nav label:nth-child(1),
  #tiktok-slide2:checked ~ .tiktok-mobile-nav label:nth-child(2),
  #tiktok-slide3:checked ~ .tiktok-mobile-nav label:nth-child(3),
  #tiktok-slide4:checked ~ .tiktok-mobile-nav label:nth-child(4),
  #tiktok-slide5:checked ~ .tiktok-mobile-nav label:nth-child(5),
  #tiktok-slide6:checked ~ .tiktok-mobile-nav label:nth-child(6),
  #tiktok-slide7:checked ~ .tiktok-mobile-nav label:nth-child(7),
  #tiktok-slide8:checked ~ .tiktok-mobile-nav label:nth-child(8),
  #tiktok-slide9:checked ~ .tiktok-mobile-nav label:nth-child(9) {
    background: linear-gradient(45deg, #ff0050, #00f2ea);
    transform: scale(1.2);
  }
  
  /* モバイル用スライド制御 */
  #tiktok-slide1:checked ~ .tiktok-carousel-container .tiktok-carousel-track {
    transform: translateX(0%);
  }
  
  #tiktok-slide2:checked ~ .tiktok-carousel-container .tiktok-carousel-track {
    transform: translateX(-11.111%);
  }
  
  #tiktok-slide3:checked ~ .tiktok-carousel-container .tiktok-carousel-track {
    transform: translateX(-22.222%);
  }
  
  #tiktok-slide4:checked ~ .tiktok-carousel-container .tiktok-carousel-track {
    transform: translateX(-33.333%);
  }
  
  #tiktok-slide5:checked ~ .tiktok-carousel-container .tiktok-carousel-track {
    transform: translateX(-44.444%);
  }
  
  #tiktok-slide6:checked ~ .tiktok-carousel-container .tiktok-carousel-track {
    transform: translateX(-55.555%);
  }
  
  #tiktok-slide7:checked ~ .tiktok-carousel-container .tiktok-carousel-track {
    transform: translateX(-66.666%);
  }
  
  #tiktok-slide8:checked ~ .tiktok-carousel-container .tiktok-carousel-track {
    transform: translateX(-77.777%);
  }
  
  #tiktok-slide9:checked ~ .tiktok-carousel-container .tiktok-carousel-track {
    transform: translateX(-88.888%);
  }
  
  /* 矢印ナビゲーションを非表示 */
  .tiktok-carousel-arrows {
    display: block !important;
  }
  
  /* モバイル向けCTA調整 */
  .tiktok-cta {
    padding: 20px;
  }
  
  .tiktok-cta p {
    font-size: 1.1rem;
  }
  
  .tiktok-cta .cta-button {
    padding: 12px 25px;
    font-size: 1rem;
  }
  
  /* スワイプ操作のヒント */
  .tiktok-carousel-container::after {
    content: "";
    position: absolute;
    width: 60px;
    height: 60px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(0, 0, 0, 0.2)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18l6-6-6-6'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    pointer-events: none;
    opacity: 0;
    animation: swipeHintMobile 3s 1s ease-in-out;
  }
  
  @keyframes swipeHintMobile {
    0%, 100% {
      opacity: 0;
      transform: translate(-80%, -50%);
    }
    50% {
      opacity: 0.5;
      transform: translate(-20%, -50%);
    }
  }
}

@media (max-width: 480px) {
  .tiktok-showcase {
    padding: 60px 0;
  }
  
  .tiktok-showcase .section-title h2 {
    font-size: 1.8rem;
  }
  
  .phone-container {
    max-width: 220px;
  }
  
  .tiktok-play-button {
    width: 50px;
    height: 50px;
  }
  
  .tiktok-cta p {
    font-size: 1rem;
  }
  
  .tiktok-cta .cta-button {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
  
  .mobile-nav-dot {
    width: 8px;
    height: 8px;
  }
}

/* ========================================================================= お客様の声セクション ========================================================================= */
/* ========================================================================= LINE ========================================================================= */
.line-style {
  background: linear-gradient(135deg, #f5f7fa 0%, #e4e9f2 100%);
  padding: 100px 0;
}

.line-messages-slider {
  position: relative;
  max-width: 768px; /* iPad程度の横幅 */
  margin: 0 auto 60px;
}

/* ラジオボタン（非表示） */
.line-messages-slider input[type="radio"] {
  display: none;
}

/* スライダーコンテナ */
.line-slider-container {
  width: 100%;
  overflow: hidden;
  position: relative;
}

/* スライダートラック */
.line-slider-track {
  display: flex;
  width: 700%; /* スライド5枚分 */
  transition: transform 0.5s ease;
}

/* スライド制御 */
#message1:checked ~ .line-slider-container .line-slider-track {
  transform: translateX(0);
}

#message2:checked ~ .line-slider-container .line-slider-track {
  transform: translateX(-14%);
}

#message3:checked ~ .line-slider-container .line-slider-track {
  transform: translateX(-28%);
}

#message4:checked ~ .line-slider-container .line-slider-track {
  transform: translateX(-42%);
}

#message5:checked ~ .line-slider-container .line-slider-track {
  transform: translateX(-56%);
}

#message6:checked ~ .line-slider-container .line-slider-track {
  transform: translateX(-70%);
}

#message7:checked ~ .line-slider-container .line-slider-track {
  transform: translateX(-84%);
}

/* メッセージスライド */
.line-message-slide {
  width: 14%; /* 7枚で100% */
  padding: 20px;
  box-sizing: border-box;
}

/* LINE風チャットコンテナ */
.line-chat-container {
  max-width: 100%;
  margin: 0 auto;
  background: #f7f7f7;
  border-radius: 15px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  border: 1px solid #ddd;
}

/* LINEヘッダー */
.line-chat-header {
  display: flex;
  align-items: center;
  padding: 12px;
  background: #06C755;
  color: white;
}

.back-button, .menu-button {
  width: 24px;
  height: 24px;
}

.back-button svg, .menu-button svg {
  width: 100%;
  height: 100%;
}

.chat-title {
  flex-grow: 1;
  text-align: center;
  font-weight: bold;
  font-size: 16px;
}

/* チャットコンテンツ */
.line-chat-content {
  padding: 15px;
  background: #f7f7f7;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* 日付区切り */
.line-date-separator {
  text-align: center;
  color: #8e8e8e;
  font-size: 0.8rem;
  padding: 5px 10px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 10px;
  margin: 10px auto;
  display: inline-block;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

/* メッセージ共通スタイル */
.line-message {
  position: relative;
  margin-bottom: -10px;
  display: flex;
  flex-direction: column;
  max-width: 80%;
}

/* お客様側メッセージ */
.line-message.customer {
  align-self: flex-start;
}

.customer-info {
  display: flex;
  align-items: center;
  margin-bottom: 5px;
}

.customer-avatar, .company-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 10px;
  flex-shrink: 0;
  border: 1px solid #ddd;
}

.customer-avatar img, .company-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.customer-name {
  font-size: 0.8rem;
  color: #555;
}

/* お部屋LABO側メッセージ */
.line-message.company {
  align-self: flex-end;
  text-align: left;
}

.line-message.company .line-message-bubble {
  background: #06C755;
  color: white;
  margin-left: auto;
  margin-right: 0;
  order: 1;
}

.line-message.company .company-avatar {
  order: 2;
  margin-left: 10px;
  margin-right: 0;
  align-self: flex-end;
}

.line-message.company .line-time {
  order: 3;
  right: 0;
  text-align: right;
}

/* メッセージバブル */
.line-message-bubble {
  padding: 12px 15px;
  border-radius: 20px;
  position: relative;
  word-break: break-word;
  font-size: 16px;
  line-height: 1.5;
}

.line-message.customer .line-message-bubble {
  background: white;
  border: 1px solid #e5e5e5;
  border-top-left-radius: 5px;
}

.line-message.company .line-message-bubble {
  border-top-right-radius: 5px;
}

/* メッセージ時間 */
.line-time {
  font-size: 0.7rem;
  color: #8e8e8e;
  margin-top: 5px;
}

/* ナビゲーションドット */
.line-slider-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-dot:hover {
  background: rgba(6, 199, 85, 0.5);
}

#message1:checked ~ .line-slider-nav label:nth-child(1),
#message2:checked ~ .line-slider-nav label:nth-child(2),
#message3:checked ~ .line-slider-nav label:nth-child(3),
#message4:checked ~ .line-slider-nav label:nth-child(4),
#message5:checked ~ .line-slider-nav label:nth-child(5),
#message6:checked ~ .line-slider-nav label:nth-child(6),
#message7:checked ~ .line-slider-nav label:nth-child(7)  {
  background: #06C755;
  transform: scale(1.2);
}

/* 前後ナビゲーション */
.line-slider-arrows {
  position: absolute;
  width: 120%;
  left: -10%;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

.line-arrow {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  color: #333;
}

.line-arrow svg {
  width: 24px;
  height: 24px;
}

.line-arrow:hover {
  background: #06C755;
  color: white;
  transform: scale(1.1);
}

/* モバイル対応 */
@media (max-width: 768px) {
  .line-messages-slider {
    max-width: 95%;
  }
  
  .line-arrow {
    width: 40px;
    height: 40px;
  }
  
  .line-message {
    max-width: 95%;
  }
  
  .line-chat-content {
    min-height: 350px;
  }

  .line-message-bubble{
    font-size: 0.6rem;
  }

  .customer-name{
    font-size: 0.7rem;
  }

  .line-date-separator{
    font-size: 0.7rem;
  }
}

@media (max-width: 480px) {
  .line-chat-content {
    min-height: 350px;
  }
  
}

/* ========================================================================= インスタグラムストーリーセクション ========================================================================= */
.instagram-section {
  padding: 120px 0;
  background: linear-gradient(to bottom, #f9fbff, #f0f3fc);
  position: relative;
  overflow: hidden;
}

/* 背景装飾 */
.instagram-bg-decoration {
  position: absolute;
  border-radius: 50%;
  opacity: 0.04;
  filter: blur(40px);
  z-index: 0;
}

.decoration-1 {
  width: 500px;
  height: 500px;
  background: linear-gradient(45deg, #833AB4, #fd1d1d, #fcb045);
  top: -100px;
  right: -200px;
}

.decoration-2 {
  width: 400px;
  height: 400px;
  background: linear-gradient(45deg, #C13584, #E1306C, #FD1D1D);
  bottom: -150px;
  left: -150px;
}

/* インスタグラム風の背景パターン */
.instagram-bg-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='%23000000' fill-opacity='0.02'%3E%3Cpath d='M20 20h20v20H20V20zm20 20h20v20H40V40zm-20 0h20v20H20V40zm0-40h20v20H20V0zm20 0h20v20H40V0z'/%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
  z-index: 0;
}

/* セクションタイトル */
.instagram-section .section-title {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
  z-index: 1;
}

.instagram-section .title-badge {
  display: inline-block;
  background: linear-gradient(45deg, #C13584, #E1306C, #FD1D1D);
  color: white;
  padding: 8px 20px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 15px;
  box-shadow: 0 5px 15px rgba(193, 53, 132, 0.3);
  position: relative;
}

.instagram-section .section-title h2 {
  font-size: 2.8rem;
  color: #333;
  margin-bottom: 15px;
}

.instagram-section .section-subtitle {
  color: #666;
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}

/* インスタグラムグリッド */
.instagram-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  max-width: 1200px;
  margin: 0 auto 60px;
  position: relative;
  z-index: 1;
  justify-items: center; /* グリッドアイテムを中央揃えに */
}

/* インスタグラムアイテム */
.instagram-item {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  width: 100%; /* 幅を親要素に合わせる */
  max-width: 300px; /* 最大幅を制限 */
}

.instagram-item:hover {
  transform: translateY(-10px) scale(1.05);
  z-index: 2;
}

/* インスタグラムフレーム */
.instagram-frame {
  position: relative;
  width: 100%;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  aspect-ratio: 9/16; /* スマホの縦長比率を保持（インスタストーリーに近い比率） */
}

.instagram-item:hover .instagram-frame {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* インスタグラム画像 */
.instagram-image {
  width: 100%;
  height: 100%;
  display: block;
  transition: all 0.5s ease;
  object-fit: cover; /* 画像が比率を維持しながらもフレーム全体を覆うようにする */
}

.instagram-item:hover .instagram-image {
  transform: scale(1.1);
}

/* オーバーレイ情報 */
.instagram-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0));
  opacity: 0;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.instagram-item:hover .instagram-overlay {
  opacity: 1;
}

.instagram-category {
  background: linear-gradient(45deg, #C13584, #E1306C, #FD1D1D);
  color: white;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.instagram-caption {
  color: white;
  font-size: 1rem;
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* インスタグラムCTA */
.instagram-cta {
  text-align: center;
  margin-top: 40px;
  position: relative;
  z-index: 1;
}

.cta-instagram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(45deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D);
  color: white;
  padding: 15px 30px;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(193, 53, 132, 0.3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.cta-instagram:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(193, 53, 132, 0.4);
}

.cta-instagram::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(30deg);
  animation: instaShine 6s infinite;
  z-index: 1;
}

@keyframes instaShine {
  0% {
    transform: translateX(-100%) rotate(30deg);
  }
  20%, 100% {
    transform: translateX(100%) rotate(30deg);
  }
}

.button-icon {
  display: inline-flex;
  margin-right: 10px;
  position: relative;
  z-index: 2;
}

.button-icon svg {
  width: 20px;
  height: 20px;
}

/* パルスアニメーション */
.pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 10px 25px rgba(193, 53, 132, 0.3);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(193, 53, 132, 0.4);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 10px 25px rgba(193, 53, 132, 0.3);
  }
}

/* モーダル */
.instagram-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  overflow: auto;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.instagram-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
}

.modal-content {
  position: relative;
  max-width: 80%;
  margin: auto;
  padding: 20px;
  animation: modalZoomIn 0.3s;
}

@keyframes modalZoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.modal-close:hover {
  color: #FD1D1D;
  transform: rotate(90deg);
}

.modal-image {
  display: block;
  max-width: 100%;
  max-height: 80vh;
  border-radius: 10px;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
}

.modal-caption {
  color: white;
  text-align: center;
  padding: 20px 0;
  font-size: 1.2rem;
  font-weight: 600;
}

/* アニメーション */
.animate-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.animated {
  opacity: 1;
  transform: translateY(0);
}

/* レスポンシブ対応 */
@media (max-width: 992px) {
  .instagram-section {
    padding: 100px 0;
  }
  
  .instagram-section .section-title h2 {
    font-size: 2.5rem;
  }
  
  .instagram-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .instagram-item {
    max-width: 250px; /* タブレット表示時のアイテム幅を調整 */
  }
}

@media (max-width: 768px) {
  .instagram-section {
    padding: 80px 0;
  }
  
  .instagram-section .section-title h2 {
    font-size: 2.2rem;
  }
  
  .instagram-section .section-subtitle {
    font-size: 0.8rem;
  }
  
  .cta-instagram {
    padding: 12px 25px;
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .instagram-section {
    padding: 60px 0;
  }
  
  .instagram-section .section-title h2 {
    font-size: 1.1rem;
  }
  
  .instagram-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .instagram-item {
    max-width: 280px; /* モバイル表示時のアイテム幅を調整 */
  }
  
  .modal-content {
    max-width: 95%;
  }
}

/* ========================================================================= SNSセクション ========================================================================= */
.sns {
  padding: 80px 0;
  background-color: var(--light);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.sns::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%239C92AC' fill-opacity='0.05' fill-rule='evenodd'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40'/%3E%3C/g%3E%3C/svg%3E");
}
.sns-icons {
  display: flex;
  justify-content: center;
  margin-top: 40px;
  gap: 50px;
}
.sns-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  transition: var(--transition);
}
.sns-icon:hover {
  transform: translateY(-10px) scale(1.05);
}
.sns-icon-image {
  width: 80px;
  height: 80px;
  border-radius: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--white);
  font-size: 2rem;
  font-weight: 800;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  z-index: 1;
}
.sns-icon-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary-gradient);
  z-index: -1;
  transition: var(--transition);
}
.sns-icon-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
  z-index: -1;
}
.sns-icon:nth-child(2) .sns-icon-image::before {
  background: var(--pop1-gradient);
}
.sns-icon:nth-child(3) .sns-icon-image::before {
  background: var(--accent-gradient);
}
.sns-icon-text {
  color: var(--dark);
  font-weight: 700;
  font-size: 1.2rem;
  position: relative;
}
.sns-icon-text::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--primary-gradient);
  transition: var(--transition);
  border-radius: 3px;
}
.sns-icon:hover .sns-icon-text::after {
  width: 100%;
}
.sns-icon:nth-child(2) .sns-icon-text::after {
  background: var(--pop1-gradient);
}
.sns-icon:nth-child(3) .sns-icon-text::after {
  background: var(--accent-gradient);
}


/*  ========================================================================= LINE登録追従バナー ========================================================================= */
.line-banner {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 99;
  max-width: 350px;
  opacity: 0;
  transform: scale(0.5) translateY(50px);
  transition: none; /* 初期状態ではトランジションを無効化 */
  pointer-events: none;
  border-radius: 15px;
  background: linear-gradient(135deg, #06C755, #04a645);
  box-shadow: 0 10px 25px rgba(6, 199, 85, 0.3);
  padding: 5px;
  overflow: hidden;
  animation: float 4s ease-in-out infinite;
  animation-play-state: paused; /* 最初はフロートアニメーションを停止 */
}

/* バナーがアクティブになった時 */
.line-banner.active {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: auto;
  animation-play-state: running; /* フロートアニメーションを開始 */
  animation: entranceBounce 0.8s cubic-bezier(0.18, 0.89, 0.32, 1.28) forwards, 
             float 4s 0.8s ease-in-out infinite; /* 登場後にフロートアニメーション開始 */
}

/* バナー登場のバウンドアニメーション */
@keyframes entranceBounce {
  0% {
    opacity: 0;
    transform: scale(0.5) translateY(80px);
  }
  40% {
    opacity: 1;
    transform: scale(1.1) translateY(-10px);
  }
  60% {
    transform: scale(0.9) translateY(5px);
  }
  80% {
    transform: scale(1.05) translateY(-3px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.line-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(30deg);
  animation: shine 6s infinite;
  z-index: 1;
}

@keyframes shine {
  0% {
    transform: translateX(-100%) rotate(30deg);
  }
  20%, 100% {
    transform: translateX(100%) rotate(30deg);
  }
}

.line-banner.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.line-banner-content {
  display: flex;
  align-items: center;
  padding: 15px;
  position: relative;
  z-index: 2;
  cursor: pointer;
}

.line-banner-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  animation: pulse 2s infinite;
  position: relative;
  overflow: hidden;
}

.line-banner-icon::after {
  content: '';
  position: absolute;
  width: 15px;
  height: 15px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  top: 5px;
  left: 5px;
}

.line-banner-icon svg {
  width: 22px;
  height: 22px;
  animation: wiggle 3s ease-in-out infinite;
}

@keyframes wiggle {
  0%, 100% {
    transform: rotate(0deg);
  }
  20% {
    transform: rotate(15deg);
  }
  40% {
    transform: rotate(-10deg);
  }
  60% {
    transform: rotate(5deg);
  }
  80% {
    transform: rotate(-5deg);
  }
}

.line-banner-text {
  flex-grow: 1;
  color: white;
  padding-right: 10px;
}

.line-banner-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 3px;
  line-height: 1.3;
  animation: colorPulse 4s infinite;
}

@keyframes colorPulse {
  0%, 100% {
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
  }
  50% {
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.8), 0 0 20px rgba(255, 255, 255, 0.5);
  }
}

.line-banner-title .highlight {
  background: rgba(255, 255, 255, 0.2);
  padding: 2px 5px;
  border-radius: 4px;
  display: inline-block;
  position: relative;
  animation: pulse 3s infinite;
}

.line-banner-subtitle {
  font-size: 0.8rem;
  opacity: 0.8;
  animation: fadeInOut 6s infinite;
}

@keyframes fadeInOut {
  0%, 100% {
    opacity: 0.8;
  }
  50% {
    opacity: 1;
  }
}

.line-banner-button {
  flex-shrink: 0;
  background: white;
  color: #06C755;
  padding: 8px 15px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.line-banner-button::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to right,
    rgba(6, 199, 85, 0) 0%,
    rgba(6, 199, 85, 0.1) 50%,
    rgba(6, 199, 85, 0) 100%
  );
  transform: rotate(30deg);
  animation: buttonShine 3s infinite;
  z-index: 1;
}

@keyframes buttonShine {
  0% {
    transform: translateX(-100%) rotate(30deg);
  }
  50%, 100% {
    transform: translateX(100%) rotate(30deg);
  }
}

.line-banner-content:hover .line-banner-button {
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.line-banner-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 22px;
  height: 22px;
  background: rgba(0, 0, 0, 0.3);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  opacity: 0.7;
  transition: all 0.3s ease;
  z-index: 3;
}

.line-banner-close:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.5);
  transform: rotate(90deg);
}

/* パルスアニメーション */
@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.5);
  }
  70% {
    transform: scale(1.1);
    box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

/* 装飾的な要素 */
.line-banner-decoration {
  position: absolute;
  bottom: -20px;
  left: -20px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  z-index: 0;
}

.line-banner-bubble {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  z-index: 0;
  animation: bubbleFloat 6s infinite ease-in-out;
}

.bubble-1 {
  width: 25px;
  height: 25px;
  top: 10px;
  right: 40px;
  animation-delay: 0s;
}

.bubble-2 {
  width: 15px;
  height: 15px;
  top: 40px;
  right: 20px;
  animation-delay: 2s;
}

.bubble-3 {
  width: 10px;
  height: 10px;
  bottom: 15px;
  right: 50px;
  animation-delay: 1s;
}

@keyframes bubbleFloat {
  0%, 100% {
    transform: translateY(0) scale(1);
    opacity: 0.15;
  }
  50% {
    transform: translateY(-10px) scale(1.1);
    opacity: 0.3;
  }
}

@media (max-width: 768px) {
  .line-banner {
    max-width: 300px;
    bottom: 20px;
    right: 20px;
  }
  
  .line-banner-icon {
    width: 35px;
    height: 35px;
  }
  
  .line-banner-icon svg {
    width: 18px;
    height: 18px;
  }
  
  .line-banner-title {
    font-size: 0.9rem;
  }
  
  .line-banner-subtitle {
    font-size: 0.75rem;
  }
  
  .line-banner-button {
    padding: 6px 12px;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .line-banner {
    max-width: 230px; /* バナーサイズ調整 */
    bottom: 10px;
    right: 10px;
  }
  
  .line-banner-content {
    padding: 8px;
  }
  
  .line-banner-icon {
    width: 25px;
    height: 25px;
    margin-right: 6px;
  }
  
  .line-banner-title {
    font-size: 0.6rem;
    line-height: 1.2;
  }
  
  .line-banner-subtitle {
    font-size: 0.65rem;
  }
  
  .line-banner-button {
    padding: 4px 8px;
    font-size: 0.7rem;
  }
}


/* ========================================================================= AI見積もり添削 追従バナー ========================================================================= */
/* LINE登録バナーと同じデザインを青系で踏襲し、画面右下に常時表示する */
.ai-banner {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 99;
  max-width: 350px;
  opacity: 0;
  transform: scale(0.5) translateY(50px);
  transition: none;
  pointer-events: none;
  border-radius: 15px;
  background: linear-gradient(135deg, #4f93ff, #1b3fae);
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.35);
  padding: 5px;
  overflow: hidden;
  animation: float 4s ease-in-out infinite;
  animation-play-state: paused;
}

.ai-banner.active {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: auto;
  animation: entranceBounce 0.8s cubic-bezier(0.18, 0.89, 0.32, 1.28) forwards,
             float 4s 0.8s ease-in-out infinite;
}

.ai-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(30deg);
  animation: shine 6s infinite;
  z-index: 1;
}

.ai-banner-content {
  display: flex;
  align-items: center;
  padding: 15px;
  position: relative;
  z-index: 2;
  cursor: pointer;
}

.ai-banner-text {
  flex-grow: 1;
  color: white;
  padding-right: 10px;
}

.ai-banner-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 3px;
  line-height: 1.3;
  animation: colorPulse 4s infinite;
}

.ai-banner-title .highlight {
  background: rgba(255, 255, 255, 0.2);
  padding: 2px 5px;
  border-radius: 4px;
  display: inline-block;
  position: relative;
  animation: pulse 3s infinite;
}

.ai-banner-subtitle {
  font-size: 0.8rem;
  opacity: 0.85;
  animation: fadeInOut 6s infinite;
}

.ai-banner-button {
  flex-shrink: 0;
  background: white;
  color: #2563eb;
  padding: 8px 15px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  animation: bounce 2s infinite;
}

.ai-banner-button::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to right,
    rgba(37, 99, 235, 0) 0%,
    rgba(37, 99, 235, 0.1) 50%,
    rgba(37, 99, 235, 0) 100%
  );
  transform: rotate(30deg);
  animation: buttonShine 3s infinite;
  z-index: 1;
}

.ai-banner-content:hover .ai-banner-button {
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.ai-banner-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 22px;
  height: 22px;
  background: rgba(0, 0, 0, 0.3);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  opacity: 0.7;
  transition: all 0.3s ease;
  z-index: 3;
}

.ai-banner-close:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.5);
  transform: rotate(90deg);
}

.ai-banner-decoration {
  position: absolute;
  bottom: -20px;
  left: -20px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  z-index: 0;
}

.ai-banner-bubble {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  z-index: 0;
  animation: bubbleFloat 6s infinite ease-in-out;
}

@media (max-width: 768px) {
  .ai-banner {
    max-width: 300px;
    bottom: 20px;
    right: 20px;
  }

  .ai-banner-title {
    font-size: 0.9rem;
  }

  .ai-banner-subtitle {
    font-size: 0.75rem;
  }

  .ai-banner-button {
    padding: 6px 12px;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .ai-banner {
    max-width: 230px;
    bottom: 10px;
    right: 10px;
  }

  .ai-banner-content {
    padding: 8px;
  }

  .ai-banner-title {
    font-size: 0.6rem;
    line-height: 1.2;
  }

  .ai-banner-subtitle {
    font-size: 0.65rem;
  }

  .ai-banner-button {
    padding: 4px 8px;
    font-size: 0.7rem;
  }
}

/* ========================================================================= AI見積もり添削 モーダル ========================================================================= */
.ai-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px 14px;
  background: rgba(0, 0, 0, 0.62);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s;
}

.ai-modal.open {
  opacity: 1;
  visibility: visible;
}

.ai-modal-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 452px;
  max-height: 88vh;
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  transform: scale(0.95);
  transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1);
}

.ai-modal.open .ai-modal-panel {
  transform: scale(1);
}

.ai-modal-head {
  flex: 0 0 auto;
  background: linear-gradient(180deg, #4f93ff 0%, #1d4ed8 100%);
  padding: 14px 50px;
  text-align: center;
}

.ai-modal-label {
  display: inline-block;
  background: #0f1b3d;
  color: #ffffff;
  font-weight: 800;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  padding: 3px 12px;
  border-radius: 9999px;
}

.ai-modal-title {
  display: block;
  margin-top: 5px;
  font-weight: 900;
  font-size: 18px;
  line-height: 1.3;
  color: #ffffff;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.ai-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: #ffffff;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  color: #1a1a1a;
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.3);
}

.ai-modal-close:hover {
  transform: rotate(90deg);
}

.ai-modal-close:active {
  transform: scale(0.94);
}

.ai-modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 18px;
}

/* ビューの切り替えフェードイン */
.ai-view {
  animation: ai-fadein 0.34s ease;
}

@keyframes ai-fadein {
  from { opacity: 0; transform: translateY(7px); }
  to   { opacity: 1; transform: none; }
}

.ai-desc {
  margin-bottom: 16px;
  font-size: 14px;
  line-height: 1.85;
  color: #3a3a3a;
  font-weight: 600;
}

.ai-desc strong {
  font-weight: 800;
  color: #1a1a1a;
  background: linear-gradient(transparent 60%, #bcd4ff 60%);
}

.ai-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 2.5px dashed #9db4e6;
  border-radius: 14px;
  background: #f0f4fc;
  padding: 28px 16px;
  cursor: pointer;
  text-align: center;
}

.ai-drop svg {
  color: #2563eb;
}

.ai-drop-title {
  font-weight: 800;
  font-size: 14px;
  color: #1a1a1a;
}

.ai-drop-sub {
  font-size: 11px;
  color: #888;
}

.ai-preview {
  display: block;
  width: 100%;
  margin-top: 14px;
  border: 2px solid #1a1a1a;
  border-radius: 12px;
}

.ai-filechip {
  margin-top: 14px;
  border: 2px solid #1a1a1a;
  border-radius: 12px;
  background: #eef3fd;
  padding: 14px 16px;
  font-size: 13px;
  font-weight: 800;
  color: #1b3fae;
  text-align: center;
  word-break: break-all;
}

.ai-run {
  margin-top: 14px;
  width: 100%;
  border: 2.5px solid #1a1a1a;
  border-radius: 14px;
  background: linear-gradient(180deg, #4f93ff, #2563eb);
  color: #ffffff;
  font-weight: 900;
  font-size: 16px;
  padding: 14px;
  cursor: pointer;
  box-shadow: 0 4px 0 #1a1a1a;
  transition: transform 0.09s, box-shadow 0.09s;
}

.ai-run:disabled {
  opacity: 0.45;
  cursor: default;
}

.ai-run:not(:disabled):active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #1a1a1a;
}

/* 読み込みビュー */
.ai-loading {
  text-align: center;
  padding: 40px 12px;
}

.ai-spinner {
  width: 60px;
  height: 60px;
  margin: 0 auto 18px;
  border: 6px solid #d8e4fb;
  border-top-color: #2563eb;
  border-radius: 50%;
  animation: ai-spin 0.8s linear infinite;
}

@keyframes ai-spin {
  to { transform: rotate(360deg); }
}

.ai-loading-text {
  font-size: 15.5px;
  font-weight: 900;
  color: #1d4ed8;
}

.ai-loading-sub {
  margin-top: 8px;
  font-size: 11.5px;
  color: #888;
}

/* 結果ビュー */
.ai-result {
  font-size: 12.5px;
  line-height: 1.7;
  color: #3a3a3a;
  text-align: center;
}

.ai-rr-done {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 900;
  color: #1d8a4e;
  background: #e3f7ec;
  border: 2px solid #1d8a4e;
  padding: 4px 14px;
  border-radius: 9999px;
  margin-bottom: 14px;
}

.ai-rr-card {
  margin-top: 9px;
  border: 2.5px solid #1a1a1a;
  border-radius: 16px;
  background: linear-gradient(180deg, #eaf1ff, #d3e2ff);
  padding: 14px 13px 16px;
  box-shadow: 0 5px 0 rgba(26, 26, 26, 0.15);
}

.ai-rr-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: #1a1a1a;
  color: #ffffff;
  padding: 3px 13px;
  border-radius: 9999px;
}

.ai-rr-save {
  margin-top: 8px;
  font-size: 13.5px;
  font-weight: 800;
  color: #1d4ed8;
}

.ai-rr-save b {
  font-size: 19px;
}

.ai-rr-tt {
  margin-top: 11px;
  padding-top: 11px;
  border-top: 1.5px dashed rgba(26, 26, 26, 0.28);
}

.ai-rr-tt-label {
  font-size: 10.5px;
  font-weight: 700;
  color: #5a5a5a;
}

.ai-rr-tt-was {
  font-size: 13px;
  font-weight: 700;
  color: #8a8a8a;
  text-decoration: line-through;
  margin-left: 5px;
}

.ai-rr-tt-now {
  display: block;
  margin-top: 1px;
  font-size: 36px;
  font-weight: 900;
  line-height: 1.05;
  color: #1d4ed8;
}

.ai-rr-tt-now .u {
  font-size: 19px;
}

.ai-rr-card--max {
  background: linear-gradient(180deg, #ffe9c9, #ffd3a3);
}

.ai-rr-card--max .ai-rr-save {
  color: #c2410c;
}

.ai-rr-card--max .ai-rr-tt-now {
  color: #c2410c;
}

.ai-rr-nochukai {
  margin: 9px 0;
  font-size: 11.5px;
  color: #888;
}

.ai-rr-more {
  margin-top: 15px;
  font-size: 14px;
  font-weight: 800;
  color: #c2410c;
  line-height: 1.55;
}

.ai-rr-note {
  margin-top: 14px;
  font-size: 10px;
  color: #999;
  line-height: 1.65;
}

.ai-rr-cta {
  margin-top: 15px;
}

.ai-rr-reset {
  margin-top: 13px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  color: #2563eb;
  text-decoration: underline;
}

/* 結果内のLINE相談ボタン */
.ai-line-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  text-decoration: none;
  color: #ffffff;
  font-weight: 900;
  font-size: 15.5px;
  background: linear-gradient(135deg, #06C755, #04a645);
  box-shadow: 0 6px 16px rgba(6, 199, 85, 0.4);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.ai-line-btn:active {
  transform: translateY(2px);
  box-shadow: 0 3px 9px rgba(6, 199, 85, 0.4);
}

.ai-line-btn svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

/* ========================================================================= フッター ========================================================================= */
footer {
  background-color: var(--dark);
  color: var(--white);
  padding: 80px 0 20px;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* フッターのグリッドレイアウト */
.footer-top {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 60px;
}

/* 会社情報エリア */
.company-info {
  margin-bottom: 30px;
  text-align: left;
}

.footer-logo {
  max-width: 200px;
  display: inline-block;
  position: relative;
  margin-bottom: 20px;
}

.company-address {
  margin: 20px 0;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.7);
}

.company-contact {
  margin: 20px 0;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.7);
}

/* 電話番号 */
.phone-number {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  display: flex;
  align-items: center;
  margin: 20px 0;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.phone-number::before {
  content: '☎';
  margin-right: 15px;
  font-size: 2rem;
  color: var(--accent);
  -webkit-text-fill-color: var(--accent);
}

/* フッターの見出し */
.footer-heading {
  font-size: 1.3rem;
  margin-bottom: 25px;
  color: var(--white);
  position: relative;
  padding-bottom: 10px;
}

.footer-heading::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 4px;
  background: var(--primary-gradient);
  border-radius: 2px;
}

/* フッターリンクリスト */
.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 15px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: var(--transition);
  display: flex;
  align-items: center;
  padding: 5px 0;
}

.footer-links a:hover {
  color: var(--white);
  transform: translateX(10px);
}

.footer-links a::before {
  content: '›';
  margin-right: 8px;
  color: var(--primary);
  font-size: 1.5rem;
  font-weight: 800;
  transition: var(--transition);
}

.footer-links a:hover::before {
  margin-right: 12px;
}

/* SNSリンクエリア */
.footer-sns {
  text-align: center;
}

.footer-sns .footer-heading {
  text-align: center;
}

.footer-sns .footer-heading::after {
  left: 50%;
  transform: translateX(-50%);
}

.footer-sns-links {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 20px;
  align-items: center;
}

/* 各SNSリンク */
.footer-sns-link {
  display: flex;
  align-items: center;
  padding: 10px 20px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  text-decoration: none;
  color: var(--white);
  transition: all 0.3s ease;
  width: 180px;
  justify-content: flex-start;
}

.footer-sns-link:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* SNSアイコン */
.sns-icon-wrapper {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  overflow: hidden;
}

.sns-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

/* SNS名 */
.sns-name {
  font-size: 1rem;
  font-weight: 600;
}

/* フッター下部 */
.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

/* ========================================================================= レスポンシブ対応 ========================================================================= */
@media (max-width: 992px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
  
  .company-info {
    grid-column: span 2;
    text-align: center;
  }
  
  .footer-sns {
    text-align: left;
  }
  
  .footer-sns .footer-heading {
    text-align: left;
  }
  
  .footer-sns .footer-heading::after {
    left: 0;
    transform: none;
  }
  
  .footer-sns-links {
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  footer {
    padding: 60px 0 20px;
  }
  
  .footer-top {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .company-info {
    grid-column: span 1;
  }
  
  .footer-sns {
    text-align: center;
  }
  
  .footer-sns .footer-heading {
    text-align: center;
  }
  
  .footer-sns .footer-heading::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .footer-sns-links {
    align-items: center;
  }
  
  .footer-logo {
    max-width: 180px;
  }
  
  .phone-number {
    font-size: 1.3rem;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  footer {
    padding: 30px 0 15px;
  }
  
  .footer-top {
    gap: 20px;
    margin-bottom: 30px;
  }
  
  .footer-heading {
    font-size: 1.1rem;
    margin-bottom: 15px;
    padding-bottom: 5px;
  }
  
  .footer-heading::after {
    width: 40px;
    height: 3px;
  }
  
  .footer-links li {
    margin-bottom: 10px;
  }
  
  .footer-links a {
    font-size: 0.9rem;
  }
  
  .footer-bottom {
    padding-top: 20px;
    font-size: 0.8rem;
  }
}

/* ===== アニメーション & 動的要素 ===== */
.animate-up {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.animate-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.animate-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.animated {
  opacity: 1;
  transform: translate(0);
}
.pulse {
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 8px 20px rgba(140, 82, 255, 0.3);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 15px 25px rgba(140, 82, 255, 0.4);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 8px 20px rgba(140, 82, 255, 0.3);
  }
}
@keyframes bounce {
  0%, 100% {
    transform: translateY(0) rotate(-2deg);
  }
  50% {
    transform: translateY(-15px) rotate(-2deg);
  }
}
@keyframes float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
  100% {
    transform: translateY(0);
  }
}
@keyframes shine {
  from {
    background-position: -200% 0;
  }
  to {
    background-position: 200% 0;
  }
}

/* ===== レスポンシブ ===== */
@media (max-width: 991px) {
  .hero {
    padding: 10px 0;
  }
  .hero-title {
    font-size: 2.8rem;
  }
  .qr-code {
    display: none;
  }
  .concerns-wrapper {
    grid-template-columns: 1fr;
  }
  .concerns-image {
    order: 2;
  }
  .concerns-content {
    order: 1;
  }
  .cta-title {
    font-size: 2.5rem;
  }
  .cta-subtitle {
    font-size: 1.5rem;
  }
  .comparison-wrapper {
    flex-direction: column;
    align-items: center;
    gap: 50px;
  }
  .vs-badge {
    top: auto;
    left: 50%;
    transform: translateX(-50%);
  }
}

@media (max-width: 768px) {
  .navbar-container {
    padding: 0 20px;
  }
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background-color: var(--white);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
  }
  .nav-links.active {
    right: 0;
  }
  .nav-links li {
    margin: 15px 0;
  }
  .hamburger {
    display: block;
  }
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
  }
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -7px);
  }
  .hero-content {
    text-align: center;
  }
  .section-title h2 {
    font-size: 2rem;
  }
  .cta-qr {
    flex-direction: column;
  }
  .cta-qr-image {
    margin-right: 0;
    margin-bottom: 20px;
  }
  .cta-qr-text {
    text-align: center;
  }
}

@media (max-width: 576px) {
  .hero {
    padding: 20px 0;
  }
  .hero-title {
    font-size: 2.2rem;
  }
  .hero-subtitle {
    font-size: 1.1rem;
  }
  .hero-cta {
    padding: 15px 30px;
    font-size: 1.1rem;
  }
  .section-title h2 {
    font-size: 1.8rem;
  }
  .concerns-content h3 {
    font-size: 1.7rem;
  }
  .cta-title {
    font-size: 2rem;
  }
  .cta-subtitle {
    font-size: 1.2rem;
  }
  .cta-button {
    padding: 15px 30px;
    font-size: 1.2rem;
  }
  .phone-number {
    font-size: 1.3rem;
  }
  .fee-card {
    padding: 20px 15px;
  }
  .fee-icon {
    width: 60px;
    height: 60px;
    font-size: 1.8rem;
  }
  .fee-amount {
    font-size: 3rem;
  }
  .fee-title {
    font-size: 1.2rem;
    min-height: 40px;
  }
  .fee-description {
    min-height: auto;
    font-size: 0.9rem;
  }
  .service-card, .benefit-card {
    padding: 25px 20px;
  }
  .service-icon, .benefit-icon {
    width: 70px;
    height: 70px;
  }
  .hero-decoration, .cta-decoration {
    display: none;
  }
}

@media (max-width: 480px) {
  .zero-fees, .why-zero, .services, .concerns, .philosophy-section, 
  .history-section, .faq-section, .staff-section, .testimonials, .access-section {
    padding: 50px 0; /* セクションの上下パディングを小さく */
  }
  
  .section-title {
    margin-bottom: 30px;
  }
  
  .section-title h2 {
    font-size: 1.8rem;
  }
  
  .title-badge {
    font-size: 0.8rem;
    padding: 5px 15px;
    margin-bottom: 10px;
  }

  .fee-card, .service-card, .philosophy-card, .reason-card, .concern-item {
    padding: 20px 15px; /* 余白を小さく */
  }
  
  .fee-icon, .service-icon, .philosophy-icon, .reason-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    margin-bottom: 15px;
  }
  
  .fee-title, .service-title, .philosophy-title {
    font-size: 1.1rem;
    margin-bottom: 10px;
  }
  
  .fee-description, .service-description, .philosophy-text, .reason-description {
    font-size: 0.9rem;
    line-height: 1.5;
  }
  
  .fee-amount {
    font-size: 2.5rem; /* 数字サイズ調整 */
  }
  
  .fee-amount span {
    font-size: 1.2rem;
  }

  body {
    font-size: 14px; /* 小さい画面での基本フォントサイズを調整 */
  }
  
  .container {
    padding: 0 15px; /* コンテナの余白を調整 */
  }
  
  h1, h2, h3, h4, h5, h6 {
    line-height: 1.3; /* 見出しの行間を狭めて省スペース化 */
  }

}

/* ===== カーソル効果 ===== */
.custom-cursor {
  position: fixed;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary-gradient);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  opacity: 0.5;
  mix-blend-mode: difference;
  transition: transform 0.2s ease;
}
.custom-cursor.expand {
  transform: translate(-50%, -50%) scale(4);
  opacity: 0.2;
  background: var(--accent-gradient);
}

/* ===== マウストレイル効果 ===== */
.cursor-trail {
  position: fixed;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
  pointer-events: none;
  opacity: 0.3;
  z-index: 9998;
  transition: opacity 0.5s ease;
}

/* TikTok対処方法の通知バー - TikTokアプリ内ブラウザ（html.in-tiktok）のスマホ・タブレットのみ表示 */
.tiktok-notice {
    background: linear-gradient(135deg, #ff0050 0%, #ff4081 100%);
    color: #ffffff;
    padding: 16px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1001;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border-bottom: 3px solid rgba(255, 255, 255, 0.3);
    display: none; /* デフォルトでは非表示 */
}

.notice-content {
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
}

.notice-icon {
    font-size: 24px;
    color: #ffffff;
    flex-shrink: 0;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
    100% {
        opacity: 1;
    }
}

.notice-text {
    flex: 1;
    line-height: 1.4;
}

.notice-text p {
    margin: 4px 0;
    font-size: 14px;
}

.notice-text p:first-child {
    font-size: 16px;
    margin-bottom: 8px;
}

.notice-close {
    background: #ffffff;
    border: 2px solid #ff0050;
    color: #ff0050;
    font-size: 14px;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 50px;
    transition: all 0.3s ease;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.notice-close:hover {
    background-color: #ff0050;
    color: #ffffff;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.notice-close i {
    font-size: 16px;
}

/* PC（1025px以上）では非表示 */
@media (min-width: 1025px) {
    .tiktok-notice {
        display: none !important;
    }
}

/* タブレット（769px〜1024px）で表示 */
@media (min-width: 769px) and (max-width: 1024px) {
    .in-tiktok .tiktok-notice {
        display: block;
        padding: 16px 0;
    }
    
    .notice-content {
        align-items: center;
        gap: 24px;
    }
    
    .notice-icon {
        font-size: 24px;
    }
    
    .notice-text p {
        font-size: 14px;
        margin: 4px 0;
    }
    
    .notice-text p:first-child {
        font-size: 16px;
    }
    
    /* タブレット用ヘッダーを完全に隠す */
    .in-tiktok .navbar {
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
    }
    
    /* タブレット用ヒーローセクション調整 */
    .in-tiktok .hero {
        margin-top: 120px !important;
    }
}

/* スマホ（768px以下）で表示 */
@media (max-width: 768px) {
    .in-tiktok .tiktok-notice {
        display: block;
        padding: 16px 0;
    }
    
    .notice-content {
        flex-direction: row;
        align-items: flex-start;
        gap: 16px;
    }
    
    .notice-icon {
        font-size: 20px;
        margin-top: 4px;
    }
    
    .notice-text p {
        font-size: 12px;
        margin: 3px 0;
        line-height: 1.4;
    }
    
    .notice-text p:first-child {
        font-size: 14px;
        margin-bottom: 8px;
    }

    .notice-close {
        padding: 8px 12px;
        font-size: 12px;
        gap: 4px;
        min-width: 70px;
    }
    
    .notice-close i {
        font-size: 14px;
    }
    
    /* スマホ用ヘッダーを完全に隠す */
    .in-tiktok .navbar {
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
    }
    
    /* スマホ用ヒーローセクション調整 */
    .in-tiktok .hero {
        margin-top: 130px !important;
    }
}

@media (max-width: 480px) {
    .notice-content {
        flex-wrap: nowrap;
        align-items: flex-start;
    }
    
    .notice-text {
        flex: 1;
        min-width: 0;
    }

    .notice-close {
        padding: 8px 12px;
        font-size: 11px;
        min-width: 60px;
    }
    
    /* 小さい画面用ヒーローセクション調整 */
    .in-tiktok .hero {
        margin-top: 130px !important;
    }
}

/* =========================================================================
 * 紹介リンク（ref）モード：フォーム画面 / エラー画面の共通スタイル
 *   - form.html
 *   - invalid-link.html
 *   - already-registered.html
 * 既存のメインLPに影響を与えないよう .referral-form-body 配下のみに限定
 * ========================================================================= */

.referral-form-body {
  background:
    radial-gradient(circle at 10% 0%, rgba(0, 136, 199, 0.08), transparent 40%),
    radial-gradient(circle at 90% 100%, rgba(255, 176, 0, 0.08), transparent 40%),
    var(--light);
  color: var(--dark);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: 'Noto Sans JP', sans-serif;
}

/* カスタムカーソルを消す（referral 系ページはシンプルUI優先） */
.referral-form-body .custom-cursor,
.referral-form-body .cursor-trail {
  display: none !important;
}

/* ヘッダー */
.referral-header {
  background: var(--white);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  padding: 16px 20px;
}
.referral-header-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.referral-logo {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: 0.02em;
}

/* メイン */
.referral-main {
  flex: 1 0 auto;
  padding: 48px 20px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}
.referral-form-section {
  width: 100%;
  max-width: 560px;
}

/* カード */
.referral-form-card {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 40px 32px;
  box-shadow: 0 20px 40px rgba(0, 136, 199, 0.12);
  position: relative;
}
.referral-message-card {
  text-align: center;
}

/* タイトル */
.referral-form-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 16px;
  line-height: 1.4;
  text-align: center;
}
.referral-form-lead {
  font-size: 0.95rem;
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 28px;
  text-align: center;
}

/* 紹介者表示 */
.referral-referrer-box {
  background: linear-gradient(135deg, rgba(0, 136, 199, 0.08), rgba(50, 184, 223, 0.08));
  border: 1px solid rgba(0, 136, 199, 0.2);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 24px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 0.9rem;
  justify-content: center;
  flex-wrap: wrap;
}
.referral-referrer-label {
  color: var(--gray);
  font-weight: 500;
  font-size: 0.85rem;
}
.referral-referrer-name {
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 1rem;
  word-break: break-all;
}
.referral-referrer-suffix {
  color: var(--primary-dark);
  font-weight: 500;
}

/* ローディング */
.referral-loading {
  text-align: center;
  padding: 32px 0;
  color: var(--gray);
}
.referral-spinner {
  width: 40px;
  height: 40px;
  margin: 0 auto 16px;
  border: 3px solid rgba(0, 136, 199, 0.15);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: referral-spin 0.9s linear infinite;
}
@keyframes referral-spin {
  to { transform: rotate(360deg); }
}

/* ref 無しエラー */
.referral-no-ref {
  text-align: center;
}

/* フィールド */
.referral-field {
  margin-bottom: 20px;
}
.referral-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
}
.referral-required {
  display: inline-block;
  background: var(--pop2);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 8px;
  vertical-align: 2px;
  letter-spacing: 0.04em;
}
.referral-input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid rgba(0, 0, 0, 0.12);
  border-radius: 10px;
  background: var(--white);
  font-size: 1rem;
  font-family: inherit;
  color: var(--dark);
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
}
.referral-input::placeholder {
  color: #BBBBBB;
  font-weight: 400;
}
.referral-input:hover {
  border-color: rgba(0, 136, 199, 0.35);
}
.referral-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 136, 199, 0.15);
}
.referral-input--error {
  border-color: var(--pop2);
  background: rgba(232, 20, 105, 0.03);
}
.referral-input--error:focus {
  box-shadow: 0 0 0 3px rgba(232, 20, 105, 0.15);
}
.referral-hint {
  font-size: 0.78rem;
  color: var(--gray);
  margin-top: 6px;
  line-height: 1.5;
}
.referral-error {
  font-size: 0.82rem;
  color: var(--pop2);
  margin-top: 6px;
  line-height: 1.5;
  min-height: 0;
}
.referral-error:empty {
  display: none;
}

/* ボタン */
.referral-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 14px 24px;
  border-radius: 30px;
  border: none;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
  width: 100%;
  box-sizing: border-box;
}
.referral-btn-primary {
  background: var(--pop1-gradient);
  color: var(--white);
  box-shadow: 0 10px 25px rgba(6, 199, 85, 0.32);
  margin-top: 12px;
  position: relative;
}
.referral-btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(6, 199, 85, 0.42);
}
.referral-btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}
.referral-btn-primary .referral-btn-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: referral-spin 0.8s linear infinite;
}
.referral-btn-primary.is-loading .referral-btn-label {
  opacity: 0.75;
}
.referral-btn-primary.is-loading .referral-btn-spinner {
  display: inline-block;
}
.referral-btn-secondary {
  background: var(--white);
  color: var(--primary-dark);
  border: 1.5px solid var(--primary);
  box-shadow: 0 4px 14px rgba(0, 136, 199, 0.12);
  margin-top: 16px;
  width: auto;
  min-width: 220px;
  padding: 12px 28px;
}
.referral-btn-secondary:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 136, 199, 0.28);
}
.referral-btn-line {
  background: var(--pop1-gradient);
  color: var(--white);
  box-shadow: 0 10px 25px rgba(6, 199, 85, 0.32);
  margin-top: 20px;
}
.referral-btn-line:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(6, 199, 85, 0.42);
}
.referral-btn-line-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* テキストリンク（トップへ戻る等） */
.referral-text-link {
  display: inline-block;
  margin-top: 20px;
  color: var(--gray);
  font-size: 0.9rem;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.referral-text-link:hover {
  color: var(--primary);
}

/* 注意書き */
.referral-note {
  font-size: 0.78rem;
  color: var(--gray);
  margin-top: 18px;
  line-height: 1.6;
  text-align: center;
}

/* グローバルエラー（通信エラー等） */
.referral-form-error {
  background: rgba(232, 20, 105, 0.08);
  border: 1px solid rgba(232, 20, 105, 0.3);
  color: #b30d4e;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

/* メッセージカード（エラー/情報） */
.referral-message-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}
.referral-message-icon--error {
  background: rgba(232, 20, 105, 0.1);
  color: var(--pop2);
}
.referral-message-icon--info {
  background: rgba(0, 136, 199, 0.1);
  color: var(--primary);
}

/* フッター */
.referral-footer {
  background: var(--white);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding: 20px;
  text-align: center;
  color: var(--gray);
  font-size: 0.8rem;
}

/* referral モードボタン（refモード時に既存LINEボタンへ付与） */
a.referral-mode {
  /* 既存デザインを維持しつつ、refモード中であることを識別可能に。
     見た目は変えないがフックとして利用できる */
}

/* レスポンシブ */
@media (max-width: 600px) {
  .referral-main {
    padding: 24px 16px 40px;
  }
  .referral-form-card {
    padding: 28px 20px;
    border-radius: 16px;
  }
  .referral-form-title {
    font-size: 1.25rem;
  }
  .referral-form-lead {
    font-size: 0.9rem;
  }
  .referral-input {
    font-size: 16px; /* iOS Safariのズーム防止（16px以上） */
  }
  .referral-btn {
    font-size: 0.98rem;
  }
  .referral-btn-secondary {
    width: 100%;
  }
}

@media (max-width: 360px) {
  .referral-form-card {
    padding: 24px 16px;
  }
}

/* =========================================================================
   固定ページ（プライバシーポリシーなど）
   ========================================================================= */
.policy-page {
  padding: 140px 0 80px;
  background-color: var(--light);
}
.policy-article {
  max-width: 820px;
  margin: 0 auto;
  padding: 48px 40px;
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
}
.policy-title {
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 3px solid var(--primary);
  font-size: 2rem;
  font-weight: 900;
  color: var(--dark);
}
.policy-body {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--dark);
}
.policy-body h2 {
  margin: 40px 0 12px;
  padding-left: 12px;
  border-left: 5px solid var(--primary);
  font-size: 1.3rem;
  font-weight: 700;
}
.policy-body p,
.policy-body ul {
  margin-bottom: 14px;
}
.policy-body ul {
  padding-left: 1.4em;
  list-style: disc;
}
.policy-body a {
  color: var(--primary-dark);
  text-decoration: underline;
}
@media (max-width: 768px) {
  .policy-page { padding: 110px 0 56px; }
  .policy-article { padding: 28px 20px; }
  .policy-title { font-size: 1.5rem; }
  .policy-body h2 { font-size: 1.15rem; }
}

/* =========================================================================
   スマホ表示の文字揃え・見出し調整
   - 説明文（複数行になる文章）: 左揃え
   - 見出しの塊(.nb)とバッジの位置を固定
   ========================================================================= */
@media (max-width: 768px) {
  /* 複数行になる説明文は左揃え */
  .fee-description,
  .reason-description,
  .step-description,
  .benefits-description,
  .flow-intro,
  .fees-note {
    text-align: left;
  }

  /* 見出しの改行位置を崩さないための塊 */
  .nb {
    display: inline-block;
  }

  /* バッジは必ず見出しの上の独立した行に置く */
  .section-title .title-badge {
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
  }
}


/* ロゴ画像（黄色の下線を含む画像なので、CSSの下線は出さない） */
.logo.logo-img::after {
  display: none;
}
.logo.logo-img img {
  height: 40px;
  width: auto;
  margin-right: 0;
}
@media (max-width: 768px) {
  .logo.logo-img img {
    height: 34px;
  }
}

/* フッターは暗い背景なので、白ロゴを使う */
.footer-logo {
  width: 220px;
  max-width: 100%;
  height: auto;
}

/* PC・タブレット: 番号1〜5をカードの縦の中央に合わせる */
@media (min-width: 769px) {
  .flow-step {
    align-items: center;
  }
}

/* 利用の流れの縦線は使わない */
.flow-bg-line {
  display: none;
}

/* フッターのロゴ: ページの先頭へ戻るリンク */
.footer-logo-link {
  display: inline-block;
  line-height: 0;
}
.footer-logo-link .footer-logo {
  margin-bottom: 20px;
  transition: opacity 0.2s ease;
}
.footer-logo-link:hover .footer-logo {
  opacity: 0.85;
}
.footer-logo-link:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
  border-radius: 12px;
}

/* スマホ: お客様の声の矢印が画面の右にはみ出して横に隙間ができるのを防ぐ（矢印の半分だけスライダーの外に出す） */
@media (max-width: 768px) {
  .line-slider-arrows {
    width: calc(100% + 40px);
    left: -20px;
  }
}

/* 指定位置で改行する <br class="br-sp">（スマホのみ有効）と、行の塊 .nb */
.br-sp {
  display: none;
}
.nb {
  display: inline-block;
}
@media (max-width: 768px) {
  .br-sp {
    display: inline;
  }
}

/* スマホ: 右下の追従バナー(.line-banner)がコピーライトに被らないよう、フッター下に余白を取る */
@media (max-width: 768px) {
  footer {
    padding-bottom: 100px;
  }
}

/* スマホ: メリットの円の中の文章は2行に収める（指定位置で改行し、画面幅に合わせて文字サイズを縮める） */
@media (max-width: 768px) {
  .benefit-tagline {
    max-width: 92%;
    font-size: min(1.2rem, 4.8vw);
    line-height: 1.4;
    text-align: center;
  }
  .benefit-tagline .nb {
    white-space: nowrap;
  }
}

/* セクションごとのフェードアップ（JS有効時のみ。動きを減らす設定の人には出さない） */
.js .fade-section {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.js .fade-section.is-inview {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .js .fade-section {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* 利用の流れ: 各ステップのイラスト（PCは右、スマホは文章の上） */
.step-content {
  display: flex;
  align-items: center;
  gap: 24px;
}
.step-text {
  flex: 1;
  min-width: 0;
}
.step-illust {
  flex: 0 0 160px;
}
.step-illust img {
  display: block;
  width: 100%;
  height: auto;
}
@media (max-width: 768px) {
  .step-content {
    flex-direction: column;
    gap: 12px;
  }
  .step-text {
    width: 100%;
  }
  .step-illust {
    order: -1;
    flex: none;
    width: 150px;
  }
}
