/* araiyu.com /blog 専用スタイル（トップページの style.css から独立） */
:root {
  --ink: #15233e;
  --text: #35435b;
  --muted: #6d7b90;
  --accent: #2b60df;
  --accent-deep: #214cb6;
  --line: #e4eaf3;
  --paper: #ffffff;
  --wash: #f6f9ff;
  --focus: #173da8;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; border-radius: 2px; }
.wrap { width: min(1080px, calc(100% - 48px)); margin: 0 auto; }
.skip-link { position: absolute; top: -90px; left: 12px; z-index: 9999; padding: 10px 16px; background: var(--ink); color: #fff; }
.skip-link:focus { top: 12px; }

/* ヘッダー */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.95); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 78px; display: flex; gap: 24px; justify-content: space-between; align-items: center; }
.brand { font-size: 24px; font-weight: 850; letter-spacing: -.07em; line-height: 1.2; color: var(--ink); white-space: nowrap; }
.brand span { color: var(--accent); }
.site-nav { list-style: none; display: flex; align-items: center; gap: clamp(12px, 2.4vw, 32px); margin: 0; padding: 0; }
.site-nav a { position: relative; display: inline-block; padding: 8px 0; font-size: 13px; font-weight: 700; color: #53617a; transition: color .2s; white-space: nowrap; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--accent); }
.site-nav a[aria-current]::after { content: ""; position: absolute; bottom: 1px; left: 0; right: 0; height: 2px; background: var(--accent); }

/* ブログ一覧：ヒーロー */
.journal-hero { background: linear-gradient(120deg, #fff 10%, #f7faff 65%, #eaf2ff 100%); border-bottom: 1px solid var(--line); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 265px; align-items: center; gap: 48px; padding: 97px 0 100px; }
.overline, .section-kicker, .side-kicker { font-size: 11px; line-height: 1.4; font-weight: 800; letter-spacing: .15em; color: var(--accent); }
.overline { display: flex; align-items: center; gap: 13px; margin: 0 0 26px; }
.overline-line { display: inline-block; height: 2px; width: 30px; background: var(--accent); }
.journal-hero h1 { margin: 0; font-size: clamp(44px, 6vw, 72px); color: var(--ink); line-height: 1.3; font-weight: 850; letter-spacing: -.07em; }
.journal-hero h1 span { color: var(--accent); }
.hero-lead { margin: 25px 0 0; color: #596982; font-size: 16px; line-height: 2.1; }
.hero-mark { height: 245px; display: grid; place-content: center; position: relative; border: 1px solid #d9e5f8; background: rgba(255,255,255,.46); border-radius: 50%; text-align: center; transform: rotate(-9deg); }
.hero-mark > span:first-child { font-family: Georgia, 'Times New Roman', serif; font-size: 155px; line-height: 1; font-weight: 500; letter-spacing: -.12em; color: #c4d5f9; }
.hero-mark-caption { position: absolute; bottom: 24px; left: 0; right: 0; color: #6c8ad0; font-size: 9px; font-weight: 800; letter-spacing: .14em; }

/* 一覧 */
.posts-section { padding: 82px 0 112px; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; align-items: start; gap: 54px; }
.section-topline { display: flex; align-items: end; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); padding-bottom: 24px; margin-bottom: 28px; }
.section-kicker { margin: 0 0 10px; }
.section-topline h2 { margin: 0; color: var(--ink); font-size: 28px; letter-spacing: -.04em; line-height: 1.3; }
.article-count { flex-shrink: 0; color: #8693a7; font-size: 11px; font-weight: 750; letter-spacing: .08em; padding-bottom: 3px; }
.post-card { position: relative; padding: 35px 35px 32px; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 10px 34px rgba(17,39,77,.04); transition: box-shadow .2s, transform .2s, border-color .2s; overflow: hidden; }
.post-card:hover { border-color: #bfcef0; transform: translateY(-3px); box-shadow: 0 16px 42px rgba(17,39,77,.09); }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; font-weight: 650; }
.meta-dot { height: 3px; width: 3px; background: #94a3b8; border-radius: 50%; }
.category { color: var(--accent); font-weight: 750; }
.post-card h3 { max-width: calc(100% - 35px); margin: 16px 0 10px; font-size: clamp(23px, 2.7vw, 28px); color: var(--ink); line-height: 1.45; letter-spacing: -.04em; }
.post-card h3 a:hover { color: var(--accent); }
.post-summary { max-width: 540px; color: #66758c; font-size: 14px; line-height: 1.95; margin: 0; }
.read-link { display: inline-flex; align-items: center; gap: 13px; margin-top: 27px; color: var(--accent); font-size: 13px; font-weight: 800; }
.read-link:hover { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 4px; }
.read-link span { font-size: 18px; line-height: 1; }
.post-index { position: absolute; top: 30px; right: 30px; color: #d6e1f5; font-family: Georgia, serif; font-size: 44px; line-height: 1; }
.archive-note { font-size: 12px; color: var(--muted); margin: 21px 0 0; }
.side-panel { padding: 33px 28px; background: var(--wash); border: 1px solid var(--line); border-radius: 14px; }
.side-kicker { margin: 0 0 15px; }
.side-panel h2 { margin: 0 0 15px; color: var(--ink); font-size: 21px; line-height: 1.6; letter-spacing: -.04em; }
.side-panel > p:not(.side-kicker):not(.side-heading) { margin: 0; color: #66758c; font-size: 13px; line-height: 2; }
.side-divider { height: 1px; background: #dce5f3; margin: 27px 0 24px; }
.side-heading { color: var(--ink); font-size: 11px; font-weight: 800; letter-spacing: .12em; margin: 0 0 14px; }
.topic-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 29px; }
.topic-list li { border: 1px solid #dfe8f7; border-radius: 5px; padding: 5px 10px; color: #5d6d84; background: #fff; font-size: 11px; font-weight: 650; }
.side-profile { display: inline-flex; align-items: center; gap: 10px; color: var(--accent); font-weight: 800; font-size: 12px; }
.side-profile:hover { text-decoration: underline; text-underline-offset: 4px; }

/* 記事詳細 */
.article-wrap { width: min(810px, calc(100% - 48px)); margin: 0 auto; padding: 45px 0 110px; }
.breadcrumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; color: #8995a5; font-size: 12px; margin-bottom: 75px; }
.breadcrumbs a { color: var(--accent); }
.breadcrumbs a:hover { text-decoration: underline; }
.article-header .post-meta { gap: 12px; }
.article-header h1 { margin: 22px 0 21px; font-size: clamp(36px, 5vw, 53px); color: var(--ink); letter-spacing: -.06em; line-height: 1.35; }
.article-deck { font-size: 17px; margin: 0; line-height: 1.9; color: #68778b; }
.article-rule { height: 1px; background: var(--line); margin: 45px 0 42px; }
.article-body { max-width: 710px; }
.article-body p { color: #35435b; margin: 0 0 24px; font-size: 16px; line-height: 2.25; overflow-wrap: anywhere; }
.article-body h2 { margin: 65px 0 23px; padding-left: 18px; border-left: 3px solid var(--accent); color: var(--ink); font-size: 24px; letter-spacing: -.04em; line-height: 1.5; }
.article-body h2:first-child { margin-top: 0; }
.article-bottom { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: 80px; border-top: 1px solid var(--line); padding-top: 32px; }
.back-to-blog { display: inline-flex; align-items: center; gap: 14px; padding: 12px 17px; border-radius: 8px; color: var(--accent); background: #eff5ff; font-size: 13px; font-weight: 800; }
.back-to-blog:hover { background: #e1ecff; }
.article-bottom-sign { font-size: 10px; color: #9ba8ba; font-weight: 800; letter-spacing: .15em; }

/* フッター */
.site-footer { border-top: 1px solid var(--line); background: #fbfcff; }
.footer-inner { min-height: 100px; display: flex; gap: 20px; align-items: center; justify-content: space-between; }
.site-footer .brand { font-size: 19px; }
.site-footer small { font-size: 11px; color: #8492a7; }
.back-top { font-size: 12px; color: var(--accent); font-weight: 750; }
.back-top:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .content-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .side-panel { max-width: none; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) 190px; gap: 20px; }
  .hero-mark { width: 190px; height: 190px; }
  .hero-mark > span:first-child { font-size: 115px; }
}
@media (max-width: 660px) {
  .wrap { width: min(100% - 34px, 1080px); }
  .header-inner { min-height: 0; padding: 15px 0 12px; flex-direction: column; gap: 10px; }
  .brand { font-size: 22px; }
  .site-nav { justify-content: center; flex-wrap: wrap; gap: 9px 19px; }
  .site-nav a { font-size: 12px; padding: 4px 0 6px; }
  html { scroll-padding-top: 130px; }
  .hero-grid { display: block; padding: 65px 0 70px; }
  .hero-mark { display: none; }
  .journal-hero h1 { font-size: clamp(38px, 9vw, 52px); }
  .hero-lead { font-size: 14px; }
  .posts-section { padding: 60px 0 70px; }
  .section-topline h2 { font-size: 25px; }
  .post-card { padding: 28px 23px; }
  .post-card h3 { font-size: 23px; }
  .post-index { right: 22px; top: 23px; font-size: 36px; }
  .side-panel { padding: 26px 23px; }
  .article-wrap { width: calc(100% - 34px); padding: 25px 0 72px; }
  .breadcrumbs { margin-bottom: 52px; }
  .article-deck { font-size: 15px; }
  .article-rule { margin: 35px 0 31px; }
  .article-body p { font-size: 15px; line-height: 2.1; }
  .article-body h2 { font-size: 21px; margin-top: 48px; }
  .article-bottom { margin-top: 53px; }
  .article-bottom-sign { display: none; }
  .footer-inner { padding: 24px 0; min-height: 0; flex-direction: column; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}


/* ブログ一覧：表示順・ページ切替（v3） */
.archive-toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: -4px 0 23px; }
.archive-toolbar label { color: var(--ink); font-size: 13px; font-weight: 800; }
.archive-toolbar select {
  appearance: auto; min-height: 44px; max-width: 100%; padding: 9px 14px;
  border: 1px solid #cdd9ed; border-radius: 8px; background: #fff;
  color: var(--ink); font: inherit; font-size: 13px; cursor: pointer;
}
.archive-toolbar select:focus-visible, .pagination a:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.archive-range { margin-left: auto; font-size: 12px; color: var(--muted); white-space: nowrap; }
.post-list { display: grid; gap: 18px; }
.post-card[hidden], .pagination[hidden] { display: none !important; }
.post-index { font-size: 40px; font-variant-numeric: tabular-nums; letter-spacing: -.025em; }
.pagination { display: flex; justify-content: center; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 34px; }
.pagination a, .pagination span {
  display: inline-flex; justify-content: center; align-items: center; min-width: 42px; min-height: 42px;
  padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff;
  color: var(--ink); font-size: 13px; font-weight: 700; text-decoration: none;
}
.pagination a:hover { border-color: var(--accent); color: var(--accent); }
.pagination a[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: #fff; pointer-events: none; }
.pagination .pagination-edge { padding-inline: 16px; }
.archive-note { margin-top: 22px; }
@media (max-width: 660px) {
  .archive-toolbar { gap: 8px; }
  .archive-toolbar select { flex: 1; }
  .archive-range { margin-left: 0; width: 100%; }
  .post-index { font-size: 32px; }
  .post-card h3 { max-width: calc(100% - 75px); }
}

.post-card h3 { max-width: calc(100% - 75px); }

/* ---- Archive controls v4: search, topic filter, results ---- */
.archive-search { margin: 0 0 16px; }
.archive-search label { display: block; color: var(--ink); font-size: 12px; font-weight: 800; margin-bottom: 9px; }
.search-field { position: relative; }
.search-field svg { position: absolute; top: 50%; left: 16px; color: #7185a2; transform: translateY(-50%); pointer-events: none; }
.search-field input { display: block; width: 100%; min-height: 51px; border: 1px solid #cdd9ed; border-radius: 9px; background: #fff; padding: 12px 16px 12px 47px; color: var(--ink); font: inherit; font-size: 15px; }
.search-field input::placeholder { color: #8c9ab1; }
.search-field input:focus-visible, .topic-button:focus-visible, .all-topics:focus-visible,
.archive-empty button:focus-visible, #clear-filters:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.archive-toolbar { justify-content: space-between; margin: 0 0 24px; }
.sort-control { display: inline-flex; align-items: center; gap: 10px; }
.sort-control label { white-space: nowrap; }
.filter-indicator { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 9px; background: #edf4ff; color: var(--accent); border-radius: 7px; padding: 5px 10px; font-size: 12px; font-weight: 650; }
.filter-indicator[hidden] { display: none; }
#clear-filters { background: transparent; border: 0; font: inherit; color: var(--accent); text-decoration: underline; cursor: pointer; }
.topic-list li { padding: 0; background: transparent; border: 0; }
.topic-list li .topic-button, .all-topics { border: 1px solid #dfe8f7; background: #fff; border-radius: 6px; color: #52667f; font: inherit; font-size: 12px; font-weight: 650; padding: 8px 12px; cursor: pointer; transition: background .15s, color .15s, border-color .15s; text-align: left; }
.topic-list li .topic-button:hover, .all-topics:hover { color: var(--accent); border-color: var(--accent); }
.topic-list li .topic-button.active, .all-topics.active { color: #fff; background: var(--accent); border-color: var(--accent); }
.all-topics { display: inline-block; margin-bottom: 12px; }
.archive-empty { padding: 34px 22px; background: var(--wash); border: 1px dashed var(--line); border-radius: 12px; text-align: center; }
.archive-empty[hidden] { display: none; }
.archive-empty h3 { margin: 0 0 8px; color: var(--ink); font-size: 18px; }
.archive-empty p { color: var(--muted); font-size: 13px; }
.archive-empty button { margin-top: 8px; background: var(--accent); color: #fff; font: inherit; font-size: 13px; font-weight: 750; padding: 10px 15px; border: none; border-radius: 8px; cursor: pointer; }
.pagination .pagination-gap { border: 0; background: transparent; color: var(--muted); min-width: 20px; }
@media (max-width: 660px) {
  .archive-toolbar { align-items: stretch; gap: 12px; }
  .sort-control { width: 100%; }
  .archive-toolbar select { flex: 1; }
  .filter-indicator { flex: 1 1 100%; }
  .topic-list { gap: 9px; }
  .topic-list li .topic-button { font-size: 12px; padding: 10px 12px; }
}
