/* 通常状態（背景なし） */
.wrapper.page {
  overflow: visible;
  background: none;
}

.wrapper.business {
  overflow: hidden;
}

.wrapper.recruit {
  overflow: hidden;
}

/* お問い合わせセクション付近だけ背景表示 */
.wrapper.page.bg-fixed {
  overflow: hidden;
  background-image: url("../images/top/fixed_bg.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
}

/* ページタイトル */
.main-ttl-wrap {
  margin-bottom: 120px;
  margin-top: var(--header-height, 0px);
}

.main_ttl {
  position: relative;
  margin-bottom: 100px;
}

.main_ttl>.bg {
  width: 100%;
  height: 380px;
}

.main_ttl h2 {
  display: block;
  left: calc(15px + 50 * (100vw - 320px) / 1180);
  transform: translateY(-50%);
  top: 64%;
  align-items: center;
  position: absolute;
  justify-content: center;
  z-index: 100;
}

.main_ttl>.bg img {
  max-width: inherit;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.main_ttl_text_box {
  height: 100%;
  z-index: 100;
}

.main-ttl-box {
  height: 100%;
  display: block;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
  top: 50%;
  align-items: center;
  position: absolute;
  justify-content: center;
}

.main-ttl-bg {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translateX(-50%) translateY(-50%);
  width: 400px;
  height: auto;
  margin: 0 auto;
}

.main_ttl>.bg::before {
  content: '';
  position: absolute;
  width: 169px;
  height: 200px;
  background-size: contain;
  right: 0;
  background-repeat: no-repeat;
}

.main_ttl>.bg::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 300px;
  background-size: contain;
  left: 0;
  background-repeat: no-repeat;
}

.main_ttl .fs-en {
  font-weight: 500;
  display: block;
  color: #fff;
  font-size: 56px;
  white-space: nowrap;
  line-height: 1.5;
  margin-bottom: 25px;
  text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.1);
  color:#fff;
  padding: 5px 15px;
  background: linear-gradient(to right, #1f195b 0%, #29acfa 100%);
  font-family: "Tenor Sans", sans-serif;
}

.main_ttl .txt {
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  display: table;
  padding: 15px;
  white-space: nowrap;
  color: #fff;
  background: linear-gradient(to right, #1f195b 0%, #29acfa 100%);
  text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.1);
}

.section-box .sec-title {
  font-weight: 700;
  font-family: "Zen Maru Gothic", sans-serif;
  color: var(--main-color);
  font-size: 72px;
  line-height: 1;
  letter-spacing: 0;
  margin-bottom: 60px;
}

.section-box .sub-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  font-family: "Zen Maru Gothic", sans-serif;
  color: var(--main-color);
  margin-bottom: 5px;
  display: table;
}

.detail-btn-list .flex-box {
  display: flex;
  justify-content: center;
  gap: 0 20px;
}



@media (max-width: 1200px) {
  .main-ttl-wrap {
    margin-bottom: min(calc(80px + (100 - 80) * (100vw - 992px) / (1500 - 992)),
        100px);
  }

  .main_ttl .fs-en {
    font-size: min(calc(32px + (56 - 32) * (100vw - 992px) / (1500 - 992)),
        56px);
    margin-bottom: 15px;
  }

  .main_ttl .txt {
    font-size: min(calc(22px + (30 - 22) * (100vw - 992px) / (1500 - 992)),
        30px);
  }

  .main-ttl-bg {
    width: min(calc(300px + (400 - 300) * (100vw - 992px) / (1500 - 992)),
        400px);
  }

  .main_ttl>.bg {
    width: 100%;
    height: min(calc(300px + (380 - 300) * (100vw - 992px) / (1500 - 992)),
        380px);
  }

  .section-box .sec-title {
    font-weight: 700;
    color: #00b98f;
    font-size: min(calc(48px + (72 - 48) * (100vw - 992px) / (1500 - 992)),
        72px);
    line-height: 1;
    letter-spacing: 0;
    margin-bottom: min(calc(40px + (60 - 40) * (100vw - 992px) / (1500 - 992)),
        60px);
  }

  .section-box .sub-title {
    font-size: min(calc(16px + (20 - 16) * (100vw - 992px) / (1500 - 992)),
        20px);
  }

}

@media (max-width: 991px) {
  .main_ttl {
    margin-bottom: 80px;
  }

  .main-ttl-wrap {
    margin-bottom: min(calc(60px + (80 - 60) * (100vw - 320px) / (991 - 320)),
        80px);
  }

  .main_ttl .fs-en {
    font-size: 32px;
  }

  .main_ttl .txt {
    font-size: 20px;
  }

  .main-ttl-bg {
    width: min(calc(260px + (300 - 260) * (100vw - 320px) / (991 - 320)),
        260px);
  }

  .main_ttl>.bg {
    width: 100%;
    height: 300px;
  }

  .main_ttl h2 {
    display: block;

  }

  .section-box .sec-title {
    font-size: min(calc(40px + (60 - 40) * (100vw - 320px) / (991 - 320)),
        60px);
    margin-bottom: min(calc(20px + (40 - 20) * (100vw - 320px) / (991 - 320)),
        40px);
  }

  .section-box .sub-title {
    font-size: min(calc(16px + (20 - 16) * (100vw - 320px) / (991 - 320)),
        20px);
  }

  .detail-btn-list .flex-box {
    display: block;
  }

  .achievements.main_ttl .fs-en {
    font-size: 33px;
  }

  .main_ttl>.bg::before {
    width: min(calc(100px + (169 - 100) * (100vw - 320px) / (991 - 320)),
        169px);
    height: min(calc(120px + (200 - 120) * (100vw - 320px) / (991 - 320)),
        200px);
  }

  .main_ttl>.bg::after {
    width: min(calc(250px + (400 - 250) * (100vw - 320px) / (991 - 320)),
        400px);
    height: min(calc(200px + (300 - 200) * (100vw - 320px) / (991 - 320)),
        300px);
  }
}

@media (max-width: 768px) {
  .main_ttl {
    margin-bottom: 60px;
  }
}

@media (max-width: 480px) {
  .main_ttl {
    margin-bottom: 50px;
  }
}

/* =======================================
パンくず
======================================== */
.breadcrumb_wrap {
  position: static;
  padding-right: min(2.5vw, 50px);
  margin-top: 20px;
  bottom: 20px;
  right: calc(15px + 50 * (100vw - 320px) / 1180);
}

.breadcrumb_wrap .panlist {
  font-weight: 500;
  font-size: 11px;
  line-height: 1.2;
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  overflow-y: hidden;
  overflow-x: auto;
}

.breadcrumb_wrap .panlist>li {
  display: flex;
  align-items: center;
}


.breadcrumb_wrap .panlist>li {
  font-size: 11px;
  text-align: right;
}

.breadcrumb_wrap .panlist>li>a {
  color: #1f195b;
  white-space: nowrap;
  font-size: 11px;
  text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.1);
}

.breadcrumb_wrap .panlist>li.active {
  color: #1f195b;
  text-decoration: none;
  text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.1);
  pointer-events: none;
}

.breadcrumb_wrap .panlist>li+li:before {
  content: ">";
  letter-spacing: normal;
  display: block;
  padding: 0 0.5em;
}

.breadcrumb_wrap .panlist>li+li:before {
  transform: translateY(-0.1em);
}

/* =======================================
セクションタイトル
======================================== */
.page-box .sec-ttl {
  /* ほかブラウザ用の保険 */
  font-size: 36px;
  font-weight: 700;
  color: #1f195b;
  display: table;
  margin: 0 auto;
  letter-spacing: 0;
  line-height: 1;
  margin-bottom: 25px;
  background: linear-gradient(to right, #1f195b 0%, #29acfa 50%, #29acfa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  /* Safari/Chrome */
  color: transparent;
}
@media (max-width: 480px){
  .page-box .sec-ttl {
    /* ほかブラウザ用の保険 */
    font-size: 28px;
  }
}

/* =======================================
採用情報
======================================== */
.business-head-area h3 {
  color: #fff;
  font-size: 36px;
  text-align: center;
  padding: 10px 30px;
  font-weight: 700;
  line-height: 1.5;
  display: table;
  margin: 0 auto;
  margin-bottom: 50px;
  font-weight: 500;
  font-family: "Shippori Mincho", serif;
  background: linear-gradient(to right, #1f195b 0%, #29acfa 100%);
}

.business-head-area p {
  font-size: 18px;
  line-height: 2;
}
.business-about-area {
  margin-top: 100px;
  padding: 100px 0;
}
.business-about-area {
  position: relative;
  background-color: #f2faff;
}
.business-about-area h3,
.scene-area h3,
.page-works-area h3 {
  /* ほかブラウザ用の保険 */
  font-size: 36px;
  font-weight: 700;
  color: #1f195b;
  display: table;
  margin: 0;
  letter-spacing: 0;
  line-height: 1;
  margin-bottom: 25px;
  background: linear-gradient(to right, #1f195b 0%, #29acfa 50%, #29acfa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  /* Safari/Chrome */
  color: transparent;
}
.business-about-area p {
  line-height: 2;
  font-size: 18px;
}
.business-about-img-list {
  margin-top: 40px;
}
.business-about-img-list > .row {
  gap: 30px 0;
}
.business-about-area.loop_box_2 .loop_words {
  position: absolute;
  bottom: 60px;
  /* 必要ならpx固定のまま */
  right: 0;
  left: 0;
  z-index: 1;
  display: flex;
  gap: 40px;
  /* 余白も固定にするならメディアクエリ不要 */
  animation: loop-slide2 20s linear infinite;
  /* 念のため：横幅が狭くなっても要素が潰れないように */
  white-space: nowrap;
  /* （flexなので無くてもOKだが保険） */
}
.scene-area {
  padding: 100px 0;
}
.page-buness-item {
  max-width: 320px;
  width: 100%;
  padding: 20px;
  background-color: #f2faff;
}
.page-business-icon {
  max-width: 150px;
  width: 100%;
  margin: 0 auto 10px;
}
.page-buness-item h4 {
  font-weight: 700;
  font-size: 24px;
  margin-bottom: 20px;
  text-align: center;
  color:var(--blue-color);
}
.page-business-list-box {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap:20px;
  justify-content: center;
}
.scene-area .head,
.page-works-area .head {
  font-size: 18px;
  line-height: 2;
}


.renovation-area {
  padding: 100px 0;
  background-color: #f2faff;
}
.renovation-area .ttl-box {
  margin-bottom: 50px;
}
.renovation-area h3 {
    color: #fff;
    display: table;
    font-weight: 700;
    font-size: 32px;
    padding: 5px 20px 5px 20px;
    background-color: var(--navy-color);
}
.renovation-area .ttl-box h3 + h3 {
  margin-top: 10px;
} 
.renovation-text {
  font-size: 18px;
  line-height: 2;
}
.page-works-area {
  padding: 100px 0 300px;
  background-color: #fff;
}
.page-works-list-box .row {
  gap: 30px 0;
}
.page-works-item {
  padding: 15px;
  height: 100%;
}
.page-works-item h4 {
  font-size: 20px;
  margin-bottom: 20px;
  padding: 10px;
  text-align: center;
  background-color: var(--navy-color);
  color:#fff;
}
.page-buness-item p{
  line-height: 1.5;
}
.page-works-list-box {
  margin-top: 30px;
}
.page-works-item {

  border: 1px solid var(--navy-color);
}
.page-works-item p{
  font-size: 16px;
  line-height: 2;
  letter-spacing: 0;
}
/* 1200px以上で左端まで広げる */
@media (min-width: 1320px) {
  .renovation-area .renovation-img {
    /* container基準幅1290pxとの差分の半分を左にずらす */
    margin-right: calc((-100vw + 1290px + var(--bs-gutter-x, 0px)) / 2);
    padding-right: 105px;
  }
}

@media (min-width: 992px) {
  .renovation-area .renovation-img {
    /* container基準幅1290pxとの差分の半分を左にずらす */
    margin-right: calc((-100vw + 962px + var(--bs-gutter-x, 0px)) / 2);
  }
}
@media (max-width: 1100px) {
  .renovation-area h3 {
      font-size: 28px;
  }
}
@media (max-width: 991px) {
  .business-about-area.loop_box_2 .loop_words {
    bottom: 60px;
    top:auto;
  }
  .renovation-img {
    margin-top: 30px;
  }
  .page-works-area {
    padding: 100px 0 200px;
    background-color: #fff;
  }
}
@media (max-width: 768px) {
  .business-head-area h3 {
    color: #fff;
    font-size: 26px;
    text-align: center;
    margin-bottom: 30px;
    padding: 10px 30px;
    font-weight: 700;
  }
  .business-about-area {
    margin-top: 80px;
    padding: 80px 0;
  }
  .scene-area {
    padding:80px 0;
  }
  .page-works-area {
      padding: 80px 0;
      margin-bottom: 0;
  }
  .renovation-area {
      padding: 80px 0;
  }
  .business-about-area h3,
  .scene-area h3,
  .page-works-area h3 {
    /* ほかブラウザ用の保険 */
      font-size: 26px;
  }
  .business-head-area p {
    font-size: 16px;
    line-height: 2;
  }
  .business-about-area p {
    line-height: 2;
    font-size: 16px;
  }
  .scene-area .head {
    font-size: 16px;
  }
  .business-about-area.loop_box_2 .loop_words {
    bottom: 50px;
    top:auto;
  }
  .scene-area .head,
  .page-works-area .head {
    font-size: 16px;
    line-height: 2;
  }
  .renovation-text {
    font-size: 16px;
    line-height: 2;
  }
}
@media (max-width: 640px) {
  .renovation-area .ttl-box {
      margin-bottom: 30px;
  }
  .renovation-area h3 {
      font-size: 20px;
  }

}
@media (max-width: 480px) {
  .business-head-area h3 {
    color: #fff;
    font-size: 20px;
    text-align: center;
    padding: 10px 20px;
    font-weight: 700;
  }
  .page-buness-item h4 {
      font-weight: 700;
      font-size: 20px;
      margin-bottom: 20px;
      text-align: center;
      color: var(--blue-color);
  }
  .business-head-area p {
    font-size: 14px;
    line-height: 2;
  }
  .business-about-area p {
    line-height: 2;
    font-size: 14px;
  }
  .page-buness-item p {
      font-size: 14px;
  }
  .page-works-item h4 {
      font-size: 18px;
  }
  .renovation-area h3 {
      padding: 5px 10px;
      font-size: 18px;
  }
  .page-works-item p{
    font-size: 14px;
    line-height: 2;
    letter-spacing: 0;
  }
  .renovation-text {
    font-size: 14px;
    line-height: 2;
  }
}
/* =======================================
採用情報
======================================== */
.recruit .main_ttl {
  margin: 0;
}
.recruit-head-area {
  padding: 100px 0;
  background-color: rgba(41, 172, 250, 0.05);
}
.recruit-head-area h3,
.recruit-info-area h3 {
  color: #fff;
  font-size: 40px;
  text-align: center;
  padding: 10px 30px;
  font-weight: 700;
  line-height: 1;
  display: table;
  margin: 0 auto;
  margin-bottom: 50px;
  font-weight: 500;
  font-family: "Shippori Mincho", serif;
  background: linear-gradient(to right, #1f195b 0%, #29acfa 100%);
}

.recruit-head-area p {
  display: table;
  margin:0 auto;
  line-height: 2;
  font-size: 18px;
}

.recruit-info-area {
  margin-bottom: 160px;
  padding: 100px 0 0;
}
.recruit-info-area h4 {
  /* ほかブラウザ用の保険 */
  font-size: 36px;
  font-weight: 700;
  color: #1f195b;
  display: table;
  margin: 0;
  letter-spacing: 0;
  line-height: 1;
  margin-bottom: 25px;
  background: linear-gradient(to right, #1f195b 0%, #29acfa 50%, #29acfa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  /* Safari/Chrome */
  color: transparent;
}
.info-head-text {
  font-size: 22px;
  line-height: 2;
}
.recruit-info-line {
  padding-top: 50px;
}
.recruit-info-area .table-wrap {
  margin-top: 50px;
}
.recruit-info-area h5 {
  padding: 15px;
  display: table;
  margin: 50px auto 0;
  border: 1px solid var(--blue-color);
  text-align: center;
  font-size: 24px;
  line-height: 2;
  color: var(--navy-color);
  background-color: rgba(41, 172, 250, 0.05);
}
.recruit-info-area h5 .sp {
  display: block;
}
.recruit .grid {
  padding-top: 70px;
  padding-bottom: 150px;
}

@media (max-width: 991px) {
.recruit .grid {
  padding-top: 70px;
  padding-bottom: 100px;
}
.info-head-text {
    font-size: 18px;
    line-height: 2;
}
}
@media (max-width: 768px) {
.recruit-info-area {
  margin-bottom: 0;
  padding: 100px 0 0;
}

.recruit-head-area h3,
.recruit-info-area h3 {
  color: #fff;
  font-size: 30px;
  text-align: center;
  padding: 10px 30px;
  font-weight: 700;
  line-height: 1;
  display: table;
  margin: 0 auto;
  margin-bottom: 40px;
  font-weight: 500;
  font-family: "Shippori Mincho", serif;
  background: linear-gradient(to right, #1f195b 0%, #29acfa 100%);
}
.recruit-head-area p {
  display: table;
  margin:0 auto;
  line-height: 2;
  font-size: 16px;
}

.recruit-info-line {
    padding-top: 0;
    margin-bottom: 30px;
}
.recruit-info-area h5 {
    padding: 15px;
    display: table;
    margin: 50px auto 0;
    border: 1px solid var(--blue-color);
    text-align: center;
    font-size: 20px;
    line-height: 2;
    color: var(--navy-color);
    background-color: rgba(41, 172, 250, 0.05);
}
}

@media (max-width: 480px) {
.recruit .grid {
  padding-top: 80px;
  padding-bottom: 80px;
}
.recruit-info-area {
    padding: 80px 0 0;
}
.recruit-head-area {
  padding: 80px 0;
  background-color: rgba(41, 172, 250, 0.05);
}
.recruit-head-area h3,
.recruit-info-area h3 {
  color: #fff;
  font-size:26px;
  text-align: center;
  padding: 10px 30px;
  font-weight: 700;
  line-height: 1;
  display: table;
  margin: 0 auto;
  margin-bottom: 40px;
  font-weight: 500;
  font-family: "Shippori Mincho", serif;
  background: linear-gradient(to right, #1f195b 0%, #29acfa 100%);
}
.recruit-info-area h4 {
  /* ほかブラウザ用の保険 */
  font-size: 28px;
}
.recruit-head-area p {
  display: table;
  margin:0 auto;
  line-height: 2;
  font-size: 14px;
}
.recruit-info-area h5 {
    padding: 15px;
    display: table;
    margin: 50px auto 0;
    border: 1px solid var(--blue-color);
    text-align: center;
    font-size: 18px;
    line-height: 2;
    color: var(--navy-color);
    background-color: rgba(41, 172, 250, 0.05);
}
.recruit-info-area h5 .sp {
  display: none;
}
    .info-head-text {
        font-size: 16px;
        line-height: 2;
    }
}

/* =======================================
会社概要
======================================== */

/* ===== 基本レイアウト ===== */

.overview-area {
  padding: 0 0 100px;
}
.history-area {
  padding: 100px 0 300px;
  background-color: #f2faff;
}

.overview-area .sec-title {
  text-align: center;
}
.history-area .sec-title {
  text-align: center;
}

:root {
  --line-color: #ccc;
  --bg-light: #ffffff;
  --line:#1f195b;
}

.table-wrap {
    display: flex;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

/* ★ 枠線をテーブルの外側に付ける */
.info-table-wrap {
  border: 2px solid var(--blue-color);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

/* ===== テーブル ===== */
.info-table {
  border-collapse: collapse; /* ← これがポイント */
  width: 100%;
  border-spacing: 0; /* 念のため */
  background: #fff;
}

.about-overview-area .indent dd {
  text-indent: -1em;
  padding-left: 1em;
}

.about-overview-area dl>div+div {
  margin-top: 15px;
}

.about-overview-area dl dt {
  color: var(--blue-color);
}

.info-table th,
.info-table td {
  padding: 22px 20px;
  line-height: 1.8;
}

/* 左列（見出し） */
.info-table th {
  width: 180px;
  background: var(--blue-color);
  color: #fff;
  font-weight: 700;
  text-align: left;
  letter-spacing: 0.05em;
}

.history-area .info-table th {
  background: var(--navy-color);
}

/* 右列（本文） */
.info-table td {
  color: #0c0d0d;
  font-size: 16px;
  background: #fff;
}

/* 行の区切り線 */
.info-table tr+tr th,
.info-table tr+tr td {
  border-top: 1px solid var(--line-color);
}

.info-table tr:nth-child(even) td {
  background-color: #f2faff;
}


.permit-no{
  margin: 0 0 8px;
  font-weight: 600;
  letter-spacing: .04em;
  line-height: 1.8;
  font-size: 16px;
}

.permit-list{
  margin: 0;
  padding-left: 1.6em;   /* 1.  の字下げ */
  columns: 2;            /* 2列に分割（左→右に1〜11で流れる） */
  column-gap: 56px;      /* 列間の余白はお好みで */
  font-size: 16px;
  line-height: 1.8;
}
.permit-list li{
  break-inside: avoid;   /* 列の途中で分割しない */
  margin: 0 0 4px;
  list-style: decimal;
  font-size: 16px;
}

.overview-area .tel {
  color:#000;
}

.partner-list {
  margin: 0;
  font-size: 16px;
  line-height: 1.8;
}

.partner-list li {
  margin-bottom: 2px;      /* 各行の間隔 */
}
/* モバイルは1列 */


/* thを視覚的に隠す（スクリーンリーダー用に残す） */
.sr-only{
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ===== スマホ ===== */
@media (max-width: 768px) {
  .history-area {
    padding: 100px 0 100px;
  }

  .info-table,
  .info-table tbody,
  .info-table tr,
  .info-table th,
  .info-table td {
    display: block;
    width: 100%;
  }

  .info-table th {
    background: var(--blue-color);
    color: #fff;
    padding: 10px 16px;
  }


  .info-table tr+tr td {
    border-top: 1px solid var(--line-color);
  }
}
@media (max-width: 480px){
  .history-area {
    padding: 80px 0 80px;
  }
  .permit-list{ columns: 1; }
}

/* =======================================
お問い合わせ
======================================== */
.tel-fax-area h3{
  line-height: 1.75;
  text-align: center;
  position: relative;
  margin-bottom: 30px;
  font-weight: 700;
  text-align: center;
  font-size: 30px;
  color: var(--blue-color);
}
.tel-fax-area .sp {
  display: none;
}
.tel-fax-area .icon {
  width: 100%;
  margin-right: 15px;
  max-width: 40px;
  height: 40px;
}

.tel-fax-wrap {
  padding: 25px;
  background: linear-gradient(to right, #1f195b 0%, #29acfa 100%);
}

.tel-fax-box {
  display: flex;
  justify-content: center;
  align-items: center;
}

.tel-fax-area .number-text {
  font-weight: 700;
  line-height: 1;
  color: #fff;
  font-size: 40px;
  transform: translateY(-3px);
}
.tel-fax-area .number-text a {
  font-size: 40px;
}
.tel-fax-area .text {
  text-align: center;
  font-size: 22px;
  color: #fff;
  margin-top: 5px;
}

.tel-fax-box .icon {
  margin-right: 12px;
  color: #fff;
  line-height: 1;
  display: flex;
  justify-content: center;
  font-size: 38px;
}

.tel-fax-box .icon i {
  display: block;
}

.entry-form-area {
  margin-top: 100px;
  padding: 100px 0;
  background-color: #f2faff;
  position: relative;
}

.entry-form-area:after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: -1px;
  z-index: 10;
  width: 100%;
  aspect-ratio: 2000 / 147;
}

.entry-form-area .text-center {
  text-align: center;
  line-height: 2;
  font-size: 18px;
}

.contactform {
  margin-top: 50px;
}

.optional {
  color: #fff;
  font-weight: 400;
  background: #999;
  font-size: 12px;
  padding: 0.2em 0.5em;
}

.required {
  font-weight: 400;
  font-size: 12px;
  padding: 0.2em 0.5em;
  transform: translateY(-0.1em);
  color: #fff;
  display: inline-block;
  background-color: #ed4c4c;
}

.entry-form-area .text-center .required {
  margin-right: 5px;
}
.entry-form-area .area-ttl-box {
  margin-bottom: 40px;
}
.entry-form-area .area-ttl-box .ttl-en {
    margin: 0 auto;
}
.entry-form-area .area-ttl-box h3 {
  text-align: center;
}


input[type="radio" i] {
  transform: translateY(-0.1em);
}

.radio-line .row {
  gap: 8px 0;
}

.notes {
  margin-top: 5px;
  display: block;
  font-size: 16px;
  font-weight: 400;
  color: #999;
}

#policy h4 {
  font-size: 25px;
  color: #204483;
  margin-bottom: 20px;
  font-weight: 700;
}

.buttons {
  text-align: center;
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

textarea.form-control {
  height: auto;
}

#policy {
  margin-top: 50px;
}
#policy a span  {
  color:#000;
  font-size: 18px;
}
#policy .contents {
  padding: 1.5% 3.5%;
  border: solid 1px #ccc;
  max-height: 300px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  overflow: auto;
  background-color: #fff;
}

#policy .contents h5 {
  font-size: 18px;
  font-weight: bold;
  margin: 2em 0 0;
}

#policy .contents p,
#policy .contents ol {
  font-size: 18px;
  margin: 1em 0;
}

#policy .contents>ol {
  counter-reset: number;
  /* カウンター初期化 */
}

#policy .contents>ol>li {
  position: relative;
  font-size: 18px;
  margin-bottom: 5px;
  padding-left: 2.5em;
  /* 番号分の余白 */
}

#policy .contents>ol>li::before {
  position: absolute;
  top: 0;
  left: 0;
  counter-increment: number;
  content: "(" counter(number) ") ";
  /* ← カッコで囲む */
}

.confirm-only {
  margin-left: auto;
  margin-right: auto;
  margin-top: 30px;
  justify-content: center;
  display: flex;
  gap: 0 20px;
}

.buttons {
  text-align: center;
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

/*
.buttons .fa-arrow-right,
.confirm-only .send-btn .fa-arrow-right,
.confirm-only .return-btn .fa-arrow-right {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}
*/
.agree {
  text-align: center;
  margin-top: 20px;
}

.agree label {
  font-size: 18px;
  display: inline-block;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;

}

.agree input[type="checkbox"] {
  margin-right: 5px;
}

.sei {
  padding-right: 20px;
}

.contactform .name-box {
  display: flex;
  /* divを横並びに */
  gap: 20px;
  /* 間隔 */
}

.contactform .name-box div {
  display: flex;
  align-items: center;
  /* ラベルと入力欄を縦位置そろえ */
  gap: 5px;
}

.table-contact {
  line-height: 1.75;
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  border-top: 1px solid #BCBEBF;
  margin-bottom: 30px;
}

.table-contact>tbody>tr {
  border-bottom: 1px solid #ccc;
}

.table-contact>tbody>tr>th {
  width: 16em;
  padding-left: 1em;
}

.table-contact>tbody>tr>td {
  padding-left: 2em;
}

/* テーブルの基本 */
.table-contact {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  /* 線のズレ防止 */
  border-spacing: 0;
}

/* th / td の揃えと余白を統一 */
.table-contact th,
.table-contact td {
  vertical-align: top;
  /* ← ここが肝（Safari対策） */
  padding: 12px 16px;
  line-height: 1.6;
}

/* 任意：左の見出し幅 */
.table-contact th {
  width: 15em;
  /* 使っているなら固定幅はここで */
  white-space: nowrap;
}

.table-contact tr:last-child th,
.table-contact tr:last-child td {
  border-bottom: none;
}

.table-contact th,
.table-contact td {
  vertical-align: top;
  /* ← Safariでも確実に上揃え */
}

.table-contact>tbody>tr>th,
.table-contact>tbody>tr>td {
  padding: 1em 0;
  font-size: 18px;
}

.form-control {
  display: block;
  width: 100%;
  height: calc(2em + 0.75rem + 2px);
  padding: 0.375rem 0.75rem;
  font-size: 16px;
  font-weight: 500;
  line-height: 2;
  color: #000;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #ced4da;
  border-radius: 0;
}

#element {
  border: 1px solid #ced4da;
  padding: 0.375rem 0.75rem;
  font-weight: 500;
}

/* inputを非表示にして自作UIに置き換える */
.file-upload input[type="file"] {
  display: none;
}

.file-upload {
  display: inline-flex;
  align-items: center;
  border: 1px solid #000;
  padding: 12px 12px;
  cursor: pointer;
  gap: 10px;
}

/* 本物のファイル入力は非表示にして label 経由でクリック */
.file-upload input[type="file"] {
  display: none;
}

.file-btn {
  background-color: #eee;
  border: 1px solid #000;
  padding: 4px 8px;
  white-space: nowrap;
}

#statusMsg {
  color: #999;
  font-size: 16px;
  font-weight: 400;
}

/* 共通 */
.entry-form-area ::placeholder {
  color: #ccc !important;
  font-weight: 400;
}

.p-postal-code {
  width: 30%;
}

.input-name {
  display: block;
  width: 100%;
}

.input-name {
  margin-bottom: 10px;
}

.contactform {
  font-size: 18px;
}

.form-line+.form-line {
  margin-top: 20px;
}

.send-btn {
  position: relative;
}

.send-btn .more-white-icon,
.btn-primary .more-white-icon {
  position: absolute;
  right: 16px;
  width: 24px;
  height: 24px;
  justify-content: center;
}

.send-btn:hover,
.btn-primary:hover {
  color: var(--main-color);
}

.send-btn:hover .more-white-icon,
.btn-primary:hover .more-white-icon {
  background-color: var(--main-color);
}

.btn-primary .fa-arrow-right,
.send-btn .fa-arrow-right {
  color: var(--main-color);
  font-size: 16px;
}

.btn-primary:hover .fa-arrow-right,
.send-btn:hover .fa-arrow-right {
  color: #fff;
}

.return-btn .more-white-icon {
  position: absolute;
  left: 16px;
  width: 24px;
  height: 24px;
  top: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
}

.return-btn .fa-arrow-right {
  color: #999999;
  font-size: 16px;
}

.return-btn:hover .fa-arrow-right {
  color: #333333;
}
.btn-primary,
.send-btn,
.return-btn,
.user-add-btn {
  position: relative;
  margin: 0 auto;
  max-width: 300px;
  width: 100%;
  display: block;
  width: 100%;
  text-align: center;
  color: #fff;
  padding: 20px 0;
  font-weight: 400;
  line-height: 1;
  overflow: hidden;
  color: #fff;
  border: none;
  line-height: 1.5;
  background: var(--blue-color);
  font-size: 18px;
  transition: 0.7s !important;
}

.btn-primary {
  max-width: 500px;
}

.user-add-btn {
  margin: 0;
}

.send-btn,
.return-btn {
  margin: 0;
}

.btn-primary:hover,
.send-btn:hover {
  color:#fff;
  background-color: var(--navy-color);
}

.return-btn {
  border: 1px solid #999999;
  background: #999999;
}

.return-btn:hover {
  border: 1px solid #333333;
  background-color: #333333;
}

.more-btn {
  position: relative;
  /* アイコン分の余白 */
}

/*
.btn-primary::after {
  content: "\f061"; 
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color:var(--main-color);
  position: absolute;
  right: 0.8em;
  width: 30px;
  height: 30px;
  line-height: 2;
  background-color: #fff;
  top: 50%;
  border-radius: 50% 50%;
  transform: translateY(-50%);
}
*/
/* 既存の .custom-select に“追記”するだけでOK */
.custom-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: #fff url('../images/common/triangle.svg') no-repeat right 0.75rem center / 12px 8px;
  border: 1px solid #ced4da;
  color: #222;
  padding: 0.375rem 1.75rem 0.375rem 0.75rem;
  font-weight: 500;
  line-height: 1.75;
  width: auto;
}

/* 状態別（任意） */
.custom-select:hover {
  border-color: #999;
}

.custom-select:focus {
  outline: none;
  border-color: #333;
}

/* 無効時は文字色を薄く → 矢印も自動で薄くなる（currentColor連動） */
.custom-select:disabled {
  color: #999;
  background-color: #f8f9fa;
  border-color: #e1e5ea;
}

@media (max-width: 1500px) {

  .tel-fax-area .container,
  .entry-form-area .container {
    padding-left: calc(15px + 50 * (100vw - 320px) / 1180);
    padding-right: calc(15px + 50 * (100vw - 320px) / 1180);
  }
}

@media (max-width: 991px) {

  .tel-fax-area h3,
  .entry-form-area h3 {
    font-size: 30px;
    margin-bottom: 40px;
  }
}
@media (max-width: 480px) {

  .tel-fax-area h3,
  .entry-form-area h3 {
    line-height: 1.5;
    font-size: 26px;
    margin-bottom: 20px;
  }
  .tel-fax-area .sp {
    display: block;
  }
}

@media (max-width: 1500px) {
  .tel-fax-ttl {
    font-size: min(calc(22px + (26 - 22) * (100vw - 992px) / (1500 - 992)),
        26px);
    background-color: #fff;
    padding: min(calc(8px + (10 - 8) * (100vw - 992px) / (1500 - 992)),
        10px);
    margin-bottom: 20px;
  }


  .tel-fax-area .number-text {
    font-size: 38px;
  }
  .tel-fax-area .number-text a {
    font-size: 38px;
  }
  .tel-fax-area .text {
    font-size: min(calc(18px + (22 - 18) * (100vw - 992px) / (1500 - 992)),
        22px);
    margin-top: min(calc(5px + (10 - 5) * (100vw - 992px) / (1500 - 992)),
        10px);
  }

  .tel-fax-area .container,
  .entry-form-area .container {
    padding-left: calc(15px + 50 * (100vw - 320px) / 1180);
    padding-right: calc(15px + 50 * (100vw - 320px) / 1180);
  }

  .entry-form-area .text-center {
    font-size: min(calc(16px + (18 - 16) * (100vw - 992px) / (1500 - 992)),
        18px);
  }

  .required {
    font-size: min(calc(14px + (16 - 14) * (100vw - 992px) / (1500 - 992)),
        16px);
  }

  .table-contact>tbody>tr>th,
  .table-contact>tbody>tr>td {
    font-size: min(calc(16px + (18 - 16) * (100vw - 992px) / (1500 - 992)),
        18px);
  }

  .form-control {
    font-size: min(calc(16px + (18 - 16) * (100vw - 992px) / (1500 - 992)),
        18px);
  }

  .table-contact>tbody>tr>th {
    width: 17em;
  }

  /* 共通 */
  .entry-form-area ::placeholder {
    font-size: min(calc(16px + (18 - 16) * (100vw - 992px) / (1500 - 992)),
        18px);
  }

  #policy h4 {
    font-size: min(calc(22px + (25 - 22) * (100vw - 992px) / (1500 - 992)),
        25px);
    margin-bottom: min(calc(15px + (20 - 15) * (100vw - 992px) / (1500 - 992)),
        20px);
  }

  #policy .contents p,
  #policy .contents ol {
    font-size: min(calc(16px + (18 - 16) * (100vw - 992px) / (1500 - 992)),
        18px);
  }

  #policy .contents h5 {
    font-size: min(calc(16px + (18 - 16) * (100vw - 992px) / (1500 - 992)),
        18px);
    margin: 2em 0 0;
  }

  #policy .contents>ol>li {
    font-size: min(calc(16px + (18 - 16) * (100vw - 992px) / (1500 - 992)),
        18px);
    margin-bottom: 5px;
  }

  .agree label {
    font-size: min(calc(16px + (18 - 16) * (100vw - 992px) / (1500 - 992)),
        18px);
  }

  .btn-primary,
  .send-btn,
  .return-btn {
    font-size: 16px;
    padding: 15px 0;
  }
}

@media (max-width: 991px) {

  .tel-fax-area h3 {
    font-size: min(calc(24px + (28 - 24) * (100vw - 320px) / (991 - 320)),
        28px);
  }

  .tel-fax-area h3::after {
    width: min(calc(60px + (80 - 60) * (100vw - 320px) / (991 - 320)),
        80px);
  }

  .tel-fax-ttl {
    padding: min(calc(6px + (10 - 6) * (100vw - 320px) / (991 - 320)),
        10px);
  }

  .fax-box {
    margin-top: 20px;
  }

  .fax-wrap {
    margin-top: min(calc(20px + (30 - 20) * (100vw - 320px) / (991 - 320)),
        30px);
  }

  .tel-fax-area {
    margin-bottom: 0
  }

  .tel-fax-area .icon {
    height: auto;
    line-height: 1;
  }

  .tel-fax-area .number-text {
    font-size: min(calc(26px + (50 - 26) * (100vw - 320px) / (991 - 320)),
        50px);
  }
  .tel-fax-area .number-text a {
    font-size: min(calc(26px + (50 - 26) * (100vw - 320px) / (991 - 320)),
        50px);
  }

  .entry-form-area .text-center {
    font-size: min(calc(14px + (16 - 14) * (100vw - 320px) / (991 - 320)),
        16px);
  }

  .required {
    font-size: min(calc(12px + (14 - 12) * (100vw - 320px) / (991 - 320)),
        14px);
  }

  .notes {
    font-size: min(calc(14px + (16 - 14) * (100vw - 320px) / (991 - 320)),
        16px);
  }

  .entry-form-area ::placeholder {
    font-size: min(calc(14px + (16 - 14) * (100vw - 320px) / (991 - 320)),
        16px);
  }

  #policy h4 {
    line-height: 1.5;
    font-size: min(calc(18px + (22 - 18) * (100vw - 320px) / (991 - 320)),
        22px);
    margin-bottom: 20px;
  }

  #policy .contents p,
  #policy .contents ol {
    font-size: min(calc(14px + (16 - 14) * (100vw - 320px) / (991 - 320)),
        16px);
  }

  #policy .contents h5 {
    font-size: min(calc(14px + (16 - 14) * (100vw - 320px) / (991 - 320)),
        16px);
    margin: 2em 0 0;
  }

  #policy .contents>ol>li {
    font-size: min(calc(14px + (16 - 14) * (100vw - 320px) / (991 - 320)),
        16px);
    margin-bottom: 5px;
  }

  .agree label {
    font-size: min(calc(14px + (16 - 14) * (100vw - 320px) / (991 - 320)),
        16px);
    display: flex;
    align-items: center;
    justify-content: center;
  }


  .btn-primary .fa-arrow-right,
  .send-btn .fa-arrow-right {
    color: var(--main-color);
    font-size: 12px;
  }

  .confirm-only .send-btn,
  .confirm-only .return-btn {
    margin-left: 0;
    margin-right: 0;
  }

  .confirm-only {
    gap: 0 min(calc(15px + (20 - 15) * (100vw - 320px) / (991 - 320)),
        20px);
  }

  .table-contact>tbody>tr>th,
  .table-contact>tbody>tr>td {
    font-size: min(calc(14px + (16 - 14) * (100vw - 320px) / (991 - 320)),
        16px);
  }

  .form-control {
    display: block;
    width: 100%;
    height: calc(1.75em + 0.75rem + 2px);
    padding: 0.375rem 0.75rem;
    font-size: min(calc(14px + (16 - 14) * (100vw - 320px) / (991 - 320)),
        16px);
    font-weight: 500;
    line-height: 1.75;
    color: #222222;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0;
  }

  .form-control.p-postal-code {
    width: 200px;
  }

  .custom-select {
    width: 200px;
  }

  #element {
    display: block;
    width: 100%;
    height: calc(1.75em + 0.75rem + 2px);
    padding: 0.375rem 0.75rem;
  }

  .entry-form-area {
    padding: 100px 0;
    position: relative;
  }
}

@media (max-width: 768px) {
  .entry-form-area {
    padding: 80px 0;
    position: relative;
  }
  .entry-form-area {
      margin-top: 80px;
  }
  .entry-form-area .text-center {
    text-align: left !important;
  }

  .fa-arrow-right:before {
    font-size: 14px;
  }

  .table-contact>tbody>tr {
    width: 100%;
    display: block;
    padding: 1em 0.5em;
  }

  .table-contact>tbody>tr>th,
  .table-contact>tbody>tr>td {
    width: 100%;
    display: block;
    padding: 0;
  }

  .table-contact>tbody>tr>th+td,
  .table-contact>tbody>tr>td+td {
    margin-top: .5em;
  }

  .tel-fax-box .icon {
    font-size: 30px;
    margin-right: 7px;
  }

  .send-btn .more-white-icon,
  .btn-primary .more-white-icon {
    position: absolute;
    right: 16px;
    width: 20px;
    height: 20px;
    justify-content: center;
  }

  .return-btn .more-white-icon {
    width: 20px;
    height: 20px;
  }
  .tel-fax-area .text {
    margin-top: 10px;
  }
}
