/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

/* ===== SCROLL ANIMATIONS ===== */

/* 初期状態（非表示） */
.fade-up {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in {
  opacity: 0;
  transition: opacity 0.8s ease;
}
.slide-left {
  opacity: 0;
  transform: translateX(-44px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.slide-right {
  opacity: 0;
  transform: translateX(44px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.stagger-child {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* 表示状態 */
.fade-up.is-visible,
.fade-in.is-visible,
.slide-left.is-visible,
.slide-right.is-visible,
.stagger-child.is-visible {
  opacity: 1;
  transform: none;
}

/* ヘッダー スクロール時の影 */
.header.scrolled {
  box-shadow: 0 2px 16px rgba(0,0,0,0.10);
}

/* 花びらのアニメーション強化 */
@keyframes petalFloat {
  0%   { transform: translateY(0)   rotate(0deg)   scale(1); }
  33%  { transform: translateY(-18px) rotate(120deg) scale(1.1); }
  66%  { transform: translateY(-8px)  rotate(240deg) scale(0.95); }
  100% { transform: translateY(0)   rotate(360deg) scale(1); }
}

.petal {
  animation-name: petalFloat !important;
  animation-timing-function: ease-in-out !important;
  animation-iteration-count: infinite !important;
}

/* セクションタイトルの下線アニメーション */
.section-title {
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60px;
  height: 3px;
  background: var(--pink);
  border-radius: 2px;
  transition: transform 0.5s ease 0.3s;
}

.section-title.is-visible::after {
  transform: translateX(-50%) scaleX(1);
}

/* 比較表の行アニメーション */
.comparison-table tbody tr {
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.comparison-table.is-visible tbody tr:nth-child(1) { opacity:1; transform:none; transition-delay: 0.05s; }
.comparison-table.is-visible tbody tr:nth-child(2) { opacity:1; transform:none; transition-delay: 0.15s; }
.comparison-table.is-visible tbody tr:nth-child(3) { opacity:1; transform:none; transition-delay: 0.25s; }
.comparison-table.is-visible tbody tr:nth-child(4) { opacity:1; transform:none; transition-delay: 0.35s; }
.comparison-table.is-visible tbody tr:nth-child(5) { opacity:1; transform:none; transition-delay: 0.45s; }

/* ボタン pulse アニメーション */
@keyframes btnPulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(232,114,138,0.35); }
  50%       { box-shadow: 0 4px 28px rgba(232,114,138,0.55), 0 0 0 8px rgba(232,114,138,0.10); }
}

.btn-line {
  animation: btnPulse 2.5s ease-in-out infinite;
}

.btn-line:hover {
  animation: none;
}

body {
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;
  color: #4a3a45;
  background: #fff;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

/* ===== VARIABLES ===== */
:root {
  --mint:    #d6eef5;
  --mint-dark: #a8d8ea;
  --pink:    #e8728a;
  --pink-light: #f9e0e5;
  --gold:    #c9a227;
  --dark:    #3e2f3a;
  --gray:    #666;
  --light-gray: #f7f7f7;
  --white:   #fff;
  --radius:  12px;
  --shadow:  0 4px 20px rgba(0,0,0,0.08);
}

/* ===== UTILITIES ===== */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
  letter-spacing: 0.04em;
}

.section-title span {
  color: var(--pink);
}

.section-subtitle {
  text-align: center;
  color: var(--gray);
  font-size: 0.95rem;
  margin-bottom: 56px;
}

.btn-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--pink);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  padding: 16px 36px;
  border-radius: 50px;
  transition: opacity .2s, transform .2s;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 16px rgba(232,114,138,0.35);
}

.btn-line:hover {
  opacity: 0.88;
  transform: translateY(-2px);
}

.btn-line svg {
  width: 22px;
  height: 22px;
  fill: #fff;
  flex-shrink: 0;
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.logo {
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: var(--dark);
}

.logo img {
  height: 50px;
  width: auto;
}

.logo span { color: var(--pink); }

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a {
  font-size: 0.85rem;
  color: var(--gray);
  font-weight: 500;
  transition: color .2s;
}

.nav a:hover { color: var(--pink); }

.header-line {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--pink);
  color: #fff !important;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 50px;
  transition: opacity .2s;
}

.header-line:hover { opacity: 0.85; }

.header-line svg {
  width: 16px;
  height: 16px;
  fill: #fff;
}

/* スマホナビ非表示 */
.nav-links { display: flex; align-items: center; gap: 28px; }

/* ===== HERO ===== */
.hero {
  padding-top: 64px;
  position: relative;
  overflow: hidden;
  height: 50vh;
  min-height: 400px;
  background-image: url('image/fv_photo_pc.png');
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
  display: flex;
  align-items: flex-end;
}

.hero-text {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 60px 48px;
  background: linear-gradient(to top, rgba(255,255,255,0.85) 0%, rgba(255,255,255,0.4) 60%, transparent 100%);
}

.hero-accent {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  color: var(--pink);
  font-weight: 700;
  font-style: italic;
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

.hero-catch {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 900;
  line-height: 1.4;
  color: var(--dark);
  margin-bottom: 16px;
  letter-spacing: 0.03em;
}

.hero-sub {
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  color: #555;
  line-height: 1.8;
}


.hero-petals {
  position: absolute;
  width: 100%; height: 100%;
  top: 0; left: 0;
  pointer-events: none;
  overflow: hidden;
}

.petal {
  position: absolute;
  width: 10px; height: 10px;
  background: var(--pink);
  border-radius: 50% 0;
  opacity: 0.3;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(180deg); }
}

/* ===== ABOUT ===== */
.about { background: #fff; }

.about-inner {
  display: flex;
  align-items: center;
  gap: 60px;
}

.about-text { flex: 1; }

.about-text h2 {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 20px;
  line-height: 1.4;
}

.about-text h2 span { color: var(--pink); }

.about-text p {
  color: var(--gray);
  line-height: 1.9;
  margin-bottom: 16px;
}

.about-mission {
  background: linear-gradient(135deg, rgba(249,224,229,0.55) 0%, rgba(214,238,245,0.45) 100%);
  border-radius: 20px;
  padding: 28px 32px;
  margin-top: 28px;
  border: 1px solid rgba(232,114,138,0.22);
  text-align: center;
}

.mission-ornament {
  display: block;
  width: 120px;
  height: 16px;
  margin: 0 auto 12px;
}

.about-mission .label {
  font-size: 0.68rem;
  color: var(--pink);
  font-weight: 600;
  letter-spacing: 0.22em;
  margin-bottom: 10px;
}

.about-mission p {
  font-size: 0.93rem;
  font-weight: 500;
  color: #4a3040;
  margin: 0;
  line-height: 1.85;
  font-style: italic;
  letter-spacing: 0.03em;
}

.about-image {
  flex: 0 0 360px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(232,114,138,0.18);
}

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

/* ===== VALUES ===== */
.values { background: var(--light-gray); }

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.value-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
  cursor: pointer;
}

.value-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.12);
}

.value-icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--mint) 0%, var(--pink-light) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.value-icon svg {
  width: 32px;
  height: 32px;
  stroke: var(--pink);
}

.value-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
}

.value-card p {
  font-size: 0.88rem;
  color: var(--gray);
  line-height: 1.8;
}

/* ===== COMPARISON ===== */
.comparison { background: #fff; }

.comparison-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.comparison-table {
  width: 100%;
  min-width: 560px;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.comparison-table thead tr th {
  padding: 18px 12px;
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
  background: var(--dark);
  color: #fff;
}

.comparison-table thead tr th.col-honmei {
  background: var(--pink);
  color: #fff;
  font-size: 1rem;
}

.comparison-table thead tr th.col-label {
  background: var(--dark);
  width: 34%;
}

.comparison-table tbody tr {
  background: #fff;
}

.comparison-table tbody tr:nth-child(even) {
  background: #fafafa;
}

.comparison-table tbody td {
  padding: 16px 12px;
  font-size: 0.88rem;
  text-align: center;
  color: var(--gray);
  border-bottom: 1px solid #eee;
  line-height: 1.5;
}

.comparison-table tbody td.row-label {
  text-align: left;
  font-weight: 700;
  color: var(--dark);
  padding-left: 20px;
  font-size: 0.9rem;
}

.comparison-table tbody td.col-honmei {
  background: #fff5f7;
  font-weight: 600;
}

.comparison-table tbody tr:last-child td {
  border-bottom: none;
}

.circle  { color: var(--pink);  font-size: 1.2rem; font-weight: 900; }
.circle-s { color: #4caf50; font-size: 1.1rem; font-weight: 700; }
.triangle { color: var(--gold); font-size: 1.1rem; }
.cross   { color: #aaa; font-size: 1.1rem; }

/* ===== FLOW ===== */
.flow { background: linear-gradient(155deg, #e8f6fb 0%, #fde8ed 100%); }

.flow-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  position: relative;
}

.flow-steps::before {
  content: '';
  position: absolute;
  top: 40px;
  left: calc(12.5% + 20px);
  right: calc(12.5% + 20px);
  height: 2px;
  background: linear-gradient(90deg, var(--mint-dark), var(--pink));
}

.flow-step {
  flex: 1;
  text-align: center;
  padding: 0 12px;
  position: relative;
}

.step-num {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--pink);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 4px 16px rgba(232,114,138,0.2);
  position: relative;
  z-index: 1;
}

.step-num img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.step-label {
  font-size: 0.7rem;
  color: var(--pink);
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.flow-step h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}

.flow-step p {
  font-size: 0.82rem;
  color: var(--gray);
  line-height: 1.6;
}

/* ===== FAQ ===== */
.faq { background: #fff; }

.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid rgba(0,0,0,0.08);
  transition: background .2s;
  border-radius: 8px;
}

.faq-item:hover {
  background: var(--light-gray);
}

.faq-question {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 22px 0;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--dark);
  list-style: none;
  transition: color .2s;
}

.faq-question:hover { color: var(--pink); }

.faq-question::marker { display: none; }

.faq-q-badge {
  flex-shrink: 0;
  width: 28px; height: 28px;
  background: var(--pink);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 900;
}

.faq-question .arrow {
  margin-left: auto;
  color: var(--pink);
  transition: transform .3s;
  font-size: 1.1rem;
  flex-shrink: 0;
}

details[open] .faq-question .arrow {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 0 22px 44px;
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.8;
}

/* ===== CTA ===== */
.cta {
  background: linear-gradient(135deg, var(--mint) 0%, var(--pink-light) 100%);
  text-align: center;
  padding: 100px 20px;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232,114,138,0.12) 0%, transparent 65%);
  top: -200px; right: -100px;
  pointer-events: none;
}

.cta::after {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168,216,234,0.15) 0%, transparent 65%);
  bottom: -100px; left: -80px;
  pointer-events: none;
}

.cta h2 {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.cta h2 span { color: var(--pink); }

.cta p {
  color: var(--gray);
  margin-bottom: 36px;
  font-size: 0.95rem;
  position: relative;
  z-index: 1;
}

.cta .btn-line {
  position: relative;
  z-index: 1;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 10px 10px;
  text-align: center;
}

.footer-logo {
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: #fff;
  margin-bottom: 8px;
}

.footer-logo img {
  height: 50px;
  width: auto;
  margin: 0 auto;
}

.footer-logo span { color: var(--pink); }

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  transition: color .2s;
}

.footer-links a:hover { color: #fff; }

.footer-copy {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
}

/* ===== LEGAL PAGE ===== */
.legal-page { padding-top: 64px; }

.legal-hero {
  background: linear-gradient(155deg, var(--mint) 0%, var(--pink-light) 100%);
  padding: 60px 20px 48px;
  text-align: center;
}

.legal-hero h1 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--dark);
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 20px;
}

.legal-content h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin: 36px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--mint-dark);
}

.legal-content p,
.legal-content td {
  font-size: 0.92rem;
  color: var(--gray);
  line-height: 1.9;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
}

.legal-table th,
.legal-table td {
  padding: 14px 16px;
  border: 1px solid #e0e0e0;
  font-size: 0.88rem;
  text-align: left;
  vertical-align: top;
}

.legal-table th {
  background: var(--light-gray);
  width: 30%;
  color: var(--dark);
  font-weight: 700;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .section { padding: 60px 0; }
  .section-title { font-size: 1.4rem; }

  /* header */
  .nav-links { display: none; }

  /* hero */
  .hero {
    height: auto;
    min-height: 60vh;
    background-image: url('image/fv_photo_sp.png');
  }
  .hero-text { padding: 32px 20px 28px; }
  .hero-catch { font-size: 1.8rem; }

  /* about */
  .about-inner { flex-direction: column; gap: 36px; }
  .about-image { flex: none; width: 100%; border-radius: 16px; }

  /* values */
  .values-grid { grid-template-columns: 1fr; gap: 16px; }

  /* service */
  .service-grid { grid-template-columns: 1fr; }

  /* flow */
  .flow-steps { flex-direction: column; align-items: center; gap: 32px; }
  .flow-steps::before { display: none; }

  /* faq */
  .faq-answer { padding-left: 0; }

  /* legal */
  .legal-page { overflow-x: hidden; }
  .legal-hero h1 { font-size: 1.3rem; }
  .legal-content { padding: 40px 16px; }
  .legal-table { table-layout: fixed; width: 100%; }
  .legal-table th { width: 6em; }
  .legal-table th,
  .legal-table td { font-size: 0.8rem; padding: 10px 10px; word-break: break-word; overflow-wrap: break-word; }
  .legal-table td table { font-size: 0.72rem !important; width: 100% !important; }
  .legal-table td table th,
  .legal-table td table td { padding: 4px 6px !important; white-space: normal !important; }
}