/* ========================================
   事業詳細ページ共通CSS
   ======================================== */

/* privacy.cssと同じ構造を継承 */

/* ページ全体のoverflow制御 */
html, body {
    overflow-x: hidden;
    max-width: 100%;
    position: relative;
}

/* モバイルでmainの白背景を透明に（パララクス背景表示のため） */
@media (max-width: 767px) {
    main {
        background: transparent;
    }
}

/* ================================================
   固定背景画像
   ================================================ */

.fixed-bg-layer.business-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-image: url('../img/mix_img.jpg');
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;
  background-color: #002147;
  overflow: hidden;
  max-width: 100vw;
}

/* デスクトップのみfixed attachment + contain */
@media (min-width: 1024px) {
  .fixed-bg-layer.business-bg {
    background-attachment: fixed;
    background-size: contain;
  }
}

/* モバイル用背景画像 */
@media (max-width: 767px) {
  .fixed-bg-layer.business-bg {
    background-image: url('../img/mix_img_sp.jpg');
  }
}

.overlay-white {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(243, 255, 246, 0.45);
  background-blend-mode: multiply;
  pointer-events: none;
  z-index: 1;
}

/* モバイル用オーバーレイ強化 */
@media (max-width: 767px) {
  .overlay-white {
    background: rgba(243, 255, 246, 0.65);
  }
}

.bg-grid-overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-image: linear-gradient(to right, rgba(0, 168, 255, 0.05) 1px, transparent 1px), 
                    linear-gradient(to bottom, rgba(0, 168, 255, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 2;
}

/* ================================================
   ページタイトルセクション
   ================================================ */

.page-title-section {
  position: relative;
  background: linear-gradient(135deg, #002147 0%, #003d7a 100%);
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 0;
}

@media (min-width: 1024px) {
  .page-title-section {
    height: 320px;
  }
}

.page-title-overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px), 
                    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.5;
  pointer-events: none;
  z-index: 1;
}

.page-title-container {
  position: relative;
  z-index: 2;
  font-family: 'Hannari', serif;
  font-size: 2rem;
  font-weight: 500;
  color: #ffffff;
  letter-spacing: 0.15em;
  text-align: center;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .page-title-container {
    font-size: 2.5rem;
    letter-spacing: 0.2em;
  }
}

@media (min-width: 1024px) {
  .page-title-container {
    font-size: 3rem;
  }
}

/* ================================================
   コンテンツセクション
   ================================================ */

.content-section {
    padding: 0 0 4rem 0;
    position: relative;
}

@media (min-width: 768px) {
    .content-section {
        padding: 0 0 6rem 0;
    }
}

@media (min-width: 1024px) {
    .content-section {
        padding: 0 0 8rem 0;
    }
}

.content-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .content-container {
        padding: 0 1.5rem;
    }
}

/*
 * .intro-description のスタイルは common.css で定義済み
 */

/* ================================================
   CTAセクション
   ================================================ */

.cta-section {
    padding: 6rem 0;
    background-color: #002147;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-grid-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    opacity: 0.2;
    background-image: linear-gradient(to right, rgba(0, 168, 255, 0.05) 1px, transparent 1px), 
                      linear-gradient(to bottom, rgba(0, 168, 255, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
}

.cta-container {
    width: 100%;
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 10;
}

.cta-title {
    font-size: 1.875rem;
    font-family: 'Hannari', serif;
    font-weight: bold;
    color: white;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .cta-title {
        font-size: 2.25rem;
    }
}

.cta-description {
    color: #e6f0ff;
    margin-bottom: 2.5rem;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.8;
}

.cta-button-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    gap: 0;
    max-width: 42rem;
    margin: 0 auto;
}

@media (min-width: 640px) {
    .cta-button-container {
        flex-direction: row;
    }
}

.cta-button {
    flex: 1 1 0%;
    padding: 1.5rem 2.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    text-decoration: none;
}

.cta-button-primary {
    background-color: #0056b3;
    color: white;
    transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-button-primary:hover {
    background-color: white;
    color: #0056b3;
}

.cta-button-primary .cta-button-icon-chevron {
    opacity: 0;
    transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-button-primary:hover .cta-button-icon-chevron {
    opacity: 1;
    transform: translateX(0.25rem);
}

.cta-button-secondary {
    background-color: #003366;
    color: white;
    font-family: 'Oswald', sans-serif;
    font-weight: bold;
    font-size: 1.25rem;
    transition: background-color 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-button-secondary:hover {
    background-color: #00a8ff;
}

.cta-button-icon {
    font-size: 1.25rem;
}

.cta-button-icon-sm {
    font-size: 0.875rem;
}

.cta-button-icon-chevron {
    font-size: 0.75rem;
}

/* ================================================
   共通ユーティリティ
   ================================================ */

.pc-only {
    display: none;
}

@media (min-width: 768px) {
    .pc-only {
        display: inline;
    }
}

.sp-only {
    display: inline;
}

@media (min-width: 768px) {
    .sp-only {
        display: none;
    }
}

/* ================================================
   詳細コンテンツスタイル（privacy.cssベース）
   ================================================ */

/* Privacy Policy Detailed Content */
.privacy_item {
    /* max-width: 900px; */
    margin: 0 auto 2.5rem;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 33, 71, 0.08);
    padding: 2rem 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.privacy_item.fade_in {
    opacity: 1;
    transform: translateY(0);
}

@media (min-width: 768px) {
    .privacy_item {
        padding: 2.5rem 2rem;
        margin-bottom: 3rem;
    }
}

@media (min-width: 1024px) {
    .privacy_item {
        padding: 3rem 2.5rem;
    }
}

.privacy_title {
    font-family: 'Hannari', serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #002147;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e6f0ff;
    position: relative;
}

.privacy_title::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: #0056b3;
}

@media (min-width: 768px) {
    .privacy_title {
        font-size: 1.5rem;
        margin-bottom: 2rem;
        padding-bottom: 1rem;
    }
}

.privacy_content {
    font-size: 0.95rem;
    line-height: 1.9;
    color: #333333;
}

@media (min-width: 768px) {
    .privacy_content {
        font-size: 1rem;
        line-height: 2;
    }
}

.privacy_content p {
    margin-bottom: 1rem;
}

.privacy_content p:last-child {
    margin-bottom: 0;
}

.privacy_subtitle {
    font-size: 1rem;
    font-weight: 600;
    color: #002147;
    margin: 1.5rem 0 1rem;
    padding-left: 0.75rem;
    border-left: 3px solid #0056b3;
}

@media (min-width: 768px) {
    .privacy_subtitle {
        font-size: 1.125rem;
        margin: 2rem 0 1.25rem;
    }
}

.privacy_list {
    list-style: none;
    padding-left: 0;
    margin: 1rem 0;
}

.privacy_list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    line-height: 1.8;
}

.privacy_list li::before {
    content: '■';
    position: absolute;
    left: 0;
    color: #0056b3;
    font-size: 0.75rem;
}

.privacy_list_numbered {
    list-style: none;
    counter-reset: item;
    padding-left: 0;
    margin: 1rem 0;
}

.privacy_list_numbered li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.75rem;
    counter-increment: item;
    line-height: 1.8;
}

.privacy_list_numbered li::before {
    content: counter(item) '.';
    position: absolute;
    left: 0;
    color: #0056b3;
    font-weight: 600;
}

/* Contact Section within privacy_item */
.privacy_contact {
    background: linear-gradient(135deg, #002147 0%, #003d7a 100%);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    text-align: center;
    color: white;
    margin-top: 2rem;
}

@media (min-width: 768px) {
    .privacy_contact {
        padding: 3rem 2rem;
    }
}

.contact_title {
    font-family: 'Hannari', serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .contact_title {
        font-size: 1.75rem;
        margin-bottom: 2rem;
    }
}

.contact_info {
    max-width: 600px;
    margin: 0 auto 2rem;
    text-align: left;
    line-height: 1.8;
}

.contact_info p {
    margin-bottom: 0.75rem;
}

.btn_primary {
    display: inline-block;
    background: white;
    color: #002147;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn_primary:hover {
    background: #e6f0ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 画像スタイル */
.privacy_content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin: 2rem auto;
    display: block;
}

/* リンクスタイル */
.privacy_content a {
    color: #0056b3;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.privacy_content a:hover {
    border-bottom-color: #0056b3;
}

/* ================================================
   サービス画像コンテナ
   ================================================ */

.service-image-container {
    text-align: center;
    margin: 0 0 2rem 0;
}

.service-image-container img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 横並び画像コンテナ */
.service-images-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 0 0 2rem 0;
}

@media (min-width: 640px) {
    .service-images-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

.service-image-item {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.service-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 横並び画像コンテナ（サイズ制限付き） - s21.pngと同様のサイズ */
.service-images-row-constrained {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin: 0 auto 2rem;
    max-width: 850px;
}

@media (min-width: 640px) {
    .service-images-row-constrained {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

.service-images-row-constrained .service-image-container {
    margin: 0;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.service-images-row-constrained .service-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 画像が1つだけの場合は中央寄せ */
.service-images-row-constrained .service-image-container:only-child {
    grid-column: 1 / -1;
    max-width: 425px;
    margin: 0 auto;
}

/* ================================================
   試験項目リスト（1列・左テキスト右画像レイアウト）
   ================================================ */

.test-items-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.test-item-row {
    background: #f8fafc;
    border-radius: 8px;
    padding: 1.5rem;
    border-left: 4px solid #0056b3;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.test-item-row:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 86, 179, 0.15);
}

/* 画像付きの場合は横並びレイアウト */
.test-item-row.has-image {
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
}

@media (min-width: 768px) {
    .test-item-row.has-image {
        flex-direction: row;
        align-items: stretch;
    }
}

.test-item-row.has-image .test-item-content {
    flex: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.test-item-row.has-image .test-item-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    order: -1;
}

@media (min-width: 768px) {
    .test-item-row.has-image .test-item-image {
        width: 280px;
        min-width: 280px;
        height: auto;
        order: 1;
    }
}

@media (min-width: 1024px) {
    .test-item-row.has-image .test-item-image {
        width: 320px;
        min-width: 320px;
    }
}

.test-item-row.has-image .test-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.test-item-row.has-image:hover .test-item-image img {
    transform: scale(1.05);
}

/* 画像なしの場合 */
.test-item-row:not(.has-image) .test-item-content {
    padding: 0;
}

.test-item-title {
    color: #002147;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.75rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e6f0ff;
    text-align: left;
}

/* common.css の main h4 スタイルを上書き */
.test-item-row h4.test-item-title {
    margin: 0 0 0.75rem 0;
}

.test-item-row p {
    font-size: 0.9rem;
    line-height: 1.8;
    color: #444;
    margin: 0;
}

/* ================================================
   注意ボックス
   ================================================ */

.notice-box {
    background: #fff8e6;
    border-left: 4px solid #f0a000;
    padding: 1.25rem 1.5rem;
    border-radius: 0 8px 8px 0;
    margin-top: 1.5rem;
}

.notice-box p {
    margin-bottom: 0.5rem;
}

.notice-box p:last-child {
    margin-bottom: 0;
}

.notice-box-info {
    background: #e6f4ff;
    border-left-color: #0056b3;
}

.notice-box-action {
    margin-top: 1rem;
}

.btn-test-request,
.privacy_content a.btn-test-request {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #0056b3 0%, #003d82 100%);
    color: #fff !important;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 86, 179, 0.3);
    border-bottom: none;
}

.btn-test-request:hover,
.privacy_content a.btn-test-request:hover {
    background: linear-gradient(135deg, #003d82 0%, #002147 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 86, 179, 0.4);
    color: #fff !important;
    border-bottom: none;
}

.btn-test-request i {
    font-size: 1rem;
}

/* 試験依頼インフォ（背景・罫線なし） */
.test-request-info {
    margin-top: 1.5rem;
}

.test-request-info p {
    margin-bottom: 0.5rem;
}

.test-request-info p:last-of-type {
    margin-bottom: 0;
}

/* テキスト中央寄せ */
.text-center {
    text-align: center;
}

/* ================================================
   サービスサブセクション
   ================================================ */

.service-sub-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid #e6f0ff;
}

.service-sub-section:last-of-type {
    margin-bottom: 2rem;
    padding-bottom: 0;
    border-bottom: none;
}

/* ================================================
   その他サービスグリッド
   ================================================ */

/* その他サービス - 2x2グリッドレイアウト */
.privacy_content .other-services-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 1rem;
    margin: 0;
    padding: 0;
}

.privacy_content .other-services-grid .other-service-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: #f8fafc;
    padding: 1.25rem;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

@media (min-width: 640px) {
    .privacy_content .other-services-grid .other-service-item {
        width: calc(50% - 0.5rem);
    }
}

.privacy_content .other-services-grid .other-service-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 86, 179, 0.1);
}

.privacy_content .other-services-grid .other-service-item i {
    font-size: 1.5rem;
    color: #0056b3;
    min-width: 40px;
    text-align: center;
    flex-shrink: 0;
}

.privacy_content .other-services-grid .other-service-item span {
    font-size: 0.95rem;
    color: #333;
}

.privacy_content .other-services-grid .other-service-item small {
    display: block;
    color: #666;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

/* ================================================
   サブセクションタイトル・試験関係機関リスト
   ================================================ */

.sub-section-title {
    color: #002147;
    font-size: 1rem;
    font-weight: 600;
    margin: 1.5rem 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e6f0ff;
}

.institution-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.institution-list li {
    background: #f8fafc;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #333;
    border-left: 3px solid #0056b3;
}

/* 通常の箇条書きリスト */
.simple-list {
    list-style: disc;
    padding-left: 1.5rem;
    margin: 0.5rem 0 0 0;
}

.simple-list li {
    font-size: 0.95rem;
    color: #333;
    line-height: 1.8;
}

/* ================================================
   対応エリアマップ
   ================================================ */

.area-maps-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (min-width: 640px) {
    .area-maps-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

.area-map {
    text-align: center;
}

.area-map img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* ================================================
   エリアタグ
   ================================================ */

.area-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.area-tag {
    background: linear-gradient(135deg, #e6f0ff 0%, #d4e6ff 100%);
    color: #002147;
    padding: 0.5rem 1.25rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 0.2s ease;
}

.area-tag:hover {
    transform: scale(1.05);
}

/* ================================================
   設備グリッド
   ================================================ */

.equipment-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .equipment-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.equipment-category {
    background: #f8fafc;
    border-radius: 8px;
    padding: 1.5rem;
}

.equipment-category h4 {
    color: #0056b3;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e6f0ff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.equipment-category h4 i {
    font-size: 1.1rem;
}

.equipment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.equipment-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px dashed #ddd;
    font-size: 0.9rem;
}

.equipment-list li:last-child {
    border-bottom: none;
}

.equipment-count {
    background: #002147;
    color: #fff;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

/* ================================================
   パートナーリンク
   ================================================ */

.partner-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.partner-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: #f8fafc;
    border-radius: 8px;
    color: #0056b3;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.partner-link:hover,
.privacy_content a.partner-link:hover {
    background: #f8fafc;
    border-color: transparent;
    transform: none;
    border-bottom: none;
    border-bottom-color: transparent;
    opacity: 1;
}

.partner-link i {
    font-size: 0.85rem;
    opacity: 0.7;
}

/* ================================================
   サービスリンクボックス
   ================================================ */

.service-link-box {
    margin-top: 25px;
    text-align: center;
}

.service-link-btn,
.service-link-btn:link,
.service-link-btn:visited {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #0068b7 0%, #004a82 100%);
    color: #fff !important;
    text-decoration: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 104, 183, 0.3);
}

.service-link-btn:hover,
.service-link-btn:active {
    background: linear-gradient(135deg, #0080d4 0%, #0068b7 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 104, 183, 0.4);
    color: #fff !important;
}

.service-link-btn i {
    font-size: 14px;
    color: #fff !important;
}
