/* =================================================================
   Yoshu Global Industry — Site Styles
   セクション単位でブロック分けしています。配色・タイポは :root で集中管理。
   ================================================================= */

:root {
  /* Brand Palette ----------------------------------------------- */
  --c-bg:       #F4EFE6;     /* cream */
  --c-bg-alt:   #EDE6D8;
  --c-ink:      #0F1E33;     /* deep navy */
  --c-ink-2:    #2A3A53;
  --c-mute:     #6E7787;
  --c-line:     #DCD3C2;
  --c-accent:   #2BA0B5;     /* brand teal (logo) */
  --c-accent-d: #1A8092;
  --c-white:    #FFFFFF;

  /* Typography -------------------------------------------------- */
  --ff-sans:  "Noto Sans JP", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ff-serif: "Noto Serif JP", "Times New Roman", serif;

  /* Spacing & Layout ------------------------------------------- */
  --container: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
  --section-y: clamp(72px, 10vw, 140px);
  --radius: 4px;

  /* Easing ------------------------------------------------------ */
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* Reset / Base ------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--ff-sans);
  font-feature-settings: "palt";
  color: var(--c-ink);
  background: var(--c-bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: opacity .2s var(--ease); }
a:hover { opacity: .7; }
button { font: inherit; cursor: pointer; border: 0; background: none; }

/* Layout helpers ---------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}
.section {
  padding-block: var(--section-y);
}
.section--alt { background: var(--c-bg-alt); }
.section--ink { background: var(--c-ink); color: var(--c-bg); }

/* Typography classes ------------------------------------------ */
.eyebrow {
  font-family: var(--ff-sans);
  font-size: 12px;
  letter-spacing: .25em;
  font-weight: 500;
  color: var(--c-accent);
  text-transform: uppercase;
  margin: 0 0 16px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--c-accent);
}
.section-title {
  font-family: var(--ff-serif);
  font-weight: 500;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: .04em;
  margin: 0 0 24px;
  line-height: 1.3;
}
.section-lead {
  max-width: 640px;
  color: var(--c-ink-2);
  margin: 0 0 56px;
  font-size: 15px;
}

/* Buttons ----------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  font-size: 13px;
  letter-spacing: .15em;
  font-weight: 500;
  border: 1px solid currentColor;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.btn::after {
  content: "→";
  transition: transform .25s var(--ease);
}
.btn:hover { opacity: 1; }
.btn:hover::after { transform: translateX(4px); }

.btn--primary {
  background: var(--c-ink);
  color: var(--c-bg);
  border-color: var(--c-ink);
}
.btn--primary:hover { background: var(--c-accent); border-color: var(--c-accent); color: var(--c-white); }

.btn--ghost {
  background: transparent;
  color: var(--c-bg);
  border-color: var(--c-bg);
}
.btn--ghost:hover { background: var(--c-bg); color: var(--c-ink); }

/* =================================================================
   Header
   ================================================================= */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding-block: 20px;
  transition: background .3s var(--ease), backdrop-filter .3s var(--ease), padding .3s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(244, 239, 230, .92);
  backdrop-filter: blur(8px);
  padding-block: 12px;
  border-bottom: 1px solid var(--c-line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-logo {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}
.site-logo img {
  height: 52px;
  width: auto;
  display: block;
  transition: height .3s var(--ease), filter .3s var(--ease);
  /* On the dark hero overlay, force the logo to a light cream tone so
     the dark "YOSHU" wordmark stays legible. */
  filter: brightness(0) invert(1) opacity(.95);
}
.site-header.is-scrolled .site-logo img {
  height: 42px;
  filter: none; /* original brand colors against the cream header */
}
.site-header.is-scrolled .nav__list a,
.site-header.is-scrolled .nav__toggle { color: var(--c-ink); }

.nav__list {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__list a {
  color: var(--c-bg);
  font-size: 13px;
  letter-spacing: .1em;
  transition: color .3s var(--ease);
}
.nav__toggle {
  display: none;
  width: 32px;
  height: 32px;
  color: var(--c-bg);
  position: relative;
}
.nav__toggle span,
.nav__toggle::before,
.nav__toggle::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  height: 1px;
  background: currentColor;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.nav__toggle::before { top: 10px; }
.nav__toggle span    { top: 16px; }
.nav__toggle::after  { top: 22px; }
.nav__toggle.is-open::before { transform: translateY(6px) rotate(45deg); }
.nav__toggle.is-open span    { opacity: 0; }
.nav__toggle.is-open::after  { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 880px) {
  .nav__toggle { display: block; }
  .nav__list {
    position: fixed;
    inset: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--c-ink);
    color: var(--c-bg);
    gap: 28px;
    transform: translateX(100%);
    transition: transform .35s var(--ease);
  }
  .nav__list.is-open { transform: translateX(0); }
  .nav__list a { color: var(--c-bg); font-size: 18px; font-family: var(--ff-serif); letter-spacing: .15em; }
}

/* =================================================================
   Hero
   ================================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  color: var(--c-bg);
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(15, 30, 51, .35) 0%, rgba(15, 30, 51, .75) 100%);
}
.hero__inner {
  padding-block: 120px 96px;
  width: 100%;
}
.hero__eyebrow {
  font-size: 12px;
  letter-spacing: .35em;
  margin-bottom: 28px;
  color: rgba(244, 239, 230, .85);
}
.hero__headline {
  font-family: var(--ff-serif);
  font-weight: 400;
  font-size: clamp(36px, 6.5vw, 76px);
  line-height: 1.25;
  letter-spacing: .04em;
  margin: 0 0 28px;
  white-space: pre-line;
}
.hero__subheadline {
  max-width: 540px;
  font-size: 15px;
  line-height: 2;
  white-space: pre-line;
  color: rgba(244, 239, 230, .9);
  margin: 0 0 48px;
}
.hero__ctas { display: flex; gap: 16px; flex-wrap: wrap; }
.hero__scroll {
  position: absolute;
  right: var(--gutter);
  bottom: 40px;
  font-size: 11px;
  letter-spacing: .3em;
  writing-mode: vertical-rl;
  color: rgba(244, 239, 230, .7);
  display: flex;
  align-items: center;
  gap: 16px;
}
.hero__scroll::after {
  content: "";
  width: 1px;
  height: 56px;
  background: linear-gradient(to bottom, rgba(244, 239, 230, .7), transparent);
}

/* =================================================================
   About
   ================================================================= */
.about__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
@media (max-width: 880px) {
  .about__grid { grid-template-columns: 1fr; }
}
.about__body p { margin: 0 0 1.2em; color: var(--c-ink-2); }
.about__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--c-line);
}
.about__stat-value {
  font-family: var(--ff-serif);
  font-size: clamp(28px, 3.4vw, 40px);
  color: var(--c-ink);
  line-height: 1;
}
.about__stat-label {
  font-size: 11px;
  letter-spacing: .25em;
  color: var(--c-mute);
  margin-top: 8px;
}
.about__media {
  position: relative;
  aspect-ratio: 4 / 5;
  background-size: cover;
  background-position: center;
}
.about__media::before {
  content: "";
  position: absolute;
  inset: -16px -16px 16px 16px;
  border: 1px solid var(--c-accent);
  z-index: -1;
}

/* =================================================================
   Group / 出資先企業
   ================================================================= */
.group__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 880px) { .group__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .group__grid { grid-template-columns: 1fr; } }

.group__item {
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.group__item:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px -20px rgba(15, 30, 51, .25);
}
.group__logo {
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-white);
  padding: 16px;
  border: 1px solid var(--c-line);
}
.group__logo img {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.group__name-fallback {
  font-family: var(--ff-serif);
  font-size: 18px;
  letter-spacing: .1em;
  color: var(--c-ink);
  text-align: center;
}
.group__body { display: flex; flex-direction: column; gap: 8px; }
.group__name {
  font-family: var(--ff-serif);
  font-size: 18px;
  font-weight: 500;
  margin: 0;
}
.group__desc {
  font-size: 13px;
  color: var(--c-ink-2);
  margin: 0;
  line-height: 1.8;
}
.group__link {
  font-size: 12px;
  letter-spacing: .15em;
  color: var(--c-accent);
  margin-top: auto;
  padding-top: 8px;
  align-self: flex-start;
}
.group__link:hover { color: var(--c-accent-d); opacity: 1; }

/* =================================================================
   Services
   ================================================================= */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--c-line);
  border: 1px solid var(--c-line);
}
@media (max-width: 880px) { .services__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .services__grid { grid-template-columns: 1fr; } }

.service {
  background: var(--c-bg);
  padding: 48px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: background .3s var(--ease);
}
.service:hover { background: var(--c-bg-alt); }
.service__no {
  font-family: var(--ff-serif);
  color: var(--c-accent);
  font-size: 14px;
  letter-spacing: .15em;
}
.service__title {
  font-family: var(--ff-serif);
  font-size: 20px;
  font-weight: 500;
  margin: 0;
}
.service__desc {
  font-size: 14px;
  color: var(--c-ink-2);
  margin: 0;
}

/* =================================================================
   News
   ================================================================= */
.news__list { list-style: none; margin: 0; padding: 0; }
.news__item {
  display: grid;
  grid-template-columns: 140px 100px 1fr;
  gap: 32px;
  padding: 28px 0;
  border-top: 1px solid var(--c-line);
  align-items: baseline;
  transition: padding .25s var(--ease);
}
.news__item:last-child { border-bottom: 1px solid var(--c-line); }
.news__item:hover { padding-inline: 8px; }
.news__date {
  font-family: var(--ff-serif);
  font-size: 14px;
  letter-spacing: .1em;
  color: var(--c-mute);
}
.news__category {
  display: inline-block;
  width: fit-content;
  padding: 4px 12px;
  border: 1px solid var(--c-ink);
  font-size: 10px;
  letter-spacing: .25em;
}
.news__title { font-size: 15px; }

@media (max-width: 720px) {
  .news__item { grid-template-columns: 1fr; gap: 8px; }
}

/* =================================================================
   Company info
   ================================================================= */
.company__table {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 0;
  border-top: 1px solid var(--c-line);
}
.company__table dt,
.company__table dd {
  margin: 0;
  padding: 20px 4px;
  border-bottom: 1px solid var(--c-line);
}
.company__table dt {
  font-family: var(--ff-serif);
  font-size: 13px;
  letter-spacing: .15em;
  color: var(--c-mute);
}
.company__table dd { font-size: 14px; color: var(--c-ink); }

@media (max-width: 720px) {
  .company__table { grid-template-columns: 1fr; }
  .company__table dt { padding-bottom: 0; border-bottom: 0; }
  .company__table dd { padding-top: 8px; }
}

/* =================================================================
   Contact
   ================================================================= */
.contact { text-align: center; }
.contact .section-lead { margin-inline: auto; }

/* --- Form ----------------------------------------------------- */
.contact__form {
  max-width: 720px;
  margin: 0 auto;
  text-align: left;
}
.contact__form[data-state="submitting"] {
  opacity: .6;
  pointer-events: none;
}
.contact__form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 24px;
}
@media (max-width: 720px) {
  .contact__form-grid { grid-template-columns: 1fr; }
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
}
.field--full { grid-column: 1 / -1; }
.field__label {
  font-size: 12px;
  letter-spacing: .15em;
  color: var(--c-ink-2);
  font-weight: 500;
}
.field__req {
  color: var(--c-accent);
  font-size: 11px;
  margin-left: 4px;
}
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 15px;
  color: var(--c-ink);
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 12px 14px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: none;
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px rgba(43, 160, 181, .15);
}
.field--agree {
  flex-direction: row;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--c-ink-2);
  margin-top: 8px;
}
.field--agree input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--c-accent);
  flex-shrink: 0;
}
.contact__honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.contact__form-actions {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}
.contact__form-actions .btn { min-width: 220px; justify-content: center; }
.contact__form-status {
  display: none;
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 13px;
  text-align: center;
}
.contact__form-status.is-visible { display: block; }
.contact__form-status.is-error {
  background: #fdecea;
  color: #9b2c2c;
  border: 1px solid #f5c2c0;
}

/* --- Thanks panel --------------------------------------------- */
.contact__thanks {
  max-width: 560px;
  margin: 0 auto;
  padding: 48px 32px;
  background: var(--c-white);
  border: 1px solid var(--c-line);
  text-align: center;
}
.contact__thanks[hidden] { display: none; }
.contact__thanks-title {
  font-family: var(--ff-serif);
  font-size: 22px;
  font-weight: 500;
  margin: 0 0 12px;
}
.contact__thanks-body {
  margin: 0;
  color: var(--c-ink-2);
  font-size: 14px;
}

/* --- Alternative channels (below the form) -------------------- */
.contact__channels {
  display: flex;
  justify-content: center;
  gap: 64px;
  margin-top: 72px;
  padding-top: 56px;
  border-top: 1px solid var(--c-line);
  flex-wrap: wrap;
}
.contact__channel-label {
  font-size: 11px;
  letter-spacing: .3em;
  color: var(--c-accent);
  margin-bottom: 12px;
}
.contact__channel-value {
  font-family: var(--ff-serif);
  font-size: clamp(18px, 2vw, 24px);
  letter-spacing: .05em;
}

/* =================================================================
   Footer
   ================================================================= */
.site-footer {
  background: var(--c-ink);
  color: var(--c-bg);
  padding-block: 64px 32px;
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: flex-end;
}
.site-footer__brand {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.site-footer__brand img {
  height: 56px;
  width: auto;
  display: block;
  /* Wordmark text in the logo is dark navy — invert to a light cream
     tone so it reads on the dark footer. */
  filter: brightness(0) invert(1) opacity(.92);
}
.site-footer__brand small {
  display: block;
  font-family: var(--ff-sans);
  font-size: 11px;
  letter-spacing: .25em;
  color: rgba(244, 239, 230, .6);
}
.site-footer__links {
  list-style: none;
  display: flex;
  gap: 24px;
  padding: 0;
  margin: 0;
  font-size: 12px;
  letter-spacing: .15em;
}
.site-footer__copyright {
  width: 100%;
  font-size: 11px;
  letter-spacing: .15em;
  color: rgba(244, 239, 230, .5);
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(244, 239, 230, .1);
}

/* =================================================================
   Reveal-on-scroll
   ================================================================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Reduced motion ---------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0s !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
