/************************************
START
対象：全体共通
************************************/
html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  font-family: 'Nanum Myeongjo', serif;
/*  color: #726B67;*/
  color: #3e3a39;
  font-weight: 400;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

img {
  max-width: 100%;
  vertical-align: bottom;
}

li {
  list-style: none;
}

a {
  text-decoration: none;
}

.wrapper {
  max-width: 1080px;
/*  max-width: 1200px;*/
  /*  max-width: 100%; */
  margin: 0 auto;
  text-align: center;
}

/*@media screen and (max-width: 1023px) { */
@media screen and (max-width: 767px) {
  .wrapper {
    max-width: 100%;
    /*  max-width: 100%; */
    margin: 0 auto;
    text-align: center;
  }
}

.section-title {
  color: #3e3a39;
}

/************************************
START
対象：header
************************************/
/* 共通のスタイル */
header {
  /*
  position: absolute;
  top: auto;
  right: 0px;
  width: 100%;
  z-index: 10000;
*/
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #ffffff;
  /* 背景色を白に設定 */
  z-index: 10000;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* ロゴとナビゲーションメニューの間にスペースを空ける */
}

#logo img {
  width: 35%;
  margin-left: 100%;
/*
  width: 25%;
  margin-left: 200px;
*/
  /*  margin-top: 50px; */
  padding: 20px 0;
  flex-shrink: 0;
}

.header_inner {
  flex-grow: 1;
}

.header-nav {
  text-align: right;
}

/* PC用設定 */
@media (min-width: 768px) {
  header ul {
    display: flex;
    justify-content: flex-end;
    margin-right: 70px;
  }

  header ul li {
    /*    margin-top: 50px; */
    margin-left: 50px;
  }

  header ul li a {
    color: #726b67;
    font-size: 1.5em;
    font-family: 'EB Garamond', serif;
    /*  font-weight: bold;*/
    letter-spacing: 0.3em;
  }
}

.mobile-menu {
  visibility: hidden;
}

.mobile-menu__btn {
  visibility: hidden;
}

.mobile-menu {
  display: none;
}


/* スマホ用設定 */
@media screen and (max-width: 767px) {
  #logo {
    display: block;
    margin: 0 auto;
  }
  #logo img {
    width: 25%;
    margin-left: 0px;
    padding: 20px 0;
  }
  .header-container {
    display: block;
    text-align: center;
  }

  .header-nav {
    display: none;  /* モバイル時はナビゲーションを非表示にする */
  }

  .mobile-menu {
    display: block;
  }
  .mobile-header {
    display: block;
  }
  @-webkit-keyframes bgcolor-change {
    0%, 100% {
      background-color: #2c2c2c;
    }
    50% {
      background-color: #fff;
    }
  }
  @keyframes bgcolor-change {
    0%, 100% {
      background-color: #2c2c2c;
    }
    50% {
      background-color: #fff;
    }
  }
  .mobile-header {
    position: fixed;
    top: 0;
    left: 0;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    z-index: 20;
    width: 100%;
    height: 70px;
    -webkit-box-pack: end;
        -ms-flex-pack: end;
            justify-content: flex-end;
    padding-top: 5px;
    padding-right: 10px;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
  }
  .mobile-menu {
    visibility: visible;
    position: fixed;
    width: 100%;
    height: auto;
    text-align: center;
    top: 0;
    padding-top: 50px;
    padding-bottom: 10px;
    -webkit-transition: all 0.7s;
    transition: all 0.7s;
    background-color: unset;
    z-index: 5;
  }
  .mobile-menu__btn {
    visibility: visible;
    display: block;
    border: none;
    outline: none !important;
/*    border: 1px solid rgba(44, 44, 44, 0.1);*/
    background-color: rgba(255, 255, 255, 0.4);
    padding: 8px 5px;
  }
  .mobile-menu__btn > span {
    background-color: #2c2c2c;
    width: 25px;
    height: 2px;
    display: block;
    margin-bottom: 6px;
    -webkit-transition: -webkit-transform 0.7s;
    transition: -webkit-transform 0.7s;
    transition: transform 0.7s;
    transition: transform 0.7s, -webkit-transform 0.7s;
  }
  .mobile-menu__btn > span:last-child {
    margin-bottom: 0;
  }
  .mobile-menu__main {
    padding: 8px 0 0 0;
    margin: 0;
    visibility: hidden;
  }
  .mobile-menu__item {
    font-size: 16px;
    font-weight: bold;
    list-style: none;
    margin-bottom: 42px;
    z-index: 100;
  }
  .mobile-menu__link {
    text-decoration: none !important;
    color: #2c2c2c;
  }
  .menu-open .mobile-menu {
    background-color: rgba(255, 255, 255, 0.8);
    margin-top: 10%;
  }

  .menu-open .mobile-menu__main {
    visibility: visible;
  }

  .menu-open .mobile-menu__item {
    color: #2C2C2C;
    -webkit-transform: none;
    transform: none;
    opacity: 1;
  }

  .menu-open .mobile-menu__item:nth-child(1) {
    -webkit-transition-delay: 0.07s;
    transition-delay: 0.07s;
  }

  .menu-open .mobile-menu__item:nth-child(2) {
    -webkit-transition-delay: 0.14s;
    transition-delay: 0.14s;
  }

  .menu-open .mobile-menu__item:nth-child(3) {
    -webkit-transition-delay: 0.21s;
    transition-delay: 0.21s;
  }

  .menu-open .mobile-menu__item:nth-child(4) {
    -webkit-transition-delay: 0.28s;
    transition-delay: 0.28s;
  }

  .menu-open .mobile-menu__item:nth-child(5) {
    -webkit-transition-delay: 0.35s;
    transition-delay: 0.35s;
  }

  .menu-open .mobile-menu__btn>span {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: #2c2c2c !important;
  }

  .menu-open .mobile-menu__btn>span:nth-child(1) {
    -webkit-transition-delay: 70ms;
    transition-delay: 70ms;
    -webkit-transform: translateY(8px) rotate(145deg);
    transform: translateY(8px) rotate(145deg);
  }

  .menu-open .mobile-menu__btn>span:nth-child(2) {
    -webkit-transition-delay: 0s;
    transition-delay: 0s;
    -webkit-transform: translateX(-15px) scaleX(0);
    transform: translateX(-15px) scaleX(0);
  }

  .menu-open .mobile-menu__btn>span:nth-child(3) {
    -webkit-transition-delay: 140ms;
    transition-delay: 140ms;
    -webkit-transform: translateY(-8px) rotate(-145deg);
    transform: translateY(-8px) rotate(-145deg);
  }
}

/* タブレット（縦表示） */
@media screen and (min-width: 768px) and (max-width: 1023px) {
  #logo img {
    margin-left: 40%;
  }
}





/************************************
START
対象：ファーストビュー
************************************/
.first-view {
  position: relative; /* 子要素のポジションを制御する基準点とします */
}

.top {
  position: relative;
}

.top_img {
  width: 100%; /* 画像を親要素いっぱいに広げます */
  margin: 200px 0 0 0;
  height: auto; /* 高さは自動で調整します */
  /*
  -o-object-fit: cover;
     object-fit: cover;
  -webkit-animation-name: top-animation;
          animation-name: top-animation;
  -webkit-animation-duration: 20s;
          animation-duration: 20s;
  -webkit-animation-iteration-count: infinite;
          animation-iteration-count: infinite;
  -webkit-animation-timing-function: cubic-bezier(0.79, 0.01, 0.21, 1.01);
          animation-timing-function: cubic-bezier(0.79, 0.01, 0.21, 1.01);
*/
}

.top_img_second {
  position: absolute;
  top: 0;
  -webkit-animation-delay: 10s;
  animation-delay: 10s;
}

.catchphrase {
  position: absolute; /* 絶対位置指定を行います */
  top: 320px;
  left: 30%;
  font-family: 'EB Garamond', serif;
  transform: translate(-50%, -50%); /* 要素自体の50%ずらして中央に持ってくる */
  /* 以下、お好みでスタイリング */
  font-size: 4.55rem;
  color: #ffffff;
  letter-spacing: 0.45em;
  line-height: 1.8em;
  z-index: 1; /* 画像よりも前に来るようにします */
/*  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7); テキストに影をつける */
}
.catch-copy {
  color: #707070;
}

/* スマホ（縦向き）用のスタイル */
@media screen and (max-width: 767px) {
  .catchphrase {
    top: 0px;  /* 位置を調整 */
/*    top: 400px; */
    margin-top: 110%;
    left: 50%;  /* 位置を調整 */
    font-size: 2rem;  /* フォントサイズを調整 */
    /* その他、スマホ用に調整したいスタイルを追加 */
  }
  .catch-copy {
    color: #ffffff;
  }
  .top_img {
    width: 100%; /* 画像を親要素いっぱいに広げます */
    margin: 0 0 0 0;
    height: auto; /* 高さは自動で調整します */
    /*
    -o-object-fit: cover;
       object-fit: cover;
    -webkit-animation-name: top-animation;
            animation-name: top-animation;
    -webkit-animation-duration: 20s;
            animation-duration: 20s;
    -webkit-animation-iteration-count: infinite;
            animation-iteration-count: infinite;
    -webkit-animation-timing-function: cubic-bezier(0.79, 0.01, 0.21, 1.01);
            animation-timing-function: cubic-bezier(0.79, 0.01, 0.21, 1.01);
  */
  }
}

/************************************
START
対象：PHILOSOPHYセクション
************************************/
#philosophy {
  font-size: 1.6rem;
  /* background-image: url(../images/contact2.png); */
  background-color: #ffffff;
  background-size: cover;
  background-position: center;
  padding-bottom: 215px;
}

#philosophy .section-title {
  margin-top: 80px;
  margin-bottom: 40px;
  font-family: "adobe-caslon-pro", serif;
  font-size: 3.0rem;
  font-weight: 300;
  font-style: normal;
  letter-spacing: 0.55em;
  text-indent: 0.55em;
  /* letter-spacingの最後の文字のスペース分対策 */
  display: inline-block;
  position: relative;
  padding: 1.5rem;
  text-align: center;
}

#philosophy .section-ttl-img {
  width: 70%;
  margin: 0 0 3% 0;
}


#philosophy .section-title::before {
  position: absolute;
  bottom: 0px;
  /*  left: calc(50% - 30px); */
  left: calc(50% - 50px);
  width: 100px;
  height: 1.0px;
  content: '';
  /* border-radius: 3px;*/
  background: #707070;
  opacity: 0.3;
}

#philosophy .philosophy-main-text {
  text-align: center;
  font-size: 100%;
  letter-spacing: 0.45em;
  color: #726b67;
  font-family: 'Noto Serif JP', serif;
}

/* スマホ用設定 */
@media screen and (max-width: 767px) {
  #philosophy .section-title {
    font-size: 2.0rem;
    margin-top: 60px;
  }

  #philosophy .section-ttl-img {
    width: 70%;
    margin: 0 0 3% 0;
  }

}


/************************************
START
対象：ABOUTセクション
************************************/
/* 全般設定 */
#about {
  font-size: 1.6rem;
  background-color: #ffffff;
  padding-bottom: 215px;
}

/* タイトル
#about .section-title {
  margin-top: 80px;
  margin-bottom: 40px;
  font-family: "adobe-caslon-pro", serif;
  font-size: 3.0rem;
  font-weight: 300;
  text-align: center;
  position: relative;
  letter-spacing: 0.55em;
  text-indent: 0.55em;
  /* letter-spacingの最後の文字のスペース分対策
  z-index: 1;
}
*/

#about .section-title {
  margin-top: 80px;
  margin-bottom: 40px;
  font-family: "adobe-caslon-pro", serif;
  font-size: 3.0rem;
  font-weight: 300;
  font-style: normal;
  letter-spacing: 0.55em;
  text-indent: 0.55em;
  /* letter-spacingの最後の文字のスペース分対策 */
  display: inline-block;
  position: relative;
  padding: 1.5rem;
  text-align: center;
  z-index: 1;
}

#about .section-ttl-img {
  width: 70%;
  margin: 0 0 3% 0;
}

#about .section-title::before {
  position: absolute;
  bottom: 0px;
  /*  left: calc(50% - 30px); */
  left: calc(50% - 50px);
  width: 100px;
  height: 1.0px;
  content: '';
  /* border-radius: 3px;*/
  background: #707070;
  opacity: 0.3;
  z-index: 1;
}

/* フレックスコンテナ設定 */
#about .wrapper {
/*
  display: flex;
  justify-content: space-between;
*/
}

#about .section-title {
  grid-area: title;
}
#about .text {
  grid-area: text;
}
#about .image {
  grid-area: image;
}

#about .text {
  align-self: flex-end; /* この要素を縦の下に配置 */
}

#about .image {
  align-self: flex-start; /* この要素を縦の上に配置 */
}


#about .test-wrapper {
  display: flex;
  justify-content: space-between;
  width: 60%;
}
/**/

#about .about_text_img {
  width: 75%;
}


#about .top_img_flexbox_right {
/*
  width: 100%;
  left: 40px;
  top: -150px;
  z-index: 0;
*/
  width: 50%;
  left: 575px;
  top: -500px;
  z-index: 0;

}

.top_img_flexbox_right {
  position: absolute;
  top: 0;
  right: 0;
}

.top_img_flexbox_img {
  width: 100%;
}

/* 画像エリア */
.image {
  flex: 1;
  position: relative;
}
.text {
  flex: 1;
  position: relative;
  /* 子要素をpositionで動かす基準にします */
  text-align: left;
/*  top: 95px; */
  top: 70px;
  padding: 0 1%;
}

.text .item {
  position: relative;
  bottom: 10px;
  left: 0px;
  color: #000;
  margin: 12px 0;
}

/* .itemをFlexboxのコンテナにします */
.item {
  display: flex;
  align-items: center;
  /* 中央揃え */
}

/* .item-labelと.item-contentに対するスタイル */
.item-label, .item-content {
  flex: 1;/* 均等にスペースを割り当てる */
  padding-left: 50px;/* 左側に少し余白を持たせる */
  flex-basis: 100px;  /* 追加 */
}

/* 以下はテキストと線を接続するためのスタイルです */
.item-label {
  position: relative;
  padding-left: 20px;
  max-width: 100px;
/*  max-width: 25%; */
}

.item-content-list {
  list-style: none;
  padding-left: 20px;
}

.item-content {
  position: relative;
  text-align: left;
}

.item-content::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -10px;
  width: 40px;
  height: 1px;
  /*  background-color: #000;*/
  /*    background: #707070;*/
  opacity: 0.3;
}

.business-item {
  display: flex;
  align-items: flex-start;
/*  align-items: center;*/
}

.business-item .item-label::before {
  /* 事業内容の場合の縦線の設定 */
  /* 省略（既存の設定をそのまま利用でもよい） */
}

.business-item .item-content-list {
  position: relative;
  list-style: none;
/*  padding-left: 20px;*/
}

.business-item-content {
  padding-left: 30px;
}

/* 横線専用のクラス */
#about .horizon-line::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -3px;
  width: 40px;
  height: 1px;
  background: #707070;
  opacity: 0.3;
}

#about .horizon-line-1::before {
  left: -23px;
}

#about .horizon-line-2::before {
  width: 20px;
  left: -3px;
}


/* 縦線専用のクラス */
#about .vertical-line::before {
  content: "";
  position: absolute;
  top: 13px;
  left: 17px;
  bottom: 0;
  width: 1px;
  height: 92px;
  background: #707070;
  opacity: 0.3;
}


/* スマホ用のスタイル */
@media screen and (max-width: 767px) {
  #about {
    padding-bottom: 0px;
  }
  #about .wrapper {
    flex-direction: column-reverse;
    align-items: center;
    max-width: 100%;
  }

  /* タイトルスタイル */
  #about .section-title {
    position: relative;
    top: 0;
    z-index: 2;
    font-size: 2.0rem;
/*    margin-top: 60px;*/
  }
  #about .section-ttl-img {
    width: 70%;
    margin: 0 0 3% 0;
  }

  .text, .image {
    max-width: 100%;
    flex-basis: 100%;
  }
  /* 画像エリア */
  .image {
    position: relative;
    order: -1; /* 画像を一番上に */
    top: 0;
    left: 0;
    z-index: 0;
/*    top: -300px; */
    top: -28vh; /* 画像用 */
  }

  #about .top_img_flexbox_right {
    position: relative; /* ここを変更 */
    left: 0;
    z-index: 0; /* ここも調整 */
  }
  /* テキストエリア */
  .text {
    position: relative;
    top: auto;
    z-index: 2; /* タイトルと画像より下に */
    align-self: center;
    margin-top: 0px;
  }
  .item {
    font-size: 80%;
  }
  .text .item{
    margin: 12px 20px;
  }
  .about_img {
    margin-top: 10px;
  }
  #about .about_text_img {
    margin-top: 20px;
    width: 90%;
  }
  .item-label {
    padding: 0 10px;
/*    max-width: 30%; */
/*    max-width: 30%; */
    min-width: 110px;
    letter-spacing: 0.2em;
  }
  .item-label, .item-content {
    flex: 1; /* 均等にスペースを割り当てる */
/*    padding-left: 10px;  左側に少し余白を持たせる */
  }
  .item-content {
    padding-left: 30px;
  }
  .item-content::before {
    left: -30px;
    width: 50px;
  }
  /* ビジネスアイテムの内容（リスト）に対するスタイル */
  .business-item-content {
    padding-left: 30px;  /* こちらを50pxに揃えます */
  }
  .business-item .item-content-list {
    padding-left: 0px;
  }

  .business-item .item-content {

  }

  /* 横線専用のクラス（スマホ） */
  #about .horizon-line::before {
    content: "";
    position: absolute;
    top: 50%;
    left: -25px;
    width: 40px;
    height: 1px;
    background: #707070;
    opacity: 0.3;
  }

  #about .horizon-line-1::before {
    left: -23px;
  }

  #about .horizon-line-2::before {
    width: 20px;
    left: -3px;
  }


  /* 縦線専用のクラス（スマホ） */
  #about .vertical-line::before {
    content: "";
    position: absolute;
    top: 13px;
/*    left: 17px;*/
    left: -5px;
    bottom: 0;
    width: 1px;
/*    height: 92px;*/
    height: 72px;
    background: #707070;
    opacity: 0.3;
  }
}

@media screen and (min-width: 360px) and (max-width: 380px) {
  .image {
/*    top: -280px; テキスト用 */
    top: -38vh; /* 画像用 */
  }
  #about .vertical-line::before {
    height: 60px;
    height: 10.6vh;
    top: 10px;
/*
    height: 60px;
    top: 10px;
*/
  }
  .horizon-line-1::before{
    top: 10px;
  }
}

@media screen and (max-width: 359px) {
  .image {
/*    top: -280px; テキスト用 */
    top: -30vh; /* 画像用 */
  }
  .vertical-line::before {
    height: 300%;  /* 380px以下での高さを調整 */
    top: 50%;
  }
  .horizon-line-1::before{
    top: 10px;
  }
}

/* タブレット（縦表示） */
@media screen and (min-width: 768px) and (max-width: 1023px) {
  #about {
    padding-bottom: 0;
  }
  #about .wrapper {
    flex-direction: column-reverse;
    align-items: center;
    max-width: 100%;
  }
  #about .top_img_flexbox_right {
    width: 85%;
    left: 30px;
  }
  #about .about_text_img {
    width: 100%;
  }

  .image {
/*    top: -280px; テキスト用 */
    top: -22vh; /* 画像用 */
  }
  .about_img {
    margin-top: 30px;
    width: 100%;
/*    height: 200px*/
    object-fit: cover;
    object-position: 0 -200px;
  }
  .about_text_img {
    margin: -15% 0 0 0;
    padding: 0 20%;
  }
  .text {
    padding: 0 0 0 3%;
  }
  .item-label {
    padding-left: 0px;
  }
  .item-content {
    left: 0px;
  }
  .item-content::before {
    left: -20px;
  }
  .business-item {
    max-width: 100%;
  }
  .business-item .item-content-list {
    width: 75%;
    padding-left: 0;
  }
  .business-item .item-content-list::before {
    height: 92px;
    left: -5px;
  }
  .business-item .item-content::before {

  }
  .business-item .special-line::before {
    left: 0px;
  }
  /* 横線専用のクラス（スマホ） */
  #about .horizon-line::before {
    content: "";
    position: absolute;
    top: 50%;
    left: -25px;
    width: 40px;
    height: 1px;
    background: #707070;
    opacity: 0.3;
  }

  #about .horizon-line-1::before {
    left: -25px;
  }

  #about .horizon-line-2::before {
    width: 20px;
    left: -5px;
  }

  /* 縦線専用のクラス（スマホ） */
  #about .vertical-line::before {
    content: "";
    position: absolute;
    top: 13px;
/*    left: 17px;*/
    left: -5px;
    bottom: 0;
    width: 1px;
/*    height: 92px;*/
    height: 72px;
    background: #707070;
    opacity: 0.3;
  }
}


/************************************
START
対象：SERVICEセクション
************************************/
#service {
  font-size: 1.6rem;
  /* background-image: url(../images/service_bg.png); */
  background-color: #ffffff;
  background-size: cover;
  background-position: center;
  padding-bottom: 215px;
}
#service .section-title {
  margin-top: 80px;
  margin-bottom: 80px;
  font-family: "adobe-caslon-pro", serif;
  font-size: 3.0rem;
  font-weight: 300;
  font-style: normal;
  letter-spacing: 0.55em;
  text-indent: 0.55em;
  /* letter-spacingの最後の文字のスペース分対策 */
  display: inline-block;
  position: relative;
  padding: 1.5rem;
  text-align: center;
}

#service .section-ttl-img {
  width: 70%;
  margin: 0 0 3% 0;
}

#service .section-title::before {
  position: absolute;
  bottom: 0px;
  /*  left: calc(50% - 30px); */
  left: calc(50% - 50px);
  width: 100px;
  height: 1.0px;
  content: '';
  background: #707070;
  opacity: 0.3;
}

#service .tight-kerning {
/* margin-right: -4px; */
  margin-bottom: -10px;
}


.top_img_flexbox_txt_area {
  padding-top: 70px;
  width: 37%;
  margin: auto 9%;
}

#service .top_img_flexbox_right {
  width: 80%;
  left: 330px;
  top: -250px;
  z-index: 0;
}

#service .top_img_flexbox_txt_area {
  padding-top: 70px;
}

.vertical-writing {
  -ms-writing-mode: tb-rl;
  writing-mode: vertical-rl;
  text-align: start; /* 文字列の開始位置にテキストを揃えます */
}

h3.vertical-writing {
  font-family: 'Noto Serif JP', serif;
  font-weight: 200;
}


#service .vertical-writing {
  font-size: 150%;
  letter-spacing: 0.40em;
}

/* 共通のスタイリング */
.flex-container, .flex-container-reverse {
  display: flex;
  margin-bottom: 20px;
}

.left-box, .right-box {
  flex-grow: 1;
  position: relative;
}

.image-box {
  flex-shrink: 0;
  width: 80%;
}

.image-box img {
  width: 100%;
  height: auto;
}

.text-box-wrapper {
  position: relative;
  min-height: 200px;
}

.text-box {
  width: 100%;
  min-width: 480px;
/*  text-align: left;*/
  text-align: justify;
}

/* 不動産売買専用のスタイリング */
.service.real_estate .text-box {
  position: absolute;
  bottom: 180px;
  left: -350px;
}

.service.real_estate .vertical-writing {
  margin: 0 auto;
}

.service.real_estate .vertical-writing::after {
  content: "";
  position: absolute;
  bottom: 380px;
  left: 50%;
  /* 線をテキストの中央に配置 */
  width: 2px;
  /* 線の太さ */
  height: 60px;
  /* 線の長さ */
  background-color: #707070;
  /* 線の色 */
  opacity: 0.3;
}

.service.real_estate .img-btn {
  position: absolute;
  right: 0;
  bottom: 0;
}

#service .real_estate_container {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  position: relative;
  left: -50%;
  top: 620px;
}
#service .real_estate .top_img_flexbox_ttl {
  margin-top: 200px;
}

#service .real_estate_text-box {
  padding: 20px 30px; /* テキストボックスの内側のスペースを指定 */
  padding: 20px 20px; /* テキストボックスの内側のスペースを指定 */
/*  background-color: #d3d3d3;  グレーの背景色 */
  border-radius: 10px; /* 角を丸くする */
  width: 300px; /* 適切な幅を指定 */
/*  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);  影を追加して浮かび上がらせる */
}
#service .real_estate_title {
  font-weight: bold; /* タイトルの文字を太くする */
  display: block; /* タイトルを次の行に移動する */
  margin-bottom: 10px; /* タイトルと内容の間のスペースを指定 */
  background-color: #35617e; /* タイトルの背景色を指定 */
  color: white; /* タイトルの文字色を白にする */
  padding: 5px; /* タイトルの内側のスペースを指定 */
  border-radius: 25px; /* タイトルの角を丸くする */
  letter-spacing: 0.30em;
}
#service .real_estate_text {
  text-align: justify;
  letter-spacing: 0.05em;
}


/* 再生可能エネルギー専用のスタイリング */
.service.renewable_energy .text-box {
  position: absolute;
  bottom: 200px;
  left: 90px;
}

.service.renewable_energy .vertical-writing {
  margin: 0 auto;
}

.service.renewable_energy .vertical-writing::after {
  content: "";
  position: absolute;
  bottom: 370px;
  left: 50%;
  /* 線をテキストの中央に配置 */
  width: 2px;
  /* 線の太さ */
  height: 60px;
  /* 線の長さ */
  background-color: #707070;
  /* 線の色 */
  opacity: 0.3;
}

#service .renewable_energy .top_img_flexbox_ttl {
  margin-top: 100px;
}


.service.renewable_energy .img-btn {
  position: absolute;
  right: 0;
  bottom: 0;
}

/* 化粧品販売専用のスタイリング */
.flex-container.service.cosmetics {
    margin: 0 0 250px 0;
}

.btn-box-wrapper {
  position: relative;
  min-height: 200px;
}


.service.cosmetics .text-box {
  /*
  position: absolute;
  bottom: 0px;
  left: 0px;
*/
  position: absolute;
  /* margin-top: 500px; */
/*  bottom: -110px;*/
  bottom: -255px;
/*  left: -350px; 左に写真がくるレイアウトのとき*/
  top: 120px;
  right: -360px; /*  右に写真がくるレイアウトのとき*/
}

.service.cosmetics .vertical-writing {
  /*  margin: 0 auto;*/
  margin: 350px auto 0;
}

.service.cosmetics .vertical-writing::after {
  content: "";
  position: absolute;
  /*  bottom: -70px; */
  bottom: 370px;
  left: 50%;
  /* 線をテキストの中央に配置 */
  width: 2px;
  /* 線の太さ */
  height: 60px;
  /* 線の長さ */
  background-color: #707070;
  /* 線の色 */
  opacity: 0.3;
}

.service.cosmetics .img-btn {
  /*
  position: absolute;
  right: 0;
  bottom: 0;
*/
  position: absolute;
  /* margin-top: 500px; */
/*  bottom: -160px;*/
/* 左に写真があるレイアウトの時
  bottom: -330px;
  left: 40px;
*/
/* 右に写真があるレイアウトの時 */
  bottom: -100px;
  left: -125px;
}

.flexbox_card_btn_more {
  display: block;
  margin-top: 20px;
  margin-left: auto;
  width: 100px;
}

/* TEST END */
.contents {
  margin: 0 auto;
  padding-bottom: 265px;
  min-width: 1080px;
}

.contents .inner {
  text-align: center;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  margin-bottom: 210px;
  position: relative;
}

.contents .inner2 {
  text-align: center;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: reverse;
  -ms-flex-direction: row-reverse;
  flex-direction: row-reverse;
  position: relative;
}

.contents .contents-title {
  font-size: 2.6rem;
  margin-top: 80px;
  margin-bottom: 47px;
}

.contents .text-content {
  width: 50%;
}

.contents .inner-contetnt {
  width: 50%;
}

.contents .inner-contetnt2 {
  width: 50%;
}

.contents .text {
  font-size: 2.0rem;
  line-height: 2;
  margin-bottom: 65px;
}

.contents .empty-box {
  width: 300px;
  height: 500px;
  background-color: #2C2C2C;
  position: relative;
  position: absolute;
  margin-top: 0px;
  right: 9%;
}

.contents .empty-box img {
  max-width: 130%;
  position: absolute;
  top: 50%;
  right: 30%;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
}

.contents .empty-box2 {
  width: 300px;
  height: 500px;
  background-color: #2C2C2C;
  position: relative;
  position: absolute;
  left: 9%;
}

.contents .empty-box2 img {
  max-width: 130%;
  position: absolute;
  top: 50%;
  left: 30%;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
}

.contents .line {
  position: absolute;
  left: 50%;
  width: 2px;
  height: 1300px;
  background-color: #000;
}

.contents .button {
  border: 1px solid #2c2c2c;
  background-color: #2c2c2c;
  padding: 15px 30px;
  color: #fff;
  font-size: 1.8rem;
  display: inline-block;
}

.contents .button:hover {
  color: #2c2c2c;
  background-color: #fff;
}

/* スマホ用のスタイル */
@media screen and (max-width: 767px) {
  #service {
    margin-top: -150px;
    padding-bottom: 50px;
  }
  #service .wrapper {
    max-width: 100%;
  }
  /* タイトルスタイル */
  #service .section-title {
/*    position: absolute; */
    font-size: 2.0rem;
    margin-top: 60px;
  }

  #service .section-ttl-img {
    width: 70%;
    margin: 0 0 3% 0;
  }

  #service .container {
    margin: -120px 0 0 0;
  }

  .service-name-img, .service-img {
    width: 100%;
    max-width: 600px;
  }

  .service-name-img {
    padding: 0 30%;
    margin: 80px 0 50px 0;
  }

  .service-title {
    font-size: 24px;
    margin-top: 30px;
    text-align: center;
    letter-spacing: 0.40em;
    font-size: 110%;
    padding: 0 3%;
    color: #3e3a39;
    font-family: 'Noto Serif JP', serif;
    font-weight: 200;
  }

  #service .vertical-line {
    width: 1px;
    height: 20px;
    background: #707070;
    opacity: 0.3;
    margin: 15px auto;
  }

  .service-description {
    padding: 0 8%;
    font-size: 90%;
/*    text-align: left;*/
    text-align: justify;
    color: #3e3a39;
  }

  /* ボタンのスタイリング */
  .button-container {
    text-align: center;
    margin: 50px 0;
  }

  .service-button {
    background-color: #ffffff;
    color: #3e3a39;
    padding: 15px 30px;
    border: 1.5px solid #3e3a39;
    border-radius: 4px;
    cursor: pointer;
    font-size: 100%;
    padding: 5px 50px;
  }

  #service .real_estate_container {
    gap: 60px;
    flex-direction: column;
    align-items: center;
    left: 0;
    top: 0px;
  }

  #service .real_estate_text-box {
    width: 100%; /* こちらも適宜調整してください */
    padding: 0 8%;
    font-size: 90%;
  }
}

/* タブレット（縦表示） */
@media screen and (min-width: 768px) and (max-width: 1023px) {
  #service .vertical-writing {
    font-size: 110%;
  }
  img.service-name-img {
    padding: 0 15%;
    margin: 0% 0 10% 0;;
    width: 50%;
  }
  h3.service-title {
    margin: 3% 0 0% 0;
    font-size: 140%;
  }
  .service-description {
    margin-bottom: 15%;
    padding: 0 10%;
    text-align: left;
  }
  .button-container {
    text-align: center;
    margin: 50px 0;
  }
  .service-button {
    background-color: #ffffff;
    color: #3e3a39;
    padding: 15px 30px;
    border: 1.5px solid #3e3a39;
    border-radius: 4px;
    cursor: pointer;
    font-size: 100%;
    padding: 5px 50px;
  }
  #service .vertical-line {
    width: 1px;
    height: 20px;
    background: #707070;
    opacity: 0.3;
    margin: 15px auto;
  }

  .service.cosmetics .vertical-writing {
    margin: 205px auto 0;
  }
  .text-box{
    min-width: 420px;
  }
  .service.real_estate .text-box {
    bottom: 120px;
    left: -380px;
  }

  .service.renewable_energy .text-box{
    bottom: 100px;
    left: 70px;
  }
  .service.cosmetics .text-box {
    bottom: -110px;
    left: -310px;
  }
  .image-box {
    padding-left: 3%;
    max-width: 80%;
  }
  .image-box img {
    width: 85%;
  }
  .service.real_estate .vertical-writing::after,.service.renewable_energy .vertical-writing::after,.service.cosmetics .vertical-writing::after {
    height: 6vh;
    bottom: 15vh;
  }

  #service .real_estate_container {
    gap: 60px;
    flex-direction: column;
    align-items: center;
    left: 0;
    top: 0px;
    margin-bottom: 15%;
  }

  #service .real_estate_text-box {
    width: 100%; /* こちらも適宜調整してください */
    padding: 0 10%;
    font-size: 100%;
  }

}

/************************************
START
対象：CONTACTセクション
************************************/
#contact {
  font-size: 1.6rem;
  /*  background-image: url(../images/contact2.png); */
  background-color: #ebebeb;
  background-size: cover;
  background-position: center;
  padding-bottom: 215px;
}

#contact .section-title {
  margin-top: 80px;
  margin-bottom: 40px;
  font-family: "adobe-caslon-pro", serif;
  font-size: 3.0rem;
  font-weight: 300;
  font-style: normal;
  letter-spacing: 0.55em;
  text-indent: 0.55em;
  /* letter-spacingの最後の文字のスペース分対策 */
  display: inline-block;
  position: relative;
  padding: 1.5rem;
  text-align: center;
}

#contact .section-ttl-img {
  width: 70%;
  margin: 0 0 3% 0;
}

#contact .section-title::before {
  position: absolute;
  bottom: 0px;
  /*  left: calc(50% - 30px); */
  left: calc(50% - 50px);
  width: 100px;
  height: 1.0px;
  content: '';
  /* border-radius: 3px;*/
  background: #707070;
  opacity: 0.3;
}

#contact p {
  /*  margin-bottom: 100px;*/
}

#contact div.contact-text-block {
  margin-bottom: 100px;
  text-align: center;
  /* 親要素全体を中央寄せに */
}

#contact p.contact-main-text {
  margin-bottom: 50px;
  font-size: 120%;
}

#contact div.annotation {
  display: inline-block;
  /* inline-blockにして親のtext-align: centerを受け継ぐ */
  text-align: left;
  /* テキスト自体は左寄せに */
  font-size: 85%;
/*  margin: 0 23%;*/
  font-family: "游ゴシック体", YuGothic, "游ゴシック", "Yu Gothic", sans-serif;
}

#contact div.privacy-policy-agreement {
  margin-bottom: 60px;
  font-family: "游ゴシック体", YuGothic, "游ゴシック", "Yu Gothic", sans-serif;
}

#contact dl {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  margin: 0 auto;
  /*  margin-bottom: 20px; */
  max-width: 600px;
}

#contact dt {
  width: 30%;
  text-align: left;
}

#contact dd {
  width: 70%;
  margin-bottom: 40px;
}

#contact dd input,
#contact dd textarea {
  width: 90%;
/*  border: solid 1px #2C2C2C;*/
  padding: 10px;
  background-color: #fff;
}

#contact dd textarea {
  height: 15rem;
}

#contact .button {
  text-align: center;
}

#contact .button input {
  width: 200px;
  background-color: #595757;
  color: #fff;
  padding: 15px 0;
  border: solid 1px #595757;
  font-family: "游ゴシック体", YuGothic, "游ゴシック", "Yu Gothic", sans-serif;
}

/* TEST追加 */
#contact dd {
  margin-bottom: 40px;
}

#contact dl {
  margin: 0 auto;
  max-width: 710px;
  /* これは例です。必要に応じて調整してください。 */
  display: flex;
  flex-direction: column;
  align-items: center;
  /* 子要素を中央寄せ */
}

#contact dd {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 40px;
}

.input-container {
  position: relative;
  width: 600px;
  /* これも例です。必要に応じて調整してください。 */
  margin-bottom: 30px;
}

#contact dd label {
  position: absolute;
  left: 0px;
  top: -30px;
  font-family: "游ゴシック体", YuGothic, "游ゴシック", "Yu Gothic", sans-serif;
  font-weight: 500;
}

#contact dd input,
#contact dd textarea {
  width: 100%;
/*  border: solid 1px #2C2C2C;*/
  background-color: #fff;
  padding: 10px;
}

#contact dd textarea {
  height: 15rem;
}

#contact div.annotation.pc-only {
  display: inline-block;
}

#contact div.annotation.sp-only {
  display: none;
}

/* スマホ用設定 */
@media screen and (max-width: 767px) {
  #contact {
    padding-bottom: 50px;
  }
  #contact .wrapper {
    max-width: 100%;
  }

  #contact .button input {
    border-radius: 4px;
    padding: 10px 10px;
    font-size: 100%;
  }

  #contact .section-title {
    font-size: 2.0rem;
    margin-top: 60px;
  }

  #contact .section-ttl-img {
    width: 70%;
    margin: 0 0 3% 0;
  }

  #contact div.contact-text-block {
    margin-bottom: 50px;
  }
  #contact p.contact-main-text {
    font-size: 110%;
    margin-bottom: 30px;
  }
  #contact div.annotation {
    font-size: 75%;
    padding: 0 15%;
  }
  #contact div.annotation p {
    margin-bottom: 20px;
    font-family: "游ゴシック体", YuGothic, "游ゴシック", "Yu Gothic", sans-serif;
  }
  /* 共通のスタイル */
  #contact div.annotation {
    text-align: left;
    font-size: 85%;
    display: inline-block;
  }
  #contact div.privacy-policy-agreement {
    margin: -10px 0 60px 0;
  }

}

  /************************************
  START
  対象：FOOTERセクション
  ************************************/
.footer {
  font-size: 1.6rem;
  text-align: center;
  background-color: #ffffff;
  padding: 30px;
}

.footer img {
  height: 3vw;
  margin-bottom: 22px;
}

.footer-text {
  margin: 50px 0 0px 0;
}

.footer-text img {
  max-width: 100%;
  /* 画像が大きすぎる場合に備えて */
  width: 380px;
  height: auto;
}

.footer-logo {
  margin: 40px 0 0px 0;
}

.footer-logo img {
  max-width: 100%;
  /* 画像が大きすぎる場合に備えて */
  width: 130px;
  height: auto;
  /* 高さは自動で調整 */
}

.copyright p {
  margin: 0;
  /* 余白を削除して整える */
  font-size: 85%;
}

/* スマホ用のスタイル */
@media screen and (max-width: 767px) {
  .footer-text {
    margin: 30px 0 0px 0;
  }

  .footer-text img {
    max-width: 100%;
    /* 画像が大きすぎる場合に備えて */
    width: 360px;
    height: auto;
  }
  .footer-logo {
    margin: 30px 0 0px 0;
  }
  .footer-logo img {
    max-width: 100%;
    width: 115px;
    height: auto;
  }
  .copyright p {
    font-size: 70%;
  }

}

/************************************
START
対象：プライバシーポリシー
************************************/
/* プライバシーポリシー専用のCSS（PC） */
#Privacy-Policy {
  font-family: "游ゴシック体", YuGothic, "游ゴシック", "Yu Gothic", sans-serif;
  line-height: 1.6;
  padding: 20px;
}

#Privacy-Policy .container {
  max-width: 1080px;
  margin: 0 auto;
  font-size: 1.5em;
}

#Privacy-Policy h1 {
  font-size: 1.8em;
  border-bottom: 2px solid #333;
  padding-bottom: 10px;
  margin-bottom: 20px;
}

#Privacy-Policy h2 {
  font-size: 1.4em;
  margin-top: 20px;
  margin-bottom: 10px;
}
#Privacy-Policy h3 {
  font-size: 1.2em;
}

#Privacy-Policy .policy-section {
  margin-bottom: 20px;
}

#Privacy-Policy .policy-section p {
/* 字下げ  text-indent: 1em;  */
  color: #333;
}

/* プライバシーポリシー専用のCSS（スマホ） */
@media screen and (max-width: 767px) {
  #Privacy-Policy {
    font-family: "游ゴシック体", YuGothic, "游ゴシック", "Yu Gothic", sans-serif;
    line-height: 1.5;
    padding: 15px;
  }

  #Privacy-Policy .container {
    width: 100%;
    margin: 0 auto;
  }

  #Privacy-Policy h1 {
    font-size: 1.8em;
    border-bottom: 1px solid #333;
    padding-bottom: 8px;
    margin-bottom: 16px;
  }

  #Privacy-Policy h2 {
    font-size: 1.4em;
    margin-top: 16px;
    margin-bottom: 8px;
  }
  #Privacy-Policy h3 {
    font-size: 1.2em;
  }

  #Privacy-Policy .policy-section {
    margin-bottom: 16px;
  }

  #Privacy-Policy .policy-section p {
    /* 字下げ  text-indent: 1em;  */
    color: #333;
  }
}



/************************************
START
対象：デバイス依存（PCとSPでの表示切替）
************************************/
/* PC用 */
@media screen and (min-width: 1024px) {
  .pc-only {
    display: block;
  }
  .pc-only > .image {
    flex: 1; /* または元々設定されていた値 */
  }
  .sp-only {
    display: none;
  }
}

@media screen and (min-width: 768px) and (max-width: 1023px) {
  .sp-only {
    display: block;
  }
  .pc-only {
    display: none;
  }
}


/* スマホ用 */
@media screen and (max-width: 767px) {
  .sp-only {
    display: block;
  }
  .pc-only {
    display: none;
  }
}
