@charset "utf-8";

/* ==========================================================================
   Flow Page
   /flow/
   --------------------------------------------------------------------------
   旧 flow CSS に依存しない独立CSS。
   site-foundation.css が未読込の場合も文字サイズを維持できるよう、
   本ページ内にTypographyフォールバックを持たせる。
   ========================================================================== */

.p-flow {
  --flow-primary: #2d4390;
  --flow-primary-dark: #22336f;
  --flow-accent: #2ca89f;
  --flow-text: #333;
  --flow-muted: #667085;
  --flow-border: #dfe4ec;
  --flow-soft: #f4f7fb;
  --flow-soft-green: #eef8f6;
  --flow-disabled: #f1f2f4;
  --flow-disabled-text: #8a9099;

  --flow-fs-xs: var(--fs-xs, .8125rem);
  --flow-fs-sm: var(--fs-sm, .875rem);
  --flow-fs-note: var(--fs-note, .9375rem);
  --flow-fs-body:
    var(--fs-body, clamp(1rem, .965rem + .17vw, 1.125rem));
  --flow-fs-body-lg:
    var(--fs-body-lg, clamp(1.0625rem, 1.02rem + .2vw, 1.25rem));

  --flow-fs-h1: clamp(2.5rem, 4.2vw, 3.75rem);
  --flow-fs-h2: clamp(2rem, 3vw, 2.75rem);
  --flow-fs-h3: clamp(1.35rem, 1.8vw, 1.75rem);

  --flow-lh-heading: var(--lh-heading, 1.55);
  --flow-lh-body: var(--lh-body, 1.9);

  --flow-font-serif:
    var(
      --font-family-serif,
      "Yu Mincho",
      "YuMincho",
      "Hiragino Mincho ProN",
      serif
    );

  width: 100%;
  color: var(--flow-text);
}

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

.p-flow__container {
  width: min(100% - 40px, 1120px);
  margin: 0 auto;
}


/* ==========================================================================
   HERO
   ========================================================================== */

.p-flow-hero {
  position: relative;
  overflow: hidden;
  padding: 46px 0 56px;

  background-image:
    radial-gradient(
      circle at 12% 18%,
      rgba(0, 119, 0, .18),
      transparent 30%
    ),
    radial-gradient(
      circle at 90% 18%,
      rgba(255, 102, 0, .16),
      transparent 26%
    ),
    linear-gradient(
      135deg,
      rgba(246, 251, 246, .88) 0%,
      rgba(255, 255, 255, .80) 55%,
      rgba(255, 249, 241, .88) 100%
    ),
    url("https://ceremo.jp/wp/wp-content/themes/ceremony/images/set-course/top_slide_01_03_pc.webp");

  background-size: cover, cover, cover, cover;
  background-position: center, center, center, center;
  background-repeat: no-repeat;

  border-bottom: 1px solid var(--flow-border);
}

.p-flow-hero__inner {
  position: relative;
  z-index: 1;

  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;

  width: min(100% - 40px, 1120px);
  min-height: 300px;

  margin: 0 auto;
}

.p-flow-hero__eyebrow {
  margin: 0 0 14px;

  color: var(--flow-primary);

  font-size: var(--flow-fs-sm);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .18em;
}

.p-flow-hero__title {
  max-width: 820px;
  margin: 0;

  color: var(--flow-text);

  font-family: var(--flow-font-serif);
  font-size: var(--flow-fs-h1);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: .04em;
}

.p-flow-hero__lead {
  max-width: 760px;
  margin: 22px 0 0;

  color: #444;

  font-size: var(--flow-fs-body-lg);
  line-height: 1.9;
}


/* ==========================================================================
   COMMON SECTION HEADER
   ========================================================================== */

.p-flow-section-header {
  max-width: 880px;
  margin: 0 auto 44px;
  text-align: center;
}

.p-flow-section-header--left {
  max-width: none;
  text-align: left;
}

.p-flow-section-header__eyebrow {
  margin: 0 0 10px;

  color: var(--flow-primary);

  font-size: var(--flow-fs-sm);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .16em;
}

.p-flow-section-header__title {
  margin: 0;

  color: var(--flow-text);

  font-family: var(--flow-font-serif);
  font-size: var(--flow-fs-h2);
  font-weight: 700;
  line-height: var(--flow-lh-heading);
  letter-spacing: .04em;
}

.p-flow-section-header__lead {
  margin: 20px auto 0;

  font-size: var(--flow-fs-body);
  line-height: var(--flow-lh-body);
}

.p-flow-section-header__note {
  margin: 14px auto 0;

  color: var(--flow-muted);

  font-size: var(--flow-fs-note);
  line-height: 1.7;
}


/* ==========================================================================
   INTRO / STICKY TABS
   ========================================================================== */

.p-flow-intro {
  padding: 88px 0 72px;
}

.p-flow-tabbar {
  position: sticky;
  top: 0;
  z-index: 30;

  padding: 10px 0;

  border-top: 1px solid var(--flow-border);
  border-bottom: 1px solid var(--flow-border);

  background: rgba(255, 255, 255, .96);

  box-shadow: 0 6px 16px rgba(28, 40, 70, .08);

  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.p-flow-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));

  width: 100%;
  margin: 0;

  border: 1px solid var(--flow-border);
  background: #fff;
}

.p-flow-tab {
  position: relative;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  min-width: 0;
  min-height: 82px;

  padding: 14px 10px;

  border: 0;
  border-right: 1px solid var(--flow-border);

  background: #fff;
  color: var(--flow-text);

  text-align: center;
  cursor: pointer;

  transition:
    background-color .2s ease,
    color .2s ease;
}

.p-flow-tab:last-child {
  border-right: 0;
}

.p-flow-tab::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;

  height: 4px;

  background: transparent;
  content: "";
}

.p-flow-tab.is-active {
  background: var(--flow-soft);
  color: var(--flow-primary);
}

.p-flow-tab.is-active::after {
  background: var(--flow-primary);
}

.p-flow-tab__title {
  display: block;
  width: 100%;

  font-size: var(--flow-fs-body-lg);
  font-weight: 700;
  line-height: 1.45;

  white-space: nowrap;
}

.p-flow-tab__sub {
  display: block;
  width: 100%;

  margin-top: 5px;

  color: var(--flow-muted);

  font-size: var(--flow-fs-sm);
  line-height: 1.4;

  white-space: nowrap;
}


/* ==========================================================================
   FLOW STEPS
   ========================================================================== */

.p-flow-steps-section {
  padding: 84px 0 96px;
  background: var(--flow-soft);
}

.p-flow-steps {
  display: grid;
  gap: 18px;

  margin: 0;
  padding: 0;

  list-style: none;
}

.p-flow-step {
  position: relative;

  display: grid;
  grid-template-columns: 68px 280px minmax(0, 1fr);
  gap: 26px;
  align-items: stretch;

  min-height: 230px;

  padding: 24px;

  border: 1px solid var(--flow-border);

  background: #fff;

  transition:
    background-color .2s ease,
    border-color .2s ease,
    opacity .2s ease;
}

.p-flow-step__number {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 54px;
  height: 54px;

  margin-top: 2px;

  background: var(--flow-primary);
  color: #fff;

  font-size: var(--flow-fs-sm);
  font-weight: 700;
  line-height: 1;
  letter-spacing: .08em;
}

.p-flow-step__media {
  margin: 0;
  overflow: hidden;

  background: #e9edf3;
}

.p-flow-step__media img {
  display: block;

  width: 100%;
  height: 100%;
  min-height: 180px;

  object-fit: cover;

  transition:
    filter .2s ease,
    opacity .2s ease;
}

.p-flow-step__body {
  min-width: 0;
  padding: 2px 8px 2px 0;
}

.p-flow-step__heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}

.p-flow-step__title {
  margin: 0;

  font-family: var(--flow-font-serif);
  font-size: var(--flow-fs-h3);
  font-weight: 700;
  line-height: var(--flow-lh-heading);
}

.p-flow-step__text {
  margin: 16px 0 0;

  font-size: var(--flow-fs-body);
  line-height: var(--flow-lh-body);
}

.p-flow-step__support {
  margin: 18px 0 0;
  padding: 14px 16px;

  border-left: 3px solid var(--flow-accent);

  background: var(--flow-soft-green);

  font-size: var(--flow-fs-sm);
  line-height: 1.75;
}

.p-flow-step__support a {
  color: var(--flow-primary);
  font-weight: 700;
}

.p-flow-step__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  margin-top: 20px;

  color: var(--flow-primary);

  font-size: var(--flow-fs-body);
  font-weight: 700;
  line-height: 1.6;

  text-decoration: none;
}

.p-flow-step__link:hover,
.p-flow-step__link:focus {
  text-decoration: underline;
  text-underline-offset: .2em;
}

.p-flow-step__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;

  margin-top: 18px;
}

.p-flow-step__links a {
  color: var(--flow-primary);

  font-size: var(--flow-fs-sm);
  font-weight: 700;
  line-height: 1.6;

  text-decoration: none;
}

.p-flow-step__links a:hover,
.p-flow-step__links a:focus {
  text-decoration: underline;
  text-underline-offset: .2em;
}

.p-flow-step__skip-note {
  display: none;

  padding: 5px 10px;

  border: 1px solid #c8ccd2;

  background: #fff;
  color: #737982;

  font-size: var(--flow-fs-xs);
  font-weight: 700;
  line-height: 1.4;
}


/* ==========================================================================
   DISABLED STEP
   ========================================================================== */

.p-flow-step.is-disabled {
  border-color: #d7d9de;
  background: var(--flow-disabled);
  color: var(--flow-disabled-text);
}

.p-flow-step.is-disabled .p-flow-step__number {
  background: #aeb3ba;
}

.p-flow-step.is-disabled .p-flow-step__media img {
  filter: grayscale(1);
  opacity: .48;
}

.p-flow-step.is-disabled .p-flow-step__title,
.p-flow-step.is-disabled .p-flow-step__text {
  color: var(--flow-disabled-text);
}

.p-flow-step.is-disabled .p-flow-step__skip-note {
  display: inline-block;
}


/* ==========================================================================
   RESOURCES / PDF
   ========================================================================== */

.p-flow-resources {
  padding: 96px 0;
}

.p-flow-resources__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;

  max-width: 920px;
  margin: 0 auto;
}

.p-flow-resource-card {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;

  min-height: 132px;

  padding: 24px;

  border: 1px solid var(--flow-border);

  background: #fff;
  color: var(--flow-text);

  text-decoration: none;

  transition:
    background-color .2s ease,
    border-color .2s ease;
}

.p-flow-resource-card:hover,
.p-flow-resource-card:focus {
  border-color: #bcc5d4;
  background: var(--flow-soft);
  color: var(--flow-text);
}

.p-flow-resource-card__pdf {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 56px;
  height: 56px;

  border: 2px solid #c54343;
  border-radius: 4px;

  color: #b42f2f;

  font-size: var(--flow-fs-xs);
  font-weight: 700;
  line-height: 1;
  letter-spacing: .05em;
}

.p-flow-resource-card__body {
  display: block;
}

.p-flow-resource-card__body strong {
  display: block;

  font-size: var(--flow-fs-body-lg);
  line-height: 1.55;
}

.p-flow-resource-card__body > span {
  display: block;

  margin-top: 6px;

  color: var(--flow-muted);

  font-size: var(--flow-fs-sm);
  line-height: 1.6;
}

.p-flow-resource-card__arrow {
  color: var(--flow-primary);

  font-size: 1.35rem;
  line-height: 1;
}


/* ==========================================================================
   RELATED
   ========================================================================== */

.p-flow-related {
  padding: 96px 0;
  background: var(--flow-soft);
}

.p-flow-related__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));

  border-top: 1px solid var(--flow-border);
  border-left: 1px solid var(--flow-border);
}

.p-flow-related-card {
  display: flex;
  flex-direction: column;

  min-height: 220px;

  padding: 28px 24px;

  border-right: 1px solid var(--flow-border);
  border-bottom: 1px solid var(--flow-border);

  background: #fff;
  color: var(--flow-text);

  text-decoration: none;

  transition: background-color .2s ease;
}

.p-flow-related-card:hover,
.p-flow-related-card:focus {
  background: #f8fafc;
  color: var(--flow-text);
}

.p-flow-related-card__label {
  color: var(--flow-primary);

  font-size: var(--flow-fs-xs);
  font-weight: 700;
  letter-spacing: .12em;
}

.p-flow-related-card strong {
  display: block;

  margin-top: 22px;

  font-family: var(--flow-font-serif);
  font-size: var(--flow-fs-h3);
  line-height: var(--flow-lh-heading);
}

.p-flow-related-card > span:last-child {
  display: block;

  margin-top: auto;
  padding-top: 22px;

  color: var(--flow-muted);

  font-size: var(--flow-fs-sm);
  line-height: 1.7;
}


/* ==========================================================================
   CONSULTATION
   ========================================================================== */

.p-flow-consultation {
  padding: 96px 0;
}

.p-flow-consultation__box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 50px;
  align-items: center;

  padding: 42px 48px;

  background: var(--flow-primary);
  color: #fff;
}

.p-flow-consultation__box .p-flow-section-header__eyebrow {
  color: rgba(255, 255, 255, .75);
}

.p-flow-consultation__title {
  margin: 0;

  color: #fff;

  font-family: var(--flow-font-serif);
  font-size: var(--flow-fs-h2);
  line-height: var(--flow-lh-heading);
}

.p-flow-consultation__text {
  margin: 16px 0 0;

  font-size: var(--flow-fs-body);
  line-height: var(--flow-lh-body);
}

.p-flow-consultation__actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;

  min-width: 290px;
}

.p-flow-consultation__tel {
  display: block;

  padding: 12px 18px;

  border: 1px solid rgba(255, 255, 255, .55);

  color: #fff;

  text-align: center;
  text-decoration: none;
}

.p-flow-consultation__tel:hover,
.p-flow-consultation__tel:focus {
  background: rgba(255, 255, 255, .08);
  color: #fff;
}

.p-flow-consultation__tel-label {
  display: block;

  font-size: var(--flow-fs-sm);
  line-height: 1.5;
}

.p-flow-consultation__tel strong {
  display: block;

  margin-top: 4px;

  font-size: clamp(1.7rem, 2.4vw, 2.2rem);
  line-height: 1.2;
  letter-spacing: .03em;
}

.p-flow-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;

  min-height: 54px;

  padding: 12px 20px;

  border: 1px solid #fff;

  font-size: var(--flow-fs-body);
  font-weight: 700;
  line-height: 1.5;

  text-decoration: none;
}

.p-flow-button--light {
  background: #fff;
  color: var(--flow-primary);
}

.p-flow-button--light:hover,
.p-flow-button--light:focus {
  background: transparent;
  color: #fff;
}


/* ==========================================================================
   ACCESSIBILITY
   ========================================================================== */

.p-flow button:focus-visible,
.p-flow a:focus-visible {
  outline: 3px solid rgba(44, 168, 159, .48);
  outline-offset: 4px;
}


/* ==========================================================================
   TABLET
   ========================================================================== */

@media screen and (max-width: 980px) {

  .p-flow-step {
    grid-template-columns: 58px 220px minmax(0, 1fr);
    gap: 20px;
  }

  .p-flow-related__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .p-flow-consultation__box {
    grid-template-columns: 1fr;
  }

  .p-flow-consultation__actions {
    min-width: 0;
    max-width: 360px;
  }

}


/* ==========================================================================
   SMARTPHONE
   ========================================================================== */

@media screen and (max-width: 768px) {

  .p-flow {
    --flow-fs-h1: clamp(2.1rem, 9vw, 2.9rem);
    --flow-fs-h2: clamp(1.75rem, 7vw, 2.3rem);
    --flow-fs-h3: clamp(1.3rem, 5.4vw, 1.6rem);
  }

  .p-flow__container {
    width: min(100% - 28px, 1120px);
  }

  .p-flow-hero {
    padding: 38px 0 44px;

    background-position:
      center,
      center,
      center,
      58% center;
  }

  .p-flow-hero__inner {
    width: min(100% - 28px, 1120px);
    min-height: 280px;
  }

  .p-flow-hero__lead br {
    display: none;
  }

  .p-flow-section-header {
    margin-bottom: 30px;
    text-align: left;
  }

  .p-flow-intro {
    padding: 64px 0 52px;
  }

  .p-flow-tabbar {
    padding: 7px 0;
  }

  .p-flow-tabbar .p-flow__container {
    width: min(100% - 16px, 1120px);
  }

  .p-flow-tab {
    min-height: 68px;
    padding: 10px 4px;
  }

  .p-flow-tab__title {
    font-size: clamp(.86rem, 3.5vw, 1rem);
  }

  .p-flow-tab__sub {
    margin-top: 3px;
    font-size: clamp(.68rem, 2.8vw, .8rem);
  }

  .p-flow-steps-section,
  .p-flow-resources,
  .p-flow-related,
  .p-flow-consultation {
    padding: 64px 0;
  }

  .p-flow-step {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 14px;

    min-height: 0;

    padding: 18px;
  }

  .p-flow-step__number {
    width: 42px;
    height: 42px;
  }

  .p-flow-step__media {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .p-flow-step__media img {
    aspect-ratio: 16 / 9;
    min-height: 0;
  }

  .p-flow-step__body {
    grid-column: 1 / -1;
    grid-row: 3;

    padding: 0;
  }

  .p-flow-step__heading {
    align-items: flex-start;
  }

  .p-flow-step__links {
    display: grid;
    gap: 8px;
  }

  .p-flow-resources__grid,
  .p-flow-related__grid {
    grid-template-columns: 1fr;
  }

  .p-flow-resource-card {
    grid-template-columns: 48px minmax(0, 1fr) auto;

    min-height: 116px;

    padding: 18px;
  }

  .p-flow-resource-card__pdf {
    width: 48px;
    height: 48px;
  }

  .p-flow-related-card {
    min-height: 180px;
  }

  .p-flow-consultation__box {
    gap: 28px;

    padding: 30px 22px;
  }

  .p-flow-consultation__actions {
    max-width: none;
  }

}


/* ==========================================================================
   SMALL SMARTPHONE
   ========================================================================== */

@media screen and (max-width: 390px) {

  .p-flow-resource-card {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .p-flow-resource-card__pdf {
    width: 44px;
    height: 44px;
  }

  .p-flow-resource-card__arrow {
    display: none;
  }

}


/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {

  .p-flow-tab,
  .p-flow-step,
  .p-flow-step__media img,
  .p-flow-resource-card,
  .p-flow-related-card {
    transition: none;
  }

}
