/* ------------------------------------------------------------
   1. ページ固有 CSS変数
   ------------------------------------------------------------ */
:root {
  --story-sidenav-width: 67px;
  --story-color-sand: #f5f2ed;
  --story-color-taupe: #e3dbd3;
  --story-section-gap: 40px;
  --story-inner-width: 89%;
  --story-max-width: 1160px;
  --story-stage-width: 1280px;
  --story-stage-height: 720px;
  --story-stage-margin: 24px;
}

/* ------------------------------------------------------------
   2. トップページ共通
   ------------------------------------------------------------ */

.story-top-card {
  position: relative;
  display: block;
  overflow: hidden;
  text-decoration: none;
}

.story-top-card-img {
  position: relative;
  overflow: hidden;
}

.story-top-card-img img {
  display: block;
  width: 100%;
}

.story-top-card-overlay {
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / 35%);
  transition: var(--transition-time);
}

.story-top-card:hover  {
  opacity: 1;
}

.story-top-card:hover .story-top-card-overlay {
  background: rgb(0 0 0 / 0%);
}

.story-top-card-label {
  position: absolute;
  inset: 0;
  top: 50%;
  left: 50%;
  width: fit-content;
  height: fit-content;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.4;
  color: #fff;
  text-align: center;
  letter-spacing: 0.02em;
  word-wrap: normal;
  transform: translate(-50%, -50%);
}

.story-top-card-label .label-line {
  display: block;
}

.story-top-card-label .en-small {
  display: block;
  font-size: 18px;
}

.story-top-card-label .mao-small {
  display: block;
  font-size: 19px;
}

.story-top-card-label::after {
  position: absolute;
  top: 50%;
  left: 102%;
  width: 11px;
  height: 11px;
  content: "";
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
  transform: translateY(-50%);
  rotate: 45deg;
}

/* ------------------------------------------------------------
   2-SP. トップページ SP（max-width: 768px）フロー配置
   ------------------------------------------------------------ */

@media screen and (max-width: 768px) {
  .story-top-main {
    padding: 12px 6.667% 30px;
  }

  .story-top-stage {
    display: block;
  }

  .story-top-title {
    margin: 0 0 20px;
    font-family: var(--font-serif);
    font-size: min(46px, 12.2vw);
    font-weight: 400;
    line-height: 1.304;
    letter-spacing: 0;
  }

  .story-top-text1,
  .story-top-text2 {
    font-family: var(--font-serif);
    font-size: min(15px, 4.167vw);
    font-weight: 500;
    line-height: 2;
    letter-spacing: -0.07em;
    white-space: nowrap;
  }

  .story-top-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    margin-top: 30px;
  }

  .story-top-cards .story-top-card-label {
    font-size: 14px;
  }

  .story-top-cards .story-top-card-label .en-small {
    font-size: 11px;
  }

  .story-top-cards .story-top-card-label .mao-small {
    font-size: 10px;
  }

  .story-top-card-label::after {
    left: 100%;
    width: 8px;
    height: 8px;
  }
}

/* ------------------------------------------------------------
   2-PC. トップページ PC（min-width: 769px）absolute + scale
   ------------------------------------------------------------ */

@media screen and (min-width: 769px) {
  body:has(main .story-top-main) {
    height: 100%;
    overflow: hidden;
  }

  main:has(.story-top-main) {
    height: calc(100vh - var(--height-header));
    min-height: 0;
    overflow: hidden;
  }

  .story-top-main {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 0;
    padding: 0;
    overflow: hidden;
  }

  .story-top-stage {
    position: relative;
    flex-shrink: 0;
    width: var(--story-stage-width);
    height: var(--story-stage-height);
    transform: translateY(-80px) scale(min(1, calc((100vw - 48px) / 1052px), calc((100vh - var(--height-header) - 48px) / 720px)));
    transform-origin: center center;
  }

  .story-top-title {
    position: absolute;
    top: 310px;
    left: 50%;
    width: max-content;
    max-width: 100%;
    margin: 0;
    font-family: var(--font-serif);
    font-size: 89px;
    font-weight: 400;
    line-height: 1.5;
    text-align: center;
    letter-spacing: 0.025em;
    transform: translateX(-50%);
  }

  .story-top-text1 {
    position: absolute;
    top: 184px;
    left: 175px;
    margin: 0;
    font-family: var(--font-serif);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.733;
    letter-spacing: 0.005em;
  }

  .story-top-text2 {
    position: absolute;
    top: 465px;
    left: 455px;
    margin: 0;
    font-family: var(--font-serif);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.733;
    letter-spacing: 0.005em;
  }

  .story-top-cards {
    position: absolute;
    inset: 0;
    pointer-events: none;
  }

  .story-top-cards .story-top-card {
    position: absolute;
    width: 294px;
    pointer-events: auto;
  }

  .story-top-cards .story-top-card:nth-child(1) {
    top: 489px;
    left: 120px;
  }

  .story-top-cards .story-top-card:nth-child(2) {
    top: 121px;
    left: 709px;
  }

  .story-top-cards .story-top-card:nth-child(3) {
    top: 518px;
    left: 856px;
  }
}

/* ------------------------------------------------------------
   3. 記事ページ共通 (.story-article)
   ------------------------------------------------------------ */

.story-article {
  grid-row: 1;
  grid-column: 1;
  width: var(--story-inner-width);
  max-width: var(--story-max-width);
  padding: 40px 0;
  margin: 0 auto;
  font-size: 17px;
}

br.sp-only {
  display: none;
}


.story-article-header {
  margin-bottom: 0;
}

.story-article-en-title {
  padding: .3em 0 .5em;
  font-family: var(--font-serif);
  font-size: 30px;
  line-height: 1.29;
  text-align: center;
  letter-spacing: 0.02em;
  border-top: 1px solid #000;
  border-bottom: 1px solid #000;
  text-box-trim: trim-both;
}

.story-article-heading {
  margin: .3em 0;
  font-family: var(--font-serif);
  font-size: 60px;
  font-weight: 500;
  line-height: 1.25;
  text-align: left;
  letter-spacing: 0.02em;
  word-break: auto-phrase;
}

.story-article-sub {
  margin-bottom: 30px;
  font-family: var(--font-serif);
  font-size: 23px;
  font-weight: 500;
  line-height: 1.739;
  text-align: left;
  letter-spacing: 0.01em;
}


.story-hero {
  width: 100vw;
  margin-left: calc(((100vw - 100%) / 2) * -1);
  overflow: hidden;
  line-height: 0;
}

.story-hero img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}


.story-persons {
  width: 91.3%;
  margin: 60px auto 0;
}

.story-persons-photo {
  display: block;
  width: 100%;
  height: auto;
}


.story-lead {
  margin: 10px 0 0;
  font-family: var(--font-serif);
  font-size: 23px;
  font-weight: 500;
  line-height: 1.739;
  letter-spacing: 0.03em;
}


main:has(.story-sidenav) {
  display: grid;
  grid-template-columns: 1fr;
}

.story-sidenav {
  position: sticky;
  top: 220px;
  z-index: 950;
  grid-row: 1;
  grid-column: 1;
  place-self: start end;
  width: var(--story-sidenav-width);
  padding-bottom: 80px;
}

.story-sidenav-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 239px;
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.4;
  color: #000;
  text-align: center;
  letter-spacing: 0.02em;
  text-decoration: none;
  writing-mode: vertical-rl;
  transition: opacity var(--transition-time);
}

.story-sidenav-link--tokito {
  font-size: 18px;
}

.story-sidenav-link--tokito span {
  margin-top: .4em;
  font-size: 22px;
}

.story-sidenav-link:first-child {
  background: var(--story-color-sand);
}

.story-sidenav-link:nth-child(2) {
  background: var(--story-color-taupe);
}


.story-sec {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 3.5%;
  align-items: start;
  width: 100%;
  max-width: var(--story-max-width);
  margin-top: var(--story-section-gap);
  margin-bottom: 0;
}

.story-sec--reverse {
  direction: rtl;
}

.story-sec--reverse > * {
  direction: ltr;
}

.story-sec-heading {
  padding-bottom: 0;
  margin-bottom: 60px;
  margin-left: 10%;
  font-family: var(--font-serif);
  font-size: 45px;
  font-weight: 400;
  line-height: 1.556;
  color: #000;
  letter-spacing: 0.02em;
  border-bottom: none;
}

.story-sec-heading--wide {
  grid-column: 1 / -1;
  text-align: center;
}

.story-sec-media {
  overflow: visible;
}


.story-body {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 500;
  line-height: 30px;
}

.story-body--spaced {
  margin-top: 30px;
}

.story-body p {
  margin-bottom: 1.7em;
  font-size: 17px;
  line-height: 1.764;
  letter-spacing: 0;
  
}

.story-profile .story-speaker {
  margin-top: 30px;
  margin-bottom: 4px;
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.01em;
}

.story-profile .story-speaker-org {
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.615;
  letter-spacing: 0.01em;
}

.story-profile-block {
  width: 78%;
  margin: 0 auto 40px;
}

.story-profile-block .story-sec-img {
  margin-bottom: 0;
}

.story-profile {
  margin-top: 10px;
}

.story-profile-block .story-profile .story-speaker {
  margin-top: 0;
}

.story-imgs-full {
  width: 100vw;
  margin-top: var(--story-section-gap);
  margin-bottom: 80px;
  margin-left: calc(((100vw - 100%) / 2) * -1);
  line-height: 0;
}

.story-imgs-full img {
  display: block;
  width: 100%;
  height: auto;
}

.story-imgs-contained {
  max-width: 81.2%;
  margin: 70px auto;
  line-height: 0;
}

.story-imgs-contained img {
  display: block;
  width: 100%;
  height: auto;
}

.story-imgs-duo {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 70px;
  margin-top: var(--story-section-gap);
}

.story-imgs-duo--stack {
  grid-template-columns: 1fr;
}

.story-imgs-duo img {
  display: block;
}

.story-sec-img {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 10px;
  margin-bottom: 40px;
}

.story-sec-img.sp-only {
  display: none;
}

.story-sec-img.pc-only {
  display: block;
}

.story-sec-img--spaced {
  margin-top: 30px;
}

.story-sec-img--spaced-lg {
  margin-top: 80px;
}

.story-sec-img--pr {
  padding-right: 60px;
}

.story-sec-img--narrow {
  width: 85%;
  margin: 0 auto;
}

.story-sec-img--breakout {
  margin-top: 60px;
  margin-bottom: 110px;
  margin-left: calc(-1 * (100vw - var(--story-max-width)) / 2);
  margin-left: max(-6vw, -80px);
  transform: scale(1.13);
  transform-origin: left top;
}

.story-imgs-paired {
  margin-top: max(-16vw, -200px);
  line-height: 0;
}

@media screen and (max-width: 1200px) {
  .story-imgs-paired {
    margin-top: -3vw;
  }
}

.story-imgs-paired img {
  display: block;
  width: 100%;
  height: auto;
}

.story-imgs-offset {
  display: grid;
  grid-template-columns: 5fr 3fr;
  gap: 0 3%;
  align-items: end;
  margin-top: max(-9vw, -120px);
  margin-bottom: 80px;
  line-height: 0
}

.story-imgs-offset img {
  display: block;
  width: 100%;
  height: auto;
}

/* ------------------------------------------------------------
   4. SPメディアクエリ
   ------------------------------------------------------------ */

@media screen and (max-width: 768px) {
  :root {
    --story-sidenav-width: 60px;
    --story-section-gap: 50px;
    --story-gutter-left: 6.667vw;
    --story-gutter-right: calc(var(--story-sidenav-width) + 16px);
  }

  .story-article {
    width: var(--width-inner);
    max-width: var(--max-width-inner);
  }

  .story-sidenav {
    top: var(--height-header);
    width: var(--story-sidenav-width);
  }

  .story-sidenav-link {
    height: 213px;
    font-size: 14px;
  }

  .story-sidenav-link--tokito {
    font-size: 16px;
  }

  .story-sidenav-link--tokito span {
    font-size: 19px;
  }

  br.sp-only {
    display: inline;
  }

  .story-hero,
  .story-imgs-full {
    margin-top: 0;
    margin-bottom: 0;
    margin-left: calc(-1 * var(--story-gutter-left));
  }

  .story-persons {
    width: 100%;
    margin-top: 20px;
  }

  .story-article-en-title {
    font-size: 20px;
    line-height: 1.5;
  }

  .story-article-heading {
    font-size: 34px;
    line-height: 1.382;
  }

  .story-article-sub {
    font-size: 17px;
    line-height: 1.529;
  }

  .story-sec {
    grid-template-columns: 1fr;
    gap: 10px 0;
    width: 100%;
    max-width: none;
    padding-right: 35px;
    margin-top: 20px;
  }

  .story-sec > * {
    min-width: 0;
  }

  .story-sec-img {
    margin-bottom: 20px;
  }

  .story-imgs-paired {
    width: 100vw;
    margin-top: 10px;
    margin-bottom: 30px;
    margin-left: calc(((100vw - 100%) / 2) * -1);
  }

  .story-imgs-contained {
    max-width: 100%;
    padding-right: 35px;
    margin: 20px 0 40px;
  }

  .story-sec-img--pr {
    padding-right: 0;
  }

  .story-sec-img--narrow {
    width: 100%;
  }

  .story-imgs-duo.story-sec-img--spaced-lg {
    margin-top: 0;
  }

  .story-sec-img.sp-only {
    display: block;
  }

  .story-sec-img.pc-only {
    display: none;
  }

  .story-sec-img--breakout {
    position: relative;
    left: 50%;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(-50vw + 17.5px);
    transform: none;
  }

  .story-sec--reverse {
    direction: ltr;
  }

  .story-sec--reverse .story-sec-media {
    order: -1;
  }

  .story-sec--reverse.story-sec--no-flip-sp .story-sec-media {
    order: 0;
  }

  .story-sec--reverse.story-sec--no-flip-sp .story-sec-text {
    order: -1;
  }

  .story-sec-heading {
    margin-bottom: 0.2em;
    margin-left: 0;
    font-size: 34px;
    line-height: 1.618;
  }

  .story-sec-heading--wide {
    text-align: left;
  }

  .story-sec-heading--sm {
    font-size: 32px;
    letter-spacing: 0;
  }

  .story-sec-heading.sp-alC {
    text-align: center;
  }

  .story-lead {
    padding-right: 30px;
    margin: 10px 0 40px;
    font-size: 17px;
    line-height: 1.941;
    letter-spacing: -0.08em;
  }

  .story-imgs-duo,
  .story-imgs-offset {
    grid-template-columns: 1fr;
    gap: 16px 0;
  }

  .story-body {
    font-size: 17px;
    line-height: 33px;
    letter-spacing: -0.08em;
  }

  .story-profile .story-speaker {
    font-size: 17px;
  }

  .story-profile .story-speaker-org {
    margin-bottom: 0;
    font-size: 17px;
    line-height: 1.588;
  }

  .story-profile-block {
    width: 100%;
    margin-bottom: 20px;
  }

  .story-profile {
    position: relative;
    padding: 16px 0;
    margin: 0;
  }

  .story-profile::before {
    position: absolute;
    top: 0;
    left: calc(-1 * var(--story-gutter-left));
    z-index: -1;
    width: 100vw;
    height: 100%;
    content: "";
    background: var(--story-color-sand);
  }

  .story-sp-merged {
    display: block;
    margin-top: 20px;
  }
}