@charset "utf-8";
.wrapper {
    max-width: 90%;
  }

  @media (max-width:960px) {
    #service {
      margin: 120px auto;
    }
    .title {
      margin-bottom: 40px;
    }
    .title h2 {
      font-size: 3.2rem;
      text-align: center;
      padding-bottom: 10px
    }
    .title p {
      font-size: 1.5rem;
      padding-left: 0px;
    }
    .service_content {
      flex-wrap: wrap;
    }
    .service_content li {
      width: 93%;
      max-width: 480px;
      margin: 0 auto 60px auto;
    }
    .service_lead h4 {
      font-size: 1.8rem;
    }
    .service_lead p {
      padding: 20px 0;
      font-size: 1.6rem;
      line-height: 1.6;
    }
  }

/*=============profile===================*/
.title {
    display: block;
    margin-bottom: 100px;
    text-align: center;
  }
  .title h2 {
    font-size: 6.4rem;
    font-weight: 700;
    padding-bottom: 15px;
    color:var(--primary-red);
  }
  .title p {
    font-size: 1.8rem;
    color: #000;
  }

#profile {
    margin: 100px auto 0 auto;
  }
  .address {
    font-style: normal;
  }
  .dl_table {
    font-size: 1.6rem;
    margin: 0 auto;
    width: 85%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }
  .dl_table dt {
    width: 20%;
    border-top: 1.33px solid var(--primary-red);
    padding: 25px 8% 25px 25%;
    line-height: 1.7;
  }
  
  .dl_table dd {
    width: 40%; /*dtとddが合計100％になるように！そこにはpaddingの大きさも含まれるから注意*/
    border-top: 1.33px solid var(--primary-red);
    padding: 25px 0;
    line-height: 1.7;
  }
  .dl_table dt:last-of-type,
  .dl_table dd:last-of-type {
  border-bottom: 1.33px solid var(--primary-red);
  margin-bottom: 70px; 
  }

  .sidebar {
    margin-top: 40px;
    display: inline-block;
    font-weight: 300;
  }
  .advisor p {
    padding-bottom: 3%;
    letter-spacing: 1px;
  }
  /*====================profile_sh===============*/
  @media(max-width:960px) {
    section#profile .title h2 {
      margin: 0 auto;
    }
    .title h2 {
      font-size: 3.2rem;
      padding-bottom: 10px;
    }
    .title p {
      font-size: 1.5rem;
    }
    .dl_table {
      width: 95%;
    }
    .dl_table dt {
      width: 25%;
      padding: 25px 10% 25px 12%;
    }
    .dl_table dd {
      width: 45%;
    }
    .br br {
      display: none;
    }
  }
  @media(max-width:680px) {
    .flex {
      display: block;
    }
    .officer, .officer2, .officer3 {
      padding-right: 0px;
      padding-bottom: 8px;
    }
  }
  /*==========================mail================*/
  .mail_block_sh {
    display: none;
  }
  .mail_lead {
    display: block;
    margin: 100px auto 40px auto;
    text-align: center;
  }
  .mail_lead p {
    display: inline-block;
    font-size: 1.6rem;
    text-align: left;
    margin: 0 auto;
    line-height: 1.5;
    color: #484848;
  }
  .contact_flex {
    display: flex;
    justify-content: space-evenly;
  }
  .mail_block {
    text-align: center;
  }
  .mail_block p {
    font-size: 2.4rem;
    font-weight: 800;
    text-align: center;
  }
  /*== 少し出ていた線が伸びる */
  .btnlinestretches2 {
    /*線の基点とするためrelativeを指定*/
    position: relative;
    /*ボタンの形状*/
    color: #484848;
    padding: 30px 30px;
    display: inline-block;
    text-decoration: none;
    outline: none;
    width: 200px;
  }
  /*線の設定*/
  .btnlinestretches2::before, .btnlinestretches2::after {
    content: '';
    /*絶対配置で線の位置を決める*/
    position: absolute;
    /*事前に出現させる線の形状*/
    border: solid var(--primary-red);
    width: 10px;
    height: 10px;
    /*アニメーションの指定*/
    transition: all 0.3s ease-in-out;
  }
  .btnlinestretches2::before {
    /*事前に出現させる線の位置*/
    top: 0;
    left: 0px;
    /*事前に出現させる線の形状*/
    border-width: 2px 0 0 2px;
  }
  .btnlinestretches2::after {
    /*事前に出現させる線の位置*/
    bottom: 0;
    right: 0px;
    /*事前に出現させる線の形状*/
    border-width: 0 2px 2px 0;
  }
  /*hoverした際の線の形状*/
  .btnlinestretches2:hover::before, .btnlinestretches2:hover::after {
    width: calc(100% - 2px);
    height: calc(100% - 2px);
    border-color: var(--primary-red)
  }
  @media(max-width:960px) {
    .mail_lead {
      margin: 60px auto 40px auto;
    }
    .mail_block {
      display: none;
    }
    .mail_block_sh {
      display: block;
      border: solid 1px var(--primary-red);
      padding: 30px 4%;
      max-width: 240px;
      margin: 0 auto;
      margin-bottom: 30px;
    }
    .mail_block_sh a {
      text-decoration: none;
      color: #484848;
      font-size: 1.8rem;
      font-weight: 600;
      text-align: center;
    }
    .mail_lead p {
      font-size: 1.4rem;
    }
  }
  /*==================== wellbeing ====================*/
#wellbeing {
  margin: 200px auto 0;
  max-width: 1600px;
  padding: 0 5%;
}

.wellbeing_title {
  text-align: center;
  margin-bottom: 100px;
}
.wellbeing_title h2 {
  font-size: 6.4rem;
  font-weight: 700;
  color: var(--primary-red);
  padding-bottom: 15px;
}
.wellbeing_title p {
  font-size: 1.8rem;
  color: #000;
  padding-left: 5px;
}

/* -------- メイン構造 -------- */
.wellbeing_section {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.wellbeing_section li {
  list-style: none;
  border: 1px solid var(--primary-red);
  /* border-radius: 8px; */
  padding: 25px 35px;
  width: 80%;
  background-color: #fff;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

/* -------- 各項目 -------- */
.wellbeing_item h4 {
  font-size: 2.0rem;
  font-weight: 800;
  padding-bottom: 10px;
  border-bottom: solid 2px var(--primary-red);
  display: inline-block;
  margin-bottom: 20px;
}

.heading--health {
  width: auto;
}
.heading--harassment {
  width: auto;
}

.wellbeing_item p {
  font-size: 1.7rem;
  line-height: 1.8;
  color: #333;
}


/* ----------- アコーディオン ----------- */

/* summary（見出し） */
.wb-summary {
  list-style: none;
  cursor: pointer;
  font-size: 2.0rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: space-between; /* ← 両端に配置 */
  position: relative;
  width: 100%;
}
/* WebKit系（iOS Safari/Chrome） */
.wb-summary::-webkit-details-marker {
  display: none;
}

/* Firefox系（::markerを無内容に） */
.wb-summary::marker {
  content: "";
  font-size: 0;
}

/* 念のための外観リセット（古いSafari対策） */
details > summary {
  -webkit-appearance: none;
}
/* 下線は見出しテキストの幅に合わせる */
.wb-summary span {
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
}
.wb-summary span::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-red);
}

/* アイコン */
.wb-summary::after {
  content: "＋";
  font-weight: 700;
  transition: transform .2s ease;
}
.wb-details[open] .wb-summary::after {
  content: "−";
}

/* 本文 */
.wb-panel {
  overflow: hidden;
  max-height: 0;
  transition: max-height .35s ease;
}
.wb-details[open] .wb-panel {
  max-height: 2000px;
  margin-top: 16px;
}



/*==================== responsive ====================*/
@media (max-width: 960px) {
  #wellbeing {
    margin: 80px auto;
  }

  .wb-summary {
    font-size: 1.6rem;
  }
  .wellbeing_title p {
    font-size: 1.5rem;
    padding-left: 0;
  }

  .wellbeing_section {
    flex-direction: column;
    gap: 40px;
  }

  .wellbeing_section li {
    width: 75%;
    max-width: 480px;
    margin: 0 auto;
    padding: 30px 20px;
  }

  .wellbeing_item h4 {
    font-size: 1.8rem;
  }
  .wellbeing_item p {
    font-size: 1.6rem;
    line-height: 1.7;
  }
}

  /*===========access===========================*/
  #access {
    margin: 160px auto 0 auto;
  }
  #access iframe {
    width: 70%;
    margin: 0 auto;
    display: block;
  }

  .access-info{
    padding:35px 0 0 15%;
  }
  .access-info__heading{
    font-size: 2rem;
    color: var(--primary-red);
  }
  .access-info__label{
    padding-top: 20px;
  }
  .access-info__label,
  .access-info__detail{
    font-size: 1.6rem;
    line-height: 1.5;
  }
  .access-info__detail{
    padding-left:15px;
  }
  /*===============access_sh===================*/
  @media(max-width:960px) {
    #access {
      margin: 100px auto 0 auto;
    }
    #access iframe {
      width: 100%;
      height: 370px;
    }

    .access-info{
      margin: 20px auto 0;
      padding:0px;
    }

    .access-info__heading{
      font-size: 1.8rem;
    }
    .access-info__label{
      padding-top: 10px;
    }
    .access-info__label,
  .access-info__detail{
    font-size: 1.4rem;
  }
  }
  /*=============trading==========================*/
#trading {
    margin: 140px auto 0 auto;
  }
  .title2 {
    display: block;
    margin-bottom: 60px;
    text-align: center;
  }
  .title2 h3 {
    font-size: 2.4rem;
    font-weight: 700;
    padding-bottom: 25px;
  }
  h3{
    text-decoration: underline;
    text-decoration-color: var(--primary-red);
  }
  .title2 p {
    font-size: 1.6rem;
    line-height: 1.5;
    display: inline-block;
    margin: 0 auto;
  }
  .flex_trading {
    margin: 0 auto;
    width: max-content;
  }
  .flex_box {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    margin-top: 80px;
  }
  .flex_box li {
    list-style: none;
    font-size: 1.6rem;
    font-weight: 500;
    padding-bottom: 60px;
  }
  .notes {
    font-size: 1.6rem;
  }
  /*=========trading_sh===================*/
  @media(max-width:700px) {
    #trading {
      margin: 100px auto 0 auto;
    }
    .flex_box {
      flex-direction: column;
      margin-top: 60px;
      margin-left: 7%;
    }
  }