/*
Theme Name: Cocoon Child
Description: Cocoon child theme for AVista
Author: AVista
Template: cocoon-master
Version: 3.0.0
*/

:root {
  --avista-bg: #070707;
  --avista-bg-light: #111111;
  --avista-card: #171717;
  --avista-gold: #d4af37;
  --avista-gold-light: #f1d77a;
  --avista-text: #ffffff;
  --avista-text-sub: #b8b8b8;
  --avista-border: rgba(212, 175, 55, 0.34);
  --avista-radius: 18px;
  --avista-shadow: 0 18px 48px rgba(0, 0, 0, 0.42);
}

/* Cocoonのトップページ用パーツを非表示 */
.home #header-container,
.home .header-container,
.home #header,
.home .header,
.home #footer-container,
.home .footer-container,
.home #footer,
.home .footer,
.home #sidebar,
.home .sidebar,
.home .breadcrumb,
.home .entry-header,
.home .entry-title,
.home .sns-share,
.home .sns-follow,
.home .date-tags,
.home .post-date,
.home .post-update,
.home .author-info {
  display: none !important;
}

html,
body {
  margin: 0;
  padding: 0;
  background: #000;
}

.home #container,
.home #content,
.home .content,
.home .content-in,
.home #main,
.home .main,
.home .entry-content {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #000 !important;
}

.avista-home {
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: var(--avista-bg);
  color: var(--avista-text);
}

.avista-home,
.avista-home * {
  box-sizing: border-box;
}

.avista-home img {
  display: block;
  width: 100%;
  height: auto;
}

.avista-home a {
  color: inherit;
  text-decoration: none;
}

.avista-container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.avista-container--wide {
  width: min(1460px, calc(100% - 56px));
}

/* ==================================================
   メインビジュアル
================================================== */

.avista-hero {
  position: relative;
  min-height: 790px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 110px max(6vw, 40px);
  overflow: hidden;
  background-image:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.90) 0%,
      rgba(0, 0, 0, 0.66) 34%,
      rgba(0, 0, 0, 0.28) 72%,
      rgba(0, 0, 0, 0.18) 100%
    ),
    url("https://avista.jp/wp-content/uploads/2026/07/IMG_5AFFBF18-09FA-414D-A06D-BCE9666453E9.jpeg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.avista-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.02) 0%,
    rgba(0, 0, 0, 0.10) 55%,
    #070707 100%
  );
  pointer-events: none;
}

.avista-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 46px 46px;
  opacity: 0.18;
  pointer-events: none;
}

.avista-hero__content {
  position: relative;
  z-index: 2;
  width: min(760px, 100%);
  text-align: left;
}

.avista-hero__sub {
  margin: 0 0 18px;
  color: var(--avista-gold-light);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.28em;
}

.avista-hero__title {
  margin: 0;
  color: #fff;
  font-size: clamp(48px, 5.6vw, 86px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-shadow: 0 5px 25px rgba(0, 0, 0, 0.78);
}

.avista-hero__text {
  max-width: 640px;
  margin: 26px 0 0;
  color: #ededed;
  font-size: 18px;
  line-height: 1.9;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.82);
}

.avista-search {
  display: flex;
  width: min(700px, 100%);
  margin: 38px 0 0;
  padding: 7px;
  border: 1px solid var(--avista-border);
  border-radius: 999px;
  background: rgba(20, 20, 20, 0.86);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.avista-search input {
  flex: 1;
  min-width: 0;
  height: 56px;
  padding: 0 24px;
  border: 0;
  outline: none;
  background: transparent;
  color: #fff;
  font-size: 15px;
}

.avista-search input::placeholder {
  color: #bdbdbd;
}

.avista-search button {
  flex: 0 0 auto;
  min-width: 126px;
  height: 56px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--avista-gold-light), var(--avista-gold));
  color: #111;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.avista-search button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(212, 175, 55, 0.35);
}

/* ==================================================
   共通セクション
================================================== */

.avista-section {
  padding: 110px 0;
  background: var(--avista-bg);
}

.avista-section--dark {
  background:
    radial-gradient(circle at 8% 8%, rgba(212, 175, 55, 0.08), transparent 30%),
    var(--avista-bg-light);
}

.avista-section--ranking {
  background:
    radial-gradient(circle at 88% 12%, rgba(212, 175, 55, 0.10), transparent 28%),
    #0b0b0b;
}

.avista-section--media {
  background: #080808;
}

.avista-section__heading {
  margin-bottom: 52px;
  text-align: center;
}

.avista-section__heading p {
  margin: 0 0 12px;
  color: var(--avista-gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.25em;
}

.avista-section__heading h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.3;
}

.avista-section__heading h2::after {
  content: "";
  display: block;
  width: 76px;
  height: 2px;
  margin: 20px auto 0;
  background: linear-gradient(90deg, transparent, var(--avista-gold), transparent);
}

/* ==================================================
   人気ジャンル
================================================== */

.avista-genre-grid {
  display: grid;
  gap: 28px;
}

.avista-genre-grid--fixed {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.avista-genre-card {
  position: relative;
  min-height: 350px;
  overflow: hidden;
  border: 1px solid var(--avista-border);
  border-radius: var(--avista-radius);
  background: #171717;
  box-shadow: var(--avista-shadow);
  isolation: isolate;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.avista-genre-card__image {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
  transition: transform 0.55s ease;
}

.avista-genre-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.05) 0%,
    rgba(0, 0, 0, 0.28) 48%,
    rgba(0, 0, 0, 0.94) 100%
  );
}

.avista-genre-card__content {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 30px;
}

.avista-genre-card:hover {
  transform: translateY(-9px);
  border-color: rgba(212, 175, 55, 0.86);
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.55);
}

.avista-genre-card:hover .avista-genre-card__image {
  transform: scale(1.08);
}

.avista-genre-card__number {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--avista-gold-light);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.avista-genre-card h3 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 30px;
  line-height: 1.3;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
}

.avista-genre-card p {
  margin: 0;
  color: #e3e3e3;
  font-size: 15px;
  line-height: 1.7;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.92);
}

/* ==================================================
   人気ランキング
================================================== */

.avista-ranking-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 22px;
}

.avista-ranking-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: var(--avista-card);
  box-shadow: var(--avista-shadow);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.avista-ranking-card:hover {
  transform: translateY(-8px);
  border-color: rgba(212, 175, 55, 0.72);
}

.avista-ranking-card__number {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.72);
  color: var(--avista-gold-light);
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.avista-ranking-card__image {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #222;
}

.avista-ranking-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.avista-ranking-card:hover .avista-ranking-card__image img {
  transform: scale(1.06);
}

.avista-ranking-card__body {
  padding: 18px;
}

.avista-ranking-card__label {
  display: inline-block;
  margin-bottom: 9px;
  color: var(--avista-gold-light);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.avista-ranking-card h3 {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: #fff;
  font-size: 15px;
  line-height: 1.7;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

/* ==================================================
   新着作品
================================================== */

.avista-work-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px;
}

.avista-work-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: var(--avista-card);
  box-shadow: var(--avista-shadow);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.avista-work-card:hover {
  transform: translateY(-8px);
  border-color: rgba(212, 175, 55, 0.68);
}

.avista-work-card__image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #222;
}

.avista-work-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.48s ease;
}

.avista-work-card:hover .avista-work-card__image img {
  transform: scale(1.06);
}

.avista-no-image {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #777;
  font-size: 12px;
  letter-spacing: 0.16em;
}

.avista-work-card__body {
  padding: 20px;
}

.avista-work-card__label {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 9px;
  border: 1px solid var(--avista-border);
  border-radius: 999px;
  color: var(--avista-gold-light);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.avista-work-card h3 {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: #fff;
  font-size: 16px;
  line-height: 1.7;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.avista-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 48px 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  color: var(--avista-text-sub);
  text-align: center;
}

/* ==================================================
   おすすめサイト
================================================== */

.avista-media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}

.avista-media-card {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  border: 1px solid var(--avista-border);
  border-radius: var(--avista-radius);
  background: #171717;
  box-shadow: var(--avista-shadow);
  isolation: isolate;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.avista-media-card__image {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
  transition: transform 0.55s ease;
}

.avista-media-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.04) 0%,
    rgba(0, 0, 0, 0.24) 48%,
    rgba(0, 0, 0, 0.94) 100%
  );
}

.avista-media-card__content {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 32px;
}

.avista-media-card:hover {
  transform: translateY(-9px);
  border-color: rgba(212, 175, 55, 0.88);
}

.avista-media-card:hover .avista-media-card__image {
  transform: scale(1.08);
}

.avista-media-card span {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--avista-gold-light);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.avista-media-card h3 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 34px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
}

.avista-media-card p {
  margin: 0 0 18px;
  color: #e0e0e0;
  font-size: 15px;
  line-height: 1.7;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.92);
}

.avista-media-card strong {
  color: var(--avista-gold-light);
  font-size: 15px;
}

/* ==================================================
   レスポンシブ対応
================================================== */

@media screen and (max-width: 1200px) {
  .avista-ranking-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .avista-work-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media screen and (max-width: 1024px) {
  .avista-hero {
    min-height: 680px;
    padding: 100px 42px;
    background-position: 58% center;
  }

  .avista-hero__content {
    width: min(680px, 100%);
  }

  .avista-genre-grid--fixed {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .avista-media-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (max-width: 768px) {
  .avista-container,
  .avista-container--wide {
    width: min(100% - 28px, 1460px);
  }

  .avista-hero {
    min-height: 620px;
    justify-content: center;
    padding: 84px 14px 72px;
    background-position: 63% center;
  }

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

  .avista-hero__sub {
    font-size: 10px;
    letter-spacing: 0.2em;
  }

  .avista-hero__title {
    font-size: clamp(34px, 10vw, 50px);
  }

  .avista-pc-break {
    display: none;
  }

  .avista-hero__text {
    margin: 20px auto 0;
    font-size: 14px;
    line-height: 1.8;
  }

  .avista-search {
    margin: 28px auto 0;
  }

  .avista-search input {
    height: 50px;
    padding: 0 15px;
    font-size: 13px;
  }

  .avista-search button {
    min-width: 84px;
    height: 50px;
    padding: 0 17px;
  }

  .avista-section {
    padding: 74px 0;
  }

  .avista-section__heading {
    margin-bottom: 34px;
  }

  .avista-genre-grid--fixed,
  .avista-ranking-grid,
  .avista-work-grid,
  .avista-media-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .avista-genre-card {
    min-height: 260px;
  }

  .avista-media-card {
    min-height: 280px;
  }

  .avista-genre-card__content,
  .avista-media-card__content {
    padding: 22px;
  }

  .avista-genre-card h3,
  .avista-media-card h3 {
    font-size: 25px;
  }

  .avista-work-card__body,
  .avista-ranking-card__body {
    padding: 14px;
  }

  .avista-work-card h3,
  .avista-ranking-card h3 {
    font-size: 13px;
  }
}

@media screen and (max-width: 520px) {
  .avista-hero {
    min-height: 570px;
    background-position: 67% center;
  }

  .avista-search {
    padding: 5px;
  }

  .avista-search button {
    min-width: 76px;
    font-size: 13px;
  }

  .avista-genre-grid--fixed,
  .avista-ranking-grid,
  .avista-work-grid,
  .avista-media-grid {
    grid-template-columns: 1fr;
  }

  .avista-genre-card,
  .avista-media-card {
    min-height: 300px;
  }

  .avista-ranking-card__image {
    aspect-ratio: 4 / 5;
  }

  .avista-work-card__image {
    aspect-ratio: 16 / 10;
  }
}
/* ==================================================
   AVista Ver.4 広告エリア
================================================== */

.avista-ad-zone {
  position: relative;
  width: 100%;
  padding: 42px 20px;
  overflow: hidden;
  background: #090909;
  border-top: 1px solid rgba(212, 175, 55, 0.22);
  border-bottom: 1px solid rgba(212, 175, 55, 0.22);
  box-sizing: border-box;
}

.avista-ad-heading {
  margin: 0 auto 24px;
  text-align: center;
}

.avista-ad-heading span {
  display: inline-block;
  position: relative;
  padding-bottom: 12px;
  color: #d4af37;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.22em;
}

.avista-ad-heading span::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  width: 54px;
  height: 1px;
  margin: auto;
  background: linear-gradient(
    90deg,
    transparent,
    #d4af37,
    transparent
  );
}

/* ==================================================
   エロタレスト
================================================== */

.avista-ad-zone--erotarest {
  padding-top: 28px;
  padding-bottom: 34px;
}

.avista-erotarest-banner {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  padding: 6px;
  overflow: hidden;
  background: #030303;
  border: 1px solid rgba(212, 175, 55, 0.42);
  border-radius: 8px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  box-sizing: border-box;
}

.avista-erotarest-banner a {
  display: block;
  max-width: 100%;
  line-height: 0;
}

.avista-erotarest-banner img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

/* ==================================================
   FANZA・DUGA
================================================== */

.avista-square-ad-grid {
  display: grid;
  grid-template-columns: repeat(3, 300px);
  justify-content: center;
  align-items: start;
  gap: 22px;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

.avista-square-ad {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: 300px;
  max-width: 100%;
  min-height: 250px;
  padding: 5px;
  overflow: hidden;
  background: #030303;
  border: 1px solid rgba(212, 175, 55, 0.38);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
  box-sizing: border-box;
}

.avista-square-ad a {
  display: block;
  max-width: 100%;
  line-height: 0;
}

.avista-square-ad img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

.avista-square-ad iframe,
.avista-square-ad ins,
.avista-square-ad > div {
  display: block;
  max-width: 100% !important;
  margin-right: auto !important;
  margin-left: auto !important;
}



/* ==================================================
   FAM
================================================== */

.avista-ad-zone--fam {
  padding-top: 40px;
  padding-bottom: 48px;
  background:
    radial-gradient(
      circle at center,
      rgba(212, 175, 55, 0.07),
      transparent 55%
    ),
    #080808;
}

.avista-fam-ad {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  max-width: 380px;
  min-height: 250px;
  margin: 0 auto;
  overflow: hidden;
  text-align: center;
}

.avista-fam-ad > div,
.avista-fam-ad iframe,
.avista-fam-ad img {
  display: block;
  max-width: 100% !important;
  margin-right: auto !important;
  margin-left: auto !important;
}

/* ==================================================
   タブレット
================================================== */

@media screen and (max-width: 1020px) {

  .avista-square-ad-grid {
    grid-template-columns: repeat(2, 300px);
  }
}

/* ==================================================
   スマートフォン
================================================== */

@media screen and (max-width: 680px) {

  .avista-ad-zone {
    padding: 28px 10px;
  }

  .avista-ad-heading {
    margin-bottom: 18px;
  }

  .avista-ad-heading span {
    font-size: 10px;
    letter-spacing: 0.16em;
  }

  .avista-square-ad-grid {
    grid-template-columns: minmax(0, 300px);
    gap: 18px;
  }

  .avista-square-ad {
    width: 100%;
    min-height: 0;
  }

  .avista-erotarest-banner {
    width: 100%;
  }

  .avista-erotarest-banner img {
    width: 100%;
    height: auto;
  }

  .avista-mgs-ad {
    max-width: 100%;
  }

  .avista-fam-ad {
    max-width: 350px;
  }
}
/* ==================================================
   MGS広告 300×250 3列
================================================== */

.avista-mgs-grid {
  display: grid;
  grid-template-columns: repeat(3, 300px);
  justify-content: center;
  align-items: start;
  gap: 22px;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

.avista-mgs-item {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: 300px;
  min-height: 250px;
  padding: 5px;
  overflow: hidden;
  background: #030303;
  border: 1px solid rgba(212, 175, 55, 0.38);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
  box-sizing: border-box;
}

.avista-mgs-item iframe,
.avista-mgs-item img,
.avista-mgs-item a,
.avista-mgs-item > div {
  display: block;
  max-width: 100% !important;
  margin-right: auto !important;
  margin-left: auto !important;
}

/* タブレット */
@media screen and (max-width: 1020px) {
  .avista-mgs-grid {
    grid-template-columns: repeat(2, 300px);
  }
}

/* スマホ */
@media screen and (max-width: 680px) {
  .avista-mgs-grid {
    grid-template-columns: minmax(0, 300px);
    gap: 18px;
  }

  .avista-mgs-item {
    width: 100%;
  }
}
<script src="https://fam-ad.com/ad/js/fam-tagify.min.js"></script>

<section class="avista-ad-zone avista-ad-zone--fam">
  <div class="avista-container avista-container--wide">

    <div class="avista-ad-heading">
      <span>PICK UP AD</span>
    </div>

/* ==================================================
   AVista FAM アイコン広告
================================================== */

.avista-icon-ad-zone {
  position: relative;
  width: 100%;
  padding: 24px 20px 28px;
  overflow: hidden;
  background:
    radial-gradient(
      circle at center,
      rgba(212, 175, 55, 0.06),
      transparent 60%
    ),
    #080808;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  box-sizing: border-box;
}

.avista-icon-ad-heading {
  margin: 0 auto 16px;
  text-align: center;
}

.avista-icon-ad-heading span {
  display: inline-block;
  position: relative;
  padding-bottom: 10px;
  color: #d4af37;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.2em;
}

.avista-icon-ad-heading span::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  width: 48px;
  height: 1px;
  margin: auto;
  background: linear-gradient(
    90deg,
    transparent,
    #d4af37,
    transparent
  );
}

.avista-icon-ad {
  display: flex;
  justify-content: center;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  padding: 8px 12px;
  overflow-x: auto;
  overflow-y: hidden;
  text-align: center;
  box-sizing: border-box;
}

.avista-icon-ad iframe,
.avista-icon-ad img,
.avista-icon-ad table,
.avista-icon-ad > div {
  max-width: 100% !important;
  margin-right: auto !important;
  margin-left: auto !important;
}


/* ==================================================
   AVista FAM 最下部広告
================================================== */

.avista-ad-zone--fam {
  padding-top: 20px;
  padding-bottom: 24px;
  background:
    radial-gradient(
      circle at center,
      rgba(212, 175, 55, 0.06),
      transparent 58%
    ),
    #080808;
}

.avista-fam-device-ad {
  width: 100%;
  margin: 0 auto;
  text-align: center;
}

.avista-fam-device-ad--pc {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  max-width: 420px;
}

.avista-fam-device-ad--sp {
  display: none;
}

.avista-fam-device-ad iframe,
.avista-fam-device-ad img,
.avista-fam-device-ad > div {
  display: block;
  max-width: 100% !important;
  margin-right: auto !important;
  margin-left: auto !important;
}


/* ==================================================
   スマートフォン
================================================== */

@media screen and (max-width: 680px) {

  .avista-icon-ad-zone {
    padding: 20px 8px 22px;
  }

  .avista-icon-ad-heading {
    margin-bottom: 12px;
  }

  .avista-icon-ad-heading span {
    font-size: 10px;
    letter-spacing: 0.15em;
  }

  .avista-icon-ad {
    display: block;
    width: 100%;
    padding: 6px 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .avista-fam-device-ad--pc {
    display: none;
  }

  .avista-fam-device-ad--sp {
    display: block;
    width: 100%;
    max-width: 600px;
  }

  .avista-ad-zone--fam {
    padding: 26px 8px 30px;
  }

  .avista-fam-device-ad--sp iframe,
  .avista-fam-device-ad--sp img,
  .avista-fam-device-ad--sp > div {
    width: 100% !important;
    max-width: 100% !important;
  }
}   
/* ==================================================
   AVista 作品ページ
================================================== */

.avista-work-page{
  width:100%;
  max-width:1100px;
  margin:0 auto;
  color:#f5f5f5;
  background:#080808;
  border:1px solid rgba(212,175,55,.25);
  box-shadow:0 18px 60px rgba(0,0,0,.45);
}

.avista-work-page *{
  box-sizing:border-box;
}

.avista-work-header{
  padding:32px 28px 26px;
  text-align:center;
  border-bottom:1px solid rgba(212,175,55,.25);
  background:
    radial-gradient(circle at center top,rgba(212,175,55,.12),transparent 60%),
    #050505;
}

.avista-work-label{
  margin:0 0 12px;
  color:#d4af37;
  font-size:11px;
  font-weight:700;
  letter-spacing:.22em;
}

.avista-work-title{
  margin:0;
  color:#fff;
  font-size:clamp(24px,4vw,42px);
  line-height:1.5;
}

.avista-work-meta{
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:8px 18px;
  margin-top:18px;
  color:#bbb;
  font-size:13px;
}

.avista-work-visual{
  display:grid;
  grid-template-columns:minmax(0,1.1fr) minmax(320px,.9fr);
  gap:30px;
  padding:32px;
}

.avista-work-package{
  display:flex;
  justify-content:center;
  align-items:flex-start;
}

.avista-work-package img{
  display:block;
  width:auto;
  max-width:100%;
  height:auto;
  border:1px solid rgba(212,175,55,.3);
  box-shadow:0 12px 35px rgba(0,0,0,.5);
}

.avista-work-summary{
  padding:24px;
  background:#111;
  border:1px solid rgba(212,175,55,.22);
}

.avista-work-summary h2,
.avista-work-section h2{
  margin:0 0 20px;
  padding-bottom:12px;
  color:#d4af37;
  font-size:22px;
  border-bottom:1px solid rgba(212,175,55,.3);
}

.avista-work-summary table{
  width:100%;
  margin:0;
  color:#eee;
  border-collapse:collapse;
}

.avista-work-summary th,
.avista-work-summary td{
  padding:10px 12px;
  border-bottom:1px solid #2b2b2b;
}

.avista-work-summary th{
  width:34%;
  color:#d4af37;
  text-align:left;
}

.avista-work-rating,
.avista-work-price{
  display:flex;
  align-items:center;
  gap:10px;
  margin-top:18px;
  padding:14px 16px;
  background:#090909;
  border-left:3px solid #d4af37;
}

.avista-work-rating strong,
.avista-work-price strong{
  color:#d4af37;
}

.avista-work-rating span{
  color:#fff;
  font-size:22px;
  font-weight:700;
}

.avista-work-rating small{
  color:#aaa;
}

.avista-work-price span{
  color:#fff;
  font-size:20px;
  font-weight:700;
}

.avista-work-button{
  margin-top:22px;
}

.avista-work-button a,
.avista-work-cta a{
  display:block;
  width:100%;
  padding:16px 20px;
  color:#111 !important;
  font-size:17px;
  font-weight:800;
  text-align:center;
  text-decoration:none !important;
  background:linear-gradient(135deg,#f5df7a,#d4af37,#9f7b12);
  border-radius:6px;
  box-shadow:0 8px 24px rgba(212,175,55,.2);
  transition:.2s ease;
}

.avista-work-button a:hover,
.avista-work-cta a:hover{
  transform:translateY(-2px);
  filter:brightness(1.08);
}

.avista-work-section{
  padding:32px;
  border-top:1px solid rgba(212,175,55,.18);
}

.avista-work-comment{
  color:#ddd;
  font-size:16px;
  line-height:1.9;
}

.avista-work-movie iframe,
.avista-work-movie video{
  display:block;
  width:100%;
  max-width:900px;
  margin:0 auto;
}

.avista-work-gallery{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
}

.avista-work-gallery img{
  display:block;
  width:100%;
  height:auto;
  border:1px solid rgba(212,175,55,.2);
}

.avista-work-data dl{
  display:grid;
  grid-template-columns:180px 1fr;
  margin:0;
  border-top:1px solid #2b2b2b;
}

.avista-work-data dt,
.avista-work-data dd{
  margin:0;
  padding:13px 16px;
  border-bottom:1px solid #2b2b2b;
}

.avista-work-data dt{
  color:#d4af37;
  font-weight:700;
  background:#111;
}

.avista-work-data dd{
  color:#eee;
  background:#0b0b0b;
}

.avista-work-cta{
  padding:34px 32px 38px;
  text-align:center;
  background:
    radial-gradient(circle at center,rgba(212,175,55,.1),transparent 65%),
    #050505;
  border-top:1px solid rgba(212,175,55,.28);
}

.avista-work-cta p{
  margin:0 0 18px;
  color:#ccc;
}

@media screen and (max-width:768px){

  .avista-work-header{
    padding:24px 16px 20px;
  }

  .avista-work-visual{
    grid-template-columns:1fr;
    padding:18px;
  }

  .avista-work-summary,
  .avista-work-section,
  .avista-work-cta{
    padding:22px 16px;
  }

  .avista-work-gallery{
    grid-template-columns:1fr;
  }

  .avista-work-data dl{
    grid-template-columns:1fr;
  }

  .avista-work-data dt{
    padding-bottom:6px;
    border-bottom:0;
  }

  .avista-work-data dd{
    padding-top:6px;
  }
}
/* APEX作品ページ内の目次を非表示 */
.avista-work-page .toc,
.avista-work-page .toc-container{
  display:none !important;
}
/* APEX作品ページ内の自動目次を非表示 */
.avista-work-page .toc,
.avista-work-page .toc-container{
  display:none !important;
}

/* 作品情報テーブルの空白を調整 */
.avista-work-summary{
  align-self:start;
}

.avista-work-summary h2:first-child{
  margin-top:0;
}
/* 作品情報の文字色を修正 */
.avista-work-summary td,
.avista-work-summary td *,
.avista-work-summary th,
.avista-work-summary th *{
    color:#222 !important;
}

/* 入力欄風の白いボックス内の文字 */
.avista-work-summary input,
.avista-work-summary textarea,
.avista-work-summary select{
    color:#222 !important;
}
/* 作品情報テーブルの文字色を強制変更 */
.avista-work-summary table td{
    color:#222 !important;
    font-weight:600;
}

.avista-work-summary table th{
    color:#222 !important;
    font-weight:700;
}

/* 白いセルの背景 */
.avista-work-summary table tr td{
    background:#ffffff !important;
}

.avista-work-summary table tr th{
    background:#ffffff !important;
}
/* フッターカードを非表示 */
#navi-footer {
    display: none;
}