/* ================================================
   DECO Page Styles - XD Design Based
   セミオーダー住宅DECOの家専用CSS（XDデザイン準拠）
================================================ */

/* CSS Variables for DECO - Natural & White Theme */
:root {
  --deco-primary: #4c4c4c;
  --deco-secondary: #f8f8f8;
  --deco-accent: #00416e;
  --deco-text: #5a5a5a;
  --deco-light: #ffffff;
  --deco-border: #e5e5e5;
  --deco-shadow: rgba(0, 0, 0, 0.08);
  --deco-shadow-light: rgba(0, 0, 0, 0.04);
  --deco-main-margin: clamp(20px, 2vw, 40px);
  --deco-sub-margin: clamp(10px, 1vw, 20px);
  --deco-main-desc: clamp(12px, 1vw, 16px);
  --deco-sub-desc: clamp(10px, 0.8vw, 14px);
  --deco-line-height: clamp(12px, 1.4vw, 22px);
}

.plan_box:hover {
  transform: none !important;
  box-shadow: none !important;
}


html {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}
html::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}
body {
  margin: 0;
  padding: 0;
  overflow: hidden; /* デスクトップ用：二重スクロール防止 */
}

.main_wrapper {
  height: 100vh;
  width: 100%;
  position: fixed; /* デスクトップ用 */
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
}

/* モバイル用のスクロール設定 */
@media screen and (max-width: 768px) {
  body {
    overflow: visible !important; /* モバイルでは通常のスクロールを許可 */
  }
  
  .main_wrapper {
    position: relative !important; /* モバイルでは相対配置 */
    height: auto !important;
    overflow: visible !important;
  }
}

.main_wrapper::-webkit-scrollbar {
  display: none;
}

/* ================================================
   Base Layout
================================================ */
.deco_header {
  height: 50px;
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.deco_header .header_container{
  height: 100%;
  width: 100%;
  display: flex;
  align-items: end;
  justify-content: space-between;
}

.deco_header .header_logo{
  width: max-content;
  height: max-content;
  display: flex;
  position: relative;
  left: 100px;
}

.deco_header .deco_header_menu{
  width: max-content;
  height: 35px;
  display: flex;
  position: relative;
  margin-right: 100px;
  gap: 20px;
}

.deco_header .deco_header_menu .header_menu_item{
  width: 150px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--deco-light);
  border-radius: 30px;
}


.header_container.white .deco_header_menu .header_menu_item{
  border-color: rgba(255, 255, 255, 0.5);
  background-color: rgba(200, 200, 255, 0);
  backdrop-filter: blur(4px) brightness(1) contrast(1.3) opacity(0.9) drop-shadow(0px 0px 5px rgba(0, 0, 0, 0.3));
}
.header_container.black .deco_header_menu .header_menu_item{
  border-color: rgba(255, 255, 255, 0.5);
  background-color: rgba(200, 200, 255, 0);
  backdrop-filter: blur(4px) brightness(1) contrast(1.3) opacity(0.9) drop-shadow(0px 0px 5px rgba(0, 0, 0, 0.3));
}

.header_container.white .deco_header_menu .header_menu_item span{
  color: var(--deco-text);
}
.header_container.black .deco_header_menu .header_menu_item span{
  color: var(--deco-text);
}

.deco_header_logo_black,
.deco_header_logo_white {
  height: 35px;
  width: max-content;
  position: relative;
}

.deco_header_logo_black{
  display: none;
}
.deco_header_logo_white{
  display: block;
}

/* ヘッダーカラー切り替え時のロゴ表示 */
.header_container.black .deco_header_logo_black{
  display: block;
}
.header_container.black .deco_header_logo_white{
  display: none;
}
.header_container.white .deco_header_logo_black{
  display: none;
}
.header_container.white .deco_header_logo_white{
  display: block;
}

.deco_header_logo a{
  height: 100%;
  display: flex;
}
.deco_header_logo a img{
  height: 100%;
}

@media screen and (max-width: 768px) {
  .deco_header{
    height: 100%;
    pointer-events: none;
    transition: height 0.3s ease;
  }
    /* スクロールアップ時のヘッダー高さ */
  .deco_header.scrolling-up {
    height: 150%;
  }

  .deco_header .header_container {
    align-items: start;
    flex-direction: column;
    padding: 20px 0;
  }
  .deco_header .header_logo{
    width: auto;
    left: 20px;
    pointer-events: auto;
  }
  .deco_header_logo_black, 
  .deco_header_logo_white{
    height: 30px;
    width: auto;
  }
  
  .deco_header .deco_header_menu {
    width: 100%;
    height: 50px;
    align-items: center;
    margin-right: 0;
    justify-content: center;
    pointer-events: auto;
  }
  
  .deco_header .deco_header_menu .header_menu_item{
    width: 170px;
    height: 50px;
    border: 2px solid var(--deco-light);
  }
  
}

/* メインコンテンツ - JavaScript制御版 */
.deco_main {
  position: relative;
}

.main_content {
  height: 100vh;
  overflow-y: scroll;
  overflow-x: hidden;
  scroll-behavior: auto; /* 即座のジャンプ */
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain; /* デスクトップ用：スクロール範囲を制限 */
  scroll-padding-top: 0;
}

/* モバイル用main_content設定 */
@media screen and (max-width: 768px) {
  .main_content {
    height: auto !important;
    overflow-y: visible !important;
    overscroll-behavior: auto !important; /* モバイルではプルリフレッシュを許可 */
    -webkit-overflow-scrolling: auto !important;
  }
}

.main_content::-webkit-scrollbar {
  display: none;
}

/* セクション設定 - JavaScript制御版 */
.deco_hero,
.deco_concept,
.deco_works,
.deco_plans,
.deco_reasons {
  width: 100%;
  min-height: 100vh;
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Commitment section - special handling for normal scroll content */
.deco_commitment {
  width: 100%;
  min-height: 100vh;
  position: relative;
  display: block; /* Changed from flex to block for vertical content flow */
  will-change: transform;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 通常スクロール領域 */
.deco_normal_scroll {
  scroll-snap-align: none;
  min-height: auto;
  position: relative;
  z-index: 2;
  background: var(--deco-light);
}

/* 通常スクロール領域内のセクションもスナップを無効化 */
.deco_normal_scroll * {
  scroll-snap-align: none;
}

.deco_hero img,
.deco_concept img,
.deco_works img {
  transform: translateZ(0);
  backface-visibility: hidden;
}


/* ================================================
   section titles
================================================ */

.deco_section_title{
  height: max-content;
  width: max-content;
  position: absolute;
  top: 100px;
  left: 100px;
}

.deco_section_title h2 {
  font-size: 2rem;
  font-weight: 400;
  color: var(--deco-primary);
  margin-bottom: 0px;
}

.deco_section_title p {
  font-size: 1rem;
  font-weight: 300;
  color: var(--deco-text);
  margin-top: 0;
}

/* ================================================
   Hero Section
================================================ */
.deco_hero {
  align-items: center;
  justify-content: center;
}

.deco_hero_background {
  width: 100%;
  height: 100%;
  display: flex;
  position: relative;
}

.deco_hero_background_content{
  height: 100%;
  width: 100%;
  position: absolute;
  display: flex;
  top: 0;
  left: 0;
  justify-content: center;
  align-items: center;
}

.deco_hero_background .deco_hero_background_content img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.95);
}

.deco_hero_container {
  position: absolute;
  z-index: 2;
  width: max-content;
  height: max-content;
}

.deco_logo_main {
  background: rgba(255, 255, 255, 0.95);
  padding: 15px 25px;
  border-radius: 4px;
  backdrop-filter: blur(10px);
}

.deco_logo_text {
  font-size: 1.8rem;
  font-weight: 300;
  color: var(--deco-primary);
  letter-spacing: 0.05em;
}

.deco_hero_overlay {
  padding: 0;
}

.deco_hero_tagline {
  font-size: 1.5rem;
  color: var(--deco-light);
  text-align: center;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.deco_hero_tagline .highlight{
  color: var(--deco-light);
}

/* ================================================
   DECO Concept Section
================================================ */
.deco_concept {
  background: var(--deco-light);
  padding: 4% 0;
  overflow-y: hidden;
}
.deco_concept * {
  font-weight: 400;
}

.deco_concept_container {
  opacity: 0;
  height: 0%;
  width: 100%;
  padding: 0 250px;
  position: absolute;
  transform: translateY(20dvh);
  transition: transform 0.5s ease-in, opacity 0.3s;
}

#concept1.visible{
  opacity: 1;
  height: 100%;
  transform: translateY(0);
}

#concept2.visible{
  opacity: 1;
  height: 100%;
  transform: translateY(0);
}

.deco_concept_content {
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.deco_concept_text{
  height: 100%;
  width: 35%;
  margin-right: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.deco_concept_text .deco_section_title {
  position: relative;
  top: 0;
  left: 0;
  text-align: start;
  margin-bottom: var(--deco-main-margin);
}

.deco_concept_description {
  margin-bottom: var(--deco-sub-margin);
}

.deco_concept_description p {
  font-size: var(--deco-main-desc);
  line-height: 1.8rem;
  color: var(--deco-text);
  margin-bottom: calc(var(--deco-sub-margin) + 10px);
}

.deco_spec{
  margin-bottom: var(--deco-main-margin);
}
.deco_spec h4{
  font-size: var(--deco-main-desc);
  color: var(--deco-text);
  margin-bottom: 8px;
}
.deco_spec_list{
  width: max-content;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.deco_spec_list > p{
  border: 0.5px solid var(--deco-text);
  padding: 0 40px 0 10px;
  color: var(--deco-text);
  font-size: var(--deco-main-desc);
  margin-bottom: 8px;
}

.deco_features {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.deco_feature_item h2 {
  font-size: 1.8rem;
  color: var(--deco-text);
  margin-bottom: 40px;
  font-weight: 400;
}

.deco_feature_item p {
  font-size: var(--deco-main-desc);
  color: var(--deco-text);
  line-height: calc(var(--deco-line-height) + 5px);
  margin-bottom: var(--deco-sub-margin);
}

.deco_feature_item ul{
  margin-left: 0.5rem;
  margin-bottom: var(--deco-main-margin);
}
.deco_feature_item ul li{
  font-size: var(--deco-main-desc);
  color: var(--deco-text);
  line-height: 1.6;
}
.deco_feature_item ul li::before{
  content: '-';
  margin-right: 4px;
  color: var(--deco-text);
  font-weight: 400;
  font-size: 0.9rem;
}


/* 画像グリッド - XDデザイン準拠 */
.deco_concept_images {
  position: relative;
  width: 45%;
  height: max-content;
}

.deco_image_grid {
  display: flex;
  flex-wrap: wrap;
  position: relative;
  height: 100%;
  width: 100%;
  gap: 20px;
  justify-content: start;
  align-items: start;
  overflow: hidden;
}

.deco_image_grid img {
  width: 115%;
  height: auto;
  object-fit: cover;
}

#concept2 .deco_concept_images{
  height: auto;
  width: 55%;
}
#concept2 .deco_image_grid img{
  width: 100%;
}



/* ================================================
   Works Section - XD Design
================================================ */
.deco_works {
  background: var(--deco-secondary);
  padding: 50px 0 100px;
}

.deco_works_container {
  width: 100%;
  padding: 0 100px;
  margin-top: 100px;
}

/* 既存のworksカルーセルスタイルを維持 */
.deco_works_horizontal {
  position: relative;
  overflow: hidden;
}

.deco_works_list {
  display: flex;
  transition: transform 0.5s ease;
  gap: 20px;
  width: max-content;
  height: 100%;
}
.deco_works_list a{
  display: flex;
  width: 500px;
  height: 450px;
}

.deco_works_item {
  flex: 0 0 500px;
  display: flex;
  flex-direction: column;
  gap: 0;
  align-items: center;
  background: transparent;
  border-radius: 0;
  overflow: hidden;
  height: 450px;
  position: relative;
}

.works_image {
  height: auto;
  width: 100%;
  overflow: hidden;
}

.works_image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 30 / 19;
}

.works_info {
  padding: 10px 0px;
  height: 20%;
}

.works_tags {
  list-style: none;
  padding: 0;
  margin: 0 0 15px 0;
  display: none;
  gap: 8px;
  flex-wrap: wrap;
}

.works_tags li {
  background: var(--deco-accent);
  color: var(--deco-light);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
}

.works_title {
  font-size: 18px;
  color: var(--deco-primary);
  margin-bottom: 15px;
  font-weight: 400;
  line-height: 1.3;
}

.works_hashtags {
  display: none;
  font-size: 0.85rem;
  color: var(--deco-accent);
  margin-bottom: 20px;
  line-height: 1.4;
}

.works_link{
  position: absolute;
  bottom: 20px;
  left: 0;
}
.works_link::after {
  content: '→';
  color: var(--deco-text);
  margin-left: 4px;
  font-size: 0.8rem;
}

.works_detail_btn {
  display: inline-block;
  color: var(--deco-text);
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 400;
}

/* カルーセルコントロール */
.deco_carousel_controls {
  position: absolute;
  width: 250px;
  height: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  z-index: 10;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
}

.deco_carousel_btn {
  pointer-events: all;
  width: auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.deco_carousel_btn:hover {
  transform: scale(1.05);
}

.deco_works_button{
  width: max-content;
  height: max-content;
  transition: all 0.3s ease;
}

.deco_works_button:hover{
  transform: scale(1.05);
}

.works_button_link{
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: auto;
  background-color: transparent;
}

.deco_works_dots {
  display: none;
  justify-content: center;
  gap: 8px;
  margin-top: 30px;
}

.deco_works_dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--deco-text);
  opacity: 0.3;
  cursor: pointer;
  transition: all 0.3s ease;
}

.deco_works_dot.active {
  background: var(--deco-primary);
  opacity: 1;
  transform: scale(1.2);
}

/* ================================================
   Plans Section - 横スクロール4ボックス対応
================================================ */
.deco_plans {
  background: var(--deco-light);
  padding: 0;
  overflow-x: auto;
  overflow-y: hidden;
  position: relative;
}

/* 横スクロールコンテナ */
.plans_horizontal_container {
  display: flex;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: auto; /* 即座の反応 */
}

.plans_horizontal_container::-webkit-scrollbar {
  display: none;
}

.plans_horizontal_container .plans_container_title{
  width: 500px;
  height: 300px;
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100px;
  left: 100px;
}

/* 各ボックス */
.deco_plans .deco_plan_box {
  flex: 0 0 100vw;
  width: 100vw;
  min-width: 100vw;
  height: 100%;
  padding: 150px 20px 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.deco_plans .deco_plan_box[data-box="1"] {
  background: var(--deco-light);
}

.deco_plans .deco_plan_box[data-box="2"] {
  background: var(--deco-secondary);
}

.deco_plans .deco_plan_box[data-box="3"] {
  background: var(--deco-light);
}

.deco_plans .deco_plan_box[data-box="4"] {
  background: var(--deco-secondary);
}

/* ボックス内コンテンツ */
.deco_plans .plan_box_content {
  text-align: center;
  width: 60%;
  max-width: 1200px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  margin-top: 50px;
}

.plan_item_box{
  width: 100%;
  height: calc(100% - 100px);
}

.plan_image_container{
  width: auto;
  height: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}

.plan_image_container .basic_plan_image {
  width: auto;
  height: 100%;
  object-fit: cover;
  padding-bottom: 20px;
}

.plan_title_box {
  width: 100%;
  height: 100px;
  padding-left: 70px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: center;
  background-color: var(--deco-accent);
}

.plan_title_box span {
  width: 60px;
  height: 60px;
  position: absolute;
  top: -10px;
  left: -10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--deco-light);
  border-radius: 50%;
  border: 1px solid var(--deco-accent);
  font-size: 10px;
  text-transform: uppercase;
}

.plan_title_box h4 {
  font-size: 1.8rem;
  color: var(--deco-light);
  font-weight: 300;
}

.plan_title_box p {
  font-size: 1rem;
  color: var(--deco-light);
  font-weight: 300;
}

.plan_title_box::after {
  content: "→";
  position: absolute;
  font-size: 3rem;
  color: var(--deco-light);
  right: 30px;
  height: 80px;
  aspect-ratio: 1 / 1;
  width: auto;
  border-radius: 50%;
  display: flex;
  justify-content: center;
}

.grade_plan{
  justify-content: space-around;
  gap: 70px;
}

.grade_plan_content > span{
  font-size: 5rem;
  line-height: 3rem;
  color: var(--deco-accent);
}
.grade_plan_content > h6{
  font-size: 1.5rem;
}
.grade_plan_content > p{
  font-size: 1rem;
}

.shape_plan{
  display: grid;
  grid-template-columns: repeat(2, auto);
  grid-template-rows: repeat(2, 50%);
  gap: 10px;
  row-gap: 10px;
  padding-bottom: 40px;
}
.shape_plan_content_image{
  padding: 30px 20px 20px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  align-items: center;
  aspect-ratio: 1 / 1;
  width: 100%;
  height: 100%;
  border: 0.5px solid var(--deco-primary);
  border-radius: 8px;
}
.shape_plan_content_image img{
  width: max-content;
  max-width: 100%;
  height: auto;
  max-height: max-content;
  object-fit: cover;
}
.shape_plan_content_image h6{
  font-size: 1.5rem;
  margin-top: 1rem;
}
.shape_plan_content_image p{
  font-size: 1rem;
}


.design_plan{
  gap: 40px;
}
.design_plan_content_image img{
  aspect-ratio: 1 / 1;
  border-radius: 50%;
}
.design_plan_content_image h6{
  font-size: 1.5rem;
  margin-top: 1rem;
}

/* ================================================
   Reasons Section - 選ばれる理由
================================================ */
.deco_reasons {
  background: var(--deco-secondary);
  padding: 100px 0;
}

.deco_reasons_container {
  width: 100%;
  padding: 0 100px;
  margin-top: 50px;
  display: flex;
  justify-content: center;
}

.reasons_cards_grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 15px;
  position: relative;
  max-width: 1400px;
  width: 100%;
}

.reason_card {
  height: 100%;
  width: 100%;
  background: var(--deco-light);
  border: 1px solid var(--deco-border);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  aspect-ratio: 4 / 2.5;
  max-height: 300px;
  max-width: 450px;
  display: flex;
  flex-direction: column;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  opacity: 1;
}

.reason_card_title{
  display: flex;
  width: 100%;
  height: 30px;
  margin-bottom: 15px;
  text-align: center;
}

.reason_card .card_number {
  display: block;
  height: 40px;
  width: 40px;
  color: var(--deco-accent);
  font-size: 2rem;
  font-weight: 600;
  line-height: 1;
}

.reason_card h4 {
  display: block;
  width: 100%;
  font-size: 1.5rem;
  color: var(--deco-primary);
  font-weight: 500;
  margin-left: -35px;
  align-items: center;
}

.reason_card .card_icons{
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 10px;
}

.reason_card .card_icons .icon_item{
  width: 100%;
  height: 100%;
}

.reason_card .icon_item img {
  width: 100%;
  height: 100%;
}

.reason_card .reason_description {
  display: none;
  font-size: 1rem;
  color: var(--deco-text);
  line-height: 1.5;
  letter-spacing: -1px;
}
.reason_card .reason_sdgs {
  display: none;
  height: 50px;
  width: max-content;
  gap: 10px;
  justify-content: center;
  position: absolute;
  top: 40px;
  right: 50px;
}
.reason_card .reason_sdgs > img{
  width: 80px;
  height: 80px;
  min-height: 40px;
}

/* Grid active state */
.reasons_cards_grid.has-active .reason_card:not(.active) {
  opacity: 0;
  pointer-events: none;
}

/* Active card state */
.reason_card.active {
  position: absolute;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  aspect-ratio: unset;
  z-index: 10;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  overflow-y: auto;
  padding: 40px;
}

.reason_card.active .card_icons {
  width: auto;
  height: 40%;
  position: absolute;
  bottom: 10%;
  right: 4%;
  padding: 0;
}

.reason_card:nth-child(1).active .card_icons {
  width: auto;
  height: 40%;
}
.reason_card:nth-child(2).active .card_icons {
  width: auto;
  height: 60%;
  right: 10%;
}
.reason_card:nth-child(3).active .card_icons {
  width: auto;
  height: 50%;
}
.reason_card:nth-child(4).active .card_icons {
  width: auto;
  height: 40%;
}
.reason_card:nth-child(5).active .card_icons {
  width: auto;
  height: 40%;
}
.reason_card:nth-child(6).active .card_icons {
  width: auto;
  height: 40%;
}


.reason_card.active .reason_description {
  display: flex;
  padding: 20px;
  text-align: start;
  font-size: 1.1rem;
  line-height: 2.3;
  height: max-content;
  width: 70%;
  background-color: rgba(255, 255, 255, 0.4);
  z-index: 2;
}

.reason_card.active .reason_sdgs {
  display: flex;
}

/* Active card title adjustment */
.reason_card.active .reason_card_title {
  justify-content: start;
  text-align: start;
  margin-bottom: 30px;
  height: 70px;
}

.reason_card.active .reason_card_title h4 {
  font-size: 2.5rem;
  margin-left: 20px;
}

.reason_card.active .card_number {
  font-size: 4.5rem;
  width: 100px;
  height: 100px;
}

/* Close button for active card */
.reason_card.active::after {
  content: '';
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 36px;
  color: var(--deco-text);
  cursor: pointer;
  z-index: 11;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s;
}

.reason_card.active::after:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

/* Hover effect when not active */
.reason_card:not(.active):hover {
  transform: translateX(-50%) translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}


/* ================================================
   Commitment Section - DECOの家の取り組み
================================================ */
.deco_commitment {
  position: relative;
  overflow: visible;
  padding: 0;
}

.deco_commitment_container {
  position: relative;
  z-index: 3;
  width: 100%;
  padding: 0 100px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.deco_commitment_content {
  position: relative;
  z-index: 2;
  padding: 50px 0;
  margin-top: 50px;
  max-width: 1400px;
}

.text_content {
  display: flex;
  max-height: 600px;
  height: 100%;
  gap: 0;
  overflow: hidden;
}

/* Accordion container styles */
.deco_commit_container {
  display: flex;
  height: 100%;
  border-right: 1px solid var(--deco-border);
  transition: all 0.5s ease;
}

.deco_commit_container:first-child{
  border-left: 1px solid var(--deco-border);
}

/* Vertical title styles */
.deco_commit_container h4 {
  writing-mode: vertical-rl;
  text-orientation: upright;
  background: rgba(255, 255, 255, 0.9);
  color: var(--deco-primary);
  font-size: 1.5rem;
  font-weight: 500;
  padding: 30px 10px;
  margin: 0;
  width: max-content;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: start;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 0;
  letter-spacing: 0.1em;
}

.deco_commit_container h4:hover {
  background: rgba(255, 255, 255, 1);
}

/* Content area styles */
.deco_commit_container .deco_commit_content {
  width: 0;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.7s ease;
  background: rgba(255, 255, 255, 0.95);
  padding: 0;
}

/* Active state */
.deco_commit_container.active h4 {
  color: var(--deco-text);
}

.deco_commit_container.active .deco_commit_content {
  width: 100%;
  height: 100%;
  opacity: 1;
  padding: 3% 30px 5%;
  overflow: visible;
}


/* ZEH仕様　START */

.deco_commit_zeh_title{
  width: 100%;
  height: max-content;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3% 30px 5%;
  margin-top: 30px;
}

.deco_commit_zeh_title h6{
  font-size: 1.5rem;
  line-height: 1.2;
}

.deco_commit_zeh_image{
  width: 100%;
  height: max-content;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 30px;
}
.deco_commit_zeh_image img{
  width: 100%;
  height: auto;
  object-fit: cover;
  padding-bottom: 20px;
}

.deco_commit_zeh_text{
  width: 100%;
  height: max-content;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 30px;
}

.deco_commit_zeh_text h6{
  width: 100%;
  padding: 0 5%;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--deco-text);
  text-align: center;
}
.deco_commit_zeh_text p{
  font-size: 1rem;
  font-weight: 400;
  color: var(--deco-text);
  text-align: center;
  line-height: 1.8;
  padding: 10px 5%;
}

/* ZEH仕様 END */


/* 家計に優しい START */

.deco_commit_cost_image{
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(2, 80px);
  gap: 10px;
  column-gap: 10%;
  margin-bottom: 10%;
  padding: 0 3%;
  position: relative;
}

.deco_commit_cost_image::after{
  content: '▶';
  position: absolute;
  top:50%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.3rem;
  color: var(--deco-text);
}

.initial_cost,
.running_cost{
  height: 100%;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 2fr;
  grid-template-rows: 1fr 1fr;
  text-align: center;
  align-items: center;
}

.initial_cost {
  grid-row: 1 / 2;
  grid-column: 1 / 2;
}
.running_cost{
  grid-row: 2 / 3;
  grid-column: 1 / 2;
}
.lifecicle_cost{
  grid-row: 1 / 3;
  grid-column: 2 / 3;
  height: 100%;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr 1fr 1fr;
  text-align: center;
  align-items: center;
}

.initial_cost img,
.running_cost img{
  grid-column: 1 / 2;
  grid-row: 1 / 3;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.initial_cost img{
  padding: 10px 10px;
}
.running_cost img{
  padding: 25px 10px 10px;
}

.lifecicle_cost img{
  grid-column: 1 / 2;
  grid-row: 3 / 4;
  width: auto;
  height: 100%;
  object-fit: cover;
  overflow: visible;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  padding-top: 10px;
}

.initial_cost p,
.running_cost p {
  height: 100%;
  width: 100%;
  display: flex;
  align-items: end;
  justify-content: start;
  font-size: 0.7rem;
  color: var(--deco-text);
  line-height: 1;
  padding-left: 15px;
}

.lifecicle_cost p{
  height: 100%;
  width: 100%;
  display: flex;
  align-items: end;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--deco-text);
  line-height: 1;
  padding-left: 0;
}

.initial_cost h6,
.running_cost h6 {
  display: flex;
  width: 100%;
  height: 100%;
  justify-content: start;
  font-size: 1rem;
  padding-left: 15px;
  font-weight: 700;
  color: var(--deco-text);
}

.lifecicle_cost h6 {
  display: flex;
  width: 100%;
  height: 100%;
  justify-content: center;
  font-size: 1.3rem;
  padding-left: 0;
  font-weight: 700;
  color: var(--deco-text);
}

.deco_commit_cost_text{
  width: 100%;
  padding: 0;
}
.deco_commit_cost_text p{
  font-size: 1rem;
  font-weight: 400;
  padding: 0 5% 3rem;
  text-align: center;
  line-height: 1.9;
  color: var(--deco-text);
}
.deco_commit_cost_text h6{
  font-size: 1.5rem;
  font-weight: 400;
  text-align: center;
  color: var(--deco-text);
}

/* 家計に優しい END */

/* 健康に良い 環境に優しい 将来の資産価値 防災性能 共通 START */

.deco_commit_health_title {
  width: 100%;
  height: max-content;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3% 30px 5%;
  margin-top: 30px;
}
.deco_commit_health_title h6 {
  font-size: 1.5rem;
  line-height: 1.2;
}

.deco_commit_health_image {
  width: 100%;
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 30px;
  gap: 10%;
}
.deco_commit_health_image img {
  width: auto;
  height: 100%;
  object-fit: cover;
  padding-bottom: 20px;
}

.deco_commit_health_text {
  width: 100%;
  height: max-content;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 50px;
}

.deco_commit_health_text p {
  font-size: 1rem;
  font-weight: 400;
  color: var(--deco-text);
  text-align: center;
  line-height: 1.8;
  padding: 10px 5%;
}

.deco_disaster_image_icon{
  padding: 0;
}

/* 健康に良い 環境に優しい 将来の資産価値 防災性能 共通 END */


/* ================================================
   Events Section - Simple Carousel
================================================ */
.deco_events {
  padding: 0;
  background: var(--deco-secondary);
}

.deco_events_container {
  width: 100%;
  padding: 0;
}

.deco_events .section_title {
  text-align: center;
  margin-bottom: 60px;
}

.deco_events .section_title h2 {
  font-size: 2.5rem;
  color: var(--deco-primary);
  margin-bottom: 15px;
  font-weight: 300;
}

.deco_events .section_title p {
  font-size: 1rem;
  color: var(--deco-text);
  opacity: 0.7;
}

/* 既存のイベントスタイルを継承 */
.deco_events .top_event {
  background: transparent;
  padding: 0;
}

.deco_events .top_event_title{
  display: none;
}

.deco_events .top_event_content{
  padding-top: 100px;
}

.deco_events .event_pagination_dots{
  display: none;
}

.deco_events .section_button{
  width: max-content;
  height: max-content;
  bottom: 0;
}

.deco_events .btn-primary{
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: auto;
  color: var(--deco-text);
  background-color: transparent;
  border: none;
  font-size: 1rem;
  padding: 0;
}

.deco_events .carousel_btn{
  pointer-events: all;
  width: auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}
.deco_events .carousel_btn:hover {
  transform: scale(1.05) translateY(-50%);
}

.deco_events .carousel_next,
.deco_events .carousel_prev {
  position: absolute;
  top: auto;
  bottom: -120px;
  height: auto;
  transform: translateY(-50%);
  background: none;
}
.deco_events .carousel_next {
  right: 40%;
}
.deco_events .carousel_prev {
  left: 40%;
}

/* ================================================
   Contact Section
================================================ */
.deco_contact {
  padding: 100px 0;
  background: var(--deco-light);
}

.deco_contact_container {
  width: 100%;
  padding: 0 100px;
}

.deco_contact_content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact_details {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: 40px;
}

.contact_item h3 {
  font-size: 1.2rem;
  color: var(--deco-primary);
  margin-bottom: 15px;
  font-weight: 500;
}

.phone_number a {
  font-size: 1.8rem;
  color: var(--deco-primary);
  text-decoration: none;
  font-weight: 600;
}

.contact_time,
.address {
  font-size: 1rem;
  color: var(--deco-text);
  opacity: 0.8;
  line-height: 1.6;
}

.contact_buttons {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.contact_map {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 25px var(--deco-shadow);
}

/* ================================================
   Footer Logo Section
================================================ */
.deco_footer_logo {
  background: var(--deco-secondary);
  padding: 0;
  text-align: center;
}

.deco_footer_container {
  width: 100%;
  padding: 0 20px 50px;
}

.footer_logo_main h1 {
  height: 50px;
  width: max-content;
  margin-bottom: 20px;
}

.footer_description p {
  font-size: 0.8rem;
  color: var(--deco-text);
  opacity: 0.8;
}

.deco_footer_rights{
  height: 20px;
  width: 100%;
  background-color: var(--deco-light);
  display: flex;
  justify-content: center;
  align-items: center;
}

.deco_footer_rights p {
  color: var(--deco-text);
  font-size: 8px;
}

/* ================================================
   Responsive Design
================================================ */

/* Tablet (760px以下) */
@media (max-width: 760px) {
  .deco_concept_container,
  .deco_works_container,
  .deco_contact_container,
  .deco_footer_container {
    padding: 0 20px;
  }
  
  /* Hero Section */
  
  .deco_logo_text {
    font-size: 1.4rem;
  }
  
  /* Concept Section */
  .deco_concept{
    flex-direction: column;
    height: max-content;
    padding: 50px 0;
  }
  
  #concept1, #concept2{
    height: max-content;
    min-height: max-content;
    padding: 50px 20px;
    opacity: 1;
    position: relative;
    transform: translateY(0);
  }
  #concept2{
    padding-top: 0;
  }

  
  #concept1.visible, #concept2.visible{
    height: max-content;
  }
  
  .deco_concept_content{
    flex-direction: column;
  }
  .deco_concept_text{
    height: max-content;
    width: 100%;
    margin-right: 0;
    position: relative;
    left: auto;
    transform: none;
    padding: 0;
    margin-bottom: 50px;
    line-height: 2;
  }
  
  .deco_concept_text .deco_section_title h2{
    font-size: 1.6rem;
  }
  
  .deco_concept_description p{
    line-height: 1.8;
  }
  .deco_feature_item p{
    line-height: 1.8;
  }
  
  .deco_concept_images{
    width: 100%;
  }
  #concept2 .deco_concept_images{
    width: 100%;
  }
  
  .deco_concept_images .grid_item{
    height: 110px;
    width: 100%;
  }
  
  .deco_image_grid{
    gap: 10px;
    height: auto;
    flex-direction: column;
  }

  .deco_feature_item h2{
    font-size: 1.4rem;
    margin-bottom: 20px;
    margin-top: 50px;
  }

  .deco_concept_description p{
    width: 95%;
  }
  
  /* Works Section */

  #deco_works{
    height: max-content;
    min-height: max-content;
    padding: 50px 0 100px;
  }
  .deco_section_title{
    top: 50px;
    left: 20px;
  }

  .deco_works_list a {
    width: 90vw; /* モバイル版で90vw幅に変更 */
    height: max-content;
  }
  
  .deco_works_item {
    flex: 0 0 90vw; /* モバイル版で90vw幅に変更 */
    width: 90vw;
    height: 340px;
  }
  .works_image {
    height: auto;
  }
  .works_info {
    padding: 10px 10px 10px 5px;
  }
  .works_title{
    font-size: 16px;
  }
  .works_link{
    left: 5px;
  }
  
  /* Plans Section - Mobile Optimization */
  #deco_plans{
    height: max-content;
    min-height: auto;
  }



  .deco_plans .plans_horizontal_container {
    height: max-content;
    height: auto; /* Fallback for older browsers */
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    -webkit-scroll-snap-type: x mandatory;
  }
  
  .deco_plans .deco_plan_box {
    flex: 0 0 100vw;
    width: 100vw;
    min-width: 100vw;
    height: max-content;
    padding: 100px 20px 50px;
  }
  
  .deco_plans .plan_box_content{
    max-width: 100%;
    width: 100%;
    padding: 0;
    height: 470px;
  }
  
  .plan_image_container{
    width: 100%;
  }

  .plan_image_container .basic_plan_image {
    width: 100%;
    height: auto;
  }

  .plan_title_box{
    padding-left: 50px;
  }

  .plan_title_box span{
    width: 50px;
    height: 50px;
  }

  .plan_title_box h4{
    font-size: 18px;
  }
  .plan_title_box p{
    font-size: 13px;
    width: 70%;
    text-align: start;
  }

  .plan_title_box::after{
    right: 0;
    font-size: 2rem;
    height: 50px;
    animation: arrowAnime 3s ease-out infinite;
  }

  .deco_plan_box:last-child .plan_title_box::after{
    content: "↓";
    animation: arrowUnder 3s ease-out infinite;
  }

  @keyframes arrowAnime {
    0%{
      right: 15px;
    }
    50%{
      right: 0;
    }
    100%{
      right: 15px;
    }
  }

  @keyframes arrowUnder {
    0%{
      transform: translateY(0);
    }
    50%{
      transform: translateY(10px);
    }
    100%{
      transform: translateY(0);
    }
  }

  .grade_plan{
    gap: 30px;
  }

  .grade_plan_content{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .grade_plan_content > span{
    font-size: 4rem;
    padding-bottom: 10px;
  }
  .grade_plan_content > h6{
    font-size: 1rem;
    width: max-content;
  }
  .grade_plan_content > p{
    font-size: 0.8rem;
    height: max-content;
    line-height: 1.1;
    width: 100%;
    padding: 0 6px;
  }

  .shape_plan{
    gap: 10px;
    padding: 20px;
  }
  .shape_plan_content_image{
    padding: 15px 5px 10px;
    max-width: 44vw;
  }
  .shape_plan_content_image img{
    width: 70px;
    height: auto;
    min-height: 70px !important;
    object-fit: contain;
  }
  .shape_plan_content_image h6{
    font-size: 1rem;
    margin-top: 1rem;
  }
  .shape_plan_content_image p{
    font-size: 0.8rem;
    letter-spacing: -0.4px;
  }

  .plan_image_container{
    gap: 10px;
  }

  .design_plan_content_image{
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: start;
    gap: 10px;
  }

  .design_plan_content_image h6{
    font-size: 1rem;
  }

  /* Reasons Section */

  #deco_reasons{
    height: max-content;
    min-height: max-content;
    padding: 100px 0 50px;
  }

  .deco_reasons_container{
    padding: 0 20px;
  }

  .reasons_cards_grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 5px;
    width: 100%;
    height: max-content;
  }

  .reason_card{
    padding: 10px;
    height: 100%;
    width: 100%;
    aspect-ratio: 2 / 2;
  }

  .reason_card_title{
    height: 100%;
    flex-direction: column;
    text-align: center;
    align-items: center;
    justify-content: space-between;
    position: absolute;
    padding: 10px;
    left: 0;
    top: 0;
    margin-bottom: 0;
  }
  
  .reason_card .card_number{
    height: max-content;
    width: 100%;
    text-align: start;
    font-size: 1.3rem;
  }
  .reason_card h4{
    width: 100%;
    align-items: center;
    font-size: 1rem;
    font-weight: 400;
    margin-left: 0;
  }
  
  .reason_card .card_icons{
    width: 100%;
    height: 100%;
    padding: 30px 0;
  }
  .reason_card .card_icons .icon_item{
    width: 100%;
    height: 100%;
  }
  .reason_card .icon_item img{
    width: 100%;
    height: 100%;
    min-height: auto;
  }

  .reason_card.active{
    padding: 10px;
  }

  .reason_card.active .reason_card_title{
    margin-bottom: 0;
    height: max-content;
    text-align: start;
    padding: 30px 30px 20px;
    flex-direction: row;
    align-items: flex-end;
    margin-bottom: 0;
  }

  .reason_card.active .card_number{
    height: max-content;
    width: max-content;
    font-size: 2.5rem;
    padding-left: 0;
    line-height: 1;
  }
  .reason_card.active .reason_card_title h4{
    font-size: 1.5rem;
    margin-left: 10px;
    line-height: 1;
    margin-bottom: 3px;
  }
  
  .reason_card.active .card_icons {
    width: auto;
    height: 100%;
    bottom: 110px;
    right: 0;
    padding: 0 30px;
  }
  
  .reason_card:nth-child(1).active .card_icons{
    bottom: 110px;
    height: auto;
    right: 0;
  }
  .reason_card:nth-child(2).active .card_icons {
    width: auto;
    height: 40%;
    right: auto;
    left: 30px;
    bottom: 60px;
  }
  .reason_card:nth-child(3).active .card_icons {
    width: 90%;
    height: auto;
    right: auto;
    left: 50%;
    transform: translateX(-50%);
    bottom: 70px;
  }
  .reason_card:nth-child(4).active .card_icons {
    width: auto;
    height: 40%;
    bottom: 50px;
  }
  .reason_card:nth-child(5).active .card_icons {
    width: auto;
    height: 40%;
    bottom: 70px;
  }
  .reason_card:nth-child(5).active .reason_description{
    font-size: 13px;
  }
  .reason_card:nth-child(6).active .card_icons {
    width: auto;
    height: 40%;
    bottom: 40px;
  }

  .reason_card.active .reason_description{
    font-size: 12px;
    line-height: 1.9;
    width: 100%;
    margin-top: 80px;
  }

  .reason_card.active .reason_sdgs{
    gap: 5px;
    right: 20px;
    top: auto;
    height: 40px;
    bottom: 20px;
  }
  .reason_card .reason_sdgs > img{
    width: auto;
    height: 100%;
    min-height: 100%;
  }

  .reason_card:not(.active):hover{
    transform: translateX(-50%);
    box-shadow: none;
  }
  
  /* Commitment Section */
  #deco_commitment{
    min-height: max-content;
    height: max-content;
  }
  .deco_commitment_container{
    height: max-content;
    min-height: max-content;
    padding: 50px 0;
  }

  .text_content{
    max-height: max-content;
    height: max-content;
    flex-direction: column;
  }

  .deco_commit_container{
    flex-direction: column;
    border-right: none;
    border-bottom: 1px solid var(--deco-border);
  }

  .deco_commit_container:first-child{
    border-left: none;
    border-top: 1px solid var(--deco-border);
  }

  .deco_commit_container h4{
    writing-mode: horizontal-tb;
    width: 100%;
    height: max-content;
    padding: 10px 20px;
  }

  .deco_commit_container .deco_commit_content{
    width: 100%;
    height: 0;
  }
  .deco_commit_container.active .deco_commit_content{
    padding: 0 0 15%;
  }

  .deco_commit_zeh_title{
    padding: 0 20px 40px;
    margin-top: 50px;
  }
  .deco_commit_zeh_title h6{
    font-size: 1.3rem;
    text-align: center;
  }

  .deco_commit_zeh_image{
    padding: 0 20px;
  }
  .deco_commit_zeh_image img{
    min-height: auto !important;
  }
  .deco_commit_zeh_text h6{
    font-size: 1.3rem;
  }
  .deco_commit_zeh_text p{
    font-size: 0.8rem;
    text-align: start;
    padding: 10px 10%;
  }
  .deco_commit_zeh_text p br:nth-child(2){
    display: none;
  }

  .deco_commit_cost_image{
    grid-template-rows: 100px 160px;
    gap: 45px;
    column-gap: 5px;
    margin-top: 30px;
  }

  .running_cost{
    grid-row: 1 / 2;
    grid-column: 2 / 3;
  }
  .lifecicle_cost{
    grid-row: 2 / 3;
    grid-column: 1 / 3;
  }

  .initial_cost img{
    padding: 2px;
  }
  .initial_cost p, 
  .running_cost p{
    font-size: 10px;
    padding-left: 5px;
    letter-spacing: -1px;
  }

  .initial_cost h6, 
  .running_cost h6{
    font-size: 13px;
    padding-left: 5px;
  }

  .deco_commit_cost_image::after{
    content: "▼";
    top: 35%;
  }

  .deco_commit_cost_text p{
    font-size: 0.8rem;
    text-align: start;
    padding: 0 30px 3rem;
  }

  .deco_commit_cost_text h6{
    font-size: 1.1rem;
    letter-spacing: -1px;
    padding: 0 20px;
  }

  .deco_commit_health_title{
    padding: 3% 20px 15%;
  }
  .deco_commit_health_title h6{
    font-size: 1.3rem;
    letter-spacing: -1px;
  }
  
  .deco_commit_health_image{
    height: 110px;
  }

  .deco_commit_health_text{
    padding: 30px 20px;
  }
  .deco_commit_health_text p{
    font-size: 0.8rem;
    text-align: start;
    padding: 10px;
  }

  /* Event Section */
  .deco_events .top_event_container{
    padding-top: 70px;
  }

  .deco_events .top_event_content{
    height: max-content;
  }

  .deco_events .top_event_content .section_button{
    bottom: 100px;
    top: auto;
  }

  .deco_events .event_body .carousel_container > .carousel_btn{
    top: auto;
    bottom: 35px;
  }

  .deco_events .event_body .carousel_container .carousel_btn#prevBtn{
    left: 20%;
  }

  .deco_events .event_body .carousel_container .carousel_btn#nextBtn{
    right: 20%;
  }

  /* Contact Section */
  .deco_contact .section_title{
    position: relative;
    top: -50px;
  }
  .deco_contact_content {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  
  .contact_buttons {
    flex-direction: column;
  }
}

/* Mobile (480px以下) */
@media (max-width: 480px) {
  /* Base Layout */
  .deco_hero,
  .deco_concept,
  .deco_works,
  .deco_plans,
  .deco_reasons,
  .deco_commitment {
    -webkit-overflow-scrolling: touch;
    padding: 0;
  }
  
  /* Typography */
  .section_title h2 {
    font-size: 2rem;
  }
  
  .deco_logo_text {
    font-size: 1.2rem;
  }
    
  /* Plan Types */
  .plan_types {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }
  
  /* Footer */
  .footer_logo_main h2 {
    font-size: 2rem;
  }
  
  /* Carousel Controls */
  .deco_carousel_btn {
    width: 40px;
    height: 40px;
  }
  
  .deco_carousel_controls {
    padding: 0 10px;
  }
  
  /* Commitment Features */
  .commitment_features {
    gap: 20px;
  }
  
  .feature_icon_large {
    width: 50px;
    height: 50px;
  }
  
  .feature_icon_large img {
    width: 25px;
    height: 25px;
  }
  
  .commitment_points {
    gap: 10px;
  }
  
  .point_item {
    padding: 10px 15px;
    font-size: 0.9rem;
  }
}

/* モバイル用スクロールスナップ */
@media (max-width: 768px) {
  /* スムーススクロール有効化 */
  html {
    -webkit-overflow-scrolling: touch;
    scroll-behavior: auto; /* 即座ジャンプ */
  }

  .main_wrapper{
    height: 100dvh;
    overflow: hidden;
  }
  
  /* メインコンテンツのモバイル最適化 - JavaScript制御版 */
  .main_content {
    height: 100dvh;
    overflow-y: scroll;
    overflow-x: hidden;
    scroll-behavior: auto; /* 即座ジャンプ */
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: auto; /* モバイルではプルリフレッシュを許可 */
    scroll-padding-top: 0; /* iOS Safari対応 */
  }
  
}


