/*
 * 実験: unouplus.com の丸ゴシックと、ゆっくり浮く動きに寄せた見た目。
 * 戻すときは git switch feature/empathy-section
 */
:root {
  --font-sans: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "BIZ UDPGothic", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 27px;
  font-weight: 500;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
p,
figure,
ul,
ol {
  margin: 0;
}

h1,
h2,
h3 {
  word-break: auto-phrase;
}

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

a {
  color: var(--pink-deep);
  text-underline-offset: 0.2em;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--pink-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

@media (min-width: 768px) {
  .container {
    padding: 0 40px;
  }
}

/* ---- ヘッダー ---- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: clamp(56px, 4vw + 46px, 72px);
}

.wordmark {
  color: var(--ink);
  font-weight: 900;
  letter-spacing: 0.04em;
  text-decoration: none;
  white-space: nowrap;
}

.wordmark-arrow {
  margin-inline: 0.08em;
  color: var(--pink-deep);
}

.site-header .wordmark,
.footer-brand .wordmark {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.site-header .wordmark {
  font-size: clamp(18px, 1.2vw + 14px, 24px);
}

.header-link {
  display: inline-flex;
  align-items: center;
  min-height: clamp(32px, 2vw + 26px, 40px);
  padding: clamp(6px, 0.5vw + 4px, 8px) clamp(12px, 1vw + 10px, 16px);
  border-radius: var(--radius-pill);
  background: #06C755;
  color: #fff;
  font-size: clamp(12px, 0.4vw + 11px, 14px);
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
}

.header-link:hover {
  background: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)), #06C755;
  text-decoration: none;
}

/* ---- 共通の部品 ---- */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  background: linear-gradient(180deg, var(--button-primary-start), var(--button-primary-end));
  color: var(--button-primary-text);
  font-size: 18px;
  line-height: 27px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.btn-primary:hover {
  background: var(--button-primary-end);
}

.btn-primary:focus-visible {
  border-radius: var(--radius-pill);
}

.btn-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  background: #06C755;
  color: #fff;
  font-size: 18px;
  line-height: 27px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.btn-line:hover {
  background: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)), #06C755;
}

.cta-notes {
  margin-top: 16px;
  padding: 0;
  list-style: none;
  color: var(--ink-secondary);
  font-size: 14px;
  line-height: 22px;
}

.cta-notes li + li {
  margin-top: 2px;
}

@media (max-width: 599px) {
  .btn-primary,
  .btn-line {
    width: 100%;
  }
}

.section {
  padding: 40px 0;
}

@media (min-width: 900px) {
  .section {
    padding: 48px 0;
  }
}

.section-head {
  max-width: 35em;
  margin-bottom: 24px;
}

.eyebrow {
  color: var(--pink-deep);
  font-size: 13px;
  line-height: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.section-title {
  margin-top: 12px;
  font-size: 24px;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.section-lead {
  margin-top: 16px;
  color: var(--ink-secondary);
}

@media (min-width: 768px) {
  .section-title {
    font-size: 28px;
    line-height: 35px;
  }
}

/* ---- ヒーロー ---- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 48px 0 20px;
  background-color: var(--bg);
}

.hero-bg {
  position: absolute;
  inset: -16px;
  background: url("images/spring.jpg") center 18% / cover no-repeat;
  filter: blur(7px);
  transform: scale(1.03);
  pointer-events: none;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 253, 247, 0.4);
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  align-items: center;
}

@media (max-width: 959px) {
  .hero .container {
    grid-template-columns: max-content max-content;
    grid-template-areas:
      "title title"
      "lead phone"
      "cta cta";
    justify-content: safe center;
    column-gap: clamp(6px, 1.6vw, 10px);
    row-gap: clamp(12px, 3.5vw, 18px);
  }

  .hero-title {
    grid-area: title;
    justify-self: center;
    width: fit-content;
    max-width: 100%;
  }

  .hero-lead {
    grid-area: lead;
    margin-top: 0;
    max-width: none;
    align-self: center;
    justify-self: start;
    padding-inline-start: 40px;
  }

  .hero .phone {
    grid-area: phone;
    width: clamp(156px, 44vw, 220px);
    margin: 0;
    justify-self: start;
    align-self: center;
  }

  .hero .cta {
    grid-area: cta;
  }
}

@media (min-width: 960px) {
  .hero {
    display: flex;
    align-items: flex-start;
    padding: 64px 0 24px;
  }

  .hero .container {
    --hero-phone-width: clamp(220px, 26vw, 324px);
    width: 100%;
    grid-template-columns: auto auto;
    grid-template-rows: auto auto auto;
    column-gap: clamp(40px, 7.5vw, 96px);
    row-gap: 0;
    justify-content: safe center;
    align-items: start;
  }

  .hero-title {
    grid-column: 1;
    grid-row: 1;
    max-width: 34rem;
    padding-top: calc(var(--hero-phone-width) * 1992 / 1084 * 0.25);
  }

  .hero-lead {
    grid-column: 1;
    grid-row: 2;
    max-width: 34rem;
    padding-inline-start: 0;
  }

  .hero .cta {
    grid-column: 1;
    grid-row: 3;
    margin-top: 28px;
  }

  .hero .phone {
    grid-column: 2;
    grid-row: 1 / 4;
    width: var(--hero-phone-width);
    margin-inline: 0;
    align-self: start;
  }
}

.hero-title {
  width: fit-content;
  max-width: 100%;
  padding: 0;
  font-family: var(--font-sans);
  font-size: clamp(20px, 6.2vw, 28px);
  line-height: 1.25;
  font-weight: 900;
  -webkit-text-stroke: 0.4px currentColor;
  paint-order: stroke fill;
  letter-spacing: 0.06em;
  color: var(--ink);
  text-wrap: balance;
}

.hero-title-line {
  display: block;
}

.hero-title-line + .hero-title-line {
  margin-top: 8px;
}

.hero-title-line:first-child {
  line-height: 1.4;
  color: var(--ink);
  letter-spacing: 0.08em;
}

.hero-title-em {
  color: var(--pink-deep);
}

@media (max-width: 599px) {
  .hero .phone {
    width: clamp(140px, 42vw, 168px);
  }

  .hero-title {
    justify-self: center;
    width: auto;
    max-width: 100%;
    letter-spacing: 0.02em;
  }

  .hero-title-line:first-child {
    letter-spacing: 0.03em;
  }
}

@media (max-width: 359px) {
  .hero-lead {
    padding-inline-start: 16px;
  }

  .hero .phone {
    width: 128px;
  }
}
@media (min-width: 600px) {
  .hero-title {
    font-size: clamp(36px, 4.2vw, 44px);
    line-height: 1.25;
  }

  .hero-title-line + .hero-title-line {
    margin-top: 10px;
  }
}

@media (min-width: 960px) {
  .hero-title {
    font-size: clamp(32px, 3.3vw, 42px);
    line-height: 1.22;
  }

  .hero-title-line + .hero-title-line {
    margin-top: 12px;
  }
}

.hero-lead {
  margin-top: 20px;
  max-width: 28em;
  color: var(--ink-secondary);
  font-size: 16px;
  line-height: 32px;
  font-weight: 900;
  letter-spacing: 0.01em;
}

.hero-lead .wordmark {
  font-size: 1.12em;
  font-weight: inherit;
  letter-spacing: inherit;
}

@media (max-width: 959px) {
  .hero-lead {
    font-size: clamp(12px, 3.5vw, 16px);
    line-height: 1.95;
  }
}

@media (min-width: 960px) {
  .hero-lead {
    margin-top: 28px;
    font-size: 24px;
    line-height: 46px;
  }
}

.hero .cta {
  margin-top: 4px;
}

@media (max-width: 959px) {
  .hero .cta {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero .cta-notes {
    align-self: center;
    text-align: center;
    font-size: clamp(11px, 2.9vw, 13px);
    line-height: 1.55;
  }

  .hero .btn-line {
    width: min(100%, 248px);
    min-height: clamp(40px, 11vw, 46px);
    padding: clamp(8px, 2.2vw, 10px) clamp(16px, 4.5vw, 22px);
    font-size: clamp(13px, 3.5vw, 16px);
    line-height: 1.45;
  }
}

.hero .cta-notes {
  margin-top: 8px;
}

@media (min-width: 960px) {
  .hero .cta-notes {
    margin-top: 16px;
  }
}

.phone {
  display: block;
  width: 172px;
  height: auto;
  margin-inline: auto;
}

/* ---- 共感 ---- */

.empathy {
  padding: 56px 0 64px;
  background-color: var(--bg-sunken);
  background-image: linear-gradient(180deg, var(--bg) 0, transparent 120px);
  background-repeat: no-repeat;
  border-top: 1px solid var(--line);
}

@media (min-width: 900px) {
  .empathy {
    padding: 88px 0 96px;
    background-image: linear-gradient(180deg, var(--bg) 0, transparent 160px);
  }
}

.empathy-head {
  max-width: 36em;
  margin-inline: auto;
  text-align: center;
}

.empathy-head .section-title {
  margin-top: 12px;
  font-size: clamp(24px, 4vw, 36px);
  line-height: 1.28;
  letter-spacing: -0.02em;
}

.empathy-lead {
  margin-top: 20px;
  color: var(--ink-secondary);
  font-size: 16px;
  line-height: 28px;
}

@media (min-width: 768px) {
  .empathy-lead {
    margin-top: 24px;
    font-size: 18px;
    line-height: 31px;
  }
}

.br-desktop {
  display: none;
}

@media (min-width: 768px) {
  .br-desktop {
    display: inline;
  }
}

.empathy-grid {
  display: grid;
  gap: 20px;
  margin-top: 40px;
}

@media (min-width: 900px) {
  .empathy-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 56px;
    align-items: stretch;
  }
}

.empathy-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 32px 28px 36px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

@media (min-width: 900px) {
  .empathy-panel {
    padding: 40px 36px 44px;
  }
}

.empathy-panel::before {
  content: "";
  position: absolute;
  top: 28px;
  bottom: 28px;
  left: 0;
  width: 3px;
  border-radius: 0 3px 3px 0;
}

.empathy-panel--parent::before {
  background: linear-gradient(180deg, var(--pink-strong), var(--pink-deep));
}

.empathy-panel--child::before {
  background: linear-gradient(180deg, var(--blue-strong), var(--blue-deep));
}

.empathy-role {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 8px;
  color: var(--pink-deep);
  font-size: 13px;
  line-height: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.empathy-role-label {
  color: var(--ink-tertiary);
  font-weight: 700;
}

.empathy-role-who {
  color: var(--pink-deep);
}

.empathy-panel--child .empathy-role-who {
  color: var(--blue-on);
}

.empathy-heading {
  margin-top: 16px;
  font-size: 22px;
  line-height: 30px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

@media (min-width: 768px) {
  .empathy-heading {
    margin-top: 20px;
    font-size: 26px;
    line-height: 34px;
  }
}

.empathy-copy {
  margin-top: 16px;
  color: var(--ink-secondary);
  font-size: 15px;
  line-height: 27px;
}

@media (min-width: 768px) {
  .empathy-copy {
    margin-top: 18px;
    font-size: 16px;
    line-height: 29px;
  }
}

.empathy-copy + .empathy-copy {
  margin-top: 14px;
}

.empathy-panel > .empathy-close {
  margin-top: auto;
  padding-top: 28px;
}

.empathy-stat {
  margin: 28px 0 0;
  padding: 24px 24px 20px;
  background: linear-gradient(135deg, rgba(255, 223, 223, 0.45), rgba(255, 253, 247, 0.9));
  border: 1px solid rgba(209, 63, 81, 0.12);
  border-radius: var(--radius-tile);
}

.empathy-stat-quote {
  margin: 0;
  font-size: 20px;
  line-height: 34px;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.empathy-stat-quote strong {
  font-weight: 700;
  color: var(--pink-deep);
}

@media (min-width: 768px) {
  .empathy-stat-quote {
    font-size: 22px;
    line-height: 36px;
  }
}

.empathy-stat-note {
  margin-top: 12px;
  color: var(--ink-tertiary);
  font-size: 12px;
  line-height: 18px;
  letter-spacing: 0.02em;
}

.empathy-chat {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 28px;
}

.empathy-bubble {
  max-width: 16em;
  margin: 0;
  padding: 12px 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  font-size: 16px;
  line-height: 26px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.empathy-bubble--in {
  align-self: flex-start;
  border-radius: 18px 18px 18px 6px;
}

.empathy-bubble--out {
  align-self: flex-end;
  border-radius: 18px 18px 6px 18px;
}

.empathy-panel.reveal:nth-child(1) {
  --reveal-delay: 120ms;
}

.empathy-panel.reveal:nth-child(2) {
  --reveal-delay: 240ms;
}

@media (prefers-reduced-motion: reduce) {
  .empathy-panel.reveal:nth-child(2) {
    --reveal-delay: 0ms;
  }
}

/* ---- 末尾 ---- */

.closing {
  max-width: 35em;
  margin: 0 auto;
  padding-top: 8px;
  text-align: center;
}

.closing .section-title {
  margin-top: 0;
}

.closing .cta {
  margin-top: 32px;
  display: grid;
  justify-items: center;
}

.closing .cta-notes {
  text-align: left;
}

/* ---- フッター ---- */

.site-footer {
  padding: 48px 0 40px;
  background: var(--bg-sunken);
  color: var(--ink-secondary);
  font-size: 14px;
  line-height: 22px;
}

.site-footer .container {
  display: grid;
  gap: 24px;
}

@media (min-width: 768px) {
  .site-footer .container {
    grid-template-columns: 1fr auto;
    align-items: end;
  }
}

.footer-brand .wordmark {
  font-size: 22px;
}

.footer-org {
  margin-top: 4px;
  color: var(--ink);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding: 0;
  list-style: none;
}

.footer-links a {
  color: var(--pink-on);
  font-weight: 700;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.copyright {
  grid-column: 1 / -1;
  padding-top: 24px;
  border-top: 1px solid var(--line-strong);
}

/* ---- 規約ページ ---- */

.doc {
  padding: 56px 0 96px;
}

.doc .container {
  max-width: 800px;
}

.doc h1 {
  font-size: 24px;
  line-height: 31px;
  font-weight: 700;
}

@media (min-width: 768px) {
  .doc h1 {
    font-size: 28px;
    line-height: 35px;
  }
}

.doc h2 {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 20px;
  line-height: 28px;
  font-weight: 700;
}

.doc p,
.doc ul {
  margin-top: 16px;
  max-width: 35em;
}

.doc ul {
  padding-left: 1.4em;
}

.doc li + li {
  margin-top: 8px;
}

.doc .doc-lead {
  margin-top: 20px;
  color: var(--ink-secondary);
}

.doc .doc-date {
  margin-top: 56px;
  color: var(--ink-secondary);
  font-size: 14px;
  line-height: 22px;
}

.doc .back {
  display: inline-block;
  margin-top: 24px;
  font-weight: 700;
}

.doc a {
  word-break: break-all;
}

/* ---- 動き ---- */

.js .reveal {
  opacity: 0;
  transform: translateY(28px) scale(0.98);
  transition:
    opacity 0.95s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.95s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes hero-float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

.js .hero .phone.reveal.is-visible {
  animation: hero-float 6s ease-in-out 0.7s infinite;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .js .hero .phone.reveal.is-visible {
    animation: none;
  }
}
