/* ============================================
   BACKYARD CS PLAN LP - Stylesheet
   ============================================ */

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Zen Kaku Gothic New', 'Noto Sans JP', sans-serif;
  color: #222;
  line-height: 1.8;
  background: #fff;
  overflow-x: hidden;
}

body.no-scroll {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.3s;
}

a:hover {
  opacity: 0.7;
}

ul {
  list-style: none;
}

sup {
  font-size: 0.6em;
  vertical-align: super;
}

/* --- Section Label --- */
.section-label {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: #e22e9d;
  letter-spacing: 0.3px;
  margin-bottom: 0;
}

/* --- PC min-width（1025px以上のみ適用） --- */
/* min-width削除済み - max-widthベースで制御 */

/* --- Fade In Animation --- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Marker (お悩みカード内テキストのピンク背景) --- */
.marker {
  background: #ffdbf1;
  padding: 2px 0;
}

/* ============================================
   Header
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  transition: background 0.3s, backdrop-filter 0.3s;
}

.header.is-scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header__inner {
  width: 100%;
  margin: 0 auto;
  padding: 0 30px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 30px;
}

.header__nav-list {
  display: flex;
  align-items: center;
  gap: 0;
}

.header__nav-list li {
  position: relative;
}

.header__nav-list li:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 20px;
  background: #000;
}

.header__nav-list li a {
  display: block;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.26px;
  color: #222;
}

.header__cta {
  display: inline-block;
  padding: 10px 28px;
  background: #e732a2;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 1.87px;
  border-radius: 4px;
  white-space: nowrap;
}

.header__cta:hover {
  opacity: 0.85;
}

.header__hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 24px;
  position: relative;
  z-index: 1001;
}

.header__hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: #222;
  position: absolute;
  left: 0;
  transition: all 0.3s;
}

.header__hamburger span:nth-child(1) { top: 0; }
.header__hamburger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.header__hamburger span:nth-child(3) { bottom: 0; }

.header__hamburger.is-active span:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.header__hamburger.is-active span:nth-child(2) {
  opacity: 0;
}

.header__hamburger.is-active span:nth-child(3) {
  bottom: 50%;
  transform: translateY(50%) rotate(-45deg);
}

/* --- Mobile Menu --- */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(255, 255, 255, 0.98);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu__nav ul {
  text-align: center;
}

.mobile-menu__nav li {
  margin-bottom: 24px;
}

.mobile-menu__nav li a {
  font-size: 18px;
  font-weight: 700;
  color: #222;
  letter-spacing: 1px;
}

.mobile-menu__cta {
  display: inline-block;
  padding: 12px 32px;
  background: #e732a2;
  color: #fff !important;
  border-radius: 4px;
  margin-top: 16px;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  position: relative;
  height: 758px;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding-top: 275px;
}

.hero__logo {
  margin-bottom: 30px;
}

.hero__logo img {
  width: 381px;
  margin: 0 auto;
}

.hero__subtitle {
  text-align: center;
}

.hero__subtitle-img {
  width: 191px;
  height: auto;
  margin: 0 auto;
  position: relative;
  left: -10px;
}

/* ============================================
   Onayami Section
   ============================================ */
.onayami {
  background: #e4e4e4;
  padding: 34px 0 10px;
}

.onayami__inner {
  max-width: 1230px;
  margin: 0 auto;
  padding: 0 15px;
}

.onayami__title {
  font-size: 25px;
  font-weight: 700;
  letter-spacing: 0.75px;
  margin-bottom:36px;
}

.onayami__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.onayami__card {
  background: #fff;
  border-radius: 12px;
  padding: 30px 58px 30px 90px;
  position: relative;
}

.onayami__card-icon {
  position: absolute;
  left: 34px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  line-height: 1;
}

.onayami__card-icon img {
  width: 100%;
  height: auto;
}

.onayami__card-text {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: 0.38px;
}

.onayami__arrow {
  text-align: center;
  padding-top: 16px;
  margin-bottom: 6px;
}

.onayami__arrow-icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  border-right: 4px solid #222;
  border-bottom: 4px solid #222;
  transform: rotate(45deg);
}

/* ============================================
   Service Intro Section
   ============================================ */
.service-intro {
  background: #e22e9d;
  padding: 42px 0 40px;
}

.service-intro__inner {
  max-width: 1230px;
  margin: 0 auto;
  padding: 0 15px;
  text-align: center;
}

.service-intro__main-text {
  font-size: 26px;
  font-weight: 500;
  color: #fff;
  line-height: 2.0;
  letter-spacing: 1.04px;
}

/* ============================================
   Service Overview Section
   ============================================ */
.service-overview {
  padding: 128px 0 110px;
  text-align: center;
}

.service-overview__inner {
  max-width: 1230px;
  margin: 0 auto;
  padding: 0 15px;
}

.service-overview__title {
  font-size: 47px;
  font-weight: 700;
  color: #313131;
  letter-spacing: 0.94px;
  margin-bottom: 60px;
}

.service-overview__desc {
  font-size: 20px;
  font-weight: 500;
  color: #313131;
  line-height: 2.3;
  letter-spacing: 1.2px;
  margin-bottom: 0;
}

/* ============================================
   Diagram Section (グラデーション背景)
   ============================================ */
.diagram {
  padding: 70px 0 94px;
  background: url('../images/info_bg.png') no-repeat center center;
  background-size: cover;
  text-align: center;
}

.diagram__inner {
  max-width: 1030px;
  margin: 0 auto;
  padding: 0 15px;
}

.diagram__image img {
  max-width: 852px;
  width: 100%;
  margin: 0 auto;
}

/* ============================================
   Function Section
   ============================================ */
.function {
  padding: 130px 0;
}

.function__inner {
  max-width: 1330px;
  margin: 0 auto;
  padding: 0 15px;
  text-align: center;
}

.function__title {
  font-size: 38px;
  font-weight: 700;
  letter-spacing: 1.52px;
  margin-top: 14px;
  margin-bottom: 20px;
  line-height: 0.8;
}

.function__subtitle {
  font-size: 18px;
  font-weight: 700;
  color: #313131;
  letter-spacing: 0.72px;
  margin-bottom: 80px;
}

.function__item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 60px;
  margin-bottom:90px;
  text-align: left;
}

.function__item--right {
  flex-direction: row-reverse;
}

.function__item--right .function__item-text {
  text-align: left;
}

.function__item-text {
  flex: 1;
  min-width: 0;
  padding-top: 20px;
}

.function__item-number {
  font-size: 16px;
  font-weight: 700;
  color: #e22e9d;
  letter-spacing: 0.96px;
  margin-bottom: 8px;
}

.function__item-heading {
  font-size: 32px;
  font-weight: 700;
  color: #e22e9d;
  line-height: 1.25;
  letter-spacing: 0.96px;
  margin-bottom: 20px;
}

.function__item-desc {
  font-size: 17px;
  font-weight: 500;
  color: #222;
  line-height: 1.7;
  letter-spacing: 1.36px;
}

.function__item-image {
  flex: 0 0 auto;
  width: 48%;
  max-width: 640px;
}

.function__item-image img {
  width: 100%;
  border-radius: 8px;
}

.function__item--small-img .function__item-image {
  width: 35%;
  max-width: 459px;
}
/* ============================================
   Flow Section
   ============================================ */
.flow {
  background: #fbe5f3;
  padding: 50px 0 80px;
}

.flow__inner {
  max-width: 1350px;
  margin: 0 auto;
  padding: 0 15px;
  text-align: center;
}

.flow__title {
  font-size: 38px;
  font-weight: 700;
  letter-spacing: 0.76px;
  margin-bottom: 40px;
}

.flow__steps {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 12px;
}

.flow__step {
  background: #fff;
  border-radius: 20px;
  padding: 40px 30px 38px;
  width: 300px;
  text-align: center;
  border: 1px solid #e22e9d;
}

.flow__step-number {
  font-size: 32px;
  font-weight: 400;
  color: #e22e9d;
  letter-spacing: 1.92px;
  margin-bottom: 16px;
  display: block;
}

.flow__step-title {
  font-size: 20px;
  font-weight: 700;
  color: #e22e9d;
  letter-spacing: 0.4px;
  margin-bottom: 16px;
}

.flow__step-desc {
  font-size: 16px;
  font-weight: 500;
  color: #222;
  line-height: 1.5;
  letter-spacing: 0.48px;
  text-align: left;
}

.flow__step-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flow__step-arrow-icon {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-right: 3.2px solid #e22e9d;
  border-bottom: 3.2px solid #e22e9d;
  transform: rotate(-45deg);
  left: -2px;
  position: relative;
}

/* ============================================
   Price Section
   ============================================ */
.price {
  padding: 100px 0 110px;
}

.price__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
  text-align: center;
}

.price__title {
  font-size: 38px;
  font-weight: 700;
  letter-spacing: 0.76px;
  margin-top: 10px;
  margin-bottom: 38px;
  line-height: 1;
}

.price__arrow {
  margin-bottom: 20px;
}

.price__arrow-icon {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-right: 3px solid #222;
  border-bottom: 3px solid #222;
  transform: rotate(45deg);
}

.price__subtitle {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 1.6px;
  line-height: 1.5;
  margin-bottom: 30px;
}

.price__card {
  max-width: 467px;
  margin: 0 auto 20px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #fff;
  background: #fbe5f3;
}

.price__card-header {
  background: #e22e9d;
  color: #fff;
  font-size: 19px;
  font-weight: 700;
  padding: 12px 0;
  letter-spacing: 1.14px;
  text-align: center;
}

.price__card-body {
  padding: 30px 20px;
  text-align: center;
}

.price__amount {
  font-family: 'Inter', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: #e22e9d;
  letter-spacing: 0.64px;
  margin-bottom: 12px;
}

.price__yen {
  font-size: 32px;
}

.price__tax {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: 14px;
  font-weight: 500;
  margin-left: 4px;
}

.price__users {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.51px;
  margin-bottom: 16px;
}

.price__user-icon {
  margin-top: 8px;
}

.price__user-icon img {
  width: 86px;
  height: auto;
  margin: 0 auto;
}

.price__note {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 1.44px;
}

/* ============================================
   FAQ Section
   ============================================ */
.faq {
  background: #e8e8e8;
  padding: 78px 0 120px;
}

.faq__inner {
  max-width: 940px;
  margin: 0 auto;
  padding: 0 15px;
  text-align: center;
}

.faq__title {
  font-size: 38px;
  font-weight: 700;
  letter-spacing: 0.76px;
  margin-bottom: 50px;
}

.faq__list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.faq__item {
  background: #fff;
  border-radius: 12px;
  padding: 38px 40px 40px 70px;
  text-align: left;
}

.faq__question,
.faq__answer {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.faq__question {
  margin-bottom: 12px;
}

.faq__label {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 23px;
  font-weight: 600;
  letter-spacing: 0.69px;
  flex-shrink: 0;
  line-height: 1.2;
}

.faq__label--q {
  color: #929292;
}

.faq__label--a {
  color: #e22e9d;
}

.faq__question p,
.faq__answer p {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.54px;
  padding-top: 2px;
}

/* ============================================
   Support Section
   ============================================ */
.support {
  padding: 80px 0 0;
  overflow: hidden;
  position: relative;
  min-height: 500px;
}

.support::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: url('../images/footer_bg.png') no-repeat right bottom;
  background-size: auto 100%;
  z-index: 0;
}

.support__inner {
  max-width: 1230px;
  margin: 0 auto;
  padding: 0 15px;
  position: relative;
  z-index: 1;
}

.support__content {
  max-width: 580px;
  padding: 40px 0;
}

.support__title {
  font-size: 27px;
  font-weight: 700;
  color: #e22e9d;
  letter-spacing: 1.35px;
  margin-bottom: 30px;
}

.support__desc {
  font-size: 18px;
  font-weight: 500;
  color: #222;
  line-height: 2.3;
  letter-spacing: 0.18px;
}

/* ============================================
   Page Top Button
   ============================================ */
.page_top {
  position: fixed;
  right: 30px;
  bottom: 30px;
  width: 50px;
  height: 50px;
  background: #e22e9d;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  z-index: 900;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.page_top.is-show {
  opacity: 1;
  visibility: visible;
}

.page_top:hover {
  opacity: 0.8;
}

.page_top__arrow {
  display: block;
  width: 12px;
  height: 12px;
  border-left: 3px solid #fff;
  border-top: 3px solid #fff;
  transform: rotate(45deg);
  margin-top: 4px;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: #fff;
  padding: 18px 0;
}

.footer__inner {
  width: 100%;
  min-width: 1230px;
  margin: 0 auto;
  padding: 0 15px;
  text-align: right;
}

.footer__nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}

.footer__nav a {
  font-size: 15px;
  font-weight: 500;
  color: #222;
  letter-spacing: 0.75px;
  display: inline-flex;
  align-items: center;
}

.link-blank::after {
  content: '';
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-left: 4px;
  background: url('../images/icon-blank.svg') no-repeat center center;
  background-size: contain;
}

.footer__divider {
  display: inline-block;
  width: 1px;
  height: 25px;
  background: #999;
  vertical-align: middle;
}

.footer__copyright {
  font-size: 15px;
  font-weight: 500;
  color: #222;
  letter-spacing: 0.75px;
}

/* ============================================
   Responsive - Tablet (max-width: 1024px)
   ============================================ */
@media (max-width: 1024px) {
  .header__nav {
    display: none;
  }

  .header__cta {
    display: none;
  }

  .header__hamburger {
    display: block;
  }

  .header__inner {
    height: 60px;
    justify-content: flex-end;
    max-width: 100%;
    padding: 0 16px;
  }

  .header.is-scrolled,
  .header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
  }

  .hero {
    height: 500px;
  }

  .hero__content {
    padding-top: 160px;
  }

  .hero__subtitle {
    font-size: 36px;
  }

  .hero__logo img {
    width: 300px;
  }

  .onayami__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .onayami__card {
    padding: 30px 58px 30px 60px;
  }
  .onayami__card-text {
    font-size: 16px;
  }
  .onayami__card-icon {
    left: 20px;
  }

  .service-intro__main-text {
    font-size: 20px;
  }

  .service-overview__title {
    font-size: 32px;
  }

  .service-overview__desc {
    font-size: 16px;
  }

  .function__title {
    font-size: 30px;
  }

  .function__item {
    gap: 30px;
  }

  .function__item-text {
    flex: 1;
    width: auto;
  }

  .function__item-image {
    width: 45%;
    max-width: 100%;
  }

  .function__item--small-img .function__item-image {
    width: 35%;
  }

  .function__item-heading {
    font-size: 26px;
  }

  .flow__steps {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .flow__step {
    width: 100%;
    max-width: 500px;
    padding: 20px 30px 38px;
  }
  .flow__step-number {
    margin-bottom: 10px;
  }

  .flow__step-arrow {
    padding-top: 0;
    transform: rotate(90deg);
  }

  .flow__title {
    font-size: 30px;
  }

  .price__title {
    font-size: 30px;
  }

  .faq__title {
    font-size: 30px;
  }

  .faq__item {
    padding: 24px 24px;
  }

  .support__inner {
    flex-direction: column;
  }

  .support::before {
    opacity: 0.4;
  }

  .footer__inner {
    min-width: auto;
    width: 100%;
    padding: 0 16px;
  }
}

/* ============================================
   Responsive - Mobile (max-width: 768px)
   ============================================ */
@media (max-width: 768px) {
  .sp_none {
    display: none;
  }

  .header__inner {
    padding: 0 16px;
  }

  .hero {
    height: 400px;
  }

  .hero__content {
    padding-top: 120px;
  }

  .hero__logo img {
    width: 240px;
  }

  .hero__subtitle {
    font-size: 28px;
  }

  .onayami {
    padding: 60px 0 80px;
  }

  .onayami__title {
    font-size: 20px;
  }

  .onayami__grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .onayami__card {
    padding: 20px 20px 20px 50px;
  }
  .onayami__card-icon {
    left: 16px;
  }

  .onayami__card-text {
    font-size: 15px;
  }

  .service-intro {
    padding: 40px 0;
  }

  .service-intro__main-text {
    font-size: 17px;
    line-height: 1.9;
    text-align: left;
  }

  .service-overview {
    padding: 60px 0 40px;
  }

  .service-overview__title {
    font-size: 24px;
  }

  .service-overview__desc {
    font-size: 15px;
    line-height: 2.0;
    text-align: left;
  }

  .service-overview__desc br {
    display: none;
  }

  .diagram {
    padding: 40px 0 60px;
  }

  .function {
    padding: 60px 0;
  }

  .function__title {
    font-size: 26px;
  }

  .function__subtitle {
    font-size: 15px;
    margin-bottom: 50px;
  }

  .function__item {
    margin-bottom: 60px;
    flex-direction: column;
    gap: 30px;
  }

  .function__item--right {
    flex-direction: column;
  }

  .function__item-image {
    width: 100%;
    max-width: 100%;
  }

  .function__item--small-img .function__item-image {
    width: 100%;
    max-width: 100%;
  }

  .function__item-heading {
    font-size: 22px;
  }

  .function__item-desc {
    font-size: 15px;
  }

  .function__item-number {
    font-size: 14px;
  }

  .flow {
    padding: 60px 0 80px;
  }

  .flow__title {
    font-size: 26px;
    margin-bottom: 40px;
  }

  .flow__step {
    padding: 30px 20px 24px;
  }

  .flow__step-number {
    font-size: 26px;
  }

  .flow__step-title {
    font-size: 18px;
  }

  .flow__step-desc {
    font-size: 14px;
  }

  .price {
    padding: 60px 0;
  }

  .price__title {
    font-size: 26px;
  }

  .price__subtitle {
    font-size: 16px;
  }

  .price__subtitle br {
    display: none;
  }

  .price__amount {
    font-size: 28px;
  }

  .faq {
    padding: 60px 0;
  }

  .faq__title {
    font-size: 26px;
    margin-bottom: 30px;
  }

  .faq__item {
    padding: 20px 16px;
  }

  .faq__label {
    font-size: 20px;
  }

  .faq__question p,
  .faq__answer p {
    font-size: 15px;
  }

  .support {
    padding: 60px 0 0;
  }

  .support__title {
    font-size: 22px;
  }

  .support::before {
    opacity: 0.3;
  }

  .support__desc {
    font-size: 15px;
    line-height: 2.0;
  }

  .support__desc br {
    display: none;
  }

  .footer__nav {
    flex-direction: column;
    gap: 12px;
  }

  .footer__divider {
    display: none;
  }

  .footer__copyright {
    font-size: 13px;
    margin-top: 8px;
  }
}

/* ============================================
   Responsive - Small Mobile (max-width: 480px)
   ============================================ */
@media (max-width: 480px) {
  .hero {
    height: 320px;
  }

  .hero__content {
    padding-top: 90px;
  }

  .hero__logo img {
    width: 200px;
  }

  .hero__subtitle {
    font-size: 22px;
  }

  .service-intro__main-text {
    font-size: 15px;
  }

  .service-overview__title {
    font-size: 20px;
  }

  .function__item-heading {
    font-size: 20px;
  }
}
