:root {
  /* variable-font */
  --font-variable-minViewportPx-default: 360;
  --font-variable-maxViewportPx-default: 1000;
  --font-variable-remBase: 16;

  /* color */
  --black: #1a1a1a;
  --white: #fff;

  /* font */
  --ff-base: "Noto Sans JP";
  --fz-base: 1rem;
  --lh-base: normal;
  --fw-light: 360;
  --fw-base: 400;
  --fw-bold: 700;

  /* dynamic colors */
  --table-legend-color: #4c8ef1;
  --table-legend-color-1: #4c8ef1;
  --table-legend-color-2: #4c8ef1e5;
  --table-legend-color-3: #4c8ef1cc;
  --table-legend-color-4: #4c8ef1b2;
  --table-legend-color-5: #4c8ef199;

  --table-legend-color-orange-1: #e69a3e;
  --table-legend-color-orange-2: #e69a3ee5;
  --table-legend-color-orange-3: #e69a3ecc;
  --table-legend-color-orange-4: #e69a3eb2;
  --table-legend-color-orange-5: #e69a3e99;
  --rank-bg-image: url(../img/rank-a.gif);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;

  @media (min-width: 768px) {
    scroll-padding-top: 60px; /* パソコン時のみヘッダー高さ分考慮 */
  }
}

body {
  font-family: var(--ff-base);
  font-size: var(--fz-base);
  font-weight: var(--fw-base);
  line-height: var(--lh-base);
  color: var(--black);
  overflow-x: hidden;
}

img {
  width: 100%;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.pc-none {
  @media (width >= 768px) {
    display: none !important;
  }
}

.sp-none {
  display: none !important;

  @media (width >= 768px) {
    display: block !important;
  }
}

.sp-none--inline {
  display: none !important;

  @media (min-width: 768px) {
    display: inline !important;
  }
}

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

/* ************* */
/* component */
/* ************* */

/* スライド機能 */
.slide-container {
  position: relative;
  width: 100%;
  margin: 20px 0;
}

.slide-list {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
  min-height: 60px;
}

.slide-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 15px 20px;
  background: #f8f9fa;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 1rem;
  line-height: 1.5;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateX(100%);
  z-index: 1;
}

.slide-item.active {
  opacity: 1;
  transform: translateX(0);
  z-index: 2;
  border-color: #2da4a7;
  background: #fff;
  box-shadow: 0 4px 12px rgba(45, 164, 167, 0.15);
}

.slide-item:hover {
  background: #e8f4f4;
  border-color: #2da4a7;
}

.slide-indicators {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 15px;
}

.indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ccc;
  cursor: pointer;
  transition: all 0.3s ease;
}

.indicator.active {
  background: #2da4a7;
  transform: scale(1.2);
}

@media (width >= 768px) {
  .slide-item {
    font-size: 1.125rem;
    padding: 20px 25px;
    min-height: 70px;
  }

  .slide-list {
    min-height: 70px;
  }
}
.c-btn {
  display: inline-block;
  width: 100%;
  color: #fff;
  text-align: center;
  font-size: 1rem;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  padding-block: 8px;
  border-radius: 5px;
  background: #2da4a7;
  touch-action: manipulation;
  user-select: none;
  transition: all 0.3s ease;

  @media (width >= 768px) {
    font-size: 1.125rem;
  }
}

.c-btn2 {
  display: inline-block;
  width: 100%;
  color: #2da4a7;
  text-align: center;
  font-size: 1rem;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  padding-block: 8px;
  border-radius: 5px;
  background: transparent;
  border: solid 1px #2da4a7;
  touch-action: manipulation;
  user-select: none;
  transition: all 0.3s ease;
  margin-top:10px ;

  @media (width >= 768px) {
    font-size: 1.125rem;
  }
}

/* 無効状態 */
.c-btn:disabled {
  background: #e0e0e0;
  cursor: not-allowed;
  box-shadow: none;
}

@media (any-hover: hover) {
  .c-btn:hover {
    opacity: 0.6;
  }
  .c-btn:disabled:hover {
    opacity: 1;
  }
}

.c-btn--white {
  color: #2da4a7;
  background: #fff;
  border: 2px solid #2da4a7;
}

.c-btn--md {
  @media (width >= 768px) {
    font-size: 1.25rem;
  }
}

.c-btn--sm {
  font-size: 1rem;
  color: #2da4a7;
  background: #fff;
  border: 2px solid #2da4a7;
}

/* ログアウトボタン */
.logout-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: 100%;
  color: #000;
  font-size: 0.875rem;
  text-align: center;
  border-radius: 21.5px;
  background: #e9f6f3;
  padding-block: 7px;
  touch-action: manipulation;
  user-select: none;
  transition: all 0.3s ease;

  img {
    width: 17px;
    height: 17px;
    object-fit: contain;
  }
}

@media (any-hover: hover) {
  .logout-btn:hover {
    background: #d8e8e4;
  }
}

.cancel-btn__wrap {
  margin-top: 1em;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}

.cancel-btn {
  font-size: 0.875rem;
  text-decoration: underline;
  transition: all 0.3s ease;
}

@media (any-hover: hover) {
  .cancel-btn:hover {
    opacity: 0.7;
  }
}

/* attribution */
/* 削除ボタン */
.remove-btn {
  width: 100%;
  height: 22px;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: 5px;
  border: 1px solid #2da4a7;
  background: #2da4a7;
  padding-inline: 10px;
  text-wrap: nowrap;
  touch-action: manipulation;
  user-select: none;
  transition: all 0.3s ease;
}

@media (any-hover: hover) {
  .remove-btn:hover {
    opacity: 0.7;
  }
}

.edit-btn {
  margin-top: 3px;
  width: 48px;
  height: 22px;
  color: #2da4a7;
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: 5px;
  border: 1px solid #2da4a7;
  background: #fff;
  padding-inline: 10px;
  text-wrap: nowrap;
  touch-action: manipulation;
  user-select: none;
  transition: all 0.3s ease;

  @media (width >= 768px) {
    margin-top: 1px;
  }
}

@media (any-hover: hover) {
  .edit-btn:hover {
    opacity: 0.7;
  }
}

/* 戻るボタン */
.back-button {
  display: inline-block;
  padding: 5px 10px;
  background: #2da4a7;
  color: #fff;
  border-radius: 5px;
  text-decoration: none;
  transition: all 0.3s ease;
}

@media (any-hover: hover) {
  .back-button:hover {
    opacity: 0.6;
  }
}

/* ログイン後の共通ヘッダー */
.header {
  width: 100%;
  height: 52px;
  position: fixed;
  bottom: 0;
  padding-block: 6px;
  padding-inline: 15px;
  background: #fff;
  box-shadow: 0 -2px 3px 0 rgba(0, 0, 0, 0.15);
  z-index: 101;

  @media (min-width: 768px) {
    position: sticky;
    display: flex;
    align-items: center;
    justify-content: space-between;
    inset: 0;
    top: 0;
    bottom: auto;
    height: 60px;
    padding-block: 15px;
    padding-inline: 20px;
    box-shadow: 0px 3px 3px 0px rgba(0, 0, 0, 0.15);
  }
}

/* Cyvateロゴ */
.header__logo {
  display: none;

  @media (width >= 768px) {
    display: block;
  }

  a {
    display: block;
    width: 127px;
  }

  img {
    width: 100%;
    height: fit-content;
    object-fit: contain;
  }
}

/* アイコンナビゲーション */
.header__nav {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(auto-fit, minmax(30px, auto));
  justify-content: center;
  align-items: center;
  gap: 0.85em;

  @media (min-width: 768px) {
    justify-content: flex-end;
  }
}

/* アイコンボタン */
.header__icon {
  display: grid;

  .header__icon-link {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 2;
    gap: 5px;
    justify-items: center;
    border-radius: 5px;
    background-color: transparent;

    @media (min-width: 768px) {
      padding: 5px;
      transition: background-color 0.3s ease;
    }

    span {
      color: #999;
      text-align: center;
      font-size: 0.5625rem;

      @media (min-width: 768px) {
        display: none;
      }
    }
  }
}

@media (any-hover: hover) {
  .header__icon a:hover {
    @media (min-width: 768px) {
      background-color: #e9f6f3;
    }
  }
}

/* 各ツールのアイコン */
.header__icon--tool {
  padding-left: 15px;
  border-left: 1px solid #999;

  .header__icon-link {
    gap: 0;
  }
}

/* アクティブ時 */
.header__icon--active {
  a {
    svg path {
      fill: rgba(45, 164, 167, 0.6);
    }

    span {
      color: rgba(45, 164, 167, 0.6);
    }
  }
}

/* ************* */
/* index.php */
/* ************* */
.top__container {
  display: grid;
  place-content: center;
  width: 100dvw;
  height: 100dvh;
}

.top__wrapper {
  width: 100dvw;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-inline: auto;
  gap: 15px;

  @media (width >= 768px) {
    gap: 25px;
  }
}

.top__logo {
  width: 153px;
  margin-inline: auto;

  @media (width >= 768px) {
    width: 293px;
  }

  img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
}

.top__search {
  position: relative;
  width: min(calc(100% - 20px * 2), 700px);
  margin-inline: auto;

  input {
    width: 100%;
    height: 40px;
    padding: 15px 20px;
    border-radius: 39px;
    border: 1px solid #ccc;
    background: #fff;
    box-shadow: 0px 3px 5px 0px rgba(0, 0, 0, 0.15) inset;

    @media (width >= 768px) {
      height: 50px;
    }
  }
}

.top__search input::placeholder {
  font-size: 1rem;
  color: #9e9e9e;

  @media (width >= 768px) {
    font-size: 1.125rem;
  }
}

/* 虫眼鏡アイコン */
.top__search::after {
  position: absolute;
  content: "";
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  background: url("../img/svg/search-icon.svg") no-repeat center;
  pointer-events: none;
}

.top__btn-wrap {
  width: min(100%, 250px);
  margin-inline: auto;
}

/* ************* */
/* login/client.php */
/* ************* */
.login__header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #fff;
  padding-block: 11px;
  padding-inline: 15px;
  box-shadow: 0px 3px 3px 0px rgba(0, 0, 0, 0.15);
  z-index: 2;

  @media (width >= 768px) {
    padding-block: 20px 13px;
    padding-inline: 20px;
  }
}

/* ヘッダーロゴ */
.login__logo {
  width: 108px;

  @media (width >= 768px) {
    width: 127px;
  }

  img {
    width: 100%;
    height: fit-content;
    object-fit: contain;
  }
}

/* 会員ログイン */
.login__btn {
  display: grid;
  place-content: center;
  inline-size: fit-content;
  height: 26px;
  padding-inline: 13px;
  border-radius: 4px;
  border: 1px solid #ccc;
  background: #fff;
  color: #333;
  font-family: "Noto Sans JP";
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
}

.login__content {
  display: grid;
  place-content: center;
  width: 100dvw;
  height: calc(100dvh - 56px); /* header分 */

  @media (width >= 768px) {
    height: calc(100dvh - 60px);
  }
}

.login__inner {
  width: calc(100dvw - 20px * 2);
  display: flex;
  flex-direction: column;

  @media (width >= 768px) {
    width: min(100dvw, 530px);
    margin-inline: auto;
    padding-block: 90px;
    border: 1px solid #ccc;
    background: #fff;
  }
}

.login__title {
  color: #333;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 600;

  @media (width >= 768px) {
    font-size: 1.25rem;
  }
}

.login__form {
  margin-block-start: 40px;
  width: min(100%, 335px);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;

  @media (width >= 768px) {
    width: min(100%, 380px);
  }
}

.login__item {
  width: 100%;
}

/* password */
.password-field,
.password-field-form {
  position: relative;
  width: 100%;
}

.password-toggle,
.password-toggle-form {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.eye-icon {
  width: 20px;
  height: 20px;
  opacity: 0.5;
}

.password-toggle:hover .eye-icon {
  opacity: 0.7;
}

/* パスワードをお忘れの方はこちら */
.login__item--note {
  text-align: right;

  a {
    font-size: 0.75rem;
    text-decoration-line: underline;
  }
}

.login__input {
  width: 100%;
  font-size: 1rem;
  border-radius: 5px;
  border: 1px solid #ccc;
  background: #fff;
  padding: 10px 18px;
}

input[type="password"].login__input {
  letter-spacing: 0.1em;
}

.login__btn-wrap {
  margin-block-start: 20px;
  width: min(100%, 250px);
  margin-inline: auto;
}

/* login/index.php */
.login__text {
  color: #333;
  font-size: 0.875rem;
  font-weight: 600;

  @media (width >= 768px) {
    font-size: 1rem;
  }
}

.login__box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 30px;
  border-bottom: 1px solid #ccc;

  @media (width >= 768px) {
    gap: 15px;
    padding-bottom: 40px;
  }
}

.login__box:last-child {
  padding-bottom: none;
  border-bottom: none;
}

.login__box + .login__box {
  margin-top: 30px;

  @media (width >= 768px) {
    margin-top: 40px;
  }
}

.mt-sm {
  margin-top: 20px;

  @media (width >= 768px) {
    margin-top: 50px;
  }
}

.mt-10 {
  margin-top: 10px;
}

.mt-15 {
  margin-top: 15px;
}

.mt-20 {
  margin-top: 20px;
}

.mt-25 {
  margin-top: 25px;
}

.mt-30 {
  margin-top: 30px;
}

.mt-35 {
  margin-top: 35px;
}

.mt-40 {
  margin-top: 40px;
}

.mt-50 {
  margin-top: 50px;
}

.mt-60 {
  margin-top: 60px;
}

.mt-70 {
  margin-top: 70px;
}

.mt-80 {
  margin-top: 80px;
}

.mt-90 {
  margin-top: 90px;
}

.mt-100 {
  margin-top: 100px;
}

.mt-110 {
  margin-top: 110px;
}

.pt-15 {
  padding-top: 15px;
}

.pb-15 {
  padding-bottom: 15px;
}

.px-15 {
  padding-inline: 15px;
}

.py-15 {
  padding-block: 15px;
}

.text-right {
  text-align: right;
}

.login__box-container {
  width: min(100%, 335px);
  margin-inline: auto;

  @media (width >= 768px) {
    width: min(100%, 410px);
  }
}

/* アラート */
.alert.alert-success {
  display: inline flex;
  align-items: center;
  padding: 10px 15px;
  border-radius: 5px;
  background: #e9f6f3;
}

.alert.alert-danger {
  display: inline flex;
  align-items: center;
  padding: 10px 15px;
  border-radius: 5px;
  background: #f6e9e9;
}

.flex-column {
  display: flex;
  flex-direction: column !important;
  justify-content: center !important;
}

/* ************* */
/* 新クライアントログインページ */
/* ************* */
.client-login__container {
  position: relative;
  padding-block: 30px 100px;
  padding-inline: 20px;
  min-height: 100lvh;

  @media (min-width: 768px) {
    min-height: calc(100vh - 97.59px); /* フッター */
    display: grid;
    place-content: center;
    padding-block: 30px;
  }
}

.client-login__main {
}

/* 季節ごとに変わる背景画像スマホ */
.client-login__container::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100lvh;
  background-image: url(../img/client_login_bg.webp);
  background-position: bottom center;
  background-size: cover;
  background-repeat: no-repeat;
  z-index: -1;
  will-change: transform;
}

@media screen and (min-width: 768px) {
  .client-login__container::before {
    content: none;
  }
}

/* 記事がある場合のメインエリア位置調整 */
body:has(.client-login-header__articles) .client-login__container {
  @media (min-width: 768px) {
    min-height: calc(
      100vh - (34px + 97.59px)
    ); /* ログインページヘッダー - フッター */
  }
}

/* 季節ごとに変わるPC時の背景動画 */
.client-login__video {
  display: none;
  visibility: hidden;

  @media (min-width: 768px) {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
    z-index: -1;
    visibility: visible;
  }
}

.client-login__wrapper {
  @media (min-width: 768px) {
    width: min(100%, 1110px);
    margin-inline: auto;
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    grid-template-rows: repeat(5, 1fr);
    column-gap: 16px;
    row-gap: 20px;
  }

  @media (min-width: 990px) {
    column-gap: 40px;
  }
}

/* ログインフォーム */
.client-login__content {
  width: min(100%, 400px);
  margin-inline: auto;
  height: fit-content;
  padding: 40px 25px;
  border-radius: 10px;
  background-color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 18px 0 rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(10px);

  @media (min-width: 768px) {
    padding: 40px 16px;
    grid-column: span 4 / span 4;
    grid-row: span 5 / span 5;
    grid-column-start: 7;
    grid-row-start: 1;
  }

  @media (min-width: 990px) {
    padding: 60px 35px;
  }
}

/* クライアント専用ログインページロゴ */
.client-login__logo {
  width: 175px;
  aspect-ratio: 175 / 38;
  margin-inline: auto;

  @media (min-width: 768px) {
    width: 220px;
    aspect-ratio: 220 / 47.9;
  }

  img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
}

.client-login__form {
  margin-top: 25px;

  @media (min-width: 768px) {
    margin-top: 40px;
  }
}

/* 会員ログイン */
.client-login__title {
  color: #333;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 1px;
}

.client-login__item {
  margin-top: 20px;
  position: relative;
}

/* inputアイテム */
.client-login__input {
  width: 100%;
  padding: 10.5px 18px;
  border-radius: 5px;
  border: 1px solid #ccc;
  background-color: #fff;
  font-size: 1rem;
  font-family: "Noto Sans JP";
  font-weight: 400;
}

/* ラベル */
.client-login__label {
  position: absolute;
  top: 50%;
  left: 18px;
  transform: translate(0, -50%);
  color: #b2b2b2;
  font-family: "Noto Sans JP";
  font-size: 1rem;
  font-weight: 400;
  transition: all 0.3s ease;
  transform-origin: left center;
  pointer-events: none;
}

.client-login__input:focus,
.client-login__input:not(:placeholder-shown) {
  border-color: #2da4a7;
}

/* フォーカス時、有効な値の入力時、ラベルを上部に移動 */
.client-login__input:focus + .client-login__label,
.client-login__input:not(:placeholder-shown) + .client-login__label {
  color: #2da4a7;
  transform: translate(0, -35px) scale(0.7);
  text-shadow: -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff,
    1px 1px 0 #fff, -2px 0 0 #fff, 2px 0 0 #fff, 0 -2px 0 #fff, 0 2px 0 #fff;
}

/* パスワード */
.client-login__input.client-login__input--password {
  letter-spacing: 0.2em;
}

/* パスワードをお忘れの方はこちら */
.client-login__item--note {
  margin-top: 1.1em;
  color: #333;
  text-align: right;
  font-size: 0.75rem;
  font-weight: 400;
  text-decoration: underline;
}

/* ログインボタン */
.client-login__btn-wrap {
  margin-top: 25px;

  @media (min-width: 768px) {
    margin-top: 45px;
  }
}

/* クライアントログインページバナー */
.client-login__banner {
  margin-top: 20px;
  display: block;
  width: 100%;
  aspect-ratio: 335 / 167;

  @media (min-width: 768px) {
    margin-top: 0;
    aspect-ratio: 670 / 335;
    grid-column: span 6 / span 6;
    grid-row: span 2 / span 2;
    grid-column-start: 1;
    grid-row-start: 1;
  }

  @media (min-width: 990px) {
    grid-column: span 6 / span 6;
    grid-row: span 3 / span 3;
    grid-column-start: 1;
    grid-row-start: 1;
  }

  img {
    width: 100%;
    height: 100%;
  }
}

/* クライアントログインページブログ記事 */
.client-login__articles {
  margin-top: 20px;
  display: grid;
  gap: 20px;

  @media (min-width: 768px) {
    margin-top: 0;
    grid-template-columns: repeat(3, 1fr);
    grid-column: span 6 / span 6;
    grid-row: span 3 / span 3;
    grid-row-start: 3;
  }

  @media (min-width: 990px) {
    grid-column: span 6 / span 6;
    grid-row: span 2 / span 2;
    grid-row-start: 4;
  }
}

/* ブログ記事コンポーネント */
/* .client-login-article {
} */

@media (any-hover: hover) {
  .client-login-article a:hover .client-login-article__img img {
    transform: scale(1.06);
  }
}

/* サムネイル */
.client-login-article__img {
  aspect-ratio: 335 / 167.5;
  overflow: hidden;

  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
  }
}

.client-login-article__meta {
  display: block;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 3px 5px;
}

.client-login-article__meta-content {
  display: grid;
  grid-template-columns: 11px auto;
  align-items: center;
  gap: 3px;
  color: #fff;
  font-family: "Noto Sans JP";
  font-size: 0.6875rem;
  font-weight: 400;
  line-height: 1;
}

/* ************* */
/* クライアントログインページヘッダー */
/* ************* */
.client-login-header {
  display: none;
}

.client-login-header:has(*) {
  display: block;
  padding: 5px 15px;
  background-color: #d7f6f4;
  overflow: hidden;
}

.client-login-header__articles {
  position: relative;
  height: 46px; /* 1記事分の高さに調整 */
  overflow: hidden;

  @media (min-width: 768px) {
    height: 24px;
  }
}

.client-login-header-article {
  position: absolute;
  width: 100%;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.5s ease, opacity 0.5s ease;

  a {
    @media (min-width: 768px) {
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 7px;
    }
  }
}

/* アクティブ時 */
.client-login-header-article.active {
  transform: translateY(0);
  opacity: 1;
}

.client-login-header-article.prev {
  transform: translateY(-100%);
  opacity: 0;
}

@media (any-hover: hover) {
  .client-login-header-article a:hover .client-login-header-article__date,
  .client-login-header-article a:hover .client-login-header-article__tag,
  .client-login-header-article a:hover .client-login-header-article__title {
    transform: translateX(5px);
  }

  .client-login-header-article a:hover .client-login-header-article__title {
    color: #80abeb;
  }

  .client-login-header-article a:hover .client-login-header-article__title svg {
    fill: #80abeb;
  }
}

.client-login-header-article__meta {
  display: flex;
  align-items: center;
  gap: 7px;
}

.client-login-header-article__info {
  color: #2da4a7;
  font-family: Roboto;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.6px;

  @media (min-width: 768px) {
    margin-right: 8px;
  }
}

/* 日付 */
.client-login-header-article__date {
  color: #666;
  font-family: Roboto;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.57;
  letter-spacing: 0.6px;
  transition: all 0.3s ease;
}

/* タグ */
.client-login-header-article__tag {
  border-radius: 5px;
  border: 1px solid #ccc;
  background-color: #f5f5f5;
  padding-inline: 7px;
  color: #333;
  font-family: "Noto Sans JP";
  font-size: 0.6875rem;
  font-weight: 400;
  line-height: 1.63;
  letter-spacing: 0.6px;
  transition: all 0.3s ease;
}

/* 記事タイトル */
.client-login-header-article__title {
  display: grid;
  grid-template-columns: 1fr 12px;
  align-items: center;
  gap: 7px;
  transition: all 0.3s ease;
  color: #333;
  font-family: "Noto Sans JP";
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0.6px;

  h2 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  svg {
    fill: #999;
    transition: all 0.3s ease;
  }
}

/* ************* */
/* クライアントログインページフッター */
/* ************* */
.footer {
  padding: 10px 20px;
  background-color: #4d4d4d;
  color: #fff;
  font-family: "Noto Sans JP";
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.6;

  @media (min-width: 768px) {
    padding: 20px 40px;
  }
}

.footer__inner {
  display: grid;

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

/* 会社概要 */
.footer__text {
  display: block;
  padding-bottom: 3px;
  border-bottom: 1px solid #fff;

  @media (min-width: 768px) {
    padding-bottom: 0;
    padding-right: 15px;
    border-bottom: none;
    border-right: 1px solid #fff;
  }
}

/* 会社概要データ */
.footer__data {
  margin-top: 10px;
  width: fit-content;
  display: grid;
  grid-template-columns: minmax(61px, 18%) 1fr;
  column-gap: 1.07em;

  @media (min-width: 768px) {
    margin-top: 0;
    padding-left: 15px;
  }

  dt,
  dd {
    font-weight: inherit;
  }
}

/* コピーライト */
.footer__copyright {
  margin-top: 25px;
  font-size: 0.75rem;
  text-align: center;

  @media (min-width: 768px) {
    margin-top: auto;
    align-self: flex-end;
  }
}

/* ************* */
/* client/index.php */
/* ************* */
.client__contents {
  width: 100dvw;
  min-height: calc(100dvh - 49px);
  background: #f8fdfc;
  padding-block: 40px;

  @media (width >= 768px) {
    min-height: calc(100dvh - 60px);
  }
}

.client__contents-inner {
  width: min(calc(100% - 20px * 2), 960px);
  margin-inline: auto;
}

/* クライアントダッシュボード */
.dashboard__contents {
  background-color: #f9f9f9;
  width: 100%;
  min-height: calc(100vh - 60px);
  padding-bottom: 60px; /* ボトムナビゲーション分 */

  @media (min-width: 768px) {
    padding-bottom: 0;
  }
}

.dashboard__blog-header {
  display: none;
}

/* ダッシュボードヘッダー記事(コンテンツがある場合にのみスタイル適用) */
.dashboard__blog-header:has(*) {
  display: block;
  position: sticky;
  top: 0;
  width: 100%;
  padding: 5px 15px;
  background-color: #f0f6ff;
  z-index: 100;

  @media (min-width: 768px) {
    top: 60px; /* header高さ分 */
  }
}

.dashboard__blog-header__articles {
  position: relative;
  height: 24px;
  /* 1記事分の高さに調整 */
  overflow: hidden;
}

/* 記事コンポーネント */
.dashboard__blog-header-article {
  position: absolute;
  width: 100%;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.5s ease, opacity 0.5s ease;

  a {
    display: grid;
    grid-template-columns: auto auto 1fr;
    align-items: center;
    gap: 7px;
    transition: all 0.3s ease;
  }
}

.dashboard__blog-header-article.active {
  transform: translateY(0);
  opacity: 1;
}

.dashboard__blog-header-article.prev {
  transform: translateY(-100%);
  opacity: 0;
}

@media (any-hover: hover) {
  .dashboard__blog-header-article a:hover .dashboard__blog-header-article__date,
  .dashboard__blog-header-article a:hover .dashboard__blog-header-article__tag,
  .dashboard__blog-header-article
    a:hover
    .dashboard__blog-header-article__title
    h2 {
    transform: translateX(5px);
  }

  .dashboard__blog-header-article
    a:hover
    .dashboard__blog-header-article__title {
    color: #80abeb;
  }

  .dashboard__blog-header-article
    a:hover
    .dashboard__blog-header-article__title
    svg {
    fill: #80abeb;
  }
}

@media (min-width: 768px) {
  @media (any-hover: hover) {
    .dashboard__blog-header-article
      a:hover
      .dashboard__blog-header-article__date,
    .dashboard__blog-header-article
      a:hover
      .dashboard__blog-header-article__tag,
    .dashboard__blog-header-article
      a:hover
      .dashboard__blog-header-article__title
      h2,
    .dashboard__blog-header-article
      a:hover
      .dashboard__blog-header-article__title
      svg {
      transform: translateX(5px);
    }
  }
}

/* 投稿日 */
.dashboard__blog-header-article__date {
  color: #666;
  font-family: Roboto;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.57;
  letter-spacing: 0.6px;
  transition: all 0.3s ease;
}

/* カテゴリータグ */
.dashboard__blog-header-article__tag {
  border-radius: 5px;
  border: 1px solid #ccc;
  background-color: #f5f5f5;
  padding-inline: 7px;
  color: #333;
  font-family: "Noto Sans JP";
  font-size: 0.6875rem;
  font-weight: 400;
  line-height: 1.63;
  letter-spacing: 0.6px;
  transition: all 0.3s ease;
}

/* 記事タイトル */
.dashboard__blog-header-article__title {
  display: grid;
  grid-template-columns: 1fr 12px;
  align-items: center;
  gap: 7px;
  color: #333;
  font-family: "Noto Sans JP";
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0.6px;

  @media (min-width: 768px) {
    inline-size: fit-content;
  }

  h2 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: all 0.3s ease;
  }

  svg {
    fill: #999;
    transition: all 0.3s ease;
  }
}

/* ダッシュボードヘッダー */
.dashboard__header {
  position: sticky;
  top: 0; /* 記事がない場合のデフォルト */
  padding-inline: 15px;
  border-bottom: 1px solid #ccc;
  background-color: #fff;
  z-index: 100;

  @media (min-width: 768px) {
    top: 60px; /* 記事がない場合のデフォルト */
    padding-top: 0;
    padding-inline: 25px;
    display: grid;
    align-items: center;
    gap: 1.5em;
  }
}

/* 記事がある場合のダッシュボードヘッダー位置調整 */
body:has(.dashboard__blog-header__articles) .dashboard__header {
  top: 34px;

  @media (min-width: 768px) {
    top: calc(60px + 34px);
  }
}

/* ************ */
/* ナビゲーション */
/* ************ */
.dashboard__nav {
  min-width: 0;
  overflow: hidden;

  @media (min-width: 768px) {
    display: flex;
    justify-content: center;
  }
}

.dashboard__nav-list {
  display: flex;
  align-items: center;
  gap: 25px;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  min-width: 0;

  @media (min-width: 768px) {
    justify-content: flex-start;
  }
}

.dashboard__nav-list::-webkit-scrollbar {
  display: none;
}

.dashboard__nav-item {
  a,
  button {
    display: block;
    width: 40px;
    padding-block: 15px;
    border-bottom: 3px solid transparent;
    background: transparent;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-top: none;
    cursor: pointer;

    img {
      width: 40px;
      aspect-ratio: 1 / 1;
      object-fit: contain;
    }
  }
}

/* アクティブなアイコン */
.dashboard__nav-item--active {
  a,
  button {
    border-bottom-color: #2da4a7;
  }
}

/* ダッシュボードメイン画面 */
.dashboard__contents-container {
  @media (min-width: 768px) {
    display: grid;
    grid-template-columns: 260px 1fr;
  }
}

/* ダッシュボードサイドバー */
.dashboard__sidenav {
  @media (min-width: 768px) {
    position: fixed;
    top: calc(
      60px + 79px
    ); /* 記事がない場合: header高さ + dashboard__header高さ */
    width: 260px;
    height: 100%;
    overflow-y: auto;
  }
}

/* 記事がある場合のダッシュボードサイドバー位置調整 */
body:has(.dashboard__blog-header__articles) .dashboard__sidenav {
  @media (min-width: 768px) {
    top: calc(
      60px + 79px + 34px
    ); /* header高さ + dashboard__header高さ + 記事エリアの高さ */
  }
}

/* SP時のみ */
.dashboard__sidenav-sp {
  padding-block: 20px 10px;
  padding-inline: 25px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;

  /* ツールチップ */
  button {
    width: 15px;
    height: 20px;
  }

  @media (min-width: 768px) {
    display: none;
  }
}

.dashboard__sidenav-title {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
}

/* pc時のみ */
.dashboard__sidenav-pc-contents {
  display: none;

  @media (min-width: 768px) {
    margin-top: 15px;
    min-height: calc(100vh - 170px);
    display: block;
    padding-block: 24px;
    padding-inline: 10%;
    border-right: 1px solid #ccc;
  }
}

.dashboard__sidenav-pc-img {
  width: 60px;
  height: 60px;
  margin-inline: auto;

  img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
}

/* サイドバー分析タイトル */
.dashboard__sidenav-pc-title {
  margin-top: 15px;
  color: #555;
  text-align: center;
  font-family: "Noto Sans JP";
  font-size: 20px;
  font-weight: 700;
  line-height: 140%; /* 28px */
}

/* サイドバー分析説明 */
.dashboard__sidenav-pc-desc {
  margin-top: 15px;
  color: #555;
  font-family: "Noto Sans JP";
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 150%; /* 21px */
}

/* ページ遷移ボタンコンテナ */
.dashboard__sidenav-pc-btn-container {
  margin-top: 15px;
  width: 100%;
  display: grid;
  gap: 10px;
}

/* ページ遷移ボタン */
.dashboard__sidenav-pc-btn {
  inline-size: 100%;
  padding-block: 5px;
  padding-inline: 10px;
  border-radius: 5px;
  border: 1px solid #2da4a7;
  background: #fff;
  color: #2da4a7;
  text-align: center;
  font-family: "Noto Sans JP";
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
  transition: all 0.3s ease;
}

/* ************ */
/* ダッシュボードメインコンテンツ */
.dashboard__main {
  padding-block: 15px;
  padding-inline: 15px;

  @media (min-width: 768px) {
    padding-inline: 30px;
    padding-block: 30px;
  }
}

/* サイトURL */
.dashboard__main-site-title {
  color: #555;
  font-family: Inter;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  text-align: center;

  @media (min-width: 768px) {
    text-align: left;
  }
}

/* 運用ステータス */
.dashboard__main-status {
  position: relative;
  margin-top: 15px;
  padding-block: 24px;
  padding-inline: 15px 70px;
  border-radius: 5px;
  background-color: #fff;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 15px;

  @media (min-width: 768px) {
    padding-inline: 40px 80px;
  }
}

/* ランク評価画像 */
.dashboard__main-status::after {
  position: absolute;
  content: "";
  bottom: 0;
  right: 0;
  width: 65px;
  height: 88px;
  background: var(--rank-bg-image);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

/* 運用ステータス-スコア */
.dashboard__main-status-score {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  color: #2da4a7;
  font-family: "Noto Sans JP";
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
  line-height: 150%; /* 18px */

  @media (min-width: 768px) {
    flex-direction: row;
    gap: 15px;
    font-size: 14px;
  }

  /* ランク */
  span {
    color: #2da4a7;
    font-family: Roboto;
    font-size: 30px;
    font-style: normal;
    font-weight: 700;
    line-height: 27px; /* 90% */
  }
}

/* 運用ステータス - テキスト */
.dashboard__main-status-text {
  color: #333;
  font-family: "Noto Sans JP";
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 150%; /* 24px */
}

/* ダッシュボード カード */
.dashboard__main-card-container {
  margin-top: 20px;
  border-radius: 10px;
  background-color: #eee;
  padding: 10px;

  @media (min-width: 768px) {
    padding: 20px;
  }
}

.dashboard__main-card-container-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

/* GoogleAnalyticsのみ */
.dashboard__main-card-container-inner--ga {
  @media (min-width: 768px) {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(236px, 1fr));
    gap: 20px;
  }
}

/* カードコンポーネント */
.dashboard__main-card {
  padding-block: 15px 10px;
  padding-inline: 20px;
  border-radius: 5px;
  background-color: #fff;
}

/* プロパティ名 */
.dashboard__main-card-property-name {
  color: #555;
  font-family: "Noto Sans JP";
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

/* 数値 + レート */
.dashboard__main-card-body {
  margin-top: 7px;
  inline-size: fit-content;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr auto;
  justify-content: center;
  align-items: center;
  gap: 15px;
}

/* 数値 */
.dashboard__main-card-value {
  color: #333;
  text-align: center;
  font-family: Roboto;
  font-size: 32px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;

  /* 単位 */
  span {
    padding-inline: 0.3em;
    color: #333;
    text-align: center;
    font-family: "Noto Sans JP";
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
    line-height: 28px; /* 233.333% */
  }
}

/* 評価レート */
.dashboard__main-card-rate {
  color: #e5603e;
  font-family: "Noto Sans JP";
  font-size: 14px;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
}

/* 円グラフ + テーブル */
.dashboard__main-graph {
  margin-top: 20px;
  padding: 25px;
  border-radius: 10px;
  background-color: #fff;

  @media (min-width: 768px) {
    padding: 25px 40px;
  }
}

.dashboard__main-graph-heading {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
}

.dashboard__main-graph-title {
  color: #4c8ef1;
  text-align: center;
  font-family: "Noto Sans JP";
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  text-align: center;

  @media (min-width: 768px) {
    text-align: left;
  }
}

/* 切り替えボタンコンテナ */
.dashboard__main-graph-heading-btn-container {
  display: grid;
  grid-template-columns: repeat(2, 40px);
  gap: 10px;

  /* PC時は非表示 */
  @media (min-width: 768px) {
    display: none;
  }
}

/* スマホ時の円グラフ, テーブル切り替えボタン */
.dashboard__main-graph-heading-btn {
  width: 40px;
  height: 40px;
  display: grid;
  place-content: center;
  border-radius: 10px;
  background-color: #4c8ef1;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dashboard__main-graph-body {
  /* PC時は横並び */
  @media (min-width: 768px) {
    display: block;
  }

  @media (min-width: 1000px) {
    display: grid;
    grid-template-columns: 1fr 350px;
    align-items: center;
  }
}

.dashboard__main-graph-table {
  /* PC時は常に表示 */
  @media (min-width: 768px) {
    display: block !important;
  }
}

/* テーブル */
.dashboard__table {
  margin-top: 15px;
  width: 100%;
  border-collapse: collapse;

  @media (min-width: 768px) {
    margin-top: 0;
  }

  thead {
    width: 100%;
  }

  th {
    padding: 12px;
    color: #999;
    font-size: 12px;
    font-weight: 600;
    border-bottom: 1px solid #ccc;
    text-align: center;
  }

  th:first-child {
    width: 70%;
  }

  th:last-child {
    width: 30%;
    border-left: 1px solid #ccc;
  }

  tbody tr {
    background-color: #f9f9f9;
    border-bottom: 1px solid #ccc;
  }

  tbody tr:nth-child(even) {
    background-color: #fff;
  }

  td {
    padding: 15px 12px;
    color: #333;
    font-size: 14px;
    font-weight: 600;
  }

  /* 長いプロパティも1行のみ表示 */
  td:first-child {
    position: relative;
    padding: 15px 12px 15px 37px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1;
    max-height: 1em;
  }

  /* 凡例と同じ色の四角 */
  td:first-child::before {
    position: absolute;
    content: "";
    top: 50%;
    left: 15px;
    width: 14px;
    aspect-ratio: 1 / 1;
    background-color: var(--table-legend-color);
  }

  /* 各行ごとの色設定 */
  tbody tr:nth-child(1) td:first-child::before {
    background-color: var(--table-legend-color-1);
  }
  tbody tr:nth-child(2) td:first-child::before {
    background-color: var(--table-legend-color-2);
  }
  tbody tr:nth-child(3) td:first-child::before {
    background-color: var(--table-legend-color-3);
  }
  tbody tr:nth-child(4) td:first-child::before {
    background-color: var(--table-legend-color-4);
  }
  tbody tr:nth-child(5) td:first-child::before {
    background-color: var(--table-legend-color-5);
  }

  td:last-child {
    border-left: 1px solid #ccc;
    text-align: right;
  }
}

/* 円グラフ */
.dashboard__main-graph-graph {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;

  /* PC時は常に表示、サイズ制限 */
  @media (min-width: 768px) {
    display: flex !important;
    max-width: 350px;
    margin: 0 auto;
  }
}

/* 円グラフ本体 */
.dashboard__main-graph-chart {
  width: 100%;
  height: 300px;
}

/* ******************* */
.client__container {
  margin-top: 45px;
}

.client__btn-wrapper {
  margin-top: 40px;
  width: min(100%, 288px);
  margin-inline: auto;
}

.menu__items {
  display: grid;
  grid-template-columns: repeat(auto-fill, 96px);
  justify-content: center;
  column-gap: 10px;
  row-gap: 10px;
  padding-top: 25px;
  padding-bottom: 25px;
  border-bottom: 1px solid #cad5d3;

  @media (width >= 768px) {
    column-gap: 15px;
    row-gap: 15px;
  }
}

.menu__items:first-child {
  border-top: 1px solid #cad5d3;
}

.menu__item {
  width: 100%;
  padding: 6px;
  border-radius: 15px;
  transition: all 0.3s ease;
}

@media (any-hover: hover) {
  .menu__item:hover {
    background: #e9f6f3;
  }
}

/* サブスクの有効期限切れのユーザーはモザイク */
.menu__item.not-arrowed {
  -ms-filter: blur(5px);
  filter: blur(5px);
  user-select: none;
  pointer-events: none;
  cursor: not-allowed;
}

@media (any-hover: hover) {
  .menu__item.not-arrowed:hover {
    background: transparent;
  }
}

/* メニューアイコン */
.menu__link {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;

  img {
    width: 50px;
    height: 100%;
    margin-inline: auto;
    object-fit: contain;
    border-radius: 10px;
  }

  /* プロフィール画像用のスタイル */
  img.profile-icon {
    border-radius: 50%;
    width: 50px;
    height: 50px;
    object-fit: cover;
  }

  span {
    color: #333;
    text-align: center;
    font-size: 0.875rem;
  }

  /* 通知アイコン */
  .notification-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #ff4b4b;
    color: var(--white);
    border-radius: 50%;
    padding: 2px 8px;
    font-size: 12px;
    min-width: 20px;
    text-align: center;
  }
}

/* ************* */
/* director/create.php */
/* ************* */
.page-create {
  padding-block: 40px;
  background: #f9f9f9;
  width: 100%;
  min-height: calc(100dvh - 49px);

  @media (width >= 768px) {
    min-height: calc(100dvh - 60px);
  }
}

.page-create__inner {
  width: min(calc(100% - 20px * 2), 960px);
  margin-inline: auto;
}

.page-create__container {
  margin-top: 30px;
  border-radius: 10px;
  background: #fff;
  padding: 25px;

  @media (width >= 768px) {
    padding: 45px;
  }
}

.page-title {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  color: #adadad;
  font-family: "Jost", serif;
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: 4.8px;

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

  span {
    margin-top: 15px;
    position: relative;
    color: #333;
    font-family: "Noto Sans JP";
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 2.04px;
  }

  span::before {
    position: absolute;
    content: "";
    top: -10px;
    left: 50%;
    width: 40px;
    height: 3px;
    transform: translateX(-50%);
    background: #2da4a7;
  }
}

/* ver2.0共通タイトル */
.page-title-v2 {
  inline-size: fit-content;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 45px 1fr;
  justify-items: center;
  align-items: center;
  text-align: center;
  gap: 5px;
  color: #555;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  line-height: 140%;
}

.page-tool__main-content {
  border-radius: 10px;
  background: #fff;
  padding-block: 40px;
  padding-inline: 10px;

  @media (width >= 768px) {
    padding-block: 40px;
    padding-inline: 30px;
  }

  @media (width >= 1200px) {
    padding-inline: 45px;
  }
}

/* attribution */
.page-title--attribution {
  text-align: center;
  font-size: 1.25rem;
  font-weight: 600;
}

.page-tool__attribution-btn-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.attribution-btn {
  display: inline grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  font-size: 0.875rem;
  gap: 5px;
  border-radius: 5px;
  border: 1px solid #ccc;
  background: #fff;
  padding: 10px 13px;
  transition: all 0.3s ease;

  @media (width >= 768px) {
    padding: 10px 15px;
  }

  img {
    width: 16px;
    height: 16px;
    object-fit: contain;
  }
}

@media (any-hover: hover) {
  .attribution-btn:hover {
    background: #e9f6f3;
  }
}

.page-create__form {
  margin-top: 30px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 40px;

  @media (width >= 768px) {
    margin-top: 86px;
  }
}

.page-create__form-item-wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;

  @media (width >= 768px) {
    flex-direction: row;
    justify-content: center;
    gap: 40px;
  }
}

.page-create__form-item {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

/* 合計金額のみ使用 */
.page-create__form-item--right {
  width: 80%;
  margin-inline-start: auto;

  @media (width >= 768px) {
    width: 30%;
  }
}

.form-label {
  color: #000;
  font-size: 0.875rem;
  font-weight: 500;
}

/* カレンダーアイコンを非表示にする */
input[type="date"]::-webkit-calendar-picker-indicator {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0;
  background: transparent;
  cursor: pointer;
}

input[type="date"] {
  position: relative;
  cursor: pointer;
  padding-right: 35px;
}

/* 新しいカレンダーアイコンを追加 */
input[type="date"]::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background: url(../img/svg/icon_calender.svg);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  pointer-events: none;
}

.form-select,
.form-control {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #ccc;
  background: #fff;
  padding-block: 10px;
  padding-inline: 15px;
}

/* form-controlのplaceholderの色を変更 */
.form-control::placeholder {
  color: #b2b2b2;
}

.separator {
  padding-top: 40px;
  border-top: 1px solid #ccc;
}

/* 合計金額 */
.page-create__form-amount {
  font-size: 0.875rem;
  font-weight: 500;
  text-align: right;
  padding-bottom: 6px;
  border-bottom: 1px solid #666;
}

/* 合計金額、金額のみ */
.total_amount {
  font-family: "Roboto", serif;
  font-size: 1.25rem;
  font-weight: 500;
}

.submit-btn-wrap {
  width: min(100%, 300px);
  margin-inline: auto;
}

/* ************* */
/* client/metaads/index.php */
/* ************* */
.bread-crumb {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  flex-wrap: wrap;

  a,
  p {
    display: flex;
    align-items: center;
    gap: 3px;
    transition: all 0.3s ease;

    img {
      width: 22px;
      height: 22px;
      object-fit: contain;
    }
  }

  @media (any-hover: hover) {
    a:hover {
      opacity: 0.6;
    }
  }
}

.page-tool__container {
  @media (width >= 768px) {
    display: grid;
    grid-template-columns: min(20%, 265px) 1fr;
    width: 100%;
    min-height: 100dvh;
  }
}

.page-tool__container-single {
  width: 100%;
  min-height: 100dvh;
}

.page-tool {
  width: calc(100% - 20px * 2);
  min-width: 100%;
  min-height: 100dvh;
  overflow-x: auto;
  margin-inline: auto;
  padding-inline: 20px;
  padding-block: 43px 109px;
  background: #f9f9f9;

  @media (width >= 768px) {
    padding-inline: 32px;
  }
}

.page-tool--youtube {
  width: 100%;
  min-height: 100dvh;
  overflow-x: auto;
  margin-inline: auto;
  padding-block: 21px 30px;
  background: #f9f9f9;

  @media (width >= 768px) {
    padding-block: 43px;
  }
}

.page-tool__inner--youtube {
  width: calc(100% - 20px * 2);
  margin-inline: auto;
  background: #fff;
  padding-block: 30px;
  padding-inline: 10px;

  @media (width >= 768px) {
    width: calc(100% - 30px * 2);
    padding-block: 40px;
    padding-inline: 30px;
    border-radius: 10px;
  }
}

.page-tool__account {
  width: calc(100% - 20px * 2);
  margin-inline: auto;
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  padding: 10px 15px;
  border-radius: 5px;
  background: #e9f6f3;
  gap: 10px;
  text-align: center;
  transition: all 0.3s ease;

  @media (width >= 768px) {
    width: calc(100% - 50px * 2);
    gap: 15px;
  }

  img {
    width: 18px;
    height: 18px;
    object-fit: contain;
  }

  span {
    font-size: 1rem;
  }
}

.page-tool__account--attribution {
  width: min(calc(100% - 20px * 2), 400px);
  margin-inline: auto;
}

.page-tool__sec-title {
  font-size: 1.125rem;
  font-weight: 600;
}

.page-tool__sec-title--top {
  font-size: 1.125rem;
  font-weight: 600;
  background: #e9f6f3;
  padding-block: 5px;
  padding-inline: 20px;
}

.page-tool__sec-description {
  display: inline flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 10px;
  border: 1px solid #2da4a7;

  img {
    width: 18px;
    height: 18px;
    object-fit: contain;
  }
}

/* 計測タグ */
.page-tool__script-string {
  background: #e9f6f3;
  padding-block: 5px;
  padding-inline: 20px;
  border-radius: 5px;
  white-space: pre-wrap;
  word-wrap: break-word;
}

/* attribution */
.cvTable {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 15px;

  @media (width >= 768px) {
    flex-direction: row;
  }
}

/* カテゴリー設定 */
.cvTable--cate {
  width: 100%;
  display: grid;
  gap: 15px;

  @media (width >= 768px) {
    grid-template-columns: repeat(3, 1fr);
  }
}

.page-tool__attribution-inner {
  width: calc(100% - 10px * 2);
  margin-inline: auto;

  @media (width >= 768px) {
    width: calc(100% - 20px * 2);
  }
}

.cvTable__label {
  font-size: 0.875rem;
  font-weight: 500;
}

.cvTable-list {
  display: none;
  width: 100%;

  @media (width >= 768px) {
    display: table;
  }

  table,
  th,
  td {
    border-collapse: collapse;
    padding: 9px;
  }

  tr:last-child td {
    border-bottom: 1px solid #ccc;
  }

  th {
    /* border: 1px solid #ccc; */
    text-align: center;
    background: #e7e7e7;
    color: #333;
    font-size: 0.75rem;
    font-weight: 500;
  }

  th:not(:last-child) {
    border-right: 0.5px solid #ccc;
  }

  td {
    color: #333;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 13px 15px;
    border-bottom: 0.5px solid #ccc;
  }

  td:not(:last-child) {
    border-right: 0.5px solid #ccc;
  }

  /* 編集・削除 */
  td:last-child {
    width: 130px;
  }
}

.cvTable-list__cost {
  width: 120px;
}

/* attribution-topの表 */
.cvTable-list--top-wrap {
  width: 100%;
  overflow-x: auto;
  max-height: 500px; /* スクロール可能な高さを設定 */
  overflow-y: auto; /* 縦方向のスクロールを有効化 */

  @media (width >= 768px) {
    max-height: 268px;
  }
}

.cvTable-list--top {
  display: none;
  width: 100%;
  table-layout: fixed;
  position: relative; /* ヘッダー固定のために相対位置を設定 */

  @media (width >= 768px) {
    display: table;
  }

  table,
  th,
  td {
    border-collapse: collapse;
    padding: 9px;
  }

  /* ヘッダー行を固定 */
  thead {
    position: sticky;
    top: 0;
    z-index: 1;
  }

  th {
    text-align: center;
    background: #e7e7e7;
    color: #333;
    font-size: 0.75rem;
    font-weight: 500;
    border-bottom: 0.5px solid #ccc;
  }

  /* テーブル本体のスクロール設定 */
  tbody {
    overflow-y: auto;
  }

  th:first-child {
    width: 245px;
    max-width: 245px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  th:nth-child(2) {
    width: 320px;
  }

  th:not(:first-child):not(:nth-child(2)) {
    width: 120px;
  }

  th:not(:last-child) {
    border-right: 1px solid #ccc;
  }

  tr {
    border-bottom: 0.5px solid #ccc;
  }

  td {
    color: #333;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 13px 15px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  td:first-child {
    background: #f9f9f9;
    width: 260px;
    max-width: 260px;
    overflow: hidden;
    white-space: nowrap;
  }

  td:nth-child(2) {
    width: 320px;
  }

  td:not(:first-child):not(:nth-child(2)) {
    width: 150px;
  }

  td:not(:last-child) {
    border-right: 0.5px solid #ccc;
  }

  /* コスト */
  td:nth-child(3) {
    font-family: Roboto;
    color: #333;
    font-size: 1rem;
    text-align: right;
    font-weight: 500;
  }

  /* 発生件数 */
  td:nth-child(4) {
    font-family: Roboto;
    color: #2da4a7;
    font-size: 1rem;
    text-align: center;
    font-weight: 500;
  }

  /* 合計値 */
  td:nth-child(5) {
    font-family: Roboto;
    color: #2da4a7;
    font-size: 1rem;
    text-align: right;
    font-weight: 500;
  }

  .cvTable-list--top__cost-unit {
    color: #333;
    text-align: right;
    font-family: "Noto Sans JP";
    font-size: 0.75rem;
    font-weight: 700;
  }

  .cvTable-list--top__total-unit--cost {
    color: #2da4a7;
    text-align: right;
    font-family: "Noto Sans JP";
    font-size: 0.75rem;
    font-weight: 700;
  }
}

.cvTable-list--top--attribution-wrap {
  width: 100%;
  overflow-x: auto;
}

.scroll-y {
  width: 100%;
  max-height: 513px;
  overflow-y: auto;
}

.cvTable-list-sp__item-content-count {
  color: #2da4a7;
  text-align: right;
  font-family: Roboto;
  font-size: 1rem;
  font-weight: 500;
}

.cvTable-list-sp__item-content-count-unit {
  color: #2da4a7;
  text-align: right;
  font-family: "Noto Sans JP";
  font-size: 0.75rem;
  font-weight: 700;
}

.cvTable-list-sp__item-content-total {
  color: #2da4a7;
  text-align: right;
  font-family: Roboto;
  font-size: 1rem;
  font-weight: 500;
}

.cvTable-list-sp__item-content-total-unit {
  color: #2da4a7;
  text-align: right;
  font-family: "Noto Sans JP";
  font-size: 0.75rem;
  font-weight: 700;
}

/* attributionの表 */
.cvTable-list--top--attribution {
  width: 100%;
  table-layout: fixed;

  table,
  th,
  td {
    border-collapse: collapse;
    padding: 9px;
    text-align: center;
  }

  th {
    text-align: center;
    background: #e7e7e7;
    color: #333;
    font-size: 0.75rem;
    font-weight: 500;
  }

  th:first-child {
    width: 260px;
    max-width: 260px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  th:not(:first-child) {
    width: 130px;
  }

  th:not(:last-child) {
    border-right: 1px solid #ccc;
  }

  tr {
    border-bottom: 0.5px solid #ccc;
  }

  td {
    color: #333;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 13px 15px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  td:first-child {
    background: #f9f9f9;
    width: 260px;
    max-width: 260px;
    overflow: hidden;
    white-space: nowrap;
  }

  td:not(:first-child) {
    width: 180px;
  }

  td:not(:last-child) {
    border-right: 0.5px solid #ccc;
  }

  /* コンバージョンのセル */
  .conv-cell {
    background: rgba(230, 96, 62, 0.2);
    color: #e6603e;
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;

    a {
      display: block;
      color: #333;
    }
  }
}

/* 貢献度 */
.cvTable-list--contribution-wrap {
  width: 100%;
  margin-inline: auto;

  @media (width >= 768px) {
    margin-inline: 0;
  }
}

.cvTable-list--contribution {
  width: 100%;
  table-layout: fixed;

  table,
  th,
  td {
    border-collapse: collapse;
    padding: 9px;
    text-align: center;
  }

  th {
    color: #333;
    font-size: 0.75rem;
    font-weight: 500;
    background: #e7e7e7;
  }

  th:first-child {
    border-right: 1px solid #ccc;
  }

  td {
    color: #333;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 12px;
    border-bottom: 1px solid #ccc;
  }

  /* 流入元 */
  td:first-child {
    border-right: 1px solid #ccc;
  }

  /* 貢献度(コスト) */
  td:nth-child(2) {
    font-family: Roboto;
    color: #333;
    font-size: 1rem;
    text-align: right;
    font-weight: 500;
  }
}

.chart-text {
  display: grid;
  grid-template-columns: 14px auto;
  align-items: center;
  gap: 8px;

  /* 1行で折り返さずはみ出すテキストは切り取る */
  span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* Chart.jsのグラフの色 */
.color-box {
  display: inline-block;
  width: 14px;
  height: 14px;
  background: transparent; /* Chart.jsのグラフの色 */
}

.cv-contribution__wrap {
  display: grid;
  width: min(100%, 890px);
  margin-inline: auto;

  @media (width >= 768px) {
    grid-template-columns: 1fr auto;
    gap: 5%;
  }
}

.cv-contribution__content {
  width: 100%;

  @media (width >= 768px) {
    margin-top: 2em;
    width: min(100%, 445px);
  }
}

.cv-contribution__chart {
  width: 100%;
}

.cvTable-list__yen {
  color: #333;
  font-size: 0.75rem;
  font-weight: 700;
}

.cvTable-list__flex {
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 5px;

  @media (width >= 768px) {
    justify-content: center;
  }
}

/* spのみ */
.cvTable-list-sp__item-title {
  position: sticky;
  top: 0px;
  z-index: 1;
  width: 100%;
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
  background: #e7e7e7;
  padding-block: 4px;
  border-bottom: 0.5px solid #ccc;

  span {
    margin-top: 8px;
    display: block;
  }
}

.cvTable-list-sp__item-content {
  padding-block: 9px;
  padding-inline: 15px;
  border-bottom: 0.5px solid #ccc;
}

.cvTable-list-sp__item-content:last-child {
  border-bottom: 1px solid #b2b2b2;
}

.cvTable-list-sp__item-content-title {
  font-size: 0.875rem;
  font-weight: 600;
}

.page-tool__property {
  color: #2da4a7;
  text-align: center;
  font-family: "Noto Sans JP";
  font-size: 1rem;
  font-weight: 600;
}

.page-tool__list--grid {
  display: grid;
  gap: 5px;

  @media screen and (min-width: 768px) {
    grid-template-columns: repeat(2, 1fr);
  }
}

.grid {
  display: grid;
  place-content: center;
}

.page-tool__inner {
  width: min(100%, 623px);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 15px;
}

.page-tool__main {
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 30px;
  border: 1px solid #ccc;
  background: #fff;

  @media (width >= 768px) {
    padding: 40px 75px;
  }
}

.page-tool__title {
  text-align: center;
  font-size: 1.2rem;
  font-weight: 600;
}

.page-tool__list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.page-tool__item {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  border-radius: 5px;
  border: 1px solid #ccc;
  background: #fff;
  gap: 15px;
  transition: all 0.3s ease;

  @media (width >= 768px) {
    gap: 15px;
  }

  img {
    width: 18px;
    height: 18px;
    object-fit: contain;
  }

  a,
  p {
    font-size: 1rem;
  }
}

@media (any-hover: hover) {
  .page-tool__item:hover {
    background: #e9f6f3;
  }
}
.page-tool__bottom {
  margin-top: 40px;
  border-radius: 10px;
  background: #fff;
  padding: 25px;

  @media (width >= 768px) {
    padding: 40px;
  }
}

/* Instagramページ専用 */
.page-tool__bottom--ig {
  width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
  position: relative;
  left: 0;
  padding: 20px;
  border-radius: 0;

  @media (width >= 768px) {
    width: 100%;
    padding: 35px 45px;
    border-radius: 10px;
  }
}

.tool__btn-wrap {
  width: min(100%, 250px);
  margin-inline: auto;
}

/* tool-sidebar */
.tool-sidebar {
  display: none;

  @media (width >= 768px) {
    position: fixed;
    top: 60px; /* header分 */
    display: block;
    width: min(20%, 265px);
    height: 100%;
    padding-block: 34px;
    background: #f9f9f9;
    overflow-y: auto;
  }
}

.tool-sidebar__list {
  width: 100%;
  height: inherit;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-inline: 25px;
  border-right: 1px solid #ccc;
}

.tool-sidebar__item {
  padding: 4px 8px;
  border-radius: 5px;
  transition: all 0.3s ease;
}

@media (any-hover: hover) {
  .tool-sidebar__item:hover {
    background: #ececec;
  }
}

.tool-sidebar__link {
  display: flex;
  align-items: center;
  gap: 10px;

  img {
    width: 22px;
    height: 22px;
    object-fit: contain;
  }

  span {
    font-size: 0.875rem;
  }
}

.tool__top {
  margin-top: 32px;
  padding-block: 30px;
  padding-inline: 20px;
  border-radius: 10px;
  background: #f8fdfc;
  border: 1px solid #2da4a7;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 15px;

  @media (width >= 768px) {
    margin-top: 50px;
    display: grid;
    grid-template-columns: auto 1fr;
    padding-block: 50px;
    padding-inline: 60px;
    gap: 60px;
    align-items: center;
  }
}

.scores__wrap {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  justify-content: center;
  align-items: center;

  @media (width >= 768px) {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* 運用判定 */
/* 円グラフ */
.score,
.circle-graph {
  width: 100%;
  height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  gap: 25px;
  background: #fff;
  border-radius: 20px;
  padding: 16px 0;

  @media (width >= 768px) {
    height: 200px;
    padding: 16px 40px;
  }
}

/* A ~ Eの判定 */
.score__score {
  font-size: 6rem;
  font-weight: bold;
  line-height: 1;

  @media (width >= 768px) {
    font-size: 8rem;
  }
}

.rank-a {
  color: #2dcfa9;
}
.rank-b {
  color: #8ed62c;
}
.rank-c {
  color: #ffd665;
}
.rank-d {
  color: #ff7e65;
}
.rank-e {
  color: #ff2121;
}

.pie-chart-1 {
  position: relative;
  width: 90px;
  height: 90px;
  margin-inline: auto;
  border-radius: 50%;
  background-image: conic-gradient(rgba(45, 164, 167, 0.3) 0%, #f2f2f2 0% 100%);
  transition: background-image 0.3s ease;

  @media (width >= 768px) {
    width: 120px;
    height: 120px;
  }

  /* パーセンテージ数字 */
  span {
    position: absolute;
    content: "";
    top: 50%;
    left: 50%;
    font-size: 2.1875rem;
    text-shadow: 2px 0 0 #fff, -2px 0 0 #fff, 0 2px 0 #fff, 0 -2px 0 #fff,
      1.4px 1.4px 0 #fff, -1.4px -1.4px 0 #fff, 1.4px -1.4px 0 #fff,
      -1.4px 1.4px 0 #fff;
    font-family: Roboto;
    font-weight: 500;
    transform: translate(-50%, -50%);

    /* % */
    small {
      font-size: 1.25rem;
      font-weight: 700;
    }
  }
}

/* グラフのコンテナ */
.chart-container {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch; /* iOSのスムーズスクロール */
}

.page-tool__btn-wrap {
  width: min(100%, 250px);
  margin-inline: auto;
  text-align: center;

  @media (width >= 768px) {
    text-align: right;
    margin-inline: auto 0;
  }
}

.page-tool__btn-wrap--attribution {
  width: min(100%, 250px);
  margin-inline: auto;

  @media (width >= 768px) {
    margin-inline: auto 0;
  }
}

/* 改善案テーブル */
.improvement__table {
  table {
    width: 100%;
    table-layout: fixed;
    word-break: break-all;
    word-wrap: break-all;
  }

  tbody {
    td {
      border: none;
    }
  }
}

.filter-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;

  @media (width >= 768px) {
    flex-direction: row;
  }
}

.filter-row--grid {
  display: grid;
  align-items: center;
  gap: 12px;

  @media (width >= 768px) {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}

.filter-row-youtube {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;

  @media (width >= 768px) {
    width: min(100%, 700px);
    flex-direction: row;
  }
}

.mt-10 {
  margin-top: 10px;
}

.mt-2 {
  margin-top: 20px;
}

.mt-4 {
  margin-top: 40px;
}

.mb-1 {
  margin-bottom: 10px;
}

.mb-1em {
  margin-bottom: 1em;
}

.col-md-2 {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

/* トラフィック・売上テーブル */
.traffic__table {
  margin-top: 26px;
  overflow-x: auto;

  table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
  }

  thead {
    background: #e7e7e7;
  }

  th {
    padding: 10px 13px;
    color: #333;
    font-family: "Roboto";
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid #ccc;
  }

  td {
    padding: 15px;
    color: #333;
    font-size: 1rem;
    font-weight: 400;
    border: 1px solid #e7e7e7;
  }

  a {
    word-wrap: break-word;
  }

  tbody tr td:first-child {
    background: #f9f9f9;
  }

  .left {
    width: 300px;
    line-height: 2;
  }

  .right {
    width: 100px;
    text-align: center;
  }
}

/* LINEads専用テーブル */
/* サイト健康診断 */
.traffic__table--lineads,
.traffic__table--sitecheck {
  th:first-child {
    width: 200px;
  }

  th:not(:first-child) {
    width: 100px;
  }
}

/* ************* */
/* director/tasks/list.php */
/* ************* */
.page-tasks {
  padding-block: 40px;
}

.page-tasks__inner {
  width: min(calc(100% - 20px * 2), 960px);
  margin-inline: auto;
}

.alert-dismissible {
  margin-top: 1rem;
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5em;
  color: #0a3622;
  background: #d1e7dd;
  border: 1px solid #a3cfbb;
  border-radius: 0.375rem;
}

.btn-close {
  width: 1em;
  height: 1em;
  /* padding: 0.25em 0.25em; */
  color: #333;
  background: url(../img/svg/icon_close.svg);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  border: 0;
  border-radius: 0.375rem;
  opacity: 0.5;
}

.alert-dismissible .btn-close {
  /* position: absolute; */
  /* top: 0; */
  /* right: 0; */
  z-index: 2;
  padding: 1.25rem 1rem;
  cursor: pointer;
}

.page-tasks__head {
  display: flex;
  flex-direction: column;

  @media (width >= 768px) {
    margin-top: 43px;
    flex-direction: row-reverse;
    align-items: center;
  }
}

/* 凡例 */
.page-tasks__example {
  margin-top: 43px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 23px;

  @media (width >= 768px) {
    margin-top: 0;
    justify-content: end;
  }
}

.page-tasks__example-item {
  display: flex;
  gap: 9px;
  align-items: center;
}

.page-tasks__example-color {
  width: 57px;
  height: 20px;
  background: #ffe9e9;
}

.page-tasks__example-icon {
  margin-top: -0.4em;
  width: 14px;

  img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
}

.page-tasks__example-text {
  color: #333;
  font-size: 0.75rem;
  font-weight: 500;
}

.page-tasks_btn-wrap {
  margin-top: 1rem;
  width: min(100%, 300px);
  margin-inline: auto;

  @media (width >= 768px) {
    margin-top: 0;
  }
}

/* 絞り込み機能 */
.filter-section {
  margin: 20px 0;
  padding: 20px;
  background: #f5f5f5;
  border-radius: 8px;
}

.filter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-end;
}

.filter-group {
  flex: 1;
  min-width: 200px;
}

.filter-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: #333;
}

.filter-group select {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
}

.filter-group input {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
}

.filter-button {
  padding: 8px 20px;
  background: #007bff;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
}

.filter-button:hover {
  background: #0056b3;
}

.reset-button {
  padding: 8px 20px;
  background: #6c757d;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.reset-button:hover {
  background: #545b62;
}

/* タスクテーブル */
.task-total-amount {
  width: fit-content;
  margin-left: auto;
  text-align: right;
  padding: 10px 15px;
  border-radius: 8px;
  background: #e9f6f3;
}

.task-total-amount__text {
  font-size: 1rem;
  font-weight: 600;
}

.task-total-amount__price {
  font-family: roboto;
  font-size: 1.5rem;
  font-weight: 600;

  small {
    font-size: 1rem;
  }
}

/* タスクテーブル */
.task__table {
  margin-top: 13px;
  width: 100%;
  min-width: 100%;
  overflow-x: auto;

  table {
    width: 100%;
    min-width: 100%;
  }

  thead {
    width: 100%;
    min-width: 100%;
    color: #2da4a7;
    font-size: 0.75rem;
    font-weight: 600;
    background: #caf0f1;
  }

  /* 検収完了 */
  tr.checked {
    td {
      opacity: 0.5;
    }

    .client__name {
      position: relative;
      padding-left: 18px;
    }

    .client__name::before {
      position: absolute;
      content: "";
      top: 50%;
      left: 0;
      width: 14px;
      height: 14px;
      transform: translate(-50%, -50%);
      background: url(../img/svg/icon_check.svg);
      background-position: center;
      background-size: cover;
      background-repeat: no-repeat;
    }
  }

  /* 期限超過 */
  tr.alert {
    td {
      background: rgba(255, 33, 33, 0.1);
    }
  }

  th {
    padding: 3px 8px;
    border: 1px solid #cccccc;
  }

  td {
    padding: 10px 13px;
    border: 1px solid #cccccc;
  }

  td:nth-child(4) {
    text-align: right;
  }

  td:last-child {
    padding: 5px;
  }
}

.hidden {
  display: none;
  visibility: hidden;
}

/* 編集ボタン */
.edit__btn {
  display: block;
  width: 100%;
  color: #2da4a7;
  font-size: 0.875rem;
  text-align: center;
  padding: 0.1em 0.3em;
  border-radius: 5px;
  border: 1px solid #cccccc;
  text-wrap: nowrap;
  transition: all 0.3s ease;
}

/* 削除ボタン */
.edit__btn--delete {
  color: #ff0000;
}

.edit__btn + .edit__btn--delete {
  margin-top: 0.3em;
}

@media (any-hover: hover) {
  .edit__btn:hover {
    opacity: 0.6;
  }
}

/* creater/tasks/list.php */
.task__table--creater {
  tbody tr {
    transition: all 0.3s ease;
  }
  tbody tr:hover {
    background: #ccc;
  }
}

/* ************* */
/* director/tasks/totalization.php */
/* ************* */
.filterForm {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;

  @media (width >= 768px) {
    margin-top: 63px;
  }
}

.page-totalization__item-wrap {
  width: 100%;
  display: flex;
  flex-direction: column;

  @media (width >= 768px) {
    flex-direction: row;
    gap: 40px;
  }
}

.page-totalization__item {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.separator-2 {
  display: none;

  @media (width >= 768px) {
    display: block;
    margin-top: 17px;
    color: #e7e7e7;
  }
}

.total-table {
  margin-top: 36px;

  table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 10px;
  }

  thead {
    background: #e8e8e8;
  }

  th {
    padding-block: 7.5px;
    color: #333;
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
    border-radius: 0 10px 0 0;
    border-bottom: 1px solid #ccc;
  }

  th:first-child {
    border-radius: 10px 0 0 0;
    border-inline-end: 1px solid #fff;
  }

  td {
    padding: 12.5px 15px;
    border-bottom: 1px solid #ccc;
  }
}

/* ************* */
/* director/reward.php */
/* ************* */
.page-reward__text {
  margin-top: 16px;
}

.page-reward__current-month-reward {
  font-size: 2.5em;
  font-weight: bold;
  color: #333;

  span {
    font-size: 1.6rem;
  }
}

.page-reward__title {
  margin-top: 20px;
  font-size: 1.2em;
  font-weight: bold;
}

.page-reward__table {
  width: 100%;
  overflow-x: auto;
}

.page-reward__table table {
  margin-top: 10px;
  width: 100%;
}

.page-reward__table th {
  background-color: #f5f5f5;
  padding: 15px;
  text-align: left;
}

/* 営業画面のみ */
.page-reward__table--sales th {
  min-width: 120px;
}

.page-reward__table td {
  padding: 15px;
  border-bottom: 1px solid #eee;

  p {
    display: inline flex;
    flex-direction: column;
  }

  /* 営業管理のみ */
  span {
    display: inline-block;
    font-size: 0.875rem;
    color: #999;
  }
}

.page-reward__wrapper + .page-reward__wrapper {
  margin-top: 100px;
}

.mt-md {
  margin-top: 40px;
}

/* ************* */
/* client/payments.php */
/* ************* */
.page-payments__wrap {
  @media (width >= 768px) {
    width: 100%;
    min-height: 100dvh;
    background: #f8fdfc;
    padding-block: 60px;
  }
}

.page-payments__outer {
  width: 100%;
  margin-inline: auto;
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: calc(100dvh - 53px);

  @media (width >= 768px) {
    width: min(calc(100% - 20px * 2), 663px);
    display: block;
    min-height: 0;
  }
}

/* 拡張機能 */
.page-payments__outer--extensions {
  width: min(calc(100% - 20px * 2), 1200px);
}

.page-payments {
  position: relative;
  padding-block: 40px;
  min-height: calc(100dvh - 51px);

  @media (width >= 768px) {
    min-height: 0;
    width: min(calc(100% - 20px * 2), 623px);
    margin-inline: auto;
    border: 1px solid #ccc;
    background: #fff;
  }
}

.page-payments--purchase {
  position: relative;
  padding-block: 40px;

  @media (width >= 768px) {
    min-height: 0;
    width: min(calc(100% - 20px * 2), 623px);
    margin-inline: auto;
    border: 1px solid #ccc;
    background: #fff;
  }
}

.page-payments__inner {
  width: min(calc(100% - 20px * 2), 473px);
  margin-inline: auto;
}

/* 拡張機能 */
.page-payments__inner--extensions {
  width: min(calc(100% - 20px * 2), 1200px);
}

.page-payments__container {
  margin-top: 30px;
  width: 100%;
  margin-inline: auto;

  @media (width >= 768px) {
    margin-top: 40px;
  }
}

.page-payments__balance {
  @media (width >= 768px) {
    display: grid;
    grid-template-columns: 60% 1fr;
    align-items: center;
    gap: 20px;
  }
}

.page-payments__balance-purchase {
  margin-top: 30px;
  text-align: center;

  @media (width >= 768px) {
    margin-top: 40px;
  }
}

.points-balance {
  width: 100%;
  height: 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 17px 23px;
  border-radius: 20px;
  background: #f6f6f6;

  img {
    width: 30px;
    height: 30px;
    object-fit: contain;
  }
}

.points-balance__flex {
  display: flex;
  align-items: center;
  gap: 7px;
}

.points-balance__flex-end {
  display: flex;
  align-items: flex-end;
  gap: 7px;
}

.points-balance__text {
  color: #2da4a7;
  font-size: 0.875rem;
  font-weight: 800;
}

.points-balance__num {
  color: #333;
  font-family: Roboto;
  font-size: 1.875rem;
  font-weight: 500;
}

.points-balance__c {
  color: #333;
  font-family: Roboto;
  font-size: 1.4375rem;
  font-weight: 700;
}

.page-payments__btn {
  width: 100%;
  height: 50px;
  color: #fff;
  font-weight: 700;
  padding: 17px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-wrap: nowrap;
  border-radius: 20px;
  background: #2da4a7;
  touch-action: manipulation;
  user-select: none;
  transition: all 0.3s ease;

  img {
    width: 27px;
    height: 27px;
    object-fit: contain;
  }
}

/* スマホ専用 */
.page-payments__btn--sp {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  border-radius: 0;
  justify-content: center;
  height: 53px;
}

@media (any-hover: hover) {
  .page-payments__btn:hover {
    opacity: 0.6;
  }
}

.page-payments__monthly-points {
  margin-top: 20px;
  text-align: center;
}

.page-payments__monthly-points-title {
  text-align: left;
  font-size: 0.875rem;
  font-weight: 700;
}

.page-payments__table {
  margin-top: 10px;
  width: 100%;
  margin-inline: auto;
  border-collapse: collapse;
}

.page-payments__table td {
  padding: 10px;
  text-align: left;
  border-bottom: 1px solid #ccc;
  vertical-align: initial;
}

.page-payments__table tr:first-child td {
  border-top: 1px solid #ccc;
}

.page-payments__table .page-payments__date {
  color: #999;
  font-family: Roboto;
  font-size: 0.75rem;
  font-weight: 500;
  width: 30%;
}

.page-payments__table .page-payments__text {
  color: #333;
  font-family: "Noto Sans JP";
  font-size: 0.875rem;
}

/* チャージ */
.page-payments__table tr.is-charge .page-payments__text,
.page-payments__table tr.is-charge .page-payments__point {
  color: #2da4a7;
}

.page-payments__table .page-payments__point {
  color: #333;
  text-align: right;
  font-family: Roboto;
  font-size: 1.125rem;

  span {
    font-size: 0.875rem;
  }
}

.page-payments__total-use {
  margin-top: 30px;
  width: min(100%, 210px);
  margin-inline: auto;
  display: flex;
  justify-content: center;
  gap: 5%;
  color: #333;
  font-family: "Noto Sans JP";
  font-size: 1rem;
  font-weight: 700;
  padding-bottom: 5px;
  border-bottom: 1px solid #333;

  @media (width >= 768px) {
    margin-top: 40px;
  }

  .use__points {
    color: #333;
    text-align: right;
    font-family: Roboto;
    font-size: 1.375rem;
    font-weight: 500;

    span {
      font-size: 1rem;
    }
  }
}

/* ************* */
/* client/payments/purchase.php */
/* ************* */
.page-payments__lists {
  width: 100%;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;

  @media (width >= 768px) {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

.page-payments__item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;

  a {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5%;
    border-radius: 20px;
    background: #2da4a7;
    color: #fff;
    font-family: "Noto Sans JP";
    font-size: 0.8125rem;
    font-weight: 700;
    padding: 20px 0;
    transition: all 0.3s ease;

    @media (width >= 768px) {
      flex-direction: column;
      gap: 15px;
    }
  }
}

@media (any-hover: hover) {
  .page-payments__item a:hover {
    opacity: 0.5;
  }
}

.checkout-link--coin {
  color: #fff;
  font-family: Roboto;
  font-size: 2.1875rem;
  font-weight: 500;
}

.checkout-link--price {
  color: #fff;
  font-family: "Noto Sans JP";
  font-size: 1rem;
  font-weight: 700;
  word-spacing: 0.5em;

  small {
    padding: 0 0.2em;
    font-size: 0.875rem;
  }
}

.points-balance-purchase {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5%;
}

.points-balance-purchase--flex {
  display: flex;
  align-items: center;
  gap: 5px;

  img {
    width: 18px;
    height: 18px;
    object-fit: contain;
  }
}

.points-balance-purchase--points {
  color: #333;
  text-align: right;
  font-family: Roboto;
  font-size: 1.375rem;
}

.back-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  font-weight: 500;
  background: #f9f9f9;
  padding: 15px 20px;

  @media (width >= 768px) {
    margin-top: 20px;
    margin-left: 20px;
    background: transparent;
    padding: 0;
  }

  img {
    width: 8px;
    height: 13.717px;
    aspect-ratio: 8/13.72;
    object-fit: contain;
  }
}

.back-btn__wrap {
  @media (width >= 768px) {
  }
}

.back-btn__wrap-cancel {
  margin-top: 40px;
}

.back-btn__wrap-success {
  margin-top: 40px;
}

.success-message,
.cancel-message {
  text-align: center;
}

/* ************* */
/* client/mypage/index.php */
/* ************* */
.page-mypage {
  padding-block: 40px 80px;

  @media (min-width: 768px) {
    padding-block: 40px;
  }
}

.page-mypage__inner {
  width: min(calc(100% - 31px * 2), 800px);
  margin-inline: auto;
}

.page-mypage__container {
  margin-top: 30px;
  width: min(calc(100% - 31px * 2), 800px);
  margin-inline: auto;
}

.page-mypage__title {
  font-size: 1.5rem;
  font-weight: bold;
}

.page-mypage__data-list {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 16px;

  @media (width >= 768px) {
    grid-template-columns: min(40%, 225px) 1fr;
    row-gap: 3px;
  }

  .page-mypage__data-list-title {
    font-weight: 600;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 4px;
  }

  .page-mypage__data-list-item {
    padding: 10px;

    ul {
      display: flex;
      flex-direction: column;
      gap: 8px;
    }

    a {
      color: #0066cc;
      transition: all 0.3s ease;

      &:hover {
        opacity: 0.6;
      }
    }
  }
}

/* edit.php */
.page-mypage__data-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;

  @media (width >= 768px) {
    row-gap: 3px;
  }
}

.form__group {
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 3px;

  @media (width >= 768px) {
    grid-template-columns: min(40%, 225px) 1fr;
    row-gap: 3px;
    column-gap: 3px;
  }
}

.page-mypage__data-list-input {
  width: 100%;
  border-radius: 4px;
  border: 1px solid #ccc;
  background: #fff;
  padding: 10px;
}

/* メッセージ表示 */
.page-mypage__message {
  margin-bottom: 20px;
  padding: 10px 15px;
  border-radius: 4px;
  font-size: 0.875rem;
}

.page-mypage__message--success {
  color: #0a3622;
  background: #d1e7dd;
  border: 1px solid #a3cfbb;
}

.page-mypage__message--error {
  color: #842029;
  background: #f8d7da;
  border: 1px solid #f5c2c7;
}

.page-mypage__message--info {
  color: #084298;
  background: #cfe2ff;
  border: 1px solid #b6d4fe;
}

.page-mypage__flex {
  display: flex;
  flex-direction: column;
  gap: 1em;
}

.page-mypage__btn-wrap {
  margin-top: 1rem;
  width: min(100%, 300px);
  margin-inline: auto;
}

.form__btn-wrap {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sns-entry,
.ad-entry {
  display: grid;
  grid-template-columns: 27% 1fr 10%;
  gap: 4px;
}

.sns-entry + .sns-entry {
  margin-top: 16px;
}

.ad-entry + .ad-entry {
  margin-top: 16px;
}

/* gridの右寄せ */
.grid-button {
  @media (width >= 768px) {
    grid-column: 2;
    justify-self: end;
  }
}

.register__img {
  width: 200px;
  text-align: center;
  margin-inline: auto;

  img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
}

/* ************* */
/* improvements.php */
/* ************* */
.improvement-section {
  margin-bottom: 1em;
}

.improvement-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5em;
}

.improvement-label {
  display: flex;
  align-items: center;
}

.toggle-btn {
  color: #2da4a7;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0 10px;
  font-size: 1em;
  display: flex;
  align-items: center;
}

.toggle-icon {
  display: inline-block;
  width: 17px;
  height: 16px;
  margin-left: 0.3em;
  background: url(../img/svg/icon_toggle.svg) no-repeat center;
  background-size: contain;
  transition: transform 0.3s ease;
}

.toggle-icon.open {
  transform: rotate(180deg);
}

.improvement-border {
  border-bottom: 1px dashed #2da4a7;
  margin-top: 1em;
}

/* ************* */
/* improvements.php */
/* ************* */
.improvement-section {
  margin-bottom: 1em;
}

.improvement-header {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  margin-bottom: 0.5em;
  gap: 5px;
}

.improvement-label {
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.toggle-btn {
  color: #2da4a7;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0 10px;
  font-size: 0.875rem;

  @media (width >= 768px) {
    font-size: 1rem;
  }
}

.toggle-icon {
  font-size: 0.8em;
  margin-left: 0.3em;
}

.improvement-border {
  border-bottom: 1px dashed #2da4a7;
  margin-top: 1em;
}

.improvement__table-title {
  color: #2da4a7;
  text-align: center;
  font-size: 1.125rem;
  font-weight: 600;
}

.improvement__text-title {
  color: #2da4a7;
  font-size: 1rem;
  font-weight: 600;

  @media (width >= 768px) {
    font-size: 1rem;
  }
}

.improvement-content ul {
  margin: 30px 0;
}

.improvement-content ul li {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: #2da4a7;
}

.improvement-content ul li a {
  color: gray;
}

.improvement-content b {
  font-weight: inherit;
}

.improvement-content {
  transition: all 0.3s ease;
  line-height: 2;
}

/* gpt出力アドバイス */
.improvement-content__advice {
  h2,
  h3,
  h4,
  h5,
  h6 {
    margin-block-start: 1em;
    color: #2da4a7;
    font-size: 1rem !important;
    font-weight: 600 !important;
  }

  h2 {
    margin-block-start: 1em;
  }

  h3 {
    margin-block-start: 0.8em;
  }

  h4 {
    margin-block-start: 0.6em;
  }

  h5 {
    margin-block-start: 0.5em;
  }

  h6 {
    margin-block-start: 0.4em;
  }

  ul {
    margin-block-start: 1em;
    margin: 0 !important;
  }

  li {
    color: var(--black) !important;
    overflow: visible !important;
    white-space: normal !important;
    text-overflow: normal !important;
  }

  p {
    font-size: 1rem;
    margin: 0 !important;
  }
}

/* ランク */
.rank-a {
  color: #2dcfa9;
}
.rank-b {
  color: #8ed62c;
}
.rank-c {
  color: #ffd665;
}
.rank-d {
  color: #ff7e65;
}
.rank-e {
  color: #ff2121;
}

/* 登録ページ */
.kiyaku_check {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;

  a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
  }
}

@media (any-hover: hover) {
  .kiyaku_check a:hover {
    opacity: 0.7;
  }
}

/* 利用規約ページ */
.terms__container {
  width: min(calc(100% - 20px * 2), 900px);
  margin-inline: auto;
  padding-block: 60px;
}

.terms__title {
  margin-top: 1em;
  font-size: 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;

  span {
    font-size: 0.9rem;
  }
}

.terms__note {
  margin-top: 1.5em;
  font-size: 0.875rem;
  line-height: 1.6;
}

.terms__section {
  margin-top: 2em;
}

.terms__item {
  margin-top: 2em;

  h3 {
    font-size: 1.3rem;
    font-weight: 500;
  }

  h4 {
    margin-top: 0.3em;
    font-size: 1.2rem;
    font-weight: 500;
    color: #2da4a7;
  }

  p {
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.6;
  }

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

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

.terms__date {
  margin-top: 40px;
  text-align: right;
  color: #666;
}

/* ページローディングアニメーション - サイのベイトくんGIFアニメーション - */
#loading {
  position: fixed;
  width: 100vw;
  height: 100vh;
  background: rgba(255, 255, 255, 0.7);
  display: grid;
  inset: 0;
  place-items: center;
  transition-property: opacity;
  z-index: 999;
}

.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading-spinner {
  width: 90px;
  height: 90px;
  background: url("../../assets/img/gif/loading01.gif") no-repeat center center;
  background-size: contain;
}

/* ********** */
/* Chatはchat.cssに記述 */
/* ********** */

/* ********** */
/* キャンセルフォーム */
/* client/mypage/cancel.php */
/* ********** */
.cancel-form-container {
  max-width: 600px;
  margin: 40px auto;
  padding: 30px;
  border-radius: 8px;
  background-color: #fff;
}

.form-title {
  font-size: 1.5rem;
  color: #333;
  margin-bottom: 20px;
  text-align: center;
}

.notice-box {
  background-color: #fff8f8;
  border: 1px solid #ffebeb;
  padding: 15px;
  border-radius: 4px;
  margin-bottom: 25px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  color: #555;
}

.form-select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-bottom: 15px;
}

.form-textarea {
  width: 100%;
  min-height: 100px;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  resize: vertical;
}

.cancel-button {
  background-color: #dc3545;
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-align: center;
  width: 100%;
  font-size: 16px;
  transition: background-color 0.3s;
}

.cancel-button:hover {
  background-color: #c82333;
}

.back-link {
  display: block;
  text-align: center;
  margin-top: 15px;
  color: #666;
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
}

/* ページネーション */
.pagination {
  display: flex;
  justify-content: center;
}

.pagination__list {
  display: flex;
  align-items: center;
  gap: 5px;
  list-style: none;
  padding: 0;
}

.pagination__item {
  margin: 0 2px;
}

.pagination__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid #ccc;
  border-radius: 2px;
  color: #333;
  text-decoration: none;
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

.pagination__item--active .pagination__link {
  background-color: #a6e9e5;
}

.pagination__item--prev .pagination__link,
.pagination__item--next .pagination__link {
  background-color: #fff;
}

@media (any-hover: hover) {
  .pagination__link:hover {
    background-color: #a6e9e5;
  }

  .pagination__item--active .pagination__link:hover {
    background-color: #a6e9e5;
  }
}

/* Instagram用スタイル */
/* カレンダーアイコン用 */
.ig-input__icon {
  position: relative;
}

/* カレンダーアイコン */
.ig-input__icon::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background: url(../img/svg/icon_calendar.svg);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  pointer-events: none;
}

.ig-form-wrap {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;

  @media (width >= 768px) {
    width: min(100%, 620px);
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
  }
}

.ig-card__container {
  margin-top: 25px;
  width: 100%;

  @media (width >= 768px) {
    margin-top: 40px;
  }
}

/* Instagram投稿一覧 */
.ig-card__items {
  width: 100%;
  display: flex;
  /* align-items: center; */
  gap: 10px;
  overflow-x: auto;

  @media (width >= 768px) {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(295px, 1fr));
    gap: 30px;
    overflow-x: hidden;
  }
}

/* Instagram投稿UI */
.ig-card {
  width: 295px;
  border-radius: 10px;
  border: 1px solid #ccc;
  background: #fff;
  overflow: hidden;
  flex-shrink: 0;
  align-self: flex-start;

  @media (width >= 768px) {
    width: 100%;
    flex-shrink: 1;
  }
}

.ig-card__content {
  width: calc(100% - 20px * 2);
  margin-inline: auto;
  padding-block: 15px 0;
}

.ig-card__image {
  width: 100%;
  aspect-ratio: 1 / 1;

  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

.ig-card__header {
  margin-top: 15px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

/* タイトル */
.ig-card__title {
  color: #000;
  font-size: 1rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* メタ情報 */
.ig-card__meta {
  color: #666;
  font-size: 0.75rem;
}

/* パラメーターボディ全体 */
.ig-card__stats {
  margin-top: 15px;
}

.ig-card__stats--youtube {
  margin-top: 15px;
  margin-bottom: 15px;
}

/* アイテム１列 */
.ig-card__stat-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  color: #999;
}

/* 各パラメーターのラベル */
.ig-card__stat-label {
  color: #999;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* iconスタイル */
.ig-card__stat-icon {
  width: 14px;
  height: 14px;
  text-align: center;
  color: #999;
}

/* 各パラメーターの値 */
.ig-card__stat-value {
  color: #333;
}

/* ボディ展開ボタン */
.ig-card__toggle {
  color: #666;
  font-size: 0.875rem;
  line-height: 120%;
  text-align: right;
  padding: 15px 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 3px;
  justify-content: flex-end;
}

/* ボディ展開ボタンのアイコン */
.ig-card__toggle-icon {
  margin-top: 1px;
  width: 16px;
  height: 16px;
  object-fit: contain;
  transition: transform 0.3s;
}

/* ボディ展開ボタンのテキスト */
.ig-card__hidden-stats {
  display: none;
}

.ig-card--expanded .ig-card__hidden-stats {
  display: block;
}

/* ボディ展開ボタンのアイコンの回転 */
.ig-card--expanded .ig-card__toggle-icon {
  transform: rotate(180deg);
}

/* Youtube分析ページ */
.youtube-detail__top {
  display: grid;
  grid-template-columns: 1fr;
  justify-content: center;
  gap: 30px;

  @media (width >= 768px) {
    grid-template-columns: repeat(2, 1fr);
  }
}

.youtube-detail__thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;

  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

/* 再生数 */
.youtube-detail__thumb-views {
  position: absolute;
  bottom: 10px;
  right: 10px;
  padding-inline: 15px;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-weight: 700;
  line-height: 28px;
  z-index: 2;
}

.youtube-detail__text-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.youtube-detail__text-content-date {
  color: #999;
  font-weight: 600;
  line-height: 28px;
}

.youtube-detail__text-content-title {
  color: #333;
  font-weight: 600;
  line-height: 24px;
}

.youtube-detail__text-content-desc {
  color: #333;
  font-weight: 400;
  line-height: 24px;
}

.youtube-detail__more-btn {
  display: inline flex;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  font-size: 0.875rem;
  color: #666;
  text-align: right;
  cursor: pointer;
}

/* 分析の各パラメータースタイル */
.youtube-detail__analysis-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;

  @media (width >= 768px) {
    gap: 10px;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  }
}

.youtube-detail__analysis-item {
  width: 100%;
  padding: 15px 15px 10px;
  border-radius: 5px;
  background: #f9f9f9;

  @media (width >= 768px) {
    padding: 15px 20px 10px;
  }
}

.youtube-detail__analysis-item-title {
  color: #2da4a7;
  font-weight: 600;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;

  @media (width >= 768px) {
    text-align: left;
    justify-content: flex-start;
  }
}

/* fontawesome iconスタイル */
.youtube-detail__analysis-item-icon {
  height: 14px;
  text-align: center;
  color: #2da4a7;
}

.youtube-detail__replies-item-icon {
  width: 14px;
  height: 14px;
  text-align: center;
  color: #999;
}

.youtube-detail__analysis-item-content {
  margin-top: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  @media (width >= 768px) {
    margin-top: 7px;
  }
}

.youtube-detail__analysis-item-content-label {
  color: #333;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: normal;
}

.youtube-detail__analysis-item-content-value {
  color: #333;
  text-align: center;
  font-family: Roboto;
  font-size: 1.5rem;
  font-weight: 500;

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

/* コメント部分 */
.youtube-detail__comments-container {
}

.youtube-detail__comment {
  background: #fff;
  padding: 20px 10px 10px;
  border-bottom: 1px solid #ddd;
}

.youtube-detail__comment-header,
.youtube-detail__reply-header {
  margin-bottom: 12px;
}

.youtube-detail__comment-author,
.youtube-detail__reply-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* 投稿者のアバター */
.youtube-detail__comment-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;

  @media (width >= 768px) {
    width: 40px;
    height: 40px;
  }
}

/* コメントのアバター */
.youtube-detail__reply-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;

  @media (width >= 768px) {
    width: 40px;
    height: 40px;
  }
}

.youtube-detail__comment-info,
.youtube-detail__reply-info {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.youtube-detail__comment-name,
.youtube-detail__reply-name {
  font-weight: 600;
  color: #030303;
}

.youtube-detail__comment-date,
.youtube-detail__reply-date {
  font-size: 0.85rem;
  color: #606060;
}

.youtube-detail__comment-body,
.youtube-detail__reply-body {
  color: #030303;
  line-height: 1.6;
  margin: 8px 0 8px 2.5em;

  @media (width >= 768px) {
    margin: 8px 0 8px 3.2em;
  }
}

.youtube-detail__comment-replies {
  margin-top: 16px;

  @media (width >= 768px) {
    margin-left: 15px;
  }
}

.youtube-detail__reply {
  margin-top: 16px;
}

.data-not-found {
  color: #606060;
  padding: 1em 0;
}

.youtube-detail__replies-toggle-text {
  color: #888;
  font-size: 0.875rem;
}

.youtube-detail__replies-toggle-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.youtube-detail__replies-content {
  display: none;
  margin-bottom: 10px;
}

.youtube-detail__comment-replies--expanded .youtube-detail__replies-content {
  display: block;
}

.youtube-detail__replies-toggle {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  cursor: pointer;
  color: #888;
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

.youtube-detail__replies-toggle:hover {
  opacity: 0.6;
}

/* 返信が1件以上ある時 */
.youtube-detail__replies-toggle.green {
  .youtube-detail__replies-toggle-text {
    color: #2da4a7;
  }
}

/* トグル開いている時 */
.youtube-detail__replies-toggle--expanded {
  /* アイコン反転 */
  .youtube-detail__replies-toggle-icon {
    transform: rotate(180deg);
  }

  /* テキスト非表示 */
  .youtube-detail__replies-toggle-text {
    display: none;
  }
}

.youtube-detail__comment-replies--expanded
  .youtube-detail__replies-toggle-text {
  display: none;
}

/* ********** */
/* 見積もりページ */
/* ********** */
/* estimate.css */
.estimate {
  padding-block: 40px;
}

.estimate__inner {
  width: min(calc(100% - 20px * 2), 960px);
  margin-inline: auto;
}

.estimate__year-selector {
  margin-top: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.estimate__year-btn {
  padding: 5px 15px;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
}

.estimate__year-btn--prev {
  margin-right: 10px;
}

.estimate__year-btn--next {
  margin-left: 10px;
}

.estimate__year {
  font-size: 18px;
  font-weight: bold;
}

.estimate__table-wrapper {
  overflow-x: auto;
}

.estimate__table {
  margin-top: 30px;
  width: 100%;
  border-collapse: collapse;
}

.estimate__th,
.estimate__td {
  padding: 10px;
  border: 1px solid #ddd;
  text-align: center;
}

.estimate__th--client,
.estimate__td--client {
  min-width: 160px;
  text-align: left;
  background: #f5f5f5;
}

/* 先頭列の固定 */
.estimate__td--client,
.estimate__th--client {
  position: sticky;
  left: 0;
  z-index: 1;
}

.estimate__input-group {
  display: flex;
  align-items: center;
  gap: 5px;

  /* 円 */
  span {
    font-size: 0.875rem;
  }
}

.estimate__input {
  width: 100px;
  padding: 5px;
  border: 1px solid #ddd;
  text-align: right;
  border-radius: 4px;
}

/* fix時のスタイル */
.estimate__input--fixed {
  background: #e0e0e0;
}

/* fixボタン */
.estimate__fix-btn {
  padding: 5px 8px;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 4px;
  cursor: pointer;
}

/* fix時のスタイル  */
.estimate__fix-btn--fixed {
  background: #e0e0e0;
  border-color: #ccc;
  color: #666;
}

.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 16px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1000;
  animation: slideIn 0.3s ease-out;
}

.toast--success {
  border-left: 4px solid #4caf50;
}

.toast--error {
  border-left: 4px solid #f44336;
}

.toast--fade-out {
  animation: slideOut 0.3s ease-out forwards;
}

.toast__icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.toast--success .toast__icon {
  color: #4caf50;
}

.toast--error .toast__icon {
  color: #f44336;
}

.toast__content {
  flex: 1;
}

.toast__message {
  margin: 0;
  font-size: 14px;
  color: #333;
}

.toast__time {
  margin: 4px 0 0;
  font-size: 12px;
  color: #666;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }

  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

/* タスク発注 */
.task-order {
  padding-block: 43px 109px;
}

.task-order__inner {
  width: min(calc(100% - 20px * 2), 1200px);
  margin-inline: auto;
  position: relative;
}

.task-order__head {
  display: grid;
  align-items: center;
  gap: 20px;

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

.task-order__box {
  width: 100%;
  display: grid;
  grid-template-columns: 20px 1fr;
  align-items: center;
  gap: 20px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 20px;
}

/* aタグ */
.task-order__box-link {
  transition: all 0.3s ease;
}

@media (any-hover: hover) {
  .task-order__box-link:hover {
    color: #fff;
    background: #2da4a7;

    .task-order__box-text {
      color: #fff;
    }
  }
}

.task-order__box-flex {
  display: flex;
  flex-direction: column;
}

.task-order__box-text {
  color: gray;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  text-wrap: nowrap;
}

.task-order__box-num {
  font-family: Roboto;
  font-size: 1.25rem;
  font-weight: 600;

  span {
    font-family: "Noto Sans JP";
    font-size: 0.75rem;
  }
}

.task-order__box-num--green {
  color: #2da4a7;
}

.task-order__price-title {
  font-size: 1.25rem;
  font-weight: 600;
}

.task-order__price {
  width: 100%;
  padding: 20px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 5px;
}

.task-order__price-list {
  display: grid;
  grid-template-columns: 1fr;
  justify-content: center;
  gap: 15px;

  @media (width >= 768px) {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* タスク詳細 */
.task-order-item {
  width: 100%;
  padding: 12px;
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 5px;
}

.task-order-item__name {
  font-size: 1.125rem;
  font-weight: 500;
}

.task-order-item__list {
  display: grid;
  gap: 5px;
}

.task-order-item__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5em;
}

.task-order-item__item-name {
  color: gray;
  font-size: 0.875rem;
}

.task-order-item__item-price {
  font-family: Roboto;
  font-size: 0.875rem;
}

.task-order-item__item-btn {
  width: 25px;
  height: 25px;
  display: grid;
  place-content: center;
  border-radius: 50%;
  padding: 3px;
  transition: all 0.3s ease;

  /* fontawesomeIcon */
  i {
    color: #2da4a7;
    transition: all 0.3s ease;
  }
}

.task-order-item__item-btn:hover {
  background: #2da4a7;

  /* fontawesomeIcon */
  i {
    color: #fff;
  }
}

.task-order-item__item-flex {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* カート */
.task-order__cart {
  display: none;

  @media (width >= 768px) {
    display: block;
    width: 100%;
    padding: 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
  }
}

.task-order__cart-list {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding-block: 15px;
  border-block: 1px solid #ddd;
}

.task-order__cart-item {
  width: 100%;
  padding: 12px;
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 5px;
}

.task-order__cart-item-name {
  font-size: 1rem;
  font-weight: 500;
}

.task-order__cart-item-list {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.task-order-cart__item-name {
  color: gray;
  font-size: 0.875rem;
}

.task-order-cart__item-price {
  font-family: Roboto;
  font-size: 0.875rem;
  font-weight: 600;
}

.task-order-cart__item-btn {
  width: 25px;
  height: 25px;
  display: grid;
  place-content: center;
  border-radius: 50%;

  /* fontawesomeIcon */
  i {
    color: #ff4444;
    transition: all 0.3s ease;
  }
}

@media (any-hover: hover) {
  .task-order-cart__item-btn:hover {
    /* fontawesomeIcon */
    i {
      opacity: 0.6;
    }
  }
}

.task-order-cart__item-flex {
  display: flex;
  align-items: center;
  gap: 8px;
}

.task-order__cart-total {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 5px;
}

.task-order__cart-total-title {
  font-size: 1.25rem;
  font-weight: 600;
}

.task-order__cart-total-price {
  font-family: Roboto;
  color: #2da4a7;
  font-size: 1.5rem;
  font-weight: 600;

  /* c */
  span {
    font-size: 1rem;
  }
}

/* カートアイコン */
.task-order__cart-icon {
  position: absolute;
  top: 0;
  right: 0;
  width: 50px;
  height: 50px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: #2da4a7;
  color: #fff;
  display: grid;
  place-content: center;
  border: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

@media (any-hover: hover) {
  .task-order__cart-icon:hover {
    opacity: 0.8;
  }
}

/* カートの数量バッジ */
.task-order__cart-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #ff4b4b;
  color: #fff;
  font-size: 12px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-content: center;
}

/* タスク一覧ヘッダー */
.task-order-control__head {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  justify-content: center;
  gap: 5px;
}

/* タブ切り替え */
.task-order-control__tab {
  display: grid;
  place-content: center;
  text-align: center;
  padding: 10px;
  background: #f9f9f9;
  border-radius: 5px;
  transition: all 0.3s ease;
}

@media (any-hover: hover) {
  .task-order-control__tab:hover {
    background: #2da4a7;
    color: #fff;
  }
}

/* active時 */
.task-order-control__tab.is-active {
  background: #2da4a7;
  color: #fff;
}

/* タスク一覧 */
.task-order-control__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.task-order-control__empty {
  width: min(calc(100% - 20px * 2), 400px);
  margin-inline: auto;
  text-align: center;
  border-radius: 10px;
  background: #f9f9f9;
  padding: 20px;
}

.task-order-control__item {
  width: 100%;
  display: flex;
  flex-direction: column;
  padding: 12px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 5px;

  @media (width >= 768px) {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

.task-order-control__item-flex {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.task-order-control__item-flex--admin {
  margin-top: 10px;

  @media (width >= 768px) {
    margin-top: 0;
  }
}

.task-order-control__item-flex-left {
  display: flex;
  align-items: center;
  gap: 5px;
}

.task-order-control__item-name {
  font-size: 1rem;
  font-weight: 600;
}

.task-order-control__item-status {
  font-size: 0.875rem;
  color: #fff;
  padding: 3px 6px;
  border-radius: 5px;
  background: #2da4a7;
}

/* 全て */
.task-order-control__item-status[data-status="全て"] {
  background-color: #808080;
}

/* 依頼済 */
.task-order-control__item-status[data-status="依頼済"] {
  background-color: #ff9900;
}

/* 確認中 */
.task-order-control__item-status[data-status="確認中"] {
  background-color: #ffcc00;
}

/* 進行中 */
.task-order-control__item-status[data-status="進行中"] {
  background-color: #33cc33;
}

/* 確認待ち */
.task-order-control__item-status[data-status="確認待ち"] {
  background-color: #ff6666;
}

/* 修正依頼 */
.task-order-control__item-status[data-status="修正依頼"] {
  background-color: #ff3333;
}

/* 完了 */
.task-order-control__item-status[data-status="完了"] {
  background-color: #2da4a7;
}

.task-order-control__item-description {
  font-size: 0.875rem;
  color: gray;
}

.task-order-control__item-price {
  font-family: Roboto;
  color: #2da4a7;
  font-size: 1rem;
  font-weight: 600;
}

.task-order-control__item-date {
  font-size: 0.875rem;
  color: gray;
}

.task-order-control__item-form {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: flex-end;
}

/* ステータスのフォームセレクト */
.task-order-control__item-select {
  inline-size: fit-content;
  height: 45px;
  text-align: center;
  border-radius: 10px;
  border: 1px solid #ccc;
  background: #fff;
  padding-block: 10px;
  padding-inline: 15px;
}

/* ディレクター専用 */
.task-order-control__item-select--director {
  inline-size: min(100%, 150px);
}

/* 更新ボタン */
.task-order-control__item-btn {
  inline-size: fit-content;
  height: 45px;
  text-align: center;
  background: #2da4a7;
  color: #fff;
  border-radius: 10px;
  border: none;
  padding-block: 10px;
  padding-inline: 15px;
  touch-action: manipulation;
  user-select: none;
  cursor: pointer;
}

/* ディレクターページ */
.task-order-control__item-admin {
  width: 100%;
  padding: 12px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 5px;
}

.task-order-control__item-inner {
  width: 100%;
  display: flex;
  flex-direction: column;

  @media (width >= 768px) {
    flex-direction: row;
    justify-content: space-between;
    align-items: end;
  }
}

.task-order-admin__company {
  font-size: 1.2rem;
  font-weight: 600;
  color: #2da4a7;
}

.task-order-control__item-info {
  display: flex;
  align-items: end;
  gap: 10px;
}

.task-order-control__master-link {
  width: min(100%, 180px);
}

/* ********** */
/* cart.php */
/* ********** */
.cart__head {
  display: flex;
  align-items: center;
  gap: 20px;
}

.cart__back-btn {
  display: inline flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

@media (any-hover: hover) {
  .cart__back-btn:hover {
    opacity: 0.6;
  }
}

.cart__balance {
  width: 100%;
  display: grid;
  grid-template-columns: 20px 1fr;
  align-items: center;
  gap: 20px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 20px;
}

.cart__balance-box {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cart__balance-flex {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cart__balance-text {
  font-size: 12px;
  color: #666;
}

.cart__balance-num {
  font-size: 24px;
  font-weight: bold;
}

.cart__balance-num span {
  font-size: 16px;
  margin-left: 4px;
}

.cart__content {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 20px;
}

.cart__item {
  padding: 16px 0;
  border-bottom: 1px solid #eee;
}

.cart__item:last-child {
  border-bottom: none;
}

.cart__item-name {
  font-weight: 600;
  margin-bottom: 12px;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  padding: 8px;
  background: #f9f9f9;
  border-radius: 4px;
}

.cart-item__name {
  flex: 1;
}

.cart-item__flex {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cart-item__price {
  font-weight: bold;
  min-width: 80px;
  text-align: right;
}

.cart-item__quantity {
  display: flex;
  align-items: center;
  gap: 3px;
}

.quantity-btn {
  width: 24px;
  height: 24px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
}

.quantity-btn:hover {
  background: #f5f5f5;
}

.cart-item__btn {
  background: none;
  border: none;
  color: #ff4444;
  cursor: pointer;
  padding: 4px;
}

.cart-item__btn:hover {
  opacity: 0.7;
}

.cart__total {
  border-top: 2px solid #eee;
  padding-top: 20px;
}

.cart__total-title {
  font-size: 16px;
  margin-bottom: 8px;
}

.cart__total-price {
  font-size: 24px;
  font-weight: bold;
  text-align: right;
}

.cart__total-price span {
  font-size: 16px;
  margin-left: 4px;
}

.cart__form {
  text-align: center;
}

/* 無効化されたボタンのスタイル */
.c-btn--disabled {
  background-color: #cccccc !important;
  cursor: not-allowed !important;
  opacity: 0.7;
}

/* エラーメッセージのスタイル */
.cart__error-message {
  color: #ff4444;
  margin-top: 8px;
  font-size: 0.875rem;
  text-align: center;
}

/* cを購入するリンク */
.cart__error-link {
  font-size: 0.875rem;
  color: #2da4a7;
}

/* ********** */
/* control.php */
/* ********** */
/* 完了メッセージ */
.task-control__complete {
  background: #e8f5e9;
  border-radius: 8px;
  padding: 12px;
}

.task-control__complete-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.task-control__complete-message {
  font-size: 1rem;
  font-weight: 600;
  color: #2e7d32;
}

.task-control__complete-points {
  font-size: 0.875rem;
  color: #388e3c;
}

/* 数量調整ボタンのスタイル */
.task-order-cart__item-quantity {
  display: flex;
  align-items: center;
  margin-right: 10px;
}

.quantity-btn {
  width: 24px;
  height: 24px;
  border: 1px solid #ddd;
  background: white;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.quantity-btn:hover {
  background: #f5f5f5;
}

.task-order-cart__item-quantity span {
  margin: 0 8px;
  min-width: 20px;
  text-align: center;
}

/* カートが空の場合のスタイル */
.task-order__cart-empty {
  text-align: center;
  color: #666;
  padding: 20px;
  font-size: 0.875rem;
}

.youtube-detail__description-toggle-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.youtube-detail__description-content {
  margin-bottom: 10px;
}

.youtube-detail__description-full {
  display: none;
}

.youtube-detail__description-full--expanded {
  display: block;
}

.youtube-detail__description-toggle {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  cursor: pointer;
  color: #888;
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

.youtube-detail__description-toggle:hover {
  opacity: 0.6;
}

.youtube-detail__description-toggle--expanded {
  .youtube-detail__description-toggle-icon {
    transform: rotate(180deg);
  }
  .youtube-detail__description-toggle-text {
    display: none;
  }
}

/* ********** */
/* 営業代行画面 */
/* ********** */
/* 商談実施ステータス */
.is-completed {
  color: #2da4a7;
  font-weight: bold;
}

.is-canceled {
  color: #ff4444;
  font-weight: bold;
}

/* 結果ステータス */
.is-empty {
  font-weight: 900;
}

.is-success {
  color: #2da4a7;
  font-weight: bold;
}

.is-failure {
  color: #ff4444;
  font-weight: bold;
}

.page-sales__card-container {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.page-sales__card {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 5px;
  text-align: center;
}

.page-sales__card-item-title {
  font-size: 1.1rem;
  font-weight: bold;
}

.page-sales__card-item-content {
  font-family: "Roboto", serif;
  font-size: 1.5rem;
  font-weight: bold;
  color: #2da4a7;

  span {
    font-family: "Noto Sans JP";
    font-size: 0.875rem;
  }
}

.reward-breakdown {
  margin-top: 1em;
  inline-size: fit-content;
  margin-inline: auto 0;
  font-size: 0.875rem;
  line-height: 150%;
  text-align: right;

  ul {
    padding: 0.5em;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
  }
}

.reward-breakdown__title {
  font-size: 0.875rem;
  font-weight: bold;
  text-align: left;
}

/* admin画面 */
.page-reward__add-button {
  width: min(100%, 220px);
  margin-inline: auto;

  @media (width >= 768px) {
    margin-inline: auto 0;
  }
}

/* AI記事生成 */
.page-writing {
  background: var(--white);
  overflow: hidden;

  @media (width >= 768px) {
    background: #f9f9f9;
  }
}

.page-writing__inner {
  width: min(calc(100% - 20px * 2), 960px);
  margin-inline: auto;
  padding-block: 40px 80px;
  background: var(--white);

  @media (width >= 768px) {
    width: min(calc(100% - 60px * 2), 960px);
    padding-inline: 50px;
    padding-block: 40px;
  }
}

/* create.phpのみ */
.page-writing__inner--create {
  padding-block: 0 80px;

  @media (min-width: 768px) {
    padding-block: 0 40px;
  }
}

/* index.phpのみ高さ調整 */
.page-writing__grid {
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto auto 1fr;
}

/* article.php */
.page-writing__inner__article {
  width: min(calc(100% - 20px * 2), 960px);
  margin-inline: auto;
  padding-block: 40px 80px;
  background: var(--white);
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto auto 1fr;

  @media (width >= 768px) {
    width: min(calc(100% - 60px * 2), 960px);
    padding-inline: 75px;
  }
}

/* purchase_credits.php */
.page-writing__inner--purchase {
  padding-block: 0 40px;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto auto 1fr;
}

.page-writing__btns {
  margin-top: 30px;
  width: min(100%, 270px);
  margin-inline: auto;
  display: grid;
  gap: 15px;

  @media (width >= 768px) {
    margin-top: 60px;
    width: min(100%, 560px);
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

/* 新規記事作成・クレジット購入ボタン */
.page-writing__btn {
  inline-size: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  color: #2da4a7;
  font-size: 1.125rem;
  font-weight: 700;
  text-wrap: nowrap;
  padding-block: 15px;
  border-radius: 20px;
  border: 1px solid #2da4a7;
  background: var(--white);
  padding-inline: 15px;
  touch-action: manipulation;
  user-select: none;
  transition: all 0.3s ease;

  i {
    color: #2da4a7;
  }

  img {
    width: 27px;
    height: 27px;
    object-fit: contain;
  }
}

/* 記事生成クレジット購入 */
.page-writing__btn-buy {
  font-size: 1rem;
  color: var(--white);
  background: #2da4a7;
}

@media (any-hover: hover) {
  .page-writing__btn:hover {
    opacity: 0.5;
  }
}

/* NLPPクレジット購入ボタン */
.nlpp-btn-buy__wrap {
  margin-top: 40px;
  width: min(100%, 300px);
  margin-inline: auto;
}

.page-writing__container {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #ccc;

  @media (width >= 768px) {
    margin-top: 60px;
  }
}

.page-writing__text-wrap {
  display: grid;
  justify-content: center;
  align-items: center;
  gap: 15px;

  @media (width >= 768px) {
    grid-template-columns: 160px 1fr;
    gap: 2em;
  }
}

.page-writing__subtitle {
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  text-wrap: nowrap;

  @media (width >= 768px) {
    font-size: 1.125rem;
  }
}

.page-writing__text {
  font-size: 0.875rem;
  font-weight: 400;
  display: grid;
  grid-template-columns: 14px 1fr;
  align-items: center;
  gap: 5px;

  @media (width >= 768px) {
    justify-self: self-end;
  }

  img {
    width: 14px;
    height: 14px;
    object-fit: contain;
  }

  p {
    text-align: left;
  }
}

/* 過去記事一覧 */
.page-writing__archive-article-lists {
  margin-top: 10px;
  display: grid;
  gap: 10px;

  @media (width >= 768px) {
    margin-top: 20px;
  }
}

/* 過去記事 */
.page-writing__archive-article {
  border-radius: 10px;
  border: 1px solid #2da4a7;
  background: #f8fdfc;
  padding: 25px 20px;

  @media (width >= 768px) {
    padding: 25px 30px;
  }

  summary {
    display: grid;
    grid-template-columns: 1fr 16px;
    align-items: center;
    gap: 14px;
    font-size: 1rem;
    font-weight: 700;
    line-height: 150%;
    cursor: pointer;
    list-style: none; /* Safari用の三角マークを非表示 */
    &::-webkit-details-marker {
      display: none; /* Safari用の三角マークを非表示 */
    }
  }

  img {
    width: 16px;
    height: 18px;
    object-fit: contain;
  }
}

/* コンテンツ中身 */
.page-writing__archive-article__contents {
  margin-top: 12px;
  font-size: 1rem;
  font-weight: 400;
  line-height: 150%;

  ol {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;

    counter-reset: item;
    list-style-type: none;

    @media (width >= 768px) {
      flex-direction: row;
      flex-wrap: wrap;
    }
  }

  /* 見出しテキスト */
  li {
    --padding-left: 10px;

    position: relative;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 171%;
    border-radius: 17px;
    border: 1px solid #ccc;
    padding: 5px 10px 5px calc(var(--padding-left) + 1em);
  }

  /* 数字 */
  li::before {
    position: absolute;
    left: var(--padding-left);
    content: counter(item) ".";
    counter-increment: item;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 181%;
  }
}

/* 記事詳細を見る */
.page-writing__archive-article__btn {
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 5px;
  color: #2da4a7;
  text-align: right;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;

  img {
    width: 8px;
    height: 11px;
    object-fit: contain;
  }
}

@media (any-hover: hover) {
  .page-writing__archive-article__btn:hover {
    opacity: 0.5;
  }
}

/* create.php */
.page-writing__back-btn-warp {
  padding-block: 18px 14px;

  @media (width >= 768px) {
    padding-block: 40px 0;
  }
}

/* article.php */
.page-writing__article__back-btn-warp {
  margin-top: 30px;
  margin-inline: auto 0;
}

/* 戻るボタン */
.page-writing__back-btn {
  display: inline flex;
  align-items: center;
  gap: 5px;
  color: #666;
  font-size: 0.875rem;
  transition: all 0.3s ease;

  img {
    width: 18px;
    height: 18px;
    object-fit: contain;
  }
}

@media (any-hover: hover) {
  .page-writing__back-btn:hover {
    opacity: 0.5;
  }
}

/* 入力フォーム */
.page-writing__form-wrap {
  margin-top: 30px;
  width: min(100%, 500px);
  margin-inline: auto;
}

.page-writing-form {
  display: grid;
  gap: 20px;
}

.page-writing-form__item {
  display: grid;
  gap: 5px;
}

.page-writing-form__label {
  font-size: 1rem;
  font-weight: 700;
  position: relative;
  display: inline-flex;
  align-items: center;

  /* "改行区切り"のテキストのみ */
  .page-writing-form__label--light {
    font-weight: 400;
  }

  /* ヒントのアイコン */
  i {
    margin-left: 5px;
    color: #bdcdce;
    cursor: help;
    position: relative;

    /* ツールチップ */
    .tooltip {
      position: absolute;
      left: 100%;
      top: 50%;
      transform: translateY(-50%);
      background: #a0abab;
      color: var(--white);
      padding: 5px 7px;
      font-size: 0.75rem;
      font-weight: 700;
      white-space: nowrap;
      opacity: 0;
      visibility: hidden;
      transition: all 0.3s ease;
      z-index: 1000;
      margin-left: 5px;

      /* 吹き出し */
      &::before {
        content: "";
        position: absolute;
        top: 50%;
        right: 100%;
        transform: translateY(-50%);
        width: 0;
        height: 0;
        border-top: 4px solid transparent;
        border-bottom: 4px solid transparent;
        border-right: 4px solid #a0abab;
      }
    }

    /* ホバー時にツールチップを表示 */
    &:hover .tooltip {
      opacity: 1;
      visibility: visible;
    }
  }
}

.page-writing-form__control {
  border-radius: 10px;
  border: 1px solid #ccc;
  background: var(--white);
  padding: 10px 15px;
}

.page-writing-form__control::placeholder {
  color: #b2b2b2;
}

/* 記事概要提案を見るボタン */
.page-writing__form-btn {
  margin-top: 10px;
  width: min(100%, 250px);
  margin-inline: auto;
}

.page-writing__bottom {
  margin-top: 30px;
  width: min(100%, 560px);
  margin-inline: auto;
}

.page-writing__balance {
  color: #2da4a7;
  font-size: 1rem;
  font-weight: 700;
  line-height: 150%;
  text-align: center;
}

.page-writing__bottom-text {
  margin-top: 30px;
  font-size: 1rem;
  line-height: 150%;

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

/* クレジットが不足している場合のボタン */
.page-writing__purchase {
  margin-top: 20px;
  width: min(100%, 250px);
  margin-inline: auto;
}

/* クレジットが不足している場合のテキスト */
.page-writing__form-note {
  margin-top: 10px;
  font-size: 0.875rem;
  text-align: center;
}

/* result.php */
/* 上記記事平均文字数カウント */
.page-writing__result-count {
  margin-top: 30px;
  inline-size: fit-content;
  margin-inline: auto;
  border-radius: 10px;
  background: #e9f6f3;
  padding: 5px 20px;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
}

.page-writing__result-form-wrap {
  margin-top: 30px;
  display: grid;
  gap: 20px;

  @media (width >= 768px) {
    gap: 30px;
  }
}

/* 出力結果フォーム */
.page-writing__result-form {
  display: grid;
  gap: 20px;

  @media (width >= 768px) {
    gap: 30px;
  }
}

/* 出力結果のアイテム */
.page-writing__result-item {
  border-radius: 10px;
  border: 1px solid #2da4a7;
  background: #fff;
  padding: 25px 20px;
  transition: all 0.3s ease;
}

/* 提案n */
.page-writing__result-item-title-proposal {
  color: #2da4a7;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 120%;
}

/* 提案タイトル */
.page-writing__result-item-title {
  margin-top: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 120%;
}

/* ディスクリプション */
.page-writing__result-item-description {
  margin-top: 12px;
  font-size: 1rem;
  font-weight: 400;
  line-height: 150%;
}

/* 見出しリスト */
.page-writing__result-item-heading-list {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style-type: decimal;
  list-style-position: inside;

  @media (width >= 768px) {
    flex-direction: row;
    flex-wrap: wrap;
  }

  /* 見出しテキスト */
  li {
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 171%;
    border-radius: 17px;
    border: 1px solid #ccc;
    padding: 5px 10px;
  }
}

/* この提案で記事を作成ボタン */
.page-writing__result-form-btn {
  margin-top: 25px;
  width: min(100%, 250px);
  margin-inline: auto 0;
}

/* article.php */
/* コピーボタン */
.page-writing__copy-icon {
  margin-top: 5px;
  position: relative;
  margin-inline: 0 auto;

  /* ツールチップ */
  .tooltip {
    position: absolute;
    left: 0;
    top: 0;
    transform: translateY(-100%);
    background: #a0abab;
    color: var(--white);
    padding: 5px 7px;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    margin-left: 5px;

    /* 吹き出し */
    &::before {
      content: "";
      position: absolute;
      bottom: -4px;
      left: 0%;
      transform: translateX(0%);
      width: 0;
      height: 0;
      border-left: 4px solid transparent;
      border-right: 4px solid transparent;
      border-top: 4px solid #a0abab;
    }
  }

  /* ホバー時にツールチップを表示 */
  &:hover .tooltip {
    opacity: 1;
    visibility: visible;
  }

  img {
    width: 16px;
    height: 20px;
    object-fit: contain;
  }
}

.page-writing__article {
  margin-top: 10px;
  padding: 40px 20px;
  border: 1px solid #ccc;

  @media (width >= 768px) {
    padding: 40px;
  }
}

/* タイトル */
.page-writing__article-title {
  font-size: 1.25rem;
  font-weight: 700;
  padding-bottom: 5px;
  border-bottom: 1px solid #666;
}

.page-writing__article-description {
  margin-top: 30px;
  font-size: 1rem;
  font-weight: 400;
  line-height: 150%;
}

/* 生成本文中身 */
.page-writing__article-contents {
  margin-top: 40px;
  color: #333;
  font-size: 1rem;
  font-weight: 700;
  line-height: 150%;

  h2 {
    margin-top: 2em;
    font-size: 1.125rem;
  }

  h3 {
    margin-top: 2em;
    font-size: 1.125rem;
    font-size: 1rem;
  }

  h4 {
    margin-top: 2em;
    font-size: 1rem;
  }

  p {
    margin-top: 1em;
    font-size: 1rem;
    font-weight: 400;
  }

  table {
    margin-top: 20px;
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #ccc;
    font-size: 1rem;
  }

  th {
    background: #e7e7e7;
    padding: 15px;
    text-align: center;
    border: 1px solid #ccc;
    font-weight: 600;
  }

  td {
    padding: 10px 15px;
    border: 1px solid #ccc;
    text-align: left;
    font-weight: 400;
  }
}

/* クレジット購入ページ */
.page-writing__purchase-container {
  margin-top: 30px;
}

.page-writing__balance-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 30px;

  @media (width >= 768px) {
    flex-direction: row;
  }
}

.page-writing__balance-item {
  flex: 1;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 20px;

  h3 {
    font-size: 1rem;
    margin-bottom: 10px;
  }
}

.page-writing-purchase__balance {
  font-size: 1.5rem;
  font-weight: bold;
  color: #2da4a7;
  text-align: left;

  span {
    font-size: 1rem;
    color: #666;
  }
}

.page-writing__exchange-rate {
  padding: 15px;
  background-color: #f0f8ff;
  border-radius: 6px;
  margin-bottom: 30px;
  text-align: center;

  h3 {
    font-size: 1rem;
    margin-bottom: 10px;
    color: #333;
  }

  p {
    font-size: 1.25rem;
    font-weight: bold;
    color: #2da4a7;
  }
}

.page-writing__purchase-form {
  width: min(100%, 600px);
  margin-inline: auto;
  padding: 20px;
  border-radius: 6px;
  margin-bottom: 30px;
}

/* NLPPクレジット購入フォーム */
.nlpp__purchase-form {
  width: min(100%, 800px);
  margin-inline: auto;
  padding: 20px;
  border-radius: 6px;
  margin-bottom: 30px;
}

/* 保有C残高不足時テキスト */
.nlpp__purchase-form-error {
  text-align: center;
  font-size: 1rem;
  font-weight: 400;
  line-height: 150%;

  a {
    color: #2da4a7;
    font-weight: 500;
  }
}

.page-writing__form-group {
  margin-bottom: 20px;

  label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
  }
}

.page-writing__input-group {
  display: flex;
  align-items: center;
}

.page-writing__form-control {
  width: 100%;
  border-radius: 6px 0 0 6px;
  border: 1px solid #ccc;
  background: #fff;
  padding-block: 10px;
  padding-inline: 15px;
}

.page-writing__input-group-text {
  padding: 10px 15px;
  background-color: #f0f0f0;
  border: 1px solid #ddd;
  border-left: none;
  border-radius: 0 4px 4px 0;
}

.page-writing__credits-preview {
  margin-top: 20px;
  padding: 10px;
  background-color: #f0f8ff;
  border-radius: 4px;
  text-align: center;

  p {
    font-size: 16px;
  }
}

.page-writing__credits-result {
  font-weight: bold;
  color: #2da4a7;
  font-size: 20px;
}

.page-writing__form-actions {
  margin-top: 30px;
  text-align: center;
  width: min(100%, 300px);
  margin-inline: auto;
}

/* 管理者メール通知設定 */
.notification-section {
  border: 1px solid #dee2e6;
  padding: 20px;
}

/* クライアント名 */
.notification__client-name {
  font-size: 1.25rem;
  font-weight: bold;
  padding: 14px;
  background: #f8f9fa;
}

.notification__btn-group {
  display: flex;
  gap: 8px;
}

.notification_edit-btn,
.notification__save-btn,
.notification__cancel-btn,
.notification__delete-btn {
  padding: 4px 12px !important;
  border-radius: 4px;
  border: 1px solid;
  cursor: pointer;
  font-size: 0.875rem;
  display: grid;
  place-content: center;
}

.notification_edit-btn {
  background: #fff;
  border-color: #0d6efd;
  color: #0d6efd;
}

.notification__save-btn {
  background: #198754;
  border-color: #198754;
  color: #fff;
}

.notification__cancel-btn {
  background: #6c757d;
  border-color: #6c757d;
  color: #fff;
}

.notification__delete-btn {
  background: #fff;
  border-color: #dc3545;
  color: #dc3545;
}

.notification_edit-btn:hover {
  background: #0d6efd;
  color: #fff;
}

.notification__delete-btn:hover {
  background: #dc3545;
  color: #fff;
}

.notification__page-reward__table {
  border: 1px solid #dee2e6;
  overflow-x: auto;

  table {
    margin-top: 0;
    width: 100%;
    border-collapse: collapse;
  }

  th {
    background: #f8f9fa;
    font-size: 0.875rem;
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
  }

  td {
    font-size: 1rem;
    padding: 12px;
    border-bottom: 1px solid #dee2e6;
  }

  tr:last-child td {
    border-bottom: none;
  }
}

.notification__edit-input {
  width: 100%;
  padding: 6px 12px;
  border: 1px solid #ced4da;
  border-radius: 4px;
}

.notification__display-value {
  display: inline-block;
  width: 100%;
  padding: 6px 0;
}

/* 追加フォームのスタイル */
.notification__notification__add-forms-section {
  border: 1px solid #dee2e6;
  padding: 20px;
}

.notification__add-form {
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
}

.notification__add-form__title {
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 15px;
  color: #333;
}

.notification__form-row {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: flex-end;

  @media (width >=768px) {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

.notification__form-group {
  margin-bottom: 0;
  width: 100%;

  @media (width >=768px) {
    flex: 1;
    min-width: 200px;
  }
}

.notification__form-label {
  display: block;
  margin-bottom: 5px;
  font-size: 0.875rem;
  color: #666;
}

.notification__form-control,
.notification__form-select {
  margin-bottom: 0;
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  font-size: 0.875rem;
}

.notification__form-control:focus,
.notification__form-select:focus {
  border-color: #0d6efd;
  outline: none;
  box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.25);
}

/* データ未登録 */
.notification__page-reward__table-text {
  font-size: 0.875rem;
  font-weight: 400;
  color: #666;
  padding-block: 10px;
}

/* ブログ記事コンポーネント */
.new-blog {
  a {
    display: grid;
    grid-template-columns: 1fr 37%;
    grid-template-areas: "content thumb";
    gap: 20px;
    padding-block: 10px 15px;
    border-bottom: 1px solid #e7e7e7;

    @media (min-width: 768px) {
      grid-template-columns: 1fr;
      grid-template-areas: "thumb" "content";
      gap: 8px;
      padding-block: 0;
      border-bottom: none;
    }
  }
}

@media (any-hover: hover) {
  .new-blog a:hover .new-blog__thumb img {
    transform: scale(1.06);
  }
}

/* サムネイル */
.new-blog__thumb {
  aspect-ratio: 124 / 62;
  border-radius: 4px;
  border: 1px solid rgba(34, 34, 34, 0.12);
  overflow: hidden;
  grid-area: thumb;

  @media (min-width: 768px) {
    border-radius: 5px;
  }

  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
  }
}

/* ブログコンテンツ */
.new-blog__contents {
  display: grid;
  gap: 7px;
  grid-area: content;

  @media (min-width: 768px) {
    padding-inline: 8px;
    grid-template-columns: 1fr;
    gap: 5px;
    grid-template-areas: "date" "title";
  }
}

/* 投稿日 */
.new-blog__date {
  display: grid;
  grid-template-columns: 11px 1fr;
  align-items: center;
  gap: 3px;
  color: #999;
  font-family: "Noto Sans JP";
  font-size: 0.6875rem;
  font-weight: 400;

  @media (min-width: 768px) {
    grid-area: date;
  }
}

/* ブログタイトル */
.new-blog__title {
  display: grid;
  grid-template-columns: 16px 1fr;
  align-items: flex-start;
  gap: 10px;

  @media (min-width: 768px) {
    grid-area: title;
  }

  h2 {
    color: #222;
    font-family: "Noto Sans JP";
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

/* マニュアルページレイアウト */
.blog__container {
  width: 100dvw;
  min-height: calc(100dvh - 49px);
  padding-block: 60px 80px;

  @media (width >= 768px) {
    min-height: calc(100dvh - 60px);
  }
}

.blog__inner {
  width: min(calc(100% - 40px * 2), 960px);
  margin-inline: auto;
  background: #fff;
}

/* ブログアーカイブレイアウト */
.blog-archive__container {
  min-height: calc(100vh - (58px + 174px));
  padding-bottom: 30px;

  @media (min-width: 768px) {
    min-height: calc(100vh - (59px + 97.6px));
    padding-bottom: 60px;
  }
}

.blog-archive__inner {
  width: min(calc(100% - 20px * 2), 1080px);
  margin-inline: auto;
  background: #fff;
}

/* ブログページ */
.blog-archive__inner--new {
  width: 100%;
  margin-inline: auto;
  background: initial;

  @media (min-width: 768px) {
    width: min(calc(100% - 20px * 2), 1080px);
    margin-inline: auto;
  }
}

/* ブログ記事パンクズリスト */
.blog__breadcrumb {
  background-color: #f7f7f7;
  padding: 5px 15px;
}

.blog__breadcrumb__list {
  display: flex;
  align-items: center;

  @media (min-width: 768px) {
    width: min(100%, 1080px);
    margin-inline: auto;
  }
}

.blog__breadcrumb__item {
  margin-right: 15px;
  color: #666;
  font-family: "Noto Sans JP";
  font-size: 0.6875rem;
  font-weight: 400;
  line-height: 2;
  letter-spacing: 0.6px;
  flex-shrink: 0;
}

/* svgアイコンを含んでいる場合のみ */
.blog__breadcrumb__item:has(svg) {
  a {
    display: grid;
    grid-template-columns: 12px auto;
    align-items: center;
    gap: 5px;
  }
}

.blog__breadcrumb__item:last-child {
  margin-right: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 300px;
  flex-shrink: 1;

  @media (min-width: 768px) {
    max-width: 500px;
  }
}

/* ブログ記事投稿者情報 */
.blog__author {
  display: grid;
  justify-items: center;
  padding-block: 30px 10px;
  padding-inline: 20px;

  @media (min-width: 768px) {
    grid-template-columns: auto 1fr;
    align-items: flex-start;
    gap: 24px;
    padding-block: 60px 0;
    padding-inline: 0;
    justify-items: flex-start;
  }
}

/* アイコン */
.blog__author__icon {
  img {
    width: 99px;
    height: 99px;
    border-radius: 50%;
    border: 1px solid #ccc;
  }
}

.blog__author__title {
  margin-top: 4.5px;
  color: #222;
  font-family: "Noto Sans JP";
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;

  @media (min-width: 768px) {
    margin-top: 0;
    font-size: 1.25rem;
    text-align: left;
  }
}

.blog__author__description {
  margin-top: 17px;
  color: #222;
  font-family: "Noto Sans JP";
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.53;

  @media (min-width: 768px) {
    margin-top: 4px;
  }
}

/* ************ */
/* single.php */
/* ************ */
/* ヘッダー */
.blog-single__header {
  padding-bottom: 20px;
  border-bottom: 1px solid #cccccc;
}

/* メタ情報 */
.blog-single__meta {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* 投稿タイトル */
.blog-single__title {
  font-size: 1.7rem;
  font-weight: bold;
  color: #2da4a7;

  @media (min-width: 768px) {
    font-size: 2.25rem;
  }
}

/* カテゴリー */
.blog__category {
}

/* 投稿日 */
.blog-single__date {
  display: inline-block;
  font-size: 1rem;
}

/* マニュアルカード archive.php用 */
.manual-card {
  display: contents;

  a {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 4;
    gap: 0;
  }
}

@media (any-hover: hover) {
  .manual-card a:hover .manual-card__thumb img {
    scale: 1.06;
  }
}

/* マニュアルサムネイル */
.manual-card__thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 5px;

  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    transition: all 0.3s ease;
  }
}

/* マニュアルタイトル */
.manual-card__title {
  margin-top: 0.5em;
  font-family: "Noto Sans JP";
  font-size: 1.25rem;
  font-weight: 500;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* マニュアル本文一部抜粋 */
.manual-card__excerpt {
  margin-top: 0.5em;
  font-family: "Noto Sans JP";
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  color: #323232;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* このマニュアルを見るボタン */
.manual-card__link {
  margin-top: 1em;
  inline-size: fit-content;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5em;
  align-items: center;
  color: #2da4a7;
  font-size: 0.875rem;
  font-weight: 500;

  img {
    width: 6px;
    height: auto;
    object-fit: contain;
  }
}

/* 投稿本文 */
.blog-single__content {
  margin-top: 35px;
  font-family: "Noto Sans JP";
  color: #333;
  font-weight: 350;

  /* 最初の要素のmargin-topを0に */
  > *:first-child {
    margin-top: 0;
  }

  h2 {
    margin-top: 2.5em;
    position: relative;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.2;
    padding-left: 0.95em;
  }

  /* 右向き三角ポリゴン */
  h2::before {
    position: absolute;
    content: "";
    top: 50%;
    left: 0;
    transform: translate(0, -50%);
    width: 9px;
    height: 15px;
    background: url(../img/svg/polygon.svg);
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
  }

  h3 {
    margin-top: 1.5em;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.2;
  }

  h4 {
    margin-top: 1.5em;
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.2;
  }

  h5 {
    margin-top: 1.5em;
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.2;
  }

  h6 {
    margin-top: 1.5em;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
  }

  p {
    margin-top: 0.625em;
    font-size: 1rem;
    line-height: 1.8;
  }

  ul,
  ol {
    margin-top: 1em;
    padding-left: 1.5em;
    list-style-type: disc;
    line-height: 1.5;
    padding: 15px;
    padding-block: 15px;
    padding-inline: calc(1.5em + 15px) 15px;
    background: #f7f7f7;
  }

  ol {
    list-style-type: decimal;
  }

  li {
    font-size: 1rem;
  }

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

  figure {
    margin-top: 1em;
    width: 100%;
    height: 100%;
  }

  pre {
    margin-top: 1em;
  }

  img {
    margin-top: 1em;
    max-width: 100%;
    height: auto;
    transition: all 0.3s ease;
  }

  blockquote {
    margin-top: 1em;
    padding: 1em 1.5em;
    border-left: 4px solid #ccc;
    background-color: #f5f5f5;
    font-style: italic;

    /* 最初の要素のmargin-topを0に */
    > *:first-child {
      margin-top: 0;
    }
  }

  a {
    color: #2da4a7;
    transition: all 0.3s ease;
  }

  @media (any-hover: hover) {
    a:hover {
      opacity: 0.6;
    }
  }

  table {
    margin-top: 1em;
    width: 100%;
    border-collapse: collapse;
  }

  th,
  td {
    padding: 0.75em;
    border: 1px solid #ccc;
  }

  th {
    background-color: #f5f5f5;
    font-weight: 700;
  }

  hr {
    margin-block: 16px;
    color: #ccc;
  }

  b,
  strong {
    font-weight: 500;
  }
}

/* ********** */
/* 新ブログシングルページ */
/* ********** */
/* .blog-single-article__container {
} */

.blog-single-article__inner {
  padding-block: 30px;
  width: min(calc(100% - 20px * 2), 1080px);
  margin-inline: auto;

  @media (min-width: 768px) {
    width: min(calc(100% - 30px * 2), 1080px);
    display: grid;
    grid-template-columns: 1fr 33%;
    gap: 40px;
    padding-block: 60px;
  }
}

/* .blog-single-article {
} */

/* .blog-single-article__header {
} */

/* 記事タイトル */
.blog-single-article__title {
  color: #222;
  font-family: "Noto Sans JP";
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.4;

  @media (min-width: 768px) {
    font-size: 1.875rem;
  }
}

.blog-single-article__meta {
  margin-top: 15px;
  width: 100%;
  display: flex;
  justify-content: space-between;

  @media (min-width: 768px) {
    margin-top: 20px;
  }
}

/* 投稿日 */
.blog-single-article__date {
  display: grid;
  grid-template-columns: 11px 1fr;
  align-items: center;
  gap: 3px;
  color: #999;
  font-family: "Noto Sans JP";
  font-size: 0.6875rem;
  font-weight: 400;
}

/* カテゴリー */
.blog-single-article__category {
  display: grid;
  grid-template-columns: 11px 1fr;
  align-items: center;
  gap: 3px;
  border-radius: 20px;
  border: 1px solid #b2b2b2;
  padding: 3px 10px;
  color: #999;
  font-family: "Noto Sans JP";
  font-size: 0.6875rem;
  font-weight: 400;
}

/* サムネイル */
.blog-single-article__eyecatch {
  margin-top: 15px;
  aspect-ratio: 335 / 167;

  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

/* 投稿ページフッター */
.blog-single-article__footer {
  margin-top: 20px;

  @media (min-width: 768px) {
    margin-top: 30px;
  }

  /* ブログ投稿者 */
  .blog__author {
    display: grid;
    justify-items: center;
    padding-block: 25px;
    padding-inline: 25px;
    border-radius: 5px;
    border: 1px solid rgba(204, 204, 204, 0.8);

    @media (min-width: 768px) {
      grid-template-columns: auto 1fr;
      align-items: flex-start;
      gap: 24px;
      padding-block: 25px;
      padding-inline: 30px;
      justify-items: flex-start;
    }
  }

  /* アイコン */
  .blog__author__icon {
    img {
      width: 99px;
      height: 99px;
      border-radius: 50%;
      border: 1px solid #ccc;
    }
  }

  .blog__author__title {
    margin-top: 4.5px;
    color: #222;
    font-family: "Noto Sans JP";
    font-size: 1rem;
    font-weight: 650;
    line-height: 1.5;
    text-align: center;

    @media (min-width: 768px) {
      margin-top: 0;
      font-size: 1.25rem;
      text-align: left;
    }
  }

  .blog__author__description {
    margin-top: 17px;
    color: #222;
    font-family: "Noto Sans JP";
    font-size: 0.8125rem;
    font-weight: 350;
    line-height: 1.53;

    @media (min-width: 768px) {
      margin-top: 4px;
    }
  }
}

/* 新ブログシングルページページネーション */
.blog-single-article__pagination {
  margin-top: 30px;
  padding-block: 30px;
  border-top: 1px solid #ccc;
  display: grid;
  gap: 15px;

  @media (min-width: 768px) {
    margin-top: 40px;
    padding-block: 40px;
    grid-template-columns: repeat(2, 1fr);
  }
}

.blog-single-article__pagination-item {
  display: grid;
  grid-template-columns: 25% 1fr;
  align-items: center;
  gap: 8px;
}

/* 前の記事へ */
.blog-single-article__pagination-item--prev {
  padding-left: 8px;
  border-left: 8px solid #2da4a7;
}

/* 次の記事へ */
.blog-single-article__pagination-item--next {
  grid-template-columns: 1fr 25%;
  padding-right: 8px;
  border-right: 8px solid #2da4a7;

  .blog-single-article__pagination-item-text {
    grid-template-columns: auto 5px;
  }

  .blog-single-article__pagination-item-contents {
    justify-items: flex-end;
  }
}

.blog-single-article__pagination-item-thumb {
  aspect-ratio: 83/42;
  border-radius: 4px;
  border: 1px solid rgba(34, 34, 34, 0.12);

  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

.blog-single-article__pagination-item-contents {
  display: grid;
  gap: 8px;
}

.blog-single-article__pagination-item-text {
  inline-size: fit-content;
  display: grid;
  grid-template-columns: 5px auto;
  gap: 5px;
  color: #999;
  font-family: "Noto Sans JP";
  font-size: 0.6875rem;
  font-weight: 400;
  line-height: 1.18;
}

.blog-single-article__pagination-item-title {
  color: #333;
  font-family: "Noto Sans JP";
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ********** */
/* 新ブログシングルページサイドナビ */
/* ********** */
/* .blog-sidenav {
} */

.blog-sidenav__inner {
  padding-block: 0 30px;

  @media (min-width: 768px) {
    position: sticky;
    top: calc(59px + 30px);
    left: 0;
    max-height: calc(100vh - (59px + 30px + 30px));
    padding-block: 0 60px;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */

    &::-webkit-scrollbar {
      display: none; /* Chrome/Safari/Opera */
    }
  }
}

/* イベントバナー or ピックアップ記事 */
.blog-sidenav__banner {
  aspect-ratio: 335 / 167;

  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

.blog-sidenav__banner + .blog-sidenav__blog-list {
  margin-top: 30px;
}

/* 最近の記事 */
.blog-sidenav__blog-list {
}

.blog-sidenav__blog-list-title {
  padding: 5px 10px;
  border-top: 1px solid #e7e7e7;
  border-bottom: 1px solid #e7e7e7;
  background-color: #f9f9f9;
  color: #666;
  font-family: "Noto Sans JP";
  font-size: 0.875rem;
  font-weight: 700;
}

.blog-sidenav__blog-list-lists {
  padding-inline: 15px;

  /* 最近の記事の中のコンポーネント */
  .new-blog {
    a {
      @media (min-width: 768px) {
        grid-template-columns: 1fr 37%;
        grid-template-areas: "content thumb";
        gap: 20px;
        padding-block: 10px 15px;
        border-bottom: 1px solid #e7e7e7;
      }
    }
  }

  .new-blog__thumb {
    @media (min-width: 768px) {
      border-radius: 4px;
    }
  }

  .new-blog__contents {
    @media (min-width: 768px) {
      padding-inline: 0;
      grid-template-columns: 1fr;
      gap: 7px;
      grid-template-areas: "title" "date";
    }
  }

  .new-blog__title h2 {
    font-weight: 650;
  }
}

/* ブログフッター */
.blog__footer {
  margin-top: 50px;
  width: min(100%, 250px);
  margin-inline: auto;
}

/* 一覧に戻るボタン */
.blog-single__back {
  display: block;
  text-align: center;
  padding: 8px 50px;
  border-radius: 30px;
  border: 1px solid #2da4a7;
  background: #fff;
  font-size: 0.875rem;
  font-weight: bold;
  color: #333;
  transition: all 0.3s ease;
}

@media (any-hover: hover) {
  .blog-single__back:hover {
    background: #2da4a7;
    color: #fff;
  }
}

/* archive.php */
.blog-archive__list {
  padding-block: 20px;
  padding-inline: 20px;
  border-top: 1px solid #ccc;

  @media (min-width: 768px) {
    padding-block: 24px;
    padding-inline: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    column-gap: 15px;
    row-gap: 40px;
  }
}

/* マニュアルarchive.php */
.manual-archive__list {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  column-gap: 20px;
  row-gap: 30px;
}

.manual-archive__item {
  display: contents;
}

/* カテゴリーフィルター */
.blog-category-filter {
  min-width: 0;
  overflow: hidden;
}

.blog-category-filter__buttons {
  display: flex;
  gap: 10px;
  padding-inline: 20px;
  padding-block: 20px;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  min-width: 0;

  @media (min-width: 768px) {
    padding-block: 24px;
    padding-inline: 0;
  }
}

.blog-category-filter__buttons::-webkit-scrollbar {
  display: none;
}

/* カテゴリー切り替えボタン */
.blog-category-filter__button {
  display: inline-block;
  padding: 7px 12px;
  border-radius: 20px;
  border: 1px solid #ccc;
  color: #666;
  text-decoration: none;
  font-size: 0.75rem;
  transition: all 0.3s ease;
}

/* カテゴリー切り替えボタンアクティブ時 */
.blog-category-filter__button.active {
  background-color: #555;
  color: #fff;
}

@media (any-hover: hover) {
  .blog-category-filter__button:hover {
    background-color: #555;
    color: #fff;
  }
}

.blog-archive__empty {
  padding: 20px;
  font-size: 1rem;
  text-align: center;
}

/* ページネーション */
.blog-pagination {
  margin-top: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

/* ブログアーカイブページネーション */
.blog-pagination--archive {
  margin-top: 20px;
  padding-inline: 20px;
}

.blog-pagination__link,
.blog-pagination__current,
.blog-pagination__prev,
.blog-pagination__next {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid #ccc;
  border-radius: 2px;
  color: #333;
  text-decoration: none;
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

@media (any-hover: hover) {
  .blog-pagination__link:hover {
    opacity: 0.6;
  }

  .blog-pagination__prev:hover {
    opacity: 0.6;
  }

  .blog-pagination__next:hover {
    opacity: 0.6;
  }
}

.blog-pagination__current {
  background-color: #555;
  color: #fff;
}

/* 管理画面記事クレジット付与 */
#selectedClientsList {
  list-style: decimal;

  li {
    font-weight: bold;
  }
}

#confirmAmount {
  font-weight: bold;
}

/* ペルソナ分析 nlpp */
/* index.php */
.page-tool__nlpp {
  width: calc(100% - 20px * 2);
  min-width: 100%;
  min-height: 100dvh;
  overflow-x: auto;
  margin-inline: auto;
  padding-block: 25px;
  background: #f9f9f9;

  @media (min-width: 768px) {
    padding-block: 40px;
  }
}

/* index.php専用SP時padding無し */
.page-tool__nlpp--index {
  width: calc(100% - 20px * 2);
  min-width: 100%;
  min-height: 100dvh;
  overflow-x: auto;
  margin-inline: auto;
  background: #f9f9f9;

  @media (min-width: 768px) {
    padding-block: 40px;
  }
}

/* 戻るボタン */
.page-tool__nlpp-btn {
  width: calc(100% - 20px * 2);
  margin-inline: auto;

  @media (min-width: 768px) {
    width: calc(100% - 30px * 2);
  }

  @media (min-width: 1200px) {
    width: min(calc(100% - 46px * 2), 960px);
  }
}

.page-tool__nlpp-inner {
  padding-block: 40px 80px;
  padding-inline: 20px;
  background: #fff;
  min-height: 100dvh;

  @media (min-width: 768px) {
    width: min(calc(100% - 60px * 2), 960px);
    padding-inline: 16px;
    padding-block: 40px;
    margin-inline: auto;
    border-radius: 10px;
  }

  @media (min-width: 1200px) {
    width: min(calc(100% - 60px * 2), 960px);
    padding-inline: 30px;
  }
}

/* タイトル */
.nlpp__title {
  margin-top: 40px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 10px;
  width: min(100%, 580px);
  margin-inline: auto;
  color: #333;
  font-size: 1rem;
  font-weight: var(--fw-base);
  line-height: 150%;

  @media (min-width: 768px) {
    margin-top: 60px;
  }

  img {
    margin-top: 0.3em;
    width: 18px;
    height: 18px;
    object-fit: contain;
  }
}

/* 検索フォーム */
.nlpp__form {
  margin-top: 40px;
  position: relative;
  width: min(100%, 700px);
  margin-inline: auto;

  @media (min-width: 768px) {
    margin-top: 60px;
  }

  input {
    width: 100%;
    height: auto;
    border-radius: 39px;
    border: 1px solid #ccc;
    background: #fff;
    box-shadow: 0px 3px 5px 0px rgba(0, 0, 0, 0.15) inset;
    padding: 10px 20px;
    overflow: hidden;

    @media (min-width: 768px) {
      padding: 15px 20px;
    }
  }

  input::placeholder {
    color: #d6d6d6;
    font-size: 1rem;

    @media (min-width: 768px) {
      font-size: 1.125rem;
    }
  }
}

/* 検索虫眼鏡ボタン */
.nlpp__form-btn {
  position: absolute;
  top: 50%;
  right: 20px;
  padding: 8px 8px;
  background: #fff;
  transform: translateY(-50%);

  img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: scaleX(-1);
  }
}

/* テキスト */
.nlpp__text {
  margin-top: 40px;
  width: min(100%, 400px);
  margin-inline: auto;
  color: #333;
  font-size: 1rem;
  font-weight: var(--fw-base);
  line-height: 150%;

  @media (min-width: 768px) {
    margin-top: 60px;
  }

  p + p {
    margin-top: 0.5em;
  }
}

/* results.php */
/* 共通タイトル */
.page-tool__nlpp-title {
  color: #333;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 150%;
  width: 100%;
  padding: 5px 20px;
  background: #e9f6f3;
}

/* 共通セクションインナー */
.page-tool__nlpp-section-inner {
  width: calc(100% - 10px * 2);
  margin-inline: auto;

  @media (min-width: 768px) {
    width: calc(100% - 25px * 2);
  }
}

.page-tool__nlpp-title--mt-sm {
  margin-top: 60px;

  @media (min-width: 768px) {
    margin-top: 40px;
  }
}

.page-tool__nlpp-title--mt-md {
  margin-top: 60px;

  @media (min-width: 768px) {
    margin-top: 50px;
  }
}

/* 検索したキーワード */
.page-tool__nlpp-keywords {
  margin-top: 25px;
  display: flex;
  flex-direction: column;
  gap: 10px;

  @media (min-width: 768px) {
    flex-direction: row;
    align-items: flex-end;
  }

  h4 {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 20px;
    padding: 15px 20px;
    border-radius: 39px;
    border: 1px solid #ccc;
    background: #fff;
    color: #333;
    font-size: 1.125rem;
    font-weight: var(--fw-base);

    /* キーワード */
    span {
      color: #2da4a7;
      font-size: 0.875rem;
      font-weight: 700;
    }
  }

  p {
    color: #333;
    font-size: 1rem;
    font-weight: var(--fw-base);
  }
}

.page-tool__nlpp-details-section {
  margin-top: 25px;
}

.page-tool__nlpp-persona-section + .page-tool__nlpp-persona-section {
  margin-top: 25px;
}

.page-tool__nlpp-persona-heading {
  position: relative;
  padding-left: 18px;
  color: #333;
  font-size: 1rem;
  font-weight: 700;
  line-height: 150%;
}

.page-tool__nlpp-persona-heading::before {
  position: absolute;
  content: "";
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  background: #2da4a7;
  border-radius: 2px;
}

.page-tool__nlpp-persona-content {
  margin-top: 10px;
  color: #333;
  font-size: 1rem;
  font-weight: var(--fw-light);
  line-height: 150%;
}

/* NLP解析結果コンポーネントコンテナ */
.page-tool__nlpp-section-container {
  margin-top: 25px;
  display: flex;
  flex-direction: column;
  gap: 25px;

  @media (min-width: 768px) {
    gap: 20px;
  }
}

/* NLP解析結果コンポーネント */
.page-tool__nlpp-article {
  padding: 25px 20px;
  border-radius: 10px;
  border: 1px solid #2da4a7;
  background: #fff;
}

.page-tool__nlpp-article-body {
  margin-top: 15px;
  display: grid;
  gap: 25px;

  @media (min-width: 768px) {
    grid-template-columns: 50% 50%;
  }
}

/* 記事URL */
.page-tool__nlpp-article-link {
  color: #2da4a7;
  font-size: 1rem;
  font-weight: 700;
  line-height: 150%;
  overflow-wrap: break-word;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
}

/* 記事タイトル */
.page-tool__nlpp-article-title {
  color: #333;
  font-size: 1rem;
  font-weight: 700;
  line-height: 150%;
  word-wrap: break-word;
  overflow-wrap: break-word;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

/* 記事デスクリプション */
.page-tool__nlpp-article-desc {
  margin-top: 12px;
  color: #333;
  font-size: 1rem;
  font-weight: var(--fw-light);
  line-height: 150%;
  word-wrap: break-word;
  overflow-wrap: break-word;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.page-tool__nlpp-article-contents-title {
  color: #2da4a7;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 171%;
}

.page-tool__nlpp-article-contents-list {
  margin-top: 5px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.page-tool__nlpp-article-contents-item {
  padding: 5px 10px;
  border-radius: 17px;
  border: 1px solid #ccc;
  color: #333;
  font-size: 0.875rem;
  font-weight: var(--fw-base);
  line-height: 171%;
}

/* 特徴的なターゲット傾向なし */
.page-tool__nlpp-article-contents-item--not-found {
  color: #333;
  font-size: 0.875rem;
  line-height: 171%;
}

.page-tool__nlpp-article-contents-list
  + .page-tool__nlpp-article-contents-title {
  margin-top: 10px;
}

/* 上位記事の共通点セクション */
.page-tool__nlpp-points-title {
  margin-top: 25px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 10px;
  padding: 10px 20px;
  border-radius: 10px;
  border: 1px solid #2da4a7;
  color: #333;
  font-size: 1rem;
  font-weight: 500;
  line-height: 150%;

  @media (min-width: 768px) {
    width: min(100%, 600px);
  }

  img {
    margin-top: 0.3em;
    width: 18px;
    height: 18px;
    object-fit: contain;
  }
}

/* 出力結果desc */
.page-tool__nlpp-points-description {
  display: block;
  margin-top: 25px;
  color: #333;
  font-size: 1rem;
  font-weight: var(--fw-light);
  line-height: 150%;
}

/* 分析マップ */
.nlpp-map__container {
  margin-top: 25px;
  display: grid;
  gap: 40px;

  @media (min-width: 1200px) {
    margin-top: 50px;
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 分析マップコンポーネント */
.nlpp-map {
  padding: 25px 20px;
  border-radius: 20px;
  background: #f9f9f9;
}

.nlpp-map__title {
  color: #2da4a7;
  text-align: center;
  font-size: 1.125rem;
  font-weight: 700;
}

.nlpp-map__text {
  margin-top: 15px;
  color: #333;
  text-align: center;
  font-size: 1rem;
  font-weight: 500;
}

/* 分析結果平均 */
.nlpp-map__balance {
  margin-top: 15px;
  width: min(100%, 500px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border-radius: 10px;
  border: 1px solid #2da4a7;
  background: #fff;
}

.nlpp-map__balance-text {
  color: #2da4a7;
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
}

.nlpp-map__balance-balance {
  color: #333;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 150%;
}

.nlpp-map__map {
  margin-top: 46px;
}

.nlpp-map__description {
  margin-top: 53px;
  display: block;
  width: min(100%, 220px);
  margin-inline: auto;
  color: #333;
  font-size: 1rem;
  font-weight: var(--fw-light);
  line-height: 150%;

  @media (min-width: 768px) {
    width: 100%;
    text-align: center;
  }
}

/* NLPP マップ関連のスタイル */
.graphBox {
  --graph-size: 200px;

  position: relative;
  width: var(--graph-size);
  height: var(--graph-size);
  margin-inline: auto;
  background-color: #fff;
  border: 1px solid #ddd;
  background-image: linear-gradient(#eee 1px, transparent 1px),
    linear-gradient(90deg, #eee 1px, transparent 1px);
  background-size: calc(var(--graph-size) / 10) calc(var(--graph-size) / 10);
}

/* 座標の点 */
.point {
  position: absolute;
  width: 10px;
  height: 10px;
  background-color: #94ede8;
  border-radius: 50%;
  transition: all 0.2s ease;
  z-index: 5;
}

@media (any-hover: hover) {
  .point:hover {
    width: 13px;
    height: 13px;
    margin-top: -2px;
    margin-left: -2px;
    background-color: #94ede8;
    box-shadow: 0 0 8px #94ede8;
    z-index: 10;
  }
}

/* グラフの軸とグリッド線スタイル */
.center-line {
  position: absolute;
  background-color: #333;
  z-index: 1;
}

.center-line.horizontal {
  width: 100%;
  height: 1px;
  top: calc(var(--graph-size) / 2);
}

.center-line.vertical {
  height: 100%;
  width: 1px;
  left: calc(var(--graph-size) / 2);
}

.axis-label {
  position: absolute;
  color: #333;
  font-size: 1rem;
  font-weight: var(--fw-base);
  line-height: 100%;
  z-index: 2;
}

.x-label-left {
  left: -10px;
  top: 50%;
  transform: translate(-100%, -50%);
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

.x-label-right {
  right: -10px;
  top: 50%;
  transform: translate(100%, -50%);
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

.y-label-top {
  top: -10px;
  left: 50%;
  transform: translate(-50%, -100%);
}

.y-label-bottom {
  bottom: -10px;
  left: 50%;
  transform: translate(-50%, 100%);
}

/* ヒントボタン */
.hint-button {
  position: relative;
  display: inline-block;
  margin-top: -2px;
  margin-left: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* ツールチップの三角形部分 */
.hint-button::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: #a0abab transparent transparent transparent;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  pointer-events: none;
  z-index: 10;
}

/* ツールチップ */
.hint-button::after {
  content: attr(data-tooltip);
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%) translateY(-100%);
  background-color: #a0abab;
  color: #fff;
  padding: 3px 7px;
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  pointer-events: none;
  z-index: 10;
}

@media (any-hover: hover) {
  .hint-button:hover::after {
    opacity: 1;
    visibility: visible;
  }

  .hint-button:hover::before {
    opacity: 1;
    visibility: visible;
  }
}

/* モーダルスタイル */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.modal-content {
  position: relative;
  width: min(90%, 610px);
  background-color: #fff;
  padding: 20px;

  @media (min-width: 768px) {
    padding: 30px 40px;
  }
}

.modal-title {
  color: #333;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 120%;
}

.modal-sub-title {
  margin-top: 5px;
  padding-bottom: 20px;
  color: #2da4a7;
  font-size: 1rem;
  line-height: 150%;
}

.modal-description {
  padding-top: 20px;
  border-top: 1px solid #ccc;
  color: #333;
  font-size: 1rem;
  line-height: 150%;

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

.modal-description-grid {
  margin-top: 1em;
  display: grid;
  grid-template-columns: 1fr auto;

  /* ベイト君 */
  img {
    width: 85px;
    height: auto;
    object-fit: contain;
  }
}

/* 閉じるボタン */
.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 24px;
  color: #999;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: all 0.3s ease;
}

@media (any-hover: hover) {
  .modal-close:hover {
    color: #333;
  }
}

/* モーダル関連のスタイル */
/* スクロール無効化用のクラス */
body.modal-open {
  overflow: hidden;
}

.nlpp__database-notice {
  margin-top: 40px;
  inline-size: fit-content;
  padding: 0.8em;
  background-color: #e3f7f2;
  border-left: 3px solid #57c3a5;
  font-size: 0.85em;
  color: #2c7a62;
  border-radius: 0 4px 4px 0;
}

/* index.php過去履歴 */
.nlpp__history {
  margin-top: 40px;
  padding-top: 20px;
  width: min(100%, 960px);
  margin-inline: auto;
  border-top: 1px solid #ccc;

  @media (min-width: 768px) {
    margin-top: 60px;
    width: min(calc(100% - 20px * 2), 960px);
  }
}

.nlpp__history__text-wrap {
  display: grid;
  justify-content: center;
  align-items: center;
  gap: 15px;

  @media (width >= 768px) {
    grid-template-columns: 160px 1fr;
    gap: 2em;
  }
}

.nlpp__history__subtitle {
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  text-wrap: nowrap;

  @media (width >= 768px) {
    font-size: 1.125rem;
  }
}

.nlpp__history__text {
  font-size: 0.875rem;
  font-weight: 400;
  display: grid;
  grid-template-columns: 14px 1fr;
  align-items: center;
  gap: 5px;

  @media (width >= 768px) {
    justify-self: self-end;
  }

  img {
    width: 14px;
    height: 14px;
    object-fit: contain;
  }

  p {
    text-align: left;
  }
}

.nlpp__history-list {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;

  @media (min-width: 768px) {
    margin-top: 20px;
  }
}

.nlpp__history-item a {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 25px 20px;
  border-radius: 10px;
  border: 1px solid #2da4a7;
  background: #f8fdfc;
  color: #333;
  font-size: 1rem;
  font-weight: 700;
  line-height: 150%;
  transition: all 0.3s ease;

  @media (min-width: 768px) {
    flex-direction: row;
    justify-content: space-between;
    gap: 10px;
  }
}

@media (any-hover: hover) {
  .nlpp__history-item a:hover {
    background: #e9f6f3;
  }
}

/* 検索キーワード */
.nlpp__history-keyword {
  color: #333;
  font-size: 1rem;
  font-weight: 700;
  line-height: 150%;
}

/* 検索日 */
.nlpp__history-date {
  color: #333;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 150%;
}

/* 検索結果がない場合のテキスト */
.nlpp__history-empty {
  margin-top: 20px;
  display: grid;
  place-content: center;
  padding: 30px 20px;
  border-radius: 16px;
  background: #f9f9f9;

  img {
    width: 60px;
    height: auto;
    object-fit: contain;
  }

  p {
    color: #333;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 150%;
  }
}

.nlpp__history-empty-content {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 16px;
}

/* ヒートマップ分析 */
/* index.php */
/* 設定されていない場合 */
.page-heatmap__empty {
  margin-top: 20px;
  display: grid;
  place-content: center;
  padding: 30px 20px;
  border-radius: 16px;
  background: #f9f9f9;

  p {
    color: #333;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 150%;
  }
}

.page-heatmap__btn {
  margin-top: 10px;
}

.page-heatmap {
  width: calc(100% - 20px * 2);
  min-width: 100%;
  min-height: 100dvh;
  overflow-x: auto;
  margin-inline: auto;
  background: #f9f9f9;

  @media (min-width: 768px) {
    padding-block: 40px;
  }
}

.page-heatmap__inner {
  padding-block: 40px;
  padding-inline: 20px;
  background: #fff;
  min-height: 100dvh;

  @media (min-width: 768px) {
    width: min(calc(100% - 60px * 2), 960px);
    padding-inline: 16px;
    margin-inline: auto;
    border-radius: 10px;
  }

  @media (min-width: 1200px) {
    width: min(calc(100% - 60px * 2), 960px);
    padding-inline: 30px;
  }
}

/* 設定・戻るボタン */
.page-heatmap__btn {
  margin-block: 25px 13px;
  width: min(calc(100% - 16px * 2), 960px);
  margin-inline: auto;

  @media (min-width: 768px) {
    width: min(calc(100% - 60px * 2), 960px);
  }
}

/* 絞り込みフィルター */
.page-heatmap__filters {
  margin-top: 30px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;

  input,
  select {
    width: fit-content;
    height: 45px;
    border-radius: 10px;
    border: 1px solid #ccc;
    background: #fff;
    padding-block: 10px;
    padding-inline: 15px;
  }

  .input::placeholder {
    color: #b2b2b2;
  }

  /* 反映ボタン */
  button {
    display: inline-block;
    inline-size: fit-content;
    height: 45px;
    padding-block: 10px;
    padding-inline: 15px;
    font-size: 0.875rem;
    border: none;
    border-radius: 5px;
    background: #2da4a7;
    color: #fff;
    touch-action: manipulation;
    user-select: none;
    transition: all 0.3s ease;
  }
}

@media (any-hover: hover) {
  .page-heatmap__filters button:hover {
    opacity: 0.6;
  }
}

.page-heatmap__heading {
  margin-top: 60px;
  color: #333;
  font-size: 1.125rem;
  font-weight: 600;
}

/* テーブル */
.page-heatmap__table {
  margin-top: 20px;
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;

  th,
  td {
    padding: 8px 12px;
    border-bottom: 1px solid #ddd;
    text-align: left;
    word-break: break-all;
  }

  /* 列幅の比率を設定 */
  th:first-child,
  td:first-child {
    width: 60%;

    @media (min-width: 768px) {
      width: 75%;
    }
  }

  th:last-child,
  td:last-child {
    width: 40%; /* ユーザー数列 */
    text-align: center;

    @media (min-width: 768px) {
      width: 25%; /* ユーザー数列 */
    }
  }

  th {
    background: #f8f8f8;
    text-align: center;
  }

  a.page-link {
    color: #007bff;
    text-decoration: none;
    word-break: break-all;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4; /* 行間を調整 */
  }

  a.page-link:hover {
    text-decoration: underline;
  }
}

/* setting.php */
/* form */
.page-heatmap__setting-form {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page-heatmap__setting-form-col {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

/* 保存するボタン */
.page-heatmap__setting-form-btn {
  width: min(100%, 250px);
  margin-inline: auto;
}

/* ドメインを削除するボタン */
.page-heatmap__setting-delete-btn {
  margin-top: 0.5em;
  width: min(100%, 250px);
  margin-inline: auto;
}

.page-heatmap__setting-code-desc {
  margin-top: 60px;
}

/* 生成されるJavaScriptコード */
.page-heatmap__setting-code {
  margin-top: 10px;
  padding: 0.85em;
  background: #f6f8fa;
  color: #24292f;
  border: 1px solid #d0d7de;
  border-radius: 5px;
  font-family: "SFMono-Regular", "Consolas", "Liberation Mono", "Menlo",
    monospace;
  font-size: 1rem;
  overflow: hidden;
  cursor: pointer; /* クリック可能であることを示す */
  transition: all 0.2s ease; /* ホバー効果のアニメーション */
  position: relative; /* ツールチップ用 */
}

@media (any-hover: hover) {
  /* ホバー効果 */
  .page-heatmap__setting-code:hover {
    background: #e6f3ff;
    border-color: #0969da;
  }
}

/* コピー完了時の表示 */
.page-heatmap__setting-code.copied {
  background: #e9f6f3;
  border-color: #0969da;
}

/* ツールチップ表示 */
.page-heatmap__setting-code::after {
  content: "クリックでコピー";
  position: absolute;
  top: 5px;
  right: 8px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  font-size: 0.6875rem;
  padding: 2px 6px;
  border-radius: 3px;
  font-family: sans-serif;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.page-heatmap__setting-code:hover::after {
  opacity: 1;
}

.page-heatmap__setting-code.copied::after {
  content: "コピーしました！";
  background: #28a745;
  opacity: 1;
}

.page-heatmap__setting-code pre {
  margin: 0;
  padding: 0;
  white-space: pre-wrap; /* 追加：適切な折り返し */
  word-wrap: break-word; /* 追加：長い単語の折り返し */
  overflow-wrap: break-word; /* 追加：モダンブラウザ対応 */
  line-height: 1.4; /* 追加：読みやすい行間 */
}

.page-heatmap__setting-code code {
  font-family: inherit;
  background: none;
  padding: 0;
  border: none;
  color: inherit;
}

/* アラートメッセージ */
.page-heatmap__success,
.page-heatmap__errors {
  margin-top: 15px;
  display: inline flex;
  flex-direction: column;
  padding: 10px 15px;
  border-radius: 5px;
}

.page-heatmap__success {
  background: #e9f6f3;
}

.page-heatmap__errors {
  background: #f6e9e9;
}

/* detail.php */
.page-heatmap__detail {
  background: #ececec;
}

.page-heatmap__toolbar {
  background: #2da4a7;
  color: #fff;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;

  a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
  }

  input,
  select {
    padding: 4px 6px;
    font-size: 0.875rem;
    border-radius: 4px;
    border: 1px solid #ccc;
    background: #fff;
    color: #000;
  }

  .input::placeholder,
  .select::placeholder {
    color: #b2b2b2;
  }

  button {
    padding: 4px 10px;
    font-size: 0.875rem;
    border: none;
    border-radius: 4px;
    background: white;
    color: #2da4a7;
    cursor: pointer;
    transition: all 0.3s ease;
  }

  button:hover {
    opacity: 0.6;
  }
}

.wrap {
  display: flex;
  justify-content: center;
  padding: 24px;

  /* iframe出力部分 */
  iframe {
    width: 100%;
    height: 100vh;
    border: 0;
  }
}

/* ********** */
/* トライアル期間中のバナー(クライアントのみ) */
/* ********** */
.trial-active {
  background: linear-gradient(
    135deg,
    #667eea 0%,
    #764ba2 25%,
    #f093fb 50%,
    #4facfe 75%,
    #667eea 100%
  );
  background-size: 400% 400%;
  color: #fff;
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 10px;
  animation: aurora-flow 8s ease infinite;
  position: relative;
  overflow: hidden;

  @media (min-width: 768px) {
    padding: 10px 16px;
  }
}

@keyframes aurora-flow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.trial-active__content {
  display: grid;
  gap: 10px;

  @media (min-width: 768px) {
    align-items: center;
    justify-content: flex-start;
    grid-template-columns: auto auto 1fr;
  }

  /* トライアルバッジ */
  strong {
    display: inline-block;
    inline-size: min(100%, 150px);
    margin-inline: auto;
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
    text-wrap: nowrap;
    white-space: nowrap;

    @media (min-width: 768px) {
      margin-inline: 0;
    }
  }

  /* 残日数 */
  p {
    font-size: 1.125rem;
    font-weight: 600;
    text-align: center;
  }
}

.trial-active__btn {
  inline-size: min(100%, 170px);
  margin-inline: auto;
  background: color-mix(in srgb, #fff 90%, transparent);
  color: #667eea;
  padding: 10px 16px;
  border-radius: 6px;
  border: 1px solid color-mix(in srgb, #fff 90%, transparent);
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  text-wrap: nowrap;
  white-space: nowrap;

  @media (min-width: 768px) {
    margin-inline: 0;
    justify-self: flex-end;
  }
}

@media (any-hover: hover) {
  .trial-active__btn:hover {
    scale: 1.03;
  }
}

/* ********** */
/* トライアル期間中終了後のモーダル&オーバーレイ(クライアントのみ) */
/* ********** */
/* トライアル期間終了時のもやがけUI */
.trial-expired-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px); /* Safari対応 */
  background: rgba(255, 255, 255, 0.8);
  z-index: 9999;
}

/* トライアル期間終了後のモーダル */
.subscription-prompt-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(
    135deg,
    #667eea 0%,
    #764ba2 25%,
    #f093fb 50%,
    #4facfe 75%,
    #667eea 100%
  );
  background-size: 400% 400%;
  color: #fff;
  padding: 24px 16px;
  border-radius: 8px;
  width: 90%;
  max-width: 600px;
  overflow: hidden;
  z-index: 10000;
}

.subscription-prompt-modal__content {
  display: grid;
  justify-content: center;
}

.subscription-prompt-modal__title {
  font-size: 1.25rem;
  font-weight: 600;
}

.subscription-prompt-modal__block {
  margin-top: 10px;

  p {
    font-size: 0.875rem;
    line-height: 1.6;
  }
}

/* ボタンアクション用コンテナ */
.subscription-prompt-modal__actions {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.subscription-prompt-modal__btn {
  inline-size: min(100%, 170px);
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  text-wrap: nowrap;
  white-space: nowrap;
  text-decoration: none;
  border: none;
  outline: none;
}

/* プライマリボタン（有料プランに登録） */
.subscription-prompt-modal__btn--primary {
  background: color-mix(in srgb, #fff 90%, transparent);
  color: #667eea;
  border: 1px solid color-mix(in srgb, #fff 90%, transparent);
  font-weight: 700;
}

@media (any-hover: hover) {
  .subscription-prompt-modal__btn--primary:hover {
    scale: 1.03;
    background: #fff;
  }
}

/* クライアント新規追加ページ */
/* ************* */
/* client/proposal.php */
/* ************* */
.client-proposal {
  padding-bottom: 60px; /* ボトムナビゲーション分 */

  @media (min-width: 768px) {
    padding-bottom: 0;
  }
}

.client-proposal__container {
  @media (min-width: 768px) {
    display: grid;
    grid-template-columns: 260px 1fr;
  }
}

/* **************** */
/* サイドナビゲーション */
/* **************** */
.client-proposal__sidenav {
  width: 100%;
  position: sticky;
  top: 0;
  background-color: #fff;
  z-index: 100;

  @media (min-width: 768px) {
    position: fixed;
    top: 60px;
    width: 260px;
    height: 100%;
    padding-bottom: 60px;
    overflow-y: auto;
    background-color: #f9f9f9;
  }
}

.client-proposal__sidenav::-webkit-scrollbar {
  display: none;
}

.client-proposal__sidenav-content {
  padding: 14px;

  @media (min-width: 768px) {
    padding: 30px 20px;
    display: flex;
    min-height: 100%;
    flex-direction: column;
  }
}

/* 戻るボタン + 表示サイト選択 */
.client-proposal__sidenav-heading {
  display: grid;
  grid-template-columns: 32px 1fr;
  align-items: center;
  gap: 10px;

  @media (min-width: 768px) {
    grid-template-columns: 1fr;
  }
}

/* 戻るボタン */
.client-proposal__sidenav-back-btn {
  display: grid;
  place-content: center;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #ccc;
  background-color: #f9f9f9;

  @media (min-width: 768px) {
    display: none;
  }
}

/* 表示サイト選択 */
.client-proposal__sidenav-url-select {
  position: relative;
  display: block;

  @media (min-width: 768px) {
    padding-block: 5px;
    border-radius: 17px;
    background: #fff;
  }

  select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 100%;
    background-color: #ffffff;
    padding-inline: 15px 2em;
    overflow: hidden;
    color: #333;
    text-overflow: ellipsis;
    font-family: "Noto Sans JP";
    font-size: 14px;
    font-weight: 400;
    line-height: 1.7;
    cursor: pointer;
  }
}

.client-proposal__sidenav-url-select-arrow {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%) rotate(0deg);
  pointer-events: none;
}

/* PC時のみボディ */
.client-proposal__sidenav-pc-body {
  display: none;

  @media (min-width: 768px) {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
  }
}

/* 運用判定 */
.client-proposal__sidenav-pc-status {
  margin-top: 20px;
  padding: 15px 20px;
  border-radius: 5px;
  background-color: #fff;
}

/* 運用判定ラベル */
.client-proposal__sidenav-pc-status-label {
  color: #2da4a7;
  font-family: "Noto Sans JP";
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
}

/* 運用判定スコア */
.client-proposal__sidenav-pc-status-score {
  margin-top: 15px;
  inline-size: fit-content;
  margin-inline: auto;
}

/* 集計データ */
.client-proposal__sidenav-pc-data-graph {
  margin-top: 20px;
  padding: 15px 20px;
  border-radius: 5px;
  background: #fff;
}

.client-proposal__sidenav-pc-data-graph-link {
  display: grid;
  grid-template-columns: 1fr 10px;
  align-items: center;
  gap: 10px;
  color: #2da4a7;
  font-family: "Noto Sans JP";
  font-size: 16px;
  font-weight: 600;
}

/* サンプルグラフ */
.client-proposal__sidenav-pc-data-graph-chart {
  margin-top: 15px;

  img {
    height: 60px;
  }
}

/* コンバージョン分析 */
.client-proposal__sidenav-pc-data-graph-chart-cva {
  margin-top: 15px;

  img {
    height: 45px;
  }
}

/* サンプルマップ */
.client-proposal__sidenav-pc-data-map {
  margin-top: 15px;

  img {
    height: 45px;
  }
}

.client-mobile-tab__main-data-graph-map-cva {
  margin-top: 15px;

  img {
    aspect-ratio: 295 / 76;
    object-fit: contain;
  }
}

/* 施策提案 */
.client-proposal__sidenav-pc-proposal {
  margin-block: 20px;
  padding: 15px 20px;
  border-radius: 5px;
  background: #fff;
}

/* 提案タイトル */
.client-proposal__sidenav-pc-proposal-title {
  color: #2da4a7;
  font-family: "Noto Sans JP";
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
}

/* 提案テキスト */
.client-proposal__sidenav-pc-proposal-text {
  margin-top: 10px;
  color: #333;
  font-family: "Noto Sans JP";
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 21px; /* 150% */
}

/* 提案ボタンコンテナ */
.client-proposal__sidenav-pc-proposal-btn-container {
  margin-top: 10px;
  display: grid;
  gap: 9px;
  counter-reset: proposal-btn;
}

/* 提案ボタン */
.client-proposal__sidenav-pc-proposal-btn {
  display: grid;
  grid-template-columns: 1em 1fr 8px;
  align-items: center;
  gap: 5px;
  padding: 5px 15px;
  border-radius: 10px;
  border: 1px solid #ccc;
  background-color: #fff;
  overflow: hidden;
  color: #333;
  font-family: "Noto Sans JP";
  font-size: 14px;
  font-weight: 500;
  line-height: 24px;
}

.client-proposal__sidenav-pc-proposal-btn p {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

/* 提案ボタンカウンター */
.client-proposal__sidenav-pc-proposal-btn-counter {
  counter-increment: proposal-btn;
  color: #2da4a7;
  font-family: Roboto;
  font-size: 14px;
  font-weight: 700;
  line-height: 24px; /* 171.429% */
}

.client-proposal__sidenav-pc-proposal-btn-counter::before {
  content: counter(proposal-btn, decimal-leading-zero);
}

/* **************** */
/* 提案メイン画面 */
/* **************** */
.client-proposal__main {
  min-height: calc(100vh - (63px + 56px));

  @media (min-width: 768px) {
    background-color: #eee;
    padding: 30px;
    min-height: calc(100vh - 60px);
  }
}

/* データが無い場合の表示 */
.client-proposal__main-empty {
  padding: 30px;
  border-radius: 5px;
  background: #eee;
  margin: 20px;

  @media (min-width: 768px) {
    background: #fff;
    margin: 0;
  }
}

.client-proposal__main-empty-content {
  width: min(100%, 400px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 10px;

  p {
    display: grid;
    place-content: center;
    height: fit-content;
    border-radius: 5px;
    background: #fff;
    padding: 10px;
    color: #555;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
  }

  img {
    width: 83px;
    height: 121px;
    aspect-ratio: 83 / 121;
  }
}

/* スマホ時のみタブ切り替えヘッダー */
.client-proposal__mobile-tabs {
  display: block;
  position: sticky;
  top: 63px;
  z-index: 100;
  background: #fff;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;

  @media (min-width: 768px) {
    display: none;
  }
}

/* Chrome, Safari, Opera用のスクロールバー非表示 */
.client-proposal__mobile-tabs::-webkit-scrollbar {
  display: none;
}

.client-proposal__mobile-tabs .client-proposal__main-heading-list {
  display: flex !important;
  grid-template-columns: none !important;
  gap: 0;
  white-space: nowrap;
  /* width: max-content; */
  /* min-width: 100%; */
}

.client-proposal__mobile-tabs .client-proposal__main-item {
  flex: 1;
  min-width: 60px;
}

/* アクティブなタブは幅を広く */
.client-proposal__mobile-tabs .client-proposal__main-item--active {
  flex: 2.2;
  min-width: 110px;
}

.client-proposal__main-content {
  display: none;

  @media (min-width: 768px) {
    display: block;
    border-radius: 0 0 5px 5px;
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.25);
    border-radius: 10px;
  }
}

/* スマホ時アクティブな提案のみ表示 */
.client-proposal__main-content--active {
  display: block;
}

.client-proposal__main-content + .client-proposal__main-content {
  @media (min-width: 768px) {
    margin-top: 40px;
  }
}

/* 提案切り替えタブヘッダー */
.client-proposal__main-heading {
}

/* 提案リスト */
/* .client-proposal__main-heading-list {
  display: grid;
  grid-template-columns: repeat(5, auto);

  @media (min-width: 768px) {
    display: none;
  }
} */

.client-proposal__main-item {
  button {
    display: grid;
    grid-template-columns: repeat(2, auto);
    gap: 5px;
    align-items: center;
    place-content: center;
    inline-size: 100%;
    padding: 5px 12px;
    border-radius: 7px 7px 0 0;
    background-color: #2da4a7;
    color: #e9f6f3;
    text-align: center;
    font-family: Roboto;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.9;
    opacity: 0.5;

    /* 数字 */
    span {
      color: #e9f6f3;
      font-family: Roboto;
      font-size: 1.25rem;
      font-weight: 700;
      line-height: 1.35;
    }
  }
}

/* アクティブな提案 */
.client-proposal__main-item--active {
  button {
    opacity: 1;
  }
}

/* PCのみ */
.client-proposal__main-heading-title-pc {
  display: none;

  @media (min-width: 768px) {
    display: grid;
    place-content: center;
    border-radius: 10px 10px 0 0;
    background-color: #2da4a7;
    padding: 15px 20px;

    h2 {
      display: grid;
      grid-template-columns: auto auto;
      align-items: center;
      gap: 10px;
      text-align: center;
      color: #fff;
      text-align: center;
      font-family: Roboto;
      font-size: 20px;
      font-weight: 700;
      line-height: 1.35;

      /* 提案連番 */
      span {
        font-size: 36px;
        line-height: 1;
      }
    }
  }
}

/* 提案内容ラップ */
.client-proposal__main-heading-content {
  position: relative;
  background-color: #fff9e8;
  /* padding: 20px 70px 15px 25px; */
}

.client-proposal__main-heading-content-inner {
  position: relative;
  padding: 20px 70px 15px 25px;

  @media (min-width: 768px) {
    max-width: 678px;
    margin-inline: auto;
  }
}

/* 提案ベイト画像 */
.client-proposal__main-heading-content-inner::after {
  position: absolute;
  content: "";
  bottom: 0;
  right: 0;
  width: 91px;
  height: 91px;
  background-image: url(../img/vate-teian01.png);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

/* 提案番号別のベイトくん画像 */
.client-proposal__main-heading-content-inner.proposal-1::after {
  background-image: url(../img/vate-teian01.png);
}
.client-proposal__main-heading-content-inner.proposal-2::after {
  background-image: url(../img/vate-teian02.png);
}
.client-proposal__main-heading-content-inner.proposal-3::after {
  background-image: url(../img/vate-teian03.png);
}
.client-proposal__main-heading-content-inner.proposal-4::after {
  background-image: url(../img/vate-teian04.png);
}
.client-proposal__main-heading-content-inner.proposal-5::after {
  background-image: url(../img/vate-teian05.png);
}
.client-proposal__main-heading-content-inner.proposal-6::after {
  background-image: url(../img/vate-teian06.png);
}
.client-proposal__main-heading-content-inner.proposal-7::after {
  background-image: url(../img/vate-teian07.png);
}

@media screen and (min-width: 768px) {
  .client-proposal__main-heading-content-inner::after {
    right: 5%;
    width: 128px;
    height: 128px;
  }
}

/* 提案内容テキスト */
.client-proposal__main-heading-content-text {
  border-radius: 5px;
  border: 3px solid #ccc;
  background: #fff;
  padding: 15px;
  color: #555;
  text-align: center;
  font-family: "Noto Sans JP";
  font-size: 20px;
  font-style: normal;
  font-weight: 700;
  line-height: 27px; /* 135% */

  @media (min-width: 768px) {
    /* max-width: 583px; */
    padding: 40px;
    /* margin-inline: auto; */
  }
}

.client-proposal__main-body {
  background-color: #fff;
}

/* ********** */
/* 1セクション */
/* ********** */
.client-proposal__main-body-section {
  padding-block: 30px;
  padding-inline: 25px;

  @media (min-width: 768px) {
    padding-block: 40px;
    padding-inline: 40px;
    border-radius: 0 0 5px 5px;
    max-width: 1300px;
    margin-inline: auto;
  }
}

/* 共通セクションタイトル */
.client-proposal__main-body-section-title {
  position: relative;
  inline-size: fit-content;
  margin-inline: auto;
  padding-block: 0 15px;
  padding-inline: 30px;
  border-radius: 48px;
  border-bottom: 1px solid #333;
  color: #2da4a7;
  text-align: center;
  font-family: "Noto Sans JP";
  font-size: 20px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}

/* 下向き縁だけ三角 */
.client-proposal__main-body-section-title::after {
  position: absolute;
  content: "";
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 100%);
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid #333;
}

/* 中抜き三角形の縁 */
.client-proposal__main-body-section-title::before {
  position: absolute;
  content: "";
  bottom: 3px;
  left: 50%;
  transform: translate(-50%, 100%);
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 12px solid #fff;
  z-index: 1;
}

/* 全体に共通する改善方針 */
.client-proposal__main-body-section-item-container {
  margin-top: 20px;
  display: grid;
  gap: 15px;

  @media (min-width: 1200px) {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* アイテムコンポーネント */
.client-proposal__main-body-section-item {
  position: relative;
  padding: 20px 26px;
  border: 1px solid #2da4a7;
}

/* 左上の内向き三角 */
.client-proposal__main-body-section-item::before {
  position: absolute;
  content: "";
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 0 20px 20px;
  border-color: transparent transparent #2da4a7 transparent;
}

/* 左上の外向き三角で左上の角のボーダーを打ち消す */
.client-proposal__main-body-section-item::after {
  position: absolute;
  content: "";
  top: -1px;
  left: -3px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 24px 24px 0 0;
  border-color: #fff transparent transparent transparent;
}

.client-proposal__main-body-section-item-title {
  color: #555;
  font-family: "Noto Sans JP";
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: 24px; /* 150% */
  text-align: center;
}

.client-proposal__main-body-section-item-text {
  margin-top: 10px;
  color: #333;
  font-family: "Noto Sans JP";
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 24px;
  word-break: break-all;
  overflow-wrap: break-word;

  /* リンク */
  a {
    color: #2da4a7;
    text-decoration: underline;
    word-break: break-all;
    overflow-wrap: break-word;
  }
}

/* 注釈 */
.client-proposal__main-body-section-item-note {
  margin-top: 10px;
  color: #666;
  font-family: "Noto Sans JP";
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 24px; /* 171.429% */

  @media (min-width: 768px) {
    text-align: center;
  }
}

/* 一言提案するベイト */
.client-proposal__main-body-section-advice {
  margin-top: 30px;
  display: grid;

  @media (min-width: 768px) {
    margin-top: 45px;
    max-width: 806px;
    margin-inline: auto;
  }
}

/* スマホ時のみ、PC時非表示 */
.client-proposal__main-body-section-advice-sp {
  @media (min-width: 768px) {
    display: none;
  }
}

/* PC時のみ、スマホ時非表示 */
.client-proposal__main-body-section-advice-pc {
  display: none;

  @media (min-width: 768px) {
    display: block;
  }
}

.client-proposal__main-body-section-advice-heading {
  display: grid;
  grid-template-columns: 70px 1fr;
  align-items: center;
  gap: 1em;

  @media (min-width: 768px) {
    margin-top: 20px;
    grid-template-columns: 83px 1fr;
  }
}

/* ベイト */
.client-proposal__main-body-section-advice-img {
  width: 70.294px;
  height: fit-content;

  img {
    width: 100%;
    height: fit-content;
    object-fit: contain;
  }
}

/* 吹き出し */
.client-proposal__main-body-section-advice-speech-bubble {
  position: relative;
  border-radius: 20px;
  background: #e9f6f3;
  padding: 5px 15px;
  color: #2da4a7;
  font-family: "Noto Sans JP";
  font-size: 18px;
  font-style: normal;
  font-weight: 700;
  line-height: 27px; /* 150% */

  @media (min-width: 768px) {
    inline-size: fit-content;
  }
}

/* 吹き出しの左向き矢印 */
.client-proposal__main-body-section-advice-speech-bubble::before {
  position: absolute;
  content: "";
  top: 50%;
  left: -10px;
  transform: translate(0, -50%);
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 7px 10px 7px 0;
  border-color: transparent #e9f6f3 transparent transparent;
}

@media screen and (min-width: 768px) {
  /* PC時 - 吹き出しの下向き矢印、下部配置*/
  .client-proposal__main-body-section-advice-speech-bubble::before {
    position: absolute;
    content: "";
    top: auto;
    bottom: -10px;
    left: 10%;
    transform: translate(-50%, 0);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 7px 0 7px;
    border-color: #e9f6f3 transparent transparent transparent;
  }
}

/* 説明 */
.client-proposal__main-body-section-advice-description {
  margin-top: 10px;
  color: #555;
  font-family: "Noto Sans JP";
  font-size: 18px;
  font-style: normal;
  font-weight: 500;
  line-height: 27px; /* 150% */

  @media (min-width: 768px) {
    margin-top: 0;
    padding-block: 5px;
  }
}

/* 改善すべきページ一覧 */
.client-proposal__main-body-section-advice-page-list {
  margin-top: 15px;
  border-radius: 5px;
  border: 1px solid #bbb;
  padding: 5px 15px;
  box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.15) inset;

  @media (min-width: 768px) {
    margin-top: 0;
  }
}

/* 改善すべきページ一覧タイトル */
.client-proposal__main-body-section-advice-page-list-title {
  color: #333;
  font-family: "Noto Sans JP";
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
  line-height: 24px; /* 171.429% */
}

.client-proposal__main-body-section-advice-page-list-texts {
  font-size: 14px;
  display: grid;
  gap: 5px;

  li {
    inline-size: 100%;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 3px;
    overflow: hidden;
  }

  /* リンク */
  a {
    display: grid;
    inline-size: fit-content;
    color: #666;
    text-overflow: ellipsis;
    text-decoration: underline;
    grid-template-columns: auto 14px;
    align-items: center;
    gap: 5px;
    text-wrap: nowrap;
    white-space: nowrap;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
  }
}

/* 改善優先度 TOP３ページの具体的改善案セクション */
.client-proposal__main-body-section-proposal {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid #bbb;

  @media (min-width: 768px) {
    margin-top: 40px;
    padding-top: 40px;
  }
}

.client-proposal__main-body-section-title {
}

/* 提案リスト */
.client-proposal__main-body-section-proposal-list {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;

  @media (min-width: 1400px) {
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    max-width: 100%;
  }
}

/* １ページ分の提案アイテム */
.client-proposal__main-body-section-proposal-container-item {
  border-radius: 10px;
  border: 1px solid #bbb;
  width: 100%;

  @media (min-width: 768px) {
    max-width: 100%;
  }
}

/* 提案アイテムヘッダー */
.client-proposal__main-body-section-proposal-container-item-heading {
  padding: 12px 17px;
  border-radius: 10px 10px 0 0;
  background-color: #eee;
  overflow: hidden;
}

/* ページタイトル */
.client-proposal__main-body-section-proposal-container-item-title {
  display: grid;
  grid-template-columns: 13px 1fr;
  align-items: center;
  gap: 10px;
  color: #333;
  font-family: "Noto Sans JP";
  font-size: 16px;
  font-weight: 500;
  text-decoration: underline;

  span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* ページリンク */
.client-proposal__main-body-section-proposal-container-item-page-link {
  color: #666;
  font-size: 14px;
  text-decoration: underline;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-line-clamp: 1;
}

/* 提案アイテムボディ */
.client-proposal__main-body-section-proposal-container-item-body {
  padding-inline: 20px;
}

/* 課題セクション */
.client-proposal__main-body-section-proposal-container-item-issue {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 15px;
  padding-block: 20px;
}

.client-proposal__main-body-section-proposal-container-item-issue-left {
  height: fit-content;
  display: grid;
  justify-items: center;
  gap: 2px;

  span {
    color: #e53e62;
    font-family: "Noto Sans JP";
    font-size: 14px;
    font-style: normal;
    font-weight: 700;
    line-height: 24px; /* 171.429% */
  }
}

.client-proposal__main-body-section-proposal-container-item-issue-right {
  color: #555;
  font-family: "Noto Sans JP";
  font-size: 18px;
  font-style: normal;
  font-weight: 600;
  line-height: 27px; /* 150% */
}

/* 課題アイテム */
.client-proposal__main-body-section-proposal-container-item-proposal,
.client-proposal__main-body-section-proposal-container-item-effect,
.client-proposal__main-body-section-proposal-container-item-action {
  --pop-height: 24px;

  position: relative;
  padding-block: 30px 25px;
  color: #333;
  font-size: 16px;
}

/* 施策実行 */
.client-proposal__main-body-section-proposal-container-item-action {
  display: grid;
  gap: 10px;
}

/* 改善案ポップ */
.client-proposal__main-body-section-proposal-container-item-proposal::before,
.client-proposal__main-body-section-proposal-container-item-effect::before,
.client-proposal__main-body-section-proposal-container-item-action::before {
  position: absolute;
  content: "改善案";
  top: 0;
  left: 0;
  width: fit-content;
  height: var(--pop-height);
  padding: 2px 10px;
  border-radius: 18px;
  background-color: #4cb98f;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  z-index: 2;
}

.client-proposal__main-body-section-proposal-container-item-effect::before {
  content: "効果";
  background-color: #2da4a7;
}

.client-proposal__main-body-section-proposal-container-item-action::before {
  content: "施策実行";
  background-color: #fff;
  border: 1px solid #999;
  color: #333;
  font-weight: 400;
}

/* 水平線 */
.client-proposal__main-body-section-proposal-container-item-proposal::after,
.client-proposal__main-body-section-proposal-container-item-effect::after,
.client-proposal__main-body-section-proposal-container-item-action::after {
  position: absolute;
  content: "";
  top: 0;
  left: 0;
  transform: translateY(calc(var(--pop-height) / 2));
  width: 100%;
  height: 1px;
  background-color: #4cb98f;
  z-index: 1;
}

.client-proposal__main-body-section-proposal-container-item-effect::after {
  background-color: #2da4a7;
}

.client-proposal__main-body-section-proposal-container-item-action::after {
  background-color: #999;
}

/* 区切りのポリゴン */
.client-proposal__main-body-section-proposal-container-item-proposal-polygon {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-inline: auto;
}

/* 専門家にチャット相談ボタン */
.client-proposal__main-body-section-proposal-container-item-action-btn {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  padding: 6px 10px;
  border-radius: 10px;
  background-color: #fff;
  transition: all 0.3s ease;
}

@media (any-hover: hover) {
  .client-proposal__main-body-section-proposal-container-item-action-btn:hover {
    background-color: #f9f9f9;
  }
}

.client-proposal__main-body-section-proposal-container-item-action-btn-img {
  width: 50px;
  height: 50px;
  display: grid;
  place-content: center;
  border-radius: 10px;
  border: 1px solid #ccc;
  background-color: #fff;
  padding: 5px;

  /* 画像本体 */
  img {
    width: 30px;
    height: 30px;
    object-fit: contain;
  }
}

.client-proposal__main-body-section-proposal-container-item-action-btn-content {
  display: grid;
  align-items: center;
  color: #333;
  font-size: 14px;
  font-weight: 700;

  p:nth-child(2) {
    color: #666;
    font-family: "Noto Sans JP";
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px; /* 171.429% */
  }

  /* コイン画像 */
  img {
    width: 12px;
    height: 12px;
    object-fit: contain;
  }

  /* 2C */
  span {
    color: #2da4a7;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.7;
  }
}

/* 画像を含む場合のみ(チャット相談ボタン) */
.client-proposal__main-body-section-proposal-container-item-action-btn-content:has(
    img
  )
  p:nth-child(2) {
  display: grid;
  grid-template-columns: 12px auto 1fr;
  align-items: center;
  gap: 3px;
}

/* 一言アドバイス */
.client-proposal__main-body-section-one-point {
  margin-top: 15px;
  position: relative;
  display: grid;
  grid-template-columns: 15px 1fr;
  gap: 10px;
  border-radius: 5px;
  background-color: #f9f9f9;
  padding-block: 15px;
  padding-inline: 15px 91px;
  color: #333;
  font-size: 16px;
  font-weight: 500;

  @media (min-width: 768px) {
    margin-top: 50px;
    align-items: center;
    padding-inline: 25px 135px;
    font-size: 18px;
  }
}

/* ベイト */
.client-proposal__main-body-section-one-point::after {
  position: absolute;
  content: "";
  bottom: 0;
  right: 15px;
  width: 76px;
  height: 82px;
  background: url(../img/vate-one-point.png);
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
}

@media screen and (min-width: 768px) {
  .client-proposal__main-body-section-one-point::after {
    right: 25px;
    width: 100px;
    height: 89px;
  }
}

/* まとめと今後のアクション */
.client-proposal__main-body-section-summary {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid #bbb;

  @media (min-width: 768px) {
    margin-top: 40px;
    padding-top: 40px;
  }
}

.client-proposal__main-body-section-summary-text {
  margin-top: 30px;
  color: #333;
  font-size: 16px;

  a {
    color: #2da4a7;
    text-decoration: underline;
  }
}

.client-proposal__main-body-section-summary-monitoring-text {
  margin-top: 15px;
  color: #333;
  font-size: 16px;
  font-weight: 600;
}

/* モニタリングアイテムリスト */
.client-proposal__main-body-section-summary-monitoring-list {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
}

/* モニタリングアイテムコンポーネント */
.client-proposal__main-body-section-summary-monitoring-item {
  a {
    display: grid;
    grid-template-columns: 16px 1fr 16px;
    gap: 5px;
    align-items: center;
    inline-size: fit-content;
    border-radius: 22px;
    border: 1px solid #ccc;
    box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.15);
    padding: 10px 20px;
    color: #666;
    font-size: 16px;
    line-height: 1.5;
  }
}

/* **************** */
/* 施策提案ページ */
/* **************** */
.client-detail {
  padding-bottom: 60px; /* ボトムナビゲーション分 */

  @media (min-width: 768px) {
    padding-bottom: 0;
  }
}

.client-detail__container {
  @media (min-width: 768px) {
    display: grid;
    grid-template-columns: 260px 1fr;
  }
}

/* **************** */
/* サイドナビゲーション */
/* **************** */
.client-detail__sidenav {
  width: 100%;
  position: sticky;
  top: 0;
  background-color: #eee;
  z-index: 100;

  @media (min-width: 768px) {
    position: fixed;
    top: 60px; /* header高さ分 */
    width: 260px;
    height: 100%;
    overflow-y: auto;
    background-color: #f9f9f9;
  }
}

/* コンバージョン分析マインドマップ */
.client-detail__sidenav--cva {
  background-color: #fff;

  @media (min-width: 768px) {
    background-color: #f9f9f9;
  }
}

.client-detail__sidenav-content {
  padding: 14px;

  @media (min-width: 768px) {
    padding: 30px 20px;
    display: flex;
    min-height: calc(100% - 60px);
    flex-direction: column;
  }
}

/* 戻るボタン + 表示サイト選択 */
.client-detail__sidenav-heading {
  display: grid;
  grid-template-columns: 32px 1fr;
  align-items: center;
  gap: 10px;

  @media (min-width: 768px) {
    grid-template-columns: 1fr;
  }
}

/* YouTube個別詳細ページ */
.client-detail__sidenav-heading--youtube {
  display: block;
  inline-size: fit-content;
}

/* 戻るボタン */
.client-detail__sidenav-back-btn {
  display: grid;
  place-content: center;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #ccc;
  background-color: #f9f9f9;

  @media (min-width: 768px) {
    display: none;
  }
}

/* YouTube個別詳細ページ */
.client-detail__sidenav-back-btn--youtube {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  color: #666;
  font-size: 16px;
}

/* 戻るアイコン */
.client-detail__sidenav-back-btn--youtube-icon {
  display: grid;
  place-content: center;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #ccc;
  background-color: #f9f9f9;

  @media (min-width: 768px) {
    border: none;
    border-radius: none;
    padding: 0;
  }
}

/* 表示サイト選択 */
.client-detail__sidenav-url-select {
  display: grid;
  grid-template-columns: 15px 1fr 10px;
  align-items: center;
  gap: 5px;

  @media (min-width: 768px) {
    padding: 5px 15px;
    border-radius: 17px;
    background: #fff;
  }

  select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 100%;
    padding-inline: 0 1em;
    overflow: hidden;
    color: #333;
    text-overflow: ellipsis;
    font-family: "Noto Sans JP";
    font-size: 14px;
    font-weight: 400;
    line-height: 1.7;
  }
}

/* 左のインジケーター*/
.client-detail__sidenav-url-select-indicator {
  width: 15px;
  height: 15px;
  background-color: #d9d9d9;
}

/* 右側のドロップダウン矢印 */
/* .client-detail__sidenav-url-select-arrow {
} */

.client-detail__sidenav__sidenav-pc-body {
  display: none;

  @media (min-width: 768px) {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
  }
}

/* 分析結果 */
.client-detail__sidenav__sidenav-result {
  margin-top: 20px;
  padding: 15px 20px;
  border-radius: 5px;
  background-color: #fff;
}

.client-detail__sidenav__sidenav-result-link {
  display: grid;
  grid-template-columns: 1fr 8px;
  align-items: center;
  color: #2da4a7;
  font-size: 16px;
  font-weight: 600;
}

.client-detail__sidenav__sidenav-result-icon-text {
  margin-top: 10px;
  position: relative;
  background-color: #fff9e8;
  padding-block: 11px;
  padding-inline: 20px 45px;
}

/* 提案ベイト画像 */
.client-detail__sidenav__sidenav-result-icon-text::after {
  position: absolute;
  content: "";
  bottom: 0;
  right: 0;
  width: 60px;
  height: 60px;
  background: url(../img/vate-teian01.png);
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
}

.client-detail__sidenav__sidenav-result-icon-text-content {
  border-radius: 1.356px;
  border: 2px solid #ccc;
  background: #fff;
  padding: 15px;
  color: #333;
  text-align: center;
  font-family: "Noto Sans JP";
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 7.323px; /* 52.307% */
}

.client-detail__sidenav__sidenav-result-text {
  margin-top: 10px;
  color: #333;
  font-family: "Noto Sans JP";
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 21px; /* 150% */
}

/* グラフ絞り込みフィルター */
.client-detail__sidenav__sidenav-filter {
  margin-block: 20px;
}

.client-detail__sidenav__sidenav-filter-text {
  color: #666;
  font-family: "Noto Sans JP";
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}

/* 現在選択されているリスト */
.client-detail__sidenav__sidenav-filter-list {
  margin-top: 5px;
  display: grid;
  gap: 5px;
}

.client-detail__sidenav__sidenav-filter-item {
  display: inline-block;
  inline-size: fit-content;
  padding: 5px 10px;
  border-radius: 17px;
  border: 1px solid #ccc;
  color: #333;
  font-family: "Noto Sans JP";
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 24px; /* 171.429% */
}

/* フィルター変更ボタン */
.client-detail__sidenav__sidenav-filter-button {
  margin-top: 10px;
  display: inline-block;
  border-radius: 5px;
  background: #e7e7e7;
  padding: 7px 10px;
  color: #333;
  font-family: "Noto Sans JP";
  font-size: 14px;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
}

/* ********** */
/* コンバージョン分析のみ設定ボタン */
/* ********** */
.client-detail__sidenav__sidenav-config {
  display: none;
  @media (min-width: 768px) {
    margin-top: auto;
    display: block;
    padding: 15px;
    border-top: 1px solid #ccc;
  }
}

.client-detail__sidenav__sidenav-config-btn {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 5px;
}

/* ********** */
/* 集計データmain画面 */
/* ********** */
.client-detail__main {
  background: #eee;
  padding-bottom: 74px;
  overflow-x: auto;

  @media (min-width: 768px) {
    padding-bottom: 0;
    min-height: calc(100vh - 60px);
  }
}

.client-detail__main-content {
  padding-inline: 15px;

  @media (min-width: 768px) {
    padding-block: 30px;
    padding-inline: 30px;
  }
}

/* 集計データ + 日付ピッカー */
.client-detail__main-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: 10px;

  @media (min-width: 768px) {
    padding-block: 0 10px;
  }
}

.client-detail__main-heading--youtube {
  align-items: start;
  padding-left: 5px;
}

/* 集計データ */
.client-detail__main-heading-title {
  color: #666;
  font-family: "Noto Sans JP";
  font-size: 18px;
  font-style: normal;
  font-weight: 700;
  line-height: 27px; /* 150% */
}

/* 日付ピッカー */
.client-detail__main-heading-date {
  /* inline-size: fit-content; */
  /* padding: 5px 16px; */
  /* border-radius: 17px; */
  /* border: 1px solid #ccc; */
  /* background: #fff; */

  input {
    width: 215px;
    cursor: pointer;
  }
}

/* .client-detail__main-heading-date-input {
} */

/* .client-detail__main-heading-date-separator {
} */

.client-detail__main-body {
}

/* カードコンテナ */
.client-detail__main-card-container {
  border-radius: 10px;
  background: #fff;
  padding: 10px;

  @media (min-width: 768px) {
    padding: 25px 30px;
    border-radius: 10px 10px 0 0;
  }
}

.client-detail__main-card-container--youtube {
  border-radius: 10px 10px 0 0;
}

/* PC時のみタイトル */
.client-detail__main-card-title {
  display: none;

  @media (min-width: 768px) {
    display: block;
    color: #666;
    font-size: 20px;
    font-weight: 400;
  }
}

.client-detail__main-card-container-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;

  @media (min-width: 768px) {
    padding-top: 15px;
    display: grid;
    /* grid-template-columns: repeat(auto-fit, minmax(206px, 1fr)); */
    grid-template-columns: repeat(4, 1fr);
  }
}

/* カードコンポーネント */
.client-detail__main-card {
  inline-size: 100%;
  padding-block: 15px 10px;
  padding-inline: 20px;
  border-radius: 5px;
  background-color: #f9f9f9;
}

/* グラフ描画に必要な１つ目のプロパティのカード */
.client-detail__main-card--is-choice-1 {
  border: 4px solid #2da4a7;
}

/* グラフ描画に必要な2つ目のプロパティのカード */
.client-detail__main-card--is-choice-2 {
  border: 4px solid #8ebbff;
}

/* プロパティ名 */
.client-detail__main-card-property-name {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #555;
  font-family: "Noto Sans JP";
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

/* 数値 + レート */
.client-detail__main-card-body {
  margin-top: 7px;
  inline-size: fit-content;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr auto;
  justify-content: center;
  align-items: center;
  gap: 15px;
}

/* 数値 */
.client-detail__main-card-value {
  color: #333;
  text-align: center;
  font-family: Roboto;
  font-size: 32px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;

  /* 単位 */
  span {
    padding-inline: 0.3em;
    color: #333;
    text-align: center;
    font-family: "Noto Sans JP";
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
    line-height: 28px; /* 233.333% */
  }
}

/* 評価レート */
.client-detail__main-card-rate {
  color: #e5603e;
  font-family: "Noto Sans JP";
  font-size: 14px;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
}

/* ************ */
/* チャート */
/* ************ */
.client-detail__main-chart {
  margin-top: 12px;
  border-radius: 10px;
  background: #fff;
  padding-inline: 15px;
  padding-block: 15px;

  @media (min-width: 768px) {
    margin-top: 0;
    padding-block: 15px 25px;
    padding-inline: 30px;
    border-radius: 0 0 10px 10px;
  }
}

/* YouTube個別詳細ページ */
.client-detail__main-chart--youtube {
  margin-top: 0;
  border-radius: 0 0 10px 10px;
}

/* プロパティセレクト */
.client-detail__main-chart-heading {
  display: flex;
  justify-content: space-between;
}

/* セレクト */
.client-detail__main-chart-select-wrap {
  display: flex;
  flex-direction: column;
  gap: 5px;

  @media (min-width: 768px) {
    flex-direction: row;
  }
}

/* svg + select */
.client-detail__main-chart-select {
  display: grid;
  grid-template-columns: 19px 1fr;
  align-items: center;
  gap: 5px;

  @media (min-width: 768px) {
    padding-inline: 15px;
  }

  select {
    inline-size: 100%;
    padding-block: 7px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23333' d='M6 8L0 2h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px 8px;
  }
}

/* 日付セレクト */
.client-detail__main-chart-data-picker {
  position: relative;
  display: inline-block;
  height: fit-content;

  select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    border-radius: 17px;
    border: 1px solid #ccc;
    background: #fff;
    padding: 5px 35px 5px 15px;
    overflow: hidden;
    color: #333;
    text-overflow: ellipsis;
    font-family: "Noto Sans JP";
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px; /* 171.429% */
    cursor: pointer;
  }

  &::after {
    content: "";
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 7px;
    height: 7px;
    border-right: 2px solid #333;
    border-bottom: 2px solid #333;
    pointer-events: none;
  }
}

/* SPのみフィルター */
.client-detail__main-chart-filter-container {
  padding-block: 10px;

  @media (min-width: 768px) {
    display: none;
  }
}

.client-detail__main-chart-filter-list {
  display: none;

  @media (min-width: 768px) {
    display: flex;
    align-items: center;
    gap: 3px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
  }
}

.client-detail__main-chart-filter-list::-webkit-scrollbar {
  display: none; /* Chrome, Safari and Opera */
}

.client-detail__main-chart-filter-item {
  border-radius: 17px;
  border: 1px solid #ccc;
  padding: 3px 10px;
  color: #333;
  font-family: "Noto Sans JP";
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: 24px; /* 200% */
  flex-shrink: 0;
}

/* Chart.js */
.client-detail__main-chart-graph {
  width: 100%;
  height: 400px;
  position: relative;
  margin-top: 20px;
}

.client-detail__main-chart-graph canvas {
  max-width: 100%;
  height: auto;
}

/* Y軸タイトル（レスポンシブ対応） */
.chart-axis-titles {
  display: none;
  @media (min-width: 768px) {
    margin-bottom: 5px;
    display: flex;
    justify-content: space-between;
  }
}

.chart-axis-title {
  font-size: 12px;
  color: #666;
}

.chart-axis-title--left {
  text-align: left;
}

.chart-axis-title--right {
  text-align: right;
}

/* テーブルスタイル */
.client-detail__main-chart-data-table {
  margin-top: 30px;
  overflow-x: auto;
}

.client-detail__main-chart-table {
  width: 100%;
  min-width: 800px;
  border-collapse: collapse;
  font-size: 14px;
}

/* テーブルヘッダー */
.client-detail__main-chart-table-header {
  padding: 15px;
  text-align: center;
  color: #999;
  font-size: 14px;
  font-weight: 600;
  border-bottom: 1px solid #ccc;
  background-color: #fff;
  white-space: nowrap;
}

.client-detail__main-chart-table-header--page {
  text-align: left;
  width: 250px; /* 固定width */
}

/* ページ列（左側） */
.client-detail__main-chart-table-page {
  padding: 15px;
  border-bottom: 1px solid #ccc;
  vertical-align: middle;
}

/* ページURL */
.client-detail__main-chart-table-page-text {
  color: #555;
  font-size: 14px;
  font-weight: 600;
  display: inline-block;
  max-width: 250px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
  text-decoration: underline;
}

/* データセル */
.client-detail__main-chart-table-cell {
  padding: 8px 15px;
  text-align: center;
  border-bottom: 1px solid #ccc;
  vertical-align: middle;
}

/* 上部の値 */
.client-detail__main-chart-table-value {
  inline-size: fit-content;
  margin-inline: auto;
  padding-bottom: 3px;
  color: #2da4a7;
  font-size: 12px;
  line-height: 1.4;
}

/* 下部の値 */
.client-detail__main-chart-table-subvalue {
  inline-size: fit-content;
  margin-inline: auto;
  padding-top: 3px;
  border-top: 1px solid #ccc;
  color: #80aef5;
  font-size: 12px;
  line-height: 1.4;
}

/* 偶数行の背景色 */
.client-detail__main-chart-table tbody tr:nth-child(even) {
  background-color: #f9f9f9;
}

/* ページネーション */
.client-detail__main-chart-data-table-pagination {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2px;
  padding: 10px 0;
}

/* ページボタン */
.client-detail__pagination-btn {
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border: 1px solid #ccc;
  background-color: #fff;
  border-radius: 2px;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* アクティブ状態 */
.client-detail__pagination-btn--active {
  background-color: #96d1d3;
  border-color: #96d1d3;
  color: #fff;
}

/* ホバー効果 */
.client-detail__pagination-btn:hover:not(
    .client-detail__pagination-btn--active
  ):not(.client-detail__pagination-btn--dots) {
  opacity: 0.6;
}

/* 前へ・次へボタン */
.client-detail__pagination-btn--prev,
.client-detail__pagination-btn--next {
  padding: 0;
  min-width: 32px;
}

.client-detail__pagination-btn--prev svg,
.client-detail__pagination-btn--next svg {
  width: 6px;
  height: 10px;
}

/* 無効状態 */
.client-detail__pagination-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.client-detail__pagination-btn:disabled:hover {
  background-color: #fff;
  border-color: #d0d0d0;
}

/* SP時のみフィルターボタン */
.client-detail__filter-button {
  position: fixed;
  bottom: 70px;
  right: 15px;
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: #999;
  padding: 10px;

  @media (min-width: 768px) {
    display: none;
  }
}

/* フィルターモーダル */
.client-detail__filter-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
}

.client-detail__filter-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.client-detail__filter-modal-content {
  position: absolute;
  top: 15px;
  left: 15px;
  right: 15px;
  bottom: 15px;
  background-color: #fff;
  border-radius: 10px;
  overflow-y: auto;

  @media (min-width: 768px) {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 900px;
    height: 90vh;
    border-radius: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  }
}

.client-detail__filter-modal-body {
  padding: 20px;

  @media (min-width: 768px) {
    padding: 30px;
    padding-block: 50px 35px;
    padding-inline: 50px;
  }
}

.client-detail__filter-modal-footer {
  padding: 20px;
  text-align: center;

  @media (min-width: 768px) {
    padding-block: 0 40px;
    padding-inline: 20px;
  }
}

/* フィルターフォーム */
.client-detail__filter-form-section {
  border-bottom: 1px solid #ccc;
  padding-block: 20px;

  @media (min-width: 768px) {
    display: grid;
    grid-template-columns: 160px 1fr;
    align-items: start;
    gap: 10px;
  }
}
/* 最初の要素 */
.client-detail__filter-form-section:first-child {
  border-top: 1px solid #ccc;
}

/* 最後の要素 */
.client-detail__filter-form-section:last-child {
  border-bottom: none;
}

.client-detail__filter-form-label {
  display: block;
  margin-bottom: 15px;
  font-size: 16px;
  font-weight: 500;
  color: #333;

  @media (min-width: 768px) {
    margin-bottom: 0;
    padding-top: 5px;
  }
}

/* inputの塊 */
.client-detail__filter-form-radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.client-detail__filter-form-radio {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding-inline: 5px;
}

.client-detail__filter-form-radio input[type="radio"] {
  width: 20px;
  height: 20px;
  margin-right: 10px;
  accent-color: #2da4a7;
}

.client-detail__filter-form-radio-text {
  font-size: 14px;
  color: #333;
}

.client-detail__filter-form-select {
  width: 100%;
  padding: 10px 30px 10px 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='13' height='8' viewBox='0 0 13 8' fill='none'%3e%3cpath d='M1.00027 1.50071L6.07129 6.57173L11.1423 1.50071' stroke='%23666666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e");
  background-position: right 10px center;
  background-repeat: no-repeat;
  background-size: auto;
  appearance: none;
  font-size: 14px;
  color: #333;
  margin-top: 10px;

  @media (min-width: 768px) {
    grid-column: 2;
    justify-self: start;
    width: auto;
    min-width: 250px;
    margin-top: 0;
  }
}

.client-detail__filter-form-textarea {
  width: 100%;
  min-height: 1em;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  background-color: #fff;
  font-size: 14px;
  color: #333;
  resize: vertical;
}

.client-detail__filter-modal-btn {
  width: 100%;
  padding: 15px;
  background-color: #2da4a7;
  color: #fff;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;

  @media (min-width: 768px) {
    width: auto;
    min-width: 200px;
  }
}

/* スマホのみページ */
.client-mobile-tab {
  position: relative;
  min-height: 100vh;
  padding-block: 0 100px;
  padding-inline: 20px;
  background-color: #f9f9f9;
}

/* コンバージョン分析設定ページボタン */
.client-mobile-tab__cva-btn-wrap {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 101;

  @media (min-width: 768px) {
    display: none;
  }
}

.client-mobile-tab__container {
}

/* ヘッダー */
.client-mobile-tab__header {
  position: sticky;
  top: 0;
  inset: 0;
  padding-block: 30px 20px;
  background-color: #f9f9f9;
  z-index: 100;
}

.client-mobile-tab__header-content {
  display: grid;
  gap: 20px;
}

.client-mobile-tab__header-title {
  inline-size: fit-content;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 45px 1fr;
  justify-items: center;
  align-items: center;
  text-align: center;
  gap: 5px;
  color: #555;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  line-height: 140%; /* 25.2px */
}

/* 表示サイト選択 */
.client-mobile-tab__url-select {
  position: relative;
  display: block;
  border-radius: 17px;
  border: 1px solid #ccc;
  background-color: #fff;

  select {
    padding-block: 5px;
    padding-inline: 15px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 100%;
    overflow: hidden;
    color: #333;
    text-overflow: ellipsis;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.7;
  }
}

.client-mobile-tab__url-select-arrow {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%) rotate(0deg);
  pointer-events: none;
}

.client-mobile-tab__main-content {
  display: grid;
  gap: 20px;
}

/* 運用判定 */
.client-mobile-tab__main-status {
  padding: 15px 20px;
  border-radius: 5px;
  background-color: #fff;
}

/* 運用判定ラベル */
.client-mobile-tab__main-status-label {
  color: #2da4a7;
  font-family: "Noto Sans JP";
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
}

/* スコア */
.client-mobile-tab__main-status-score {
  margin-top: 15px;
  inline-size: fit-content;
  margin-inline: auto;
}

/* 集計データ */
.client-mobile-tab__main-data-graph {
  padding: 15px 20px;
  border-radius: 5px;
  background: #fff;
}

.client-mobile-tab__main-data-graph-link {
  display: grid;
  grid-template-columns: 1fr 10px;
  align-items: center;
  gap: 10px;
  color: #2da4a7;
  font-family: "Noto Sans JP";
  font-size: 16px;
  font-weight: 600;
}

/* サンプルグラフ */
.client-mobile-tab__main-data-graph-chart {
  margin-top: 10px;

  img {
    width: 100%;
    height: 100%;
    aspect-ratio: 180 / 60;
    object-fit: contain;
  }
}

/* サンプルグラフCVA */
.client-mobile-tab__main-data-graph-chart-cva {
  margin-top: 10px;

  img {
    width: 100%;
    height: 100%;
    aspect-ratio: 295 / 76;
    object-fit: contain;
  }
}

/* 分析結果 */
.client-mobile-tab__main-proposal {
  padding: 15px 20px;
  border-radius: 5px;
  background-color: #fff;
}

.client-mobile-tab__main-proposal-link {
  display: grid;
  grid-template-columns: 1fr 8px;
  align-items: center;
  color: #2da4a7;
  font-size: 16px;
  font-weight: 600;
}

.client-mobile-tab__main-proposal-icon-text {
  margin-top: 15px;
  position: relative;
  background-color: #fff9e8;
  padding-block: 10px;
  padding-inline: 10px 68px;
}

/* 提案ベイト画像 */
.client-mobile-tab__main-proposal-icon-text::after {
  position: absolute;
  content: "";
  bottom: 0;
  right: 0;
  width: 78px;
  height: 78px;
  background: url(../img/vate-teian01.png);
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
}

.client-mobile-tab__main-proposal-icon-text-content {
  border: 2px solid #ccc;
  background: #fff;
  padding: 10px 20px;
  color: #333;
  font-family: "Noto Sans JP";
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 24px; /* 150% */
}

/* 提案ボタンコンテナ */
.client-mobile-tab__main-proposal-btn-container {
  margin-top: 15px;
  display: grid;
  gap: 9px;
  counter-reset: proposal-btn;
}

/* 提案ボタン */
.client-mobile-tab__main-proposal-btn {
  display: grid;
  grid-template-columns: 1em 1fr 8px;
  align-items: center;
  gap: 5px;
  padding: 10px 15px;
  border-radius: 10px;
  border: 1px solid #ccc;
  background-color: #fff;
  overflow: hidden;
  color: #333;
  font-family: "Noto Sans JP";
  font-size: 14px;
  font-weight: 500;
  line-height: 24px;
}

.client-mobile-tab__main-proposal-btn p {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

/* 提案ボタンカウンター */
.client-mobile-tab__main-proposal-btn-counter {
  counter-increment: proposal-btn;
  color: #2da4a7;
  font-family: Roboto;
  font-size: 14px;
  font-weight: 700;
  line-height: 24px; /* 171.429% */
}

.client-mobile-tab__main-proposal-btn-counter::before {
  content: counter(proposal-btn, decimal-leading-zero);
}

/* ************ */
/* 初期設定画面 */
/* ************ */
/* 全体共通 */
.initialize__container {
  min-height: 100vh;
  padding: 20px;
  background-image: url(../img/initialize_bg.png);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;

  @media (min-width: 768px) {
    padding: 70px 30px;
  }

  @media (min-width: 1000px) {
    padding: 70px 100px;
  }
}

/* 共通インナー */
.initialize__inner {
  width: min(100%, 1166px);
  margin-inline: auto;
  padding-bottom: 80px;
}

/* 共通進捗度ドット */
.initialize__dots {
  width: fit-content;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;

  a {
    font-size: 0;
  }
}

/* ボタンコンポーネント共通 */
.initialize__btn {
  display: inline-block;
  inline-size: 100%;
  padding: 8px;
  border-radius: 5px;
  background: #2da4a7;
  color: #fff;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  touch-action: manipulation;
  user-select: none;
  transition: all 0.3s ease;
}

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

/* スキップボタン */
.initialize__skip-btn {
  color: #333;
  font-size: 12px;
  line-height: 2;
  text-decoration: underline;
}

/* index.php */
.initialize-index__title {
  width: min(100%, 314px);
  margin-inline: auto;

  @media (min-width: 768px) {
    width: min(100%, 943px);
  }
}

.initialize-index__container {
  margin-top: 15px;
  display: grid;

  @media (min-width: 768px) {
    margin-top: 46px;
    width: min(100%, 954px);
    margin-inline: auto;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  @media (min-width: 1000px) {
    grid-template-columns: 445px 1fr;
    gap: 49px;
  }
}

.initialize-index__texts {
  color: #333;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;

  @media (min-width: 768px) {
    font-size: 24px;
    order: 2; /* PCの時は右 */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
  }

  p:nth-child(1) {
    @media (min-width: 768px) {
      margin-top: 19px;
    }
  }

  p:nth-child(2) {
    margin-top: 0.9375em;
    font-size: 16px;
    font-weight: 400;

    @media (min-width: 768px) {
      margin-top: 1.3em;
      font-size: 18px;
    }
  }

  p:nth-child(3) {
    margin-top: 0.9375em;
    font-size: 16px;
    font-weight: 500;

    @media (min-width: 768px) {
      margin-top: 1.3em;
      font-size: 18px;
    }
  }

  .initialize-index__dots-pc {
    @media (min-width: 768px) {
      margin-top: auto;
    }
  }
}

/* ベイトくんと背景のアイコン */
.initialize-index__images {
  margin-top: 43px;
  position: relative;
  height: fit-content;

  @media (min-width: 768px) {
    margin-top: 0;
    order: 1; /* PCの時は左 */
  }

  /* ベイトくん */
  img:nth-child(1) {
    display: block;
    width: 126px;
    height: 227px;
    margin-inline: auto;

    @media (min-width: 768px) {
      width: 215px;
      height: 388px;
      aspect-ratio: 41/74;
    }
  }

  /* 背景のアイコン */
  img:nth-child(2) {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 0);
    width: 263px;
    height: 167px;
    aspect-ratio: 263/167;

    @media (min-width: 768px) {
      width: 445.5px;
      height: 282.7px;
      aspect-ratio: 405/257;
    }
  }
}

/* 進捗度ドットレイアウト */
.initialize-index__dots {
  margin-top: 25px;
  width: fit-content;
  margin-inline: auto;

  @media (min-width: 768px) {
    display: none;
  }
}

/* PC時のみ表示のドットレイアウト */
.initialize-index__dots-pc {
  display: none;

  @media (min-width: 768px) {
    display: block;
    width: fit-content;
    margin-inline: auto;
  }
}

.initialize-index__btn {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(100%, 345px);
  margin-inline: auto;

  @media (min-width: 768px) {
    margin-top: 31px;
    position: static;
    transform: none;
    width: min(100%, 150px);
    margin-inline: auto 0;
  }
}

/* Google,meta認証ページ */
.initialize-auth__container {
  @media (min-width: 768px) {
    width: min(100%, 1073px);
    margin-inline: auto;
    display: grid;
    grid-template-columns: 51% 1fr;
    gap: 30px;
  }

  @media (min-width: 1000px) {
    gap: 90px;
  }
}

.initialize-auth__text-wrap {
  @media (min-width: 768px) {
    display: flex;
    flex-direction: column;
    padding-block: 30px;
    order: 2; /* PCの時は右 */
  }
}

.initialize-auth__title {
  color: #2da4a7;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;

  @media (min-width: 768px) {
    font-size: 30px;
    line-height: 1.16;
    text-align: left;
  }
}

.initialize-auth__texts {
  margin-top: 15px;
  color: #333;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;

  @media (min-width: 768px) {
    margin-top: 20px;
    font-size: 20px;
  }

  p:nth-child(2) {
    margin-top: 15px;
    color: #333;
    font-weight: 400;

    @media (min-width: 768px) {
      display: none;
      margin-top: 20px;
      font-size: 18px;
    }
  }

  /* PCサイズから出現 */
  p:nth-child(3),
  p:nth-child(4) {
    display: none;

    @media (min-width: 768px) {
      margin-top: 0.75em;
      display: block;
      color: #333;
      font-size: 18px;
      font-weight: 400;
    }
  }

  p:nth-child(3) {
    @media (min-width: 768px) {
      margin-top: 20px;
    }
  }

  /* 単語の改行対策 */
  span {
    display: inline-block;
  }
}

/* デモ動画SP */
.initialize-auth__video--sp {
  margin-block: 10%;

  @media (min-width: 768px) {
    display: none;
  }
}

/* デモ動画PC */
.initialize-auth__video--pc {
  display: none;

  @media (min-width: 768px) {
    display: block;
    order: 1; /* PCの時は左 */
  }
}

/* 進捗ドットSP */
.initialize-auth__dots--sp {
  width: fit-content;
  margin-inline: auto;

  @media (min-width: 768px) {
    display: none;
  }
}

/* 進捗ドットPC */
.initialize-auth__dots--pc {
  display: none;

  @media (min-width: 768px) {
    margin-top: auto;
    padding-top: 30px;
    display: block;
    width: fit-content;
    margin-inline: auto;
  }
}

/* SPのみ認証ボタン */
.initialize-auth__btn--sp {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(100%, 345px);
  margin-inline: auto;

  @media (min-width: 768px) {
    display: none;
  }
}

/* SPのみ認証&スキップボタン */
.initialize-auth__btn--pc {
  display: none;

  @media (min-width: 768px) {
    margin-top: 30px;
    display: block;
  }
}

/* スマホのみ */
.initialize__skip-btn--sp {
  margin-bottom: 15px;
  display: block;
  width: fit-content;
  margin-inline: auto 0;

  @media (min-width: 768px) {
    display: none;
  }
}

/* pcのみ */
.initialize__skip-btn--pc {
  display: none;

  @media (min-width: 768px) {
    margin-top: 27px;
    display: block;
    width: fit-content;
    margin-inline: auto 0;
  }
}

/* 初期設定完了ページ */
.initialize-complete__texts {
  margin-top: 15px;
  color: #333;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6875;

  @media (min-width: 768px) {
    margin-top: 20px;
    font-size: 20px;
  }
}

/* ユーザー経路分析初期設定 */
.initialize-complete__info {
  margin-top: 10px;
  color: #666;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6875;

  @media (min-width: 768px) {
    margin-top: 31px;
    font-size: 20px;
    line-height: 1.5;
  }

  p {
    text-align: center;
  }

  /* pcのみ */
  ul {
    display: none;

    @media (min-width: 768px) {
      display: block;
      margin-top: 10px;
      color: #666;
      font-size: 16px;
      font-weight: 400;
      line-height: 1.5;
    }
  }
}

/* チャット誘導 */
.initialize-complete__chat-info {
  display: grid;
  grid-template-columns: 30px 1fr;
  align-items: center;
  gap: 16px;
  border-radius: 10px;
  background-color: #fff;
  padding: 10px;
  color: #2da4a7;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}

/* spのみ */
.initialize-complete__chat-info--sp {
  margin-bottom: 15px;

  @media (min-width: 768px) {
    display: none;
  }
}

/* pcのみ */
.initialize-complete__chat-info--pc {
  display: none;

  @media (min-width: 768px) {
    margin-top: 31px;
    display: block;
  }
}

/* SPのみスライダー */
.step-slider {
  margin-top: 10px;
  position: relative;
  overflow: hidden;

  @media (min-width: 768px) {
    display: none;
  }
}

.step-container {
  position: relative;
  overflow: hidden;
}

.step-track {
  display: flex;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* アイテムコンポーネント */
.step {
  min-width: 100%;
  display: grid;
  grid-template-columns: 1fr 9px;
  align-items: center;
  gap: 15px;
  cursor: pointer;
}

.step-content {
  color: #666;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.7;
}

/* Instagram詳細分析 */
.client-detail__instagram {
  margin-top: 10px;
  padding: 15px 10px;
  border-radius: 10px;
  background: #fff;

  @media (min-width: 768px) {
    padding: 30px;
  }
}

.client-detail__instagram-container {
  margin-top: 10px;
  width: 100%;
  display: grid;
  gap: 5px;
  align-items: start;

  @media (min-width: 768px) {
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 30px;
  }

  @media (min-width: 1000px) {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* インスタグラムカードコンポーネント */
.client-detail__instagram-card {
  width: 100%;
  padding: 15px;
  border-radius: 10px;
  border: 1px solid #ccc;
  background: #fff;
}

/* 投稿タイトル */
.client-detail__instagram-card-title {
  color: #333;
  font-size: 16px;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1;
  max-height: 1em;
}

.client-detail__instagram-card-meta {
  margin-top: 5px;
  color: #666;
  font-size: 12px;
  font-weight: 400;
}

/* サムネイル + トピックプロパティ */
.client-detail__instagram-card-wrap {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 47% 1fr;
  gap: 15px;
}

/* サムネイル */
.client-detail__instagram-card-thumb {
  width: 100%;
  overflow: hidden;
}

/* トピックプロパティ */
.client-detail__instagram-card-topic-property {
  ul {
    display: grid;
    gap: 0.8em;
  }

  li {
    display: grid;
    grid-template-columns: 14px 1fr 34px;
    align-items: center;
    gap: 5px;
    color: #999;
    font-size: 14px;
    line-height: 1;
  }

  span {
    color: #333;
    text-align: right;
  }
}

/* トグルボタン */
.client-detail__instagram-card-button {
  margin-top: 10px;
  margin-inline: auto 0;
  inline-size: fit-content;
  display: grid;
  grid-template-columns: 1fr auto;
  justify-content: flex-end;
  align-items: center;
  gap: 5px;
  color: #666;
  font-size: 12px;
}

/* プロパティ一覧 */
.client-detail__instagram-card-property {
  margin-top: 20px;
  display: grid;
  gap: 0.8em;

  li {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 5px;
    color: #999;
    font-size: 14px;
    line-height: 1;
  }

  span {
    color: #333;
    text-align: right;
  }
}

/* YouTube詳細分析 */
.client-detail__youtube {
  margin-top: 10px;
  padding: 15px 10px;
  border-radius: 10px;
  background: #fff;

  @media (min-width: 768px) {
    padding: 30px;
  }
}

.client-detail__youtube-container {
  margin-top: 10px;
  width: 100%;
  display: grid;
  gap: 5px;
  align-items: start;

  @media (min-width: 768px) {
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 30px;
  }

  @media (min-width: 1500px) {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* YouTubeカードコンポーネント */
.client-detail__youtube-card {
  width: 100%;
  padding: 15px;
  border-radius: 10px;
  border: 1px solid #ccc;
  background: #fff;
}

.client-detail__youtube-card-heading {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #ccc;
}

/* .client-detail__youtube-card-heading-texts {
} */

/* 動画タイトル */
.client-detail__youtube-card-title {
  color: #333;
  font-size: 16px;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1;
  max-height: 1em;
}

/* 投稿日 */
.client-detail__youtube-card-meta {
  margin-top: 5px;
  color: #666;
  font-size: 12px;
  font-weight: 400;
}

/* サムネイル */
.client-detail__youtube-card-thumb {
  margin-top: 10px;
  width: 100%;
  overflow: hidden;
}

/* トグルボタン */
.client-detail__youtube-card-button {
  margin-top: 10px;
  margin-inline: auto 0;
  inline-size: fit-content;
  display: grid;
  grid-template-columns: 1fr auto;
  justify-content: flex-end;
  align-items: center;
  gap: 5px;
  color: #666;
  font-size: 12px;

  svg {
    transition: transform 0.3s ease;
  }
}

/* .is-expandedクラスが付与されている場合のSVG回転 */
.client-detail__youtube-card-property:has(.is-expanded)
  .client-detail__youtube-card-button
  svg {
  transform: rotate(180deg);
}

/* プロパティ一覧 */
.client-detail__youtube-card-property {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 30px;
  row-gap: 0.8em;

  li {
    display: grid;
    grid-template-columns: 14px 1fr auto;
    gap: 5px;
    color: #999;
    font-size: 14px;
    line-height: 1;
  }

  span {
    color: #333;
    text-align: right;
  }
}

/* 展開時は1列表示 */
.client-detail__youtube-card-property.is-expanded {
  grid-template-columns: 1fr;
  gap: 12px;
}

/* 7番目以降の項目は初期状態で非表示 */
.client-detail__youtube-card-property li:nth-child(n + 7) {
  display: none;
}

/* 展開時は7番目以降も表示 */
.client-detail__youtube-card-property.is-expanded li:nth-child(n + 7) {
  display: grid;
}

/* Instagram, YouTube各ページネーション */
.blog-pagination--instagram,
.blog-pagination--youtube {
  margin-top: 10px;

  @media (min-width: 768px) {
    margin-top: 15px;
  }
}

/* ************ */
/* YouTubeの詳細個別ページ */
/* ************ */
/* 秒毎の生存率 */
.client-detail__youtube-top {
  margin-bottom: 10px;
  border-radius: 10px;
  background: #fff;
  padding: 15px;
  overflow: hidden;

  @media (min-width: 768px) {
    padding: 25px 30px;
  }
}

.client-detail__youtube-top-container {
  margin-top: 10px;
  display: grid;
  gap: 10px;

  @media (min-width: 1100px) {
    margin-top: 20px;
    grid-template-columns: 60% 1fr;
    gap: 30px;
  }
}

/* 生存率グラフ */
.client-detail__youtube-top-chart {
}

/* .client-detail__youtube-top-contents {
} */

.client-detail__youtube-top-heading {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
}

/* 投稿日 */
.client-detail__youtube-top-date {
  color: #999;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}

/* 動画タイトル */
.client-detail__youtube-top-title {
  margin-top: 15px;
  color: #666;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
}

/* 動画概要欄 */
.client-detail__youtube-top-description {
  margin-top: 15px;
  color: #333;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
}

/* 続きを見るボタン */
.client-detail__youtube-top-btn {
  margin-top: 1em;
  margin-inline: auto 0;
  inline-size: fit-content;
  display: grid;
  grid-template-columns: 1fr auto;
  justify-content: flex-end;
  align-items: center;
  gap: 5px;
  color: #666;
  font-size: 12px;
}

/* コメント一覧 */
.client-detail__youtube-comments {
  margin-top: 10px;
  border-radius: 10px;
  background: #fff;
  padding: 15px;
  overflow: hidden;

  @media (min-width: 768px) {
    padding: 25px 30px;
  }
}

/* .client-detail__youtube-comments-list {
} */

/* 返信アイテムコンポーネント */
.client-detail__youtube-comments-item {
  padding-block: 20px;
  border-bottom: 1px solid #ccc;
}

.client-detail__youtube-comments-item:last-child {
  border-bottom: none;
}

.client-detail__youtube-comments-item-content-wrap {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 15px;
}

.client-detail__youtube-comments-item-content-wrap
  + .client-detail__youtube-comments-item-content-wrap {
  margin-top: 15px;
}

/* リプライ */
.client-detail__youtube-comments-item-content-wrap--reply {
  @media (min-width: 768px) {
    margin-left: 55px;
  }
}

.client-detail__youtube-comments-item-body {
  display: grid;
  gap: 10px;
}

/* リプライ者 */
.client-detail__youtube-comments-item-body--reply {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  align-items: center;
}

/* ユーザーアイコン */
.client-detail__youtube-comments-item-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  aspect-ratio: 1/1;

  @media (min-width: 768px) {
    width: 40px;
    height: 40px;
  }

  img {
    width: 100%;
    border-radius: inherit;
  }
}

/* ユーザー名 + コメント日 */
.client-detail__youtube-comments-item-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 10px;
  row-gap: 0.3em;
}

/* リプライアイコン */
.client-detail__youtube-comments-item-reply-icon {
}

/* ユーザー名 */
.client-detail__youtube-comments-item-name {
  color: #333;
  font-size: 16px;
  font-weight: 600;
}

/* コメント日 */
.client-detail__youtube-comments-item-date {
  color: #999;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}

/* 返信コンテンツ */
/* .client-detail__youtube-comments-item-content {
} */

/* 返信リプライ */
.client-detail__youtube-comments-item-content--reply {
  grid-column: span 2 / span 2;
}

/* 返信詳細を見るボタン */
.client-detail__youtube-comments-btn {
  margin-top: 10px;
  margin-inline: auto 0;
  inline-size: fit-content;
  display: grid;
  grid-template-columns: 1fr auto;
  justify-content: flex-end;
  align-items: center;
  gap: 5px;
  color: #888;
  font-size: 14px;
  font-weight: 400;
}

/* リプライがある場合 */
.client-detail__youtube-comments-btn.client-detail__youtube-comments-btn--reply {
  color: #2da4a7;
}
