/*
Theme Name: Steam Corporate
Theme URI: https://example.com/
Author: Steam
Description: Steam Corporate site (classic theme).
Version: 1.0.0
Text Domain: steam-corporate
*/

:root {
  --nav-width: 18vw;
  --intro-fixed-height: 260px;
  --bg: #ebebeb;
  --paper: #f3f3f3;
  --line: #dadada;
  --ink: #242424;
  --muted: #6a6a6a;
  --sans: "Noto Sans JP", sans-serif;
  --en: "Montserrat", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  scroll-behavior: smooth;
}

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

.texture {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.3) 0.55px, transparent 0.55px);
  background-size: 2px 2px;
  opacity: 0.3;
  z-index: 2;
}

.side-nav {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--nav-width);
  padding: 20px 18px;
  border-right: 1px solid var(--line);
  background: #ececec;
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

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

.menu-toggle span {
  display: block;
  width: 100%;
  height: 1px;
  margin: 5px 0;
  background: #666;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

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

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

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

.logo {
  display: block;
  width: min(100%, 132px);
  line-height: 0;
}

.logo img {
  display: block;
  width: 100%;
  height: auto;
  filter: grayscale(1) brightness(0.14);
}

.links {
  display: grid;
  gap: 8px;
}

.links a {
  font-family: var(--en);
  font-size: clamp(21px, 1.54vw, 24px);
  letter-spacing: 0.03em;
  color: #8b8b8b;
  transition: color 0.3s ease, transform 0.3s ease;
}

.links a:hover,
.links a.active {
  color: #2a2a2a;
  transform: translateX(2px);
}

.page {
  margin-left: var(--nav-width);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.hero {
  position: relative;
  overflow: hidden;
  height: calc(100vh - var(--intro-fixed-height));
  height: calc(100dvh - var(--intro-fixed-height));
  min-height: 340px;
  border-bottom: 1px solid var(--line);
  isolation: isolate;
  background: #eee1cf;
}

.hero-wave {
  position: absolute;
  inset: -6% -16% -26%;
  width: 132%;
  height: 136%;
  will-change: transform;
}

.ridge-1 {
  z-index: 1;
  color: #e2b59a;
  animation: ridge-flow-a 18s ease-in-out infinite alternate;
}

.ridge-2 {
  z-index: 2;
  color: #e7984c;
  animation: ridge-flow-b 24s ease-in-out infinite alternate;
}

.ridge-3 {
  z-index: 3;
  color: #a7654d;
  animation: ridge-flow-c 30s ease-in-out infinite alternate;
}

.ridge-4 {
  z-index: 4;
  color: #0b5c6f;
  animation: ridge-flow-d 40s ease-in-out infinite alternate;
}

.ridge-5 {
  z-index: 5;
  color: #064255;
  animation: ridge-flow-e 52s ease-in-out infinite alternate;
}

.hero-wave path {
  fill: currentColor;
}

.hero-brand {
  position: absolute;
  right: clamp(34px, 6vw, 88px);
  top: 42%;
  width: clamp(190px, 20vw, 340px);
  height: auto;
  z-index: 6;
  filter: brightness(0) invert(1);
  opacity: 0.95;
  pointer-events: none;
}

@keyframes ridge-flow-a {
  0% {
    transform: translate3d(-1.8%, -0.3%, 0);
  }
  50% {
    transform: translate3d(1.5%, 0.3%, 0);
  }
  100% {
    transform: translate3d(-0.9%, -0.1%, 0);
  }
}

@keyframes ridge-flow-b {
  0% {
    transform: translate3d(1.3%, 0.2%, 0);
  }
  50% {
    transform: translate3d(-1.3%, -0.3%, 0);
  }
  100% {
    transform: translate3d(0.8%, 0.1%, 0);
  }
}

@keyframes ridge-flow-c {
  0% {
    transform: translate3d(-1.1%, 0.3%, 0);
  }
  50% {
    transform: translate3d(1.2%, -0.4%, 0);
  }
  100% {
    transform: translate3d(-0.8%, 0.2%, 0);
  }
}

@keyframes ridge-flow-d {
  0% {
    transform: translate3d(1.0%, -0.2%, 0);
  }
  50% {
    transform: translate3d(-1.1%, 0.4%, 0);
  }
  100% {
    transform: translate3d(0.7%, -0.2%, 0);
  }
}

@keyframes ridge-flow-e {
  0% {
    transform: translate3d(-0.7%, 0.2%, 0);
  }
  50% {
    transform: translate3d(0.8%, -0.3%, 0);
  }
  100% {
    transform: translate3d(-0.5%, 0.1%, 0);
  }
}

.block {
  border-bottom: 1px solid var(--line);
  padding: clamp(22px, 3vw, 42px) clamp(20px, 5vw, 72px);
  background: #efefef;
}

.intro {
  display: grid;
  grid-template-columns: 1fr;
  justify-content: stretch;
  align-items: center;
  gap: 0;
  height: var(--intro-fixed-height);
  min-height: var(--intro-fixed-height);
}

.intro-head h1 {
  margin: 0;
  font-size: clamp(28px, 5vw, 58px);
  line-height: 1.18;
  letter-spacing: 0.03em;
}

.intro-head {
  display: grid;
  grid-template-columns: minmax(260px, 420px) 1fr minmax(320px, 420px);
  justify-content: space-between;
  align-items: end;
  gap: clamp(20px, 4vw, 56px);
  width: 100%;
}

.intro-head h1 {
  grid-column: 1;
}

.intro-head p {
  grid-column: 3;
  margin: 0;
  max-width: 420px;
  justify-self: start;
  text-align: left;
  font-size: 14px;
  line-height: 2;
  color: #525252;
}

.contents h2 {
  margin: 0;
  font-family: var(--en);
  font-size: 12px;
  color: #595959;
  letter-spacing: 0.04em;
}

.contents ul {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  gap: 4px;
}

.contents a {
  font-family: var(--en);
  font-size: 12px;
  color: #666;
}

.section-head {
  display: flex;
  gap: 10px;
  align-items: baseline;
  margin-bottom: 16px;
}

.section-head span {
  font-family: var(--en);
  font-size: 36px;
  color: #777;
}

.section-head h2 {
  margin: 0;
  font-family: var(--en);
  font-size: 36px;
  color: #353535;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 280px);
  gap: clamp(18px, 4vw, 42px);
  align-items: start;
}

.section-grid > p,
.about-card p,
.service-item p,
.news-list li,
.profile-copy p {
  margin: 0;
  font-size: 14px;
  line-height: 1.95;
  color: #525252;
}

.about-card {
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.about-image {
  height: clamp(170px, 24vw, 250px);
  margin-bottom: 10px;
  background-image:
    linear-gradient(155deg, rgba(17, 33, 52, 0.08), rgba(17, 33, 52, 0.34)),
    url("assets/images/about.jpg");
  background-size: cover;
  background-position: center;
}

.service-lead {
  margin: 0 0 20px;
  max-width: 780px;
  font-size: 14px;
  line-height: 1.9;
  color: #525252;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 3vw, 28px);
}

.service-item {
  border: 1px solid #d3d3d3;
  background: #f1f1f1;
  padding: 14px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  margin-bottom: 10px;
  background-color: #c7d2df;
  background-image: linear-gradient(140deg, rgba(17, 33, 52, 0.16), rgba(17, 33, 52, 0.42));
  background-size: cover;
  background-position: center;
}

.service-thumb-1 {
  background-image:
    linear-gradient(140deg, rgba(17, 33, 52, 0.16), rgba(17, 33, 52, 0.42)),
    url("assets/images/service-1.jpg");
}

.service-thumb-2 {
  background-image:
    linear-gradient(140deg, rgba(17, 33, 52, 0.16), rgba(17, 33, 52, 0.42)),
    url("assets/images/service-2.jpg");
}

.service-thumb-3 {
  background-image:
    linear-gradient(140deg, rgba(17, 33, 52, 0.16), rgba(17, 33, 52, 0.42)),
    url("assets/images/service-3.jpg");
}

.service-thumb-4 {
  background-image:
    linear-gradient(140deg, rgba(17, 33, 52, 0.16), rgba(17, 33, 52, 0.42)),
    url("assets/images/service-4.jpg");
}

.service-item h4 {
  margin: 0 0 8px;
  font-size: 13px;
  color: #2d2d2d;
}

.works-stack {
  display: grid;
  gap: 14px;
}

.work {
  aspect-ratio: 16 / 9;
  min-height: 180px;
  padding: 14px;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.work::before {
  content: "";
  position: absolute;
  inset: -120% -40%;
  background: linear-gradient(120deg, transparent 44%, rgba(255, 255, 255, 0.58) 50%, transparent 56%);
  transform: translateX(-70%);
  transition: transform 0.7s ease;
}

.work:hover::before {
  transform: translateX(90%);
}

.work-a {
  background: #d4d6da;
}

.work-b,
.work-c {
  background: #d4d6da;
}

.work-meta {
  position: relative;
  z-index: 1;
  font-family: var(--en);
  font-size: 11px;
  letter-spacing: 0.09em;
  color: #4f4f4f;
}

.work-logo {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: var(--en);
  font-size: clamp(26px, 3.6vw, 42px);
  letter-spacing: 0.08em;
  color: #70747b;
  text-transform: none;
}

.news-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.news-list li {
  display: flex;
  gap: 14px;
  border-bottom: 1px dashed #cfcfcf;
  padding-bottom: 7px;
}

.news-list time {
  font-family: var(--en);
  font-size: 12px;
  color: #676767;
}

.news-list a {
  color: #3c3c3c;
  border-bottom: 1px solid transparent;
  transition: border-color 0.28s ease, color 0.28s ease;
}

.news-list a:hover {
  color: #171717;
  border-color: #878787;
}

.news-more {
  margin: 14px 0 0;
}

.news-more-link,
.news-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--en);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: #555;
  border-bottom: 1px solid #b8b8b8;
  padding-bottom: 3px;
}

.news-more-link:hover,
.news-back:hover {
  color: #1f1f1f;
  border-color: #666;
}

.news-list-archive {
  gap: 14px;
}

.news-list-archive li {
  padding-bottom: 12px;
}

.pagination {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pagination .page-numbers {
  min-width: 34px;
  height: 34px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: 1px solid #c6c6c6;
  background: #f2f2f2;
  font-family: var(--en);
  font-size: 12px;
  color: #4f4f4f;
}

.pagination .page-numbers.current {
  border-color: #525252;
  color: #1f1f1f;
  background: #e4e4e4;
}

.pagination .page-numbers:hover {
  border-color: #747474;
}

.news-empty {
  margin: 0;
  font-size: 14px;
  line-height: 1.9;
  color: #5d5d5d;
}

.news-article {
  max-width: 900px;
  border: 1px solid #d6d6d6;
  background: #f1f1f1;
  padding: clamp(18px, 3vw, 34px);
}

.news-article-head {
  border-bottom: 1px dashed #cfcfcf;
  padding-bottom: 14px;
  margin-bottom: 18px;
}

.news-article-date {
  font-family: var(--en);
  font-size: 12px;
  color: #6a6a6a;
}

.news-article-title {
  margin: 8px 0 0;
  font-size: clamp(22px, 3.2vw, 34px);
  line-height: 1.35;
  color: #2a2a2a;
}

.news-article-body {
  font-size: 14px;
  line-height: 2;
  color: #4a4a4a;
}

.news-article-body > * {
  margin-top: 0;
}

.news-article-body > * + * {
  margin-top: 1.2em;
}

.news-article-body h2,
.news-article-body h3,
.news-article-body h4 {
  font-family: var(--en);
  line-height: 1.45;
  color: #2d2d2d;
}

.news-article-body a {
  color: #1d2f46;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.news-article-body ul,
.news-article-body ol {
  padding-left: 1.4em;
}

.news-article-body img {
  max-width: 100%;
  height: auto;
  border: 1px solid #dbdbdb;
}

.news-article-foot {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px dashed #cfcfcf;
}

.profile-copy {
  max-width: 700px;
}

.footer {
  margin-top: auto;
  padding: 26px clamp(20px, 5vw, 72px) 34px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  background: #ececec;
}

.footer strong {
  display: block;
  width: clamp(78px, 9.1vw, 119px);
  line-height: 0;
}

.footer strong img {
  display: block;
  width: 100%;
  height: auto;
}

.footer nav {
  display: flex;
  gap: clamp(12px, 2vw, 20px);
}

.footer nav a {
  font-family: var(--en);
  font-size: 12px;
  color: var(--muted);
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(21, 39, 62, 0.15);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.72s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.72s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

.rise {
  transition-delay: calc(var(--delay, 0) * 1s);
}

@media (max-width: 960px) {
  :root {
    --nav-width: 0px;
    --mobile-nav-h: 64px;
  }

  .texture {
    display: none;
  }

  .page {
    margin-left: 0;
  }

  .side-nav {
    inset: 0 0 auto 0;
    width: 100%;
    height: auto;
    min-height: var(--mobile-nav-h);
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: #ececec;
  }

  .logo {
    width: 78px;
  }

  .menu-toggle {
    display: block;
  }

  .links {
    position: absolute;
    top: var(--mobile-nav-h);
    left: 0;
    right: 0;
    padding: 12px 14px 16px;
    background: rgba(242, 242, 242, 0.97);
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.35s ease, opacity 0.35s ease;
  }

  .links a {
    font-size: clamp(20px, 6vw, 29px);
  }

  .menu-open .links {
    max-height: calc(100vh - var(--mobile-nav-h));
    max-height: calc(100dvh - var(--mobile-nav-h));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 24px;
    opacity: 1;
  }

  .hero {
    margin-top: var(--mobile-nav-h);
    height: min(72vw, 420px);
    min-height: 260px;
  }

  .hero-brand {
    width: clamp(120px, 34vw, 220px);
    right: 18px;
    top: 46%;
  }

  .intro {
    grid-template-columns: 1fr;
    gap: 14px;
    height: auto;
    min-height: 0;
  }

  .intro-head {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .intro-head h1,
  .intro-head p {
    grid-column: auto;
  }

  .intro-head p {
    margin-top: 12px;
    justify-self: start;
  }

  .section-grid {
    grid-template-columns: 1fr;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .news-list li {
    flex-direction: column;
    gap: 4px;
  }

  .news-article {
    padding: 16px;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer nav {
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
