@charset "UTF-8";

.service-page-container {
    width: 100%;
    padding: clamp(60px, 8.33vw, 120px) 0;
    background-color: #f8f8f8;
}

/* Header Area (Max width 1245px) */
.service-header {
    width: 100%;
    margin-bottom: clamp(40px, 5.56vw, 80px);
}

.service-header-inner {
    max-width: 1245px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: baseline;
    gap: 20px;
}

.service-title-en {
    font-size: clamp(40px, 5.83vw, 55px);
    font-weight: 500;
    color: #003a8c;
    line-height: 1;
}

.service-title-jp {
    font-size: 20px;
    color: #333;
}

/* Content Area (Max width 1025px) */
.service_sec01, .service_sec02-inner {
    width: 100%;
}

.service_sec01-inner {
    max-width: 1245px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.service_sec02-inner {
    max-width: 1025px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.service_sec01 {
  padding-bottom: clamp(60px, 8vw, 120px);
  background-color: transparent !important;
  color: #333;
}

/* Main Layout */
.service_sec01-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(30px, 5vw, 80px);
}

.service_sec01-figure {
  flex: 1.2;
  max-width: 700px;
}

.service_sec01-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.service_sec01-content {
  flex: 1;
}

/* Typography */
.service_sec01-lead {
  font-size: clamp(40px, 5.5vw, 70px);
  font-weight: 500;
  line-height: 1.1;
  margin-bottom: 20px;
}

.service_sec01-sublead {
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 500;
  line-height: 1.6;
  margin-bottom: clamp(30px, 4vw, 40px);
}

.service_sec01-text {
  font-size: clamp(14px, 1.4vw, 18px);
  line-height: 1.8;
  margin-bottom: 1.5em;
  text-align: justify;
}

.service_sec01-text:last-child {
  margin-bottom: 0;
}

/* Utilities */
.pc-only { display: block; }

/* --- Responsive Layout (Break Point: 768px) --- */

@media screen and (max-width: 768px) {
  .service-header-inner {
    flex-direction: column;
    gap: 5px;
    align-items: flex-start;
  }
  .service-title-en { font-size: 40px; }
  .service-title-jp { font-size: 16px; }

  .service_sec01-main {
    flex-direction: column;
    gap: 40px;
  }

  .service_sec01-figure {
    order: 1;
    width: 100%;
    max-width: 100%;
  }

  .service_sec01-content {
    order: 2;
    width: 100%;
  }

  .pc-only { display: none; }
}

/* --- service_sec02 Settings --- */

.service_sec02 {
  background-color: transparent !important;
  color: #333;
}

/* メインビジュアル */
.service_sec02-main-visual {
  width: 100%;
  line-height: 0;
  margin-bottom: clamp(60px, 8vw, 100px);
}

.service_sec02-main-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  max-height: 500px;
}

.service_sec02-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(60px, 8vw, 100px);
}

/* サービス詳細アイテム */
.service_sec02-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: clamp(20px, 4vw, 50px);
  position: relative;
}

/* --- デザインラインの実装 (PC版) --- */
@media screen and (min-width: 769px) {
  .service_sec02-item::before {
    content: "";
    position: absolute;
    top: 24px;
    left: calc(-50vw + 50%); 
    width: calc(50vw - 50% - 20px);
    height: 1px;
    background-color: #ccc;
  }
}

/* 番号 */
.service_sec02-item-header {
  flex-shrink: 0;
  width: clamp(60px, 8vw, 100px);
}

.service_sec02-number {
  font-size: clamp(42px, 4vw, 70px);
  color: #00A5AE;
  font-family: 'Montserrat', sans-serif;
  font-weight: 100;
  line-height: 1;
}

/* コンテンツ */
.service_sec02-item-content {
  flex: 1;
}

.service_sec02-item-title {
  font-size: clamp(18px, 2vw, 24px);
  color: #00338d;
  font-weight: 500;
  margin-bottom: 20px;
  line-height: 1.4;
}

.service_sec02-item-text {
  font-size: clamp(14px, 1.4vw, 15px);
  line-height: 1.8;
  margin-bottom: 20px;
  text-align: justify;
}

.service_sec02-item-link {
  display: table;
  margin-left: auto;
  font-size: 14px;
  color: #333;
  text-decoration: none;
  border-bottom: 1px solid #00A5AE;
  padding-bottom: 2px;
  transition: opacity 0.3s;
}

.service_sec02-item-link:hover {
  opacity: 0.7;
}

/* 画像 */
.service_sec02-item-image {
  flex-shrink: 0;
  width: clamp(240px, 30vw, 360px);
}

.service_sec02-thumb {
  width: 100%;
  height: auto;
  display: block;
}

/* --- SP版レイアウト (768px以下) --- */
@media screen and (max-width: 768px) {
  .service_sec02-inner {
    width: 85%;
  }

  .service_sec02-item {
    flex-direction: column;
    gap: 24px;
  }

  .service_sec02-item-header {
    width: auto;
    display: flex;
    align-items: center;
    gap: 15px;
  }

  .service_sec02-item::before {
    content: "";
    position: absolute;
    top: calc(0.5 * clamp(42px, 4vw, 70px));
    transform: translateY(-50%);
    left: -10vw;
    width: calc(10vw - 15px);
    height: 1px;
    background-color: #ccc;
  }

  .service_sec02-item-header::before {
    display: none;
  }

  .service_sec02-item-content {
    order: 2;
  }

  .service_sec02-item-image {
    order: 3;
    width: 100%;
  }
}
