/* ==========================================================================
   CV (Figma: PC/CV 1440x614 / SP/CV 390x663)
   ========================================================================== */

.cv {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: var(--space-600);
  background: var(--primary-500);
}

.cv__pattern {
  position: absolute;
  z-index: -1;
  left: -84px;
  bottom: -76px;
  width: 734px;
  max-width: none;
  height: 377px;
  object-fit: cover;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.cv__box {
  max-width: 800px;
  margin-inline: auto;
  padding: 16px 16px 25px;
  background: var(--white);
  color: var(--black);
  text-align: left;
}

.cv__note {
  font-size: 14px;
  line-height: 1.7;
  letter-spacing: 0;
  text-align: center;
}

.cv__note .t1 { letter-spacing: -0.11em; }
.cv__note .t2 { letter-spacing: -0.02em; }

.cv__actions {
  display: grid;
  justify-content: center;
  gap: 12px;
  margin-top: 14px;
}

@media (min-width: 768px) {
  .cv__pattern {
    left: auto;
    right: -420px;
    bottom: -274px;
    width: 1360px;
    height: 698px;
  }

  .cv__box {
    padding: 32px 32px 32px;
  }

  .cv__actions {
    grid-template-columns: repeat(2, 270px);
    gap: 24px;
    margin-top: 16px;
  }
}

/* --- LINE card ----------------------------------------------------------- */
.cvl {
  max-width: 564px;
  margin: 8px auto 0;
  padding-top: 24px;
}

.cvl__head {
  position: relative;
  height: 91px;
  border-radius: var(--radius-400) var(--radius-400) 0 0;
  background: var(--secondary-500);
  color: var(--white);
  font-weight: 700;
  text-align: center;
}

.cvl__tab {
  position: absolute;
  top: -24px;
  left: 50%;
  width: 204px;
  height: 47px;
  translate: -50% 0;
  padding-top: 4px;
  border-radius: 30px;
  background: var(--secondary-500);
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: 0.034em;
}

.cvl__tab .d { font-size: 13px; letter-spacing: 0.13em; }

.cvl__title {
  position: relative;
  padding-top: 23px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
}

.cvl__title .line { font-weight: 900; }
.cvl__title .de { font-size: 14px; letter-spacing: 0.16em; }

/* 「かんたん」の上の傍点 */
.cvl__title .dots {
  padding-top: 8px;
  background: radial-gradient(circle, var(--white) 2.5px, transparent 3px) 8px 0 / 21px 5px repeat-x;
}

.cvl__title-main {
  display: block;
  margin-top: 6px;
  font-size: 28px;
  letter-spacing: 0.08em;
}

.cvl__body {
  border: 4px solid var(--secondary-500);
  border-radius: 0 0 var(--radius-400) var(--radius-400);
  background: var(--white);
}

.cvl__body .ab {
  aspect-ratio: 302 / 212;
}

@media (min-width: 768px) {
  .cvl {
    margin-top: 17px;
  }

  .cvl__body .ab {
    aspect-ratio: 556 / 232;
  }
}

.cvl__body .ab__canvas {
  --u: calc(100cqw / 302);
}

@media (min-width: 768px) {
  .cvl__body .ab__canvas {
    --u: calc(100cqw / 556);
  }
}

.cvl__staff {
  z-index: 1;
  left: calc(88 * var(--u));
  top: calc(-19 * var(--u));
  width: calc(252 * var(--u));
  height: calc(168 * var(--u));
  max-width: none;
  object-fit: cover;
}

.cvl__brush {
  left: calc(8 * var(--u));
  top: calc(75.12 * var(--u));
  width: calc(236 * var(--u));
  height: calc(28.66 * var(--u));
  max-width: none;
  mix-blend-mode: darken;
}

.cvl__badge {
  z-index: 2;
  left: calc(21.19 * var(--u));
  top: calc(38.51 * var(--u));
  display: grid;
  place-items: center;
  width: calc(56.35 * var(--u));
  height: calc(56.35 * var(--u));
  padding-bottom: calc(3 * var(--u));
  translate: -50% -50%;
  rotate: -15deg;
  border: calc(3 * var(--u)) solid var(--white);
  border-radius: 50%;
  background: var(--attention);
  color: var(--white);
  font-size: calc(13.65 * var(--u));
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0.024em;
  white-space: nowrap;
}

.cvl__badge .ima { font-size: 1.22em; }
.cvl__badge .su { letter-spacing: -0.04em; }

.cvl__deco {
  left: calc(197 * var(--u));
  top: calc(67 * var(--u));
  width: calc(16 * var(--u));
  height: calc(16 * var(--u));
  max-width: none;
}

.cvl__catch {
  z-index: 2;
  inset: 0;
  font-weight: 900;
  line-height: 1.6;
  white-space: nowrap;
  pointer-events: none;
}

.cvl__catch > span {
  position: absolute;
  translate: -50% -50%;
}

.cvl__sumaho {
  left: calc(55 * var(--u));
  top: calc(36.55 * var(--u));
  translate: 0 -50% !important;
  font-size: calc(12.212 * var(--u));
  letter-spacing: 0.05em;
}

.cvl__sumaho .b { font-size: 1.2727em; }
.cvl__sumaho .gap { display: inline-block; width: 4.6em; }

.cvl__saku {
  left: calc(144.29 * var(--u));
  top: calc(30.05 * var(--u));
  transform: rotate(-4deg) skewX(-10deg) scaleY(0.98);
  color: var(--secondary-700);
  font-family: "Aoboshi One", serif;
  font-size: calc(24.116 * var(--u));
  font-weight: 400;
  letter-spacing: 0.04em;
}

.cvl__saku--shadow {
  left: calc(145.29 * var(--u));
  top: calc(33.05 * var(--u));
  color: var(--secondary-100);
}

.cvl__saku .sa { letter-spacing: -0.12em; }
.cvl__saku .ku { letter-spacing: -0.17em; }
.cvl__saku .tsu { font-size: 0.7143em; }

.cvl__sodan {
  left: calc(119.15 * var(--u));
  top: calc(68.02 * var(--u));
  font-size: calc(31.916 * var(--u));
  letter-spacing: -0.03em;
}

.cvl__sodan .g {
  color: var(--secondary-500);
  font-size: 1.2174em;
  letter-spacing: 0.04em;
}

.cvl__sodan .ki { letter-spacing: -0.05em; }

.cvl__sodan,
.cvl__ex { --stroke-w: calc(3 * var(--u)); }

.cvl__ex {
  left: calc(232.44 * var(--u));
  top: calc(72.84 * var(--u));
  rotate: 30deg;
  font-size: calc(36.078 * var(--u));
  letter-spacing: -0.03em;
}

.cvl__cta {
  z-index: 3;
  left: calc(20 * var(--u));
  top: calc(104 * var(--u));
  width: calc(262 * var(--u));
  height: calc(86 * var(--u));
  font-size: calc(20 * var(--u));
}

@media (min-width: 768px) {
  .cvl__staff { left: calc(196.53 * var(--u)); top: calc(-26 * var(--u)); width: calc(393 * var(--u)); height: calc(262 * var(--u)); }
  .cvl__brush { left: calc(49.97 * var(--u)); top: calc(87.01 * var(--u)); width: calc(300.03 * var(--u)); height: calc(36.44 * var(--u)); }
  .cvl__badge { left: calc(86.12 * var(--u)); top: calc(34.02 * var(--u)); width: calc(75.32 * var(--u)); height: calc(75.32 * var(--u)); padding-bottom: calc(4 * var(--u)); border-width: calc(4.01 * var(--u)); font-size: calc(18.244 * var(--u)); }
  .cvl__deco { left: calc(295.37 * var(--u)); top: calc(77.33 * var(--u)); width: calc(20.21 * var(--u)); height: calc(20.21 * var(--u)); }
  .cvl__sumaho { left: calc(135.37 * var(--u)); top: calc(40.67 * var(--u)); font-size: calc(17.406 * var(--u)); }
  .cvl__saku { left: calc(262.62 * var(--u)); top: calc(31.44 * var(--u)); font-size: calc(34.373 * var(--u)); }
  .cvl__saku--shadow { left: calc(264.05 * var(--u)); top: calc(35.72 * var(--u)); }
  .cvl__sodan { left: calc(197.01 * var(--u)); top: calc(78.96 * var(--u)); font-size: calc(40.322 * var(--u)); }
  .cvl__sodan, .cvl__ex { --stroke-w: calc(3.79 * var(--u)); }
  .cvl__ex { left: calc(339.88 * var(--u)); top: calc(84.41 * var(--u)); font-size: calc(45.581 * var(--u)); }
  .cvl__cta { left: calc(147 * var(--u)); top: calc(120 * var(--u)); }
}

/* --- CTA buttons (LINE / 電話 / WEB) ------------------------------------- */
.btn-cta {
  --btn-shadow: #399060;
  --btn-border: var(--secondary-100);
  --btn-grad: linear-gradient(103.1deg, #24d0b9 0%, #10b75c 100.37%);
  position: relative;
  display: block;
  width: 270px;
  height: 90px;
  color: var(--white);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.07em;
  white-space: nowrap;
  text-align: center;
}

.btn-cta__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
  height: 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-left: 28px;
  overflow: hidden;
  border: 2px solid var(--btn-border);
  border-radius: var(--radius-full);
  background: var(--btn-grad);
  box-shadow: 0 8px 0 var(--btn-shadow);
  transition: translate 0.2s, box-shadow 0.2s;
}

.btn-cta:hover .btn-cta__body {
  translate: 0 4px;
  box-shadow: 0 4px 0 var(--btn-shadow);
}

.btn-cta__icon {
  position: absolute;
  top: 50%;
  left: 19px;
  width: 24px;
  height: 24px;
  translate: 0 -50%;
}

.btn-cta__sub {
  margin-top: 2px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0;
}

.btn-cta .s { font-size: 0.75em; }
.btn-cta .en { font-weight: 900; }

.btn-cta__label {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 50%;
  display: grid;
  place-items: center;
  height: 28px;
  padding: 0 16px;
  translate: -50% 0;
  border-radius: var(--radius-full);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.7;
  letter-spacing: 0;
}

.btn-cta--tel {
  --btn-shadow: #cd5900;
  --btn-border: #ffd08a;
  --btn-grad: linear-gradient(107.52deg, #f19100 0%, #ea6500 100.86%);
}

.btn-cta--tel .btn-cta__label {
  background: var(--tertiary-100);
  color: #ea6500;
}

.btn-cta--tel .btn-cta__icon {
  top: 17px;
  translate: none;
}

.btn-cta--web {
  --btn-shadow: var(--primary-700);
  --btn-border: var(--primary-100);
  --btn-grad: linear-gradient(121.68deg, #0062ed 0%, #064c97 100%);
}

.btn-cta--web .btn-cta__body {
  padding-left: 40px;
  letter-spacing: 0.07em;
}

.btn-cta--web .btn-cta__label {
  background: var(--primary-100);
  color: var(--primary-500);
  font-size: 14px;
  letter-spacing: 0.04em;
}

/* LINE（CV内）: アートボード内で等倍縮小 */
.btn-cta--line {
  width: 100%;
  height: 100%;
  font-size: inherit;
  letter-spacing: 0;
}

.btn-cta--line .btn-cta__body {
  left: -0.2em;
  right: -0.2em;
  bottom: 0;
  height: 3.5em;
  padding-left: 1.55em;
  border-width: 0.1em;
  box-shadow: 0 0.4em 0 var(--btn-shadow);
}

.btn-cta--line:hover .btn-cta__body {
  translate: 0 0.2em;
  box-shadow: 0 0.2em 0 var(--btn-shadow);
}

.btn-cta--line .btn-cta__icon {
  left: 1.02em;
  width: 1.2em;
  height: 1.15em;
}

.btn-cta--line .btn-cta__bubble {
  position: absolute;
  z-index: 1;
  top: -0.05em;
  left: 50%;
  width: 6.7em;
  height: 2em;
  translate: -50% 0;
  display: grid;
  justify-items: center;
  background: url("../img/cv-bubble.svg") center / 100% 100% no-repeat;
  color: var(--secondary-500);
  font-size: 1em;
  line-height: 1.4;
  letter-spacing: 0.014em;
}

.btn-cta--line .btn-cta__bubble .s { font-size: 0.8em; }

/* 注記「キラリと光、上下に動くなど」: ふわふわ上下 + 光が走る */
.btn-cta--line {
  animation: cta-float 2.4s ease-in-out infinite;
}

.btn-cta--line .btn-cta__body::after {
  content: "";
  position: absolute;
  top: -20%;
  left: -40%;
  width: 24%;
  height: 140%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.65), transparent);
  transform: skewX(-20deg);
  animation: cta-shine 3s ease-in-out infinite;
  pointer-events: none;
}

@keyframes cta-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -4px; }
}

@keyframes cta-shine {
  0%, 55% { left: -40%; }
  85%, 100% { left: 130%; }
}

@media (prefers-reduced-motion: reduce) {
  .btn-cta--line,
  .btn-cta--line .btn-cta__body::after {
    animation: none;
  }
}

/* Figma: 注意書きは行の高さ24px（14px×1.7=23.8→24）、SPはその下9.12px */
.cv__note { line-height: 24px; }
@media (max-width: 767px) {
  .cvl { margin-top: 9.12px; }
}
