/* =========================================================
   JuMデザイン合同会社 — コーポレートサイト スタイル
   ========================================================= */

:root {
  /* Brand colors (資料準拠) */
  --color-accent: #5aa9e6;
  --color-accent-dark: #3d8fcf;
  --color-accent-soft: #eaf4fd;
  --color-text: #2b2b2b;
  --color-muted: #6b7280;
  --color-bg: #ffffff;
  --color-bg-alt: #f6fafe;
  --color-border: #e3e8ee;

  /* Layout */
  --max-width: 1080px;
  --max-width-narrow: 760px;
  --space-section: 96px;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(45, 90, 140, 0.08);

  /* Type */
  --font-base: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --font-en: "Oswald", "Noto Sans JP", sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }

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

.narrow { max-width: var(--max-width-narrow); margin-inline: auto; }
.center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 8px 20px rgba(90, 169, 230, 0.35);
}
.btn-primary:hover { background: var(--color-accent-dark); transform: translateY(-2px); }

.btn-ghost {
  background: transparent;
  color: var(--color-accent-dark);
  border-color: var(--color-accent);
}
.btn-ghost:hover { background: var(--color-accent-soft); transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand { display: flex; align-items: center; gap: 12px; }

.brand-logo {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 3px solid var(--color-accent);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.brand-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--color-accent);
}

.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-en {
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.01em;
}
.brand-ja { font-size: 0.7rem; color: var(--color-muted); }

/* Nav */
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--color-text);
  transition: color 0.2s ease;
}
.site-nav a:hover { color: var(--color-accent-dark); }
.site-nav .nav-cta {
  background: var(--color-accent);
  color: #fff;
  padding: 9px 20px;
  border-radius: 999px;
}
.site-nav .nav-cta:hover { background: var(--color-accent-dark); color: #fff; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--color-text);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--color-accent-soft) 0%, #fff 100%);
  padding: clamp(80px, 14vw, 150px) 0 clamp(70px, 12vw, 130px);
}

.hero-inner { position: relative; z-index: 2; max-width: 820px; }

.hero-en {
  font-family: var(--font-en);
  font-size: clamp(1rem, 2vw, 1.3rem);
  letter-spacing: 0.18em;
  color: var(--color-accent-dark);
  margin-bottom: 18px;
}

.hero-title {
  font-size: clamp(1.9rem, 5.5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.01em;
  margin-bottom: 26px;
}

.hero-lead {
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  color: var(--color-muted);
  margin-bottom: 38px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }

/* Hero decorative rings */
.hero-deco { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid var(--color-accent);
  opacity: 0.25;
}
.ring-a { width: 220px; height: 220px; top: -60px; right: 6%; border-width: 14px; opacity: 0.18; }
.ring-b { width: 90px; height: 90px; bottom: 12%; right: 24%; border-width: 10px; opacity: 0.22; }
.ring-c { width: 46px; height: 46px; top: 30%; right: 14%; background: var(--color-accent); border: none; opacity: 0.16; }
.node-line {
  position: absolute;
  top: 18%; right: 10%;
  width: 1px; height: 180px;
  background: linear-gradient(var(--color-accent), transparent);
  opacity: 0.3;
}

/* ---------- Sections ---------- */
.section { padding: var(--space-section) 0; }
.section-alt { background: var(--color-bg-alt); }

.section-head { text-align: center; margin-bottom: 56px; }
.section-en {
  font-family: var(--font-en);
  letter-spacing: 0.18em;
  color: var(--color-accent);
  font-size: 0.95rem;
  margin-bottom: 10px;
}
.section-title {
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  font-weight: 700;
}

/* Intro */
.intro { padding: clamp(60px, 9vw, 96px) 0; }
.intro-text {
  text-align: center;
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: var(--color-text);
}

/* ---------- Cards (solutions) ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}
.card {
  position: relative;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 44px 36px 38px;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(45, 90, 140, 0.14); }
.card-num {
  font-family: var(--font-en);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--color-accent);
  opacity: 0.55;
  line-height: 1;
  display: block;
  margin-bottom: 14px;
}
.card-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--color-accent-dark);
}
.card-text { font-size: 0.95rem; color: var(--color-muted); }

/* ---------- Architecture ---------- */
.arch-lead {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-accent-dark);
  text-align: center;
  margin-bottom: 18px;
}
.arch-text { text-align: center; color: var(--color-muted); }

/* ---------- Profile ---------- */
.profile-inner {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  align-items: start;
}
.profile-photo {
  width: 200px; height: 200px;
  border-radius: 50%;
  border: 6px solid var(--color-accent);
  background: var(--color-accent-soft);
  overflow: hidden;
  margin-inline: auto;
}
.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
}
.profile-name { font-size: 1.4rem; font-weight: 700; margin-bottom: 12px; }
.profile-roles { margin-bottom: 20px; }
.profile-roles li {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-accent-dark);
  padding-left: 18px;
  position: relative;
}
.profile-roles li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.7em;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
}
.profile-text { color: var(--color-muted); font-size: 0.95rem; margin-bottom: 16px; }
.profile-text:last-child { margin-bottom: 0; }

/* ---------- Company table ---------- */
.company-table { width: 100%; border-collapse: collapse; }
.company-table th,
.company-table td {
  text-align: left;
  padding: 20px 8px;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}
.company-table th {
  width: 140px;
  color: var(--color-accent-dark);
  font-weight: 700;
  white-space: nowrap;
}
.company-table td { color: var(--color-text); }

/* ---------- Contact ---------- */
.contact-text { color: var(--color-muted); margin: 18px 0 32px; }

/* ---------- Footer ---------- */
.site-footer {
  background: #1f2937;
  color: #cbd5e1;
  padding: 48px 0;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}
.footer-brand { display: flex; flex-direction: column; line-height: 1.3; }
.footer-brand .brand-en { color: #fff; font-size: 1.2rem; }
.footer-brand .brand-ja { color: #94a3b8; }
.footer-copy { font-size: 0.85rem; color: #94a3b8; }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed;
    inset: 72px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    padding: 8px 0 16px;
    transform: translateY(-120%);
    transition: transform 0.32s ease;
    box-shadow: var(--shadow);
  }
  .site-nav.is-open { transform: translateY(0); }
  .site-nav a { padding: 14px 24px; }
  .site-nav .nav-cta { margin: 10px 24px 0; text-align: center; }

  .profile-inner { grid-template-columns: 1fr; gap: 28px; }
  .profile-body { text-align: center; }
  .profile-roles li { display: inline-block; padding-left: 16px; margin: 0 6px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
