:root {
  --gradient-start: #08a298;
  /* Medrockの緑青 */
  --gradient-end: #2563eb;
  /* 青 */
  --card-blur: blur(10px);
  --pricing-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  --pricing-hover-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  --text-light: #4a5568;
  /* 薄グレー */
}

.l-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  margin-top: 4rem;
  margin-bottom: 2rem;
}

.c-heading {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 30px;
}

.c-text-l {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.c-text-m {
  font-size: 1rem;
  margin-bottom: 20px;
}

.u-center {
  text-align: center;
}

.c-button a {
  display: inline-block;
  padding: 15px 30px;
  background-color: #5b3256;
  /* Astraのプライマリカラー */
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.c-button a:hover {
  background-color: #40e0d0;
}

/* Hero section */

.l-main {
  width: 100%;
  background: rgba(255, 255, 255, 1);
  opacity: 1;
  position: relative;
  top: 0px;
  left: 0px;
  box-shadow: -24px -28px 140px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.hero {
  position: relative;
  padding: 2rem 0 2rem 2rem;
  background: linear-gradient(135deg, #fffaf5 0%, #fff0e0 50%, #ffe4cc 100%);
  gap: 1.5rem;
  height: calc(100vh - 70px);
  display: flex;
  align-items: center;
}

.hero__content-left {
  max-width: 650px;
}

.hero__title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  line-height: 1;
  text-align: left;
  color: #0f172a;
}

.hero__title-strong {
  font-size: 3.5rem;
  color: #f97316;
}

.hero__title span {
  display: inline-block;
  opacity: 0;
}

.hero__title--expensive {
  animation: fadeIn 1s ease forwards;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  margin-top: 1.2rem;
  margin-bottom: 0.5rem;
}

.hero__cta-button {
  display: inline-block;
  padding: 1rem 4rem;
  font-size: 1.2rem;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  color: #fff;
  background: #f97316;
  /* オレンジ */
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.2s ease;
  box-shadow: 0 5px 15px rgba(249, 115, 22, 0.3);
  margin-top: 2rem;
}

.hero__cta-button:hover {
  background: #fb923c;
  /* 明るいオレンジ */
  transform: translateY(-3px);
  /* ホバーで浮く */
}

.hero__cta-button:active {
  transform: translateY(0);
  /* クリックで戻る */
}

.hero__catch-wrap {
  display: flex;
  gap: 25px;
  justify-content: center;
  margin-top: 1.3rem;
  max-width: 420px;
  margin-inline: auto;
}

.hero__catch {
  --accent: #f97316;
  --ring1: #fff7f0; /* 明るいクリーム */
  --ring2: #ffedd5; /* ピーチベージュ */
  --face: #fff; /* 中の面は白で軽く */

  width: 115px;
  height: 115px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  color: #0f172a;
  /* 外側に“細いグラデーションリング” */
  padding: 2px; /* ← ここがリングの太さ */
  background: linear-gradient(135deg, var(--ring1), var(--ring2)) padding-box,
    linear-gradient(135deg, #ffd7b0, var(--accent)) border-box;
  border: 2px solid transparent;
  /* 中の面 */
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  background-clip: padding-box, border-box;
  position: relative;
}
/* 中の面の白（質感を追加） */
.hero__catch::before {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: radial-gradient(
      circle at 30% 25%,
      rgba(255, 255, 255, 0.8),
      rgba(255, 255, 255, 0.2) 60%,
      rgba(255, 255, 255, 0) 70%
    ),
    linear-gradient(180deg, #ffffff, #fff8f1);
  z-index: 0;
}
.hero__catch > * {
  position: relative;
  z-index: 1;
}

.here__catch span {
  z-index: 1;
}

@media (max-width: 480px) {
  .hero__catch {
    width: 92px;
    height: 92px;
    font-size: 0.95rem;
  }
  .hero__catch-wrap {
    gap: 12px;
  }
  .hero__cta {
    padding: 0 20px;
  }
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

.hero__image {
  max-width: 550px;
  margin-top: 0;
  margin-left: auto;
  transform: translateX(-30px);
}

.hero__content {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  gap: 30px;
  align-items: flex-end;
  text-align: center;
}

/* 全体コンテナ */
.section-form {
  position: absolute;
  top: 50%;
  right: 2%; /* 少し内側に入れると洗練されて見えます */
  transform: translateY(-50%);
  width: 300px;
  z-index: 10;
  background: #fff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1); /* 重厚感のある影 */
  border-radius: 16px; /* 角丸を少し柔らかく */
  overflow: hidden; /* ヘッダーの角丸を反映させるため */
  max-height: calc(100vh - 40px);
}

/* ヘッダー部分 */
.section__form-header {
  background: #011917;
  padding: 20px 10px;
  text-align: center;
  color: #fff;
}

.section__form-subtitle {
  display: block;
  font-size: 11px;
  letter-spacing: 0.05em;
  margin-bottom: 5px;
  opacity: 0.9;
}

.section__form-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
}

/* フォームを包むエリア */
.section__form-wrap {
  padding: 24px;
  background-color: #ffffff; /* グレーから白に変更し清潔感を */
}/* 各入力フィールドの間隔 */
.section-form .wpforms-form .wpforms-field,
.modal-body .wpforms-form .wpforms-field,
.form-wrapper .wpforms-form .wpforms-field{
  padding: 0;
  margin-bottom: 16px;
}/* ラベルのデザイン */
.section-form .wpforms-form .wpforms-field-label,
.modal-body .wpforms-form .wpforms-field-label,
.form-wrapper .wpforms-form .wpforms-field-label{
  font-size: 13px;
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
  display: block;
}/* 入力項目共通（Input,
Select,
Textarea） */
.section-form .wpforms-form input:not([type='checkbox']):not([type='radio']):not([type='submit']),
.section-form .wpforms-form select,
.section-form .wpforms-form textarea,
.modal-body .wpforms-form input:not([type='checkbox']):not([type='radio']):not([type='submit']),
.form-wrapper .wpforms-form input:not([type='checkbox']):not([type='radio']):not([type='submit']),
.modal-body .wpforms-form select,
.form-wrapper .wpforms-form select,
.modal-body .wpforms-form textarea,
.form-wrapper .wpforms-form textarea{
  height: 44px;
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
  background-color: #f8fafc;
  transition: all 0.3s ease;
  box-shadow: none;
}/* 入力フォーカス時の挙動 */
.section-form .wpforms-form input:focus,
.section-form .wpforms-form select:focus,
.section-form .wpforms-form textarea:focus,
.modal-body .wpforms-form input:focus,
.form-wrapper .wpforms-form input:focus,
.modal-body .wpforms-form select:focus,
.form-wrapper .wpforms-form select:focus,
.modal-body .wpforms-form textarea:focus,
.form-wrapper .wpforms-form textarea:focus{
  outline: none;
  border-color: #08a298;
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(8, 162, 152, 0.1);
}.section-form .wpforms-field-checkbox .wpforms-field-label,
.modal-body .wpforms-field-checkbox .wpforms-field-label,
.form-wrapper .wpforms-field-checkbox .wpforms-field-label{
  display: none !important;
}.section-form .wpforms-field-checkbox ul li,
.modal-body .wpforms-field-checkbox ul li,
.form-wrapper .wpforms-field-checkbox ul li{
  display: flex !important;
  align-items: center !important; /* 縦方向の中央揃え */
  gap: 8px; /* ボックスと文字の間隔 */
  margin-bottom: 5px;
}/* 2. デフォルトの余白をリセットしてズレを防止 */
.section-form .wpforms-field-checkbox ul li input[type='checkbox'],
.modal-body .wpforms-field-checkbox ul li input[type='checkbox'],
.form-wrapper .wpforms-field-checkbox ul li input[type='checkbox']{
  margin: 0 !important;
  width: 16px !important;
  height: 16px !important;
  flex-shrink: 0; /* ボックスが潰れないように固定 */
  cursor: pointer;
}.section-form .wpforms-field-checkbox ul li label,
.modal-body .wpforms-field-checkbox ul li label,
.form-wrapper .wpforms-field-checkbox ul li label{
  display: inline !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 14px;
  cursor: pointer;
  color: #333;
}.section-form .wpforms-field-checkbox ul li label a,
.modal-body .wpforms-field-checkbox ul li label a,
.form-wrapper .wpforms-field-checkbox ul li label a{
  color: #f97316 !important; /* フォームのアクセントカラーに合わせる */
  text-decoration: underline; /* リンクと分かりやすく下線を表示 */
  font-weight: bold;
  transition: color 0.2s;
}.section-form .wpforms-field-checkbox ul li label a:hover,
.modal-body .wpforms-field-checkbox ul li label a:hover,
.form-wrapper .wpforms-field-checkbox ul li label a:hover{
  color: #d7620f !important; /* ホバー時に送信ボタンの色に変化 */
  text-decoration: none;
}/* 送信ボタンのコンテナ */
.section-form .wpforms-submit-container,
.modal-body .wpforms-submit-container,
.form-wrapper .wpforms-submit-container{
  text-align: center;
  margin-top: 10px;
  padding: 0;
}/* 送信ボタン（劇的変化） */
.section-form .wpforms-submit,
.modal-body .wpforms-submit,
.form-wrapper .wpforms-submit{
  width: 80% !important;
  height: 56px !important;
  background-color: #f97316 !important; /* アクセントカラー */
  color: #fff !important;
  font-size: 18px !important;
  font-weight: bold !important;
  border: none !important;
  border-radius: 50px !important; /* 押しやすい丸ボタン */
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3) !important;
  transition: transform 0.2s, box-shadow 0.2s !important;
}.section-form .wpforms-submit:hover,
.modal-body .wpforms-submit:hover,
.form-wrapper .wpforms-submit:hover{
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4) !important;
  filter: brightness(1.1);
}

/* WPFormsの不要なマージンをリセット */
.section-form div.wpforms-container-full {
  margin: 0 !important;
}.modal-body .wpforms-hidden,
.form-wrapper .wpforms-hidden,
.section-form .wpforms-hidden{
  display: none;
}

.hero__image-sp {
  display: none;
}

/* モバイル固定バー */
.mobile-cta-bar {
  display: none; /* デフォルト非表示 */
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 6px 8px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
  z-index: 999; /* チャットボットより手前、または調整 */
}

.mobile-cta-button {
  width: 100%;
  height: 40px;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: #fff;
  border: none;
  /* border-radius: 12px; */
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
}

/* モーダル基本設定 */
.form-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.form-modal.is-active {
  display: flex;
}

.modal-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.3s ease forwards;
}

.modal-content {
  position: relative;
  width: 90%;
  max-width: 400px;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  animation: modalUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}.modal-body{
  padding: 24px;
  overflow-y: auto; /* フォームが長い場合に対応 */
}

/* 閉じるボタン */
.modal-close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.15); /* ヘッダーの緑に馴染む半透明 */
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  z-index: 100;

  /* 中央揃えの決定版 */
  display: flex;
  align-items: center;
  justify-content: center;

  /* 文字としての×を調整 */
  font-family: Arial, sans-serif; /* 汎用的なフォントでズレを防止 */
  font-size: 30px;
  line-height: 0; /* 行高を0にして垂直方向の干渉を防ぐ */
  padding: 0;

  transition: all 0.2s ease;
}

/* アニメーション */
@keyframes modalUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* 767px以下での表示制御 */
@media screen and (max-width: 767px) {
  .mobile-cta-bar {
    display: block;
  }

  /* 既存のチャットボットが被る場合、チャットボットのコンテナの下位置を上げる */
  /* ここは実際のチャットボットのクラス名に合わせて調整してください */
}

/* Responsive Design */
@media screen and (max-width: 1080px) {
  .hero__image {
    display: none;
  }
  .hero {
    padding: 5rem 20px;
    height: fit-content;
  }
}

@media (max-width: 900px) {
  .hero__content {
    max-width: 100%;
  }

  .hero__title {
    font-size: 2rem;
  }

  .hero__title-strong {
    font-size: 2.8rem;
  }

  .hero__image {
    margin-left: 0;
    /* 右寄せをリセット */
    margin-top: 2rem;
    /* 縦並び用のマージンを復元 */
    max-width: 300px;
  }
}

@media screen and (max-width: 840px) {
  .section-form {
    width: 270px;
  }
}

@media screen and (max-width: 767px) {
  .section-form {
    display: none;
  }
  .hero__title span {
    width: fit-content;
  }
  .hero__title {
    font-size: 6vw;
  }
  .hero__title-strong {
    font-size: 9vw;
  }
  .hero__title--expensive {
    margin-top: 0;
    margin-bottom: 0;
  }
  .hero__content {
    gap: 0;
    justify-content: center;
  }
  .hero__content-left {
    max-width: 100%;
  }
}

@media screen and (max-width: 450px) {
  .hero {
    padding: 30px 20px 0;
  }
  .hero__content {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  .hero__image-sp {
    display: block;
    height: 40vh;
    margin-inline: auto;
    object-position: top;
  }
  .hero__title--expensive {
    margin-top: 0;
  }
  .hero__title {
    margin-bottom: 0;
    line-height: 1.4;
  }
  .hero__cta-button {
    padding: 1rem 2rem;
    margin-top: 1rem;
  }
  .hero__catch-wrap {
    margin-top: 1rem;
  }
}

@media screen and (max-width: 375px) {
  .hero__content-sp {
    width: 90%;
  }
  .hero__image-sp {
    height: 40vh;
    object-position: top;
  }
}

@media screen and (max-width: 350px) {
  .hero__catch {
    width: 78px;
    height: 78px;
  }
}

/* 無料お試し */
.free-code__title {
  font-size: 3rem;
  font-family: 'Roboto', sans-serif;
  font-weight: 900;
  color: #1e3a8a;
  text-align: left;
}

/* .free-code {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: #fff;
  overflow: hidden;
  padding: 6rem 0;
} */

/* 既存の固定位置指定を打ち消す */
.free-code .chat-container {
  position: static !important;
  bottom: auto !important;
  right: auto !important;
  margin: 0 auto;
  width: 100%;
  max-width: 600px;
  text-align: center;
}

.free-code .chat-container.size-pc-medium.minimized iframe {
  width: 400px !important;
  height: 100px !important;
}

.free-code .chat-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 16px;
}

/* レンスポンシブ調整 */
@media (max-width: 900px) {
  .free-code__title {
    font-size: 2rem;
  }
}

@media screen and (max-width: 600px) {
  .free-code .chat-container {
    width: 95% !important;
    height: 75vh;
  }
  .free-code .chat-container.size-pc-medium.minimized iframe {
    width: 100% !important;
  }
}

@media (max-width: 495px) {
  .free-code__title {
    font-size: 1.8rem;
  }
  .free-code .chat-container {
    height: 85vh;
  }
}

/* お悩みのセクション */
.concerns {
  padding: 4rem 2rem;
  background: #f7f9fa;
  position: relative;
  /* ::before用 */
  overflow: hidden;
}

.concerns::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 10% 20%, rgba(37, 99, 235, 0.05) 0%, transparent 20%),
    radial-gradient(circle at 90% 80%, rgba(6, 182, 212, 0.05) 0%, transparent 20%);
  pointer-events: none;
}

.concerns__inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.concerns__title {
  font-size: 3rem;
  font-family: 'Roboto', sans-serif;
  font-weight: 900;
  color: #1e3a8a;
  text-align: center;
  margin-bottom: 2rem;
}

.concerns__title span {
  display: inline-block;
  opacity: 0;
}

.concerns--visible .concerns__title span {
  animation: fadeIn 0.2s ease forwards;
}

.concerns__title span:nth-child(1) {
  animation-delay: 0s;
}

.concerns__title span:nth-child(2) {
  animation-delay: 0.1s;
}

.concerns__title span:nth-child(3) {
  animation-delay: 0.2s;
}

.concerns__title span:nth-child(4) {
  animation-delay: 0.3s;
}

.concerns__title span:nth-child(5) {
  animation-delay: 0.4s;
}

.concerns__title span:nth-child(6) {
  animation-delay: 0.5s;
}

.concerns__title span:nth-child(7) {
  animation-delay: 0.6s;
}

.concerns__title span:nth-child(8) {
  animation-delay: 0.7s;
}

.concerns__title span:nth-child(9) {
  animation-delay: 0.8s;
}

.concerns__title span:nth-child(10) {
  animation-delay: 0.9s;
}

.concerns__title span:nth-child(11) {
  animation-delay: 1s;
}

.concerns__title span:nth-child(12) {
  animation-delay: 1.1s;
}

.concerns__title span:nth-child(13) {
  animation-delay: 1.2s;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.problem-card {
  position: relative;
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem;
}

.problem-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, rgb(72, 29, 151), rgb(8, 162, 152));
  /* primaryとaccentを具体色に */
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}

.problem-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(215, 232, 235, 0.3);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  /* クリックを妨げない */
}

.problem-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.problem-card:hover::before {
  transform: scaleX(1);
}

.problem-card:hover::after {
  opacity: 1;
}

.problem-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 1rem;
  color: #1e3a8a;
}

.problem-card p {
  color: #666;
  /* text-light */
}

.problem-card {
  opacity: 0;
}

.concerns--visible .problem-card {
  animation: fadeIn 0.8s forwards;
}

.concerns--visible .problem-card:nth-child(1) {
  animation-delay: 0s;
}

.concerns--visible .problem-card:nth-child(2) {
  animation-delay: 0.1s;
}

.concerns--visible .problem-card:nth-child(3) {
  animation-delay: 0.2s;
}

.concerns--visible .problem-card:nth-child(4) {
  animation-delay: 0.3s;
}

.concerns--visible .problem-card:nth-child(5) {
  animation-delay: 0.4s;
}

.concern__img {
  width: 240px;
}

/* レンスポンシブ調整 */
@media (max-width: 900px) {
  .concerns__title {
    font-size: 2rem;
  }

  .problem-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

@media screen and (max-width: 767px) {
  .problem-card h3 {
    font-size: 1rem;
  }
  .concern__img {
    height: auto;
  }
}

@media (max-width: 495px) {
  .concerns__title {
    font-size: 1.8rem;
  }
}

/* 漫画セクション */
.mangaLP {
  width: 60%;
  margin-inline: auto;
  display: block;
}

.comic-slider {
  position: relative;
  max-width: 800px;
  margin: 40px auto;
  border-radius: 16px;
  overflow: hidden;
}

.comic-slider img {
  max-width: 640px;
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

.slide {
  display: none;
  animation: fade 0.6s ease-in-out;
}
.slide.active {
  display: block;
}

@keyframes fade {
  from {
    opacity: 0;
    transform: scale(1.02);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.prev,
.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.85);
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 32px;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10; /* ←重なり順を上げる */
}

.prev:hover,
.next:hover {
  background: #ffffff;
}

.prev {
  left: 20px;
}
.next {
  right: 20px;
}

.comic-slider {
  position: relative;
  display: flex;
  align-items: center; /* ←追加：中央揃えを安定化 */
  justify-content: center;
  padding: 0 20px;
}

.indicator {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.9);
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 600;
  color: #004c8b;
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
}

/* トップCTAセクション */
.top__cta {
  padding: 5rem 2rem;
  background: linear-gradient(to right, #fc7616, #f97316);
  text-align: center;
}

.top__cta-text {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
}

.top__cta-link {
  color: #fff;
  border: 3px solid #fff;
  background-color: #1e3a8a;
  border-radius: 50px;
  padding: 15px 40px;
  font-size: 20px;
  margin-top: 30px;
  display: block;
  margin-inline: auto;
  width: fit-content;
  font-weight: bold;
}

@media screen and (max-width: 450px) {
  .top__cta {
    padding: 4rem 20px;
  }

  .top__cta-text {
    font-size: 16px;
  }
}

/* about-medrock */
.about-medrock {
  padding: 5rem 2rem;
  background: linear-gradient(180deg, #f9fafb 0%, #fff 100%);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.5s ease-in;
}

.about-medrock.fade-in {
  opacity: 1;
}

.about-medrock__inner {
  max-width: 1400px;
  margin: 0 auto;
}

.about-medrock__title {
  font-size: 3rem;
  font-weight: 700;
  color: rgb(8, 162, 152);
  text-align: center;
}

.about-medrock__subtitle {
  font-size: 1.4rem;
  color: #0f172a;
  text-align: center;
  margin-bottom: 2rem;
}

.about-medrock__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 30px;
}

/* 白いカード */
.about-medrock__card {
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  max-width: 1000px;
  /* 固定高さ */
  align-items: center;
  /* 縦中央 */
  justify-content: space-between;
  /* 左右に均等 */
  transform: translateY(0);
  transition: transform 0.3s ease;
}

.about-medrock__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(30, 30, 30, 0.8);
}

/* テキスト全体 */
.text-list {
  list-style: none;
  /* デフォルトの黒点削除 */
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  /* リスト項目間の間隔 */
}

/* 各リスト項目 */
.text-item {
  font-size: 1.3rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  color: #333;
  line-height: 1.4;
  gap: 1rem;
  /* SVGと文章の間隔 */
  padding: 0.5rem 0;
  /* 上下に少し余裕 */
  margin: 0;
  transition: background-color 0.3s;
}

.text-item--stress {
  font-size: 1.7rem;
  color: rgb(8, 162, 152);
  font-weight: 800;
  /* 強調のために太字を追加 */
}

.text-item p {
  margin: 0;
  /* p要素のデフォルトマージンをリセット */
  display: inline;
  /* インライン表示にして改行を防ぐ */
}

.text-item svg {
  width: 30px !important;
  /* 強制的に24px */
  height: 30px !important;
  flex-shrink: 0;
  stroke: #08a298;
  margin-top: 0.01rem;
}

.text-item:hover {
  background-color: rgba(105, 105, 107, 0.1);
  border-radius: 0.7rem;
}

/* 動画 */
.about-medrock__video {
  /* 固定幅 */
  position: relative;
  width: 500px;
  height: 300px;
  /* 動画の高さを明示的に: 250px * 56.25% ≈ 140px */
  padding-bottom: 0;
  /* padding-bottom削除 */
  margin: 0;
  /* 余白ゼロ */
}

.about-medrock__video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* 高さを親に合わせる */
  border-radius: 0.5rem;
  background-color: #fff;
}

@media (max-width: 900px) {
  .about-medrock {
    padding: 3rem 1rem;
  }

  .about-medrock__title {
    font-size: 2rem;
  }

  .about-medrock__card {
    flex-direction: column;
    gap: 1rem;
    height: auto;
  }

  .about-medrock__text {
    flex: none;
    width: 100%;
    gap: 0.1rem;
  }

  .about-medrock__video {
    flex: none;
    width: 100%;
    max-width: 400px;
    height: 400px;
    /* モバイルでも固定 */
    margin: 0 auto;
  }

  .text-item {
    font-size: 1.4rem;
    line-height: 1.3;
  }
}

@media screen and (max-width: 767px) {
  .about-medrock__subtitle {
    font-size: 1rem;
  }
}

@media (max-width: 495px) {
  .about-medrock__title {
    font-size: 1.8rem;
  }
}

@media screen and (max-width: 400px) {
  .top__cta-link {
    padding: 15px 30px;
    font-size: 18px;
  }
}

/* カード全体の見直し（影を自然に） */
.about-medrock__card {
  background: #fff;
  padding: clamp(20px, 3vw, 32px);
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.about-medrock__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(249, 115, 22, 0.15); /* brand影 */
}

/* グリッド化して見やすく（2列→1列） */
.feature-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
@media (max-width: 720px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

/* 各アイテム（カード風） */
.feature-card {
  display: flex;
  gap: 12px;
  background: #fff7ed; /* 淡いオレンジで面を作る */
  border: 1px solid #ffe7d5;
  border-radius: 12px;
  padding: 14px 16px;
  align-items: flex-start;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.feature-card:hover {
  background: #fff;
  box-shadow: 0 10px 20px rgba(249, 115, 22, 0.1);
  transform: translateY(-2px);
}

/* アイコン：グラデ円＋白抜き */
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: radial-gradient(120% 120% at 30% 30%, #fbbf24 0%, #f97316 60%, #fb923c 100%);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 14px rgba(249, 115, 22, 0.25);
  flex-shrink: 0;
}

/* タイトル＆本文 */
.feature-content {
  flex: 1;
}
.feature-title {
  margin: 0 0 4px;
  font-weight: 800;
  font-size: clamp(16px, 2.3vw, 18px);
  color: #0f172a;
}
.feature-desc {
  margin: 0;
  color: #475569;
  font-size: 0.98rem;
  line-height: 1.7;
}

/* 旧スタイルの衝突回避（任意） */
.text-list,
.text-item {
  all: unset;
}

/* 特徴 */

.bot-features {
  padding: 4rem 0rem;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  max-height: fit-content;
  padding-bottom: 1rem;
}

.features-header {
  padding-bottom: 2rem;
}

.features-header h2 {
  text-align: center;
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
  background: #0f172a;
  -webkit-background-clip: text;
  background-clip: text;
  /* 標準プロパティを追加 */
  -webkit-text-fill-color: transparent;
}

.features-header p {
  text-align: center;
  font-size: 1.4rem;
  font-weight: 300;
}

.features-showcase {
  margin-top: 2rem;
  margin-left: 9rem;
  margin-right: 9rem;
}

.feature-showcase-item {
  display: flex;
  align-items: center;
  gap: 4rem;
  margin-bottom: 6rem;
  opacity: 0;
  transform: translateY(20px);
  animation: slideUp 0.8s forwards;
}

.feature-showcase-item.reverse {
  flex-direction: row-reverse;
}

.feature-showcase-item.animated {
  visibility: visible;
  /* ダミーだけど影響なし（デフォルト値） */
}

.feature-content {
  flex: 1;
}

.feature-content h3 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #3f78e2 0%, #336ae2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  /* 標準プロパティを追加 */
  -webkit-text-fill-color: transparent;
}

.feature-content p {
  font-size: 1.1rem;
  font-weight: 400;
}

.feature-list {
  font-size: 1.1rem;
  font-weight: 550;
  color: rgb(43, 42, 42);
}

.feature-text {
  display: flex;
  /* SVGと文章を横に並べる */
  align-items: flex-start;
  gap: 1rem;
  /* SVGと文章の間隔 */
  padding: 0.1rem 0;
  /* 上下に少し余裕 */
  margin: 0;
}

.feature-text svg {
  flex-shrink: 0;
  stroke: #0822a2;
}

.feature-visual {
  flex: 1;
  height: 400px;
  border-radius: 1rem;
  background-size: cover;
  background-position: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
  overflow: hidden;
}

.feature-visual:hover {
  transform: scale(1.02);
}

.feature-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* 画像を枠にフィット */
  display: block;
}

/* アニメーションはそのまま */
@keyframes slideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .bot-features {
    padding: 2rem 0;
    /* モバイルではパディングを縮小 */
  }

  .features-showcase {
    margin-left: 2rem;
    /* モバイルではマージンを縮小 */
    margin-right: 2rem;
  }

  .feature-showcase-item {
    flex-direction: column;
    /* モバイルでは縦並び */
    gap: 2rem;
    /* 画像と文章の間隔を調整 */
    margin-bottom: 4rem;
  }

  .feature-showcase-item.reverse {
    flex-direction: column;
    /* 逆順でも縦並び */
  }

  .features-header h2 {
    font-size: 2rem;
    /* フォントサイズを小さく */
  }

  .features-header p {
    font-size: 1.1rem;
    /* フォントサイズを調整 */
  }

  .feature-content h3 {
    font-size: 1.4rem;
    /* フォントサイズを調整 */
  }

  .feature-content p {
    font-size: 1rem;
    /* フォントサイズを調整 */
  }

  .feature-list {
    font-size: 1rem;
    /* フォントサイズを調整 */
  }

  .feature-visual {
    height: 300px;
    /* モバイルでは高さを縮小 */
  }
}

.bts__text-wrap {
  max-width: 830px;
  margin-inline: auto;
}
.bts__text {
  font-size: 1.3rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  color: #333;
  line-height: 1.5;
  margin-top: 10px;
}

.story-section {
  background: linear-gradient(180deg, #fffaf5 0%, #fff7ed 100%);
  padding: clamp(56px, 7vw, 96px) 2rem;
}
.story-inner {
  max-width: 750px;
  margin: 40px auto 0;
  padding: 0 20px;
  color: #374151;
  line-height: 1.85;
}

/* header */
.story-heading {
  text-align: center;
  font-weight: 800;
  color: #f97316; /* brand */
  font-size: clamp(24px, 3.2vw, 32px);
  letter-spacing: 0.02em;
  margin: 0 0 0.4rem;
}
.story-lead {
  text-align: center;
  color: #475569;
  font-size: clamp(15px, 2.2vw, 18px);
  margin: 0 0 2.4rem;
}

/* timeline */
.story-timeline {
  list-style: none;
  margin: 0;
  position: relative;
}
.story-timeline::before {
  content: '';
  position: absolute;
  left: 23px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: #f97316;
  opacity: 0.5;
  border-radius: 2px;
}
.story-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  column-gap: 14px;
  margin-bottom: 28px;
}
.story-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 2px solid #f97316;
  color: #f97316;
  border-radius: 50%;
  font-size: 22px;
  box-shadow: 0 6px 14px rgba(249, 115, 22, 0.12);
  z-index: 1;
}
.story-content {
  max-width: 68ch;
}
.story-subtitle {
  margin: 0.2rem 0 0.4rem;
  font-weight: 700;
  color: #f97316;
  font-size: clamp(17px, 2.4vw, 20px);
}
.story-content p {
  margin: 0.35rem 0;
}

/* quote */
.story-quote {
  margin: clamp(20px, 4vw, 40px) auto 0;
  max-width: 550px;
  background: #ffffff;
  border: 1px solid #ffe7d5;
  border-left: 6px solid #f97316;
  border-radius: 12px;
  box-shadow: 0 10px 26px rgba(249, 115, 22, 0.08);
  padding: 16px 20px;
}
.story-quote p {
  margin: 0;
  font-weight: 700;
  color: #0f172a;
  text-align: center;
  letter-spacing: 0.01em;
}

.story-quote-span {
  font-size: 1.3rem;
  color: #f97316;
}

/* responsive tweak */
@media (max-width: 560px) {
  .story-item {
    grid-template-columns: 40px 1fr;
  }
  .story-icon {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
  .story-timeline::before {
    left: 18px;
  }
}

/* 導入事例 */
.case-section {
  background: linear-gradient(180deg, #f9fafb 0%, #fff 100%);
  padding: 80px 20px;
}

.case-title {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 800;
  color: #0f172a;
}

.case-lead {
  text-align: center;
  color: #475569;
  margin-bottom: 50px;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.case-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.case-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 28px rgba(249, 115, 22, 0.15);
}

.case-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: #f97316;
  color: #fff;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
}

.case-photo img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.case-body {
  padding: 20px 24px;
}

.case-photo img.case-img-different {
  object-fit: contain;
  padding: 20px;
}

.case-body {
  padding: 20px 24px;
}

.case-name {
  font-weight: 700;
  font-size: 1.2rem;
  color: #1e293b;
  margin-bottom: 10px;
}

.case-data {
  color: #475569;
  font-size: 0.95rem;
  margin-bottom: 12px;
}
.case-data strong {
  color: #f97316;
  font-size: 1.1rem;
}

.case-result {
  margin: 10px 0 14px;
}
.case-label {
  font-size: 0.85rem;
  color: #334155;
  display: inline-block;
  margin-bottom: 4px;
}
.case-bar {
  background: #e2e8f0;
  border-radius: 999px;
  height: 6px;
  overflow: hidden;
}
.case-bar span {
  display: block;
  height: 100%;
  background: #f97316;
  border-radius: inherit;
  transition: width 0.6s ease;
}

.case-comment {
  font-size: 0.9rem;
  color: #475569;
  font-style: italic;
  line-height: 1.6;
}

.case-data {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 16px;
  margin: 18px 0 24px;
  background: #fff7ed; /* brand tone background */
  border-radius: 12px;
  padding: 16px 10px;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.08);
}

.case-metric {
  text-align: center;
  flex: 1;
  transition: transform 0.2s ease, color 0.2s ease;
}

.case-metric:hover {
  transform: translateY(-3px);
}

.metric-number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: #f97316;
  line-height: 1;
}

.metric-unit {
  font-size: 1rem;
  font-weight: 600;
  color: #f97316;
  margin-left: 2px;
}

.metric-label {
  margin-top: 4px;
  margin-bottom: 10px;
  line-height: 1.3;
  font-size: 0.85rem;
  color: #475569;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.case-data::before {
  content: '';
  width: 1px;
  height: 36px;
  background: #fcd34d;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

@media screen and (max-width: 900px) {
  .case-title {
    font-size: 2rem;
  }
}

@media (max-width: 495px) {
  .case-title {
    font-size: 1.8rem;
  }
}

/* 比較表 */
.comparison {
  padding: 6rem 0;
  background: white;
}

.comparison-inner {
  margin-top: 0;
}

.comparison-title {
  font-size: 2.8rem;
  font-weight: bold;
  margin-bottom: 20px;
  text-align: center;
  color: #1e293b;
}

.comparison__table-wrapper {
  overflow-x: auto;
  margin: 0 -2rem;
  padding: 0 2rem;
}

.comparison-table {
  width: 100%;
  min-width: 800px;
  border-collapse: collapse;
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* 各セル共通 */
.comparison-table th,
.comparison-table td {
  padding: 1.5rem;
  text-align: center;
  border: 1px solid #f3e8e3; /* 薄いオレンジ系境界線 */
}

/* ヘッダー行 */
.comparison-table thead th {
  background: #fff7ed; /* 淡いオレンジベージュ */
  font-weight: 700;
  color: #78350f; /* 深みのあるブラウンで文字 */
}

/* ハイライト列（あなたのサービス） */
.comparison-table th.highlight {
  background: linear-gradient(135deg, #fed7aa 0%, #fb923c 100%);
  color: #fff;
  position: relative;
}

/* サービス名 */
.comparison-table .service-name {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

/* バッジ */
.comparison-table .badge {
  display: inline-block;
  background: #f97316;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* 項目名（左列） */
.comparison-table .feature-name {
  font-weight: 600;
  color: #78350f;
  text-align: left;
}

/* ハイライトされたセル */
.comparison-table td.highlight {
  background: #fff3e0; /* 柔らかいオレンジ背景 */
  font-weight: 600;
  color: #f97316;
}

/* ボタン部分 */
.comparison__btn {
  text-align: center;
  margin-top: 2rem;
}

/* ボタンデザイン例（オレンジトーン） */
.comparison__btn a {
  display: inline-block;
  background: linear-gradient(135deg, #f97316, #fb923c);
  color: white;
  padding: 1rem 2.5rem;
  border-radius: 9999px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 6px 12px rgba(249, 115, 22, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.comparison__btn a:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(249, 115, 22, 0.3);
}

@media screen and (max-width: 900px) {
  .comparison-title {
    font-size: 2rem;
  }
}

@media (max-width: 495px) {
  .comparison-title {
    font-size: 1.8rem;
  }
}

@media screen and (max-width: 767px) {
  .comparison-table {
    min-width: 550px;
  }
}

/* =========================================================
 * 1. フォームコンテナとタイトル設定
 * ========================================================= */
.contact__form {
  max-width: 900px;
  margin: 100px auto 100px;
  background: #fdfdfd;
  padding: 3rem;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05), 0 4px 12px rgba(0, 0, 0, 0.03);
}

.contact__form-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 2.5rem;
  color: #333333;
  text-align: center;
  border-bottom: 3px solid #08a298;
  padding-bottom: 0.5rem;
  letter-spacing: 1px;
}

/* JavaScript無効時の警告メッセージの非表示 */
.contact__form .wpforms-hidden {
  display: none !important;
}

/* =========================================================
 * 2. 項目名と入力欄の縦並び設定 (修正後)
 * ========================================================= */

/* 各フィールド（項目）コンテナはブロック要素として表示 */
.contact__form .wpforms-field {
  display: block; /* 縦並びにするためflexを解除 */
  border-bottom: 1px solid #eeeeee;
  padding: 1.5rem 0;
  margin-bottom: 0;
}

/* 項目名（ラベル）のエリア設定 - 固定幅を解除 */
.contact__form .wpforms-field-label-container {
  width: auto; /* 固定幅を解除 */
  padding-right: 0; /* 右のパディングを解除 */
  text-align: left;
  padding-top: 0; /* 縦並びになるため調整を解除 */
  margin-bottom: 0.5rem; /* 入力欄との間に少し隙間を作る */
}

/* ラベルのスタイリングと改行防止 (変更なし) */
.contact__form .wpforms-field-label {
  font-size: 1rem;
  font-weight: 600;
  color: #555555;
  margin-bottom: 0;
  display: inline-block;
  white-space: nowrap;
}

/* 必須マーク（*）のスタイリング (変更なし) */
.contact__form .wpforms-required-label {
  color: #f97316;
  margin-left: 5px;
}

/* 入力欄コンテナのエリア設定 - 幅を100%にする */
.contact__form .wpforms-field-row {
  width: 100%; /* 親要素の幅いっぱいに広げる */
  max-width: 100%;
  display: block; /* 縦並びになるためflex-direction: column;の必要なし */
}

/* フィールドの説明文（例文）の位置修正 */
.contact__form .wpforms-field-description {
  width: 100%;
  font-size: 0.85rem;
  color: #888888;
  margin-top: 0.5rem;
  line-height: 1.5;
  display: block;
  order: initial; /* orderを解除 */
}

/* =========================================================
 * 3. 入力フィールドとDescriptionのスタイリング
 * ========================================================= */

/* 入力フィールドの基本デザイン */
.contact__form input[type='text'],
.contact__form input[type='email'],
.contact__form input[type='url'],
.contact__form input[type='tel'],
.contact__form select,
.contact__form textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  background-color: #f8f8f8;
  transition: border-color 0.3s ease, background-color 0.3s ease;
  /* 入力欄が途中で改行されるのを防ぐ */
  min-width: 0;
}

.contact__form input[type='checkbox'] {
  margin-right: 8px;
  accent-color: #08a298;
}

.contact__form input[type='checkbox'],
.contact__form label {
  vertical-align: middle;
}

/* フォーカス時の強調 */
.contact__form input[type='text']:focus,
.contact__form input[type='email']:focus,
.contact__form input[type='url']:focus,
.contact__form input[type='tel']:focus,
.contact__form select:focus,
.contact__form textarea:focus {
  border-color: #08a298;
  outline: none;
  background-color: #ffffff;
}

/* フィールドの説明文（例文）の位置修正 */
.contact__form .wpforms-field-description {
  width: 100%;
  font-size: 0.85rem;
  color: #888888;
  margin-top: 0.5rem;
  line-height: 1.5;
  display: block; /* ブロック要素として表示 */
  order: 2; /* Flexbox内で順序を制御（入力欄の後に表示） */
}

/* チェックボックス・ラジオボタンなど特殊フィールドのレイアウト調整 */
.contact__form .wpforms-field-checkbox,
.contact__form .wpforms-field-radio {
  display: block;
  margin-bottom: 1.5rem;
}

.wpforms-error-noscript {
  display: none !important;
}

.contact__form .wpforms-field-checkbox .wpforms-field-label {
  display: none !important;
}

.contact__form .wpforms-field-checkbox ul li {
  display: flex !important;
  align-items: center !important; /* 縦方向の中央揃え */
  gap: 8px; /* ボックスと文字の間隔 */
  margin-bottom: 5px;
}

/* 2. デフォルトの余白をリセットしてズレを防止 */
.contact__form .wpforms-field-checkbox ul li input[type='checkbox'] {
  margin: 0 !important;
  width: 16px !important;
  height: 16px !important;
  flex-shrink: 0; /* ボックスが潰れないように固定 */
  cursor: pointer;
}

.contact__form .wpforms-field-checkbox ul li label {
  display: inline !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 14px;
  cursor: pointer;
  color: #333;
}

.contact__form .wpforms-field-checkbox ul li label a {
  color: #f97316 !important;
  text-decoration: underline;
  font-weight: bold;
  transition: color 0.2s;
}

.contact__form .wpforms-field-checkbox ul li label a:hover {
  color: #b45009 !important;
  text-decoration: none;
}

/* =========================================================
 * 4. 送信ボタンの調整
 * ========================================================= */

.contact__form .wpforms-submit-container {
  text-align: center !important;
  margin-top: 4rem;
}

.contact__form .wpforms-submit {
  background-color: #08a298 !important;
  color: #ffffff !important;
  padding: 18px 60px !important;
  font-size: 1.1rem !important;
  font-weight: 600 !important;
  border: none !important;
  border-radius: 4px !important;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.1s ease;
  box-shadow: 0 4px 10px rgba(8, 162, 152, 0.4);
}

.contact__form .wpforms-submit:hover {
  background-color: #067c74 !important;
}

/* =========================================================
 * 5. レスポンシブ対応
 * ========================================================= */

@media screen and (max-width: 767px) {
  .contact__form {
    padding: 1.5rem;
    margin-top: 40px;
    margin-bottom: 40px;
    box-shadow: none;
    border: 1px solid #f0f0f0;
  }

  .contact__form .wpforms-field {
    display: block;
    padding: 1rem 0;
  }

  .contact__form .wpforms-field-label-container {
    flex: none;
    width: auto;
    padding-right: 0;
    padding-top: 0;
    margin-bottom: 0.3rem;
  }

  .contact__form .wpforms-field-row {
    width: 100%;
    max-width: 100%;
  }

  .contact__form-title {
    font-size: 1.6rem;
  }

  .contact__form .wpforms-submit {
    width: 100%;
  }
}

/* timerex埋め込み */
.timerex__wrap {
  max-width: 700px;
  margin: 80px auto 0;
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

@media screen and (max-width: 450px) {
  .timerex__wrap {
    padding: 2rem 20px;
  }
}

/* 会社概要 */
.company__title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 3rem;
}

.company__title-wrap {
  text-align: center;
}

.company__content {
  display: block;
  gap: 4rem;
  align-items: start;
  max-width: 800px;
  margin-inline: auto;
}

.company__name {
  font-size: 2rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.5rem;
}

.company__tagline {
  font-size: 1.125rem;
  color: #64748b;
  margin-bottom: 3rem;
}

.company__members h4 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 2rem;
}

.members-grid {
  display: grid;
  gap: 2rem;
}

.member {
  display: flex;
  gap: 1.5rem;
  align-items: start;
  justify-content: center;
}

.member__photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #e0f2fe;
}

.member__name {
  font-size: 1.125rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.25rem;
}

.member__role {
  font-size: 0.875rem;
  color: #00b4d8;
  margin-bottom: 0.5rem;
}

.member__description {
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .company__title {
    font-size: 2rem;
  }
}

@media screen and (max-width: 767px) {
  .company__tagline {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
}

@media screen and (max-width: 495px) {
  .company__title {
    font-size: 1.8rem;
  }
}

@media screen and (max-width: 340px) {
  .company__name {
    font-size: 1.8rem;
  }
}

/* チーム */
.team {
  text-align: center;
  padding: 2rem 0;
  background: linear-gradient(to right, rgb(25, 2, 69), rgb(44, 8, 117));
}

.team__title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 3rem;
  color: white;
}

.team__members {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.team__member {
  background-color: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: left;
  max-width: 400px;
}

.team__member:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.team__member-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.team__member-info {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.team__member-name {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.team__member-link {
  display: inline-block;
  margin-bottom: 1rem;
}

.team__member-bio {
  font-size: 1.125rem;
  color: #666;
}

.team__member-bio_link {
  color: #5b3256;
  text-decoration: underline !important;
}

.icon {
  width: 24px;
  height: 24px;
  fill: #333;
}

@media screen and (max-width: 900px) {
  .team {
    padding: 0.8rem 0;
  }

  .team__title {
    font-size: 1.4rem;
  }

  .team__members {
    flex-direction: column;
    padding: 0 20px;
  }

  .team__member {
    max-width: 100%;
    text-align: center;
  }

  .team__member-image {
    width: 50%;
    margin: 0 auto 1rem;
  }

  .team__member-bio {
    font-size: 1rem;
  }

  .team__member-info {
    text-align: center;
  }
}

.twitter-tweet {
  display: flex;
  max-width: 550px;
  width: 100%;
  margin-top: 10px;
  margin-bottom: 10px;
}

.twitter-tweet iframe {
  position: static;
  visibility: visible;
  width: 550px;
  display: block;
}

.twitter-tweet #twitter-widget-0 {
  height: 656px;
}

.twitter-tweet #twitter-widget-1 {
  height: 774px;
}

.twitter-tweet #twitter-widget-2 {
  height: 897px;
}

@media screen and (max-width: 767px) {
  .company__content {
    max-width: 550px;
    padding: 0 20px;
  }
  .member {
    flex-direction: column;
  }
  .twitter-tweet iframe {
    width: 400px;
    margin-inline: auto;
  }
  .twitter-tweet #twitter-widget-0 {
    height: 595px;
  }

  .twitter-tweet #twitter-widget-1 {
    height: 710px;
  }

  .twitter-tweet #twitter-widget-2 {
    height: 800px;
  }
}

@media screen and (max-width: 400px) {
  .company__content {
    padding: 0;
  }
}

/* お問い合わせ */
.cta {
  text-align: center;
  background-color: #f8f9fa;
  padding: 4rem 0;
}

.cta__title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

.cta__description {
  font-size: 1rem;
  margin-bottom: 2rem;
}

.cta__form {
  max-width: 600px;
  margin: 3rem auto 2rem;
  text-align: left;
}

.cta__form .wpforms-form {
  background-color: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.cta__form .wpforms-field {
  margin-bottom: 1.5rem;
}

.cta__form .wpforms-field label {
  font-weight: bold;
  margin-bottom: 0.5rem;
  display: block;
}

.cta__form .wpforms-field input,
.cta__form .wpforms-field textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  box-sizing: border-box;
}

.cta__form .wpforms-submit {
  display: inline-block !important;
  background-color: #019a88 !important;
  color: #fff !important;
  border-radius: 5px !important;
  transition: all 0.3s ease !important;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1) !important;
}

.cta__form .wpforms-submit:hover {
  background-color: #05197e !important;
}

.cta__subtitle {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.cta__subtitle-description {
  font-size: 1rem;
  margin-bottom: 2rem;
}

.cta__steps {
  display: flex;
  justify-content: space-around;
  margin-bottom: 3rem;
}

.cta__step {
  max-width: 300px;
  padding: 1rem;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.cta__step-number {
  font-size: 2rem;
  font-weight: bold;
  color: #5b3256;
  margin-bottom: 1rem;
}

.cta__step-title {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.cta__step-description {
  font-size: 1rem;
}

.cta__list {
  display: inline-flex;
  gap: 1rem;
  list-style: none;
  padding: 0;
}

.cta__link {
  display: inline-block;
  padding: 1rem 2rem;
  background-color: #f97316;
  color: #fff;
  border-radius: 5px;
  transition: all 0.3s ease;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

.cta__link:hover {
  background-color: #e76a00;
  box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
  .cta__title {
    font-size: 1.4rem;
  }

  .cta__subtitle {
    font-size: 1.25rem;
  }

  .cta__steps {
    flex-direction: column;
    align-items: center;
  }

  .cta__step {
    margin-bottom: 1.5rem;
  }
}

/* CV-section */
.seo_cv_container {
  position: fixed !important;
  bottom: 20px;
  right: 20px;
  display: none; /* 初期状態で非表示 */
  z-index: 1000;
  transition: transform 0.2s ease;
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.1), 0 8px 14px rgba(0, 0, 0, 0.1);
}

.seo_cv_container:hover {
  opacity: 0.95;
  transform: scale(1.02);
}

@media (max-width: 900px) {
  .seo_cv_container {
    bottom: 0.8rem;
    right: 0.8rem;
  }
  .seo_cv_image {
    /* 画面幅の 35% を上限に */
    width: clamp(120px, 45vw, 300px);
  }
}

/* 開発秘話 */
.member-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 500px), 1fr));
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.member-card {
  background: #f8f9fa;
  border-radius: 20px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  position: relative;
}

.member-card-inner {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.member-header {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #e0e0e0;
}

.member-image-wrapper {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid #007bff;
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.2);
  position: relative;
  padding: 3px;
}

.member-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.member-title-section {
  flex: 1;
  min-width: 0;
}

.member-name {
  font-size: clamp(1.5rem, 3vw, 1.8rem);
  color: #000000;
  font-weight: 600;
  margin: 0 0 0.3rem;
  font-family: 'Google Sans Text', 'Roboto', Arial, Helvetica, sans-serif;
}

.member-name-en {
  font-size: 0.9rem;
  color: #666666;
  margin: 0 0 0.5rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.member-role {
  font-size: 0.95rem;
  color: #007bff;
  margin: 0;
  font-weight: 500;
  display: inline-block;
  padding: 0.3rem 0.8rem;
  background: rgba(0, 123, 255, 0.1);
  border-radius: 20px;
  border: 1px solid rgba(0, 123, 255, 0.2);
}

.member-x-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #333333;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.05);
}

.member-x-link:hover {
  color: #1da1f2;
  background: rgba(29, 161, 242, 0.1);
}

.member-role-link-wrapper {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.member-x-icon {
  width: 16px;
  height: 16px;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.member-x-link:hover .member-x-icon {
  opacity: 1;
}

.member-content {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
}

.member-bio {
  font-size: clamp(0.9rem, 1.5vw, 1rem);
  color: #333333;
  line-height: 1.9;
  margin: 0 0 2rem;
  font-family: 'Google Sans Text', 'Roboto', Arial, Helvetica, sans-serif;
  flex-grow: 0;
}

.member-bio-story {
  margin: 0;
}

.inline-link {
  color: #007bff;
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 123, 255, 0.3);
  transition: all 0.3s ease;
}

.inline-link:hover {
  color: #0056b3;
  border-bottom-color: #0056b3;
}

.member-tweet {
  background: transparent;
  border-radius: 12px;
  padding: 0;
  border: none;
  min-height: 200px;
  margin-top: 0;
}

.member-tweet .twitter-tweet {
  margin: 0 auto !important;
}

@media (max-width: 1024px) {
  .member-container {
    padding: 5rem 2rem 6rem;
  }

  .member-cards {
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  .member-container {
    padding: 4rem 1.5rem 5rem;
  }

  .member-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
  }

  .member-image-wrapper {
    width: 100px;
    height: 100px;
  }

  .member-title-section {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .member-role-link-wrapper {
    flex-direction: column;
    align-items: center;
  }

  .member-card-inner {
    padding: 2rem 1.5rem;
  }

  .member-cards {
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  .member-container {
    padding: 3rem 1rem 4rem;
  }

  .member-card-inner {
    padding: 1.5rem 1rem;
  }

  .member-image-wrapper {
    width: 80px;
    height: 80px;
  }

  .member-tweet {
    padding: 1rem;
  }
}

@media screen and (max-width: 480px) {
  .twitter-tweet #twitter-widget-0 {
    height: 555px !important;
  }

  .twitter-tweet #twitter-widget-1 {
    height: 610px !important;
  }
}

@media screen and (max-width: 400px) {
  .twitter-tweet iframe {
    width: 250px !important;
  }
  .twitter-tweet #twitter-widget-0 {
    height: 575px !important;
  }
  .member-tweet {
    padding: 1rem 0;
  }
}
