/* =========================================
   基本スタイル
   ========================================= */
body {
  font-family: "Noto Sans JP", "Yu Gothic", YuGothic, "Hiragino Kaku Gothic Pro", "Hiragino Sans", Meiryo, sans-serif;
  background-color: #fff;
  color: #000;
}

main,
footer {
  display: flow-root;
}

main {
  padding: 80px 0;
}

article {
  width: 100%;
}

a {
  color: #000;
}

a[href^="tel:"] {
  cursor: default;
}

/* =========================================
   ユーティリティ
   ========================================= */
.pc_only {
  display: none;
}

.sp_only {
  display: inline;
}

/* =========================================
   ヘッダー
   ========================================= */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #b90000;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  width: 100%;
  margin: 0 auto;
  padding: 0 0 0 16px;
  position: relative;
}

header .logo img {
  width: auto;
  height: 35px;
}

header .logo h1 {
  margin: 0;
  padding: 0;
}

header .logo h1::after {
  display: none;
}

header .logo h1 img {
  width: auto;
  height: 35px;
}

#menu-toggle {
  display: block;
  background: none;
  border: none;
  width: 40px;
  height: 40px;
  margin-left: auto;
  cursor: pointer;
  z-index: 1100;
}

#menu-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  background: #ffffff;
  margin: 5px 0;
  border-radius: 2px;
  transition: all 0.3s;
}

#menu-toggle.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

#menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

#menu-toggle.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.nav-list {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 56px;
  left: 0;
  width: 100vw;
  background: #b90000;
  z-index: 1001;
  padding: 0;
  margin: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.nav-list.open {
  display: flex;
}

.nav-list li {
  border-bottom: 1px solid #eee;
}

.nav-list li a {
  display: block;
  padding: 1em;
  color: #ffffff;
  text-decoration: none;
  font-size: 1rem;
  transition: opacity 0.2s;
}

.nav-list li a:hover {
  opacity: 0.5;
}

#header-tel {
  display: none;
}

#header-tel-inner a {
  color: #ffffff;
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 0.5em;
}

#header-tel-inner a i {
  font-size: 1.2rem;
  margin-top: 0.25lh;
}

/* =========================================
   トップページ
   ========================================= */
main#home {
  padding-top: 0;
}

#content1 {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  aspect-ratio: 1/1;
  height: auto;
  min-height: 60vw;
  background: url("../images/bg1.webp") top center no-repeat;
  background-size: cover;
  position: relative;
}

#content1::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

#content1 section {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  min-height: 100%;
  position: relative;
  z-index: 1;
}

#top-copy {
  padding-top: 0;
  margin: 0;
  width: 96%;
  text-align: center;
}

#top-copy h2 {
  font-size: 2rem;
  color: #fff;
  text-shadow: 1px 1px 1px #000;
  margin-bottom: 0.5lh;
}

#top-copy p {
  font-size: 1.2rem;
  color: #fff;
  text-shadow: 1px 1px 1px #000;
}

#content2 {
  margin-top: -55px;
  background: url("../images/bg2.webp") no-repeat center top;
  background-size: cover;
  position: relative;
  padding-top: 40px;
  padding-bottom: 40px;
}

#content2::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

#content2 section {
  position: relative;
  z-index: 1;
}

#top-link-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  width: 96%;
  margin: 40px auto 0 auto;
  list-style: none;
  gap: 2%;
}

#top-link-list li {
  width: calc(50% - 1%);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 0 32px 0;
}

#top-link-list li img {
  width: 100%;
  height: auto;
}

#top-link-list li a figure {
  position: static;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  margin: 0;
}

#top-link-list li a figure img {
  width: 100%;
  height: auto;
  display: block;
}

#top-link-list li a figure figcaption {
  position: static;
  background: rgba(185, 0, 0, 0.85);
  color: #fff;
  padding: 0.5em 0;
  width: 100%;
  font-size: 1rem;
  text-align: center;
  margin: 0;
}

/* =========================================
   コンテンツ共通
   ========================================= */
#content-box {
  width: 96%;
  margin: 0 auto;
}

/* =========================================
   会社概要
   ========================================= */
#company section,
#recruit section {
  margin-bottom: 4em;
}

#company section:last-child,
#recruit section:last-child {
  margin-bottom: 0;
}

#company h3,
#recruit h3 {
  font-size: 1.5rem;
  font-weight: bold;
  color: #000;
  margin: 0 0 1.5em 0;
  padding-left: 1rem;
  border-left: 4px solid #b90000;
}

dl.company-list,
dl.recruit-list {
  display: flex;
  flex-direction: column;
  width: 96%;
  margin: 0 auto 2.5em auto;
}

dl.company-list dt,
dl.recruit-list dt {
  font-size: 1.1rem;
  font-weight: bold;
  color: #b90000;
  padding-left: 0;
  background: #fff;
  border-left: none;
  margin-bottom: 0.5em;
}

dl.company-list dd,
dl.recruit-list dd {
  font-size: 1rem;
  margin: 0 0 1.5em 0;
  line-height: 1.6;
}

dl.company-list dd:last-child,
dl.recruit-list dd:last-child {
  margin-bottom: 0;
}

dl.company-list dd a,
dl.recruit-list dd a {
  color: #445ea4;
  text-decoration: underline;
}

/* =========================================
   業務内容
   ========================================= */
#service section {
  margin-bottom: 4em;
}

#service section:last-child {
  margin-bottom: 0;
}

#service .serv_title {
  font-size: 1.5rem;
  font-weight: bold;
  color: #000;
  margin: 0 0 1.5em 0;
  padding-left: 1rem;
  border-left: 4px solid #b90000;
}

#service ol,
#recruit ol {
  margin: 0;
  padding-left: 1.5em;
  list-style-type: decimal;
}

#service li,
#recruit li {
  margin-bottom: 1em;
  line-height: 1.6;
}

#service li:last-child,
#recruit li:last-child {
  margin-bottom: 0;
}

/* =========================================
   お問い合わせ
   ========================================= */
#contact-box {
  width: 96%;
  margin: 0 auto;
}

.main_content {
  width: 96%;
  margin: 0 auto;
}

/* =========================================
   フッター
   ========================================= */
#footer {
  background: #b90000;
  margin: 0 auto;
  width: 100%;
}

#footer #footer-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  text-align: center;
  padding: 40px 0;
  background: none;
  margin: 0 auto;
}

#footer #footer-info #footer-info-list {
  text-align: center;
}

#footer #footer-info .footer-info-logo {
  width: 100%;
}

#footer #footer-info .footer-info-logo a {
  display: inline-block;
  font-size: 1rem;
  font-weight: bold;
  color: #ffffff;
  text-decoration: none;
  white-space: nowrap;
}

#footer #footer-info .footer-info-logo img {
  vertical-align: middle;
  width: 160px;
}

#footer #footer-info .footer-info-tel {
  font-size: 1rem;
  font-weight: bold;
  color: #ffffff;
  margin: 1lh auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  text-align: center;
}

#footer #footer-info .footer-info-tel a {
  color: #ffffff;
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 0.5em;
}

#footer #footer-info .footer-info-tel a i {
  font-size: 1.2rem;
  margin-top: 0.25lh;
}

#footer #footer-info #footer-info-list li {
  color: #ffffff;
  width: 300px;
}

#footer #copyright {
  text-align: center;
  background: #ffffff;
  color: #b90000;
  font-size: 1rem;
  line-height: 4;
  width: 100%;
}

/* =========================================
   フッターナビゲーション
   ========================================= */
#footer #footer-navi {
  width: 100%;
  padding: 20px 0;
}

#footer #footer-navi-list {
  display: none;
  flex-direction: column;
  gap: 0.9em;
  align-items: stretch;
  padding: 0;
  margin: 0 auto;
  list-style: none;
  width: 100%;
  max-width: 400px;
}

#footer #footer-navi-list li {
  width: 100%;
}

#footer #footer-navi-list li a {
  display: block;
  font-size: 1rem;
  color: #ffffff;
  padding: 1.3em 0;
  border-radius: 8px;
  margin: 0 auto;
  box-sizing: border-box;
  text-align: center;
  text-decoration: none;
  transition: opacity 0.2s;
}

#footer #footer-navi-list li a:hover {
  opacity: 0.5;
}

/* =========================================
   事業内容リスト
   ========================================= */
.business-list {
  list-style-type: decimal !important;
  padding-left: 1.5em;
  margin: 0;
}

.business-list li {
  margin-bottom: 0.5em;
  line-height: 1.6;
  list-style-type: decimal !important;
}

/* =========================================
   デスクトップ用スタイル
   ========================================= */
@media screen and (min-width: 769px) {
  .pc_only {
    display: block;
  }

  .sp_only {
    display: none;
  }

  main {
    padding: 160px 0 80px 0;
  }

  .nav-container {
    height: 80px;
    padding: 0 40px;
  }

  #menu-toggle {
    display: none;
  }

  .nav-list {
    display: flex;
    flex-direction: row;
    position: static;
    width: auto;
    box-shadow: none;
    gap: 2em;
    align-items: center;
    background: transparent;
  }

  .nav-list li {
    border: none;
    margin: 0;
  }

  .nav-list li a {
    padding: 0.5em 1.2em;
    color: #ffffff;
    font-size: 1rem;
    background: none;
    transition: opacity 0.2s;
  }

  .nav-list li a:hover {
    background: none;
    opacity: 0.5;
  }

  #header-tel {
    display: block;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: #ffffff;
    font-weight: bold;
    white-space: nowrap;
  }

  #top-copy h2 {
    font-size: 3rem;
  }

  #content2 {
    margin-top: 0;
  }

  #top-link-list {
    width: 80%;
    padding: 15% 0;
    margin: 0 auto;
  }

  #top-link-list li a figure figcaption {
    font-size: 2rem;
  }

  #content-box,
  .main_content,
  #contact-box {
    width: 1080px;
  }

  dl.company-list,
  dl.recruit-list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    margin: 0 auto 3em auto;
    align-items: flex-start;
  }

  dl.company-list dt,
  dl.recruit-list dt {
    width: auto;
    min-width: 120px;
    margin-bottom: 0;
    padding-right: 20px;
    white-space: nowrap;
    position: relative;
    display: inline-block;
  }

  dl.company-list dd,
  dl.recruit-list dd {
    width: calc(100% - 140px);
    margin: 0 0 2em 0;
    padding-left: 20px;
  }

  /* =========================================
   トップページ
   ========================================= */
  #content1 {
    aspect-ratio: 16/4;
  }

  #footer #footer-navi {
    padding: 40px 0;
  }

  #footer #footer-navi-list {
    display: flex !important;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 2em;
    max-width: 900px;
  }

  #footer #footer-navi-list li {
    width: auto;
  }

  #footer #footer-navi-list li a {
    font-size: 1.1rem;
    padding: 0.9em 2.2em;
    border-radius: 4px;
    border: none;
    background: none;
    min-width: 120px;
  }

  #footer #footer-info .footer-info-tel {
    justify-content: center;
    text-align: center;
  }
}

/* =========================================
   見出し
   ========================================= */
h2 {
  font-size: 2rem;
  font-weight: bold;
  color: #000;
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 1rem;
}

h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: #b90000;
}

h3 {
  font-size: 1.5rem;
  font-weight: bold;
  color: #000;
  margin: 2rem 0 1rem;
  padding-left: 1rem;
  border-left: 4px solid #b90000;
}
