/* ===========================
   hero
   =========================== */
.hero {
  position: relative;
  padding: var(--space-section) 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0), rgba(255, 255, 255, 0.75)), url(../img/case04.jpg) center / cover no-repeat;
  margin-top: 74px;
}

/* テキストを半分より少し右側に寄せる */
.hero .container {
  position: relative;
  width: 40%;
  margin-right: 10%;
  text-align: left;
}

/* CTAボタン */
.hero__cta {
  margin-left: 0;
}

.hero__title {
  color: var(--color-accent);
}

.hero__lead {
  color: var(--color-text-main);
  margin-bottom: var(--space-block);
}

.hero__title, .hero__lead {
  text-shadow: 1px 0px 10px rgba(255, 255, 255, 1)
}

/* ===========================
   problem
   =========================== */
.problem {
  padding: var(--space-section) 0;
  background: var(--color-bg-light);
}

.problem__title {
  text-align: center;
  color: var(--color-accent);
}

.problem__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  max-width: 800px;
  margin: 0 auto;
}

.problem__item {
  position: relative;
  padding-left: 3.6rem;
  color: var(--color-text-main);
  line-height: 1.7;
}

/* Google Material Symbols の check_circle を mask で使用 */
.problem__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2rem;
  width: 2.4rem;
  height: 2.4rem;
  background-color: var(--problem-check-color);
  border-radius: 50%;
  display: inline-block;

  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'><path fill='white' d='M22.55 31.95 34.1 20.4l-2.15-2.15-9.4 9.4-4.5-4.5-2.15 2.15ZM24 44q-4.1 0-7.75-1.575T9.2 38.2q-2.75-2.75-4.325-6.4Q3.3 28.15 3.3 24t1.575-7.8Q6.45 12.55 9.2 9.8q2.75-2.75 6.4-4.325Q19.25 3.9 24 3.9t7.8 1.575q3.65 1.575 6.4 4.325 2.75 2.75 4.325 6.4Q44.1 19.85 44.1 24t-1.575 7.8q-1.575 3.65-4.325 6.4-2.75 2.75-6.4 4.325Q28.1 44 24 44Z'/></svg>");
  mask-size: 100%;
  mask-repeat: no-repeat;
  mask-position: center;

  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'><path fill='white' d='M22.55 31.95 34.1 20.4l-2.15-2.15-9.4 9.4-4.5-4.5-2.15 2.15ZM24 44q-4.1 0-7.75-1.575T9.2 38.2q-2.75-2.75-4.325-6.4Q3.3 28.15 3.3 24t1.575-7.8Q6.45 12.55 9.2 9.8q2.75-2.75 6.4-4.325Q19.25 3.9 24 3.9t7.8 1.575q3.65 1.575 6.4 4.325 2.75 2.75 4.325 6.4Q44.1 19.85 44.1 24t-1.575 7.8q-1.575 3.65-4.325 6.4-2.75 2.75-6.4 4.325Q28.1 44 24 44Z'/></svg>");
  -webkit-mask-size: 100%;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
}

/* ===========================
   features
   =========================== */
.features {
  padding: var(--space-section) 0;
}

.features__title {
  text-align: center;
  color: var(--color-accent);
}

.features__list {
  display: flex;
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

.features__item {
  flex: 1;
}

.features__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: var(--space-sm);
}

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

/* ===========================
   strength
   =========================== */
.strength {
  padding: var(--space-section) 0;
  background: var(--color-bg-light);
}

.strength__title {
  color: var(--color-accent);
  text-align: center;
}

.strength__list {
  display: flex;
  gap: var(--space-lg);
}

.strength__item {
  flex: 1;
  padding: var(--space-md);
  background: #fff;
  border-radius: 8px;
  border: 1px solid var(--color-border);
}

.strength__icon svg {
  width: 100%;
  height: 100%;
}

.strength__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-sm);
  background-color: var(--color-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff; /* SVGのstroke色 */
}

/* ===========================
   case
   =========================== */
.case {
  padding: var(--space-section) 0;
  background: #fff;
}

.case__title {
  text-align: center;
  color: var(--color-accent);
}

.case__list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
}

.case__item {
  flex: 1 1 calc(50% - var(--space-lg));
  background: var(--color-bg-light);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.case__img {
  width: 100%;
  height: auto;
}

.case__body {
  padding: var(--space-lg);
}

.case__label {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  padding: 0.4rem 1rem;
  font-size: var(--font-sm);
  border-radius: 4px;
  margin-bottom: var(--space-sm);
}

/* ===========================
   Greeting
   =========================== */
.greeting {
background: var(--color-bg-light);
padding: var(--space-section) 0;
}

.greeting__title {
  color: var(--color-accent);
  text-align: center;
}

/* 横並びレイアウト */
.greeting__inner {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  margin-top: var(--space-lg);
}

/* 左：画像 */
.greeting__img {
  flex: 1;
  max-width: 33%;
}

.greeting__img img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
}

/* 右：白背景ボックス */
.greeting__content {
  flex: 2;
}

/* h3（キャッチコピー） */
.greeting__catch {
  color: var(--color-secondary);
}

/* 挨拶文 */
.greeting__text {
  color: var(--color-text-main);
}

/* ===========================
   flow
   =========================== */
.flow {
  padding: var(--space-section) 0;
}

.flow__title {
  color: var(--color-accent);
  text-align: center;
}

/* タイムライン全体 */
.flow__list {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

/* 各項目 */
.flow__item {
  position: relative;
  padding-bottom: var(--space-xl);
}

/* 各項目の縦ライン（番号の中心に揃える） */
.flow__item::before {
  content: "";
  position: absolute;
  left: 20px; /* ← 丸番号40pxの中心 */
  top: 40px;  /* 丸番号の下からライン開始 */
  bottom: 0;
  width: 2px;
  background: var(--color-accent);
}

/* 最後の項目だけライン非表示 */
.flow__item:last-child::before {
  display: none;
}

/* 丸番号（左固定） */
.flow__num {
  position: absolute;
  left: 0;
  top: 0;
  width: 40px;
  height: 40px;
  background: var(--color-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  z-index: 2;
}

/* 本文 */
.flow__body {
  margin-left: 60px;
  color: var(--color-text-main);
  line-height: 1.7;
}

/* ===========================
   Voice
   =========================== */
.voice {
  padding: var(--space-section) 0;
  background: var(--color-bg-light);
}

.voice__title {
  color: var(--color-accent);
  text-align: center;
}

.voice__list {
  display: flex;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.voice__item {
  flex: 1 1 calc(50% - var(--space-lg));
  background: #fff;
  padding: var(--space-lg);
  border-radius: 8px;
  border: 1px solid var(--color-border);
  position: relative;
  text-align: center;
  padding-top: calc(var(--space-lg) + 60px); /* ← 画像分の余白を追加 */
  margin-top: calc(var(--space-lg) + 20px);
}

/* 丸画像（カード上部に配置） */
.voice__img {
  max-width: 160px;
  aspect-ratio: 1 / 1;
  height: auto;
  border-radius: 50%;
  overflow: hidden;
  position: absolute;
  top: -80px; /* ← カードから少し飛び出す */
  left: 50%;
  transform: translateX(-50%);
  border: 3px solid #fff; /* カードと馴染ませる */
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  margin-top: var(--space-sm);
}

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

.voice__name {
  font-size: var(--font-sm);
  color: var(--color-secondary);
  margin-bottom: var(--space-sm);
}

.voice__comment {
  font-size: var(--font-md);
  color: var(--color-text-main);
  line-height: 1.7;
}

/* ===========================
   price
   =========================== */
.price {
  padding: var(--space-section) 0;
}

.price__title {
  color: var(--color-accent);
  text-align: center;
}

.price__table {
  width: 100%;
  border-collapse: collapse;
  margin-top: var(--space-lg);
}

.price__table th,
.price__table td {
  padding: var(--space-md);
  border: 1px solid var(--color-border);
  font-size: var(--font-md);
}

.price__table th {
  background: var(--color-bg-light);
  font-weight: 700;
}

/* ===========================
   faq
   =========================== */
.faq {
  padding: var(--space-section) 0;
}

.faq__title {
  color: var(--color-accent);
  text-align: center;
}

.faq__item {
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-md) 0;
}

/* 質問部分 */
.faq__q {
  font-size: var(--font-md);
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: color .3s;
}

/* アイコン */
.faq__icon {
  font-size: 2.4rem;
  line-height: 1;
  transition: transform .3s, color .3s;
}

/* アンサー（閉じた状態） */
.faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
  padding-top: 0;
  font-size: var(--font-md);
  color: var(--color-secondary);
}

/* 開いた状態 */
.faq__item.active .faq__a {
  padding-top: var(--space-sm);
}

/* 開いたときの色変更 */
.faq__item.active .faq__q {
  color: var(--color-accent);
}

/* ＋ → ×（45度回転） */
.faq__item.active .faq__icon {
  transform: rotate(45deg);
  color: var(--color-accent);
}

/* ===========================
   cta
   =========================== */
.cta {
  padding: var(--space-section) 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url(../img/case05.jpg) center / cover no-repeat;
  text-align: center;
}

.cta__title {
  color: #fff;
}

.cta__btn {
  background: var(--color-accent);
  color: #fff;
  margin-top: var(--space-block);
}

.cta p {
  color: #fff;
}

/* ===========================
   Contact
   =========================== */
/* Section */
.contact {
  padding: var(--space-section) 0;
  background: var(--color-bg-light);
}

.contact__title {
  color: var(--color-accent);
  text-align: center;
}

   /* Wrapper */
.contact__wrapper {
  display: flex;
  justify-content: center;
  margin-top: var(--space-lg);
}

/* Form */
.contact__form {
  width: 100%;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

/* Row（PCは横並び） */
.contact__row {
  display: flex;
  align-items: center;
  gap: 24px;
}

/* ラベル */
.contact__label {
  width: 35%;
  font-weight: 600;
  padding-top: 10px;
  font-size: var(--font-md);
}

/* 必須マーク */
.required {
  color: #e60033;
  font-size: 12px;
  margin-left: 4px;
}

/* 入力欄 */
.contact__input,
.contact__textarea,
.contact__form select {
  flex: 1;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: var(--font-md);
}

.contact__input:focus,
.contact__textarea:focus,
.contact__form select:focus {
  border-color: var(--color-accent);
  outline: none;
}

/* テキストエリアは高さ調整 */
.contact__row--textarea .contact__label {
  padding-top: 4px;
}

/* 送信ボタン */
.contact__submit {
  text-align: center;
  margin-top: var(--space-md);
}

.contact__btn {
  background: var(--color-accent);
  color: #fff;
  padding: 14px 40px;
  font-size: 18px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: 0.3s;
  display: inline-block;
}

.contact__btn:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

/* ===========================
   company
   =========================== */
.company {
  padding: var(--space-section) 0;
  background: #fff;
}

.company__title {
  text-align: center;
  color: var(--color-accent);
}

.company__table {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  border-collapse: collapse;
  font-size: var(--font-md);
}

.company__table th,
.company__table td {
  padding: var(--space-md);
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}

.company__table th {
  width: 30%;
  font-weight: 700;
  color: var(--color-secondary);
  background: var(--color-bg-light);
}

.company__table td {
  color: var(--color-text-main);
}

/* ===========================
   Company Map
   =========================== */
.company__map {
  margin-top: var(--space-lg);
  margin-left: auto;
  margin-right: auto;
  max-width: 800px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.company__map iframe {
  width: 100%;
  height: 320px;
  border: 0;
}

/* ===========================
   footer
   =========================== */
.footer {
  padding: var(--space-lg) 0;
  background: var(--color-accent);
  color: #fff;
  text-align: center;
}

.footer__copy {
  font-size: var(--font-sm);
}
