/* /workstyle/ とトップの特集バナー専用。共通CSSは変更しない。 */

.p-ws-home {
  background: #f7f1e8;
  padding: 28px 20px 36px;
}

.p-ws-home__link {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 1100px;
  margin: 0 auto;
  background: #fffdf9;
  color: #3a332c;
  text-decoration: none;
  border: 1px solid #e6d8c6;
  overflow: hidden;
  pointer-events: none;
}

a.p-ws-home__link:hover {
  opacity: 1 !important;
}

.p-ws-home__copy {
  padding: 28px 22px 26px;
}

.p-ws-home__kicker {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.28em;
  color: #ce5548;
}

.p-ws-home__title {
  margin: 0;
  font-size: 28px;
  line-height: 1.45;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.p-ws-home__sub {
  margin: 14px 0 0;
  font-size: 16px;
  line-height: 1.7;
  font-weight: 700;
}

.p-ws-home__text {
  margin: 12px 0 0;
  max-width: 36em;
  font-size: 14px;
  line-height: 1.85;
  color: #5e554c;
}

.p-ws-home__btn,
.p-ws-home__btn:link,
.p-ws-home__btn:visited {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  width: auto;
  margin-top: 18px;
  min-height: 44px;
  padding: 0 18px;
  background: #d84315;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 7px;
  text-decoration: none;
  pointer-events: auto;
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  border: 2px solid #d84315;
}

.p-ws-home__photo {
  min-height: 220px;
  background: #efe4d4;
}

.p-ws-home__photo img {
  display: block;
  width: 100%;
  height: 240px;
  object-fit: cover;
  object-position: 32% 42%;
}

@media screen and (min-width: 800px) {
  .p-ws-home {
    padding: 48px 28px 56px;
  }

  .p-ws-home__link {
    grid-template-columns: 1.15fr 0.85fr;
    min-height: 320px;
  }

  .p-ws-home__copy {
    padding: 48px 48px 44px 52px;
    align-self: center;
  }

  .p-ws-home__title {
    font-size: 36px;
  }

  .p-ws-home__photo img {
    height: 100%;
    min-height: 340px;
    object-position: 28% 40%;
  }
}

.p-ws {
  --ws-ink: #3a332c;
  --ws-muted: #6b6056;
  --ws-line: #e4d8c8;
  --ws-ivory: #f6f1e8;
  --ws-paper: #fffdf9;
  --ws-sand: #efe3d2;
  --ws-brand: #d84315;
  --ws-accent: #ce5548;
  color: var(--ws-ink);
  background: var(--ws-paper);
  font-family: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.9;
}

.p-ws img {
  max-width: 100%;
}

.p-ws-kicker {
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--ws-accent);
}

.p-ws-heading {
  margin: 0;
  font-family: "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.04em;
}

.p-ws-section {
  padding: 72px 22px;
}

.p-ws-section__inner {
  max-width: 920px;
  margin: 0 auto;
}

.p-ws-prose p,
.p-ws-fv__lead p,
.p-ws-work p {
  margin: 0 0 1.1em;
}

.p-ws-prose {
  max-width: 38em;
}

.p-ws-fv {
  display: grid;
  background: var(--ws-ivory);
}

.p-ws-fv__copy {
  padding: 40px 22px 8px;
}

.p-ws-fv__title {
  margin: 0;
  font-family: "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 36px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.04em;
}

.p-ws-fv__sub {
  margin: 18px 0 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.7;
}

.p-ws-fv__photo {
  margin: 18px 0 0;
}

.p-ws-fv__photo img {
  display: block;
  width: 100%;
  height: 240px;
  object-fit: cover;
  object-position: 34% 42%;
}

.p-ws-fv__lead {
  padding: 22px 22px 56px;
  max-width: 40em;
}

.p-ws-fv__lead p:last-child {
  margin-bottom: 0;
}

.p-ws-worries {
  background: #fff;
}

.p-ws-worries__layout {
  margin-top: 36px;
}

.p-ws-worries__photo {
  margin: 0 0 28px;
}

.p-ws-worries__photo img {
  display: block;
  width: 100%;
  height: 280px;
  object-fit: cover;
  object-position: 40% 32%;
}

.p-ws-worries__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.p-ws-worries__list li {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 8px 14px;
  padding: 20px 0;
  border-top: 1px solid var(--ws-line);
}

.p-ws-worries__list li:last-child {
  border-bottom: 1px solid var(--ws-line);
}

.p-ws-worries__num {
  font-family: "Noto Serif JP", "Yu Mincho", serif;
  font-size: 22px;
  line-height: 1.2;
  color: var(--ws-accent);
}

.p-ws-worries__list p {
  margin: 0;
}

.p-ws-pull {
  margin: 48px 0 0;
  padding: 8px 0 0 18px;
  border-left: 2px solid var(--ws-accent);
}

.p-ws-pull p {
  margin: 0 0 0.7em;
}

.p-ws-pull__strong {
  font-family: "Noto Serif JP", "Yu Mincho", serif;
  font-size: 22px;
  line-height: 1.6;
}

.p-ws-meaning {
  background: var(--ws-ivory);
}

.p-ws-prose--lead {
  margin-top: 28px;
}

.p-ws-venn {
  margin: 48px auto 8px;
  max-width: 560px;
}

.p-ws-venn__stage {
  position: relative;
  width: min(100%, 520px);
  margin: 0 auto;
  aspect-ratio: 1 / 1.02;
}

.p-ws-venn__circle {
  position: absolute;
  width: 62%;
  aspect-ratio: 1;
  border-radius: 50%;
  display: flex;
}

.p-ws-venn__circle--rice {
  top: 0;
  left: 0;
  background: rgba(206, 85, 72, 0.2);
  justify-content: flex-start;
  align-items: flex-start;
}

.p-ws-venn__circle--like {
  top: 0;
  right: 0;
  background: rgba(141, 107, 79, 0.2);
  justify-content: flex-end;
  align-items: flex-start;
}

.p-ws-venn__circle--light {
  bottom: 0;
  left: 19%;
  background: rgba(232, 214, 186, 0.78);
  justify-content: center;
  align-items: flex-end;
}

.p-ws-venn__label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16% 12% 0;
  text-align: center;
}

.p-ws-venn__circle--light .p-ws-venn__label {
  padding: 0 12% 16%;
}

.p-ws-venn__en {
  font-size: 13px;
  letter-spacing: 0.08em;
  line-height: 1.3;
}

.p-ws-venn__ja {
  font-family: "Noto Serif JP", "Yu Mincho", serif;
  font-size: 16px;
  line-height: 1.4;
}

.p-ws-venn__core {
  position: absolute;
  left: 50%;
  top: 47%;
  z-index: 2;
  transform: translate(-50%, -50%);
  margin: 0;
  padding: 10px 18px;
  background: #fffdf9;
  border-radius: 999px;
  font-family: "Noto Serif JP", "Yu Mincho", serif;
  font-size: 18px;
  letter-spacing: 0.14em;
  line-height: 1.4;
  box-shadow: 0 8px 22px rgba(58, 51, 44, 0.08);
}

.p-ws-venn__caption {
  margin: 18px 0 0;
  text-align: center;
  font-size: 14px;
  color: var(--ws-muted);
}

.p-ws-works {
  display: grid;
  gap: 28px;
  margin-top: 48px;
}

.p-ws-work {
  padding-top: 8px;
  border-top: 1px solid var(--ws-line);
}

.p-ws-work__index {
  margin: 14px 0 6px;
  font-family: "Noto Serif JP", serif;
  color: var(--ws-accent);
  letter-spacing: 0.12em;
}

.p-ws-work__title {
  margin: 0 0 10px;
  font-family: "Noto Serif JP", "Yu Mincho", serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.4;
}

.p-ws-work__title span {
  display: block;
  margin-bottom: 4px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 12px;
  letter-spacing: 0.14em;
  font-weight: 500;
  color: var(--ws-muted);
}

.p-ws-work__lead {
  font-weight: 700;
}

.p-ws-inline-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 16px;
  margin: 36px 0 0;
  font-size: 15px;
}

.p-ws-inline-cta a {
  color: var(--ws-brand);
  font-weight: 700;
  text-underline-offset: 4px;
}

.p-ws-inline-cta .p-ws-btn {
  margin-top: 4px;
  color: #fff;
  text-decoration: none;
}

.p-ws-inline-cta:has(.p-ws-btn) {
  align-items: flex-start;
}

.p-ws-inline-cta .p-ws-btn + span {
  flex-basis: 100%;
}

.p-ws-inline-cta span {
  color: var(--ws-muted);
}

.p-ws-foundation {
  display: grid;
  background: #fff;
}

.p-ws-foundation__photo {
  margin: 0;
}

.p-ws-foundation__photo img {
  display: block;
  width: 100%;
  height: 260px;
  object-fit: cover;
  object-position: 64% 46%;
}

.p-ws-foundation__copy {
  padding: 48px 22px 64px;
  max-width: 640px;
}

.p-ws-dispatch {
  background: #fff;
}

.p-ws-subhead {
  margin: 36px 0 16px;
  font-family: "Noto Serif JP", "Yu Mincho", serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.5;
}

.p-ws-note {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ws-muted);
}

.p-ws-note + .p-ws-prose {
  margin-top: 32px;
}

.p-ws-time {
  list-style: none;
  margin: 36px 0 8px;
  padding: 4px 0 0 4px;
  border-left: 1px solid #d9cbb8;
}

.p-ws-time li {
  position: relative;
  padding: 0 0 26px 26px;
}

.p-ws-time li:last-child {
  padding-bottom: 0;
}

.p-ws-time__mark {
  position: absolute;
  left: -6px;
  top: 8px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--ws-accent);
}

.p-ws-time strong {
  display: block;
  font-family: "Noto Serif JP", "Yu Mincho", serif;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
}

.p-ws-time li span:last-child {
  display: block;
  margin-top: 4px;
  color: var(--ws-muted);
  font-size: 14px;
}

.p-ws-message {
  background: var(--ws-ivory);
  padding: 0 0 8px;
}

.p-ws-message__photo {
  margin: 0;
}

.p-ws-message__photo img {
  display: block;
  width: 100%;
  height: 280px;
  object-fit: cover;
  object-position: 42% 30%;
}

.p-ws-message__inner > div {
  padding: 48px 22px 64px;
  max-width: 680px;
}

.p-ws-close {
  background: var(--ws-sand);
  padding: 72px 22px 80px;
}

.p-ws-close__inner {
  max-width: 640px;
  margin: 0 auto;
}

.p-ws-btn {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 360px);
  max-width: 100%;
  min-width: 0;
  min-height: 56px;
  margin-top: 8px;
  padding: 14px 24px;
  background: var(--ws-brand);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  border-radius: 7px;
}

.p-ws-btn:hover,
.p-ws-sticky__btn:hover {
  background: #c23b12;
  color: #fff;
  opacity: 1;
}

@media screen and (min-width: 769px) {
  .p-ws-home__btn {
    overflow: hidden;
    transition: color 0.3s ease;
  }

  .p-ws-home__btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: #fff;
    transition: left 0.3s ease;
  }

  .p-ws-home__btn:hover,
  .p-ws-home__btn:focus-visible {
    background: #d84315;
    color: #d84315;
    opacity: 1;
  }

  .p-ws-home__btn:hover::before,
  .p-ws-home__btn:focus-visible::before {
    left: 0;
  }
}

.p-ws .u-sp-br {
  display: none;
}

@media screen and (max-width: 768px) {
  .p-ws .u-sp-br {
    display: block;
  }
}

.p-ws-close__note {
  margin: 14px 0 0;
  font-weight: 700;
}

.p-ws-close__flow {
  margin: 16px 0 0;
  max-width: 38em;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ws-muted);
}

.p-ws-sticky {
  display: none;
}

@media screen and (max-width: 768px) {
  .p-ws-sticky {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    padding: 8px 16px calc(8px + env(safe-area-inset-bottom));
    background: rgba(255, 253, 249, 0.96);
    border-top: 1px solid var(--ws-line);
    text-align: center;
    transform: translateY(0);
    transition: transform 0.25s ease;
  }

  .p-ws-sticky.is-hidden {
    transform: translateY(110%);
    pointer-events: none;
  }

  body.page-workstyle.p-ws-has-sticky {
    padding-bottom: calc(64px + env(safe-area-inset-bottom));
  }

  body:has(.p-sp-nav.is-open) .p-ws-sticky {
    visibility: hidden;
  }
}

.p-ws-sticky__btn,
.p-ws-sticky__btn:link,
.p-ws-sticky__btn:visited {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  background: #d84315;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.06em;
  border-radius: 7px;
}

.p-ws-sticky__note {
  display: none;
}

@media screen and (min-width: 800px) {
  .p-ws-heading {
    font-size: 36px;
  }

  .p-ws-section {
    padding: 104px 32px;
  }

  .p-ws-fv {
    grid-template-columns: minmax(320px, 1.05fr) minmax(280px, 0.95fr);
    min-height: 680px;
    align-items: stretch;
  }

  .p-ws-fv__copy {
    grid-column: 1;
    grid-row: 1;
    align-self: end;
    padding: 80px 48px 12px 8vw;
  }

  .p-ws-fv__title {
    font-size: 58px;
  }

  .p-ws-fv__photo {
    grid-column: 2;
    grid-row: 1 / span 2;
    margin: 0;
  }

  .p-ws-fv__photo img {
    height: 100%;
    min-height: 680px;
    object-position: 30% 46%;
  }

  .p-ws-fv__lead {
    grid-column: 1;
    grid-row: 2;
    align-self: start;
    padding: 8px 64px 88px 8vw;
  }

  .p-ws-worries__layout {
    display: grid;
    grid-template-columns: 0.78fr 1.22fr;
    gap: 48px;
    align-items: start;
  }

  .p-ws-worries__photo {
    margin: 8px 0 0;
    position: sticky;
    top: 24px;
  }

  .p-ws-worries__photo img {
    height: 520px;
    object-position: 34% 42%;
  }

  .p-ws-works {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .p-ws-foundation {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
  }

  .p-ws-foundation__photo img {
    height: 100%;
    min-height: 520px;
    object-position: 70% 48%;
  }

  .p-ws-foundation__copy {
    padding: 72px 64px;
  }

  .p-ws-time {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin-left: 0;
    padding: 28px 0 0;
    border-left: 0;
    border-top: 1px solid #d9cbb8;
  }

  .p-ws-time li {
    padding: 0 20px 0 0;
  }

  .p-ws-time__mark {
    left: 0;
    top: -34px;
  }

  .p-ws-message__inner {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
  }

  .p-ws-message__photo img {
    height: 100%;
    min-height: 520px;
    object-position: 40% 36%;
  }

  .p-ws-message__inner > div {
    padding: 72px 64px;
  }

  .p-ws-close {
    padding: 104px 32px 112px;
  }

  .p-ws-venn__en {
    font-size: 14px;
  }

  .p-ws-venn__ja {
    font-size: 18px;
  }

  .p-ws-venn__core {
    font-size: 20px;
  }
}

@media screen and (min-width: 1100px) {
  .p-ws-meaning .p-ws-section__inner {
    max-width: 1080px;
  }

  .p-ws-works {
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
  }

  .p-ws-work {
    border-top: 0;
    padding-top: 0;
  }
}

.p-ws-venn__circle--rice .p-ws-venn__label,
.p-ws-venn__circle--like .p-ws-venn__label {
  transform: translateY(50px);
}

.p-ws-venn__circle--light .p-ws-venn__label {
  transform: translateY(-20px);
}
