@import url('https://fonts.googleapis.com/css2?family=Google+Sans+Flex:opsz,wght@14,100;14,200;14,400&family=Jost:wght@300;400;500&family=Zen+Kaku+Gothic+Antique:wght@300;400;500;700&display=swap');

:root {
  --primary-color: #9db4c8;
  --primary-hover: #8ba4b8;
  --primary-color-dark: #7a95ab;
  --bg-light: #f8f9fb;
  --bg-dark: #17181d;
  --panel-light: #f0f2f7;
  --panel-light-hover: #e6e8ed;
  --panel-light-border: #dfe1e6;
  --panel-dark: #252a38;
  --panel-dark-2: #3d4454;
  --font-ja: 'Zen Kaku Gothic Antique';
  --font-en: 'Jost';
  --tag-add: #a8c9a8; --tag-add-bg: rgba(168,201,168,.18);
  --tag-fix: #d9b4a0; --tag-fix-bg: rgba(217,180,160,.18);
  --tag-change: #b8a8c9; --tag-change-bg: rgba(184,168,201,.18);
  --tag-remove: #d9a8a8; --tag-remove-bg: rgba(217,168,168,.18);
}

* { margin:0; padding:0; box-sizing:border-box; font-family: 'Jost', 'Zen Kaku Gothic Antique', system-ui, sans-serif; font-weight:400; }

body { background:var(--bg-light); color:#323232; transition:background .3s,color .3s; }
body.dark { background:var(--bg-dark); color:#e8e8e8; }

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

/* TOP BUTTONS */
.top-buttons {
  position:fixed; top:20px; right:20px;
  display:flex; gap:10px; z-index:1000;
}
.icon-btn {
  width:50px; height:50px; border-radius:24px;
  display:flex; align-items:center; justify-content:center;
  border:none; cursor:pointer; transition:all .3s; padding:10px;
  background:var(--panel-light);
}
body.dark .icon-btn { background:var(--panel-dark); }
.icon-btn svg { width:22px; height:22px; stroke:#323232; fill:none; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
body.dark .icon-btn svg { stroke:#e8e8e8; }

/* HERO */
.hero {
  min-height:100vh; display:flex; flex-direction:column;
  align-items:center; justify-content:center;
  text-align:center; padding:40px 20px 60px;
}
.hero-logo { width:clamp(180px,42vw,260px); height:auto; margin-bottom:28px; }
.hero-sub {
  font-size:clamp(.9rem,2.4vw,1.1rem); opacity:.7; line-height:1.8;
  max-width:500px; margin-bottom:40px;
}
.hero-btn {
  display:inline-flex; align-items:center; gap:8px;
  padding:14px 36px; border-radius:24px; border:none; cursor:pointer;
  font-size:1rem; font-family:inherit; font-weight:400;
  background:var(--primary-color); color:#fff; transition:all .2s;
  text-decoration:none;
}
.hero-btn:hover { background:var(--primary-hover); transform:scale(1.02); }
body.dark .hero-btn { background:var(--primary-color-dark); }

/* NAV PILLS */
.nav-pill {
  padding:9px 22px; border-radius:24px; font-size:.88rem; border:none;
  cursor:pointer; font-family:inherit; transition:all .2s;
  background:var(--panel-light); color:#323232;
  text-decoration:none; display:inline-block;
}
body.dark .nav-pill { background:var(--panel-dark); color:#e8e8e8; }
.nav-pill:hover, .nav-pill.active { background:var(--primary-color); color:#fff; }
body.dark .nav-pill:hover, body.dark .nav-pill.active { background:var(--primary-color-dark); }

/* PAGE WRAPPER */
.wrapper { max-width:760px; margin:0 auto; padding:80px 20px 60px; }

/* PAGE HEADER */
.page-header { text-align:center; margin-bottom:56px; }
.page-header .logo-link img { width:clamp(120px,28vw,160px); height:auto; margin-bottom:28px; }
.page-header h1 { font-size:1.8rem; letter-spacing:1px; margin-bottom:10px; }
.page-header p { font-size:.92rem; opacity:.6; line-height:1.8; }

/* NAV PILLS WRAPPER */
.nav-pills { display:flex; gap:8px; justify-content:center; margin-bottom:48px; flex-wrap:wrap; }

/* SECTION */
.section { padding:80px 20px; max-width:760px; margin:0 auto; }
.section-title {
  font-size:1.4rem; text-align:center; margin-bottom:40px; letter-spacing:.5px;
}

/* FEATURE CARDS */
.cards { display:flex; flex-direction:column; gap:16px; }
.card {
  padding:28px 32px; border-radius:24px;
  background:var(--panel-light); transition:all .2s;
}
body.dark .card { background:var(--panel-dark); }
.card-header { display:flex; align-items:center; gap:14px; margin-bottom:16px; }
.card-icon {
  width:44px; height:44px; border-radius:14px; flex-shrink:0;
  display:flex; align-items:center; justify-content:center;
  background:rgba(157,180,200,.18);
}
body.dark .card-icon { background:rgba(122,149,171,.22); }
.card-icon svg { width:22px; height:22px; stroke:var(--primary-color); fill:none; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
body.dark .card-icon svg { stroke:var(--primary-color-dark); }
.card h3 { font-size:1.05rem; font-weight:400; }
.card ul { list-style:none; display:flex; flex-direction:column; gap:8px; }
.card ul li {
  font-size:.9rem; opacity:.75; padding-left:18px; position:relative; line-height:1.6;
}
.card ul li::before {
  content:''; position:absolute; left:0; top:9px;
  width:6px; height:6px; border-radius:50%;
  background:var(--primary-color);
}
body.dark .card ul li::before { background:var(--primary-color-dark); }

/* STATS ROW */
.stats { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin-bottom:60px; }
.stat-card { padding:24px 16px; border-radius:24px; text-align:center; background:var(--panel-light); }
body.dark .stat-card { background:var(--panel-dark); }
.stat-val { font-size:1.8rem; color:var(--primary-color); margin-bottom:6px; }
body.dark .stat-val { color:var(--primary-color-dark); }
.stat-lbl { font-size:.82rem; opacity:.65; }

/* LINKS */
.links { display:flex; flex-wrap:wrap; gap:12px; justify-content:center; margin-top:48px; }

.link-badge {
  display:inline-flex; align-items:center; gap:10px;
  padding:12px 20px; border-radius:999px;
  background:var(--panel-light); color:inherit; text-decoration:none;
  transition:all .25s; border:1px solid transparent; font-size:.92rem;
}
body.dark .link-badge { background:var(--panel-dark); }
.link-badge:hover {
  background:var(--primary-color); color:#fff; transform:translateY(-2px);
}
body.dark .link-badge:hover {
  background:var(--primary-color-dark);
}

.link-icon {
  width:20px; height:20px; stroke:currentColor; fill:none;
  stroke-width:1.5; stroke-linecap:round; stroke-linejoin:round; flex-shrink:0;
}

.text-link {
  color:var(--primary-color-dark); text-decoration:none;
  border-bottom:1px solid transparent; transition:all .2s; cursor:pointer;
}
body.dark .text-link { color:var(--primary-color); }
.text-link:hover { border-bottom:1px solid var(--primary-color-dark); opacity:.8; }
body.dark .text-link:hover { border-bottom-color:var(--primary-color); }
.pill-link {
  display:inline-flex; align-items:center; gap:7px;
  padding:10px 22px; border-radius:999px; font-size:.9rem;
  border:1px solid var(--panel-light-border);
  background:transparent; cursor:pointer; transition:all .2s;
  font-family:inherit; color:inherit;
  text-decoration:none;
}
body.dark .pill-link { border-color:var(--panel-dark-2); }
.pill-link:hover { background:var(--primary-color); color:#fff; border-color:var(--primary-color); }
body.dark .pill-link:hover { background:var(--primary-color-dark); border-color:var(--primary-color-dark); }
.pill-link svg { width:15px; height:15px; flex-shrink:0; stroke:currentColor; fill:none; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }

/* DIVIDER */
.divider { border:none; border-top:1px solid var(--panel-light-border); margin:0 auto; max-width:760px; }
body.dark .divider { border-color:var(--panel-dark-2); }

/* FOOTER */
footer {
  text-align:center; padding:40px 20px 32px;
  font-size:.82rem; opacity:.45;
  border-top:1px solid var(--panel-light-border);
}
body.dark footer { border-color:var(--panel-dark-2); }

.footer-credit {
  margin-top:20px; text-align:center; -webkit-font-smoothing:antialiased;
}
.footer-credit-label {
  font-family:'Google Sans Flex','Zen Kaku Gothic Antique',sans-serif; font-size:.75rem; font-weight:100;
  color:#676767; margin-bottom:4px; letter-spacing:-0.01em; white-space:nowrap;
}
.footer-credit-main {
  font-family:'Jost',sans-serif; font-size:1.2rem; font-weight:400; color:#000000;
  line-height:1; display:inline-flex; align-items:baseline; justify-content:center; white-space:nowrap;
}
body.dark .footer-credit-main { color:#ffffff; }
body.dark .footer-credit-label { color:#676767; }
.footer-credit-dot {
  display:inline-block; background:linear-gradient(315deg,#275766 15%,#baffc0 33%) !important;
  -webkit-background-clip:text !important; background-clip:text !important;
  -webkit-text-fill-color:transparent !important; color:transparent !important; font-size:1.2rem;
}

/* MOBILE */
@media(max-width:600px){
  .stats { grid-template-columns:1fr 1fr; }
  .stat-card:last-child { grid-column:span 2; }
  .card { padding:22px 20px; }
}

/* BLOG TIMELINE */
.blog-grid { display:flex; flex-direction:column; gap:12px; }

.blog-entry {
  border-radius:24px; background:var(--panel-light);
  overflow:hidden; transition:all .2s;
}
body.dark .blog-entry { background:var(--panel-dark); }

.blog-header {
  display:flex; align-items:flex-start; gap:16px;
  padding:22px 26px; cursor:pointer; user-select:none;
}
.blog-header:hover { background:var(--panel-light-hover); }
body.dark .blog-header:hover { background:var(--panel-dark-2); }

.blog-head-main { flex:1; min-width:0; }
.blog-title { font-size:1.08rem; line-height:1.55; margin-top:6px; }
.blog-excerpt { font-size:.9rem; opacity:.7; line-height:1.75; margin-top:10px; }
.blog-meta { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.blog-date { font-size:.8rem; opacity:.55; font-variant-numeric:tabular-nums; white-space:nowrap; }
.blog-tag {
  display:inline-block; padding:3px 11px; border-radius:24px;
  font-size:.75rem; background:rgba(157,180,200,.22); color:var(--primary-color);
}
body.dark .blog-tag { background:rgba(122,149,171,.25); color:var(--primary-color-dark); }

.blog-action {
  display:flex; flex-direction:column; align-items:flex-end; gap:10px;
  flex-shrink:0;
}
.blog-open-btn {
  padding:8px 16px; border-radius:999px; border:none; cursor:pointer;
  font-size:.82rem; font-family:inherit; transition:all .2s;
  background:var(--primary-color); color:#fff;
}
body.dark .blog-open-btn { background:var(--primary-color-dark); }
.blog-open-btn:hover { transform:translateY(-1px); opacity:.95; }

@media(max-width:600px){
  .blog-header { flex-direction:column; align-items:flex-start; }
  .blog-action { width:100%; flex-direction:row; justify-content:space-between; }
}

/* BLOG MODAL */
.blog-modal {
  position:fixed; inset:0; display:none; z-index:1200;
  background:var(--bg-light); overflow:auto; padding:90px 20px 60px;
}
body.dark .blog-modal { background:var(--bg-dark); }
.blog-modal.open { display:block; }
.blog-modal-card {
  position:relative; z-index:1; max-width:760px; margin:0 auto;
  background:transparent; border-radius:0; padding:0;
  box-shadow:none;
}
.blog-modal-top { display:flex; justify-content:flex-start; margin-bottom:18px; }
.blog-modal-close {
  border-radius:999px; border:none; cursor:pointer; font-size:.85rem;
  padding:8px 16px; background:var(--panel-light); color:inherit;
  transition:all .2s;
}
body.dark .blog-modal-close { background:var(--panel-dark-2); }
.blog-modal-close:hover { transform:translateY(-1px); opacity:.9; }
.blog-modal-head { display:flex; align-items:center; gap:10px; margin-bottom:10px; }
.blog-modal-tag {
  display:inline-block; padding:3px 11px; border-radius:24px;
  font-size:.75rem; background:rgba(157,180,200,.22); color:var(--primary-color);
}
body.dark .blog-modal-tag { background:rgba(122,149,171,.25); color:var(--primary-color-dark); }
.blog-modal-date { font-size:.8rem; opacity:.55; font-variant-numeric:tabular-nums; }
.blog-modal-title { font-size:1.2rem; line-height:1.6; margin-bottom:8px; }
.blog-modal-excerpt { font-size:.92rem; opacity:.72; line-height:1.75; margin-bottom:16px; }
.blog-modal-body p { font-size:.92rem; opacity:.8; line-height:1.9; margin-bottom:14px; }
body.modal-open { overflow:hidden; }

@media(max-width:700px){
  .blog-modal { padding:70px 16px 50px; }
}

/* CHANGELOG */
.timeline { display:flex; flex-direction:column; gap:12px; }

.cl-entry {
  border-radius:24px; background:var(--panel-light);
  overflow:hidden; transition:all .2s;
}
body.dark .cl-entry { background:var(--panel-dark); }

.cl-header {
  display:flex; align-items:center; gap:14px;
  padding:22px 26px; cursor:pointer; user-select:none;
}
.cl-header:hover { background:var(--panel-light-hover); }
body.dark .cl-header:hover { background:var(--panel-dark-2); }

.cl-version {
  font-size:1.05rem; letter-spacing:.5px; min-width:88px;
}
.cl-badge {
  display:inline-flex; align-items:center; gap:5px;
  padding:4px 12px; border-radius:24px; font-size:.75rem;
}
.badge-major { background:rgba(157,180,200,.25); color:var(--primary-color); }
body.dark .badge-major { color:var(--primary-color-dark); }
.badge-minor { background:rgba(168,201,168,.2); color:#6fa86f; }
.badge-patch { background:rgba(184,168,201,.18); color:#9a88ab; }

.cl-date { font-size:.8rem; opacity:.5; margin-left:auto; font-variant-numeric:tabular-nums; }

.cl-chevron {
  width:18px; height:18px; stroke:currentColor; fill:none;
  stroke-width:2; stroke-linecap:round; stroke-linejoin:round;
  opacity:.45; transition:transform .25s; flex-shrink:0;
}
.cl-entry.open .cl-chevron { transform:rotate(180deg); }

.cl-body { display:none; padding:0 26px 24px; border-top:1px solid var(--panel-light-border); }
body.dark .cl-body { border-color:var(--panel-dark-2); }
.cl-entry.open .cl-body { display:block; }

.cl-summary { font-size:.88rem; opacity:.7; line-height:1.75; margin:16px 0 20px; }

.cl-items { display:flex; flex-direction:column; gap:8px; }
.cl-item { display:flex; align-items:baseline; gap:10px; font-size:.88rem; line-height:1.65; }

.cl-tag {
  display:inline-block; padding:2px 10px; border-radius:24px;
  font-size:.72rem; flex-shrink:0; white-space:nowrap;
}
.tag-add { background:var(--tag-add-bg); color:var(--tag-add); }
.tag-fix { background:var(--tag-fix-bg); color:var(--tag-fix); }
.tag-change { background:var(--tag-change-bg); color:var(--tag-change); }
.tag-remove { background:var(--tag-remove-bg); color:var(--tag-remove); }

.cl-item-text { opacity:.8; }

/* LEGEND */
.legend {
  display:flex; gap:10px; flex-wrap:wrap; margin-bottom:32px;
  justify-content:center;
}
.legend-item { display:flex; align-items:center; gap:6px; font-size:.78rem; opacity:.7; }
.legend-dot { width:8px; height:8px; border-radius:50%; }

/* HELP */
.search-wrap { position:relative; margin-bottom:24px; }
.search-icon {
  position:absolute; left:18px; top:50%; transform:translateY(-50%);
  width:18px; height:18px; stroke:#323232; fill:none; stroke-width:1.8;
  stroke-linecap:round; stroke-linejoin:round; opacity:.35; pointer-events:none;
}
body.dark .search-icon { stroke:#e8e8e8; }
.search-input {
  width:100%; padding:15px 20px 15px 48px; border-radius:24px; border:none;
  outline:none; font-size:.95rem; font-family:inherit;
  background:var(--panel-light); color:#323232; transition:box-shadow .2s;
}
body.dark .search-input { background:var(--panel-dark); color:#e8e8e8; }
.search-input:focus { box-shadow:0 0 0 2px var(--primary-color); }
body.dark .search-input:focus { box-shadow:0 0 0 2px var(--primary-color-dark); }
.search-input::placeholder { opacity:.4; }

.cat-tabs {
  display:flex; gap:8px; margin-bottom:32px; overflow-x:auto; padding-bottom:4px;
  -webkit-overflow-scrolling:touch;
}
.cat-tabs::-webkit-scrollbar { height:3px; }
.cat-tabs::-webkit-scrollbar-thumb { background:var(--panel-light-border); border-radius:3px; }
.cat-tab {
  padding:7px 18px; border-radius:24px; font-size:.82rem; border:none;
  cursor:pointer; font-family:inherit; white-space:nowrap; transition:all .2s;
  background:var(--panel-light); color:#323232; flex-shrink:0;
}
body.dark .cat-tab { background:var(--panel-dark); color:#e8e8e8; }
.cat-tab.active { background:var(--primary-color); color:#fff; }
body.dark .cat-tab.active { background:var(--primary-color-dark); }

.qa-list { display:flex; flex-direction:column; gap:12px; }
.qa-card {
  border-radius:24px; background:var(--panel-light);
  padding:24px 28px; display:flex; flex-direction:column; gap:10px;
}
body.dark .qa-card { background:var(--panel-dark); }
.qa-cat {
  display:inline-block; padding:3px 11px; border-radius:24px;
  font-size:.72rem; width:fit-content;
  background:rgba(157,180,200,.2); color:var(--primary-color);
}
body.dark .qa-cat { background:rgba(122,149,171,.22); color:var(--primary-color-dark); }
.qa-q { font-size:1rem; line-height:1.55; }
.qa-q mark { background:transparent; color:var(--primary-color); font-weight:500; }
body.dark .qa-q mark { color:var(--primary-color-dark); }
.qa-divider { border:none; border-top:1px solid var(--panel-light-border); margin:0; }
body.dark .qa-divider { border-color:var(--panel-dark-2); }
.qa-a { font-size:.9rem; opacity:.7; line-height:1.8; }
.qa-a mark { background:transparent; color:var(--primary-color); font-weight:500; opacity:1; }
body.dark .qa-a mark { color:var(--primary-color-dark); }
.empty { text-align:center; padding:56px 0; font-size:.9rem; opacity:.4; line-height:2; }

/* LOGO DOWNLOAD SECTION */
.logo-download-section {
  padding: 60px 20px;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

/* EMPTY STATE */
.empty-state { text-align:center; padding:60px 0; opacity:.45; font-size:.95rem; line-height:2; }

/* DIVIDER */
hr { border:none; border-top:1px solid var(--panel-light-border); margin:56px 0; }
body.dark hr { border-color:var(--panel-dark-2); }

/* ===== LOGO DOWNLOAD PAGE ===== */

/* LOGO GRID */
.logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 48px;
}

/* LOGO CARD */
.logo-card {
  border-radius: 24px;
  background: var(--panel-light);
  overflow: hidden;
  transition: all .2s;
}
body.dark .logo-card { background: var(--panel-dark); }

.logo-card-preview {
  padding: 40px 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  position: relative;
}

/* バリアントごとの背景 */
.logo-card-preview.bg-light {
  background: #f8f9fb;
}
.logo-card-preview.bg-dark {
  background: #17181d;
}
.logo-card-preview.bg-primary {
  background: var(--primary-color);
}
.logo-card-preview.bg-transparent-light {
  background: repeating-conic-gradient(#e0e0e0 0% 25%, #f4f4f4 0% 50%) 0 0 / 20px 20px;
}
.logo-card-preview.bg-transparent-dark {
  background: repeating-conic-gradient(#2a2a2a 0% 25%, #1c1c1c 0% 50%) 0 0 / 20px 20px;
}

.logo-card-preview img {
  max-width: 180px;
  max-height: 80px;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.logo-card-info {
  padding: 16px 24px 20px;
  border-top: 1px solid var(--panel-light-border);
}
body.dark .logo-card-info { border-color: var(--panel-dark-2); }

.logo-card-name {
  font-size: .88rem;
  margin-bottom: 4px;
  line-height: 1.5;
}

.logo-card-meta {
  font-size: .78rem;
  opacity: .5;
  margin-bottom: 14px;
}

.logo-card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* DL ボタン */
.dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: .8rem;
  border: 1px solid var(--panel-light-border);
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
  text-decoration: none;
  transition: all .2s;
  white-space: nowrap;
}
body.dark .dl-btn { border-color: var(--panel-dark-2); }
.dl-btn:hover {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}
body.dark .dl-btn:hover {
  background: var(--primary-color-dark);
  border-color: var(--primary-color-dark);
}
.dl-btn svg {
  width: 13px; height: 13px;
  stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  flex-shrink: 0;
}

/* USAGE GUIDELINES */
.guideline-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}
@media(max-width: 600px) {
  .guideline-grid { grid-template-columns: 1fr; }
  .logo-grid { grid-template-columns: 1fr; }
}

.guideline-card {
  padding: 22px 24px;
  border-radius: 20px;
  background: var(--panel-light);
}
body.dark .guideline-card { background: var(--panel-dark); }

.guideline-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.guideline-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 11px;
  border-radius: 24px;
  font-size: .72rem;
  flex-shrink: 0;
}
.guideline-badge.ok {
  background: rgba(168, 201, 168, .2);
  color: #6fa86f;
}
.guideline-badge.ng {
  background: rgba(217, 168, 168, .18);
  color: #c97a7a;
}

.guideline-title {
  font-size: .88rem;
  opacity: .85;
}

.guideline-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.guideline-card ul li {
  font-size: .82rem;
  opacity: .65;
  padding-left: 16px;
  position: relative;
  line-height: 1.6;
}
.guideline-card.ok-card ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #6fa86f;
}
.guideline-card.ng-card ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #c97a7a;
}

/* COPY TOAST */
.copy-toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #323232;
  color: #fff;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: .85rem;
  opacity: 0;
  pointer-events: none;
  transition: all .25s;
  z-index: 2000;
  white-space: nowrap;
}
body.dark .copy-toast { background: #e8e8e8; color: #323232; }
.copy-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* COLOR PALETTE */
.palette-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.palette-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.palette-swatch {
  width: 48px; height: 48px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.06);
  transition: transform .15s;
}
body.dark .palette-swatch { border-color: rgba(255,255,255,.08); }
.palette-item:hover .palette-swatch { transform: scale(1.08); }
.palette-hex {
  font-size: .72rem;
  opacity: .55;
  font-variant-numeric: tabular-nums;
  letter-spacing: .03em;
}

/* ===== BLOG PAGE ADDITIONS ===== */

/* カードに hover 時の矢印アニメと右側アクション列を追加 */
.blog-header {
  transition: background .15s;
}

/* "読む" ボタン */
.blog-read-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 999px;
  border: none;
  font-size: .82rem;
  font-family: inherit;
  cursor: pointer;
  background: var(--primary-color);
  color: #fff;
  transition: all .2s;
  white-space: nowrap;
  flex-shrink: 0;
  align-self: flex-end;
}
body.dark .blog-read-btn { background: var(--primary-color-dark); }
.blog-read-btn:hover { transform: translateY(-1px); opacity: .9; }
.blog-read-btn svg {
  width: 13px; height: 13px;
  stroke: currentColor; fill: none;
  stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .2s;
}
.blog-header:hover .blog-read-btn svg { transform: translateX(3px); }

/* excerpt を 2行で切る */
.blog-excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* カード全体をクリッカブルに見せる */
.blog-header { cursor: pointer; }

/* ===== BLOG MODAL リッチ化 ===== */

/* モーダル背景：わずかにぼかした感じ */
.blog-modal {
  padding: 80px 20px 80px;
}

/* カードエリア */
.blog-modal-card {
  max-width: 680px;
}

/* 戻るボタン + シェアボタンを横並びに */
.blog-modal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.blog-modal-close {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: inherit;
}
.blog-modal-close svg {
  width: 14px; height: 14px;
  stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* ヘッダー区画 */
.blog-modal-head {
  margin-bottom: 14px;
}

/* タイトル */
.blog-modal-title {
  font-size: 1.55rem;
  line-height: 1.55;
  margin-bottom: 14px;
  letter-spacing: .01em;
}

/* excerpt（リード文） */
.blog-modal-excerpt {
  font-size: .95rem;
  opacity: .65;
  line-height: 1.85;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--panel-light-border);
}
body.dark .blog-modal-excerpt { border-color: var(--panel-dark-2); }

/* 本文 */
.blog-modal-body {
  padding-bottom: 40px;
}
.blog-modal-body p {
  font-size: .95rem;
  opacity: .82;
  line-height: 2;
  margin-bottom: 18px;
}
.blog-modal-body p:last-child { margin-bottom: 0; }

/* 脚注っぽいテキスト（¹ で始まる行） */
.blog-modal-body p.footnote {
  font-size: .82rem;
  opacity: .48;
  line-height: 1.75;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--panel-light-border);
}
body.dark .blog-modal-body p.footnote { border-color: var(--panel-dark-2); }

/* 空のカード状態 */
.blog-modal-empty {
  text-align: center;
  padding: 80px 0;
  opacity: .38;
  font-size: .92rem;
  line-height: 2;
}

/* モバイル調整 */
@media (max-width: 600px) {
  .blog-modal { padding: 64px 16px 60px; }
  .blog-modal-title { font-size: 1.25rem; }
  .blog-header { flex-direction: row; align-items: flex-start; }
}