/* ============================================
   SMEJ Corporate Site
   Design Philosophy: Serenity / Whitespace / Dignity / Timelessness
   ============================================ */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img { max-width: 100%; height: auto; display: block; }
button { border: none; background: none; cursor: pointer; font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ---------- Variables ---------- */
:root {
  --color-bg: #FFFFFF;
  --color-text: #1A1A1A;
  --color-accent: #F5F3F0;
  --color-line: rgba(26, 26, 26, 0.12);
  --color-mute: rgba(26, 26, 26, 0.55);

  --font-jp: "Noto Serif JP", "游明朝", "Yu Mincho", serif;
  --font-en: "Cormorant Garamond", "Optima", serif;

  --max-w: 900px;
  --pad-x: 32px;
  --pad-y: 140px;
}

/* ---------- Body ---------- */
body {
  font-family: var(--font-jp);
  font-weight: 300;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.9;
  letter-spacing: 0.04em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 0.5px solid var(--color-line);
}
.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 18px var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header-logo {
  display: block;
  height: 36px;
}
.header-logo-img {
  height: 100%;
  width: auto;
}
.nav-list {
  display: flex;
  gap: 36px;
}
.nav-list a {
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.14em;
  color: var(--color-text);
  position: relative;
  padding: 4px 0;
  transition: opacity 0.3s ease;
}
.nav-list a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 0.5px;
  background: var(--color-text);
  transition: all 0.3s ease;
}
.nav-list a:hover::after,
.nav-list a.is-active::after {
  width: 100%;
  left: 0;
}
.nav-toggle {
  display: none;
  width: 28px;
  height: 22px;
  position: relative;
}
.nav-toggle span {
  display: block;
  position: absolute;
  left: 0;
  width: 100%;
  height: 0.5px;
  background: var(--color-text);
  transition: all 0.3s ease;
}
.nav-toggle span:nth-child(1) { top: 4px; }
.nav-toggle span:nth-child(2) { top: 11px; }
.nav-toggle span:nth-child(3) { top: 18px; }
.nav-toggle.is-open span:nth-child(1) { top: 11px; transform: rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { top: 11px; transform: rotate(-45deg); }

/* ---------- Page Sections ---------- */
.page {
  min-height: 100vh;
  padding: var(--pad-y) var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1.2s ease, transform 1.2s ease;
}
.page.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.page-inner {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
}
.page-label {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.3em;
  color: var(--color-mute);
  margin-bottom: 24px;
  text-transform: uppercase;
}
.page-title {
  font-size: 28px;
  font-weight: 300;
  letter-spacing: 0.3em;
  margin-bottom: 100px;
  padding-bottom: 32px;
  border-bottom: 0.5px solid var(--color-line);
}

/* ---------- Top ---------- */
.page-top {
  min-height: 100vh;
  padding: 0 var(--pad-x);
}
.top-inner {
  text-align: center;
  padding-top: 60px;
}
.top-logo {
  width: 320px;
  max-width: 60vw;
  margin: 0 auto 64px;
}
.top-tagline {
  font-size: 22px;
  font-weight: 300;
  letter-spacing: 0.5em;
  margin-bottom: 20px;
  text-indent: 0.5em;
}
.top-tagline-en {
  font-family: var(--font-en);
  font-size: 15px;
  font-weight: 300;
  letter-spacing: 0.25em;
  color: var(--color-mute);
  font-style: italic;
}

/* ---------- Philosophy ---------- */
.page-philosophy .page-inner {
  text-align: center;
}
.philosophy-core {
  padding: 120px 0;
}
.philosophy-statement {
  font-size: 28px;
  font-weight: 300;
  letter-spacing: 0.6em;
  margin-bottom: 28px;
  text-indent: 0.6em;
}
.philosophy-statement-en {
  font-family: var(--font-en);
  font-size: 16px;
  font-weight: 300;
  letter-spacing: 0.25em;
  color: var(--color-mute);
  font-style: italic;
}

/* ---------- About ---------- */
.about-list {
  display: flex;
  flex-direction: column;
}
.about-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  padding: 32px 0;
  border-bottom: 0.5px solid var(--color-line);
  align-items: baseline;
}
.about-row:first-child {
  border-top: 0.5px solid var(--color-line);
}
.about-row dt {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--color-mute);
  text-transform: uppercase;
}
.about-row dd {
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.08em;
}

/* ---------- Business ---------- */
.business-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.business-item {
  padding: 56px 0;
  border-bottom: 0.5px solid var(--color-line);
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 40px;
  align-items: baseline;
}
.business-item:first-child {
  border-top: 0.5px solid var(--color-line);
}
.business-number {
  font-family: var(--font-en);
  font-size: 16px;
  font-weight: 300;
  letter-spacing: 0.2em;
  color: var(--color-mute);
}
.business-name {
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.2em;
  margin-bottom: 8px;
}
.business-name-en {
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 300;
  font-style: italic;
  letter-spacing: 0.2em;
  color: var(--color-mute);
}

/* ---------- Group ---------- */
.group-list {
  display: flex;
  flex-direction: column;
}
.group-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  padding: 48px 0;
  border-bottom: 0.5px solid var(--color-line);
  align-items: baseline;
  transition: padding 0.4s ease;
  position: relative;
}
.group-item:first-child {
  border-top: 0.5px solid var(--color-line);
}
.group-item::after {
  content: "→";
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translate(0, -50%);
  font-family: var(--font-en);
  font-size: 18px;
  opacity: 0.4;
  transition: all 0.4s ease;
}
.group-item:hover::after {
  right: 0;
  opacity: 1;
}
.group-item:hover .group-name {
  letter-spacing: 0.3em;
}
.group-name {
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.25em;
  transition: letter-spacing 0.4s ease;
}
.group-url {
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0.15em;
  color: var(--color-mute);
  font-style: italic;
  padding-right: 32px;
}

/* ---------- Contact ---------- */
.contact-info {
  margin-bottom: 80px;
  padding-bottom: 40px;
  border-bottom: 0.5px solid var(--color-line);
  font-size: 15px;
  line-height: 2.2;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.form-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.form-row label {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--color-mute);
  text-transform: uppercase;
}
.form-row input,
.form-row textarea {
  font-family: var(--font-jp);
  font-size: 15px;
  font-weight: 300;
  color: var(--color-text);
  border: none;
  border-bottom: 0.5px solid var(--color-line);
  background: transparent;
  padding: 12px 0;
  transition: border-color 0.3s ease;
  resize: vertical;
  letter-spacing: 0.06em;
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-bottom-color: var(--color-text);
}
.form-submit {
  align-self: flex-start;
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.35em;
  padding: 18px 56px;
  border: 0.5px solid var(--color-text);
  background: transparent;
  color: var(--color-text);
  text-transform: uppercase;
  transition: all 0.4s ease;
  margin-top: 16px;
}
.form-submit:hover {
  background: var(--color-text);
  color: #fff;
  letter-spacing: 0.45em;
}
.form-note {
  font-size: 13px;
  color: var(--color-mute);
  margin-top: 8px;
  min-height: 1.5em;
}

/* ---------- Footer ---------- */
.footer {
  border-top: 0.5px solid var(--color-line);
  padding: 80px var(--pad-x);
  margin-top: 80px;
}
.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  text-align: center;
}
.footer-tagline {
  font-size: 16px;
  font-weight: 300;
  letter-spacing: 0.5em;
  margin-bottom: 24px;
  text-indent: 0.5em;
}
.footer-copy {
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.2em;
  color: var(--color-mute);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
  :root {
    --pad-x: 24px;
    --pad-y: 100px;
  }
  .header-inner { padding: 14px 24px; }
  .header-logo { height: 28px; }
  .nav-list {
    position: fixed;
    top: 0; right: -100%;
    width: 100%;
    height: 100vh;
    background: #fff;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    transition: right 0.5s ease;
  }
  .nav-list.is-open { right: 0; }
  .nav-list a { font-size: 16px; }
  .nav-toggle { display: block; z-index: 110; }

  .top-tagline { font-size: 18px; letter-spacing: 0.4em; }
  .top-tagline-en { font-size: 13px; }
  .top-logo { margin-bottom: 48px; }

  .page-title { font-size: 22px; margin-bottom: 64px; }

  .philosophy-statement { font-size: 20px; letter-spacing: 0.4em; }
  .philosophy-statement-en { font-size: 13px; }

  .about-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 24px 0;
  }

  .business-item {
    grid-template-columns: 60px 1fr;
    gap: 24px;
    padding: 40px 0;
  }
  .business-name { font-size: 18px; letter-spacing: 0.15em; }

  .group-item {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 32px 0;
  }
  .group-name { font-size: 18px; }
  .group-url { padding-right: 0; }
  .group-item::after { display: none; }

  .footer { padding: 60px 24px; }
}

@media (max-width: 480px) {
  .top-tagline { font-size: 16px; }
  .philosophy-statement { font-size: 17px; letter-spacing: 0.3em; }
}

/* ---------- Print ---------- */
@media print {
  .header, .footer, .nav, .contact-form { display: none; }
  .page { page-break-after: always; min-height: auto; }
}
