/* ============================================================
   Rays & Company — Main Stylesheet
   ============================================================ */

/* ----------------------------------------
   1. CSS Variables & Reset
   ---------------------------------------- */
:root {
  --primary:        #1d5e3a;
  --primary-dark:   #0f3121;
  --primary-light:  #2e7d52;
  --accent:         #3da066;
  --bg-light:       #f1f9f4;
  --bg-green-soft:  #e8f5ed;
  --border:         #c8e0d2;

  --text-base:      #1a2e22;
  --text-muted:     #56705f;
  --text-light:     #8aa899;

  --white:          #ffffff;

  --radius-sm:      8px;
  --radius-md:      12px;
  --radius-lg:      24px;
  --radius-pill:    9999px;

  --shadow-sm:      0 1px 4px rgba(29,94,58,.07);
  --shadow-md:      0 4px 20px rgba(29,94,58,.10);
  --shadow-lg:      0 8px 40px rgba(29,94,58,.14);

  --transition:     0.22s ease;

  --container-max:  1160px;
  --container-pad:  clamp(1rem, 5vw, 2.5rem);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-base);
  background: var(--white);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

/* ----------------------------------------
   2. Typography
   ---------------------------------------- */
h1,h2,h3,h4,h5 {
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.section__label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  background: var(--bg-green-soft);
  color: var(--primary);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section__title {
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  color: var(--primary-dark);
  margin-bottom: .9rem;
}

.section__desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.85;
}

/* ----------------------------------------
   3. Layout Utilities
   ---------------------------------------- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.section {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.section--sm {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.section--bg {
  background: var(--bg-light);
}

.section--green {
  background: var(--primary);
  color: var(--white);
}

.section--dark {
  background: var(--primary-dark);
  color: var(--white);
}

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

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

/* ----------------------------------------
   4. Buttons
   ---------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: .95rem;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 2px 12px rgba(29,94,58,.25);
}
.btn--primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 4px 20px rgba(29,94,58,.35);
  transform: translateY(-1px);
}

.btn--outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn--outline:hover {
  background: var(--bg-green-soft);
  transform: translateY(-1px);
}

.btn--white {
  background: var(--white);
  color: var(--primary);
  box-shadow: 0 2px 12px rgba(0,0,0,.12);
}
.btn--white:hover {
  background: var(--bg-light);
  transform: translateY(-1px);
}

.btn--outline-white {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.6);
}
.btn--outline-white:hover {
  border-color: var(--white);
  background: rgba(255,255,255,.1);
}

.btn--lg {
  padding: 16px 36px;
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
}

/* ----------------------------------------
   5. Cards
   ---------------------------------------- */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: box-shadow var(--transition), transform var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.card__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--bg-green-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  font-size: 1.5rem;
}

.card__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: .5rem;
}

.card__desc {
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.8;
}

/* ----------------------------------------
   6. Header & Navigation
   ---------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  height: 68px;
}

.header__logo {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  gap: 1px;
}

.logo__main {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: -.02em;
  line-height: 1.1;
}

.logo__sub {
  font-size: .65rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: .05em;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: .25rem;
  margin-left: auto;
}

.nav__item a {
  display: block;
  padding: 8px 14px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.nav__item a:hover {
  color: var(--primary);
  background: var(--bg-green-soft);
}

.header__cta {
  margin-left: 1rem;
}

/* Mobile menu */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  margin-left: auto;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: all var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  position: fixed;
  inset: 68px 0 0 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 2rem var(--container-pad);
  flex-direction: column;
  gap: .5rem;
  z-index: 99;
}

.mobile-nav.open { display: flex; }

.mobile-nav a {
  display: block;
  padding: 14px 16px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-base);
  border-radius: var(--radius-md);
  transition: all var(--transition);
}

.mobile-nav a:hover {
  background: var(--bg-green-soft);
  color: var(--primary);
}

.mobile-nav .btn {
  margin-top: 1rem;
  justify-content: center;
}

/* ----------------------------------------
   7. Footer
   ---------------------------------------- */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,.8);
  padding: 4rem 0 2rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2.5fr 1.2fr 1.2fr 1.2fr;
  gap: 2rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.12);
  margin-bottom: 2rem;
}

.footer__col-links a {
  white-space: nowrap;
}

.footer__logo .logo__main {
  color: var(--white);
  font-size: 1.1rem;
}

.footer__logo .logo__sub {
  color: rgba(255,255,255,.5);
}

.footer__tagline {
  margin-top: .75rem;
  font-size: .85rem;
  color: rgba(255,255,255,.55);
  line-height: 1.7;
}

.footer__col-title {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  margin-bottom: 1rem;
}

.footer__col-links {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.footer__col-links a {
  font-size: .875rem;
  color: rgba(255,255,255,.65);
  transition: color var(--transition);
}

.footer__col-links a:hover {
  color: var(--white);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer__copy {
  font-size: .8rem;
  color: rgba(255,255,255,.35);
}

.footer__bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer__bottom-links a {
  font-size: .8rem;
  color: rgba(255,255,255,.4);
  transition: color var(--transition);
}

.footer__bottom-links a:hover {
  color: rgba(255,255,255,.8);
}

/* ----------------------------------------
   8. Hero Section
   ---------------------------------------- */
.hero {
  position: relative;
  padding: clamp(5rem, 10vw, 9rem) 0 clamp(4rem, 8vw, 7rem);
  overflow: hidden;
  background: linear-gradient(160deg, var(--white) 55%, var(--bg-light) 100%);
}

.hero::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--bg-green-soft) 0%, transparent 70%);
  pointer-events: none;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero__title {
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 900;
  color: var(--primary-dark);
  line-height: 1.15;
  letter-spacing: -.03em;
  margin-bottom: 2rem;
}

.hero__title em {
  font-style: normal;
  color: var(--primary);
}

.hero__desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.9;
  margin-bottom: 2.25rem;
  max-width: 500px;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.hero__note {
  font-size: .8rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: .4rem;
}

.hero__note::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
}

.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-mockup {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 1.5rem;
  width: 100%;
  max-width: 420px;
}

.mockup__bar {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.mockup__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.mockup__dot:nth-child(1) { background: #ff5f57; }
.mockup__dot:nth-child(2) { background: #febc2e; }
.mockup__dot:nth-child(3) { background: #28c840; }

.mockup__title {
  font-size: .75rem;
  font-weight: 600;
  color: var(--text-light);
  margin-left: .5rem;
}

.mockup__row {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .6rem .75rem;
  border-radius: var(--radius-sm);
  margin-bottom: .4rem;
  font-size: .82rem;
}

.mockup__row--header {
  background: var(--primary);
  color: var(--white);
  font-weight: 700;
}

.mockup__row:not(.mockup__row--header):nth-child(even) {
  background: var(--bg-light);
}

.mockup__badge {
  margin-left: auto;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-size: .7rem;
  font-weight: 700;
}

.mockup__badge--done { background: #dcf5e7; color: #1d7a40; }
.mockup__badge--pend { background: #fff3dc; color: #a06000; }
.mockup__badge--auto { background: #e0eaff; color: #2855a0; }

.mockup__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 1rem;
  padding: 10px;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius-md);
  font-size: .82rem;
  font-weight: 700;
}

/* FP&A Mockup (hero visual) */
.fv-fpa-wrap {
  font-family: 'Noto Sans JP', -apple-system, sans-serif;
  font-size: 11px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 0.5px solid #c2d4c6;
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 520px;
  background: #fff;
}

.fv-fpa-topbar {
  background: #fff;
  border-bottom: 0.5px solid #d0d5dd;
  padding: 7px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.fv-fpa-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: #1d5e3a;
}

.fv-fpa-logo-box {
  width: 16px;
  height: 16px;
  background: #1d5e3a;
  border-radius: 3px;
  flex-shrink: 0;
}

.fv-fpa-page-title {
  font-size: 12px;
  font-weight: 500;
  color: #1a1a1a;
  padding-left: 12px;
  border-left: 0.5px solid #d0d5dd;
  margin-left: 6px;
}

.fv-fpa-filters {
  background: #f5f8f5;
  border-bottom: 0.5px solid #c2d4c6;
  padding: 5px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.fv-fpa-chip {
  border: 0.5px solid #c2d4c6;
  border-radius: 4px;
  padding: 2px 7px;
  font-size: 9.5px;
  color: #444;
  background: #fff;
}

.fv-fpa-sel-btn {
  margin-left: auto;
  background: #1d5e3a;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 3px 10px;
  font-size: 9.5px;
  font-weight: 500;
  cursor: pointer;
}

.fv-fpa-tbl-wrap {
  overflow-x: auto;
}

.fv-fpa-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.fv-fpa-table thead tr.fv-h1 th {
  background: #e8f0ea;
  color: #1d5e3a;
  font-weight: 500;
  font-size: 9.5px;
  text-align: center;
  padding: 5px 6px;
  border-bottom: 0.5px solid #c2d4c6;
  white-space: nowrap;
}

.fv-fpa-table thead tr.fv-h1 th.fv-label-col {
  text-align: left;
  min-width: 120px;
}

.fv-fpa-table thead tr.fv-h2 th {
  background: #f0f6f1;
  color: #3a6644;
  font-size: 9px;
  font-weight: 400;
  text-align: right;
  padding: 3px 6px 5px;
  border-bottom: 1.5px solid #1d5e3a;
  white-space: nowrap;
}

.fv-fpa-table thead tr.fv-h2 th.fv-label-col {
  text-align: left;
}

.fv-div-col {
  width: 4px !important;
  background: #e8f0ea;
  border-left: 0.5px solid #c2d4c6;
  border-right: 0.5px solid #c2d4c6;
  padding: 0 !important;
}

.fv-fpa-table td {
  padding: 3.5px 6px;
  border-bottom: 0.5px solid #eef2ee;
  color: #1a1a1a;
  text-align: right;
  white-space: nowrap;
  font-size: 10px;
}

.fv-fpa-table td.fv-label {
  text-align: left;
  font-size: 10px;
}

.fv-fpa-table tr:hover td {
  background: #f5faf5;
}

.fv-fpa-table tr.fv-row-total td {
  background: #e8f0ea;
  font-weight: 500;
  color: #1d5e3a;
  border-top: 0.5px solid #a8c8b0;
  border-bottom: 0.5px solid #a8c8b0;
}

.fv-fpa-table tr.fv-row-gross td {
  background: #d6eadb;
  font-weight: 600;
  color: #155030;
  border-top: 1px solid #1d5e3a;
  border-bottom: 1px solid #1d5e3a;
}

.fv-fpa-table tr.fv-row-detail td.fv-label {
  padding-left: 18px;
  color: #444;
  font-size: 9.5px;
}

.fv-pos { color: #1d5e3a; }
.fv-neg { color: #c0392b; }
.fv-zero { color: #999; }

.fv-badge {
  display: inline-block;
  background: #1d5e3a;
  color: #fff;
  border-radius: 99px;
  font-size: 7.5px;
  padding: 0px 4px;
  margin-left: 2px;
  vertical-align: middle;
}

.fv-badge-warn { background: #c87a20; }

/* ----------------------------------------
   9. Pain Points Section
   ---------------------------------------- */
.pain__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
}

.pain__card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.pain__icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.pain__text {
  font-size: .925rem;
  color: var(--text-muted);
  line-height: 1.75;
}

.pain__text strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-base);
  margin-bottom: .25rem;
}

/* ----------------------------------------
   10. Services Section
   ---------------------------------------- */
.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.services__grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  transition: box-shadow var(--transition), transform var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--primary);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--transition);
}

.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.service-card:hover::after {
  transform: scaleY(1);
}

.service-card__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--bg-green-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.4rem;
}

.service-card__num {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: .5rem;
}

.service-card__title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: .75rem;
}

.service-card__desc {
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 1.25rem;
}

.service-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}

.service-card__tag {
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--bg-green-soft);
  color: var(--primary);
  font-size: .75rem;
  font-weight: 600;
}

/* ----------------------------------------
   11. Stance Section
   ---------------------------------------- */
.stance__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.stance__list {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.stance__item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg-green-soft);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.stance__item-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.stance__item-text strong {
  display: block;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: .2rem;
}

.stance__item-text span {
  font-size: .875rem;
  color: var(--text-muted);
}

.stance__visual {
  background: var(--primary-dark);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  color: var(--white);
}

.stance__quote {
  font-size: clamp(.875rem, 1.4vw, 1rem);
  font-weight: 700;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: rgba(255,255,255,.9);
}

.stance__quote em {
  font-style: normal;
  color: var(--accent);
}

.stance__author {
  font-size: .85rem;
  color: rgba(255,255,255,.5);
}

/* ----------------------------------------
   12. Stats Section
   ---------------------------------------- */
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat__num {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 900;
  color: var(--white);
  letter-spacing: -.03em;
  line-height: 1;
  margin-bottom: .5rem;
}

.stat__num span {
  font-size: 60%;
  color: var(--accent);
}

.stat__label {
  font-size: .875rem;
  color: rgba(255,255,255,.6);
}

/* ----------------------------------------
   13. Cases Section
   ---------------------------------------- */
.cases__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.case-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}

.case-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.case-card__thumb {
  height: 180px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.case-card__body {
  padding: 1.5rem;
}

.case-card__industry {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--bg-green-soft);
  color: var(--primary);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  margin-bottom: .75rem;
}

.case-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-base);
  margin-bottom: .5rem;
  line-height: 1.5;
}

.case-card__result {
  font-size: .85rem;
  color: var(--primary);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: .4rem;
}

.case-card__result::before {
  content: '→';
}

/* ----------------------------------------
   14. CTA Section
   ---------------------------------------- */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  padding: clamp(4rem, 8vw, 6rem) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -100px;
  left: -100px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255,255,255,.05);
  pointer-events: none;
}

.cta-section::after {
  content: '';
  position: absolute;
  bottom: -80px;
  right: -80px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
  pointer-events: none;
}

.cta__label {
  background: rgba(255,255,255,.15);
  color: rgba(255,255,255,.9);
  margin-bottom: 1rem;
}

.cta__title {
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 1rem;
}

.cta__desc {
  font-size: 1rem;
  color: rgba(255,255,255,.75);
  max-width: 500px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
}

.cta__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.cta__note {
  margin-top: 1.25rem;
  font-size: .8rem;
  color: rgba(255,255,255,.5);
}

/* ----------------------------------------
   15. Page: Services (full)
   ---------------------------------------- */
.page-hero {
  padding: clamp(3.5rem, 7vw, 6rem) 0 clamp(2.5rem, 5vw, 4rem);
  background: linear-gradient(160deg, var(--white) 50%, var(--bg-light) 100%);
}

.page-hero__label { margin-bottom: .75rem; }

.page-hero__title {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  font-weight: 900;
  color: var(--primary-dark);
  letter-spacing: -.025em;
  margin-bottom: 1rem;
}

.page-hero__desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 620px;
  line-height: 1.85;
}

.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: clamp(3rem, 6vw, 5rem) 0;
  border-bottom: 1px solid var(--border);
}

.service-detail:last-child { border-bottom: none; }

.service-detail--rev { direction: rtl; }
.service-detail--rev > * { direction: ltr; }

.service-detail__num {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: .75rem;
}

.service-detail__title {
  font-size: clamp(1.5rem, 2.5vw, 1.9rem);
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 1rem;
}

.service-detail__desc {
  font-size: .95rem;
  color: var(--text-muted);
  line-height: 1.9;
  margin-bottom: 1.5rem;
}

.service-detail__items {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.service-detail__item {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  font-size: .9rem;
  color: var(--text-muted);
}

.service-detail__item::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

.service-detail__visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-detail__visual img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
}

/* ----------------------------------------
   16. Page: Pricing
   ---------------------------------------- */
.pricing__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
  align-items: start;
}

.pricing-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  position: relative;
  transition: box-shadow var(--transition), transform var(--transition);
}

.pricing-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.pricing-card--featured {
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-md);
}

.pricing-card__badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 16px;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius-pill);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  white-space: nowrap;
}

.pricing-card__name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: .75rem;
}

.pricing-card__price {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--primary-dark);
  letter-spacing: -.03em;
  line-height: 1;
  margin-bottom: .25rem;
}

.pricing-card__price span {
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0;
}

.pricing-card__note {
  font-size: .8rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.pricing-card__features {
  display: flex;
  flex-direction: column;
  gap: .7rem;
  margin-bottom: 2rem;
}

.pricing-card__feature {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: .875rem;
  color: var(--text-muted);
}

.pricing-card__feature::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}

.pricing-card__cta {
  display: flex;
}

.pricing-card__cta .btn {
  width: 100%;
  justify-content: center;
}

.pricing__note {
  margin-top: 2.5rem;
  padding: 1.5rem 2rem;
  background: var(--bg-green-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: .875rem;
  color: var(--text-muted);
  text-align: center;
}

/* ----------------------------------------
   17. Page: Cases (full)
   ---------------------------------------- */
.cases-full__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.case-full-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  transition: box-shadow var(--transition), transform var(--transition);
}

.case-full-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.case-full-card__header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.case-full-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--bg-green-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.case-full-card__meta { flex: 1; }

.case-full-card__industry {
  font-size: .72rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: .2rem;
}

.case-full-card__company {
  font-size: .9rem;
  font-weight: 700;
  color: var(--text-base);
}

.case-full-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: .75rem;
  line-height: 1.5;
}

.case-full-card__body {
  font-size: .875rem;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 1.25rem;
}

.case-full-card__results {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.case-result {
  text-align: center;
}

.case-result__num {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: -.03em;
  line-height: 1;
  margin-bottom: .2rem;
}

.case-result__label {
  font-size: .75rem;
  color: var(--text-light);
}

/* ----------------------------------------
   18. Page: FAQ
   ---------------------------------------- */
.faq__list {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.faq__item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq__question {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  font-size: .975rem;
  font-weight: 700;
  color: var(--text-base);
  cursor: pointer;
  transition: background var(--transition);
  width: 100%;
  text-align: left;
}

.faq__question:hover { background: var(--bg-light); }

.faq__question::before {
  content: 'Q';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: var(--white);
  font-size: .8rem;
  font-weight: 900;
}

.faq__question::after {
  content: '+';
  margin-left: auto;
  font-size: 1.25rem;
  color: var(--text-light);
  transition: transform var(--transition);
  flex-shrink: 0;
}

.faq__item.open .faq__question::after {
  transform: rotate(45deg);
  color: var(--primary);
}

.faq__answer {
  display: none;
  padding: 0 1.5rem 1.5rem 3.75rem;
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.85;
  border-top: 1px solid var(--border);
}

.faq__item.open .faq__answer {
  display: block;
  padding-top: 1.25rem;
}

/* ----------------------------------------
   19. Page: Contact
   ---------------------------------------- */
.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 4rem;
  align-items: start;
  margin-top: 3rem;
}

.contact__info-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 1rem;
}

.contact__info-desc {
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 2rem;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact__detail {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .9rem;
  color: var(--text-muted);
}

.contact__detail-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--bg-green-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

/* Contact Form */
.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: .875rem;
  font-weight: 700;
  color: var(--text-base);
  margin-bottom: .5rem;
}

.form-label span {
  display: inline-block;
  margin-left: .4rem;
  padding: 1px 7px;
  background: var(--primary);
  color: var(--white);
  border-radius: 4px;
  font-size: .65rem;
  font-weight: 700;
  vertical-align: middle;
}

.form-label span.optional {
  background: var(--bg-green-soft);
  color: var(--text-muted);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: .9rem;
  color: var(--text-base);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(29,94,58,.1);
}

.form-textarea {
  resize: vertical;
  min-height: 130px;
  line-height: 1.7;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-submit {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.form-submit .btn { min-width: 200px; justify-content: center; }

.form-privacy {
  font-size: .78rem;
  color: var(--text-light);
  line-height: 1.6;
}

.form-privacy a {
  color: var(--primary);
  text-decoration: underline;
}

/* ----------------------------------------
   20. Responsive
   ---------------------------------------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .stance__inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .service-detail { grid-template-columns: 1fr; gap: 2rem; }
  .service-detail--rev { direction: ltr; }
}

@media (max-width: 768px) {
  .header__nav,
  .header__cta { display: none; }
  .hamburger { display: flex; }

  .hero__inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero__visual { display: none; }
  .hero__title { font-size: clamp(1.6rem, 6vw, 2.4rem); }

  .pain__grid { grid-template-columns: 1fr; }
  .services__grid,
  .services__grid--3 { grid-template-columns: 1fr; }
  .cases__grid { grid-template-columns: 1fr; }
  .cases-full__grid { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .pricing__grid { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }

  .contact__inner { grid-template-columns: 1fr; gap: 2rem; }
  .form-grid-2 { grid-template-columns: 1fr; }

  .footer__grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .footer__bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .cta__actions { flex-direction: column; }
  .cta__actions .btn { width: 100%; justify-content: center; max-width: 320px; }
}

/* ----------------------------------------
   21. Prose（プライバシーポリシー等 通常ページ）
   ---------------------------------------- */
.prose {
  max-width: 760px;
  margin: 0 auto;
  font-size: .975rem;
  color: var(--text-muted);
  line-height: 1.9;
}

.prose p {
  margin-bottom: 1.2rem;
}

.prose h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-top: 2.5rem;
  margin-bottom: .75rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--border);
}

.prose ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.prose li {
  line-height: 1.75;
}

.prose hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

.prose a {
  color: var(--primary);
  text-decoration: underline;
}

/* ----------------------------------------
   22. Page: Privacy Policy
   ---------------------------------------- */
.privacy__body {
  max-width: 760px;
  margin: 0 auto;
}

.privacy__lead {
  font-size: .975rem;
  color: var(--text-muted);
  line-height: 1.9;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}

.privacy__section {
  margin-bottom: 2.25rem;
  padding-bottom: 2.25rem;
  border-bottom: 1px solid var(--border);
}

.privacy__section:last-of-type {
  border-bottom: none;
}

.privacy__heading {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: .75rem;
}

.privacy__section p {
  font-size: .925rem;
  color: var(--text-muted);
  line-height: 1.9;
}

.privacy__section a {
  color: var(--primary);
  text-decoration: underline;
}

.privacy__list {
  list-style: disc;
  padding-left: 1.5rem;
  margin-top: .6rem;
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

.privacy__list li {
  font-size: .925rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.privacy__meta {
  margin-top: 2.5rem;
  padding: 1.5rem 2rem;
  background: var(--bg-green-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: .875rem;
  color: var(--text-muted);
  line-height: 1.9;
}

/* ----------------------------------------
   22. Contact Form 7 上書き
   ---------------------------------------- */

/* CF7が自動挿入するbrと余白をリセット */
.wpcf7 br { display: none; }
.wpcf7 p  { margin: 0; padding: 0; }

/* wrap spanをブロック化してwidth100%に */
.wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

/* 入力・テキストエリア・セレクトを統一 */
.wpcf7-form-control {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: .9rem;
  color: var(--text-base);
  background: var(--white);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: auto;
}

.wpcf7-form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(29,94,58,.1);
}

.wpcf7-textarea {
  resize: vertical;
  min-height: 130px;
  line-height: 1.7;
}

/* 送信ボタン */
.wpcf7-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 36px;
  border-radius: var(--radius-lg);
  font-family: inherit;
  font-weight: 700;
  font-size: 1.05rem;
  background: var(--primary);
  color: var(--white);
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(29,94,58,.25);
  transition: all var(--transition);
}

.wpcf7-submit:hover {
  background: var(--primary-dark);
  box-shadow: 0 4px 20px rgba(29,94,58,.35);
  transform: translateY(-1px);
}

/* バリデーションエラー */
.wpcf7-not-valid-tip {
  display: block;
  margin-top: .3rem;
  font-size: .8rem;
  color: #c0392b;
}

.wpcf7-not-valid .wpcf7-form-control {
  border-color: #e74c3c;
}

/* 送信完了・エラーメッセージ */
.wpcf7-response-output {
  margin-top: 1rem;
  padding: .75rem 1rem;
  border-radius: var(--radius-md);
  font-size: .875rem;
  border: 1px solid var(--border);
}

.wpcf7-mail-sent-ok {
  background: #dcf5e7;
  border-color: #a8ddb9;
  color: #1d7a40;
}

.wpcf7-mail-sent-ng,
.wpcf7-aborted {
  background: #fdecea;
  border-color: #f5c6c2;
  color: #c0392b;
}
