@charset "UTF-8";

@layer utility {
  [data-letter='uppercase'] {
    text-transform: uppercase;
  }

  [data-font='title'] {
    font-family: var(--title);
  }

  [data-font='mincho'] {
    font-family: var(--mincho);
  }

  [lang='en'] {
    font-family: var(--title);
    word-break: break-all;
  }

  /* =====================
    u-head
  ===================== */
  :where(.u-head) {
    position: relative;
    display: block;
    padding-block-start: 14px;
    font-family: var(--mincho);
    font-size: 28px;
    font-weight: 500;
    letter-spacing: 1.4px;

    @media (width <=768px) {
      padding-block-start: 2vw;
      font-size: calc((100 / 390) * 24 * 1vw);
      letter-spacing: calc((100 / 390) * 1.4 * 1vw);
    }

    &::before {
      inset-block-start: 0;
      inline-size: 100%;
      block-size: 1px;
      background: #bababa;
    }

    &::after {
      inset-block-start: -1px;
      inline-size: 60px;
      block-size: 2px;
      background: var(--primary);

      @media (width <=768px) {
        inline-size: calc((100 / 390) * 60 * 1vw);
      }
    }

    &::before,
    &::after {
      position: absolute;
      inset-inline: 0;
      display: block flow;
      content: '';
    }
  }

  /* =====================
    u-hgroup
  ===================== */
  :where(.u-hgroup) {
    position: relative;
    display: block grid;
    align-self: flex-start;
    inline-size: fit-content;

    @media (width <=768px) {
      gap: 0.6vw;
    }

    /* ==== lang="en" ==== */
    [lang='en'] {
      position: relative;
      display: block;
      margin-block: calc((1em - 1lh) / 2);
      font-family: var(--title);
      font-size: 60px;
      font-weight: 500;
      color: #000;
      word-break: break-all;
      background-image: radial-gradient(circle at left 16px top 39px, white calc(30px / 2 - 1px), transparent calc(30px / 2));

      @media (width <=768px) {
        font-size: 40px;
        background-image: radial-gradient(circle at left 3.4vw top 7.4vw, white calc(calc((100 / 390) * 24 * 1vw) / 2 - 1px), transparent calc(calc((100 / 390) * 24 * 1vw) / 2));
      }

      &::first-letter {
        font-size: 70px;

        @media (width <=768px) {
          font-size: calc((100 / 390) * 50 * 1vw);
        }
      }

      &::after {
        position: absolute;
        inset-block-start: 24px;
        inset-inline-start: 1px;
        z-index: 2;
        display: block flow;
        inline-size: 30px;
        aspect-ratio: 1 / 1;
        content: '';
        background: white;
        border-radius: calc(infinity * 1px);
        mix-blend-mode: exclusion;

        @media (width <=768px) {
          inset-block-start: 4.1vw;
          inset-inline-start: 0.3vw;
          inline-size: calc((100 / 390) * 24 * 1vw);
        }
      }
    }

    /* ==== title ==== */
    .title {
      position: relative;
      z-index: 2;
      padding-inline-start: 20px;
      margin-block-start: -3px;
      font-family: var(--mincho);
      font-size: 16px;
      font-weight: 700;
      color: var(--primary);

      @media (width <=768px) {
        padding-inline-start: 4.2vw;
        margin-block-start: -1.9vw;
        font-size: calc((100 / 390) * 16 * 1vw);
      }
    }

    /* ====  data-align="center" ==== */
    &[data-align='center'] {
      justify-content: center;
      margin-inline: auto;

      [lang='en'] {
        translate: 2px 0;

        @media (width <=768px) {
          translate: 0;
        }
      }

      .title {
        padding-inline-start: 0;
        text-align: center;
        translate: 10px 0;

        @media (width <=768px) {
          translate: 1.8vw 0;
        }
      }
    }

    /* ==== data-color="white" ==== */
    &[data-color='white'] {
      color: white;

      [lang='en'] {
        color: white;
        background-image: radial-gradient(circle at left 16px top 39px, transparent calc(30px / 2 - 1px), transparent calc(30px / 2));

        /* prettier-ignore */
        @media (width <=768px) {
          background-image:
            radial-gradient(circle at left 3.4vw top 7.4vw,
              transparent calc(calc((100 / 390) * 24 * 1vw) / 2 - 1px),
              transparent calc(calc((100 / 390) * 24 * 1vw) / 2));
        }
      }

      .title {
        color: white;
      }
    }
  }

  /* =====================
    u-anchor
  ===================== */
  :where(.u-anchor) {
    position: relative;
    z-index: 2;
    display: block flex;
    gap: 100px;
    align-items: center;
    inline-size: fit-content;
    padding-block: 14.9px;
    padding-inline: 30px;
    overflow: clip;
    font-weight: 400;
    border: 1px solid var(--primary);
    transition:
      background 250ms ease 0s,
      color 250ms ease 0s,
      scale 100ms var(--easeOutBounce) -10ms,
      translate 250ms ease 0s;

    @media (width <=768px) {
      gap: calc((100 / 390) * 100 * 1vw);
      inline-size: unset;
      min-inline-size: calc((100 / 390) * 240 * 1vw);
      padding-block: 4.3vw;
      padding-inline: calc((100 / 390) * 28 * 1vw);
      font-size: calc((100 / 390) * 14 * 1vw);
    }

    &::before {
      position: absolute;
      inset-block: 0;
      inset-inline-start: 0;
      z-index: -1;
      inline-size: 0;
      block-size: 100%;
      pointer-events: none;
      content: '';
      background: var(--primary);
      transition: inline-size 400ms var(--easeOutBounce) 0s;
    }

    &::after {
      inline-size: 24px;
      aspect-ratio: 1 / 1;
      content: '';
      background-color: var(--primary);
      mask-image: var(--icon-arrow);
      mask-repeat: no-repeat;
      mask-position: center;
      mask-size: contain;
      transition: inherit;

      @media (width <=768px) {
        inline-size: calc((100 / 390) * 24 * 1vw);
      }
    }

    &:active {
      scale: 0.96;
    }

    @media (any-hover: hover) {
      &:hover {
        color: white;

        &::before {
          inline-size: 100%;
        }

        &::after {
          background-color: white;
          translate: 25% 0;
        }
      }
    }

    &[data-align='center'] {
      justify-content: center;
      margin-inline: auto;
    }

    &[data-color='white'] {
      color: white;
      border: 1px solid white;

      &::before {
        background-color: color-mix(in srgb, white 20%, transparent);
      }

      &::after {
        background-color: white;
      }
    }

    &[target='_blank'] {
      &::after {
        inline-size: 13px;
        block-size: 13px;
        mask-image: var(--icon-blank);

        @media (width <=768px) {
          inline-size: calc((100 / 390) * 13 * 1vw);
          block-size: calc((100 / 390) * 13 * 1vw);
        }
      }
    }
  }

  /* =====================
    u-scroll-table
  ===================== */
  :where(.u-scroll-table) {
    position: relative;

    @media (width <=768px) {
      max-inline-size: calc(infinity * 1px);
      padding-block-end: calc((100 / 390) * 18 * 1vw);
      overflow-x: auto;

      &::before {
        position: absolute;
        inset-block-start: calc(50% - 20vw);
        inset-inline-start: calc(50% - 20vw);
        z-index: 4;
        display: block grid;
        align-items: flex-end;
        inline-size: calc((100 / 390) * 120 * 1vw);
        block-size: calc((100 / 390) * 111 * 1vw);
        padding-block-end: 2.8vw;
        font-size: calc((100 / 390) * 10 * 1vw);
        color: white;
        text-align: center;
        pointer-events: none;
        content: 'スクロールできます';
        background: rgb(0 0 0 / 50%);
        background-repeat: no-repeat;
        background-position: center;
        background-size: contain;
        border-radius: calc((100 / 390) * 16 * 1vw);
      }

      &::after {
        position: absolute;
        inset-block-start: calc(50% - 13vw);
        inset-inline-start: calc(50% - 9vw);
        z-index: 4;
        inline-size: calc((100 / 390) * 37 * 1vw);
        aspect-ratio: 25 / 30;
        content: '';
        background-image: url('../img/_common/icon/scrollable.svg');
        background-repeat: no-repeat;
        background-position: center;
        background-size: contain;
        rotate: 0 0 1 -25deg;
        animation: scrollable 1200ms ease 0ms infinite normal none running;
      }

      &.touched {
        &::before {
          display: none;
        }

        &::after {
          display: none;
        }
      }

      tr.checked {
        td {
          background: color-mix(in srgb, var(--lightblue) 8%, transparent);
        }
      }
    }

    table {
      @media (width <=768px) {
        inline-size: 100%;
      }
    }

    thead th {
      @media (width <=768px) {
        white-space: nowrap;
      }
    }

    tbody th {
      @media (width <=768px) {
        white-space: nowrap;
      }
    }

    tbody td {
      @media (width <=768px) {
        white-space: nowrap;
      }
    }
  }

  /* =====================
    u-hero
  ===================== */
  :where(.u-hero) {
    position: relative;
    z-index: 2;
    overflow: clip;

    /* ==== slider ==== */
    .container {
      position: absolute;
      inset: 0;
      inline-size: 100%;
      block-size: var(--_block-size, 100svh);
      min-block-size: inherit;
      margin-inline: auto;
      overflow: clip;
      pointer-events: none;
      touch-action: pan-y;

      @media (width <=768px) {
        inline-size: 100%;
      }

      /* ==== picture ==== */
      picture {
        position: relative;
        z-index: 1;
        display: block;
        block-size: 100%;
        min-block-size: 100%;
        pointer-events: none;
        user-select: none;

        & img {
          display: block;
          inline-size: 100%;
          block-size: var(--_block-size);
          object-fit: cover;
          object-position: center;
        }
      }

      .zoom img {
        animation: zoom 15s linear 0ms 1 normal both running;
      }
    }

    /* ==== . . . ==== */
    .bullets {
      position: absolute;
      inset-block-start: 49%;
      inset-inline-end: 26px;
      z-index: 3;
      display: block flex;
      flex-direction: column;
      gap: 14px;
      align-items: center;
      justify-content: center;
      inline-size: fit-content;
      translate: 0 -50%;

      &[hidden] {
        display: none;
      }

      @media (width <=768px) {
        inset: unset;
        inset-block-end: 5.5vw;
        inset-inline: 0;
        flex-direction: row;
        gap: calc((100 / 390) * 14 * 1vw);
        justify-content: flex-start;
        margin-inline: auto;
      }

      span {
        inline-size: 6px;
        aspect-ratio: 1 / 1;
        background: rgb(255 255 255 / 60%);
        border-radius: calc(infinity * 1px);
        opacity: 1;

        @media (width <=768px) {
          inline-size: calc((100 / 390) * 6 * 1vw);
          background: rgb(255 255 255 / 80%);
        }

        &.swiper-pagination-bullet-active {
          background: white;
        }
      }
    }

    /* ==== (< >) ==== */
    .pagination {
      position: absolute;
      inset-block-end: 20px;
      inset-inline-end: 20px;
      z-index: 7;
      inline-size: 140px;
      aspect-ratio: 1 / 1;

      @media (width <=768px) {
        display: none;
      }

      /* ==== 円 ==== */
      .circle {
        --radius: 49;
        --circumference: calc(var(--radius) * 2 * pi * 1px);

        display: block;
        inline-size: 140px;
        aspect-ratio: 1 / 1;
        pointer-events: none;
        rotate: 0 0 1 90deg;

        @media (width <=768px) {
          inline-size: calc((100 / 390) * 87.97 * 1vw);
        }

        & circle {
          fill: none;
          stroke: white;
          stroke-width: 1px;

          &:not(.dummy) {
            stroke-dasharray: var(--circumference);
            stroke-dashoffset: var(--circumference);
            will-change: stroke-dashoffset;
          }

          &.dummy {
            stroke-opacity: 0.3;
          }
        }

        /* Swiper delay 2000 + speed 2000 なので 4000ms で設定 */
        &.animation circle {
          animation: circle 4000ms ease 0ms infinite normal forwards running;
        }

        /* slideChange setTimeoutの秒数と一致 */
        &.animation-end circle {
          animation-name: circle-end;
          animation-duration: 1000ms;
        }
      }

      /* ==== prev, next ==== */
      :where(.prev, .next) {
        --_top: 50%;

        position: absolute;
        display: grid;
        place-content: center;
        color: white;
        pointer-events: auto;
        cursor: pointer;
        transform: translateY(-50%);
        transition: opacity 0.2s ease-in;

        @media (width <=768px) {
          inline-size: calc((100 / 750) * 13 * 1vw);
          block-size: calc((100 / 750) * 22 * 1vw);
        }
      }

      .prev {
        inset: var(--_top) auto auto 28%;
      }

      .next {
        inset: var(--_top) 28% auto auto;
        scale: -1 1;
      }
    }

    /* ==== scroll ==== */
    .scroll {
      position: absolute;
      inset-block-end: 35px;
      inset-inline: 0;
      z-index: 2;
      display: block grid;
      gap: 16px;
      align-items: center;
      justify-content: center;
      inline-size: fit-content;
      margin-inline: auto;
      pointer-events: none;
      translate: 5px 0;

      @media (width <=768px) {
        inset-inline-start: calc((100 / 390) * 16 * 1vw);
        inset-inline-end: unset;
        gap: 4.2vw;
      }

      /* before */
      &::before {
        inline-size: 37px;
        block-size: 11px;
        aspect-ratio: 37 / 11;
        content: 'SCROLL';
        background-repeat: no-repeat;
        background-position: center;
        background-size: contain;

        @media (width <=768px) {
          inline-size: calc((100 / 390) * 37 * 1vw);
          block-size: calc((100 / 390) * 11 * 1vw);
        }
      }
    }

    /* □□□ → ■■□ → □■■ → □□■ → □□□ */
    .scroll[data-type='move-color'] span {
      position: relative;
      display: block flow;
      inline-size: 4px;
      block-size: 80px;
      margin-inline: auto;
      background: white;

      @media (width <=768px) {
        inline-size: calc((100 / 390) * 4 * 1vw);
        block-size: calc((100 / 390) * 48 * 1vw);
      }

      &::before {
        position: absolute;
        inset: 0;
        content: '';
        background: var(--main);
        animation: scroll-move-color 2s cubic-bezier(1, 0, 0, 1) infinite;
      }
    }

    /* > →  > */
    .scroll[data-type='move-arrow'] span {
      inline-size: 25px;
      block-size: 10px;
      margin-inline: auto;
      background-repeat: no-repeat;
      background-position: center;
      background-size: contain;
      animation: scroll-move-arrow 2s cubic-bezier(1, 0, 0, 1) infinite;

      @media (width <=768px) {
        inline-size: calc((100 / 390) * 25 * 1vw);
        block-size: calc((100 / 390) * 10 * 1vw);
      }
    }
  }

  /* =====================
    u-decoration
  ===================== */
  :where(.u-decoration) {
    position: absolute;
    inset-block-start: 340px;
    inset-inline-end: -100px;
    z-index: -1;
    inline-size: 444px;
    aspect-ratio: 444 / 445;
    pointer-events: none;
    background-image: url('../img/_common/circle-text.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    animation: rotate 120s linear infinite;

    @media (width <=768px) {
      inset-block-start: 31vw;
      inset-inline-end: -31vw;
      inline-size: calc((100 / 390) * 300 * 1vw);
    }

    &[data-type='no-mv'] {
      inset-block-start: -100px;

      @media (width <=768px) {
        inset-block-start: calc((100 / 390) * -120 * 1vw);
      }
    }
  }

  /* =====================
    u-mv
  ===================== */
  :where(.u-mv) {
    position: relative;
    z-index: 3;
    display: block grid;
    align-items: end;
    block-size: 450px;
    padding-block-end: 60px;

    @media (width > 768px) {
      margin-inline-start: 82px;

      &::before {
        position: absolute;
        inset-block-start: 262px;
        inset-inline-start: -114px;
        font-family: var(--title);
        font-size: 12px;
        font-style: normal;
        font-weight: 400;
        color: #bababa;
        text-align: center;
        letter-spacing: 2.4px;
        content: 'YAMASHO CO., LTD.';
        rotate: 0 0 1 270deg;
      }
    }

    @media (width <=768px) {
      block-size: calc((100 / 390) * 300 * 1vw);
      padding-block-end: 4.9vw;
    }

    /* ==== hgroup ==== */
    hgroup {
      position: relative;
      z-index: 2;
      display: block grid;
      inline-size: fit-content;
      color: white;

      [lang='en'] {
        display: block flow;
        padding-inline-start: 121px;
        margin-block: calc((1em - 1lh) / 2);
        font-size: 100px;
        font-weight: 500;
        letter-spacing: -3px;

        @media (width <=768px) {
          padding-inline-start: 4.1vw;
          font-size: calc((100 / 390) * 50 * 1vw);
          letter-spacing: calc((100 / 390) * -1.5 * 1vw);
        }
      }

      h1 {
        display: block grid;
        flex-shrink: 0;
        grid-template-columns: 1fr auto;
        gap: 10px;
        align-items: center;
        justify-content: end;
        font-family: var(--mincho);
        font-size: 22px;
        font-weight: 600;
        text-align: right;

        @media (width <=768px) {
          gap: 3.2vw;
          margin-block-start: 0.6vw;
          font-size: calc((100 / 390) * 20 * 1vw);
        }

        &::before {
          display: block flow;
          inline-size: 100%;
          block-size: 1px;
          content: '';
          background: white;
        }
      }
    }

    /* ==== picture ==== */
    .picture {
      position: absolute;
      inset-block-start: 50%;
      inset-inline-start: 50%;
      z-index: -1;
      inline-size: 100%;
      block-size: 100%;
      pointer-events: none;
      object-fit: cover;
      translate: -50% -50%;

      img {
        position: absolute;
        inset-block-start: 50%;
        inset-inline-start: 50%;
        z-index: -1;
        inline-size: 100%;
        block-size: 100%;
        pointer-events: none;
        object-fit: cover;
        translate: -50% -50%;
      }
    }
  }

  /* =====================
    u-breadcrumb
  ===================== */
  :where(.u-breadcrumb) {
    position: relative;
    z-index: 3;
    display: block flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    justify-content: flex-end;
    inline-size: fit-content;
    padding-block: 24px;
    padding-inline: 40px;
    margin-inline: auto 0;
    font-size: 12px;
    font-weight: 400;

    @media (width <=768px) {
      gap: calc((100 / 390) * 16 * 1vw);
      padding-block: 3.7vw;
      padding-inline: calc((100 / 390) * 16 * 1vw);
      font-size: calc((100 / 390) * 12 * 1vw);
    }

    & li {
      display: block flex;
      gap: 16px;
      align-items: center;
      align-self: center;
      margin-block: calc((1em - 1lh) / 2);
      isolation: isolate;

      @media (width <=768px) {
        gap: 3.8vw;
      }
    }

    & li:first-child a {
      transition: opacity 250ms ease 0s;

      @media (any-hover: hover) {
        &:hover {
          opacity: 0.7;
        }
      }
    }

    & li:first-child::before {
      inline-size: 13px;
      aspect-ratio: 13 / 12;
      content: '';
      background-color: #8ad485;
      mask-image: var(--icon-home);
      mask-repeat: no-repeat;
      mask-position: center;
      mask-size: contain;
      translate: 7px 1px;

      @media (width <=768px) {
        inline-size: calc((100 / 390) * 13 * 1vw);
        translate: 2.1vw 0.2vw;
      }
    }

    & li:not(:last-child)::after {
      display: block;
      inline-size: 6px;
      block-size: 6px;
      content: '';
      background-color: currentcolor;
      mask-image: var(--icon-breadcrumb);
      mask-repeat: no-repeat;
      mask-position: center;
      mask-size: contain;
      translate: 0 0.5px;

      @media (width <=768px) {
        inline-size: calc((100 / 390) * 6 * 1vw);
        block-size: calc((100 / 390) * 6 * 1vw);
        font-size: 2.7vw;
      }
    }

    .item {
      display: block flex;
      gap: 12px;
      align-items: center;
      margin-block: calc((1em - 1lh) / 2);
      line-height: 1;

      @media (width <=768px) {
        gap: calc((100 / 390) * 6 * 1vw);
        font-size: calc((100 / 390) * 12 * 1vw);
        word-break: break-all;
      }

      &:is(a) {
        transition: all 250ms ease 0s;

        @media (any-hover: hover) {
          &:hover {
            opacity: 0.5;
          }
        }
      }
    }
  }

  /* =====================
    u-inner
  ===================== */
  :where(.u-inner) {
    max-inline-size: 1280px;
    margin-inline: auto;

    @media (width <=768px) {
      padding-inline: calc((100 / 390) * 16 * 1vw);
    }
  }

  /* =====================
    u-hover
  ===================== */
  :where(.u-hover) {
    &:not([data-hover]) {
      transition: opacity 0.3s ease-in-out;
      will-change: opacity;

      @media (any-hover: hover) {
        &:hover {
          opacity: 0.7;
        }
      }
    }
  }

  /* =====================
    u-table
  ===================== */
  :where(.u-table) {
    --_border-color: rgb(179 179 179 / 100%);

    display: block grid;
    grid-template-columns: 250px 1fr;
    inline-size: 1040px;
    margin-inline: auto;

    @media (width <=768px) {
      grid-template-columns: 23vw 1fr;
      align-items: flex-start;
      inline-size: 100%;
      font-size: calc((100 / 390) * 14 * 1vw);
    }

    /* ==== tr ==== */
    .tr {
      position: relative;
      display: block grid;
      grid-template-columns: subgrid;
      grid-column: 1 / -1;
      align-items: self-start;

      @media (width <=768px) {
        align-items: flex-start;
      }

      & :where(dt, dd) {
        block-size: 100%;
        padding-block: 23.3px;

        @media (width <=768px) {
          align-self: flex-start;
          padding-block: calc((100 / 390) * 13 * 1vw) calc((100 / 390) * 14.9 * 1vw);
          word-break: break-all;
        }

        & a:not([href^='tel:']) {
          color: var(--primary);
          text-decoration: underline;

          @media (any-hover: hover) {
            &:hover {
              text-decoration: none;
            }
          }
        }

        @media (width <=768px) {
          & a {
            text-decoration: underline;
          }
        }
      }

      &:last-child {
        & dt {
          border-block-end-color: var(--_border-color);
        }

        & dd {
          word-break: break-all;
          border-block-end-color: var(--_border-color);
        }
      }
    }

    /* ==== dt ==== */
    & dt {
      position: relative;
      font-weight: 400;
      border-block-start: 1px solid var(--_border-color);
      border-block-end: 1px solid transparent;

      @media (width <=768px) {
        position: sticky;
        inset-block-start: 28.7vw;
        place-content: flex-start;
        block-size: fit-content !important;
        padding-inline-start: 0;
        text-align: left;
      }

      &::before {
        position: absolute;
        inset-block-start: -2px;
        inset-inline: 0;
        block-size: 2px;
        content: '';
        background: var(--primary);
      }
    }

    &[data-sticky='false'] {
      & dt {
        @media (width <=768px) {
          position: relative;
          inset-block-start: unset;
          block-size: 100% !important;
        }
      }
    }

    .tr:last-child dt::after {
      position: absolute;
      inset-block-end: 0;
      inset-inline: 0;
      block-size: 2px;
      content: '';
      background: var(--primary);
    }

    /* ==== dd ==== */
    & dd {
      padding-inline: 0;
      border-block-start: 1px solid var(--_border-color);
      border-block-end: 1px solid transparent;

      @media (width <=768px) {
        padding-inline: calc((100 / 390) * 10 * 1vw);
      }

      .address {
        display: block grid;
        gap: 0;

        .location {
          display: block grid;
        }

        .tel-fax {
          display: block flex;
          gap: 3px;

          @media (width <=768px) {
            display: block flex;
            flex-direction: column;

            a[href^='tel:'] {
              color: var(--primary);
            }
          }

          @media (width > 768px) {
            span+span::before {
              margin-inline-end: 1px;
              content: '／';
            }
          }
        }

        @media (width <=768px) {
          display: block flex;
          flex-direction: column;
          gap: 0;
          align-items: flex-start;
        }
      }
    }
  }

  /* =====================
    u-news
  ===================== */
  :where(.u-news) {
    --_border-color: #b7b7b7;
    --_clip-path-plus: polygon(48% 0%, 52% 0%, 52% 48%, 100% 48%, 100% 52%, 52% 52%, 52% 100%, 48% 100%, 48% 52%, 0% 52%, 0% 48%, 48% 48%);
    --_clip-path-minus: polygon(48% 48%, 52% 48%, 52% 48%, 100% 48%, 100% 52%, 52% 52%, 52% 52%, 52% 100%, 52% 52%, 0% 52%, 0% 48%, 48% 48%);

    display: block grid;
    margin-inline: auto;

    @media (width > 768px) {
      &[data-type='page'] {
        inline-size: 100%;
        padding-inline: 120px;
      }
    }

    @media (width <=768px) {
      inline-size: 100%;
      padding-block-end: calc((100 / 390) * 41 * 1vw);
    }

    /* ==== details ==== */
    details {
      position: relative;
      display: block grid;
      padding-block: 40px;
      padding-inline: 40px;
      border-block-end: 1px solid var(--_border-color, '#000');

      @media (width <=768px) {
        padding-inline: 0;
      }
    }

    details[hidden] {
      display: none;
    }

    details:first-child {
      border-block-start: 1px solid var(--_border-color, '#000');
    }

    /* ==== summary ==== */
    summary {
      position: relative;
      display: block grid;
      gap: 10px;
      align-items: center;
      justify-content: flex-start;
      inline-size: 100%;
      cursor: pointer;

      @media (width <=768px) {
        grid-template-rows: auto 1fr;
        grid-template-columns: auto;
      }

      /* (+) */
      &::after {
        position: absolute;
        inset-block-start: 50%;
        inset-inline-end: 0;
        min-inline-size: 38px;
        aspect-ratio: 1 / 1;
        content: '';
        background: var(--color-text-primary, '#000');
        clip-path: var(--_clip-path-plus);
        mask-repeat: no-repeat;
        mask-position: center;
        mask-size: contain;
        translate: 0 -50%;
        transition: clip-path 150ms ease 0s;
        will-change: clip-path;

        @media (width <=768px) {
          inset-block-start: 12vw;
          inset-inline-end: 3vw;
          min-inline-size: calc((100 / 390) * 20 * 1vw);
        }
      }
    }

    /* ==== time ==== */
    time {
      align-items: center;
      inline-size: fit-content;
      font-size: 13px;
      font-weight: 400;
      color: #b7b7b7;

      @media (width <=768px) {
        font-size: calc((100 / 390) * 13 * 1vw);
      }
    }

    &[data-type='page'] time {
      font-size: 16px;
      color: #747474;
    }

    /* ==== h2 ==== */
    h2 {
      padding-inline-end: 27px;
      word-break: break-all;

      @media (width <=768px) {
        padding-inline-end: 12vw;
      }
    }

    &[data-type='page'] h2 {
      font-size: 16px;

      @media (width <=768px) {
        font-size: calc((100 / 390) * 15 * 1vw);
      }
    }

    /* ==== li ==== */
    li {
      display: block grid;
      grid-template-rows: subgrid;
      grid-row: span 3;
      border-block-end: 1px solid #b7b7b7;
    }

    /* ==== anchor ==== */
    .anchor {
      display: block grid;
      grid-template-columns: auto auto 1fr;
      grid-row: span 3;
      gap: 18px;
      align-items: center;
      padding-block: 49px;

      @media (width <=768px) {
        grid-template-columns: unset;
        grid-row: unset;
        gap: 2.5vw 5.2vw;
        padding-block: 9.4vw;
      }
    }

    /* ==== title ==== */
    .title {
      font-size: 15px;
      font-weight: 400;

      @media (width <=768px) {
        grid-row: 2 / 3;
        grid-column: 1 / 4;
        font-size: calc((100 / 390) * 14 * 1vw);
      }
    }

    /* ==== category ==== */
    .category {
      padding-block: 1.5px;
      padding-inline: 13.5px;
      font-size: 10px;
      font-weight: 400;
      color: white;
      background: var(--primary);

      @media (width <=768px) {
        grid-row: 1 / 2;
        grid-column: 2 / 3;
        padding-block: 0.4vw;
        padding-inline: 3.5vw;
        font-size: calc((100 / 390) * 10 * 1vw);
        font-weight: 400;
      }
    }

    /* ==== body ==== */
    .body {
      display: block grid;
      grid-template-rows: 0fr;
      grid-template-columns: 1fr;
      overflow: clip;
      transition: grid-template-rows 250ms ease 0ms;
      animation: none;
      will-change: grid-template-rows;

      .editor {
        display: block grid;
        grid-template-rows: 0fr;
        grid-auto-flow: row;
        padding-block-start: 30px;
        padding-inline-end: 70px;
        overflow: hidden;
        font-weight: 400;

        @media (width <=768px) {
          padding-block-start: var(--nudge-1);
          padding-inline-end: 12vw;
          font-size: calc((100 / 390) * 15 * 1vw);
        }
      }
    }

    /* ==== open ==== */
    details[open] {
      .body {
        grid-template-rows: 1fr;
      }

      /* ==== (-) ==== */
      summary::after {
        clip-path: var(--_clip-path-minus);
      }
    }
  }

  /* =====================
    u-more
  ===================== */
  :where(.u-more) {
    position: relative;
    display: block flex;
    gap: 9px;
    align-items: center;
    inline-size: fit-content;
    margin-block-start: 60px;
    margin-inline: auto;
    font-size: 16px;
    font-weight: 700;
    transition: opacity 250ms ease 0s;

    @media (any-hover: hover) {
      &:hover {
        opacity: 0.7;
      }
    }

    @media (width <=768px) {
      gap: 4vw;
      margin-block-start: 8vw;
      font-size: calc((100 / 390) * 15 * 1vw);
    }

    /* ○ */
    &::after {
      position: relative;
      z-index: 2;
      inline-size: 24px;
      aspect-ratio: 1 / 1;
      content: '';
      background: var(--primary);
      border-radius: calc(infinity * 1px);

      @media (width <=768px) {
        inline-size: calc((100 / 390) * 24 * 1vw);
      }
    }

    /* ↓ */
    &::before {
      position: absolute;
      inset-block-start: 11.4px;
      inset-inline-end: 4.8px;
      z-index: 3;
      inline-size: 14px;
      aspect-ratio: 14 / 9;
      content: '';
      background-color: white;
      mask-image: var(--icon-bracket);
      mask-repeat: no-repeat;
      mask-position: center;
      mask-size: contain;

      @media (width <=768px) {
        inset-block-start: 2.7vw;
        inset-inline-end: 1.2vw;
        inline-size: calc((100 / 390) * 14 * 1vw);
      }
    }

    &.on {
      display: none;
      visibility: hidden;
      pointer-events: none;
      opacity: 0;
    }
  }

  /* =====================
    u-interview
  ===================== */
  :where(.u-interview) {
    position: relative;
    display: block grid;
    overflow: clip;

    /* ==== img ==== */
    .img {
      position: relative;
      grid-row: 1 / 2;
      grid-column: 1 / 3;
      inline-size: 100%;
      block-size: 450px;
      margin-block-end: 22px;
      overflow: hidden;

      @media (width <=768px) {
        block-size: calc((100 / 390) * 370 * 1vw);
        margin-block-end: var(--nudge-2);
      }

      >img {
        position: absolute;
        inset-block-start: 50%;
        inset-inline-start: 50%;
        z-index: -1;
        inline-size: 100%;
        block-size: 100%;
        pointer-events: none;
        object-fit: cover;
        translate: -50% -50%;

        @media (width <=768px) {
          object-position: center 13%;
        }
      }

      .workplace {
        position: absolute;
        inset-block-end: 0;
        inset-inline-start: 0;
        display: block flex;
        padding-block: 7.5px;
        padding-inline: 12.4px;
        margin-block: calc((1em - 1lh) / 2);
        font-size: 13px;
        font-weight: 700 !important;
        color: var(--primary);
        background: #fff;

        @media (width <=768px) {
          padding-block: var(--nudge-1);
          padding-inline: var(--nudge-2);
          font-size: calc((100 / 390) * 15 * 1vw);
        }
      }
    }

    /* ==== a ==== */
    >a {
      position: absolute;
      inset-block-start: 0;
      inset-inline-start: 0;
      z-index: 3;
      display: block flow;
      inline-size: 100%;
      block-size: 100%;
    }

    /* ==== body ==== */
    .catch {
      position: relative;
      z-index: 2;
      grid-row: 2 / 3;
      grid-column: 1 / 3;
      margin-block-end: 15px;
      font-size: 20px;
      font-weight: 500 !important;
      line-height: 1.6 !important;

      @media (width <=768px) {
        margin-block-end: var(--nudge-2);
        font-size: calc((100 / 390) * 15 * 1vw);

        br {
          display: none;
        }
      }
    }

    /* ==== body ==== */
    .body {
      display: block flex;
      grid-row: 3 / 4;
      grid-column: 1 / 3;
      align-items: end;
    }

    /* ==== name ==== */
    .name {
      margin-block: calc((1em - 1lh) / 2);
      font-family: var(--title);
      font-size: 50px;
      font-weight: 600;
      letter-spacing: 1.5px;

      @media (width <=768px) {
        font-size: calc((100 / 390) * 40 * 1vw);
        letter-spacing: calc((100 / 390) * 1.5 * 1vw);
      }
    }

    /* ==== date ==== */
    .date {
      font-size: 14px;
      translate: 0 -1px;

      @media (width <=768px) {
        font-size: calc((100 / 390) * 15 * 1vw);
        translate: 0 calc((100 / 390) * 3 * 1vw);
      }
    }
  }

  /* =====================
    u-empty
  ===================== */
  :where(.u-empty) {
    padding-block: 40px;
    font-weight: 400;
    text-align: center;

    @media (width <=768px) {
      padding-block: calc((100 / 390) * 40 * 1vw);
    }
  }
}
