/* ===== Base ===== */
:root {
  --bg: #FAFAF7;
  --paper: #FFFFFF;
  --pale: #F2EEE6;
  --ink: #0A0A0A;
  --dark-bg: #1A1815;
  --sub: #3A3A38;
  --mute: #777570;
  --line: #DDD7CB;
  --line-soft: #E9E4D8;
  --gold: #C9A961;
  --gold-dark: #8B7438;
  --max-w: 1080px;
  font-family: "Noto Sans JP", "Helvetica Neue", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-feature-settings: "palt";
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.95;
  -webkit-font-smoothing: antialiased;
  font-weight: 400;
}
a { color: inherit; text-decoration: none; transition: opacity 0.25s ease; }
a:hover { opacity: 0.6; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 32px; }

/* ===== Header ===== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  background: rgba(250,250,247,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  padding: 18px 32px;
  max-width: 1280px;
  margin: 0 auto;
}
.logo {
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.22em;
  display: inline-flex;
  align-items: center;
}
.site-header .logo img {
  height: 35px;
  width: auto;
  display: block;
}
@media (max-width: 720px) {
  .site-header .logo img { height: 26px; }
}
.global-nav { margin-left: auto; }
.global-nav ul {
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.92rem;
}
.global-nav a { color: var(--sub); }
.header-cta {
  font-size: 0.88rem;
  border-bottom: 1px solid var(--ink);
  padding: 4px 0;
  margin-left: 32px;
}
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 6px;
}
.menu-toggle span { width: 22px; height: 1.5px; background: var(--ink); }

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 220px 32px 160px;
  overflow: hidden;
}
.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 32px;
}
.hero-logo img {
  width: clamp(160px, 18vw, 220px);
  height: auto;
  display: block;
  margin: 0 auto;
}
@media (max-width: 720px) {
  .hero-logo img { width: 140px; }
}
.hero-title {
  font-size: clamp(2.6rem, 6.4vw, 5.4rem);
  line-height: 1.18;
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.hero-title > span { display: block; }
.hero-text {
  color: var(--ink);
  margin: 0;
  font-size: 1.05rem;
  line-height: 2.1;
  font-weight: 600;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(250,250,247,0.80) 0%, rgba(250,250,247,0.65) 45%, rgba(250,250,247,0.40) 100%),
    url("hero.jpg") center 20%/cover no-repeat;
  z-index: 0;
}
.hero-bg::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--gold);
  z-index: 1;
}
@media (max-width: 720px) {
  .hero-bg {
    background:
      linear-gradient(180deg, rgba(250,250,247,0.78) 0%, rgba(250,250,247,0.55) 100%),
      url("hero-mobile.jpg") center 20%/cover no-repeat;
  }
}

/* ===== Section base ===== */
.section { padding: 140px 0; }
.section.pale { background: var(--pale); }

/* ===== Heading ===== */
.head-jp {
  font-size: clamp(1.6rem, 2.4vw, 1.85rem);
  margin: 0 0 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.head-jp::before {
  content: "";
  display: block;
  width: 0;
  height: 2px;
  background: var(--gold);
  margin-bottom: 28px;
  transition: width 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.15s;
}
.head-jp.is-visible::before {
  width: 28px;
}
.head-jp-light { color: var(--bg); }
.head-jp-light::before { background: var(--gold); }
.head-sub {
  margin: 0 0 56px;
  color: var(--mute);
  font-size: 0.96rem;
}
.head-sub-light { color: rgba(255,255,255,0.78); }

/* ===== Prose (About / Team) ===== */
.prose { max-width: 720px; }
.prose .lead {
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 32px;
  line-height: 2;
}
.prose p { color: var(--sub); margin: 0 0 22px; font-size: 0.98rem; line-height: 2.1; }
.prose blockquote {
  margin: 32px 0;
  padding: 4px 0 4px 22px;
  border-left: 2px solid var(--gold);
  color: var(--ink);
  font-size: 1rem;
  line-height: 2.1;
}
.prose .closing {
  font-size: 1.05rem;
  color: var(--ink);
  font-weight: 500;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  line-height: 2;
}

/* ===== Business ===== */
.biz-axis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: 16px;
  border-top: 1px solid var(--line);
}
.biz-axis-card {
  padding: 56px 56px 56px 0;
  border-bottom: 1px solid var(--line);
}
.biz-axis-card:nth-child(1) {
  border-right: 1px solid var(--line);
}
.biz-axis-card:nth-child(2) {
  padding-left: 56px;
  padding-right: 0;
}
.biz-h3 {
  font-size: 2.2rem;
  margin: 0 0 28px;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.4;
}
.biz-line {
  font-size: 0.85rem;
  color: var(--mute);
  margin: 0 0 24px;
  letter-spacing: 0.2em;
}
.biz-axis-card .biz-pitch {
  color: var(--ink);
  font-size: 1.32rem;
  font-weight: 700;
  line-height: 1.7;
  margin: 0 0 26px;
  letter-spacing: 0.01em;
}
.biz-axis-card .biz-body {
  color: var(--sub);
  margin: 0 0 32px;
  font-size: 0.96rem;
  line-height: 2.1;
}
.biz-cta {
  display: inline-block;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 4px;
  letter-spacing: 0.04em;
}

/* ===== Team ===== */
.team-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  padding: 32px 0 72px;
  margin-bottom: 72px;
  border-bottom: 1px solid var(--line);
}
.team-stat .big {
  font-size: 5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  color: var(--ink);
  line-height: 1;
}
.team-stat .big span {
  font-size: 1.2rem;
  color: var(--gold);
  margin-left: 8px;
  letter-spacing: 0.02em;
  font-weight: 600;
}
.team-stat .cap {
  color: var(--sub);
  font-size: 0.94rem;
  margin: 0;
  line-height: 2;
  max-width: 380px;
}

/* ===== CEO ===== */
.ceo-block {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 56px;
  align-items: start;
}
.ceo-photo {
  width: 240px; height: 320px;
  background-image: url("ceo_photo.jpg");
  background-size: cover;
  background-position: center 18%;
}
.ceo-info .role {
  color: var(--mute);
  font-size: 0.88rem;
  margin: 0 0 8px;
  letter-spacing: 0.05em;
}
.ceo-info h3 {
  font-size: 1.6rem;
  margin: 0 0 28px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.ceo-info h3 .kana {
  font-size: 0.85rem;
  color: var(--mute);
  margin-left: 14px;
  font-weight: 400;
  letter-spacing: 0.05em;
}
.ceo-bio-lead {
  font-size: 1.04rem;
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
  line-height: 2;
}
.ceo-info p { color: var(--sub); margin: 0 0 22px; font-size: 0.96rem; line-height: 2.1; }
.ceo-info .ceo-closing {
  color: var(--ink);
  font-weight: 500;
  font-size: 0.98rem;
  line-height: 2.1;
  margin: 28px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.ceo-foot {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--mute);
}
.ceo-foot a { border-bottom: 1px solid var(--line); }

.ceo-social {
  display: flex;
  gap: 12px;
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
}
.ceo-social li { margin: 0; }
.ceo-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
.ceo-social a:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--bg);
  opacity: 1;
}
.ceo-social svg { display: block; }

/* ===== Target list ===== */
.target-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.target-list li {
  margin: 0;
  display: flex;
  flex-direction: column;
  padding: 48px 40px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 4px;
  position: relative;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
.target-list li:hover {
  border-color: var(--gold);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}
.target-list h3 {
  font-size: 1.25rem;
  margin: 0 0 20px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.02em;
}
.target-list p {
  color: var(--sub);
  margin: 0;
  font-size: 0.95rem;
  line-height: 2.1;
}

/* ===== Work — 3-column compact grid ===== */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px 28px;
  margin-top: 16px;
}
.work-card {
  display: flex;
  flex-direction: column;
}
.work-card-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  background-color: var(--bg);
  margin-bottom: 18px;
  position: relative;
}
.work-card-photo--contain {
  background-size: contain;
  background-repeat: no-repeat;
  background-color: var(--paper);
}
.work-card-photo--contain::after { display: none; }
.work-card-photo::after {
  content: "";
  position: absolute;
  left: 12px; bottom: 12px;
  width: 24px; height: 1px;
  background: var(--bg);
}
.work-card-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.work-card-meta {
  font-size: 0.78rem;
  color: var(--mute);
  margin: 0 0 10px;
  letter-spacing: 0.06em;
}
.work-card-title {
  font-size: 1.05rem;
  margin: 0 0 12px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.02em;
}
.work-card-body {
  color: var(--sub);
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.9;
}
.work-card-link {
  display: inline-block;
  align-self: flex-start;
  margin-top: 14px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 3px;
  letter-spacing: 0.04em;
}

/* ===== Company ===== */
.company-table { margin: 0 auto; border-top: 1px solid var(--line); max-width: 880px; }
.company-table > div {
  display: grid;
  grid-template-columns: 200px 1fr;
  border-bottom: 1px solid var(--line);
  padding: 22px 4px;
  align-items: baseline;
}
.company-table dt { font-weight: 600; margin: 0; font-size: 0.9rem; color: var(--ink); }
.company-table dd { margin: 0; color: var(--sub); font-size: 0.96rem; line-height: 1.9; }
.company-table dd a { border-bottom: 1px solid var(--line); }
.company-table .biz-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.company-table .biz-list li {
  position: relative;
  padding-left: 14px;
  margin-bottom: 4px;
  line-height: 1.95;
}
.company-table .biz-list li:last-child { margin-bottom: 0; }
.company-table .biz-list li::before {
  content: "・";
  position: absolute;
  left: 0;
  color: var(--gold);
}

/* ===== Contact ===== */
.contact { background: var(--bg); }
.contact .head-sub { margin-bottom: 56px; }
.contact-routes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 0 0 56px;
  border-top: 1px solid rgba(255,255,255,0.18);
  border-bottom: 1px solid rgba(255,255,255,0.18);
}
.contact-route {
  padding: 36px 32px;
  border-right: 1px solid rgba(255,255,255,0.18);
  color: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.contact-route:last-child { border-right: 0; }
.contact-route .route-tag {
  font-size: 0.86rem;
  color: var(--gold);
  margin: 0;
  font-weight: 600;
}
.contact-route p:last-child { font-size: 1.05rem; margin: 0; line-height: 1.8; }
.contact-route:hover { background: rgba(255,255,255,0.04); opacity: 1; }

.contact-direct {
  text-align: center;
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.18);
}
.contact-direct-label {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.6);
  margin: 0 0 14px;
  font-weight: 600;
  text-transform: uppercase;
}
.contact-direct .mail {
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 4px;
  color: var(--bg);
}

/* ===== Contact (Google Form CTA) ===== */
.contact-cta-wrap {
  text-align: center;
  margin-top: 16px;
}
.contact-cta-button {
  display: inline-block;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--gold);
  padding: 20px 64px;
  font-size: 0.96rem;
  letter-spacing: 0.18em;
  font-weight: 600;
  transition: background 0.3s ease, color 0.3s ease;
}
.contact-cta-button:hover {
  background: var(--gold);
  color: var(--bg);
  opacity: 1;
}
.contact-cta-note {
  margin: 28px 0 0;
  font-size: 0.84rem;
  color: var(--mute);
  letter-spacing: 0.04em;
}

/* ===== Contact Form (legacy / unused — kept for revert option) ===== */
.contact-form {
  max-width: 720px;
  margin: 0 auto;
  text-align: left;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 36px;
}
.form-row {
  margin-bottom: 36px;
}
.form-row label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  color: var(--sub);
  margin-bottom: 14px;
  font-weight: 600;
  text-transform: uppercase;
}
.form-row .req {
  color: var(--gold-dark);
  margin-left: 6px;
  letter-spacing: 0;
}
.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="tel"],
.form-row select,
.form-row textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  padding: 10px 0;
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.3s ease;
  border-radius: 0;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-bottom-color: var(--gold);
}
.form-row select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path d='M2 4l4 4 4-4' stroke='%238B7438' stroke-width='1.5' fill='none' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 4px center;
  padding-right: 24px;
}
.form-row select option {
  background: var(--bg);
  color: var(--ink);
}
.form-row textarea {
  resize: vertical;
  min-height: 160px;
  line-height: 1.9;
}
.form-row textarea::placeholder,
.form-row input::placeholder {
  color: var(--mute);
}
.form-consent label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  text-transform: none;
  font-weight: 400;
  color: var(--sub);
  cursor: pointer;
  margin: 0;
}
.form-consent input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border: 1px solid var(--mute);
  background: transparent;
  cursor: pointer;
  position: relative;
  margin: 0;
  flex-shrink: 0;
  border-radius: 0;
}
.form-consent input[type="checkbox"]:checked {
  border-color: var(--gold);
  background: var(--gold);
}
.form-consent input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 4px; top: 1px;
  width: 5px; height: 9px;
  border: solid var(--bg);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.form-submit {
  text-align: center;
  margin-top: 8px;
}
.form-submit button {
  display: inline-block;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--gold);
  padding: 18px 64px;
  font-size: 0.94rem;
  letter-spacing: 0.18em;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
  border-radius: 0;
}
.form-submit button:hover {
  background: var(--gold);
  color: var(--bg);
}

/* ===== Recruit CTA ===== */
.recruit-cta {
  background: var(--pale);
  text-align: center;
  padding: 140px 32px;
}
.recruit-cta .container {
  max-width: 720px;
}
.recruit-cta-label {
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  color: var(--gold-dark);
  margin: 0 0 24px;
  font-weight: 600;
}
.recruit-cta-title {
  font-size: clamp(1.6rem, 2.6vw, 2rem);
  margin: 0 0 24px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.recruit-cta-text {
  color: var(--sub);
  margin: 0 0 40px;
  font-size: 0.96rem;
  line-height: 2;
}
.recruit-cta-button {
  display: inline-block;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--gold);
  padding: 18px 48px;
  font-size: 0.94rem;
  letter-spacing: 0.16em;
  font-weight: 600;
  transition: background 0.3s ease, color 0.3s ease;
}
.recruit-cta-button:hover {
  background: var(--gold);
  color: var(--bg);
  opacity: 1;
}

/* ===== News ===== */
.news-list {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.news-list li {
  display: grid;
  grid-template-columns: 130px 110px 1fr;
  align-items: center;
  gap: 28px;
  padding: 24px 8px;
  border-bottom: 1px solid var(--line);
}
.news-list time {
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  color: var(--sub);
  font-variant-numeric: tabular-nums;
}
.news-cat {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--sub);
  border: 1px solid var(--line);
  padding: 5px 12px;
  text-align: center;
  display: inline-block;
  width: fit-content;
  white-space: nowrap;
}
.news-title {
  margin: 0;
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.7;
}

/* ===== FAQ ===== */
.faq-list {
  margin: 32px 0 0;
  border-top: 1px solid var(--line);
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item > summary {
  list-style: none;
  cursor: pointer;
  padding: 26px 56px 26px 8px;
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.02em;
  position: relative;
  user-select: none;
  transition: color 0.25s ease;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary:hover { color: var(--gold); }
.faq-item > summary::before,
.faq-item > summary::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  background: var(--ink);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.faq-item > summary::before {
  width: 16px; height: 1.5px;
  margin-top: -0.75px;
}
.faq-item > summary::after {
  width: 1.5px; height: 16px;
  margin-top: -8px;
  margin-right: 7.25px;
  right: 12px;
}
.faq-item[open] > summary::after { transform: scaleY(0); opacity: 0; }
.faq-body {
  padding: 4px 8px 28px;
  color: var(--sub);
  font-size: 0.95rem;
  line-height: 2.1;
}
.faq-body p { margin: 0; }
@media (max-width: 720px) {
  .news-list li {
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "date cat"
      "title title";
    gap: 8px 16px;
    padding: 22px 4px;
  }
  .news-list time { grid-area: date; }
  .news-cat { grid-area: cat; justify-self: start; }
  .news-title { grid-area: title; }
  .faq-item > summary { padding: 22px 44px 22px 4px; font-size: 0.96rem; }
  .faq-body { padding: 0 4px 24px; }
}

/* ===== Legal page (Privacy Policy 等) ===== */
.legal-page {
  padding: 160px 32px 120px;
  max-width: 800px;
  margin: 0 auto;
}
.legal-back {
  margin: 0 0 32px;
  font-size: 0.9rem;
}
.legal-back a {
  color: var(--mute);
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
}
.legal-title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin: 0 0 32px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.legal-lead {
  color: var(--sub);
  font-size: 0.98rem;
  line-height: 2;
  margin: 0 0 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}
.legal-h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 40px 0 16px;
  letter-spacing: 0.02em;
}
.legal-page p {
  color: var(--sub);
  font-size: 0.95rem;
  line-height: 2;
  margin: 0 0 16px;
}
.legal-list {
  margin: 0 0 16px;
  padding-left: 1.4em;
  color: var(--sub);
  font-size: 0.95rem;
  line-height: 2;
}
.legal-list li { margin-bottom: 4px; }
.legal-contact {
  background: var(--pale);
  padding: 24px 28px;
  margin: 16px 0 24px;
  border-radius: 4px;
}
.legal-contact p { margin: 0 0 12px; }
.legal-contact p:last-child { margin: 0; }
.legal-contact a { color: var(--ink); border-bottom: 1px solid var(--gold); }
.legal-revised {
  margin-top: 56px !important;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--mute);
  font-size: 0.85rem !important;
}

/* ===== 404 Error page ===== */
.error-page {
  padding: 200px 32px 160px;
  text-align: center;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.error-page .container { width: 100%; }
.error-num {
  font-size: clamp(5rem, 14vw, 8rem);
  font-weight: 700;
  margin: 0 0 24px;
  color: var(--gold);
  letter-spacing: -0.03em;
  line-height: 1;
}
.error-title {
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  margin: 0 0 24px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.error-text {
  color: var(--sub);
  font-size: 0.96rem;
  line-height: 2;
  margin: 0 0 40px;
}
.error-cta {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 600;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 4px;
  letter-spacing: 0.04em;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--dark-bg);
  color: rgba(255,255,255,0.7);
  padding: 80px 32px 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.footer-brand .logo { color: var(--bg); font-size: 0.95rem; letter-spacing: 0.22em; margin: 0 0 22px; }
.footer-brand .logo img {
  height: 32px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}
.footer-brand .address { font-size: 0.85rem; line-height: 2; margin: 0 0 24px; }
.footer-brand .sns {
  list-style: none;
  display: flex;
  gap: 18px;
  padding: 0; margin: 0;
  font-size: 0.85rem;
}
.footer-nav ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px 24px;
  margin: 0; padding: 0;
  font-size: 0.9rem;
}
.footer-bottom {
  max-width: var(--max-w);
  margin: 56px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}

/* ===== Reveal Animations (Scroll Fade-in + Slide up) ===== */
.hero-title,
.hero-text,
.hero-logo,
.head-jp,
.head-sub,
.biz-axis-card,
.target-list li,
.work-card,
.team-stats,
.ceo-block,
.company-table,
.contact-cta-wrap,
.recruit-cta .container {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.hero-title { transition-delay: 0s; }
.hero-text { transition-delay: 0.15s; }
.hero-logo { transition-delay: 0.3s; }
.hero-title.is-visible,
.hero-text.is-visible,
.hero-logo.is-visible,
.head-jp.is-visible,
.head-sub.is-visible,
.biz-axis-card.is-visible,
.target-list li.is-visible,
.work-card.is-visible,
.team-stats.is-visible,
.ceo-block.is-visible,
.company-table.is-visible,
.contact-cta-wrap.is-visible,
.recruit-cta .container.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .hero-title, .hero-text, .hero-logo,
  .head-jp, .head-sub, .biz-axis-card, .target-list li, .work-card,
  .team-stats, .ceo-block, .company-table,
  .contact-cta-wrap, .recruit-cta .container {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .head-jp::before { width: 28px; transition: none; }
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .biz-axis { grid-template-columns: 1fr; }
  .biz-axis-card,
  .biz-axis-card:nth-child(1),
  .biz-axis-card:nth-child(2) {
    padding: 36px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .team-stats { grid-template-columns: 1fr; gap: 32px; }
  .ceo-block { grid-template-columns: 1fr; }
  .ceo-photo { width: 100%; max-width: 280px; height: 360px; }
  .target-list { grid-template-columns: 1fr; gap: 24px; }
  .target-list li { padding: 36px 28px; }
  .work-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-routes { grid-template-columns: 1fr; }
  .contact-route { border-right: 0; border-bottom: 1px solid rgba(255,255,255,0.18); }
  .form-grid { grid-template-columns: 1fr; gap: 0; }
  .footer-inner { grid-template-columns: 1fr; }
  .company-table > div { grid-template-columns: 130px 1fr; }
}
@media (max-width: 720px) {
  .global-nav, .header-cta { display: none; }
  .menu-toggle { display: flex; }
  .global-nav.open {
    display: block;
    position: absolute;
    top: 64px; right: 0; left: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 24px;
  }
  .global-nav.open ul { flex-direction: column; gap: 16px; }
  .section { padding: 96px 0; }
  .hero { padding: 160px 24px 96px; }
  .footer-nav ul { grid-template-columns: repeat(2, 1fr); }
}
