/* ------------------------------ */
/* 基本設定 */
/* ------------------------------ */
html {
  overflow-x: hidden;
}

body {
  font-family:
    "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Meiryo",
    sans-serif;
  line-height: 1.6;
  color: #333;
  overflow-x: hidden;
  padding-top: 40px;
}

body.menu-open {
  overflow: hidden;
}

.pc-only {
  display: block;
}
.sp-only {
  display: none;
}

@media screen and (max-width: 768px) {
  .pc-only {
    display: none;
  }
  .sp-only {
    display: block;
  }
}

.bg-shape {
  width: 100%;
  height: 100%;
}

/* Adobe Fonts: AH白洲毛筆太楷書体W1（キット読み込み後に使用可能）
 * フォント名はキットの「フォント情報」で確認し、違う場合は:rootの--font-hakusyuを修正してください */
:root {
  --font-hakusyu: "ah-hakushu-fude-thick-script", sans-serif;
}
.font-hakusyu,
.u-font-hakusyu {
  font-family: var(--font-hakusyu);
}

/* ------------------------------ */
/* ヘッダー */
/* ------------------------------ */
.header {
  background-color: #fff;
  padding: 16px 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
}

.header__inner {
  width: 100%;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.header__logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 150px;
}

.header__logo-icon svg {
  width: 40px;
  height: 40px;
}

.header__logo-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.header__nav-wrappper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.header__nav {
  flex: 1;
}

.header__nav-list {
  display: flex;
  gap: 20px;
  align-items: center;
}

.header__nav-list li a {
  color: #000;
  font-size: clamp(10px, 0.8vw, 14px);
  transition: color 0.3s;
  font-weight: 500;
}

.header__nav-list li a:hover {
  color: #4caf50;
}

.header__buttons {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-shrink: 0;
}

.header__btn {
  padding: 10px 20px;
  border-radius: 50vh;
  font-size: clamp(12px, 1.2vw, 14px);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s;
  cursor: pointer;
  border: 4px solid #fff;
  filter: drop-shadow(3.38px 3.38px 5.4px rgba(0, 0, 0, 0.75));
  text-decoration: none;
}

.header__btn--phone,
.header__btn--doc {
  background: linear-gradient(
    0deg,
    #0a2cb7 10.45%,
    #0b32b5 19.48%,
    #1045b3 52.36%,
    #124cb2 74.93%
  );
  color: #fff;
}

.header__btn--phone:hover,
.header__btn--doc:hover {
  background-color: #1976d2;
}

.header__btn--contact {
  background: linear-gradient(
    0deg,
    #84ca57 10.45%,
    #aad443 43.34%,
    #d3dd47 74.93%
  );
  color: #000;
}

.header__btn--contact:hover {
  background-color: #66bb6a;
}

.header__btn-icon {
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
}

.header__btn-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ハンバーガーメニューボタン */
.header__hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 101;
  position: relative;
}

.header__hamburger-line {
  width: 100%;
  height: 3px;
  background-color: #333;
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.header__hamburger.is-active .header__hamburger-line:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}

.header__hamburger.is-active .header__hamburger-line:nth-child(2) {
  opacity: 0;
}

.header__hamburger.is-active .header__hamburger-line:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

/* ------------------------------ */
/* メインビジュアル */
/* ------------------------------ */
.kv {
  position: relative;
  width: 100%;
  height: 650px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: url(../img/kv__bg.webp) no-repeat center;
  background-size: cover;
}

.kv__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.kv__bg-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #fafafa 0%, #ffffff 50%, #f0f0f0 100%);
}

.kv__bg-city {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 300"><rect fill="%23e0e0e0" opacity="0.3" x="0" y="0" width="400" height="300"/></svg>')
    no-repeat center;
  background-size: cover;
  filter: blur(40px);
  opacity: 0.4;
}

.kv__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 80px 40px;
}

.kv__inner {
  align-items: center;
}

.kv__left {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.kv__title-img {
  max-width: 50%;
  margin-right: auto;
}

.kv__headline-text {
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 400;
  color: #000;
  line-height: 1.4;
  font-family: var(--font-hakusyu);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.kv__headline-sub-text {
  font-size: clamp(14px, 1.6vw, 32px);
  font-weight: 600;
  color: #000;
  line-height: 1.4;
  /* font-family: var(--font-hakusyu); */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.kv__headline--sub {
  font-size: clamp(14px, 1.6vw, 22px);
  font-weight: 600;
  color: #000;
  margin: 10px 0;
  line-height: 1.6;
}

.kv__badges {
  display: flex;
  flex-wrap: wrap;
}

.kv__badge {
  width: 200px;
  height: 200px;
  /* border-radius: 50%;
    border: 4px solid #D4AF37;
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%); */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.kv__badge-label {
  font-size: 16px;
  color: #fff;
  line-height: 1.4;
  margin-bottom: 4px;
  font-weight: bold;
}

.kv__badge-number {
  font-size: 56px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  margin: 8px 0;
}

.kv__badge-officenumber {
  font-weight: 700;
  color: #fff;
  line-height: 1;
  margin: 8px 0;
  font-size: 42px;
  display: flex;
  align-items: center;
  gap: 2px;
}

.kv__badge-accumulation {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
}

.kv__badge-number-text {
  display: flex;
  align-items: center;
  gap: 2px;
}

.kv__badge-number--cert {
  font-size: 36px;
}

.kv__badge-desc {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: bold;
}

.kv__badge-small {
  font-size: 32px;
}

.kv__badge-more-small {
  font-size: 20px;
}

.kv__message {
  display: flex;
  justify-content: center;
  align-items: end;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.kv__message-text {
  background: #124cb2;
  padding: 10px 20px;
  color: #fff;
  white-space: nowrap;
  border-radius: 10px;
  font-weight: bold;
  font-size: clamp(12px, 1.6vw, 18px);
}

.kv__message-subtext {
  padding-left: 5px;
  font-weight: 500;
  font-size: clamp(12px, 1.6vw, 16px);
}

/* ------------------------------ */
/* KVスライダー */
/* ------------------------------ */
.kv__slider {
  width: 100%;
  margin-top: 40px;
  overflow: hidden;
  position: relative;
}

.kv__slider-track {
  display: flex;
  gap: 24px;
  animation: slide-infinite 40s linear infinite;
  width: fit-content;
}

.kv__slider-item {
  flex-shrink: 0;
  width: 200px;
  height: 150px;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.kv__slider-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
}

@keyframes slide-infinite {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ------------------------------ */
/* KV CTAボタン */
/* ------------------------------ */
.kv__cta {
  width: 100%;
  margin-top: 40px;
  padding: 40px;
  background-color: #b4d55d;
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.kv__cta-btn {
  position: relative;
  width: 320px;
  min-width: 320px;
  max-width: 320px;
  height: 80px;
  border-radius: 50svh;
  border: 5px solid #fff;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 0 20px;
  flex-shrink: 0;
}

.kv__cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.kv__cta-btn--consult {
  background: linear-gradient(
    0deg,
    #84ca57 10.43%,
    #aad443 43.33%,
    #d3dd47 74.94%
  );
  color: #333;
  position: relative;
}

.kv__cta-btn--consult::before {
  content: "";
  width: 40px;
  height: 40px;
  border-radius: 50vh;
  background: #fff;
  opacity: 0.33;

  position: absolute;
  top: 50%;
  right: 15px;
  transform: translateY(-50%);
}

.kv__cta-btn--consult::after {
  content: "";
  width: 12px;
  height: 12px;
  position: absolute;
  top: 50%;
  right: 10%;
  transform: translateY(-50%) rotate(-45deg);
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
}

.kv__cta-btn--cases::before {
  content: "";
  width: 40px;
  height: 40px;
  border-radius: 50vh;
  background: #fff;
  opacity: 0.33;
  position: absolute;
  top: 50%;
  right: 15px;
  transform: translateY(-50%);
}

.kv__cta-btn--cases::after {
  content: "";
  width: 12px;
  height: 12px;
  position: absolute;
  top: 50%;
  right: 10%;
  transform: translateY(-50%) rotate(-45deg);
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
}

.kv__cta-btn--cases {
  background: linear-gradient(
    0deg,
    #124cb2 -22.11%,
    #0a2cb7 13.12%,
    #0839b7 23.18%,
    #0357ba 48.35%,
    #006abb 69.73%,
    #0071bc 84.83%,
    #124cb2 103.7%
  );
  color: #fff;
}

.kv__cta-text-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.kv__cta-label {
  font-size: 14px;
  font-weight: 500;
  display: block;
  position: relative;
}

.kv__cta-label::before {
  content: "";
  width: 1px;
  height: 70%;
  background: #000;
  transform: rotate(-20deg) translate(0, -55%);
  top: 50%;
  left: -5%;
  position: absolute;
}

.kv__cta-label::after {
  content: "";
  width: 1px;
  height: 70%;
  background: #000;
  transform: rotate(20deg) translate(0, -55%);
  top: 50%;
  right: -5%;
  position: absolute;
}

.kv__cta-text {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
}

.kv__cta-text--white {
  color: #fff;
  margin-right: 20px;
  text-align: center;
  font-size: 16px;

}

.kv__cta-btn--consult .kv__cta-text {
  color: #333;
}

.kv__cta-btn--consult .kv__cta-label {
  color: #333;
}

.kv__cta-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.kv__cta-icon--green {
  background-color: #81c784;
}

.kv__cta-icon--blue {
  background-color: #64b5f6;
}

.kv__cta-icon svg {
  width: 24px;
  height: 24px;
}

/* ------------------------------ */
/* レスポンシブ対応 */
/* ------------------------------ */
@media (max-width: 1200px) {
  .header__inner {
    padding: 0 24px;
    gap: 24px;
  }

  /* ハンバーガーメニューボタンを表示 */
  .header__hamburger {
    display: flex;
  }

  /* ナビゲーションを非表示（デフォルト） */
  .header__nav-wrappper {
    position: fixed;
    top: 72px;
    left: 0;
    width: 100%;
    height: calc(100vh - 72px);
    background-color: #fff;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 0;
    padding: 40px 24px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 100;
    overflow-y: auto;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
  }

  .header__nav-wrappper.is-open {
    transform: translateX(0);
  }

  .header__nav {
    flex: none;
    width: 100%;
    margin-bottom: 40px;
  }

  .header__nav-list {
    flex-direction: column;
    gap: 0;
    align-items: stretch;
  }

  .header__nav-list li {
    border-bottom: 1px solid #e0e0e0;
  }

  .header__nav-list li:last-child {
    border-bottom: none;
  }

  .header__nav-list li a {
    display: block;
    padding: 20px 0;
    font-size: 16px;
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
  }

  .header__nav-list li a:hover {
    color: #4caf50;
  }

  .header__buttons {
    flex-direction: row;
    gap: 12px;
    width: 100%;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 0;
  }

  .header__btn {
    width: auto;
    min-width: auto;
    max-width: none;
    flex-shrink: 0;
    justify-content: center;
    padding: 10px 20px;
    white-space: nowrap;
  }

  .header__btn--phone,
  .header__btn--doc {
    padding: 10px 16px;
  }

  .header__btn--phone span:last-child,
  .header__btn--doc span:last-child {
    display: inline;
  }

  .kv__inner {
    gap: 40px;
  }

  .kv__badge {
    width: 160px;
    height: 160px;
  }

  .kv__badge-number {
    font-size: 40px;
  }

  .kv__slider-item {
    width: 180px;
    height: 135px;
  }
}

@media (max-width: 768px) {
  .header__inner {
    flex-wrap: wrap;
    padding: 16px 20px;
  }

  .kv {
    min-height: 500px;
    height: auto;
    padding: 40px 0 80px 0;
    background-position: 60% 50%;
    display: flex;
    align-items: center;
  }

  .kv__content {
    padding: 80px 20px;
  }

  .kv__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  /* .kv__headline {
    margin-bottom: 32px;
  } */

  .kv__title-img {
    max-width: 100%;
  }

  .kv__headline--sub {
    margin-bottom: 12px;
  }

  .kv__badges {
    justify-content: center;
    gap: 5px;
  }

  .kv__message {
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
  }

  .kv__badge {
    width: 150px;
    height: 150px;
  }

  .kv__badge-number {
    font-size: 36px;
  }

  .kv__badge-number--cert {
    font-size: 28px;
  }

  .kv__image {
    max-width: 100%;
  }

  .kv__slider {
    margin-top: 40px;
  }

  .kv__slider-item {
    width: 160px;
    height: 120px;
  }

  .kv__slider-track {
    gap: 16px;
  }

  .kv__cta {
    padding: 40px 20px;
    gap: 16px;
    flex-direction: column;
    align-items: center;
  }

  .kv__cta-icon {
    align-self: flex-end;
  }
}

@media screen and (max-width: 480px) {
  .kv__badge {
    width: 110px;
    height: 110px;
  }
}
