@charset "UTF-8";
/* ---------- base ---------- */
body {
  color: var(--black);
  font-size: 16px;
  font-family: "Righteous", sans-serif;
  font-weight: 400;
  font-style: normal;
  line-height: 2;
  letter-spacing: 0.1em;
}

/* 色管理用の変数 */
:root {
  --black: #1E1E1E;
  --white: #FDFAFA;
  --blue: #00B2D7;
  --pink: #FE3781;
  --yellow: #EEF660;
}

/* ttl画像のサイズ */
.ttl img {
  display: block;
  margin-inline: auto;      
  width: 80%;          
  height: auto;
}

/* CONTACT ボタン */
.btn-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 48px;
  padding: 8px;
  border-radius: 11px;
  border: 5px solid transparent;
  background: linear-gradient(var(--white), var(--white)) padding-box, linear-gradient(90deg, var(--pink), var(--yellow)) border-box;
  background-clip: padding-box, border-box;
  color: var(--black) !important;
}

/* 各セクションタイトル画像は最初は非表示にしておく */
#profile .profile__title img,
#pricing .pricing__title img,
#works .works__title img,
#process .process__title img {
  opacity: 0;
}

/* ---------- header ---------- */
.header {
  background: var(--blue);
  color: var(--black);
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 10;
}
.header__inner {
  margin-inline: auto;
  padding-inline: 32px;
  height: 5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.header__logo img {
  display: block;
  width: 80px;
  height: 60px;
  -o-object-fit: contain;
    object-fit: contain;
}
.header__nav-list {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.header__nav-link {
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
}
.header .hamburger {
  display: inline-grid;
  width: 32px;
  height: 24px;
  position: fixed;
  top: 2rem;
  right: 40px;
}
.header .hamburger .hamburger-bar {
  position: absolute;
  left: 50%;
  width: 100%;
  border-radius: 10px;
  height: 4px;
  background: var(--pink);
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.header .hamburger .hamburger-bar:nth-child(1) {
  top: 0;
  transform: translate(-50%, 0);
}
.header .hamburger .hamburger-bar:nth-child(2) {
  top: 50%;
  transform: translate(-50%, -50%);
}
.header .hamburger .hamburger-bar:nth-child(3) {
  top: 100%;
  transform: translate(-50%, -100%);
}
.header .hamburger.is-active .hamburger-bar:nth-child(1) {
  top: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
}
.header .hamburger.is-active .hamburger-bar:nth-child(2) {
  opacity: 0;
}
.header .hamburger.is-active .hamburger-bar:nth-child(3) {
  top: 50%;
  transform: translate(-50%, -50%) rotate(-45deg);
}
@media (max-width: 900px) {
  .header .header__nav {
    display: none;
  }
  .header .header__nav.is-active {
    display: grid;
    place-items: center;
    position: fixed;
    inset: 0;
    z-index: 60;
  }
  .header .header__nav.is-active::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.15);
    pointer-events: none;
  }
  .header .header__nav.is-active .header__nav-list {
    position: relative;
    z-index: 1;
    width: min(86vw, 360px);
    height: min(88vh, 560px);
    margin: 0;
    padding: clamp(20px, 5vw, 28px);
    list-style: none;
    border-radius: 16px;
    /* 白面＋グラデ枠（5px） */
    border: 5px solid transparent;
    background: linear-gradient(var(--white)) padding-box, linear-gradient(180deg, var(--pink), var(--blue)) border-box;
    display: grid;
    place-content: center;
    row-gap: clamp(20px, 4vw, 32px);
    text-align: center;
    /* ふわふわ上下 */
    animation: floatY 4s ease-in-out infinite;
  }
  .header .header__nav.is-active .header__nav-link {
    color: var(--black);
    font-weight: 800;
    font-size: clamp(16px, 4.2vw, 18px);
    transition: transform 0.15s ease, opacity 0.15s ease;
  }
  .header .header__nav.is-active .header__nav-link:where(:hover, :focus-visible) {
    transform: translateY(-1px);
    opacity: 0.9;
    outline: none;
  }
  @keyframes floatY {
    0%, 100% {
      transform: translateY(0);
    }
    50% {
      transform: translateY(-6px);
    }
  }
}
@media (min-width: 901px) {
  .header .header__nav {
    display: block;
  }
  .header .hamburger {
    display: none;
  }
}
.header .header .btn-contact::before {
  display: none;
}

/* ---------- kv ---------- */
.kv {
  position: relative;
  overflow: hidden;
  height: clamp(260px, 42vw, 650px);
  background: var(--pink);
  box-shadow: 0 0 0 100vmax var(--pink);
  clip-path: inset(0 -100vmax);
  --dot-color: #fb6ff4;
  --dot-size: 40px; /* グリッド間隔 */
  --dot-stop: 9%; /* 点の半径 */
  --gap-stop: 13%; /* 透過に切り替え */
}
.kv__inner {
  width: 100%;
}

.kv-art {
  position: absolute;
}

/* KV赤ちゃんの配置 */
.kv-art--left {
  position: absolute;
  top: 50%;
  left: 22%;
  height: auto;
  width: clamp(340px, 56vw, 900px);
}

/* KV吹き出しの配置 */
.kv-art--right {
  position: absolute;
  top: 50%;
  left: 65%;
  z-index: 2;
  width: 70%;
}

/* アニメーション半円を描いて中央へ --- */
@supports (offset-path: path("M0,0 L10,10")) {
  .kv-art {
    offset-rotate: 0deg;
  }
  /* KV赤ちゃん */
  .kv-art--left {
    offset-path: path("M -260 180 A 320 320 0 0 1 0 0");
    animation: kv-arc 1s cubic-bezier(0.2, 0.8, 0.2, 1) 1.2s both;
  }
  /* KV吹き出し */
  .kv-art--right {
    offset-path: path("M 260 180 A 320 320 0 0 0 0 0");
    animation: kv-arc 1s cubic-bezier(0.2, 0.8, 0.2, 1) 1.2s both;
  }
  @keyframes kv-arc {
    0% {
      offset-distance: 0%;
      opacity: 0;
    }
    100% {
      offset-distance: 100%;
      opacity: 1;
    }
  }
}
/* 斜め下→中央のフェード */
@supports not (offset-path: path("M0,0 L10,10")) {
  .kv-art--left {
    transform: translate(-16%, 10%);
    opacity: 0;
    animation: kv-fb-l 0.8s ease-out 0.05s both;
  }
  .kv-art--right {
    transform: translate(16%, 10%);
    opacity: 0;
    animation: kv-fb-r 0.9s ease-out 0.12s both;
  }
  @keyframes kv-fb-l {
    to {
      transform: translate(0, 0);
      opacity: 1;
    }
  }
  @keyframes kv-fb-r {
    to {
      transform: translate(0, 0);
      opacity: 1;
    }
  }
}
/* KV背景の装飾 */
.kv::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 100%;
  z-index: -1;
  /* 星の色 */
  background-color: #ff4ec1;
  /* 星の形（黒=見える部分）をタイルで繰り返し */
  -webkit-mask: url("data:image/svg+xml;utf8,  <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'>    <polygon fill='black' points='20,2 24,14 37,14 26,22 30,34 20,26 10,34 14,22 3,14 16,14'/>  </svg>") repeat;
  mask: url("data:image/svg+xml;utf8,  <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'>    <polygon fill='black' points='20,2 24,14 37,14 26,22 30,34 20,26 10,34 14,22 3,14 16,14'/>  </svg>") repeat;
  /* 星の間隔 */
  -webkit-mask-size: 20px 20px;
  mask-size: 20px 20px;
  /* 斜めにスクロール */
  animation: kv-stars 30s linear infinite;
}

/*  keyframes  */
@keyframes kv-stars {
  0% {
    -webkit-mask-position: 0% 0%;
    mask-position: 0% 0%;
  }
  100% {
    -webkit-mask-position: 100% 200%;
    mask-position: 100% 200%;
  }
}
/* ---------- profile ---------- */
.profile {
  position: relative;
  padding: 64px 32px;
  overflow: hidden;
}
.profile__content {
  position: relative;
}
.profile__card {
  position: relative;
}

.profile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--yellow);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8vw), 0 100%);
  z-index: 0;
}

.profile__inner {
  position: relative;
  z-index: 1;
}

/* 紹介文 */
.profile-info {
  position: static;
  width: min(100%, 600px);
  margin: 0 auto;
  padding: 1.5rem clamp(40px, 3vw, 48px);
  z-index: 5;
  font-size: clamp(1rem, 3vw, 2rem);
}
.profile-info__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  row-gap: 14px;
}
.profile-info__row {
  display: grid;
  grid-template-columns: 32px 1fr;
  -moz-column-gap: 12px;
       column-gap: 12px;
  align-items: center;
}
.profile-info__icon {
  width: 28px;
  height: auto;
  display: block;
}

/* 画像とラッパー（共通） */
.profile__card .profile-illust img {
  width: 100%;
  height: auto;
  display: block;
}

/* ★ キラキラ用オーバーレイを“画像の内側”に固定（ズレ防止） */
.profile__card > .profile-illust {
  position: relative;
  overflow: hidden;
}

.profile__card > .profile-illust > .js-glitter {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  /* 出現ペース調整（JSが参照） */
  --beat: 160ms; /* ティック間隔 */
  --max-stars: 16; /* 同時最大数 */
  --burst: 3; /* 1ティックで出す個数 */
}

/* ---- PC1200pxのみ調整 ---- */
@media (min-width: 1200px) {
  .profile-info {
    --overlap-x: -5vw; /* ← 重なり具合調整用 */
    top: 56%;
    left: 12%;
    width: clamp(360px, 40vw, 600px);
    z-index: 5;
    font-size: clamp(1.5rem, 2vw, 2rem);
  }
}
/* ---- PC（1201px〜）：画像×文字を“重ねる”配置に切替 ---- */
@media (min-width: 1201px) {
  .profile__card {
    min-height: clamp(520px, 50vw, 760px);
  }
  .profile-info {
    position: absolute;
    transform: translate(var(--overlap-x), -50%); /* 横に寄せて重ねる */
  }
}
/*   プロフィールのアニメーション */
/* キラキラ1個（背景画像パスは調整） */
.star {
  position: absolute;
  display: block;
  width: var(--star-size, 40px); /* 星の大きさ */
  height: var(--star-size, 40px);
  background-image: url("../img/star.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center center;
  left: 0;
  top: 0;
  transform: translate(-50%, -50%) scale(0);
  pointer-events: none;
  z-index: 2;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.55));
  --twinkle: 900ms; /* 1個の寿命（早く消したいなら短く） */
  animation: glitter var(--twinkle) ease-in-out both;
}

@keyframes glitter {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
  }
  50% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
  }
}
/* ---------- works ---------- */
.works {
  position: relative;
  padding: 96px 0;
}
.works__inner {
  margin-inline: auto;
  padding-inline: 32px;
  max-width: 1500px;
}
.works__title {
  text-align: center;
  margin-bottom: 40px;
}
.works__title img {
  display: inline-block;
  height: auto;
}
.works__list {
  display: grid;
}

/* 作品1つ */
.works-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 6px 20px rgba(0,0,0,.06);
  isolation: isolate;

  /* 3D tilt 変数（JSで上書き可） */
  --rx: 0deg;   /* rotateX */
  --ry: 0deg;   /* rotateY */
  --lift: 0px;  /* translateY */
  --scale: 1;

  transform-style: preserve-3d;
  will-change: transform;
  transform: translateY(var(--lift)) rotateX(var(--rx)) rotateY(var(--ry)) scale(var(--scale));
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, backdrop-filter .25s ease, filter .25s ease;
}

/* グラデ枠は“線だけ”に。常時は静止、hover時のみゆっくり動かす */
.works-card::before{
  content:"";
  position:absolute; inset:0;
  padding:2px;                      /* 枠の太さ（控えめ） */
  border-radius: inherit;
  background: linear-gradient(130deg,#FE3781 0%,#00B2D7 50%,#FE3781 100%);
  background-size: 200% 200%;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;  
  pointer-events:none;
  filter: brightness(.98);
  transition: filter .25s ease;
}
.works-card::after{
  content:"";
  position:absolute; inset:-1px;
  border-radius:inherit;
  mix-blend-mode: screen;
  opacity:0;
  pointer-events:none;
  transition: opacity .2s ease;
}

.works-card__link{
  display:grid;
  grid-template-rows: auto 1fr;     
  height:100%;
  text-decoration:none;
  transition: box-shadow .25s ease;
}
.works-card__link:hover,
.works-card__link:focus-visible{
  box-shadow: 0 12px 28px rgba(0,0,0,.10);
  outline:none;
}

.works-card__thumb{
  position: relative;
  aspect-ratio: 4 / 3;              /* ここを 16/9 にすると横長カード */
  overflow: hidden;
  transform: translateZ(18px);
  background:#f3f4f6;
}
.works-card__thumb img{
  width:100%; height:100%;
  object-fit: cover;
  display:block;
  transition: transform .35s cubic-bezier(.2,.7,0,1);
  transform-origin:center;
  backface-visibility:hidden;
}

.works-card__body{
  padding:20px;
  color:var(--black);
  display:grid;
  align-content:start;
  text-align:center;
  gap:12px;
  transform: translateZ(22px);
  backface-visibility:hidden;
}

.works-card__title{
  margin:0;
  letter-spacing:.02em;
  line-height:1.2;
  font-size: clamp(1.5rem, 2vw, 2rem);
  font-weight: bold;
}

.works-card__url{
  display:inline-block;
  color:#6b7280;
  border-top:1px dashed #e5e7eb;
  padding-top:10px;
  font-size:13px;
}

/* ===== hover effects（控えめ） ===== */
@media (hover:hover){
  .works-card:hover,
  .works-card:focus-within{
    background: rgba(255,255,255,.22);
    -webkit-backdrop-filter: blur(14px) saturate(180%);
            backdrop-filter: blur(14px) saturate(180%);
    filter: saturate(110%);
  }
  .works-card:hover .works-card__thumb img,
  .works-card:focus-within .works-card__thumb img{
    transform: scale(1.03);
  }
  .works-card:hover::before,
  .works-card:focus-within::before{
    animation: worksGlowShift 1.4s linear infinite;
    filter: brightness(1.06);
  }
  .works-card:hover::after,
  .works-card:focus-within::after{
    opacity:1;
  }
}

/* グラデ枠のアニメ（お好みで速度調整） */
@keyframes worksGlowShift{
  0%   { background-position: 0%   50%; }
  100% { background-position: 100% 50%; }
}

.works-swiper {
  padding-bottom: 40px; 
}

.swiper-slide {
  height: auto;
}

.works-card {
  height: 100%;
}

.works__item {
  margin-right: 1rem;
}

.swiper-button-next::after,
.swiper-button-prev::after {
  color: #FE3781 !important;
  font-size: 40px !important;
}


/* ---------- process ---------- */
.process {
  --rail-top: clamp(90px, 14vw, 160px);
  --card-d: clamp(230px, 29vw, 320px);
  --skew: 8vw; /* 斜めの高さ（上も下も同じ傾き） */
  position: relative;
  padding: 165px 0;
  overflow: hidden;
  background: transparent;
  /* 600px以上で2列 */
}
.process::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--yellow);
  clip-path: polygon(0 var(--skew), 100% 0, 100% calc(100% - var(--skew)), 0 100%);
  z-index: 0;
}
.process__inner {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}
.process__title {
  margin-bottom: 18px;
}

.process__list {
  display: grid;
  grid-template-columns: 1fr; /* まず1列 */
  grid-auto-rows: auto; /* カード高さは中身に合わせる */
  place-items: stretch;
  gap: clamp(24px, 3vw, 36px);
  list-style: none;
  margin-left: 25px;
  padding: 0;
  background: none;
}
@media (min-width: 600px) {
  .process__list {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 960px) {
  .process__list {
    display: grid;
    grid-template-columns: repeat(3, var(--card-d));
    grid-auto-rows: var(--card-d);
    place-items: center;
    gap: clamp(24px, 3vw, 36px);
    list-style: none;
    margin-left: 25px;
    padding: 0;
    background: url("../img/Union.png") no-repeat center top/100% auto, url("../img/Union.png") no-repeat center bottom/100% auto;
  }
}

.process-card {
  position: relative;
  width: 100%;
  aspect-ratio: auto;
  border-radius: 9999px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: clamp(16px, 6vw, 40px);
  box-sizing: border-box;
  text-align: center;
  /* === hoverで左に傾けて浮かせるアニメーション === */
  --tilt: 6deg; /* 傾き量（左＝マイナス回転） */
  --lift: 6px; /* 少しだけ持ち上げる量 */
  --dur: .35s;
  --ease: cubic-bezier(.22,.61,.36,1);
  --shadow-rest: 0 6px 16px rgba(0,0,0,.08);
  --shadow-hover: 0 14px 28px rgba(0,0,0,.18);
  transform-origin: center center;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  will-change: transform, box-shadow;
}
.process-card__icon {
  width: 56px;
  height: 56px;
  display: block;
}
.process-card__title {
  color: var(--black);
}
.process-card__desc {
  color: var(--black);
}
.process-card__btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 48px;
  padding: 0 16px;
  border: none;
  border-radius: 11px;
  background: var(--white);
  color: var(--black);
  text-decoration: none;
  transition: 0.2s;
}
.process-card__btn::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 5px;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--pink), var(--blue));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.process-card:hover, .process-card:focus-visible {
  transform: rotate(calc(-1 * var(--tilt))) translateY(calc(-1 * var(--lift)));
}
.process-card:active {
  transform: rotate(calc(-1 * var(--tilt) - 1deg)) translateY(0);
}

/* ---------- Pricing ---------- */
.pricing {
  padding: clamp(48px, 8vw, 96px) 0;
  align-items: stretch;
}
.pricing__inner {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 32px;
}
.pricing__title {
  margin: 0 0 clamp(16px, 3vw, 24px);
  text-align: center;
}
.pricing__title img {
  display: inline-block;
  height: auto;
}
.pricing__item {
  display: flex;
}
.pricing__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 28px;
}
@media (max-width: 960px) {
  .pricing__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .pricing__list {
    grid-template-columns: 1fr;
  }
}

/* カード：ホバー（PC）＆タップ中（SP）浮く */
.pricing-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  height: 100%;
  border-radius: 18px;
}
.pricing-card:hover, .pricing-card:focus-visible {
  transform: translateY(calc(-1 * var(--lift)));
  box-shadow: var(--shadow-hover);
  filter: var(--drops-hover);
}
.pricing-card__body {
  grid-row: 1/3;
  padding: clamp(20px, 3vw, 28px);
  color: var(--black);
  display: grid;
  gap: 14px;
  text-align: center;
  align-content: start;
}
.pricing-card__title {
  margin: 0;
  font-size: clamp(1.5rem, 2vw, 2rem);
  font-weight: bold;
}
.pricing-card__title small {
  font-size: 0.9em;
}
.pricing-card__price {
  margin: 0;
  font-weight: 700;
  font-size: clamp(22px, 3.2vw, 28px);
}
.pricing-card__price .pricing-card__num {
  font-size: 1.6em;
}
.pricing-card__features {
  text-align: left;
  display: grid;
  row-gap: 8px;
}
.pricing-card__features li {
  position: relative;
  padding-left: 1.4em;
  line-height: 1.6;
}
.pricing-card__features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
}
.pricing-card__leadtime {
  display: block;
  color: var(--black);
  text-align: center;
  line-height: 48px;
  border-radius: 10px;
  background: var(--yellow);
  margin: 32px;
}

.top-contact {
  position: relative;
  padding: clamp(10px, 1vw, 140px) 0;
  overflow: hidden;
  --img-w: clamp(360px, 98vw, 1100px); /* PCの background-size と同じ式 */
  --img-ratio: 1.00; /* 画像の縦横比 = 高さ/幅（例: 700/700=1.00）。実ファイルに合わせて調整 */
  --sig-x-pct: 0.005; /* 画像の左から何%の位置にアンテナがあるか（0〜1） */
  --sig-y-pct: 0.65;
  /* 画像を下へずらす量（＋で下へ） */
  --img-offset-y: 60px;
  /* 電波のデフォルト（必要に応じて調整） */
  --signal-x: 35%;
  --signal-y: 75%;
  --signal-tilt: -28deg;
  --ring-gap: 22px;
  --ring-stroke: 2px;
  --stretch-1: 1.8;
  --stretch-2: 2.4;
  --stretch-3: 3.2;
  --seq-t: 2.7s; /* ぽわぽわ1サイクル時間 */
  /* コンタクトとフッターの間青にする */
}
.top-contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--pink);
  clip-path: polygon(0 14%, 100% 0, 100% 86%, 0 100%);
  z-index: 1;
}
.top-contact::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--blue);
  clip-path: polygon(0 100%, 100% 86%, 100% 100%);
  z-index: 0;
  inset: 0 -1px -2px -1px;
}
.top-contact__inner {
  position: relative;
  margin: 0 auto;
  padding: 0 20px;
  min-height: 487px;
  z-index: 5;
  background-image: url("../img/contact-baby.png");
  background-repeat: no-repeat;
  background-size: clamp(360px, 98vw, 1100px) auto;
  /* ▼ 画像をさらに下へオフセット */
  background-position: center calc(100% + var(--img-offset-y));
}
.top-contact__lead {
  position: absolute;
  top: clamp(40%, 2vw, 61%);
  left: clamp(43%, 2vw, 61%);
  margin: 0;
  text-align: center;
  color: var(--white);
  font-size: clamp(1.2rem, 2.4vw, 2.2rem);
}

/* 電波：3段固定リング（斜め配置 & 順番点灯） */
.top-contact__signal {
  position: absolute;
  left: calc(50% - var(--img-w) / 2 + var(--img-w) * var(--sig-x-pct));
  top: calc(100% - var(--img-w) * var(--img-ratio) + var(--img-w) * var(--img-ratio) * var(--sig-y-pct) + var(--img-offset-y, 0px));
  width: 1px;
  height: 1px;
  transform: translate(-50%, -50%) rotate(var(--signal-tilt, -28deg));
  pointer-events: none;
  z-index: 6;
}

/* CONTACTボタン */
.top-contact__btn {
  position: absolute;
  top: 57%;
  left: 54%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 240px;
  height: 80px;
  font-size: 24px;
  color: var(--black);
  background: var(--white);
  border-radius: 12px;
  /* 枠線グラデ */
}
.top-contact__btn::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 5px;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--yellow));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
}

@media (max-width: 965px) {
  .top-contact {
    --img-w: 200px;
    --img-ratio: 1.00;
    --sig-x-pct: 0.62;
    --sig-y-pct: 0.16;
    /* ▼ きらきら用：CTAの座標＆オフセット／速度 */
    --cta-x: 54%;
    --cta-y: 57%;
    --arc-r: 72px; /* 円弧半径 */
    --arc-scale-x: 1.6; /* 楕円の横伸び */
    --arc-t: 4s; /* 点滅サイクル */
    --arc-offset-x: clamp(120px, 12vw, 220px); /* CTA中心から左右へ */
    --arc-offset-y: clamp(24px, 3vw, 60px); /* CTA中心から上下へ */
  }
  /* 電波：3段固定リング（斜め配置 & 順番点灯） */
  .top-contact__signal {
    position: absolute;
    left: calc(50% - var(--img-w) / 1 + var(--img-w) * var(--sig-x-pct));
    top: calc(100% - var(--img-w) * var(--img-ratio) + var(--img-w) * var(--img-ratio) * var(--sig-y-pct) + var(--img-offset-y, 0px));
  }
}
.top-contact__signal .ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: var(--ring-stroke, 2px) solid rgba(255, 255, 255, 0.75);
  opacity: 0.12;
  transform-origin: 50% 50%;
  mix-blend-mode: screen;
  box-shadow: none;
  animation: ring-seq-strong var(--seq-t, 2.7s) cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

/* 下・中・上（縦にずらし、上ほど横長） */
.top-contact__signal .ring--1 {
  transform: translate(-50%, calc(-50% + 0 * var(--ring-gap, 22px))) scaleX(var(--stretch-1, 1.8));
  animation-delay: 0s;
}

.top-contact__signal .ring--2 {
  transform: translate(-50%, calc(-50% - 1 * var(--ring-gap, 22px))) scaleX(var(--stretch-2, 2.4));
  animation-delay: calc(var(--seq-t, 2.7s) * 0.35);
}

.top-contact__signal .ring--3 {
  transform: translate(-50%, calc(-50% - 2 * var(--ring-gap, 22px))) scaleX(var(--stretch-3, 3.2));
  animation-delay: calc(var(--seq-t, 2.7s) * 0.7);
}

/* ぽわっと強発光 → 戻る（“動きは今のまま”） */
@keyframes ring-seq-strong {
  0%, 20% {
    opacity: 0.12;
    box-shadow: none;
    filter: none;
  }
  30% {
    opacity: 1;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.45), 0 0 12px rgba(255, 255, 255, 0.95), 0 0 30px rgba(255, 255, 255, 0.7), 0 0 60px rgba(255, 255, 255, 0.45);
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.95));
  }
  40%, 100% {
    opacity: 0.12;
    box-shadow: none;
    filter: none;
  }
}
/* 動き軽減 */
@media (prefers-reduced-motion: reduce) {
  .top-contact__signal .ring {
    animation: none !important;
    opacity: 0.4;
  }
}
@media (max-width: 965px) {
  .top-contact {
    /* SP用オフセット・位置など */
    --img-offset-y: 50px;
    /* CTAを40px下げて上に隙間を作る */
  }
  .top-contact__lead, .top-contact__btn {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
  }
  .top-contact__lead {
    top: 22%;
  }
  .top-contact__btn {
    top: calc(37% + 40px);
  }
  .top-contact__inner {
    background-image: url("../img/contact-baby-up.png");
    background-repeat: no-repeat;
    background-size: 200px auto;
    min-height: 520px;
    background-position: center calc(100% + var(--img-offset-y));
  }
}
.top-footer {
  background: var(--blue);
  box-shadow: 0 -100px 0 var(--blue); /* コンタクトとフッターの境目を青で埋める */
  color: var(--white);
  padding: clamp(28px, 4vw, 48px) 0;
  /* 細い横線 */
}
.top-footer__inner {
  max-width: 250px;
  margin-inline: auto;
  padding-inline: 20px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(32px, 10vw, 140px);
}
.top-footer__brand img {
  display: block;
  height: 80px;
  width: 80px;
}
.top-footer__menu {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
  text-align: center;
}
.top-footer__menu a {
  color: var(--white);
  text-decoration: none;
  font-size: 12px;
  opacity: 0.95;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.top-footer__menu a:hover,
.top-footer__menu a:focus-visible {
  opacity: 1;
  transform: translateY(-1px);
  outline: none;
}
.top-footer__rule {
  width: min(92%, 1040px);
  margin: clamp(20px, 4vw, 36px) auto 10px;
  border: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.6);
}
.top-footer__copy {
  margin: 0 auto;
  text-align: center;
  font-size: 12px;
  opacity: 0.9;
}

/* ====== Click burst (balls) ====== */
.burst {
  position: fixed; /* クリック座標に出す */
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  pointer-events: none;
  z-index: 9999;
}

.burst__dot {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--size, 10px);
  height: var(--size, 10px);
  border-radius: 50%;
  background: var(--color, #fff);
  transform: translate(0, 0) scale(0.2);
  opacity: 0;
  filter: drop-shadow(0 0 6px rgba(0, 0, 0, 0.15));
  animation: burst-pop var(--t, 700ms) cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

@keyframes burst-pop {
  0% {
    transform: translate(0, 0) scale(0.2);
    opacity: 1;
  }
  75% {
    transform: translate(var(--dx), var(--dy)) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(calc(var(--dx) * 1.05), calc(var(--dy) * 1.05)) scale(0.6);
    opacity: 0;
  }
}
/* ---------- contactページ ---------- */
/* --- Contact セクションのベース --- */
.contact {
  --contact-h: 330;             /* 色相 Hue 0–360 */
  --contact-s: 100%;            /* 彩度 */
  --contact-l: 60%;             /* 輝度 */
  background: hsl(var(--contact-h), var(--contact-s), var(--contact-l));
  padding: 64px 0 72px;
  color: var(--black, #222);
}

.contact__inner {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 20px;
}

.contact__title {
  text-align: center;
  margin: 0 0 32px;
  font-size: 40px;
}

.contact__form {
  display: grid;
  row-gap: 28px;
}

.contact__label {
  display: block;
}

/* --- グラデの枠線（太さ5px） --- */
.gbrd{
  position: relative;
  border-radius: 12px;
  margin-bottom: 40px;
  background: #fff;
  overflow: hidden;             /* 角のはみ出し防止 */
}
.gbrd::before{
  content:"";
  position:absolute;
  inset:0;
  padding:5px;                  /* ← 枠の太さ */
  border-radius:inherit;
  background: linear-gradient(90deg, var(--yellow, #FFD54F), var(--blue, #00B5FF));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events:none;        
  z-index: 7;                
}

/* フォーカス時は枠を少し明るく */
.gbrd:focus-within::before {
  filter: brightness(1.07);
}

/* 送信ボタン行 */
.contact__actions {
  display: flex;
  justify-content: center;
  margin-top: 80px;
}

/* ボタン用の枠（角丸保持＆はみ出し防止） */
.gbrd--btn{
  border-radius: 12px;
  display: inline-block;
  height: 64px;
  overflow: hidden;
  background: transparent;
}

/* ボタン本体 */
.contact__btn{
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  height: 64px;
  background: var(--white);
  color: var(--black);
  border: 0;
  border-radius: inherit;
  cursor: pointer;
}

/* アクセシビリティ用フォーカス（必要なら残す） */
.contact__btn:focus-visible {
  outline: 2px dashed rgba(255, 255, 255, 0.8);
  outline-offset: 3px;
}


/* ---------- Thanks ページ ---------- */
.thanks{
  min-height: 70vh;
  display: grid;
  place-items: center;
  background-color: var(--blue);
}

.thanks__title{
  color: var(--white); 
  font-size: 72px;
  text-align: center;
  font-weight: 700;
}
