@import url("https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600&family=Noto+Sans+JP:wght@400;500;700&display=swap");

:root {
  --color-ink: #111817;
  --color-muted: #5f6c66;
  --color-dark: #101817;
  --color-accent: #b1d132;
  --color-accent-soft: #f4fadf;
  --color-line: #d9e2d6;
  --color-paper: #ffffff;
  --color-section: #f6f8f3;
  --shadow-soft: 0 18px 45px rgba(17, 24, 23, 0.08);
}

html {
  scroll-behavior: smooth;
  background: var(--color-section);
}

body {
  position: relative;
  min-width: 0;
  color: var(--color-ink);
  background: var(--color-section);
  font-family:
    "Noto Sans JP", "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--color-ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
  transition:
    color 0.25s ease,
    background-color 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease;
}

a:link,
a:visited {
  color: var(--color-ink);
}

a:hover {
  color: var(--color-accent);
}

a:focus-visible,
#nav-toggle:focus-visible {
  outline: 3px solid rgba(177, 209, 50, 0.45);
  outline-offset: 4px;
}

#pagewrap {
  overflow: hidden;
  background: var(--color-section);
}

/* -- ナビゲーション ------------------------- */
#menu {
  width: 100%;
  padding: 0;
  position: fixed;
  z-index: 30000;
  background: rgba(16, 24, 23, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 32px rgba(16, 24, 23, 0.12);
  top: 0;
}

#menu .inner {
  width: min(1080px, calc(100% - 48px));
  margin: 0 auto;
  padding: 16px 0;
}

#menu .inner h1 {
  width: 210px;
  padding: 8px 32px 8px 0;
  flex: 0 0 auto;
}

#menu .inner h1 img {
  width: 100%;
}

#nav-toggle {
  display: none;
  border: 0;
  padding: 0;
  appearance: none;
}

#menu .inner #nav-body {
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

#menu .inner #nav-body ul {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

#menu .inner #nav-body ul li {
  padding: 0;
}

#menu .inner #nav-body ul li a {
  display: block;
  color: #ffffff;
  position: relative;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

#menu .inner #nav-body ul li a::after {
  content: "";
  width: calc(100% - 24px);
  height: 2px;
  background: var(--color-accent);
  position: absolute;
  left: 12px;
  bottom: 4px;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.25s ease;
}

#menu .inner #nav-body ul li a:hover,
#menu .inner #nav-body ul li a:focus-visible {
  color: #d9ef8f;
}

#menu .inner #nav-body ul li a:hover::after,
#menu .inner #nav-body ul li a:focus-visible::after {
  transform: scaleX(1);
}

/* -- 共通レイアウト ------------------------- */
.container {
  display: block;
  width: 100%;
  overflow: hidden;
}

.contents {
  margin: -1px -10% 0;
  width: 120%;
  position: relative;
}

.contents .inner {
  width: min(880px, calc(100% - 48px));
  margin: 0 auto;
  padding: 80px 0 112px;
  box-sizing: border-box;
}

.contents:nth-child(odd) {
  background: var(--color-section);
  transform: rotate(5deg);
  transform-origin: 50% 0;
}

.contents:nth-child(odd) .bgwrap {
  background: var(--color-section);
  transform: rotate(-10deg);
  transform-origin: 50% 0;
}

.contents:nth-child(odd) .inner {
  transform: rotate(5deg);
  transform-origin: 50% 0;
}

.contents:nth-child(even) {
  background: var(--color-paper);
  transform: rotate(-5deg);
  transform-origin: 50% 0;
}

.contents:nth-child(even) .bgwrap {
  background: var(--color-paper);
  transform: rotate(10deg);
  transform-origin: 50% 0;
}

.contents:nth-child(even) .inner {
  transform: rotate(-5deg);
  transform-origin: 50% 0;
}

.contents .inner h2 {
  width: 100%;
  display: block;
  padding: 0 0 40px;
  color: var(--color-ink);
  font-family: "Barlow Condensed", "Noto Sans JP", sans-serif;
  font-size: 36px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
  text-align: center;
}

.contents .inner h2 span {
  display: inline-block;
  margin-top: 16px;
  padding: 0 0 16px;
  color: var(--color-muted);
  border-bottom: solid 2px var(--color-accent);
  font-family: "Noto Sans JP", sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1;
  text-align: center;
}

/* -- ヒーロー ------------------------- */
#header {
  position: relative;
  z-index: 0;
  margin: 0 0 -6%;
  overflow: hidden;
  background-color: var(--color-accent);
}

#header .inner {
  width: min(1080px, calc(100% - 48px));
  min-height: 540px;
  margin: 0 auto;
  padding: 112px 0 12%;
  box-sizing: border-box;
  position: relative;
}

#header .inner h1 {
  position: absolute;
  top: 108px;
  left: 0;
  width: min(560px, 56%);
  z-index: 10;
}

#header .inner h1 img {
  width: 100%;
  filter: drop-shadow(0 16px 26px rgba(17, 24, 23, 0.1));
}

#header .inner .img {
  text-align: right;
  position: relative;
  padding-top: 28px;
  z-index: 5;
}

#header .inner .img img {
  width: min(600px, 58%);
  filter: drop-shadow(0 22px 38px rgba(17, 24, 23, 0.12));
}

/* -- プレスリリース ------------------------- */
#presrelease .presswrap .list {
  width: min(100%, 760px);
  max-height: 220px;
  margin: 0 auto;
  padding: 24px;
  overflow: auto;
  box-sizing: border-box;
  background: var(--color-paper);
  border: solid 1px var(--color-line);
  border-left: solid 4px var(--color-accent);
  border-radius: 6px;
  box-shadow: var(--shadow-soft);
}

#presrelease .presswrap .list li {
  padding: 8px 0;
}

#presrelease .presswrap .list li dl {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 18px;
  align-items: start;
}

#presrelease .presswrap .list li dt {
  color: var(--color-ink);
  background-color: var(--color-accent-soft);
  border: 1px solid var(--color-line);
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  padding: 8px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

#presrelease .presswrap .list li dd {
  padding: 8px 0 0;
  color: var(--color-ink);
  line-height: 1.7;
  font-size: 16px;
}

/* -- 事業内容 ------------------------- */
.business-body {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 32px;
  box-sizing: border-box;
  color: var(--color-ink);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--color-line);
  border-left: 4px solid var(--color-accent);
  border-radius: 6px;
  font-size: 20px;
  font-weight: 500;
  line-height: 2;
  text-align: left;
  box-shadow: 0 14px 34px rgba(17, 24, 23, 0.05);
}

/* -- 技術者経歴 ------------------------- */
.engineer-body {
  text-align: center;
  font-size: 1.4em;
  line-height: 2;
}

.engineer-list {
  width: min(100%, 880px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.engineer-item {
  width: auto;
  padding: 28px;
  box-sizing: border-box;
  background: var(--color-paper);
  border: 1px solid var(--color-line);
  border-left: 4px solid var(--color-accent);
  border-radius: 6px;
  box-shadow: var(--shadow-soft);
}

.engineer-item h3 {
  color: var(--color-ink);
  background-color: transparent;
  padding: 0 0 16px;
  border-bottom: 1px solid var(--color-line);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.55;
}

.engineer-item h3 span {
  display: inline-block;
  margin-left: 0.25em;
  color: #536900;
  font-weight: 700;
}

.engineer-item p {
  padding-top: 16px;
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.9;
}

/* -- 会社概要 ------------------------- */
#information .outline {
  width: min(100%, 760px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(150px, 0.34fr) 1fr;
  overflow: hidden;
  background: var(--color-paper);
  border: 1px solid var(--color-line);
  border-radius: 6px;
  box-shadow: var(--shadow-soft);
}

#information .outline > dt {
  padding: 16px 24px;
  color: var(--color-ink);
  background: #f0f4ea;
  border-bottom: 1px solid var(--color-line);
  line-height: 1.55;
  text-align: left;
  font-weight: 700;
}

#information .outline > dt span {
  display: block;
  color: var(--color-muted);
  font-weight: 500;
  font-size: 12px;
}

#information .outline > dd {
  padding: 16px 24px;
  color: var(--color-ink);
  line-height: 1.65;
  border-bottom: 1px solid var(--color-line);
}

#information .outline > dt:last-of-type,
#information .outline > dd:last-of-type {
  border-bottom: 0;
}

#information .inner-executive .inner-title {
  display: inline-block;
  width: 9em;
  color: var(--color-ink);
  line-height: 1.55;
  font-weight: 500;
}

#information .inner-executive .inner-name {
  display: inline-block;
  width: calc(100% - 9em);
  line-height: 1.55;
}

#information .executive {
  display: grid;
  grid-template-columns: 9em 1fr;
  gap: 8px 12px;
}

#information .executive dt {
  padding: 0;
  color: var(--color-ink);
  line-height: 1.55;
  font-weight: 500;
}

#information .executive dd {
  padding: 00;
  line-height: 1.55;
}

#information .text-space {
  display: inline-block;
  width: 1em;
}

#information .profilewrap .statement {
  width: min(100%, 760px);
  margin: 32px auto 0;
  padding: 0;
  box-sizing: border-box;
  overflow: hidden;
  background-color: var(--color-paper);
  border: solid 1px var(--color-line);
  border-radius: 6px;
  box-shadow: var(--shadow-soft);
}

#information .profilewrap .statement h3 {
  color: #ffffff;
  background-color: var(--color-dark);
  padding: 16px;
  text-align: center;
  letter-spacing: 0;
  font-size: 15px;
  font-weight: 700;
}

#information .profilewrap .statement .list {
  box-sizing: border-box;
  padding: 8px 24px 16px;
}

#information .profilewrap .statement .list li {
  padding: 0;
}

#information .profilewrap .statement .list li + li {
  border-top: 1px solid var(--color-line);
}

#information .profilewrap .statement .list li dl {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 20px;
  align-items: center;
  padding: 16px 0;
}

#information .profilewrap .statement .list li dt {
  color: var(--color-ink);
  background-color: var(--color-accent-soft);
  border: 1px solid var(--color-line);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  padding: 8px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

#information .profilewrap .statement .list li dd {
  padding: 0;
  line-height: 1.5;
  font-size: 14px;
}

#information .profilewrap .statement a {
  color: var(--color-ink);
  font-weight: 500;
}

#information .profilewrap .statement a:hover,
#information .profilewrap .statement a:focus-visible {
  color: var(--color-accent);
}

/* -- グループ一覧 ------------------------- */
#group .groupwrap {
  padding: 16px 0 0;
}

#group ul {
  width: min(100%, 880px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

#group ul li {
  width: auto;
  padding: 0;
  box-sizing: border-box;
}

#group ul li dl {
  height: 100%;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
  box-sizing: border-box;
  background: var(--color-paper);
  border: 1px solid var(--color-line);
  border-radius: 6px;
  transition:
    border-color 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

#group ul li dl:hover {
  border-color: rgba(177, 209, 50, 0.55);
  box-shadow: 0 14px 34px rgba(17, 24, 23, 0.07);
  transform: translateY(-2px);
}

#group ul li dt {
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.55;
}

#group ul li dt a {
  color: var(--color-ink);
  text-decoration: none;
  overflow-wrap: anywhere;
}

#group ul li dt a:hover,
#group ul li dt a:focus-visible {
  color: var(--color-accent);
  text-decoration: underline;
}

#group ul li dd {
  color: var(--color-muted);
  text-align: center;
  padding: 0 0 0;
  letter-spacing: 0;
  line-height: 1.65;
}

#group ul li dd span {
  font-size: 0.86em;
}

/* -- フッター ------------------------- */
#footer {
  background-color: var(--color-dark);
  padding: 24px 0 32px;
}

#footer .inner {
  width: min(880px, calc(100% - 48px));
  margin: 0 auto;
}

#footer .link {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 24px;
  padding: 0 0 16px;
}

#footer .link li {
  float: none;
  padding: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.78);
}

#footer .link li a:link,
#footer .link li a:visited {
  color: #ffffff;
  text-decoration: underline;
}

#footer .link li a:hover,
#footer .link li a:focus-visible {
  color: #d9ef8f;
  text-decoration: underline;
}

#footer .link li a:active {
  color: #ffffff;
  text-decoration: underline;
}

#footer .link:after {
  content: "";
  display: block;
  clear: both;
}

#footer .copy {
  text-align: center;
  color: rgba(255, 255, 255, 0.74);
  font-size: 12px;
  line-height: 1.6;
}

/* ------------------------------------------------------------------------------------------------------------ */

/* ▼Smartphone▼ */
@media screen and (max-width: 812px) {
  body {
    position: relative;
    min-width: 100%;
  }

  /* -- モバイルメニュー ------------------------- */
  #nav-toggle {
    display: block;
    position: fixed;
    right: 16px;
    top: 16px;
    width: 42px;
    height: 42px;
    cursor: pointer;
    z-index: 26000;
    background-color: var(--color-dark);
    border-radius: 6px;
    box-sizing: border-box;
    overflow: hidden;
    box-shadow: 0 10px 26px rgba(17, 24, 23, 0.22);
    transition:
      transform 0.25s ease,
      background-color 0.25s ease;
  }

  #nav-toggle:active {
    transform: scale(0.96);
  }

  #nav-toggle div {
    position: absolute;
    inset: 0;
  }

  #nav-toggle span {
    display: block;
    position: absolute;
    height: 2px;
    width: 18px;
    background: #ffffff;
    left: 12px;
    border-radius: 1px;
    transition: 0.3s ease-in-out;
  }

  #nav-toggle span:nth-child(1) {
    top: 13px;
  }

  #nav-toggle span:nth-child(2) {
    top: 20px;
  }

  #nav-toggle span:nth-child(3) {
    top: 27px;
  }

  .menu-open .title a {
    pointer-events: none;
  }

  .menu-open #nav-toggle {
    position: fixed;
  }

  .menu-open #nav-toggle span:nth-child(1) {
    top: 20px;
    transform: rotate(315deg);
  }

  .menu-open #nav-toggle span:nth-child(2) {
    width: 0;
    left: 50%;
  }

  .menu-open #nav-toggle span:nth-child(3) {
    top: 20px;
    transform: rotate(-315deg);
  }

  #menu {
    width: 100%;
    padding: 0;
    z-index: 999;
    background: transparent;
    border-bottom: 0;
    box-shadow: none;
    position: absolute;
    top: 0;
  }

  #menu .inner {
    width: 100%;
    margin: 0 auto;
    padding: 0;
  }

  #menu .inner #nav-body {
    height: 0;
    width: 100%;
    position: fixed;
    z-index: 25000;
    top: 0;
    left: 0;
    transition: all 300ms ease;
    background-color: var(--color-paper);
    overflow: auto;
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    display: block;
    visibility: hidden;
  }

  .menu-open #menu #nav-body {
    height: 100dvh;
    border: solid 10px var(--color-accent);
    padding: 56px 16px 24px;
    visibility: visible;
  }

  #menu .inner h1 {
    width: 100%;
    padding: 8px 16px 32px;
    text-align: center;
    box-sizing: border-box;
  }

  #menu .inner h1 img {
    width: min(72%, 300px);
  }

  #menu .inner #nav-body ul {
    display: block;
  }

  #menu .inner #nav-body ul li {
    padding: 0;
  }

  #menu .inner #nav-body ul li a {
    color: var(--color-ink);
    padding: 16px 0;
    font-size: 16px;
    text-align: center;
  }

  #menu .inner #nav-body ul li a::after {
    bottom: 6px;
    left: 50%;
    width: 42px;
    transform: translateX(-50%) scaleX(0);
    transform-origin: center;
  }

  #menu .inner #nav-body ul li a:hover::after,
  #menu .inner #nav-body ul li a:focus-visible::after {
    transform: translateX(-50%) scaleX(1);
  }

  /* -- ヒーロー ------------------------- */
  #header {
    margin: 0 0 -8%;
  }

  #header .inner {
    width: 100%;
    max-width: 100%;
    min-height: 0;
    margin: 0 auto;
    padding: 56px 0;
    display: block;
  }

  #header .inner h1 {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
  }

  #header .inner h1 img {
    width: 100%;
  }

  #header .inner .img {
    text-align: right;
    position: relative;
    padding-top: 0;
    top: -10vw;
    margin: 0;
  }

  #header .inner .img img {
    width: 100%;
  }

  /* -- 共通レイアウト ------------------------- */
  .container {
    display: block;
    width: 100%;
    overflow: hidden;
  }

  .contents {
    margin: -1px -14% 0;
    width: 128%;
  }

  .contents:nth-child(odd) {
    transform: rotate(4deg);
  }

  .contents:nth-child(odd) .bgwrap {
    transform: rotate(-8deg);
  }

  .contents:nth-child(odd) .inner {
    transform: rotate(4deg);
  }

  .contents:nth-child(even) {
    transform: rotate(-4deg);
  }

  .contents:nth-child(even) .bgwrap {
    transform: rotate(8deg);
  }

  .contents:nth-child(even) .inner {
    transform: rotate(-4deg);
  }

  .contents .inner {
    width: 100%;
    padding: 64px 15% 88px;
    box-sizing: border-box;
  }

  .contents .inner h2 {
    padding-bottom: 32px;
    font-size: 31px;
  }

  .contents .inner h2 span {
    font-size: 12px;
  }

  /* -- プレスリリース ------------------------- */
  #presrelease .presswrap .list {
    width: 100%;
    max-height: 260px;
    padding: 16px;
  }

  #presrelease .presswrap .list li {
    padding: 8px 0;
  }

  #presrelease .presswrap .list li dl {
    display: block;
  }

  #presrelease .presswrap .list li dt {
    display: inline-block;
    font-size: 13px;
  }

  #presrelease .presswrap .list li dd {
    padding: 8px 0 0;
    font-size: 14px;
  }

  /* -- 事業内容 ------------------------- */
  .business-body {
    padding: 24px;
    font-size: 15px;
    line-height: 2;
  }

  /* -- 会社概要 ------------------------- */
  #information .outline {
    width: 100%;
    display: block;
    margin: 0 auto;
  }

  #information .outline > dt {
    padding: 8px 16px;
    line-height: 1.5;
    border-bottom: 0;
  }

  #information .outline > dd {
    padding: 16px;
    line-height: 1.65;
    border-bottom: solid 1px var(--color-line);
  }

  #information .inner-executive .inner-title,
  #information .inner-executive .inner-name {
    display: block;
    width: 100%;
  }

  #information .executive {
    grid-template-columns: 8em 1fr;
    gap: 4px 10px;
  }

  #information .profilewrap .statement {
    width: 100%;
    margin: 32px auto 0;
  }

  #information .profilewrap .statement h3 {
    padding: 8px 16px;
    font-size: 14px;
  }

  #information .profilewrap .statement .list {
    padding: 8px 16px 16px;
  }

  #information .profilewrap .statement .list li dl {
    display: block;
    padding: 16px 0;
  }

  #information .profilewrap .statement .list li dt {
    display: inline-block;
    font-size: 12px;
  }

  #information .profilewrap .statement .list li dd {
    padding: 8px 0 0;
    font-size: 14px;
  }

  /* -- 技術者経歴 ------------------------- */
  .engineer-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .engineer-item {
    width: 100%;
    padding: 24px;
  }

  .engineer-item h3 {
    font-size: 16px;
  }

  /* -- グループ一覧 ------------------------- */
  #group .groupwrap {
    padding: 16px 0 0;
  }

  #group ul {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  #group ul li {
    width: 100%;
    padding: 0;
  }

  #group ul li dl {
    min-height: 0;
    padding: 24px 16px;
  }

  /* -- フッター ------------------------- */
  #footer .inner {
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
  }

  #footer .link {
    display: block;
  }

  #footer .link li {
    float: none;
    padding: 8px 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.78);
    text-align: center;
  }
}

/* ▲Smartphone▲ */

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
