@charset "UTF-8";

/* ===== Design tokens ===== */
:root {
  --brand: #0ea5c4;
  --brand-dark: #0a7e97;
  --brand-light: #e8f7fb;
  --accent: #08bdd4;
  --ink: #1f2933;
  --ink-soft: #52606d;
  --line: #e4e9ee;
  --bg: #ffffff;
  --bg-soft: #f6f9fb;
  --radius: 16px;
  --shadow: 0 6px 24px rgba(15, 40, 55, 0.08);
  --shadow-hover: 0 12px 34px rgba(15, 40, 55, 0.14);
  --maxw: 1120px;
  --font: "Helvetica Neue", "Hiragino Kaku Gothic ProN", "Hiragino Sans",
    "Noto Sans JP", Meiryo, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--brand-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap {
  width: min(92%, var(--maxw));
  margin-inline: auto;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}
.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}
.brand .en {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--brand);
  font-weight: 700;
  text-transform: uppercase;
}
.brand .jp {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--ink);
}
.brand a { color: inherit; text-decoration: none; }

/* ===== Nav ===== */
.nav ul {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav a {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: background 0.2s, color 0.2s;
}
.nav a:hover { background: var(--brand-light); color: var(--brand-dark); text-decoration: none; }
.nav a.active { background: var(--brand); color: #fff; }

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
  transition: 0.3s;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  background: linear-gradient(120deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255,255,255,0.18), transparent 60%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  padding: 64px 0;
}
.hero h1 {
  font-size: clamp(1.6rem, 3.4vw, 2.5rem);
  line-height: 1.35;
  margin: 0 0 16px;
}
.hero p.lead {
  font-size: 1.02rem;
  color: rgba(255,255,255,0.92);
  margin: 0 0 28px;
}
.hero .tagpair {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hero .tagpair span {
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}
.hero-media img {
  width: 100%;
  height: 100%;
  max-height: 340px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
}

/* Sub page hero (compact) */
.page-hero {
  background: linear-gradient(120deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff;
  padding: 48px 0;
}
.page-hero .en {
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  opacity: 0.85;
  font-weight: 700;
}
.page-hero h1 {
  margin: 6px 0 0;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
}

/* ===== Sections ===== */
section.block { padding: 56px 0; }
section.block.alt { background: var(--bg-soft); }

.intro-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: start;
}
.intro-grid.reverse { grid-template-columns: 0.85fr 1.15fr; }
.intro-grid .media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  object-fit: cover;
}
.section-label {
  color: var(--brand);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 8px;
}
h2.section-title {
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  margin: 0 0 20px;
  color: var(--ink);
}
.prose p { color: var(--ink-soft); margin: 0 0 16px; }
.prose p.en { font-size: 0.92rem; color: #7b8794; }

/* ===== Cards ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 8px;
}
.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  text-align: center;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: transparent;
}
.card .thumb {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
  border: 4px solid var(--brand-light);
}
.card h4 {
  color: var(--brand-dark);
  font-size: 1rem;
  margin: 0 0 10px;
}
.card p { font-size: 0.88rem; color: var(--ink-soft); margin: 0; text-align: left; }

/* ===== Banner pair ===== */
.banner-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.banner-pair div {
  padding: 40px 20px;
  text-align: center;
  color: #fff;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}
.banner-pair .b1 { background: var(--brand); }
.banner-pair .b2 { background: var(--accent); }

/* ===== Social / links footer strip ===== */
.linkstrip {
  background: #263038;
  padding: 26px 0;
}
.linkstrip .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px;
}
.linkstrip a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 10px;
  padding: 10px 16px;
  height: 52px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.linkstrip a:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(0,0,0,0.25); }
.linkstrip img {
  height: 30px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  display: block;
}

/* ===== Footer ===== */
.site-footer {
  background: #1b232a;
  color: #9aa5b1;
  text-align: center;
  padding: 22px 0;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}

/* ===== Buttons / inline links list ===== */
.inline-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0 4px; }
.inline-links a {
  background: var(--brand-light);
  color: var(--brand-dark);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}
.inline-links a:hover { background: var(--brand); color: #fff; text-decoration: none; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 28px; padding: 48px 0; }
  .hero-media { order: -1; }
  .intro-grid, .intro-grid.reverse { grid-template-columns: 1fr; gap: 26px; }
  .intro-grid.reverse .media { order: -1; }
  .cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .nav.open { max-height: 420px; }
  .nav ul { flex-direction: column; padding: 8px 16px 16px; gap: 2px; }
  .nav a { padding: 12px 10px; border-radius: 10px; }
  .nav-toggle { display: block; }
  .site-header { position: relative; }
}

@media (max-width: 480px) {
  .cards { grid-template-columns: 1fr; }
  .banner-pair { grid-template-columns: 1fr; }
  .linkstrip .wrap { gap: 22px; }
}

/* ===== Language switch ===== */
.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  margin-left: 8px;
  flex-shrink: 0;
}
.lang-switch button {
  border: 0;
  background: transparent;
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.lang-switch button.active { background: var(--brand); color: #fff; }

/* Show/hide by language */
html[data-lang="ja"] [data-lang-en] { display: none; }
html[data-lang="en"] [data-lang-ja] { display: none; }

/* Theme list on project page */
.theme-list {
  columns: 2;
  column-gap: 40px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}
.theme-list li {
  break-inside: avoid;
  padding: 10px 0 10px 26px;
  position: relative;
  color: var(--ink-soft);
  font-size: 0.95rem;
  border-bottom: 1px solid var(--line);
}
.theme-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 18px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
}
.theme-motto {
  margin-top: 22px;
  padding: 20px 24px;
  background: var(--brand-light);
  border-left: 5px solid var(--brand);
  border-radius: 12px;
}
.theme-motto strong { display: block; color: var(--brand-dark); font-size: 1.05rem; margin-bottom: 4px; }
.theme-motto span { color: var(--ink-soft); }

@media (max-width: 640px) {
  .theme-list { columns: 1; }
  .header-inner { flex-wrap: wrap; }
}

/* ===== Three pillars (CDR paradigm) ===== */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 8px;
}
.pillar {
  background: var(--bg);
  border: 1px solid var(--line);
  border-top: 4px solid var(--brand);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.pillar .num {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--brand);
  text-transform: uppercase;
}
.pillar h4 { margin: 8px 0 10px; font-size: 1.15rem; color: var(--ink); }
.pillar h4 span.jp { display: block; font-size: 0.82rem; color: var(--ink-soft); font-weight: 600; margin-top: 2px; }
.pillar p { margin: 0; font-size: 0.9rem; color: var(--ink-soft); }

@media (max-width: 760px) {
  .pillars { grid-template-columns: 1fr; }
}

/* ===== Footer meta (version / AI disclosure) ===== */
.site-footer .meta {
  margin-top: 8px;
  font-size: 0.72rem;
  color: #6b7683;
  letter-spacing: 0.04em;
}
