/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans CJK JP', 'Noto Sans JP', sans-serif;
  color: #333;
  background: #FAF9F6;
  line-height: 1.7;
}
a { text-decoration: none; color: inherit; cursor: pointer; }
img { width: 100%; height: auto; display: block; }

/* ===== Variables ===== */
:root {
  --cream: #FAF9F6;
  --green: #9EC4A0;
  --green-btn: #7B9E6B;
  --green-dark: #4A6B41;
  --orange: #EBA96A;
  --text: #333333;
  --radius-full: 9999px;
  --ease: 0.3s ease;
}

/* ===== Display Utility ===== */
.sp-only { display: none; }
.br-420 { display: none; }

/* ===== Layout ===== */
.container { max-width: 1200px; width: 100%; margin: 0 auto; padding: 0 28px; }

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 16px rgba(0,0,0,0.06);
  transition: background var(--ease);
}
.header.scrolled {
  background: rgba(255, 255, 255, 0.8);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  max-width: 1200px;
  margin: 0 auto;
  height: 80px;
}
.logo {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}
.logo-text {
  font-size: clamp(17px, 2vw, 25px);
  font-weight: bold;
  color: #A9A9A9;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.logo-img-wrap {
  width: clamp(44px, 6vw, 80px);
}
.nav a {
  font-size: 15px;
  color: #666;
  margin-left: 36px;
  transition: color var(--ease);
  position: relative;
}
.nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--green-btn);
  transition: width 0.3s ease;
}
.nav a:hover { color: var(--green-btn); }
.nav a:hover::after { width: 100%; }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #666;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.menu-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 60px; left: 0; right: 0;
  background: white;
  border-top: 1px solid #eee;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  z-index: 99;
  padding: 8px 0;
}
.mobile-nav a {
  display: block;
  padding: 14px 28px;
  font-size: 14px;
  color: #555;
  border-bottom: 1px solid #f5f5f5;
}
.mobile-nav.open { display: block; }

/* ===== Hero ===== */
.hero {
  position: relative;
  background: var(--cream);
  min-height: clamp(400px, 60vw, 100vh);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding-top: 80px;
}

.bubble {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.b1 { width: clamp(80px, 14vw, 200px); height: clamp(80px, 14vw, 200px); background: #FFCDD2; opacity: 0.55; bottom: 13%; left: 24%; animation: float 6s ease-in-out infinite; }
.b2 { width: clamp(60px, 10vw, 150px); height: clamp(60px, 10vw, 150px); background: #FFF9C4; opacity: 0.65; top: 25%; right: 37%; animation: float 7.5s ease-in-out infinite 1s; }
.b3 { width: clamp(44px, 7.5vw, 110px); height: clamp(44px, 7.5vw, 110px); background: #C8E6C9; opacity: 0.58; top: 45%; left: 7%; animation: float 5.5s ease-in-out infinite 0.5s; }
.b4 { width: clamp(68px, 12vw, 170px); height: clamp(68px, 12vw, 170px); background: #BBDEFB; opacity: 0.48; top: 12%; right: 9%; animation: float 8s ease-in-out infinite 2s; }
.b5 { width: clamp(40px, 7vw, 100px); height: clamp(40px, 7vw, 100px); background: #F8BBD9; opacity: 0.5; top: 15%; left: 38%; animation: float 6s ease-in-out infinite 1.5s; }
.b6 { width: clamp(32px, 5.5vw, 80px); height: clamp(32px, 5.5vw, 80px); background: #BBDEFB; opacity: 0.44; bottom: 38%; left: 40%; animation: float 7s ease-in-out infinite 3s; }
.b7 { width: 60px; height: 60px; background: #FFCDD2; opacity: 0.38; bottom: 28%; right: 10%; animation: float 5s ease-in-out infinite 2.5s; }

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

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: flex-start;
  position: relative;
  z-index: 1;
}
.hero-text {
  position: relative;
  z-index: 1;
}
.hero-illustration {
  display: flex;
  justify-content: center;
  align-self: flex-end;
  padding-top: 120px;
}
.hero-text h1 {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(30px, 3.5vw, 40px);
  font-weight: bold;
  color: #6F5423;
  white-space: nowrap;
  line-height: 1.38;
  margin-bottom: clamp(20px, 2.2vw, 30px);
}
.hero-text p {
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 500;
  color: #6F5423;
  line-height: 1.85;
}
.btn {
  display: inline-block;
  background: var(--green-btn);
  color: white;
  padding: 13px 38px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  transition: background var(--ease), transform var(--ease), box-shadow var(--ease);
  box-shadow: 0 4px 16px rgba(123,158,107,0.3);
}
.btn:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(74,107,65,0.35);
}
.hero-img-wrap {
  width: 100%;
  -webkit-mask-image:
    linear-gradient(to right,  transparent 0%, black 15%, black 85%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right,  transparent 0%, black 15%, black 85%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
  mask-composite: intersect;
}

/* ===== About (Green) ===== */
.about {
  background: #7DA87B;
  padding: 40px 0;
}
.about-grid {
  display: grid;
  grid-template-columns: 6fr 4fr;
  gap: 64px;
  align-items: center;
}
.about-text h2 {
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: bold;
  color: white;
  line-height: 1.48;
  margin-bottom: clamp(16px, 2vw, 30px);
}
.about-text p {
  font-size: clamp(14px, 1.6vw, 20px);
  font-weight: 500;
  color: rgba(255,255,255,0.88);
  line-height: 1.95;
}
.about-illustration { display: flex; justify-content: center; }
.about-img-wrap { width: 100%; }

/* ===== Features (Orange) ===== */
.features {
  background: #F9C38F;
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

/* Ripple animation */
.features-ripple {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  pointer-events: none;
  z-index: 0;
}
.ripple {
  position: absolute;
  width: 500px;
  height: 500px;
  border: 2px solid rgba(2,255,247,0.4);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.2);
  animation: ripple-expand 4s ease-out infinite;
  opacity: 0;
}
.r2 { animation-delay: 1s; }
.r3 { animation-delay: 2s; }
.r4 { animation-delay: 3s; }
@keyframes ripple-expand {
  0%   { transform: translate(-50%, -50%) scale(0.2); opacity: 0.65; }
  80%  { opacity: 0.2; }
  100% { transform: translate(-50%, -50%) scale(2.2); opacity: 0; }
}

.features-title {
  text-align: center;
  font-size: 35px;
  font-weight: bold;
  font-family: 'Noto Sans Javanese', 'Noto Sans JP', sans-serif;
  color: white;
  text-shadow: 0 3px 10px rgba(0,0,0,0.22);
}

/* Triangle layout */
.features-triangle {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: auto auto;
  max-width: min(900px, 95vw);
  margin: 0 auto;
  row-gap: clamp(24px, 4vw, 52px);
  position: relative;
  z-index: 1;
}
.feat-top    { grid-column: 2; grid-row: 1; }
.feat-center { grid-column: 2; grid-row: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.feat-left   { grid-column: 1; grid-row: 2; }
.feat-right  { grid-column: 3; grid-row: 2; }

.feat-item { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.feat-circle {
  width: clamp(160px, 22vw, 300px);
  height: clamp(160px, 22vw, 300px);
  border-radius: 50%;
  background: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.14);
  padding: 20px;
}
.feat-icon-wrap { width: clamp(56px, 7vw, 100px); }
.feat-top .feat-icon-wrap { width: clamp(40px, 5vw, 70px); }
.feat-label { font-size: clamp(16px, 2.2vw, 30px); font-weight: 700; color: #D4A373; }
.feat-desc { font-size: clamp(11px, 1.4vw, 18px); font-weight: bold; color: #333; line-height: 1.3; }
.feat-mascot-wrap { width: clamp(100px, 14vw, 180px); }

/* ===== App Demo ===== */
.app-demo {
  padding: 100px 0;
  background-color: #f2ffff;
}
.section-title {
  text-align: center;
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 48px;
}

/* ===== Demo Stage ===== */
.demo-stage {
  position: relative;
  padding: clamp(40px, 6vw, 80px) 0 clamp(60px, 9vw, 120px);
}
.demo-row {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(16px, 3vw, 40px);
}
.demo-notify-wrap { width: clamp(120px, 16vw, 220px); }
.demo-notify-wrap:nth-child(1) { margin-top: 0; }
.demo-notify-wrap:nth-child(2) { margin-top: clamp(50px, 7vw, 100px); }
.demo-notify-wrap:nth-child(3) { margin-top: clamp(100px, 14vw, 200px); }

.demo-char {
  position: absolute;
  width: clamp(80px, 11vw, 150px);
}
.char-left { bottom: 0; left: 0; }
.char-right { top: 0; right: 0; }

/* Paper airplane */
.paper-airplane-wrap {
  position: absolute;
  width: clamp(60px, 8vw, 120px);
  bottom: clamp(45px, 6vw, 90px);
  left: clamp(40px, 5vw, 80px);
  z-index: 3;
  --fly-x: 65vw;
  --fly-y: -43vw;
  animation: fly-paper 12s ease-in-out infinite;
}
.paper-airplane-inner {
  animation: float-gentle 2.2s ease-in-out infinite;
}

@keyframes fly-paper {
  0%   { transform: translate(0, 0);                                         opacity: 0; }
  6%   { opacity: 1; }
  80%  { opacity: 1; }
  92%  { transform: translate(var(--fly-x), var(--fly-y));                   opacity: 0.4; }
  100% { transform: translate(calc(var(--fly-x) + 1.5vw), calc(var(--fly-y) - 1vw)); opacity: 0; }
}
@keyframes float-gentle {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-12px); }
}

/* ===== CTA ===== */
.cta {
  background: #f0b27a;
  padding: 80px 0;
}
.cta-title {
  text-align: center;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 60px;
}
.cta-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 48px;
}
.cta-col--right { text-align: left; }
.cta-col--center {
  display: flex;
  justify-content: center;
  align-items: center;
}
.cta-image {
  width: clamp(100px, 14vw, 200px);
  height: auto;
}
.cta-item {
  margin-bottom: 32px;
}
.cta-item:last-child { margin-bottom: 0; }
.cta-item h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.cta-item p {
  font-size: 13px;
  color: var(--text);
  line-height: 1.8;
  margin: 0;
}

/* ===== Testimonials ===== */
.testimonials {
  background: var(--cream);
  padding: 100px 0;
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 2vw, 24px);
  margin-top: clamp(40px, 6vw, 80px);
}
.testi-card {
  background: var(--green-btn);
  border-radius: clamp(30px, 4vw, 60px);
  padding: clamp(16px, 2.2vw, 30px) clamp(20px, 2.5vw, 30px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(12px, 1.5vw, 20px);
}
.testi-voice {
  width: clamp(80px, 11vw, 150px);
  height: clamp(80px, 11vw, 150px);
}
.testi-text { font-size: clamp(13px, 1.5vw, 20px); color: white; line-height: 1.9; text-align: left; }

/* ===== Company Info ===== */
.company-info {
  padding: clamp(60px, 8vw, 100px) 0;
  background: #fff;
}
.company-info-en {
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--green);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.company-table {
  max-width: 800px;
  margin: 0 auto;
  border-top: 1px solid #ddd;
}
.company-row {
  display: flex;
  border-bottom: 1px solid #ddd;
  padding: 22px 8px;
  gap: 48px;
  align-items: baseline;
}
.company-row dt {
  width: 160px;
  flex-shrink: 0;
  font-size: 15px;
  color: #666;
}
.company-row dd {
  font-size: 15px;
  color: #333;
  line-height: 1.9;
}

/* ===== Footer ===== */
.footer {
  background: var(--green-dark);
  padding: 80px 0 52px;
  text-align: center;
}
.footer-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
}
.footer-logo-img-wrap {
  width: 100px;
  margin: 0 auto;
}
.footer-name {
  font-size: 26px;
  font-weight: 700;
  color: white;
  margin-bottom: 28px;
}
.footer-info { font-size: 16px; color: white; line-height: 2.4; margin-bottom: 60px; }
.footer-nav {
  display: flex;
  justify-content: center;
  gap: 40px;
}
.footer-nav a {
  font-size: 14px;
  color: white;
  transition: opacity var(--ease);
  position: relative;
}
.footer-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: white;
  transition: width 0.3s ease;
}
.footer-nav a:hover { opacity: 0.7; }
.footer-nav a:hover::after { width: 100%; }

/* ===== Responsive (〜1130px): ハンバーガーメニュー切り替え ===== */
@media (max-width: 1130px) {
  .nav { display: none; }
  .menu-toggle { display: flex; }
  .mobile-nav { top: 80px; }
}

/* ===== Responsive (〜1400px) ===== */
@media (max-width: 1400px) {
  .hero {
    align-items: center;
    padding-top: clamp(100px, 10vw, 180px);
    padding-bottom: 40px;
  }
  .hero-illustration { padding-top: 0; }
}


