/* ============================================================
   style.css — Pivory Job LP
   Agent A: reset / variables / header / top-banner / subtitle
   Agent B: main-hero / headline / text-blocks / hashtags
   Agent C: hero-image / badges / cta
   ============================================================ */

/* =====================
   Reset & Base (Agent A)
   ===================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-primary:      #00cdd2;
  --color-primary-dark: #00898c;
  --color-text:         #333333;
  --color-text-muted:   #676564;
  --color-gold:         #dc673c;
  --color-gold-border:  #e8a040;
  --color-bg:           #d8f2f2;
  --font-main:          'Noto Sans JP', sans-serif;
}

html {
  font-family: var(--font-main);
  color: var(--color-text);
  background: #fff;
  min-height: 100vh;
  overflow-x: clip;
}

/* フェードイン (Agent C) */
body {
  opacity: 0;
  transition: opacity 0.5s ease;
}
body.is-loaded {
  opacity: 1;
}

.lp-wrapper {
  max-width: 480px;
  margin: 0 auto;
  width: 100%;
  position: relative;
}

/* =====================
   Header (Agent A)
   ===================== */
.header {
  padding: 10px 16px;
  background: transparent;
}

.header__logo {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.2;
}

.header__logo-main {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.02em;
}

.header__logo-sub {
  display: block;
  font-size: 10px;
  color: #666;
  margin-top: 2px;
  letter-spacing: 0.05em;
}

/* =====================
   Top Banner (Agent A)
   ===================== */
.top-banner {
  width: 100%;
  background-color: var(--color-primary);
  padding: 10px 16px;
}

.top-banner__text {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  text-align: center;
  line-height: 1.4;
}

.top-banner__highlight {
  color: #fde9a5;
  font-size: 24px;
  font-weight: 700;
}

/* =====================
   Subtitle Bar (Agent A)
   ===================== */
.subtitle-bar {
  padding: 8px 0;
  text-align: center;
}

.subtitle-bar__text {
  font-size: 13px;
  color: var(--color-primary-dark);
  letter-spacing: 0.03em;
}

/* =====================
   Main Hero (Agent B + C)
   ===================== */
.main-hero {
  position: relative;
  background-color: var(--color-bg);
  padding: 12px 0 24px;
  overflow: hidden;
  min-height: 320px;
}

/* =====================
   Hero Image (Agent C)
   ===================== */
.hero-image-wrap {
  position: absolute;
  top: 0;
  right: 0;
  width: 160px;
  height: 300px;
  z-index: 1;
  pointer-events: none;
}

.hero-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* =====================
   Main Headline (Agent B)
   ===================== */
.main-headline {
  font-size: 34px;
  font-weight: 700;
  color: var(--color-primary);
  padding: 4px 16px 10px;
  line-height: 1.25;
  position: relative;
  z-index: 2;
}

/* =====================
   Text Blocks (Agent B)
   ===================== */
.text-block-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
}

.text-block {
  font-size: 26px;
  font-weight: 600;
  padding: 8px 16px;
  line-height: 1.3;
  white-space: nowrap;
}

.text-block--white {
  background-color: #ffffff;
  color: var(--color-primary);
  width: 62%;
}

.text-block--teal {
  background-color: var(--color-primary);
  color: #ffffff;
  width: 62%;
}

.text-block--wide {
  width: 72%;
}

/* =====================
   Hashtag List (Agent B)
   ===================== */
.hashtag-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transform: rotate(-5deg);
  transform-origin: left center;
  margin-left: 4px;
  position: relative;
  z-index: 2;
}

.hashtag-list__item {
  display: block;
  font-family: 'Zen Kurenaido', cursive;
  font-size: 20px;
  color: var(--color-text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  margin: 2px 0;
  padding-left: 16px;
  line-height: 1.6;
}

/* =====================
   Badges (Agent C)
   ===================== */
.badges {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 8px;
  padding: 16px;
  width: 100%;
  background-color: var(--color-bg);
}

.badge {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 110px;
  height: 110px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid var(--color-gold-border);
  box-shadow: 0 4px 12px rgba(220, 163, 60, 0.3);
  text-align: center;
  gap: 2px;
  overflow: hidden;
  padding: 8px 6px;
}

.badge__value {
  font-family: 'Inter', var(--font-main);
  font-size: 22px;
  font-weight: 900;
  color: var(--color-gold);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.badge__label {
  font-family: var(--font-main);
  font-size: 11px;
  font-weight: 700;
  color: #797874;
  line-height: 1.3;
}

/* =====================
   CTA (Agent C)
   ===================== */
.cta-wrap {
  padding: 4px 16px 24px;
  background-color: var(--color-bg);
}

.cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 20px;
  border-radius: 50px;
  background-color: #06C755;
  box-shadow: 0 4px 12px rgba(6, 199, 85, 0.4);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.1s ease, opacity 0.1s ease;
  -webkit-tap-highlight-color: transparent;
}

.cta-btn:hover {
  opacity: 0.92;
  box-shadow: 0 6px 16px rgba(6, 199, 85, 0.5);
}

.cta-btn:active {
  transform: translateY(2px);
  box-shadow: 0 2px 6px rgba(6, 199, 85, 0.35);
}

.cta-btn__icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.cta-btn__text {
  font-family: var(--font-main);
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

/* =====================
   Responsive
   ===================== */
@media (max-width: 360px) {
  .main-headline { font-size: 28px; }
  .text-block { font-size: 22px; }
  .badge { width: 96px; height: 96px; }
  .badge__value { font-size: 19px; }
}

@media (min-width: 391px) {
  body { background: #e0f5f5; }
}

/* =====================
   Section Image
   ===================== */
.section-image {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

.section-image__img {
  display: block;
  width: 100%;
  height: auto;
}

/* =====================
   LINE CTA Section
   ===================== */
.line-cta {
  background: #ffffff;
  padding: 15px 20px 28px;
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
  width: 100%;
}

.line-cta__label {
  font-size: 15px;
  font-weight: 700;
  color: #06C755;
  margin-bottom: 14px;
  letter-spacing: 0.04em;
}

.line-cta__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #06C755;
  border-radius: 50px;
  padding: 10px 18px 10px 10px;
  text-decoration: none;
  width: 100%;
  box-shadow: 0 3px 8px rgba(6,199,85,0.35);
  transition: opacity 0.2s;
}

.line-cta__btn:active {
  opacity: 0.85;
}

.line-cta__icon {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.line-cta__text {
  flex: 1;
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  text-align: center;
  letter-spacing: 0.03em;
}

.line-cta__free {
  font-style: normal;
  color: #FFE000;
}

.line-cta__arrow {
  font-size: 18px;
  font-weight: 900;
  color: #ffffff;
  flex-shrink: 0;
}

/* =====================
   Section 7: Swiper スライダー
   service_7a(894x1632)を背景に、白いカードエリア(top≈8%, height≈57%)へオーバーレイ
   ===================== */
.section7 {
  max-width: 480px;
  margin: 0 auto;
  width: 100%;
}

.section7__bg {
  position: relative;
  width: 100%;
}

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

/* Swiper: 白いカード＋ページネーションエリアをオーバーレイ */
.successSlider {
  position: absolute;
  top: 14%;
  left: 5%;
  width: 90%;
  overflow: hidden;
  background: #fff;
  padding: 40px;
}

.successSlider .swiper-wrapper {
  display: flex;
}
.successSlider .swiper-slide-prev,
.successSlider .swiper-slide-next {
  visibility: hidden !important;
}

.successSlider .swiper-slide {
  width: 100%;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
}

.successSlider .swiper-slide img {
  width: 100%;
  max-width: 340px;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* slider-controls: 矢印とドットを横一列に */
.slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 0;
  padding-bottom: 10px;
}

/* ページネーションのドット */
.successSlider .swiper-pagination {
  position: static;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto;
}

.successSlider .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: #ccc;
  opacity: 1;
  border-radius: 50%;
  margin: 0;
}

.successSlider .swiper-pagination-bullet-active {
  background: #555;
}

/* 左右矢印: 丸枠ボーダーデザイン */
.successSlider .swiper-button-prev,
.successSlider .swiper-button-next {
  position: static;
  width: 40px;
  height: 40px;
  min-width: 40px;
  margin: 0;
  border: 2px solid #00cdd2;
  border-radius: 50%;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  top: auto;
  transform: none;
}

.successSlider .swiper-button-prev::after,
.successSlider .swiper-button-next::after {
  font-size: 16px;
  color: #00cdd2;
}

/* =====================
   Section 8: FAQ アコーディオン
   service_8a(894x940): 上27%をタイトルクロップ、残りは通常フロー
   ===================== */
.section8 {
  max-width: 480px;
  margin: 0 auto;
  width: 100%;
}

/* タイトル部分: service_8a の上27%だけ表示 */
.section8__title {
  width: 100%;
  overflow: hidden;
  height: 28.5vw;
  max-height: 136px;
}

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

/* アコーディオン: 通常フロー・背景はservice_8aのミント色に合わせる */
.faq-accordion {
  background: #E0FFFF;
  padding: 20px 4% 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
}

.faq-q {
  font-size: 18px;
  font-weight: 900;
  color: #00cdd2;
  flex-shrink: 0;
  line-height: 1;
}

.faq-question__text {
  flex: 1;
  font-size: 14px;
  font-weight: 700;
  color: #333;
  line-height: 1.5;
}

.faq-chevron {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-right: 2px solid #aaa;
  border-bottom: 2px solid #aaa;
  transform: rotate(-45deg);
  transition: transform 0.25s ease;
  margin-right: 4px;
}

.faq-question[aria-expanded="true"] .faq-chevron {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 16px 0 44px;
  font-size: 13px;
  color: #555;
  line-height: 1.7;
}

.faq-answer.is-open {
  max-height: 300px;
  padding: 0 16px 14px 44px;
}

.faq-a {
  font-weight: 700;
  color: #00cdd2;
  margin-right: 4px;
}

/* =====================
   Section 9: 状況選択フォーム
   service_9a(894x1192): ボタンエリア top≈42%
   ===================== */
.section9 {
  max-width: 480px;
  margin: 0 auto;
  width: 100%;
}

.section9__bg {
  position: relative;
  width: 100%;
}

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

/* ボタン群オーバーレイ */
.section9__controls {
  position: absolute;
  top: 42%;
  left: 6%;
  width: 88%;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.status-btns {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* 状況選択ボタン */
.status-btn {
  width: 80%;
  margin: 0 auto;
  padding: 10px;
  background: #fff;
  border: 1.5px solid #00cdd2;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  color: #333;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.status-btn:hover,
.status-btn.is-active {
  background: #00cdd2;
  color: #fff;
  border-color: #00cdd2;
}

/* 次へ進むボタン */
.next-btn {
  width: 80%;
  display: block;
  margin: 20px auto 0;
  padding: 10px;
  background: #ccc;
  border: none;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  cursor: not-allowed;
  transition: background 0.25s, box-shadow 0.25s;
  -webkit-tap-highlight-color: transparent;
}

.next-btn.is-active {
  background: #ff8c00;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(255, 140, 0, 0.4);
}

.next-btn.is-active:hover {
  background: #e67e00;
}

.next-btn.is-active:active {
  transform: translateY(1px);
  box-shadow: 0 2px 6px rgba(255, 140, 0, 0.3);
}

/* =====================
   Footer
   ===================== */
.footer {
  background: #00cdd2;
  padding: 12px 0 10px;
  text-align: center;
  width: 100%;
}

.footer__inner {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 6px;
}

.footer__link {
  font-size: 11px;
  color: #fff;
  text-decoration: underline;
  transition: opacity 0.2s;
}

.footer__link:hover {
  opacity: 0.7;
}

.footer__sep {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
}

.footer__copy {
  font-size: 10px;
  color: #fff;
  letter-spacing: 0.02em;
  margin: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

/* =====================
   Chat Overlay（第2段階）
   ===================== */
@keyframes chatSlidein {
  0%   { opacity: 0; transform: translateX(-10%); }
  100% { opacity: 1; transform: translateX(0); }
}

.chat-ov {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  flex-direction: column;
  background: #e0fafa;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.chat-ov.is-active {
  opacity: 1;
  pointer-events: all;
}

.chat-ov__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: rgba(255,255,255,0.2);
  flex-shrink: 0;
}

.chat-ov__back {
  background: none;
  border: none;
  font-size: 13px;
  color: #333;
  cursor: pointer;
  font-family: 'Noto Sans JP', sans-serif;
  padding: 4px 2px;
  white-space: nowrap;
  flex-shrink: 0;
}

.chat-ov__prog {
  flex: 1;
  height: 8px;
  background: rgba(0, 205, 210, 0.2);
  border-radius: 4px;
  overflow: hidden;
}

.chat-ov__prog__bar {
  height: 100%;
  width: 0%;
  background: #00cdd2;
  border-radius: 4px;
  transition: width 0.6s ease;
}

.chat-ov__remain {
  font-size: 12px;
  color: #333;
  white-space: nowrap;
  flex-shrink: 0;
}

.chat-ov__body {
  flex: 1;
  overflow-y: auto;
  padding: 0 5% 50vh;
  -webkit-overflow-scrolling: touch;
  position: relative;
}

.chat-ov__inner {
  max-width: 450px;
  margin: 0 auto;
  padding-top: 20px;
}

.chat-block--done { margin-bottom: 30px; }
.chat-block       { margin-top: 50px; }

.chat-bubble {
  display: flex;
  column-gap: 10px;
  margin-bottom: 30px;
  opacity: 0;
  transform: translateX(-10%);
  animation: chatSlidein forwards ease 0.8s;
}

.chat-block--done .chat-bubble {
  animation: none;
  opacity: 1;
  transform: none;
}

.chat-bubble__icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.chat-bubble__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.chat-bubble__text {
  display: inline-block;
  background-color: #00cdd2;
  color: #fff;
  letter-spacing: 0.1em;
  border: none;
  font-weight: 500;
  padding: 10px 16px;
  border-radius: 50px;
  font-size: 15px;
  align-self: flex-start;
  margin-top: 8px;
}

.chat-card {
  display: flex;
  flex-wrap: wrap;
  border-radius: 10px;
  background-color: #fff;
  padding: 20px 5%;
  row-gap: 15px;
  justify-content: space-between;
  opacity: 0;
  transform: translateX(-10%);
  animation: chatSlidein forwards ease 0.8s 0.3s;
}

.chat-block--done .chat-card {
  animation: none;
  opacity: 1;
  transform: none;
}

.chat-choice {
  border: solid 2px #00cdd2;
  display: block;
  color: #00cdd2;
  font-weight: bold;
  padding: 9px;
  text-align: center;
  border-radius: 6px;
  width: 100%;
  background-color: #fff;
  font-size: 15px;
  transition: all ease 0.3s;
  cursor: pointer;
  font-family: 'Noto Sans JP', sans-serif;
}

.chat-choice--half { width: 48%; }

.chat-choice:hover:not([disabled]) {
  background: #00cdd2;
  color: #fff;
}

.chat-choice.is-selected,
.chat-choice.is-selected[disabled] {
  background: #00cdd2;
  color: #fff;
  opacity: 1;
}

.chat-choice[disabled]              { cursor: default; }
.chat-choice:not(.is-selected)[disabled] { opacity: 0.5; }

.chat-select {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  color: #00cdd2;
  font-weight: bold;
  padding: 10px;
  border: solid 2px #00cdd2;
  border-radius: 6px;
  width: 100%;
  background-color: #fff;
  font-size: 15px;
  font-family: 'Noto Sans JP', sans-serif;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2300cdd2' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center right 10px;
  outline: none;
  cursor: pointer;
}

.chat-select:disabled {
  background-color: #f5f5f5;
  color: #aaa;
  border-color: #ddd;
  cursor: default;
}

.chat-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.chat-field__label {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: #1D1D1D;
}

.chat-field__input {
  font-weight: 500;
  font-size: 16px;
  padding: 9px;
  width: 100%;
  display: block;
  border: solid 1px #DEDEDE;
  background-color: #fff;
  border-radius: 6px;
  font-family: 'Noto Sans JP', sans-serif;
  outline: none;
  color: #1D1D1D;
}

.chat-field__input::placeholder { font-size: 14px; color: #DEDEDE; }
.chat-field__input:focus         { border-color: #00cdd2; }

.chat-submit-wrap {
  text-align: center;
  width: 100%;
  margin-top: 20px;
}

.chat-submit-btn {
  -webkit-appearance: none;
  appearance: none;
  font-size: 16px;
  display: inline-block;
  width: 293px;
  max-width: 100%;
  border-radius: 60px;
  font-weight: bold;
  color: #fff;
  text-align: center;
  padding: 16px;
  border: none;
  font-family: 'Noto Sans JP', sans-serif;
  margin-bottom: 12px;
  transition: all ease 0.3s;
  cursor: not-allowed;
  pointer-events: none;
  background-color: #D2D6E4;
}

.chat-submit-btn:not(:disabled) {
  background: #00CDD2;
  pointer-events: auto;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 150, 160, 0.4);
}

.chat-submit-btn:not(:disabled):hover { opacity: 0.8; }

.chat-submit-note {
  font-size: 13px;
  color: #fff;
  margin: 0;
  line-height: 1.7;
  width: 100%;
  text-align: center;
}

.chat-thanks {
  text-align: center;
  padding: 80px 20px;
}

.chat-thanks__text {
  font-size: 17px;
  font-weight: bold;
  color: #fff;
  line-height: 2;
  text-shadow: 0 1px 6px rgba(0,0,0,0.18);
}

/* =====================
   CTA パルスアニメーション
   ===================== */
@keyframes ctaPulse {
  0%   { transform: scale(1); box-shadow: 0 3px 8px rgba(6,199,85,0.35); }
  50%  { transform: scale(1.04); box-shadow: 0 6px 20px rgba(6,199,85,0.55); }
  100% { transform: scale(1); box-shadow: 0 3px 8px rgba(6,199,85,0.35); }
}

.line-cta__btn {
  animation: ctaPulse 2s ease-in-out infinite;
}

.line-cta__btn:active {
  animation: none;
}
