@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;1,300;1,400&family=Noto+Serif+JP:wght@200;300;400&display=swap');

/* ===== Variables ===== */
:root {
  --pink-deep:  #d4748c;
  --pink-mid:   #e8a0b0;
  --pink-light: #f5d0d8;
  --pink-pale:  #fdf0f2;
  --beige:      #f5ede8;
  --beige-warm: #f0e4da;
  --text-dark:  #5a3d35;
  --text-mid:   #7a5c55;
  --text-light: #a08880;
  --white:      #ffffff;
  --off-white:  #fefaf8;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { display: block; max-width: 100%; }
a   { text-decoration: none; color: inherit; }
ul  { list-style: none; }

body {
  font-family: 'Noto Serif JP', serif;
  background: var(--off-white);
  color: var(--text-dark);
  line-height: 1.9;
  font-size: 15px;
}

/* ===== Site Header ===== */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--pink-light);
  padding: 10px 0;
}
.site-header-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-text {
  font-size: 13px;
  font-weight: 300;
  color: var(--text-mid);
  letter-spacing: 0.1em;
}
.site-name {
  font-size: 11px;
  font-weight: 300;
  color: var(--text-light);
  letter-spacing: 0.12em;
}

/* ===== FV ===== */
.fv {
  line-height: 0;
  font-size: 0;
}
.fv img {
  width: 100%;
  display: block;
  max-height: 600px;
  object-fit: cover;
  object-position: top;
}

/* ===== Step Section ===== */
.step { }

/* Alternating backgrounds */
.step-1 .step-overview,
.step-3 .step-overview { background: var(--beige); }
.step-2 .step-overview,
.step-4 .step-overview { background: var(--pink-pale); }

.step-1 .step-detail,
.step-3 .step-detail { background: var(--white); }
.step-2 .step-detail,
.step-4 .step-detail { background: var(--off-white); }

/* ===== Step Overview ===== */
.step-overview {
  padding: 48px 0;
  border-top: 1px solid var(--pink-light);
}
.step-ov-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 5fr 4fr;
  gap: 48px;
  align-items: stretch;
}

/* Step Title Row */
.step-title-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 10px;
}
.step-label {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 28px;
  font-weight: 300;
  color: var(--pink-deep);
  letter-spacing: 0.05em;
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
}
.step-label em {
  font-size: 36px;
}
.step-title-block {
  flex: 1;
}
.step-heading {
  font-size: 20px;
  font-weight: 400;
  color: var(--text-dark);
  letter-spacing: 0.08em;
  line-height: 1.3;
}
.step-kicker {
  font-size: 11.5px;
  font-weight: 300;
  color: var(--text-light);
  letter-spacing: 0.1em;
}
.step-icon {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex-shrink: 0;
}

/* Step Nav List */
.step-nav {
  border-top: 1px solid var(--pink-light);
  margin-bottom: 24px;
}
.step-nav li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 4px;
  border-bottom: 1px solid var(--pink-light);
  position: relative;
}
.nav-num {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 18px;
  font-weight: 300;
  color: var(--pink-deep);
  flex-shrink: 0;
  min-width: 28px;
}
.nav-text {
  flex: 1;
  font-size: 13px;
  font-weight: 300;
  color: var(--text-dark);
  letter-spacing: 0.03em;
  line-height: 1.6;
}
.nav-arrow {
  font-size: 13px;
  color: var(--pink-mid);
  flex-shrink: 0;
}
/* 見出し行だけ 80/20、目次は全幅 */
.step-ov-left {
  display: grid;
  grid-template-columns: 80% 20%;
  align-items: start;
}
.step-ov-main {
  min-width: 0;
}
.step-ov-click {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 4px;
}
/* 目次・ナビリンクは全幅（2カラムにまたがる） */
.step-nav,
.step-nav-links,
.step-next-link {
  grid-column: 1 / -1;
}
/* クリック画像 */
.nav-click {
  height: 60px;
  width: auto;
  display: block;
  animation: float 2s ease-in-out infinite;
}

/* ふわふわアニメーション */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-5px); }
}

/* Next Step Nav (前後リンク) */
.step-nav-links {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

/* Next Step Link */
.step-next-link {
  font-size: 12.5px;
  font-weight: 300;
  color: var(--pink-deep);
  letter-spacing: 0.1em;
  display: inline-block;
  padding: 2px 0;
  border-bottom: 1px solid var(--pink-light);
  transition: color 0.2s;
}
.step-next-link:hover { color: #b85a70; }

/* Step Overview Right */
.step-ov-right {
  display: flex;
}
.step-empathy {
  flex: 1;
  background: var(--white);
  border-radius: 10px;
  padding: 28px 28px 28px;
  border: 1px solid var(--pink-light);
  position: relative;
  overflow: hidden;
}
.step-empathy p {
  font-size: 13px;
  font-weight: 300;
  color: var(--text-mid);
  line-height: 2.3;
  letter-spacing: 0.04em;
  position: relative;
  z-index: 1;
  max-width: 72%;
}
.step-ov-img {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 62%;
  border-radius: 0 0 10px 0;
  display: block;
  mask-image: radial-gradient(ellipse at bottom right, black 55%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse at bottom right, black 55%, transparent 90%);
}

/* ===== Step Detail ===== */
.step-detail {
  padding: 44px 0 20px;
  border-top: 1px solid var(--pink-light);
}
.step-detail-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Detail Header */
.step-detail-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}
.step-detail-title {
  font-size: 17px;
  font-weight: 400;
  color: var(--text-dark);
  letter-spacing: 0.08em;
  line-height: 1.3;
}
.step-detail-sub {
  font-size: 11px;
  font-weight: 300;
  color: var(--text-light);
  letter-spacing: 0.12em;
}

/* Step Grid */
.step-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 36px;
}

/* Step Card */
.step-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--pink-light);
  border-radius: 12px;
  padding: 20px 14px 18px;
}
.card-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--pink-deep);
  color: var(--white);
  font-family: 'Cormorant Garamond', serif;
  font-size: 14px;
  font-weight: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.card-title {
  font-size: 12.5px;
  font-weight: 400;
  color: var(--text-dark);
  letter-spacing: 0.04em;
  line-height: 1.6;
}
.card-img {
  width: 100%;
  object-fit: contain;
  mask-image: radial-gradient(ellipse 85% 85% at 50% 50%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 85% 85% at 50% 50%, black 30%, transparent 100%);
}
.card-desc {
  font-size: 11.5px;
  font-weight: 300;
  color: var(--text-mid);
  line-height: 1.85;
  letter-spacing: 0.03em;
  text-align: left;
  width: 100%;
}

/* Step Footer Note */
.step-footer-note {
  text-align: center;
  font-size: 13px;
  font-weight: 300;
  color: var(--text-mid);
  letter-spacing: 0.12em;
  padding: 20px 0 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.flower {
  color: var(--pink-mid);
  font-size: 14px;
}

/* 目次リストをクリッカブルに */
.step-nav li {
  cursor: pointer;
  transition: background 0.15s;
}
.step-nav li:hover {
  background: var(--pink-pale);
  border-radius: 6px;
}

/* ===== Modal ===== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(90, 61, 53, 0.35);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-overlay.is-open {
  display: flex;
  animation: fadeIn 0.25s ease;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.modal-box {
  background: var(--white);
  border-radius: 16px;
  padding: 36px 36px 32px;
  max-width: 560px;
  width: 100%;
  position: relative;
  box-shadow: 0 8px 40px rgba(90, 61, 53, 0.15);
  animation: slideUp 0.3s ease;
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 16px;
  color: var(--text-light);
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}
.modal-close:hover { color: var(--pink-deep); }
.modal-header {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--pink-light);
}
.modal-step-label {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 13px;
  font-weight: 300;
  color: var(--pink-deep);
  letter-spacing: 0.15em;
  display: block;
  margin-bottom: 6px;
}
.modal-title {
  font-size: 17px;
  font-weight: 400;
  color: var(--text-dark);
  letter-spacing: 0.06em;
  line-height: 1.5;
}
.modal-body p {
  font-size: 14px;
  font-weight: 300;
  color: var(--text-mid);
  line-height: 2.1;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}
.modal-body p:last-child {
  margin-bottom: 0;
}
.modal-placeholder {
  color: var(--text-light) !important;
  font-style: italic;
}

/* ===== Footer ===== */
footer {
  background: var(--white);
  border-top: 1px solid var(--pink-light);
  padding: 28px 0 20px;
}
.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}
.footer-note {
  font-size: 11px;
  font-weight: 200;
  color: var(--text-light);
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  line-height: 1.8;
}
.footer-copy {
  font-family: 'Cormorant Garamond', serif;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--text-light);
}

/* ===== Responsive: 768px ===== */
@media (max-width: 768px) {
  .step-ov-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .step-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .step-heading { font-size: 17px; }
}

/* ===== Responsive: 480px ===== */
@media (max-width: 480px) {
  .site-header-inner { flex-direction: column; align-items: flex-start; gap: 4px; }
  .step-overview { padding: 32px 0; }
  .step-ov-inner { padding: 0 16px; }
  .step-detail-inner { padding: 0 16px; }
  .step-title-row { gap: 10px; }
  .step-label { font-size: 22px; }
  .step-label em { font-size: 28px; }
  .step-heading { font-size: 15px; }
  .step-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .card-title { font-size: 11.5px; }
  .card-desc  { font-size: 11px; }
}
