/* ================================
   Base Styles
================================= */

:root {
  --bg: #ffffff;
  --text: #111111;
  --muted: #666666;
  --link: #2a2a2a;
  --link-hover: #1a1a1a;
  --border: #eaeaea;
  --shadow: 0 8px 24px rgba(0,0,0,.06);
  --radius: 14px;
  --container: 1200px; /* 基本幅を少し広めに */
  --primary: #2a2a2a;
}

/* Reset & base */
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Monoton', cursive;
  font: 16px/1.6 system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Noto Sans JP","Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--link); text-decoration: none; transition: .2s; }
a:hover { color: var(--link-hover); }


.wp-embed-featured-image img {
  max-width: 100%;
  height: auto;
  display: block;
}

.wp-block-embed,
.wp-embed {
  max-width: 100%;
  overflow: hidden;
}

.wp-block-embed__wrapper iframe {
  max-width: 100%;
  height: auto;
}


/* 共通の最大幅で中央寄せ */
.wrap {
  width: min(92%, var(--container));
  margin-inline: auto;
}


.wpum-action-links {
  display: none !important;
}


/* ================================
   Header
================================= */

.site-header {
  margin: 30px 0px 0px;
  position: sticky; top: 10px; z-index: 100;
}
.site-header .wrap {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 35px;
  max-width: 1180px;
  margin: 0 auto;
  background: #fff; border: 1px solid var(--border);
  border-radius: 999px;
    box-shadow:
      0 6px 24px rgba(0,0,0,.10),
      inset 0 1px 0 rgba(255,255,255,.6);
}
.site-title {
  font-family: "Poppins", "Noto Sans JP", system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(20px, 2vw, 20px);
  letter-spacing: -1px;
  padding-top: 5px;
  color: #222;
  text-decoration: none;
  display: inline-block;
  position: relative;
  overflow: hidden;
}

/* 疑似要素でズレたノイズ */
.site-title::before,
.site-title::after {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
}

.site-title::before {
  color: #0ff;
  transform: translate(-2px, -1px);
}

.site-title::after {
  color: #f0f;
  transform: translate(2px, 1px);
}

/* ノイズON時 */
.site-title.__noise__::before,
.site-title.__noise__::after {
  opacity: 0.4;
  animation: noise-shift 120ms steps(2, end) infinite;
}

@keyframes noise-shift {
  0% { clip-path: inset(0 0 80% 0); }
  25% { clip-path: inset(10% 0 65% 0); }
  50% { clip-path: inset(30% 0 40% 0); }
  75% { clip-path: inset(60% 0 15% 0); }
  100% { clip-path: inset(80% 0 0 0); }
}


/* PCナビ */
.site-nav { display: none; }
.site-nav .menu {
  display: flex; gap: 24px; list-style: none; margin: 0; padding: 0;
}
.site-nav .menu li { position: relative; }
.site-nav .menu li ul {
  display: none; position: absolute; top: 100%; left: 0;
  background: #fff; border: 1px solid var(--border); border-radius: 8px;
  list-style: none; margin: 0; padding: 8px 0; min-width: 180px;
  box-shadow: var(--shadow);
}
.site-nav .menu li:hover > ul { display: block; }
.site-nav .menu li ul li a { display: block; padding: 10px 16px; }
.site-nav .menu li ul li a:hover { background: #f7f7f7; }

/* モバイルナビ */
.nav-toggle {
  display: inline-flex; flex-direction: column; gap: 4px;
  justify-content: center; align-items: center;
  width: 40px; height: 40px;
  border: 1px solid var(--border); border-radius: 12px; background: #fff;
}
.nav-toggle-bar { width: 18px; height: 2px; background: #000; border-radius: 2px; }

.offcanvas { position: fixed; inset: 0; background: rgba(0,0,0,.4);
  opacity: 0; pointer-events: none; transition: .3s; z-index: 200; }
  .offcanvas[data-state="open"] { opacity: 1; pointer-events: auto; }
  .offcanvas-inner {
    position: absolute; top: 0; right: 0; width: min(84vw,360px); height: 100%;
    background: #fff; box-shadow: var(--shadow);
    transform: translateX(100%); transition: .3s;
    display: flex; flex-direction: column; padding: 20px;
  }
  .offcanvas[data-state="open"] .offcanvas-inner { transform: translateX(0); }
  .offcanvas-close {
    align-self: flex-end;
    font-size: 28px;
    background: none;
    border: none;
    cursor: pointer;
    margin-bottom: 20px;
    color: #000 !important;

    /* iPhone対策 */
    -webkit-appearance: none;   /* Safariのデフォルトボタン化防止 */
    appearance: none;
    line-height: 1;             /* Safariでズレにくくする */
    -webkit-tap-highlight-color: transparent; /* 青いハイライト防止 */
  }


  .offcanvas-menu {
    list-style: none; margin: 0; padding: 0;
    display: flex; flex-direction: column; gap: 25px;
  }
  .offcanvas-menu a { padding: 12px; border-radius: 8px; font-size: 16px; }
  .offcanvas-menu a:hover { background: #f7f7f7; }
  .offcanvas-footer { margin-top: 35px; }
  .offcanvas-footer a:hover { color: #f8f8f8; }

  .btn-primary {
    display: block; text-align: center; background: var(--primary); color: #fff;
    border-radius: 999px; padding: 14px; font-weight: 600;
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
  }
  .btn-primary:hover { filter: brightness(.9); }

/* PCブレークポイント */
@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .offcanvas { display: none; }
  .site-nav { display: block; }
}

/* ================================
   Content & Entry
================================= */

.entry { padding: 0; border: none; box-shadow: none; background: none; }
.entry-title { font-size: clamp(20px,2.5vw,28px); margin-bottom: 16px; }

/* ================================
   Products Archive Layout
================================= */

/* PC用（デフォルト） */
.site-content {
  max-width: 1120px;
  padding: 10px 10px;
  margin: 0 auto;
}

/* スマホ用 */
@media (max-width: 768px) {
  .site-header .wrap {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 25px;
  max-width: 1180px;
  margin: 0 auto;
  background: #fff; border: 1px solid var(--border);
  border-radius: 999px;
    box-shadow:
      0 6px 24px rgba(0,0,0,.10),
      inset 0 1px 0 rgba(255,255,255,.6);
}
  .site-content {
    padding: 10px 10px;
  }
}
.asp-order-details-wrap {
  padding: 20px 35px 30px;
  max-width: 1180px;
}

.entry-purchases {
  padding: 0px 0px 20px;
  max-width: 1180px;
}

.site-footer {
  padding: 10px 25px 10px;
  max-width: 1180px;
  margin: 0 auto;
}

/* 記事本文の全体レイアウト */
.single-page {
  max-width: 800px;         /* 横幅を制限して中央寄せ */
  margin: 0 auto;           /* 中央寄せ */
  padding: 2rem;            /* 内側に余白 */
  background: #fff;         /* 背景を白に（サイトの背景がグレー系ならおすすめ） */
  line-height: 2.2;         /* 行間を広めに */
  font-size: 16px;          /* 読みやすいサイズ */
  color: #333;              /* 文字色 */
}

/* 見出しの調整 */
.single-page h1, 
.single-page h2, 
.single-page h3 {
  margin-top: 2em;
  margin-bottom: 1em;
  font-weight: bold;
  color: #222;
}

/* strongタグの強調 */
.single-page strong {
  color: #000;
  font-weight: 600;
}

/* 段落の余白 */
.single-page p {
  margin-bottom: 1.4em;
}

/* 会社概要テーブル */
.company-profile {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.6;
  color: #333;
}

.company-profile caption {
  font-size: 20px;
  font-weight: bold;
  text-align: left;
  margin-bottom: 1rem;
  color: #111;
}

.company-profile th,
.company-profile td {
  padding: 12px 16px;
  border-bottom: 1px solid #e5e5e5;
  vertical-align: top;
}

.company-profile th {
  width: 25%;
  font-weight: 600;
  text-align: left;
  color: #222;
  background: #fafafa;
}

.company-profile td a {
  color: #0073aa; /* WordPressっぽい青 */
  text-decoration: none;
}

.company-profile td a:hover {
  text-decoration: underline;
}

/* 所在地内の区切り */
.company-profile td div {
  margin-bottom: 0.5em;
}

/* 事業内容リスト */
.company-profile .business-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.company-profile .business-list li {
  padding-left: 1.2em;
  position: relative;
  margin-bottom: 0.3em;
}

.company-profile .business-list li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: #0073aa;
  font-size: 0.9em;
}



/* 特商法テーブル */
.legal-notice {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.7;
  color: #333;
}

.legal-notice caption {
  font-size: 20px;
  font-weight: 700;
  text-align: left;
  margin-bottom: 1rem;
  color: #111;
}

.legal-notice th,
.legal-notice td {
  padding: 12px 16px;
  border-bottom: 1px solid #e9e9e9;
  vertical-align: top;
}

.legal-notice th {
  width: 26%;
  white-space: nowrap;
  font-weight: 600;
  background: #fafafa;
  color: #222;
  text-align: left;
}

.legal-notice td a {
  text-decoration: none;
}

.legal-notice td a:hover {
  text-decoration: underline;
}

/* モバイル最適化：見出しと内容を縦積み */
@media (max-width: 640px) {
  .legal-notice th,
  .legal-notice td {
    display: block;
    width: 100%;
    padding: 10px 0;
    border-bottom: none;
  }
  .legal-notice tr {
    border-bottom: 1px solid #efefef;
    padding: 10px 0;
    display: block;
  }
  .legal-notice th {
    background: transparent;
    color: #777;
    padding-top: 12px;
  }
}


/* Home でもカテゴリーページでも共通 */
.site-content .asp-archive {
  width: min(92%, var(--container));
  margin-inline: auto;
}

/* 2カラムレイアウト：左フィルター + 右グリッド */
.asp-archive {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: start;
}
@media (max-width:960px) {
  .asp-archive { grid-template-columns: 1fr; gap: 16px; }
}

/* 左フィルター */
.asp-filters {
  position: sticky; top: 84px; align-self: start;
  background: #fff; border: 1px solid var(--border);
  border-radius: 16px; padding: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,.03);
}
@media (max-width:960px) {
  .asp-filters { position: static; box-shadow: none; }
}


/* ================================
   Products Grid & Cards
================================= */


/* グリッド（PC3列／SP2列） */
#wp-asp-members-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 10px;
}
@media (max-width:960px) {
  #wp-asp-members-list {
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 10px;
  }
  .asp-card {
    border: none !important;
    box-shadow: none;
    background: #fff;
    border-radius: 16px;
    padding: 5px !important;
  }

}

/* カード */
.asp-card {
  border: none !important;
  box-shadow: none;
  background: #fff;
  border-radius: 16px;
  padding: 10px !important;
}

/* 画像：枠線なし、角丸 */
.asp-thumb-img,
#wp-asp-members-list .asp-card img {
  width: 100%; height: auto; display: block;
  border-radius: 16px; border: none !important;
}

/* タイトル・価格 */
.asp-name { font-weight: 700; font-size: 15px; line-height: 1.5; margin: 8px 0 4px; }
.asp-price { font-weight: 800; font-size: 18px; text-align: right;}

/* ボタン */
.btn-pill {
  display: inline-flex; align-items: center; justify-content: center; width: 100%;
  padding: 8px 14px; border: 1px solid var(--border);
  border-radius: 999px; background: #fff;
}
.btn-pill:hover { background: #f7f7f7; }


/* ================================
   Accessibility
================================= */

.skip-link {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.skip-link:focus {
  position: fixed !important;
  left: 16px; top: 16px;
  width: auto; height: auto;
  padding: 8px 12px;
  background: #000; color: #fff;
  border-radius: 8px; clip: auto; z-index: 9999;
}

.page .entry-title {
  display: none;
}


/* PCでは絞り込みFABを非表示 */
@media (min-width: 961px){
  .fab-filter { display: none !important; }
}

/* スマホのみ表示（必要なら念のため） */
@media (max-width: 960px){
  .fab-filter { display: inline-flex; }
}

/* ========== モバイル用FAB（絞り込み） ========== */
:root{
  /* どっち側に配置するかを変数で切替（right / left） */
  --fab-side: left;         /* チャットが右下にある想定で左に出す */
  --fab-offset: 16px;
  --fab-z: 1100;
}

@media (max-width: 960px){
  .fab-filter{
    position: fixed;
    bottom: calc(env(safe-area-inset-bottom, 0) + var(--fab-offset));
    /* 右下に出したいなら right に、左なら left に */
    left: calc(var(--fab-side) == left ? var(--fab-offset) : auto);
    right: calc(var(--fab-side) == right ? var(--fab-offset) : auto);

    z-index: var(--fab-z);
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 14px;
    margin: 0px 10px;
    border-radius: 999px;
    border: 1px solid #e7e7e7;
    background: #ffffff;
    box-shadow: 0 4px 14px rgba(0,0,0,.12);
    color: #111; font-weight: 700;
  }
  .fab-filter .fab-label{ font-size: 14px; }
}

/* ========== ボトムシート ========== */
.filter-sheet{ display:none; }
.filter-sheet[aria-hidden="false"]{ display:block; }

.filter-sheet .sheet-backdrop{
  position: fixed; inset: 0; background: rgba(0,0,0,.4);
  backdrop-filter: saturate(120%) blur(1px);
  z-index: 1200;
}
.filter-sheet .sheet-panel{
  position: fixed; left: 0; right: 0;
  bottom: 0; z-index: 1210;
  background: #fff; border-top-left-radius: 16px; border-top-right-radius: 16px;
  box-shadow: 0 -12px 32px rgba(0,0,0,.18);
  transform: translateY(100%);
  transition: transform .25s ease;
  /* 端末の高さに応じて最大80%まで伸びる */
  max-height: 80vh; height: auto;
}
.filter-sheet[aria-hidden="false"] .sheet-panel{ transform: translateY(0); }

.sheet-close { color:#000; font-size:18px !important; }

.sheet-header{
  position: sticky; top: 0; padding: 12px 16px;
  border-bottom: 1px solid #eee; background: #fff;
  display:flex; align-items:center; justify-content:space-between;
}
.sheet-body{
  padding: 12px 16px 16px;
  overflow: auto; max-height: calc(80vh - 52px);
}

/* 既存サイドバーの中身（フォーム・カテゴリなど）をモバイルでも見やすく */
@media (max-width: 960px){
  .sheet-body .asp-search-form input{ width:100%; }
  .sheet-body .asp-cat-list{ list-style:none; padding:0; margin:12px 0; display:grid; gap:8px; }
  .sheet-body .asp-cat-list a{
    display:block; padding:12px 14px; border:1px solid #eaeaea; border-radius:12px; background:#fff;
  }
  /* PC時の左サイドは表示維持。スマホでは非表示にしたい場合 */
  .asp-archive .asp-filters{ display:none; }
}


/* セレクトの共通スタイル（iOS/Android/Chrome同等に） */
.select-wrap{
  position:relative; display:inline-block;
  min-width: 200px;
}
.select-wrap select{
  -webkit-appearance: none; /* iOS */
  appearance: none;
  width:100%;
  font: inherit;
  font-size: 16px; /* iOSズーム抑止 */
  padding: 10px 40px 10px 12px;
  border:1px solid #e5e5e5;
  border-radius: 12px;
  background: #fff;
  line-height: 1.2;
}
/* 右側の矢印（SVGを背景に） */
.select-wrap::after{
  content:"";
  pointer-events:none;
  position:absolute; top:50%; right:12px; transform: translateY(-50%);
  width: 18px; height: 18px;
  background: no-repeat center/16px
  url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="22" height="22" viewBox="0 0 24 24"><path fill="%23666" d="M7 10l5 5 5-5z"/></svg>');
  opacity:.85;
}
/* フォーカス・ホバー */
.select-wrap select:focus{ outline: none; border-color:#c9c9c9; box-shadow:0 0 0 3px rgba(0,0,0,.04); }
.select-wrap select:hover{ border-color:#d9d9d9; }


/* 共通スタイル：並べ替えセレクト */
#asp-sort-by {
  -webkit-appearance: none; /* iOS Safariのデフォルト消す */
  appearance: none;
  display: block;
  width: 180px;             /* お好みで調整 */
  padding: 8px 25px;
  font-size: 13px;
  font-weight: 500;
  color: #111;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 45px;
  line-height: 1.3;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
}

/* hover/focus時 */
#asp-sort-by:hover {
  border-color: #bbb;
}
#asp-sort-by:focus {
  outline: none;
  border-color: #888;
  box-shadow: 0 0 0 3px rgba(0,0,0,.05);
}

/* ▼ カスタム矢印を右側に配置 */
#asp-sort-by {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'><path fill='%23666' d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px 16px;
}

/* iOSのズーム抑止（フォント16px以上でOK） */
#asp-sort-by {
  font-size: 13px;
}

/* スマホで幅100%にしたい場合 */
@media (max-width: 768px) {
  #asp-sort-by {
    width: 100%;
  }
}

/* 購入履歴の見出しやテーブル間隔を整える */
.asp-user-transactions-cont,
.asp-user-transactions-pagination-cont { 
  width: min(92%, 960px);
  margin: 0 auto 28px;
}
.asp-user-transactions-item {
  border: 1px solid #eaeaea;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 12px;
  background: #fff;
}
.asp-user-transaction-item-line { 
  display: grid; 
  grid-template-columns: 120px 1fr;
  gap: 10px;
  font-size: 14px;
}
.asp-user-transaction-item-line span { color:#666; }

/* ページネーション */
.asp-user-transactions-pagination-cont ul{
  display:flex; gap:8px; list-style:none; padding:0; margin:16px 0;
}
.asp-user-transactions-pagination-cont a,
.asp-user-transactions-pagination-cont span{
  display:inline-block; min-width:36px; text-align:center; 
  padding:6px 10px; border:1px solid #eaeaea; border-radius:10px;
  text-decoration:none; color:#111; background:#fff;
}
.asp-user-transactions-pagination-cont span{ background:#f5f5f5; }

/* スマホ最適化 */
@media (max-width:640px){
  .asp-user-transaction-item-line { grid-template-columns: 1fr; }
}


/* ================================
   Account / Purchases レイアウト調整
   対象: https://nexivo.goom.co.jp/account/*
   スコープ: .wpum-template 配下に限定
=================================== */


/* =========================
   サイドタブ（ナビゲーション）
========================= */
.wpum-account-navigation ul {
  list-style: none;
  margin: 0; 
  padding: 0;
  display: grid;
  gap: 0;
}

/* 各リンク */
.wpum-account-navigation a {
  display: block;
  padding: 8px 10px;
  border: 1px solid #eaeaea;
  border-radius: 12px;
  background: #fff;
  font-weight: 600;
  font-size: 12px;
  color: #111;
  text-decoration: none;
  transition: .2s ease;
  margin: 0p !important;
  white-space: nowrap; /* 折り返さず横並びに */
}

.wpum-account-navigation .active a,
.wpum-account-navigation a.current-tab {
  border-color: #111;
  background: #111;
  color: #fff;
}

/* =========================
   スマホ時に横スクロール可能に
========================= */
@media (max-width: 767px) {
  .wpum-account-navigation ul {
    display: flex;              /* flexで横並び */
    gap: 0px;
    overflow-x: auto;           /* 横スクロールを有効化 */
    -webkit-overflow-scrolling: touch; /* iOS慣性スクロール */
    scrollbar-width: none;      /* Firefox: スクロールバー非表示 */
  }
  .wpum-account-navigation ul::-webkit-scrollbar {
    display: none;              /* Chrome/Safari: スクロールバー非表示 */
  }
}
/* =========================
   右コンテンツ（フォーム共通）
========================= */
.wpum-template.wpum-form {
  background: #fff;
  border-radius: 16px;
  padding: 18px 40px;
}
.wpum-action-links {
  padding: 0px 40px;
}
.wpum-template.wpum-form h2 {
  margin: 0 0 12px;
  font-size: clamp(18px, 2.4vw, 22px);
  font-weight: 800;
}

/* 各フィールドの並び */
.wpum-template.wpum-form fieldset {
  margin: 12px 0;
  border: 0;
  padding: 0;
}
.wpum-template.wpum-form label {
  display: block;
  font-weight: 700;
  margin: 0 0 6px;
}

/* 入力UI（テキスト/メール/URL/textarea） */
.wpum-template.wpum-form input[type="text"],
.wpum-template.wpum-form input[type="email"],
.wpum-template.wpum-form input[type="url"],
.wpum-template.wpum-form input[type="password"],
.wpum-template.wpum-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  background: #fff;
  outline: none;
  transition: box-shadow .15s ease, border-color .15s ease;
  font-size: 15px;
}
.wpum-template.wpum-form textarea {
  min-height: 120px;
  resize: vertical;
}
.wpum-template.wpum-form input:focus,
.wpum-template.wpum-form textarea:focus {
  border-color: #111;
  box-shadow: 0 0 0 3px rgba(17,17,17,.08);
}

/* セレクト（iOS含む見た目統一） */
.wpum-template.wpum-form select {
  width: 100%;
  padding: 12px 42px 12px 14px; /* 右にアイコン分の余白 */
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  background: #fff no-repeat right 12px center/18px;
  font-size: 15px;
  -webkit-appearance: none;
  appearance: none;
  outline: none;
  transition: box-shadow .15s ease, border-color .15s ease;
  background-image: url("data:image/svg+xml;utf8,\
    <svg xmlns='http://www.w3.org/2000/svg' width='24' height='24'>\
    <path d='M6 9l6 6 6-6' fill='none' stroke='%23111' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
}
.wpum-template.wpum-form select:focus {
  border-color: #111;
  box-shadow: 0 0 0 3px rgba(17,17,17,.08);
}

/* ファイル入力（ラベル風ボタン） */
.wpum-template.wpum-form input[type="file"] {
  width: 100%;
  border: 1px dashed #ddd;
  border-radius: 12px;
  padding: 12px;
  background: #fafafa;
}
.wpum-template.wpum-form input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 8px 12px;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  background: #fff;
  font-weight: 600;
  cursor: pointer;
}
.wpum-template.wpum-form small.description {
  display: block;
  color: #666;
  margin-top: 6px;
}

/* 更新ボタン */
.wpum-template.wpum-form .button,
.wpum-template.wpum-form input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border: 1px solid #111;
  border-radius: 12px;
  background: #111;
  color: #fff;
  font-weight: 700;
  transition: .15s ease;
}
.wpum-template.wpum-form .button:hover,
.wpum-template.wpum-form input[type="submit"]:hover {
  filter: brightness(.92);
}

/* 必須アスタリスク */
.wpum-template.wpum-form .wpum-required {
  color: #d00;
  margin-left: 4px;
}

/* =========================
   購入履歴（ショートコード出力）
========================= */
.account-purchases-wrap,
.wpum-template .asp-user-transactions-cont {
  display: grid;
  gap: 12px;
}
.wpum-template .asp-user-transactions-item {
  border: 1px solid #eaeaea;
  border-radius: 12px;
  background: #fff;
  padding: 12px;
}
.wpum-template .asp-user-transaction-item-line {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px dashed #f0f0f0;
  font-size: 14px;
}
.wpum-template .asp-user-transaction-item-line:last-child {
  border-bottom: none;
}
.wpum-template .asp-user-transaction-item-line > span {
  color: #666;
  font-weight: 600;
}

/* ページネーション */
.wpum-template .asp-user-transactions-pagination-cont ul {
  display: flex;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}
.wpum-template .asp-user-transactions-pagination-cont a,
.wpum-template .asp-user-transactions-pagination-cont span {
  display: inline-block;
  min-width: 36px;
  text-align: center;
  padding: 6px 10px;
  border: 1px solid #eaeaea;
  border-radius: 8px;
  background: #fff;
  text-decoration: none;
  color: #111;
}
.wpum-template .asp-user-transactions-pagination-cont span {
  background: #f5f5f5;
  font-weight: 700;
}

.wpum-account-page {
  max-width: 1120px;
  padding: 30px;
}

/* =========================
   レスポンシブ（iPhone含む）
========================= */
@media (max-width: 960px) {
  .wpum-template.wpum-account-page {
    grid-template-columns: 1fr;
    gap: 0px;
  }
  .wpum-account-navigation ul {
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    overflow-x: auto;
    gap: 10px;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }
  .wpum-template.wpum-form {
    padding: 14px;
    border-radius: 14px;
  }
  .wpum-template .asp-user-transaction-item-line {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

/* iOSフォーム最適化（ズーム抑止） */
@supports (-webkit-touch-callout: none) {
  .wpum-template.wpum-form input,
  .wpum-template.wpum-form select,
  .wpum-template.wpum-form textarea {
    font-size: 16px; /* iOS入力時のズーム防止 */
  }
}

.pd-price {
  display: none;
}

.asp_price_container {
  font-size: 24px;
  text-align: right;
}

.asp_product_buy_button {
  text-align: right;
}

/* 購入ボタン：Amazon風オレンジスタイル */
.asp_product_buy_btn.blue {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 15px 28px !important;
  border: none !important;
  border-radius: 999px !important; /* pill型 */
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #fff !important; /* 白文字 */
  background: linear-gradient(180deg, #f7a600 0%, #f58500 100%) !important;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15) !important;
  cursor: pointer;
  transition: all 0.2s ease-in-out !important;
  white-space: nowrap;
}
.asp_product_buy_btn.blue span {
  color: #fff !important; /* 白文字 */
}

/* ホバー時 */
.asp_product_buy_btn.blue:hover,
.asp_product_buy_btn.blue:hover span {
  background: linear-gradient(180deg, #ffb833 0%, #f7931a 100%) !important;
  color: #fff !important;
  transform: translateY(-2px) !important;
}

/* クリック時 */
.asp_product_buy_btn.blue:active,
.asp_product_buy_btn.blue:active span {
  background: linear-gradient(180deg, #e69500 0%, #cc7a00 100%) !important;
  color: #fff !important;
  transform: translateY(1px) !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15) inset !important;
}


.pd-buy.asp-embed { display:block; width:100%; }

.asp_post_item {
  margin: 0px !important;
  padding: 0px !important;
  width: 100% !important;
}

/* スマホで幅100%にしたい場合 */
@media (max-width: 768px) {
.asp_post_item {
  margin: 0px !important;
  padding: 0px 10px !important;
  width: 100% !important;
}
}


/* グローバルに何も壊さない最小限 */
img[data-pr-ready="1"] { /* エフェクト開始時だけ一時的に非表示 */
  opacity: 0;
  transition: opacity .9s ease;
}

/* 低モーションユーザーにはフェードのみ */
@media (prefers-reduced-motion: reduce){
  img[data-pr-ready="1"] { opacity: 1 !important; }
}



/* ===== 共通ラップ ===== */
.wrap{ width:min(94%, 1100px); margin-inline:auto; }

/* ===== Category (一覧) ===== */
.cat-hero{ padding:28px 0 10px; }
.cat-title{
  font-weight:900; letter-spacing:.02em;
  font-size:clamp(22px,3.6vw,34px); margin:0 0 6px;
}
.cat-desc{ color:#555; margin:0; }

.posts-grid{
  display:grid; grid-template-columns:repeat(12,1fr);
  gap:22px; padding:16px 0 40px;
}
.post-card{
  grid-column: span 4; /* 3列 */
  background:#fff; border:1px solid #eee; border-radius:16px;
  box-shadow:0 6px 20px rgba(0,0,0,.05); overflow:hidden;
  display:flex; flex-direction:column; transition:.2s transform, .2s box-shadow;
}
.post-card:hover{ transform: translateY(-2px); box-shadow:0 10px 28px rgba(0,0,0,.08); }

.card-thumb{ display:block; aspect-ratio: 16/9; background:#f6f6f6; }
.card-img{ width:100%; height:100%; object-fit:cover; display:block; }
.card-ph{ display:block; width:100%; height:100%; background:
  repeating-linear-gradient(45deg,#f4f4f4 0 10px,#f0f0f0 10px 20px); }

.card-body{ padding:14px 14px 16px; display:flex; flex-direction:column; gap:8px; }
.card-title{ font-size:clamp(15px,2.2vw,18px); margin:0; line-height:1.5; }
.card-title a{ color:#111; text-decoration:none; }
.card-title a:hover{ text-decoration:underline; }
.card-meta{ color:#777; font-size:13px; display:flex; align-items:center; gap:8px; }
.card-meta .dot{ opacity:.5; }
.card-ex{ color:#444; font-size:14px; line-height:1.7; margin:0; }

@media (max-width: 1024px){
  .post-card{ grid-column: span 6; } /* 2列 */
}
@media (max-width: 640px){
  .posts-grid{ gap:14px; }
  .post-card{ grid-column: span 12; } /* 1列 */
}

/* ===== Pagination ===== */
.pagination{ display:flex; justify-content:center; padding:8px 0 60px; }
.pagination .page-numbers{
  display:inline-flex; align-items:center; justify-content:center;
  min-width:38px; height:38px; margin:0 4px; padding:0 10px;
  border:1px solid #e9e9e9; border-radius:10px; color:#222; text-decoration:none;
  background:#fff;
}
.pagination .current{ background:#111; color:#fff; border-color:#111; }

/* ===== Single (個別) ===== */
.single-note { max-width:650px; margin: 0 auto;}
.post-hero{ margin:16px auto 12px; }
.post-hero-img{
  width:100%; height:auto; display:block; border-radius:16px;
  border:1px solid #eee; box-shadow:0 10px 26px rgba(0,0,0,.06);
}

.post-header{ padding:8px 0 8px; }
.post-title{
  margin:10px 0 8px; font-weight:900; letter-spacing:.02em;
  font-size:clamp(24px,4vw,40px); line-height:1.25;
}
.post-meta{ color:#666; display:flex; gap:10px; align-items:center; }
.post-meta .dot{ opacity:.5; }
.post-cat{ color:#111; text-decoration:underline; }

.post-body{ padding:12px 0 40px; }
.post-body p{ margin:0 0 1.1em; font-size:18px; line-height:1.9; color:#222; }
.post-body h2{ font-size:clamp(20px,3vw,28px); margin:1.6em 0 .6em; }
.post-body img{ border-radius:14px; border:1px solid #eee; }

.post-footer{
  display:flex; justify-content:space-between; align-items:center; gap:14px;
  padding:14px 0 60px; border-top:1px solid #f0f0f0; margin-top:20px;
}
.post-share{ display:flex; gap:10px; flex-wrap:wrap; }
.share-btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:10px 14px; border-radius:999px; font-weight:700; font-size:14px;
  border:1px solid #eaeaea; background:#fff; text-decoration:none; color:#111;
}
.share-btn.twitter:hover{ background:#eef7ff; border-color:#d7eaff; }
.share-btn.line:hover{ background:#eaffef; border-color:#d2f5da; }
.post-nav{ display:flex; gap:14px; }
.post-nav .prev, .post-nav .next a{ white-space:nowrap; }



/* ===== Related carousel ===== */
.pd-related{ margin-top: 80px; }
.pd-rel-title{
  margin: 0 0 14px;
  font-weight: 700 !important;
  font-size: clamp(18px, 2.2vw, 22px);
}

/* ▼ここを書き換え */
.pd-rel-track{
  display: grid;
  grid-auto-flow: column;                     /* 横並び（スマホでスライド） */
  grid-auto-columns: minmax(220px, 40%);      /* 2.5枚見える幅（最小220px） */
  gap: 14px;
  overflow-x: auto;
  padding: 6px 6px 10px;                      /* 端に少し余白 */
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 6px;                 /* スナップの停止位置を気持ちよく */
  -webkit-overflow-scrolling: touch;
}
.pd-rel-track::-webkit-scrollbar{ height: 8px; }
.pd-rel-track::-webkit-scrollbar-thumb{
  background: rgba(0,0,0,.15); border-radius: 999px;
}

.pd-rel-card{
  scroll-snap-align: start;
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
  background: #fff;
  border: 1px solid var(--border,#eee);
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.pd-rel-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,.10);
  border-color: rgba(0,0,0,.08);
}

.pd-rel-thumb{
  border: 1px solid var(--border,#eee);
  border-radius: 12px; overflow: hidden;
  background: #fff;
}
.pd-rel-thumb img{
  width: 100%;
  display: block;
  background: #fff;
}

.pd-rel-info{ padding: 10px 4px 4px; display: grid; gap: 6px; }
.pd-rel-name{
  font-size: 14px; line-height: 1.5; font-weight: 600; color:#222;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}
.pd-rel-price{ font-weight: 800; color:#111; }

/* PCは5列グリッド＆スライド解除 */
@media (min-width: 960px){
  .pd-rel-track{
    overflow: visible;
    grid-auto-flow: initial;
    grid-auto-columns: unset;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    padding: 0;
    scroll-padding-inline: 0;
  }
}

/* さらに“チラ見え”を強くしたい時（任意） */
@media (max-width: 480px){
  .pd-rel-track{ grid-auto-columns: minmax(200px, 42%); }
}


/* ========== ASP Modern Skin ========== */
:root{
  --asp-bg: #ffffff;
  --asp-soft: #f7f7fb;
  --asp-border: #e9ecf2;
  --asp-text: #111827;
  --asp-sub: #6b7280;
  --asp-accent: #6a8cff;    /* やさしい青み */
  --asp-accent-ink: #ffffff;
  --asp-radius: 18px;
  --asp-shadow: 0 12px 30px rgba(17, 24, 39, .08);
}

.asp-modern{ color:var(--asp-text); font-size:16px; line-height:1.8; }
.asp-modern *{ box-sizing:border-box; }

/* カード */
.asp-modern .asp-card{
  background:var(--asp-bg);
  border:1px solid var(--asp-border);
  border-radius:var(--asp-radius);
  box-shadow:var(--asp-shadow);
  padding:20px;
}

/* 価格行 */
.asp-modern .asp-price{
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing:.01em;
  margin: 6px 0 2px;
}
.asp-modern .asp-tax{
  color:var(--asp-sub); font-size:.9rem;
}

/* 購入ボタン（ASPのボタンにも適用） */
.asp-modern .btn-buy,
.asp-modern .asp_product_buy_button,
.asp-modern .wpasp-button{
  display:inline-flex; align-items:center; justify-content:center;
  width:100%; padding:14px 18px;
  border-radius:999px; border:0;
  background:var(--asp-accent); color:var(--asp-accent-ink) !important;
  font-weight:800; letter-spacing:.02em;
  box-shadow: 0 10px 24px rgba(106,140,255,.28);
  transition: transform .06s ease, filter .15s ease, box-shadow .15s ease;
}
.asp-modern .btn-buy:hover,
.asp-modern .asp_product_buy_button:hover,
.asp-modern .wpasp-button:hover{
  filter:brightness(.95); transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(106,140,255,.32);
}

/* セカンダリボタン */
.asp-modern .btn-ghost{
  display:inline-flex; align-items:center; justify-content:center;
  width:100%; padding:12px 16px;
  border-radius:999px; background:var(--asp-soft);
  border:1px solid var(--asp-border); color:var(--asp-text);
  font-weight:700;
}

/* 入力（数量/バリアント等） */
.asp-modern input[type="number"],
.asp-modern select{
  width:100%; padding:12px 14px;
  border:1px solid var(--asp-border);
  border-radius:12px; background:#fff; outline:none;
}
.asp-modern input[type="number"]:focus,
.asp-modern select:focus{
  border-color: var(--asp-accent);
  box-shadow: 0 0 0 4px rgba(106,140,255,.12);
}

/* 情報ブロック */
.asp-modern .note{
  background:var(--asp-soft);
  border:1px solid var(--asp-border);
  border-radius:12px; padding:12px 14px; color:var(--asp-sub);
  font-size:.95rem;
}

/* グリッド（一覧） */
.asp-modern .grid{
  display:grid; gap:20px;
  grid-template-columns: repeat( auto-fit, minmax(260px, 1fr) );
}

/* 見出し */
.asp-modern .h{
  font-size:clamp(20px, 2.2vw, 26px);
  font-weight:900; letter-spacing:.01em; margin:0 0 8px;
}

/* 小さめラベルやタグ */
.asp-modern .tag{
  display:inline-block; padding:4px 10px; border-radius:999px;
  background:var(--asp-soft); border:1px solid var(--asp-border);
  color:var(--asp-sub); font-size:.85rem; font-weight:700;
}

/* 空状態 */
.asp-modern .empty{
  text-align:center; padding:24px; color:var(--asp-sub);
}

/* 微アニメ */
@media (hover:hover){
  .asp-modern .asp-card:hover{ transform: translateY(-2px); transition:.15s; }
}



/* ===============================
   Accept Stripe Payments – My Transactions
   modern, soft, readable
   =============================== */
:root{
  --tx-bg: #fff;
  --tx-soft: #f7f8fb;
  --tx-border: #e7eaf2;
  --tx-ink: #111827;
  --tx-sub: #6b7280;
  --tx-accent: #6a8cff;
  --tx-accent-ink: #fff;
  --tx-radius: 16px;
  --tx-shadow: 0 10px 30px rgba(17,24,39,.06);
}

/* ラッパーのタイポと余白を整える */
.entry-content .asp-user-transactions-cont{
  display:grid;
  gap:16px;
  color: var(--tx-ink);
  line-height: 1.8;
  font-size: 14.5px;
}

/* 各トランザクションをカード化 */
.entry-content .asp-user-transactions-item{
  background: var(--tx-bg);
  border: 1px solid var(--tx-border);
  border-radius: var(--tx-radius);
  box-shadow: var(--tx-shadow);
  padding: 16px;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
@media (hover:hover){
  .entry-content .asp-user-transactions-item:hover{
    transform: translateY(-2px);
    border-color: #dbe1ee;
    box-shadow: 0 14px 36px rgba(17,24,39,.08);
  }
}

/* 1行ずつのレイアウト */
.entry-content .asp-user-transaction-item-line{
  display:flex;
  gap:10px;
  align-items:flex-start;
  padding: 6px 0;
  border-bottom: 1px dashed var(--tx-border);
}
.entry-content .asp-user-transaction-item-line:last-child{
  border-bottom: 0;
}

/* ラベル（左側の <span>）をバッジ風に */
.entry-content .asp-user-transaction-item-line > span{
  flex: 0 0 auto;
  min-width: 6.5em;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--tx-soft);
  border: 1px solid var(--tx-border);
  color: var(--tx-sub);
  font-weight: 700;
  font-size: 12.5px;
  line-height: 1.9;
}

/* 本文テキスト */
.entry-content .asp-user-transaction-item-line:not(.asp-user-transaction-product-additional-data){
  color: var(--tx-ink);
}

/* 商品名は強調＆改行しやすく */
.entry-content .asp-user-transaction-product-name{
  font-weight: 800;
  letter-spacing: .01em;
}
.entry-content .asp-user-transaction-product-name span{
  /* 左バッジはそのまま */
}
.entry-content .asp-user-transaction-product-name{
  word-break: break-word;
}

/* 金額は視認性UP */
.entry-content .asp-user-transaction-product-amount{
  font-variant-numeric: tabular-nums;
}
.entry-content .asp-user-transaction-product-amount:after{
  content:"";
}

/* 日付はサブトーン */
.entry-content .asp-user-transaction-product-date{
  color: var(--tx-sub);
  font-variant-numeric: tabular-nums;
}

/* 追加データブロック（ダウンロードなど） */
.entry-content .asp-user-transaction-product-additional-data{
  margin-top: 2px;
}
.entry-content .asp-user-transaction-product-additional-data-line{
  width: 100%;
}

/* ダウンロードリンクをボタン風に */
.entry-content .asp-user-transaction-product-additional-data a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:10px 14px;
  border-radius: 999px;
  border: 1px solid var(--tx-border);
  background: var(--tx-accent);
  color: var(--tx-accent-ink) !important;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(106,140,255,.26);
  transition: transform .08s ease, filter .15s ease, box-shadow .15s ease;
}
.entry-content .asp-user-transaction-product-additional-data a:hover{
  transform: translateY(-1px);
  filter: brightness(.96);
  box-shadow: 0 12px 26px rgba(106,140,255,.32);
}

/* ページネーション（空でも高さを確保してブレを防ぐ） */
.entry-content .asp-user-transactions-pagination-cont{
  display:flex;
  justify-content:center;
  margin: 18px 0 6px;
  min-height: 36px;
}
.entry-content .asp-user-transactions-pagination-cont ul{
  display:flex; gap:8px; padding:0; margin:0; list-style:none;
}
.entry-content .asp-user-transactions-pagination-cont li a,
.entry-content .asp-user-transactions-pagination-cont li span{
  display:inline-flex; align-items:center; justify-content:center;
  min-width: 36px; height: 36px; padding: 0 12px;
  border-radius: 999px; border:1px solid var(--tx-border);
  background: var(--tx-soft); color: var(--tx-ink);
  font-weight: 700; text-decoration:none;
}
.entry-content .asp-user-transactions-pagination-cont li a:hover{
  border-color:#dbe1ee; background:#eef1f8;
}
.entry-content .asp-user-transactions-pagination-cont li .current{
  background: var(--tx-accent);
  color: var(--tx-accent-ink);
  border-color: transparent;
}

/* レスポンシブ：モバイルはカードの余白を少し広げて読みやすく */
@media (max-width: 640px){
  .entry-content .asp-user-transactions-item{ padding: 14px; }
  .entry-content .asp-user-transaction-item-line > span{ min-width: 5.8em; }
}



/* フッター全体の整形（必要に応じて） */
.site-footer .wrap{
  padding-bottom: 30px !important;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}



/* 横並びメニュー */
.footer-menu{
  display: flex;
  flex-wrap: wrap;
  gap: 14px;                 /* アイテム間の余白 */
  list-style: none;
  margin: 0;
  padding: 0;
}

/* 項目 */
.footer-menu > li{
  margin: 0;
}

/* リンク */
.footer-menu a{
  display: inline-block;
  text-decoration: none;
  opacity: .85;
  font-size: 13px;
  transition: opacity .2s ease, text-decoration-color .2s ease;
}

.footer-menu a:hover,
.footer-menu a:focus-visible{
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 小さめデバイスで中央寄せ */
@media (max-width: 640px){
  .site-footer .wrap{
    justify-content: center;
    text-align: center;
  }
  .site-footer p{
    width: 100%;
    order: 2;               /* コピーライトを下に回す */
    margin-top: 6px;
  }
  .footer-menu{
    justify-content: center;
  }
}


/* ================================
   ブログ
================================= */

/* === 投稿スライダー === */
.ps-wrap { margin-top: 32px; }
.ps-head{
  display:flex; align-items:center; justify-content:space-between; margin-bottom:12px;
}
.ps-title{ font-size: clamp(18px,2.2vw,24px); margin:0; }
.ps-ctrl{ display:flex; gap:8px; }
.ps-arrow{
  inline-size:36px; block-size:36px; border-radius:50%;
  border:1px solid #e5e5e5; background:#fff; cursor:pointer;
  display:grid; place-items:center; font-size:18px; line-height:1;
  transition: transform .15s ease, background .2s ease;
}
.ps-arrow:hover{ background:#fafafa; transform: translateY(-1px); }

.ps-viewport{ overflow:hidden; }
.ps-track{
  display:flex; gap:16px; margin:0; padding:4px; list-style:none;
  scroll-snap-type: x mandatory; overflow-x:auto; overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}

/* カード幅：PCで4.2枚、モバイルで2.8枚見える */
.ps-card{
  flex: 0 0 calc((100% - (16px * (var(--visible, 4.2) - 1))) / var(--visible, 4.2));
  scroll-snap-align: start;
  background:#fff; border:1px solid #eee; border-radius:16px; overflow:hidden;
}
.ps-link {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none; /* 下線なし */
  transition: background-color .2s ease;
  border-radius: 12px;   /* 角丸をつけると色変化が自然 */
}
.ps-link:hover {
  background-color: #fafafa;
}

.ps-thumb{ aspect-ratio: 16/9; background:#f2f2f2; overflow:hidden; }
.ps-thumb img{ width:100%; height:100%; object-fit:cover; display:block; }
.ps-ph{ display:block; width:100%; height:100%; background:linear-gradient(90deg,#f5f5f5,#ededed,#f5f5f5); }

.ps-excerpt{
  font-size: clamp(14px,1.3vw,14px);
  line-height:1.4;
  margin:10px 12px 8px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;   /* ← 3行まで表示 */
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;  /* 単語の途中でも折り返し */
  line-height: 1.4;
  max-height: calc(1.4em * 3); /* 行高×3行分を制限 */
  text-decoration: none !important;
}
.ps-card:hover .ps-excerpt {
  text-decoration: none !important;
}
.ps-meta{ color:#888; font-size:12px; margin:0 12px 12px; }

/* “もっとみる”カード */
.ps-more{ display:grid; place-items:center; border-style:dashed; }
.ps-more-inner{
  inline-size:100%; block-size:100%;
  display:grid; place-items:center;
  color:#111; font-weight:700; font-size: clamp(16px,1.8vw,20px);
}
.ps-more-text{ display:inline-block; }
.ps-more-arrow{
  display:inline-grid; place-items:center; margin-left:8px;
  inline-size:36px; block-size:36px; border-radius:50%;
  border:1px solid #e5e5e5; background:#fff;
}
/* もっとみるカードも通常カードと同じく全体リンク */
.ps-more .ps-link {
  display: flex; /* 内側を中央寄せ */
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
  transition: background-color .2s ease;
}

/* ホバー時に全体の背景色を変える */
.ps-more .ps-link:hover {
  background-color: #fafafa; /* 薄いグレー */
}

/* ホバー */
.ps-card:hover .ps-excerpt{ text-decoration: underline; text-underline-offset: 3px; }

/* モバイル：2.4枚見え／最初の5枚だけ出す */
@media (max-width: 767px){
  .ps-track{ gap:5px; }
  .ps-card{ flex-basis: calc((100% - (12px * (2.4 - 1))) / 2.4); }

  /* 5枚目以降は隠すが、「もっとみる」だけは表示する */
  .ps-card:nth-child(n+5):not(.ps-more){ display:none; }
}

@media (max-width: 767px){
  .ps-excerpt{ -webkit-line-clamp: 2; max-height: calc(1.4em * 2); font-size:13px !important; max-height: calc(1.2em * 2);}
  
  .ps-meta {
    font-size: 11px;  /* 日付など小さく */
  }

  .ps-more-inner {
    font-size: 14px;  /* もっとみるボタンの文字も調整可 */
  }
}


/* コンテナ */
.my-blog-index {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 20px;
}

/* グリッドレイアウト */
.my-blog-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
@media (max-width: 1024px){
  .my-blog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767px){
  .my-blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
}

/* カード */
.my-post-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* リンク */
.my-post-card__link {
  display: grid;
  grid-template-rows: auto 1fr;
  text-decoration: none;
  color: inherit;
  transition: background-color .2s ease, box-shadow .2s ease;
}
.my-post-card__link:hover {
  background: #fafafa;
  box-shadow: 0 4px 14px rgba(0,0,0,.06);
}

/* サムネ */
.my-post-card__thumb {
  aspect-ratio: 16/9;
  background: #f3f3f3;
  overflow: hidden;
}
.my-post-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* サムネなしのときは本文だけ */
.my-post-card.no-thumb .my-post-card__link {
  grid-template-rows: 1fr;
}

/* 本文 */
.my-post-card__body {
  padding: 12px 14px 14px;
  display: grid;
  gap: 8px;
}

/* タイトル */
.my-post-card__title {
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.5;
  font-weight: 700;
  margin: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3; /* PC3行 */
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
}
@media (max-width: 767px){
  .my-post-card__title { -webkit-line-clamp: 2; } /* SP2行 */
}

/* 抜粋 */
.my-post-card__excerpt {
  color: #666;
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* メタ */
.my-post-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #8a8a8a;
  font-size: 12px;
  margin-top: 4px;
}
.my-post-card__meta .dot {
  opacity: .5;
}

/* ページャ */
.my-blog-pager {
  margin-top: 24px;
}
.my-blog-pager .nav-links {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
}
.my-blog-pager a,
.my-blog-pager span {
  min-width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  padding: 0 10px;
  text-decoration: none;
  color: #333;
  background: #fff;
}
.my-blog-pager .current {
  background: #111;
  color: #fff;
  border-color: #111;
}
.my-blog-pager a:hover {
  background: #fafafa;
}