/* ============================================================
   Arbor Inc. — Corporate Site
   Design System v1.2
============================================================ */

:root {
  /* Greens */
  --green-main:   #4EA82A;
  --green-light:  #EAF6E2;
  --green-dark:   #357A1C;
  --green-darkest:#1E4A0E;
  --green-soft:   #C0E6A8; /* hover border */

  /* Neutrals */
  --white:        #FFFFFF;
  --gray-light:   #F5F7F4;
  --ink:          #141F12;
  --text:         #2E3A2B;
  --muted:        #7A8876;
  --border:       #E4E9E0;

  /* Accents (from logo) */
  --pink:   #E85DA0;
  --blue:   #2BA8D4;
  --orange: #F5A623;

  /* Typography */
  --font-ja: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --font-en: "Inter", system-ui, -apple-system, sans-serif;

  /* Layout */
  --container: 1200px;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(20,31,18,.04), 0 2px 8px rgba(20,31,18,.04);
  --shadow-md: 0 8px 24px rgba(20,31,18,.08);
  --shadow-green: 0 10px 24px rgba(78,168,42,.28);

  /* Motion */
  --ease: cubic-bezier(.2,.6,.2,1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-ja);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* English label class — use Inter */
.en {
  font-family: var(--font-en);
  font-feature-settings: "ss01" on, "cv11" on;
  letter-spacing: .02em;
}

/* ------------ Headings ------------ */
h1, h2, h3, h4 {
  color: var(--ink);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .01em;
  margin: 0;
}
h1 { font-size: clamp(32px, 4.4vw, 48px); font-weight: 700; line-height: 1.25; }
h2 { font-size: clamp(24px, 2.8vw, 32px); font-weight: 500; }
h3 { font-size: clamp(18px, 1.8vw, 22px); font-weight: 500; }
p  { margin: 0; }

/* ------------ Container ------------ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ------------ Section ------------ */
section { padding-block: 96px; }
@media (max-width: 768px) { section { padding-block: 64px; } }

.section-head { text-align: center; margin-bottom: 56px; }
.section-head .eyebrow {
  display: inline-block;
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .18em;
  color: var(--green-dark);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-head h2 { font-size: clamp(26px,3vw,34px); }
.section-head .lead { color: var(--muted); margin-top: 16px; font-size: 15px; }

/* ------------ Navigation ------------ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(150%) blur(12px);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), padding .25s var(--ease), background .25s var(--ease);
}
.nav.scrolled {
  border-bottom-color: var(--border);
  background: rgba(255,255,255,.96);
}
.nav-inner {
  max-width: var(--container);
  margin-inline: auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  transition: padding .25s var(--ease);
}
.nav.scrolled .nav-inner { padding-block: 12px; }

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 56px;
}
.nav-logo img {
  height: 56px;
  width: auto;
  transition: height .25s var(--ease);
}
.nav.scrolled .nav-logo img { height: 44px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-link {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  padding: 4px 0;
}
.nav-link .en-sub {
  display: block;
  font-family: var(--font-en);
  font-size: 10px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-top: 2px;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  height: 2px;
  width: 0;
  background: var(--green-main);
  transition: width .25s var(--ease);
}
.nav-link:hover::after,
.nav-link.is-active::after { width: 100%; }
.nav-link.is-active { color: var(--green-dark); }

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

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 40px; height: 40px;
  cursor: pointer;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 10px; right: 10px;
  height: 2px;
  background: var(--ink);
  transition: transform .25s var(--ease), opacity .2s var(--ease), top .25s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 19px; }
.nav-toggle span:nth-child(3) { top: 24px; }
.nav-toggle.is-open span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { top: 19px; transform: rotate(-45deg); }

@media (max-width: 920px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 20px 24px 28px;
    gap: 20px;
    align-items: flex-start;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s var(--ease), transform .25s var(--ease);
  }
  .nav-links.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-cta .btn-text { display: none; }
}

/* ------------ Buttons ------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: var(--font-ja);
  font-weight: 500;
  font-size: 15px;
  line-height: 1;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background-color .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(.97); }

.btn--primary {
  background: var(--green-main);
  color: var(--white);
}
.btn--primary:hover {
  background: var(--green-dark);
  box-shadow: var(--shadow-green);
}

.btn--orange {
  background: var(--orange);
  color: var(--white);
}
.btn--orange:hover {
  background: #E29316;
  box-shadow: 0 10px 24px rgba(245,166,35,.32);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}
.btn--ghost:hover {
  border-color: var(--green-main);
  color: var(--green-dark);
}

.btn--white {
  background: var(--white);
  color: var(--green-dark);
}
.btn--white:hover { box-shadow: 0 12px 28px rgba(0,0,0,.18); }

.btn--lg { padding: 18px 36px; font-size: 16px; }
.btn--sm { padding: 10px 18px; font-size: 13px; }

.btn .arrow {
  display: inline-block;
  width: 18px; height: 1px;
  background: currentColor;
  position: relative;
  margin-left: 4px;
  transition: width .18s var(--ease);
}
.btn .arrow::after {
  content: "";
  position: absolute;
  right: -1px; top: -3px;
  width: 7px; height: 7px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
}
.btn:hover .arrow { width: 26px; }

/* ------------ Cards ------------ */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--green-soft);
}

/* ------------ Tags ------------ */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--green-light);
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
}
.tag--pink   { background: rgba(232,93,160,.12); color: #C53C82; }
.tag--blue   { background: rgba(43,168,212,.12); color: #1B83A8; }
.tag--orange { background: rgba(245,166,35,.14); color: #B97A0E; }

/* ------------ Scroll Reveal ------------ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.reveal.is-in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ------------ Hero (generic, page interiors) ------------ */
.page-hero {
  background: linear-gradient(180deg, #4EA82A 0%, #3E8E22 100%);
  color: var(--white);
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}
.page-hero::before,
.page-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: .35;
}
.page-hero::before {
  width: 320px; height: 320px;
  background: var(--pink);
  top: -120px; right: -80px;
  opacity: .18;
}
.page-hero::after {
  width: 240px; height: 240px;
  background: var(--blue);
  bottom: -100px; left: 10%;
  opacity: .18;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: var(--white); }
.page-hero .eyebrow {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  opacity: .85;
  margin-bottom: 16px;
  display: inline-block;
}
.page-hero p.lead {
  margin-top: 20px;
  font-size: 17px;
  opacity: .92;
  max-width: 640px;
  line-height: 1.9;
}

/* Large faded tree silhouette in page-hero corner */
.page-hero .hero-tree-deco {
  position: absolute;
  width: 360px;
  height: 360px;
  opacity: .14;
  pointer-events: none;
  z-index: 1;
}
.page-hero .hero-tree-deco.tl { top: -40px; left: -40px; transform: rotate(-12deg); }
.page-hero .hero-tree-deco.br { bottom: -80px; right: -60px; transform: rotate(170deg) scale(.85); }

/* Small inline tree mark for section heads */
.tree-mark {
  display: inline-block;
  width: 36px; height: 36px;
  margin-bottom: 12px;
}
.tree-mark svg { width: 100%; height: 100%; display: block; }

/* ------------ CTA section (shared) ------------ */
.cta {
  background:
    radial-gradient(circle at 15% 20%, rgba(232,93,160,.14), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(43,168,212,.16), transparent 50%),
    linear-gradient(135deg, #6EBE4D 0%, #4EA82A 55%, #3E8E22 100%);
  color: var(--white);
  padding: 84px 0;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.10) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 60% 80% at 50% 50%, black 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 60% 80% at 50% 50%, black 0%, transparent 80%);
  opacity: .8;
  pointer-events: none;
}
.cta .container { position: relative; z-index: 1; }
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.cta h2 { color: var(--white); font-size: clamp(24px, 2.6vw, 32px); font-weight: 500; }
.cta p { margin-top: 12px; opacity: .9; max-width: 540px; }

/* ------------ Footer ------------ */
.footer {
  background: var(--green-darkest);
  color: rgba(255,255,255,.78);
  padding: 72px 0 28px;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-mark {
  height: 56px;
  width: auto;
  display: block;
  margin-bottom: 18px;
}
.footer h4 {
  color: var(--white);
  font-size: 12px;
  font-family: var(--font-en);
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 10px; }
.footer a { transition: color .2s var(--ease); }
.footer a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: .04em;
  color: rgba(255,255,255,.55);
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-logo { grid-column: 1 / -1; }
}

/* ------------ Utility ------------ */
.bg-soft { background: var(--gray-light); }
.bg-green-light { background: var(--green-light); }
.text-center { text-align: center; }

/* ============================================================
   Botanical Decoration System
   .fl = floating leaf/illustration (absolute, pointer-events:none)
   .blob = soft blurred color circle
============================================================ */
.fl {
  position: absolute;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(64px);
  pointer-events: none;
  z-index: 0;
}

/* Sections that need position:relative + overflow:hidden for decorations */
.svc-overview,
section[data-screen-label="03 Mission"],
section[data-screen-label="04 Strengths"],
section[data-screen-label="05 Company Info"],
section[data-screen-label="03 Culture"],
section[data-screen-label="03 FAQ List"],
section[data-screen-label="03 Form"],
section#flow {
  position: relative;
  overflow: hidden;
}

/* Subtle green tints on plain-white sections (break monotony) */
.svc-overview {
  background: linear-gradient(165deg, #FAFDFB 0%, #F1F9EC 100%);
}
section#flow {
  background: linear-gradient(165deg, #F7FCFF 0%, #EFF8F2 100%);
}
section[data-screen-label="03 Mission"] {
  background: linear-gradient(165deg, #FAFDFB 0%, #F2F9EF 100%);
}
section[data-screen-label="05 Company Info"] {
  background: linear-gradient(165deg, #FDFFFE 0%, #F4FBF1 100%);
}
section[data-screen-label="03 Culture"] {
  background: linear-gradient(165deg, #FDFFFE 0%, #F1F9EC 100%);
}
section[data-screen-label="03 FAQ List"] {
  background: linear-gradient(165deg, #FAFEFF 0%, #EFF8F6 100%);
}
section[data-screen-label="03 Form"] {
  background: linear-gradient(165deg, #FAFDFB 0%, #F2F9EF 100%);
}

/* ============================================================
   v2 — Animations, Pop & Page Variety  (2026-05)
============================================================ */

/* ── Keyframes ─────────────────────────────────────────────── */
@keyframes floatY {
  0%, 100% { translate: 0 0; }
  50%       { translate: 0 -14px; }
}
@keyframes hero-shift {
  0%, 100% { background-position: 0% 60%; }
  50%       { background-position: 100% 40%; }
}
@keyframes ring-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(78,168,42,.5), var(--shadow-green); }
  70%  { box-shadow: 0 0 0 18px rgba(78,168,42,0), var(--shadow-green); }
  100% { box-shadow: 0 0 0 0 rgba(78,168,42,0), var(--shadow-green); }
}
@keyframes pop-in {
  0%   { transform: scale(.55) translateY(10px); opacity: 0; }
  60%  { transform: scale(1.12) translateY(-2px); opacity: 1; }
  100% { transform: scale(1)    translateY(0);    opacity: 1; }
}

/* ── Botanical float ────────────────────────────────────────
   Uses standalone `translate` — doesn't conflict with
   inline transform:rotate() on .fl elements              */
.fl { animation: floatY 8s ease-in-out infinite; }
.fl:nth-of-type(2) { animation-duration: 11s; animation-delay: -4.2s; }
.fl:nth-of-type(3) { animation-duration:  7s; animation-delay: -6.8s; }

/* ── Animated hero gradients (per-page variant) ─────────── */
.page-hero {
  background: linear-gradient(135deg, #5DBF38 0%, #3D8E22 42%, #1A90B0 76%, #4EA82A 100%);
  background-size: 300% 300%;
  animation: hero-shift 14s ease infinite;
}
.rec-hero {
  background: linear-gradient(135deg, #28AEDA 0%, #38B870 48%, #4EA82A 100%);
  background-size: 300% 300%;
  animation: hero-shift 12s ease infinite;
}
section[data-screen-label="01 FAQ Hero"],
.contact-hero {
  background: linear-gradient(135deg, #3D9220 0%, #0F91AD 56%, #4EA82A 100%);
  background-size: 300% 300%;
  animation: hero-shift 13s ease infinite;
}

/* ── Enhanced card hover (rainbow top-bar) ──────────────── */
.card { position: relative; overflow: hidden; }
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green-main), var(--blue), var(--pink));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
  z-index: 1;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.card:hover::before { transform: scaleX(1); }
.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 48px rgba(20,31,18,.13);
  border-color: var(--green-soft);
}

/* ── CTA large button: glow-ring pulse ──────────────────── */
.btn--primary.btn--lg {
  animation: ring-pulse 3s ease-out infinite;
}
.btn--primary.btn--lg:hover {
  animation: none;
  box-shadow: var(--shadow-green);
}

/* ── Tags / badges: bounce in on section reveal ─────────── */
.is-in .tag { animation: pop-in .45s var(--ease) both; }
.is-in .tag:nth-child(2) { animation-delay: .08s; }
.is-in .tag:nth-child(3) { animation-delay: .16s; }
.is-in .tag:nth-child(4) { animation-delay: .24s; }
.is-in .tag:nth-child(5) { animation-delay: .32s; }

/* ── Reveal: spring-y entrance ──────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px) scale(.98);
  transition: opacity .55s var(--ease), transform .6s var(--ease);
}
.reveal.is-in { opacity: 1; transform: translateY(0) scale(1); }

/* ── Section background: Company Info のみ淡い色付け、他は白ベース ── */

/* Company Info section: 淡いブルー系グラデーション */
section[data-screen-label="05 Company Info"] {
  background: linear-gradient(140deg, #F5FBFF 0%, #EAF5FF 60%, #DAEEFF 100%);
}

/* ------------ Form ------------ */
.form-field { margin-bottom: 24px; }
.form-field label {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 500; color: var(--ink);
  margin-bottom: 8px;
}
.req {
  font-size: 11px; padding: 2px 8px; border-radius: 4px;
  background: var(--green-main); color: white; font-weight: 500;
  font-family: var(--font-en); letter-spacing: .05em;
}
.opt {
  font-size: 11px; padding: 2px 8px; border-radius: 4px;
  background: var(--gray-light); color: var(--muted); font-weight: 500;
  font-family: var(--font-en); letter-spacing: .05em;
}
.input, .textarea, .select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-family: var(--font-ja);
  font-size: 15px;
  color: var(--text);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.input:focus, .textarea:focus, .select:focus {
  outline: 0;
  border-color: var(--green-main);
  box-shadow: 0 0 0 4px rgba(78,168,42,.12);
}
.textarea { min-height: 160px; resize: vertical; line-height: 1.7; }
.select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'><path fill='none' stroke='%237A8876' stroke-width='1.5' d='M1 1l5 5 5-5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px 8px;
  padding-right: 44px;
}
.checkbox {
  display: flex; align-items: flex-start; gap: 12px; cursor: pointer;
  font-size: 14px; color: var(--text);
}
.checkbox input { margin-top: 4px; accent-color: var(--green-main); width: 18px; height: 18px; }
