@charset "UTF-8"; 
/* =========================================================
   Service Page Layout
   PC → TAB → SP レスポンシブ構成
========================================================= */

.page-service {
    display: flex;
    flex-direction: column;
    padding: 0 8vw;
    gap: 3vw;
}

.section {
  width: 100%;
  margin: 0 auto;
  padding: .5vw 0;
}

.section__title {
  display: inline-block;         /* ← これが必須（幅を文字分に！） */
  position: relative;
  padding-bottom: .4rem;
  margin-bottom: 3vw;
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.4;
}

.section__title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;                   /* ← テキスト幅に完全同期！ */
  height: 3px;
  background-color: #585858;
  border-radius: 3px;
}
/* =======================
   Scroll Animation Base
======================= */
.scroll-fade {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .8s ease, transform .8s ease;
}
.scroll-fade.is-show {
  opacity: 1;
  transform: translateY(0);
}

/* Step（円の演出ちょい足し） */
.step-anim {
  opacity: 0;
  transform: scale(.92) rotate(1deg);
  transition: opacity .9s ease, transform .9s cubic-bezier(.25,.8,.25,1);
}
.step-anim.is-show {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

/* FAQ（控えめに） */
.faq-anim {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s ease, transform .7s ease;
}
.faq-anim.is-show {
  opacity: 1;
  transform: translateY(0);
}


/* ===============================
   01: Header
=============================== */
.service__header {
  text-align: center;
  padding: 15vw 0 0;
}

.service__title {
  font-size: 4.2rem;
  font-weight: 700;
  letter-spacing: .05em;
}

.service__subtitle {
  font-size: 1.4rem;
  margin-top: .8rem;
  letter-spacing: .1em;
}

/* ===============================
   02: 対応可能領域 / グリッド
=============================== */
.service__area-inner {
  border: 7px solid #585858;
  padding: 4vw;
  background: #fff;
}

.service__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4vw;
}

.service__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1vw;
    padding: 2vw;
}
.service__item h3 {
  font-size: 1.7rem;
  margin-bottom: .6rem;
}

.service__item p {
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.6;
}

/* ===============================
   03: 対応外
=============================== */
.service__ng {
  width: 85%;
  padding: 2vw 0;
}

.service__ng-grid {
  display: flex;
  justify-content: center;
  gap: 9vw;
}

.ng__item {
  display: flex;
  flex-direction: column;
  width: 25%;
  gap: 1.5vw
}
/* ▼アクセントライン */
.ng__item h3 {
  display: inline-block;         /* ← これが必須（幅を文字分に！） */
  position: relative;
  padding-bottom: .4rem;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.4;
}

.ng__item h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;                   /* ← テキスト幅に完全同期！ */
  height: 3px;
  background-color: #585858;
  border-radius: 3px;
}

.ng__item p {
  font-size: 1.3rem;
  font-weight: 500;
}
/* ===============================
   04: 納品の流れ（Flow）
=============================== */
.flow__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5vw 0;
  margin: 5vw auto;
  align-items: start;
}

.flow__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
  justify-content: center;
}
.flow__item:not(:nth-child(3)):not(:nth-child(6)):after {
  content: "▶︎";
  font-size: 3.5rem;
  font-weight: 700;
  color: #585858b2;
  position: absolute;
  right: 10%;
  transform: translateY(-50%);
}
.flow__item:nth-child(7) {
  grid-column: 2 / 3;
}
.flow__item.is-show {
  opacity: 1;
  transform: translateY(0);
}

/* 矢印にも軽い遅延表示（任意）*/
.flow__item::after {
  opacity: 0;
  transition: opacity .4s ease .2s;
}
.flow__item.is-show::after {
  opacity: 1;
}

/* ===== 画像とテキストをかぶせる ===== */
.flow__img-wrap {
  position: relative;
  width: 28vw;
}
.flow__text {
  position: relative;
  margin-top: -15vw;       /* ← ここで画像に被せる量を調整 */
  width: 80%;
  background: transparent; /* ← 背景なしで重なり感 */
}

/* ===== Step & 説明文 ===== */
.flow__step {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: .6rem;
  color: #000;
}

.flow__desc {
  height: 20vh;
  font-size: 1.6rem;
  line-height: 1.7;
  font-weight: 500;
  color: #333;
}

/* ===== 7番だけ中央配置 ===== */
.flow__item:nth-child(7) {
  grid-column: 2 / 3;
}
/* 🎯7番目の矢印だけ左側に移動する */
.flow__item:nth-child(7)::after {
  right: auto;
  left: -5vw;        /* ←位置は調整OK（画像に寄せたい場合調整して） */
  transform: translateY(-50%) rotate(180deg); /* ←向きも反転 */
}
.hand-circle {
  position: absolute;
  top: -5vw;
  left: -5vw;
  width: 32vw;
  height: 32vw;
  fill: none;
  stroke: #b9cf3b;
  stroke-width: 3.2px;
  stroke-linecap: round;
  stroke-linejoin: round;
  rotate: 180deg;
  stroke-dasharray: 380;
  stroke-dashoffset: 380;
  animation: drawCircle 1.8s ease-out forwards;
}

/* 描き進むアニメーション */
@keyframes drawCircle {
  0%   { stroke-dashoffset: 380; }
  100% { stroke-dashoffset: 0; }
}

.hand-circle.is-draw {
  animation: drawCircle 1.8s ease-out forwards;
}

/* ===============================
   05: FAQ
=============================== */

.faq {
  display: flex;
  width: 100%;
  padding: 0 12vw;
  gap: 1vw;
  flex-direction: column;
}

.faq__item {
  display: flex;
  gap: 1vw;
  flex-direction: column;
}

/* Q 行 */
.faq__question {
  font-size: 2.4rem;
  font-weight: 700;
  margin: 1.8rem 0 .6rem;
  cursor: pointer;
  position: relative;
  padding-right: 2.3rem;
}

/* Q 右側の「＋ / −」アイコン */
.faq__question::after {
  content: "＋";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 700;
  font-size: 2rem;
}

/* 開いているときは − に */
.faq__item.is-open .faq__question::after {
  content: "－";
}

/* A 部分（アコーディオン本体） */
.faq__answer {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-4px);
  transition:
    max-height 0.45s ease,
    opacity 0.3s ease,
    transform 0.3s ease;
  font-size: 1.7rem;
  line-height: 1.8;
}

.faq__inner {
  display: flex;
  flex-direction: column;
  gap: .8vw;
}
.faq__answer-sub {
  padding: 0 3vw;
}

/* A の見出し「A.〜」だけ少し強調 */
.faq__answer-head {
  font-size: 2.3rem;
  font-weight: 700;
  margin-bottom: .4rem;
}

/* 開いているとき */
.faq__item.is-open .faq__answer {
  max-height: 500px;  /* 文章量に合わせて十分大きめに */
  opacity: 1;
  transform: translateY(0);
}
.faq__work-box {
  display: flex;
  flex-direction: column;
  gap: 2vw;
  padding: 0vw 3vw;
}

.faq__work {
  display: flex;
  flex-direction: column;
  gap: .5vw;
}
.faq__work-head {
  font-size: 1.7rem;
}
.faq__work-txt {
  font-size: 1.4rem;
}
.faq__work-attention {
  display: flex;
  flex-direction: column;
  gap: .5vw;
}
.faq__work-attention p {
  font-size: 1.2rem;
}

/* ===============================
   07: Responsive
=============================== */

  /* 📱 Tablet (1024px) */
  @media (max-width: 1024px){
  .section__title {
    font-size: 2.2rem;
  }
  .page-service {
    gap: 3vw;
  }
  /* ===============================
    01: Header
  =============================== */
  .service__header {
    text-align: start;
  }
  /* ===============================
    02: 対応可能領域 / グリッド
  =============================== */
  .service__area-inner {
    padding: 2vw;
  }
  .service__grid {
    gap: 0;
  }
  .service__item h3 {
    font-size: 1.5rem;
    text-align: center;
  }
  .service__item p {
    font-size: 1.3rem;
  }
  /* ===============================
    03: 対応外
  =============================== */
  .service__ng {
    width: 100%;
    padding: 3vw 0;
  }
  .service__ng-grid {
    justify-content: center;
    gap: 5vw;
  }
  .ng__item {
    width: 100%;
  }
  /* ▼アクセントライン */
  .ng__item h3 {
    font-size: 1.6rem;
  }
  .ng__item h3::after {
    display: none;
  }
  /* ===============================
    04: 納品の流れ（Flow）
  =============================== */
  .flow__grid {
    margin: 0;
    justify-content: start;
  }
  .flow__item:not(:nth-child(3)):not(:nth-child(6)):after {
    display: none;
  }
  .flow__img-wrap {
    width: 30vw;
  }
  .flow__text { 
    width: 90%;
  }
  /* ===== Step & 説明文 ===== */
  .flow__step {
    font-size: 1.6rem;
    margin-bottom: 1.6rem;
  }
  .flow__desc {
    height: 10vh;
    font-size: 1.3rem;
  }
  /* ===============================
    05: FAQ
  =============================== */
  .faq {
    width: 85%;
    padding: 0;
  }
  .faq__question {
    font-size: 2rem;
  }
  .faq__answer {
    font-size: 1.4rem;
  }
  .faq__inner {
    display: flex;
    flex-direction: column;
    gap: .8vw;
  }
  .faq__answer-sub {
    padding: 0 3vw;
  }
  .faq__answer-head {
    font-size: 2rem;
  }
}


/* 📱 Smartphone (810px) */
@media (max-width: 810px){
  .section__title {
    font-size: 1.9rem;
    margin-bottom: 10vw;
  }
  .page-service {
    gap: 5vw;
  }
  /* ===============================
    01: Header
  =============================== */
  .service__header {
    text-align: start;
  }
  .service__title {
    font-size: 2.2rem;
  }
  .service__subtitle {
    font-size: 1.2rem;
  }
  /* ===============================
    02: 対応可能領域 / グリッド
  =============================== */
  .service__area-inner {
    border: 3px solid #585858;
    padding: 4vw 6vw;
  }
  .service__grid {
    grid-template-columns: repeat(1, 1fr);
    gap: 0;
  }
  .service__item img {
    width: 50vw;
  }
  .service__item h3 {
    font-size: 1.4rem;
  }
  .service__item p {
    font-size: 1.2rem;
  }
  /* ===============================
    03: 対応外
  =============================== */
  .service__ng {
    padding: 5vw;
  }
  .service__ng-grid {
    flex-direction: column;
    gap: 10vw;
  }
  .ng__item h3 {
    font-size: 1.5rem;
  }
  .ng__item p {
    font-size: 1.2rem;
  }
  /* ===============================
    04: 納品の流れ（Flow）
  =============================== */
  .service__flow {
    padding: 5vw;
  }
  .flow__grid {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .flow__img-wrap {
    width: auto;
  }
  .flow__text { 
    width: 100%;
    margin-top: -45vw;
  }
  /* ===== Step & 説明文 ===== */
  .flow__step {
    font-size: 1.5rem;
    margin-bottom: 1.6rem;
  }
  .flow__desc {
    height: 25vh;
    font-size: 1.2rem;
  }
  .hand-circle {
    width: 75vw;
    height: 75vw;
  }
  /* ===============================
    05: FAQ
  =============================== */
  .faq {
    width: 100%;
  }
  .faq__question {
    font-size: 1.3rem;
  }
  .faq__answer {
    font-size: 1.2rem;
    font-weight: 500;
  }
  .faq__answer-head {
    font-size: 1.3rem;
  }
  .faq__work-box {
    gap: 5vw;
    padding: 5vw 3vw;
  }
  .faq__work-head {
    font-size: 1.3rem;
  }
  .faq__work-txt {
    font-size: 1.2rem;
    font-weight: 500;
  }
}