/* eropuru_web2 の CSS はこの 1 本（docs/PLAN.md「HTML・CSS・JS」）。変数 → リセット → レイアウト → 部品の順 */

/* ===== 変数 ===== */
:root {
  --color-bg: #f8f8f8;
  --color-border: #ccc;
  --color-header: #485664;
  --color-nav: #2e3740;
  --color-brand: #d36361;
  --color-section: #7eba03;
  --color-section-text: #f3f9e8;
  --color-side: #14c3c9;
  --color-button: #4d90fe;
  --color-button-border: #3d85c6;
}

/* ===== リセット ===== */
*, *::before, *::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
}

body {
  line-height: 1.5;
  -webkit-text-size-adjust: none;
  background: var(--color-bg);
}

img, picture, video, canvas, svg {
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

ol, ul {
  list-style: none;
}

a {
  text-decoration: underline;
  cursor: pointer;
}

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

@font-face {
  font-family: "Material Icons";
  font-style: normal;
  font-weight: 400;
  src: url(fonts.gstatic.com.woff2) format("woff2");
}

/* ===== レイアウト ===== */
.site-header {
  margin-bottom: 20px;
}

.site-header__logo {
  padding: 10px 0;
  text-align: center;
  background: var(--color-header);
}

.site-header__logo-link {
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
}

.site-header__name {
  display: inline-block;
  margin: 0 10px;
  padding: 3px 12px;
  font-size: 14px;
  font-style: normal;
  background: var(--color-brand);
  border-radius: 2px;
}

.site-header__catch {
  font-size: 14px;
}

.site-header__pr {
  font-size: 11px;
  text-align: right;
  color: #555;
  background: var(--color-bg);
}

.site-nav {
  overflow: hidden;
  background: var(--color-nav);
}

.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.site-nav__link {
  display: block;
  padding: 13px 10px;
  font-size: 13px;
  color: #fff;
  text-decoration: none;
}

.page-title {
  margin-bottom: 20px;
  font-size: 24px;
  text-align: center;
}

.layout {
  max-width: 1200px;
  margin: 0 auto 20px;
  padding: 0 5px;
}

.layout__main {
  overflow: hidden;
}

/* PC だけ 2 段。スマホで grid を使うと、iPhone でまれに 2 段になる（旧のまま） */
@media (min-width: 1200px) {
  .layout {
    display: grid;
    grid-template-columns: 7fr 3fr;
    gap: 0 20px;
  }

  .layout__side {
    max-width: 350px; /* 文字が多いと広がりすぎる */
  }

  /* サイドの無いページ（マイページ TOP など）は 1 段 */
  .layout:not(:has(.layout__side)) {
    grid-template-columns: 1fr;
  }
}

.site-footer {
  padding: 20px;
  color: #fff;
  background: #111;
}

.site-footer__menu {
  margin-bottom: 20px;
  text-align: center;
}

.site-footer__item {
  display: inline-block;
}

.site-footer__link {
  display: inline-block;
  padding: 5px;
  font-size: 14px;
  color: #fff;
}

.site-footer__copyright {
  font-size: 12px;
  text-align: center;
}

/* ===== 部品 ===== */

/* 見出し */
.section-title {
  margin-bottom: 10px;
  padding: 5px 0 2px 5px;
  font-size: 1em;
  text-align: center;
  white-space: nowrap;
  color: var(--color-section-text);
  background: var(--color-section);
}

.side-title {
  padding: 10px 0 5px 10px;
  font-size: 1em;
  color: #fff;
  background: var(--color-side);
}

/* 広告の枠 */
.ad-box {
  width: 100%;
  margin-bottom: 20px;
  overflow: hidden;
  text-align: center;
}

.ad-box__slot {
  margin: auto;
}

.ad-box--h1 {
  height: 90px;
}

.ad-box--overlay {
  position: fixed;
  bottom: 0;
  left: 50%;
  width: auto;
  margin: 0;
  overflow: visible;
  transform: translateX(-50%);
}

.ad-box--dummy .ad-box__slot {
  width: 300px;
  height: 250px;
  background: #999;
  border: 1px solid #777;
}

.ad-box--dummy.ad-box--overlay .ad-box__slot {
  height: 70px;
  background: #aaa;
  opacity: 0.1;
}

/* ヘッダーの検索 */
.header-search {
  display: flex;
  align-items: center;
  margin: 10px 0;
  padding-left: 20px;
}

.header-search__input {
  width: 230px;
  margin-right: 3px;
  padding: 2px 5px;
  font-size: 14px;
}

.header-search__submit {
  width: 34px;
  height: 32px;
  padding: 4px 5px;
  background: var(--color-button);
  border: 1px solid var(--color-button-border);
  border-radius: 3px;
}

.header-search__img {
  display: block;
  width: 100%;
  height: 100%;
}

/* サイドの検索 */
.side-search {
  margin-bottom: 20px;
}

.side-search__icon {
  display: inline-block;
  font-family: "Material Icons", serif;
  font-size: 24px;
  font-weight: normal;
  font-style: normal;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  overflow-wrap: normal;
  direction: ltr;
  vertical-align: middle;
}

.side-search__form {
  display: flex;
  justify-content: center;
  margin: 10px 10px 20px;
}

.side-search__input {
  width: 100%;
  padding: 7px 5px;
  font-size: 14px;
}

.side-search__submit {
  margin-left: 5px;
  padding: 7px 5px;
  white-space: nowrap;
  font-size: 14px;
  color: #fff;
  background: var(--color-button);
  border: 1px solid var(--color-button-border);
  border-radius: 3px;
}

/* サイドリンク */
.side-link {
  margin-bottom: 20px;
}

.side-link__list {
  margin-bottom: 5px;
}

.side-link__item {
  border: 1px solid var(--color-border);
  border-top: none;
}

.side-link__link {
  display: block;
  padding: 10px 0 10px 15px;
  overflow: hidden;
  font-size: 0.9em;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.side-link__link:hover {
  background: #eee;
}

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

.side-link__all {
  display: inline-block;
  padding: 5px 16px;
  font-size: 0.9em;
  color: #333;
  text-decoration: none;
  background: #c8f8f9;
  border: 1px solid #b6e7e8;
  border-radius: 5px;
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
}

/* ご意見フォーム */
.goiken-form {
  margin: 0 10px 20px;
}

.goiken-form__title {
  padding: 10px;
  font-size: 0.95em;
  text-align: center;
  color: #006a57;
  background: #b1f2e6;
  border-radius: 5px 5px 0 0;
}

.goiken-form__body {
  padding: 5px 10px;
  font-size: 12px;
  text-align: center;
  background: #eee;
}

.goiken-form__text {
  width: 100%;
  height: 50px;
  padding: 7px 5px;
  font-size: 12px;
  text-align: left;
}

.goiken-form__submit {
  display: block;
  width: 80px;
  margin: 5px auto 0;
  padding: 5px 0;
  color: #fff;
  background: linear-gradient(#0099cc, #006699);
  border: 1px solid #ddd;
  border-radius: 3px;
}

.goiken-form__message {
  animation: fade-in 1s;
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
}

/* 閲覧履歴の帯 */
.rireki__list {
  margin-bottom: 20px;
}

/* ジャンルの枠 */
.janru-box {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0 2px 30px;
}

.janru-box__item {
  width: 150px;
}

.janru-box__link {
  position: relative;
  display: block;
  margin: 0 4px 8px;
  padding: 20px 0;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  text-shadow: #fff 1px 1px 0;
  color: #333;
  border: 1px solid var(--color-border);
}

.janru-box__link::after {
  content: "▶";
  position: absolute;
  top: 50%;
  right: 4px;
  font-size: 12px;
  color: #aaa;
  transform: translateY(-50%);
}

.janru-box__link:hover {
  background: var(--color-section-text);
}

/* collect の一覧 */
.collect-box {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 30px;
}

.collect-box__item {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100px;
  margin: 0 2px 10px;
  border: 1px solid var(--color-border);
}

.collect-box__link {
  display: block;
  text-decoration: none;
}

.collect-box__link:hover {
  background: #fff4f4;
}

.collect-box__label {
  display: block;
  width: 70px;
  padding: 2px 0;
  font-size: 11px;
  text-align: center;
  color: #111;
  background: var(--color-border);
}

.collect-box__label--zyoyu {
  background: #f0acc0;
}

.collect-box__label--tag,
.collect-box__label--fetish {
  background: #e5ec87;
}

.collect-box__label--maker {
  background: #d9c1e2;
}

.collect-box__label--sirizu {
  background: #80cedd;
}

.collect-box__label--kantoku {
  background: #d6c7c7;
}

.collect-box__label--ymd {
  background: #f9e281;
}

.collect-box__label--okini {
  background: #fbd92d;
}

.collect-box__thumb {
  display: block;
  height: 133px;
  margin-bottom: 5px;
  overflow: hidden;
  background: #000;
}

.collect-box__img {
  width: 100%;
}

.collect-box__name {
  display: block;
  max-height: 108px;
  margin-bottom: 10px;
  padding-left: 5px;
  overflow: hidden;
  font-size: 14px;
  text-decoration: underline;
  text-overflow: ellipsis;
}

.collect-box__count {
  margin-top: auto;
  padding-right: 5px;
  font-size: 12px;
  text-align: right;
  color: #555;
}

/* トップのカテゴリ */
.top-category {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 5px;
  margin-bottom: 20px;
}

.top-category__link {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 160px;
  height: 80px;
  text-align: center;
  border: 1px solid var(--color-border);
}

.top-category__link::after {
  content: "\e5e1";
  position: absolute;
  top: 50%;
  right: 10px;
  font-family: "Material Icons", serif;
  font-size: 16px;
  transform: translateY(-50%);
}

/* エラーのページ */
.error-page__code {
  font-size: 8em;
  text-align: center;
}

.error-page__message {
  margin-bottom: 20px;
  font-size: 1.2em;
  font-weight: bold;
  text-align: center;
}

.error-page__back {
  display: block;
  font-size: 1.2em;
  text-align: center;
}

.error-page__menu {
  margin: 40px 0 40px 40px;
}

/* パンくず */
.breadcrumb__list {
  display: flex;
  overflow: hidden;
  background: #f6f6f6;
  border: 1px solid var(--color-border);
}

.breadcrumb__item {
  padding: 7px 0 7px 30px;
  font-size: 0.9em;
  white-space: nowrap;
  background: url(/img/arrow_icon_s.png) no-repeat 12px center;
}

.breadcrumb__item:first-child {
  padding-left: 10px;
  background: none;
}

.breadcrumb__link {
  display: inline-block;
}

/* 検索のページ */
.search-form {
  display: flex;
  align-items: center;
  padding: 10px;
}

.search-form__input {
  width: 100%;
  padding: 7px 5px;
  font-size: 14px;
}

.search-form__submit {
  margin-left: 5px;
  padding: 7px 5px;
  white-space: nowrap;
  font-size: 14px;
  color: #fff;
  background: var(--color-button);
  border: 1px solid var(--color-button-border);
  border-radius: 3px;
}

.search-empty {
  margin: 5px 5px 40px;
  padding: 30px 10px;
  font-size: 1.2em;
  text-align: center;
  background: #fdf3f3;
  border: 1px solid #999;
  border-radius: 3px;
}

/* 記事の表 */
.kizi-table {
  overflow-x: auto;
}

.kizi-table__table {
  width: 100%;
  min-width: 760px;
  margin-bottom: 3px;
  border-collapse: collapse;
}

.kizi-table__head {
  padding: 8px;
  font-size: 0.8em;
  text-align: center;
  white-space: nowrap;
  background: #f2f2f2;
  border: 1px solid var(--color-border);
}

/* 横に送っても、サイト名の列は左に残す。線と背景は ::before に描く */
.kizi-table__head--fix {
  position: sticky;
  top: 0;
  left: 0;
  background: none;
  border-right: none;
  border-left: none;
}

.kizi-table__head--fix::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  background: #f2f2f2;
  border-left: 1px solid var(--color-border);
}

.kizi-table__cell {
  padding: 5px;
  font-size: 0.8em;
  background: #fff;
  border: 1px solid var(--color-border);
}

.kizi-table__cell--nowrap {
  white-space: nowrap;
}

.kizi-table__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
}

.kizi-table__tag {
  display: inline-block;
  padding: 2px 5px;
  font-size: 0.9em;
  white-space: nowrap;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 4px;
}

/* ページの中の絞込み検索 */
.page-filter {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 500px;
  margin-bottom: 20px;
  padding: 10px;
}

.page-filter__input {
  width: 100%;
  padding: 7px 5px;
  font-size: 14px;
}

.page-filter__submit {
  margin-left: 5px;
  padding: 7px 5px;
  white-space: nowrap;
  font-size: 14px;
  color: #fff;
  background: var(--color-button);
  border: 1px solid var(--color-button-border);
  border-radius: 3px;
}

/* 画像数の注記 */
.count-note {
  margin: 0 5px 10px 0;
  font-size: 0.8em;
  text-align: right;
}

/* 一覧のページ（シリーズ・タグなど）の行 */
.master-list {
  margin-bottom: 40px;
}

.master-list__item {
  display: inline-block;
  max-width: 300px;
  margin: 0 10px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.master-list__link {
  font-size: 0.8em;
  white-space: nowrap;
}

/* 女優の行・名前の頭の文字のリンク */
.kana-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.kana-nav__item {
  border: 1px solid #999;
}

.kana-nav__link {
  display: inline-block;
  padding: 10px;
}

.kana-nav__link:hover {
  background: #e2e2e2;
}

/* ページ内リンクは、なめらかに送る（旧は jQuery の animate） */
html:has(.kana-nav__link[href^="#"]) {
  scroll-behavior: smooth;
}

/* 女優の行のページの名前 */
.zyoyu-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.zyoyu-list__item {
  width: 142px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.zyoyu-list__link {
  font-size: 0.9em;
  white-space: nowrap;
}

/* ページ送り */
.pagenavi {
  margin-bottom: 10px;
}

.pagenavi__list {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.pagenavi__link {
  display: inline-block;
  padding: 10px 15px;
  font-size: 0.9em;
  background: #fff;
  border: 1px solid var(--color-border);
}

.pagenavi__link:hover,
.pagenavi__link[aria-current] {
  background: #eee;
}

.pagenavi__count {
  font-size: 0.8em;
  text-align: center;
}

/* 並び替え */
.sort-navi {
  margin: 10px 0;
  text-align: center;
}

.sort-navi__item {
  display: inline-block;
  margin: 3px;
}

.sort-navi__link {
  display: inline-block;
  padding: 5px 10px;
  font-size: 14px;
  text-decoration: none;
  background: #fff;
  border: 1px solid #aaa;
  border-radius: 3px;
}

.sort-navi__link[aria-current] {
  background: #eee;
}

/* 画像・動画・ページのボタン（保存・詳細・類似検索）。置き場所は使う側のクラスで決める */
.fav-button,
.dmm-link-button,
.similar-button {
  z-index: 9999;
  padding: 6px 12px;
  font-size: 11px;
  white-space: pre;
  color: #111;
  background: #eee;
  border: 1px solid #555;
  border-radius: 3px;
}

.similar-button {
  padding-left: 24px;
}

.similar-button::after {
  content: "\e8b6";
  position: absolute;
  top: 50%;
  left: 4px;
  font-family: "Material Icons", serif;
  font-size: 16px;
  transform: translateY(-50%);
}

/* 保存済みは「保存済み」と出す（旧と同じ）。読み上げの名前は変えず、状態は aria-pressed で伝える */
.fav-button[aria-pressed="true"] {
  font-size: 0;
  background: lightpink;
}

.fav-button[aria-pressed="true"]::before {
  content: "保存済み";
  content: "保存済み" / "";
  font-size: 11px;
}

/* 類似検索の済み */
.similar-button:disabled {
  cursor: not-allowed;
  background: #d7d3ff;
}

.similar-button:disabled::after {
  content: "\e5db";
}

/* 送っている間は回る印を出す */
.fav-button[aria-busy="true"],
.dmm-link-button[aria-busy="true"],
.similar-button[aria-busy="true"] {
  color: transparent;
  cursor: default;
}

.fav-button[aria-busy="true"]::after,
.dmm-link-button[aria-busy="true"]::after,
.similar-button[aria-busy="true"]::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  border: 4px solid #f3f3f3;
  border-top-color: #3498db;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: fav-button-spin 1s infinite linear;
}

@keyframes fav-button-spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* 保存した・削除したのお知らせ。3 秒で消す（js/fav-button.js） */
.fav-button__message {
  position: fixed;
  bottom: 100px;
  left: 2%;
  z-index: 10000;
  width: 96%;
  max-width: 850px;
  padding: 10px;
  color: #fff;
  text-align: center;
  background: #000;
  border: 1px solid #fff;
}

.fav-button__message a {
  color: #76ecef;
}

/* ページの保存 */
.page-fav {
  height: 32px;
  margin-bottom: 10px;
  text-align: right;
}

.page-fav__button {
  position: relative;
}

/* 作品の画像の一覧 */
.photo-grid__item {
  position: relative;
}

.photo-grid__img {
  height: auto;
}

.photo-grid__fav,
.photo-grid__dmm-link,
.photo-grid__similar {
  position: absolute;
  right: 5px;
}

.photo-grid__fav {
  top: 5px;
}

.photo-grid__dmm-link {
  top: 45px;
}

.photo-grid__similar {
  top: 85px;
}

/* 類似画像（js/similar-button.js）は、押した画像の下に枠を付けて出す */
.photo-grid__item .photo-grid {
  border: 5px solid #d7d3ff;
}

/* 作品の枠 */
.dmm-box__title {
  color: #fff;
  text-decoration: underline;
  background: none;
  border: none;
}

.dmm-box__story {
  max-height: 64px;
  margin-bottom: 4px;
  padding: 6px;
  overflow: hidden;
  font-size: 12px;
  border: 1px solid var(--color-border);
}

.dmm-box__package-button {
  background: none;
  border: none;
}

.dmm-box__package-img {
  height: auto;
}

.dmm-box__dmm-link {
  display: block;
  width: 310px;
  margin: 10px auto;
  padding: 12px 0 12px 20px;
  font-size: 14px;
  font-weight: bold;
  text-decoration: underline;
  color: #444;
  background: #f1c40f url(/img/dmm_btn_icon.png) no-repeat 40px center;
  border: none;
  border-radius: 6px;
}

.dmm-box__spec-title {
  max-height: 69px;
  padding: 5px 10px;
  overflow: hidden;
  font-size: 0.9em;
  font-weight: normal;
  background: #eee;
  border: 1px solid var(--color-border);
  border-bottom: none;
}

.dmm-box__spec {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 3px;
  border: 1px solid var(--color-border);
  border-bottom: none;
}

.dmm-box__term {
  width: 70px;
  padding: 8px;
  font-size: 0.8em;
  text-align: center;
  background: #eee;
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.dmm-box__desc {
  width: calc(100% - 70px);
  padding: 5px 0 5px 5px;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
}

.dmm-box__credit {
  display: inline-block;
  padding-right: 8px;
  font-size: 0.9em;
}

.dmm-box__credit--no-link {
  font-size: 0.8em;
  color: #777;
}

.dmm-box__date {
  display: block;
  margin-bottom: 40px;
  padding-right: 5px;
  font-size: 12px;
  text-align: right;
  color: #999;
}

/* 作品の無料動画 */
.dmm-movie {
  position: relative;
}

.dmm-movie__title {
  padding: 8px;
  font-size: 18px;
  text-align: center;
  color: #fff;
  background: #000;
}

.dmm-movie__screen {
  margin-bottom: 20px;
  padding: 10px 0 20px;
  overflow: hidden;
  background: #000 url(/img/free_movie_play.png) no-repeat center;
}

.dmm-movie__play {
  display: block;
  width: 100%;
  background: none;
  border: none;
}

.dmm-movie__img {
  display: block;
  width: auto;
  max-height: 300px;
  margin: auto;
  opacity: 0.5;
}

/* 押すと画像を替える DMM の動画（4:3） */
.dmm-movie__frame {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border: none;
}

.dmm-movie__fav,
.dmm-movie__dmm-link {
  position: absolute;
  right: 5px;
}

.dmm-movie__fav {
  top: 5px;
}

.dmm-movie__dmm-link {
  top: 45px;
}

/* 動画の一覧 */
.movie-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 30px;
}

.movie-list__item {
  width: 180px;
  margin: 0 2px 10px;
  border: 1px solid var(--color-border);
  border-radius: 5px;
}

.movie-list__button {
  display: block;
  width: 100%;
  text-align: left;
  color: inherit;
  background: none;
  border: none;
}

.movie-list__thumb {
  display: block;
  height: 120px;
  margin-bottom: 5px;
  overflow: hidden;
  background: #000 url(/img/free_movie_play.png) no-repeat center / 30% auto;
}

.movie-list__img {
  width: 100%;
  opacity: 0.7;
}

.movie-list__title {
  display: block;
  height: 42px;
  margin-bottom: 10px;
  padding-left: 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 14px;
  text-decoration: underline;
}

/* 押した動画（js/movie-list.js）。一覧の幅いっぱいに、DMM の動画（4:3）と題名・女優を出す */
.movie-list__player {
  position: relative;
  width: 100%;
  margin-bottom: 20px;
  color: #fff;
  background: #000;
}

.movie-list__frame {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border: none;
}

.movie-list__fav,
.movie-list__dmm-link {
  position: absolute;
  right: 5px;
}

.movie-list__fav {
  top: 5px;
}

.movie-list__dmm-link {
  top: 45px;
}

.movie-list__player-title {
  display: block;
  width: 100%;
  padding: 0 10px;
  text-align: left;
  text-decoration: underline;
  color: inherit;
  background: none;
  border: none;
}

.movie-list__zyoyu {
  padding: 10px;
}

/* collect の情報（「〜とは」） */
.collect-info__title {
  max-height: 69px;
  padding: 10px;
  overflow: hidden;
  background: #eee;
  border: 1px solid var(--color-border);
  border-bottom: none;
}

.collect-info__list {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 20px;
  border: 1px solid var(--color-border);
  border-bottom: none;
}

.collect-info__term {
  width: 70px;
  padding: 10px 5px;
  font-size: 0.8em;
  text-align: center;
  background: #eee;
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.collect-info__desc {
  width: calc(100% - 70px);
  padding: 10px 0 10px 10px;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.tag-cloud__link {
  display: inline-block;
  padding: 5px 10px;
  font-size: 0.9em;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 4px;
}

.tag-cloud__link--off {
  color: #777;
  background: var(--color-border);
}

/* 選んでいるプレイ。押すと絞込みを外す（× の印） */
.tag-cloud__link[aria-current] {
  position: relative;
  padding-left: 28px;
  background: #f9e1e5;
}

.tag-cloud__link[aria-current]::before {
  content: "\e5c9";
  position: absolute;
  top: 0;
  left: 2px;
  font-family: "Material Icons", serif;
  font-size: 20px;
  font-variation-settings: "FILL" 0;
}

/* コメント */
.comment-box {
  display: flex;
  flex-direction: column-reverse; /* 長いときは下（新しいコメント）から見せる */
  width: 90%;
  max-height: 500px;
  margin: 0 auto 30px;
  padding: 10px 20px;
  overflow-y: auto;
  background: #eee;
}

.comment-box__item {
  margin-bottom: 10px;
  padding: 10px;
  border-top: 1px solid #999;
}

.comment-box__meta {
  display: block;
  margin-bottom: 10px;
  font-size: 12px;
  color: #555;
}

.comment-box__id {
  display: inline-block;
  margin-left: 10px;
  font-size: 10px;
  color: #999;
}

.comment-box__msg {
  display: inline-block;
  font-size: 13px;
  word-break: break-word;
}

.comment-box__text {
  width: 100%;
  margin-bottom: 5px;
  padding: 7px 5px;
  font-size: 13px;
}

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

.comment-box__submit {
  padding: 5px;
  font-size: 13px;
  color: inherit;
  background: #96e4ff;
  border: 1px solid #015a79;
  border-radius: 5px;
  box-shadow: 2px 2px 4px gray;
}

/* まとめの情報（作成者・コメント） */
.okini-info {
  margin-bottom: 30px;
  padding: 10px;
}

.okini-info__list {
  display: flex;
  flex-wrap: wrap;
  border: 1px solid var(--color-border);
  border-bottom: none;
}

.okini-info__term {
  width: 120px;
  padding: 5px;
  font-size: 0.8em;
  text-align: center;
  background: #f5f5f5;
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.okini-info__desc {
  width: calc(100% - 120px);
  padding: 5px;
  font-size: 0.8em;
  border-bottom: 1px solid var(--color-border);
}

/* h1 の下のお知らせ（完了・エラー）。改行はそのまま出す */
.flash-message {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 500px;
  margin: 0 auto 20px;
  padding: 10px 20px;
  white-space: pre-line;
  background: #fdffd7;
  animation: flash-message-shake 5s ease infinite;
}

.flash-message::before {
  font-family: "Material Icons", serif;
  font-size: 40px;
  white-space: nowrap;
}

.flash-message--done {
  color: #333;
  border: 2px solid green;
}

.flash-message--done::before {
  content: "\e86c"; /* check_circle */
  color: green;
}

.flash-message--error {
  color: red;
  border: 2px solid red;
  animation-duration: 4s;
}

.flash-message--error::before {
  content: "\e002"; /* warning */
}

@keyframes flash-message-shake {
  0%, 6%, 15%, 100% {
    transform: translateY(0);
  }

  3%, 9% {
    transform: translateY(-5px);
  }
}

/* マイページ TOP の保存・閲覧履歴へのリンク */
.mypage-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
  margin-bottom: 30px;
}

.mypage-menu__item {
  width: 140px;
  border: 1px solid var(--color-border);
  border-radius: 5px;
}

.mypage-menu__link {
  position: relative;
  display: block;
  padding: 70px 0 10px;
  font-size: 0.8em;
  text-align: center;
  text-decoration: none;
  color: #777;
}

.mypage-menu__link::before {
  position: absolute;
  top: 20px;
  left: 50%;
  font-family: "Material Icons", serif;
  font-size: 38px;
  line-height: 1;
  transform: translateX(-50%);
}

.mypage-menu__link--img::before {
  content: "\e87d"; /* favorite */
}

.mypage-menu__link--movie::before {
  content: "\e639"; /* live_tv */
}

.mypage-menu__link--page::before {
  content: "\e06f"; /* note */
}

.mypage-menu__link--rireki::before {
  content: "\e889"; /* history */
}

.mypage-menu__count {
  padding-right: 2px;
}

/* マイページの「ありません」のお知らせ */
.mypage-note {
  margin: 5px 5px 40px;
  padding: 10px;
  font-size: 1.2em;
  text-align: center;
  border: 1px solid #999;
  border-radius: 3px;
}

.mypage-note--plain {
  margin: 50px 0;
  padding: 0;
  font-size: 130%;
  border: none;
}

/* まとめ画像を作るリンク（＋まとめる） */
.okini-add {
  padding: 5px 10px 5px 5px;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  color: #fff;
  background: forestgreen;
  border-radius: 20px;
}

.okini-add::before {
  content: "\e145"; /* add */
  font-family: "Material Icons", serif;
  font-size: 24px;
  font-weight: normal;
  line-height: 1;
  vertical-align: middle;
}

/* 自分のまとめ画像を直すリンク（collect の一覧の左下） */
.collect-box__edit {
  position: absolute;
  bottom: 0;
  left: 0;
  font-family: "Material Icons", serif;
  font-size: 40px;
  line-height: 1;
  text-decoration: none;
  color: forestgreen;
}

.collect-box__edit::before {
  content: "\e147"; /* add_circle */
}

/* 保存したページ・動画・閲覧履歴の一覧 */
.mypage-list {
  margin-bottom: 40px;
}

/* 保存した画像の一覧 */
.mypage-imgs__add {
  margin-bottom: 20px;
  text-align: right;
}

/* まとめ画像の作成・修正 */
.okini-edit__prepend input {
  position: relative;
  top: 2px;
  cursor: pointer;
}

.okini-edit__prepend label {
  padding-right: 10px;
  cursor: pointer;
}

.okini-edit__imgs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 30px;
}

.okini-edit__imgs[aria-invalid="true"] {
  border: 1px solid red;
}

.okini-edit__img {
  position: relative;
  display: block;
  width: 120px;
  height: 90px;
  margin: 2px 2px 9px; /* 下は旧と同じ空き（旧は inline-block で、行の下に文字の分が空いていた） */
  overflow: hidden;
  background: none;
  border: none;
}

.okini-edit__img[aria-pressed="true"] {
  background: #111;
}

.okini-edit__thumb {
  display: block;
  width: 100%;
}

.okini-edit__img[aria-pressed="true"] .okini-edit__thumb {
  opacity: 0.7;
}

/* 丸の印。選んだ画像は番号 */
.okini-edit__img::after {
  content: "";
  position: absolute;
  top: 3px;
  right: 3px;
  min-width: 24px;
  height: 24px;
  padding: 0 3px;
  font-size: 14px;
  line-height: 24px;
  text-align: center;
  border: 3px solid #fff;
  border-radius: 12px;
}

.okini-edit__img[aria-pressed="true"]::after {
  content: attr(data-renban);
  color: #fff;
  background: mediumseagreen;
  border-width: 2px;
}

.okini-edit__fields {
  display: grid;
  grid-template-columns: 120px 1fr;
  width: 90%;
  max-width: 600px;
  margin: auto;
}

.okini-edit__label {
  padding-right: 10px;
  font-weight: bold;
  cursor: pointer;
}

.okini-edit__required {
  padding-left: 10px;
  font-size: 10px;
  color: red;
}

.okini-edit__input {
  width: 95%;
  margin-bottom: 10px;
  padding: 5px;
  font-size: 14px;
}

.okini-edit__input--comment {
  height: 160px;
  margin-bottom: 17px; /* 旧と同じ空き（旧は表の中の inline-block で、下に文字の分が空いていた） */
}

.okini-edit__input[aria-invalid="true"] {
  border: 1px solid red;
}

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

.okini-edit__button {
  margin: 20px 0 100px;
  padding: 10px 20px;
  font-size: 18px;
  color: #fff;
  background: orangered;
  border: 1px solid #d23900;
  border-radius: 5px;
}
