/* =========================================================
   Stellar Digital Consulting
   白基調 / 落ち着いた品の良さ
   ========================================================= */

:root {
  --bg: #ffffff;
  --bg-elevated: #f7f6f3;
  --bg-card: #faf9f6;
  --border: #e5e3de;
  --text: #1a1a1a;
  --text-muted: #5a5a5a;
  --text-dim: #8a8a8a;
  --accent: #2a2a2a;
  --max-width: 1280px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  font-weight: 400;
  line-height: 1.9;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

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

a:hover { opacity: 0.6; }

.serif {
  font-family: "Cormorant Garamond", "EB Garamond", Georgia, "Yu Mincho", "游明朝", serif;
  font-weight: 400;
}

/* ---------- Layout ---------- */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 3rem;
}

.section { padding: 8rem 0; }

/* ---------- Header / Nav ---------- */

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.3rem;
  letter-spacing: 0.05em;
  color: var(--text);
  font-weight: 500;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  color: var(--text);
  font-weight: 500;
}

.nav-links a.active { color: var(--text-dim); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ---------- Hero (Home) ---------- */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 12rem 0 6rem;
  background: var(--bg);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 3rem;
  width: 100%;
}

.hero .hero-eng {
  font-family: "Marcellus", Georgia, serif;
  font-size: clamp(3.5rem, 8vw, 6.5rem);
  font-weight: 400;
  font-style: normal;
  line-height: 1.1;
  letter-spacing: 0.005em;
  margin-bottom: 2.5rem;
  color: var(--text);
}

.hero .hero-jp {
  font-size: 1.1rem;
  color: var(--text);
  line-height: 2.2;
  max-width: 720px;
  margin-bottom: 1rem;
  font-weight: 400;
}

.hero .hero-jp-sub {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 2;
  max-width: 720px;
  font-weight: 400;
}

/* ---------- Page Hero (sub pages) ---------- */

.page-hero {
  padding: 12rem 0 5rem;
  border-bottom: 1px solid var(--border);
}

.page-hero .label-en {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-size: 1.3rem;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
  letter-spacing: 0.05em;
}

.page-hero h1 {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 500;
  font-size: clamp(2rem, 3vw, 2.6rem);
  letter-spacing: 0.05em;
  margin-bottom: 1.8rem;
  line-height: 1.5;
}

.page-hero .lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 720px;
  line-height: 2.2;
}

/* ---------- Section heading patterns ---------- */

.section-eyebrow {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1rem;
  letter-spacing: 0.3em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  display: block;
}

.section-title-jp {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 500;
  font-size: clamp(1.7rem, 2.5vw, 2.2rem);
  margin-bottom: 0.6rem;
  letter-spacing: 0.05em;
  line-height: 1.5;
}

.section-title-en {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-size: 1.3rem;
  color: var(--text-muted);
  margin-bottom: 2.2rem;
  letter-spacing: 0.05em;
}

/* ---------- Home: section blocks ---------- */

.home-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
  margin-bottom: 6rem;
}

.home-block.reverse .home-block-image { order: 2; }
.home-block.reverse .home-block-content { order: 1; }

.home-block-image {
  aspect-ratio: 4/3;
  background-size: cover;
  background-position: center;
  filter: grayscale(100%) contrast(1.05);
  border: 1px solid var(--border);
}

.home-block-content p {
  color: var(--text-muted);
  margin-bottom: 2.2rem;
  line-height: 2.1;
  font-size: 1.02rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2.2rem;
  background: var(--bg);
  border: 1px solid var(--text);
  color: var(--text);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.btn:hover {
  background: var(--text);
  color: var(--bg);
  opacity: 1;
}

.btn .arrow {
  font-family: serif;
  font-size: 0.9rem;
}

/* ---------- Service list (Service page) ---------- */

.service-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
  padding: 5rem 0;
  border-bottom: 1px solid var(--border);
}

.service-item:last-child { border-bottom: none; }

.service-item.reverse .service-item-image { order: 2; }
.service-item.reverse .service-item-content { order: 1; }

.service-item-image {
  aspect-ratio: 4/3;
  background-size: cover;
  background-position: center;
  filter: grayscale(100%) contrast(1.05);
  border: 1px solid var(--border);
}

.service-num {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--text-muted);
  letter-spacing: 0.2em;
  margin-bottom: 1rem;
  display: block;
}

.service-item h3 {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 500;
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
  line-height: 1.5;
}

.service-item .h3-en {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  letter-spacing: 0.05em;
}

.service-item p {
  color: var(--text-muted);
  line-height: 2.1;
  font-size: 1.02rem;
}

/* ---------- Mission blocks (Company page) ---------- */

.mission-block {
  padding: 5rem 0;
  border-bottom: 1px solid var(--border);
}

.mission-block:last-child { border-bottom: none; }

.mission-block .mission-num {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-size: 3.5rem;
  color: var(--text-muted);
  line-height: 1;
  margin-bottom: 1.8rem;
}

.mission-block h3 {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 500;
  font-size: 1.55rem;
  letter-spacing: 0.05em;
  margin-bottom: 2rem;
  line-height: 1.7;
  max-width: 900px;
}

.mission-block p {
  color: var(--text-muted);
  line-height: 2.1;
  max-width: 900px;
  font-size: 1.05rem;
}

/* ---------- Features (Company page) ---------- */

.feature-block {
  padding: 4rem 0;
  border-bottom: 1px solid var(--border);
}

.feature-block:last-child { border-bottom: none; }

.feature-block h3 {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 500;
  font-size: 1.4rem;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.feature-block p {
  color: var(--text-muted);
  line-height: 2.1;
  max-width: 900px;
  font-size: 1.05rem;
}

/* ---------- Company hero image ---------- */

.company-image {
  width: 100%;
  aspect-ratio: 21/9;
  background-size: cover;
  background-position: center;
  filter: grayscale(100%) contrast(1.05);
  border: 1px solid var(--border);
  margin: 3rem 0 5rem;
}

/* ---------- Info table ---------- */

.info-table {
  width: 100%;
  border-collapse: collapse;
}

.info-table tr { border-bottom: 1px solid var(--border); }
.info-table tr:first-child { border-top: 1px solid var(--border); }

.info-table th,
.info-table td {
  text-align: left;
  padding: 1.5rem 0;
  vertical-align: top;
  font-weight: 400;
}

.info-table th {
  width: 220px;
  color: var(--text-muted);
  font-size: 1rem;
  letter-spacing: 0.05em;
}

.info-table td {
  color: var(--text);
  font-size: 1rem;
}

.purpose-list {
  margin: 0;
  padding-left: 1.5rem;
  line-height: 2;
}

.purpose-list li {
  padding: 0.15rem 0;
}

/* ---------- Members ---------- */

.member {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 4rem;
  padding: 5rem 0;
  border-bottom: 1px solid var(--border);
}

.member:last-child { border-bottom: none; }

.member-photo {
  aspect-ratio: 3/4;
  background-color: var(--bg-card);
  background-size: cover;
  background-position: center top;
  filter: grayscale(100%) contrast(1.05);
  border: 1px solid var(--border);
}

.member-name {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 1.7rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.member-name-en {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  color: var(--text-muted);
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
  letter-spacing: 0.05em;
}

.member-role {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1rem;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.member-bio {
  color: var(--text-muted);
  line-height: 2.1;
  font-size: 1.02rem;
}

.member-bio p { margin-bottom: 1rem; }

.member-bio .label {
  display: block;
  color: var(--text);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-size: 1.1rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  letter-spacing: 0.05em;
}

/* ---------- Contact block (mailto) ---------- */

.contact-block {
  padding: 2rem 0 4rem;
}

.contact-block .label-en {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
  letter-spacing: 0.05em;
}

.contact-email {
  font-family: "Marcellus", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--text);
  display: inline-block;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
  letter-spacing: 0.02em;
  transition: opacity 0.2s ease;
}

.contact-email:hover { opacity: 0.6; }

.contact-note {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 2.1;
  max-width: 720px;
}

/* ---------- Form ---------- */

.form { max-width: 720px; }

.form-group { margin-bottom: 2rem; }

.form-group label {
  display: block;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  color: var(--text);
  font-weight: 500;
}

.form-group label .required {
  color: var(--text-muted);
  margin-left: 0.5rem;
  font-size: 0.85rem;
  font-weight: 400;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 1rem 1.25rem;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--text);
}

.form-group textarea { min-height: 180px; resize: vertical; }

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.checkbox-group input[type="checkbox"] { width: auto; margin-top: 0.4rem; }

.checkbox-group label {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  font-weight: 400;
}

/* ---------- Footer ---------- */

footer {
  padding: 5rem 0 2rem;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  margin-top: 6rem;
}

.footer-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 3rem;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer-brand {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.4rem;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  font-weight: 500;
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 480px;
  line-height: 2;
}

.footer-col h4 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-size: 1.05rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 1.25rem;
}

.footer-col ul { list-style: none; }

.footer-col ul li { margin-bottom: 0.75rem; }

.footer-col ul li a {
  color: var(--text-muted);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1rem;
  letter-spacing: 0.1em;
}

.footer-col ul li a:hover { color: var(--text); }

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 3rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-dim);
  font-size: 0.85rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  letter-spacing: 0.1em;
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .container { padding: 0 1.5rem; }
  .nav { padding: 1.25rem 1.5rem; }
  .hero-content { padding: 0 1.5rem; }

  .home-block,
  .home-block.reverse,
  .service-item,
  .service-item.reverse {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .home-block.reverse .home-block-image,
  .service-item.reverse .service-item-image { order: -1; }
  .home-block.reverse .home-block-content,
  .service-item.reverse .service-item-content { order: 0; }

  .member { grid-template-columns: 1fr; }
  .member-photo { max-width: 280px; }

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

  .section { padding: 5rem 0; }
  .info-table th { width: 130px; font-size: 0.9rem; }

  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    gap: 0;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .nav-links li { padding: 1rem 0; border-bottom: 1px solid var(--border); }
  .nav-links li:last-child { border-bottom: none; }
}
