@charset "utf-8";

/**
 * メインビジュアル
 */
.main-visual {

  height: calc(85vh - 10px);
  padding-top : 10px;
}

.main-visual-image {
  position: relative;
  background-image: url("../images/photo000.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  width: 100vw;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
}

/* .main-visual-content {
  text-align: center;
  color: var(--color-white);
  width: 80%;
  max-width: 1000px;
} */

.mv-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  color: var(--btn-text-color);
  font-size: 4em;
  font-family: var(--font-family-primary);
  font-weight: 400;
  font-style: normal;
  line-height: 1.5;
  text-align: center;
  text-shadow: 0px 0px 5px var(--primary-text-color);
}

.mv-text2 {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  color: var(--btn-text-color);
  width: 40%;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%20553.3%20172.6%22%3E%3Cstyle%3E.st0%7Bfont-family%3A'Dancing%20Script'%2C%20cursive%3Bfont-size%3A72px%3Bfont-weight%3A700%3Bfill%3Argb(255%2C255%2C255)%3Bfilter%3Adrop-shadow(0px%203px%201px%20rgba(0%2C0%2C0%2C0.5))%3B%7D%3C/style%3E%3Ctext%20class%3D%22st0%22%20transform%3D%22translate(1.9%2063.2)%22%3E%3Ctspan%20x%3D%220%22%20y%3D%220%22%3ETotal%20Reform%20Project%3C/tspan%3E%3Ctspan%20x%3D%22142.2%22%20y%3D%2288%22%3Ee-Quality%3C/tspan%3E%3C/text%3E%3C/svg%3E");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  height: 200px;
}

/**
 * 特徴セクション
 */

#index-feature .items > li.flex-2column {
  margin-bottom: 60px;
  align-items: stretch;

}
#index-feature .items > li.flex-2column > * {
  flex: 1;
}

#index-feature .text-box {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  
}

#index-feature .text-box  > *{
  width: 100%;
}
#index-feature .btn {
  margin-top: auto;
  width: auto;
  min-width: 400px;
}
#index-feature .reverse .btn {
  margin-left: auto;
}
#index-feature .no {
  color: var(--highlight-color);
  font-family: var(--font-family-dancing);
  font-weight: 500;
  font-style: normal;
  font-size: 1.8em;
  line-height: 1;
}

#index-feature .no span {
  font-size: 1.5em;
  margin-left: 0.2em;
}

#index-feature .title {
  font-size: 1.8em;
}
#index-feature .headline2 {
  margin-bottom: 10px;
}
#index-feature .photo-frame img {
  height: 400px;
  object-fit: cover;
  object-position: center;
}
#index-feature .text-box .textarea {
  font-size: 1.1em;
}

/**
 * ニュースセクション
 */

/* 一覧リスト */
#index-news .items {
  list-style: none;
  padding: 0;
  margin: 0 0 40px;
}

#index-news .items .item {
  display: flex;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--border-color2);
  gap: 20px;
  flex-wrap: wrap;
}

/* 日付 */
#index-news .date {
  font-size: 0.9em;
  color: var(--border-color);
  white-space: nowrap;
  min-width: 90px;
}

/* カテゴリ */
#index-news .category {
  min-width: 90px;
}
#index-news .category a {
  width: fit-content;
  display: block;
  background-color: var(--secondary-color);
  border-radius: 25px;
  text-align: center;
  font-size: 0.8em;
  color: var(--btn-text-color);
  padding: 7px 1.5em;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

#index-news .category a:hover {
  background-color: var(--btn-hover-color, #555); /* ホバー時（必要に応じて変数） */
  color: #fff; /* お好みで調整 */
}

/* タイトル */
#index-news .title {
  flex: 1;
}

#index-news .title a {
  font-size: 1em;
  color: #333;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

#index-news .title a:hover {
  text-decoration: underline;
}

#index-news .title img.newsicon {
  width: 20px;
  height: auto;
  margin-left: 8px;
}
#index-news .btn {
  margin-left :auto;
}


/**
 * お知らせセクション
 */
/* #index_about .container {
  position: relative;
  z-index: 1;
  min-height: 700px;
}

body.home .photo-box1 {
  position: absolute;
  right: 50%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 50%;
}

body.home .cloud-box1 {
  position: absolute;
  left: 45%;
  top: 50%;
  transform: translateY(-50%);
  width: 55%;
  height: 100%;
  padding: 80px 50px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background-image: url("../images/bg_cloud01.png");
  background-size: cover;
  background-position: center;
}

.cloud-box1 .cloud-box-inner {
  width: 60%;
  margin: 0 auto;
}
#index_about .btn {
  width: 100%;
  margin: 50px auto 0;
} */
/* index_about用 背景エリア */

#index_about.wrapper {
  background-color: rgba(207, 229, 238, 0.3);
  background-image: url('../images/photo002.jpg');
  background-blend-mode:overlay;
  background-attachment: fixed; /* ★スクロールに反応させる */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
#index_about .container {
  max-width: 700px;
  background-color: rgba(255, 255, 255, 0.8);
  padding : 50px;
}


/* -------------------------------
 * リフォーム実例セクション
 * ------------------------------- */

#index_works {
  position: relative;
  overflow: hidden;
}

#index_works .container {
  position: relative;
  z-index: 2;
}
.work-grid {
  width: 100%;
  margin-bottom: 50px;
  align-items: stretch;
}

.work-item {
  background-color: var(--color-white);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.work-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.work-item .photo {
  width: 100%;
  height: 220px;
  background-color: #f5f5f5;
  overflow: hidden;
}

.work-item .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.work-item .content {
  padding: 15px;
}

.work-item .date {
  font-size: 0.8em;
  color: var(--border-color);
  margin-bottom: 5px;
}

.work-item .title {
  font-weight: bold;
  color: var(--primary-text-color);
  font-size: 1.1em;
  margin-bottom: 8px;
  height: 3em; /* 1行1.5emなら2行で約3emに固定 */
  line-height: 1.5;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2; /* 2行でカット */
  -webkit-box-orient: vertical;
}

.work-item .excerpt {
  font-size: 0.95em;
  color: #555;
  line-height: 1.5;
}



#index_topics .container {
  border: 2px solid var(--secondary-color);
  margin: 100px auto 0;
}
#index_topics .container a {
  position: relative;
  background-color: rgba(var(--color-white-rgb), 0.5);
  width: 100%;
  display: flex;
  justify-content: space-between  ;
  padding: 20px;
  text-align: left;
  color: var(--secondary-color);
}

.topics-word {
  font-weight: bold;
  text-align: center;
  padding : 7px 25px;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
  position: absolute;
  top : -40px;
  height: 40px;
  left : -2px;
  background-color:  var(--secondary-color);
  color : var(--color-white);
}

.topics-title {
  min-width: 93%;
  font-weight: 500;
}

.topics-arrow {
  max-width: 5%;
}

.topics-arrow > svg {
  width: 20px;
  height: auto;

}

/**
 * ------------------------------
 * レスポンシブ対応
 * ------------------------------
 */

/* 縦向きデバイス（portrait） */
@media screen and (orientation: portrait) {
  .mv-text {
    font-size: 3.5em;
    line-height: 1.2;
  }
  .mv-text2 {
    width: 70%;
    margin: 0 auto 30px;
  }
}

/* 横向きデバイス（landscape） */
@media screen and (orientation: landscape) {
  .mv-text {
    font-size: 2.5em;
    top: 40%;
    letter-spacing: .15em;
    line-height: 1;
  }
  .mv-text2 {
    width: 50%;
    margin: 0 auto 30px;
  }
}

/* スマホ・タブレット（〜768px） */
@media screen and (max-width: 768px) {
  /* ニュースリスト */
  #index-news .items .item {
    flex-direction: column;
    align-items: flex-start;
  }
  #index-news .date,
  #index-news .category {
    min-width: unset;
  }
  #index-news .title a {
    font-size: 1.1em;
  }

  #index-feature .photo {
    margin-bottom: 30px;
  }

  /* ニュース・特徴セクション共通 */
  #index-news .date,
  #index-news .category {
    width: 50%;
  }
  #index-news .title {
    width: 100%;
    padding-top: 10px;
  }

  /* お知らせセクション */
  #index_about .inner {
    height: auto;
  }
  #index_about .btn {
    width: 80%;
    margin: 20px auto;
  }
  body.home .photo-box1 {
    position: relative;
    top: auto;
    right: auto;
    width: 80%;
    margin: 0 auto;
    transform: none;
  }
  body.home .cloud-box1 {
    position: relative;
    left: auto;
    top: -90px;
    width: 100%;
    height: auto;
    transform: none;
    background-size: 100% 100%;
    padding: 100px 0 50px;
  }

  /* メインビジュアル */
  .main-visual-image {
    height: 70vh;
  }
  #index-feature .items > li.flex-2column {
    gap : 20px;
  }
}

/* 小型デバイス（〜550px） */
@media screen and (max-width: 550px) {
  .mv-text {
    font-size: 3em;
  }
  body.home .cloud-box1 {
    background-position: top center;
    background-image: url("../images/bg_cloud03.png");
    padding: 150px 50px;
    top: -150px;
  }
  .cloud-box1 .cloud-box-inner {
    width: 100%;
  }
  #index-feature,
  #index-news {
    padding: 50px 0;
  }
  #index-feature .text-box {
    padding-bottom: 50px;
    margin-bottom: 50px;
  }
  .mv-text2 {
    width: 80%;
  }
}

/* 超小型デバイス（〜480px） */
@media screen and (max-width: 480px) {
  body.home .cloud-box1 {
    background-position: center;
    top: auto;
    padding: 50px;
  }
  .mv-text {
    font-size: 2.5em;
  }
  .mv-text2 {
    height: 150px;
  }
}

/* ------------------------------
 * Container Queries対応（モダンブラウザ用）
 * ------------------------------ */

/* 特徴セクション（内部コンテナ対応） */
@container feature-item (max-width: 768px) {
  #index-feature .photo {
    margin-bottom: 30px;
  }
}

/* メインビジュアル */
@container (max-width: 768px) {
  .main-visual-image {
    max-height: 80%;
  }
}

/* Container Queriesが使えない場合のフォールバック */
@supports not (container-type: inline-size) {
  @media screen and (max-width: 768px) {
    .main-visual-image {
      max-height: 80%;
    }
  }
}