/* @media screen and (max-width: 340px) {} 小型iPhone (例: iPhone SE旧型) – 推定約10～15%  */
/* @media screen and (min-width: 341px) and (max-width: 400px) {} 標準iPhone (例: iPhone 8, X, 11) – 推定約40～45% */
/* @media screen and (min-width: 401px) and (max-width: 440px) {} 大型iPhone (例: iPhone 12/13系, Plus, Pro Max) – 推定約25～30% */
/* @media screen and (min-width: 641px) and (max-width: 840px) {} iPad (標準iPad/iPad mini、10.2インチ含む) – 推定約65% (768px: 約40% + 820px: 約25%) */
/* @media screen and (min-width: 841px) and (max-width: 1050px) {} iPad (大型モデル: iPad Air/Pro等, 834px系: 約20%、1024px系: 約15%) – 推定約35% */

header.l-header { display: none; }
header.p-page-header { display: none; }
ul.p-breadcrumb { display: none; }
.l-inner { width: 100% !important; max-width: 100% !important; padding: 0 !important; margin: 0 auto !important; }
.p-entry__body p { margin-bottom: 0; line-height: 2; }
h3 { font-weight: bold }
.l-footer__logo { color: #fff;}

/* ====== 全体のリセット ====== */
body, html {
  margin: 0;
  padding: 0;
  /* height: 100%;  ← 削除 */
  /* width: 100%;   ← 必要なら残してOK */
  overflow-x: hidden; /* 横スクロール防止 */
  scroll-behavior: smooth !important; /* スムーズスクロール */
  line-height: 1;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.scroll-top-btn {
position: fixed;       /* 常に画面上に固定 */
bottom: 20px;         /* 画面下からの距離 */
right: 20px;          /* 画面右からの距離 */
width: 50px;          /* ボタンの幅 */
height: 50px;         /* ボタンの高さ */
border-radius: 50%;   /* 丸いボタンに */
background-color: #333;
color: #fff;
font-weight: bold;
text-align: center;
line-height: 50px;     /* テキストをボタン中央に */
cursor: pointer;
z-index: 9999;         /* 他要素より前面に表示 */
transition: opacity 0.3s ease;
opacity: 0.8;
}

.scroll-top-btn:hover {
opacity: 1;           /* ホバー時に少し明るく */
}

/* ====== 背景設定 ====== */
.fv-wrapper {
  position: relative;
  width: 100%;  /* 画面幅いっぱい */
  /* min-height: 100%;  ← 削除 */
  background: url("/wp-content/themes/oops_tcd048/images/insyoku_haikei.png") no-repeat center center / cover;
  background-size: cover;
}

/* ====== PC）ヘッダー帯 ====== */
.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #006B7E;
  padding: 15px 30px;
}

/* PCヘッダーロゴ */
.header-logo {
  height: 50px;
}

/* PCナビゲーション */
.header-nav {
  display: flex;
  align-items: center; /* 追加：縦中央揃え */
  gap: 45px;
  margin-left: 110px;
}

.header-nav a {
  color: white;
  text-decoration: none;
  font-size: 16px;
  font-weight: bold;
}

/* ヘッダーの無料相談ボタン */
.header-irai-btn {
  text-align: center;
  background: #FFBA00;
  color: #fff !important;
  padding: 10px 20px;
  border-radius: 45px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  width: 173px;
}

.header-irai-btn:hover {
  background-color: #e69500;
}

@media screen and (max-width: 1100px) {/* スクロールTOP：モバイル、タブレット（901以上のタブレットを除く） */
  .header-logo {
    width: 280px;  /* モバイル用に小さめに調整 */
    height: 45px !important;
  }
}

@media screen and (max-width: 900px) {/* スクロールTOP：モバイル、タブレット（901以上のタブレットを除く） */
  .scroll-top-btn {
    bottom: 60px;         /* 画面下からの距離 */
    right: 20px;          /* 画面右からの距離 */
  }
}


/* ====== PC）ハンバーガーメニュー用トリガー ====== */
.mobile-menu-trigger {
  display: none; /* デフォルトは非表示 */
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.mobile-menu-trigger .bar {
  width: 25px;
  height: 3px;
  background-color: white;
  transition: all 0.3s ease;
}

/* ハンバーガーがオープン状態の時のスタイル（バッテン表示） */
.mobile-menu-trigger.open .bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6.5px);
}
.mobile-menu-trigger.open .bar:nth-child(2) {
  opacity: 0;
}
.mobile-menu-trigger.open .bar:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6.5px);
}

.mobile-menu-content {
  display: none; /* 非表示 */
}

@media screen and (max-width: 1100px) { /* メニュー：iPad (大型モデル: iPad Air/Pro等, 834px系: 約20%、1024px系: 約15%) – 推定約35% */

  .header-nav {
    gap: 15px;
    margin-left: 10px;
  }

}

@media screen and (max-width: 900px) {/* メニュー：モバイル、タブレット（901以上のタブレットを除く） */

  .header-bar {
    padding: 15px 30px;
  }
  
  .header-logo {
    width: 250px;  /* モバイル用に小さめに調整 */
    height: 34px !important;
  }
  .header-nav.desktop-menu {
    display: none; /* PC用メニューは非表示 */
  }
  .mobile-menu-trigger {
    display: flex; /* ハンバーガーアイコンを表示 */
  }
  /* ----- モバイル用メニューコンテナ ----- */
  .mobile-menu-content {
    display: none; /* 初期は非表示。JSでdisplay:flexに切替 */
    background-color: #006B7E;
    position: fixed;  /* fixedにすることでビューポート全体に配置 */
    top: 60px; /* ヘッダーの下に配置（ヘッダー高さに合わせる） */
    left: 0;
    width: 100%;
    padding: 10px 0;
    z-index: 1000;
  }
  /* モバイル用ナビゲーションを横並びに */
  .header-nav.mobile-menu {
    margin: 0;
    padding: 0 80px; /* 左右に余白を追加 */
    display: flex;
    flex-direction: column;  /* 縦並び */
    align-items: flex-start;  /* 左寄せ */
    width: 100%;
    gap: 5px;
  }
  .header-nav.mobile-menu a {
    display: block;
    margin: 2px 0;  /* 縦の余白 */
    padding: 0;       /* 横の余白をなくす */
    color: white;
    text-decoration: none;
    font-size: 18px;
    width: 100%;
    text-align: left;  /* 文字を左揃え */
  }
}


/* ====== PC）ファーストビューエリア ====== */
.fv-container {
  display: flex;
  justify-content: space-between; /* 左右に適切に配置 */
  align-items: center;
  width: 100%;  /* 画面幅いっぱい */
  /* min-height: 100%; ← 削除 */
  position: relative;
}

/* 左側エリア */
.fv-left {
  width: 45%;
  padding: 20px 0px 20px 80px;
  text-align: center;
}

/* 王冠画像 */
.fv-crown {
  width: 80%;
  margin-top: 20px;
}

/* 上の2行テキスト */
.fv-text-left-top {
  text-align: center;
  margin-top: 20px;
  margin-bottom: 15px;
}

.fv-text-left-top .sub-text {
  font-size: 30px;
  font-weight: bold;
  color: #000000;
}

.fv-text-left-top .sub-text-price {
  color:#FF5C5C;
  font-weight:bold;
  font-size:55px;
}

.fv-text-left-top .side-text {
  font-size: 30px;
  font-weight: bold;
  color: #ff0000;
}

.fv-text-left-top .main-text {
  font-size: 40px;
  font-weight: bold;
  color: #000000;
  display: block; /* ブロック要素にして行全体に */
  margin-top: 10px; /* ここでスペースを調整（必要に応じて値を変更） */
}

/* ボタン */
.btn-irai {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 24px;
  background: #FFBA00;
  color: #fff !important;
  font-weight: bold;
  text-decoration: none;
  border-radius: 45px;
  border:none;
  font-size: 24px;
  width: 315px;
}

.btn-irai:hover {
  background-color: #e69500;
}

/* 下の3行テキスト */
.fv-text-left-bottom {
  margin: 15px 15px 15px 15px;
  text-align: left;
  margin-bottom: 15px;
  color: #7d7d7d;
}

/* 下の3行テキスト */
.fv-text-left-bottom p {
  font-size: 8px;
}

/* 右側エリア（商標登録をしよう）の画像表示 */
.fv-right {
  width: 55%;
  text-align: center;
  /* margin-left: 30px; */
}

.fv-right img {
  max-width: 100%;
  height: auto;
}

@media screen and (max-width: 1100px) { /* ファーストビューエリア：iPad (大型モデル: iPad Air/Pro等, 834px系: 約20%、1024px系: 約15%) – 推定約35% */

  .fv-right {
    margin-right: 30px;
  }
  
  .fv-text-left-top {
    margin-top: 20px;
    margin-bottom: 15px;
  }
  
  .fv-text-left-top .sub-text {
    font-size: 23px;
  }
  
  .fv-text-left-top .side-text {
    font-size: 28px;
  }
  
  .fv-text-left-top .main-text {
    font-size: 29px;
  }
  
}

@media screen and (max-width: 900px) {/* ファーストビュー：モバイル、タブレット（901以上のタブレットを除く） */
  /* fv-containerのレイアウトを縦並びに変更 */
  .fv-container {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
  }
  
  /* 両エリアを画面全幅に */
  .fv-right, .fv-left {
    width: 100%;
    padding: 0;
    margin: 0;
  }
  
  /* fv-rightを上部に表示（順序を変更） */
  .fv-right {
    order: -1;
    text-align: center; /* 画像を中央表示 */
    margin-top: 20px;
  }

  .fv-right img {
    max-width: 95%;
    height: auto;
  }    

  /* fv-leftは下部に表示 */
  .fv-left {
    order: 1;
    padding: 20px;
    text-align: center;
  }
  
  /* 王冠画像 */
  .fv-left img {
    width: 88%;
  }
  
  /* fv-text-left-topは必要に応じて中央揃え（変更なしでもOK） */
  .fv-text-left-top {
    text-align: center;
    margin: 10px 0px 2px 0px;
    font-size: 8px;
  }


  .fv-text-left-top .sub-text {
    font-size: 21px;
  }
  
  .fv-text-left-top .sub-text-price {
    font-size:45px;
  }
    
  .fv-text-left-top .side-text {
    font-size: 22px;
  }
  
  .fv-text-left-top br {
    display: none;
  }
  
  .fv-text-left-top .main-text {
    font-size: 25px;
    line-height: 1; /* または 1.1 や 1.0 などお好みで調整 */
    margin: 0px 0px 10px 0px;
  }
  
  /* fv-text-left-bottomは左寄せに */
  .fv-text-left-bottom {
    width: 100%;
    text-align: center;
    line-height: 1;
    margin: 15px 8px;
    display: flex;  /* フレックスコンテナに設定 */
    flex-wrap: wrap;  /* 要素が行を超えて配置されるように設定 */
  }

  /* 下の3行テキスト */
  .fv-text-left-bottom p {
    margin-right: 1px;  /* 各段落の間に少し余白を追加 */
    font-size: 6px;
    word-wrap: break-word;  /* 長い単語を適切に改行 */
    white-space: normal;  /* テキストが改行されるように設定 */
    max-width: 100%;
  }
  
  /* ボタンのサイズ調整 */
  .btn-irai {
    width: 380px;
    height: 35px;
    line-height: 35px;  /* 追加 */
    box-sizing: border-box;  /* パディングも含める */
    padding: 0;              /* 必要ならばパディングをリセット */
    margin: 40px auto 0px auto; /* 横中央配置 */
    font-size: 18px;
  }

}

@media screen and (max-width: 521px) {

  .btn-irai {
    width: 380px;
    height: 55px;
    line-height: 55px;  /* 追加 */
    box-sizing: border-box;  /* パディングも含める */
    padding: 0;              /* 必要ならばパディングをリセット */
    margin: 40px auto 0px auto; /* 横中央配置 */
    font-size: 26px;
  }
}

@media screen and (max-width: 340px) {/* ファーストビューエリア：モバイル */

  .fv-text-left-top {
    margin-top: 20px;
    margin-bottom: 15px;
  }
  
  .fv-text-left-top .sub-text {
    font-size: 16px;
  }
  
  .fv-text-left-top .side-text {
    font-size: 20px;
  }
  
  .fv-text-left-top .main-text {
    font-size: 24px;
  }
  
}


/* ====== 企業ロゴスライダー ====== */
.logo-slider {
  width: 100%;
  overflow: hidden; /* スクロールバー非表示 */
  background: #f8f8f8;
  padding: 15px 0;
  position: relative;
}

.logo-slider-wrapper {
  display: flex;
  gap: 30px;
  white-space: nowrap;
  will-change: transform;
  animation: scroll-left 20s linear infinite;  /* 20秒 */
}

/* ロゴサイズ 高さ制限*/
/* .logo-slider img { */
  /* width: auto; 横幅は画像の比率を維持 */
  /* height: 60px; ロゴの高さを統一 */
  /* object-fit: contain; */
/* } */

/* ロゴサイズ 横高さ制限*/
.logo-slider img {
  width: 70px !important;  /* 横幅を100pxに固定（拡大・縮小） */
  height: 70px; /* ロゴの高さを統一 */
  object-fit: fill; /* 画像を枠にフィット（縦横比を無視） */
  flex-shrink: 0; /* 縮小を防ぐ */
}

/* スクロールアニメーション */
@keyframes scroll-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}


/* ====== 全力でサポートします ====== */
.gray-background {
  background-color: #f5f5f5; /* 薄いグレー */
  padding: 50px 0;
  text-align: center;
}

.tokutyo {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.tokutyo h2 {
  font-weight: bold;
  font-size: 28px;
  color: #006B7E;
  margin-bottom: 70px;
}

/* 初期状態：改行用のspanは非表示 */
.tokutyo .mobile-break {
  display: none;
}

.feature-boxes {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 45px;
}

.feature-item {
  background: white;
  padding: 10px;
  border-radius: 35px;
  border: 2px solid #006B7E;
  text-align: center;
  width: 23%;
}

.feature-item h3 {
  padding-top: 10px;
  margin-bottom: 5px;
  font-size: 24px;
  color: #006B7E;
}

.feature-item p {
  font-size: 16px;
  text-align: left; /* 左寄せ */
  padding: 0px 10px;
  /*letter-spacing: -0.01em;*/ /* 文字間を微妙に詰める */
}

.feature-item img {
  width: 100%;
  max-width: 170px;
  height: auto;
  background: #fff;
}


@media screen and (max-width: 1100px) {/* 全力でサポートします：タブレット（521～901以上のタブレットを除く） */
  .feature-item h3 {
    font-size: 22px;
  }  
}

@media screen and (max-width: 900px) {/* 全力でサポートします：タブレット（521～901以上のタブレットを除く） */
  .feature-boxes {
    flex-wrap: wrap; /* 複数行に配置 */
    justify-content: center; /* 全体を中央寄せ */
    gap: 20px; /* 必要に応じて間隔調整 */
  }
  .feature-item {
    width: calc(47% - 20px); /* 2アイテムで1行に収まる幅に設定 */
  }
}

@media screen and (max-width: 520px) {/* 全力でサポートします：モバイル */
  .tokutyo {
    padding: 0px;
  }

  .tokutyo h2 {
    font-size: 19px;
    margin-bottom: 70px;
  }

  /* 縦並びに、中央揃え */
  .feature-boxes {
    flex-direction: column;
    align-items: center;
    gap: 20px; /* 各 feature-item の間隔（お好みで調整） */
  }
  /* feature-item のサイズを固定して1列表示 */
  .feature-item {
    width: 295px !important;
    height: 408px;
    margin: 0 auto; /* 横中央に配置 */
  }  
}


@media screen and (max-width: 340px) {/* 登録していないと：モバイル */

  /* 改行用のspan */
  .tokutyo .mobile-break {
    display: block;
  }
}



/* ====== PC）バナー ====== */
.insyoku-section {
  background: url("/wp-content/themes/oops_tcd048/images/insyoku_haikei.png") no-repeat center center / cover;
  padding: 60px 0;
}

.insyoku-container {
  display: flex;
  align-items: center;
  justify-content: center; /* 中央に配置 */
  max-width: 1000px; /* 幅を少し狭める */
  margin: 0 auto;
  gap: 0px; /* 文字と画像の間隔を狭くする */
}

.insyoku-content {
  width: 55%;
  text-align: left; /* 左寄せ */
}

.insyoku-content h3 {
  color: #006B7E;
  font-size: 28px;
}

.insyoku-content p {
  font-weight: bold;
  font-size: 18px;
}

.insyoku-image {
  width: 35%;
  text-align: left; /* 画像の位置調整 */
}

.insyoku-image img {
  width: 90%;
  height: auto;
  margin-left: 30px
}

/* 「秘密厳守」のデザイン修正 */
.highlight-box {
  display: inline-block;
  border: 2px solid #FF5C5C;
  padding: 5px 10px;
  color: #FF5C5C;
  font-weight: bold;
  background-color: white; /* 背景色を白に */
}

.bold-text {
  font-size: 28px !important;
  font-weight: bold;
}

.green-check {
  vertical-align: middle;
  margin-right: 5px;
  width: 16px;
}

/* 初期状態：PC版用を表示、モバイル版用は非表示 */
.pc-underline {
  display: block;
}
.mobile-underline {
  display: none;
}

/* PC版の下線スタイル */
.underline-marker-pc {
  display: inline-block;
  position: relative;
  z-index: 1; /* テキストを前面に表示 */
  font-size: 28px;
  font-weight: bold;
}

.underline-marker-pc::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 10px; /* 下部のみのマーカー */
  width: 100%;
  height: 10px;
  background-color: orange;
  opacity: 0.6; /* 適度な透明度 */
  z-index: -1; /* テキストの背後に表示 */
}

/* 無料相談ボタンの中央寄せ */
.button-container {
  text-align: center; /* ボタンを中央寄せ */
  margin-top: 15px;
}

.irai-button {
  display: inline-block;
  width:375px;
  height:40px;
  line-height: 40px; /* ボタンの高さと同じにする */
  text-align: center; /* 左右中央揃え */
  vertical-align: middle;
  margin: 0;
  background-color: orange;
  color: white !important;
  font-size: 24px;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  margin-top: 10px;
  font-weight: bold;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
  transition: background 0.3s ease;
}

.irai-long-button {
  display: inline-block;
  width:400px;
  height:40px;
  line-height: 40px; /* ボタンの高さと同じにする */
  text-align: center; /* 左右中央揃え */
  vertical-align: middle;
  margin: 0;
  background-color: orange;
  color: white !important;
  font-size: 24px;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  margin-top: 10px;
  font-weight: bold;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
  transition: background 0.3s ease;
}

.irai-button:hover,
.irai-long-button:hover {
  background-color: #e69500;
}


@media screen and (max-width: 900px) {/* バナー：タブレット（521～901以上のタブレットを除く） */
  /* モバイル版下線付きテキストの各行 */

  .insyoku-content h3 {
    font-size: 20px;
  }  

  .underline-marker-pc {
    font-size: 22px;
  }

  .bold-text {
    font-size: 21px !important;
  }  
  
}

@media screen and (max-width: 520px) {/* バナー：モバイル */
  /* .insyoku-container を縦並びに */
  .insyoku-container {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  /* .insyoku-content の子要素を直接 .insyoku-container の子要素として扱う */
  .insyoku-content {
    display: contents;
  }
  /* h3：元の見出し内の<span class="highlight-box">秘密厳守</span>を1行目、続くテキストを2行目に */
  .insyoku-content h3 {
    order: 1;
    width: 100%;
    text-align: center;
    font-size: 28px;
    line-height: 1.3;
  }
  /* span.highlight-box を強制的にブロック表示で1行目に */
  .insyoku-content h3 {
    display: block;
    width: 100%;
  }
  .highlight-box {
    display: block;
    width: 115px;
    margin: 0 auto 10px auto; /* 下に少し余白を追加 */
  }
  /* insyoku-imageを挿入（サイズ固定 269×334） */
  .insyoku-image {
    order: 2;
    width: 269px;
    height: 334px;
    margin: 20px auto;
  }
  .insyoku-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin-left: 0px;
  }
  /* 「あなたのお店の名前、大丈夫？」（p.bold-text） */
  .insyoku-content p.bold-text {
    order: 3;
    width: 100%;
    text-align: center;
    font-size: 27px !important;
    padding: 0px 5px;
    margin: 10px 0;
    line-height: 1.1; /* または 1.1 や 1.0 などお好みで調整 */
  }
  /* 次の3行のテキスト（説明文）をまとめて order:4 */
  .insyoku-content p:not(.bold-text):not(.highlight-text) {
    order: 4;
    width: 100%;
    text-align: center;
    font-size: 18px;
    margin: 5px 0;
    line-height: 1.2; /* または 1.1 や 1.0 などお好みで調整 */
  }

  /* .insyoku-content p:not(.pc-underline) { */
  .insyoku-content p {
    padding-left: 1px;
    padding-right: 1px;
    box-sizing: border-box; /* padding を含めた幅指定 */
    margin: 5px auto; /* 上下余白は適宜調整 */
  }

  /* highlight-text の部分（下線マーカー付き） */
  .insyoku-content p.highlight-text {
    order: 5;
    width: 100%;
    text-align: center;
    font-size: 20px;
    margin: 10px 0;
  }

  /* PC版テキストを非表示に */
  .pc-underline {
    display: none;
  }
  /* モバイル版を表示 */
  .mobile-underline {
    display: block;
    text-align: center;
  }

  /* モバイル版下線付きテキストの各行 */
  .underline-marker-mobile .line1,
  .underline-marker-mobile .line2 {
    display: inline-block;
    position: relative;
    z-index: 1; /* テキストを前面に表示 */
    font-size: 26px;
    font-weight: bold;
  }

  .underline-marker-mobile .line1::after, 
  .underline-marker-mobile .line2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 10px; /* 下部のみのマーカー */
    width: 100%;
    height: 10px;
    background-color: orange;
    opacity: 0.6; /* 適度な透明度 */
    z-index: -1; /* テキストの背後に表示 */
  }

  /* ボタンコンテナ */
  .insyoku-content .button-container {
    order: 6;
    width: 100%;
    text-align: center;
    margin-top: 20px;
    display: flex;
    justify-content: center;
  }

  .irai-button {
    display: flex;
    align-items: center;    /* 縦方向の中央揃え */
    justify-content: center;/* 横方向の中央揃え */
    width:340px;
    height:50px;
  }  

}

@media screen and (max-width: 400px) {/* バナー：モバイル */
  /* 「あなたのお店の名前、大丈夫？」（p.bold-text） */
  .insyoku-content p.bold-text {
    font-size: 26px !important;
  }

  /* 次の3行のテキスト（説明文）をまとめて order:4 */
  .insyoku-content p:not(.bold-text):not(.highlight-text) {
    font-size: 19px;
  }
  
}

@media screen and (max-width: 340px) {/* バナー：モバイル */
  /* モバイル版下線付きテキストの各行 */
  .underline-marker-mobile .line1,
  .underline-marker-mobile .line2 {
    font-size: 23px;
  }

  .insyoku-content h3 {
    font-size: 22px;
  }

  .irai-long-button {
    font-size: 17px;
  }

  .irai-button {
    font-size: 20px;
  }  
}



/* 商標登録の流れセクションの背景とレイアウト */
.step-flow-section {
  background-color: #fff; /* 背景色はお好みで */
  padding: 60px 20px;
  text-align: center;
}

.step-flow-section h2 {
  font-size: 28px;
  color: #006B7E;
  margin-bottom: 70px;
  font-weight: bold;
}

/* 1行に複数カードを並べる行 */
.step-flow-row {
  display: flex;
  justify-content: center; /* 横並び中央寄せ */
  align-items: center;
  gap: 20px;               /* カード間の余白 */
  margin-bottom: 70px;     /* 下段との間隔 */
}

/* 個々のカード */
.step-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 286px;
  height: 394px;
  background-color: #fff;
  border: 2px solid #006B7E;
  border-radius: 25px;
  padding: 40px 20px 20px; /* 上部に余白を多めに確保(バッジ分) */
  box-sizing: border-box; /* paddingも含めて286×394に */
  text-align: center;
}

/* 固定高さのイラストコンテナ（.step-upper）：高さを統一 */
.step-upper {
  height: 220px !important;  /* 固定高さ */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* テキスト部分を下部に揃える */
.step-card-text {
  margin-top: 10px;
}

/* テキスト部分を下部に揃える */
.step-card-text h3 {
  font-size: 22px;
}

/* テキスト部分を下部に揃える */
.step-card-text p {
  font-size: 16px;
}

/* テキスト部分を下部に揃える */
.step-card-text span {
  color: #FF5C5C;
  font-weight: bold;
}


/* STEPバッジをカード左上に絶対配置 */
.step-badge {
  position: absolute;
  top: -40px; /* 上下位置 */
  left: 15px; /* 左右位置*/
  width: 88px;
  height: 88px;
}

/* イラストは個別サイズを指定 */
/* STEP1: 190×187 */
.step-illust-1 {
  width: 190px;
  height: 187px;
}
/* STEP2: 190×170 */
.step-illust-2 {
  width: 190px;
  height: 170px;
}
/* STEP3: 157×159 */
.step-illust-3 {
  width: 157px;
  height: 159px;
}
/* STEP4: 208×208 */
.step-illust-4 {
  width: 208px;
  height: 208px;
}
/* STEP5: 190×212 */
.step-illust-5 {
  width: 190px;
  height: 212px;
}

/* 共通イラストスタイル（余白など） */
.step-illust {
  display: block;
  margin: 0 auto;
}


/* カード内の見出し */
.step-card h3 {
  font-size: 22px;
  color: #006B7E;
  margin-bottom: 10px;
  font-weight: bold;
}

/* カード内のテキスト */
.step-card p {
  font-size: 16px;
  color: #666;
  line-height: 1.6;
  margin: 0 0 20px;
}

/* カード内のボタン */
.step-muryo-btn {
  background-color: #FFBA00;
}

.step-muryo-btn:hover {
  background-color: #e6a800;
}

/* カード内のボタン共通設定 */
.step-btn {
  display: inline-block;
  width: 215px;
  height: 37px;
  line-height: 37px; /* テキストを中央揃え */
  color: #fff !important;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: background 0.3s ease;
  text-align: center;
}

/* 矢印部分 */
.arrow {
  display: flex;
  align-items: center;
  justify-content: center;
}

.arrow-icon {
  font-size: 24px;
  color: #006B7E;
}


@media screen and (max-width: 520px) {/* 商標登録の流れセクションの背景とレイアウト：モバイル */
  .step-flow-section h2 {
    font-size: 24px;
  }
  
  .step-flow-row {
    flex-direction: column; /* カードを縦並び */
    margin-bottom: 50px;
  }
  .step-card {
    /* width: 80%; */
    width: 286px;  /* 同じ幅 */
    height: auto;  /* 縦に伸びるようにするなら autoも可 */
    margin-bottom: 20px;
  }
  .arrow {
    margin-bottom: 20px;
  }
  .arrow-icon {
    /* 元の文字色を透明にして隠す */
    color: transparent;
    position: relative;
  }
  .arrow-icon::after {
    content: "▼";
    position: absolute;
    top: 0;
    left: 0;
    color: #006B7E;  /* 元の矢印と同じ色に */
    font-size: 24px;
  }

  /* STEP3とSTEP4の間に▼を挿入（1段目のstep-flow-rowの後ろに追加） */
  .step-flow-section .step-flow-row:first-of-type::after {
    content: "▼";
    display: block;
    text-align: center;
    font-size: 24px;
    color: #006B7E;
    margin-top: 20px;
  }  

}

@media screen and (min-width: 521px) and (max-width: 900px) {/* 商標登録の流れセクションの背景とレイアウト：タブレット（521～901以上のタブレットを除く） */

  /* 見出しを全幅に広げる */
  .step-flow-section h2{
    width: 100%;
    text-align: center; /* 中央配置 */
    margin-bottom: 20px; /* 適宜調整 */
  }

  /* 矢印は不要なので非表示に */
  .arrow {
    display: none !important;
  }
  /* .step-flow-row 内の内容を平坦化 */
  .step-flow-row {
    display: contents;
  }
  /* 親コンテナをflexコンテナに変更（全体をフラットにする） */
  .step-flow-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 60px 0px;
  }
  /* STEPカード全体の幅は固定 */
  .step-flow-section .step-card {
    width: 286px;
    /* 必要に応じて高さも調整 */
  }
  /* 1,2,4,5番目のカードを2列に表示 */
  .step-flow-section .step-card:nth-of-type(-n+4) {
    flex: 0 0 calc(50% - 20px); /* 50%並び＋gap分調整 */
    max-width: 286px;
    margin-left: auto;
    margin-right: auto;
  }
  /* STEP5（登録）のカードを1行全体に配置して中央寄せ ←STEP3？　*/
  .step-flow-section .step-card:nth-of-type(5) {
    flex: 0 0 100%;
    max-width: 286px;
    margin-left: auto;
    margin-right: auto;
  }
}


/* 料金セクション */
.pricing-section {
  background-color: #f9f9f9;
  padding: 80px 20px 40px 20px;
  text-align: center;
}

.pricing-section h2 {
  font-size: 28px;
  font-weight: bold;
  color: #006B7E;
  margin-bottom: 20px;
}

.pricing-intro {
  font-size: 20px !important;
  font-weight: bold !important;
  margin-bottom: 10px !important;
  line-height: 1.8;
}

/* 注釈を文字の真上に配置するためのラッパ */
.letter-with-note {
  position: relative;       /* 親をrelativeに */
  display: inline-block;    /* 注釈と文字を重ねるためにinline-block */
  font-weight: bold !important;
}

/* 注釈文字を絶対配置で真上に */
.letter-with-note .note {
  position: absolute;
  bottom: 100%;             /* 文字の上に配置 */
  left: 50%;                /* 中央揃え */
  transform: translateX(-50%);
  font-size: 8px;          /* 注釈文字の大きさ */
  line-height: 1;           /* 行の高さを詰める */
  color: #333;              /* 注釈の色 */
  white-space: nowrap;      /* 改行防止 */
  margin-bottom: -10px;       /* 文字との間隔を微調整 */
}

/* 注釈文字を絶対配置で真上に */
.letter-with-note .note2 {
  position: absolute;
  bottom: 100%;             /* 文字の上に配置 */
  left: 55%;                /* 中央揃え */
  transform: translateX(-45%);
  font-size: 8px;          /* 注釈文字の大きさ */
  line-height: 1;           /* 行の高さを詰める */
  color: #333;              /* 注釈の色 */
  white-space: nowrap;      /* 改行防止 */
  margin-bottom: -5px;       /* 文字との間隔を微調整 */
}

.pricing-intro-asta {
  font-size: 12px !important;
  margin-bottom: 45px !important;
}

.pricing-intro2 {
  font-size: 28px !important;
  font-weight: bold;
  color: #FF5C5C;
}

/* 料金ボックス：850×210pxの緑枠（緑色は #006B7E） */
.pricing-box {
  width: 850px;
  height: 210px;
  box-sizing: border-box;
  border: 2px solid #006B7E;
  border-radius: 30px;
  margin: 20px auto 150px auto;
  position: relative;
  background-color: #fff;      /* 中身の背景を白に */
  /* overflow: hidden; */
}

/* 行全体 */
.pricing-row {
  display: flex;
  align-items: center;
  justify-content: space-around;
  width: 100%;
  height: 100%;
  padding: 0 10px;
  box-sizing: border-box;
}

/* 左側：出願時／登録時ラベルと縦棒 */
.pricing-side {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.pricing-side-label {
  font-size: 22px;
  font-weight: bold;
  color: #006B7E;
}

.pricing-divider {
  width: 2px;
  height: 135px; /* 縦棒を倍の長さに */
  background-color: #006B7E;
  margin-left: 10px;
}

/* 各料金項目のコンテナ */
.pricing-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
  min-width: 100px;
}

/* 各料金項目のコンテナ */
.pricing-total {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  min-width: 100px;
}

/* 固定高さのラベルコンテナで楕円ラベルの位置を揃える */
.label-container {
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 30px 0px 0px 0px;
}

/* 楕円ラベルの共通設定：153×40px 固定 */
.pricing-badge {
  width: 153px;
  height: 40px;
  line-height: 40px;  /* テキストを縦中央に */
  border: 2px solid #006B7E;
  border-radius: 20px;
  font-size: 20px;
  font-weight: bold;
  color: #006B7E;
  text-align: center;
  display: inline-block;
  vertical-align: middle;
  margin: 0;
  background-color: #fff;
}

/* 楕円ラベルの共通設定：153×40px 固定 */
.total-pricing-badge {
  width: 153px;
  height: 40px;
  line-height: 40px;  /* テキストを縦中央に */
  border: 2px solid #006B7E;
  border-radius: 20px;
  border-color: #006B7E;
  font-size: 20px;
  font-weight: bold;
  color: #fff;
  text-align: center;
  display: inline-block;
  vertical-align: middle;
  margin: 0;
  background-color: #006B7E;
}

/* 料金テキスト */
/* 更新手数料など、feeクラスは数字と単位を別々に設定（28px） */
.pricing-price.fee .price-value,
.pricing-price.fee .price-unit {
  font-size: 28px;
  color: #FF5C5C;
}

/* 合計の料金テキスト：数字48px、単位30px */
.pricing-price.total .price-value {
  font-size: 48px;
  color: #FF5C5C;
  font-weight: bold;
}
.pricing-price.total .price-unit {
  font-size: 30px;
  margin-left: 2px;
  vertical-align: baseline;
  color: #FF5C5C;
  font-weight: bold;
}

/* 成功報酬など（標準サイズ、ここでは18px） */
.pricing-price:not(.fee):not(.total) .price-value {
  font-size: 18px;
}
.pricing-price:not(.fee):not(.total) .price-unit {
  font-size: 18px;
}

/* 無料表示も fee 同様に28px */
.pricing-free {
  color: #FF5C5C;
  font-size: 28px;
  font-weight: bold;
}

/* 矢印 */
.pricing-arrow {
  font-size: 35px;
  color: #006B7E;
  font-weight: bold;
}

/* 合計内の+印紙代：下段の数字の下に配置、右寄せ */
.pricing-item .pricing-note {
  font-size: 13px;
  position: relative;
  font-weight: bold;
  top: -18px;
}

/* pricing-item側の各要素の上下間隔を調整 */
.pricing-row > .pricing-item:nth-child(3) .label-container {
  margin-top: 37px !important;
}

/* pricing-total側の各要素の上下間隔を調整 */
.pricing-total .label-container {
  /* margin-top: 30px; */
  margin-bottom: 8px;  /* 合計の楕円ラベルと金額部分の間隔を広く */
}


.pricing-total .pricing-price {
  margin-bottom: 5px;   /* 金額と「+印紙代」の間隔を狭く */
}

/* 固定高さのラベルコンテナ：各楕円ラベルの位置を揃える */
.label-container {
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}

.pricing-syutugantoroku-asta {
  text-align: left;
}

@media screen and (max-width: 520px) {/* 料金セクション */

  .pricing-section {
    background-color: #f9f9f9;
    padding: 1px 1px 1px 1px;
    text-align: center;
  }

  .pricing-section h2 {
    margin: 60px auto 20px auto;
  }

  .pricing-intro {
    font-size: 16px !important;
  }
    
  /* １．pricing-intro-astaの修正：強制マージンを解除し、左寄せ＋適度な左右マージンを設定 */
  .pricing-intro-asta {
    margin: 0 15px 45px 15px !important;
    white-space: normal;
  }

  .pricing-intro2 {
    font-size: 19px !important;
  }
  
  /* 料金ボックス：350×210pxの緑枠（緑色は #006B7E） */
  /* .pricing-box {
    width: 350px;
    height: 600px;
    margin: 20px auto 255px auto;
  } */

  .pricing-box.application{
    width: auto;
    height: 798px;
    margin: 20px 10px;
    display: flex;
    flex-direction: column;
  }

  .pricing-box > .pricing-row {
    height: 660px;
  }

  /* ２．左側のラベルと仕切りを縦積みに */
  .pricing-side {
    flex-direction: column;
    align-items: center; /* コンテナ内の全子要素を中央寄せ */
    margin: 15px;
  }
  .pricing-side-label {
    width: auto;         /* 必要に応じレーベル幅自動調整 */
    text-align: center;  /* テキスト中央揃え */
    font-size: 20px;
  }
  .pricing-divider {
    /* 縦棒から横棒へ：幅を広く、高さを薄く */
    width: calc(100% - 30px);
    height: 2px;
    margin: 0 auto 10px auto; /* 上：0, 左右は自動、下に10pxの余白 */
    background-color: #006B7E;
  }

  /* ３．各料金項目（.pricing-item）の子要素を隙間0～5pxで縦に並べる */
  .pricing-item {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    margin-bottom: 10px;
  }

  /* ４．同様に合計部分（.pricing-total）のレイアウトも縦積みに */
  .pricing-total {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    margin-bottom: 10px;
  }

  /* ５．矢印を▶から▼に変更（HTMLは変更せず、元は非表示＆疑似要素に置換） */
  .pricing-arrow {
      /* visibility: hidden; 削除、代わりにテキストサイズを0に */
      font-size: 0;
      line-height: 0;
      margin: 0; 
      padding: 0;
      display: inline-block;
      position: relative;
  }
  .pricing-arrow::after {
    content: "▼";
    font-size: 35px;
    line-height: 1;
    color: #006B7E;
    font-weight: bold;
    display: inline-block;
    /* 必要なら垂直位置も調整 */
    vertical-align: middle;
  }

  /* ６．全体の行（.pricing-row）を横並びから縦並びに */
  .pricing-row {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 10px;
    padding: 0 2px;
  }

  /* ７．合計内のnote（.pricing-note）は1行でやや右寄せ */
  .pricing-item .pricing-note {
    text-align: right;
    width: 100%;
    padding-right: 160px;
    margin-top: 0px;
    position: static;
  }

  .pricing-total .pricing-price {
    line-height: 1;
  }
    
}

@media screen and (max-width: 340px) {/* 料金セクション：モバイル */
  .pricing-box.application{
    width: auto;
    height: 820px;
    margin: 20px 10px;
    display: flex;
    flex-direction: column;
  }

  .pricing-box > .pricing-row {
    height: 690px;
  }

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


@media screen and (min-width: 521px) and (max-width: 900px) {/* 料金セクション：タブレット（521～901以上のタブレットを除く） */
  .pricing-section {
    background-color: #f9f9f9;
    padding: 1px 1px 1px 1px;
    text-align: center;
  }

  .pricing-section h2 {
    margin: 60px auto 20px auto;
  }

  /* １．pricing-intro-astaの修正：強制マージンを解除し、左寄せ＋適度な左右マージンを設定 */
  .pricing-intro-asta {
    margin: 0 15px 45px 15px !important;
    text-align: left !important;
    white-space: normal;
  }

  /* 料金ボックス：350×210pxの緑枠（緑色は #006B7E） */
  .pricing-box {
    position: relative; /* 子要素の絶対配置の基準にする */
    width: 95%;
    height: 210px;          /* 高さは内容に合わせて自動調整 */
    margin: 20px auto 130px auto;
  }

  .pricing-price.total {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    height: 48px;      /* 固定の高さ */
    line-height: 48px; /* 高さと同じにして垂直中央揃え */
  }

  .pricing-total {
    height: 153px !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
}

/* お客様の声セクション */
.case-section {
  background-color: #f5f5f5; /* グレー背景 */
  padding: 80px 60px 60px 60px;
  text-align: center;
}

.case-section h2 {
  font-size: 28px;
  font-weight: bold;
  color: #006B7E;
  margin-bottom: 40px;
}

.case-container {
display: grid;
grid-template-columns: repeat(3, 1fr); /* 3列固定 */
gap: 50px;
max-width: 1200px;
margin: 0 125px;
}

.case-item {
padding: 35px;
text-align: center;
}

.case-item img {
width: 145px;
height: 145px;
margin-bottom: 15px;
}

.case-item h3 {
font-size: 18px;
color: #006B7E;
margin-bottom: 10px;
font-weight: bold;
}

.case-item p {
font-size: 14px;
color: #666;
line-height: 1.6;
margin: 0;
}


@media screen and (max-width: 520px) {/* お客様の声セクション */
  .case-section {
    padding: 80px 6px 60px 6px;
  }

  .case-section h2 {
    font-size: 24px;
    margin-bottom: 30px;
  }

  /* コンテナのグリッド表示を1列に変更 */
  .case-container {
    grid-template-columns: 1fr;
    margin: 0 15px;  /* 画面幅に合わせた左右マージン */
    gap: 30px;       /* 各.case-item同士の隙間 */
  }

  /* .case-item自体はグリッドの幅に合わせて横幅フィットするので、必要に応じpadding等微調整 */
  .case-item {
    padding: 20px;
  }

  /* ▼ 隠す部分をまとめるラッパー */
  /* .case-extra は初期状態で高さ0（＝隠れている状態） */
  .case-extra {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
  }

  /* 展開状態：十分大きな max-height を設定（ここでは2000px としていますが十分大きな値に） */
  .case-extra.expanded {
    max-height: 2000px;
  }

  /* もっと見るボタンのスタイル */
  .read-more {
    display: inline-block;
    margin: 20px auto 0;  /* 上部に余白、左右中央揃え */
    padding: 10px 20px;
    background-color: #006B7E;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.3s ease;
  }

  .read-more:hover {
    background-color: #099d93;
  }

}

@media screen and (min-width: 521px) and (max-width: 900px) {/* お客様の声セクション：タブレット（521～901以上のタブレットを除く） */
  .case-container {
    grid-template-columns: repeat(2, 1fr);/* 3列から2列に変更 */
    margin: 0 auto;/* 横余白は自動中央揃えに（必要なら調整してください） */
    gap: 30px;/* gapは必要に応じて調整 */
    max-width: 800px;/* 最大幅も必要なら調整してください */
  }
}

@media screen and (min-width: 901px) and (max-width: 1100px) { /* ファーストビューエリア：iPad (大型モデル: iPad Air/Pro等, 834px系: 約20%、1024px系: 約15%) – 推定約35% */

  /* ① マージンとギャップの調整 */
  .case-container {
    margin: 0 30px; /* サイドマージンを縮小 */
    gap: 30px;      /* ギャップも縮小 */
    /* 3カラムの場合（各アイテムの幅を広げる） */
    grid-template-columns: repeat(3, 1fr);
    max-width: 100%; /* 横幅いっぱいに活用 */
  }
  
  /* ② 必要に応じて、各アイテムのパディングも調整 */
  .case-item {
    padding: 20px;
  }  
}


/* よくある質問セクション */
.faq-section {
  background-color: #F4FFFF; /* 薄い水色などお好みの色に */
  padding: 80px 20px 100px 20px;
  text-align: center;
}

.faq-section h2 {
  font-size: 28px;
  color: #006B7E;
  margin-bottom: 40px;
  font-weight: bold;
}

/* 全体コンテナ */
.faq-container {
  max-width: 1000px;
  margin: 0 auto;
  text-align: left; /* Q&A本文は左寄せ */
  display: flex;
  flex-direction: column;
  gap: 20px; /* 質問同士の間隔 */
}

/* Q&A個別 */
.faq-item {
  padding: 10px 0;
  border-bottom: 1px solid #ddd; /* 仕切り線 */
}

/* QとAのラベル */
.faq-q, .faq-a {
  display: flex;
  align-items: center;  /* アイコンと文字を上下方向中央揃え */
  gap: 10px;
  margin-bottom: 15px;
}

/* Qアイコン */
.q-icon {
  width: 62px;
  height: 62px;
}

/* Aアイコン */
.a-icon {
  width: 26px;
  height: 32px;
  margin-left: 17px;
  margin-right: 19px;
}

/* 質問テキスト */
.faq-q span {
  font-size: 18px;
  font-weight: bold;
  color: #006B7E;
  line-height: 1.6;
}

/* 回答テキスト */
.faq-a span {
  font-size: 16px;
  font-weight: normal;
  color: #555;
  line-height: 1.6;
}

/* 左揃え + 中央揃えのために、全体は左寄せ、アイコンとテキストは上下中央 */
.faq-item span {
  display: inline-block;
}

@media (max-width: 520px) {/* よくある質問セクション */
  .faq-section h2 {
    font-size: 24px;
  }
  .faq-container {
    gap: 15px;
  }
  .faq-q span, .faq-a span {
    font-size: 15px;
  }
  .q-icon {
    width: 40px;
    height: 40px;
  }
  .a-icon {
    width: 20px;
    height: 25px;
  }

  /* FAQ隠し部分専用ラッパー */
  /* 初期は非表示（高さ0） */
  .faq-extra {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
  }

  /* 展開時は十分大きな max-height を適用 */
  .faq-extra.expanded {
    max-height: 2000px;
  }

  /* 「もっと見る」ボタンのスタイル */
  .faq-read-more {
    display: inline-block;
    margin: 20px auto 0;
    padding: 10px 20px;
    background-color: #006B7E;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.3s ease;
    text-align: center;
  }

  .faq-read-more:hover {
    background-color: #099d93;
  }

}



.required {
  background-color: #FF5C5C;
  color: white;
  font-size: 14px;
  padding: 2px 5px;
  border-radius: 3px;
  position: relative;
  top: -2px; /* 上に2px移動 */
}


/* ダウンロードセクションのスタイル */
.download-section {
  background: url("/wp-content/themes/oops_tcd048/images/tizaijimusyo-kusakari-upd_haikei.png") no-repeat center center / cover;
  background-color: #f0f8f8;
  padding: 80px 0;
  position: relative;
}
.download-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
/* 上部ヘッダーセクション */
.download-header {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 80px;
  gap: 20px;
}
.download-supervision-box {
  flex: 1;
  max-width: 650px;
  text-align: center;
}
/* 弁理士監修と商標登録No.1を同じ行に表示 */
.supervision-title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
  min-height: 60px; /* 最小高さを設定して安定化 */
}
.supervision-badge {
  width: 180px;
  height: auto;
  flex-shrink: 0;
}
.download-main-title {
  font-size: 32px !important;
  font-weight: bold;
  color: #006B7E;
  margin: 0;
  line-height: 1.3 !important;;
  align-items: center; /* タイトル内でも中央揃え */
  margin-bottom: 0 !important; /* h2が変に持ってるので、上書き */
}
.download-app-name {
  font-size: 36px !important;
  font-weight: bold !important;
  color: #ff6b6b;
  margin-bottom: 15px !important;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}
.download-feature-text {
  font-size: 28px !important;
  color: #006B7E;
  font-weight: bold;
  margin-bottom: 5px !important;
  line-height: 1.2 !important
}

/* 期限管理の文字に赤丸を追加 */
.download-feature-text .char-with-dot {
  font-size: 28px !important;
  font-weight: bold;
  position: relative;
  display: inline-block;
}

.download-feature-text .char-with-dot::before {
  content: "●";
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  color: #ff6b6b;
  font-size: 16px;
  line-height: 1;
}

.download-cta-text {
  font-size: 28px !important;
  color: #006B7E;
  font-weight: bold;
  margin-bottom: 20px !important;
  line-height: 1.2 !important
}
.download-disclaimer {
  font-size: 8px !important;
  color: #666;
  line-height: 1.4 !important;
}
.download-person-section {
  position: relative;
  flex-shrink: 0;
  margin-left: 10px;
}
/* 人物画像を大きく */
.download-person-image {
  width: 300px;
  height: 350px;
  object-fit: cover;
  border-radius: 10px;
}
/* プラットフォームセクション */
.download-platform-section {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 80px;
  flex-wrap: wrap;
}
.download-platform-item {
  text-align: center;
  min-width: 280px;
}
.platform-title {
  font-size: 24px !important;
  font-weight: bold;
  color: #333;
  margin-bottom: 30px !important;
}

/* スマホプラットフォーム（iPhone/Android）のレイアウト修正 */
.download-platform-item:not(:last-child) .platform-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 30px;
}

.download-platform-item:not(:last-child) .platform-mockup {
  width: 120px;
  height: auto;
  flex-shrink: 0;
}

.download-platform-item:not(:last-child) .platform-right-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

/* PCプラットフォームは縦配置のまま */
.download-platform-item:last-child .platform-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.platform-pc-icon {
  width: 120px;
  height: 90px;
  object-fit: contain;
  color: #0abab5;
}

.platform-qr {
  width: 80px;
  height: 80px;
  border: 2px solid #ddd;
  border-radius: 8px;
}
.platform-button {
  display: inline-block;
  text-decoration: none;
  transition: transform 0.3s ease;
}
.platform-button:hover {
  transform: translateY(-3px);
}
.store-badge {
  width: 150px;
  height: auto;
}
.pc-button {
  background: #0abab5;
  color: white !important;
  padding: 15px 30px;
  border-radius: 25px;
  font-size: 18px;
  font-weight: bold;
  box-shadow: 0 4px 15px rgba(10, 186, 181, 0.3);
}
.pc-button:hover {
  background: #099b96;
  color: white;
}
/* レスポンシブ対応 */
@media (max-width: 1024px) {
  .download-header {
      gap: 15px;
  }
  
  .download-person-image {
      width: 250px;
      height: 300px;
  }
  
  .download-platform-section {
      gap: 60px;
  }
  
  .download-platform-item:not(:last-child) .platform-content {
      gap: 25px;
  }
}

@media (max-width: 900px) {
  .download-main-title {
    font-size: 27px !important;
  }
  .download-app-name {
    font-size: 30px !important;
  }
}

@media (max-width: 768px) {
  .download-section {
      padding: 60px 0;
  }
  
  .download-header {
      flex-direction: column;
      text-align: center;
      margin-bottom: 60px;
      gap: 40px;
  }
  
  .supervision-title-row {
      flex-direction: column;
      gap: 15px;
      text-align: center;
  }
  
  .download-main-title {
      font-size: 26px !important;
  }
  
  .download-app-name {
      font-size: 28px !important;
  }
  
  .download-feature-text {
      font-size: 20px !important;
  }
  
  .download-cta-text {
      font-size: 22px;
  }
  
  .download-person-image {
      width: 250px;
      /* height: 250px; */
  }
  
  .download-platform-section {
      gap: 40px;
  }
  
  .platform-title {
      font-size: 20px;
  }
  
  /* タブレットサイズでもスマホプラットフォームは横配置維持 */
  .download-platform-item:not(:last-child) .platform-content {
      gap: 20px;
  }
  
  .download-platform-item:not(:last-child) .platform-mockup {
      width: 100px;
  }
}
@media (max-width: 480px) {
  .download-header {
      gap: 30px;
  }
  
  .supervision-title-row {
      gap: 10px;
  }
  
  .supervision-badge {
      width: 140px;
  }
  
  .download-main-title {
      font-size: 25px !important;
  }
  
  .download-app-name {
      font-size: 20px !important;
  }
  
  .download-feature-text {
      font-size: 18px !important;
  }
  
  .download-cta-text {
      font-size: 18px;
  }
  
  .download-person-image {
      width: 250px;
      /* height: 200px; */
  }
  
  .download-platform-section {
      gap: 30px;
  }
  
  .download-platform-item {
      min-width: 200px;
  }
  
  /* スマホサイズでは縦配置に戻す */
  .download-platform-item:not(:last-child) .platform-content {
      flex-direction: column;
      gap: 15px;
  }
  
  .download-platform-item:not(:last-child) .platform-mockup {
      width: 100px;
  }
  
  .platform-qr {
      width: 70px;
      height: 70px;
  }
  
  .store-badge {
      width: 130px;
  }
}



.kosin-irai-section {
  background: #F7F7F7;
  padding: 6rem 2rem;
  color: #111827;
}

.kosin-irai-form {
  margin: 0 auto;
  max-width: 600px;
  background: white;
  padding: 3rem 2rem;
  border-radius: 1rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.kosin-irai-form h1 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2.2rem;
  font-weight: 700;
  color: #006B7E;
}

.kosin-irai-form .description {
  text-align: center;
  font-size: 20px;
  margin-bottom: 2.5rem;
  font-weight: bold;
  line-height: 1.6;
}

.kosin-irai-form .torokubango-nensu {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.kosin-irai-form .form-row {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.kosin-irai-form .form-row label {
  width: 100%;
  max-width: 400px;
  font-weight: 600;
  margin-bottom: 0.5rem;
  text-align: left;
  font-size: 20px;
  font-weight: bold;
}

.kosin-irai-form .form-row input[type="text"] {
  width: 100%;
  max-width: 400px;
  padding: 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid #d1d5db;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.kosin-irai-form .form-row input[type="text"]:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.kosin-irai-form .years-selection {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 0.5rem;
}

.kosin-irai-form .years-selection input[type="radio"] {
  display: none;
}

.kosin-irai-form .years-selection label {
  padding: 1rem 2rem;
  /* border: 2px solid #3b82f6; */
  border: 2px solid #006B7E;
  border-radius: 50px;
  cursor: pointer;
  /* color: #3b82f6; */
  color: #006B7E;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.2s;
  min-width: 80px;
  text-align: center;
}

.kosin-irai-form .years-selection label:hover {
  background-color: rgba(59, 130, 246, 0.1);
}

.kosin-irai-form .years-selection input[type="radio"]:checked + label {
  /* background-color: #3b82f6; */
  background-color: #006B7E;
  color: white;
}

.kosin-irai-form .add-button {
  /* background-color: #3b82f6; */
  background-color: #006B7E;
  color: white;
  border: none;
  border-radius: 0.5rem;
  padding: 0.75rem 2.5rem;
  font-weight: 600;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.2s;
  margin-top: 1rem;
}

.kosin-irai-form .add-button:hover {
  /* background-color: #2563eb; */
  background-color: #007E90;
}


.kosin-irai-form .trademark-section {
  margin: 2rem 0;
  padding: 1rem;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  text-align: center;
}

.kosin-irai-form .trademark-confirm-text {
  margin: 1rem 0;
  font-size: 1rem;
  color: #374151;
}

.kosin-irai-form .confirm-button {
  background-color: #10b981;
  color: white;
  font-weight: 600;
  border: none;
  border-radius: 0.5rem;
  padding: 0.75rem 2.5rem;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.2s;
  display: block;
  margin: 0 auto;
}

.kosin-irai-form .confirm-button:hover {
  background-color: #059669;
}



.kosin-irai-form .trademark-list {
  margin: 2rem 0;
  padding: 1rem 0;
}

.kosin-irai-form .trademark-list-header {
  font-weight: 600;
  margin-bottom: 1rem;
  color: #374151;
}

.kosin-irai-form .trademark-item {
  background: #f9fafb;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  margin-bottom: 0.5rem;
  border: 1px solid #e5e7eb;
  display: flex;
  justify-content: center;  /* 元は space-between でしたが、中央寄せにするため center に変更 */
  align-items: center;
  gap: 1rem;                /* 内部要素間に余白を追加 */
  text-align: center;
}

.kosin-irai-form .trademark-item span {
  font-size: 1.5rem;  /* 登録番号のテキストサイズを大きく */
}

.kosin-irai-form .remove-button {
  /* background-color: #dc3545; */
  background-color: #e57373;
  /* background-color: #6c757d; */
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  transition: all 0.2s;
  min-width: 50px;
}

.kosin-irai-form .remove-button:hover {
  /* background-color: #c82333; */
  /* background-color: #d32f2f; */
  background-color: #5a6268;
  transform: translateY(-1px);

}


.input-section {
  display: none;
}

.kosin-irai-form .section-divider {
  margin: 2.5rem 0;
  border-top: 1px solid #e5e7eb;
}

.kosin-irai-form .pre-input-field {
  font-size: 20px;
  margin-bottom: 1.5rem;
  text-align: center;
  font-weight: bold;
  white-space: nowrap;
}

.kosin-irai-form .input-field {
  margin-bottom: 1.5rem;
}

.kosin-irai-form .input-field label {
  display: block;
  margin-bottom: 5px;
  color: #333;
  font-size: 20px;
  font-weight: bold;
}

.kosin-irai-form .input-field input,
.kosin-irai-form .input-field textarea {
  width: 100%;
  padding: 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid #d1d5db;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.kosin-irai-form .input-field input:focus,
.kosin-irai-form .input-field textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.kosin-irai-form .input-field textarea {
  min-height: 100px;
  resize: vertical;
}

.kosin-irai-form .sosin-button {
  margin-top: 2rem;
  width: 100%;
  padding: 1rem;
  background-color: #10b981;
  color: white;
  font-weight: 600;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.2s;
}

.kosin-irai-form .sosin-button:hover {
  background-color: #059669;
}

.kosin-irai-form .note {
  font-size: 0.875rem;
  color: #6b7280;
  margin-top: 1rem;
  text-align: center;
}

@media (max-width: 640px) {
  .kosin-irai-section {
    padding: 6rem 0.1rem;
  }
  
  .kosin-irai-form {
      padding: 2rem 1.5rem;
  }
  
  .kosin-irai-form .years-selection {
      flex-direction: column;
      align-items: center;
  }
  
  .kosin-irai-form .years-selection label {
      width: 200px;
  }

  .kosin-irai-form .trademark-section {
    padding: 5px;
  }

  .kosin-irai-form .trademark-item {
    padding: 0.5rem 0.1rem;
    margin-bottom: 0.5rem;
  }
  
  .kosin-irai-form .trademark-item span {
    font-size: 1.2rem;  /* 登録番号のテキストサイズを大きく */
  }

  .kosin-irai-form .pre-input-field {
    white-space: normal
  }
  
}


/* フッター箇所 */
.p-entry__body {
  margin-bottom: 0px;
}


/* 右下固定ポップアップ */
.popup-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  display: none;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  margin-right: 20px; /* モバイルでもTOPボタンとの間隔を確保 */
}

.popup-widget.show {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* ポップアップコンテナ */
.popup-container {
  width: 320px;
  position: relative;
  overflow: visible;
}

/* 閉じるボタン */
.popup-close-btn {
  position: absolute;
  top: 0px;
  right: 10px;
  font-size: 20px;
  color: #ccc;
  cursor: pointer;
  z-index: 10;
  transition: color 0.2s ease;
}

.popup-close-btn:hover {
  color: #999;
}

/* キャラクター部分 */
.character-section {
  position: relative;
  height: 120px;
  overflow: hidden;
  /* border-radius: 20px 20px 0 0;
  background: transparent; */
}

.character {
  position: absolute;
  bottom: -150px;
  left: 50%;
  transform: translateX(-50%);
  /* width: 80px;
  height: 100px; */
  width: 128px;
  height: 160px;
  transition: bottom 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55); /* キャラクター動き */
}

.character.show {
  bottom: -30px;
}

/* キャラクター画像 */
.character img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* コンテンツ部分 */
.popup-content {
  position: relative;
  background: white;
  padding: 20px;
  text-align: center;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.popup-main-title {
  font-size: 18px;
  font-weight: bold;
  color: #00bcd4;
  margin-bottom: 15px;
  line-height: 1.3;
}

.popup-sub-title {
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
  line-height: 1.4;
}

/* ボタン */
.button-container {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.popup-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 50px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 90px;
}

.popup-btn-primary {
  background: linear-gradient(45deg, #ffc107, #ffb300);
  color: white;
}

.popup-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 193, 7, 0.4);
}

.popup-btn-secondary {
  background: linear-gradient(45deg, #ff9800, #f57c00);
  color: white;
}

.popup-btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 152, 0, 0.4);
}

/* レスポンシブ対応 */
@media (max-width: 480px) {
  .popup-widget {
    bottom: 10px;
    left: 50%;
    right: auto;       /* 右側の指定を解除 */
    margin-right: 0;   /* 右側のマージンもリセット */
    transform: translate(-50%, 20px);
  }
  
  .popup-widget.show {
    transform: translate(-50%, 0);
  }
    
  .popup-container {
    width: 260px; /* モバイルではさらに幅を縮小 */
  }
  
  .character-section {
    height: 80px; /* モバイルでは高さをさらに縮小 */
  }
  
  .character {
    width: 78px;
    height: 98px;
  }
  
  .popup-content {
    padding: 15px;
  }
  
  .popup-main-title {
    font-size: 15px;
  }
  
  .popup-sub-title {
    font-size: 12px;
  }
  
  .popup-btn {
    padding: 8px 14px;
    font-size: 12px;
    min-width: 75px;
  }
  
  .button-container {
    gap: 10px;
  }
}

/* 横幅の狭い画面での追加調整 */
@media (max-width: 360px) {
  .popup-container {
    width: 240px;
  }
  
  .popup-main-title {
    font-size: 14px;
  }
  
  .popup-btn {
    padding: 7px 12px;
    font-size: 11px;
    min-width: 70px;
  }
}



/* カード選択セクション */
.card-selection-section {
  background: linear-gradient(135deg, #f8fdff 0%, #e8f4f8 100%);
  padding: 60px 20px;
  margin: 0;
}

.card-selection-container {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.card-selection-title {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 50px;
  color: #333;
  position: relative;
}

.card-selection-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #2E8B8B, #4A9B9B);
  margin: 15px auto 0;
  border-radius: 2px;
}

.selection-cards {
  display: flex;
  gap: 40px;
  justify-content: center;
  align-items: stretch;
}

.selection-card {
  background: white;
  border-radius: 20px;
  padding: 40px 30px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
  flex: 1;
  max-width: 400px;
  position: relative;
  overflow: hidden;
}

.selection-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #2E8B8B, #4A9B9B);
}

.selection-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.selection-card:hover .card-button {
  background: linear-gradient(135deg, #2E8B8B, #4A9B9B);
  transform: scale(1.02);
}

.card-icon {
  font-size: 48px;
  margin-bottom: 20px;
  display: block;
}

.card-title {
  font-size: 24px;
  font-weight: bold;
  color: #333;
  margin-bottom: 15px;
  line-height: 1.4;
}

.card-description {
  font-size: 16px;
  color: #666;
  margin-bottom: 30px;
  line-height: 1.6;
}

.card-button {
  background: linear-gradient(135deg, #4A9B9B, #5AABAB);
  color: white;
  padding: 15px 30px;
  border-radius: 50px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  display: inline-block;
  border: none;
  cursor: pointer;
}

/* 費用確認セクション */
.cost-check-section {
  background: #fff;
  padding: 60px 20px;
  margin: 0;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.5s ease;
}

.cost-check-section.show {
  opacity: 1;
  transform: translateY(0);
}

.cost-check-form {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.cost-check-form h2 {
  text-align: center;
  font-size: 28px;
  color: #2E8B8B;
  margin-bottom: 30px;
  position: relative;
}

.cost-check-form h2::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, #2E8B8B, #4A9B9B);
  margin: 10px auto 0;
  border-radius: 2px;
}

.cost-check-form .description {
  text-align: center;
  font-size: 20px;
  margin-bottom: 2.5rem;
  font-weight: bold;
  line-height: 1.6;
}

.cost-check-form .torokubango-nensu {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.cost-check-form .form-row {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cost-check-form .form-row label {
  width: 100%;
  max-width: 400px;
  font-weight: 600;
  margin-bottom: 0.5rem;
  text-align: left;
  font-size: 20px;
  font-weight: bold;
}

.cost-check-form .form-row input[type="text"] {
  width: 100%;
  max-width: 400px;
  padding: 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid #d1d5db;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.cost-check-form .form-row input[type="text"]:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.cost-check-form .years-selection {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 0.5rem;
}

.cost-check-form .years-selection input[type="radio"] {
  display: none;
}

.cost-check-form .years-selection label {
  padding: 1rem 2rem;
  /* border: 2px solid #3b82f6; */
  border: 2px solid #006B7E;
  border-radius: 50px;
  cursor: pointer;
  /* color: #3b82f6; */
  color: #006B7E;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.2s;
  min-width: 80px;
  text-align: center;
}

.cost-check-form .years-selection label:hover {
  background-color: rgba(59, 130, 246, 0.1);
}

.cost-check-form .years-selection input[type="radio"]:checked + label {
  /* background-color: #3b82f6; */
  background-color: #006B7E;
  color: white;
}

.cost-check-button {
  background: linear-gradient(135deg, #4A9B9B, #5AABAB);
  color: white;
  border: none;
  padding: 15px 40px;
  border-radius: 50px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cost-check-button:hover {
  background: linear-gradient(135deg, #2E8B8B, #4A9B9B);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(46, 139, 139, 0.3);
}

.cost-result {
  margin-top: 30px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
}

.cost-result.show {
  opacity: 1;
  transform: translateY(0);
}

.cost-summary {
  background: linear-gradient(135deg, #f8fdff, #e8f4f8);
  padding: 30px;
  border-radius: 15px;
  border: 2px solid #e0f2f2;
}

.cost-summary h3 {
  text-align: center;
  font-size: 32px;
  color: #2E8B8B;
  margin-bottom: 35px;
  font-weight: bold;
  position: relative;
  padding-bottom: 15px;
}

.cost-summary h3::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #2E8B8B, #4A9B9B);
  margin: 15px auto 0;
  border-radius: 2px;
}

/* 商標情報スタイル */
.trademark-get-section {
  margin-bottom: 35px;
}

.trademark-get-section .trademark-info-header {
  background: linear-gradient(135deg, #2E8B8B, #4A9B9B); /* 同じグラデーション */
  color: white;
  text-align: center;
  padding: 18px; /* 同じパディング */
  font-size: 20px; /* 同じフォントサイズ */
  font-weight: bold;
  box-shadow: 0 2px 4px rgba(46, 139, 139, 0.2);
  border-radius: 10px 10px 0 0; /* 上部のみ角丸 */
  margin-bottom: 0; /* マージンを削除 */
}

.trademark-info {
  background: white;
  border-radius: 0 0 10px 10px; /* 下部のみ角丸 */
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* 全体のシャドウ */
  display: flex;
  align-items: center;
  justify-content: flex-start; /* 左寄せに変更 */
  gap: 20px;
  margin: 0 auto;
}

.trademark-logo {
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  border: 2px solid #ddd;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f9f9f9;
  margin-left: 20px; /* 左からの余白を追加して中央寄せ */
}

.trademark-logo img {
  width: 98px;
  height: 98px;
  object-fit: contain;
}

.trademark-details {
  flex: 1;
  text-align: left; /* 明示的に左寄せ */
}

.trademark-details div {
  margin-bottom: 8px;
  font-size: 16px;
  line-height: 1.4;
  text-align: left; /* 各要素も左寄せ */
}

.trademark-details div:last-child {
  margin-bottom: 0;
}

.trademark-number {
  font-weight: bold;
  color: #333;
}

.trademark-owner {
  font-weight: bold;
  color: #333;
}

.trademark-class {
  color: #666;
}

.trademark-renewal {
  color: #FF5C5C;
  font-weight: bold;
}

/* 新しいスタイル: 左右並列レイアウト */
.cost-comparison-container {
  display: flex;
  gap: 30px;
  margin-bottom: 25px;
  margin-top: 25px; /* 商標情報との間隔を確保 */
}

.cost-option {
  flex: 1;
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.cost-option-header {
  background: linear-gradient(135deg, #2E8B8B, #4A9B9B); /* グラデーション追加 */
  color: white;
  text-align: center;
  padding: 18px; /* 少し厚く */
  font-size: 20px; /* 少し大きく */
  font-weight: bold;
  box-shadow: 0 2px 4px rgba(46, 139, 139, 0.2);
}

.cost-breakdown {
  background: white;
  border-radius: 0;
  padding: 20px;
  margin-bottom: 0;
}

.cost-item {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 16px;
}

.cost-item:last-child {
  border-bottom: none;
}

.cost-item.total {
  font-weight: bold;
  font-size: 20px;
  color: #2E8B8B;
  border-top: 2px solid #2E8B8B;
  margin-top: 10px;
  padding-top: 15px;
}

.proceed-to-request-button {
  background: linear-gradient(135deg, #FF5C5C, #FF7A7A);
  color: white;
  border: none;
  padding: 18px 40px;
  border-radius: 50px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  display: block;
}

.proceed-to-request-button:hover {
  background: linear-gradient(135deg, #FF4444, #FF6666);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 92, 92, 0.3);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .cost-check-section {
    padding: 60px 10px;
  }
  
  .card-selection-section {
      padding: 40px 15px;
  }
  
  .card-selection-title {
      font-size: 24px;
      margin-bottom: 30px;
  }
  
  .selection-cards {
      flex-direction: column;
      gap: 20px;
  }
  
  .selection-card {
      margin: 0 auto;
      box-sizing: border-box;   /* パディングやボーダーを幅に含める */
      width: 100%;              /* 横幅をコンテナいっぱいに広げる */
      max-width: 350px;
      padding: 30px 20px;
  }
  
  .card-title {
      font-size: 20px;
  }
  
  .card-button {
      font-size: 16px;
      padding: 12px 25px;
  }

  .trademark-get-section .trademark-info-header {
    font-size: 18px;
  }

  .trademark-info {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  .trademark-logo {
      width: 80px;
      height: 80px;
      margin: 0 auto;
  }

  .trademark-logo svg {
      width: 60px;
      height: 60px;
  }

  .trademark-details div {
      font-size: 14px;
  }

  .cost-comparison-container {
    flex-direction: column;
    gap: 20px;
  }

  .cost-check-form {
      padding: 30px 20px;
  }
  
  .cost-check-form h2 {
      font-size: 24px;
  }

  .cost-summary {
    padding: 5px;
  }
    
  .cost-summary h3 {
      font-size: 20px;
  }

  .cost-option-header {
    font-size: 16px;
    padding: 12px;
  }
}

@media (max-width: 480px) {
  .cost-check-form {
    padding: 30px 10px;
  }
}

/* 依頼方法選択セクションのスタイル */
.request-method-selection {
  background: linear-gradient(135deg, #f8fdff, #e8f4f8);
  border: 2px solid #e0f2f2;
  border-radius: 15px;
  padding: 30px;
  margin: 30px 0;
}

.selection-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.selection-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 25px 20px;
  border: none;
  border-radius: 15px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  background: white;
  min-height: 120px;
  text-align: center;
}

.quote-button {
  border: 3px solid #ff9800;
  color: #ff9800;
}

.quote-button:hover, .quote-button.selected {
  background: linear-gradient(135deg, #ff9800, #ffb74d);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 152, 0, 0.3);
}

.direct-button {
  border: 3px solid #FF5C5C;
  color: #FF5C5C;
}

.direct-button:hover, .direct-button.selected {
  background: linear-gradient(135deg, #FF5C5C, #FF7A7A);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 92, 92, 0.3);
}

.button-icon {
  font-size: 32px;
}

.button-text {
  font-size: 16px;
  line-height: 1.3;
}

/* お見積書フォームセクション */
.quote-details-form {
  background: linear-gradient(135deg, #f9f9f9, #f0f5f5);
  border: 2px solid #e0e8e8;
  border-radius: 12px;
  padding: 25px;
  margin-top: 25px;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s ease;
}

.quote-details-form.show {
  opacity: 1;
  max-height: 500px;
}

.quote-form-header {
  margin-bottom: 25px;
  text-align: center;
}

.quote-form-header h4 {
  color: #f57c00;
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 8px;
}

.quote-form-header p {
  color: #666;
  font-size: 14px;
  margin: 0;
}

.quote-form-content {
  max-width: 450px;
  margin: 0 auto;
}

.quote-form-row {
  margin-bottom: 20px;
  text-align: left;
}

.quote-form-row label {
  display: block;
  font-weight: bold;
  color: #333;
  margin-bottom: 8px;
  font-size: 15px;
}

.quote-form-row input {
  width: 100%;
  padding: 14px;
  border: 2px solid #ddd;
  border-radius: 10px;
  font-size: 16px;
  transition: all 0.3s ease;
  background: white;
  box-sizing: border-box;
}

.quote-form-row input:focus {
  outline: none;
  border-color: #ff9800;
  box-shadow: 0 0 0 3px rgba(255, 152, 0, 0.1);
}

/* 最終送信ボタン */
.final-submit-button {
  border: none;
  padding: 16px 35px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 25px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  min-width: 250px;
}

.quote-submit {
  background: linear-gradient(135deg, #ff9800, #ffb74d);
  color: white;
  box-shadow: 0 4px 15px rgba(255, 152, 0, 0.3);
}

.quote-submit:hover:not(:disabled) {
  background: linear-gradient(135deg, #f57c00, #ff9800);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(245, 124, 0, 0.4);
}

.quote-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* ローディングスピナー */
.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s ease-in-out infinite;
  margin-right: 8px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* プログレス表示 */
.progress-container {
  margin-top: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.progress-container.show {
  opacity: 1;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background-color: rgba(255, 152, 0, 0.2);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 10px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff9800, #ffb74d);
  border-radius: 10px;
  width: 0%;
  transition: width 0.5s ease;
}

.progress-text {
  text-align: center;
  font-size: 14px;
  color: #666;
  font-weight: bold;
}

/* 成功メッセージ */
.success-message {
  background: linear-gradient(135deg, #4CAF50, #66BB6A);
  color: white;
  padding: 15px 20px;
  border-radius: 10px;
  text-align: center;
  margin-top: 20px;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.success-message.show {
  opacity: 1;
  transform: translateY(0);
}

.success-message .success-icon {
  font-size: 24px;
  margin-right: 8px;
}

.direct-submit {
  background: linear-gradient(135deg, #FF5C5C, #FF7A7A);
  color: white;
  box-shadow: 0 4px 15px rgba(255, 92, 92, 0.3);
}

.direct-submit:hover {
  background: linear-gradient(135deg, #FF4444, #FF6666);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 92, 92, 0.4);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .selection-buttons {
      grid-template-columns: 1fr;
      gap: 15px;
  }
  
  .selection-button {
      min-height: 100px;
      padding: 20px 15px;
  }
  
  .button-icon {
      font-size: 28px;
  }
  
  .button-text {
      font-size: 15px;
  }
  
  .request-method-selection {
      margin: 20px -10px;
      padding: 20px 15px;
  }
  
  .quote-details-form {
      padding: 5px;
  }
}

@media (max-width: 480px) {
  .selection-button {
      min-height: 90px;
      padding: 15px 10px;
  }
  
  .button-icon {
      font-size: 24px;
  }
  
  .button-text {
      font-size: 14px;
  }

  .request-method-selection {
    padding: 20px 8px;
  }
}



/* おしゃれな弾む矢印のスタイル */
.scroll-indicator {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 30px 0;
  position: relative;
  cursor: pointer;
}

.scroll-text-luxury {
  font-size: 15px;
  color: #4a90a4;
  margin-bottom: 10px;
  font-weight: 500;
  letter-spacing: 0.8px;
  opacity: 0.9;
  transition: opacity 0.3s ease;
  animation: bounce-stylish-text 1.5s infinite ease-in-out;
}

.scroll-indicator-luxury:hover .scroll-text-luxury {
  opacity: 1;
}

.bouncing-arrow {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #4a90a4, #5ba3b8);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 18px;
  font-weight: bold;
  box-shadow: 0 4px 15px rgba(74, 144, 164, 0.3);
  animation: bounce-stylish 1.5s infinite ease-in-out;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.bouncing-arrow::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s;
}

.scroll-indicator:hover .bouncing-arrow {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 20px rgba(74, 144, 164, 0.4);
}

.scroll-indicator:hover .bouncing-arrow::before {
  left: 100%;
}

/* おしゃれな弾むアニメーション */
@keyframes bounce-stylish {
  0% {
      transform: translateY(0);
      box-shadow: 0 4px 15px rgba(74,144,164,0.3);
  }
  12.5% {
      transform: translateY(-4px);
      box-shadow: 0 5px 18px rgba(74,144,164,0.33);
  }
  25% {
      transform: translateY(-8px);
      box-shadow: 0 8px 25px rgba(74,144,164,0.4);
  }
  37.5% {
      transform: translateY(-10px);
      box-shadow: 0 10px 28px rgba(74,144,164,0.45);
  }
  50% {
      transform: translateY(-12px);
      box-shadow: 0 12px 30px rgba(74,144,164,0.5);
  }
  62.5% {
      transform: translateY(-10px);
      box-shadow: 0 10px 28px rgba(74,144,164,0.45);
  }
  75% {
      transform: translateY(-6px);
      box-shadow: 0 8px 25px rgba(74,144,164,0.4);
  }
  87.5% {
      transform: translateY(-2px);
      box-shadow: 0 5px 18px rgba(74,144,164,0.33);
  }
  100% {
      transform: translateY(0);
      box-shadow: 0 4px 15px rgba(74,144,164,0.3);
  }
}

@keyframes bounce-stylish-text {
  0% {
      transform: translateY(0);
  }
  12.5% {
      transform: translateY(-4px);
  }
  25% {
      transform: translateY(-8px);
  }
  37.5% {
      transform: translateY(-10px);
  }
  50% {
      transform: translateY(-12px);
  }
  62.5% {
      transform: translateY(-10px);
  }
  75% {
      transform: translateY(-6px);
  }
  87.5% {
      transform: translateY(-2px);
  }
  100% {
      transform: translateY(0);
  }
}