:root {
  --green-950: #123c24;
  --green-900: #174b2c;
  --green-800: #23643b;
  --green-700: #2f7b47;
  --green-600: #4a9b51;
  --green-500: #78b95b;
  --green-300: #badc94;
  --green-200: #d9ebc3;
  --green-100: #eef7e5;
  --green-50: #f8fbf4;
  --ink: #17221a;
  --muted: #5d6a60;
  --line: #dfe9d8;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(37, 83, 46, .08);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", YuGothic, "Noto Sans JP", sans-serif;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.container { width: min(calc(100% - 40px), var(--container)); margin: 0 auto; }
.section { padding: 96px 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(223,233,216,.72);
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(16px);
}
.header-inner {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: max-content; }
.brand img { width: 58px; height: 58px; object-fit: cover; border-radius: 18px; }
.brand-copy { display: grid; line-height: 1.15; }
.brand-copy strong { color: var(--green-900); font-size: 1.35rem; letter-spacing: .03em; }
.brand-copy small { margin-top: 6px; color: var(--green-700); font-weight: 700; letter-spacing: .08em; }
.global-nav { display: flex; align-items: center; gap: 34px; font-weight: 700; }
.global-nav a { position: relative; padding: 28px 0 24px; }
.global-nav a::after { content: ""; position: absolute; left: 50%; right: 50%; bottom: 15px; height: 3px; border-radius: 99px; background: var(--green-600); transition: left .2s ease, right .2s ease; }
.global-nav a:hover::after, .global-nav a:focus-visible::after { left: 0; right: 0; }
.menu-button { display: none; border: 0; background: transparent; width: 46px; height: 46px; padding: 10px; }
.menu-button span:not(.sr-only) { display: block; height: 2px; background: var(--green-900); margin: 6px 0; border-radius: 99px; }

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 36%, rgba(216,239,195,.68), transparent 25%),
    radial-gradient(circle at 16% 80%, rgba(235,246,225,.88), transparent 27%),
    linear-gradient(180deg, #fff 0%, #fff 62%, #f6fbf1 100%);
  border-bottom: 1px solid var(--line);
}
.hero::after {
  content: "";
  position: absolute;
  left: -5%; right: -5%; bottom: -62px;
  height: 145px;
  background: #f2f9eb;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  opacity: .9;
}
.hero-grid { position: relative; z-index: 2; min-height: 650px; padding: 84px 0 100px; display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 54px; }
.eyebrow { margin: 0 0 14px; color: var(--green-700); font-size: .84rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.hero h1 { margin: 0 0 28px; color: var(--green-950); font-size: clamp(2.35rem, 4.1vw, 4.4rem); line-height: 1.38; letter-spacing: -.03em; }
.hero .lead { margin: 0 0 8px; font-size: 1.15rem; }
.hero-copy > p:not(.eyebrow) { max-width: 660px; color: #39453d; }
.button { display: inline-flex; align-items: center; gap: 14px; margin-top: 22px; min-height: 58px; padding: 0 30px; border-radius: 999px; font-weight: 800; transition: transform .2s ease, box-shadow .2s ease; }
.button:hover { transform: translateY(-2px); }
.button.primary { color: #fff; background: linear-gradient(135deg, var(--green-700), #83c84f); box-shadow: 0 14px 30px rgba(81,145,65,.22); }
.hero-character { display: grid; place-items: center; }
.character-card { position: relative; width: min(100%, 470px); }
.character-card img { width: 100%; border-radius: 44% 56% 45% 55% / 42% 45% 55% 58%; box-shadow: var(--shadow); }
.character-label { position: absolute; right: -14px; bottom: 70px; display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border: 2px solid var(--green-200); border-radius: 999px; background: rgba(255,255,255,.95); color: var(--green-900); font-weight: 800; box-shadow: 0 12px 30px rgba(42,83,48,.08); }
.character-label::before { content: ""; width: 9px; height: 9px; margin-right: 9px; border-radius: 50%; background: var(--green-500); }
.hero-decoration { position: absolute; width: 18px; height: 38px; border-radius: 80% 0 80% 0; background: rgba(126,186,84,.25); transform: rotate(38deg); }
.hero-decoration-a { top: 150px; left: 24%; }
.hero-decoration-b { right: 9%; bottom: 145px; transform: rotate(-22deg) scale(.8); }

.section-kicker { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 26px; color: var(--green-800); font-weight: 900; letter-spacing: .1em; }
.section-kicker::before, .section-kicker::after { content: ""; width: 12px; height: 18px; border-radius: 90% 0 90% 0; background: var(--green-500); transform: rotate(-38deg); }
.app-section { background: #fff; }
.app-intro { display: grid; grid-template-columns: .75fr 1.65fr; gap: 56px; align-items: center; }
.app-title-row { display: flex; align-items: center; gap: 18px; margin-bottom: 26px; }
.app-title-row img { width: 88px; height: 88px; object-fit: cover; border-radius: 22px; box-shadow: 0 12px 24px rgba(48,96,57,.13); }
.status-badge { display: inline-block; padding: 5px 12px; margin-bottom: 5px; border-radius: 999px; background: var(--green-100); color: var(--green-800); font-size: .78rem; font-weight: 900; }
.app-copy h2 { margin: 0; color: var(--green-900); font-size: clamp(2.2rem, 4vw, 3.6rem); line-height: 1; letter-spacing: -.03em; }
.app-yomi { margin: 8px 0 0; color: var(--green-700); font-weight: 800; letter-spacing: .08em; }
.app-copy h3 { margin: 20px 0 12px; color: var(--green-900); font-size: 1.6rem; }
.app-copy p { color: var(--muted); }
.text-link { border: 0; padding: 0; background: transparent; color: var(--green-700); font-weight: 900; cursor: pointer; border-bottom: 1px solid var(--green-300); }
.phone-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; align-items: end; }
.phone-gallery figure { margin: 0; text-align: center; }
.phone-gallery figcaption { min-height: 52px; margin-bottom: 8px; color: var(--green-800); font-size: .82rem; font-weight: 800; }
.phone-gallery img { width: 100%; max-height: 460px; object-fit: contain; filter: drop-shadow(0 15px 20px rgba(24,41,28,.12)); transition: transform .25s ease; }
.phone-gallery figure:hover img { transform: translateY(-6px); }

.features { margin-top: 96px; }
.features > h2 { margin: 0 0 36px; text-align: center; color: var(--green-900); font-size: 2rem; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature-card { min-height: 260px; padding: 34px 26px; border: 1px solid var(--green-200); border-radius: var(--radius-lg); background: linear-gradient(180deg, #fff, #fcfefa); text-align: center; box-shadow: 0 10px 30px rgba(59,99,57,.04); }
.feature-icon { display: grid; place-items: center; width: 78px; height: 78px; margin: 0 auto 22px; border-radius: 50%; background: var(--green-100); color: var(--green-700); font-size: 2.4rem; font-weight: 800; }
.feature-icon.heart { font-size: 3rem; }
.feature-card h3 { margin: 0 0 10px; color: var(--green-900); font-size: 1.16rem; }
.feature-card p { margin: 0; color: var(--muted); font-size: .94rem; }

.about-section { padding-top: 38px; background: linear-gradient(180deg, #fff 0%, var(--green-50) 100%); }
.about-card { display: grid; grid-template-columns: 220px 1fr 220px; gap: 42px; align-items: center; padding: 44px 52px; border: 1px solid var(--green-200); border-radius: var(--radius-xl); background: rgba(252,255,249,.93); box-shadow: var(--shadow); }
.about-character img { width: 100%; max-height: 185px; object-fit: contain; object-position: center bottom; }
.about-copy h2 { margin: 0 0 18px; color: var(--green-900); font-size: 1.8rem; }
.about-copy p { margin: 7px 0; color: var(--muted); }
.about-message { display: grid; justify-items: center; gap: 12px; }
.speech { position: relative; padding: 18px 25px; border: 2px dashed var(--green-200); border-radius: 50%; background: #fff; color: var(--green-900); font-weight: 800; text-align: center; }

.news-section { background: #fff; }
.news-wrap { display: grid; grid-template-columns: .55fr 1.45fr; gap: 60px; }
.news-wrap h2 { margin: 0; color: var(--green-900); font-size: 2rem; }
.news-list { border-top: 1px solid var(--line); }
.news-item { display: grid; grid-template-columns: 130px 1fr; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.news-item time, .news-date { color: var(--muted); font-size: .9rem; }
.news-item p { margin: 4px 0 0; }
.news-label { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--green-100); color: var(--green-800); font-size: .75rem; font-weight: 800; }

.site-footer { border-top: 1px solid var(--line); background: var(--green-50); }
.footer-inner { min-height: 150px; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 42px; }
.footer-brand img { width: 50px; height: 50px; }
.footer-brand .brand-copy strong { font-size: 1rem; }
.footer-brand .brand-copy small { font-size: .7rem; }
.footer-nav { display: flex; gap: 26px; font-size: .88rem; font-weight: 700; }
.footer-nav a:hover { color: var(--green-700); }
.copyright { margin: 0; color: var(--muted); font-size: .82rem; white-space: nowrap; }

.app-dialog { width: min(92vw, 1080px); max-height: 88vh; padding: 30px; border: 0; border-radius: 26px; color: var(--ink); box-shadow: 0 35px 90px rgba(10,35,20,.3); }
.app-dialog::backdrop { background: rgba(18,42,28,.55); backdrop-filter: blur(5px); }
.app-dialog h2 { margin: 0 42px 4px 0; color: var(--green-900); }
.app-dialog p { margin-top: 0; color: var(--muted); }
.app-dialog img { width: 100%; margin-top: 20px; border-radius: 16px; }
.dialog-close { position: absolute; top: 20px; right: 20px; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--green-900); font-size: 1.6rem; line-height: 1; cursor: pointer; }

@media (max-width: 980px) {
  .hero-grid { min-height: auto; grid-template-columns: 1fr; padding-top: 64px; text-align: center; }
  .hero-copy > p:not(.eyebrow) { margin-left: auto; margin-right: auto; }
  .hero-character { order: -1; }
  .character-card { max-width: 360px; }
  .character-label { right: -5px; bottom: 52px; }
  .app-intro { grid-template-columns: 1fr; }
  .app-copy { text-align: center; max-width: 720px; margin: 0 auto; }
  .app-title-row { justify-content: center; }
  .phone-gallery { max-width: 850px; margin: 0 auto; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .about-card { grid-template-columns: 180px 1fr; }
  .about-message { grid-column: 1 / -1; grid-template-columns: auto auto; justify-content: center; align-items: center; }
  .news-wrap { grid-template-columns: 1fr; gap: 24px; }
  .footer-inner { grid-template-columns: 1fr; justify-items: center; padding: 34px 0; gap: 20px; }
}

@media (max-width: 760px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .section { padding: 72px 0; }
  .header-inner { min-height: 74px; }
  .brand img { width: 48px; height: 48px; border-radius: 15px; }
  .brand-copy strong { font-size: 1rem; }
  .brand-copy small { margin-top: 4px; font-size: .68rem; }
  .menu-button { display: block; }
  .global-nav { position: fixed; left: 14px; right: 14px; top: 82px; display: grid; gap: 0; padding: 10px 20px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--shadow); opacity: 0; transform: translateY(-10px); pointer-events: none; transition: .2s ease; }
  .global-nav.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .global-nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .global-nav a:last-child { border-bottom: 0; }
  .global-nav a::after { display: none; }
  .hero-grid { padding: 42px 0 84px; gap: 26px; }
  .hero h1 { font-size: clamp(2rem, 9.5vw, 3.15rem); line-height: 1.45; }
  .hero .lead { font-size: 1.04rem; }
  .character-card { width: min(84%, 330px); }
  .character-label { right: -20px; bottom: 40px; min-height: 42px; padding: 0 17px; font-size: .9rem; }
  .app-title-row { flex-direction: column; }
  .phone-gallery { grid-template-columns: repeat(2, 1fr); gap: 20px 10px; }
  .phone-gallery figcaption { min-height: auto; }
  .phone-gallery img { max-height: 410px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 0; }
  .about-card { grid-template-columns: 1fr; padding: 34px 24px; text-align: center; }
  .about-character img { max-width: 230px; margin: 0 auto; }
  .about-message { grid-column: auto; grid-template-columns: 1fr; }
  .news-item { grid-template-columns: 1fr; gap: 6px; }
  .footer-nav { flex-wrap: wrap; justify-content: center; }
  .app-dialog { padding: 22px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
