/* ============================================================
   MANATSURU GROUP — Main Website
   style.css
   ============================================================ */

/* ---------- RESET ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ---------- DESIGN TOKENS ---------- */
:root {
  /* Background */
  --c-bg:           #F7F4EF;
  --c-surface:      #FFFFFF;
  --c-surface-dim:  #F2EEE8;

  /* Dark — aligned with DIFO hero #1A2A3A */
  --c-dark:         #111E2A;
  --c-navy:         #1A2A3A;
  --c-navy-mid:     #2C3E50;

  /* Gold — aligned with マナツル brand #C8952E */
  --c-gold:         #C8952E;
  --c-gold-light:   #D4A233;
  --c-gold-pale:    #F5EAD4;

  /* Blue — aligned with DIFO accent #4A90D9 */
  --c-blue:         #2A72C0;
  --c-blue-light:   #4A90D9;
  --c-blue-pale:    #E4EDF8;

  /* Text */
  --c-text:         #191919;
  --c-text-mid:     #464646;
  --c-text-muted:   #888888;
  --c-border:       #DDD8CF;

  /* Typography */
  --font-display:   'Cormorant Garamond', 'Noto Serif JP', serif;
  --font-body:      'Noto Sans JP', sans-serif;
  --font-history-date: "Kaiti SC", "STKaiti", "KaiTi", "Songti SC", "Palatino Linotype", "Book Antiqua", serif;

  /* Layout */
  --container-w:    1240px;
  --section-py:     100px;
  --nav-h:          80px;

  /* Easing */
  --ease-out-expo:  cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  font-family: var(--font-body);
  background-color: var(--c-bg);
  color: var(--c-text);
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  text-decoration: none;
  color: inherit;
}

ul, ol {
  list-style: none;
}

/* ---------- LAYOUT ---------- */
.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 48px;
}

.section {
  padding: var(--section-py) 0;
}

/* ---------- TYPE UTILITIES ---------- */
.section-eyebrow {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--c-text-muted);
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.8vw, 3rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--c-dark);
  margin-bottom: 40px;
}

.section-header {
  margin-bottom: 64px;
}

.section-header--center {
  text-align: center;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 30px;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: all 0.28s ease;
  border: none;
}

.btn--outline-gold {
  border: 1px solid rgba(184, 135, 42, 0.55);
  color: var(--c-gold-light);
  background: transparent;
}

.btn--outline-gold:hover {
  background: rgba(184, 135, 42, 0.1);
  border-color: var(--c-gold-light);
  transform: translateX(4px);
}

.btn--ghost {
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.65);
  background: transparent;
}

.btn--ghost:hover {
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.9);
}

/* ---------- SCROLL REVEAL ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease-out-expo),
              transform 0.8s var(--ease-out-expo);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal--d1 { transition-delay: 0.10s; }
.reveal--d2 { transition-delay: 0.20s; }
.reveal--d3 { transition-delay: 0.30s; }
.reveal--d4 { transition-delay: 0.40s; }

/* ---------- HEADER ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  transition: background 0.45s ease, backdrop-filter 0.45s ease, box-shadow 0.45s ease;
}

.header.scrolled {
  background: rgba(11, 22, 36, 0.90);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}

.nav {
  display: flex;
  align-items: center;
  height: var(--nav-h);
  padding: 0 48px;
  transition: height 0.4s ease, padding 0.4s ease;
}

.header.scrolled .nav {
  height: 62px;
}

.nav__logo {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1;
}

.nav__logo-en {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: #ffffff;
}

.nav__logo-ja {
  font-size: 9.5px;
  font-weight: 300;
  letter-spacing: 0.22em;
  color: rgba(255,255,255,0.45);
}

.nav__links {
  display: flex;
  gap: 42px;
  margin-left: auto;
  margin-right: 24px;
}

.nav__links a {
  font-size: 12.5px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.7);
  position: relative;
  padding-bottom: 4px;
  transition: color 0.25s;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--c-gold-light);
  transition: width 0.3s ease;
}

.nav__links a:hover,
.nav__links a.active {
  color: #ffffff;
}

.nav__links a:hover::after,
.nav__links a.active::after {
  width: 100%;
}

/* Hamburger */
.nav__menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav__menu-btn span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: #ffffff;
  transition: all 0.3s ease;
  transform-origin: center;
}

.nav__menu-btn.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__menu-btn.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__menu-btn.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Language Toggle Button */
.nav__lang-btn {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 5px 9px;
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.5);
  transition: border-color 0.25s, color 0.25s;
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav__lang-btn:hover {
  border-color: rgba(255, 255, 255, 0.65);
  color: rgba(255, 255, 255, 0.9);
}

.nav__lang-sep {
  opacity: 0.4;
  margin: 0 1px;
}

/* Highlight the active language */
.nav__lang-btn[data-lang="ja"] .nav__lang-jp,
.nav__lang-btn[data-lang="en"] .nav__lang-en {
  color: #ffffff;
  font-weight: 500;
}

/* Mobile menu language section */
.nav__mobile-lang {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.nav__mobile .nav__lang-btn {
  font-size: 14px;
  padding: 8px 16px;
  letter-spacing: 0.1em;
}

/* Mobile menu */
.nav__mobile {
  display: none;
  background: rgba(11, 22, 36, 0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 24px 48px 32px;
}

.nav__mobile.open {
  display: block;
}

.nav__mobile ul {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.nav__mobile a {
  font-size: 17px;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.8);
  transition: color 0.2s;
}

.nav__mobile a:hover {
  color: #ffffff;
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

/* Background layers */
.hero__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, #0d1a27 0%, #1a2a3a 50%, #1e3040 100%);
}

/* Diagonal geometric accent */
.hero__bg::before {
  content: '';
  position: absolute;
  top: -15%;
  right: -8%;
  width: 52%;
  height: 120%;
  background: linear-gradient(
    165deg,
    rgba(176, 120, 40, 0.10) 0%,
    rgba(24, 88, 184, 0.07) 100%
  );
  border-left: 1px solid rgba(176, 120, 40, 0.12);
  transform: skewX(-5deg);
}

/* Dot grid pattern */
.hero__grid-overlay {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.7) 30%, rgba(0,0,0,0.7) 70%, transparent 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  padding-top: calc(var(--nav-h) + 40px);
  padding-bottom: 120px;
}

.hero__eyebrow {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--c-gold-light);
  margin-bottom: 20px;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 7.5vw, 6.5rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 28px;
}

.hero__subtitle {
  font-size: clamp(0.875rem, 1.4vw, 1rem);
  font-weight: 300;
  color: rgba(255,255,255,0.58);
  line-height: 1.9;
  letter-spacing: 0.04em;
  margin-bottom: 48px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Scroll indicator */
.hero__scroll-indicator {
  position: absolute;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 2;
}

.hero__scroll-indicator span {
  font-size: 9.5px;
  letter-spacing: 0.3em;
  color: rgba(255,255,255,0.3);
  text-transform: uppercase;
}

.hero__scroll-bar {
  width: 1px;
  height: 52px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.35) 0%, transparent 100%);
  animation: scrollAnim 2.2s ease-in-out infinite;
}

@keyframes scrollAnim {
  0%, 100% { opacity: 0.25; transform: scaleY(0.6) translateY(-20%); }
  50%       { opacity: 1;    transform: scaleY(1)   translateY(0); }
}

/* Brand strip bottom */
.hero__brand-strip {
  position: absolute;
  bottom: 40px;
  right: 48px;
  display: flex;
  align-items: center;
  gap: 20px;
  z-index: 2;
}

.brand-strip__item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.38);
  transition: color 0.25s;
}

.brand-strip__item:hover {
  color: rgba(255,255,255,0.75);
}

.brand-strip__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  flex-shrink: 0;
}

.brand-strip__dot--gold { background: var(--c-gold-light); }
.brand-strip__dot--blue { background: var(--c-blue-light); }

.brand-strip__sep {
  width: 1px;
  height: 14px;
  background: rgba(255,255,255,0.15);
}

/* ---------- ABOUT ---------- */
.about {
  background: var(--c-surface);
}

.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about__body {
  font-size: 0.92rem;
  color: var(--c-text-mid);
  line-height: 1.95;
  margin-bottom: 48px;
}

.about__body + .about__body {
  margin-top: 1em;
}

.about__stats {
  display: flex;
  gap: 52px;
}

.about__stat {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.about__stat-num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 500;
  line-height: 1;
  color: var(--c-dark);
}

.about__stat-num small {
  font-size: 1.4rem;
}

.about__stat-label {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-text-muted);
}

/* Visual / decorative panel */
.about__visual {
  position: relative;
}

.about__card {
  background: linear-gradient(135deg, var(--c-navy) 0%, var(--c-navy-mid) 100%);
  aspect-ratio: 4/3;
  position: relative;
  overflow: hidden;
}

.about__card-inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about__card-deco-text {
  font-family: var(--font-display);
  font-size: 3rem;
  letter-spacing: 0.4em;
  color: rgba(255,255,255,0.06);
  white-space: nowrap;
  user-select: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.about__card-inner img {
  width: 55%;
  max-width: 220px;
  object-fit: contain;
  position: relative;
  z-index: 1;
}

.about__card-lines {
  position: absolute;
  bottom: 32px;
  left: 32px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.about__card-lines div {
  height: 1px;
  background: rgba(255,255,255,0.15);
}

.about__card-lines div:nth-child(1) { width: 64px; }
.about__card-lines div:nth-child(2) { width: 40px; }
.about__card-lines div:nth-child(3) { width: 52px; }

.about__card-shadow {
  position: absolute;
  bottom: -14px;
  right: -14px;
  width: 100%;
  height: 100%;
  border: 1px solid var(--c-gold);
  opacity: 0.2;
  pointer-events: none;
}

/* ---------- BUSINESSES ---------- */
.businesses {
  background: var(--c-bg);
}

/* Biz card layout */
.biz-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  margin-bottom: 40px;
  overflow: hidden;
  transition: box-shadow 0.35s ease;
}

.biz-card:hover {
  box-shadow: 0 24px 64px rgba(0,0,0,0.07);
}

/* Flipped layout for second card */
.biz-card--flip .biz-card__visual {
  order: 2;
}

/* Content column */
.biz-card__body {
  padding: 60px 52px;
}

/* Visual column */
.biz-card__visual {
  position: relative;
  min-height: 380px;
  overflow: hidden;
}

.biz-card__visual--craft {
  background: linear-gradient(135deg, #0b1a2a 0%, #1a3048 100%);
}

.biz-card__visual--tech {
  background: linear-gradient(135deg, #091424 0%, #0e2a48 100%);
}

/* Crosshatch texture overlay */
.biz-card__visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      45deg,
      rgba(255,255,255,0.018) 0px,
      rgba(255,255,255,0.018) 1px,
      transparent 1px,
      transparent 14px
    );
  z-index: 0;
}

.biz-card__vis-inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.biz-card__vis-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.biz-card__title img {
  height: 1em;
  width: auto;
  vertical-align: middle;
}

.biz-card__icon {
  width: 130px;
  height: 130px;
}

.biz-card__visual--craft .biz-card__icon {
  color: rgba(184, 135, 42, 0.35);
}

.biz-card__visual--tech .biz-card__icon {
  color: rgba(74, 143, 216, 0.35);
}

.biz-card__vis-label {
  position: absolute;
  bottom: 24px;
  left: 28px;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.2);
  z-index: 1;
}

/* Body content */
.biz-card__tag {
  display: inline-block;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 4px 11px;
  margin-bottom: 22px;
}

.biz-card__tag--craft {
  color: var(--c-gold);
  background: var(--c-gold-pale);
}

.biz-card__tag--tech {
  color: var(--c-blue);
  background: var(--c-blue-pale);
}

.biz-card__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--c-dark);
  margin-bottom: 20px;
}

.biz-card__title span {
  display: block;
  margin-top: 8px;
  font-size: 0.52em;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--c-text-muted);
}

.biz-card__desc {
  font-size: 0.875rem;
  color: var(--c-text-mid);
  line-height: 1.95;
  margin-bottom: 24px;
}

.biz-card__feats {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 36px;
}

.biz-card__feats li {
  font-size: 0.83rem;
  color: var(--c-text-mid);
  padding-left: 18px;
  position: relative;
  line-height: 1.5;
}

.biz-card__feats li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 1px;
}

.biz-card--flip .biz-card__feats li::before,
#biz-craft .biz-card__feats li::before {
  background: var(--c-gold);
}

#biz-tech .biz-card__feats li::before {
  background: var(--c-blue-light);
}

.biz-card__link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  padding-bottom: 3px;
  border-bottom: 1px solid;
  transition: gap 0.25s ease, border-color 0.25s ease;
}

.biz-card__link--craft {
  color: var(--c-gold);
  border-color: rgba(176, 120, 40, 0.35);
}

.biz-card__link--craft:hover {
  gap: 16px;
  border-color: var(--c-gold);
}

.biz-card__link--tech {
  color: var(--c-blue);
  border-color: rgba(24, 88, 184, 0.3);
}

.biz-card__link--tech:hover {
  gap: 16px;
  border-color: var(--c-blue);
}

/* ---------- NEWS ---------- */
.news {
  background: var(--c-surface);
}

.news__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.news-card {
  padding: 36px 32px;
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.07);
}

.news-card__tag {
  display: inline-block;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 3px 10px;
  margin-bottom: 14px;
  color: var(--c-text-muted);
  background: rgba(0,0,0,0.05);
}

.news-card__tag--craft {
  color: var(--c-gold);
  background: var(--c-gold-pale);
}

.news-card__tag--tech {
  color: var(--c-blue);
  background: var(--c-blue-pale);
}

.news-card__date {
  display: block;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--c-text-muted);
  margin-bottom: 10px;
}

.news-card__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--c-dark);
  margin-bottom: 12px;
}

.news-card__body {
  font-size: 0.83rem;
  color: var(--c-text-muted);
  line-height: 1.85;
  margin-bottom: 24px;
}

.news-card__link {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--c-text-mid);
  transition: color 0.25s, letter-spacing 0.25s;
}

.news-card__link:hover {
  color: var(--c-dark);
  letter-spacing: 0.18em;
}

/* ---------- CONTACT ---------- */
.contact {
  background: var(--c-dark);
}

.contact .section-eyebrow {
  color: var(--c-gold-light);
}

.contact .section-title {
  color: #ffffff;
  margin-bottom: 24px;
}

.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact__desc {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.9;
  margin-bottom: 40px;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact__detail-row {
  display: flex;
  gap: 24px;
}

.contact__detail-row dt {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--c-gold-light);
  min-width: 60px;
  padding-top: 2px;
  text-transform: uppercase;
}

.contact__detail-row dd {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
}

/* Link cards */
.contact__links {
  padding-top: 52px;
}

.contact__links-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 16px;
}

.contact__biz-link {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 24px;
  border: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.025);
  margin-bottom: 12px;
  transition: all 0.3s ease;
}

.contact__biz-link:hover {
  background: rgba(255,255,255,0.055);
  border-color: rgba(255,255,255,0.14);
  transform: translateX(6px);
}

.contact__biz-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  flex-shrink: 0;
}

.contact__biz-dot--gold { background: var(--c-gold-light); }
.contact__biz-dot--blue { background: var(--c-blue-light); }

.contact__biz-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.contact__biz-info strong {
  font-size: 0.9rem;
  font-weight: 500;
  color: #ffffff;
}

.contact__biz-info span {
  font-size: 11.5px;
  color: rgba(255,255,255,0.38);
  letter-spacing: 0.04em;
}

.contact__biz-arrow {
  color: rgba(255,255,255,0.28);
  flex-shrink: 0;
  transition: transform 0.25s ease, color 0.25s ease;
}

.contact__biz-link:hover .contact__biz-arrow {
  transform: translateX(4px);
  color: rgba(255,255,255,0.6);
}

/* ---------- FOOTER ---------- */
.footer {
  background: #060d16;
  padding: 48px 0 32px;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 28px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer__logo-en {
  font-family: var(--font-display);
  font-size: 19px;
  letter-spacing: 0.18em;
  color: #ffffff;
}

.footer__logo-ja {
  font-size: 9px;
  letter-spacing: 0.22em;
  color: rgba(255,255,255,0.3);
}

.footer__nav {
  display: flex;
  gap: 32px;
}

.footer__nav a {
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.35);
  transition: color 0.25s;
}

.footer__nav a:hover {
  color: rgba(255,255,255,0.75);
}

.footer__copy {
  font-size: 10.5px;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.2);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1100px) {
  .container {
    padding: 0 36px;
  }
  .nav {
    padding: 0 36px;
  }
  .about__inner {
    gap: 56px;
  }
}

@media (max-width: 900px) {
  :root {
    --section-py: 72px;
  }
  .container {
    padding: 0 28px;
  }
  .nav {
    padding: 0 28px;
  }
  .nav__links {
    display: none;
  }
  /* On mobile, push lang button to the right so it sits next to the hamburger */
  .nav__lang-btn {
    margin-left: auto;
    margin-right: 12px;
  }
  .nav__menu-btn {
    display: flex;
  }
  .nav__mobile {
    padding: 20px 28px 28px;
  }
  .about__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about__stats {
    gap: 36px;
  }
  .biz-card {
    grid-template-columns: 1fr;
  }
  .biz-card__visual {
    min-height: 220px;
    order: -1 !important;
  }
  .biz-card__body {
    padding: 44px 36px;
  }
  .news__grid {
    grid-template-columns: 1fr 1fr;
  }
  .contact__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .contact__links {
    padding-top: 0;
  }
  .hero__brand-strip {
    display: none;
  }
  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .footer__nav {
    flex-wrap: wrap;
    gap: 16px 28px;
  }
}

@media (max-width: 600px) {
  :root {
    --section-py: 56px;
  }
  .container {
    padding: 0 20px;
  }
  .nav {
    padding: 0 20px;
  }
  .nav__mobile {
    padding: 18px 20px 24px;
  }
  .hero__content {
    padding-bottom: 80px;
  }
  .hero__actions {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero__scroll-indicator {
    display: none;
  }
  .about__stats {
    flex-wrap: wrap;
    gap: 28px;
  }
  .biz-card__body {
    padding: 32px 24px;
  }
  .news__grid {
    grid-template-columns: 1fr;
  }
  .news-card {
    padding: 28px 24px;
  }
  .hide-mobile {
    display: none;
  }
}


/* ============================================================
   会社沿革（History Timeline）
   ============================================================ */

.history {
  background: var(--c-surface);
  overflow: hidden;
}

/* タイムライン全体 */
.history__timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* 各アイテム行 */
.history__item {
  display: grid;
  grid-template-columns: 120px 48px 1fr;
  align-items: stretch;
  min-height: 120px;
}

/* ── 年号カラム ── */
.history__year {
  display: flex;
  align-items: baseline;
  padding-top: 4px;
  justify-content: flex-end;
  padding-right: 20px;
  gap: 6px;
}

.history__year > span {
  font-family: var(--font-history-date);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.015em;
  color: var(--c-text-muted);
  line-height: 1.2;
  font-feature-settings: "tnum" 1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  display: inline-block;
  min-width: 7ch;
  text-align: right;
}

.history__year--gold span { color: var(--c-gold); }
.history__year--blue  span { color: var(--c-blue-light); }

.history__month {
  display: inline-block;
  font-family: var(--font-history-date);
  font-size: 1rem;
  letter-spacing: 0.03em;
  color: var(--c-text-muted);
  font-weight: 400;
  font-style: normal;
  font-feature-settings: "tnum" 1;
  white-space: nowrap;
}
.history__num {
  font-family: var(--font-history-date);
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.history__suffix {
  font-family: var(--font-history-date);
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.01em;
  margin-left: 1px;
}
.history__year--gold .history__month { color: var(--c-gold); opacity: 0.8; }
.history__year--blue .history__month { color: var(--c-blue-light); opacity: 0.8; }

/* ── コネクタ（ドット＋縦線）カラム ── */
.history__connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.history__dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--c-border);
  border: 2px solid var(--c-surface);
  outline: 2px solid var(--c-border);
  flex-shrink: 0;
  margin-top: 3px;
  z-index: 1;
}

.history__dot--gold {
  background: var(--c-gold);
  outline-color: var(--c-gold-pale);
}

.history__dot--blue {
  background: var(--c-blue-light);
  outline-color: var(--c-blue-pale);
}

.history__line {
  flex: 1;
  width: 1px;
  background: var(--c-border);
  margin-top: 6px;
  margin-bottom: -2px;
}

/* ── コンテンツカラム ── */
.history__content {
  padding: 0 0 48px 24px;
}

.history__heading {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--c-dark);
  margin-bottom: 8px;
  line-height: 1.3;
  letter-spacing: 0.01em;
}

.history__body {
  font-size: 0.9rem;
  color: var(--c-text-mid);
  line-height: 1.8;
  max-width: 680px;
}

/* 最後のアイテムは縦線を出さない */
.history__item--last .history__content {
  padding-bottom: 8px;
}

/* ── ナビゲーションにリンクを追加 ── */

/* ============================================================
   レスポンシブ
   ============================================================ */
@media (max-width: 768px) {
  .history__item {
    grid-template-columns: 96px 30px 1fr;
    min-height: 96px;
  }

  .history__year > span {
    font-size: 1.1rem;
  }

  .history__month {
    font-size: 0.85rem;
    letter-spacing: 0.01em;
  }

  .history__heading {
    font-size: 1rem;
  }

  .history__content {
    padding-bottom: 36px;
  }
}

@media (max-width: 480px) {
  .history__item {
    grid-template-columns: 84px 24px 1fr;
  }

  .history__year > span {
    font-size: 0.9rem;
  }

  .history__month {
    font-size: 0.78rem;
  }

  .history__body {
    font-size: 0.85rem;
  }
}
