/*
Theme Name: Equities Corporate
Theme URI: https://equities.example/
Author: Equities LLC
Description: 合同会社エクイテスの1ページ会社紹介サイト用テーマです。
Version: 1.0.4
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: equities
*/

:root {
  --navy: #06255d;
  --blue: #0a5cff;
  --blue-soft: #eaf2ff;
  --ink: #10264d;
  --muted: #63708a;
  --line: #cad5e7;
  --white: #ffffff;
  --surface: #f7faff;
  --content: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Noto Sans JP", "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif;
  font-size: 16px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

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

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 0;
  width: 100%;
  color: var(--navy);
}

.header-inner {
  width: min(calc(100% - 64px), var(--content));
  min-height: 96px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(6, 37, 93, 0.22);
}

.site-brand {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(24px, 2.2vw, 34px);
  line-height: 1;
  letter-spacing: 0.025em;
}

.site-nav ul {
  display: flex;
  gap: clamp(32px, 5vw, 76px);
  padding: 0;
  margin: 0;
  list-style: none;
}

.site-nav a {
  position: relative;
  display: block;
  padding: 12px 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 5px;
  left: 0;
  height: 1px;
  content: "";
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 1px;
  margin: 6px 0;
  background: var(--navy);
  transition: transform 180ms ease, opacity 180ms ease;
}

.hero {
  position: relative;
  z-index: 0;
  isolation: isolate;
  width: min(calc(100% - 64px), var(--content));
  min-height: 820px;
  margin: 0 auto;
  overflow: hidden;
  background: linear-gradient(90deg, #fff 0%, #fff 34%, rgba(255, 255, 255, 0.82) 48%, rgba(255, 255, 255, 0) 69%);
}

.hero::after {
  position: absolute;
  z-index: -1;
  inset: 0 0 0 35%;
  content: "";
  background-image: var(--hero-image);
  background-position: right center;
  background-size: cover;
}

.hero-inner {
  width: 100%;
  min-height: 820px;
  padding: 190px 0 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-title {
  max-width: 820px;
  margin: 0;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(82px, 10.5vw, 158px);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.055em;
}

.hero-copy {
  max-width: 590px;
  margin: 40px 0 0;
  color: var(--navy);
  font-size: clamp(23px, 2.3vw, 36px);
  font-weight: 700;
  line-height: 1.65;
  letter-spacing: 0.04em;
}

.scroll-mark {
  position: absolute;
  bottom: 58px;
  left: max(32px, calc((100vw - var(--content)) / 2));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--navy);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  writing-mode: vertical-rl;
}

.scroll-mark::after {
  width: 1px;
  height: 64px;
  content: "";
  background: var(--blue);
}

.section {
  padding: 126px 0;
  scroll-margin-top: 24px;
}

.section-inner {
  width: min(calc(100% - 64px), var(--content));
  margin: 0 auto;
}

.section-heading {
  margin: 0;
  color: var(--navy);
  font-family: "Arial Narrow", "Roboto Condensed", Arial, sans-serif;
  font-size: clamp(48px, 5.7vw, 76px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.08em;
}

.section-heading::after {
  display: block;
  width: 110px;
  height: 2px;
  margin-top: 22px;
  content: "";
  background: linear-gradient(90deg, var(--blue) 0 36%, var(--line) 36% 100%);
}

.section-kicker {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(250px, 0.7fr) minmax(480px, 1.3fr);
  gap: 80px;
  align-items: start;
}

.about-copy h3 {
  margin: 56px 0 24px;
  color: var(--navy);
  font-size: clamp(24px, 2.5vw, 34px);
  line-height: 1.6;
}

.about-copy p {
  max-width: 680px;
  margin: 0;
}

.business-section {
  padding-top: 80px;
}

.business-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 72px;
  margin-top: 64px;
}

.service-number {
  display: block;
  color: var(--blue);
  font-family: "Arial Narrow", Arial, sans-serif;
  font-size: 72px;
  line-height: 1;
  letter-spacing: 0.08em;
}

.service-number::after {
  display: block;
  width: 72px;
  height: 1px;
  margin: 18px 0 16px;
  content: "";
  background: var(--navy);
}

.service h3 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(22px, 2vw, 29px);
}

.service p {
  min-height: 120px;
  margin: 16px 0 30px;
}

.service-image {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.company-section {
  padding-bottom: 144px;
}

.company-grid {
  display: grid;
  grid-template-columns: minmax(250px, 0.7fr) minmax(480px, 1.3fr);
  gap: 80px;
  align-items: start;
}

.company-table {
  width: 100%;
  margin-top: 58px;
  border-collapse: collapse;
  text-align: left;
}

.company-table th,
.company-table td {
  padding: 22px 12px;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.company-table th {
  width: 30%;
  color: var(--navy);
  font-size: 14px;
}

.site-footer {
  padding: 38px 24px;
  color: var(--navy);
  background: var(--surface);
  text-align: center;
  font-size: 12px;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 650ms ease, transform 650ms ease;
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 820px) {
  .header-inner,
  .section-inner {
    width: min(calc(100% - 40px), var(--content));
  }

  .hero {
    width: calc(100% - 40px);
  }

  .header-inner {
    min-height: 76px;
  }

  .menu-toggle {
    position: relative;
    z-index: 22;
    display: block;
  }

  .menu-open .menu-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-open .menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  .menu-open .menu-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .site-nav {
    position: fixed;
    z-index: 21;
    inset: 0;
    display: grid;
    place-items: center;
    color: var(--white);
    background: rgba(6, 37, 93, 0.98);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
  }

  .menu-open .site-nav {
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }

  .site-nav a {
    font-size: 18px;
  }

  .hero {
    min-height: 720px;
    background: linear-gradient(180deg, #fff 0 30%, rgba(255, 255, 255, 0.88) 48%, rgba(255, 255, 255, 0.08) 80%);
  }

  .hero::after {
    inset: 34% 0 0;
    background-position: 82% center;
  }

  .hero-inner {
    min-height: 720px;
    padding-top: 150px;
  }

  .hero-title {
    font-size: clamp(58px, 17vw, 92px);
  }

  .hero-copy {
    margin-top: 28px;
    font-size: 21px;
  }

  .scroll-mark {
    display: none;
  }

  .section {
    padding: 84px 0;
  }

  .about-grid,
  .company-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .about-copy h3 {
    margin-top: 30px;
  }

  .business-grid {
    grid-template-columns: 1fr;
    gap: 74px;
    margin-top: 50px;
  }

  .service p {
    min-height: auto;
  }

  .company-table {
    margin-top: 30px;
  }
}

@media (max-width: 480px) {
  .site-brand {
    font-size: 22px;
  }

  .hero-title {
    font-size: 16vw;
  }

  .hero-copy {
    font-size: 18px;
    line-height: 1.7;
  }

  .section-heading {
    font-size: 44px;
  }

  .company-table th,
  .company-table td {
    display: block;
    width: 100%;
  }

  .company-table th {
    padding-bottom: 0;
    border-bottom: 0;
  }
}
