/* ==========================================================================
   gaaboo-inspired layer — Academia Terrace
   Bigger English titles, multi-color accents, separators, illustration cluster
   ========================================================================== */

:root {
  /* brand palette — Academia Terrace 既存ブランド色を巡回 */
  --color-01: #0E2E8C;   /* navy (brand main) */
  --color-02: #1E8E3E;   /* green (brand sub) */
  --color-03: #FFD23F;   /* yellow (brand accent) */
  --color-04: #0a2370;   /* deep navy */
  --color-05: #157a31;   /* deep green */
  --color-06: #4a5170;   /* ink soft */
}

/* ============================
   Big bilingual titles
   "Service" + 「事業内容」 stacked
   ============================ */
.g-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-bottom: 60px;
  text-align: center;
}
.g-title.left { align-items: flex-start; text-align: left; }
.g-title-en {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: clamp(56px, 9vw, 132px);
  line-height: 0.9;
  letter-spacing: -0.02em;
  display: flex;
  gap: 0.02em;
  flex-wrap: wrap;
  justify-content: center;
}
.g-title.left .g-title-en { justify-content: flex-start; }
.g-title-en span {
  display: inline-block;
  background: linear-gradient(180deg, var(--color-start, var(--c-navy)) 0%, var(--color-end, var(--color-01)) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: transform 0.3s;
}
.g-title-en span:hover { transform: translateY(-6px); }

.g-title-ja {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--c-ink-soft);
  display: flex;
  align-items: center;
  gap: 14px;
}
.g-title-ja::before,
.g-title-ja::after {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--c-ink-soft);
}

/* ============================
   Three-dot separator
   ============================ */
.g-dots {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  margin: 60px 0;
}
.g-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.g-dots span:nth-child(1) { background: var(--color-01); }
.g-dots span:nth-child(2) { background: var(--color-02); }
.g-dots span:nth-child(3) { background: var(--color-03); }

/* ============================
   Wave separator (SVG-stroke style)
   ============================ */
.g-wave {
  display: block;
  width: 100%;
  height: 60px;
  margin: 0;
  position: relative;
}
.g-wave svg {
  width: 100%;
  height: 100%;
  display: block;
}
.g-wave path {
  fill: none;
  stroke: var(--c-ink);
  stroke-width: 2;
  stroke-linecap: round;
}

/* ============================
   gaaboo-style hero — illust cluster
   ============================ */
.g-hero {
  position: relative;
  min-height: 100vh;
  padding: 100px 0 80px;
  overflow: hidden;
  background: var(--c-cream);
}
.g-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(255,106,61,0.10) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 60%, rgba(0,182,214,0.10) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 90%, rgba(255,184,0,0.08) 0%, transparent 50%);
  pointer-events: none;
}
.g-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  min-height: 80vh;
}
.g-hero-copy {
  z-index: 2;
  position: relative;
}
.g-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  background: var(--c-ink);
  color: white;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  margin-bottom: 32px;
}
.g-hero-tag .dot {
  width: 8px;
  height: 8px;
  background: var(--color-01);
  border-radius: 50%;
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}
.g-hero-title {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-bottom: 32px;
  text-wrap: balance;
}
.g-hero-title .accent-1 { color: var(--c-navy); }
.g-hero-title .accent-2 { color: var(--color-01); }
.g-hero-title .accent-3 { color: var(--color-02); }
.g-hero-title .marker {
  background: linear-gradient(transparent 60%, var(--color-03) 60%);
  padding: 0 4px;
}
.g-hero-sub {
  font-size: 17px;
  line-height: 2.0;
  color: var(--c-ink-soft);
  margin-bottom: 40px;
  max-width: 540px;
}
.g-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* gaaboo-style button */
.g-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 28px 16px 24px;
  background: white;
  border: 2px solid var(--c-ink);
  border-radius: var(--r-pill);
  font-weight: 700;
  font-size: 15px;
  color: var(--c-ink);
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 0 var(--c-ink);
}
.g-btn::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--btn-color, var(--color-01));
  flex-shrink: 0;
  animation: rotate-around 6s linear infinite;
  transform-origin: center;
}
.g-btn:hover {
  transform: translate(-2px, -4px);
  box-shadow: 0 8px 0 var(--c-ink);
}
.g-btn:hover::before {
  background: var(--btn-color-hover, var(--color-02));
}
.g-btn .arrow {
  margin-left: auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--btn-color, var(--color-01));
  color: white;
  display: grid;
  place-items: center;
  font-size: 13px;
  transition: transform 0.2s;
}
.g-btn:hover .arrow { transform: translateX(4px); }

.g-btn.primary {
  background: var(--c-ink);
  color: white;
  --btn-color: var(--color-01);
}
.g-btn.primary .arrow { background: white; color: var(--c-ink); }

@keyframes rotate-around {
  0%   { background: var(--color-01); }
  16%  { background: var(--color-02); }
  33%  { background: var(--color-03); }
  50%  { background: var(--color-04); }
  66%  { background: var(--color-05); }
  83%  { background: var(--color-06); }
  100% { background: var(--color-01); }
}

/* ============================
   Illustration cluster (hero right)
   ============================ */
.g-illust-cluster {
  position: relative;
  width: 100%;
  height: 600px;
  z-index: 1;
}
.g-illust {
  position: absolute;
  transition: transform 0.6s cubic-bezier(.23, 1, .32, 1);
}
.g-illust img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 6px 16px rgba(14, 46, 140, 0.18));
}
.g-illust.float-anim {
  animation: float-y 6s ease-in-out infinite;
}
.g-illust.float-anim.d1 { animation-delay: -1.5s; }
.g-illust.float-anim.d2 { animation-delay: -3s; }
.g-illust.float-anim.d3 { animation-delay: -4.5s; }
@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* placement of each illust */
.g-illust.i1 { top: 0;     left: 5%;  width: 38%; z-index: 3; }
.g-illust.i2 { top: 8%;    right: 0;  width: 32%; z-index: 2; }
.g-illust.i3 { bottom: 8%; left: 0;   width: 30%; z-index: 2; }
.g-illust.i4 { bottom: 0;  right: 8%; width: 40%; z-index: 3; }

/* small floating tags */
.g-float-tag {
  position: absolute;
  background: white;
  padding: 12px 18px;
  border: 2px solid var(--c-ink);
  border-radius: var(--r-pill);
  box-shadow: 0 4px 0 var(--c-ink);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 4;
  white-space: nowrap;
}
.g-float-tag .icn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
}
.g-float-tag.t1 { top: 22%; left: 38%; transform: rotate(-3deg); }
.g-float-tag.t1 .icn { background: var(--color-01); color: white; }
.g-float-tag.t2 { top: 50%; right: 6%; transform: rotate(4deg); }
.g-float-tag.t2 .icn { background: var(--color-02); color: white; }
.g-float-tag.t3 { bottom: 22%; left: 30%; transform: rotate(-2deg); }
.g-float-tag.t3 .icn { background: var(--color-03); color: var(--c-ink); }

/* ============================
   Scroll indicator
   ============================ */
.g-scroll-ind {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.25em;
  color: var(--c-ink-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 5;
}
.g-scroll-ind::after {
  content: "";
  width: 1px;
  height: 40px;
  background: var(--c-ink-soft);
  animation: scroll-line 1.6s ease-in-out infinite;
}
@keyframes scroll-line {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ============================
   Sections shared
   ============================ */
.g-section {
  padding: 120px 0;
  position: relative;
}
.g-section.bg-cream { background: var(--c-cream); }
.g-section.bg-paper { background: var(--c-paper); }
.g-section.bg-ink { background: var(--c-ink); color: white; }
.g-section.bg-orange-tint { background: linear-gradient(180deg, #FFFCEC 0%, #FFF3C2 100%); }
.g-section.bg-cyan-tint { background: linear-gradient(180deg, #EEF2FB 0%, #DCE5F5 100%); }

/* ============================
   About section (gaaboo style — big text statement)
   ============================ */
.g-about {
  text-align: center;
  max-width: 880px;
  margin: 0 auto;
}
.g-about-msg {
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 700;
  line-height: 2.0;
  margin-bottom: 32px;
  text-wrap: balance;
}
.g-about-msg strong {
  position: relative;
  z-index: 1;
  padding: 0 4px;
}
.g-about-msg strong::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 35%;
  background: var(--hl-color, var(--color-03));
  z-index: -1;
}
.g-about-msg strong.c1::before { background: var(--color-01); opacity: 0.4; }
.g-about-msg strong.c2::before { background: var(--color-02); opacity: 0.4; }
.g-about-msg strong.c3::before { background: var(--color-03); opacity: 0.55; }
.g-about-msg strong.c4::before { background: var(--color-04); opacity: 0.4; }
.g-about-msg strong.c5::before { background: var(--color-05); opacity: 0.4; }

/* ============================
   Service grid (gaaboo style — 4 cards w/ big number)
   ============================ */
.g-service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.g-service-card {
  background: white;
  border: 2px solid var(--c-ink);
  border-radius: var(--r-lg);
  padding: 36px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 0 var(--c-ink);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 280px;
}
.g-service-card:hover {
  transform: translate(-3px, -6px);
  box-shadow: 0 12px 0 var(--c-ink);
}
.g-service-card .num {
  font-family: var(--font-en);
  font-size: 80px;
  font-weight: 800;
  line-height: 1;
  color: var(--svc-color, var(--color-01));
  position: absolute;
  top: 20px;
  right: 28px;
  opacity: 0.18;
  letter-spacing: -0.04em;
}
.g-service-card .lbl-en {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 700;
  color: var(--svc-color, var(--color-01));
  letter-spacing: 0.18em;
}
.g-service-card h3 {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.5;
}
.g-service-card p {
  font-size: 14px;
  line-height: 1.9;
  color: var(--c-ink-soft);
  flex: 1;
}
.g-service-card .arr {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14px;
  color: var(--svc-color, var(--color-01));
}
.g-service-card .arr::after {
  content: "";
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--svc-color, var(--color-01));
  color: white;
  display: grid;
  place-items: center;
}
.g-service-card.c1 { --svc-color: var(--color-01); }
.g-service-card.c2 { --svc-color: var(--color-02); }
.g-service-card.c3 { --svc-color: var(--color-03); }
.g-service-card.c4 { --svc-color: var(--color-05); }

/* small bg illust on card */
.g-service-card .bg-illust {
  position: absolute;
  bottom: -10px;
  right: -10px;
  width: 140px;
  height: 140px;
  opacity: 0.15;
  z-index: 0;
  pointer-events: none;
}
.g-service-card .bg-illust img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ============================
   News list (gaaboo style)
   ============================ */
.g-news-list {
  border-top: 2px solid var(--c-ink);
}
.g-news-row {
  display: grid;
  grid-template-columns: 120px 100px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 24px 12px;
  border-bottom: 2px solid var(--c-ink);
  transition: background 0.2s;
}
.g-news-row:hover { background: var(--c-cream); }
.g-news-row .date {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 14px;
  color: var(--c-ink-soft);
}
.g-news-row .cat {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-align: center;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: var(--cat-color, var(--c-ink));
  color: white;
}
.g-news-row .cat.c1 { --cat-color: var(--color-01); }
.g-news-row .cat.c2 { --cat-color: var(--color-02); }
.g-news-row .cat.c3 { --cat-color: var(--color-03); }
.g-news-row .ttl {
  font-size: 16px;
  font-weight: 700;
}
.g-news-row .arr {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--c-ink);
  display: grid;
  place-items: center;
  font-size: 14px;
  transition: transform 0.2s;
}
.g-news-row:hover .arr { transform: translateX(6px); background: var(--c-ink); color: white; }

/* ============================
   Marquee strip — multicolor
   ============================ */
.g-marquee {
  background: var(--c-ink);
  color: white;
  padding: 22px 0;
  overflow: hidden;
  border-top: 2px solid var(--c-ink);
  border-bottom: 2px solid var(--c-ink);
}
.g-marquee-track {
  display: flex;
  white-space: nowrap;
  animation: marquee 40s linear infinite;
  font-family: var(--font-en);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.05em;
  gap: 40px;
}
.g-marquee-track span { display: inline-flex; align-items: center; gap: 40px; }
.g-marquee .star {
  display: inline-block;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}
.g-marquee .star.c1 { color: var(--color-01); }
.g-marquee .star.c2 { color: var(--color-02); }
.g-marquee .star.c3 { color: var(--color-03); }
.g-marquee .star.c4 { color: var(--color-04); }
.g-marquee .star.c5 { color: var(--color-05); }
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================
   Big bilingual headline w/ underline
   ============================ */
.g-statement {
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 900;
  line-height: 1.5;
  text-wrap: balance;
  letter-spacing: -0.01em;
}
.g-statement .hl-1 { color: var(--color-01); }
.g-statement .hl-2 { color: var(--color-02); }
.g-statement .hl-3 { color: var(--color-03); }
.g-statement .hl-4 { color: var(--color-04); }
.g-statement .underline-1 {
  background: linear-gradient(transparent 70%, var(--color-01) 70%);
  padding: 0 6px;
}
.g-statement .underline-2 {
  background: linear-gradient(transparent 70%, var(--color-02) 70%);
  padding: 0 6px;
}
.g-statement .underline-3 {
  background: linear-gradient(transparent 70%, var(--color-03) 70%);
  padding: 0 6px;
}

/* ============================
   2-col concept (gaaboo group style)
   ============================ */
.g-concept-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.g-concept-card {
  background: white;
  border: 2px solid var(--c-ink);
  border-radius: var(--r-lg);
  padding: 48px 40px;
  position: relative;
  box-shadow: 0 6px 0 var(--c-ink);
  overflow: hidden;
}
.g-concept-card .head-en {
  font-family: var(--font-en);
  font-size: 64px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 8px;
  color: var(--cc-color, var(--color-01));
  letter-spacing: -0.02em;
}
.g-concept-card .head-ja {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--c-ink-soft);
  margin-bottom: 32px;
}
.g-concept-card.c1 { --cc-color: var(--color-01); }
.g-concept-card.c2 { --cc-color: var(--color-02); }
.g-concept-card .visual {
  width: 60%;
  margin: 32px auto 24px;
  aspect-ratio: 1/1;
  background: var(--vis-bg, #FFF4EE);
  border: 2px solid var(--c-ink);
  border-radius: 50%;
  overflow: hidden;
  position: relative;
}
.g-concept-card.c1 .visual { background: #EEF2FB; }
.g-concept-card.c2 .visual { background: #E8F4E0; }
.g-concept-card .visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  padding: 10%;
}
.g-concept-card h3 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 16px;
  text-align: center;
}
.g-concept-card p {
  font-size: 14px;
  line-height: 2.0;
  color: var(--c-ink-soft);
  text-align: center;
}

/* ============================
   Header — adjusted for gaaboo vibe
   ============================ */
.g-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: padding 0.3s, background 0.3s;
}
.g-header .container {
  background: white;
  border: 2px solid var(--c-ink);
  border-radius: var(--r-pill);
  padding: 10px 14px 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 0 var(--c-ink);
  max-width: 1280px;
}
.g-header .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 14px;
}
.g-header .brand img {
  height: 32px;
  width: auto;
}
.g-header .brand .lvl1 {
  font-family: var(--font-en);
  letter-spacing: 0.04em;
}
.g-header nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.g-header nav a {
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  transition: background 0.2s;
}
.g-header nav a:hover { background: var(--c-cream); }
.g-header nav .nav-cta {
  background: var(--c-ink);
  color: white;
  padding: 10px 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}
.g-header nav .nav-cta::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--color-05);
  border-radius: 50%;
  animation: rotate-around 6s linear infinite;
}
.g-header nav .nav-cta:hover { background: var(--c-navy); }

/* ============================
   Footer — gaaboo style
   ============================ */
.g-footer {
  background: var(--c-ink);
  color: white;
  padding: 80px 0 30px;
}
.g-footer .ft-cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 60px;
}
.g-footer .ft-cta a {
  background: white;
  color: var(--c-ink);
  border-radius: var(--r-lg);
  padding: 32px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 22px;
  font-weight: 800;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s;
}
.g-footer .ft-cta a:hover { transform: translate(-3px, -6px); box-shadow: 0 12px 0 var(--color-01); }
.g-footer .ft-cta a:nth-child(2):hover { box-shadow: 0 12px 0 var(--color-02); }
.g-footer .ft-cta .lbl-en {
  display: block;
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--color-01);
  margin-bottom: 6px;
  font-weight: 700;
}
.g-footer .ft-cta a:nth-child(2) .lbl-en { color: var(--color-02); }
.g-footer .ft-cta .icn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--c-ink);
  color: white;
  display: grid;
  place-items: center;
  font-size: 20px;
}
.g-footer .ft-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-top: 60px;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.g-footer h5 {
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--color-03);
  margin-bottom: 20px;
}
.g-footer ul { list-style: none; }
.g-footer ul li { margin-bottom: 12px; }
.g-footer ul a { font-size: 14px; opacity: 0.9; }
.g-footer ul a:hover { opacity: 1; color: var(--color-03); }
.g-footer .copyright {
  margin-top: 50px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 12px;
  font-family: var(--font-en);
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.55);
  display: flex;
  justify-content: space-between;
}

/* ============================
   Responsive
   ============================ */
@media (max-width: 900px) {
  .g-hero-grid { grid-template-columns: 1fr; }
  .g-illust-cluster { height: 400px; margin-top: 30px; }
  .g-service-grid { grid-template-columns: 1fr; }
  .g-concept-pair { grid-template-columns: 1fr; }
  .g-news-row { grid-template-columns: 1fr; gap: 8px; }
  .g-footer .ft-cta { grid-template-columns: 1fr; }
  .g-footer .ft-grid { grid-template-columns: 1fr 1fr; }
  .g-header nav a:not(.nav-cta) { display: none; }
}
