@charset "utf-8";

/*===================================
 ヘッダー
====================================*/
header {
  background-color: #000;
  color: #fff;
  font-family: "ヒラギノ明朝 Pro", "Hiragino Mincho Pro", "游明朝体",
    "Yu Mincho", YuMincho, "MS P明朝", "MS PMincho", serif;
  font-weight: bold;
}

.header_nav_list {
  gap: 0.5rem;
  text-align: center;

  & .nav-link {
    color: #fff;
    font-size: 0.875rem;
  }
  & .nav-link:hover {
    color: #fff;
    opacity: 0.7;
  }
}
@media screen and (min-width: 768px) {
  .header_nav_list {
    gap: 1rem;
  }
}

/* ハンバーガーボタン close時 */
.hamburger_btn {
  position: relative;
  width: 2rem;
  height: 1.625rem;
  display: block;
  transition: all 0.5s;

  & span {
    position: absolute;
    right: 0;
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--gold);
    transition: all 0.5s;
  }

  & span:nth-child(1) {
    top: 0;
  }
  & span:nth-child(2) {
    top: 0.6875rem;
  }
  & span:nth-child(3) {
    bottom: 0;
  }
}

/* ハンバーガーボタン open時 */
.hamburger_btn[aria-expanded="true"] {
  transform: rotate(360deg);

  & span:nth-child(1) {
    transform: translateY(0.6875rem) rotate(-45deg);
  }
  & span:nth-child(2) {
    transform: translateY(0) rotate(45deg);
  }
  & span:nth-child(3) {
    opacity: 0;
  }
}

/*===================================
 フッター
====================================*/
footer {
  position: sticky;
  top: 100vh;
  width: 100%;
  background-color: #000;
  font-family: "ヒラギノ明朝 Pro", "Hiragino Mincho Pro", "游明朝体",
    "Yu Mincho", YuMincho, "MS P明朝", "MS PMincho", serif;
}

.footer_content {
  padding: 3rem 1rem 2rem;
}

.footer_nav a {
  color: #fff;
  text-decoration: none;
}

/*===================================
 ボタン
====================================*/
/* ボタン幅（中央） */
.btn_width {
  width: 80%;
}
@media screen and (min-width: 768px) {
  .btn_width {
    width: 240px;
  }
}

/* 汎用ボタン 金色 */
.gold_btn {
  background-color: var(--gold);
  color: #fff;
}
.gold_btn:link,
.gold_btn:visited {
  background-color: var(--gold);
  color: #fff;
}
.gold_btn:hover,
.gold_btn:active {
  background-color: var(--gold_hover);
  color: #fff;
}

/* トップページの次へ進むボタン */
.top_next_btn {
  position: relative;
  background-color: transparent;
  color: inherit;
  width: 22rem;
  max-width: 100%;
  padding: 1rem;
  transition: border-color 0.5s ease;
}

.top_next_btn:link,
.top_next_btn:visited {
  border-image: linear-gradient(45deg, #fff, #fff) 1;
}
.top_next_btn:hover,
.top_next_btn:active {
  border-image: linear-gradient(45deg, var(--gold), var(--green)) 1;
}

@media screen and (min-width: 768px) {
  .top_next_btn::before {
    content: "";
    position: absolute;
    top: 50%;
    right: -10%;
    background-color: #fff;
    width: 60px;
    height: 1px;
    transition: 0.5s ease;
  }

  .top_next_btn::after {
    content: "";
    position: absolute;
    top: 49%;
    right: -39px;
    border-right: 1px solid #fff;
    border-bottom: 1px solid #fff;
    width: 0.8rem;
    height: 0.8rem;
    transform: rotate(-45deg) translateY(-50%);
    transition: 0.5s ease;
  }

  .top_next_btn:hover::before {
    right: -12%;
    background-color: var(--green);
  }
  .top_next_btn:hover::after {
    border-right: 1px solid var(--green);
    right: calc(-39px - 2%);
    border-bottom: 1px solid var(--green);
  }
}

.top_next_btn.top_next_btn--gold {
  color: var(--gold);
}

.top_next_btn.top_next_btn--gold:link,
.top_next_btn.top_next_btn--gold:visited {
  border-image: linear-gradient(45deg, var(--gold), var(--gold)) 1;
}
.top_next_btn.top_next_btn--gold:hover,
.top_next_btn.top_next_btn--gold:active {
  border-image: linear-gradient(45deg, var(--gold), var(--green)) 1;
}

@media screen and (min-width: 768px) {
  .top_next_btn.top_next_btn--gold::before {
    background-color: var(--gold);
  }
  .top_next_btn.top_next_btn--gold::after {
    border-color: var(--gold);
  }

  .top_next_btn.top_next_btn--gold:hover::before {
    background-color: var(--green);
  }
  .top_next_btn.top_next_btn--gold:hover::after {
    border-right: 1px solid var(--green);
    border-bottom: 1px solid var(--green);
  }
}

/* 戻るボタン */
.back_btn {
  background-color: #eee;
  border: 1px solid #ccc;
}

.back_btn:link,
.back_btn:visited {
}
.back_btn:hover,
.back_btn:active {
  background-color: #ccc;
}

.back_btn > i.bi {
  position: absolute;
  top: 50%;
  left: 0.8rem;
  transform: translateY(-50%);
}

/*===================================
 共通部品
====================================*/
/* タイトル */
.top_section_title {
  text-align: center;
  font-size: 2rem;

  & > span.en {
    border: 6px solid #000;
    font-family: "Barlow Semi Condensed", sans-serif;
    font-style: normal;
    font-weight: 700;
    padding: 0 1rem;
    text-transform: uppercase;
  }

  & > span.ja {
    font-family: "ヒラギノ明朝 Pro", "Hiragino Mincho Pro", "游明朝体",
      "Yu Mincho", YuMincho, "MS P明朝", "MS PMincho", serif;
    font-size: 0.875rem;
    display: block;
    margin-top: 1.5rem;
  }
}

@media screen and (min-width: 768px) {
  .top_section_title {
    font-size: 4rem;

    & > span.ja {
      font-size: 1.5rem;
    }
  }
}

.page_title {
  padding: 1.5rem 1rem calc(1.5rem - 5px);
  text-align: center;
  font-weight: bold;
  font-size: 3rem;
  width: 100%;
  text-transform: uppercase;
  font-family: "Barlow Semi Condensed", sans-serif;
  font-style: normal;
  font-weight: 700;
}
.page_title .en {
  border: 5px solid var(--green);
  color: var(--green);
  padding: 0 1rem;
  font-weight: bold;
  background-color: #fff;
}
.page_title .ja {
  font-family: "ヒラギノ明朝 Pro", "Hiragino Mincho Pro", "游明朝体",
    "Yu Mincho", YuMincho, "MS P明朝", "MS PMincho", serif;
  font-weight: bold;
  letter-spacing: 2px;
}

/* パンくずリスト */
.breadcrumb > li {
}
.breadcrumb > li::after {
  content: "/";
  padding-left: 0.5rem;
}
.breadcrumb > li:last-child::after {
  content: none;
}

/* 斜めの背景 上下 */
.slanted_bg {
  clip-path: polygon(0 calc(0% + 10vw), 100% 0, 100% calc(100% - 10vw), 0 100%);
  background-color: #b5c9cc;
  padding-top: 7rem;
  padding-bottom: 7rem;
  margin-top: calc(-10vw - 1px);
}

@media screen and (min-width: 768px) {
  .slanted_bg {
    padding-top: 15rem;
    padding-bottom: 15rem;
  }
}

/* 斜めの背景 下のみ */
.slanted_bg_bottom {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10vw), 0 100%);
  padding-top: 5rem;
  padding-bottom: 7.25rem;
}

@media screen and (min-width: 768px) {
  .slanted_bg_bottom {
    padding-top: 7rem;
    padding-bottom: 11.25rem;
  }
}

/* 斜めの背景 上のみ */
.slanted_bg_top {
  clip-path: polygon(0 calc(0% + 10vw), 100% 0, 100% 100%, 0 100%);
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
}

@media screen and (min-width: 768px) {
  .slanted_bg_top {
    padding-top: 7.5rem;
    padding-bottom: 7.5rem;
  }
}

/* 背景がタイヤ画像 */
.slanted_bg--tire {
  background-image: url(../img/bg_tire.jpg);
}

/* 背景がコンタクト画像 */
.slanted_bg--contact {
  background-image: url(../img/bg_contact.jpg);

  & p,
  & h2 > span.ja,
  & a {
    text-shadow: #016033 1px 0 10px;
  }
}

.text_line {
  position: relative;
  overflow: hidden;
}
.text_line::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--gold);
  z-index: -1;
}

/* 共通テーブル */
.one_to_one_table {
  border: 2px solid #000;
  & th {
    display: block;
    background-color: #000;
    border-color: #fff;
    padding: 0.5rem 1rem;
    color: #fff;
    width: 100%;
  }
  & td {
    display: block;
    padding: 0.5rem 1rem;
    width: 100%;
  }
}

@media screen and (min-width: 768px) {
  .one_to_one_table {
    & th {
      display: table-cell;
      width: 25%;
      vertical-align: middle;
    }
    & td {
      display: table-cell;
      width: 75%;
    }
  }
}

/* form関係 */
.hissu {
  color: #fff;
  margin-left: auto;
  background-color: rgb(220, 53, 69);
  font-size: 0.75rem;
  letter-spacing: 2px;
  padding: 0.25em;
}

/*===================================
 トップページ
====================================*/
/* キャッチコピー */
.catch_copy {
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: clamp(2rem, -2.194rem + 11.65vw, 8rem);
  font-weight: bold;
  width: 10em;
  line-height: 1.5;
}
@media screen and (min-width: 576px) {
  .catch_copy {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
}

/* メインスライド */
.top_slide {
}
.top_slide .splide__slide img {
  width: 100%;
  height: auto;
}

.top_slide .splide__pagination__page {
  height: 5px;
  width: 20px;
  margin: 6px;
  border-radius: 0;
  &.is-active {
    background-color: var(--gold);
  }
}

@media screen and (min-width: 576px) {
  .top_slide .splide__slide img {
    max-height: 800px;
  }
}

/* フェードイン要素 */
.fadein_elem {
  transition: opacity 0.7s, transform 0.7s;
  transform: translateY(70px);
  opacity: 0;
}
.fadein_elem.is-fadein {
  transform: translateX(0);
  opacity: 1;
}

/* インスタグラム */
.instagram_container {
  margin-top: 4rem;
}
.instagram_catch {
  white-space: nowrap;
  font-family: "YuMincho", serif;
  font-size: 1.5em;
  color: #fff;
  margin: 1rem;
}
.instagram_catch_line {
  flex-grow: 1;
  height: 1px;
  background-color: #fff;
}

/* 営業品目 */
.service_list_img {
  aspect-ratio: 1 / 1;
  overflow: hidden;

  & > img {
    object-fit: cover;
    object-position: center;
    width: 100%;
    height: 100%;
  }
}

/* 採用情報 従業員の声 */
.top_voice_list {
  counter-reset: listnum;
}

.top_voice_list > li {
  position: relative;
  border-bottom: 1px solid var(--gold);
  padding: 2rem 1rem;
  padding-top: 8rem;
}

.top_voice_list > li::before {
  content: "";
  position: absolute;
  top: 0.5rem;
  left: 50%;
  transform: translateX(-50%);
  counter-increment: listnum;
  content: "0" counter(listnum);
  color: var(--gold);
  font-size: 5rem;
  font-family: "Barlow Semi Condensed", sans-serif;
  font-weight: 500;
  font-style: normal;
}

@media screen and (min-width: 768px) {
  .top_voice_list > li {
    padding-left: 18rem;
    padding: 4rem;
    padding-left: 18rem;
  }

  .top_voice_list > li::before {
    font-size: 8rem;
    top: 50%;
    left: 5rem;
    transform: translateY(-50%);
  }
}

.map {
  aspect-ratio: 6 / 2.5;
  filter: brightness(0) saturate(100%) invert(100%) sepia(1%) saturate(5727%)
    hue-rotate(89deg) brightness(100%) contrast(82%);
  filter: hue-rotate(89deg);
  filter: grayscale(75%) hue-rotate(-11deg);
}

/*===================================
 会社概要ページ
====================================*/
.history_list {
}
.history_list > li {
  display: flex;
  flex-direction: column;
  margin-bottom: 2.4rem;

  & > span {
    position: relative;
    padding-left: 2em;
  }

  & > span + div {
    padding-left: 2em;
  }

  & > span::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 0.725rem;
    height: 0.725rem;
    transform: rotate(45deg) translateY(-50%);
    background-color: var(--green);
  }

  & > span::after {
    content: "";
    position: absolute;
    top: 50%;
    left: calc(0.725rem * 1.414 / 2);
    width: 1px;
    height: 15rem;
    background-color: var(--green);
  }
}

@media screen and (min-width: 768px) {
  .history_list > li {
    flex-direction: row;
    gap: 2rem;

    & > span {
      width: 20%;
    }

    & > span + div {
      padding-left: 0;
    }
  }
}

/*===================================
 採用情報ページ
====================================*/

/*===================================
 お問い合わせページ
====================================*/
