@charset "utf-8";
@import url("https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Noto+Sans+JP:wght@300;400;700;900&display=swap");

/* ===== CSS Variables ===== */
:root {
  --blue-primary: #1eadf1;
  --blue-dark: #0d7ab8;
  --blue-deeper: #062b81;
  --blue-light: #e7f7fe;
  --blue-mid: #d6effc;
  --blue-pale: #f0faff;
  --accent: #1eadf1;
  --accent-dark: #0d7ab8;
  --dark: #0a1628;
  --text: #1a2a3a;
  --text-muted: #5a7a8a;
  --border: #b9def7;
  --border-light: #ddf0fb;
  --white: #fff;
  --max-w: 1200px;
}

/* ===== PAGE HEADER ===== */
#contents h2 {
  background: var(--blue-deeper) !important;
  border: none !important;
  border-left: 4px solid var(--blue-primary) !important;
  color: var(--white) !important;
  font-family: "Bebas Neue", sans-serif !important;
  font-size: 13px !important;
  letter-spacing: 6px !important;
  text-transform: uppercase !important;
  padding: 14px 32px !important;
  margin-bottom: 0 !important;
}

/* ===== SECTION TITLE ===== */
.page_main.service h3 {
  font-family: "Bebas Neue", sans-serif !important;
  font-size: 42px !important;
  font-weight: 400 !important;
  color: var(--blue-deeper) !important;
  letter-spacing: 4px !important;
  border: none !important;
  border-top: none !important;
  border-bottom: none !important;
  padding: 20px 0 0px 0px !important;
  text-align: left !important;
  max-width: var(--max-w);
  margin: 0 auto 40px auto !important;
  position: relative;
}

/* ===== HONB BOX（各サービスカード） ===== */
.honb_box {
  max-width: var(--max-w);
  margin: 0 auto 3px auto !important;
  width: 100%;
}

.honb_box h4 {
  font-size: 25px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--blue-primary);
  font-weight: 700;
  margin-bottom: 0;
  padding: 20px 0px;
}

/* カード本体 */
.honb_box_001 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 340px;
  overflow: hidden;
  border: 1px solid var(--border-light);
}

/* 偶数カード：テキスト左・画像右 */
.honb_box:nth-child(even) .honb_box_001 {
  direction: rtl;
}
.honb_box:nth-child(even) .honb_box_001 > * {
  direction: ltr;
}

/* 画像 */
.honb_box_001 .imagephoto {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block;
  transition: transform 0.8s ease;
  filter: brightness(0.95);
}

.honb_box_001:hover .imagephoto {
  transform: scale(1.04);
  filter: brightness(1);
}

/* テキストエリア */
.honb_box_001 .text001 {
  background: var(--white);
  color: var(--text);
  padding: 48px 52px;
  font-size: 14px;
  line-height: 2;
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 400;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  margin: 0 !important;
  border-left: 1px solid var(--border-light);
}

/* 上部アクセントライン（ブルー） */
.honb_box_001 .text001::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-primary), var(--blue-light));
}

/* 左アクセントライン */
.honb_box_001 .text001::after {
  content: "";
  position: absolute;
  top: 48px;
  left: 52px;
  width: 28px;
  height: 2px;
  background: var(--blue-primary);
}

.honb_box_001 .text001 a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  color: var(--blue-dark) !important;
  font-size: 12px;
  letter-spacing: 2px;
  font-weight: 700;
  text-decoration: none !important;
  transition: gap 0.3s ease;
  padding: 10px 20px;
  background: var(--blue-light);
  border: 1px solid var(--border);
  width: fit-content;
}

.honb_box_001 .text001 a:hover {
  gap: 14px;
  background: var(--blue-mid);
}

/* 資格バッジ */
.arai {
  display: inline-block;
  margin-top: 20px;
  padding: 14px 20px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--blue-primary);
  font-size: 12px;
  line-height: 1.9;
  color: var(--text-muted);
  background: var(--blue-pale);
}

/* ===== カードホバー時の枠線 ===== */
.honb_box_001 {
  transition: box-shadow 0.3s ease;
}
.honb_box_001:hover {
  box-shadow: 0 8px 32px rgba(30, 173, 241, 0.15);
}

/* ===== スクロールアニメーション ===== */
.honb_box {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.honb_box.visible {
  opacity: 1;
  transform: translateY(0);
}

.honb_box:nth-child(2) {
  transition-delay: 0.1s;
}
.honb_box:nth-child(3) {
  transition-delay: 0.15s;
}
.honb_box:nth-child(4) {
  transition-delay: 0.2s;
}
.honb_box:nth-child(5) {
  transition-delay: 0.25s;
}

/* ===== タブレット ===== */
@media screen and (min-width: 768px) and (max-width: 1024px) {
  .honb_box_001 {
    min-height: 280px;
  }

  .honb_box_001 .text001 {
    padding: 36px 36px;
    font-size: 13px;
  }

  .page_main.service h3 {
    font-size: 34px !important;
  }
}

/* ===== スマホ（767px以下） ===== */
@media screen and (max-width: 767px) {
  #contents h2 {
    font-size: 11px !important;
    padding: 12px 16px !important;
    letter-spacing: 3px !important;
  }

  .page_main.service h3 {
    font-size: 28px !important;
    padding: 32px 16px 8px 20px !important;
    margin-bottom: 24px !important;
  }

  .honb_box h4 {
    padding: 0 16px;
    font-size: 14px;
    margin-top: 32px;
  }

  .honb_box_001 {
    grid-template-columns: 1fr !important;
    direction: ltr !important;
    min-height: auto;
  }

  .honb_box:nth-child(even) .honb_box_001 {
    direction: ltr !important;
  }

  .honb_box_001 .imagephoto {
    width: 100% !important;
    height: 220px !important;
    object-fit: cover !important;
  }

  .honb_box_001 .text001 {
    padding: 32px 24px !important;
    font-size: 13px;
    line-height: 1.9;
    border-left: none !important;
  }

  .honb_box_001 .text001::after {
    top: 32px;
    left: 24px;
  }

  .arai {
    font-size: 11px;
    padding: 12px 16px;
  }

  .honb_box + .honb_box {
    margin-top: 8px !important;
  }
}
