/* ===========================
   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/hero-img-pc.jpg) center / cover no-repeat;
  margin-top: 74px;
}

/* テキストを半分より少し右側に寄せる */
.hero .container {
  position: relative;
  width: 40%;
  margin-right: 5%;
  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: 0 1 calc((100% - var(--space-lg)) / 2);
  box-sizing: border-box;

  background: var(--color-bg-light);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
}

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

/* カード画像切り替え用CSS */
.case-toggle__input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.case-toggle__image {
  position: relative;
  display: block;
  overflow: hidden;
  cursor: pointer;
}

.case-toggle__image img {
  display: block;
  width: 100%;
  transition: opacity 0.35s ease;
}

.case-toggle__after {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  opacity: 0;
}

/* クリック後 */
.case-toggle__input:checked
  + .case-toggle__image
  .case-toggle__before {
  opacity: 0;
}

.case-toggle__input:checked
  + .case-toggle__image
  .case-toggle__after {
  opacity: 1;
}

/* BEFORE・AFTERラベル */
.case-toggle__before-label,
.case-toggle__after-label {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 5px 10px;
  color: #fff;
  background: rgba(0, 0, 0, 0.7);
  font-size: 14px;
}

.case-toggle__after-label {
  display: none;
}

.case-toggle__input:checked
  + .case-toggle__image
  .case-toggle__before-label {
  display: none;
}

.case-toggle__input:checked
  + .case-toggle__image
  .case-toggle__after-label {
  display: block;
}

/* 操作案内 */
.case-toggle__guide {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 4px;
  color: var(--color-text-main);
  background: rgba(255, 255, 255, 0.9);
  font-size: var(--font-xxs);
}

.case-toggle__input:checked
  + .case-toggle__image
  .case-toggle__guide {
  font-size: 0;
}

.case-toggle__input:checked
  + .case-toggle__image
  .case-toggle__guide::after {
  content: "クリックして施工前を見る";
  font-size: var(--font-xxs);
}

/* ===========================
   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;
}

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

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

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

.sns__item {
  flex: 0 1 calc((100% - var(--space-lg)) / 2);
  box-sizing: border-box;
  overflow: hidden;
}

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

.sns a {
  width: 100%;
  color: var(--color-text-main);
}

/* ==========================================================================
   💻 news ベース記述（PC・タブレット用：横3カラム）
   ========================================================================== */
.news {
  padding: var(--space-section) 0;
  background: var(--color-bg-light);
}

   .news__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 👈 最初から3カラム */
  gap: var(--space-md, 24px);
  margin-bottom: 40px;
}

.news__item {
  background-color: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.news__item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.news__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.news__img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: #f5f5f5;
}

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

.news__body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 20px;
}

.news__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.news__date {
  font-size: 0.875rem;
  color: #777;
}

.news__category {
  font-size: 0.75rem;
  font-weight: bold;
  padding: 2px 8px;
  background-color: #f0f0f0;
  border-radius: 4px;
}

.news__item-title {
  font-size: 1.125rem;
  line-height: 1.5;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news__excerpt {
  color: #555;
  font-size: 0.875rem;
  line-height: 1.6;
}

.news__more {
  text-align: center;
}

/* ==========================================================================
   📄 パターン2（画像なし・テキスト2段組み）用CSS
   ========================================================================== */
/* 💻 PC・タブレット用（横2段組み 1/3 と 2/3） */
.news__layout-text {
  display: grid;
  grid-template-columns: 1fr 2fr; /* 👈 左1/3 : 右2/3 の比率 */
  gap: var(--space-lg, 48px);
  align-items: start;
}

.news__title-text {
  margin-bottom: 16px;
}

.news__more-text {
  display: block;
}

.news__more-text .btn-text {
  font-size: 0.875rem;
  color: #333;
  text-decoration: none;
  font-weight: bold;
}

.news__more-text .btn-text:hover {
  text-decoration: underline;
}

/* 右側リスト構造 */
.news__text-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid #e0e0e0; /* 1行目の上の線 */
}

.news__text-item {
  border-bottom: 1px solid #e0e0e0; /* 各行の下の線 */
}

.news__text-link {
  display: flex;
  align-items: center;
  padding: 18px 0;
  text-decoration: none;
  color: inherit;
  transition: background-color 0.2s;
}

.news__text-link:hover {
  background-color: #fafafa; /* ほんのりホバー感 */
}

.news__text-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 220px; /* 👈 日付とカテゴリの幅を固定して、タイトルの位置を揃える */
  flex-shrink: 0;
}

.news__text-date {
  font-size: 0.875rem;
  color: #777;
}

.news__text-category {
  font-size: 0.75rem;
  font-weight: bold;
  padding: 2px 8px;
  background-color: #f0f0f0;
  border-radius: 4px;
}

.news__text-title {
  font-size: 1rem;
  line-height: 1.5;
  white-space: nowrap; /* 💻 PC時は1行で収める（はみ出しは「...」にする） */
   Sherwood-overflow: hidden;
  text-overflow: ellipsis;
  flex-grow: 1;
}

/* ===========================
   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: block;
  width: fit-content;
  margin: 0 auto;
}

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

/* Contact Form 7 レスポンシブ対応 */
.contact__wrapper,
.contact__wrapper .wpcf7,
.contact__wrapper form {
  min-width: 0;
}

.contact__row {
  min-width: 0;
}

.contact__row .wpcf7-form-control-wrap {
  flex: 1;
  width: 100%;
  min-width: 0;
}

.contact__input,
.contact__textarea,
.contact__form select {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.contact__textarea {
  resize: vertical;
}

/* ===========================
   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-xxl) 0;
  background: var(--color-accent);
  color: #fff;
  text-align: center;
}

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