@charset "UTF-8";

/* =========================================================
   08. FLOW
   七五三撮影当日の流れ
   お宮参りFLOW寄せ / CSSタブ切り替え版
   ファイル名：08-flow.css
   変更目印：08-flow-section
========================================================= */

.yp-shichigosan-flow {
  width: 100%;
  margin: 0;
  padding: 96px 0;
  background: #ffffff;
  color: #2f2a24;
}

.yp-shichigosan-flow,
.yp-shichigosan-flow * {
  box-sizing: border-box;
}

.yp-shichigosan-flow__inner {
  width: min(1240px, calc(100% - 56px));
  margin: 0 auto;
}

/* =========================================================
   見出し
========================================================= */

.yp-shichigosan-flow__head {
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(320px, 1fr);
  gap: 54px;
  align-items: start;
  margin-bottom: 58px;
}

.yp-shichigosan-flow__title-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* DigiPress見出し装飾対策 */
.yp-shichigosan-flow h2,
.yp-shichigosan-flow h3,
.yp-shichigosan-flow h4 {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-top: 0 !important;
}

.yp-shichigosan-flow h2::before,
.yp-shichigosan-flow h2::after,
.yp-shichigosan-flow h3::before,
.yp-shichigosan-flow h3::after,
.yp-shichigosan-flow h4::before,
.yp-shichigosan-flow h4::after {
  display: none !important;
  content: none !important;
}

/* DigiPress本文装飾対策 */
.yp-shichigosan-flow__label,
.yp-shichigosan-flow__sub-label,
.yp-shichigosan-flow__lead p,
.yp-shichigosan-flow__plan-label,
.yp-shichigosan-flow__plan-text,
.yp-shichigosan-flow__step-time,
.yp-shichigosan-flow__step-text,
.yp-shichigosan-flow__note p,
.yp-shichigosan-flow__tab-en,
.yp-shichigosan-flow__tab-ja,
.yp-shichigosan-flow__tab-note {
  background: none !important;
  box-shadow: none !important;
}

.yp-shichigosan-flow__label::before,
.yp-shichigosan-flow__label::after,
.yp-shichigosan-flow__sub-label::before,
.yp-shichigosan-flow__sub-label::after,
.yp-shichigosan-flow__lead p::before,
.yp-shichigosan-flow__lead p::after,
.yp-shichigosan-flow__plan-label::before,
.yp-shichigosan-flow__plan-label::after,
.yp-shichigosan-flow__plan-text::before,
.yp-shichigosan-flow__plan-text::after,
.yp-shichigosan-flow__step-time::before,
.yp-shichigosan-flow__step-time::after,
.yp-shichigosan-flow__step-text::before,
.yp-shichigosan-flow__step-text::after,
.yp-shichigosan-flow__note p::before,
.yp-shichigosan-flow__note p::after,
.yp-shichigosan-flow__tab-en::before,
.yp-shichigosan-flow__tab-en::after,
.yp-shichigosan-flow__tab-ja::before,
.yp-shichigosan-flow__tab-ja::after,
.yp-shichigosan-flow__tab-note::before,
.yp-shichigosan-flow__tab-note::after {
  display: none !important;
  content: none !important;
}

.yp-shichigosan-flow__label {
  margin: 0 0 18px;
  color: #8a7458;
  font-family: "Times New Roman", "Yu Mincho", "YuMincho", serif;
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0.18em;
}

.yp-shichigosan-flow__title {
  margin: 0;
  color: #26343d;
  font-family: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1.24;
  letter-spacing: 0.12em;
  font-weight: 400;
}

.yp-shichigosan-flow__sub-label {
  margin: 18px 0 0;
  color: #7a878f;
  font-family: "Times New Roman", "Yu Mincho", "YuMincho", serif;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0.12em;
}

.yp-shichigosan-flow__lead p {
  margin: 0;
  color: #5d6971;
  font-size: 15px;
  line-height: 2.15;
  letter-spacing: 0.04em;
}

.yp-shichigosan-flow__lead p + p {
  margin-top: 14px;
}

/* =========================================================
   CSSタブ
========================================================= */

.yp-shichigosan-flow__tab-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.yp-shichigosan-flow__tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 34px;
}

.yp-shichigosan-flow__tab {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 96px;
  padding: 18px 22px;
  border: 1px solid rgba(38, 52, 61, 0.12);
  background:
    linear-gradient(
      135deg,
      rgba(251, 250, 248, 1) 0%,
      rgba(246, 243, 237, 1) 100%
    );
  cursor: pointer;
  transition:
    background-color 260ms ease,
    border-color 260ms ease,
    transform 260ms ease;
}

.yp-shichigosan-flow__tab-en {
  display: block;
  margin: 0 0 8px;
  color: #8a7458;
  font-family: "Times New Roman", "Yu Mincho", "YuMincho", serif;
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.18em;
}

.yp-shichigosan-flow__tab-ja {
  display: block;
  color: #26343d;
  font-family: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
  font-size: 18px;
  line-height: 1.45;
  letter-spacing: 0.07em;
}

.yp-shichigosan-flow__tab-note {
  display: block;
  margin-top: 6px;
  color: #5d6971;
  font-size: 13px;
  line-height: 1.6;
  letter-spacing: 0.04em;
}

#yp-shichigosan-flow-tab-basic:checked ~ .yp-shichigosan-flow__tabs label[for="yp-shichigosan-flow-tab-basic"],
#yp-shichigosan-flow-tab-yuttari:checked ~ .yp-shichigosan-flow__tabs label[for="yp-shichigosan-flow-tab-yuttari"],
#yp-shichigosan-flow-tab-premium:checked ~ .yp-shichigosan-flow__tabs label[for="yp-shichigosan-flow-tab-premium"] {
  background: #26343d;
  border-color: #26343d;
}

#yp-shichigosan-flow-tab-basic:checked ~ .yp-shichigosan-flow__tabs label[for="yp-shichigosan-flow-tab-basic"] .yp-shichigosan-flow__tab-en,
#yp-shichigosan-flow-tab-basic:checked ~ .yp-shichigosan-flow__tabs label[for="yp-shichigosan-flow-tab-basic"] .yp-shichigosan-flow__tab-ja,
#yp-shichigosan-flow-tab-basic:checked ~ .yp-shichigosan-flow__tabs label[for="yp-shichigosan-flow-tab-basic"] .yp-shichigosan-flow__tab-note,
#yp-shichigosan-flow-tab-yuttari:checked ~ .yp-shichigosan-flow__tabs label[for="yp-shichigosan-flow-tab-yuttari"] .yp-shichigosan-flow__tab-en,
#yp-shichigosan-flow-tab-yuttari:checked ~ .yp-shichigosan-flow__tabs label[for="yp-shichigosan-flow-tab-yuttari"] .yp-shichigosan-flow__tab-ja,
#yp-shichigosan-flow-tab-yuttari:checked ~ .yp-shichigosan-flow__tabs label[for="yp-shichigosan-flow-tab-yuttari"] .yp-shichigosan-flow__tab-note,
#yp-shichigosan-flow-tab-premium:checked ~ .yp-shichigosan-flow__tabs label[for="yp-shichigosan-flow-tab-premium"] .yp-shichigosan-flow__tab-en,
#yp-shichigosan-flow-tab-premium:checked ~ .yp-shichigosan-flow__tabs label[for="yp-shichigosan-flow-tab-premium"] .yp-shichigosan-flow__tab-ja,
#yp-shichigosan-flow-tab-premium:checked ~ .yp-shichigosan-flow__tabs label[for="yp-shichigosan-flow-tab-premium"] .yp-shichigosan-flow__tab-note {
  color: #ffffff;
}

/* =========================================================
   パネル
========================================================= */

.yp-shichigosan-flow__panels {
  position: relative;
}

.yp-shichigosan-flow__panel {
  display: none;
  opacity: 0;
  transform: translateY(10px);
}

#yp-shichigosan-flow-tab-basic:checked ~ .yp-shichigosan-flow__panels .yp-shichigosan-flow__panel--basic,
#yp-shichigosan-flow-tab-yuttari:checked ~ .yp-shichigosan-flow__panels .yp-shichigosan-flow__panel--yuttari,
#yp-shichigosan-flow-tab-premium:checked ~ .yp-shichigosan-flow__panels .yp-shichigosan-flow__panel--premium {
  display: block;
  animation: ypShichigosanFlowTabFade 420ms ease forwards;
}

@keyframes ypShichigosanFlowTabFade {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================================
   パネル内
========================================================= */

.yp-shichigosan-flow__plan {
  position: relative;
  background: #fbfaf8;
  border: 1px solid rgba(38, 52, 61, 0.08);
  overflow: hidden;
}

.yp-shichigosan-flow__visual {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 7;
  overflow: hidden;
  background: #ffffff;
}

.yp-shichigosan-flow__visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.yp-shichigosan-flow__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.02) 0%,
      rgba(0, 0, 0, 0.02) 52%,
      rgba(0, 0, 0, 0.2) 100%
    );
  pointer-events: none;
}

.yp-shichigosan-flow__visual-label {
  position: absolute;
  left: 22px;
  bottom: 18px;
  z-index: 2;
  display: inline-block;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.56);
  color: #ffffff;
  font-family: "Times New Roman", "Yu Mincho", "YuMincho", serif;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.14em;
  background: rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(2px);
}

.yp-shichigosan-flow__plan-head {
  margin: 0 38px 34px;
  padding: 38px 0 28px;
  border-bottom: 1px solid rgba(38, 52, 61, 0.1);
}

.yp-shichigosan-flow__plan-label {
  margin: 0 0 12px;
  color: #8a7458;
  font-family: "Times New Roman", "Yu Mincho", "YuMincho", serif;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.16em;
}

.yp-shichigosan-flow__plan-title {
  margin: 0 0 16px;
  color: #26343d;
  font-family: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.45;
  letter-spacing: 0.08em;
  font-weight: 400;
}

.yp-shichigosan-flow__plan-text {
  max-width: 860px;
  margin: 0;
  color: #5d6971;
  font-size: 14px;
  line-height: 2;
  letter-spacing: 0.04em;
}

/* =========================================================
   タイムライン
========================================================= */

.yp-shichigosan-flow__timeline {
  position: relative;
  display: grid;
  gap: 0;
  padding: 0 38px 42px;
}

.yp-shichigosan-flow__timeline::before {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 52px;
  left: 64px;
  width: 1px;
  background: rgba(138, 116, 88, 0.26);
}

.yp-shichigosan-flow__step {
  position: relative;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 22px;
  padding: 0 0 34px;
}

.yp-shichigosan-flow__step:last-child {
  padding-bottom: 0;
}

.yp-shichigosan-flow__step-number {
  position: relative;
  z-index: 2;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(138, 116, 88, 0.42);
  border-radius: 999px;
  background: #fbfaf8;
  color: #8a7458;
  font-family: "Times New Roman", "Yu Mincho", "YuMincho", serif;
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0.08em;
}

.yp-shichigosan-flow__step-body {
  min-width: 0;
  padding-top: 2px;
}

.yp-shichigosan-flow__step-time {
  margin: 0 0 8px;
  color: #8a7458;
  font-size: 13px;
  line-height: 1.6;
  letter-spacing: 0.06em;
}

.yp-shichigosan-flow__step-title {
  margin: 0 0 10px;
  color: #26343d;
  font-family: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
  font-size: 19px;
  line-height: 1.65;
  letter-spacing: 0.06em;
  font-weight: 400;
}

.yp-shichigosan-flow__step-text {
  max-width: 900px;
  margin: 0;
  color: #5d6971;
  font-size: 14px;
  line-height: 2;
  letter-spacing: 0.04em;
}

.yp-shichigosan-flow__step-photo {
  width: min(720px, 100%);
  margin: 16px 0 16px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #ffffff;
}

.yp-shichigosan-flow__step-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =========================================================
   注意書き
========================================================= */

.yp-shichigosan-flow__note {
  margin-top: 42px;
  padding-top: 28px;
  border-top: 1px solid rgba(38, 52, 61, 0.12);
}

.yp-shichigosan-flow__note p {
  margin: 0;
  color: #5d6971;
  font-size: 14px;
  line-height: 2.05;
  letter-spacing: 0.04em;
  text-align: center;
}

/* =========================================================
   HOVER
========================================================= */

@media (hover: hover) and (pointer: fine) {
  .yp-shichigosan-flow__tab:hover {
    transform: translateY(-2px);
    border-color: rgba(138, 116, 88, 0.28);
  }

  .yp-shichigosan-flow__visual img,
  .yp-shichigosan-flow__step-photo img {
    transition: transform 500ms ease;
  }

  .yp-shichigosan-flow__plan:hover .yp-shichigosan-flow__visual img {
    transform: scale(1.025);
  }
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media screen and (max-width: 1024px) {
  .yp-shichigosan-flow {
    padding-top: 78px;
    padding-bottom: 78px;
  }

  .yp-shichigosan-flow__inner {
    width: min(100%, calc(100% - 36px));
  }

  .yp-shichigosan-flow__head {
    grid-template-columns: 230px 1fr;
    gap: 34px;
    margin-bottom: 44px;
  }

  .yp-shichigosan-flow__title {
    font-size: clamp(36px, 5vw, 58px);
  }

  .yp-shichigosan-flow__lead p {
    font-size: 14px;
    line-height: 2;
  }

  .yp-shichigosan-flow__tab {
    min-height: 88px;
    padding: 16px 18px;
  }

  .yp-shichigosan-flow__tab-ja {
    font-size: 16px;
  }

  .yp-shichigosan-flow__tab-note {
    font-size: 12.5px;
  }

  .yp-shichigosan-flow__visual {
    aspect-ratio: 16 / 8;
  }

  .yp-shichigosan-flow__plan-head {
    margin: 0 24px 30px;
    padding: 30px 0 24px;
  }

  .yp-shichigosan-flow__timeline {
    padding: 0 24px 32px;
  }

  .yp-shichigosan-flow__step {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 18px;
  }

  .yp-shichigosan-flow__step-number {
    width: 48px;
    height: 48px;
  }

  .yp-shichigosan-flow__timeline::before {
    left: 48px;
  }
}

@media screen and (max-width: 767px) {
  #yp-shichigosan-flow {
    scroll-margin-top: 80px;
  }

  .yp-shichigosan-flow {
    padding: 58px 0;
  }

  .yp-shichigosan-flow__inner {
    width: calc(100% - 20px);
  }

  .yp-shichigosan-flow__head {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 34px;
  }

  .yp-shichigosan-flow__label {
    margin-bottom: 14px;
    font-size: 12px;
  }

  .yp-shichigosan-flow__title {
    font-size: clamp(32px, 10vw, 46px);
    line-height: 1.4;
    letter-spacing: 0.1em;
  }

  .yp-shichigosan-flow__sub-label {
    margin-top: 10px;
    font-size: 12px;
  }

  .yp-shichigosan-flow__lead p {
    font-size: 13px;
    line-height: 1.95;
  }

  .yp-shichigosan-flow__tabs {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 22px;
  }

  .yp-shichigosan-flow__tab {
    min-height: 78px;
    padding: 12px 14px;
  }

  .yp-shichigosan-flow__tab-en {
    margin-bottom: 5px;
    font-size: 9px;
    letter-spacing: 0.13em;
  }

  .yp-shichigosan-flow__tab-ja {
    font-size: 14px;
    line-height: 1.45;
  }

  .yp-shichigosan-flow__tab-note {
    margin-top: 5px;
    font-size: 11px;
    line-height: 1.5;
  }

  .yp-shichigosan-flow__visual {
    aspect-ratio: 4 / 5;
  }

  .yp-shichigosan-flow__visual-label {
    left: 18px;
    bottom: 14px;
    font-size: 11px;
  }

  .yp-shichigosan-flow__plan-head {
    margin: 0 18px 28px;
    padding: 26px 0 22px;
  }

  .yp-shichigosan-flow__plan-label {
    font-size: 11px;
  }

  .yp-shichigosan-flow__plan-title {
    font-size: clamp(24px, 7.6vw, 32px);
  }

  .yp-shichigosan-flow__plan-text {
    font-size: 13px;
    line-height: 1.95;
  }

  .yp-shichigosan-flow__timeline {
    padding: 0 18px 28px;
  }

  .yp-shichigosan-flow__step {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 16px;
    padding-bottom: 30px;
  }

  .yp-shichigosan-flow__step-number {
    width: 42px;
    height: 42px;
    font-size: 12px;
  }

  .yp-shichigosan-flow__timeline::before {
    left: 39px;
    bottom: 38px;
  }

  .yp-shichigosan-flow__step-time {
    font-size: 12px;
  }

  .yp-shichigosan-flow__step-title {
    font-size: 17px;
    line-height: 1.6;
  }

  .yp-shichigosan-flow__step-text {
    font-size: 13px;
    line-height: 1.95;
  }

  .yp-shichigosan-flow__step-photo {
    width: 100%;
    margin: 14px 0 14px;
    aspect-ratio: 4 / 3;
  }

  .yp-shichigosan-flow__note {
    margin-top: 30px;
    padding-top: 22px;
  }

  .yp-shichigosan-flow__note p {
    font-size: 13px;
    line-height: 2;
    text-align: left;
  }
}

@media screen and (max-width: 374px) {
  .yp-shichigosan-flow__inner {
    width: calc(100% - 16px);
  }

  .yp-shichigosan-flow__tab {
    padding-left: 10px;
    padding-right: 10px;
  }

  .yp-shichigosan-flow__tab-ja {
    font-size: 13px;
  }

  .yp-shichigosan-flow__tab-note {
    font-size: 12px;
  }

  .yp-shichigosan-flow__plan-head {
    margin-left: 16px;
    margin-right: 16px;
  }

  .yp-shichigosan-flow__timeline {
    padding-left: 16px;
    padding-right: 16px;
  }

  .yp-shichigosan-flow__step-text,
  .yp-shichigosan-flow__plan-text,
  .yp-shichigosan-flow__note p {
    font-size: 12.5px;
  }
}

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

@media (prefers-reduced-motion: reduce) {
  .yp-shichigosan-flow__visual img,
  .yp-shichigosan-flow__step-photo img {
    transition: none !important;
  }

  .yp-shichigosan-flow__panel {
    opacity: 1;
    transform: none;
    transition: none;
    animation: none !important;
  }
}