/* =========================================================
   取り組み事例 詳細ページ
   case-detail.css
========================================================= */


/* =========================================================
   Base
========================================================= */

.case-detail {
  --case-orange: #ff7417;
  --case-orange-dark: #ed6510;
  --case-yellow: #ffcf4a;
  --case-yellow-light: #fff7da;
  --case-navy: #12386d;
  --case-text: #444;
  --case-border: #e6e6e6;

  width: 100%;
  overflow: hidden;
  color: var(--case-text);
  font-family:
    "Noto Sans JP",
    "Hiragino Kaku Gothic ProN",
    "Yu Gothic",
    "YuGothic",
    sans-serif;
}

.case-detail *,
.case-detail *::before,
.case-detail *::after {
  box-sizing: border-box;
}

.case-detail img {
  display: block;
  max-width: 100%;
  height: auto;
}

.case-detail a {
  text-decoration: none;
}


/* =========================================================
   共通コンテナ
========================================================= */

.case-detail__container {
  width: min(100% - 48px, 1040px);
  margin-inline: auto;
}

.case-detail__content {
  width: min(100% - 48px, 820px);
  margin-inline: auto;
}


/* =========================================================
   Hero
========================================================= */

.case-detail__hero {
  --hero-height: clamp(
    480px,
    min(29vw, 52vh),
    560px
  );

  position: relative;
  overflow: hidden;
  min-height: var(--hero-height);

  background: linear-gradient(
    105deg,
    #ff7000 0%,
    #fdb538 52%,
    #fbfedc 100%
  );
}

.case-detail__hero-inner {
  position: relative;
  width: min(100% - 40px, 1200px);
  min-height: var(--hero-height);
  margin-inline: auto;
}

.case-detail__hero-content {
  position: relative;
  z-index: 5;

  width: 60%;
  padding-top: 82px;
  padding-left: 20px;
}

.case-detail__hero-en {
  left: 0;
  mix-blend-mode: soft-light;
  z-index: 3;
}

.case-detail__hero-title {
  margin: 0;

  color: #fff;
  font-size: clamp(36px, 3.2vw, 5.8rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.07em;

  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  font-family: "Zen Maru Gothic", sans-serif;
}

.case-detail__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;

  margin: 36px 0 0;
  padding: 0;

  list-style: none;
}

.case-detail__tags li {
  display: inline-flex;
  align-items: center;

  min-height: 30px;
  padding: 5px 12px;

  border-radius: 2px;

  background: rgba(88, 88, 88, 0.85);

  color: #fff;
  font-size: max(13px,1.5rem);
  font-weight: 500;
  line-height: 1.4;
}

.case-detail__hero-image {
  position: absolute;
  z-index: 1;
  top: 0;
  right: 0;

  width: 55%;
  height: 100%;
}

.case-detail__hero-image img {
  display: block;
  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: right center;
}


/* =========================================================
   Company
========================================================= */

.case-detail__company {
  position: relative;
  z-index: 5;

  margin-top: -70px;
  padding: 0 0 78px;

  background: transparent;
}

.case-detail__company-box {
  --company-arc-size: clamp(500px, 55vw, 850px);
  --company-arc-thickness: clamp(55px, 6vw, 95px);

  position: relative;
  z-index: 1;
  overflow: hidden;

  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding:
    58px
    max(24px, calc((100vw - 820px) / 2))
    72px;

  border-radius: 80px;

  background: linear-gradient(
    180deg,
    #fdfdfd 20%,
    #ffe2abcc 100%
  );
}

/* セミナーと同じ円弧装飾：左下のみ */
.case-detail__company-box::after {
  position: absolute;
  z-index: 0;

  bottom: -480px;
  left: -360px;

  width: var(--company-arc-size);
  height: var(--company-arc-size);

  border-radius: 50%;

  background: linear-gradient(
    90deg,
    rgba(255, 253, 243, 0.12) 0%,
    rgba(255, 254, 252, 0.36) 100%
  );

  content: "";

  -webkit-mask-image: radial-gradient(
    farthest-side,
    transparent calc(100% - var(--company-arc-thickness) - 1px),
    #000 calc(100% - var(--company-arc-thickness))
  );

  mask-image: radial-gradient(
    farthest-side,
    transparent calc(100% - var(--company-arc-thickness) - 1px),
    #000 calc(100% - var(--company-arc-thickness))
  );

  pointer-events: none;
}

.case-detail__company-heading {
  position: relative;
  z-index: 1;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;

  padding-bottom: 15px;

  border-bottom: 1px solid #ccc;
}

.case-detail__company-logo {
  flex: 0 0 auto;
}

.case-detail__company-logo img {
  width: auto;
  max-width: 145px;
  max-height: 42px;

  object-fit: contain;
}

.case-detail__company-name {
  margin: 0;

  color: var(--case-navy);
  font-size: max(20px,2.8rem);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.04em;
}

.case-detail__company-content {
  position: relative;
  z-index: 1;

  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 46px;

  padding-top: 42px;
}

.case-detail__company-image img {
  width: 100%;
  aspect-ratio: 4 / 3;

  object-fit: cover;

  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.16);
}

.case-detail__company-info {
  min-width: 0;
}

.case-detail__company-list {
  margin: 0;
}

.case-detail__company-row {
  display: grid;
  grid-template-columns: 85px 1fr;
  gap: 12px;

  margin-bottom: 15px;

  font-size: max(14px, 1.5rem);
  line-height: 1.8;
}

.case-detail__company-row dt {
  font-weight: 700;
}

.case-detail__company-row dd {
  margin: 0;
  font-weight: 500;
}


/* =========================================================
   所在地
========================================================= */

.case-detail__location-box {
  width: 100%;
  padding: 1rem 1.5rem;

  border-radius: 0.6rem;

  background: #a8a8a852;
  mix-blend-mode: multiply;
}

.case-detail__location-name {
  margin: 0 0 0.2rem;

  font-size: max(14px,1.5rem);
  font-weight: 700;
  line-height: 1.5;
}

.case-detail__location-address {
  margin: 0;

  font-size: max(13px,1.4rem);
  font-weight: 400;
  line-height: 1.7;
}


.case-detail__company-note {
  margin: 5px 0 24px;

  color: #777;
  font-size: 13px;
  line-height: 1.6;
}

.case-detail__company-description {
  margin: 0;

  font-size: max(14px,1.5rem);
  line-height: 2;
}


/* =========================================================
   Content section
========================================================= */

.case-detail__section {
  padding: 72px 0 10px;
}

.case-detail__section--last {
  padding-bottom: 8.8rem;
}

.case-detail__section-title {
  position: relative;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  margin: 0 0 48px;
  padding: 0 0 11px 74px;

  border-bottom: 1px solid rgba(255, 116, 23, 0.35);

  color: var(--case-orange);
  font-size: max(24px,2.8rem);
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: 0.03em;
}

.case-detail__section-title::before {
  position: absolute;
  left: 36px;
  bottom: unset;

  width: 46px;
  height: 46px;

  border-radius: 50%;

  background: var(--case-yellow-light);

  content: "";
}

.case-detail__section-title::after {
  position: absolute;
  left: 18px;
  bottom: 4px;

  width: 31px;
  height: 31px;

  content: "";

  background-image:
    radial-gradient(circle, #b9dce8 1.6px, transparent 1.6px);
  background-size: 8px 8px;
}

.case-detail__section-title span {
  position: relative;
  z-index: 2;
}

.case-detail__text {
  font-size: max(15px,1.6rem);
  line-height: 2.15;
}

.case-detail__text p {
  margin: 0 0 26px;
}

.case-detail__text p:last-child {
  margin-bottom: 0;
}


/* =========================================================
   Photo grid
========================================================= */

.case-detail__photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;

  margin-top: 55px;
}

.case-detail__photo {
  margin: 0;
  overflow: hidden;

  border-radius: 7px;
}

.case-detail__photo img {
  width: 100%;
  aspect-ratio: 1.48 / 1;

  object-fit: cover;

  transition: transform 0.4s ease;
}

/* =========================================================
   ほかの事例を見る
========================================================= */

.case-detail__other-case {
  --case-orange: #f36a00;
  --case-text: #333;
  --case-gray: #707070;

  position: relative;
  z-index: 2;


  width: min(100% - 48px, 820px);

  margin-inline: auto;
}


/* ========================================
   見出し
======================================== */

.case-detail__other-case-heading {
  position: relative;

  display: flex;
  align-items: center;

  width: fit-content;
  min-height: 10rem;

  margin: 0 0 3rem;

  isolation: isolate;
}


/* ----------------------------------------
   見出し後ろの
   白 → 透明 台形グラデーションblur
---------------------------------------- */

.case-detail__other-case-heading::before {
  position: absolute;
  z-index: -1;

  top: 50%;
  left: -5rem;

  width: 47rem;
  height: 13rem;

  background:
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.98) 0%,
      rgba(255, 255, 255, 0.82) 42%,
      rgba(255, 255, 255, 0.42) 70%,
      rgba(255, 255, 255, 0) 100%
    );

  clip-path:
    polygon(
      0 34%,
      91% 0,
      100% 100%,
      0 100%
    );

  filter: blur(8rem);

  transform: translateY(-50%);

  content: "";

  pointer-events: none;
}


.case-detail__other-case-title {
  position: relative;
  z-index: 2;

  display: flex;
  align-items: center;

  gap: 1.2rem;

  margin: 0;

  color: #595959;

  font-family: "Zen Maru Gothic", sans-serif;
  font-size: max(24px, 3.2rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.04em;

  text-align: left;
}


/* ----------------------------------------
   見出しアイコン
---------------------------------------- */

.case-detail__other-case-icon {
  display: block;

  flex: 0 0 auto;

  width: 6rem;
  height: auto;
}


/* ========================================
   事例カード
======================================== */

.case-detail__other-case .es-case__card {
  display: grid;
  grid-template-columns: 335px minmax(0, 1fr);

  min-height: 250px;

  overflow: hidden;

  color: var(--case-text);
  text-decoration: none;

  background-color: #fff;

  border-radius: 16px;

  box-shadow:
    0 8px 25px rgba(0, 0, 0, 0.14);
}


.case-detail__other-case .es-case__card:hover {
  color: var(--case-text);
}


.case-detail__other-case .es-case__card:focus-visible {
  outline: none;

  box-shadow:
    0 0 0 3px var(--case-orange) inset,
    0 8px 25px rgba(0, 0, 0, 0.14);
}

/* ========================================
   カード画像
======================================== */

.case-detail__other-case .es-case__image {
  min-height: 250px;

  overflow: hidden;
}


.case-detail__other-case .es-case__image img {
  display: block;

  width: 100%;
  height: 100%;
  min-height: 250px;

  object-fit: cover;

  transition: transform 0.6s ease;
  filter:saturate(1.2) contrast(0.95) brightness(1.08);
}


.case-detail__other-case .es-case__card:hover .es-case__image img {
  transform: scale(1.03);
}


/* ========================================
   カード本文
======================================== */

.case-detail__other-case .es-case__body {
  position: relative;

  min-width: 0;

  padding:
    32px
    55px
    30px
    42px;
}


/* ========================================
   会社名・取材日
======================================== */

.case-detail__other-case .es-case__meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;

  gap: 16px;
}


.case-detail__other-case .es-case__company {
  display: inline-flex;
  align-items: center;

  min-height: 36px;

  margin: 0;

  padding:
    5px
    17px;

  color: #fff;

  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.05em;

  background-color: var(--case-orange);

  border-radius: 999px;
}


.case-detail__other-case .es-case__date {
  flex-shrink: 0;

  margin: 0;

  color: var(--case-gray);

  font-size: 1.4rem;
  line-height: 1.5;
}


.case-detail__other-case .es-case__date span {
  font-size: 1.3rem;
}


/* ========================================
   キャッチコピー
======================================== */

.case-detail__other-case .es-case__headline {
  margin-top: 12px;
}


.case-detail__other-case .es-case__headline h3 {
  margin: 0;

  color: var(--case-orange);

  font-family: "Zen Maru Gothic", sans-serif;
  font-size: 2.7rem;
  font-weight: 700;
  line-height: 1.45;
}


.case-detail__other-case .es-case__headline-first {
  display: block;
}


.case-detail__other-case .es-case__headline-second {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;

  width: max-content;
  max-width: 100%;

  gap: 8px;
}


.case-detail__other-case .es-case__application {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;

  margin-bottom: 4px;

  font-family: "Noto Sans JP", sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.4;

  white-space: nowrap;
}


.case-detail__other-case .es-case__application::before {
  display: block;

  width: 1px;
  height: 24px;

  margin-right: 10px;

  background-color: var(--case-orange);

  content: "";
}


/* ========================================
   事例タグ
======================================== */

.case-detail__other-case .es-case__tags {
  display: flex;
  flex-wrap: wrap;

  gap: 8px;

  margin: 28px 0 0;
  padding: 0;

  list-style: none;
}


.case-detail__other-case .es-case__tags li {
  margin: 0;

  padding:
    3px
    10px;

  color: #5c5c5c;

  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.05em;

  background-color: #fff;

  border: 2px solid #777;
  border-radius: 4px;
}


/* ========================================
   右下の矢印
======================================== */

.case-detail__other-case .es-case__arrow {
  position: absolute;

  right: 0;
  bottom: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 70px;
  height: 70px;

  padding-top: 10px;
  padding-left: 10px;

  color: #fff;

  font-size: 3.8rem;
  font-weight: 400;
  line-height: 1;

  background:
    linear-gradient(
      135deg,
      #ffc32d 0%,
      #ff7800 75%
    );

  border-radius: 100% 0 0;
}


/* =========================================================
   Navigation
========================================================= */

.case-detail__navigation {
  position: relative;
  z-index: 1;

  overflow: hidden;

  padding:
    7.2rem
    0
    8.8rem;

  background:
    linear-gradient(
      100deg,
      #fffdf0 0%,
      #fffef7 52%,
      #ffffff 100%
    );

  isolation: isolate;
}


/* ========================================
   背景
   右上へ流れるオレンジblur
======================================== */

.case-detail__navigation::before {
  position: absolute;
  z-index: -2;

  top: -17rem;
  right: -13rem;

  width: 85rem;
  height: 38rem;

  background:
    linear-gradient(
      135deg,
      rgba(255, 222, 118, 0) 0%,
      rgba(255, 207, 82, 0.18) 30%,
      rgba(255, 177, 64, 0.40) 66%,
      rgba(255, 137, 41, 0.52) 100%
    );

  border-radius: 50%;

  filter: blur(7rem);

  transform:
    rotate(-12deg)
    skewX(-8deg);

  content: "";

  pointer-events: none;
}


/* ========================================
   背景
   中央のやわらかい黄色blur
======================================== */

.case-detail__navigation::after {
  position: absolute;
  z-index: -2;

  top: 4rem;
  left: 27%;

  width: 65rem;
  height: 25rem;

  background:
    linear-gradient(
      110deg,
      rgba(255, 247, 181, 0) 0%,
      rgba(255, 221, 111, 0.26) 52%,
      rgba(255, 195, 78, 0.14) 100%
    );

  border-radius: 50%;

  filter: blur(8rem);

  transform: rotate(-10deg);

  content: "";

  pointer-events: none;
}


/* ========================================
   戻るボタンコンテナ
======================================== */

.case-detail__navigation-inner {
  position: relative;
  z-index: 2;

  display: grid;
  grid-template-columns: 1fr;

  gap: 22px;

  width: min(100% - 48px, 44rem);

  margin:
    5.4rem
    auto
    0;
}


.case-detail__nav-button {
  position: relative;

  display: flex;
  align-items: center;
  justify-content: center;

  min-height: 7.2rem;

  padding:
    1.4rem
    5.2rem;

  border: 2px solid var(--case-orange);
  border-radius: 8px;

  background-color: #fff;

  color: var(--case-orange);

  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.05em;

  transition:
    background-color 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease,
    opacity 0.25s ease;
}


.case-detail__nav-button--next {
  border-color: transparent;
  border: none;

  background:
    linear-gradient(
      100deg,
      #ff7417 0%,
      #ff8f18 55%,
      #ffb526 100%
    );

  color: #fff;

  font-size: max(16px, 1.8rem);

  font-family: "Zen Maru Gothic", sans-serif;
}


/* =========================================================
   Navigation Arrow
========================================================= */

.case-detail__nav-arrow {
  position: absolute;

  font-size: 2.1rem;
  font-weight: 400;
  line-height: 1;

  opacity: 0;

  pointer-events: none;

  transition:
    opacity 0.25s ease,
    transform 0.35s ease;
}


/* トップページへ戻る：左向き矢印 */
.case-detail__nav-arrow--back {
  right: auto;
  left: 4rem;

  background:
    linear-gradient(
      90deg,
      #ff7417 0%,
      #ff8f18 55%,
      #ffb526 100%
    );

  -webkit-background-clip: text;
  background-clip: text;

  -webkit-text-fill-color: transparent;

  color: transparent;

  transform: translateX(0.6rem);
}


/* 他の事例を見る：右向き矢印 */
.case-detail__nav-arrow--next {
  right: 4rem;
  left: auto;

  color: #fff;

  transform: translateX(-0.6rem);
}


.case-detail__nav-button.case-detail__nav-button--back {
  color: #ed6510;

  font-size: max(16px, 1.8rem);

  font-family: "Zen Maru Gothic", sans-serif;

  background-color: #fff;
}


/* =========================================================
   1100px以下
========================================================= */

@media screen and (max-width: 1100px) {

  .case-detail__hero-image {
    width: 60%;
    height: auto;
  }

}


/* =========================================================
   Hover
========================================================= */

@media (hover: hover) {

  .case-detail__nav-button--back:hover {
    background: #fff;

    border-color: #ff9a55;
  }


  .case-detail__nav-button--next:hover {
    opacity: 0.85;
  }


  /* トップページへ戻る：矢印を表示して左へ */
  .case-detail__nav-button--back:hover
  .case-detail__nav-arrow--back {
    opacity: 1;

    transform: translateX(-0.4rem);
  }


  /* 他の事例を見る：矢印を表示して右へ */
  .case-detail__nav-button--next:hover
  .case-detail__nav-arrow--next {
    opacity: 1;

    transform: translateX(0.4rem);
  }

}


/* =========================================================
   他の事例カード：Tablet
========================================================= */

@media screen and (max-width: 1024px) {

  .case-detail__navigation {
    padding:
      6rem
      0
      7rem;
  }


  .case-detail__navigation::before {
    top: -13rem;
    right: -20rem;

    width: 70rem;
    height: 34rem;
  }


  .case-detail__other-case .es-case__card {
    grid-template-columns:
      190px
      minmax(0, 1fr);
  }


  .case-detail__other-case .es-case__body {
    padding:
      32px
      36px
      30px
      24px;
  }


  .case-detail__other-case .es-case__arrow {
    width: 56px;
    height: 56px;

    font-size: 3.2rem;
  }


  .case-detail__other-case .es-case__tags li {
    padding:
      2px
      8px;
  }


  .case-detail__other-case .es-case__application {
    margin-bottom: 0;
  }

}


/* =========================================================
   Tablet
========================================================= */

@media screen and (max-width: 900px) {

  .case-detail__hero {
    min-height: 350px;
  }

  .case-detail__hero-inner {
    min-height: 350px;
  }

  .case-detail__hero-content {
    width: 63%;

    padding-top: 68px;
    padding-left: 15px;
  }

  .case-detail__hero-title {
    font-size: clamp(28px, 4.5vw, 40px);
  }

  .case-detail__hero-image {
    right: -80px;

    width: 64%;
  }

  .case-detail__company {
    padding-top: -58px;
  }

  .case-detail__company-content {
    grid-template-columns: 190px 1fr;

    gap: 32px;
  }

}


/* =========================================================
   Smartphone
========================================================= */

@media screen and (max-width: 767px) {

  /* -------------------------------------------------------
     Common
  ------------------------------------------------------- */

  .case-detail__container,
  .case-detail__content {
    width: min(100% - 40px, 600px);
  }


  /* -------------------------------------------------------
     Hero
  ------------------------------------------------------- */

  .case-detail__hero {
    display: flex;
    flex-direction: column;

    min-height: auto;

    background:
      linear-gradient(
        145deg,
        #ff7817 0%,
        #ff9b23 48%,
        #ffc649 100%
      );
  }


  /* ----------------------------------------
     画像
  ---------------------------------------- */

  .case-detail__hero-image {
    position: relative;

    top: auto;
    right: auto;

    order: 1;

    width: 100%;
    height: auto;
  }


  .case-detail__hero-image img {
    display: block;

    width: 100%;
    height: auto;

    aspect-ratio: 16 / 10;

    object-fit: cover;
    object-position: center;
  }


  /* ----------------------------------------
     テキストエリア
  ---------------------------------------- */

  .case-detail__hero-inner {
    position: relative;

    order: 2;

    width: 100%;
    min-height: auto;

    margin: 0;
  }


  .case-detail__hero-content {
    width: min(100% - 4rem, 60rem);

    margin-inline: auto;

    padding:
      3.8rem
      0
      4.2rem;
  }


  /* ----------------------------------------
     Case 縦文字
  ---------------------------------------- */

  .case-detail__hero-en {
    z-index: 3;

    top: calc(12vw + 1.3rem);
    left: -1.2rem;

    font-size: 8rem;

    opacity: 0.7;
  }


  /* ----------------------------------------
     メインタイトル
  ---------------------------------------- */

  .case-detail__hero-title {
    margin: 0;

    color: #fff;

    font-size: clamp(2.6rem, 7.1vw, 3.8rem);
    font-weight: 700;
    line-height: 1.42;
    letter-spacing: 0.045em;
  }


  /* ----------------------------------------
     タグ
  ---------------------------------------- */

  .case-detail__tags {
    display: flex;
    flex-wrap: wrap;

    gap: 0.6rem;

    margin: 2.6rem 0 0;
    padding: 0;

    list-style: none;

    padding-bottom: 32px;
  }


  .case-detail__tags li {
    display: inline-flex;
    align-items: center;

    min-height: 2.7rem;

    padding:
      0.4rem
      0.9rem;

    color: #fff;

    font-size: min(20px, 1.1rem);
    font-weight: 500;
    line-height: 1.4;

    border-radius: 0.2rem;
  }


  /* -------------------------------------------------------
     Company
  ------------------------------------------------------- */

  .case-detail__company {
    margin-top: -30px;

    padding: 0 0 60px;

    background: transparent;
  }


  .case-detail__company-info {
    width: min(100% - 40px, 600px);

    margin:
      0
      auto;
  }


  .case-detail__company-box {
    --company-arc-size: 430px;
    --company-arc-thickness: 50px;

    padding:
      64px
      20px
      48px;

    border-radius: 28px;
  }


  .case-detail__company-box::after {
    bottom: -320px;
    left: -260px;
  }


  .case-detail__company-heading {
    align-items: center;
    justify-content: center;

    gap: 12px;

    padding-bottom: 13px;
  }


  .case-detail__company-logo img {
    max-width: 100px;
    max-height: 32px;
  }


  .case-detail__company-name {
    font-size: 19px;
  }


  .case-detail__company-content {
    grid-template-columns: 1fr;

    gap: 26px;

    padding-top: 28px;
  }


  .case-detail__company-image {
    width: min(100%, 370px);

    margin-inline: auto;
  }


  .case-detail__company-image img {
    aspect-ratio: 16 / 10;
  }


  .case-detail__company-row {
    grid-template-columns: 74px 1fr;

    margin-bottom: 12px;

    font-size: 12px;
  }


  .case-detail__company-description {
    line-height: 2;
  }


  .case-detail__location-name {
    font-size: 16px;
  }


  .case-detail__location-address {
    font-size: 15px;
  }


  .case-detail__company-row dt {
    font-size: 16px;
  }


  .case-detail__company-row dd {
    font-size: 16px;
  }


  .case-detail__company-description {
    font-size: 16px;
  }


  /* -------------------------------------------------------
     Sections
  ------------------------------------------------------- */

  .case-detail__section {
    padding-top: 55px;
  }


  .case-detail__section--last {
    padding-bottom: 80px;
  }


  .case-detail__section-title {
    align-items: flex-start;

    margin-bottom: 32px;

    padding:
      0
      0
      12px
      49px;

    font-size: 20px;
    line-height: 1.55;
  }


  .case-detail__section-title::before {
    left: 8px;
    bottom: 12px;

    width: 36px;
    height: 36px;
  }


  .case-detail__section-title::after {
    left: -1px;
    bottom: 4px;

    width: 25px;
    height: 25px;

    background-size: 6px 6px;
  }

  .case-detail__other-case .es-case__headline-first {
    font-size: 24px;
  }


  .case-detail__text {
    font-size: 16px;
    line-height: 2;
  }


  .case-detail__text p {
    margin-bottom: 22px;
  }


  .case-detail__nav-button.case-detail__nav-button--back {
    font-size: 16px;
  }


  .case-detail__nav-button--next {
    font-size: 16px;
  }


  .case-detail__nav-button {
    font-size: 16px;
  }


  /* -------------------------------------------------------
     Photos
  ------------------------------------------------------- */

  .case-detail__photo-grid {
    grid-template-columns: 1fr;

    gap: 18px;

    margin-top: 36px;
  }


  .case-detail__photo {
    border-radius: 6px;
  }


  .case-detail__photo img {
    aspect-ratio: 16 / 10;
  }


  .case-detail__photo-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);
  }


  /* -------------------------------------------------------
     ほかの事例を見る
  ------------------------------------------------------- */

  .case-detail__navigation {
    padding:
      4.8rem
      0
      5.5rem;
  }


  /* ----------------------------------------
     背景blur
  ---------------------------------------- */

  .case-detail__navigation::before {
    top: -7rem;
    right: -20rem;

    width: 50rem;
    height: 25rem;

    filter: blur(5rem);
  }


  .case-detail__navigation::after {
    top: 5rem;
    left: 10%;

    width: 38rem;
    height: 17rem;

    filter: blur(5rem);
  }


  .case-detail__other-case {
    width: min(100% - 40px, 600px);
    max-width: 100%;


  }


  /* ----------------------------------------
     見出し
  ---------------------------------------- */

  .case-detail__other-case-heading {
    min-height: 60px;

    margin-bottom: 20px;
  }


  .case-detail__other-case-heading::before {
    left: -2.5rem;

    width: 31rem;
    height: 10rem;

    filter: blur(8rem);
  }


  .case-detail__other-case-title {
    gap: 0.9rem;

    margin: 0;

    font-size: 28px;
  }


  .case-detail__other-case-icon {
    width: 48px;
  }


  /* ----------------------------------------
     カード
  ---------------------------------------- */

  .case-detail__other-case .es-case__card {
    display: block;

    min-height: 0;

    margin-inline: auto;

    border-radius: 1.4rem;
  }


  .case-detail__other-case .es-case__image {
    min-height: 0;

    aspect-ratio: 16 / 10;
  }


  .case-detail__other-case .es-case__image img {
    height: 100%;
    min-height: 0;
  }


  .case-detail__other-case .es-case__body {
    padding:
      2rem
      1.7rem
      6rem;
  }


  .case-detail__other-case .es-case__meta {
    display: block;
  }


  .case-detail__other-case .es-case__company {
    min-height: 24px;

    padding:
2px 12px;

    font-size: 18px;
  }


  .case-detail__other-case .es-case__date {
    margin-top: 14px;

    font-size: 14px;
  }


  .case-detail__other-case .es-case__date span {
    font-size: 14px;
  }


  .case-detail__other-case .es-case__headline {
    margin-top: 12px;
  }


  .case-detail__other-case .es-case__headline h3 {
    line-height: 1.2
  }


  .case-detail__other-case .es-case__headline-second {
    display: block;
    font-size: 24px;

    width: auto;
  }


  .case-detail__other-case .es-case__application {
    
    margin-top:0;

    font-size: 18px;
    position: relative;
    top: 2px;
  }


  .case-detail__other-case
  .es-case__application::before {
    height: 1.6rem;

    margin-right: 0.7rem;
  }


  .case-detail__other-case .es-case__tags {
    gap: 0.6rem;

    margin-top: 1.5rem;
  }


  .case-detail__other-case .es-case__tags li {
    padding:
      0.25rem
      0.7rem;

    font-size: 1.1rem;

    border-width: 1px;
  }


  .case-detail__other-case .es-case__arrow {
    width: 5rem;
    height: 5rem;

    font-size: 2.6rem;
  }


  /* -------------------------------------------------------
     Navigation
  ------------------------------------------------------- */

  .case-detail__navigation-inner {
    grid-template-columns: 1fr;

    gap: 12px;

    width: min(100% - 40px, 43rem);

    margin-top: 3.6rem;
  }


  .case-detail__nav-button {
    min-height: 5.8rem;

    padding:
      1.2rem
      4rem;

    border-width: 1.5px;
    border-radius: 6px;
  }


  .case-detail__nav-button--back {
    order: 2;
  }


  .case-detail__nav-button--next {
    order: 1;
  }


  .case-detail__nav-arrow--back {
    right: auto;
    left: 2.8rem;

    font-size: 20px;
  }


  .case-detail__nav-arrow--next {
    right: 22px;
    left: auto;

    font-size: 20px;
  }


  .case-detail__company {
    padding-bottom: 0;
  }

}


/* =========================================================
   Small Smartphone
========================================================= */

@media screen and (max-width: 390px) {

  .case-detail__container,
  .case-detail__content,
  .case-detail__hero-content,
  .case-detail__navigation-inner {
    width: calc(100% - 32px);
  }


  .case-detail__hero-content {
    padding-top: 42px;
  }


  .case-detail__hero-title {
    font-size: clamp(2.4rem, 7.4vw, 3rem);
  }


  .case-detail__tags {
    gap: 5px;

    padding-bottom: 24px;
  }


  .case-detail__tags li {
    padding-inline: 7px;

    font-size: 10px;
  }


  .case-detail__company-name {
    font-size: 18px;
  }


  .case-detail__company-logo img {
    max-width: 88px;
  }


  .case-detail__section-title {
    width: 100%;

    padding-left: 38px;

    font-size: 16px;
  }


  .case-detail__text {
    font-size: 15px;
  }


  .case-detail__company-info {
    width: 100%;
  }


  .case-detail__company-description {
    font-size: 15px;
  }


  .case-detail__section-title {
    font-size: 18px;
  }


  .case-detail__other-case-title {
    font-size: 2rem;
  }


  .case-detail__other-case-icon {
    width: 40px;
  }

}


/* =========================================================
   他の事例カード：動きを減らす設定
========================================================= */

@media (prefers-reduced-motion: reduce) {

  .case-detail__other-case .es-case__image img {
    transition: none;
  }


  .case-detail__nav-arrow {
    transition: none;
  }

}


/* =========================================================
   768px ～ 1023px
========================================================= */

@media screen and (min-width: 768px) and (max-width: 1023px) {

  .case-detail__company-box {
    border-radius: 40px;
  }

}


/* =========================================================
   他の事例カード：768px ～ 1440px
   小さい文字の最小サイズを設定
========================================================= */

@media screen and (min-width: 768px) and (max-width: 1440px) {

  .case-detail__other-case .es-case__company {
    font-size: max(10px, 1.6rem);
  }


  .case-detail__other-case .es-case__date {
    font-size: max(10px, 1.4rem);
  }


  .case-detail__other-case .es-case__date span {
    font-size: max(10px, 1.3rem);
  }


  .case-detail__other-case .es-case__application {
    font-size: max(12px, 1.4rem);
  }


  .case-detail__other-case .es-case__tags li {
    font-size: max(10px, 1.4rem);
  }


  .case-detail__other-case .es-case__headline h3 {
    font-size: max(18px, 2.7rem);
  }

}

/* -------------------------------------------------------
   具体的な取組
------------------------------------------------------- */

.case-detail__initiative {
  margin-top: 5.6rem;
}

.case-detail__initiative + .case-detail__initiative {
  margin-top: 7.2rem;
}


/* 子見出し
------------------------------------------------------- */

.case-detail__initiative-title {
  position: relative;

  margin: 0 0 3.2rem;
  padding-left: 1.8rem;

  font-size: max(20px, 2.4rem);
  font-weight: 700;
  line-height: 1.5;

  color: #625952;
}

.case-detail__initiative-title::before {
  content: "";

  position: absolute;
  top: 0.2em;
  bottom: 0.15em;
  left: 0;

  width: 0.5rem;
  border-radius: 0.2rem;

  background-color: #ff9d48;
}


/* 写真
------------------------------------------------------- */

.case-detail__initiative-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.4rem;

  margin-bottom: 4.4rem;
}

.case-detail__initiative-photo {
  margin: 0;
}

.case-detail__initiative-photo img {
  display: block;

  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;

  object-fit: cover;

  border-radius: 0.8rem;
}


/* キャプション
------------------------------------------------------- */

.case-detail__initiative-photo figcaption {
  margin-top: 1rem;

  font-size: max(12px, 1.4rem);
  line-height: 1.6;

  color: #666;
}


/* 本文
------------------------------------------------------- */

.case-detail__initiative-text {
  margin-top: 0;
}

.case-detail__initiative-text p:first-child {
  margin-top: 0;
}


/* -------------------------------------------------------
   SP
------------------------------------------------------- */

@media screen and (max-width: 767px) {

  .case-detail__initiative {
    margin-top: 4rem;
  }

  .case-detail__initiative + .case-detail__initiative {
    margin-top: 5.6rem;
  }


  /* 子見出し */

  .case-detail__initiative-title {
    margin-bottom: 20px;
    padding-left: 14px;

    font-size: 20px;
  }

  .case-detail__initiative-title::before {
    width: 4px;
  }


  /* 写真 */

  .case-detail__initiative-gallery {
    gap: 1.2rem;

    margin-bottom: 3.2rem;
  }

  .case-detail__initiative-photo img {
    border-radius: 0.8rem;
  }


  /* キャプション */

  .case-detail__initiative-photo figcaption {
    margin-top: 0.8rem;

    font-size: 12px;
    line-height: 1.5;
  }

}


/* -------------------------------------------------------
   小さいスマホ
------------------------------------------------------- */

@media screen and (max-width: 480px) {

  .case-detail__initiative-gallery {
    grid-template-columns: 1fr;
    gap: 2.4rem;
  }

  .case-detail__initiative-photo figcaption {
    font-size: 12px;
  }

  .case-detail__other-case .es-case__application {
    font-size: 16px;
  }

}

/* =========================================================
   SPナビ：画面幅変更時のチラつき防止
========================================================= */

@media screen and (max-width: 767px) {

  .header__nav {
    visibility: hidden;
    pointer-events: none;

    transition: none;
  }

  .header__nav.active {
    visibility: visible;
    pointer-events: auto;

    transform: translateX(0);

    transition: transform 0.2s ease;
  }

}

.case-detail__other-case {
  display: none;
}