/* ============================================================
   COCOLO Inc. — Corporate Site
   Color: Navy text + Logo blue→teal gradient (ロゴ調和型)
   ============================================================ */

:root {
  --navy:        #1B2A4A;
  --navy-soft:   #2B3B5E;
  --blue:        #2E7BC4;
  --teal:        #2DC7B0;
  --grad:        linear-gradient(120deg, #2E7BC4 0%, #2D9FC4 50%, #2DC7B0 100%);
  --ink:         #1B2A4A;
  --gray:        #6B7280;
  --gray-light:  #9aa3b2;
  --line:        #e7eaf0;
  --bg:          #ffffff;
  --bg-soft:     #f6f8fb;
  --radius:      16px;
  --maxw:        1120px;
  --ease:        cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Noto Sans JP", "Outfit", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.85;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }

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

.grad-text {
  background: var(--grad);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradFlow 7s ease-in-out infinite alternate;
}

.sp-only { display: none; }

/* ---------- Flowing gradient ---------- */
@keyframes gradFlow {
  0%   { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

/* ---------- Scroll progress bar ---------- */
.progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: 200;
  background: var(--grad);
  background-size: 200% 100%;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .1s linear;
  animation: gradFlow 7s ease-in-out infinite alternate;
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ============================================================
   Header
   ============================================================ */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: var(--grad);
  background-size: 200% 200%;
  animation: gradFlow 8s ease-in-out infinite alternate;
  transition: box-shadow .4s var(--ease);
}
.header.is-scrolled {
  box-shadow: 0 6px 24px rgba(27,42,74,.18);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.header__logo img {
  height: 56px;
  width: auto;
  filter: brightness(0) invert(1);
}

.nav__list { display: flex; align-items: center; gap: 32px; }
.nav__link {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .04em;
  color: #fff;
  position: relative;
  transition: color .3s, opacity .3s;
}
.nav__link:not(.nav__link--btn):hover { opacity: .85; }
.nav__link:not(.nav__link--btn)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: #fff;
  transition: width .3s var(--ease);
}
.nav__link:not(.nav__link--btn):hover::after { width: 100%; }
.nav__link--btn {
  padding: 10px 22px;
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  box-shadow: 0 6px 18px rgba(27,42,74,.18);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.nav__link--btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(27,42,74,.28);
}
.nav__link--btn::after { display: none; }

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px; height: 44px;
  background: none; border: none;
  cursor: pointer;
  padding: 0;
}
.nav__toggle span {
  display: block;
  width: 26px; height: 2px;
  margin-inline: auto;
  background: var(--navy);
  transition: transform .35s var(--ease), opacity .25s;
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg-soft);
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .5;
}
.hero__orb--1 {
  width: 540px; height: 540px;
  top: -120px; right: -100px;
  background: radial-gradient(circle, rgba(45,199,176,.55), transparent 70%);
  animation: float 14s ease-in-out infinite;
}
.hero__orb--2 {
  width: 480px; height: 480px;
  bottom: -160px; left: -120px;
  background: radial-gradient(circle, rgba(46,123,196,.5), transparent 70%);
  animation: float 18s ease-in-out infinite reverse;
}
@keyframes float {
  0%,100% { transform: translate(0,0); }
  50%     { transform: translate(30px,-30px); }
}
.hero__inner { position: relative; z-index: 1; padding-block: 120px; }
.hero__sub.reveal     { transition-delay: .05s; }
.hero__title.reveal   { transition-delay: .18s; }
.hero__lead.reveal    { transition-delay: .34s; }
.hero__actions.reveal { transition-delay: .50s; }
.hero__sub {
  font-family: "Outfit", sans-serif;
  font-weight: 600;
  letter-spacing: .28em;
  color: var(--blue);
  margin: 0 0 22px;
  font-size: 14px;
}
.hero__title {
  font-size: clamp(2.8rem, 8vw, 5.2rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: .02em;
  margin: 0 0 28px;
}
.hero__lead {
  font-size: clamp(1rem, 2.4vw, 1.25rem);
  color: var(--navy-soft);
  margin: 0 0 44px;
  font-weight: 500;
}
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero__scroll {
  position: absolute;
  left: 50%; bottom: 28px;
  transform: translateX(-50%);
  width: 26px; height: 44px;
  border: 2px solid var(--gray-light);
  border-radius: 999px;
  z-index: 2;
}
.hero__scroll span {
  position: absolute;
  left: 50%; top: 8px;
  width: 4px; height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--blue);
  animation: scroll 1.8s ease-in-out infinite;
}
@keyframes scroll {
  0%   { transform: translateY(0); opacity: 1; }
  70%  { transform: translateY(16px); opacity: 0; }
  100% { opacity: 0; }
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 34px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .04em;
  cursor: pointer;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s;
}
.btn--primary {
  background: var(--grad);
  background-size: 200% 200%;
  animation: gradFlow 6s ease-in-out infinite alternate;
  color: #fff;
  box-shadow: 0 10px 26px rgba(45,159,196,.32);
}
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(45,159,196,.42); }
.btn--ghost {
  background: #fff;
  color: var(--navy);
  border: 1px solid var(--line);
}
.btn--ghost:hover { transform: translateY(-3px); border-color: var(--teal); color: var(--blue); }
.btn--light {
  background: #fff;
  color: var(--navy);
  box-shadow: 0 12px 30px rgba(0,0,0,.16);
}
.btn--light:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(0,0,0,.24); }

/* ============================================================
   Section commons
   ============================================================ */
.section { padding-block: clamp(80px, 12vw, 140px); }
.section__head { margin-bottom: 56px; }
.section__label {
  display: inline-block;
  font-family: "Outfit", sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .24em;
  color: var(--teal);
  margin-bottom: 14px;
}
.section__label--light { color: rgba(255,255,255,.85); }
.section__title {
  font-size: clamp(1.8rem, 4.4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: .04em;
  margin: 0;
  line-height: 1.4;
}
.section__title::after {
  content: "";
  display: block;
  width: 0; height: 4px;
  margin-top: 20px;
  border-radius: 2px;
  background: var(--grad);
  transition: width .9s var(--ease) .25s;
}
.section__head.is-visible .section__title::after { width: 54px; }
.section__desc { margin: 22px 0 0; color: var(--gray); }

/* ============================================================
   About
   ============================================================ */
.about { background: #fff; }
.about__body {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 48px;
  align-items: start;
}
.about__catch {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.6;
  color: var(--navy);
  margin: 0;
}
.about__text { margin: 0; color: var(--navy-soft); }

/* ============================================================
   Message
   ============================================================ */
.message { background: var(--bg-soft); }
.message__inner { max-width: 860px; margin-inline: auto; }
.message__body { }
.message__quote {
  font-size: clamp(1.4rem, 3.4vw, 2.1rem);
  font-weight: 700;
  line-height: 1.6;
  color: var(--navy);
  margin: 0 0 32px;
  padding-left: 24px;
  border-left: 4px solid;
  border-image: var(--grad) 1;
}
.message__text { margin: 0 0 36px; color: var(--navy-soft); }
.message__sign { text-align: right; }
.message__role { display: block; font-size: 13px; color: var(--gray); margin-bottom: 4px; }
.message__name {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--navy);
}

/* ============================================================
   Service
   ============================================================ */
.service { background: #fff; }
.service__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  padding: 40px 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease);
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 48px rgba(27,42,74,.12);
  border-color: transparent;
}
.card:hover::before { transform: scaleX(1); }
.card__icon {
  width: 60px; height: 60px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(46,123,196,.10), rgba(45,199,176,.12));
  margin-bottom: 22px;
  transition: transform .4s var(--ease);
}
.card__icon svg { width: 30px; height: 30px; display: block; }
.card:hover .card__icon { transform: scale(1.06); }
.card__title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: .04em;
  margin: 0 0 4px;
  color: var(--navy);
}
.card__en { font-size: 13px; color: var(--teal); font-weight: 500; margin: 0 0 16px; }
.card__text { font-size: 14.5px; color: var(--gray); margin: 0; line-height: 1.8; }

.card--cta {
  background: linear-gradient(135deg, rgba(46,123,196,.06), rgba(45,199,176,.08));
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.card--cta .card__title { margin-bottom: 12px; }
.card__link {
  margin-top: 18px;
  font-weight: 600;
  color: var(--blue);
  transition: gap .3s, color .3s;
}
.card__link:hover { color: var(--teal); }

/* ============================================================
   Company
   ============================================================ */
.company { background: var(--bg-soft); }
.company__table {
  border-top: 1px solid var(--line);
}
.company__table .row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  margin: 0;
  padding: 24px 8px;
  border-bottom: 1px solid var(--line);
}
.company__table dt {
  font-weight: 700;
  color: var(--navy);
  letter-spacing: .04em;
  font-size: 15px;
}
.company__table dd { margin: 0; color: var(--navy-soft); }

/* ============================================================
   Contact
   ============================================================ */
.contact {
  position: relative;
  text-align: center;
  color: #fff;
  overflow: hidden;
}
.contact__bg {
  position: absolute;
  inset: 0;
  background: var(--grad);
  background-size: 200% 200%;
  animation: gradFlow 10s ease-in-out infinite alternate;
  z-index: 0;
}
.contact__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255,255,255,.18), transparent 50%);
}
.contact__inner { position: relative; z-index: 1; }
.contact__title {
  font-size: clamp(1.8rem, 4.4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: .04em;
  margin: 14px 0 22px;
}
.contact__text { margin: 0 0 40px; color: rgba(255,255,255,.92); }
.contact__note { margin: 20px 0 0; font-size: 12.5px; color: rgba(255,255,255,.72); }

/* ---------- Contact form ---------- */
.contact__form {
  max-width: 720px;
  margin-inline: auto;
  padding: clamp(28px, 5vw, 48px);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 24px 60px rgba(27,42,74,.22);
  text-align: left;
  color: var(--ink);
}
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form__field { margin-bottom: 22px; }
.form__label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: .04em;
  margin-bottom: 8px;
}
.form__req {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 999px;
  color: #fff;
  background: var(--grad);
}
.form__input {
  width: 100%;
  padding: 13px 16px;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--bg-soft);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  transition: border-color .3s, background .3s, box-shadow .3s;
}
.form__input::placeholder { color: var(--gray-light); }
.form__input:focus {
  outline: none;
  background: #fff;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(46,123,196,.15);
}
.form__textarea { resize: vertical; min-height: 140px; }
.form__submit {
  display: flex;
  width: 100%;
  border: none;
  background: var(--grad);
  background-size: 200% 200%;
  animation: gradFlow 6s ease-in-out infinite alternate;
  color: #fff;
  box-shadow: 0 10px 26px rgba(45,159,196,.32);
}
.form__submit:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(45,159,196,.42); }
.form__submit:disabled {
  opacity: .6;
  cursor: not-allowed;
  transform: none;
}
.form__status {
  display: none;
  margin: 0 0 20px;
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 500;
}
.form__status.is-success {
  display: block;
  color: #0f6b5c;
  background: rgba(45,199,176,.14);
  border: 1px solid rgba(45,199,176,.4);
}
.form__status.is-error {
  display: block;
  color: #b3261e;
  background: rgba(179,38,30,.08);
  border: 1px solid rgba(179,38,30,.3);
}

/* ============================================================
   Footer
   ============================================================ */
.footer { background: var(--navy); color: #fff; padding: 64px 0 32px; }
.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer__logo {
  height: 64px;
  width: auto;
  margin-bottom: 18px;
  filter: brightness(0) invert(1);
  opacity: .95;
}
.footer__addr { margin: 0; font-size: 13px; color: rgba(255,255,255,.7); }
.footer__nav { display: flex; gap: 28px; flex-wrap: wrap; }
.footer__nav a {
  font-size: 14px;
  color: rgba(255,255,255,.82);
  letter-spacing: .04em;
  transition: color .3s;
}
.footer__nav a:hover { color: var(--teal); }
.footer__copy {
  text-align: center;
  margin: 32px 0 0;
  font-size: 12.5px;
  letter-spacing: .08em;
  color: rgba(255,255,255,.55);
  font-family: "Outfit", sans-serif;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .service__grid { grid-template-columns: repeat(2, 1fr); }
  .about__body { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 768px) {
  .sp-only { display: inline; }

  .nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(78vw, 320px);
    background: #fff;
    box-shadow: -10px 0 40px rgba(27,42,74,.12);
    transform: translateX(100%);
    transition: transform .4s var(--ease);
    padding: 100px 32px 40px;
  }
  .nav.is-open { transform: none; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 8px; }
  .nav__link { display: block; padding: 14px 4px; font-size: 16px; }
  /* Inside the white slide-in panel, restore dark links + gradient button */
  .nav .nav__link:not(.nav__link--btn) { color: var(--navy); }
  .nav .nav__link:not(.nav__link--btn)::after { background: var(--grad); }
  .nav__link--btn {
    text-align: center;
    margin-top: 12px;
    background: var(--grad);
    color: #fff;
    box-shadow: 0 6px 18px rgba(45,159,196,.28);
  }
  .nav__toggle { display: flex; z-index: 110; }
  .nav__toggle span { background: #fff; }
  .nav__toggle.is-open span { background: var(--navy); }
  .nav__toggle.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav__toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav__toggle.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .service__grid { grid-template-columns: 1fr; }
  .company__table .row { grid-template-columns: 1fr; gap: 6px; padding: 18px 4px; }
  .hero__actions .btn { flex: 1; }
  .form__row { grid-template-columns: 1fr; gap: 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
