/* === Hero 部全体設定 === */
.hero {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
}

/* === 背景動画設定 === */
.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: 0;
  transform: translate(-50%, -50%);
  object-fit: contain;
}

/* === 半透明オーバーレイ === */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* === Hero テキストエリア === */
.hero-content {
  position: absolute;
  width: 100%;
  top: 50%;
}

.hero-inner {
  position: relative;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #fff;
}

/* キャッチコピー */
.hero-title {
  font-family: source-han-serif-japanese, serif;
  font-weight: bold;
  font-size: 3.0rem;
  margin-bottom: 1rem;
  position: relative;
  opacity: 0;
  transform: translateY(30px);
  animation: slideFadeIn 1s ease forwards;
  animation-delay: 15.25s;
}

.hero-title img {
  width: 50%;
  max-width: 500px;
  height: auto;
  display: block;
  margin: 0 auto;
}

@media screen and (max-width: 768px) {
  .hero-title img {
    width: 80%;
    max-width: 400px;
  }
}

/* サブコピー */
.hero-subtitle {
  font-size: 1.6rem;
  line-height: 1.6;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(30px);
  animation: slideFadeIn 1s ease forwards;
  animation-delay: 0.8s;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}


.hero-title,
.hero-subtitle {
  text-shadow:
    0 0 5px rgb(255 255 255 / 22%),
    0 0 10px rgb(255 255 255 / 31%),
    0 2px 4px rgb(0 0 0 / 88%)
}



.tophero_wrap {
  margin: 0 auto;
  position: relative;
  background: #f1f1f1;
  background:
    repeating-linear-gradient(to right,
      rgba(255, 255, 255, 0.05),
      rgba(255, 255, 255, 0.05) 1px,
      transparent 1px,
      transparent 8px),
    repeating-linear-gradient(to bottom,
      rgba(255, 255, 255, 0.05),
      rgba(255, 255, 255, 0.05) 1px,
      transparent 1px,
      transparent 8px),
}

/* アニメーション設定 */
@keyframes slideFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === レスポンシブ調整 === */
@media screen and (max-width: 768px) {
  .hero-title {
    font-size: 1.8rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }
}

.tophero_wrap__inner {
  margin: 0em auto 0 auto;
  padding: 0 4vw 0 4vw;
  position: relative;
  z-index: 10;
}

.tophero_wrap__inner h2 {
  font-size: 1.15em;
  text-align: center;
  padding: 1em 0 0.5em 0;
}

.tophero_wrap__inner h2 b {
  background: #9261c1;
  color: #ffffff;
  display: inline-block;
  font-weight: bold;
  margin: 0 5px;
  padding: 0px 10px;
  font-size: 1.45em;
}

.tophero_wrap-title {
  font-size: 1.15em;
  padding: 0 0 0.25em 0em;
  font-weight: bold;
  color: #355D9D;
}

.tophero_wrap_area-name {
  text-align: center;
  font-family: source-han-serif-japanese, serif;
  font-weight: 500;
  font-style: italic;
  color: #d92500;
  color: #3a0072;
  font-size: 1.5rem;
  letter-spacing: .08em;
  display: block;
  padding: 0em 0 0.5em 0;
}

.area-support__content h2 {
  font-family: source-han-serif-japanese, serif;
  font-weight: 500;
  font-style: normal;
  color: rgb(217, 37, 0);
  font-size: 2rem;
  letter-spacing: 0.08em;
  display: block;
  margin: 1em 0px;
}

@keyframes popin {
  0% {
    opacity: 0;
    transform: scale(0.7);
  }

  60% {
    opacity: 1;
    transform: scale(1.05);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.tophero_wrap-title .pref-label b {
  opacity: 0;
  display: inline-block;
  animation: popin 1.0s ease forwards;
}

.tophero_wrap-title .pref-label:nth-child(1) b {
  animation-delay: 1.6s;
}

.tophero_wrap-title .pref-label:nth-child(2) b {
  animation-delay: 1.8s;
}

.tophero_wrap-title .pref-label:nth-child(3) b {
  animation-delay: 1.9s;
}

.about-special_cleaning_wrap {
  padding: 0rem 0 0 0;
}

.case_special_cleaning_wrap {
  padding: 5rem 0 0 0;
}

.sp_service_block_ttl {
  text-align: center;
  padding-block: 2rem;
  position: relative;
  top: -3rem;
}

.sp_cleaning_txt {
  padding-inline: 2.5rem;
  padding-bottom: 10rem;
  padding-top: 5rem;
}

.spc-intro__figure {
  margin-block: 5rem;
  text-align: center;
}

.spc-intro__lead {
  margin-top: 3rem;
  font-size: clamp(1.4rem, 1.2rem + 0.5vw, 1.65rem);
  line-height: 1.8;
  padding-inline: 4vw;
}

.spc-intro__lead strong {
  font-weight: 900;
  color: #ED6B1A;
}

.spc-intro__details {
  margin-top: 1.25rem;
}

.spc-intro__details>summary {
  cursor: pointer;
  font-weight: 700;
  padding: .5rem 0;
  text-align: center;
}

.spc-intro__details>summary span {
  display: inline-block;
  border: solid 2px #e0d4eb;
  border-radius: 20px;
  padding-inline: 2vw;
  padding-block: 1vh;
  background: #f7edfb;
  margin-bottom: 1.5vh;
}

.spc-intro__body p {
  font-size: clamp(1.4rem, 1.2rem + 0.5vw, 1.65rem);
  margin: .85rem 0;
}

.editor_case {
  position: relative;
}

.editor_case span {
  font-size: clamp(1.2rem, 0.8rem + 0.6vw, 1.6rem);
  /* 12px〜16px */
  position: relative;
  top: -0.25rem;
  left: 50%;
}

.editor_case h2 {
  font-size: clamp(1.6rem, 1rem + 1vw, 2.2rem);
  /* 16px〜24px */
  line-height: 1.5;
  margin-bottom: 15px;
  padding: 10px 15px;
  background-color: rgba(143, 109, 81, .1);
  background: #9261c13d;
  border-radius: 5px;
}

.about-special_cleaning_wrap p {
  line-height: 1.6;
}

.sp_service_block {
  background: #ece5f3;
  border-radius: 25px;
  position: relative;
  box-shadow: 0 1.9px 2.5px rgba(0, 0, 0, 0.057), 0 5px 6.1px rgb(0 0 0 / 24%);
}

.sp_service_block_ttl h2 {
  display: inline;
  font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.0rem);
  line-height: 1.4;
  color: #ED6B1A;
  border: 1px solid #ED6B1A;
  background-color: #fff;
  border-radius: 40px;
  padding: 10px 45px;
}

@media (max-width: 768px) {
  .sp_service_block_ttl h2 {
    font-size: clamp(1.2rem, 1.2rem + 1.2vw, 1.6rem);
    line-height: 1.4;
    padding: 10px 25px;
  }
}

.service-block {
  max-width: 900px;
  margin: auto;
  margin-bottom: 2rem;
}

.service-block .flex_case {
  display: flex;
  gap: 2rem;
  align-items: stretch;
  padding-bottom: 2rem;
  border-bottom: 1px dotted #333;
}

.service-block:nth-of-type(odd) .flex_case {
  flex-direction: row-reverse;
}

.service-block:last-child .flex_case {
  border-bottom: none;
}

.image-box {
  flex: 1 1 20%;
}

.image-box img {
  border-radius: 8px;
  display: block;
  aspect-ratio: 3/4;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.spc-step__label p {
  font-size: clamp(1.4rem, 0.8rem + 0.6vw, 1.6rem);
  /* 12px〜14px */
}


@media (max-width: 768px) {
  .service-block .flex_case {
    flex-direction: column;
  }
.service-block:nth-of-type(odd) .flex_case {
    flex-direction: column;
}
  .service-block {
    max-width: 800px;
  }


  .image-box {
    flex: 1 1 20%;
    text-align: center;
  }
	
  .image-box img {
        border-radius: 8px;
        display: block;
        aspect-ratio: 2 / 3;
        width: 40%;
        height: auto;
        object-fit: cover;
        margin: auto;
  }
	.text-box {
    flex: 2 1 50%;
    display: flex;
    flex-direction: column;
		padding-inline: 2vw;
}
	.about-special_cleaning_wrap p {
    text-align: left;
	}
}




.text-box {
  flex: 2 1 50%;
  display: flex;
  flex-direction: column;
}

.text-box h3 {
  margin-bottom: 1.5rem;
  padding: 10px 15px;
  background: #fff;
  border-radius: 10px;
  color: #534671;
  font-weight: 900;
  font-size: clamp(1.4rem, 1.2rem + 1.4vw, 1.85rem);
}



.service-block_Pr {
  line-height: 1.6;
}

.service-block_Pr {
  position: relative;
  background: #fff;
  border: solid 1px #333;
  padding-block: 1vh;
  padding: 0.5rem 2vw 0.5rem 7vw;
  margin: 3.5rem 0 0 0;
}

.service-block_Pr span {
  position: absolute;
  display: inline-block;
  bottom: 2.84em;
  left: -13px;
  width: 5em;
  height: 5em;
  font-family: "Noto Sans Japanese";
  line-height: 1.2em;
  text-align: center;
  color: #f09c73;
  font-size: 80%;
  font-weight: bold;
  background: #fff;
  border: 2px solid #ed6b1a;
  border-radius: 50%;
  box-sizing: border-box;
  transform: rotate(-10deg);
  padding-top: 13px;
}

.service-block_Pr::before {
  position: absolute;
  display: inline-block;
  bottom: 0.8em;
  left: -10px;
  width: 5em;
  height: 5em;
  font-family: "Noto Sans Japanese";
  line-height: 5em;
  text-align: center;
  color: #32b16c;
  font-size: 80%;
  font-weight: bold;
  background: #fff;
  border: 3px solid #32b16c;
  border-radius: 50%;
  box-sizing: border-box;
  transform: rotate(-10deg);
}

#sc-what,
#sc-qualification {
  font-size: clamp(1.6rem, 1rem + 1vw, 2.2rem);
  /* 16px〜24px */
  line-height: 1.5;
  margin-bottom: 15px;
  padding: 10px 15px;
  background-color: rgba(143, 109, 81, .1);
  background: #9261c13d;
  border-radius: 5px;
}

#sc-what span {
  font-size: clamp(1.2rem, 0.8rem + 0.6vw, 1.6rem);
  /* 12px〜16px */
  position: relative;
  top: -0.25rem;
  left: 50%;
}

/* ===== Flow + CTA base ===== */
:root {
  --spc-main: #6b5ee6;
  /* こころ屋の「専門性」を想起させる青紫 */
  --spc-dark: #3e3a6d;
  --spc-bg: #f7f6ff;
  --spc-line: #e7e5fb;
  --spc-accent: #ff7f57;
  /* 軽いアクセント */
  --spc-text: #333;
}

.spc-flow_bg {
  padding-block: 0rem;
  background: #e0d4eb;
}

.spc-flow {
  margin: clamp(14px, 2vw, 20px) auto;
  padding: clamp(14px, 2.0vw, 20px);
  background: #fff;
  border: 1px solid var(--spc-line);
  border-radius: 14px;
}

.spc-flow__title {
  text-align: center;
  margin: 0 0 clamp(16px, 2.2vw, 22px);
  font-size: clamp(2rem, 1.2rem + 1.2vw, 2.2rem);
}

.spc-flow__title span {
  display: inline-block;
  background: var(--spc-bg);
  border: 1px solid var(--spc-line);
  color: var(--spc-dark);
  padding: .55em 1em;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: .02em;
}

.spc-intro__body {
  padding-inline: 4rem;
  padding-block: 4rem;
  background: #edf2fa;
  border-radius: 20px;
  box-shadow: 0 1.9px 2.5px rgba(0, 0, 0, 0.057), 0 5px 6.1px rgb(0 0 0 / 24%);
}

/* steps */
.spc-flow__steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: stretch;
  gap: clamp(10px, 1.8vw, 16px);
  flex-wrap: wrap;
  /* 狭い幅では折り返し */
  justify-content: center;
}

.spc-step {
  flex: 1 1 clamp(230px, 28%, 320px);
  min-width: 230px;
  background: #fff;
  border: 1px solid var(--spc-line);
  border-radius: 12px;
  padding: 14px 14px 12px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  box-shadow: 0 2px 10px rgba(30, 20, 90, .04);
}

.spc-step__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--spc-main);
  background: var(--spc-bg);
  border: 1px solid var(--spc-line);
  flex: 0 0 44px;
}

.spc-step__icon.svg_position {
  padding-top: 14px;
}

.spc-step__icon svg {
  width: 30px;
  height: 30px;
}

.spc-step__label {
  line-height: 1.6;
  color: var(--spc-text);
  margin: 0;
  font-size: clamp(.95rem, .9rem + .2vw, 1rem);
}



.spc-step__title {
  color: #c77f31;
  font-weight: bold;
  border-bottom: 1px solid #c2c2c2;
  margin: 0 0 2rem 0;
  display: inline-table;
  font-size: clamp(1.6rem, 1rem + 0.6vw, 1.8rem);
}

/* arrows between items（横並び時のみ出す） */
.spc-flow__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #bbb;
  font-size: 22px;
}

@media (max-width: 880px) {
  .spc-flow__arrow {
    display: none;
  }
}

/* CTA */
.spc-cta {
  margin-top: clamp(18px, 2.4vw, 28px);
  border: 1px dashed var(--spc-line);
  border-radius: 14px;
  background: linear-gradient(180deg, #fff, #fafaff);
  padding: clamp(14px, 2vw, 20px);
}

.spc-cta__copy {
  text-align: center;
  font-size: clamp(1.25rem, 1.3rem + .25vw, 1.6rem);
  color: var(--spc-dark);
  font-weight: 700;
  margin-bottom: clamp(10px, 1.4vw, 14px);
}

.spc-cta__heading {
  font-size: clamp(1.4rem, 1.2rem + 1.4vw, 1.85rem);
}

.spc-cta__btns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.spc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  text-decoration: none;
  cursor: pointer;
  font-weight: 700;
  letter-spacing: .02em;
  padding: .8em 1.2em;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform .02s ease-in, box-shadow .2s ease;
  white-space: nowrap;
}

.spc-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .07);
}

.spc-btn--tel {
  background: #2b8aef;
  color: #fff;
}

.spc-btn--tel small {
  font-weight: 500;
  opacity: .9;
}

.spc-btn--line {
  background: #00C300;
  color: #fff;
}

.spc-btn--mail {
  background: #e0d4eb;
  color: var(--spc-dark);
  border-color: var(--spc-line);
}

.spc-cta__note {
  text-align: center;
  color: #777;
  margin: .75em 0 0;
  font-size: .9rem;
}

/* overall spacing tune for narrow screens */
@media (max-width:600px) {
  .spc-step {
    padding: 12px;
  }

  .spc-step__icon {
    width: 40px;
    height: 40px;
  }

  .spc-btn {
    width: 100%;
  }
}

.credentials {}

.credentials h3 {
  font-size: clamp(1.4rem, 1rem + 1vw, 1.8rem);
  padding-inline: 1vw;
  padding-block: 1.0vh;
  font-weight: bold;
  color: #40225e;
  position: relative;
  border-radius: 14px;
  border-bottom: 3px solid #d4c4d7;
  background: #edf2fa;
}

.credentials h3::before,
.credentials h3::after {
  position: absolute;
  left: 30px;
  bottom: -15px;
  width: 30px;
  height: 15px;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  content: '';
}

.credentials h3::before {
  background-color: #d4c4d7;
}

.credentials h3::after {
  bottom: -11px;
  background-color: #edf2fa;
}

.credentials p {
  margin-block: 2rem;
  padding-inline: 2rem;
  font-size: clamp(1.4rem, 1.2rem + 0.5vw, 1.65rem);
  line-height: 1.8;
}

/* 資格ギャラリー */
.q-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(12px, 2vw, 20px);
  max-width: 600px;
  margin: auto;
  padding-block: 1vh;
}

.q-item {
  display: block;
}

.q-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.q-card {
  background: #fff;
  border: 1px solid #eceaf7;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .05);
  transition: transform .18s ease, box-shadow .2s ease;
}

.q-card:hover,
.q-card:focus-within {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .08);
}

.q-media {
  aspect-ratio: 4 / 3;
  /* 同じ比率で整える */
  background: linear-gradient(180deg, #faf9ff, #f6f4ff);
  display: grid;
  place-items: center;
}

.q-media img {
  max-width: 100%;
  max-height: 90%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.q-caption {
  padding: .9rem 1rem 1.1rem;
  font-size: clamp(1.2rem, 0.9rem + 0.4vw, 1.5rem);
  line-height: 1.5;
  text-align: center;
}

.q-badge {
  display: inline-block;
  font-size: .8em;
  line-height: 1;
  padding: .45em .7em;
  border-radius: 999px;
  background: #ece5f8;
  color: #5b4ad3;
  margin-right: .6em;
}

.q-note {
  margin: .6rem 0 0;
  font-size: clamp(1.2rem, 0.8rem + 0.6vw, 1.4rem);
  color: #777;
  text-align: center;
}

/* 低モーション環境 */
@media (prefers-reduced-motion: reduce) {
  .q-card {
    transition: none;
  }
}

.heading-21 {
  position: relative;
  padding: .5em .7em .4em;
  border-bottom: 3px solid #f0f0f1;
  color: #333333;
}

@media (max-width: 425px){
  .hero{ height: 58vh; }    /* 好みに調整（55–65vhあたり） */
  .hero-video{
    object-fit: contain;      /* 画面いっぱいに広げる */
    /* 見せたい重心（文字や顔が上寄りなら 50% 35% など） */
    object-position: 50% 40%;
  }
	.tophero_wrap__inner h2 {
    text-align: center;
    padding: 1em 0 0.5em 0;
		font-size: 1.4rem;
   }
	.q-media img {
        max-width: 50%;
        max-height: 100%;
        width: auto;
        height: auto;
        object-fit: contain;
        display: block;
        margin: auto;
}
	.spc-flow__title {
    text-align: center;
    margin: 0 0 clamp(16px, 2.2vw, 22px);
    font-size: clamp(1.4rem, 0.8rem + 1.2vw, 1.6rem);
}
	.spc-step__title {
  color: #c77f31;
  font-weight: bold;
  border-bottom: 1px solid #c2c2c2;
  margin: 0 0 1vh 0;
  display: inline-table;
}
	.tophero_wrap__inner h2 {
        text-align: center;
        padding: 1em 0 0.5em 0;
        font-size: 1.3rem;
    }
	.tophero_wrap__inner h2 b {
    font-size: 1.45rem;
}
	.service-block_Pr {
    padding: 0.5rem 2vw 0.5rem 12vw;
}
	.service-block_Pr span {
  display: inline-block;
  bottom: 5.84em;
  left: -13px;
  }
.service-block_Pr span:first-of-type(1) {
  bottom: 5.84em;
  left: -13px;
  }
}
