/*
Theme Name: live-theme
Theme URI: https://example.com/
Author: LIVE
Description: 株式会社リブのオリジナルWordPressテーマ
Version: 1.0.0
Text Domain: live-theme
*/

:root {
  --page: #f4f4f4;
  --ink: #101010;
  --muted: #646464;
  --line: #5c5c5c;
  --white: #ffffff;
  --design-width: 1440px;
  --content-left: 308px;
  --content-right: 100px;
  --label-left: 135px;
  --visual-right: 1120px;
  --service-width: 790px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 14px;
  line-height: 2;
}

.site-shell {
  position: relative;
  width: min(100%, var(--design-width));
  margin: 0 auto;
  background: var(--page);
}

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

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

.site-header {
  position: absolute;
  z-index: 5;
  top: 0;
  left: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
  min-height: 410px;
  padding: 18px 112px 0;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  min-width: 430px;
}

.brand-live {
  position: relative;
  display: block;
  width: clamp(320px, 29.5vw, 430px);
  aspect-ratio: 301 / 222;
  overflow: hidden;
  flex: 0 0 auto;
}

.brand-live img {
  position: absolute;
  top: -36.04%;
  left: -32.89%;
  width: 170.1%;
  max-width: none;
}

.brand-name {
  position: relative;
  display: block;
  width: clamp(118px, 10vw, 150px);
  aspect-ratio: 204 / 30;
  margin-left: 6px;
  overflow: hidden;
  flex: 0 0 auto;
}

.brand-name img {
  position: absolute;
  top: -583.33%;
  left: -75.49%;
  width: 250.98%;
  max-width: none;
}

.global-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
  margin-top: 12px;
  color: #202020;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.global-nav ul {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin: 0;
  padding: 0;
  list-style: none;
}

.global-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  padding: 0 31px;
  border-left: 1px solid #666;
  line-height: 1;
  white-space: nowrap;
}

.global-nav > a:last-child,
.global-nav li:last-child a {
  border-right: 1px solid #666;
}

.hero {
  min-height: 790px;
  background: var(--page);
}

.hero-image {
  height: 805px;
  background-image: url("assets/images/hero.png");
  background-position: center top;
  background-repeat: no-repeat;
  background-size: cover;
}

.section-with-label {
  position: relative;
}

.vertical-label {
  position: absolute;
  top: 20px;
  left: var(--label-left);
  margin: 0;
  padding-left: 18px;
  border-left: 1px solid var(--line);
  color: #171717;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  line-height: 1.6;
  writing-mode: vertical-rl;
}

.label-right .vertical-label {
  right: auto;
  left: var(--label-left);
}

.intro .vertical-label,
.company .vertical-label {
  left: 150px;
  transform: translateX(-50%);
  padding-right: 18px;
  padding-left: 0;
  border-right: 1px solid var(--line);
  border-left: 0;
}

.intro {
  min-height: 780px;
  margin-top: -80px;
  padding: 0 0 260px;
}

.intro-copy {
  width: min(780px, 72vw);
  margin-left: 300px;
}

.intro h1 {
  margin: 0 0 72px;
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: clamp(72px, 6.7vw, 96px);
  font-weight: 400;
  letter-spacing: 0.25em;
  line-height: 1.45;
}

.intro h1 span {
  display: block;
}

.intro-copy p {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.34em;
  line-height: 3.45;
}

.visual-band {
  width: min(1120px, 100%);
  margin: 0 auto 170px 0;
  overflow: hidden;
  border-radius: 0 98px 0 0;
}

.visual-band img {
  width: 100%;
  height: 550px;
  object-fit: cover;
  object-position: center 54%;
}

.services {
  padding: 0 0 78px;
}

.services .vertical-label,
.works .vertical-label {
  top: 15px;
  left: 1280px;
  transform: translateX(-50%);
}

.works .vertical-label {
  top: 35px;
}

.service-list {
  width: var(--service-width);
  margin-left: calc(var(--visual-right) - var(--service-width));
}

.service-item {
  padding: 0 0 79px;
  border-bottom: 1px solid var(--line);
}

.service-item + .service-item {
  padding-top: 92px;
}

.service-heading {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  margin-bottom: 48px;
}

.service-heading h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.22em;
  line-height: 1.2;
}

.service-heading img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.service-item p {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 2.45;
  text-align: right;
}

.works {
  padding: 35px 0 258px;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  width: min(var(--visual-right), 100%);
  margin-left: 0;
}

.work-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1.42 / 1;
  background: var(--white);
}

.work-card img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  opacity: 0.92;
}

.work-card p {
  margin: 7px 0 0;
  color: #bcbcbc;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.24em;
}

.company {
  display: grid;
  grid-template-columns: minmax(300px, 440px) minmax(380px, 556px);
  gap: clamp(76px, 10.5vw, 150px);
  align-items: start;
  padding: 0 0 260px var(--content-left);
}

.company .vertical-label {
  top: 2px;
}

.company-profile {
  margin: 0;
  padding-top: 4px;
  transform: translateX(20px);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  line-height: 2;
}

.company-profile div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 22px;
  margin-bottom: 26px;
}

.company-profile dt,
.company-profile dd {
  margin: 0;
}

.map {
  width: 556px;
  max-width: 100%;
  margin: 0;
}

.site-footer {
  text-align: center;
}

.pagetop {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-bottom: 100px;
  color: #1c1c1c;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.22em;
}

.pagetop::before,
.pagetop::after {
  width: 42px;
  height: 1px;
  background: #7b7b7b;
  content: "";
}

.site-footer p {
  margin: 0;
  padding: 18px 20px;
  background: #000;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.page-main {
  min-height: 70vh;
  padding: 190px max(24px, calc((100% - 1040px) / 2)) 180px;
}

.page-header {
  margin-bottom: 72px;
}

.page-title {
  margin: 0;
  font-size: clamp(38px, 5vw, 68px);
  font-weight: 400;
  letter-spacing: 0.12em;
  line-height: 1.4;
}

.page-content {
  max-width: 880px;
  font-size: 14px;
  line-height: 2.4;
}

.page-content > :first-child,
.front-page-editor-content > :first-child {
  margin-top: 0;
}

.page-content > :last-child,
.front-page-editor-content > :last-child {
  margin-bottom: 0;
}

.front-page-editor {
  padding: 0 var(--content-right) 180px var(--content-left);
}

.front-page-editor-content {
  max-width: 900px;
}

.post-list article + article {
  margin-top: 64px;
}

.post-list h2 {
  margin: 0 0 16px;
  font-size: 24px;
  font-weight: 700;
}

.post-list time {
  color: var(--muted);
  font-size: 11px;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 900px) {
  .site-header {
    position: relative;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    min-height: 0;
    padding: 24px;
    background: rgba(244, 244, 244, 0.94);
  }

  .brand {
    flex-direction: row;
    align-items: center;
    gap: 15px;
    min-width: 210px;
  }

  .brand-live {
    width: 50px;
  }

  .brand-name {
    margin-left: 0;
    width: 112px;
  }

  .global-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 12px 0;
    margin-top: 0;
    font-size: 10px;
  }

  .global-nav ul {
    display: contents;
  }

  .global-nav a,
  .global-nav > a:last-child,
  .global-nav li:last-child a {
    border-right: 0;
  }

  .hero,
  .hero-image {
    min-height: 0;
    height: 48vh;
  }

  .intro {
    margin-top: 0;
    padding: 64px 24px 88px;
  }

  .vertical-label,
  .label-right .vertical-label {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    transform: none;
    display: inline-block;
    margin-bottom: 34px;
    writing-mode: horizontal-tb;
  }

  .intro .vertical-label,
  .company .vertical-label {
    padding-right: 0;
    padding-left: 18px;
    border-right: 0;
    border-left: 1px solid var(--line);
  }

  .intro-copy,
  .service-list {
    width: 100%;
    margin-left: 0;
  }

  .intro h1 {
    font-size: clamp(48px, 12vw, 78px);
    letter-spacing: 0.14em;
  }

  .intro-copy p {
    letter-spacing: 0.17em;
    line-height: 2.7;
  }

  .visual-band {
    width: calc(100% - 24px);
    margin-left: 0;
    margin-bottom: 88px;
    border-radius: 0 58px 0 0;
  }

  .visual-band img {
    height: 320px;
  }

  .services,
  .works {
    padding: 0 24px 88px;
  }

  .service-item,
  .service-item + .service-item {
    padding-top: 54px;
    padding-bottom: 54px;
  }

  .service-heading {
    justify-content: flex-start;
    margin-bottom: 28px;
  }

  .service-item p {
    text-align: left;
  }

  .work-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    margin-left: 0;
  }

  .company {
    display: block;
    padding: 0 24px 120px;
  }

  .company-profile {
    margin-bottom: 54px;
    transform: none;
  }

  .page-main {
    padding: 88px 24px 120px;
  }

  .page-header {
    margin-bottom: 48px;
  }

  .front-page-editor {
    padding: 0 24px 120px;
  }
}

@media (max-width: 560px) {
  .brand {
    min-width: 0;
  }

  .brand-live {
    width: 46px;
  }

  .brand-name {
    width: 104px;
  }

  .global-nav {
    grid-template-columns: 1fr;
  }

  .global-nav a {
    padding: 0 0 0 16px;
  }

  .hero-image {
    height: 360px;
    background-position: center top;
  }

  .intro h1 {
    line-height: 1.55;
  }

  .intro-copy p br,
  .service-item p br {
    display: none;
  }

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

  .company-profile div {
    grid-template-columns: 76px 1fr;
    gap: 16px;
  }

  .pagetop {
    margin-bottom: 64px;
  }
}
