@charset "UTF-8";

/*
  - 固定幅の画像枠を画面幅に応じて伸縮させる
  - 半幅PC、タブレット、スマートフォンで横並びを自然に縦並びへ切り替える
  - このCSSは各ページの最後に読み込む
*/

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  overflow-x: hidden;
}

img,
video,
iframe {
  max-width: 100%;
}

img,
video {
  height: auto;
}

.container,
.hero-inner,
.costs,
.flow-container,
.document-box {
  max-width: 100%;
}

.container,
.hero-inner {
  width: min(calc(100% - 40px), 1200px);
  margin-inline: auto;
}

.hero-inner {
  width: min(calc(100% - 40px), 1350px);
}

.text-area,
.flow-steps-area,
.step-content,
.card {
  min-width: 0;
}

.text-area {
  flex: 1 1 clamp(360px, 48vw, 720px);
}

.flow-steps-area {
  flex: 1 1 clamp(420px, 52vw, 820px);
}

.document-box,
.flow-container {
  display: flex;
  align-items: flex-start;
}

.document-box {
  gap: clamp(28px, 4vw, 60px);
}

.flow-container {
  width: min(calc(100% - 40px), 1500px);
  margin-inline: auto;
  gap: clamp(32px, 6vw, 100px);
}

.image-area {
  flex: 0 1 clamp(320px, 42vw, 650px);
  width: auto;
  max-width: 100%;
}

.flow-image-area {
  flex: 0 1 clamp(320px, 40vw, 700px);
  width: auto;
  max-width: 100%;
}

.image-area img,
.flow-side-image,
.content-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

h1 {
  font-size: clamp(1.9rem, 3.8vw, 3.125rem);
  line-height: 1.25;
}

h2,
.news-title {
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  line-height: 1.35;
}

.stripe-underline {
  /* 縞模様の下線が文字に重ならないよう、下線専用の余白を確保します */
  padding-bottom: 0.18em;
}

.stripe-underline::after {
  /* 既存の水色と白の縞模様は維持し、文字の下端から少しだけ離します */
  bottom: 0;
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  line-height: 1.55;
}

.swiper-slider-home .hero-text-box h3 {
  /* トップの大見出しは本文中のh3とは役割が違うため、元の大きさに近い表示を維持します */
  font-size: clamp(2.25rem, 4.2vw, 3.125rem);
  line-height: 1.25;
}

p,
li,
summary {
  line-height: 1.75;
  overflow-wrap: anywhere;
  word-break: normal;
}

p {
  font-size: clamp(1rem, 1.55vw, 1.25rem);
}

@media (min-width: 1101px) and (max-width: 1400px) {
  /* 横並びを維持している幅では、画像だけでなく文章も少しずつ縮めます */
  .document-box .text-area h3 {
    font-size: clamp(1.15rem, 1.65vw, 1.5rem);
    line-height: 1.6;
  }

  .flow-step .step-content h3 {
    font-size: clamp(1.15rem, 1.55vw, 1.6rem);
    line-height: 1.55;
  }

  .document-box .text-area p,
  .flow-step .step-content p {
    font-size: clamp(0.98rem, 1.3vw, 1.25rem);
    line-height: 1.75;
  }
}

.grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

.flow-step {
  width: 100%;
}

.jump-button,
.back-button {
  max-width: min(100%, 720px);
  white-space: normal;
}

.animate-section {
  opacity: 1;
  transform: translateY(0);
}

a[target="_blank"]:not([rel]) {
  outline: 2px solid transparent;
}

summary:focus-visible,
a:focus-visible,
button:focus-visible,
.card:focus-visible {
  outline: 3px solid #e67e22;
  outline-offset: 3px;
}

@media (max-width: 1100px) {
  .document-box,
  .flow-container {
    flex-direction: column;
  }

  .image-area,
  .flow-image-area {
    flex-basis: auto;
    width: min(100%, 760px);
    margin-inline: auto;
    position: static;
  }

  .flow-steps-area,
  .text-area {
    width: 100%;
  }
}

@media (max-width: 700px) {
  .container,
  .hero-inner,
  .flow-container {
    width: min(calc(100% - 28px), 1200px);
  }

  .document-box,
  .flow-container {
    gap: 24px;
  }

  .flow-step {
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
  }

  .step-number {
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
  }

  .card {
    padding: 22px;
  }
}

@media (max-width: 768px) {
  .swiper-slider-home .hero-text-box h3 {
    /* custom.cssのスマホ用指定より後で読み込まれるため、トップ見出しだけ適正サイズに戻します */
    font-size: clamp(1.7rem, 7vw, 2.1rem) !important;
    line-height: 1.3 !important;
  }
}

@media (max-width: 420px) {
  .flow-step {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
