/*ーーーーーーーーーーーーーーーーーーーーー
 設定
 ーーーーーーーーーーーーーーーーーーーーー*/

/* 全体の基本スタイル */
body {
  margin: 0;
  font-family: "Noto Sans CJK JP", "Noto Sans JP", sans-serif;
  line-height: 1.5;
  color: #333;
}

/* ベースとなるカラー設定 */
:root {
  --brand-color: #004097;
  --sub-color: #009fe8;
  --light-color: #ccecfa;
}

.container {
  margin-right: auto;
  margin-left: auto;
  padding: 0 15px;
}

@media (min-width: 768px) {
  .container {
    max-width: 750px;
  }
}

@media (min-width: 992px) {
  .container {
    max-width: 970px;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1170px;
  }
}

@media (min-width: 1400px) {
  .container {
    max-width: 1220px;
  }
}

@media (max-width: 768px) {
  .container {
    max-width: 100%;
    padding: 0 15px;
    margin: 0 auto;
  }
}

/* モバイルメニュー用オーバーレイ背景 */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.3);
  z-index: 999;
  display: none;
}

/* メニューが開いたときにオーバーレイ表示 */
.overlay.active {
  display: block;
}

/* 画像が親要素からはみ出さないようにする */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/*ーーーーーーーーーーーーーーーーーーーーー
ユーティリティクラス
 ーーーーーーーーーーーーーーーーーーーーー*/

/* ユーティリティ*/
.pc {
  display: block;
}

.smp {
  display: none;
}

@media (max-width: 768px) {
  .pc {
    display: none;
  }

  .smp {
    display: block;
  }
}

/* 字詰めユーティリティ */
.kuten {
  margin-right: -8px;
}

.ten {
  margin-right: -6px;
  margin-left: -6px;
}

.tsume {
  margin-right: -3px;
  margin-left: -3px;
}

.tsume-l {
  margin-left: -10px;
}

.tsume-l_footer {
  margin-left: -20px;
}

.tsume-footer {
  margin-left: -7px;
}

.tsume-l_sm {
  margin-left: -2px;
}

/*ーーーーーーーーーーーーーーーーーーーーー
header（ヘッダー）
 ーーーーーーーーーーーーーーーーーーーーー*/

/* header*/
.site-header {
  background: #fff;
  font-family: "Noto Sans JP", sans-serif;
}

.site-header_logo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;
}

.tel-info.desktop-only {
  color: var(--brand-color);
  font-family: "Noto Serif", serif;

  .tel-info_name {
    font-size: 2.125rem;
    display: block;
    border-bottom: solid 1px var(--brand-color);
    font-weight: bold;
    padding-top: 10px;
    letter-spacing: -2px;
  }

  .tel-info_access {
    font-size: 1.09375rem;
    margin-top: 8px;
    display: block;
  }

  .tel-info_flex {
    display: flex;
    gap: 10px;
    align-items: center;
  }

  .tel-info_flex__tel {
    font-size: 2.21875rem;
    font-weight: 700;
    display: block;
    margin-top: -10px;
  }

  .tel-info_flex__open {
    font-size: 0.71875rem;
    margin-top: -8px;
  }
}

@media (max-width: 1084px) {
  .site-header {
    background: rgb(255 255 255 / 80%);
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
  }

  .hero-img {
    padding-top: 80px;
  }

  .logo img {
    height: 60px;
    width: auto;
  }

  .site-header_logo {
    padding: 10px 0;
  }
}

@media (max-width: 768px) {
  .logo img {
    height: 40px;
    width: auto;
  }

  .site-header_logo {
    padding: 0.5rem;
  }

  .hero-img {
    padding-top: 64px;
  }
}

/*ーーーーーーーーーーーーーーーーーーーーー
Nav（ナビゲーションメニュー）
 ーーーーーーーーーーーーーーーーーーーーー*/

/* ナビゲーション全体 */
.main-nav .nav-list {
  list-style: none;
  padding-inline-start: 0;
}

/* 各ナビゲーション項目 */
.main-nav .nav-list li {
  display: inline-block;
}

/* デフォルト（モバイル）では画像付きメニュー非表示、テキストメニュー表示 */
.nav-list.desktop-only {
  display: none;
}

.nav-list.desktop-only li {
  position: relative;
}

.nav-list.desktop-only li+li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: #fff;
}

.nav-list.mobile-only {
  display: block;
  background-color: var(--light-color);
}

.nav-list.mobile-only li {
  border-bottom: 1px solid #ccc;
}

.nav-list.mobile-only li a::before {
  content: "";
  display: inline-block;
  margin-right: 0.5em;
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid var(--brand-color);
  vertical-align: middle;
}

.nav-list.mobile-only a {
  color: #333;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  display: block;
  padding: 1rem 0 1rem 0.5rem;
}

.nav-list.mobile-only .mobile-tel {
  border-bottom: none;
}

.mobile-tel-main a {
  padding: 1rem 0 1rem 0.5rem;
  display: block;
  color: #333;
  font-weight: bold;
  font-size: 1.1rem;
  text-decoration: none;
}

/* PCレイアウトでは画像メニュー表示、テキストメニュー非表示 */
@media (min-width: 1085px) {
  .nav-list.desktop-only {
    display: flex;
    margin-block-start: 0;
    margin-block-end: 0;
    width: 100%;
  }

  .nav-list.mobile-only {
    display: none;
  }

  .main-nav .nav-list li {
    display: inline-block;
    width: 180px;
    text-align: center;
    display: flex;
    align-items: center;

    a {
      text-decoration: none;
      font-weight: 300;
    }
  }

  .main-nav .nav-list li:nth-child(1) a,
  .main-nav .nav-list li:nth-child(2) a {
    letter-spacing: 0.3rem;
    text-align: center;
    display: inline-block;
    width: 100%;
    padding: 0.3rem;
    height: auto;
  }

  .main-nav .nav-list li:last-of-type a {
    text-align: center;
    display: inline-block;
    width: 100%;
    padding: 0.3rem;
    height: auto;
  }
}

/* ハンバーガーアイコンのスタイル */
/* ボタンの基本スタイル */
.menu-toggle {
  position: relative;
  width: 48px;
  height: 48px;
  background-color: var(--brand-color);
  border-radius: 0%;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1001;
  margin-right: 15px;
}

.menu-toggle .bar {
  position: absolute;
  left: 8px;
  right: 8px;
  height: 3px;
  background-color: #fff;
  transition: transform 0.3s ease, opacity 0.3s ease;
  border-radius: 2px;
}

.menu-toggle .bar1 {
  top: 12px;
}

.menu-toggle .bar2 {
  top: 50%;
  transform: translateY(-50%);
}

.menu-toggle .bar3 {
  bottom: 12px;
}

.menu-toggle[aria-expanded="true"] .bar1 {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .bar2 {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .bar3 {
  top: 50%;
  bottom: auto;
  transform: translateY(-50%) rotate(-45deg);
}

@media (max-width: 768px) {
  .menu-toggle {
    margin-right: 0;
  }
}

/* モバイル表示デフォルト：ナビゲーションと電話情報の初期状態 */
.main-nav {
  display: none;
  /* モバイルではメニュー非表示（ハンバーガーで開閉） */
}

.mobile-only {
  display: block;
  /* モバイル専用要素は表示 */
}

.desktop-only {
  display: none;
  /* デスクトップ専用要素は非表示 */
}

/* ハンバーガーメニュー展開時のナビゲーション（高さを可変にして表示） */
.main-nav.open {
  display: block;
}

.main-nav.open .nav-list {
  max-height: 500px;
  margin-block-start: 0;
  transition: max-height 0.3s ease-in-out;
  margin-block-end: 0;
}

.main-nav.open .nav-list li {
  display: block;
}

.nav-list.desktop-only.container li a {
  display: block;
  transition: background-color 0.3s ease;
}

/* ホバー時の背景色 */
.nav-list.desktop-only.container li a:hover {
  background-color: #004097;
}

/*ーーーーーーーーーーーーーーーーーーーーー
Fiest View(ファーストビュー)
 ーーーーーーーーーーーーーーーーーーーーー*/

/* ヒーローセクション（メインビジュアル） */
.hero-img {
  width: 100%;
}

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

/*ーーーーーーーーーーーーーーーーーーーーー
見出し（Hタグ）
 ーーーーーーーーーーーーーーーーーーーーー*/
/*concept*/

#concept h2 {
  color: var(--brand-color);
  font-size: clamp(20px, 6vw, 3.125rem);
  text-align: center;
  margin-top: 2rem;
}

#concept h2::after {
  content: "［ コンセプト ］";
  display: block;
  font-size: 1rem;
  color: var(--brand-color);
  letter-spacing: 0.1em;
  font-weight: normal;
  letter-spacing: 0.25rem;
}

/*business*/
#business h2 {
  color: var(--brand-color);
  font-size: clamp(20px, 6vw, 3.125rem);
  text-align: center;
}

#business h2::after {
  content: "［ 事業内容 ］";
  display: block;
  font-size: 1rem;
  color: var(--brand-color);
  letter-spacing: 0.1em;
  font-weight: normal;
  letter-spacing: 0.25rem;
}

#company-profile h2 {
  color: var(--brand-color);
  font-size: clamp(20px, 6vw, 3.125rem);
  text-align: center;
  margin-block-start: 0 !important;
  margin-block-end: 0 !important;
  padding-bottom: 1.2rem;
}

#company-profile h2::after {
  content: "［ 会社概要 ］";
  display: block;
  font-size: 1rem;
  color: var(--brand-color);
  letter-spacing: 0.1em;
  font-weight: normal;
  letter-spacing: 0.25rem;
}

/*ーーーーーーーーーーーーーーーーーーーーー
Concept（コンセプト）
 ーーーーーーーーーーーーーーーーーーーーー*/

.concept-copy {
  text-align: center;
  font-size: clamp(20px, 4vw, 2.5rem);
  color: var(--brand-color);
  font-family: "Noto Serif", serif;
  font-weight: bold;
  letter-spacing: 2px;
  word-break: keep-all;
}

.concept-text {
  text-align: center;
  font-size: clamp(16px, 2vw, 1.25rem);
  font-family: "Noto Serif", serif;
  word-break: keep-all;
  font-weight: 600;
}

.bg-yellow {
  color: var(--brand-color);
  background-image: url(images/x2/bg-yellow@2x.png);
  background-size: contain;
  padding: 0.5rem;
  font-weight: bold;
  font-size: clamp(20px, 2vw, 1.5625rem);
  margin-top: -8px;
  margin-bottom: -8px;
  word-break: keep-all;
}

.separator {
  margin-top: 4.2rem;
  display: block;
}

@media (max-width: 768px) {
  .concept-text {
    line-height: 1.8rem;
  }

  .bg-yellow {
    line-height: 2rem;
  }
}

/*ーーーーーーーーーーーーーーーーーーーーー
Business
 ーーーーーーーーーーーーーーーーーーーーー*/

.business-copy {
  font-size: clamp(20px, 4vw, 1.875rem);
  color: var(--brand-color);
  font-weight: bold;
  font-family: "Noto Serif", serif;
  text-align: center;
  margin-top: -10px;
  margin-bottom: 2.5rem;
  word-break: keep-all;
}

.step-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 69px;
  align-items: stretch;
  margin-bottom: 4rem;
}

.step {
  flex: 1 1 calc((100% - 140px) / 3);
  box-sizing: border-box;
  position: relative;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
}

.step-num {
  width: 57px;
  height: auto;
  position: absolute;
  top: -10px;
  left: -10px;
}

.step img {
  display: block;
  width: 100%;
  height: auto;
}

.step-text h3 {
  background: linear-gradient(to right, #009fe8, #004097);
  color: #fff;
  padding: 0.2rem 1rem;
  position: relative;
  display: block;
  font-size: clamp(1rem, 3vw, 1.5625rem);
  font-weight: bold;
  font-family: "Noto Serif", serif;
  margin-bottom: 1em;
  margin: 0.5rem 0;
  text-align: center;
  letter-spacing: 0.3rem;
}

/* 下向きの矢印 */
.step-text h3::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -10px;
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid #0171c0;
}

.step-text h4 {
  text-align: center;
  font-size: clamp(1.2rem, 1.5vw, 1.25rem);
  font-family: "Noto Serif", serif;
  color: var(--brand-color);
  font-weight: 600;
  margin-bottom: 1rem;
}

.step:last-of-type .step-text h4 {
  margin-top: 0.2rem;
}

.step-text {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.step-text p {
  margin-top: auto;
}

@media (max-width: 1199px) {
  .step-container {
    justify-content: flex-start;
    gap: 80px;
  }

  .step {
    flex: 0 0 calc((100% - 80px) / 2);
  }

  .step:last-of-type .step-text h4 {
    word-break: auto-phrase;
  }
}

@media (max-width: 768px) {
  .step-container {
    gap: 40px;
  }

  .separator {
    margin-top: 4rem;
    margin-bottom: 4rem;
  }
}

/*ーーーーーーーーーーーーーーーーーーーーー
会社概要（コンセプト）
 ーーーーーーーーーーーーーーーーーーーーー*/

.company-profile {
  font-family: "Noto Sans JP", sans-serif;
  background-color: var(--light-color);
  padding: 1.2rem 15px 2rem;
  position: relative;
  background-image: url("images/x2/bg-blue.png"), url("images/x2/bg-blue.png");
  background-repeat: repeat-y;
  background-position: left top, right top;
  background-size: clamp(80px, 18vw, 350px);
}

.border-left {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
}

.border-right {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 1;
}

.company-profile tr {
  border-top: 1px solid #000;
}

.company-profile tr:last-child {
  border-bottom: 1px solid #000;
}

.company-profile table {
  width: 100%;
  border-collapse: collapse;
  max-width: 920px;
  margin: 12px auto;
  z-index: 2;
  position: relative;
}

.company-profile th,
.company-profile td {
  text-align: left;
  padding: 9px 10px 10px 16px;
}

.company-profile th {
  font-weight: 400;
  background-color: #d9d9d9;
  width: 23%;
}

.company-profile td {
  font-weight: 400;
  background-color: #fff;
}

@media (max-width: 768px) {

  .company-profile table,
  .company-profile tbody,
  .company-profile tr,
  .company-profile th,
  .company-profile td {
    display: block;
    width: auto;
  }

  .company-profile {
    background-image: none;
  }
}

/*ーーーーーーーーーーーーーーーーーーーーー
footer
 ーーーーーーーーーーーーーーーーーーーーー*/

.site-footer {
  height: 100%;
  background: linear-gradient(to right, #009fe8, #004097);
  color: #fff;
  padding: 10px 15px;
}

.footer-inner {
  display: flex;
  gap: 5px;
  justify-content: space-around;
  align-items: center;
}

.footer-logo {
  font-family: "Noto Serif", serif;
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
}

.footer-logo_name {
  letter-spacing: -1.5px;
}

.footer-logo_tel {
  letter-spacing: -1.2px;
}

.footer-info {
  font-family: "Noto Serif", serif;
  font-size: clamp(1rem, 2vw, 1.21375rem);
}

.footer-contact img {
  width: 280px;
}

.footer-caution {
  font-size: clamp(1.3rem, 2.7vw, 1.875rem);
  letter-spacing: -1px;
  font-family: "Noto Serif", serif;
  margin: 0;
}

/*ーーーーーーーーーーーーーーーーーーーーー
レスポンシブ調整
 ーーーーーーーーーーーーーーーーーーーーー*/
.footer_br {
  display: none;
}

@media (max-width: 1400px) {
  .step-text p {
    margin-top: 0;
  }

  .footer_br {
    display: block;
  }

  .footer-inner {
    justify-content: center;
    width: 100%;
    margin-right: 0;
    margin-left: 0;
    max-width: 100%;
    padding: 0;
    gap: 20px;
  }

  .footer-info_open.tsume {
    margin-left: -10px;
  }

  .footer-leader {
    display: none;
  }
}

@media (min-width: 1085px) {
  .site-header {
    align-items: center;
  }

  .main-nav {
    margin: 0 auto;
    display: flex;
    justify-content: center;
    background: linear-gradient(to right, #009fe8, #004097);
    margin: 0 calc(50% - 50vw);
    width: 100vw;
  }

  .nav-list.desktop-only li a {
    color: #fff;
    font-size: 1.25rem;
  }

  .nav-list li.mobile-only {
    display: none;
    /* モバイル用の電話番号項目は非表示 */
  }

  .mobile-only {
    display: none;
  }

  .desktop-only {
    display: block;
  }

  .menu-toggle {
    display: none;
    /* PCではハンバーガーアイコン非表示 */
  }
}

@media screen and (max-width: 768px) {
  .footer-inner {
    display: flex;
    flex-direction: column;
    padding: 0;
    gap: 0;
  }

  .footer-contact img {
    width: 450px;
    margin-left: 0;
    margin-top: 1.5rem;
  }
}

/* レスポンシブ対応: タブレット (768px 以下) */
@media (max-width: 768px) {
  .step {
    flex: 1 1 calc((100% - 36px) / 2);
    width: 50%;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .company-profile table {
    padding: 0;
  }

  .footer-caution {
    font-size: clamp(1rem, 2.7vw, 1.875rem);
    letter-spacing: -1px;
    font-family: "Noto Serif", serif;
    margin: 10px 0;
    text-align: center;
    line-height: 2.5rem;
    font-weight: 600;
  }

  .dotted-underline {
    position: relative;
    display: block;
  }

  .dotted-underline::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 6px;
    background-image: radial-gradient(circle, #fff 2px, transparent 2px);
    background-size: 12px 6px;
    background-repeat: repeat-x;
  }

}

/* レスポンシブ対応: スマホ (480px 以下) */
@media (max-width: 480px) {
  .step {
    flex: 1 1 100%;
    width: 100%;
  }

  .hero h1 {
    font-size: 2rem;
  }
}

@media screen and (min-width: 768px) {
  a[href^="tel:"] {
    pointer-events: none;
    cursor: default;
    text-decoration: none;
    color: inherit;
  }
}