/* 共通変数 */
:root {
  --header-wave-h: 58px;
  --hero-bottom-wave-h: 40px;
  --hero-content-h: 140px;
  --hero-safe-top: calc(var(--header-wave-h) + 18px);
  --hero-safe-bottom: calc(var(--hero-bottom-wave-h) + 10px);
}

/* ヘッダー下の波 */
.cloud-bottom {
  position: relative;
  line-height: 0;
  margin-bottom: -1px;
  z-index: 10;
}

.cloud-bottom svg {
  display: block;
  width: 100%;
  height: var(--header-wave-h);
}

.cloud-bottom path {
  fill: #ffffff;
}

body {
  font-family: "Zen Maru Gothic", "Hiragino Sans", "Yu Gothic", sans-serif;
  color: #5b4a42;
}

/* PC改行コントロール　<br class="pc-br"> 　*/
.pc-br {
  display: block;
}

@media (max-width: 768px) {
  .pc-br {
    display: none;
  }
}

/* mobile改行コントロール　<br class="u-sp-only"> 　*/
.u-sp-only {
  display: none;
}

@media (max-width: 768px) {
  .u-sp-only {
    display: block;
  }
}

/*==========================
  タイトル
============================*/
.page-hero {
  position: relative;
  overflow: hidden;
  background: #f8f3ed;
  z-index: 1;
  min-height: calc(
    var(--hero-content-h) + var(--hero-safe-top) + var(--hero-safe-bottom)
  );
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.page-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.76) 0%,
    rgba(255, 255, 255, 0.58) 45%,
    rgba(255, 255, 255, 0.64) 100%
  );
}

.page-hero-inner {
  position: relative;
  z-index: 3;
  box-sizing: border-box;
  min-height: calc(
    var(--hero-content-h) + var(--hero-safe-top) + var(--hero-safe-bottom)
  );
  padding-top: var(--hero-safe-top);
  padding-right: 20px;
  padding-bottom: var(--hero-safe-bottom);
  padding-left: 20px;
  display: grid;
  place-items: center;
  text-align: center;
}

.page-hero-title {
  margin: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-hero-title img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 92px;
  margin: 0 auto;
  filter: drop-shadow(0 0 16px rgba(255, 255, 255, 0.95))
    drop-shadow(0 0 28px rgba(255, 255, 255, 0.9));
}

.page-hero-wave {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  line-height: 0;
  z-index: 4;
  pointer-events: none;
}

.page-hero-wave svg {
  display: block;
  width: 100%;
  height: var(--hero-bottom-wave-h);
}

.page-hero-wave path {
  fill: #eaf3f6; /* 次セクションの背景色に合わせる */
}

@media (max-width: 1024px) {
  :root {
    --header-wave-h: 48px;
    --hero-bottom-wave-h: 32px;
    --hero-content-h: 150px;
    --hero-safe-top: calc(var(--header-wave-h) + 26px);
    --hero-safe-bottom: calc(var(--hero-bottom-wave-h) + 10px);
  }

  .page-hero-title img {
    max-height: 78px;
  }
}

@media (max-width: 640px) {
  :root {
    --header-wave-h: 34px;
    --hero-bottom-wave-h: 22px;
    --hero-content-h: 120px;
    --hero-safe-top: calc(var(--header-wave-h) + 48px);
    --hero-safe-bottom: calc(var(--hero-bottom-wave-h) + 8px);
  }

  .page-hero-inner {
    padding-top: var(--hero-safe-top);
    padding-right: 15px;
    padding-left: 15px;
  }

  .page-hero-title img {
    max-height: 54px;
  }
}

/*==========================
  セクションタイトル
============================*/
.section-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  column-gap: 18px;
  width: 100%;
  margin-bottom: 30px;
}

.section-title-side {
  min-width: 0;
  display: flex;
  align-items: center;
}

.section-title-side-left {
  justify-content: flex-end;
}

.section-title-side-right {
  justify-content: flex-start;
}

.section-title-side img {
  display: block;
  width: min(100%, 210px);
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

.section-title-main {
  display: flex;
  justify-content: center;
}

.section-title-main img {
  display: block;
  width: 250px;
  max-width: 100%;
  height: auto;
}

@media (max-width: 1024px) {
  .section-title {
    column-gap: 14px;
    margin-bottom: 24px;
  }

  .section-title-side img {
    width: min(100%, 140px);
  }

  .section-title-main img {
    width: 180px;
  }
}

@media (max-width: 768px) {
  .section-title {
    column-gap: 8px;
    margin-bottom: 20px;
  }

  .section-title-side {
    height: 34px;
    overflow: hidden;
  }

  .section-title-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .section-title-main img {
    width: 230px;
  }
}

/*==========================
　　導入文
============================*/
.event-section {
  position: relative;
  background: #eaf3f6;
  padding: 80px 20px 100px;
  text-align: center;
  overflow: hidden;
}

.event-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
}

/* タイトル画像 */
.event-title {
  margin: 0 0 34px;
}

.event-title img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

/* 本文と左右写真 */
.event-content {
  display: grid;
  grid-template-columns: minmax(140px, 260px) minmax(0, 1fr) minmax(
      140px,
      260px
    );
  align-items: center;
  gap: 28px;
}

.event-side {
  display: block;
}

.event-side img {
  display: block;
  width: 100%;
  height: auto;
}

.event-side-left {
  text-align: right;
}

.event-side-right {
  text-align: left;
}

/* 本文 */
.event-text {
  max-width: 560px;
  margin: 0 auto;
}

.event-text p {
  margin: 0;
  font-size: 20px;
  line-height: 2.1;
  color: #333;
}

/* 下画像は初期非表示 */
.event-mobile-image {
  display: none;
  margin-top: 28px;
}

.event-mobile-image img {
  display: block;
  width: 100%;
  max-width: 340px;
  height: auto;
  margin: 0 auto;
}

/* 下の波 */
.event-wave {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  line-height: 0;
  z-index: 1;
  pointer-events: none;
}

.event-wave svg {
  display: block;
  width: 100%;
  height: 44px;
}

.event-wave path {
  fill: #fffcf1; /* 次セクション背景色に合わせる */
}

@media (max-width: 940px) {
  .event-section {
    padding: 52px 16px 58px;
  }

  .event-title {
    margin-bottom: 22px;
  }

  .event-content {
    display: block;
  }

  .event-side {
    display: none !important;
  }

  .event-text {
    max-width: 100%;
  }

  .event-text p {
    font-size: 17px;
    line-height: 1.95;
  }

  .event-mobile-image {
    display: block !important;
    margin-top: 24px;
  }

  .event-mobile-image img {
    max-width: 350px;
  }

  .event-wave svg {
    height: 24px;
  }
}

/*==========================
　　安置方法
============================*/
.flow-section,
.flow-section * {
  box-sizing: border-box;
}

.flow-section {
  position: relative;
  width: 100%;
  padding: 40px 0 90px;
  background: #fffcf1;
  overflow: hidden;
}

.flow-section .page-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 2;
}

/* リード文 */
.flow-lead {
  margin: 0 auto 34px;
  text-align: center;
  color: #4b3f37;
  font-size: 20px;
  font-weight: 700;
  line-height: 2;
  letter-spacing: 0.06em;
}

/* カード */
.flow-section .content {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.flow-section .card {
  position: relative;
  display: grid;
  grid-template-columns: 82px 1fr 320px;
  align-items: center;
  gap: 24px;
  width: 100%;
  padding: 34px 36px;
  background: #ffff;
  border: 3px solid #73c800;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(99, 179, 143, 0.12);
}

/* 番号 */
.flow-number {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #63b38f;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.04em;
  border: 3px solid #ffffff;
}

.flow-section .text {
  min-width: 0;
}

.flow-section .card-title {
  display: inline-block;
  margin: 0 0 16px;
  padding-bottom: 8px;
  color: #4b3f37;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: 0.05em;
  border-bottom: 4px dotted #63b38f;
}

.flow-section .body-text {
  margin: 0;
  color: #333;
  font-size: 18px;
  line-height: 2;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.flow-section .image-wrap {
  width: 320px;
  max-width: 100%;
  text-align: center;
}

.flow-section .image-wrap img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
}

/* 下部メッセージ */
.flow-message {
  margin-top: 26px;
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.flow-message-icon {
  width: 54px;
  height: 54px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #fff;
  color: #ef7d7d;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  font-weight: 700;
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.06);
}

.flow-message p {
  margin: 0;
  color: #315c57;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.9;
  letter-spacing: 0.05em;
}

.flow-section .accent {
  color: #63b38f;
  font-weight: 700;
}

/* 下の波 */
.flow-section .flow-wave2 {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  line-height: 0;
  z-index: 1;
  pointer-events: none;
}

.flow-section .flow-wave2 svg {
  display: block;
  width: 100%;
  height: 44px;
}

.flow-section .flow-wave2 path {
  fill: #f1f7e7;
}

@media (max-width: 1024px) {
  .flow-section {
    padding: 36px 0 72px;
  }

  .flow-section .page-inner {
    padding: 0 18px;
  }

  .flow-section .features-title {
    column-gap: 14px;
    margin-bottom: 22px;
  }

  .flow-section .features-title-image-left img,
  .flow-section .features-title-image-right img {
    width: min(100%, 140px);
  }

  .flow-section .features-title-image-main img {
    width: 220px;
  }

  .flow-section .card {
    grid-template-columns: 70px 1fr 260px;
    gap: 20px;
    padding: 28px 24px;
  }

  .flow-number {
    width: 62px;
    height: 62px;
    font-size: 24px;
  }

  .flow-section .card-title {
    font-size: 21px;
  }

  .flow-section .body-text {
    font-size: 15px;
  }

  .flow-section .image-wrap {
    width: 260px;
  }

  .flow-section .flow-wave2 svg {
    height: 34px;
  }
}

@media (max-width: 768px) {
  .flow-section {
    padding: 30px 0 58px;
  }

  .flow-lead {
    font-size: 18px;
    line-height: 1.9;
    margin-bottom: 24px;
  }

  .flow-section .content {
    gap: 18px;
  }

  .flow-section .card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding: 24px 18px;
    text-align: left;
    border-width: 2px;
  }

  .flow-number {
    width: 64px;
    height: 64px;
    font-size: 24px;
  }

  .flow-section .text {
    width: 100%;
  }

  .flow-section .card-title {
    width: 100%;
    font-size: 19px;
    line-height: 1.55;
  }

  .flow-section .body-text {
    font-size: 17px;
    line-height: 1.9;
  }

  .flow-section .image-wrap {
    width: 100%;
    max-width: 240px;
    margin: 0 auto;
  }

  .flow-message {
    flex-direction: column;
    gap: 10px;
    padding: 20px 16px;
    text-align: center;
  }

  .flow-message p,
  .flow-section .accent {
    font-size: 15px;
  }

  .flow-section .flow-wave svg {
    height: 24px;
  }
}

/*==========================
　　当日までに準備
============================*/
.flow-intro {
  position: relative;
  padding: 60px 0 20px;
  background: #fffcf1;
  overflow: hidden;
}

.flow-intro .flow-wave {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  line-height: 0;
  z-index: 1;
  pointer-events: none;
}

.flow-intro .flow-wave svg {
  display: block;
  width: 100%;
  height: 44px;
}

.flow-intro .flow-wave path {
  fill: #fff7f3;
}

.flow-intro-inner {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 60px;
}

.flow-intro-left {
  width: 38%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.flow-intro-title-image img {
  max-width: 100%;
  height: auto;
  display: block;
}

.flow-intro-subtitle {
  display: inline-block;
  margin-top: 24px;
  padding-bottom: 12px;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.5;
  color: #333;
  border-bottom: 3px solid #73c800;
  white-space: nowrap;
  align-self: flex-start;
}

.flow-intro-text {
  margin-top: 1px;
  font-size: 17px;
  line-height: 2;
  color: #555;
}

.flow-intro-right {
  width: 58%;
  margin-top: 78px; /* 4つ横並びの時だけ下げる */
}

.flow-intro-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  align-items: start;
}

.flow-intro-item {
  text-align: center;
}

.flow-intro-item-image {
  width: 100%;
  max-width: 160px;
  height: 120px;
  margin: 0 auto 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flow-intro-item-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.flow-intro-item-text {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.7;
  color: #444;
  text-align: center;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.flow-intro-item-text--nowrap {
  white-space: nowrap;
}

@media screen and (max-width: 1180px) {
  .flow-intro-inner {
    align-items: center;
    gap: 28px;
  }

  .flow-intro-left {
    width: 42%;
  }

  .flow-intro-right {
    width: 58%;
    margin-top: 0; /* 22pxレイアウトでは元の位置に戻す */
  }

  .flow-intro-subtitle {
    font-size: 1.05rem;
  }

  .flow-intro-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
  }

  .flow-intro-item-image {
    max-width: 170px;
    height: 128px;
    margin-bottom: 6px;
  }

  .flow-intro-item-text {
    font-size: 0.9rem;
    line-height: 1.65;
  }
}

@media screen and (max-width: 768px) {
  .flow-intro {
    padding: 60px 0 50px;
  }

  .flow-intro-inner {
    display: block;
  }

  .flow-intro-left,
  .flow-intro-right {
    width: 100%;
  }

  .flow-intro-right {
    margin-top: 32px;
  }

  .flow-intro-subtitle {
    font-size: 18.5px;
    white-space: normal;
  }

  .flow-intro-text {
    font-size: 17px;
  }

  .flow-intro-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
  }

  .flow-intro-item-image {
    max-width: 150px;
    height: 112px;
    margin-bottom: 6px;
  }

  .flow-intro-item-text {
    font-size: 0.85rem;
    line-height: 1.6;
  }

  .flow-intro-item-text--nowrap {
    white-space: normal;
  }
}

/*==========================
  CTA
============================*/
.cta-section,
.cta-section * {
  box-sizing: border-box;
}

.cta-section {
  position: relative;
  z-index: 2;
  background: #fff7f3;
  padding: 100px 20px 145px;
  margin: 0;
  overflow: hidden;
}

.cta-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.cta-tel {
  display: block;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.cta-tel img {
  display: block;
  width: 100%;
  height: auto;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 44px;
}

.cta-button {
  width: 46%;
  max-width: 520px;
  min-height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.cta-button:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

.cta-button img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  display: block;
}

.cta-button-mail {
  background: #1696e7;
}

.cta-button-line {
  background: #06c755;
}

.cta-notes {
  margin-top: 34px;
  text-align: left;
  display: inline-block;
}

.cta-notes p {
  margin: 5px 0;
  font-size: 20px;
  line-height: 1.8;
  color: #5a4a43;
}

/* CTA → Footer 波 */
.cta-footer-wave {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  line-height: 0;
  z-index: 1;
  pointer-events: none;
}

.cta-footer-wave svg {
  display: block;
  width: 100%;
  height: 44px;
}

.cta-footer-wave path {
  fill: #fdf5e6;
}

@media (max-width: 640px) {
  .cta-section {
    padding: 72px 16px 105px;
    margin: 0;
  }

  .cta-buttons {
    flex-direction: column;
    gap: 16px;
    margin-top: 26px;
  }

  .cta-button {
    width: 100%;
    max-width: 100%;
    min-height: 68px;
    font-size: 18px;
    gap: 10px;
  }

  .cta-button img {
    width: 28px;
    height: 28px;
  }

  .cta-notes {
    margin-top: 22px;
  }

  .cta-notes p {
    font-size: 16px;
  }

  .cta-footer-wave svg {
    height: 24px;
  }
}

/*==========================
  流れ
============================*/
.usage-flow-section,
.usage-flow-section * {
  box-sizing: border-box;
}

.usage-flow-section {
  position: relative;
  background: #f1f7e7;
  padding: 90px 20px 120px;
  overflow: hidden;
}

.usage-flow-section .section-title-main img {
  max-width: 400px;
  width: 100%;
}

.usage-flow-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.usage-flow-title {
  margin: 0 0 42px;
}

.usage-flow-title img {
  display: block;
  max-width: 260px;
  width: 100%;
  height: auto;
  margin: 0 auto;
}

.usage-flow-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 70px;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
}

.usage-flow-steps::before {
  content: "";
  position: absolute;
  top: 78px;
  left: 15%;
  right: 15%;
  height: 2px;
  background: #999;
  z-index: 0;
}

.usage-flow-step {
  position: relative;
}

.usage-flow-number {
  position: absolute;
  top: -10px;
  left: 10px;
  margin: 0;
  font-size: 42px;
  line-height: 1;
  font-weight: 700;
  color: #e5e5e5;
  z-index: 0;
}

.usage-flow-icon {
  width: 150px;
  height: 150px;
  margin: 0 auto 14px;
  border: 3px solid #777;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.usage-flow-icon img {
  display: block;
  width: 120px;
  height: 120px;
  object-fit: contain;
}

.usage-flow-text {
  margin: 0;
  font-size: 17px;
  line-height: 1.8;
  color: #555;
  font-weight: 700;
}

.usage-flow-text span {
  color: #6bbf59;
}

.usage-flow-note {
  margin: 42px 0 0;
  font-size: 12px;
  line-height: 1.8;
  color: #777;
}

/* 次セクションにつなぐ波 */
.usage-flow-wave {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  line-height: 0;
  z-index: 1;
  pointer-events: none;
}

.usage-flow-wave svg {
  display: block;
  width: 100%;
  height: 44px;
}

.usage-flow-wave path {
  fill: #fff7f3; /* 次のセクション背景色に変更 */
}

@media (max-width: 768px) {
  .usage-flow-section {
    padding: 64px 16px 92px;
  }

  .usage-flow-title {
    margin-bottom: 34px;
  }

  .usage-flow-title img {
    max-width: 210px;
  }

  .usage-flow-steps {
    display: block;
    max-width: 320px;
  }

  .usage-flow-steps::before {
    display: none;
  }

  .usage-flow-step + .usage-flow-step {
    margin-top: 34px;
  }

  .usage-flow-number {
    font-size: 36px;
  }

  .usage-flow-icon {
    width: 120px;
    height: 120px;
  }

  .usage-flow-icon img {
    width: 100px;
    height: 100px;
  }

  .usage-flow-text {
    font-size: 17px;
  }

  .usage-flow-note {
    margin-top: 32px;
    font-size: 11px;
  }

  .usage-flow-wave svg {
    height: 24px;
  }

  .usage-flow-section .section-title-main img {
    max-width: 250px;
  }
}
