@charset "UTF-8";

:root {
  --color-bg-primary: #c5ab5f;
  --color-bg-primary-light: rgb(197, 171, 95, 0.1);
  --color-bg-black: #0a1210;
  --color-bg-dark: #0a1210;
  --color-bg-white: #ffffff;
  --color-bg-card: rgba(62, 195, 154, 0.1);
  --color-font-base: #000000;
  --color-font-white: #ffffff;
  --color-font-gray: #666666;
  --color-font-primary: #3aaf8c;
  --color-border-primary: #3aaf8c;
  --color-text-primary: #000000;
  --color-accent: #3aaf8c;
  --color-accent-dark: #37806b;
  --color-accent-bright: #7ee0c0;
  --color-accent-light: #d1fae5;
  --width-content: 1080px;
  --font-family-base: "Noto Sans JP", sans-serif;
  --font-famile-en: "Comic Relief", cursive;
  --font-family-primary: "Noto Sans JP", sans-serif;
  --font-family-en: "Montserrat", sans-serif;
  --font-family-en-alt: "Montserrat Alternates", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color: #000;
  background: #fff;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  line-height: 1.75;
  font-size: 14px;
  color: var(--color-font-base);
  font-family: var(--font-family-base);
}

@media screen and (min-width: 768px) {
  body {
    font-size: 16px;
  }
}

main {
  display: block;
}

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

img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
}

svg {
  display: block;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1,
h2,
h3 {
  margin: 0;
  font-size: inherit;
  font-weight: normal;
}

/* ----- Header (top_nginx/app/scss/layout/_header.scss をプレーンCSSに展開) ----- */
html.is-nav-open,
html.is-nav-open body {
  overflow: hidden;
  overscroll-behavior: contain;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: var(--color-bg-black);
  padding: 0 40px;
}

@media screen and (min-width: 768px) {
  .header {
    padding: 0 64px;
    height: 80px;
  }
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

@media screen and (min-width: 768px) {
  .header__inner {
    height: 100%;
  }
}

.header__logo-link {
  display: inline-grid;
  grid-template-columns: auto auto;
  align-items: flex-end;
  gap: 8px;
  color: var(--color-font-white);
  text-decoration: none;
  transition: filter 0.25s ease;
}

@media screen and (min-width: 1080px) {
  .header__logo-link {
    display: flex;
  }
}

.header__logo-link .header__logo-mark-left,
.header__logo-link .header__logo-mark-right,
.header__logo-link .header__logo-name {
  transition: text-shadow 0.25s ease;
}

.header__logo-link .header__logo-wheel svg {
  transition: filter 0.25s ease;
}

.header__logo-link:hover {
  opacity: 1;
  filter: brightness(1.2);
}

.header__logo-link:hover .header__logo-mark-left,
.header__logo-link:hover .header__logo-mark-right,
.header__logo-link:hover .header__logo-name {
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
}

.header__logo-link:hover .header__logo-wheel svg {
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.55));
}

.header__logo-link:focus-visible {
  outline: 2px solid var(--color-border-primary);
  outline-offset: 4px;
}

.header__logo-mark-left {
  font-family: var(--font-family-en);
  font-size: 48px;
  line-height: 1;
  letter-spacing: -0.01em;
  font-style: italic;
  font-weight: 400;
}

@media screen and (max-width: 1024px) {
  .header__logo-mark-left {
    font-size: 38.4px;
  }
}

.header__logo-mark-right {
  font-family: var(--font-family-en-alt);
  display: inline-flex;
  align-items: baseline;
  font-size: 48px;
  line-height: 1;
  letter-spacing: -0.01em;
  font-weight: 700;
  color: var(--color-font-primary);
}

@media screen and (max-width: 1024px) {
  .header__logo-mark-right {
    font-size: 38.4px;
  }
}

.header__logo-wheel {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  margin-left: 0.02em;
  transform: translate(-2px, 3px);
  color: var(--color-font-primary);
}

.header__logo-wheel svg {
  width: 100%;
  height: 100%;
  display: block;
  animation: header-logo-wheel-spin 5s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .header__logo-wheel svg {
    animation: none;
  }
}

@media screen and (max-width: 1024px) {
  .header__logo-wheel {
    width: 25.6px;
    height: 25.6px;
    transform: translate(-1.6px, 2.4px);
  }
}

@keyframes header-logo-wheel-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.header__logo-name {
  display: block;
  grid-column: 1 / -1;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-font-white);
  line-height: 1;
  margin-inline: auto;
  padding-bottom: 4px;
}

@media screen and (min-width: 1080px) {
  .header__logo-name {
    display: inline;
    grid-column: auto;
    font-size: 16px;
  }
}

.header__nav {
  display: none;
}

@media screen and (min-width: 768px) {
  .header__nav {
    display: flex;
    align-items: center;
    gap: 12px;
  }
}

@media screen and (min-width: 1080px) {
  .header__nav {
    gap: 32px;
  }
}

.header__list {
  display: flex;
  align-items: center;
  gap: 8px;
}

@media screen and (min-width: 768px) {
  .header__list {
    gap: 12px;
  }
}

@media screen and (min-width: 1080px) {
  .header__list {
    gap: 24px;
  }
}

.header__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-font-white);
  letter-spacing: 0.04em;
  position: relative;
  display: inline-block;
  padding-bottom: 4px;
  transition: color 0.3s ease;
}

@media screen and (min-width: 768px) {
  .header__link {
    font-size: 16px;
  }
}

@media screen and (min-width: 1080px) {
  .header__link {
    font-size: 18px;
  }
}

.header__link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-font-primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.header__link:hover {
  color: var(--color-font-primary);
  opacity: 1;
}

.header__link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
  background-color: var(--color-font-primary);
}

.header__link:focus-visible {
  outline: 2px solid var(--color-border-primary);
  outline-offset: 4px;
}

.header__social {
  display: none;
}

@media screen and (min-width: 768px) {
  .header__social {
    display: block;
  }
}

.header__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
}

.header__social-link img {
  width: 16px;
  height: 16px;
  max-width: none;
}

.header__social-link:focus-visible {
  outline: 2px solid var(--color-border-primary);
  outline-offset: 4px;
}

.header__menu-button {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--color-font-primary);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: opacity 0.3s ease;
}

.header__menu-button:hover {
  opacity: 0.7;
}

.header__menu-button:focus-visible {
  outline: 2px solid var(--color-border-primary);
  outline-offset: 3px;
}

@media screen and (min-width: 768px) {
  .header__menu-button {
    display: none;
  }
}

.header__menu-line {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-bg-white);
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

.header__menu-button[aria-expanded="true"] .header__menu-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.header__menu-button[aria-expanded="true"] .header__menu-line:nth-child(2) {
  opacity: 0;
}

.header__menu-button[aria-expanded="true"] .header__menu-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.header__nav-sp {
  position: fixed;
  top: 72px;
  left: 0;
  width: 100%;
  background-color: var(--color-bg-black);
  padding: 32px 0;
  z-index: 99;
  height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-20px);
  transition: height 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.header__nav-sp.is-open {
  height: calc(100vh - 72px);
  overflow-y: auto;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

@media screen and (min-width: 768px) {
  .header__nav-sp {
    top: 77px;
  }

  .header__nav-sp.is-open {
    height: calc(100vh - 77px);
  }
}

@media screen and (min-width: 1080px) {
  .header__nav-sp {
    display: none !important;
  }
}

.header__nav-sp-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  list-style: none;
}

.header__nav-sp-link {
  display: inline-block;
  padding: 16px 32px 4px;
  color: var(--color-font-white);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.header__nav-sp-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 32px;
  width: calc(100% - 64px);
  height: 2px;
  background-color: var(--color-font-primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.header__nav-sp-link:hover {
  color: var(--color-font-primary);
}

.header__nav-sp-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header__nav-sp-link:focus-visible {
  outline: 2px solid var(--color-border-primary);
  outline-offset: 2px;
}

.header__mobile-brand-area {
  display: flex;
  justify-content: flex-start;
  padding: 20px 32px 0;
}

.header__mobile-brand {
  display: inline-flex;
  justify-content: flex-start;
  align-items: center;
  gap: 6px;
  padding: 8px 0;
  color: var(--color-font-white);
  text-decoration: none;
}

.header__mobile-brand:focus-visible {
  outline: 2px solid var(--color-border-primary);
  outline-offset: 4px;
}

.header__mobile-brand-text {
  color: var(--color-font-white);
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0.01em;
  padding-bottom: 4px;
}

/* ----- Section title (TopWorks title area) ----- */
.topWorks__title {
  margin-bottom: 20px;
  margin-top: 0;
}

.titleWrap {
  position: relative;
  display: block;
  width: 100%;
  margin-right: auto;
}

.titleWrap::before {
  position: absolute;
  content: "";
  display: block;
  inset: 0;
  background-color: var(--color-accent);
  transform: translate(4px, 4px);
  z-index: 0;
}

.title {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
  gap: 20px;
  justify-content: flex-start;
  align-items: center;
  background-color: #4a4a4a;
  padding: 10px 0 0 12px;
  color: var(--color-font-white);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.1em;
  font-family: var(--font-family-primary);
  font-style: italic;
  line-height: 1.2;
}

.title__en {
  font-size: 24px;
  color: var(--color-font-white);
  margin-bottom: 10px;
  letter-spacing: 0.1em;
  font-family: var(--font-famile-en), cursive;
  font-style: italic;
  font-weight: 500;
}

.title__jp {
  font-size: 24px;
  color: var(--color-font-white);
  margin-bottom: 10px;
  letter-spacing: 0.1em;
  font-family: var(--font-family-primary);
  font-style: italic;
  font-weight: 500;
}

/* ----- Architecture page (from Architecture.module.css) ----- */
.subTitle {
  margin-top: 40px;
  padding-bottom: 8px;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.4;
  border-bottom: 2px solid var(--color-accent);
}

.sectionSubTitle {
  margin-top: 0;
}

.main {
  padding: 72px 20px 120px;
  max-width: var(--width-content);
  margin: 0 auto;
}

@media screen and (min-width: 768px) {
  .main {
    padding-top: 80px;
  }
}

.backLink {
  margin-bottom: 24px;
  margin-top: 24px;
}

.backLink a {
  color: var(--color-font-gray);
  text-decoration: underline;
  transition: color 0.2s ease, filter 0.2s ease;
}

.backLink a:hover {
  color: var(--color-accent);
  filter: brightness(1.05);
}

.lead {
  color: var(--color-font-base);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 32px;
  font-weight: 500;
}

.figure {
  margin: 0 0 40px;
}

.imageWrap {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

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

.caption {
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--color-font-gray);
  line-height: 1.5;
}

.flowSection {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 28px;
  background-color: var(--color-bg-card);
  border-radius: 8px;
}

.flowList {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.flowItem {
  padding: 8px 16px;
  background-color: var(--color-bg-white);
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-font-base);
  text-align: center;
  min-width: 200px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.flowItemWide {
  min-width: 400px;
}

@media screen and (max-width: 600px) {
  .flowItemWide {
    min-width: min(100%, 400px);
  }

  .flowItemsRow {
    flex-direction: column;
    align-items: center;
  }
}

.flowItemsRow {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.flowBranch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.flowArrow {
  font-size: 1.25rem;
  color: var(--color-accent);
  line-height: 1;
  padding: 2px 0;
}

.section {
  margin-bottom: 40px;
}

.layerBlock,
.traefikBlock {
  margin-bottom: 24px;
}

.layerBlock:last-child,
.traefikBlock:last-child {
  margin-bottom: 0;
}

.layerTitle {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--color-font-base);
}

.layerList {
  list-style: none;
  padding-left: 0;
  margin: 0;
  color: var(--color-font-base);
  font-size: 0.95rem;
  line-height: 1.8;
}

.layerList li {
  position: relative;
  padding-left: 1.2em;
}

.layerList li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-accent);
}

.traefikBlock {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 28px;
  background-color: var(--color-bg-card);
  border-radius: 8px;
}

.philosophyList {
  list-style: none;
  padding: 0;
  margin: 0;
}

.philosophyList li {
  position: relative;
  padding-left: 1.2em;
  margin-bottom: 8px;
  font-size: 0.95rem;
  line-height: 1.6;
}

.philosophyList li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-accent);
}

/* ----- Footer (top_nginx/app/scss/layout/_footer.scss をプレーンCSSに展開) ----- */
.footer {
  background-color: var(--color-bg-black);
  padding: 32px 20px;
}

@media screen and (min-width: 768px) {
  .footer {
    padding: 40px 80px 40px;
  }
}

.footer__inner {
  max-width: var(--width-content);
  margin: 0 auto;
}

.footer__top {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 24px;
  align-items: center;
}

@media screen and (min-width: 768px) {
  .footer__top {
    margin-bottom: 40px;
  }
}

.footer__logo {
  --footer-logo-scale: 1.2;
}

.footer__logo a {
  display: inline-flex;
  align-items: flex-end;
  gap: 7px;
  color: var(--color-font-white);
  transform: scale(var(--footer-logo-scale));
  transform-origin: left bottom;
  transition: filter 0.25s ease;
}

.footer__logo a .footer__logo-mark-left,
.footer__logo a .footer__logo-mark-right,
.footer__logo a .footer__logo-name {
  transition: text-shadow 0.25s ease;
}

.footer__logo a .footer__logo-wheel svg {
  transition: filter 0.25s ease;
}

.footer__logo a:hover {
  opacity: 1;
  filter: brightness(1.2);
}

.footer__logo a:hover .footer__logo-mark-left,
.footer__logo a:hover .footer__logo-mark-right,
.footer__logo a:hover .footer__logo-name {
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
}

.footer__logo a:hover .footer__logo-wheel svg {
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.55));
}

.footer__logo a:focus-visible {
  outline: 2px solid var(--color-border-primary);
  outline-offset: 4px;
}

.footer__logo-mark-left {
  font-family: var(--font-family-en);
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.01em;
  font-style: italic;
  font-weight: 400;
}

@media screen and (min-width: 768px) {
  .footer__logo-mark-left {
    font-size: 36px;
  }
}

.footer__logo-mark-right {
  font-family: var(--font-family-en-alt);
  display: inline-flex;
  align-items: baseline;
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.01em;
  font-weight: 700;
  color: var(--color-font-primary);
}

@media screen and (min-width: 768px) {
  .footer__logo-mark-right {
    font-size: 36px;
  }
}

.footer__logo-wheel {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-left: 0.06em;
  transform: translate(-1px, 2px);
  color: var(--color-font-primary);
}

.footer__logo-wheel svg {
  width: 100%;
  height: 100%;
  display: block;
  animation: header-logo-wheel-spin 5s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .footer__logo-wheel svg {
    animation: none;
  }
}

@media screen and (min-width: 768px) {
  .footer__logo-wheel {
    width: 24px;
    height: 24px;
    transform: translate(-1px, 2px);
  }
}

.footer__logo-name {
  font-size: 12px;
  font-weight: 500;
  color: var(--color-font-white);
  line-height: 1;
  padding-bottom: 4px;
}

.footer__tagline {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-font-white);
  opacity: 0.7;
  margin-top: 12px;
  text-align: center;
}

@media screen and (min-width: 768px) {
  .footer__tagline {
    font-size: 18px;
  }
}

.footer__tagline-segment {
  display: inline-block;
}

.footer__nav {
  text-align: center;
}

@media screen and (min-width: 768px) {
  .footer__nav {
    text-align: right;
  }
}

.footer__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 24px;
}

@media screen and (min-width: 768px) {
  .footer__list {
    justify-content: flex-end;
    gap: 12px 32px;
  }
}

.footer__link {
  font-size: 16px;
  font-weight: 500;
  color: var(--color-font-white);
  opacity: 0.8;
  letter-spacing: 0.04em;
  position: relative;
  display: inline-block;
  padding-bottom: 4px;
  transition: color 0.3s ease;
}

@media screen and (min-width: 768px) {
  .footer__link {
    font-size: 18px;
  }
}

.footer__link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-font-primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.footer__link:hover {
  color: var(--color-font-primary);
  opacity: 1;
}

.footer__link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
  background-color: var(--color-font-primary);
}

.footer__link:focus-visible {
  outline: 2px solid var(--color-border-primary);
  outline-offset: 4px;
}

.footer__bottom {
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.35);
}

@media screen and (min-width: 500px) {
  .footer__bottom {
    flex-direction: row;
    gap: 64px;
    padding-left: 20px;
    justify-content: center;
    align-items: center;
  }
}

@media screen and (min-width: 768px) {
  .footer__bottom {
    gap: 128px;
    padding-left: 128px;
  }
}

.footer__copyright {
  font-size: 14px;
  color: var(--color-font-white);
  letter-spacing: 0.04em;
}

@media screen and (min-width: 768px) {
  .footer__copyright {
    font-size: 16px;
  }
}

.footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.footer__social a img {
  width: 18px;
  height: 18px;
  max-width: none;
}

@media (hover: hover) {
  .footer__social a:hover {
    opacity: 0.7;
  }
}

.footer__social a:focus-visible {
  outline: 2px solid var(--color-border-primary);
  outline-offset: 4px;
}
