html {
  scroll-behavior: smooth;
}

#contact {
  scroll-margin-top: 80px; /* ヘッダー高さ分 */
}


/* ------------------------- */
/* FV（ファーストビュー） */
.irodori-fv {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  margin: 0;
  padding: 0;
  max-width: none;
}

.irodori-fv img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

/* FVオーバーレイ */
.irodori-fv .irodori-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  padding: 0 20px;
}

/* ------------------------- */
/* 共通セクション */
section {
  padding: 80px 20px;
  max-width: 1200px;
  margin: auto;
}

h1 {
  font-weight: 700 !important;
  color: #fff;
}

h2 {
  font-weight: 600 !important;
  color: #666633;
  margin-bottom: 20px;
  padding: 0;
}

h3 {
  font-weight: 800 !important;
  color: #336699;
  margin-bottom: 20px;
  padding: 0;
}


img {
  width: 100%;
  border-radius: 10px;
}

ul {
  padding-left: 20px;
}

.irodori-flex p {
  font-size: 16px;
  letter-spacing: 0.1em; /* ← 数値調整 */
  line-height: 1.9;
  margin: 10px 10px 20px 20px;
}


/* ------------------------- */
/* ボタン */
.irodori-btn {
  display: inline-block;
  padding: 12px 24px;
  margin: 10px 10px 0 0;
  background: #EDE3D4;
  color: #333;
  text-decoration: none;
  border-radius: 5px;
  transition: 0.3s;
}

.irodori-btn:hover {
  opacity: 0.8;
}

/* ------------------------- */
/* フレックス */
.irodori-flex {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.irodori-flex div {
  flex: 1 1 300px;
  max-width: 500px;
}

/* ------------------------- */
/* 特徴セクション */
/* ------------------------- */
/* 特徴セクション */
.irodori-features-section {
  width: 100%;
  background: #f7f7f5;
  padding: 100px 0;
}

/* タイトル */
.irodori-title {
  text-align: center;
  margin-bottom: 30px;
  font-weight: 700;
  color: #666633;
}

/* ===== PC：2行レイアウト ===== */
.irodori-features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* ← 4列 */
  gap: 20px;
}


/* カード（白抜き＋黒枠） */
.irodori-feature {
  background: #fff;          /* 白抜き */
  border: 1px solid #666;    /* 黒線 */
  padding: 25px;
  text-align: center;
  border-radius: 1px;        /* 角ちょい残す or 0でもOK */
  font-weight: 600;
  transition: 0.3s;

  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100px;
}



/* ===== タブレット ===== */
@media (max-width: 1024px) {
  .irodori-features-grid {
    grid-template-columns: repeat(2, 1fr); /* 2列 */
  }
}

/* ===== スマホ ===== */
@media (max-width: 768px) {
  .irodori-features-grid {
    grid-template-columns: 1fr; /* 1列 */
  }
}
/* ------------------------- */
/* プラン */
.irodori-plan {
  display: flex;
  gap: 40px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin: 10px 10px 20px 20px;
}

.irodori-plan img {
  flex: 1 1 400px;
  max-width: 500px;
}

.irodori-plan div {
  flex: 1 1 300px;
  max-width: 500px;
}

/* ------------------------- */
/* 暮らし */
.irodori-life {
  max-width: 1100px;
  margin: auto;
  padding: 80px 20px;
}

.irodori-life h2 {
  text-align: center;
  margin-bottom: 40px;
}

.irodori-life .life-block {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-bottom: 50px;
}

.irodori-life .life-block:nth-child(odd) {
  flex-direction: row;
}

.irodori-life .life-block:nth-child(even) {
  flex-direction: row-reverse;
}

.irodori-life img {
  width: 50%;
  object-fit: cover;
}

.irodori-life .text {
  width: 50%;
}

.irodori-life h3 {
  margin-bottom: 10px;
}

.irodori-life p {
  line-height: 1.8;
}

/* スマホ */
@media (max-width: 768px) {
  .irodori-life .life-block {
    flex-direction: column !important;
  }

  .irodori-life img,
  .irodori-life .text {
    width: 100%;
  }
}

/* ------------------------- */
/* CTA */
.irodori-cta {
  background: #EDE3D4;
  text-align: center;
  padding: 100px 20px;
}

/* ------------------------- */
/* 比較＋ターゲット */
/* ------------------------- */


/* sectionの制限を解除（超重要） */
section {
  max-width: none;
  margin: 0;
  padding: 80px 0;
}

/* ------------------------- */
/* 背景用（外側100%） */
.irodori-section-wide {
  width: 100%;
  background: #f7f7f5;
}

/* 中身（中央1200px） */
.irodori-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;

  display: flex;
  gap: 40px;
}

/* カード */
.irodori-box {
  flex: 1;
  background: #fff;
  padding: 40px;
  border-radius: 3px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  transition: 0.4s;
}


/* タイトル */
.irodori-box h2 {
  font-weight: 800;
  color: #666633;
  margin-bottom: 20px;
  position: relative;
  padding-left: 20px;
}

/* 左ライン */
.irodori-box h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 4px;
  height: 24px;
  background: #caa46c;
}

/* テキスト */
.irodori-box p {
  line-height: 1.9;
  color: #555;
}

/* リスト */
.irodori-box ul {
  list-style: none;
  padding: 0;
}

.irodori-box li {
  margin-bottom: 12px;
  padding-left: 24px;
  position: relative;
}

.irodori-box li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #caa46c;
}

/* ------------------------- */
/* スマホ対応 */
@media (max-width: 768px) {
  .irodori-inner {
    flex-direction: column;
    gap: 20px;
  }
}

/* ------------------------- */
/* フェードイン */
.irodori-fade {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s;
}

.irodori-fade.irodori-visible {
  opacity: 1;
  transform: translateY(0);
}

/* スマホは縦並びにしてテキスト左揃え */
@media (max-width: 768px) {
  .irodori-life > div {
    flex-direction: column !important;
  }
  .irodori-life > div img,
  .irodori-life > div h3,
  .irodori-life > div p {
    width: 100%;
    margin: 10px 0 0 0;
    text-align: left;
  }
}