/* ==========================================================================
  fv
  ========================================================================== */

.fv {
  width: 100%;
  height: auto;
  min-height: auto;
  background-color: #FFF4D4;
}

.fv__img-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

/* 動画を復活させた時の設定 */
.fv__video-wrap,
.fv__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fv__content-inner {
  padding: 20px 20px 60px;
}

.fv__text {
  margin: 0;
  font-family: var(--font-second);
  line-height: 1.8;
  color: var(--text-color);
  font-size: 20px;
  display: inline-block;
  text-align: left; 
}

@media (min-width: 769px) {
  .fv {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: center;
    padding-bottom: 40px;
  }

  /* テキストを左側に配置（HTMLの並びとは逆にする場合） */
  .fv__content {
    width: 40%;
    text-align: center;
  }

  .fv__content-inner {
    padding: 0
  }

  /* 画像を右側に配置 */
  .fv__img-wrap {
    width: 60%;
  }

  .fv__text {
    font-size: 24px;
    line-height: 2.5;
    text-align: center;
  }
}

/* ==========================================================================
  Concept Section
  ========================================================================== */

.concept {
  background-color: #FFFBEF;
  padding: 30px 0;
  position: relative;
}

.concept__inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- 見出し --- */
.concept__heading {
  font-size: 24px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-color);
  margin-bottom: 30px;
  font-family: var(--font-second);
}

.concept__heading-line {
  display: inline-block;
  position: relative;
  z-index: 1;
}

.concept__heading-line::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 10px;
  background-image: url(../img/common/line_01.png);
  background-repeat: no-repeat;
  background-size: 120% 120%;
  background-position: right;
  z-index: -1;
}

.concept__heading-line:nth-child(1)::after {
  background-position: center;
  z-index: -1;
}

/* --- テキスト --- */
.concept__text {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-color);
  margin-bottom: 30px;
}

.concept__text:last-child {
  margin-bottom: 0;
}

/* --- 画像 --- */
.concept__image {
  display: block;
  width: 100%;
  height: auto;
}

/* スマホ画像 */
.concept__image-wrapper--sp {
  display: block;
  width: 90%;
  margin: 0 auto 2em;
}

/* PC画像は非表示 */
.concept__image-block--pc {
  display: none;
}

.concept::before,
.concept::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 50px;
  background-image: url(../img/top/bg_concept_sp.png);
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.concept::before {
  top: 0;
  transform: translateY(-100%); 
}

.concept::after {
  bottom: 0;
  transform: translateY(100%) scaleY(-1);
}

@media (min-width: 769px) {
  .concept {
    padding: 60px 0;
  }
  
  .concept__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
  }

  /* テキスト */
  .concept__content {
    width: 55%;
  }

  .concept__heading {
    margin-bottom: 50px;
  }

  .concept__text {
    font-size: 16px;
  }

  /* 画像（PC） */
  .concept__image-block--pc {
    display: block;
    width: 40%;
    position: relative;
  }

  .concept__image-wrapper--family {
    width: 100%;
    margin-bottom: 20px;
  }

  .concept__image-wrapper--staff {
    width: 100%;
    position: relative;
    left: -20%;
  }

  /* スマホ画像を隠す */
  .concept__image-wrapper--sp {
    display: none;
  }

  .concept::before {
    top: 0;
    background-image: url(../img/top/bg_concept.png);
  }

  .concept::after {
    bottom: 0;
    background-image: url(../img/top/bg_concept.png);
  }
}

/* ==========================================================================
  Banner Area / バナーエリア
  Block: .banner-area
   ========================================================================== */

.banner-area {
  padding: 60px 0 0;
  margin-top: 30px;
}

.banner-area__inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Banner Block --- */
.banner-block {
  max-width: 1100px;
  margin-inline: auto;
  display: block;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.banner-block:hover {
  opacity: 0.9;
}

.banner-block__img {
  width: 100%;
  height: auto;
  display: block;
}

@media (min-width: 769px) {
  .banner-area {
    padding: 60px 0 0; 
    margin-top: 60px;
  }
}

/* ==========================================================================
  News Section
  ========================================================================== */
.news {
  padding: 60px 0;
  background-color: #FFFEFA;
}

.news__inner {
  max-width: 1000px; /* デザインに合わせて調整 */
  margin: 0 auto;
  padding: 0 20px;
}

.news__list {
  margin-top: 40px;
  border-top: 1px solid #E0E0E0;
}

.news__item {
  display: flex;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #E0E0E0;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.3s;
}

.news__item:hover {
  opacity: 0.7;
}

/* 画像エリア */
.news__item-img {
  width: 100%;
  flex: 1;
}

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

/* テキストエリア */
.news__item-content {
  flex: 1;
  padding-left: 10px;
  color: var(--text-color);
}

.news__item-date {
  display: block;
  margin: 7.5px 0;
  font-family: var(--font-third); 
  font-size: 14px;
  letter-spacing: 1.92px;
}

.news__item-title {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 2.16px;
  /* 3行以上は三点リーダーにする場合 */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 矢印エリア */
.news__item-arrow {
  width: 40px; /* クリックエリアを確保 */
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 20px; /* テキストとの余白 */
  flex-shrink: 0;
}

/* SVG自体のサイズを固定 */
.news__item-arrow svg {
  width: 12px;
  height: 12px;
  display: block;
}

/* ボタン */
.news__footer {
  margin-top: 40px;
  text-align: center;
}

@media (min-width: 769px) {
  .news {
    padding: 100px 0;
  }

  .news__item-img {
    width: 150px;
    flex: none;
  }

  .news__item-content {
    display: flex;
    align-items: center;
    padding-left: 40px;
  }

  .news__item-date {
    width: 120px;
    margin: 0;
    font-size: 16px;
  }

  .news__item-title {
    font-size: 18px;
    padding-left: 20px;
  }

  .news__footer {
    margin-top: 50px;
  }
}

/* ==========================================================================
  Service section
  ========================================================================== */

.service {
  background-color: #FFFEFA;
}

.service__intro {
  max-width: var(--container-width);
  margin-inline: auto;
  position: relative;
  width: 100%;
  background-repeat: no-repeat;
  background-position: center bottom; 
  background-size: contain;
  
  background-image: url(../img/top/service_intro_sp.jpg);
  
  /* イラストの上にボタンが乗るようにpaddingで高さを出す */
  padding: 40px 0 240px; 
}

@media (min-width: 769px) {
  .service__intro {
    background-image: url(../img/top/service_intro.jpg);
    padding: 0 0 320px; 
  }
}

.service__intro-content {
  position: relative;
  top: 45px;
  z-index: 2;
  text-align: center;
}

.service__circle-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px; 
}

.service__circle-btn {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  font-family: var(--font-base);
  font-size: 18px;
  color: var(--main-color);
  letter-spacing: 2.88px;
  line-height: 1.2;
  box-shadow: 0px 0px 20px #3052A433;
  transition: all 0.3s;
}

.service__circle-btn.estate {
  position: relative;
  top: -30px;
}

.service__circle-btn.sanketa {
  font-size: 17px;
  letter-spacing: 0.48px;
}

/* PCでのボタンサイズアップ */
@media (min-width: 769px) {
  .service__intro-content {
    top: 130px;
  }
  .service__circle-nav {
    gap: 30px;
  }
  .service__circle-btn {
    width: 150px;
    height: 150px;
    font-size: 24px;
  }
}

/* --- 強みセクション --- */
.service__strength-wrap {
  max-width: 900px;
  margin-inline: auto;
  margin-top: 50px;
  padding: 0 20px;
}

.service__strength {
  margin-bottom: 50px; 
}

.service__strength-head {
  margin-bottom: 20px;
}

.service__strength-num {
  display: block;
  font-family: var(--font-second);
  font-size: 18px;
}

.service__strength-title {
  margin: 10px 0 20px;
  font-size: 18px;
  font-weight: bold;
}

/* 画像・ラベルエリア */
.service__strength-visual {
  margin-bottom: 25px;
  text-align: center;
}

.service__strength-visual img {
  max-width: 100%;
  height: auto;
}

/* テキストエリア */
.service__strength-text p {
  line-height: 1.8;
  margin: 0 0 20px;
}

@media (min-width: 769px) {

  .service__strength-wrap {
    margin-top: 70px;
  }
  .service__strength:not(:last-child) {
    margin-bottom: 60px;
  }

  .service__strength-body {
    display: flex;
    align-items: center; /* 画像とテキストの縦中心を揃える */
    gap: 60px;
  }

  /* 強み02（is-reverse）の左右反転 */
  .service__strength.is-reverse .service__strength-body {
    flex-direction: row-reverse;
  }

.service__strength-inner {
    display: grid;
    grid-template-rows: auto 1fr; 
    column-gap: 36px;
    align-items: start;
  }

  /* 強み01の見出し：右側（2列目）に配置 */
  .service__strength-head {
    grid-column: 2; 
    grid-row: 1;
    margin-bottom:  0;
  }

  .service__strength-num {
    font-size: 24px;
  }

  .service__strength-title {
    margin: 20px 0;
  }

  /* 強み01の画像：左側（1列目）に配置し、縦に2行分使う（見出しの横も埋める） */
  .service__strength-body {
    display: contents; /* body自体の枠を無視して、子要素をグリッドに参加させる */
  }

  .service__strength-visual {
    grid-column: 1;
    grid-row: 1 / 3; /* 1行目から3行目（テキストの横まで）にまたがる */
  }

  .service__strength-text {
    grid-column: 2;
    grid-row: 2; /* 見出しの下 */
  }

  /* --- 強み02（左右反転）の指定 --- */
  .service__strength.is-reverse .service__strength-inner {
    /* 列の順序を逆転：1fr（テキスト） : 45%（画像） */
    grid-template-columns: 1fr 45%; 
  }

  .service__strength.is-reverse .service__strength-head {
    grid-column: 1; /* テキスト側（左）へ */
  }

  .service__strength.is-reverse .service__strength-visual {
    grid-column: 2; /* 画像側（右）へ */
  }

  .service__strength.is-reverse .service__strength-text {
    grid-column: 1; /* テキスト側（左）へ */
  }
}

/* --- 事業紹介 --- */
.service__business {
  padding: 60px 0;
}

.service__business-title {
  font-family: var(--font-second);
  font-size: 18px;
  text-align: center;
}

.business-slider.swiper {
  overflow: visible; /* SPではスライダーを無効化するため */
}

.business-slider .swiper-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.business-item__img img {
  width: 100%;
  border-radius: 15px;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.business-item__title {
  margin: 15px 0 20px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 2.16px;
  text-align: center;
}

.heading-line-blue {
  margin: 10px 0 20px;
  background-image: url(../img/common/line_02.png);
  font-weight: bold;
  font-size: 16px;
  letter-spacing: 1.92px;
}

.heading-line-blue.list-disc::before {
  content: "";
  width: 8px;
  height: 8px;
  display: inline-block;
  margin-right: 10px;
  background-color: var(--text-color);
  border-radius: 50%;
}

.business-item__desc p {
  margin-top: 15px;
  line-height: 1.8;
  letter-spacing: 1.92px;
  margin-bottom: 30px;
}

@media (max-width: 768px) {
  .service__business {
    padding: 0 20px;
  }

  .business-slider.swiper {
    width: 100% !important;
    margin-bottom: 20px;
    overflow: visible !important;
  }

  .business-slider .swiper-wrapper {
    transform: none !important; 
    width: 100% !important;
  }

  .business-slider .swiper-slide {
    width: 100% !important; 
    height: auto !important;
  }
}

@media (min-width: 769px) {

  .service__business-title {
    font-size: 24px;
  }

  .business-slider.swiper {
    overflow: visible;
    position: relative;
  }

  .business-slider .swiper-wrapper {
    flex-direction: row;
    gap: inherit;
  }

  .business-item .business-item__content {
    visibility: hidden;
  }

  .business-item.swiper-slide-active .business-item__content {
    visibility: visible;
  }

  .business-item .business-item__img {
    transform: scale(0.8);
  }

  .business-item.swiper-slide-active .business-item__img {
    transform: scale(1);
  }

  .business-item__img {
    width: 100%;
    height: 100%;
    margin: 0 auto;
    overflow: hidden;
  }

  .business-item__img img {
    height: 440px;
    aspect-ratio: 4 / 3;
  }

  .business-slider .swiper-button-prev,
  .business-slider .swiper-button-next {
    background-image: url(../img/top/slider_button.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    width: 50px;
    height: 50px;
    top: 250px;
    color: #fff;
  }

  .business-slider .swiper-button-prev {
    left: 23%;
  }
  .business-slider .swiper-button-next {
    right: 23%;
  }

  .business-slider .swiper-button-prev::after,
  .business-slider .swiper-button-next::after {
    font-size: 20px;
    font-weight: bold;
  }

  .business-item__title {
    margin: 20px 0;
    font-size: 18px;
  }

  .business-item__desc p {
    margin-top: 20px;
  }

  .service__business .button__wrapper {
    margin-top: 20px;
  }
}

.service__footer {
  max-width: 660px;
  padding: 0 20px;
  margin: 40px auto;
}

@media (min-width: 769px) {
  .service__footer {
    margin: 0 auto 80px;
  }
}

/* ==========================================================================
  Works Section / 施工事例
  ========================================================================== */

.works {
  padding: 100px 0 120px;
  background-color: #FFFEFA;
  background-image: url(../img/top/bg_works_sp.png);
  background-repeat: no-repeat;
  background-position: top center;
  background-size: 100% 100%;
  overflow: hidden;
}

.works__inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.works .section-header__title,
.works .section-header__subtitle {
  color: var(--orange);
}

.works__lead {
  margin-bottom: 40px;
  font-size: 15px;
  line-height: 1.8;
  letter-spacing: 1.92px;
}

/* Pickup Area */
.works__pickup {
  margin-bottom: 20px;
}

.works__pickup-header {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.works__pickup-header.heading-line {
  background-size: 100% 15px;
}

.works__pickup-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.works__pickup-title .num {
  font-family: var(--font-third);
  font-size: 30px;
}
.works__pickup-title .text {
  font-family: var(--font-main);
  font-size: 14px;
}

.works__pickup-name {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
}

.works__pickup-point {
  margin: 0 0 15px;
  font-size: 15px;
  font-weight: bold;
  line-height: 1.8;
}

.works__pickup-text {
  font-size: 15px;
  line-height: 1.8;
}

/* Before/After Display */
.works__display {
  margin-bottom: 32px;
  text-align: center;
}

.works__display-img {
  background: #fff;
  padding: 10px;
  border-radius: 10px;
  display: inline-block;
}

.works__display-img img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  /* 切り替え時のチラつき防止 */
  transition: opacity 0.3s ease;
}

.works__display-ctrl {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

.works__display-btn {
  width: 110px;
  height: 36px;
  border-radius: 20px;
  border: 1px solid var(--light-orange);
  background: #fff;
  color: var(--light-orange);
  font-family: var(--font-third);
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.works__display-btn.is-active {
  background: var(--light-orange);
  color: #fff;
}

/* Slider (works__item) */
.works__slider {
  margin-bottom: 40px;
  position: relative;
}

.works .swiper {
  position: relative;
  overflow: visible;
}

.works__item {
  width: 100%;
  position: relative;
}

.works__item-img picture,
.works__item-img img {
  display: block;
  width: 100%;
}

.works__item-img img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
}

.works__item-text {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.8;
  margin-top: 20px;
  color: var(--text-color);
}

/* Swiper Navigation */
.works .swiper-button-prev,
.works .swiper-button-next {
  width: 40px;
  height: 40px;
  background-color: var(--light-orange);
  border-radius: 50%;
  color: #fff;
  z-index: 10;
  top: 40vw;
  margin-top: 0;
  transform: translateY(-50%);
  transition: opacity 0.3s;
}

.works .swiper-button-prev::after,
.works .swiper-button-next::after {
  font-size: 18px;
  font-weight: bold;
}

.works__footer {
  text-align: center;
}

.works__btn {
  max-width: 300px;
  height: 50px;
  margin-inline: auto;
  border-radius: 25px;
  background: var(--light-orange);
  color: #fff;
  font-size: 20px;
  font-weight: bold;
  letter-spacing: 2.4px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

/* Desktop Style (769px以上) */
@media (min-width: 769px) {
  .works {
    background-image: url(../img/top/bg_works.png);
  }
  
  .works__lead {
    font-size: 16px;
    text-align: center;
  }

  .works__pickup-container {
    display: flex;
    gap: 25px;
    margin-bottom: 40px;
  }

  .works__pickup {
    flex: 1;
    margin-bottom: 0;
  }

  .works__pickup-header {
    margin-bottom: 30px;
  }

  .works__pickup-visual {
    flex: 1.2;
  }

  .works__lead {
    font-size: 16px;
    margin-bottom: 60px;
  }

  .works__display {
    margin-bottom: 0;
  }

  .works__display-img {
    padding: 15px;
  }

  .works__pickup-point,
  .works__pickup-text {
    font-size: 16px;
  }

  .works__pickup-point {
    margin-bottom: 22px;
  }

  .works__item-text {
    font-size: 16px;
    margin-top: 25px;
  }

  .works__pickup-name {
    font-size: 18px;
  }

  .works__item-img img {
    height: 440px;
    aspect-ratio: 4 / 3;
  }

  .works .swiper-button-prev,
  .works .swiper-button-next {
    width: 50px;
    height: 50px;
    top: 45%;
  }
  
  .works .swiper-button-prev {
    left: calc(50% - 35% - 25px);
  }
  
  .works .swiper-button-next {
    right: calc(50% - 35% - 25px);
  }
}

.works .swiper-button-prev:hover,
.works .swiper-button-next:hover {
  opacity: 0.8;
}


/* ==========================================================================
  Property Section / 物件情報
  ========================================================================== */
.property {
  padding: 60px 0;
  background-color: #FFFEFA;
}

.property__inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
}

.property__content {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.property__img {
  width: 100%;
  max-width: 800px;
}

.property__img img {
  width: 100%;
  height: auto;
  display: block;
}

@media (min-width: 769px) {
  .property {
    padding: 60px 0 80px;
  }

  .property__content {
    margin-top: 50px;
  }
}

/* ==========================================================================
  Company Section / 会社紹介
   ========================================================================== */

.company {
  background-image: url(../img/top/bg_company_sp.png);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
  background-color: #FFFEFA;
  padding: 80px 0;
}

.company__inner {
  max-width: 100%; /* スライダーを横幅一杯にするため innerでは制限しない */
}

/* --- スライダー部分 --- */
.company__slider {
  position: relative;
  width: 100%;
  margin-bottom: 40px;
}

.js-company-slider .swiper-slide img {
  width: 100%;
  height: 490px;
  object-fit: cover;
}

.js-company-slider .swiper-wrapper {
  transition-timing-function: linear !important;
}

.company__slider-content {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
  width: 100%;
  height: 100%;
  text-align: center;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  
  padding: 40px 20px; 
  box-sizing: border-box;
  pointer-events: none; /* 背後のスライダー操作を邪魔しない（ボタン以外） */
}

/* テキスト（上部） */
.company__slider-copy {
  margin: 0;
  font-family: var(--font-second);
  font-weight: 100;
  font-size: 24px;
  color: #fff;
  line-height: 1.6;
  text-shadow: 0px 0px 6px #00000029;
  pointer-events: auto;
}

/* ボタン（下部） */
.company__slider-content .button {
  pointer-events: auto;
}

/* --- 下部メッセージエリア --- */
.company__message {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

.company__message-title {
  font-family: var(--font-second);
  font-weight: 100;
  font-size: 18px;
  color: var(--text-color);
  margin-bottom: 30px;
}

.company__message-text {
  margin-bottom: 50px;
  color: var(--text-color);
  font-size: 15px;
  line-height: 1.6;
  text-align: left;
}

.company__message-text p:last-child {
  margin-bottom: 0;
}

.company__recruit-text {
  margin-bottom: 40px;
  color: var(--main-color);
  font-weight: 500;
  font-size: 15px;
  line-height: 1.6;
}

@media (min-width: 769px) {
  .company {
    padding: 80px 0;
    background-image: url(../img/top/bg_company.png);
  }

  .company__slider {
    margin-top: 10px;
    margin-bottom: 70px;
  }

  .js-company-slider .swiper-slide img {
    height: 540px;
  }

  .company__slider-content {
    padding: 40px 20px;
  }

  .company__message-title {
    font-size: 24px;
  }

  .company__message-text {
    font-size: 16px;
    max-width: 660px;
    margin: 0 auto 60px;
    text-align: center;
  }

  .company__recruit-text {
    font-size: 18px;
    margin-bottom: 30px;
  }
}