html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

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

/* =========================
   Dream Single
========================= */

.dream-single {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

body {
  background-image: url('../../well-being-dreams/wp-content/themes/well-being-dreams/assets/bg-dream-pc.png');
  background-repeat: no-repeat;
  background-position: center top;
  background-size: 100% auto;
}

.dream-single {
  margin-top: -120px;
  padding-top: 120px;
  min-height: 100vh;
  background: none;
}

.g-footer,
.g-footer__footer,
.g-footer__inner {
  background: transparent !important;
}

@media (max-width: 1024px) {
  body {
    background-image: url('../../well-being-dreams/wp-content/themes/well-being-dreams/assets/bg-dream-tablet.png');
  }
}

@media (max-width: 767px) {
  body {
    background-image: url('../../well-being-dreams/wp-content/themes/well-being-dreams/assets/bg-dream-sp.png');
  }
}

.dream-single__header {
  gap: 60px;
  display: flex;
  padding: 0 40px;
  align-items: center;
  flex-direction: column;
}

.dream-single__container {
  gap: 60px;
  display: flex;
  padding: 0 80px 120px;
  align-items: center;
  flex-direction: column;
}

.dream-single__eyebrow {
  color: #541b85;
  width: 100%;
  font-size: 56px;
  font-family: Noto Serif JP;
  font-weight: 200;
  line-height: 1.6;
  text-align: center;
}

.dream-single__intro {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.dream-single__title-wrap {
  width: 348px;
  height: 316px;
  margin: 0 auto 24px;

  display: grid;
  place-items: center;

  background-image: url('../../well-being-dreams/wp-content/themes/well-being-dreams/assets/sakura-template.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 348px 316px;
}

.dream-single__title {
  margin: 0;
  max-width: 240px;

  color: #ffffff;
  font-size: 24px;
  font-family: "M PLUS 1p", sans-serif;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

@media (max-width: 767px) {

  .dream-single__title-wrap {
    width: 315px;
    height: 264px;

    background-size: auto 264px;
  }

  .dream-single__title {
    max-width: 220px;
    font-size: 20px;
  }

}

.dream-single__meta {
  gap: 6px;
  width: 100%;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
}

.dream-single__area,
.dream-single__nickname,
.dream-single__generation {
  width: 100%;
  color: #3b3e47;
  font-size: 20px;
  font-family: "Shippori Mincho", serif;
  font-weight: 400;
  line-height: 1.6;
  text-align: center;
}

/* =========================
   Story
========================= */

.dream-single__story {
  gap: 30px;
  display: flex;
  max-width: 800px;
  align-self: center;
  align-items: center;
  flex-direction: column;
}

.dream-single__story-title {
  width: 100%;
  color: #541b85;
  font-size: 32px;
  font-family: Noto Serif JP;
  font-weight: 200;
  line-height: 1.6;
  text-align: center;
}

.dream-single__story-body {
  width: 100%;
  color: #3b3e47;
  font-size: 20px;
  font-family: "Shippori Mincho", serif;
  font-weight: 400;
  line-height: 1.6;
  text-align: justify;
}

/* the_content() 用の整え */
.dream-single__story-body p {
  margin: 0 0 1.5em;
}

.dream-single__story-body p:last-child {
  margin-bottom: 0;
}

/* =========================
   Gallery Link
========================= */

.dream-single__gallery-link-wrap {
  display: flex;
  justify-content: center;
}

.dream-single__gallery-link {
  display: flex;
  padding: 16px 24px;
  justify-content: space-between;
  align-items: center;
  align-self: stretch;
  display: inline-flex;
  min-width: 240px;
  max-width: 260px;
  height: 52px;
  border-radius: 26px;
  border: 1px solid #3B3E47;
  text-decoration: none;
  transition: 0.3s ease;
  box-sizing: border-box;
}

.dream-single__gallery-link-text {
  color: #3B3E47;
  text-align: center;
  font-family: "M PLUS 1p", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
}

.dream-single__gallery-link:hover {
  border-color: #ea6094;
  background-color: #f7d6da;
  text-decoration: none;
}

.dream-single__gallery-link:hover .dream-single__gallery-link-text {
  color: #ea6094;
}

.dream-single__gallery-link-icon {
  width: 29px;
  height: 12px;
}

.dream-single__gallery-link-icon path {
  stroke: #3B3E47;
  transition: 0.3s ease;
}

.dream-single__gallery-link:hover .dream-single__gallery-link-icon path {
  stroke: #ea6094;
}

/* =========================
   Common : Divider
========================= */

.dream-divider {
  display: flex;
  align-items: center;
  width: 100%;
  margin: 0 auto;
  padding: 0 40px;
  gap: 10px;
  box-sizing: border-box;
}

.dream-divider__icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  animation: rotate 6s linear infinite;
}

.dream-divider__line {
  flex: 1;
  height: 0.5px;
  background: #EA6094; /* ライン色 */
}


/* =========================
   Project Note
========================= */

.dream-project-note {
  display: flex;
  align-items: stretch;
  flex-direction: column;
}

.dream-project-note__logo {
  gap: 60px;
  display: flex;
  padding: 60px 20px;
  align-items: center;
  justify-content: center;
}

.dream-project-note__logo-image {
  width: 240px;
  height: auto;
}

.dream-project-note__logo-mark {
  width: 120px;
  height: auto;
}

.dream-project-note__logo a {
  display: inline-block;
}

.dream-project-note__logo a:hover .dream-project-note__logo-mark {
  opacity: 0.7;
}


.dream-project-note__body {
  gap: 30px;
  display: flex;
  padding: 0 20px 60px;
  align-items: center;
  flex-direction: column;
}

.dream-project-note__text {
  width: 100%;
  color: #ea6094;
  font-size: 20px;
  font-family: "Shippori Mincho", serif;
  font-weight: 500;
  line-height: 2;
  text-align: center;
}

.dream-project-note__social {
  gap: 16px;
  display: flex;
  padding: 0 20px 60px;
  align-items: center;
  flex-direction: column;
}

.dream-project-note__social-inner {
  gap: 16px;
  display: flex;
  align-items: center;
  flex-direction: column;
}

.dream-project-note__social-title {
  color: #3b3e47;
  font-size: 16px;
  font-family: "M PLUS 1p", sans-serif;
  font-weight: 400;
  line-height: 2;
  text-align: center;
}

.dream-project-note__social-links {
  gap: 20px;
  display: flex;
  align-items: center;
}

.dream-project-note__social-icon {
  width: auto;
  height: 40px;
  display: block;
  transition: opacity .2s ease;
}

.dream-project-note__social-links a {
  display: inline-block;
}

.dream-project-note__social-links a:hover .dream-project-note__social-icon {
  opacity: 0.7;
}

/* =========================
   dream-head-note
========================= */
.dream-head-note__frame {
  gap: 8px;
  width: 100%;
  display: flex;
  padding: 30px 40px 60px;
  align-items: flex-start;
  flex-shrink: 0;
  flex-direction: column;
}

.dream-head-note__body {
  gap: 8px;
  display: flex;
  align-self: stretch;
  align-items: flex-start;
  flex-direction: column;
}

.dream-head-note__text {
  color: rgba(59, 62, 71, 1);
  height: auto;
  font-size: 12px;
  font-style: Regular;
  text-align: left;
  font-family: M PLUS 1p;
  font-weight: 400;
  line-height: 200%;
  font-stretch: normal;
  text-decoration: none;
}

.dream-head-note__icon {
  width: 20px;
  height: 20px;
  animation: rotate 6s linear infinite;
}

@keyframes rotate{
  from {
    transform:rotate(0deg);
  }
  to{
    transform:rotate(360deg);
  }
}

@media(max-width: 768px) {
  .home-thq-frame7-elm {
    width: 100%;
    align-self: flex-start;
    padding-top: 20px;
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 40px;
  }
  .dream-head-note__frame {
  padding: 20px 20px 40px;
}

}



/* =========================
   Responsive
========================= */

@media (max-width: 768px) {
  .dream-single__header {
    padding-left: 20px;
    padding-right: 20px;
  }

  .dream-single__container {
    position: relative;
    margin-right: 0;
    padding-left: 30px;
    padding-right: 30px;
  }

  .dream-single__eyebrow {
    font-size: 26px;
  }

  .dream-single__generation {
    font-size: 18px;
  }

  .dream-reaction-button {
    width: 300px;
    max-width: 100%;
    align-self: center;
  }

  .dream-single__story {
    gap: 16px;
  }

  .dream-single__story-title {
    font-size: 24px;
  }

  .dream-single__story-body {
    font-size: 16px;
  }

  .dream-divider {
    padding: 0 20px;
  }

  .dream-project-note__logo {
    flex-direction: column;
  }

  .dream-project-note__text {
    font-size: 13px;
  }
}

/* =====================================
   WELL-BEING FRONTIER Banner
===================================== */

.wb-banner{
  position: fixed;
  z-index: 9999;
  text-decoration: none;
  color: inherit;
}

.wb-banner__pc,
.wb-banner__icon,
.wb-banner__people {
  display: block;
}

.wb-banner__pc{
  display: block;
}

.wb-banner__sp{
  display: none;
}


/* =========================
   PC
========================= */
@media (min-width: 767px){

  .wb-banner{
    top: 260px;
    right: 0;
    left: auto;
    bottom: auto;
    transform: translateY(-50%);
  }

  .wb-banner__pc{
    display: block;
    width: 100px;
    height: auto;
  }

  .wb-banner__sp{
    display: none;
  }
}


/* =========================
   SP
========================= */
@media (max-width: 767px){

  .wb-banner{
    left: 0;
    right: 0;
    top: auto;
    bottom: 0;
    transform: none;
    width: 100%;
  }

  .wb-banner__pc{
    display: none;
  }

  .wb-banner__sp{
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 60px;
    padding:0px 0px max(0px, env(safe-area-inset-bottom));
    background: #fff;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.12);
  }

  .wb-banner__icon{
    display: block;
    width: 50px;
    height: 60px;
    flex: 0 0 auto;
    margin-right: 62px;
  }

  .wb-banner__text{
    flex: 1 1 auto;
    font-size: 14px;
    line-height: 1.2;
    letter-spacing: 0.04em;
    text-align: center;
    color: #3b3e47;
  }

  .wb-banner__people{
    display: block;
    width: 112.42px;
    height: 60px;
    flex: 0 0 auto;
  }
  .wb-banner__sp,
  .dream-section,
  .dream-home__gallery,
  .dream-rotator {
    box-sizing: border-box;
  }
}

/* =========================
   Back to Top
========================= */

.back-to-top__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid #3b3e47;
  padding: 6px 12px;
  color: #3b3e47;
  text-decoration: none;
  line-height: 1;
}

.back-to-top__icon {
  display: inline-flex;
  width: 12px;
  height: 12px;
}

.back-to-top__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.back-to-top__text {
  font-size:12px;
}

.back-to-top__link:hover {
  border: 1px solid #EA6094;
  text-decoration: none;
}

.back-to-top__link:hover .back-to-top__text,
.back-to-top__link:hover .back-to-top__icon {
  color: #EA6094;
}

/* =========================
   Move to Top Button
========================= */

/* 初期状態（非表示） */
.move-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9999;

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

  width: 64px;
  height: 64px;
  padding: 0;

  background: transparent;
  border: none;
  text-decoration: none;
  cursor: pointer;

  /* 非表示状態 */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);

  /* page_well-being-frontier.css の main a[href]{transition:none} (詳細度 0,1,2) に勝つため同詳細度で後勝ちさせる */
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease,
    transform 0.3s ease;
}

main a.move-to-top {
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease,
    transform 0.3s ease;
}

/* 表示状態 */
.move-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

/* 画像 */
.move-to-top__img {
  display: block;
  width: 100%;
  height: auto;
}

/* SP調整（下部バナー回避） */
@media (max-width: 767px) {
  .move-to-top {
    right: 16px;
    bottom: 76px; /* wb-banner回避 */
    width: 56px;
    height: 56px;
  }
}