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

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; background: #ffffff; }

body {
  background: #ffffff;
  font-family: 'Cormorant Garamond', Georgia, serif;
  color: #1a3848;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ========== HERO ========== */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(170deg, #e8f4fa 0%, #d0ecf6 25%, #a8daf0 50%, #7cc8e8 75%, #5ab8e0 100%);
}

.hero canvas { position: absolute; inset: 0; z-index: 2; }

/* Soft white overlay at top for depth */
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(255,255,255,0.3) 0%, transparent 70%);
  z-index: 3; pointer-events: none;
}

/* Wave surface at bottom */
.hero-waves {
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 25vh;
  z-index: 4; pointer-events: none; overflow: hidden;
}
.hero-waves svg {
  position: absolute; bottom: 0; left: -5%; width: 110%; height: 100%;
}

/* Ripples */
.ripple-wrap {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  z-index: 3; pointer-events: none;
}
.rp {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 80px; height: 80px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  animation: rpOut 7s ease-out infinite; opacity: 0;
}
.rp:nth-child(2) { animation-delay: 2.3s; }
.rp:nth-child(3) { animation-delay: 4.6s; }
@keyframes rpOut {
  0% { transform: translate(-50%,-50%) scale(1); opacity: 0.6; }
  100% { transform: translate(-50%,-50%) scale(10); opacity: 0; }
}

/* Center content */
.hero-center {
  position: relative; z-index: 10;
  display: flex; flex-direction: column; align-items: center;
  padding: 0 20px;
}

.hero-drop {
  width: 90px; height: 118px;
  margin-bottom: 24px;
  opacity: 0;
  animation: dropIn 2s cubic-bezier(0.16,1,0.3,1) 0.3s forwards;
}
@keyframes dropIn {
  from { opacity:0; transform:translateY(-30px); }
  to { opacity:1; transform:translateY(0); }
}
.hero-drop svg { width: 100%; height: 100%; }

.fill-anim { animation: fillRise 12s cubic-bezier(0.22,0.61,0.36,1) 1.5s forwards; }
@keyframes fillRise { from { transform: translateY(100%); } to { transform: translateY(0); } }
.wave-inside { animation: waveMove 3s ease-in-out infinite; }
@keyframes waveMove { 0%,100% { transform:translateX(0); } 50% { transform:translateX(-12px); } }

.hero-wordmark {
  font-family: 'Calibri Light','Helvetica Neue',Arial,sans-serif;
  font-size: 48px; font-weight: 300;
  letter-spacing: 18px; color: #ffffff;
  text-indent: 18px;
  text-shadow: 0 2px 20px rgba(0,80,130,0.15);
  opacity: 0; animation: fadeUp 1.5s ease 0.8s forwards;
}
.hero-wordmark .wi { font-size: 44px; }

.hero-tagline {
  font-size: 14px; font-weight: 400;
  letter-spacing: 5px; color: rgba(255,255,255,0.75);
  margin-top: 12px; text-indent: 5px;
  opacity: 0; animation: fadeUp 1.5s ease 1.4s forwards;
}

@keyframes fadeUp {
  from { opacity:0; transform:translateY(16px); }
  to { opacity:1; transform:translateY(0); }
}

.hero-scroll {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  z-index: 10; display: flex; flex-direction: column; align-items: center; gap: 6px;
  opacity: 0; animation: fadeUp 1.5s ease 2.5s forwards;
}
.hero-scroll span {
  font-family: 'Calibri Light','Helvetica Neue',Arial,sans-serif;
  font-size: 12px; letter-spacing: 3px; color: rgba(255,255,255,0.45);
}
.hero-scroll-bar {
  width: 1px; height: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,0.4), transparent);
  animation: sBob 2s ease-in-out infinite;
}
@keyframes sBob { 0%,100% { transform:translateY(0); } 50% { transform:translateY(5px); opacity:0.3; } }

/* ========== COMMON ========== */
.sec {
  padding: 80px 24px;
  max-width: 600px;
  margin: 0 auto;
  background: #ffffff;
}

.sec-label {
  font-family: 'Calibri Light','Helvetica Neue',Arial,sans-serif;
  font-size: 12px; letter-spacing: 4px;
  color: #5a9ab5;
  margin-bottom: 16px;
}

.sec-heading {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 28px; font-weight: 500;
  font-feature-settings: "pnum" 1;
  color: #1a3848;
  line-height: 1.5; margin-bottom: 10px;
}

.num {
  font-family: 'Calibri Light', 'Helvetica Neue', Arial, sans-serif;
  font-size: 30px;
  font-weight: 300;
}

.sec-sub {
  font-size: 15px; font-weight: 400;
  color: #2a5060;
  letter-spacing: 1px; margin-bottom: 48px;
}

.rv {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.rv.show { opacity: 1; transform: translateY(0); }
.rv-d1 { transition-delay: 0.12s; }
.rv-d2 { transition-delay: 0.24s; }
.rv-d3 { transition-delay: 0.36s; }
.rv-d4 { transition-delay: 0.48s; }

/* ========== MISSION ========== */
.mission { text-align: center; padding: 100px 24px; background: #ffffff; }

.mission-num {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  color: #2a7da8;
  line-height: 1.1; margin-bottom: 4px;
}
.mn-num {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 80px; font-weight: 500;
}
.mn-unit {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 48px; font-weight: 500;
}

.mission-num-sub {
  font-size: 16px; font-weight: 400;
  color: #2a5868;
  letter-spacing: 2px; margin-bottom: 48px;
}

.mission-line {
  width: 40px; height: 1px;
  background: #c0dce8;
  margin: 0 auto 48px;
}

.mission-text {
  font-size: 17px; font-weight: 400;
  line-height: 2.2;
  color: #1a2830;
  text-align: left;
  margin-bottom: 20px;
}
.mission-text:last-child { margin-bottom: 0; }
.mission-text strong {
  color: #1a6a90;
  font-weight: 500;
}

/* スマホ表示のみ MISSION テキストを 1.2 倍に */
@media (max-width: 768px) {
  .sec.mission .mission-text {
    font-size: calc(17px * 1.2);
  }
}

/* ========== STORY ========== */
.story { padding: 80px 24px; background: #f4f9fb; }

.story-text {
  font-size: 17px; font-weight: 400;
  line-height: 2.2;
  color: #2a4050;
  margin-bottom: 28px;
}

.story-strong {
  font-size: 19px;
  font-weight: 500;
  color: #1a6a90;
  margin-bottom: 0;
}

/* ========== APPROACHES ========== */
.approaches { padding: 80px 24px; background: #f6fafb; }

.card {
  background: #ffffff;
  border: 1px solid #e0eef4;
  padding: 24px 20px;
  margin-bottom: 16px;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.card:hover {
  border-color: #b0d8ea;
  box-shadow: 0 4px 20px rgba(42,125,168,0.06);
}

.card-num {
  font-family: 'Calibri Light','Helvetica Neue',Arial,sans-serif;
  font-size: 13px; letter-spacing: 3px;
  color: #8abace; margin-bottom: 8px;
}

.card-title {
  font-family: 'Calibri Light','Helvetica Neue',Arial,sans-serif;
  font-size: 18px; font-weight: 400;
  color: #1a3848;
  letter-spacing: 1px; margin-bottom: 4px;
}

.card-en {
  font-size: 14px; font-style: italic; font-weight: 400;
  color: #3a6878;
  margin-bottom: 10px;
}

.card-body {
  font-size: 15px; font-weight: 400;
  line-height: 1.75;
  color: #1e3844;
}

.card-tag {
  display: inline-block; margin-top: 10px;
  font-family: 'Calibri Light','Helvetica Neue',Arial,sans-serif;
  font-size: 12px; letter-spacing: 2px;
  color: #2a6078;
  border: 1px solid #d0e8f0;
  padding: 4px 10px;
}

/* ========== ECOSYSTEM ========== */
.ecosystem { padding: 80px 24px; background: #ffffff; }

.eco-intro {
  font-size: 16px; font-weight: 400;
  line-height: 2;
  color: #2a4050;
  margin-bottom: 40px;
}

.eco-tree { text-align: center; }

.eco-parent {
  display: inline-block;
  margin-bottom: 0;
}

.eco-parent-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border: 1px solid #8abcce;
  text-decoration: none;
  transition: background 0.3s, color 0.3s;
}

.eco-parent-name {
  font-family: 'Calibri Light','Helvetica Neue',Arial,sans-serif;
  font-size: 17px; font-weight: 400;
  letter-spacing: 3px;
  color: #2a7da8;
}

.eco-parent-arrow {
  font-size: 14px;
  color: #8abcce;
  transition: transform 0.3s;
}

.eco-parent-link:hover {
  background: #2a7da8;
}
.eco-parent-link:hover .eco-parent-name,
.eco-parent-link:hover .eco-parent-arrow {
  color: #ffffff;
}
.eco-parent-link:hover .eco-parent-arrow {
  transform: translateX(3px);
}

.eco-line {
  width: 1px; height: 32px;
  background: #c0dce8;
  margin: 0 auto;
}

.eco-children {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}

.eco-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-left: 3px solid #d8eaf0;
  background: #fafcfd;
  transition: border-color 0.3s;
}
.eco-child:hover { border-color: #8ac8e0; }

.eco-child-current {
  border-left-color: #2a7da8;
  background: #f0f8fb;
}

.eco-child-name {
  font-family: 'Calibri Light','Helvetica Neue',Arial,sans-serif;
  font-size: 16px; font-weight: 400;
  letter-spacing: 1px;
  color: #1a3848;
}

.eco-child-current .eco-child-name {
  color: #2a7da8;
  font-weight: 500;
}

.eco-child-role {
  font-size: 14px; font-weight: 400;
  color: #6a8a98;
}

/* ========== CLOSING ========== */
.closing {
  text-align: center; padding: 100px 24px;
  background: linear-gradient(180deg, #ffffff 0%, #f0f8fb 100%);
}

.closing-quote {
  font-size: 24px; font-weight: 500;
  font-style: italic;
  color: #1a3040;
  line-height: 1.8; margin-bottom: 32px;
}

.closing-brand {
  font-family: 'Calibri Light','Helvetica Neue',Arial,sans-serif;
  font-size: 13px; letter-spacing: 5px;
  color: #2a6078; text-indent: 5px;
}

/* ========== FOOTER ========== */
footer {
  padding: 48px 24px 32px;
  text-align: center;
  border-top: 1px solid #e0eef4;
  background: #f6fafb;
}

.ft-logo {
  font-family: 'Calibri Light','Helvetica Neue',Arial,sans-serif;
  font-size: 22px; font-weight: 300;
  letter-spacing: 10px; color: #2a5868;
  text-indent: 10px; margin-bottom: 16px;
}
.ft-logo .fi { font-size: 20px; }

.ft-links {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: 16px; margin-bottom: 20px;
}
.ft-links a {
  font-family: 'Calibri Light','Helvetica Neue',Arial,sans-serif;
  font-size: 12px; letter-spacing: 2px;
  color: #2a6078; text-decoration: none;
}

.ft-copy {
  font-family: 'Calibri Light','Helvetica Neue',Arial,sans-serif;
  font-size: 12px; letter-spacing: 2px; color: #7a9aa8;
}

/* ========== DESKTOP ========== */
@media (min-width: 769px) {
  .hero-wordmark { font-size: 72px; letter-spacing: 28px; text-indent: 28px; }
  .hero-wordmark .wi { font-size: 66px; }
  .hero-drop { width: 120px; height: 156px; margin-bottom: 32px; }
  .sec { max-width: 800px; padding: 120px 60px; }
  .mission { padding: 140px 60px; }
  .mission-num { font-size: 100px; }
  .mission-text { font-size: 19px; }
  .sec-heading { font-size: 36px; }
  .approaches .card-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
  .card { margin-bottom: 0; }
  .eco-children { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .eco-child-current { grid-column: 1 / -1; }
  .closing-quote { font-size: 32px; }
}
