/* ==================================================
   common2.css - 完全統合＆レスポンシブ復元版
   (header.cssの数値をヘッダーに適用し、コンテンツ数値を維持)
   ================================================== */

.site-header,
.site-header *,
.site-header *::before,
.site-header *::after {
	box-sizing: border-box;
}

body {
	margin: 0;
  letter-spacing: .1em;
  font-family: Meiryo, "Meiryo UI", "游ゴシック Medium", "Yu Gothic Medium", "游ゴシック体", "Yu Gothic", "Hiragino Sans", "Hiragino Kaku Gothic ProN", sans-serif;
}

/* --------------------------------------------------
   1. ヘッダー基本スタイル (.site-header)
      ★ header.css の数値・スタイルを厳密適用 ★
   -------------------------------------------------- */
.site-header,
.site-header *,
.site-header *::before,
.site-header *::after {
  box-sizing: border-box;
}

.site-header {
  width: 100%;
  height: 117px;
  background: #fff;
  font-family: 'Noto Sans JP', sans-serif;
}

.site-header__inner {
  display: flex !important;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  height: 117px;
  padding: 0 0 0 40px; /* ← 右側のパディングを0にする（上・右・下・左） */
  gap: 32px;
}

/* --------------------------------------------------
   PCサイズのヘッダーロゴ・社名SVGの修正
   -------------------------------------------------- */
.site-header__logo-link {
  display: flex !important;
  align-items: center;
  flex: 0 0 auto;
  width: 420px !important; /* ← ここで親の幅をしっかり確保して縮小を防ぐ */
  height: 117px;
  text-decoration: none;
  gap: 20px;
  padding-left: 0;
}

/* メインロゴ（TOSHINマーク） */
.site-header__logo--main {
  display: block !important;
  width: 140px !important;  /* ← 幅を固定して潰れないようにする */
  height: auto !important;
  max-height: 72px;
  object-fit: contain;
  flex-shrink: 0;
}

/* サブロゴ（株式会社トーシン SVG） */
.site-header__logo--sub {
  display: block !important;
  width: 300px !important;  /* ← 社名SVGも幅を固定して元の大きさに戻す */
  height: auto !important;
  max-height: 50px;
  object-fit: contain;
  flex-shrink: 0;
}

/* メニュー（「選ばれる理由」などの文字を確実に表示） */
.site-header__nav {
  display: flex !important;
  align-items: center;
  gap: 45px;
  margin-left: auto;
  transform: none;
  margin-right: 40px;
}

.site-header__nav-link {
  display: block !important;
  flex: 0 0 auto;
  color: #0b192c !important;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 19px;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.5;
  text-decoration: none !important;
  white-space: nowrap;
}

/* 右側アクションボタン群（電話・問合せ） */
.site-header__actions {
  display: flex !important;
  align-items: center;
  gap: 30px;
  flex: 0 0 auto;
  height: 100%; /* ← ヘッダーの高さ(117px)いっぱいに広げる */
}

.site-header__tel {
  display: flex !important;
  align-items: center;
  gap: 17px;
  width: auto;
  height: auto;
  padding: 8px 14px;
  color: #0b192c;
  margin-right: 0;
}

.site-header__tel-icon {
  flex: 0 0 32px;
  width: 45px;
  height: 45px;
  object-fit: contain;
  object-position: center;
}

.site-header__tel-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.site-header__tel-number,
.site-header__tel-hours {
  color: #0b192c !important;
  text-decoration: none !important;
  white-space: nowrap;
}

.site-header__tel-number {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.site-header__tel-hours {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-top: 5px;
}

/* お問い合わせボタン */
.site-header__cta {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 13px;
  width: auto;
  height: 100%; /* ← 高さを親いっぱいに（上下の空白をなくす） */
  padding: 0 40px; /* ← 左右のパディングで調整 */
  border-radius: 0;
  color: #fff !important;
  text-decoration: none !important;
}

.site-header__cta--mail {
  background: #f59a00 !important;
}

.site-header__cta--line {
  background: #00b900 !important;
}

.site-header__cta-icon {
  display: block;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.site-header__cta-label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  color: #fff !important;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.25;
  white-space: nowrap;
  letter-spacing: 0.06em;
}

.site-header__cta-label small {
  display: block;
  color: #fff !important;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
}

.site-header__hamburger {
  display: none;
}


/* ==================================================
   スマホ用スタイル（767px以下）
   ================================================== */
@media screen and (max-width: 767px) {
.site-header {
    height: 70px;
  }

  .site-header__inner {
    display: block !important;
    height: 70px;
    padding: 0;
    gap: 0;
    position: relative;
  }

  /* ロゴリンクのスマホ時調整（左から10px、上下中央配置） */
  .site-header__logo-link {
    display: flex !important;
    align-items: center;
    width: 250px !important;
    height: auto !important;
    flex: 0 1 auto;
    text-decoration: none;
    /* gap: 0; */
    padding-left: 0;
    position: absolute;
    left: 10px;                  /* ご要望の「左から10px」 */
    top: 50%;                    /* 上下中央に配置 */
    transform: translateY(-50%); /* 自身の高さの半分だけ上に戻して正確に中央揃え */
  }

  /* メインロゴのスマホ時サイズ調整 */
  .site-header__logo--main {
    width: auto !important;
    max-height: 40px !important;
    flex-shrink: 0;
  }

  /* サブロゴのスマホ時サイズ調整 */
  .site-header__logo--sub {
    width: auto !important;
    max-height: 20px !important;
    flex-shrink: 0;
  }

  /* PC用のナビやアクションボタン群を非表示にする */
  .site-header__nav,
  .site-header__actions {
    display: none !important;
  }

  /* バーガーメニューボタンの表示 */
  .site-header__hamburger {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    z-index: 99999999;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
  }

  .site-header__hamburger span {
    display: block;
    width: 28px;
    height: 2px;
    background: #0b192c;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  /* メニュー展開時 (.is-open が付いたとき) */
  .site-header__nav.is-open {
    display: flex !important;
    position: fixed;
    top: 70px;
    left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    width: 100%;
    height: calc(100vh - 70px);
    padding: 40px 20px;
    background: #fff;
    z-index: 190;
    overflow-y: auto;
  }

  .site-header__nav.is-open .site-header__nav-link {
    padding: 12px 0;
    font-size: 18px;
  }

  /* バツ印への変形アニメーション */
  .site-header__hamburger[aria-expanded='true'] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .site-header__hamburger[aria-expanded='true'] span:nth-child(2) {
    opacity: 0;
  }

  .site-header__hamburger[aria-expanded='true'] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

/* --------------------------------------------------
   2. ボディ基本設定
   -------------------------------------------------- */
body {
  margin: 0;
}

/* --------------------------------------------------
   3. お問い合わせCTAセクション (.cta-contact)
      ★ common2.css の数値をそのまま維持 ★
   -------------------------------------------------- */
.cta-contact *,
.cta-contact *::before,
.cta-contact *::after {
  box-sizing: border-box;
}

.cta-contact__card {
  position: relative;
  max-width: 960px;
  margin: 40px auto;
  padding: 48px 40px;
  overflow: hidden;
  border-radius: 24px;
  background: #f59a00 !important;
  color: #0b192c !important;
}

.cta-contact__heading {
  position: relative;
  z-index: 0;
  text-align: center;
}

.cta-contact__heading-bg {
  position: absolute;
  z-index: -1;
  top: -24px;
  right: -12px;
  color: #ffb52a !important;
  font-size: 100px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 15px;
  opacity: 0.4;
  pointer-events: none;
}

.cta-contact__title {
  margin: 0;
  color: #0b192c !important;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0;
}

.cta-contact__dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 6px;
}

.cta-contact__dots i {
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #0b192c !important;
}

.cta-contact__lead {
  margin: 40px auto 38px;
  text-align: center;
}

.cta-contact__lead p {
  margin: 0;
  color: #0b192c !important;
}

.cta-contact__lead-main {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.7;
}

.cta-contact__lead-note {
  margin-top: 2px !important;
  font-size: 18px;
  line-height: 1.7;
}

.cta-contact__methods {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.cta-contact__web {
  padding-left: 40px;
  border-left: 1px solid rgba(11, 25, 44, 0.3);
}

.cta-contact__label,
.cta-contact__hours,
.cta-contact__web-note {
  display: block;
  color: #0b192c !important;
  font-size: 16px;
  line-height: 1.5;
}

.cta-contact__label {
  opacity: 0.75;
}

.cta-contact__phone {
  display: block;
  margin-top: 10px;
  color: #000 !important;
  font-size: 48px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0;
  text-decoration: none !important;
  white-space: nowrap;
}

.cta-contact__hours {
  margin-top: 10px;
}

.cta-contact__buttons {
  display: flex;
  gap: 16px;
  margin-top: 8px;
}

.cta-contact__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 320px;
  min-height: 75px;
  padding: 12px 16px;
  border-radius: 8px;
  color: #fff !important;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none !important;
  white-space: nowrap;
}

.cta-contact__button--mail {
  background: #0b192c !important;
}

.cta-contact__button--line {
  background: #00b900 !important;
}

.cta-contact__icon {
  width: 26px;
  height: 26px;
  object-fit: contain;
  flex-shrink: 0;
}

.cta-contact__web-note {
  margin-top: 8px;
}

/* --------------------------------------------------
   4. コンテンツレイアウト (.company-layout)
   -------------------------------------------------- */
.company-layout { 
  display: grid; 
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); 
  align-items: center; 
  gap: 60px; 
}

.company-layout__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#company-text {
  font-size: 30px;
  line-height: 1.8;
  margin-top: 20px;
  margin-bottom: 24px;
  color: #333;
}

/* --------------------------------------------------
   5. フッターセクション (.site-footer)
      ★ .site-footer__inner を含み完全維持 ★
   -------------------------------------------------- */
.site-footer,
.site-footer *,
.site-footer *::before,
.site-footer *::after {
  box-sizing: border-box;
}

.site-footer {
  padding: 40px;
  background: #eaeaea !important;
  color: #0b192c !important;
  font-family: 'Noto Sans JP', sans-serif;
}

.site-footer__inner {
  width: 100%;
}

.site-footer__main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
}

.site-footer__company {
  display: flex;
  align-items: stretch;
  gap: 80px;
}

.site-footer__logo-link {
  display: flex;
  align-items: center;
  width: 200px;
  flex-shrink: 0;
}

.site-footer__logo {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  margin-right: 0 !important;
}

.site-footer__address {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin: 0 !important;
  color: #0b192c !important;
  font-style: normal;
  line-height: 1.5;
  text-align: left !important;
  white-space: nowrap;
}

.site-footer__address p {
  margin: 0;
  font-size: 16px;  
}

.site-footer__information {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-right: 0 !important;
}

.site-footer__nav {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 0;
}

.site-footer__nav-link {
  color: #0b192c !important;
  font-size: 18px;
  font-weight: 500;
  text-decoration: none !important;
  white-space: nowrap;
}

.site-footer__copyright {
  margin: 60px 0 0;
  color: #0b192c !important;
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
}

/* ==================================================
   6. レスポンシブ (メディアクエリ)
   ================================================== */

/* PC（標準）：992px 以上 */
@media screen and (min-width: 992px) {
  .cta-contact__card {
    max-width: 960px;
    padding: 48px 40px;
  }

  .cta-contact__methods {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    padding: 0 30px;
  }

  .cta-contact__web {
    padding-left: 40px;
    border-left: 1px solid rgba(11, 25, 44, 0.3);
    border-top: 0;
  }

  .cta-contact__phone {
    font-size: 40px;
  }

  .company-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .site-footer__main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
  }

  .site-footer__logo-link {
    width: 220px;
  }

  .site-footer__logo {
    margin-right: 0;
  }

  .site-footer__information {
    align-items: flex-end;
    margin-right: 0 !important;
  }

  .site-footer__address {
    padding-top: 10px;
    font-size: 20px;
    text-align: left !important;
  }

  .site-footer__nav-link {
    font-size: 16px;
    font-weight: 500;
  }
}

/* 768px 〜 991px (ヘッダーはheader.css数値を適用) */
@media screen and (min-width: 768px) and (max-width: 991px) {
  .site-header {
    height: 117px;
  }

  .site-header__inner {
    height: 117px;
    padding: 0 20px;
    gap: 14px;
  }

  .site-header__logo-link {
    width: 180px;
    height: 117px;
  }

  .site-header__logo {
    max-height: 52px;
  }

  .site-header__nav {
    display: flex !important;
    align-items: center;
    gap: 16px;
    margin-left: auto;
  }

  .site-header__nav-link {
    font-size: 15px;
  }

  .site-header__actions {
    display: flex !important;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
  }

  .site-header__tel,
  .site-header__cta {
    width: auto;
    height: 56px;
    padding: 6px 10px;
  }

  .site-header__tel-number {
    font-size: 14px;
  }

  .site-header__tel-hours {
    font-size: 10px;
  }

  .site-header__cta-label {
    font-size: 14px;
  }

  .site-header__cta-label small {
    font-size: 10px;
  }

  .site-header__hamburger {
    display: none !important;
  }

  /* コンテンツレスポンシブ */
  .cta-contact__card {
    padding: 40px 28px;
  }

  .cta-contact__phone {
    font-size: 34px;
  }

  .cta-contact__button {
    width: 100%;
  }

  .company-layout {
    grid-template-columns: 1fr;
  }

  #company-btn {
    align-self: center;
  }

  .site-footer__main {
    grid-template-columns: 180px 1fr;
    gap: 16px;
  }

  .site-footer__logo-link {
    width: 180px;
  }

  .site-footer__logo {
    margin-right: 0;
  }

  .site-footer__nav-link {
    font-size: 18px;
  }

  .site-footer__address {
    font-size: 16px;
  }
}

/* 767px以下 (スマホ・タブレット共通ヘッダー) */
@media screen and (max-width: 767px) {

  /* PC用のナビやアクションを非表示にする */
  .site-header__nav,
  .site-header__actions {
    display: none !important;
  }

  /* ハンバーガーボタンの表示設定 */
  .site-header__hamburger {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    z-index: 99999999;
    position: absolute; 
  }

  .site-header__hamburger span {
    display: block;
    width: 28px;
    height: 2px;
    background: #0b192c;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  /* メニューが開いたとき */
  .site-header__nav.is-open {
    display: flex !important;
    position: fixed;
    top: 70px; /* ヘッダーの高さ(70px)に合わせる */
    left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    width: 100%;
    height: calc(100vh - 70px);
    padding: 40px 20px;
    background: #fff;
    z-index: 190;
    overflow-y: auto; /* メニューが高い場合にスクロールできるようにする */
  }

  .site-header__nav.is-open .site-header__nav-link {
    padding: 12px 0;
    font-size: 18px;
  }

  /* バツ印への変形アニメーション */
  .site-header__hamburger[aria-expanded='true'] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .site-header__hamburger[aria-expanded='true'] span:nth-child(2) {
    opacity: 0;
  }

  .site-header__hamburger[aria-expanded='true'] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}
/* タブレット (TB)：576px 〜 767px */
@media screen and (min-width: 576px) and (max-width: 767px) {
  .container {
    width: 100%;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
  }

  .company-layout {
    grid-template-columns: 1fr;
  }

  .cta-contact {
    padding: 24px 12px;
  }

  .cta-contact__card {
    padding: 36px 24px;
    border-radius: 18px;
  }

  .cta-contact__heading-bg {
    top: -16px;
    right: -8px;
    transform: none;
    font-size: 65px;
    letter-spacing: 8px;
    padding: 0;
  }

  .cta-contact__methods {
    grid-template-columns: 1fr;
    row-gap: 28px;
  }

  .cta-contact__web {
    padding: 28px 0 0;
    border-top: 1px solid rgba(11, 25, 44, 0.3);
    border-left: 0;
  }

  .cta-contact__buttons {
    flex-direction: column;
  }

  .cta-contact__button {
    width: 100%;
  }

  .cta-contact__phone {
    font-size: clamp(32px, 7vw, 40px);
  }

  .site-footer__main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    width: 100%;
  }

  .site-footer__company {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
  }

  .site-footer__logo-link {
    display: flex;
    justify-content: center;
    width: 180px;
    height: auto;
  }

  .site-footer__address {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: #0b192c !important;
    font-style: normal;
    line-height: 1.6;
    text-align: center !important;
  }

  .site-footer__address p {
    margin: 0;
    font-size: 14px;
  }

  .site-footer__information {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-right: 0 !important;
  }

  .site-footer__nav {
    display: flex;
    flex-direction: row !important;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 0;
    padding-left: 0 !important;
    list-style: none;
  }

  .site-footer__nav-link {
    font-size: 18px;
    white-space: nowrap;
  }

  .site-footer__copyright {
    width: 100%;
    margin: 32px 0 10px;
    text-align: center;
    font-size: 12px;
  }
}

/* スマホ (SP)：575px 以下 */
@media screen and (max-width: 575px) {
  .container {
    width: 100%;
    padding-left: 20px;
    padding-right: 20px;
  }

  .cta-contact {
    padding: 24px 12px;
  }

  .cta-contact__card {
    padding: 36px 20px;
    border-radius: 18px;
  }

  .cta-contact__heading-bg {
    top: -12px;
    right: -4px;
    transform: none;
    font-size: 45px;
    letter-spacing: 5px;
    padding: 0;
  }

  .cta-contact__lead {
    margin: 32px auto;
  }

  .cta-contact__lead-main {
    text-align: left;
  }

  .cta-contact__methods {
    grid-template-columns: 1fr;
    row-gap: 28px;
  }

  .cta-contact__web {
    padding: 28px 0 0;
    border-top: 1px solid rgba(11, 25, 44, 0.3);
    border-left: 0;
  }

  .cta-contact__buttons {
    flex-direction: column;
  }

  .cta-contact__button {
    width: 100%;
  }

  .cta-contact__phone {
    font-size: clamp(28px, 8vw, 36px);
  }

  .site-footer__main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    width: 100%;
  }

  .site-footer__company {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
  }

  .site-footer__logo-link {
    display: flex;
    justify-content: center;
    width: 150px;
    height: auto;
  }

  .site-footer__logo {
    margin-right: 0;
  }

  .site-footer__address {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: #0b192c !important;
    font-size: 10px;
    font-style: normal;
    line-height: 1.6;
    text-align: center !important;
  }

  .site-footer__address p {
    margin: 0;
    font-size: 14px;
  }

  .site-footer__information {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-right: 0 !important;
  }

  .site-footer__nav {
    display: flex;
    flex-direction: row !important;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px 20px;
    margin-bottom: 0;
    padding-left: 0 !important;
    list-style: none;
  }

  .site-footer__nav-link {
    font-size: 18px;
    white-space: nowrap;
  }

  .site-footer__copyright {
    width: 100%;
    margin: 28px 0 10px;
    text-align: center;
    font-size: 11px;
  }
}