@charset "UTF-8";
/* ==========================================================================
   consent.css
   Cookieの同意バナー（全ページ共通）

   - このファイルが同意バナーのCSSの唯一の置き場所。ほかに同じ指定を置かない
   - assets/js/consent.js と対になっている
   - 読み込み順：reset.css → style.css → consent.css → 各ページのCSS

   .c-consent__inner の幅は min(1000px, 100% - 40px)。
   バナーは position: fixed で画面幅に合わせるため、固定値にすると
   コンテナ幅より狭い画面（768〜1039px など）ではみ出すため。
   ========================================================================== */

.c-consent {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1000;
  padding: 10px 0;
  background: #fff;
  border-top: 1px solid #E0E0E0;
  box-shadow: 0 -2px 12px rgba(23, 55, 91, .08);
  transform: translateY(100%);
  transition: transform .3s ease;
}

.c-consent.is-shown {
  transform: translateY(0);
}

/* スマホのメニューが開いているときは隠す */
.is-menu-open .c-consent {
  display: none;
}

.c-consent__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(1060px, 100% - 40px);
  margin: 0 auto;
}

.c-consent__text {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  line-height: 24px;
  color: #17375B;
  text-align: left;
  text-wrap: pretty; /* 最後の行に1〜2文字だけ残らないようにする */
}

.c-consent__link {
  color: #2864B4;
  text-decoration: underline;
}

.c-consent__btns {
  flex-shrink: 0;
  display: flex;
  gap: 12px;
}

/* 閉じる（×）。「同意しない」ボタンは置かず、これで閉じる。閉じたら denied として保存する */
.c-consent__close {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  font-family: inherit;
  font-size: 20px;
  line-height: 1;
  color: var(--c-consent-mute, #6b8098);
  cursor: pointer;
  background: none;
  border: 0;
  border-radius: 50%;
  appearance: none;
  transition: background .2s, color .2s;
}

/* 2つのボタンは同じ大きさにする（片方だけ目立たせない） */
.c-consent__btn {
  width: 140px;
  height: 44px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  border-radius: 4px;
  transition: opacity .3s;
}

.c-consent__btn--deny {
  color: #17375B;
  background: #fff;
  border: 1px solid #BCC7CB;
}

.c-consent__btn--allow {
  color: #fff;
  background: #2864B4;
  border: 1px solid #2864B4;
}

@media (hover: hover) {
  .c-consent__btn:hover {
    opacity: .7;
  }

  .c-consent__close:hover {
    color: #17375B;
    background: #EFF5FC;
  }
}

@media (max-width: 767px) {
  .c-consent {
    padding: 10px 0;
  }

  .c-consent__inner {
    display: block;
    width: auto;
    margin: 0 20px;
  }

  .c-consent__text {
    margin-bottom: 14px;
    font-size: 13px;
    line-height: 1.8;
  }

  .c-consent__inner {
    position: relative;
    padding-right: 34px;
  }

  .c-consent__close {
    position: absolute;
    top: -2px;
    right: 0;
  }

  .c-consent__btns {
    gap: 10px;
  }

  .c-consent__btn {
    flex: 1;
    width: auto;
    height: 46px;
  }
}
