@charset "UTF-8";

/* ==========================================================================
  1) Design Tokens（ここを触ると全体が整う）
========================================================================== */
:root {
  /* Colors */
  --bg: #f8fafc;
  --text: #3a4750;
  --muted: #8e9aaf;
  --line: rgba(58, 71, 80, 0.1);

  --accent: #7ca8f7;
  --accent-2: #ffdee9;
  --accent-soft: rgba(124, 168, 247, 0.1);

  /* Surfaces */
  --card: rgba(255, 255, 255, 0.78);
  --glass: rgba(255, 255, 255, 0.7);

  /* Effects */
  --shadow: 0 10px 40px rgba(124, 168, 247, 0.16);
  --radius: 24px;

  /* Layout */
  --container: 1120px;
  --gutter: 24px;
  --header-h: 80px;

  /* Typography */
  --base-font: 16px;
}

/* 大画面ほど container を広げる（※広いほど狭くするバグを防ぐ） */
@media (min-width: 1440px) {
  :root {
    --container: 1280px;
  }
}
@media (min-width: 1920px) {
  :root {
    --container: 1440px;
    --base-font: 17px;
  }
}
@media (min-width: 2560px) {
  :root {
    --container: 1600px;
    --base-font: 18px;
  }
}

/* ==========================================================================
  2) Base
========================================================================== */
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: "Quicksand", "Noto Sans JP", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.8;
  font-size: var(--base-font);
  overflow-x: hidden;
}

:focus-visible {
  outline: 3px solid rgba(124, 168, 247, 0.55);
  outline-offset: 3px;
}

/* ==========================================================================
  3) Utilities
========================================================================== */
.container{
  width: min(90vw, var(--container));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.muted {
  color: var(--muted);
}
.nowrap {
  white-space: nowrap;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: 12px;
  top: 12px;
  transform: translateY(-140%);
  padding: 10px 14px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  z-index: 2000;
}
.skip-link:focus {
  transform: translateY(0);
}

/* ==========================================================================
  4) Header / Nav
========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-h);
  z-index: 1000;
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gutter);
}

.logo img {
  height: calc(var(--header-h) * 0.48);
  max-height: 42px;
  width: auto;
  transition: transform 0.2s ease;
}
@media (min-width: 1920px) {
  .logo img {
    max-height: 52px;
  }
}

.global-nav ul {
  display: flex;
  gap: 32px;
  list-style: none;
}

.global-nav a {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
}
.global-nav a:hover {
  color: var(--accent);
}

.contact-btn {
  padding: 8px 24px;
  border: 1.5px solid var(--accent);
  border-radius: 999px;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}
.contact-btn:hover {
  background: var(--accent);
  color: #fff;
}

/* Hamburger */
.nav-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1100;
}
.nav-toggle__bar {
  position: absolute;
  left: 12px;
  width: 20px;
  height: 2px;
  background: var(--text);
  transition: all 0.25s ease;
}
.nav-toggle__bar:nth-child(1) {
  top: 16px;
}
.nav-toggle__bar:nth-child(2) {
  top: 22px;
}
.nav-toggle__bar:nth-child(3) {
  top: 28px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 820px) {
  .nav-toggle {
    display: block;
  }

  .global-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(84vw, 360px);
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    padding: 96px 28px 28px;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.08);
    transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1050;
    display: block;
  }
  .global-nav.is-open {
    right: 0;
  }

  .global-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .contact-btn {
    width: 100%;
    text-align: center;
    padding: 12px 18px;
  }
}

/* ==========================================================================
  5) Buttons
========================================================================== */
.btn {
  display: inline-block;
  padding: 14px 34px;
  border-radius: 999px;
  font-weight: 600;
  transition:
    transform 0.2s ease,
    filter 0.2s ease,
    box-shadow 0.2s ease;
  will-change: transform;
}

.btn.primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 28px rgba(124, 168, 247, 0.22);
}
.btn.ghost {
  border: 1.5px solid rgba(58, 71, 80, 0.3);
  color: var(--text);
  background: rgba(255, 255, 255, 0.55);
}

@media (hover: hover) and (pointer: fine) {
  .btn:hover {
    filter: brightness(0.98);
    transform: translateY(-1px);
  }
}

/* ==========================================================================
  6) Floating CTA
========================================================================== */
.floating-cta {
  position: fixed;
  right: 18px;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 25px rgba(124, 168, 247, 0.25);
  z-index: 1200;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease,
    filter 0.2s ease;
}
.floating-cta .icon {
  font-size: 18px;
  line-height: 1;
  color: #fff;
}

.floating-cta.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
}

@media (hover: hover) and (pointer: fine) {
  .floating-cta:hover:not(.is-hidden) {
    filter: brightness(0.95);
    transform: translateY(-1px);
  }
}

/* ==========================================================================
  7) Footer
========================================================================== */
.site-footer {
  padding: 70px 0 26px;
  border-top: 1px solid rgba(58, 71, 80, 0.1);
  font-size: 0.92rem;
  background: rgba(255, 255, 255, 0.55);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
  align-items: start;
}

.footer-logo img {
  height: 36px;
  width: auto;
}
.footer-tagline {
  margin: 10px 0;
}
.footer-meta {
  margin: 0;
  line-height: 1.8;
}

.footer-title {
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 6px 0 14px;
}

.footer-nav ul {
  list-style: none;
  display: grid;
  gap: 10px;
}

.footer-nav a {
  color: var(--text);
  transition: color 0.2s ease;
}
.footer-nav a:hover {
  color: var(--accent);
}

.footer-bottom {
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid rgba(58, 71, 80, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

@media (max-width: 820px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* GTM noscript iframe */
.gtm-hidden {
  display: none;
  visibility: hidden;
}
