/* =========================================================================
   全体
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&family=Noto+Serif+JP:wght@500;700;900&family=Inter:wght@400;700;900&display=swap');

/* サブファイルの読み込み (HTML側で一括管理するため) */
@import url('./components.css');
@import url('./slider.css');
@import url('./header.css');
@import url('./footer.css');

:root {
  --primary-color: #00408a; /* ヒーローと統一した深みのあるネイビー */
  --text-primary: #222222;
  --text-secondary: #555555;
  --bg-color: #ffffff;
  --surface-color: #f7f9fa;
  --border-color: #d1d5db;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  line-height: 1.5;
  color: #333;
  margin: 0;
}

@media (max-width: 768px) {
  html { font-size: 14px; }
}

body {
  /* iPhoneの最新標準フォントを優先指定 */
  font-family: 'Inter', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', Arial, sans-serif;
  color: var(--text-primary);
  background-color: var(--bg-color);
  line-height: 1.7;
  overflow-x: hidden; /* ★右側の隙間を防ぐために必須 */
  width: 100%;        /* ★右側の隙間を防ぐために必須 */
}

main {
  position: relative;
  max-width: none;
  z-index: 1;
  width: 100%;
  background: #fff;
}

section {
  margin: 0 auto;
  padding: 2rem 1.5rem;
  display: block; 
  width: 100%;
  max-width: 1200px;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  section { padding: 2rem 1rem; }
}

table {
  border-collapse: collapse;
  width: 100%;
  text-align: center;
  margin: 0;
  vertical-align: top;
  padding: 0 1rem;
}

th, td {
  border: 1px solid #9f9f9f;
  padding: 0.5rem;
  text-align: center;
}


/* レイアウト・コンテナ
----------------------------------------------------------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .container {
    padding: 0 12px;
  }
}


/* メッセージラベル内の装飾リセット */
.msg-label strong {
  background: none !important;
  color: inherit !important;
  padding: 0;
}


/* ページ共通
================================================================================ */

/* サブヒーローコンテナ 
----------------------------------------------------------- */
.sub-hero {
  position: relative;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, #00408a 0%, #002d61 100%);
  width: 100%;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0;
  overflow: hidden; /* ★背景英字のはみ出しによる横揺れを防止 */
}

.sub-hero-bg {
  display: none;
}

.sub-hero::before {
  content: attr(data-en);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Inter', sans-serif;
  font-size: clamp(3rem, 12vw, 9rem); /* 15%から12%へ微減 */
  font-weight: 900;
  color: rgba(255, 255, 255, 0.03);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 3;
  white-space: nowrap;
  pointer-events: none;
}

.sub-hero-content {
  position: relative;
  z-index: 10;
  color: #fff;
  padding: 0 1.5rem;
}

.sub-hero h1 {
  font-family: 'Noto Serif JP', serif;
  font-size: 2.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  margin: 0;
  line-height: 1.2;
  text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.sub-hero-subtitle {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  margin-top: 1.2rem;
  opacity: 0.7;
  color: #fff;
  position: relative;
}

.sub-hero-subtitle::before {
  content: '';
  display: block;
  width: 30px;
  height: 2px;
  background: #fff;
  margin: 0 auto 0.8rem;
  opacity: 0.6;
}

/* サブヒーロー用パンくずリスト */
.sub-hero-breadcrumb {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
  display: flex;
  justify-content: center;
  gap: 1rem;
  font-size: 0.85rem;
  opacity: 0.8;
}

.sub-hero-breadcrumb li {
  display: flex;
  align-items: center;
}

.sub-hero-breadcrumb li:not(:last-child)::after {
  content: '>';
  margin-left: 1rem;
  font-size: 0.7rem;
  opacity: 0.5;
}

.sub-hero-breadcrumb a {
  color: #fff;
  text-decoration: none;
  transition: opacity 0.3s;
}

.sub-hero-breadcrumb a:hover {
  opacity: 0.6;
}

@media (max-width: 768px) {
  .sub-hero {
    height: 160px;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
  .sub-hero h1 {
    font-size: 1.6rem;
    letter-spacing: 0.15em;
  }
  .sub-hero-subtitle {
    font-size: 0.65rem;
    letter-spacing: 0.3em;
    margin-top: 0.8rem;
  }
}

.sub-hero-breadcrumb {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 0;
  padding: 0;
  margin-top: 1.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

.sub-hero-breadcrumb li {
  display: flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.6);
}

.sub-hero-breadcrumb li a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s;
}

.sub-hero-breadcrumb li a:hover {
  color: rgba(255, 255, 255, 1);
}

.sub-hero-breadcrumb li + li::before {
  content: '>';
  margin: 0 0.6rem;
  color: rgba(255, 255, 255, 0.35);
}

@media (max-width: 768px) {
  .sub-hero-breadcrumb {
    font-size: 0.65rem;
    margin-top: 1rem;
  }
}

/* 規約・約款など読み物向けの本文
----------------------------------------------------------- */
.agreement-document .agreement-lead {
  margin-bottom: 1.5rem;
  line-height: 1.75;
  color: var(--text-secondary);
}

.agreement-document h2 {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 2em 0 1em;
  padding-bottom: 0.4em;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-primary);
}

.agreement-document p {
  line-height: 1.75;
  margin-bottom: 1em;
  color: var(--text-primary);
}

.agreement-document .grid-row {
  margin-bottom: 1em;
  line-height: 1.75;
}

.agreement-document .agreement-meta {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 0;
}

/*  ヘッダーホルダー
----------------------------------------------------------- */
#header-placeholder {
  height: 80px;   /* navと同じ高さにする */
}

@media (max-width: 768px) {

  #header-placeholder {
    height: 60px;   /* navと同じ高さにする */
  }

}

/* フッダーホルダー
----------------------------------------------------------- */
#footer-placeholder {
  width: 100%;
  margin-top: 6rem;
}

/* =========================================================================
   トップページ
   ========================================================================= */

/* トップページ専用アニメーション
----------------------------------------------------------- */
.fade-up {
  opacity: 0;
  transform: translateY(15px); /* 大げさな動きを排除 */
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}


/* スライダーセクション
======================================================================= */
.formal-hero {
  position: relative;
  height: 70vh; 
  display: flex;
  align-items: center;
  justify-content: flex-start; 
  background-color: #000;
  overflow: hidden; /* 全画面対応：base.css の section 1200px制限を強制解除 */
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.hero-bg-slider {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 0;
}
.hero-bg-slider div {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  animation: bg-fade 18s infinite ease-in-out;
}

.hero-bg-slider div:nth-child(1) {
  background-image: url('../image/common/slide1.jpg');
  animation-delay: 0s;
}
.hero-bg-slider div:nth-child(2) {
  background-image: url('../image/common/slide2.jpg');
  animation-delay: 6s;
}
.hero-bg-slider div:nth-child(3) {
  background-image: url('../image/common/slide3.jpg');
  animation-delay: 12s;
}

@keyframes bg-fade {
  0%   { opacity: 0; transform: scale(1.0); }
  10%  { opacity: 0.55; } /* 黒背景の上に乗るので、E.55で重厚感をキーチE*/
  33%  { opacity: 0.55; }
  43%  { opacity: 0; transform: scale(1.05); } 
  100% { opacity: 0; transform: scale(1.0); }
}
.formal-hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to right, rgba(0, 80, 170, 0.85) 0%, rgba(0, 0, 0, 0.3) 100%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 10;
  color: #fff;
  padding: 0 5rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}
.hero-content h1 {
  font-family: 'Noto Serif JP', 'Yu Mincho', 'Hiragino Mincho ProN', serif;
  font-size: 3.2rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  margin-bottom: 2rem;
  line-height: 1.5;
  text-shadow: 0 4px 15px rgba(0,0,0,0.6);
}
.hero-content p {
  font-family: 'Noto Serif JP', 'Yu Mincho', serif;
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  opacity: 0.95;
  text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}
@media (max-width: 768px) {
  .hero-content { padding: 0 2rem; }
  .hero-content h1 { font-size: 2rem; }
}

/* 各セクションのタイトル
======================================================================= */
.section-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  letter-spacing: 0.1em;
}
.section-subtitle {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 400;
  letter-spacing: 0.2em;
  margin-bottom: 4rem;
  text-transform: uppercase;
}
.section-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background-color: var(--primary-color);
  margin: 1rem auto 0;
}

/* ニュースセクション
======================================================================= */
.news-list {
  position:relative;
  background:#fff;
  padding: 2rem 1rem;
}

.formal-news {
  padding: 5rem 2rem;
  background: var(--bg-color);
  border-bottom: 1px solid var(--border-color);
}
.news-container {
  max-width: 1000px;
  margin: 0 auto;
}
.news-list {
  border-top: 1px solid var(--border-color);
}
.news-item {
  display: flex;
  align-items: center;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--border-color);
  /* ホバーで横に動く遊びを削除 */
}
.news-date {
  font-weight: 500;
  min-width: 120px;
  color: var(--text-primary);
}
.news-tag {
  display: inline-block;
  padding: 0.2rem 1rem;
  font-size: 0.8rem;
  font-weight: 700; 
  margin-right: 1.5rem;
  text-align: center;
  width: auto;             
  min-width: 5rem;       
  white-space: nowrap;     
}

.news-tag.is-info {
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
}
.news-tag.is-vacation {
  border: 1px solid #c62828;
  color: #c62828;
}
.news-tag.is-update {
  border: 1px solid #059669; 
  color: #059669;
}
.news-tag:not(.is-info):not(.is-vacation):not(.is-update) {
  border: 1px solid var(--text-secondary);
  color: var(--text-secondary);
}
.news-text {
  flex: 1;
}

@media (max-width: 768px) {
  .news-item {
    display: block; 
    padding: 1rem 0;
  }
  .news-date {
    display: inline-block;
    min-width: auto; 
    margin-right: 0.5rem; 
    margin-bottom: 0.3rem;
  }
  .news-tag {
    display: inline-block;
    margin-right: 0;
    margin-bottom: 0.3rem;
  }
  .news-text {
    display: block;
    margin-top: 0.2rem;
    line-height: 1.5;
  }
}

/* 事業紹介セクション
======================================================================= */
.formal-business {
  padding: 6rem 2rem;
  background: var(--surface-color);
  overflow: hidden; 
}
.business-container {
  max-width: 1200px;
  margin: 0 auto;
}
.business-category {
  margin-bottom: 4rem;
}
.category-title {
  position: relative;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 3.5rem;
  padding-top: 1.5rem;
  letter-spacing: 0.1em;
  z-index: 1;
  background: none;
  border: none;
  display: inline-block;
}
.category-title::before {
  content: attr(data-en);
  position: absolute;
  top: -0.6rem; /* サイズ縮小に合わせて位置を微調整 */
  left: 0;
  font-size: 2.8rem; /* 4remから小さくして主張を抑える */
  font-weight: 900;
  color: #cbd5e1;
  z-index: -1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-family: 'Inter', sans-serif;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .formal-business {
    padding: 4rem 1.5rem; /
  }
  .category-title {
    font-size: 1.35rem;
    margin-bottom: 2.5rem;
  }
  .category-title::before {
    font-size: 2.1rem; 
    top: -0.2rem;
  }
}

.formal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 4rem 2rem; 
}

/* カードスタイル 
----------------------------------------------------------- */
.formal-card {
  background: transparent;
  text-decoration: none;
  color: var(--text-primary);
  border: none; 
  border-bottom: 1px solid var(--border-color); 
  padding-bottom: 2rem; 
  display: flex;
  flex-direction: column;
}

.formal-card:hover .card-img-wrapper img {
  opacity: 0.85;
}

.card-img-wrapper {
  width: 100%;
  aspect-ratio: 16 / 10;
  height: auto;
  overflow: hidden;
  border-radius: 2px; 
  background: #eee;
}

.card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.image-gallery img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

/* 背景バリエーション
----------------------------------------------------------- */
.bg-light {
  background-color: #f8fafc;
}

.lead-text {
  font-size: 1.15rem;
  font-weight: 500;
  color: #00408a;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.card-content {
  padding: 1.2rem 0 0 0;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--primary-color);
  letter-spacing: 0.05em;
}
.card-note {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  flex-grow: 1;
}

/* 詳細を見る
----------------------------------------------------------- */
.card-arrow {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary); 
  transition: color 0.3s;
}
.formal-card:hover .card-arrow {
  color: var(--primary-color);
}

@media (max-width: 768px) {
  .formal-grid {
    gap: 1.5rem; /* カード同士の間隔もさらにコンパクトに */
  }
  .formal-card {
    flex-direction: row; 
    align-items: flex-start;
    gap: 1.2rem;
    padding-bottom: 1.5rem;
  }
  .card-img-wrapper {
    width: 40%; 
    flex-shrink: 0;
  }
  .card-content {
    width: 60%; 
    padding: 0; 
  }
  .card-title {
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
    line-height: 1.4;
  }
  .card-note {
    font-size: 0.85rem; /* 説明文もスッキリと */
    line-height: 1.5;
  }
  .card-arrow {
    margin-top: 0.8rem;
    font-size: 0.8rem;
  }
  .formal-card:last-child {
    border-bottom: none; /* スマホ（1列）の時だけ最後の下線を消す */
    padding-bottom: 0;
  }
}

/* 採用情報セクション
======================================================================= */

/* 採用募集の背景
----------------------------------------------------------- */
.formal-recruit {
  position: relative;
  padding: 8rem 2rem;
  background-color: #000;
  text-align: center;
  border-top: 1px solid var(--border-color);
  overflow: hidden;
}
.formal-recruit::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  /* 採用情報用背景画像 */
  background: url('../image/common/recruit-bg.jpg') center/cover no-repeat;
  opacity: 0.55;
  z-index: 0;
}
.formal-recruit::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to right, rgba(0, 80, 170, 0.65) 0%, rgba(0, 0, 0, 0.3) 100%);
  z-index: 1;
  pointer-events: none;
}
.recruit-content {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  z-index: 10;
}
.recruit-content h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #fff;
  letter-spacing: 0.1em;
}
.recruit-content p {
  font-size: 1.1rem;
  color: #e2e8f0;
  margin-bottom: 3rem;
  line-height: 1.8;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

/* 募集要項を見るボタン
----------------------------------------------------------- */
.btn-formal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 4rem;
  background: transparent;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  border: 2px solid #fff;
  text-decoration: none;
  transition: background 0.3s, color 0.3s;
}
.btn-formal:hover {
  background: #fff;
  color: var(--primary-color);
}

/* =========================================================================
   企業情報
   ========================================================================= */

/* 会社情報
======================================================================= */
.company-info {
  width: 100%;
  margin: 0 auto 4rem;
  overflow: hidden; 
}

.company-info table {
  width: 100%;
  border-collapse: collapse;
}

.company-info th,
.company-info td {
  text-align: left;
  padding: 1.5rem 1rem;
  border: none;
  font-size: 1rem;
  line-height: 1.6;
}

.company-info th {
  width: 25%;
  min-width: 120px;
  border-bottom: 1px solid #e0e0e0;
  background-color: #f0f5fb;
  font-weight: 600;
  color: #333;
}

.company-info td {
  border-bottom: 1px solid #e0e0e0; 
  color: #444;
}

.outline-list {
  padding-left: 1.5rem;
  margin: 0;
}

.outline-list li {
  margin-bottom: 0.3em;
}

.outline-list li:last-child {
  margin-bottom: 0;
}

/* スマホビュー*/
@media (max-width: 768px) {
  .company-info th,
  .company-info td {
    display: block;
    width: 100%;
  }
  .company-info th {
    padding: 1.2rem 1rem 0.4rem;
    border-bottom: none;
    background-color: transparent;
    color: #00408a; 
    font-size: 0.9rem;
    font-weight: 700;
    position: relative;
    padding-left: 1.5rem; /* アクセンライン用の余白 */
  }

  .company-info th::before {
    content: "";
    position: absolute;
    left: 1rem;
    top: 1.3rem;
    bottom: 0.5rem;
    width: 3px;
    background-color: #00408a;
    border-radius: 2px;
  }
  .company-info td {
    padding: 0.4rem 1rem 1.2rem;
    font-size: 1rem;
  }
}

/* アクセス
----------------------------------------------------------- */
.access {
  width: 100%;
  margin: 0 auto 4rem;
}

.access iframe {
  width: 100%;
  height: 450px;
  border: none;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.access {
  overflow: hidden; /* はみ出し防止 */
}

/* 沿革
======================================================================= */

/* タイムライン
----------------------------------------------------------- */
.timeline {
  display: grid;
  grid-template-columns: 120px 20px 1fr;
  row-gap: 40px;
  width: 100%;
  margin: 0;
  position: relative;
  align-items: start;

}

.timeline::before {
  content: "";
  position: absolute;
  left: 128px;
  top: 15px;
  bottom: 15px;
  width: 4px;
  background:  #00408a;
}

.timeline-year {
  text-align: right;
  font-weight: bold;
  color: #333;
  padding-right: 10px;
  justify-content: center;
}

.timeline-dot-wrapper {
  display: flex;
  justify-content: center;
  position: relative;
}

.timeline-dot {
  width: 12px;
  height: 12px;
  background-color: #00408a;
  border-radius: 50%;
  z-index: 1;
  margin-top: 6px;
}

/* 現在地のドット装飾
----------------------------------------------------------- */
.timeline-dot-current {
  position: relative;
  background-color: #00408a;
}

.timeline-dot-current::after {
  content: "";
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  border: 4px solid #00408a;
  animation: pulse 2s infinite;
  opacity: 0;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(2.5); opacity: 0; }
}

.timeline-content {
  padding-left: 10px;
  color: #222;
}

.timeline-content img{
  padding: 8px;
}

.timeline-img {
  max-width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.timeline-img img {
  padding: 4px;
  background: #fff;
  border: 1px solid #ddd;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  max-width: 350px;
  max-height: 260px;
  object-fit: cover;
}

@media (max-width: 768px) {
  .timeline-img img {
    max-width: 100% !important;
    max-height: 250px !important;
    width: 100% !important;
    height: auto !important;
  }
}

/* 品質方針
======================================================================= */
.quality-policy {
  width: 100%;
  margin: 0 auto;
  border: 1px solid var(--border-color, #e2e8f0);
  background: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  position: relative;
  border-top: 4px solid var(--primary-color, #00408a); 
}

.quality-policy::before {
  content: "QUALITY POLICY";
  position: absolute;
  top: 12px;
  left: 20px;
  font-size: 11px;
  letter-spacing: 2px;
  color: #999;
}

.quality-policy h2 {
  font-size: 26px;
  padding: 50px 40px 20px;
  text-align: center;
  letter-spacing: 0.2em;
  position: relative;
}

.quality-policy h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 2px;
  background: var(--primary-color, #00408a); /* 繝悶Λ繝ｳ繝峨ロ繧､繝薙・ */
  margin: 15px auto 0;
}

.policy-box {
  padding: 20px 20px;
  line-height: 1.9;
}

.policy-box p {
  margin: 0;
  text-align: left;
}

.policy-footer {
  padding: 30px;
  text-align: right;
  border-top: 1px solid #f0f0f0;
  font-size: 14px;
}

/* =========================================================================
   校正・検査
   ========================================================================= */

/* 一般校正・検査
======================================================================= */

/* カタログエリアの背景ブロック
----------------------------------------------------------- */
.catalog-block {
  background: #f5f7fa; /* 薄いグレー/ブルーグレーの背景 */
  padding: 0 20px 4rem 20px; /* 上下を空けてカタログと一体化 */
  margin-top: 30px;
  margin-bottom: 50px;
  border-radius: 12px;
  border: 1px solid #eef2f6;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
  overflow: hidden; /* カタログの背景がはみ出さないように */
}

/* カタログセクション - タブ・インデックス・ファイル・カタログ
----------------------------------------------------------- */
.tab-container {
  width: auto; /* 幅を固定せず、ウィンドウの端まで広げる */
  max-width: none;
  margin: 0 -20px 3rem -20px; /* 大枠のパディング20px分を潰してタブを全幅 */
  padding: 6px;
  background: #ebedf0; /* タブらしい落ち着いた背景 */
  border-bottom: 1px solid #e2e8f0;
}

.tablist {
  display: flex;
  justify-content: center;
  max-width: 1000px;
  margin: 0 auto;
  gap: 8px;
  padding: 0;
  list-style: none;
}

.tab {
  flex: 1;
  min-width: 110px;
  padding: 12px 8px;
  border: none;
  border-radius: 2px;
  background: transparent;
  color: #666;
  cursor: pointer;
  text-align: center;
  font-size: 1.05rem; /* サイズ拡大 */
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.tab:hover {
  color: var(--primary-color);
  background: rgba(255,255,255,0.4);
}

.tab[aria-selected="true"] {
  background: #fff;
  color: var(--primary-color);
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* レスポンシブ対応 */
@media (max-width: 767px) {
  .catalog-block {
    padding-top: 0; /* 上下の隙間をなくして一体化 */
    padding-left: 10px;
    padding-right: 10px;
  }

  .tab-container {
    border-radius: 0; /* 端にフィットさせるため角を削除 */
    border-bottom: 1px solid #e2e8f0;
    margin: 0 -10px 1.5rem -10px; /* 左右を大枠にフィットさせる */
    padding: 2px;
    background: #ebedf0; /* 詰めて少し濃くしてタブ感を出る */
  }
  
  .tablist {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
  }
  
  .tab {
    min-width: 0;
    padding: 14px 2px;
    font-size: 0.95rem; /* レスポンシブでもしっかり読めるサイズに */
    border-radius: 0;
  }
}

.tabpanel {
  display: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  background: transparent;
}

.tabpanel[aria-hidden="false"] {
  display: block;
  opacity: 1;
}


/* 校正可能機器カード
----------------------------------------------------------- */
.cal-filter-container {
  margin: 2rem auto;
  max-width: 600px;
  position: relative;
}

.cal-search-input {
  width: 100%;
  padding: 12px 20px 12px 45px;
  border: 1px solid #ddd;
  border-radius: 30px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: #fff url('../image/icon/loupe.svg') no-repeat 15px center;
  background-size: 20px;
}

.cal-search-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(0, 64, 138, 0.1);
}

.cal-sub-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 2.5rem;
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 8px;
  justify-content: center;
}

.cal-sub-nav a {
  padding: 8px 16px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 4px;
  font-size: 0.9rem;
  color: #555;
  text-decoration: none;
  transition: all 0.2s ease;
  font-weight: 500;
}

.cal-sub-nav a:hover {
  background: var(--primary-color);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.cal-category-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #666;
  margin: 2.5rem 0 1rem;
  padding-left: 10px;
  border-left: 3px solid #ddd;
}

.cal-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 15px;
  margin-bottom: 2.5rem;
}

.cal-item-card {
  background: #fff;
  border: 1px solid #e2e8f0; 
  border-radius: 8px;
  padding: 16px; 
  display: flex;
  flex-direction: column;
  height: 100%;
}

.cal-card-img-box {
  width: 100%;
  height: 120px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px; 
  margin-bottom: 15px;
  background: transparent; 
}

.cal-card-img-box img {
  max-width: 100%;
  max-height: 100px; 
  object-fit: contain;
  flex: 0 1 auto;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.05)); 
}

.cal-card-img-box img:nth-child(n+2),
.cal-card-img-box img:first-child:nth-last-child(n+2) {
  max-width: 48%;
}

.cal-card-info {
  flex-grow: 1;
}

.cal-card-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 5px;
  line-height: 1.3;
}

.cal-card-range {
  font-size: 0.75rem;
  color: #777;
  line-height: 1.4;
}

/* スマホビュー　*/
@media (max-width: 767px) {
  .cal-card-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  
  .cal-card-img-box {
    height: 80px;
  }
}



/* =========================================================================
   レンタル
   ========================================================================= */

/* レンタル一覧
======================================================================= */

/* レンタル品掲載
----------------------------------------------------------- */
.rental-page .container {
  display: flex;
  flex-direction: column;
}

.rental-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-flow: dense;
  list-style: none;
  padding: 0;
  margin: 0 auto;
  width: 100%;
  gap: 16px;
}

.rental-list input {
   width: 60px; 
}

.rental-item {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  height: 100%;
}

@media (max-width: 1024px) {
  .rental-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 画像エリア */
.item-image { 
  display: flex;
  width: 100%;
  height: 140px;
  justify-content: center;
  align-items: center;
  background: #f8f9fa;
  border-bottom: 1px solid #f0f0f0;
  padding: 12px;
}

@media (max-width: 768px) {
  .rental-list {
    grid-template-columns: 1fr;
  }
  
  .item-image {
    height: 140px;
    padding: 12px;
  }
}

.item-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* 商品情報エリア */
.item-name {
  font-weight: 700;
  font-size: 1.05em;
  color: var(--text-primary);
  line-height: 1.4;
  padding: 14px 14px 8px;
}

.item-details {
  padding: 10px 14px;
  flex: 1;
}

/* 詳細情報のスタイル */
.item-model,
.item-maker,
.item-range,
.item-note {
  font-size: 0.85em;
  color: #666;
  line-height: 1.5;
  margin-bottom: 2px;
}

.item-model::before { content: "型式："; color: #999; font-size: 0.9em; }
.item-maker::before { content: "メーカー："; color: #999; font-size: 0.9em; }
.item-range::before { content: "測定範囲："; color: #999; font-size: 0.9em; }
.item-note::before { content: "備考："; color: #999; font-size: 0.9em; }

/* カート操作エリア */
.list-op {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 14px;
  background: #f8f9fa;
  border-top: 1px solid #f0f0f0;
  margin-top: auto;
}

.list-op .qty {
  width: 40px;
  text-align: center;
  padding: 6px 4px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 0.9em;
  background: #fff;
}

.list-op .qty-minus,
.list-op .qty-plus {
  width: 28px;
  height: 28px;
  border: 1px solid #ddd;
  background: #fff;
  color: #555;
  font-size: 14px;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.list-op .qty-minus:hover,
.list-op .qty-plus:hover {
  background: #f0f0f0;
  border-color: #ccc;
}

.list-op .qty-minus.disabled,
.list-op .qty-plus.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background: #f5f5f5;
}

.list-op .add-to-cart {
  background: var(--primary-color);
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.85em;
  font-weight: 600;
  cursor: pointer;
  margin-left: auto;
  transition: background 0.2s ease;
  white-space: nowrap;
}

.list-op .add-to-cart:hover {
  background: #003670;
}

.cart-button button {
  color: #fff;
  border: none;
  padding: 5px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
  font-size: 14px;

}

.add-to-cart {
  background-color: #0050AA;
}

.add-to-cart:hover {
  background-color: #004080;
}

.select-model-btn {
  background-color: #2e8b57;

}

.select-model-btn:hover {
  background-color: #256d47;
}

/* フィルターバー
----------------------------------------------------------- */
.filter-bar {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 12px 20px;
  margin-bottom: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  width: 100%;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.filter-bar .filter-section {
  flex: 1;
  min-width: 280px;
}

.filter-bar .filter-section:first-child {
  flex: 2;
}

.filter-bar h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* カテゴリタブ */
.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-tab {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.category-tab:hover {
  background: #f0f0f0;
  border-color: #ccc;
}

.category-tab.active {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
  box-shadow: 0 2px 4px rgba(0, 64, 138, 0.2);
}

/* 検索ボックス */
.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-box input[type="search"] {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  background: #fff;
  min-width: 200px;
}

.search-box input[type="search"]:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 64, 138, 0.1);
}

.search-box button {
  background: #f0f0f0;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 16px;
  color: #666;
  cursor: pointer;
  transition: all 0.2s ease;
}

.search-box button:hover {
  background: #e0e0e0;
}

/* 機種選択セクション */
.model-selection {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 0;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

.model-selection-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  cursor: pointer;
  background: #fff;
  transition: background 0.2s ease;
  user-select: none;
}

.model-selection-header:hover {
  background: #f8f9fa;
}

.model-selection-header h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  padding: 0;
  border-bottom: none;
}

.model-selection-header .toggle-icon {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary-color);
  transition: all 0.3s ease;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  line-height: 1;
  position: static;
}

.model-selection-header:hover .toggle-icon {
  background: var(--primary-color);
  color: #fff;
}

.model-selection-header.collapsed .toggle-icon::before {
  content: "+";
  display: block;
  text-align: center;
  width: 100%;
  line-height: 24px;
}

.model-selection-header:not(.collapsed) .toggle-icon::before {
  content: "−";
  display: block;
  text-align: center;
  width: 100%;
  line-height: 24px;
}

.model-tabs-wrapper {
  max-height: 500px;
  overflow-y: auto;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  opacity: 1;
}

.model-tabs-wrapper.collapsed {
  max-height: 0;
  opacity: 0;
}

.model-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 24px 20px;
}

.model-tab {
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.model-tab:hover {
  background: #e8e8e8;
  border-color: #ccc;
}

.model-tab.active {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
  box-shadow: 0 2px 4px rgba(0, 64, 138, 0.2);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .filter-bar {
    flex-direction: column;
    gap: 20px;
    padding: 12px 16px;
    border-radius: 8px;
  }
  
  .filter-bar .filter-section,
  .filter-bar .filter-section:first-child {
    flex: none;
    width: 100%;
  }
  
  .category-tabs {
    gap: 6px;
  }
  
  .category-tab {
    padding: 6px 12px;
    font-size: 12px;
  }
  
  .search-box {
    width: 100%;
  }
  
  .search-box input[type="search"] {
    min-width: 0;
    flex: 1;
    padding: 8px 10px;
    font-size: 13px;
  }
  
  .search-box button {
    padding: 6px 8px;
    flex-shrink: 0;
    font-size: 12px;
    min-width: 28px;
  }
}

/* カートアイコン
----------------------------------------------------------- */
#cart-icon {
  position: fixed;
  width: 75px;
  height: 100px;
  right: -1px;
  top: 80px;
  color: #fff;
  background-color:#fff;
  background-image: url('../image/icon/cart.svg'); /* 画像パス */
  background-repeat: no-repeat;   
  background-position: center 15px;    /* 上に寄せて配置 */
  background-size: 45% auto;  
  border-radius: 10px;      
  border-top-right-radius: 0; 
  border-bottom-right-radius: 0; 
  border: 1px solid #ccc;
  border-right: none;
  padding: 10px;
  cursor: pointer;
  z-index: 201;
  display: flex;          
  align-items: center;     
  justify-content: center; 
  transition: transform 0.4s ease;
}

/* カートアイコン下の横書きテキスト */
#cart-icon::after {
  content: "カート";
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  color: #666;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  letter-spacing: 0.5px;
}

#cart-icon.active {
  transform: translateX(-800px);
}

@media (max-width: 1150px) {
  #cart-icon {
    position: fixed;
    width: 60px;
    height: 80px;
    right: 54px;
    top: 0px;
    color: #fff;
    background-color: transparent;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 200;
    display: flex;   
    align-items: center;     
    justify-content: center;
  }

  #cart-icon.active {
    transform: translateX(0px);
  }

}

@media (max-width: 768px) {
  #cart-icon {
    height: 60px;
  }
  
  #cart-icon::after {
    display: none;
  }
}

/* カートのアイテムカウント */
#cart-count {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: #ff6347; /* 赤 */
  color: white;
  font-size: 12px;
  font-weight: bold;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(1);
  transition: transform 0.2s ease;
  pointer-events: none; 
}

#cart-count.bump {
  transform: scale(1.3);
}

#cart-count.shrink {
  transform: scale(0.7);
}

/* カート
----------------------------------------------------------- */
#cart-slide {
  position: fixed;
  top: 80px;
  right: 0;
  margin: 0 auto;
  min-width: 800px;
  height: calc(100% - 80px); /* 上部80px空ける */
  background: #fff;
  transform: translateX(100%);
  transition: transform 0.4s ease;
  z-index:200;
  border: 1px solid var(--border-color);
  border-radius: 0 0 0 12px; /* 左上を直角にしてカートアイコンと接続 */
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
  overflow-y: auto;        /* 縦方向スクロール */
}

@media (max-width: 768px) {
  #cart-slide {
    max-width:800px;
    min-width: 0px;
    bottom: 10px;
    top: 60px;
    left: 0;
    right: 0;
    height: calc(100% - 60px); /* 上部80px空ける */
    transform: translateY(100%);
  }

}

.cart-title {
  height: 70px;
  line-height: 70px;
  text-align: center;   
  font-size: 1.3em;
  font-weight: 700;
  margin: 0 1.5rem;
  letter-spacing: 0.05em;
  border-bottom: 2px solid var(--primary-color);
  color: var(--text-primary);
}

@media (max-width: 768px) {
  .cart-title {
    height:60px;
    line-height: 60px;
  }
}

.cart-controls {
  display: flex;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  align-items: flex-end;
}

#cart-check-btn {
  padding: 12px 24px;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  background: var(--primary-color);
  border: none;
  border-radius: 8px;       
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
  box-shadow: 0 2px 8px rgba(0, 64, 138, 0.2);
}

#cart-check-btn:hover {
  background: #003670;
  transform: translateY(-1px);
}

#cart-check-btn:active {
  transform: translateY(0);
}

#cart-slide p {
  margin: 0;
  font-weight: bold;
}


/* カートアイテムリスト */
#cart-items {
  list-style: none;
  padding: 0;
  margin: 0;
}

#cart-items li {
  padding: 12px 16px;
}

#cart-items li:nth-child(odd) {
  background: #e8f4fc; /* 薄い青 */
}

#cart-items li:nth-child(even) {
  background: #f5f7fa; /* 薄いグレー */
}

#cart-slide.open {
  transform: translateY(0); /* 開いたらスライチE*/
}

@media (max-width: 768px) {

  #cart-slide.open {
    bottom: 0;
  }

}

#cart-close {
  position: absolute;
  top: 19px;
  right: 1.5rem;
  width: 32px;
  height: 32px;
  cursor: pointer;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #f8f9fa;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

#cart-close:hover {
  background: #e8e8e8;
  border-color: #ccc;
}

#cart-close::before {
  content: "×";
  font-size: 24px;
  color: #666;
  display: block;
  text-align: center;
  line-height: 1;
}

#cart { 
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
}

#cart-items li {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
  padding: 14px 12px;
}

#cart-items li:nth-child(even) {
  background: #f8f9fa;
}

#cart-items li:last-child {
  border-bottom: none;
}

#cart-items li .item-info {
  flex: 1;
  min-width: 0;
}

#cart-items li .item-name {
  font-weight: 700;
  font-size: 1em;
  color: var(--text-primary);
  margin-bottom: 2px;
  line-height: 1.3;
}

#cart-items li .item-model,
#cart-items li .item-maker {
  font-size: 0.8em;
  color: #888;
  line-height: 1.4;
}

#cart-items li .cart-action {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

#cart-items li .cart-action .qty {
  font-size: 0.9em;
  color: #555;
  white-space: nowrap;
}

#cart-items li .remove-btn {
  padding: 5px 10px;
  font-size: 0.8em;
  color: #666;
  background: #f8f9fa;
  border: 1px solid #ddd;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

#cart-items li .remove-btn:hover {
  background: #ff6347;
  color: #fff;
  border-color: #ff6347;
}

/* 見積もり依頼フォーム
----------------------------------------------------------- */
#cart-confirm-overlay {
  position: fixed; 
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5); 
  z-index: 300; /* modalより低くする */
  display: none;
}

#cart-confirm-modal {
  position: fixed; 
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); 
  background: #fff;
  padding: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  width: 95%;
  max-width: 800px;
  max-height: 90vh;
  z-index: 301; /* overlayより高くする */
  display: none;
  overflow-y: auto;
  border-radius: 12px;
  border: 1px solid #e8e8e8;
}

#cart-confirm-modal h2 {
  margin-top: 0;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
  text-align: center;
  color: var(--text-primary);
}

#user-info-form {
  display: flex;
  flex-direction: column;
  width: 100%;  
  gap: 16px;
  padding-top: 0.5rem;
}

#user-info-form label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
  margin-bottom: 6px;
}

#user-info-form input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.2s ease;
  background: #fff;
}

#user-info-form input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 64, 138, 0.1);
}

#confirm-items {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  gap: 0;
}

#confirm-items li {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
  border-bottom: 1px solid #e8e8e8;
  padding: 14px 12px;
}

#confirm-items li:nth-child(odd) {
  background: #e8f4fc; /* 薄い青 */
}

#confirm-items li:nth-child(even) {
  background: #f5f7fa; /* 薄いグレー */
}

#confirm-items li:last-child {
  border-bottom: none;
}

#confirm-items .item-name {
  font-weight: 700;
  font-size: 1em;
  color: var(--text-primary);
  margin-bottom: 2px;
}

#confirm-items .item-maker,
#confirm-items .item-model {
  font-size: 0.85em;
  color: #666;
}

#confirm-items .cart-action {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

#confirm-total {
  font-weight: bold;
}

#cart-confirm-modal button {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  margin-right: 0.5rem;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

#confirm-send-btn { 
  background: var(--primary-color); 
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 64, 138, 0.2);
}

#confirm-send-btn:hover { 
  background: #003670;
  transform: translateY(-1px);
}

#confirm-edit-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  background: #f8f9fa;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

#confirm-edit-btn:hover {
  background: #e8e8e8;
  border-color: #ccc;
}

#confirm-edit-btn::before {
  content: "×";
  font-size: 24px; 
  line-height: 1;
  color: #666;
}

/* トースト通知（カート追加時）
================================================================================ */

#toast {
  position: fixed;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  background: #0050AA;
  color: #fff;
  padding: 16px 32px;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1.1em;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
  z-index: 1000;
}

#toast.show {
  opacity: 1;
}

/* レンタル方法
================================================================================ */

.accordion {
  margin: 1rem 0;
}

.accordion-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 12px 16px;
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: all 0.2s ease;
}

.accordion-toggle:hover {
  background: #e8f4fc;
  border-color: var(--primary-color);
}

.accordion-toggle .toggle-icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  position: relative;
  transition: transform 0.3s ease;
}

.accordion-toggle .toggle-icon::before,
.accordion-toggle .toggle-icon::after {
  content: '';
  position: absolute;
  background: var(--text-primary);
  transition: all 0.3s ease;
}

.accordion-toggle .toggle-icon::before {
  width: 12px;
  height: 2px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.accordion-toggle .toggle-icon::after {
  width: 2px;
  height: 12px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.accordion-toggle[aria-expanded="true"] .toggle-icon {
  transform: rotate(180deg);
}

.accordion-toggle[aria-expanded="true"] .toggle-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.accordion-content.open {
  max-height: 2000px;
  padding-top: 16px;
}

/* =========================================================================
   採用情報
   ========================================================================= */

/* 追従エントリーボタン（画面右固定）
----------------------------------------------------------- */
/* 追従型エントリーボタン
================================================================================ */
.recruit-float-btn {
  position: fixed;
  right: -1px;
  top: 80px;
  width: 60px;
  height: 200px;
  background-color: #00408a;
  color: #fff;
  border-radius: 10px 0 0 10px;/* 左側だけ丸く */
  border: 1px solid #ccc;
  border-right: none;
  cursor: pointer;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: -4px 4px 10px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease;
  overflow: hidden;
  text-decoration: none;
}

.recruit-float-btn-text {
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-weight: bold;
  font-size: 1.1em;
  letter-spacing: 0.2em;
}

.recruit-float-btn:hover {
  background-color: #004080;
}

@media (max-width: 768px) {
  .recruit-float-btn {
    width: 45px;
    height: 150px;
    top: 60px;
  }

  .recruit-float-btn-text {
    font-size: 0.9em;
  }
}

/* スライド型エントリーフォーム
================================================================================ */
.recruit-slide {
  position: fixed;
  top: 80px;
  right: 0;
  min-width: 600px;
  width: 600px;
  height: calc(100% - 80px);/* ヘッダー分空ける */
  background: #fff;
  transform: translateX(100%);
  transition: transform 0.4s ease;
  z-index: 200;
  border: 1px solid #ccc;
  border-right: none;
  overflow-y: auto;/* スクロール可能に */
}

.recruit-slide.open {
  transform: translateX(0);/* クラス付与で表示 */
}

.recruit-slide-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #ccc;
  background: #fafafa;
}

.recruit-slide-header h3 {
  margin: 0;
  font-size: 1.5rem;
  text-align: left;
}

.recruit-slide-close {
  width: 32px;
  height: 32px;
  cursor: pointer;
  border: 1px solid #ccc;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #333;
}

.recruit-slide-content {
  padding: 1.5rem;
}

@media (max-width: 768px) {
  .recruit-slide {
    min-width: 0;
    width: 100%;
    bottom: 0;
    top: 60px;
    height: calc(100% - 60px);
    transform: translateY(100%);/* スマホは下から */
  }

  .recruit-slide.open {
    transform: translateY(0);
  }
}

/* =========================================================================
   お問合せ
   ========================================================================= */

/* お問合せフォーム
----------------------------------------------------------- */

.contact {
  width: 100%;
  padding: 2rem 1rem;
  border: 1px solid #ccc;
}

.contact.contact-panel {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.06);
  padding: 2rem;
}

@media (max-width: 768px) {
  .contact {
    border: none;
  }

  .contact.contact-panel {
    padding: 1.25rem;
    border: 1px solid #e2e8f0;
  }
}

.contact form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}


.contact label {
  font-weight: 600;
  margin-bottom: 6px;
}

.required-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  padding: 4px 8px;
  margin-left: 8px;
  border-radius: 999px;
  background: #fff5f5;
  color: #c53030;
  border: 1px solid #fed7d7;
  vertical-align: middle;
}


.contact input[type="text"],
.contact input[type="email"],
.contact input[type="month"],
.contact textarea,
.contact select {
  width: 100%;
  padding: 10px 12px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  transition: border-color 0.3s ease;
}

.contact textarea {
  resize: vertical;
  min-height: 120px;
}

.submit-btn {
  background-color: var(--primary-color);
  color: #fff;
  font-weight: 700;
  border: 2px solid var(--primary-color);
  border-radius: 10px;
  width: 100%;
  max-width: 420px;
  align-self: center;
  padding: 14px 18px;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
  box-shadow: 0 6px 14px rgba(0, 64, 138, 0.18);
}

.submit-btn:hover {
  background-color: #fff;
  color: var(--primary-color);
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(0, 64, 138, 0.16);
}

.submit-btn:active {
  transform: translateY(0);
  box-shadow: 0 6px 14px rgba(0, 64, 138, 0.14);
}

.submit-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(0, 64, 138, 0.2), 0 6px 14px rgba(0, 64, 138, 0.14);
}


