/* --- LIFESTYLE LP 専用デザイン --- */

.page-lifestyle-lp {
  background-color: #fff;
  overflow-x: hidden;
}

/* 共通コンテナが中央に来るように強制 */
.page-lifestyle-lp .l-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 2. ストーリー本文：ここを狭くするのがコツです（800px） */
.ls-story-content-section {
  max-width: 800px;
  margin: 60px auto 100px;
  font-size: 16px;
  line-height: 2.2;
  color: #333;
}

.ls-story-inner p {
  margin-bottom: 2.5em; /* 段落の間を空ける */
}

.page-lifestyle-lp .ls-hero {
  position: relative;
  padding: 120px 0;
  background-size: cover;
  background-position: center;
  text-align: center;
  color: #fff;
}
.page-lifestyle-lp .ls-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 30, 60, 0.6);
}
.page-lifestyle-lp .ls-hero-content {
  position: relative;
  z-index: 2;
}
.page-lifestyle-lp .ls-title {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.4;
}

/* 悩みと解決のグリッド */
.page-lifestyle-lp .ls-logic-grid {
  display: flex;
  gap: 30px;
  margin-bottom: 80px;
}
.page-lifestyle-lp .ls-logic-box {
  flex: 1;
  padding: 40px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}
.page-lifestyle-lp .box-problem {
  border-top: 4px solid #adb5bd;
  background: #f8f9fa;
}
.page-lifestyle-lp .box-solution {
  border-top: 4px solid #f39800;
}

.page-lifestyle-lp .box-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 20px;
  text-align: center;
}
.page-lifestyle-lp .box-text {
  font-size: 15px;
  line-height: 1.8;
}

/* CTA セクション */
.page-lifestyle-lp .ls-cta-section {
  background: #0056b3;
  padding: 60px 40px;
  border-radius: 20px;
  color: #fff;
  text-align: center;
}
.page-lifestyle-lp .cta-btn-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}
.page-lifestyle-lp .cta-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 280px;
  padding: 18px 25px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  color: #fff;
  transition: 0.3s;
}
.page-lifestyle-lp .btn-blue {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid #fff;
}
.page-lifestyle-lp .btn-orange {
  background: #f39800;
}

@media screen and (max-width: 768px) {
  .page-lifestyle-lp .ls-logic-grid {
    flex-direction: column;
  }
  .page-lifestyle-lp .cta-btn-group {
    flex-direction: column;
    align-items: center;
  }
}

/* --- Lifestyle Visual Tiles --- */
.ls-visual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.ls-tile-card {
  position: relative;
  aspect-ratio: 1 / 1; /* 正方形タイル */
  overflow: hidden;
  border-radius: 4px;
}

.ls-tile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.ls-tile-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 50%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  color: #fff;
}

.ls-tile-title {
  font-size: 16px;
  font-weight: bold;
  margin-top: 5px;
}

.ls-tile-tag {
  font-size: 10px;
  background: #0056b3;
  padding: 2px 8px;
  border-radius: 2px;
}

.ls-tile-card:hover .ls-tile-image img {
  transform: scale(1.1);
}

/* --- LIFESTYLE DETAIL --- */
.ls-main-visual {
  position: relative;
  height: 70vh; /* 画面の7割くらいの迫力 */
  min-height: 400px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
}
.ls-visual-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}
.ls-visual-text {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 20px;
}
.ls-visual-text h1 {
  font-size: clamp(24px, 5vw, 42px);
  font-weight: 800;
  margin-bottom: 20px;
}
.ls-tag {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: #0056b3;
  padding: 4px 16px;
  border-radius: 2px;
  margin-bottom: 20px;
  display: inline-block;
}

/* Story Content */
.ls-story-content {
  max-width: 800px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 2;
  color: #444;
}

/* Feature Highlights */
.highlight-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.highlight-item {
  background: #fff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border-top: 5px solid #0056b3;
}
.h-label {
  font-size: 10px;
  font-weight: 800;
  color: #0056b3;
  margin-bottom: 10px;
  letter-spacing: 0.1em;
}
.highlight-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #222;
}
.highlight-text {
  font-size: 14px;
  line-height: 1.8;
  color: #555;
}

/* Final CTA */
.ls-final-cta {
  background: #f4f7f9;
  padding: 80px 40px;
  border-radius: 20px;
  text-align: center;
}
.cta-title {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.5;
  color: #003d7a;
}
.cta-btns {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}
.cta-btns a {
  display: inline-block;
  padding: 18px 40px;
  border-radius: 50px;
  font-weight: bold;
  text-decoration: none;
  min-width: 250px;
  transition: 0.3s;
}
.btn-main {
  background: #0056b3;
  color: #fff;
}
.btn-sub {
  border: 2px solid #0056b3;
  color: #0056b3;
}
.cta-btns a:hover {
  transform: translateY(-3px);
  opacity: 0.8;
}

@media screen and (max-width: 768px) {
  .highlight-grid {
    grid-template-columns: 1fr;
  }
  .cta-btns {
    flex-direction: column;
    align-items: center;
  }
}

/* --- 5. 最終CTA（背景デザイン込み） --- */
.ls-final-cta {
  margin-top: 100px;
  padding: 100px 40px;
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  text-align: center;
  /* ★背景の設定：iemachiのブランドカラーか、薄い街並みの画像 */
  background-color: #002244;
  background-image: linear-gradient(135deg, rgba(0, 86, 179, 0.9) 0%, rgba(0, 34, 68, 0.9) 100%);
  color: #fff;
}

/* さりげない装飾（背景にiemachiのロゴや家アイコンを薄く配置） */
.ls-final-cta::before {
  content: "\f015"; /* FontAwesomeの家アイコン */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  font-size: 300px;
  bottom: -50px;
  right: -50px;
  opacity: 0.05;
  transform: rotate(-15deg);
}

.ls-final-cta .cta-inner {
  position: relative;
  z-index: 2;
}

.ls-final-cta .cta-title {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 20px;
  color: #fff;
}

.ls-final-cta .cta-desc {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 40px;
  opacity: 0.9;
}

/* ボタンのデザインを更に洗練 */
.ls-final-cta .cta-btns {
  display: flex;
  justify-content: center;
  gap: 30px;
}

.ls-final-cta .cta-btns a {
  padding: 20px 50px;
  font-size: 18px;
  font-weight: bold;
  border-radius: 60px;
  transition: all 0.3s ease;
}

.ls-final-cta .btn-main {
  background: #f39800; /* 目立つオレンジ */
  color: #fff;
  box-shadow: 0 10px 25px rgba(243, 152, 0, 0.4);
}

.ls-final-cta .btn-sub {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.ls-final-cta a:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

/* --- レイアウトの幅制限 --- */
.ls-detail-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* ストーリー部分：文字を読みやすくするため幅を800pxに制限 */
.ls-story-content-wrapper {
  max-width: 850px;
  margin: 0 auto 100px;
  padding: 0 20px;
}

/* エディタ（本文）の装飾 */
.ls-story-inner {
  font-size: 16px;
  line-height: 2.2; /* 行間をゆったり */
  color: #444;
}
.ls-story-inner p {
  margin-bottom: 2em;
}

/* 3. 街・家ブロック */
.highlight-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 100px;
}

.highlight-item {
  background: #fcfcfc;
  padding: 40px;
  border-radius: 10px;
  border: 1px solid #eee;
}

/* 4. WORKSエリア */
.ls-related-works {
  margin-bottom: 100px;
}

.potal-card-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* 5. CTAエリア */
.ls-final-cta {
  background: #003d7a;
  background: linear-gradient(135deg, #003d7a 0%, #0056b3 100%);
  padding: 80px 20px;
  border-radius: 20px;
  color: #fff;
  text-align: center;
}

.cta-btns {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.cta-btns a {
  display: block;
  width: 280px;
  padding: 18px;
  border-radius: 50px;
  font-weight: bold;
  text-decoration: none;
}

.btn-roadmap {
  background: #f39800;
  color: #fff;
}
.btn-madorizu {
  border: 2px solid #fff;
  color: #fff;
}

/* スマホ対応 */
@media screen and (max-width: 768px) {
  .highlight-grid {
    grid-template-columns: 1fr;
  }
  .potal-card-grid-3 {
    grid-template-columns: 1fr;
  }
  .cta-btns {
    flex-direction: column;
    align-items: center;
  }
}
/* --- 1. ヒーローセクションのデザイン装飾 --- */
.ls-hero {
  height: 70vh;
  min-height: 500px;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background-size: cover;
  background-position: center;
}

.ls-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.6) 100%);
}

.ls-visual-text {
  position: relative;
  z-index: 10;
  color: #fff;
  text-align: center;
  padding: 0 20px;
}

.ls-tag {
  background: #0056b3;
  padding: 4px 16px;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 0.1em;
  border-radius: 2px;
  display: inline-block;
  margin-bottom: 15px;
}

.ls-main-title {
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 20px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.ls-lead-box {
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px); /* すりガラス効果 */
  padding: 20px 30px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.ls-lead-text {
  font-size: 16px;
  line-height: 1.6;
  background: rgba(0, 0, 0, 0.3); /* テキストの可読性アップ */
  display: inline-block;
  padding: 10px 20px;
}

/* --- 2. ストーリー本文の装飾（固定ページ風） --- */
.ls-article-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 20;
}

.ls-story-content-section {
  background: #fff;
  padding: 80px 100px;
  border-radius: 20px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
  margin-bottom: 80px;
}

.ls-story-inner {
  font-size: 17px;
  line-height: 2.2;
  color: #333;
}

.ls-story-inner p {
  margin-bottom: 2.5em;
}

/* --- 4. 建築実例のレイアウト強制修正 --- */
.works-grid-wrapper {
  margin: 40px 0 100px;
}

.potal-card-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr) !important; /* 強制的に3列 */
  gap: 30px;
}

/* カードの中身が崩れないように調整 */
.potal-card-grid-3 .c-card {
  width: 100% !important;
  max-width: none !important;
}

/* --- スマホ対応 --- */
@media screen and (max-width: 768px) {
  .ls-story-content-section {
    padding: 40px 20px;
  }
  .ls-main-title {
    font-size: 24px;
  }
  .potal-card-grid-3 {
    grid-template-columns: 1fr !important;
  }
  .highlight-grid {
    grid-template-columns: 1fr;
  }
}

/* --- 2. 本文エディタ部分の装飾（固定ページ風） --- */
.ls-content-wrapper {
  background: #fff;
  position: relative;
  z-index: 20;
  margin-top: -50px; /* ヒーローに少し食い込ませる */
  padding: 0 20px;
}

.ls-story-section {
  max-width: 800px; /* ここを絞る */
  margin: 0 auto;
  background: #fff;
  padding: 80px 60px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
  border-radius: 10px;
}

.ls-story-inner {
  font-size: 16px;
  line-height: 2.2;
  color: #333;
}
.ls-story-inner p {
  margin-bottom: 2.5em;
}

/* --- 4. 建築実例のグリッド（崩れ修正） --- */
.page-lifestyle-lp .potal-card-grid-3 {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important; /* 強制的に3列にする */
  gap: 30px !important;
  width: 100% !important;
  margin-top: 30px;
}

/* カード自体の横幅を自動にする（潰れ防止） */
.page-lifestyle-lp .potal-card-grid-3 .c-card {
  width: auto !important;
  max-width: 100% !important;
}

/* --- 5. CTAエリア --- */
.ls-final-cta {
  background: #003d7a;
  background: linear-gradient(135deg, #003d7a 0%, #0056b3 100%);
  padding: 80px 20px;
  border-radius: 15px;
  color: #fff;
  text-align: center;
  margin: 80px 0;
}

/* スマホ対応 */
@media screen and (max-width: 768px) {
  .ls-story-section {
    padding: 40px 20px;
  }
  .page-lifestyle-lp .potal-card-grid-3 {
    grid-template-columns: 1fr !important;
  }
  .highlight-grid {
    grid-template-columns: 1fr;
  }
  .ls-main-title {
    font-size: 22px;
  }
}

/* --- 1. ヒーローセクションの文字デザイン --- */
.ls-hero {
  height: 60vh;
  min-height: 450px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  position: relative;
}

.ls-visual-text {
  position: relative;
  z-index: 10;
  color: #fff;
  text-align: center;
}

.ls-main-title {
  font-size: 36px;
  font-weight: 800;
  margin: 20px 0;
  line-height: 1.4;
  letter-spacing: 0.05em;
}

.ls-lead-text {
  font-size: 16px;
  font-weight: 500;
  border-top: 1px solid rgba(255, 255, 255, 0.4);
  padding-top: 15px;
  display: inline-block;
}

/* --- 2. 本文エディタ部分の装飾（幅を絞る） --- */
.ls-article-wrapper {
  background: #fff;
  padding: 60px 20px;
}

.ls-story-section {
  max-width: 750px; /* ★読みやすい幅に限定 */
  margin: 0 auto;
  font-size: 16px;
  line-height: 2.2;
  color: #333;
}

.ls-story-inner p {
  margin-bottom: 2.5em;
}

/* --- 4. 建築実例のレイアウト（幅広・3列） --- */
.ls-works-grid {
  display: flex; /* GridではなくFlexboxで管理するほうが安定します */
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 80px;
}

/* 建築実例カードの幅を固定（1100px / 3枚分） */
.ls-works-grid .c-card {
  flex: 1; /* 均等に広がる */
  min-width: 300px; /* これより小さくなると改行する */
  max-width: calc(33.333% - 20px); /* 3枚並びを維持 */
}

/* カード内デザインの微調整（潰れ防止） */
.ls-works-grid .c-card__thumb {
  height: 200px; /* サムネイルの高さをしっかり確保 */
}

/* --- 5. CTAエリア --- */
.ls-final-cta {
  background: #003d7a;
  background: linear-gradient(135deg, #003d7a 0%, #0056b3 100%);
  padding: 80px 20px;
  border-radius: 15px;
  color: #fff;
  text-align: center;
}

/* スマホ対応 */
@media screen and (max-width: 900px) {
  .ls-works-grid .c-card {
    max-width: calc(50% - 15px); /* スマホは2枚 */
  }
}

@media screen and (max-width: 640px) {
  .ls-works-grid .c-card {
    max-width: 100%; /* 小さいスマホは1枚 */
  }
  .ls-main-title {
    font-size: 24px;
  }
}

/* --- 本文エディタ部分の詳細装飾 --- */

.ls-story-inner {
  font-size: 17px;
  line-height: 2.2;
  color: #333;
  letter-spacing: 0.03em; /* 文字間を少し広げて高級感を出す */
}

/* ★太字（strong）をマーカー風に装飾 */
.ls-story-inner strong {
  font-weight: 700;
  /* 背景に薄いブルーのライン（蛍光ペン風） */
  background: linear-gradient(transparent 60%, rgba(0, 86, 179, 0.15) 60%);
  color: #0056b3; /* 文字色もブランドカラーに */
  padding: 0 2px;
}

/* 段落間の余白 */
.ls-story-inner p {
  margin-bottom: 2.5em;
}

/* 本文内の見出し（H2）をオシャレに */
.ls-story-inner h2 {
  font-size: 24px;
  font-weight: 800;
  color: #111;
  margin: 60px 0 30px;
  padding-left: 15px;
  border-left: 5px solid #0056b3; /* 左側のアクセントライン */
  line-height: 1.4;
}

/* 本文内の見出し（H3） */
.ls-story-inner h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 40px 0 20px;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 10px;
}

/* 引用（blockquote）を「施主のつぶやき」風に */
.ls-story-inner blockquote {
  background: #f8f9fa;
  border: none;
  padding: 30px;
  position: relative;
  border-radius: 8px;
  margin: 40px 0;
  font-style: italic;
  color: #666;
}

.ls-story-inner blockquote::before {
  content: "\f10d"; /* FontAwesomeのクオーテーション */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 20px;
  color: #dee2e6;
}

/* 箇条書き（ul）をチェックマークに */
.ls-story-inner ul {
  list-style: none;
  padding-left: 0;
  margin: 30px 0;
}

.ls-story-inner ul li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 15px;
}

.ls-story-inner ul li::before {
  content: "\f00c"; /* チェックマーク */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  color: #f39800; /* オレンジ色のアクセント */
}

/* 画像の角を丸くし、影を落とす */
.ls-story-inner img {
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  margin: 20px 0;
}
