:root {
  --primary: #00a99d;
  --text: #4d4d4d;
  --dark: #333;
  --muted: #f2f2f2;
  --red: #c40000;
  --space: 60px;
  --container: 1050px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: #fff;
  font: 18px/1.8 "Yu Gothic", YuGothic, "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  letter-spacing: .04em;
}

h1,
h2,
p {
  margin-top: 0;
}

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

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

.container {
  width: min(calc(100% - 40px), var(--container));
  margin: auto;
}

.section {
  padding: var(--space) 0;
}

.site-header {
  min-height: 60px;
  padding: 20px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
}

.logo {
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  width: 34%;
}

.global-menu ul,
.footer-menu ul {
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.global-menu a {
  font-size: 16px;
}

.global-menu a[aria-current=page] {
  color: var(--primary);
}

.menu-button {
  display: none;
}

.hero {
  aspect-ratio: 16 / 9;
  background: linear-gradient(#0002, #0002), url("../images/hero.webp") center/cover;
}

.hero-copy {
  position: relative;
  height: 100%;
  color: #fff;
  text-shadow: 0 2px 6px #000a;
}

.hero-copy > * {
  position: absolute;
  margin: 0;
}

.hero-catch {
  top: 31%;
  right: 2%;
  width: 50%;
  font-size: 20px;
  text-align: right;
  font-weight: bold;
}

.hero h1 {
  top: 35%;
  right: 2%;
  width: 70%;
  font-size: clamp(38px, 4vw, 54px);
  font-family: "BIZ UDMincho", "Yu Mincho", YuMincho, serif;
  font-weight: bold;
  line-height: 1.2;
  text-align: right;
}

.hero-name-en {
  top: 45%;
  right: 2%;
  width: 50%;
  font: 400 clamp(30px, 3.4vw, 46px)/.95 "BIZ UDMincho", "Yu Mincho", serif;
  letter-spacing: .02em;
  text-align: right;
}

.hero-name-en span {
  display: block;
}
.hero-name-en span:first-child{
  font-size: 60px;
}
.hero-name-en span:last-child{
  font-size: x-large;
}

.hero-lead {
  right: 2%;
  bottom: 10%;
  width: 56%;
  font-size: clamp(16px, 1.7vw, 20px);
  font-weight: 700;
  line-height: 1.5;
  text-align: left;
}

.concept {
  text-align: center;
}

.eyebrow {
  font-size: 30px;
  font-weight: 700;
}

.concept h2 {
  font-size: 28px;
}

.line {
  display: block;
  width: 70px;
  margin: 0 auto 30px;
  border-top: 1px solid;
}

.concept p:not(.eyebrow) {
  max-width: 744px;
  margin: 0 auto 35px;
  text-align: left;
  font-size: 20px;
}

.button {
  width: 200px;
  min-height: 60px;
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: var(--dark);
  color: #fff;
  font: inherit;
  cursor: pointer;
}

.button:after {
  content: "";
  width: 20px;
  margin-left: 10px;
  border-top: 1px solid;
  transition: .3s;
}

.button:hover:after {
  width: 30px;
}

.link-cards {
  padding-bottom: var(--space);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.link-cards a {
  transition: .2s;
}
.link-cards a:first-child{
  padding-right: 10px;
}
.link-cards a:last-child{
  padding-left: 10px;
}


.link-cards a:hover {
  opacity: .75;
}

.link-cards img {
  aspect-ratio: 3/2;
  object-fit: cover;
}

.link-cards h2 {
  margin: 12px 0 0;
  font-size: 30px;
}

.page-hero,
.contact-cta {
  padding: var(--space) 0;
  background: var(--primary);
  color: #fff;
}

.page-hero {
  margin-bottom: 0;
}

.page-hero h1 {
  margin: 0;
  font-size: 40px;
}

.company-list {
  width: min(calc(100% - 40px), 730px);
  margin: auto;
}

.company-list div {
  padding: 18px 10px;
  border-bottom: 1px solid #aaa;
}

.company-list dt {
  font-weight: 700;
}

.company-list dd {
  margin: 4px 0 0;
  white-space: pre-line;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 45px 50px;
}

.gallery-card img {
  aspect-ratio: 480/345;
  object-fit: cover;
}

.gallery-card h2 {
  margin: 12px 0 2px;
  font-size: 18px;
}

.gallery-card p {
  margin: 0;
}

.coming-soon {
  min-height: 360px;
  display: grid;
  place-items: center;
  text-align: center;
}

.coming-soon p {
  position: relative;
  margin: 0;
  padding-bottom: 22px;
  color: var(--dark);
  font: 400 clamp(40px, 6vw, 72px)/1 "BIZ UDMincho", "Yu Mincho", serif;
  letter-spacing: .08em;
}

.coming-soon p::after {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 72px;
  border-top: 3px solid var(--primary);
  content: "";
  transform: translateX(-50%);
}

.section-title {
  margin: 0 0 30px;
  color: var(--dark);
  font-size: 30px;
  text-align: center;
}

.recruit-intro {
  text-align: center;
}

.recruit-intro .eyebrow {
  margin-bottom: 8px;
  color: var(--primary);
  font-size: 18px;
  letter-spacing: .16em;
}

.recruit-intro h2 {
  margin-bottom: 20px;
  color: var(--dark);
  font-size: 32px;
}

.recruit-intro p:last-child {
  max-width: 780px;
  margin: auto;
  text-align: left;
}

.recruit-features,
.recruit-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.recruit-feature,
.recruit-step {
  padding: 30px;
  border-top: 4px solid var(--primary);
  background: var(--muted);
}

.recruit-number {
  margin-bottom: 8px;
  color: var(--primary);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .12em;
}

.recruit-feature h3,
.recruit-step h3 {
  margin: 0 0 10px;
  color: var(--dark);
  font-size: 21px;
}

.recruit-feature p:last-child,
.recruit-step p:last-child {
  margin-bottom: 0;
}

.recruit-requirements {
  background: var(--muted);
}

.recruit-note {
  max-width: 850px;
  margin: 0 auto 25px;
  padding: 14px 18px;
  border-left: 4px solid var(--primary);
  background: #fff;
}

.recruit-list {
  max-width: 850px;
  margin: auto;
  border-top: 1px solid #aaa;
  background: #fff;
  margin-bottom: 5rem;
}

.recruit-list div {
  display: grid;
  grid-template-columns: minmax(150px, 30%) 1fr;
  border-bottom: 1px solid #aaa;
}

.recruit-list dt,
.recruit-list dd {
  padding: 18px;
}

.recruit-list dt {
  color: var(--dark);
  font-weight: 700;
}

.recruit-list dd {
  margin: 0;
  white-space: pre-line;
}

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

.recruit-cta {
  padding: var(--space) 0;
  background: var(--primary);
  color: #fff;
  text-align: center;
}

.recruit-cta h2 {
  margin-bottom: 10px;
  font-size: 30px;
}

.recruit-cta p {
  margin-bottom: 0;
}

.recruit-cta .button {
  margin: 30px auto 0;
  background: #fff;
  color: var(--dark);
}
.recruit-requirements .button{
  margin: 0 auto;
}

.cta-grid,
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

.contact-cta {
  margin-bottom: 60px;
}

.contact-cta h2 {
  font-size: 30px;
}

.contact-cta a {
  color: #fff;
}

.site-footer {
  padding: 0 0 30px;
}

.site-footer small {
  display: block;
  margin-top: 20px;
  text-align: center;
}

.phone {
  text-align: center;
}

.phone h2 {
  font-size: 28px;
}

.phone-button {
  display: block;
  max-width: 350px;
  margin: 20px auto 0;
  padding: 8px;
  background: var(--primary);
  color: #fff;
  font-size: 28px;
}

.form-section {
  padding-top: 0;
}

.form-section h2 {
  font-size: 30px;
}

.form-row {
  margin-bottom: 30px;
  display: grid;
  grid-template-columns: 30% 70%;
  gap: 20px;
}

.form-row b {
  color: var(--red);
  font-size: 12px;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 20px;
  border: 0;
  background: var(--muted);
  font: inherit;
}

.form-row textarea {
  min-height: 200px;
  resize: vertical;
}

.form-row :focus,
.privacy input:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.field-error {
  margin: 5px 0 0;
  color: #b00020;
}

.privacy {
  margin: 0 0 30px 30%;
}

.submit {
  margin: auto;
}

.mail-result {
  max-width: 850px;
}

.confirm-list div {
  padding: 18px 10px;
  border-bottom: 1px solid #aaa;
}

.confirm-list dt {
  font-weight: 700;
}

.confirm-list dd {
  margin: 4px 0 0;
}

.mail-actions {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
}

.mail-actions .button {
  margin: 0;
}

.text-button {
  padding: 18px;
  border: 0;
  background: none;
  text-decoration: underline;
  cursor: pointer;
}

body.menu-active {
  overflow: hidden;
}

@media (min-width: 768px) and (max-width: 900px) {
  .hero h1 {
    top: 37%;
  }

  .hero-name-en {
    top: 49%;
  }

  .hero-name-en span:first-child {
    font-size: 52px;
  }
}

@media (max-width: 767px) {
  .container {
    width: min(calc(100% - 32px), var(--container));
  }

  .site-header {
    min-height: 80px;
    padding: 20px;
  }

  .logo {
    width: 70%;
  }

  .menu-button {
    width: 44px;
    height: 44px;
    padding: 10px;
    display: grid;
    gap: 5px;
    border: 0;
    background: #fff;
  }

  .menu-button span {
    display: block;
    border-top: 2px solid;
  }

  .global-menu {
    display: none;
  }

  .site-header.menu-open {
    position: fixed;
    z-index: 20;
    inset: 0 0 auto;
    background: #fffffff2;
  }

  .site-header.menu-open .global-menu {
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    height: calc(100vh - 80px);
    padding: 40px 20px;
    display: block;
    background: #fffffff2;
  }

  .global-menu ul,
  .footer-menu ul {
    flex-direction: column;
    gap: 0;
  }

  .global-menu a,
  .footer-menu a {
    display: block;
    padding: 15px;
  }

  .hero {
    aspect-ratio: 3 / 4;
    background-image: linear-gradient(#0002, #0002), url("../images/hero.webp");
  }

  .hero-copy {
    padding-bottom: 45px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: flex-end;
  }

  .hero-copy > * {
    position: static;
    width: 100%;
    text-align: left;
  }

  .hero-catch {
    font-size: 15px;
  }

  .hero h1 {
    font-size: clamp(28px, 8vw, 36px);
  }

  .hero-name-en {
    font-size: clamp(25px, 8vw, 34px);
  }

  .hero-name-en span:first-child {
    font-size: clamp(40px, 13vw, 52px);
  }

  .hero-lead {
    font-size: 14px;
    line-height: 1.5;
  }

  .eyebrow {
    font-size: 24px;
  }

  .concept h2 {
    font-size: 28px;
  }

  .link-cards,
  .gallery-grid,
  .cta-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 26px;
  }

  .recruit-intro h2 {
    font-size: 28px;
  }

  .recruit-features,
  .recruit-steps {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .recruit-feature,
  .recruit-step {
    padding: 24px;
  }

  .recruit-list div {
    grid-template-columns: 1fr;
  }

  .recruit-list dt {
    padding-bottom: 4px;
  }

  .recruit-list dd {
    padding-top: 0;
  }

  .recruit-cta h2 {
    font-size: 26px;
  }

  .recruit-cta .button {
    width: 100%;
  }

  .link-cards {
    gap: 60px;
  }

  .link-cards h2 {
    font-size: 24px;
  }

  .page-hero h1 {
    font-size: 30px;
  }

  .contact-cta .button {
    margin: 35px 0 0 auto;
  }

  .footer-menu {
    margin-top: 25px;
  }

  .phone h2 {
    font-size: 24px;
  }

  .phone-button {
    font-size: 24px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .privacy {
    margin-left: 0;
  }

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

  .mail-actions .button {
    margin: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
