/* 特集（izumojin_category=feature）だけに適用するスタイル */
.interview-single--feature {
  /* 特集記事のMV */
  .interview-single__photo {
    margin-top: 60px;
    width: min(995px, 100%);

    picture {
      display: block;
    }
  }

  .interview-single__photo-image {
    aspect-ratio: auto;
    object-fit: contain;
    border-radius: 10px;
  }

  .interview-single__hero-text {
    max-width: 995px;
  }

  /* 特集のみ：タイトル周囲の人物イラストを横長MVの上へ退避する。 */
  .interview-hero {
    /* 左の海苔づくりイラスト */
    .interview-hero__deco--uppurui-nori {
      top: 155px;
      right: calc(50% + 350px);
      left: auto;
      width: 122px;
    }

    /* 右の陶芸イラスト */
    .interview-hero__deco--pottery {
      top: 155px;
      left: calc(50% + 380px);
      right: auto;
      width: 108px;
    }

    /* 右上の女性イラスト */
    .interview-hero__deco--careerwoman {
      top: 88px;
      left: calc(50% + 240px);
    }

    @media (max-width: 1000px) {
      .interview-hero__deco--uppurui-nori {
        top: 138px;
        right: auto;
        left: max(18px, calc(50% - 270px));
        width: 105px;
      }

      .interview-hero__deco--pottery {
        top: 130px;
        right: max(24px, 5vw);
        left: auto;
        width: 80px;
      }

      .interview-hero__deco--careerwoman {
        top: 78px;
        left: calc(50% + 145px);
        width: 45px;
      }
    }

    @media (max-width: 600px) {
      /* 狭い画面ではタイトルの上側にイラストをまとめる。 */
      .interview-hero__deco--uppurui-nori {
        top: 36px;
        left: calc(50% - 55px);
        width: 105px;
      }

      .interview-hero__deco--pottery {
        top: 80px;
        right: auto;
        left: calc(50% + 110px);
        width: 70px;
      }

      .interview-hero__deco--careerwoman {
        top: 42px;
        left: calc(50% - 165px);
        width: 45px;
      }
    }

    @media (max-width: 450px) {
      .interview-hero__deco--uppurui-nori {
        top: 42px;
        left: calc(50% - 48px);
        width: 95px;
      }

      .interview-hero__deco--pottery {
        left: calc(50% + 95px);
        width: 65px;
      }

      .interview-hero__deco--careerwoman {
        top: 50px;
        left: calc(50% - 142px);
        width: 40px;
      }
    }
  }

  /* 特集用の会話ブロック */
  .special-conversation {
    margin: 0 0 46px;
  }

  .special-conversation__items {
    display: grid;
    gap: 24px;
  }

  .special-conversation__speech {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    width: min(670px, 100%);

    @media (max-width: 600px) {
      gap: 9px;
    }
  }

  /* 右側の吹き出し・発言者 */
  .special-conversation__speech--right {
    margin-left: auto;
    flex-direction: row-reverse;

    .special-conversation__speaker {
      text-align: center;
    }

    .special-conversation__balloon {
      background: #f5f1e8;

      &::before {
        left: auto;
        right: -10px;
        background: #f5f1e8;
        clip-path: polygon(0 0, 100% 50%, 0 100%);
      }
    }
  }

  /* 人物アイコンと名前 */
  .special-conversation__identity {
    flex: 0 0 82px;
    width: 82px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    min-width: 0;

    @media (max-width: 600px) {
      flex-basis: 72px;
      width: 72px;
      gap: 4px;
    }
  }

  .special-conversation__avatar {
    flex: none;
    width: 62px;
    height: 62px;
    overflow: hidden;
    border-radius: 50%;

  }

  /* Composite original icon: two faces (瑛介さん・朝美さん) without circular clipping. */
  .special-conversation__identity--group {
    flex: 0 0 146px;
    width: 146px;
  }

  .special-conversation__avatar--group {
    width: 139px;
    height: 62px;
    border-radius: 0;
    overflow: visible;

    .special-conversation__avatar-image {
      object-fit: contain;
      border-radius: 0;
    }
  }

  .special-conversation__avatar-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
  }

  .special-conversation__speech-body {
    flex: 1 1 0;
    min-width: 0;
  }

  .special-conversation__speaker {
    margin: 0;
    width: 100%;
    font-weight: 700;
    font-size: 12px;
    line-height: 1.45;
    text-align: center;
    overflow-wrap: anywhere;

    @media (max-width: 600px) {
      font-size: 11px;
    }
  }

  /* 吹き出し左端からアイコン側へ向けた矢印 */
  .special-conversation__balloon {
    position: relative;
    padding: 13px 17px;
    background: #e6f6f5;
    border-radius: 10px;
    font-size: 15px;
    line-height: 1.85;
    overflow-wrap: anywhere;

    &::before {
      content: "";
      position: absolute;
      top: 16px;
      left: -10px;
      width: 11px;
      height: 16px;
      background: #e6f6f5;
      clip-path: polygon(100% 0, 0 50%, 100% 100%);
      pointer-events: none;

      @media (max-width: 600px) {
        top: 13px;
      }
    }

    @media (max-width: 600px) {
      padding: 10px 12px;
      font-size: 14px;
    }
  }

  /* 本文画像・キャプション */
  .special-conversation__media {
    display: grid;
    width: min(660px, 100%);
    margin: 20px auto 0;
    gap: 12px;
  }

  .special-conversation__media--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));

    @media (max-width: 600px) {
      grid-template-columns: minmax(0, 1fr);
    }
  }

  .special-conversation__media--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));

    @media (max-width: 600px) {
      grid-template-columns: minmax(0, 1fr);
    }
  }

  .special-conversation__figure {
    margin: 0;
    min-width: 0;

    img {
      display: block;
      width: 100%;
      height: auto;
      border-radius: 8px;
    }

    figcaption {
      margin-top: 7px;
      font-size: 12px;
      line-height: 1.6;
    }
  }

  /* 本文・注釈・見出し */
  .special-conversation__subheading {
    margin: 24px 0 0;
    font-size: 20px;
    line-height: 1.6;
  }

  .special-conversation__text {
    line-height: 2;
    overflow-wrap: anywhere;
  }

  .special-conversation__note {
    margin: 0;
    font-size: 13px;
    line-height: 1.8;
  }

  .special-conversation__poem {
    margin: 0 auto;
    width: max-content;
    max-width: 100%;
    white-space: normal;
    line-height: 2.4;
    font-size: 17px;
  }

  /* 視覚非表示ヘルパーがない場合も見出しを読み上げ可能にする */
  .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;
  }

  /* PC用MVに含まれる導入文を、スマートフォンだけに別途表示する */
  .special-feature-intro {
    display: none;

    @media (max-width: 600px) {
      display: block;
      margin: 0 0 28px;
      line-height: 1.85;
      font-size: 14px;

      p {
        margin: 0 0 14px;
      }

      h2 {
        margin: 24px 0 10px;
        font-size: 17px;
        line-height: 1.5;
      }

      ul {
        margin: 0 0 18px;
        padding-left: 1.4em;
      }

      li + li {
        margin-top: 10px;
      }
    }
  }

  /* SCFのリード文と参加者紹介はPC・SP共通で表示する。 */
  .interview-single__intro--feature,
  .special-feature-members {
    display: block;
    font-size: 15px;
    line-height: 1.85;

    @media (max-width: 600px) {
      font-size: 14px;
    }
  }

  .interview-single__intro--feature {
    margin: 0 0 20px;

    p { margin: 0; }
    p + p { margin-top: 1em; }

    @media (max-width: 600px) {
      margin-bottom: 14px;
    }
  }

  /* 特集参加者紹介：通常記事のプロフィールと同じMV直下の位置 */
  .special-feature-members {
    width: min(995px, 100%);
    margin: 20px auto 0;
    font-family: var(--font-ja);
    font-size: 16px;
    line-height: 1.85;
    text-align: left;

    /* 画像内の「左から」など、編集可能な短い補足文 */
    .special-feature-members__note {
      margin: 0 0 16px;
    }

    .special-feature-members__group {
      margin: 0;
      padding: 20px 24px;
      border: 1px solid #e7dccc;
      border-radius: 10px;
      background: rgba(255, 255, 255, 0.75);
    }

    .special-feature-members__group + .special-feature-members__group {
      margin-top: 18px;
    }

    .special-feature-members__heading {
      margin: 0 0 12px;
      color: #b85032;
      font-size: 19px;
      font-weight: 700;
      line-height: 1.5;
    }

    .special-feature-members__group-note {
      margin: 0 0 12px;
    }

    .special-feature-members__list {
      margin: 0;
      padding: 0;
      list-style: none;
    }

    .special-feature-members__item {
      margin: 0;
      padding: 10px 0;
    }

    .special-feature-members__item + .special-feature-members__item {
      border-top: 1px solid #e7dccc;
    }

    .special-feature-members__name,
    .special-feature-members__description {
      display: block;
      margin: 0;
      overflow-wrap: anywhere;
    }

    .special-feature-members__name {
      font-weight: 700;
    }

    @media (max-width: 1000px) {
      margin-top: 30px;
    }

    @media (max-width: 600px) {
      font-size: 14px;

      .special-feature-members__group {
        padding: 16px;
      }

      .special-feature-members__heading {
        font-size: 17px;
      }
    }
  }

/* 特集｜記事03などの画像リンクギャラリー。既存CSSの末尾に追記。 */
  .wp-block-lazyblock-special-gallery {
    margin-top: 60px;
  }
  .special-gallery {
    margin: 48px 0 0;
  }

  .special-gallery__heading {
    margin-bottom: 22px;
  }

  .special-gallery__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin: 0;
    padding: 24px;
    list-style: none;
    background: #fff0ec;
    border-radius: 10px;

    @media (max-width: 600px) {
      gap: 20px 12px;
      padding: 16px;
    }
  }

  .special-gallery__item {
    margin: 0;
    min-width: 0;
  }

  .special-gallery__figure {
    margin: 0;
  }

  .special-gallery__image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: 4px;
  }

  .special-gallery__caption {
    margin: 8px 0 0;
    font-size: 13px;
    line-height: 1.6;
    overflow-wrap: anywhere;

    @media (max-width: 600px) {
      font-size: 12px;
    }
  }

  /* 画像とキャプションをまとめてクリック可能にする */
  .special-gallery__link {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none;
    border-radius: 4px;

    &:hover,
    &:focus-visible {
      figcaption{
        color: var(--color-main);
      }
    }
  }

  .special-gallery__caption-text {
    min-width: 0;
    text-decoration: none;
  }

  .special-gallery__link .special-gallery__caption-text {
    text-decoration: underline;
    text-underline-offset: 0.2em;
  }

  /* リンクがある場合のみキャプション右端に表示 */
  .special-gallery__external-icon {
    display: block;
    flex: 0 0 15px;
    width: 15px;
    height: 15px;
  }
}

/* 新規「出雲人インタビュー」型の特集だけ。旧会話型特集・通常記事は変更しない。 */
.interview-single--feature-interview {
  .interview-hero__feature-title {
    width: min(995px, 100%);
    margin: 28px auto 0;
    color: var(--color-font);
    font-family: var(--font-ja);
    font-size: clamp(24px, 3.2vw, 38px);
    font-weight: var(--font-weight-black);
    line-height: 1.5;
    text-align: center;
    overflow-wrap: anywhere;
  }

  .interview-hero__lead--feature-interview {
    width: min(760px, 100%);
    margin: 22px auto 0;
    text-align: center;
    font-weight: var(--font-weight-bold);
    line-height: 1.8;

    p { margin: 0; }
  }
}
