/* 共通 */
:root {
  --pink: #ffa2c7;
  --text: #333;
  --border: #e6e6e6;
  --title-bg: #b6ccf9;
}

body {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  color: var(--text);
}

/* 固定幅 260px */
.btn-260 {
  width: 260px;
  max-width: 100%;
}


/* ===== ヘッダー ===== */
.site-header {
  width: 100%;
  min-width: 1100px; /* PC前提の縮小表示を担保（必要に応じて調整） */
}

/* ピンク帯（ロゴ） */
.brand-bar {
  background: var(--pink);
}

.brand-inner {
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
}

.brand-logo img {
  height: 42px; /* ロゴ高さは適宜調整 */
  display: block;
}

/* 検索 + アイコン列 */
.utility-bar {
  border-bottom: 1px solid var(--border);
  background: #fff;
}

.utility-inner {
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
}

/* 検索フォーム */
.site-search {
  display: flex;
  align-items: center;
  margin-right: auto; /* 右側にアイコン群を寄せる */
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}

.search-input {
  flex: 1;
  height: 40px;
  border: none;
  outline: none;
  padding: 0 12px;
  font-size: 14px;
}

.search-btn {
  width: 48px;
  height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 18px;
}

/* アイコンナビ */
.icon-nav {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 0;
}

.icon-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  text-decoration: none;
  color: var(--text);
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
}

.icon-link i {
  font-size: 18px;
}

.icon-link:hover {
  background: #fafafa;
}

/* ログイン状態の切り替え
- body に is-logged-in / is-logged-out を付けて制御
*/
body.is-logged-in .icon-nav.logged-in {
  display: flex;
}
body.is-logged-in .icon-nav.logged-out {
  display: none;
}
body.is-logged-out .icon-nav.logged-in {
  display: none;
}
body.is-logged-out .icon-nav.logged-out {
  display: flex;
}

/* スマホでもPC縮小の要求に合わせて、最小はそのまま縮小表示
ただし極小幅での崩れ防止のため、少しだけ余白調整 */
@media (max-width: 480px) {
  .brand-inner,
  .utility-inner {
    padding: 8px 10px;
  }
  .site-search {
    width: 100%;
  }
  .icon-link span {
    display: none;
  } /* ラベルを隠してアイコンだけに */
}

/* ===== フッター ===== */
.site-footer {
  width: 100%;
  min-width: 1100px;
  background: var(--pink);
  padding: 24px 16px 16px;
  color: #fff;
  text-align: center;
}

.footer-links {
  margin-bottom: 12px;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links li {
  margin: 0;
}

.footer-links a {
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
}

.footer-links a:hover {
  color: #5f5f5f;
}

.site-footer .copyright {
  font-size: 13px;
  color: var(--text);
  margin: 0;
}

.content-frame {
  display: flex;
}

/* ===== サイドバー ===== */
.side-menu {
  width: 260px;
  flex: 0 0 260px;
  margin-bottom: 50px;
  padding-top: 1.5rem !important;
  padding-bottom: 10px;
  box-sizing: border-box;
}

.side-nav {
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  box-sizing: border-box;
}

.side-title {
  font-size: 15px;
  margin: 0 0 15px;
  padding: 6px 8px;
  background: var(--pink);
  color: #333;
}

/* かなインデックス（あ〜わ） */
.kana-index {
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* 5列で整列：調整可 */
  gap: 6px;
  list-style: none;
  margin-bottom: 15px;
  padding: 0 8px;
}

.kana-index a {
  display: block;
  text-align: center;
  padding: 8px 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  text-decoration: none;
  color: var(--text);
  font-size: 14px;
}

.kana-index a:hover {
  background: #fafafa;
}

.kana-index .wide {
  grid-column: span 2; /* 2列分を占有 */
}

.kana-index .wide a {
  padding: 8px 0; /* 縦の余白も調整可 */
}

/* ===== マイページ用サイドメニュー ===== */
.side-nav--mypage .mypage-links{
  list-style: none;
  margin: 0;
  padding: 8px;
}

.side-nav--mypage .mypage-links li + li{
  margin-top: 6px;
}

.side-nav--mypage .mypage-links a{
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
  transition: background-color .15s ease, color .15s ease;
}

.side-nav--mypage .mypage-links a:hover,
.side-nav--mypage .mypage-links a:focus{
  background: rgba(255, 57, 97, 0.10);
  outline: none;
}

/* 現在地表示 */
.side-nav--mypage .mypage-links a[aria-current="page"],
.side-nav--mypage .mypage-links .is-current > a{
  background: rgba(255, 57, 97, 0.14);
  font-weight: 700;
}


/* お知らせと作家情報のレイアウト */
.site-main {
  width: 100%;
  min-height: 100vh;
}

.card-header {
  background: var(--title-bg);
}

.title-bar {
  background: var(--title-bg);
  padding: 8px 12px;
  border-radius: 6px;
  line-height: 1.2;
}

.sub-text {
  font-size: 0.75em;
  color: #6c757d;
  margin-left: 8px;
  font-weight: normal;
}

.card-body-custom {
  max-height: 150px;
  overflow: auto;
}

/* ===== 作品一覧 ===== */

.list-head {
  display: block;
  font-weight: 700;
  padding: 5px 8px;
  color: #333;
  background: #d9d9d9;
  line-height: 1;
  border-radius: 6px;
}

.work-link {
  color: inherit;
}

/* ▼ 5列レイアウト（可変レスポンシブ） */
.work-grid {
  display: grid;
  gap: 1.5rem; /* カード間の余白（g-4相当） */
  grid-template-columns: repeat(2, minmax(0, 1fr)); /* モバイル: 2列 */
}

@media (min-width: 768px) {
  /* md~: 3列 */
  .work-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {
  /* lg~: 4列 */
  .work-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  /* xl~: 5列 */
  .work-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.work-item {
  display: block;
  height: 100%;
}
.work-link {
  display: block;
}

.work-thumbs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.work-thumbs .thumb {
  flex: 1 1 0;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #f8f9fa;
}

.work-thumbs .thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.work-meta {
  text-align: center;
  font-size: 14px;
}

.work-title {
  margin: 0.25rem 0 0.2rem;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  /* 2行クランプ */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
  min-height: calc(1.3em * 2);
}

.work-author .author-link {
  text-decoration: none;
}

.work-price {
  font-weight: 700;
  margin-top: 0.25rem;
}

.work-author .author-link:hover {
  border-bottom-color: transparent;
  text-decoration: underline;
}

.work-author .author-link:focus-visible {
  outline: 2px solid var(--title-bg);
  outline-offset: 2px;
  border-bottom-color: transparent;
}

.author-icon {
  flex-shrink: 0; /* アイコンは縮まない */
  width: 64px;
  height: 64px;
  object-fit: cover;
  display: block;
}

.author-grid h3 {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.author-name-link {
  text-decoration: none;
}

.author-name-link:hover {
  text-decoration: underline;
}

.author-name-line1 {
  display: -webkit-box;
  -webkit-line-clamp: 1; /* 1行まで */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
  min-height: 1.3em; /* 1行分の高さを確保 */
  max-width: 100%; /* 親の幅に合わせて制限 */
}

.author-name {
  display: -webkit-box;
  -webkit-line-clamp: 2; /* 2行まで */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
  min-height: calc(1.3em * 2); /* 2行分の高さを確保 */
  max-width: 100%; /* 親の幅に合わせて制限 */
}

.new-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: bold;
  color: #fff;
  background-color: #dc3545; /* 赤色 */
  padding: 0 6px;
  border-radius: 3px;
  line-height: 1.4;
}

.fav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 32px;
  padding: 0 12px;
  border: 1px solid #dee2e6;
  background-color: #fff;
  cursor: pointer;
  font-size: 0.875rem;
}

.fav-btn i {
  font-size: 1rem;
  color: #6c757d;
}

.fav-btn i.active {
  color: #dc3545;
}

/* ========== タイトルバー：ショッピングカート専用 ========== */
.title-bar.is-cart {
  background: #f1f3f5;
  padding: 8px 12px;
  border-radius: 0;
  border-top: 1px solid #6c757d;
  border-bottom: 1px solid #6c757d;
}

.title-bar.is-cart .bi {
  font-size: 1.1rem;
}

/* ========== カート一覧 ========== */
.cart-list {
  background: #fff;
  border-top: 1px solid #dee2e6;
  border-bottom: 1px solid #dee2e6;
}

.cart-item {
  border: 0;
}

.cart-item + .cart-item {
  border-top: 1px solid #dee2e6;
}

/* 右端の価格＆削除を右下に寄せるため、親をストレッチ */
.cart-inner {
  display: flex;
  gap: 16px;
  padding: 16px 8px;
  align-items: stretch; /* ← これで右端をボトムに寄せやすくする */
}

/* 左：サムネイル（少し大きく） */
.cart-thumb {
  width: 120px; /* ↑ 90px → 120px に拡大 */
  flex: 0 0 120px;
}
.cart-thumb img {
  width: 100%;
  height: 100%;
  max-height: 170px; /* 高さも少し余裕を持たせる */
  object-fit: cover;
  display: block;
}

/* 中央：情報 */
.cart-info {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.cart-title {
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.4;
  word-break: break-word;
}

.cart-meta {
  margin-top: 10px;
}
.cart-meta-row {
  font-size: 0.92rem;
  color: #495057;
}

.cart-price-actions {
  margin-left: auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  align-self: flex-end;
}

@media (max-width: 576px) {
  .cart-price-actions {
    width: 100%;
    justify-content: flex-end;
    align-self: auto;
    padding-top: 8px;
  }
}

.cart-price {
  font-weight: 700;
  white-space: nowrap;
}

.cart-remove {
  white-space: nowrap;
}

/* レスポンシブ（小画面では右カラムを下に回す） */
@media (max-width: 576px) {
  .cart-inner {
    flex-wrap: wrap;
  }
  .cart-price-actions {
    width: 100%;
    align-items: flex-end;
    justify-content: flex-start; /* 下寄せの必要が薄れるのでリセット */
    padding-top: 8px;
  }
}

/* ========== 注意書き & 小計 ========== */
.cart-summary {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-top: 16px;
  flex-wrap: wrap;
}
/* 注意書きを少し小さく */
.cart-note {
  color: #dc3545;
  margin: 0;
  font-size: 0.85rem; /* 以前より小さく */
  line-height: 1.5;
}
.cart-subtotal {
  margin-left: auto;
}

.subtotal-line {
  white-space: nowrap;
}

.subtotal-line .subtotal-price {
  margin-left: 8px;
  font-weight: 600;
}

/* ========== 合計ボックス & 購入ボタン（ピンク寄り／最大幅制限） ========== */
.cart-total-box {
  border: 2px solid #ff3961; /* ピンク寄りの赤枠 */
  border-radius: 6px;
  padding: 16px;
  margin-top: 16px;
  text-align: center;
  background: #fff;
  max-width: 680px; /* ← 画面いっぱいにしない */
  margin-left: auto;
  margin-right: auto; /* センタリング */
}

.cart-total-line {
  font-weight: 700;
  margin-bottom: 12px;
  font-size: 1.05rem;
}

.cart-total-amount {
  margin-left: 6px;
}

.btn-pink {
  --pink: #ff3961; /* 基本色 */
  --pink-hover: #e83358; /* 10%ほど暗め */
  --pink-active: #cc2b47; /* さらに暗め */
  color: #fff;
  background-color: var(--pink);
  border-color: var(--pink);
}

.btn-pink:hover {
  color: #fff;
  background-color: var(--pink-hover);
  border-color: var(--pink-hover);
}

.btn-pink:active,
.btn-pink:focus {
  color: #fff;
  background-color: var(--pink-active);
  border-color: var(--pink-active);
  box-shadow: 0 0 0 0.2rem rgba(255, 57, 97, 0.25); /* #ff3961の影 */
}

.payment-type img {
  margin-left: 5px;
  margin-right: 5px;
}

/* 完了ブロック */

.btn-mypage,
.btn-outline-mypage {
  width: 310px;
  margin-left: auto;
  margin-right: auto;
  display: block;
}

.btn-mypage {
  background-color: #33218a;
  border: 2px solid #33218a;
  color: #ffffff;
  font-weight: 700;
  border-radius: 0.5rem;
  text-align: center;
}

.btn-mypage:hover,
.btn-mypage:focus {
  background-color: #2a1c76;
  border-color: #2a1c76;
  color: #ffffff;
}

.btn-outline-mypage {
  background-color: #ffffff;
  color: #33218a;
  border: 2px solid #33218a;
  font-weight: 700;
  border-radius: 0.5rem;
  text-align: center;
}

.btn-outline-mypage:hover,
.btn-outline-mypage:focus {
  background-color: #f5f5f5 !important;
  color: #33218a !important;
  border-color: #33218a !important;
}

/* 作家プロフィール */

.author-icon-lg {
  width: 120px;
  height: 120px;
  object-fit: cover;
  display: block;
}

.sns-link {
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-block;
}

.tabs-outside .tab-btn {
  border: 1px solid #dee2e6;
  border-bottom: none;
  background: #f8f9fa;
  color: #495057;
  padding: 0.35rem 0.75rem;
  line-height: 1.2;
  border-top-left-radius: 0.5rem;
  border-top-right-radius: 0.5rem;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  transition: all 0.2s;
}

.tabs-outside .tab-btn:hover {
  background: #e9ecef;
}

.tabs-outside .tab-btn.active {
  background-color: var(--title-bg);
  border-color: var(--title-bg);
}

.author-works-card {
  border-top-left-radius: 0 !important;
}

.author-works-card .work-grid > .col {
  width: auto !important;
  flex: 1 0 0%;
}

.work-item .thumb.cover {
  background: #f8f9fa;
  border: 1px solid #eee;
  border-radius: 0.375rem;
  overflow: hidden;
  display: block;
}

.author-works-card .work-price {
  text-align: center;
}

/* ===== 作品詳細レイアウト ===== */

/* 横一列：表紙 + サンプル3 */
.media-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  align-items: stretch; /* 同じ行の高さを揃える */
}
.media-gallery .media-cover,
.media-gallery .sample {
  position: relative;
/*  overflow: hidden; */
  border-radius: 8px;
}

/* 表紙は比率固定、行の高さを決める役 */
.media-gallery .media-cover {
  aspect-ratio: 3 / 4;
}

/* サンプルは行の高さにフィット（coverに合わせて伸縮） */
.media-gallery .sample {
  height: 100%;
}

.media-gallery img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* レスポンシブ：タブレット以下は縦積み（表紙の下にサンプル3を横並び） */
@media (max-width: 992px) {
  .media-gallery {
    grid-template-columns: 1fr;
  }
  .media-gallery .media-cover {
    aspect-ratio: 3 / 4;
  }
  .media-gallery .sample {
    height: auto; /* 行高さ制御を解除 */
    aspect-ratio: 1 / 1; /* 正方形タイル */
  }
  /* サンプル3を横並びにするための補助ラッパが不要なので、
     スマホでは display:grid のままでも1列になって並ぶ。
     3枚を横に見せたい場合は以下を追加
  */
  .media-gallery {
    grid-auto-rows: auto;
  }
  .media-gallery .sample {
    /* ここでは1列表示。もしサンプル3を横に並べたいなら、
       別ラッパで3分割にする構造へ変更します（要望あれば対応）。 */
  }
}

/* 作者アイコン + お気に入り */

.fav-btn {
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.4em;
  border: 1px solid #dee2e6;
  background: #fff;
  padding: 0 0.6rem;
  border-radius: 999px;
  line-height: 1;
  min-width: 94px;
}
.fav-btn[aria-pressed="true"] {
  background: #e55e8b;
  border: 1px solid #e55e8b;
}
.fav-btn[aria-pressed="true"] span {
  color: #fff;
}
.fav-btn i {
  font-size: 1.1rem;
}
.fav-btn[aria-pressed="true"] i {
  /* ハートON時の色（Bootstrap Danger相当） */
  color: #dc3545;
}
.fav-btn span {
  font-size: 11px;
}
.fav-btn[aria-pressed="false"] span.follow-text::before {
  content: 'フォロー'
}
.fav-btn[aria-pressed="true"] span.follow-text::before {
  content: 'フォロー中'
}
.fav-count {
  font-size: 0.95em;
}

/* 日付 */
.dates {
  font-size: 0.95rem;
  color: #6c757d;
}

/* 作家アイコン縦積み */
.author-stack { 
  min-width: 56px; 
}
.author-fav-btn i { 
  vertical-align: -1px; 
}

/* スターON時の色（ゴールド） */
.author-fav-btn[aria-pressed="true"] i { 
  color: #ffc107; 
}

/* モバイルでの折返し最適化（任意） */
@media (max-width: 576px) {
  .author-stack { align-items: flex-start; }
}

/* 作品説明ブロック */
.work-summary .file-spec {
  text-align: right;
  font-size: 0.9rem;
  color: #6c757d;
  white-space: nowrap;
}

/* タグ列（スラッシュ区切り） */
.meta-tags .tag {
  position: relative;
  padding-right: 0.6em;
  margin-right: 0.6em;
  white-space: nowrap;
}

.meta-tags .tag + .tag::before {
  content: "/";
  position: absolute;
  left: -0.6em;
  color: #adb5bd;
}

/* 価格・購入履歴 */
.price-and-history .price {
  color: #ff3961;
}

.price-and-history .price-amount {
  font-weight: 700;
}

.purchase-history {
  font-size: 0.9rem;
}

.actions .btn {
  border-radius: 10px;
}

.btn-cart{
  background-color: #ff8a00;
  border-color: #ff8a00;
  color: #ffffff;
}

.btn-cart:hover,
.btn-cart:active{
  background-color: #e67a00;
  border-color: #e67a00;
  color: #ffffff;
}

.btn-checkout{
  background-color: #ffd400;
  border-color: #ffd400;
  color: #ffffff;
}

.btn-checkout:hover,
.btn-checkout:active{
  background-color: #e6bf00;
  border-color: #e6bf00;
  color: #ffffff;
}

.btn-purchased,
.btn-purchased:hover,
.btn-purchased:focus,
.btn-purchased:active{
  cursor: default;
  box-shadow: none !important;
  transition: none;
}

.btn-purchased:disabled{
  opacity: 1;
  pointer-events: none;
}


/* マイページ */
.mypage-tiles{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-start;
  max-width: 804px; /* 260px×3 + 12px×2（ギャップ） */
}

.tile-btn{
  background-color: #efefef;
  color: #333;
  border: 3px solid transparent;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .9rem 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color .12s ease, transform .06s ease;
}

.tile-btn:hover,
.tile-btn:focus{
  background-color: #f4f4f4;
  text-decoration: none;
  outline: none;
}

.tile-btn:active{ transform: translateY(1px); }

.tile-1{ border-color: #533f9a; } /* マイページ */
.tile-2{ border-color: #983466; } /* 購入履歴 */
.tile-3{ border-color: #513d96; } /* お気に入り */
.tile-4{ border-color: #4f8abc; } /* 作家フォローリスト */
.tile-5{ border-color: #ae4828; } /* 登録情報設定 */
.tile-6{ border-color: #ff3961; } /* お問い合わせ（ブランドピンク） */


/* モバイル2列 */
@media (max-width: 768px){
  .mypage-tiles{ 
    max-width: 100%; 
  }

  .tile-btn{ 
    width: 100%; 
  }
}

/* ===== お気に入りリスト ===== */
/* セクション冒頭の見出し/件数ブロック */
.content-lead{
  display: inline-flex;
  align-items: baseline;
  gap: .4rem;
  margin: 1rem 0;
  font-weight: 700;
}

.content-lead__label{ 
  color: #333; font-size: 1rem; 
}

.content-lead__sep{ 
  color: #333; 
} 

.content-lead__count{ 
  color: #333; font-size: 1rem; 
}


.fav-list{
  margin: 0;
  padding: 0;
}

.fav-item{
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border, #dee2e6);
}

.fav-item:first-child{
  border-top: none;
  padding-top: 0;
}

.fav-cover{
  width: 100%;
  aspect-ratio: 3 / 4;
  border: 1px solid var(--border, #dee2e6);
  overflow: hidden;
  background: #f8f9fa;
}

.fav-cover .cover-link{
  display: block;
  width: 100%;
  height: 100%;
}

.fav-cover img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fav-body{
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.title-genres{
  display: flex;
  flex-wrap: wrap;
  gap: .6em;
  margin: 0 0 .3rem 0;
  padding: 0;
  list-style: none;
}

.title-genres .work-title-link{
  color: #333;
  text-decoration: underline;
}

.title-genres .work-title-link:hover,
.title-genres .work-title-link:focus{
  text-decoration: underline;
  opacity: .9;
  outline: none;
}

.title-genres .tag{
  position: relative;
  white-space: nowrap;
}

.title-genres .tag + .tag::before{
  content: "/";
  position: absolute;
  left: -0.6em;
  color: #adb5bd;
}

.author-line .author-name{
  text-decoration: underline;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.btn-unfav{
  display: inline-flex;
  align-items: center;
  gap: .4em;
  padding: .42rem .8rem;
  border: 1px solid #adb5bd;
  background: #fff;
  color: #333;
  border-radius: 8px;
}
.btn-unfav:hover{
  background: #f4f4f4;
}

.fav-price{
  margin-top: auto;
  align-self: flex-end;
  font-weight: 700;
  font-size: 1.25rem;
}

.fav-list{ 
  margin-bottom: 2rem;
}

/* レスポンシブ */
@media (max-width: 576px){
  .fav-item{
    grid-template-columns: 100px 1fr;
    gap: 12px;
  }
}

/* ===== フォローリスト（お気に入り作家） ===== */

.follow-list{ 
  margin: 0; 
  padding: 0; 
}

.follow-item{
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border, #dee2e6);
}

.follow-cover{
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--border, #dee2e6);
  border-radius: 0;
  overflow: hidden;
  background: #f8f9fa;
}

.follow-cover img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.follow-body{
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.follow-header{
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.follow-header .author-name{
  color: #333;
  text-decoration: underline;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 100%;
}

.btn-unfollow{
  padding: .42rem .8rem;
  border: 1px solid #adb5bd;
  background: #fff;
  color: #333;
  border-radius: 6px;
}

.btn-unfollow:hover{ 
  background: #f4f4f4; 
}

.profile-title{
  margin-top: .5rem;
  font-weight: 700;
  color: #333;
}

.profile-text{
  margin: .25rem 0 0;
  color: #333;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

/* スマホ調整 */
@media (max-width: 576px){
  .follow-item{
    grid-template-columns: 56px 1fr;
    gap: 12px;
  }
  .follow-avatar{ width: 56px; height: 56px; }
}

.purchase-list{ margin: 0; padding: 0; }
.purchase-item{
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border, #dee2e6);
}

.purchase-cover{
  width: 100%;
  aspect-ratio: 3 / 4;
  border: 1px solid var(--border, #dee2e6);
  border-radius: 0;
  overflow: hidden;
  background: #f8f9fa;
}

.purchase-cover .cover-link{
  display: block;
  width: 100%;
  height: 100%;
}

.purchase-cover img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.purchase-body{
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.title-genres .work-title-link{
  color: #333;
  text-decoration: underline;
}
.title-genres .work-title-link:hover,
.title-genres .work-title-link:focus{
  text-decoration: underline;
  opacity: .9;
  outline: none;
}

.btn-download{
  background-color: #4f8abc;
  border: 1px solid #4f8abc;
  color: #fff;
  border-radius: 8px;
  padding: .5rem 1rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.btn-download:hover,
.btn-download:focus{
  background-color: #3f78ad;
  border-color: #3f78ad;
  color: #fff;
  text-decoration: none;
  outline: none;
}

.purchase-price{
  margin-top: auto;
  align-self: flex-end;
  font-weight: 700;
  font-size: 1.25rem;
}

/* スマホ調整 */
@media (max-width: 576px){
  .purchase-item{
    grid-template-columns: 100px 1fr;
    gap: 12px;
  }
}


/* ===== 登録情報設定 ===== */

.settings-list{
  display: grid;
  grid-template-columns: 180px 1fr;
  column-gap: 16px;
  row-gap: 25px;
  margin: 0 0 1rem 0;
  padding: 0;
}

.settings-list dt{
  margin: 0;
  color: #333;
  font-weight: 700;
}

.settings-list dd{
  margin: 0;
  color: #333;
}

.verify-state{
  font-weight: 700;
  color: #333;
}

.btn-upload{
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .42rem .8rem;
  border: 1px solid #adb5bd;
  background: #fff;
  color: #333;
  border-radius: 6px;
}

.btn-upload:hover{ 
  background: #f4f4f4; 
}

.verify-status{ 
  color: #333; 
}

/* レスポンシブ */
@media (max-width: 576px){
  .settings-list{
    grid-template-columns: 1fr;
    row-gap: 10px;
  }
}



/* 法務ページ共通スタイル（にじのや） */

.legal-wrap{
  max-width: 920px;
  margin: 40px auto 80px;
  padding: 0 16px;
}

.legal-logo img{ height: 40px; }

.legal-hr{
  border: none;
  border-top: 2px solid var(--pink);
  margin: 18px 0 28px;
}

.legal-title{
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 10px;
}

.legal-updated{
  color:#6c757d;
  font-size:14px;
  margin-bottom: 24px;
}

.legal-section{ margin: 28px 0; }
.legal-section h2{ font-size:20px; margin-bottom:10px; }

.legal-list{ padding-left: 1.2em; }
.legal-list li{ margin: .35em 0; }

.info-note{ font-size:14px; color:#6c757d; }

.table.info-table th{
  width: 220px;
  background: #f8f9fa;
  font-weight: 600;
}


/* お知らせページ */
.notice-detail {
  margin: 1.5rem 0 0;
}

.notice-heading {
  margin: 0 0 .75rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: .02em;
  font-size: clamp(1.125rem, 1.2vw + .7rem, 1.5rem);
}

.notice-body {
  font-size: 1rem;
  line-height: 1.9;
  color: #1a1a1a;
}

.notice-body p {
  margin: 0;
}

.notice-body p:empty,
.notice-body p:has(br:only-child) {
  display: none;
}

.notice-body a {
  text-decoration: underline;
}

.notice-body img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 1rem;
}
