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

:root {
  --c-bg:       #f2f6fb;
  --c-bg-2:     #eaf0f8;
  --c-surface:  #ffffff;
  --c-text:     #5a7ea8;       /* 淡いブルー — 本文 */
  --c-heading:  #2e4e72;       /* 深めブルー — 見出し */
  --c-muted:    #8dabc8;       /* さらに淡いブルー */
  --c-border:   rgba(90,126,168,.12);
  --c-accent:   #6b9fd4;       /* ポイントブルー */

  --grad: linear-gradient(135deg, #7bb8e8 0%, #5a8fd4 60%, #4a7bc4 100%);

  --shadow-sm:  0 2px 12px rgba(90,126,168,.10);
  --shadow-md:  0 6px 28px rgba(90,126,168,.13);
  --shadow-lg:  0 14px 44px rgba(90,126,168,.16);

  --r-xl: 24px;
  --r-lg: 16px;
}

html { scroll-behavior: smooth; }
body {
  font-family: "Noto Sans JP","Inter",-apple-system,BlinkMacSystemFont,sans-serif;
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.85;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ===== SCROLL PROGRESS ===== */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 0%;
  height: 3px;
  background: var(--grad);
  z-index: 9999;
  transition: width .1s linear;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--c-bg); }
::-webkit-scrollbar-thumb { background: var(--c-accent); border-radius: 3px; opacity: .5; }

/* ===== BACKGROUND ===== */
.bg-canvas {
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 70% 55% at 15% 10%, rgba(123,184,232,.18) 0%, transparent 65%),
    radial-gradient(ellipse 60% 50% at 85% 85%, rgba(90,143,212,.12) 0%, transparent 65%),
    var(--c-bg);
}

/* ===== NAV ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: rgba(242,246,251,.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--c-border);
  transition: box-shadow .3s;
}
.nav.opaque { box-shadow: var(--shadow-sm); }
.nav-inner {
  max-width: 1080px; margin: 0 auto;
  padding: 0 24px; height: 60px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-family: "Inter",sans-serif; font-weight: 800;
  font-size: 17px; color: var(--c-heading);
  letter-spacing: -.4px;
}
.nav-logo span { color: var(--c-accent); }
.nav-links { display: flex; gap: 32px; }
.nav-links a {
  font-size: 14px; font-weight: 500;
  color: var(--c-muted); transition: color .2s;
}
.nav-links a:hover { color: var(--c-heading); }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 8px; border: none; background: none;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--c-heading); border-radius: 2px; transition: all .3s;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

.mobile-menu {
  display: none; position: fixed; top: 60px; left: 0; right: 0;
  background: rgba(242,246,251,.97); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--c-border);
  padding: 28px 24px; z-index: 199;
  flex-direction: column; gap: 24px;
  box-shadow: var(--shadow-md);
}
.mobile-menu.open { display: flex; }
.mobile-menu a { font-size: 18px; font-weight: 700; color: var(--c-heading); }

/* ===== HERO ===== */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding: 100px 0 60px; position: relative;
}
.hero-inner { text-align: center; width: 100%; }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: "Inter",sans-serif; font-size: 11px;
  letter-spacing: 3.5px; color: var(--c-muted); text-transform: uppercase;
  padding: 7px 20px; border: 1px solid var(--c-border); border-radius: 999px;
  margin-bottom: 32px; background: rgba(255,255,255,.6);
}
.hero-eyebrow-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--c-accent);
  animation: pulse-dot 2.5s ease infinite;
}
@keyframes pulse-dot {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: .4; transform: scale(1.6); }
}

.hero-title {
  font-size: clamp(40px, 6.5vw, 80px);
  font-weight: 900; line-height: 1.15;
  letter-spacing: -.025em; margin-bottom: 24px;
}
.hero-title .line-1 {
  display: block; color: var(--c-heading);
}
.hero-title .line-2 {
  display: block;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.hero-typing {
  font-size: clamp(14px, 1.5vw, 17px);
  color: var(--c-muted); font-weight: 500;
  margin-bottom: 44px; min-height: 52px;
}
.cursor-blink {
  display: inline-block; width: 2px; height: 1em;
  background: var(--c-accent); margin-left: 2px;
  vertical-align: middle; animation: blink .8s step-end infinite;
}
@keyframes blink { 0%,100% { opacity:1; } 50% { opacity:0; } }

.hero-cta {
  display: flex; gap: 14px; justify-content: center;
  flex-wrap: wrap; margin-bottom: 64px;
}

.hero-stats {
  display: flex; justify-content: center; flex-wrap: wrap;
  background: rgba(255,255,255,.75); border: 1px solid var(--c-border);
  border-radius: var(--r-xl); padding: 24px 0;
  max-width: 500px; margin: 0 auto; box-shadow: var(--shadow-sm);
}
.stat {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; gap: 3px; padding: 0 28px; position: relative;
}
.stat + .stat::before {
  content: ''; position: absolute; left: 0; top: 20%; bottom: 20%;
  width: 1px; background: var(--c-border);
}
.stat-num {
  font-family: "Inter",sans-serif; font-size: 30px; font-weight: 800;
  color: var(--c-accent); line-height: 1;
}
.stat-label {
  font-size: 10px; letter-spacing: 2px;
  color: var(--c-muted); text-transform: uppercase;
}

.hero-scroll {
  position: absolute; bottom: 24px; left: 50%;
  transform: translateX(-50%);
  font-family: "Inter",sans-serif; font-size: 10px;
  letter-spacing: 3px; color: var(--c-muted); text-transform: uppercase;
  animation: bounce-y 2.5s ease infinite;
}
@keyframes bounce-y {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(7px); }
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 30px; border-radius: 999px;
  font-weight: 700; font-size: 14px;
  transition: all .25s; cursor: pointer; border: none;
}
.btn-primary {
  background: var(--grad); color: #fff;
  box-shadow: 0 4px 20px rgba(107,159,212,.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(107,159,212,.45);
}
.btn-ghost {
  background: var(--c-surface);
  border: 1.5px solid var(--c-border);
  color: var(--c-heading);
}
.btn-ghost:hover {
  border-color: var(--c-accent);
  color: var(--c-accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* ===== SECTIONS ===== */
.section { padding: 120px 0; }
.section-alt { background: var(--c-bg-2); }
.section-tag {
  font-family: "Inter",sans-serif; font-size: 11px;
  letter-spacing: 3px; color: var(--c-accent);
  text-transform: uppercase; margin-bottom: 12px; font-weight: 700;
}
.section-title {
  font-size: clamp(28px, 4.5vw, 48px); font-weight: 900;
  line-height: 1.25; letter-spacing: -.025em;
  margin-bottom: 56px; color: var(--c-heading);
}

/* ===== CARDS ===== */
.card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl); padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(107,159,212,.3);
}

/* ===== ABOUT ===== */
.about-grid {
  display: grid; grid-template-columns: 1.3fr 1fr;
  gap: 48px; align-items: start;
}
.about-text p {
  color: var(--c-text); margin-bottom: 20px;
  font-size: 15px; line-height: 1.95;
}
.about-card h3 {
  font-family: "Inter",sans-serif; font-size: 10px;
  letter-spacing: 3px; color: var(--c-accent);
  text-transform: uppercase; margin-bottom: 20px; font-weight: 700;
}
.about-card dl {
  display: grid; grid-template-columns: auto 1fr;
  gap: 14px 16px; align-items: baseline;
}
.about-card dt {
  font-family: "Inter",sans-serif; font-size: 10px;
  letter-spacing: 1px; color: var(--c-muted); text-transform: uppercase;
}
.about-card dd { font-size: 14px; font-weight: 600; color: var(--c-heading); }

/* ===== POPULAR POSTS ===== */
.section-lead {
  text-align: center;
  color: var(--c-text);
  font-size: 15px;
  max-width: 560px;
  margin: -8px auto 40px;
  line-height: 1.9;
}
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 20px;
  margin-bottom: 36px;
}
.post-card {
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform .35s, box-shadow .35s;
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.post-cat {
  display: inline-block;
  font-family: "Inter",sans-serif;
  font-size: 10px;
  letter-spacing: 1.5px;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  background: var(--grad);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
  align-self: flex-start;
}
.post-card h3 {
  font-size: 19px;
  font-weight: 800;
  margin-bottom: 14px;
  color: var(--c-heading);
  line-height: 1.5;
}
.post-card > p {
  font-size: 13.5px;
  color: var(--c-text);
  line-height: 1.85;
  margin-bottom: 20px;
  flex-grow: 1;
}
.post-link {
  font-family: "Inter",sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--c-accent);
  letter-spacing: .3px;
  transition: transform .25s;
  display: inline-block;
}
.post-card:hover .post-link {
  transform: translateX(4px);
}
.posts-more {
  text-align: center;
}

/* ===== SERVICES ===== */
.services-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.service-card { overflow: hidden; position: relative; }
.service-top-line {
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--grad);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  opacity: 0; transition: opacity .35s;
}
.card:hover .service-top-line { opacity: 1; }
.service-num {
  font-family: "Inter",sans-serif; font-size: 11px;
  letter-spacing: 2px; color: var(--c-muted); margin-bottom: 14px;
}
.service-icon { font-size: 32px; margin-bottom: 14px; display: block; }
.service-card h3 { font-size: 18px; font-weight: 800; margin-bottom: 10px; color: var(--c-heading); }
.service-card > p { color: var(--c-text); font-size: 14px; line-height: 1.85; margin-bottom: 18px; }
.service-card ul li {
  font-size: 13px; color: var(--c-muted);
  padding-left: 16px; position: relative; margin-bottom: 8px;
}
.service-card ul li::before {
  content: '·'; position: absolute; left: 0;
  color: var(--c-accent); font-size: 18px; line-height: 1;
}

/* ===== LINKS / WORKS ===== */
.links-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.link-card { display: block; }
.link-head {
  display: flex; justify-content: space-between;
  align-items: center; margin-bottom: 14px;
}
.platform-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: "Inter",sans-serif; font-size: 10px;
  letter-spacing: 1.5px; color: var(--c-accent); text-transform: uppercase;
  font-weight: 700; padding: 4px 11px;
  border: 1px solid rgba(107,159,212,.25); border-radius: 999px;
  background: rgba(107,159,212,.06);
}
.platform-badge svg { width: 10px; height: 10px; }
.link-arrow { font-size: 18px; color: var(--c-muted); transition: all .25s; }
.link-card:hover .link-arrow { color: var(--c-accent); transform: translate(3px,-3px); }
.link-card h3 { font-size: 16px; font-weight: 800; margin-bottom: 8px; color: var(--c-heading); }
.link-card p { font-size: 13px; color: var(--c-text); line-height: 1.8; }

.link-card-featured {
  background: linear-gradient(160deg, #f0f6fd, #e8f0fb) !important;
  border-color: rgba(107,159,212,.2) !important;
}

/* ===== CONTACT ===== */
.contact-wrap { position: relative; }
.contact-inner { text-align: center; max-width: 620px; margin: 0 auto; }
.contact-inner .section-title { margin-bottom: 16px; }
.contact-lead { color: var(--c-text); font-size: 15px; margin-bottom: 36px; line-height: 1.9; }
.contact-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ===== FOOTER ===== */
.footer { padding: 40px 0; border-top: 1px solid var(--c-border); background: var(--c-surface); }
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.footer-logo {
  font-family: "Inter",sans-serif; font-weight: 800;
  font-size: 15px; color: var(--c-heading);
}
.footer-logo span { color: var(--c-accent); }
.footer-copy { font-size: 12px; color: var(--c-muted); }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 13px; color: var(--c-muted); transition: color .2s; font-weight: 500; }
.footer-links a:hover { color: var(--c-accent); }

/* ===== REVEAL ===== */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-stagger > * {
  opacity: 0; transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal-stagger.visible > *:nth-child(1) { opacity:1; transform:translateY(0); transition-delay:.00s; }
.reveal-stagger.visible > *:nth-child(2) { opacity:1; transform:translateY(0); transition-delay:.10s; }
.reveal-stagger.visible > *:nth-child(3) { opacity:1; transform:translateY(0); transition-delay:.20s; }
.reveal-stagger.visible > *:nth-child(4) { opacity:1; transform:translateY(0); transition-delay:.30s; }
.reveal-stagger.visible > *:nth-child(5) { opacity:1; transform:translateY(0); transition-delay:.40s; }
.reveal-stagger.visible > *:nth-child(6) { opacity:1; transform:translateY(0); transition-delay:.50s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .about-grid, .services-grid, .links-grid, .posts-grid { grid-template-columns: 1fr; }
  .section { padding: 80px 0; }
  .footer-inner { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .card { padding: 22px; }
  .hero-cta { flex-direction: column; align-items: center; }
}
