/*＿＿＿＿＿＿＿＿＿＿＿＿＿＿＿＿＿＿＿＿＿＿＿＿＿フォントサイズの基準＿＿*/
html {
  scrollbar-gutter: stable;

  @media (width < 768px) {
    font-size: calc(100vw / 375 * 10);
  }
  @media (768px <= width < 1024px) {
    font-size: calc(100vw / 1024 * 10);
  }
  @media (1024px <= width) {
    font-size: 62.5%;
  }
}

/*＿＿＿＿＿＿＿＿＿＿＿＿＿＿＿＿＿＿＿＿＿＿＿＿＿カスタムプロパティ＿＿*/
:root {
  /* --- Colors --- */
  --base: #FFFFFF;
  --blue-1: #87CEEB;
  --blue-light: #C9E3F3; /* メインカラー */
  --blue-pale: #E8F6FD;
  --blue-mist: 142 202 230; /* 影・ボーダー用の水色（rgb三値・α可変） */
  --blue-royal: #4375CC; /* アクセントカラー */
  --heart-1: #C1DFF1; /* 背景白ハート１ */
  --text: #1E3A50;
  --sub: #5A7A9A;

  /* --- Fonts --- */
  --font-base: 'M PLUS Rounded 1c', sans-serif;
  --font-display: 'Fredoka', sans-serif;

  /* --- Layout --- */
  --container: 96rem;
  --header-height-sp: 6.4rem;
  --side-sp: 1.6rem;
  --header-height-pc: 8rem;
  --side-pc: 3.2rem;
  --hero-side: clamp(1.6rem, 8vw, 20.8rem);
  --section-top: 14rem;
  --section-bottom: 12rem;
  --section-title-margin-sp: 3rem;
  --section-title-margin-pc: 5rem;

  /* --- Z-index --- */
  --z-decoration: 1;
  --z-content: 2;
  --z-header: 10;
  --z-overlay: 20;
  --z-menu: 30;
  --z-pagetop: 40;
  --z-cursor-dot: 50;

  /* --- Easing --- */
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* --- Shadows --- */
  --shadow-floating: 0 1px 2px rgb(var(--blue-mist) / 0.1), 0 1.5rem 3rem rgb(var(--blue-mist) / 0.22);
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.04), 0 0.8rem 2.4rem rgb(var(--blue-mist) / 0.14);

}

/*＿＿＿＿＿＿＿＿＿＿＿＿＿＿＿＿＿＿＿＿＿＿＿＿＿ベーススタイル＿＿*/
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-base), sans-serif;
  color: var(--text);
  background: var(--base);
  line-height: 1.8;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  -webkit-tap-highlight-color: transparent; /* モバイルのタップ時に出るデフォルトの四角を消す */
}

button {
  background: none;
  border: none;
  -webkit-tap-highlight-color: transparent;
}

/*＿＿＿＿＿＿＿＿＿＿＿＿＿＿＿＿＿＿＿＿＿＿＿＿＿動きを減らす設定への配慮＿＿
  OS側で「動きを減らす」をONにしている人には、
  スムーススクロール・アニメーション・トランジションを止める
                                                                                  */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

/*＿＿＿＿＿＿＿＿＿＿＿＿＿＿＿＿＿＿＿＿＿＿＿＿＿ページトップボタン＿＿*/
.pagetop-button {
  position: fixed;
  border-radius: 50%;
  border: 1.5px solid rgb(var(--blue-mist) / 0.4);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(0.8rem);
  -webkit-backdrop-filter: blur(0.8rem);
  color: var(--blue-royal);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-pagetop);
  opacity: 0;
  visibility: hidden;
  transform: translateY(1.2rem);
  transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s var(--ease-bounce), background 0.3s ease;
  box-shadow: 0 0.4rem 1.6rem rgb(var(--blue-mist) / 0.18);

  @media (width < 768px) {
    bottom: 2rem;
    right: 2rem;
    width: 4.4rem;
    height: 4.4rem;
  }
  @media (768px <= width) {
    bottom: var(--side-pc);
    right: var(--side-pc);
    width: 5rem;
    height: 5rem;
  }
  @media (1024px <= width) {
    right: var(--hero-side);
  }

  .pagetop-button__icon {
    width: 2rem;
    height: 2rem;
  }

  &.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  /* 白背景セクション上ではボタンを青背景に切り替えて視認性を確保 */
  &.is-on-white {
    background: var(--blue-light);
    border-color: rgb(var(--blue-mist) / 0.5);
  }

  &:hover {
    background: var(--blue-royal);
    border-color: var(--blue-royal);
    color: #fff;
  }
}

/*＿＿＿＿＿＿＿＿＿＿＿＿＿＿＿＿＿＿＿＿＿＿＿＿＿カーソルエフェクト＿＿*/
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: var(--blue-1);
  opacity: 0.4;
  pointer-events: none;
  z-index: var(--z-cursor-dot);
  transform: translate3d(-50%, -50%, 0);
  transition: width 0.3s ease, height 0.3s ease, opacity 0.3s ease;

  /* リンク・ボタンの上では本来のカーソルに任せてドットを引っ込める */

  &.is-hover {
    opacity: 0;
  }

  @media (pointer: coarse) {
    display: none;
  }
}

/*＿＿＿＿＿＿＿＿＿＿＿＿＿＿＿＿＿＿＿＿＿＿＿＿＿共通パーツ＿＿
  複数セクションで使い回す部品（装飾ハート・セクション見出し・カーニング）
                                                                                  */

/* 装飾ハート（全セクション共通のベース） */
.decoration-heart {
  position: absolute;
  pointer-events: none;
  aspect-ratio: 24 / 22;

  @media (width < 768px) {
    width: 1.4rem;
  }
  @media (768px <= width) {
    width: 2.4rem;
  }
}

/* ヒーロー（水色背景なので白） */
.decoration-heart--hero-1,
.decoration-heart--hero-2,
.decoration-heart--hero-3 {
  fill: #fff;
  z-index: var(--z-decoration);
  user-select: none;
}

.decoration-heart--hero-1 { /* 左上寄り */
  top: 22%;
  left: 10%;
}

.decoration-heart--hero-2 { /* 右の真ん中あたり */
  top: 38%;
  right: 12%;
}

.decoration-heart--hero-3 { /* 左下寄り */
  bottom: 32%;
  left: 22%;
}

/* つくったもの（白背景なので --heart-1）：タイトル右上に浮かせる */
.decoration-heart--works {
  fill: var(--heart-1);

  @media (width < 768px) {
    top: -1rem;
    right: 5.5rem;
  }
  @media (768px <= width) {
    top: -4rem;
    right: 62.4rem;
  }
}

/* わたしのこと（白背景なので --heart-1）：タイトル左横に並べる */
.decoration-heart--about {
  fill: var(--heart-1);

  @media (width < 768px) {
    top: -1.8rem;
    left: -3.1rem;
  }
  @media (768px <= width) {
    top: -2.9rem;
    left: -4.4rem;
  }
}

/* フッター（水色背景なので白）：お問い合わせカードの右下角に浮かせる */
.decoration-heart--footer {
  fill: #fff;
  @media (width < 768px) {
    bottom: -7.2rem;
    right: 6.2rem;
  }
  @media (768px <= width) {
    bottom: -9.8rem;
    right: -4.8rem;
  }
}

/* セクション見出し（works / about / footer 共通） */
.section-heading {
  font-family: var(--font-base), sans-serif;
  font-size: clamp(3.2rem, 5vw, 4.4rem);
  font-weight: 700;
  color: var(--blue-royal);
  letter-spacing: 0.06em;
}

/* ロゴ・見出しの「sh」の字間調整 */
.kerning {
  margin-left: 0.02em;
}

/*＿＿＿＿＿＿＿＿＿＿＿＿＿＿＿＿＿＿＿＿＿＿＿＿＿ヘッダー＿＿*/
.header-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-header);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(1.2rem);
  -webkit-backdrop-filter: blur(1.2rem);
  border-bottom: 1.5px solid rgb(var(--blue-mist) / 0.22);

  @media (width < 768px) {
    height: var(--header-height-sp);
  }
  @media (768px <= width) {
    height: var(--header-height-pc);
  }

  /*＿＿＿＿＿＿＿＿＿＿＿＿＿＿中身ラッパー＿＿*/

  .header-container__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;

    @media (width < 768px) {
      padding: 0 1.8rem;
    }
    @media (768px <= width) {
      padding: 0 var(--hero-side);
    }

    /*＿＿＿＿＿＿＿＿＿＿＿＿＿＿ロゴ＿＿*/

    .header-container__logo {
      display: flex;
      align-items: center;
      color: var(--text);

      .header-container__logo-name {
        font-family: var(--font-display), sans-serif;
        font-weight: 600;
        color: var(--blue-royal);
        letter-spacing: 0.13em;
        line-height: 1;
        white-space: nowrap;
        @media (width < 768px) {
          font-size: 1.8rem;
        }
        @media (768px <= width) {
          font-size: 2rem;
        }
      }
    }

    /*＿＿＿＿＿＿＿＿＿＿＿＿＿＿ハンバーガーボタン＿＿*/

    .header-container__toggle {
      flex-direction: column;
      gap: 0.5rem;       /* 間隔を rem でスケール（space-between + 固定高さより直感的） */
      padding: 0.2rem 0.4rem;
      z-index: var(--z-menu);

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

      .header-container__toggle-line {
        width: 2.4rem;
        height: 2px;
        background: var(--blue-royal);
        border-radius: 2px;
        transition: transform 0.45s ease, opacity 0.45s ease;
      }

      /* gap: 0.5rem・padding: 0.2rem・棒: 2px のとき
         棒1中心 = 0.2rem + 1px、ボタン中心 = 0.7rem + 3px
         移動量 = (0.7rem + 3px) - (0.2rem + 1px) = calc(0.5rem + 2px) */

      &.is-open .header-container__toggle-line:nth-child(1) {
        transform: translateY(calc(0.5rem + 2px)) rotate(45deg);
      }

      &.is-open .header-container__toggle-line:nth-child(2) {
        opacity: 0;
        /* 消える時だけ速く。出る時はベースの 0.45s が使われる */
        transition: opacity 0.1s ease;
      }

      &.is-open .header-container__toggle-line:nth-child(3) {
        transform: translateY(calc(-0.5rem - 2px)) rotate(-45deg);
      }
    }

    /*＿＿＿＿＿＿＿＿＿＿＿＿＿＿ナビ＿＿*/

    .header-container__nav {
      @media (width < 768px) {
        position: fixed;
        top: 0.6rem;
        right: 0.6rem;
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(1.2rem);
        flex-direction: column;
        align-items: stretch;
        padding: 4rem 1.2rem 3rem;
        min-width: 18rem;
        border-radius: 2rem;
        box-shadow: 0 0.8rem 2.4rem rgb(var(--blue-mist) / 0.2);
        border: 1.5px solid rgb(var(--blue-mist) / 0.2);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-0.8rem);
        transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s var(--ease-bounce);
        z-index: var(--z-overlay);
        display: flex;

        &.is-open {
          opacity: 1;
          visibility: visible;
          pointer-events: auto;
          transform: translateY(0);
        }
      }
      @media (768px <= width) {
        display: flex;
        align-items: center;
        column-gap: 2.4rem;
      }

      .header-container__nav-link {
        position: relative;
        font-family: var(--font-base), sans-serif;
        font-weight: 700;
        color: var(--text);
        letter-spacing: 0.04em;
        border-radius: 10rem;

        @media (hover: hover) {
          &:hover {
            background: var(--blue-light);
            color: var(--blue-royal);
          }
        }

        &:active {
          background: var(--blue-light);
          color: var(--blue-royal);
        }

        @media (width < 768px) {
          font-size: 1.4rem;
          padding: 1.2rem 1.6rem;
          text-align: center;
          transition: background 0.3s ease, color 0.3s ease;
        }
        @media (768px <= width) {
          font-size: 1.5rem;
          padding: 0.4rem 1.2rem;
          transition: background 0.25s ease, color 0.25s ease;
        }
      }
    }
  }
}

/*＿＿＿＿＿＿＿＿＿＿＿＿＿＿＿＿＿＿＿＿＿＿＿＿＿ヒーロー＿＿*/
.hero-container {
  position: relative;
  background: var(--base);

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

  .hero-container__inner {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background: var(--blue-light);

    @media (width < 768px) {
      padding: 16rem var(--side-sp) 16rem;
    }
    @media (768px <= width) {
      padding: 16rem var(--side-pc) 27rem;
    }
  }

  /*＿＿＿＿＿＿＿＿＿＿＿＿＿＿タイトル＿＿*/

  .hero-container__title {
    position: relative;
    z-index: var(--z-content);
    text-align: center;
    font-family: var(--font-display), sans-serif;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text);
    letter-spacing: 0.11em;
    /* letter-spacing は末尾文字の右にもアキを付ける。
       そのぶん中央寄せが視覚的に左へ寄るので、同じ値を負マージンで相殺する */
    margin-right: -0.11em;
    white-space: nowrap;
    @media (width < 768px) {
      font-size: 2.3rem;
    }
    @media (768px <= width) {
      font-size: clamp(2rem, 3vw, 2.8rem);
    }
  }

  /*＿＿＿＿＿＿＿＿＿＿＿＿＿＿底面波形＿＿*/

  .hero-container__wave {
    position: absolute;
    bottom: -1px;
    left: -2px;
    width: calc(100% + 4px);
    display: block;
    pointer-events: none;
    z-index: var(--z-decoration);
    shape-rendering: geometricPrecision;
  }

  /*＿＿＿＿＿＿＿＿＿＿＿＿＿＿スクロール誘導＿＿*/

  .hero-container__scroll {
    position: absolute;
    bottom: 3.2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    z-index: var(--z-content);
    color: var(--sub);
    transition: color 0.3s ease;

    &:hover {
      color: var(--blue-royal);
    }
  }

  .hero-container__scroll-text {
    font-family: var(--font-display), sans-serif;
    letter-spacing: 0.24em;
    opacity: 0.65;

    @media (width < 768px) {
      font-size: 1.1rem;
    }
    @media (768px <= width) {
      font-size: 1.4rem;
    }
  }

  .hero-container__scroll-icon {
    height: auto;
    animation: scrollBounce 1.8s ease-in-out infinite;

    @media (width < 768px) {
      width: 1.4rem;
    }
    @media (768px <= width) {
      width: 2rem;
    }
  }

}

@keyframes scrollBounce {
  0%, 100% {
    transform: translateY(0);
    opacity: 0.55;
  }
  50% {
    transform: translateY(0.5rem);
    opacity: 1;
  }
}


/*＿＿＿＿＿＿＿＿＿＿＿＿＿＿＿＿＿＿＿＿＿＿＿＿＿つくったもの＿＿*/
.works-container {
  position: relative;
  padding: var(--section-top) 0 0;
  margin-bottom: var(--section-bottom);

  .works-container__inner {
    max-width: var(--container);
    margin: 0 auto;

    @media (width < 768px) {
      padding: 0 var(--side-sp);
      text-align: center;
    }
    @media (768px <= width) {
      max-width: none;
    }
    @media (768px <= width < 1024px) {
      padding: 0 var(--hero-side);
    }
    @media (1024px <= width) {
      margin: 0;
      padding: 0 max(var(--hero-side), calc((100% - var(--container)) / 2));
    }
  }

  .works-container__title {
    position: relative;

    @media (width < 768px) {
      margin-bottom: var(--section-title-margin-sp);
    }
    @media (768px <= width) {
      margin-bottom: var(--section-title-margin-pc);
    }
  }

  .works-container__grid {
    display: grid;

    @media (width < 768px) {
      grid-template-columns: 1fr;
      gap: 5.6rem;
    }
    @media (768px <= width) {
      grid-template-columns: repeat(auto-fit, minmax(22rem, 1fr));
      gap: 4rem 2.8rem;
    }
  }
}

/* 作品カード */
.scrap-card {
  position: relative;
  background: #fff;
  padding: 1.4rem 1.4rem 2.4rem;
  box-shadow: var(--shadow-card);
  border-radius: 1.6rem;
  border: 1.5px solid rgb(var(--blue-mist) / 0.2);
  transition: transform 0.5s var(--ease-bounce), box-shadow 0.45s ease;

  @media (width < 768px) {
    width: 28rem;
    justify-self: center;
  }

  &:hover {
    transform: translateY(-0.8rem);
    box-shadow: var(--shadow-floating);
  }

  .scrap-card__img {
    width: 100%;
    background: var(--blue-light);
    margin-bottom: 2rem;
    position: relative;
    overflow: visible;
    border-radius: 0.8rem 0.8rem 0 0;

    @media (width < 768px) {
      height: 15rem;
    }
    @media (768px <= width) {
      height: 14rem;
    }

    &::after {
      content: "";
      position: absolute;
      top: calc(100% - 2.5rem);
      left: -2px;
      width: calc(100% + 4px);
      height: 4rem;
      /* 波線はviewBox高さの50%位置→画像底面から0.5rem内側に食い込む */
      background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 64' preserveAspectRatio='none'%3E%3Cpath fill='white' d='M0 64L0 32C100 56 300 8 400 32L400 64Z'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
      pointer-events: none;
    }
  }

  .scrap-card__img--2 {
    background-color: var(--blue-pale);
  }

  .scrap-card__img--3 {
    background-color: rgb(var(--blue-mist) / 0.5);
  }

  .scrap-card__title {
    font-family: var(--font-display), sans-serif;
    font-size: 1.7rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
    color: var(--sub);
    letter-spacing: 0.04em;
  }

  .scrap-card__meta {
    font-family: var(--font-display), sans-serif;
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--sub);
    letter-spacing: 0.06em;
  }

  .scrap-card__shape {
    font-size: 0.7em;
    vertical-align: middle;
  }
}

/*＿＿＿＿＿＿＿＿＿＿＿＿＿＿＿＿＿＿＿＿＿＿＿＿＿わたしのこと＿＿*/
.about-container {
  position: relative;
  padding: var(--section-top) 0 0;
  margin-bottom: var(--section-bottom);

  .about-container__title {
    position: relative;

    @media (width < 768px) {
      margin-bottom: var(--section-title-margin-sp);
    }
    @media (768px <= width) {
      grid-column: 1 / -1;
      margin-bottom: var(--section-title-margin-pc);
    }
  }

  .about-container__inner {
    max-width: var(--container);
    margin: 0 auto;
    display: grid;
    align-items: start;

    @media (width < 768px) {
      max-width: calc(28rem + var(--side-sp) * 2);
      padding: 0 var(--side-sp);
      grid-template-columns: 1fr;
      justify-items: center;
      text-align: center;
    }
    @media (768px <= width) {
      max-width: none;
      grid-template-columns: 22rem 1fr;
      column-gap: 5.6rem;
      text-align: left;
    }
    @media (768px <= width < 1024px) {
      padding: 0 var(--hero-side);
    }
    @media (1024px <= width) {
      margin: 0;
      padding: 0 max(var(--hero-side), calc((100% - var(--container)) / 2));
    }
  }

  .about-container__photo {
    aspect-ratio: 1 / 1;
    background: var(--blue-light);
    border-radius: 50%;
    box-shadow: var(--shadow-floating);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display), sans-serif;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.4rem;
    overflow: hidden;
    @media (width < 768px) {
      width: 18rem;
      margin-bottom: 0.9rem;
    }
    @media (768px <= width) {
      width: 22rem;
    }
  }

  .about-container__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
    display: block;
  }

  .about-container__name {
    font-family: var(--font-display), sans-serif;
    font-weight: 600;
    color: var(--blue-royal);
    margin-bottom: 3rem;
    letter-spacing: 0.06em;
    @media (width < 768px) {
      font-size: 2.6rem;
    }
    @media (768px <= width) {
      font-size: 3.2rem;
    }
  }

  .about-container__body {
    @media (width < 768px) {
      text-align: left;
    }

    p {
      font-family: var(--font-base), sans-serif;
      font-size: 1.5rem;
      line-height: 2;
      color: var(--text);

      &:last-child {
        margin-bottom: 0;
      }
    }

    .about-container__body-placeholder {
      font-family: var(--font-display), sans-serif;
      color: var(--blue-1);
      font-size: 1.6rem;
      font-weight: 400;
      opacity: 0.75;
      letter-spacing: 0.06em;

      @media (width < 768px) {
        text-align: center;
      }
      @media (768px <= width) {
        text-align: left;
      }
    }
  }
}

/*＿＿＿＿＿＿＿＿＿＿＿＿＿＿＿＿＿＿＿＿＿＿＿＿＿フッター（お問い合わせ）＿＿*/
.footer-container {
  background: var(--blue-light);
  position: relative;
  overflow: hidden;
  text-align: center;

  @media (width < 768px) {
    padding: 11rem 0 4rem;
  }
  @media (768px <= width) {
    padding: 21rem 0 4rem;
  }

  .footer-container__inner {
    max-width: var(--container);
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: var(--z-content);
  }

  /*＿＿＿＿＿＿＿＿＿＿＿＿＿＿波形＿＿*/

  .footer-container__wave {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: block;
    pointer-events: none;
    z-index: 0;
    shape-rendering: geometricPrecision;

    @media (width < 768px) {
      height: 4.2rem;
    }
    @media (768px <= width) {
      height: 18rem;
    }
  }

  /*＿＿＿＿＿＿＿＿＿＿＿＿＿＿見出し＿＿*/

  .footer-container__heading {
    @media (width < 768px) {
      margin-bottom: var(--section-title-margin-sp);
    }
    @media (768px <= width) {
      margin-bottom: var(--section-title-margin-pc);
    }
  }

  /*＿＿＿＿＿＿＿＿＿＿＿＿＿＿コンタクトカード＿＿*/

  .footer-container__card {
    text-align: center;
    position: relative;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 2.4rem;
    border: 1.5px solid rgba(255, 255, 255, 0.65);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 14rem;

    @media (width < 768px) {
      min-height: 16rem;
      padding: 0 2rem;
      gap: 2rem;
      width: 29rem;
    }
    @media (768px <= width) {
      min-height: 20rem;
      padding: 0 3.2rem;
      gap: 3.2rem;
    }

    .footer-container__card-group {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 0.2rem;
    }

    .footer-container__lead {
      font-family: var(--font-base), sans-serif;
      color: var(--sub);
      line-height: 2;
      text-wrap: balance;

      @media (width < 768px) {
        font-size: 1.5rem;
      }
      @media (768px <= width) {
        font-size: 1.6rem;
      }
    }

    .footer-container__mail {
      border-radius: 30px;
      display: inline-block;
      text-align: center;
      font-family: var(--font-display), sans-serif;
      font-weight: 600;
      color: var(--blue-royal);
      letter-spacing: 0.04em;
      white-space: nowrap;
      transition: background 0.25s ease, color 0.25s ease;

      &:hover {
        background: var(--blue-light);
      }

      @media (width < 768px) {
        font-size: 1.7rem;
        padding: 0.8rem 1.2rem;
      }
      @media (768px <= width) {
        font-size: clamp(2.4rem, 4vw, 3.2rem);
        padding: 0.6rem 2.4rem;
      }
    }
  }

  /*＿＿＿＿＿＿＿＿＿＿＿＿＿＿ブランド＿＿*/

  .footer-container__brand {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-container__name {
    font-family: var(--font-display), sans-serif;
    font-weight: 700;
    color: var(--blue-royal);
    letter-spacing: 0.13em;
    white-space: nowrap;

    @media (width < 768px) {
      font-size: 1.5rem;
    }
    @media (768px <= width) {
      font-size: 2rem;
    }
  }

  .footer-container__copy {
    font-family: var(--font-display), sans-serif;
    color: var(--sub);
    letter-spacing: 0.1em;

    @media (width < 768px) {
      font-size: 1.1rem;
    }
    @media (768px <= width) {
      font-size: 1.3rem;
    }

    .footer-container__copy-mark {
      display: inline-block;
      transform: translateY(0.08em);
    }
  }
}

