/* Layout Wrappers */
.l-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* Headings */
.c-heading {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 30px;
  font-family: var(--font-display);
  font-weight: 700;
}

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

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

/* Buttons */
.c-button a {
  display: inline-block;
  padding: 15px 30px;
  background-color: var(--color-primary);
  color: #fff;
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: background-color 0.3s ease, transform 0.3s ease;
  font-weight: 600;
}

.c-button a:hover {
  background-color: var(--color-accent);
  transform: translateY(-2px);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 700px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 50%, #e0f2fe 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 80%;
  height: 200%;
  background: radial-gradient(circle, rgba(0, 180, 216, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.hero__inner {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 0 1rem 2rem;
  display: grid;
  grid-template-columns: 1fr minmax(auto, 400px) 340px;
  gap: 2rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero__content {
  max-width: 650px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, rgba(0, 180, 216, 0.1), rgba(82, 214, 129, 0.1));
  border-radius: 50px;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #0077b6;
  border: 1px solid rgba(0, 180, 216, 0.2);
}

.hero__badge-icon {
  width: 16px;
  height: 16px;
  color: #00b4d8;
}

.hero__title {
  margin-bottom: 2rem;
}

.hero__title-main {
  display: block;
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: #0f172a;
  position: relative;
}

.hero__title-gradient {
  background: linear-gradient(135deg, #00b4d8 0%, #0077b6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.hero__title-accent {
  position: relative;
  color: #0f172a;
  display: inline-block;
}

.hero__title-accent::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 12px;
  background: linear-gradient(135deg, rgba(82, 214, 129, 0.3), rgba(0, 180, 216, 0.3));
  z-index: -1;
  transform: skewY(-2deg);
}

.hero__title-sub {
  display: block;
  font-size: clamp(1.25rem, 2vw, 1.625rem);
  color: #475569;
  line-height: 1.6;
  font-weight: 500;
}

.hero__title-highlight {
  color: #00b4d8;
  font-weight: 700;
  padding: 0 0.25rem;
  background: linear-gradient(135deg, rgba(0, 180, 216, 0.1), transparent);
  border-radius: 4px;
}

.hero__benefits {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.hero__benefit {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #475569;
  font-weight: 500;
}

.hero__benefit-icon {
  width: 20px;
  height: 20px;
  color: #52d681;
}

.hero__cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn--glow {
  position: relative;
  overflow: hidden;
}

.btn--glow::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
  animation: glow 3s ease-in-out infinite;
}

@keyframes glow {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0;
  }

  50% {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 1;
  }
}

.hero__visual {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-right: 15px;
  transform: scale(1.2);
}

.hero__image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  max-height: 500px;
  /* padding: 2rem; */
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.15));
  animation: float 6s ease-in-out infinite;
  border-radius: 24px;
  mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
  mask-composite: intersect;
  -webkit-mask-composite: source-in;
}

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

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

.hero__image-decoration {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  background: radial-gradient(circle at center, rgba(0, 180, 216, 0.1) 0%, transparent 60%);
  z-index: -1;
  animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.5;
  }

  50% {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 0.8;
  }
}

/* フォーム全体を囲むラッパー */
.seo-hero-right-form-wrapper {
  width: 100%;
  z-index: 10;
  margin-top: -65px;
}

.seo-hero-form-box {
  background-color: #f8f8f8;
  border-radius: 12px; /* 大きめの角丸 */
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid #e0e0e0;
  padding: 25px 30px 20px;
  text-align: center;
}

.seo-form-completion-text {
  font-size: 18px;
  color: #007bff;
  font-weight: 700;
  margin-bottom: 15px;
  position: relative;
}

.seo-form-completion-text::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 8px;
  background: linear-gradient(135deg, rgba(82, 214, 129, 0.3), rgba(0, 180, 216, 0.3));
  margin: 0 2.4rem;
}

.seo-form-title {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.3;
  color: #1a2b4d;
  margin-top: 0;
  margin-bottom: 15px;
}

/* ======================================================= */
/* ヒーローフォーム（.hero-form-box）専用の干渉対策CSS */
/* ======================================================= */

/* --- ラベル要素 (干渉しやすい) --- */
/* セレクタを強化：div.hero-form-box と form.wpcf7-form を追加 */
div.seo-hero-form-box form.wpcf7-form label {
  display: block;
  font-size: 14px;
  color: #1a2b4d;
  margin-bottom: 5px;
  font-weight: 700 !important; /* ラベルの太字を確実に適用 */
  line-height: 1.5; /* 以前のフォームの line-height: 5rem; を無効化 */
}

/* --- 入力フィールド (干渉しやすい) --- */
/* セレクタを強化：より具体的な要素を指定 */
div.seo-hero-form-box form.wpcf7-form input[type='text'],
div.seo-hero-form-box form.wpcf7-form input[type='url'],
div.seo-hero-form-box form.wpcf7-form input[type='email'] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 15px;
  box-sizing: border-box;
  background-color: #ffffff;
  font-weight: 400;
  border-bottom: 1px solid #ddd !important;
  margin-bottom: 0 !important;
}

.seo-hero-form-box input::placeholder {
  color: #bbb;
}

/* --- CF7の段落タグ <p> (干渉しやすい) --- */
/* CF7の各フィールドを囲む<p>タグの余白を制御 */
.seo-hero-form-box .wpcf7-form p {
  margin-bottom: 10px !important;
  margin-top: 0 !important;
  text-align: left;
}

/* --- プライバシーポリシー同意チェックボックス --- */
.seo-hero-form-box .wpcf7-list-item {
  margin: 0;
  font-size: 13px;
  color: #666;
  font-weight: 400;
}

.seo-hero-form-box .wpcf7-list-item-label a {
  color: #007bff;
}

/* --- 送信ボタン (ID指定で最強化) --- */
.seo-hero-form-box .free-submit-button {
  width: 100% !important;
  padding: 16px !important;
  background-color: #007bff !important;
  color: white !important;
  border: none !important;
  border-radius: 6px !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  margin-top: 5px !important;
  box-shadow: 0 4px 10px rgba(0, 123, 255, 0.4) !important;
  text-align: center !important;
}

.seo-hero-form-box .free-submit-button:hover {
  background-color: #0066d2 !important;
  box-shadow: 0 6px 15px rgba(0, 123, 255, 0.5) !important;
}

/* ポップアップのアニメーション定義 */
@keyframes popUpForm {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Buttons Enhanced */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: linear-gradient(135deg, #00b4d8 0%, #0077b6 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(0, 180, 216, 0.3);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 180, 216, 0.4);
}

.btn--secondary {
  background: white;
  color: #0077b6;
  border: 2px solid #e0f2fe;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.btn--secondary:hover {
  background: #f0f9ff;
  border-color: #00b4d8;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.btn--large {
  padding: 1.25rem 2.5rem;
  font-size: 1.125rem;
}

.btn__arrow {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  transition: transform 0.3s ease;
}

.btn:hover .btn__arrow {
  transform: translateX(4px);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn--primary {
  background: linear-gradient(135deg, #00b4d8 0%, #0077b6 100%);
  color: white;
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 180, 216, 0.3);
}

.btn--secondary {
  background: rgba(255, 255, 255, 0.9);
  color: #0077b6;
  border: 2px solid rgba(255, 255, 255, 0.9);
}

.btn--secondary:hover {
  background: white;
  transform: translateY(-2px);
}

.btn--large {
  padding: 1.25rem 2.5rem;
  font-size: 1.125rem;
}

.btn__arrow {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

/* Intro Video Section */
.intro-video {
  padding: 6rem 0;
  background: white;
}

.intro-video__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.intro-video__title {
  margin-bottom: 1.5rem;
}

.intro-video__title-sub {
  display: block;
  font-size: 1rem;
  color: #00b4d8;
  margin-bottom: 0.5rem;
}

.intro-video__title-main {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: #0f172a;
}

.intro-video__description {
  font-size: 1.125rem;
  color: #64748b;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.intro-video__features {
  display: flex;
  gap: 2rem;
}

.video-feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.video-feature__icon {
  width: 32px;
  height: 32px;
  color: #00b4d8;
}

.video-feature span {
  font-weight: 600;
  color: #0f172a;
}

.intro-video__player {
  position: relative;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn--primary {
  background: linear-gradient(135deg, #00b4d8 0%, #0077b6 100%);
  color: white;
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 180, 216, 0.3);
}

.btn--secondary {
  background: rgba(255, 255, 255, 0.9);
  color: #0077b6;
  border: 2px solid rgba(255, 255, 255, 0.9);
}

.btn--secondary:hover {
  background: white;
  transform: translateY(-2px);
}

.btn--large {
  padding: 1.25rem 2.5rem;
  font-size: 1.125rem;
}

.btn__arrow {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

/* Achievements Bar */
.achievements-bar {
  background: white;
  padding: 2rem 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.achievements-bar__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-around;
  gap: 2rem;
}

.achievement-item {
  text-align: center;
}

.achievement-item__number {
  font-size: 3rem;
  font-weight: 800;
  color: #00b4d8;
  line-height: 1;
}

.achievement-item__label {
  font-size: 1rem;
  color: #64748b;
  margin-top: 0.5rem;
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  position: relative;
  display: inline-block;
}

.section-title__en {
  display: block;
  font-size: 0.875rem;
  letter-spacing: 0.2em;
  color: #00b4d8;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.section-title__ja {
  display: block;
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 700;
  color: #0f172a;
}

.section-description {
  margin-top: 1rem;
  font-size: 1.125rem;
  color: #64748b;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Challenges Section */
.challenges {
  padding: 6rem 0;
  background: #f8fafc;
}

.challenges__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.challenge-card {
  background: white;
  padding: 2rem;
  border-radius: 16px;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid #e2e8f0;
}

.challenge-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-color: #00b4d8;
}

.challenge-card__icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.challenge-card__icon img {
  width: 48px;
  height: 48px;
}

.challenge-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 1rem;
}

.challenge-card__text {
  color: #64748b;
  line-height: 1.6;
}

.challenges__solution {
  text-align: center;
  padding: 2rem;
  background: linear-gradient(135deg, #00b4d8 0%, #0077b6 100%);
  border-radius: 16px;
  color: white;
}

.solution-text {
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.solution-text__icon {
  font-size: 2rem;
}

/* Features Section */
.features {
  padding: 6rem 0;
  background: white;
}

.features__list {
  display: flex;
  flex-direction: column;
  gap: 6rem;
}

.feature-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.feature-item--reverse {
  direction: rtl;
}

.feature-item--reverse > * {
  direction: ltr;
}

.feature-item__visual img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.feature-item__number {
  font-size: 4rem;
  font-weight: 800;
  color: #e0f2fe;
  line-height: 1;
  margin-bottom: 1rem;
}

.feature-item__title {
  font-size: 2rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 1rem;
}

.feature-item__description {
  font-size: 1.125rem;
  color: #64748b;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.feature-item__points {
  list-style: none;
  padding: 0;
}

.feature-item__points li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.75rem;
  color: #475569;
}

.feature-item__points li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #00b4d8;
  font-weight: bold;
  font-size: 1.25rem;
}

/* Specific feature styles */
.time-comparison {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 2rem;
  background: #f8fafc;
  border-radius: 12px;
}

.time-comparison__item {
  text-align: center;
}

.time-comparison__label {
  display: block;
  font-size: 0.875rem;
  color: #64748b;
  margin-bottom: 0.5rem;
}

.time-comparison__value {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: #0f172a;
}

.time-comparison__item--highlight .time-comparison__value {
  color: #00b4d8;
}

.time-comparison__arrow {
  font-size: 2rem;
  color: #cbd5e1;
}

.image-types {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
}

.image-type {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  background: #f8fafc;
  border-radius: 12px;
  flex: 1;
}

.image-type img {
  width: 48px;
  height: 48px;
}

.credibility-badges {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 50px;
}

.badge img {
  width: 24px;
  height: 24px;
}

.law-check-demo {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: #f8fafc;
  border-radius: 12px;
  margin-top: 2rem;
}

.law-check-demo__before,
.law-check-demo__after {
  flex: 1;
  padding: 1rem;
  background: white;
  border-radius: 8px;
}

.law-check-demo .label {
  display: block;
  font-size: 0.875rem;
  color: #64748b;
  margin-bottom: 0.5rem;
}

.law-check-demo .ng {
  color: #ef4444;
  text-decoration: line-through;
}

.law-check-demo .ok {
  color: #10b981;
  font-weight: 600;
}

.support-list {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.support-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: #f8fafc;
  border-radius: 8px;
}

.support-list__icon {
  width: 32px;
  height: 32px;
  color: #00b4d8;
  flex-shrink: 0;
}

/* Testimonials Section */
.testimonials {
  padding: 6rem 0;
  background: #f8fafc;
}

.testimonials__list {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.testimonial-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.testimonial-item__image {
  position: relative;
  overflow: hidden;
}

.testimonial-item__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 400px;
}

.testimonial-item__content {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.testimonial-item__clinic {
  margin-bottom: 2rem;
}

.testimonial-item__logo {
  height: 50px;
  width: auto;
  object-fit: contain;
  margin-bottom: 1rem;
}

.testimonial-item__clinic h3 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.5rem;
}

.testimonial-item__clinic p {
  color: #64748b;
  font-size: 1rem;
}

.testimonial-item__message {
  font-size: 1.25rem;
  line-height: 1.8;
  color: #475569;
  margin-bottom: 2rem;
  font-weight: 500;
}

.testimonial-item__results {
  display: flex;
  gap: 3rem;
  margin-bottom: 2rem;
}

.result-item {
  text-align: center;
}

.result-item__label {
  display: block;
  font-size: 0.875rem;
  color: #64748b;
  margin-bottom: 0.5rem;
}

.result-item__value {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  color: #00b4d8;
}

.testimonial-item__link {
  color: #00b4d8;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.3s ease;
}

.testimonial-item__link:hover {
  gap: 1rem;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .testimonial-item {
    grid-template-columns: 1fr;
  }

  .testimonial-item__image img {
    min-height: 300px;
  }

  .testimonial-item__content {
    padding: 2rem;
  }

  .testimonial-item__message {
    font-size: 1.125rem;
  }

  .testimonial-item__results {
    gap: 2rem;
  }

  .result-item__value {
    font-size: 2rem;
  }
}

/* Results Section */
.results {
  padding: 6rem 0;
  background: white;
}

.before-after {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto 4rem;
}

.before-after__item {
  padding: 2rem;
  border-radius: 16px;
}

.before-after__item--before {
  background: #f8fafc;
}

.before-after__item--after {
  background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
}

.before-after__item h3 {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 2rem;
}

.before-after__arrow {
  color: #cbd5e1;
}

.before-after__arrow svg {
  width: 60px;
  height: 60px;
}

.metrics {
  display: grid;
  gap: 1.5rem;
}

.metric {
  text-align: center;
}

.metric__label {
  display: block;
  font-size: 0.875rem;
  color: #64748b;
  margin-bottom: 0.5rem;
}

.metric__value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
}

.metric__value--highlight {
  color: #00b4d8;
  font-size: 2rem;
}

.metric__change {
  display: block;
  font-size: 0.875rem;
  color: #10b981;
  margin-top: 0.25rem;
}

.results__subtitle {
  font-size: 1.75rem;
  font-weight: 700;
  color: #0f172a;
  text-align: center;
  margin: 4rem 0 3rem;
}

.results__cases {
  margin-top: 4rem;
}

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

.case-card {
  background: #f8fafc;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.case-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 1.5rem;
  text-align: center;
}

.case-card__image {
  margin-bottom: 2rem;
}

.case-card__image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.case-card__metrics {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.case-metric {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: white;
  border-radius: 8px;
}

.case-metric--large {
  flex-direction: column;
  text-align: center;
  gap: 0.5rem;
}

.case-metric__label {
  color: #64748b;
  font-weight: 500;
}

.case-metric__value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #00b4d8;
}

.case-metric__detail {
  font-size: 0.875rem;
  color: #64748b;
}

/* Pricing Section */
.pricing {
  padding: 6rem 0;
  background: #f8fafc;
}

.pricing__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.price-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  position: relative;
  transition: all 0.3s ease;
  border: 2px solid #e2e8f0;
}

.price-card--popular {
  border-color: #00b4d8;
  transform: scale(1.05);
}

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

.price-card__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #00b4d8;
  color: white;
  padding: 0.25rem 1rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
}

.price-card__header {
  text-align: center;
  margin-bottom: 2rem;
}

.price-card__name {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.5rem;
}

.price-card__description {
  color: #64748b;
  font-size: 0.875rem;
}

.price-card__price {
  text-align: center;
  margin-bottom: 2rem;
}

.price-card__amount {
  font-size: 3rem;
  font-weight: 800;
  color: #0f172a;
}

.price-card__unit {
  font-size: 1rem;
  color: #64748b;
  margin-left: 0.5rem;
}

.price-card__custom {
  font-size: 2rem;
  font-weight: 700;
  color: #0f172a;
}

.price-card__features {
  list-style: none;
  padding: 0;
  margin-bottom: 2rem;
}

.price-card__features li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1rem;
  color: #475569;
}

.price-card__features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #00b4d8;
  font-weight: bold;
  font-size: 1.25rem;
}

.btn--block {
  display: block;
  width: 100%;
  text-align: center;
}

/* Testimonials Section */
.testimonials {
  padding: 6rem 0;
  background: #f8fafc;
}

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

.testimonial-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

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

.testimonial-card__header {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.testimonial-card__avatar {
  flex-shrink: 0;
}

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

.testimonial-card__info {
  flex: 1;
}

.testimonial-card__logo {
  height: 40px;
  width: auto;
  object-fit: contain;
  margin-bottom: 0.75rem;
}

.testimonial-card__clinic h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.25rem;
}

.testimonial-card__clinic p {
  color: #64748b;
  font-size: 0.875rem;
}

.testimonial-card__message {
  font-size: 1.125rem;
  line-height: 1.8;
  color: #475569;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonial-card__results {
  display: flex;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.result-item {
  text-align: center;
}

.result-item__label {
  display: block;
  font-size: 0.875rem;
  color: #64748b;
  margin-bottom: 0.25rem;
}

.result-item__value {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: #00b4d8;
}

.testimonial-card__link {
  color: #00b4d8;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.3s ease;
}

.testimonial-card__link:hover {
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin-bottom: 2rem;
}

.price-card__features li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1rem;
  color: #475569;
}

.price-card__features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #00b4d8;
  font-weight: bold;
  font-size: 1.25rem;
}

.btn--block {
  display: block;
  width: 100%;
  text-align: center;
}

/* Comparison Section */
.comparison {
  padding: 6rem 0;
  background: white;
}

.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 #e2e8f0;
}

.comparison-table thead th {
  background: #f8fafc;
  font-weight: 700;
  color: #0f172a;
}

.comparison-table th.highlight {
  background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
  position: relative;
}

.comparison-table .service-name {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.comparison-table .badge {
  display: inline-block;
  background: #00b4d8;
  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: #475569;
  text-align: left;
}

.comparison-table td.highlight {
  background: #f0f9ff;
  font-weight: 600;
  color: #0077b6;
}

/* Process Section */
.process {
  padding: 6rem 0;
  background: #f8fafc;
}

.process__timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.process__timeline::before {
  content: '';
  position: absolute;
  left: 60px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #cbd5e1;
}

.process-step {
  position: relative;
  padding-left: 100px;
  margin-bottom: 3rem;
}

.process-step:last-child {
  margin-bottom: 0;
}

.process-step__number {
  position: absolute;
  left: 0;
  top: 0;
  width: 48px;
  height: 48px;
  background: #00b4d8;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
}

.process-step__content {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.process-step__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.5rem;
}

.process-step__description {
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.process-step__duration {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: #e0f2fe;
  color: #0077b6;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
}

/* FAQ Section */
.faq {
  padding: 6rem 0;
  background: white;
}

.faq__list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.faq-item__question {
  width: 100%;
  padding: 1.5rem;
  background: white;
  border: none;
  text-align: left;
  font-size: 1.125rem;
  font-weight: 600;
  color: #0f172a;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

.faq-item__question:hover {
  background: #f8fafc;
}

.faq-item__icon {
  width: 24px;
  height: 24px;
  stroke: #64748b;
  stroke-width: 2;
  fill: none;
  transition: transform 0.3s ease;
}

.faq-item.is-open .faq-item__icon {
  transform: rotate(180deg);
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.is-open .faq-item__answer {
  max-height: 300px;
}

.faq-item__answer p {
  padding: 0 1.5rem 1.5rem;
  color: #64748b;
  line-height: 1.8;
}

/* CTA Section */
.cta-section {
  position: relative;
  padding: 6rem 0;
  background: linear-gradient(135deg, #0077b6 0%, #00b4d8 100%);
  color: white;
  overflow: hidden;
}

.cta-section__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.1;
  background-image: radial-gradient(circle at 20% 30%, white 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, white 0%, transparent 50%);
}

.cta-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.cta-title {
  margin-bottom: 4rem;
}

.cta-title__main {
  display: block;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.cta-title__sub {
  display: block;
  font-size: 1.25rem;
  opacity: 0.9;
}

.cta-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.cta-option {
  background: white;
  border-radius: 16px;
  padding: 2.5rem;
  text-align: left;
}

.cta-option__title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 1rem;
}

.cta-option__icon {
  font-size: 2rem;
}

.cta-option__description {
  font-size: 1rem;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.cta-form {
  color: #0f172a;
}

.cta-calendar {
  max-width: 100%;
  overflow: hidden;
}

/* TimeRex Widget カスタマイズ */
#timerex_calendar {
  max-width: 100%;
}

/* Company Section */
.company {
  padding: 6rem 0;
  background: #f8fafc;
}

.company__content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  align-items: start;
}

.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;
}

.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;
}

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

.achievements-list {
  display: grid;
  gap: 1rem;
}

.achievement {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
}

.achievement img {
  max-height: 40px;
  width: auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__content {
    max-width: 100%;
    margin-bottom: 2rem;
  }

  .hero__visual {
    order: -1;
    margin-bottom: 2rem;
  }

  .hero__image {
    max-width: 100%;
  }

  .seo-hero-right-form-wrapper {
    transform: translateY(0);
  }

  .intro-video__content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .intro-video__features {
    justify-content: center;
  }

  .cta-options {
    grid-template-columns: 1fr;
  }

  .feature-item,
  .feature-item--reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .feature-item__visual {
    order: -1;
  }

  .before-after {
    grid-template-columns: 1fr;
  }

  .before-after__arrow {
    transform: rotate(90deg);
  }

  .company__content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding: 2rem 0;
  }

  .hero__inner {
    padding: 2rem 1rem;
    display: block;
  }

  .hero__title-main {
    font-size: 2rem;
  }

  .hero__title-sub {
    font-size: 1.125rem;
  }

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

  .btn--large {
    width: 100%;
    justify-content: center;
  }

  .intro-video__title-main {
    font-size: 2rem;
  }

  .intro-video__features {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .cta-option {
    padding: 1.5rem;
  }

  .achievements-bar__inner {
    flex-direction: column;
    gap: 1rem;
  }

  .challenges__grid,
  .testimonials__grid,
  .pricing__cards,
  .case-cards {
    grid-template-columns: 1fr;
  }

  .testimonial-card__header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .price-card--popular {
    transform: none;
  }

  .cta-alternatives__buttons {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .member {
    flex-direction: column;
    text-align: center;
  }

  .process-step {
    padding-left: 70px;
  }

  .process__timeline::before {
    left: 30px;
  }

  .process-step__number {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}

/* --- 基本レイアウトとマイクロコピー 2025-07-04追加 --- */
.hero__cta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  padding: 1rem;
  flex-wrap: nowrap;
}
.cta-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.microcopy {
  padding-bottom: 0.2em;
  font-size: 1em;
  color: #333;
  font-weight: bold;
  white-space: nowrap;
}

/* --- ボタン本体 --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: bold;
  border-radius: 50px;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  border: 1px solid transparent;
  transition: transform 0.2s;
  position: relative; /* フォーカスリング等の基準 */
  z-index: 0; /* btn-wrap の波紋より手前 */
  overflow: visible; /* にじみ分はラッパー側で確保するので自由 */
}
.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  color: #fff;
  background: #007bff;
}
.btn--secondary {
  color: #007bff;
  background: #fff;
  border-color: #dee2e6;
}

.btn__arrow {
  width: 1.2em;
  height: 1.2em;
  stroke: currentColor;
  stroke-width: 2;
  margin-left: 0.5em;
}

/* --- btn-wrap : 波紋専用のラッパー --- */
.btn-wrap {
  position: relative;
  display: inline-block;
  isolation: isolate; /* 兄弟への波及を遮断 */
  border-radius: 50px; /* 疑似要素とピッタリ合わせる */
}

/* --- 波紋アニメーション --- */
.btn--animated::before,
.btn--animated::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: -1; /* ボタン背景より背面なので色被りしない */
  pointer-events: none;
  animation: wave 1.5s ease-out infinite;
}
.btn--animated::after {
  animation-delay: 0.75s;
}

.btn--primary.btn--animated::before,
.btn--primary.btn--animated::after {
  background: #4dabf7;
}

.btn--secondary.btn--animated::before,
.btn--secondary.btn--animated::after {
  background: #4dabf7;
}
@keyframes wave {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  100% {
    transform: scale(1.3);
    opacity: 0;
  }
}
