/* =======================================
共通
======================================== */

.scroll-header.page {
  display: block !important;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
}

.page-title {
  position: relative;
  font-size: 45px;
  font-weight: 700;
  line-height: 1.2;
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
}

.page-title::before {
  content: '';
  position: relative;
  top: 30px;
  flex-shrink: 0;
  display: inline-block;
  width: 40px;
  height: 1px;
  background-color: #fd3d11;
}


br.sp {
  display: none;
}


@media (max-width: 991px) {

  .main_ttl h2 {
    padding: 0.2em 1em 0.2em 1em;
  }

  .main_ttl .fs-en {
    font-size: min(calc(30px + (60 - 30) * (100vw - 320px) / (991 - 320)), 60px);
  }

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

}

@media (max-width: 768px) {
  .page-title {
    position: relative;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
  }

  .page-title::before {
    content: '';
    display: inline-block;
    width: 30px;
    top: 21px;
    height: 1px;
    background-color: #fd3d11;
  }

  br.sp {
    display: block;
  }

}


.main-ttl-wrap {
  position: relative;
  margin-bottom: 120px;
  margin-top: 140px;
}

.main_ttl {
  position: relative;
}

.main-bg-wrap {
  background: linear-gradient(-45deg, #fd3d11, #fd6f11);
}

.main_ttl .bg {
  width: 100%;
  margin-left: auto;
  height: 380px;
  bottom: 0;
  right: 0;
  max-width: 1485px;
  z-index: -1;
  width: 70%;
  height: 100%;
}

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

.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 .fs-en {
  font-weight: 600;
  display: block;
  font-size: 60px;
  white-space: nowrap;
  line-height: 1;
  margin-bottom: 15px;
  color: #fff;
  font-family: "Plus Jakarta Sans", sans-serif;
}

.main_ttl .txt {
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  display: block;
  white-space: nowrap;
  color: #fff;
}


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

.main_ttl {
  position: relative;
  overflow: hidden;
}

/* 背景(.bg)より上、タイトルより下に置く */
.main_ttl>.bg {
  position: relative;
  z-index: 1;
}

.main_ttl h2 {
  z-index: 3;
}

.main_ttl .bg img {
  width: 100%;
  height: 100%;
  object-position: 0 100%;
}

.main_ttl .bg img {
  object-fit: cover;
  font-family: 'object-fit: cover;';
}



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

  .main-bg-wrap {
    height: 300px;
  }

  .main_ttl .fs-en {
    font-size: min(calc(45px + (60 - 45) * (100vw - 992px) / (1500 - 992)),
        60px);
  }

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

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


}

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

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

  .main-bg-wrap {
    height: 220px;
  }

  .main_ttl .fs-en {
    font-size: min(calc(30px + (45 - 30) * (100vw - 320px) / (991 - 320)),
        45px);
  }

  .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: min(calc(220px + (300 - 220) * (100vw - 320px) / (991 - 320)),
        300px);
  }

  .main_ttl h2 {
    display: block;
    left: 0;

  }
}

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

}

@media (max-width: 480px) {
  .main-bg-wrap {
    height: 200px;
  }

  .main_ttl .bg {
    margin-left: auto;
    bottom: 0;
    right: 0;
    max-width: 1485px;
    z-index: -1;
    width: 65%;
    height: 100%;
  }

  .main_ttl {
    margin-bottom: 50px;
    margin-top: 70px;
  }

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

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

}

/* =======================================
パンくず
======================================== */
.breadcrumb_wrap {
  position: static;
  bottom: 20px;
  padding-top: 20px;
  padding-right: 20px;
  display: table;
  margin-left: auto;
  margin-right: 0;
  text-align: right;
  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;
  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;
}

.breadcrumb_wrap .panlist>li>a {
  color: #fd3d11;
  text-decoration: underline;
  white-space: nowrap;
}

.breadcrumb_wrap .panlist>li.active {
  color: #000;
  text-decoration: none;
  pointer-events: none;
}

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

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


/* =======================================
事業内容
======================================== */
.works-head-area {
  padding-bottom: 120px;
  position: relative;
}

.works-head-area::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;

  width: 50vw;

  background: #fff0e7;
  pointer-events: none;
  z-index: 0;

  clip-path: polygon(100% 0%,
      100% 100%,
      35% 100%);
}

.works-lead {
  line-height: 2.1;
  margin: 0;
  text-align: center;
}

.sec-ttl__main::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 3px;
  height: 1.2em;
  background: #f28c28;
  border-radius: 2px;
}

.works-sticky {
  position: relative;
  background: #fff;
}

.works-sticky__media {
  position: sticky;
  top: 0;
  height: 70vh;
  min-height: 420px;
  z-index: 0;
}

.works-sticky__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* 写真下のエリア */
.works-sticky__below {
  position: relative;
  z-index: 1;
  background: #fff;
  padding: 0;
}

.gray-line {
  height: 1px;
  width: 100%;
  background-color: #ccc;
}

.works-unit {
  padding: 100px 0;
}

.works-unit:first-child {
  border-top: none;
}

.works-media {
  overflow: hidden;
}

.works-media img {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.works-ttl {
  font-weight: 700;
  font-size: 32px;
  line-height: 1.4;
  margin: 0 0 30px;
  position: relative;
  border-bottom: 2px solid #fd6f11;
  padding-bottom: 5px;
}

.works-txt {
  line-height: 2;
  margin: 0;
}

.works-table-wrap {
  margin: 60px auto 0;
}

.works-table {
  border: 1px solid #222;
  margin: 0;
}

.works-table thead th {
  background: linear-gradient(-45deg, #fd3d11, #fd6f11);
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  text-align: center;
  border: 1px solid #ccc;
  padding: 10px 12px;
}

.works-table td {
  border: 1px solid #ccc;
  padding: 12px 12px;
  font-size: 16px;
  background-color: inherit;
  line-height: 1.5;
  vertical-align: middle;
}

.works-table tbody tr:nth-child(even) {
  background: #fbf4f0;
}

.works-gallery {
  padding: 120px 0;
  position: relative;
}

.works-gallery-list {
  margin-top: 50px;
}

.gallery-card {
  position: relative;
  display: block;
  overflow: hidden;
  text-decoration: none;
  height: 600px;
}

.gallery-card img {
  height: 100%;
  width: 100%;
  display: block;
  object-fit: cover;
}

.page-works-more-btn {
  margin: 60px auto 0;
  text-align: center;
  gap: 24px;
  display: flex;
  width: fit-content;
  /* ★これ */
  justify-content: center;
}

.recruit-slant {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 1445px;
  height: calc(100% + 320px);
  background: linear-gradient(-45deg, #1b1a1a 0%, #3e3c3c 100%);
  pointer-events: none;
  z-index: 0;
  clip-path: polygon(100% 0, 100% 100%, 0% 100%);
}

@media (max-width: 991px) {
  .recruit-slant {
    position: absolute;
    top: auto;
    bottom: 0;
    right: 0;
    width: 50%;
    max-width: 800px;
    height: 50%;
    background: linear-gradient(-45deg, #1b1a1a 0%, #3e3c3c 100%);
    pointer-events: none;
    z-index: 0;
    clip-path: polygon(100% 0, 100% 100%, 0% 100%);
  }

  .gallery-card {
    height: 450px;
  }
}


@media (max-width: 768px) {
  .works-sticky__media {
    height: 52vh;
    min-height: 300px;
  }

  .works-lead {
    text-align: left;
  }

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

  /* theadは非表示 */
  .works-table thead {
    display: none;
  }

  /* 1案件ごとにカード化 */
  .works-table tbody tr {
    border-bottom: 1px solid #ccc;
    padding: 12px 14px;
    background: #fff;
  }

  .works-table tbody tr:last-child {
    border-bottom: none;
  }

  /* td */
  .works-table tbody td {
    border: none;
    padding: 6px 0;
    font-size: 16px;
  }

  /* ラベル表示（疑似要素） */
  .works-table tbody td::before {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #fd6f11;
    margin-bottom: 2px;
  }

  /* 各列の見出し */
  .works-table tbody td:nth-child(1)::before {
    content: "現場名";
  }

  .works-table tbody td:nth-child(2)::before {
    content: "工期";
  }

  .works-table tbody td:nth-child(3)::before {
    content: "元請会社";
  }

  .works-head-area::before {
    content: "";
    position: absolute;
    top: 200px;
    right: 0;
    height: calc(100% - 200px);

    width: 80vw;

    background: #fff0e7;
    pointer-events: none;
    z-index: 0;

    clip-path: polygon(100% 0%,
        100% 100%,
        20% 100%);
  }

  .works-media {
    margin-bottom: 20px;
  }

  .works-ttl {
    font-weight: 700;
    font-size: 24px;
    line-height: 1.4;
    margin: 0 0 20px;
    position: relative;
    border-bottom: 2px solid #fd6f11;
    padding-bottom: 5px;
  }

  .works-unit {
    padding: 80px 0;
  }

  .works-gallery-list {
    gap: 30px;
  }

  .gallery-card {
    height: 350px;
  }

}

@media (max-width: 680px) {
  .recruit-slant {
    height: 30%;
  }
}

@media (max-width: 480px) {
  .works-head-area {
    padding-bottom: 80px;
    position: relative;
  }

  .works-sticky__media {
    height: 43vh;
    min-height: 300px;
  }

  .works-gallery-list {
    margin-top: 30px;
  }

  .works-gallery-list>div {
    margin-top: 0;
  }

  .works-unit {
    padding: 60px 0;
  }

  .gallery-card img {
    width: 100%;
    height: 350px;
    display: block;
    object-fit: cover;
  }
}

/* =======================================
採用情報
======================================== */
.recruit-head-area {
  padding-bottom: 120px;
  position: relative;
}

.recruit-head-area::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;

  width: 70vw;

  background: #fff0e7;
  pointer-events: none;
  z-index: 0;

  clip-path: polygon(100% 0%,
      100% 100%,
      35% 100%);
}

.recruit-head-area h3,
.tmc-stats-area h3,
.recruit-info-area h3 {
  margin: 0 auto 60px;
  justify-content: center;
}

.recruit-head-area p {
  text-align: center;
  font-size: 16px;
  line-height: 2;
}

.tmc-stats-area {
  padding: 120px 0;
  background-color: #efefef;
}

.tmc-stats-area .container {
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
}

.tmc-stats-area .row {
  gap: 30px 0;
}

.tms-stats-box {
  background-color: #fff;
  height: 300px;
  display: flex;
  align-items: center;
  flex-flow: column;
  justify-content: center;
}

.tms-stats-box h4 {
  color: #ffffff;
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  padding: 10px;
  display: block;
  background-color: #fd3d11;
  margin-bottom: 10px;
}

.tms-stats-box p {
  text-align: center;
  font-size: 26px;
  font-weight: 700;
  min-height: 60px;
  line-height: 1;
}

.tms-stats-box .icon-img {
  height: 100%;
  max-height: 90px;
  width: auto;
  margin: 15px auto;
}

.tms-stats-box .icon-img img {
  height: 100%;
  width: auto;
}

.tms-stats-box p .large {
  font-size: 40px;
  margin-left: 5px;
}

.recruit-info-area {
  padding: 120px 0;
}

.recruit-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 16px;
  background: #fff;
}

.recruit-table th,
.recruit-table td {
  border: 1px solid #ccc;
  padding: 18px 20px;
  vertical-align: top;
  font-size: 16px;
}

.recruit-table th {
  width: 220px;
  background: #fff0e7;
  font-weight: 700;
  text-align: left;
  letter-spacing: .02em;
}

.recruit-table td {
  background: #fff;
}

.recruit-info-area .recruit-bottom-text {
  text-align: center;
  color: #fd3d11;
  line-height: 1.6;
  font-size: 32px;
  margin-bottom: 0;
  margin-top: 60px;
  font-family: "Zen Old Mincho", serif;
  letter-spacing: -0.04em;
}

@media (max-width: 1280px) {
  .recruit-head-area p {
    text-align: left;
  }
}

@media (max-width: 768px) {
  .recruit-head-area::before {
    content: "";
    position: absolute;
    top: 200px;
    right: 0;
    height: calc(100% - 200px);

    width: 80vw;

    background: #fff0e7;
    pointer-events: none;
    z-index: 0;

    clip-path: polygon(100% 0%,
        100% 100%,
        20% 100%);
  }

  .recruit-head-area p {
    text-align: left
  }

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

  .recruit-table tr {
    margin-bottom: 14px;
  }

  .recruit-table th {
    width: 100%;
    border-bottom: 0;
    padding: 14px 16px;
  }

  .recruit-table td {
    border-top: 0;
    padding: 14px 16px;
  }

  .recruit-info-area .recruit-bottom-text {
    text-align: center;
    color: #fd3d11;
    padding: 0 20px;
    line-height: 1.6;
    font-size: 26px;
    margin-bottom: 0;
    margin-top: 60px;
    font-family: "Zen Old Mincho", serif;
    letter-spacing: -0.04em;
  }

}

@media (max-width: 480px) {
  .recruit-head-area {
    padding-bottom: 80px;
    position: relative;
  }

  .tmc-stats-area {
    padding: 80px 0;
    background-color: #efefef;
  }

  .recruit-info-area {
    padding: 80px 0;
  }

  .recruit-info-area .recruit-bottom-text {
    font-size: 21px;
  }

  .tms-stats-box h4 {
    color: #ffffff;
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    padding: 10px;
    display: block;
    background-color: #fd3d11;
    margin-bottom: 10px;
  }

  .tms-stats-box p {
    text-align: center;
    font-size: 22px;
    font-weight: 700;
  }

  .tms-stats-box .icon-img {
    height: 100%;
    max-height: 80px;
    width: auto;
    margin: 15px auto;
  }

  .tms-stats-box p .large {
    font-size: 32px;
    margin-left: 5px;
  }
}

/* =======================================
会社案内
======================================== */
.company.wrapper {
  overflow: visible;
}

.philosophy {
  background: #fff;
  padding-bottom: 120px;
  position: relative;
}

.philosophy__inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 28px;
}

.philosophy::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;

  width: 70vw;

  background: #fff0e7;
  pointer-events: none;
  z-index: 0;

  clip-path: polygon(100% 0%,
      100% 100%,
      35% 100%);
}

.philosophy__body {
  line-height: 2.1;
  max-width: 1000px;
  margin: 0 auto;
}

.philosophy__body p {
  font-size: 16px;
}

.philosophy__lead {
  letter-spacing: -0.04em;
  font-family: "Zen Old Mincho", serif;
  margin: 40px 0 15px;
  line-height: 1.3;
  font-size: 34px;
  font-weight: 700;
}

/* 中身は必ず前面 */
.philosophy .container {
  position: relative;
  z-index: 1;
}

.greeting {
  padding: 100px 0;
  background-color: #efefef;
}

.greeting .container {
  padding-left: 28px;
  padding-right: 28px;
}


/* 本文 */
.greeting-text {
  font-size: 13px;
  line-height: 2.2;
}

.greeting-text p {
  margin-bottom: 16px;
  font-size: 16px;
}

.greeting-name {
  font-family: "Zen Old Mincho", serif;
  font-size: 18px;
  line-height: 1.5;
  text-align: right;
  margin-top: 15px;
}

.greeting-name .name {
  font-size: 22px;
  font-weight: 700;
  padding-left: 20px;
}

.company-profile {
  padding: 110px 0;
  background: #fff;
}

.company-profile .page-title {
  margin-bottom: 50px;
}

.company-profile,
.profile-grid {
  overflow: visible;
}

.profile-photo {
  position: sticky;
  top: 150px;
}

.company-profile .container {
  margin: 0 auto;
  padding: 0 24px;
}

/* 見出し */
.section-head {
  margin-bottom: 40px;
}

.section-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 10px;
  font-weight: 600;
  letter-spacing: .08em;
  font-size: 12px;
  text-transform: uppercase;
}

.kicker-bar {
  width: 28px;
  height: 2px;
  background: #fd3d11;
  /* テーマのオレンジに合わせる */
  display: inline-block;
}

.section-title {
  margin: 0;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* 2カラム */
.profile-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: start;
}

/* 表（dl） */
.profile-dl {
  margin: 0;
}

.profile-row {
  display: grid;
  grid-template-columns: 160px 1fr;
}

.profile-row dt {
  margin: 0;
  font-weight: 700;
  padding: 18px 0;
  text-align: center;
  border-top: 1px solid #fd3d11;
}

.profile-row:last-child dt {
  border-bottom: 1px solid #fd3d11;
}

.profile-row dd {
  padding: 18px 18px;
  margin: 0;
  line-height: 1.9;
  border-top: 1px solid #e8e8e8;
}

.profile-row:last-child dd {
  border-bottom: 1px solid #e8e8e8;
}

.profile-row .tel:hover {
  border-bottom-color: #fd3d11;
}

/* 右写真 */
.profile-photo {
  margin: 0;
  position: sticky;
  top: 120px;
  /* ← ヘッダー高さに合わせて調整 */
  align-self: flex-start;
  /* ← grid内で必須 */
}

.profile-photo img {
  width: 100%;
  height: auto;
  display: block;
}

.photo-note {
  margin-top: 10px;
  font-size: 12px;
  color: #777;
}

.access-area {
  padding-bottom: 120px;
}

.map-text {
  margin-top: 20px;
  text-align: center;
}

.map iframe {
  width: 100%;
}

@media (min-width: 1280px) {
  .greeting-text p {
    padding-left: 60px;
  }
}

@media (max-width: 991px) {
  .company-profile {
    padding: 100px 0;
  }

  .profile-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .profile-photo {
    position: static;
    /* SPはsticky解除 */
  }

  .profile-row {
    grid-template-columns: 120px 1fr;
  }
}

@media (max-width: 768px) {
  .philosophy__lead {
    margin: 40px 0 15px;
    font-size: 26px;
  }

  .philosophy {
    padding: 0 0 80px;
  }

  .philosophy__inner {
    padding: 0 18px;
  }

  .philosophy__title {
    font-size: 20px;
  }

  .philosophy__body {
    font-size: 14px;
    line-height: 2.0;
  }

  .philosophy::before {
    content: "";
    position: absolute;
    top: 200px;
    right: 0;
    height: calc(100% - 200px);

    width: 80vw;

    background: #fff0e7;
    pointer-events: none;
    z-index: 0;

    clip-path: polygon(100% 0%,
        100% 100%,
        20% 100%);
  }
}

@media (max-width: 560px) {
  .company-profile {
    padding: 80px 0;
  }

  .profile-row {
    grid-template-columns: 1fr;
  }

  .profile-row dt {
    text-align: left;
    padding: 14px 0;
  }

  .profile-row dd {
    padding: 14px 14px;
  }

  .philosophy::before {
    content: "";
    position: absolute;
    top: 500px;
    right: 0;
    height: calc(100% - 500px);

    width: 90vw;

    background: #fff0e7;
    pointer-events: none;
    z-index: 0;

    clip-path: polygon(100% 0%,
        100% 100%,
        10% 100%);
  }

  .greeting {
    padding: 80px 0;
    background-color: #efefef;
  }

  .access-area {
    padding-bottom: 80px;
  }

  .map iframe {
    height: 300px;
  }

}

/* =======================================
お問い合わせ
======================================== */
.contact-form-area {
  padding-bottom: 120px;
}

.contact-form-area h3 {
  line-height: 1.75;
  text-align: center;
  position: relative;
  margin-bottom: 30px;
  font-weight: 700;
  text-align: center;
  font-size: 33px;
  color: #fd6f11;
}

.contact-form-area h3 {
  display: flex;
  justify-content: center;
  gap: 14px;
  font-weight: 700;
}

.contact-form-area h3::before,
.contact-form-area h3::after {
  content: "";
  width: 40px;
  height: 1px;
  background: #fd6f11;
  position: relative;
  top: 28px;
  flex-shrink: 0;
}

/* SP */
@media (max-width: 768px) {
  .contact-form-area h3 {
    gap: 10px;
  }

  .contact-form-area h3::before,
  .contact-form-area h3::after {
    width: 24px;
  }
}

.contact-form-area .icon {
  width: 100%;
  margin-right: 15px;
  max-width: 40px;
  height: 40px;
}

.tel-fax-wrap {
  padding: 25px;
  background-color: #fd6f11;
  margin-bottom: 50px;
}

.contact-form-area .head-text {
  text-align: center;
}

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

.contact-form-area .number-text {
  font-weight: 700;
  line-height: 1;
  color: #fff;
  font-size: 45px;
  transform: translateY(-3px);
}

.contact-form-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: 40px;
}

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

.entry-form-area {
  padding: 150px 0 0;
  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;
}

.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: #fd6f11;
}

.refusal-text {
  font-size: 20px;
  color: #fd3d11;
}

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

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

.name-box .name {
  white-space: nowrap;
  /* セイ・メイを改行させない */
  font-weight: 600;
}

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

#policy h4 {
  font-size: 25px;
  color: #fd6f11;
  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 .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;
}

.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;
}

.tel-fax-ttl br.sp {
  display: none;
}

.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: 15em;
  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: 1rem;
  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;
}

/* 共通 */
.contact-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: scaleX(-1) 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: 320px;
  width: 100%;
  display: block;
  width: 100%;
  text-align: center;
  color: #fff;
  padding: 20px 0;
  font-weight: 400;
  line-height: 1;
  overflow: hidden;
  border-radius: 0;
  color: #fff;
  border: none;
  line-height: 1.5;
  font-size: 18px;
  transition: 0.7s !important;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background-color: inherit;
  gap: 24px;
}

.buttons .btn-primary:hover,
.buttons .send-btn:hover {
  background-color: inherit;
}

/* 通常グラデ */
.btn-primary::before,
.send-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(-45deg, #fd6f11, #fd3d11);
  z-index: -1;
}

/* hover用（色逆） */
.btn-primary::after,
.send-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(-45deg, #fd3d11, #fd6f11);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.btn-primary:hover::after,
.send-btn:hover::after {
  opacity: 1;
}

.btn-primary .linkbtn__icon,
.send-btn .linkbtn__icon {
  line-height: 1;
  width: 17px;
  height: 16px;
  font-size: 0;
  position: relative;
  transform: rotate(-45deg);
  overflow: hidden;
}

.arrow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: transform .3s ease;
}

.btn-primary:hover .arrow--old,
.send-btn:hover .arrow--old {
  transform: translate(100%, -50%);
  /* 右外へスライドアウト */
}

.arrow--new {
  transform: translate(-200%, -50%);
  /* 初期：左外 */
}

.btn-primary:hover .arrow--new,
.send-btn:hover .arrow--new {
  transform: translate(-50%, -50%);
  /* 中央にスライドイン */
}

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

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

.btn-primary:hover,
.send-btn:hover {
  color: #fff;
  background-color: #005499;
}

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

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

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

.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;
}

.custom-select:disabled {
  color: #999;
  background-color: #f8f9fa;
  border-color: #e1e5ea;
}

@media (max-width: 1500px) {

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

  .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;
  }


  .contact-form-area .number-text {
    font-size: min(calc(45px + (60 - 45) * (100vw - 992px) / (1500 - 992)),
        60px);
  }

  .contact-form-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);
  }

  .contact-form-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: 20px 0;
  }
}

@media (max-width: 991px) {

  .contact-form-area h3 {
    font-size: 28px;
    line-height: 1.4;
  }

  .contact-form-area h3::before,
  .contact-form-area h3::after {
    top: 22px;
  }

  .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);
  }

  .contact-form-area {
    margin-bottom: 0
  }

  .contact-form-area .icon {
    height: auto;
    line-height: 1;
  }

  .contact-form-area .number-text {
    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 0;
    position: relative;
  }
}

@media (max-width: 768px) {
  .contact-form-area {
    padding-bottom: 80px;
  }

  .contact-form-area .head-text {
    text-align: left;
  }

  .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;
    width: 30px;
    max-width: 30px;
  }

  .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;
  }
}

@media (max-width: 480px) {

  .tel-fax-ttl br.sp {
    display: block;
  }
}