/* ========================================
   株式会社ワールドテック コーポレートサイト
   ======================================== */

:root {
  --ink: #0c1624;
  --ink-soft: #243447;
  --muted: #5a6b7d;
  --line: #d7e0ea;
  --surface: #f3f6f9;
  --surface-2: #e8eef4;
  --white: #ffffff;
  --accent: #0d7a8c;
  --accent-deep: #095f6d;
  --accent-soft: #d9f0f4;
  --hero-mid: #12324a;
  --hero-end: #0a6f7f;
  --shadow-soft: 0 18px 40px rgba(12, 22, 36, 0.08);
  --radius: 4px;
  --container: 1120px;
  --header-h: 72px;
  --font-display: "Syne", "Zen Kaku Gothic New", sans-serif;
  --font-body: "Zen Kaku Gothic New", "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.section {
  padding: clamp(4.5rem, 8vw, 7rem) 0;
}

.section--alt {
  background:
    linear-gradient(180deg, rgba(243, 246, 249, 0.92), rgba(243, 246, 249, 0.96)),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 23px,
      rgba(13, 122, 140, 0.035) 23px,
      rgba(13, 122, 140, 0.035) 24px
    );
}

.section__label {
  display: block;
  margin-bottom: 0.65rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

.section__title {
  margin: 0 0 1.75rem;
  font-size: clamp(1.75rem, 3.4vw, 2.35rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.35;
}

.section__lead {
  margin: 0 0 2.5rem;
  max-width: 40rem;
  color: var(--ink-soft);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
  gap: 1rem;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.site-logo img {
  display: block;
  width: auto;
  height: 40px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-nav a {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  cursor: pointer;
  padding: 0;
}

.nav-toggle__bar {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
  background: var(--ink);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 42%;
  display: block;
  transform: scale(1.04);
  animation: hero- ken 18s ease-in-out infinite alternate;
}

/* 文字可読性のための下→上グラデ（下部ほど濃く、全体はやや明るめ） */
.hero__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    0deg,
    rgba(10, 22, 34, 0.8) 0%,
    rgba(10, 22, 34, 0.5) 38%,
    rgba(10, 22, 34, 0.2) 68%,
    rgba(10, 22, 34, 0.08) 100%
  );
}

.hero__inner {
  position: relative;
  z-index: 2;
  width: min(100% - 2.5rem, var(--container));
  margin: 0 auto;
  padding: clamp(3.5rem, 9vw, 6.5rem) 0 clamp(3.5rem, 8vw, 5.5rem);
  max-width: 38rem;
  animation: rise-in 0.9s ease both;
}

.hero__brand {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 4.6vw, 3.5rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.15;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
  white-space: nowrap;
}

.hero__headline {
  margin: 0 0 0.85rem;
  font-size: clamp(1.1rem, 2.3vw, 1.4rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.55;
}

.hero__text {
  margin: 0 0 2rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.98rem;
  line-height: 1.85;
  max-width: 34rem;
}

.hero__text p {
  margin: 0 0 0.85rem;
}

.hero__text p:last-child {
  margin-bottom: 0;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

@keyframes hero-ken {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.1) translate3d(-1.2%, -0.6%, 0); }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.35rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--white);
  color: var(--ink);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--accent-soft);
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
}

.btn--accent {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
  width: 100%;
  max-width: 220px;
}

.btn--accent:hover,
.btn--accent:focus-visible {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
}

/* ---------- About ---------- */
.about__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.about__body p {
  margin: 0 0 1.1rem;
  color: var(--ink-soft);
}

.about__tags {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.about__tag {
  padding: 1rem 1.1rem;
  background: var(--surface);
  border-left: 3px solid var(--accent);
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 0.95rem;
}

/* ---------- Business ---------- */
.business-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.business-item {
  padding: 1.6rem 1.5rem 1.7rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.business-item:hover {
  border-color: rgba(13, 122, 140, 0.35);
  box-shadow: var(--shadow-soft);
}

.business-item__num {
  display: block;
  margin-bottom: 0.7rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums lining-nums;
  letter-spacing: 0.16em;
  color: var(--accent);
}

.business-item__title {
  margin: 0 0 0.7rem;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.business-item__text {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- Works ---------- */
.works-list {
  display: grid;
  gap: 2rem;
}

.work-card {
  display: grid;
  grid-template-columns: minmax(220px, 340px) 1fr;
  gap: clamp(1.25rem, 3vw, 2.25rem);
  align-items: stretch;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

.work-card:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.work-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  min-height: 0;
  background: #dce7ef;
  overflow: hidden;
}

.work-card__media--ticket {
  background: #fff;
}

.work-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work-card__media--ticket img {
  object-fit: contain;
}

.work-card__title {
  margin: 0 0 0.9rem;
  font-size: clamp(1.2rem, 2.2vw, 1.45rem);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.work-card__text {
  margin: 0 0 0.85rem;
  color: var(--ink-soft);
}

.work-card__text:last-child {
  margin-bottom: 0;
  margin-top: 0.75rem;
}

.work-card__points {
  margin-top: 0.75rem;
  display: grid;
  gap: 0.4rem;
}

.work-card__points li {
  position: relative;
  padding-left: 1.1rem;
  color: var(--ink-soft);
}

.work-card__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- Strength ---------- */
.strength-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.strength-item {
  padding: 1.75rem 1.4rem;
  background: var(--white);
  border: 1px solid var(--line);
}

.strength-item__index {
  display: block;
  margin-bottom: 1rem;
  font-family: var(--font-body);
  font-size: 1.6rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums lining-nums;
  color: var(--accent-soft);
  letter-spacing: 0.08em;
  line-height: 1;
}

.strength-item__title {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.strength-item__text {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- Company ---------- */
.company__layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  align-items: start;
}

.company-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--line);
}

.company-table th,
.company-table td {
  padding: 1rem 1.1rem;
  vertical-align: middle;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}

.company-table tr:last-child th,
.company-table tr:last-child td {
  border-bottom: 0;
}

.company-table th {
  width: 7.5rem;
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
  text-align: center;
  border-right: 1px solid var(--line);
}

.company-table td {
  color: var(--ink);
  text-align: left;
}

.company-table td a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.company-table td a:hover,
.company-table td a:focus-visible {
  color: var(--accent);
}

.company-address + .company-address {
  margin-top: 0.9rem;
}

.company-address__label {
  display: block;
  margin-bottom: 0.15rem;
  font-weight: 700;
  color: var(--accent-deep);
}

.company-map {
  position: relative;
  min-height: 360px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  overflow: hidden;
}

.company-map iframe {
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
}

.company-map__note {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  margin: 0;
  padding: 0.35rem 0.6rem;
  background: rgba(255, 255, 255, 0.92);
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* ---------- Contact ---------- */
.contact__layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.form-row {
  display: grid;
  gap: 0.4rem;
}

.form-row--2 {
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-label {
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

.form-label .req {
  margin-left: 0.25rem;
  color: #b42318;
  font-size: 0.78rem;
}

.form-control {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(13, 122, 140, 0.15);
}

textarea.form-control {
  min-height: 160px;
  resize: vertical;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-top: 0.25rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.form-check input {
  margin-top: 0.35rem;
  width: 1rem;
  height: 1rem;
  accent-color: var(--accent);
}

.form-actions {
  margin-top: 0.5rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #08121d;
  color: rgba(255, 255, 255, 0.82);
  padding: 2.75rem 0 1.75rem;
}

.site-footer__brand {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--white);
}

.site-footer__meta {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.9;
}

.site-footer__copy {
  margin: 1.75rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.55);
}

/* ---------- Animations ---------- */
@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse-soft {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.85;
  }
  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

@keyframes grid-drift {
  from {
    background-position: 0 0, 0 0;
  }
  to {
    background-position: 56px 56px, 56px 56px;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .about__grid,
  .company__layout,
  .contact__layout {
    grid-template-columns: 1fr;
  }

  .strength-list {
    grid-template-columns: 1fr;
  }

  .work-card {
    grid-template-columns: 1fr;
  }

  .work-card__media {
    aspect-ratio: 4 / 3;
  }

  .company-map,
  .company-map iframe {
    min-height: 300px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-h: 64px;
  }

  .container,
  .site-header__inner,
  .hero__inner {
    width: min(100% - 1.5rem, var(--container));
  }

  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    display: grid;
    gap: 0;
    padding: 0.5rem 0;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.28s ease, opacity 0.28s ease;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    padding: 0.95rem 1.5rem;
    border-bottom: 1px solid var(--surface);
  }

  .site-nav a:last-child {
    border-bottom: 0;
  }

  .hero {
    min-height: calc(100svh - var(--header-h));
    align-items: end;
  }

  .hero__image {
    object-position: 70% 45%;
  }

  .hero__shade {
    background: linear-gradient(
      0deg,
      rgba(10, 22, 34, 0.84) 0%,
      rgba(10, 22, 34, 0.54) 42%,
      rgba(10, 22, 34, 0.22) 72%,
      rgba(10, 22, 34, 0.08) 100%
    );
  }

  .hero__inner {
    max-width: none;
    padding-block: 3.5rem;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .business-list {
    grid-template-columns: 1fr;
  }

  .about__tags {
    grid-template-columns: 1fr;
  }

  .form-row--2 {
    grid-template-columns: 1fr;
  }

  .company-table th,
  .company-table td {
    display: block;
    width: 100%;
  }

  .company-table th {
    padding-bottom: 0.35rem;
    border-bottom: 0;
    border-right: 0;
    text-align: left;
  }

  .company-table td {
    padding-top: 0.35rem;
  }

  .company-table tr {
    display: block;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
  }

  .company-table tr:last-child {
    border-bottom: 0;
  }

  .btn--accent {
    max-width: none;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 15px;
  }

  .section {
    padding: 3.5rem 0;
  }

  .hero__brand {
    font-size: clamp(1.35rem, 7.2vw, 1.7rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
