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

:root {
  --bamboo: #2C7A51;
  --bamboo-light: #E8F5EE;
  --bamboo-mid: #5BAB7A;
  --bamboo-dark: #1A5537;
  --grit: #1B3F7B;
  --grit-light: #E8EDF8;
  --grit-mid: #3A6BC4;
  --grit-accent: #F26419;
  --grit-accent-light: #FEF0E7;
  --neutral: #F8F6F2;
  --text: #1C1C1C;
  --text-mid: #5A5A5A;
  --text-light: #8A8A8A;
  --white: #FFFFFF;
  --line: #06C755;
  --line-dark: #059042;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ===== HEADER ===== */
header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.07);
  padding: 0 24px;
}
.header-inner {
  max-width: 1080px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo {
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-weight: 800; font-size: 17px;
  cursor: pointer; text-decoration: none;
  display: flex; align-items: center; gap: 6px;
}
.logo-bamboo { color: var(--bamboo); }
.logo-sep { color: var(--text-light); font-weight: 400; }
.logo-grit { color: var(--grit); }
nav { display: flex; align-items: center; gap: 8px; }
.nav-link {
  padding: 8px 14px; border-radius: 8px;
  font-size: 13px; font-weight: 500;
  text-decoration: none; cursor: pointer;
  transition: background 0.18s;
  border: none; background: transparent;
  display: inline-block;
}
.nav-link:hover { background: var(--neutral); }
.nav-link.bamboo-nav { color: var(--bamboo); }
.nav-link.grit-nav { color: var(--grit); }
.btn-line-nav {
  background: var(--line); color: white !important;
  padding: 8px 16px; border-radius: 8px;
  font-size: 13px; font-weight: 700;
  text-decoration: none; cursor: pointer;
  transition: background 0.18s; border: none;
  display: flex; align-items: center; gap: 5px;
}
.btn-line-nav:hover { background: var(--line-dark); }

/* ===== CONTAINERS ===== */
.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-sm { padding: 56px 0; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 10px;
  font-size: 15px; font-weight: 700;
  text-decoration: none; cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  border: none;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.15); }
.btn:active { transform: translateY(0); }
.btn-primary-bamboo { background: var(--bamboo); color: white; }
.btn-outline-bamboo { background: white; color: var(--bamboo); border: 2px solid var(--bamboo); }
.btn-primary-grit { background: var(--grit); color: white; }
.btn-outline-grit { background: white; color: var(--grit); border: 2px solid var(--grit); }
.btn-accent-grit { background: var(--grit-accent); color: white; }
.btn-line {
  background: var(--line); color: white;
  font-size: 16px; padding: 16px 32px;
}
.btn-line:hover { background: var(--line-dark); }
.btn-group { display: flex; gap: 12px; flex-wrap: wrap; }

/* ===== LABELS ===== */
.label {
  display: inline-block; padding: 4px 12px;
  border-radius: 100px; font-size: 12px; font-weight: 700;
  margin-bottom: 16px; letter-spacing: 0.04em;
}
.label-bamboo { background: var(--bamboo-light); color: var(--bamboo-dark); }
.label-grit { background: var(--grit-light); color: var(--grit); }
.label-line { background: #E8FAF0; color: #047A3A; }

/* ===== HERO (INDEX) ===== */
.hero-index {
  background: linear-gradient(160deg, #F0FAF5 0%, #F8F6F2 50%, #EDF2FB 100%);
  padding: 90px 0 80px;
  position: relative; overflow: hidden;
}
.hero-index::before {
  content: '';
  position: absolute; top: -120px; right: -80px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(44,122,81,0.08) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-index::after {
  content: '';
  position: absolute; bottom: -100px; left: 10%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(27,63,123,0.07) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-index h1 {
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 800; line-height: 1.4;
  margin-bottom: 20px;
}
.hero-index p { font-size: 17px; color: var(--text-mid); margin-bottom: 48px; max-width: 520px; }

/* ===== SERVICE CARDS ===== */
.cards-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; position: relative; z-index: 1; }
@media (max-width: 640px) { .cards-grid { grid-template-columns: 1fr; } }
.service-card {
  background: white; border-radius: var(--radius-lg);
  padding: 36px 32px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 16px;
  transition: transform 0.2s;
}
.service-card:hover { transform: translateY(-4px); }
.service-card-icon { font-size: 40px; line-height: 1; }
.service-card h3 {
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-size: 22px; font-weight: 800;
}
.service-card .target {
  font-size: 13px; font-weight: 700;
  padding: 6px 12px; border-radius: 8px;
  display: inline-block; align-self: flex-start;
}
.service-card p { font-size: 15px; color: var(--text-mid); line-height: 1.7; flex: 1; }
.card-bamboo h3 { color: var(--bamboo); }
.card-bamboo .target { background: var(--bamboo-light); color: var(--bamboo-dark); }
.card-grit h3 { color: var(--grit); }
.card-grit .target { background: var(--grit-light); color: var(--grit); }

/* ===== FEATURES SECTION ===== */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 640px) { .features-grid { grid-template-columns: 1fr; } }
.feature-card {
  background: var(--neutral); border-radius: var(--radius);
  padding: 28px 24px; text-align: center;
}
.feature-icon { font-size: 36px; margin-bottom: 16px; display: block; }
.feature-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--text-mid); line-height: 1.7; }

/* ===== SECTION HEADING ===== */
.section-head { text-align: center; margin-bottom: 48px; }
.section-head h2 {
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-size: clamp(22px, 3vw, 32px); font-weight: 800;
  margin-bottom: 12px;
}
.section-head p { font-size: 16px; color: var(--text-mid); }

/* ===== CTA LINE SECTION ===== */
.cta-line-section { background: var(--neutral); text-align: center; }
.cta-line-section h2 {
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-size: clamp(20px, 3vw, 28px); font-weight: 800;
  margin-bottom: 12px;
}
.cta-line-section p { font-size: 15px; color: var(--text-mid); margin-bottom: 28px; }
.line-note { font-size: 13px; color: var(--text-light); margin-top: 16px; }

/* ===== HERO (BAMBOO / GRIT) ===== */
.hero-bamboo {
  background: linear-gradient(160deg, #E4F5EC 0%, #F4FBF6 100%);
  padding: 80px 0 70px;
}
.hero-grit {
  background: linear-gradient(160deg, #EBF0FA 0%, #F5F7FD 100%);
  padding: 80px 0 70px;
}
.hero-lp { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 768px) { .hero-lp { grid-template-columns: 1fr; } }
.hero-lp h1 {
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-size: clamp(24px, 3.5vw, 38px);
  font-weight: 800; line-height: 1.45;
  margin-bottom: 16px;
}
.hero-lp p { font-size: 16px; color: var(--text-mid); margin-bottom: 32px; }
.hero-visual {
  background: white; border-radius: var(--radius-lg);
  padding: 40px; text-align: center;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.hero-visual-icon { font-size: 72px; line-height: 1; }
.hero-visual-title {
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-size: 22px; font-weight: 800;
}
.hero-visual-sub { font-size: 14px; color: var(--text-mid); }

/* ===== REASONS ===== */
.reasons-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 640px) { .reasons-grid { grid-template-columns: 1fr; } }
.reason-card {
  border-radius: var(--radius); padding: 28px 24px;
  border: 2px solid transparent; transition: transform 0.2s;
}
.reason-card:hover { transform: translateY(-3px); }
.reason-bamboo { background: var(--bamboo-light); border-color: rgba(44,122,81,0.15); }
.reason-grit { background: var(--grit-light); border-color: rgba(27,63,123,0.15); }
.reason-num {
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-size: 13px; font-weight: 800;
  margin-bottom: 12px; display: block;
}
.reason-bamboo .reason-num { color: var(--bamboo); }
.reason-grit .reason-num { color: var(--grit); }
.reason-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.reason-card p { font-size: 14px; color: var(--text-mid); line-height: 1.75; }

/* ===== INFO BAND ===== */
.info-band { background: var(--neutral); border-radius: var(--radius-lg); padding: 36px 40px; display: flex; gap: 48px; flex-wrap: wrap; }
.info-item { flex: 1; min-width: 180px; }
.info-label { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; margin-bottom: 8px; }
.info-label-bamboo { color: var(--bamboo); }
.info-label-grit { color: var(--grit); }
.info-value { font-size: 16px; font-weight: 700; }
.info-value small { font-size: 13px; font-weight: 400; color: var(--text-mid); margin-left: 6px; }

/* ===== TRIAL SECTION ===== */
.trial-section { text-align: center; }
.trial-section h2 {
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-size: clamp(20px, 3vw, 28px); font-weight: 800;
  margin-bottom: 12px;
}
.trial-section p { font-size: 15px; color: var(--text-mid); margin-bottom: 28px; max-width: 440px; margin-left: auto; margin-right: auto; }

/* ===== SWITCH SECTION ===== */
.switch-section {
  background: var(--text); color: white;
  border-radius: var(--radius-lg); padding: 48px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap; margin: 0 24px;
}
.switch-section h2 {
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-size: 20px; font-weight: 800;
  margin-bottom: 6px;
}
.switch-section p { font-size: 14px; opacity: 0.7; }

/* ===== FOOTER ===== */
footer { background: #1C1C1C; color: rgba(255,255,255,0.6); padding: 48px 24px 32px; }
.footer-inner { max-width: 1080px; margin: 0 auto; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; margin-bottom: 36px; }
.footer-logo { font-family: 'M PLUS Rounded 1c', sans-serif; font-size: 18px; font-weight: 800; color: white; margin-bottom: 8px; }
.footer-desc { font-size: 13px; max-width: 280px; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-link { font-size: 13px; color: rgba(255,255,255,0.6); text-decoration: none; cursor: pointer; transition: color 0.15s; }
.footer-link:hover { color: white; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; font-size: 12px; }

/* ===== BG SECTIONS ===== */
.bg-bamboo-light { background: var(--bamboo-light); }
.bg-grit-light { background: var(--grit-light); }

/* ===== DIVIDER ===== */
.divider { height: 1px; background: rgba(0,0,0,0.07); margin: 0; }

html { scroll-behavior: smooth; }

/* ==============================
   CONTACT FORM — KEB
============================== */
.gk-form-keb {
  max-width: 560px;
  margin: 0 auto 28px;
  text-align: left;
}
.gk-form-field {
  margin-bottom: 16px;
}
.gk-form-field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-mid);
  margin-bottom: 6px;
}
.gk-required { color: var(--bamboo); margin-left: 2px; }
.gk-optional { font-size: 12px; font-weight: 400; color: var(--text-light); }
.gk-form-keb input[type="text"],
.gk-form-keb textarea {
  width: 100%;
  background: white;
  border: 2px solid rgba(44,122,81,0.25);
  color: var(--text);
  padding: 12px 14px;
  font-size: 15px;
  font-family: 'Noto Sans JP', sans-serif;
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: vertical;
}
.gk-form-keb input[type="text"]::placeholder,
.gk-form-keb textarea::placeholder {
  color: var(--text-light);
}
.gk-form-keb input[type="text"]:focus,
.gk-form-keb textarea:focus {
  border-color: var(--bamboo);
  box-shadow: 0 0 0 3px rgba(44,122,81,0.12);
}
.gk-form-keb .gk-submit-btn {
  display: block;
  width: 100%;
  background: var(--bamboo);
  color: white;
  border: none;
  padding: 16px;
  font-size: 16px;
  font-weight: 700;
  font-family: 'M PLUS Rounded 1c', sans-serif;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  margin-top: 4px;
}
.gk-form-keb .gk-submit-btn:hover {
  background: var(--bamboo-dark);
  transform: translateY(-1px);
}
.gk-form-keb .gk-submit-btn:disabled {
  background: var(--bamboo-mid);
  cursor: not-allowed;
  transform: none;
}
.gk-form-divider,
.keb-divider {
  text-align: center;
  margin: 24px auto 20px;
  max-width: 560px;
  position: relative;
}
.gk-form-divider::before,
.keb-divider::before {
  content: '';
  position: absolute;
  top: 50%; left: 0; right: 0;
  height: 1px;
  background: rgba(0,0,0,0.1);
}
.gk-form-divider span,
.keb-divider span {
  position: relative;
  background: white;
  padding: 0 14px;
  font-size: 13px;
  color: var(--text-light);
  font-weight: 500;
}
.gk-form-keb .gk-form-feedback {
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.6;
  margin-top: 12px;
  text-align: center;
  border-radius: var(--radius);
}
.gk-feedback-success {
  background: var(--bamboo-light);
  border: 1.5px solid var(--bamboo-mid);
  color: var(--bamboo-dark);
}
.gk-feedback-error {
  background: #FFF0F0;
  border: 1.5px solid #E08080;
  color: #C03030;
}

/* trialセクション内の背景に合わせてフォームフィールド調整 */
.trial-section .gk-form-keb input[type="text"],
.trial-section .gk-form-keb textarea {
  background: white;
}
.trial-section .gk-form-divider span,
.trial-section .keb-divider span {
  background: white;
}
