/* ==========================================
   お問い合わせページ（一覧形式）専用スタイル
   ========================================== */

:root {
   --contact-blue: #186EA9;
   /* TOSCOメインブルー */
   --contact-dark: #0f2d4a;
   /* 濃いネイビー */
   --contact-bg: #f4f8fc;
   /* 背景色 */
   --contact-border: #e0e6ed;
   /* ボーダー色 */
   --contact-card-bg: #fff;
   /* カード背景 */
   --contact-text: #333;
}

/* --- セクション全体 --- */
.contact-list-section {
   padding: 6rem 0 8rem;
   background: var(--contact-bg);
   position: relative;
   overflow: hidden;
}

/* 導入テキスト */
.contact-intro {
   text-align: center;
   margin-bottom: 5rem;
   max-width: 800px;
   margin-left: auto;
   margin-right: auto;
}

.contact-intro-text {
   font-size: clamp(0.9rem, 1.2vw, 1rem);
   line-height: 2;
   color: #666;
}

/* --- カテゴリブロック --- */
.contact-category {
   margin-bottom: 6rem;
}

.contact-category-title {
   font-size: 1.5rem;
   font-weight: 700;
   color: var(--contact-blue);
   padding-left: 1rem;
   border-left: 6px solid var(--contact-blue);
   margin-bottom: 2.5rem;
   line-height: 1.4;
}

/* --- グリッドレイアウト --- */
.contact-grid {
   display: grid;
   /* PC: 3列 */
   grid-template-columns: repeat(3, 1fr);
   gap: 2rem;
}

/* カードデザイン */
.contact-card {
   background: var(--contact-card-bg);
   border-radius: 12px;
   box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
   overflow: hidden;
   /* テック・エッジ */
   clip-path: polygon(15px 0,
         100% 0,
         100% calc(100% - 15px),
         calc(100% - 15px) 100%,
         0 100%,
         0 15px);
   display: flex;
   flex-direction: column;
   height: 100%;
   border-top: 4px solid var(--contact-blue);
   /* transitionおよびhover時の動き（持ち上がり）は削除しました */
}

/* カードヘッダー */
.contact-card-header {
   padding: 1.5rem 1.5rem 1rem;
   border-bottom: 1px dashed var(--contact-border);
   display: flex;
   flex-direction: column;
   gap: 0.8rem;
   /* タイトルとバッジエリアの間隔 */
}

.contact-title {
   font-size: 1.1rem;
   font-weight: 700;
   color: var(--contact-text);
   margin-bottom: 0;
   line-height: 1.5;
}
#contact .contact-title{
   font-size: clamp(2rem, 3.5vw, 4rem);
   font-weight: 700;
   margin-bottom: 1rem;
   color: #fff;
}

/* バッジとMAPリンクを横並びにするラッパー */
.header-badges {
   display: flex;
   align-items: center;
   justify-content: flex-start;
   /* 左寄せ（ラベルの右隣） */
   gap: 15px;
   /* ラベルとリンクの間の余白 */
   width: 100%;
}

.contact-badge {
   display: inline-block;
   background: #eaf4fd;
   color: var(--contact-blue);
   font-size: 0.8rem;
   font-weight: 700;
   padding: 0.2rem 0.6rem;
   border-radius: 4px;
}

/* ヘッダー内のMAPリンク */
.link-map-header {
   font-size: 0.8rem;
   color: #888;
   text-decoration: none;
   font-weight: 700;
   display: flex;
   align-items: center;
   transition: color 0.3s ease;
}

.link-map-header:hover {
   color: var(--contact-blue);
   text-decoration: underline;
}

/* カードボディ */
.contact-card-body {
   padding: 1.5rem;
   flex: 1;
   display: flex;
   flex-direction: column;
}

.contact-person {
   font-size: 0.9rem;
   color: #555;
   margin-bottom: 0.8rem;
}

.contact-note {
   font-size: 0.8rem;
   color: #e65c00;
   /* 注意書き色 */
   margin-bottom: 0.8rem;
   line-height: 1.5;
}

/* 情報行（TEL/FAX） */
.contact-info-row {
   display: flex;
   align-items: center;
   gap: 1rem;
   margin-bottom: 0.5rem;
}

.info-label {
   font-size: 0.8rem;
   font-weight: 700;
   color: #888;
   width: 30px;
}

.info-value {
   font-size: 1.1rem;
   font-weight: 700;
   font-family: 'Roboto', sans-serif;
   color: var(--contact-text);
}

/* メールアクションボタン */
.btn-mail-action {
   margin-top: auto;
   /* 下に寄せる */
   display: flex;
   align-items: center;
   justify-content: center;
   gap: 0.5rem;
   background: linear-gradient(90deg, #186EA9 0%, #003366 100%);
   color: #fff;
   text-decoration: none;
   padding: 0.8rem;
   border-radius: 6px;
   font-weight: 700;
   font-size: 0.95rem;
   margin-bottom: 0;
   /* opacityのtransition削除（下線アニメーション優先） */
}

/* テキスト部分の下線アニメーション用設定 */
.btn-mail-action span {
   position: relative;
   display: inline-block;
}

/* 下線（疑似要素） */
.btn-mail-action span::after {
   content: '';
   position: absolute;
   bottom: -2px;
   /* テキストの少し下 */
   left: 0;
   width: 0;
   /* 初期状態は幅0 */
   height: 1px;
   /* 線の太さ */
   background-color: #fff;
   transition: width 0.3s ease;
}

/* ホバー時に下線を伸ばす */
.btn-mail-action:hover span::after {
   width: 100%;
}

.btn-mail-action svg {
   width: 20px;
   height: 20px;
}

/* 古いMAPリンク（削除または非表示） */
.link-map {
   display: none;
}

/* サポート拠点リスト */
.support-area {
   margin-bottom: 1.5rem;
}

.support-label {
   display: block;
   font-size: 0.85rem;
   font-weight: 700;
   color: #666;
   margin-bottom: 0.5rem;
   border-bottom: 1px solid #eee;
   padding-bottom: 0.3rem;
}

.support-list {
   list-style: none;
   padding: 0;
   margin: 0;
   display: flex;
   flex-wrap: wrap;
   gap: 0.5rem 1rem;
}

.support-list li {
   font-size: 0.9rem;
   color: #444;
   position: relative;
   padding-left: 0.8rem;
}

.support-list li::before {
   content: '';
   position: absolute;
   left: 0;
   top: 50%;
   transform: translateY(-50%);
   width: 4px;
   height: 4px;
   background: var(--contact-blue);
   border-radius: 50%;
}

.contact-note-small {
   font-size: 0.75rem;
   color: #888;
   margin-top: 0.5rem;
   text-align: center;
}

/* ==========================================
   人材採用統合カード専用スタイル
   ========================================== */
.contact-card-recruit .header-badges {
   flex-wrap: wrap;
   gap: 8px;
}

.recruit-block {
   padding: 1rem 0;
   border-bottom: 1px dashed var(--contact-border);
}

.recruit-block:last-of-type {
   border-bottom: none;
   margin-bottom: 1rem;
}

.recruit-block-header {
   display: flex;
   align-items: center;
   gap: 12px;
   margin-bottom: 0.5rem;
}

.recruit-label {
   display: inline-block;
   background: var(--contact-blue);
   color: #fff;
   font-size: 0.8rem;
   font-weight: 700;
   padding: 0.25rem 0.75rem;
   border-radius: 4px;
}

.recruit-block .contact-person {
   margin-bottom: 0.5rem;
}

.recruit-block .contact-info-row {
   margin-bottom: 0;
}

/* ==========================================
   ビジネスパートナー統合カード専用スタイル
   ========================================== */
.contact-card-partner .header-badges {
   flex-wrap: wrap;
   gap: 8px;
}

.partner-block {
   padding: 1rem 0;
   border-bottom: 1px dashed var(--contact-border);
   display: flex;
   flex-direction: column;
}

.partner-block:last-of-type {
   border-bottom: none;
}

.partner-block-header {
   display: flex;
   align-items: center;
   gap: 12px;
   margin-bottom: 0.5rem;
}

.partner-label {
   display: inline-block;
   background: var(--contact-blue);
   color: #fff;
   font-size: 0.8rem;
   font-weight: 700;
   padding: 0.25rem 0.75rem;
   border-radius: 4px;
}

.partner-block .contact-person {
   margin-bottom: 0.5rem;
}

.partner-block .contact-note {
   margin-bottom: 0.5rem;
}

.partner-block .contact-info-row {
   margin-bottom: 0.8rem;
}

/* パートナーブロック内のボタン調整 */
.partner-block .btn-mail-action {
   margin-top: auto;
   font-size: 0.85rem;
   padding: 0.6rem 0.8rem;
}

/* ==========================================
   レスポンシブ対応
   ========================================== */

/* --- PC表示時：人材採用カード横長レイアウト --- */
@media (min-width: 769px) {
   /* カードを3列分の幅に */
   .contact-card-recruit {
      grid-column: 1 / -1;
   }

   /* ボディ部分をグリッドレイアウトに */
   .contact-card-recruit .contact-card-body {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1.5rem;
   }

   /* 各拠点ブロックのスタイル調整 */
   .contact-card-recruit .recruit-block {
      padding: 0;
      border-bottom: none;
      border-right: 1px dashed var(--contact-border);
      padding-right: 1.5rem;
      margin-bottom: 0;
   }

   .contact-card-recruit .recruit-block:last-of-type {
      border-right: none;
      padding-right: 0;
   }

   /* メールボタンを全幅で下部に配置 */
   .contact-card-recruit .btn-mail-action {
      grid-column: 1 / -1;
      width: 30%;
      max-width: 500px;
      margin: 1rem auto 0;
   }

   /* --- ビジネスパートナーカード横長レイアウト --- */
   .contact-card-partner {
      grid-column: 1 / -1;
   }

   /* ボディ部分をグリッドレイアウトに */
   .contact-card-partner .contact-card-body {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1.5rem;
   }

   /* 各拠点ブロックのスタイル調整 */
   .contact-card-partner .partner-block {
      padding: 0;
      border-bottom: none;
      border-right: 1px dashed var(--contact-border);
      padding-right: 1.5rem;
      display: flex;
      flex-direction: column;
   }

   .contact-card-partner .partner-block:last-of-type {
      border-right: none;
      padding-right: 0;
   }

   /* 各拠点のボタンを下部に配置 */
   .contact-card-partner .partner-block .btn-mail-action {
      margin-top: auto;
   }
}

/* タブレット (〜1024px) */
@media (max-width: 1024px) {
   .contact-grid {
      grid-template-columns: repeat(2, 1fr);
      /* 2列 */
   }

   /* 統合カードは2列でも全幅 */
   .contact-card-recruit,
   .contact-card-partner {
      grid-column: 1 / -1;
   }
}

/* スマホ (〜768px) */
@media (max-width: 768px) {
   .contact-list-section {
      padding: 4rem 0 6rem;
   }

   .contact-grid {
      grid-template-columns: 1fr;
      /* 1列 */
      gap: 1.5rem;
   }

   .contact-category {
      margin-bottom: 4rem;
   }

   .contact-card {
      min-height: auto;
   }

   .contact-title {
      font-size: 1.2rem;
   }

   .btn-mail-action {
      padding: 1rem;
   }

   /* スマホ時のパートナーブロック */
   .partner-block {
      padding: 1.5rem 0;
   }

   .partner-block:first-child {
      padding-top: 0;
   }

   .partner-block .btn-mail-action {
      font-size: 0.9rem;
      padding: 0.8rem;
   }
}
