/* V2 — Editorial Design for S-GRIT */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;600;700;800&family=Noto+Serif+JP:wght@400;600;700&display=swap');

/* ── Reset & Base ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --black: #0a0a0a;
  --dark: #161616;
  --body: #2a2a2a;
  --muted: #555;
  --light: #888;
  --border: #c8c8c8;
  --border-light: #e0e0e0;
  --bg: #fff;
  --bg-warm: #f3f1ec;
  --accent: #1756a0;
  --accent-dark: #0d3d72;
  --green: #1a7a50;

  --sans: 'Noto Sans JP', 'Helvetica Neue', Arial, sans-serif;
  --serif: 'Noto Serif JP', 'Georgia', serif;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--sans);
  color: var(--body);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--accent-dark);
}

img {
  max-width: 100%;
  height: auto;
}

/* ── Layout ── */
.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

.wrap--narrow {
  max-width: 720px;
}

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255,255,255,0.96);
  border-bottom: 1px solid var(--border-light);
  z-index: 1000;
}

.nav__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 56px;
}

.nav__logo {
  display: flex;
  align-items: center;
}

.nav__logo img {
  height: 64px;
  width: auto;
}

.nav__links {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav__links a {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav__links a:hover {
  color: var(--black);
}

.nav__lang {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  margin-left: 1.5rem;
}

.nav__lang a {
  color: var(--light);
  padding: 0.2rem 0.4rem;
}

.nav__lang a:hover {
  color: var(--accent);
}

.nav__lang .sep {
  color: var(--border);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  background: none;
  border: none;
  gap: 5px;
}

.nav__toggle span {
  width: 22px;
  height: 1.5px;
  background: var(--black);
}

/* ── Hero ── */
.hero {
  margin-top: 56px;
  padding: 8rem 0 6rem;
  border-bottom: 2px solid var(--border);
  background: var(--dark);
  color: #ccc;
}

.hero .hero__label {
  color: #6aadea;
}

.hero .hero__title {
  color: #fff;
}

.hero .hero__lead {
  color: #aaa;
}

.hero .hero__lead strong {
  color: #ddd;
}

.hero__inner {
  max-width: 680px;
}

.hero__label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.hero__title {
  font-family: var(--serif);
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--black);
  margin-bottom: 2rem;
  letter-spacing: 0;
}

.hero__lead {
  font-size: 1.05rem;
  line-height: 2;
  color: var(--muted);
  max-width: 580px;
}

.hero__lead strong {
  color: var(--body);
  font-weight: 500;
}

/* ── Section spacing with variation ── */
.section {
  padding: 5rem 0;
}

.section--lg {
  padding: 7rem 0;
}

.section--sm {
  padding: 3.5rem 0;
}

.section--warm {
  background: var(--bg-warm);
  border-top: 2px solid var(--border);
  border-bottom: 2px solid var(--border);
}

.section--dark {
  background: var(--black);
  color: #ccc;
}

.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: #fff;
}

.section--border {
  border-bottom: 1px solid var(--border-light);
}

/* ── Section Headers (left-aligned) ── */
.section__label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section__title {
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--black);
  line-height: 1.35;
  margin-bottom: 1rem;
}

.section__lead {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.9;
  max-width: 600px;
}

/* ── About / Profile ── */
.profile {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 4rem;
  align-items: start;
  margin-top: 2.5rem;
}

.profile__body {
  line-height: 1.9;
}

.profile__name {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 0.25rem;
}

.profile__role {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 1.5rem;
}

.profile__text {
  font-size: 0.95rem;
  color: var(--body);
  margin-bottom: 1.5rem;
  line-height: 1.9;
}

.profile__credentials {
  list-style: none;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
}

.profile__credentials li {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 0.6rem;
  padding-left: 1rem;
  position: relative;
}

.profile__credentials li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
}

.profile__sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.profile__stat {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-light);
}

.profile__stat:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.profile__stat-number {
  font-family: var(--serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.2;
  margin-bottom: 0.3rem;
}

.profile__stat-label {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ── Services / What I Do ── */
.services-list {
  margin-top: 2.5rem;
}

.service-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border-light);
  align-items: baseline;
}

.service-item:first-child {
  border-top: 1px solid var(--border);
}

.service-item__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--black);
  line-height: 1.5;
}

.service-item__desc {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.85;
}

.service-item__desc strong {
  color: var(--body);
  font-weight: 500;
}

/* ── Case Studies ── */
.cases {
  margin-top: 2.5rem;
}

.case {
  padding: 3rem 0;
  border-bottom: 1px solid var(--border-light);
}

.case:first-child {
  border-top: 1px solid var(--border-light);
}

.case__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.case__client {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--black);
}

.case__role {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
}

.case__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1rem;
}

.case__challenge,
.case__result {
  font-size: 0.9rem;
  line-height: 1.85;
  color: var(--muted);
}

.case__meta-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.case__kpi {
  display: flex;
  gap: 2.5rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.case__kpi-item {
  display: flex;
  flex-direction: column;
}

.case__kpi-number {
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.2;
}

.case__kpi-label {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.2rem;
}

.case__tags {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.case__tag {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 0.2rem 0.6rem;
  letter-spacing: 0.02em;
}

/* ── Thoughts ── */
.thoughts-list {
  margin-top: 2rem;
}

.thoughts-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--border-light);
  transition: padding-left 0.2s;
}

.thoughts-item:first-child {
  border-top: 1px solid var(--border-light);
}

.thoughts-item:hover {
  padding-left: 0.5rem;
}

.thoughts-item__title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--black);
}

.thoughts-item__arrow {
  font-size: 0.85rem;
  color: var(--light);
  flex-shrink: 0;
  margin-left: 1rem;
  transition: color 0.2s;
}

.thoughts-item:hover .thoughts-item__arrow {
  color: var(--accent);
}

/* ── Contact ── */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 2.5rem;
  align-items: start;
}

.contact__text {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.9;
}

.contact__form {
  display: grid;
  gap: 1rem;
}

.contact__form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--body);
  letter-spacing: 0.02em;
}

.contact__form input,
.contact__form textarea {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--border);
  font-size: 0.95rem;
  font-family: var(--sans);
  color: var(--body);
  background: var(--bg);
  transition: border-color 0.2s;
}

.contact__form input:focus,
.contact__form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.contact__form textarea {
  resize: vertical;
  min-height: 140px;
}

.contact__btn {
  display: inline-block;
  padding: 0.7rem 2rem;
  background: var(--accent);
  color: #fff;
  border: none;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: var(--sans);
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.2s;
  justify-self: start;
}

.contact__btn:hover {
  background: var(--accent-dark);
}

/* ── Footer ── */
.footer {
  background: var(--black);
  color: rgba(255,255,255,0.5);
  padding: 3rem 0 1.5rem;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer__brand {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.06em;
}

.footer__links {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

.footer__links a {
  color: rgba(255,255,255,0.4);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}

.footer__links a:hover {
  color: rgba(255,255,255,0.8);
}

.footer__copy {
  width: 100%;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

/* ── Article Pages ── */
.article {
  max-width: 720px;
  margin: 0 auto;
  padding: 7rem 2.5rem 5rem;
}

.article__header {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.article__date {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--light);
  margin-bottom: 1rem;
}

.article__title {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--black);
  line-height: 1.45;
  margin-bottom: 1.5rem;
}

.article__intro {
  font-size: 1.02rem;
  color: var(--muted);
  line-height: 1.9;
}

.article__body {
  font-size: 0.98rem;
  line-height: 1.9;
  color: var(--body);
}

.article__body p {
  margin-bottom: 1.2rem;
}

.article__body h2 {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--black);
  margin-top: 3rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-light);
}

.article__body h3 {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--black);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.article__body ul,
.article__body ol {
  margin: 1.5rem 0;
  padding-left: 1.5rem;
}

.article__body li {
  margin-bottom: 0.75rem;
}

.article__body strong {
  color: var(--black);
  font-weight: 600;
}

.article__callout {
  background: var(--bg-warm);
  border-left: 3px solid var(--accent);
  padding: 1.5rem;
  margin: 2rem 0;
}

.article__callout p {
  margin-bottom: 0.5rem;
}

.article__callout p:last-child {
  margin-bottom: 0;
}

.article__callout ul {
  margin: 0.75rem 0 0;
  padding-left: 1.5rem;
}

.article__callout li {
  margin-bottom: 0.5rem;
}

.article__keybox {
  background: var(--bg-warm);
  padding: 1.5rem;
  margin: 2rem 0;
}

.article__keybox h4 {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 0.75rem;
}

.article__keybox ul {
  margin: 0;
  padding-left: 1.5rem;
}

.article__keybox li {
  margin-bottom: 0.5rem;
}

.article__image {
  width: 100%;
  height: auto;
  margin: 2rem 0;
}

.article__caption {
  text-align: center;
  color: var(--light);
  font-size: 0.85rem;
  margin-top: -1rem;
  margin-bottom: 2rem;
}

.article__references {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
}

.article__references h3 {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--light);
  margin-bottom: 0.75rem;
}

.article__references ul {
  padding-left: 1.5rem;
}

.article__references li {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.article__back {
  display: inline-block;
  margin-top: 3rem;
  color: var(--accent);
  font-weight: 500;
  font-size: 0.95rem;
}

.article__back:hover {
  color: var(--accent-dark);
}

/* ── Utilities ── */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }

.divider {
  border: none;
  border-top: 1px solid var(--border-light);
  margin: 0;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .wrap {
    padding: 0 1.5rem;
  }

  .nav__inner {
    padding: 0 1.5rem;
  }

  .nav__links {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    width: 100%;
    flex-direction: column;
    background: rgba(255,255,255,0.98);
    padding: 1rem 1.5rem;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border-light);
  }

  .nav__links.active {
    display: flex;
  }

  .nav__toggle {
    display: flex;
  }

  .hero {
    padding: 6rem 0 4rem;
  }

  .hero__title {
    font-size: 1.5rem;
  }

  .profile {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .profile__sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  .service-item {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .case__body {
    grid-template-columns: 1fr;
  }

  .case__kpi {
    gap: 1.5rem;
  }

  .contact__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .article {
    padding: 5.5rem 1.5rem 3rem;
  }

  .article__title {
    font-size: 1.6rem;
  }

  .article__body h2 {
    font-size: 1.25rem;
  }

  .article__body h3 {
    font-size: 1.05rem;
  }

  .section {
    padding: 3.5rem 0;
  }

  .section--lg {
    padding: 4.5rem 0;
  }

  .section__title {
    font-size: 1.5rem;
  }

  .footer__inner {
    flex-direction: column;
    gap: 0.75rem;
  }
}

@media (max-width: 480px) {
  .hero__title {
    font-size: 1.25rem;
  }

  .profile__sidebar {
    grid-template-columns: 1fr;
  }

  .case__header {
    flex-direction: column;
  }

  .thoughts-item {
    flex-direction: column;
    gap: 0.25rem;
  }

  .case__kpi-number {
    font-size: 1.4rem;
  }
}
