/*
Theme Name: HONSUMI Arkhe Child
Theme URI: https://www.honsumi.info/
Description: HONSUMI！ リニューアル用 Arkhe 子テーマ。承認済み試作デザイン（ポスターの青を基調にしたタイムラインUI）を Arkhe に移植する。
Author: 中島 駆
Template: arkhe
Version: 0.6.6
Text Domain: honsumi-arkhe-child
*/

/* ============ HONSUMI renewal design tokens (approved mockup) ============ */
:root {
  --honsumi-blue: #0a68d8;
  --honsumi-blue-deep: #0756b8;
  --honsumi-bg: #f4f6f9;
  --honsumi-surface: #ffffff;
  --honsumi-ink: #101418;
  --honsumi-line: #dde4ec;
  --honsumi-chip: #e8eef6;
  --honsumi-accent: #e63329;
  --honsumi-gold: #b98a1c;
  --honsumi-gold-bg: #fdf6e0;
  --honsumi-shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 8px 24px -18px rgba(16, 24, 40, .25);
  --honsumi-radius: 18px;
}

/* ============ Base ============ */
body {
  background-color: var(--honsumi-bg);
  color: var(--honsumi-ink);
}

/* ============ Header ============ */
.l-header {
  background-color: var(--honsumi-surface);
  border-bottom: 1px solid var(--honsumi-line);
}

/* Global nav as pill tabs */
.c-gnav__a {
  border-radius: 999px;
  padding: .45em 1.1em;
  font-weight: 600;
  transition: background-color .15s ease, color .15s ease;
}
.c-gnav__a:hover {
  background-color: var(--honsumi-chip);
  color: var(--honsumi-blue-deep);
}
.c-gnav__li.current-menu-item .c-gnav__a,
.c-gnav__li.current_page_item .c-gnav__a {
  background-color: var(--honsumi-blue);
  color: #fff;
}

/* ============ Timeline (front / archive / search) ============ */
.home .p-postList,
.archive .p-postList,
.search .p-postList {
  max-width: 720px;
  margin-inline: auto;
}
.home .p-postList.-type-card,
.archive .p-postList.-type-card,
.search .p-postList.-type-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.p-postList__item {
  background-color: var(--honsumi-surface);
  border: 1px solid var(--honsumi-line);
  border-radius: var(--honsumi-radius);
  box-shadow: var(--honsumi-shadow);
  overflow: hidden;
}
.p-postList__body {
  padding: 18px 22px 20px;
}
.p-postList__title {
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.5;
}
.p-postList__title a {
  color: var(--honsumi-ink);
  text-decoration: none;
}
.p-postList__title a:hover {
  color: var(--honsumi-blue);
}
.p-postList__excerpt {
  color: #39434d;
  font-size: .97rem;
  line-height: 1.8;
}
.p-postList__category {
  background-color: var(--honsumi-chip);
  color: var(--honsumi-blue-deep);
  border-radius: 999px;
  padding: .15em .8em;
  font-size: .78rem;
  font-weight: 700;
}
.p-postList__times,
.p-postList__meta {
  color: #5f7080;
  font-size: .83rem;
}

/* Pagination as pills */
.navigation.pagination .page-numbers {
  border: 1px solid var(--honsumi-line);
  border-radius: 999px;
  background-color: var(--honsumi-surface);
  padding: .4em 1em;
}
.navigation.pagination .page-numbers.current {
  background-color: var(--honsumi-blue);
  border-color: var(--honsumi-blue);
  color: #fff;
}

/* ============ Single post ============ */
.c-entry__content a,
.p-entry__body a {
  color: var(--honsumi-blue);
}

/* 追記 (admin comments) as thread-style additions */
.comment-list .comment {
  border-left: 3px solid var(--honsumi-blue);
  background-color: var(--honsumi-surface);
  border-radius: 0 12px 12px 0;
  padding: 12px 16px;
  margin-bottom: 12px;
}

/* ============ Footer ============ */
.l-footer {
  background-color: var(--honsumi-surface);
  border-top: 1px solid var(--honsumi-line);
}
.c-copyright {
  color: #71808e;
  font-size: .8rem;
}

/* ============ Search form ============ */
.c-searchForm__s {
  border-radius: 999px;
  border: 1px solid var(--honsumi-line);
}

/* ============ Front-page hero band (poster + profile, mockup style) ============ */
.honsumi-hero {
  background: var(--honsumi-blue);
  color: #fff;
  overflow: hidden;
}
.honsumi-hero__inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 400px) 1fr;
  min-height: 440px;
}
.honsumi-hero__posterwrap {
  line-height: 0;
}
.honsumi-hero__poster {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 440px;
  object-fit: cover;
  object-position: center 18%;
}
.honsumi-hero__profile {
  padding: 40px 44px 34px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: radial-gradient(720px 300px at 85% -60px, rgba(255,255,255,.16), transparent 60%), var(--honsumi-blue);
  color: #fff;
}
.honsumi-hero__brand {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .28em;
  opacity: .85;
  margin: 0 0 14px;
}
.honsumi-hero__name {
  font-size: clamp(34px, 4.2vw, 50px);
  font-weight: 900;
  line-height: 1.15;
  margin: 0;
  display: flex;
  flex-direction: column;
}
.honsumi-hero__roman {
  order: -1;
  font-size: .95rem;
  font-weight: 800;
  letter-spacing: .34em;
  margin: 0 0 10px;
  opacity: .9;
}
.honsumi-hero__handle {
  margin: 10px 0 0;
  font-size: .95rem;
  opacity: .92;
}
.honsumi-hero__handle a {
  color: #fff;
}
.honsumi-hero__tagline {
  margin: 22px 0 0;
  font-size: clamp(17px, 2vw, 21px);
  font-weight: 700;
  line-height: 1.7;
}
.honsumi-hero__bio {
  margin: 10px 0 0;
  font-size: .95rem;
  line-height: 1.9;
  opacity: .94;
  max-width: 34em;
}
.honsumi-hero__tags,
.honsumi-hero__links {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}
.honsumi-hero__tags {
  gap: 8px;
  margin-top: 20px;
}
.honsumi-hero__tags li {
  border: 1.5px solid rgba(255,255,255,.75);
  border-radius: 999px;
  padding: 2px 13px;
  font-size: .82rem;
  font-weight: 700;
}
.honsumi-hero__links {
  gap: 10px;
  margin-top: 26px;
}
.honsumi-hero__links a {
  display: inline-block;
  color: #fff;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 10px;
  padding: 7px 14px;
  font-size: .85rem;
  font-weight: 700;
  text-decoration: none;
}
.honsumi-hero__links a:hover {
  background: rgba(255,255,255,.26);
}
@media (max-width: 680px) {
  .honsumi-hero__inner {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .honsumi-hero__poster {
    min-height: 0;
    height: auto;
    aspect-ratio: 1086/1000;
    object-position: center 12%;
  }
  .honsumi-hero__profile {
    padding: 30px 22px;
  }
}

/* ============ Share buttons ============ */
.honsumi-share {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  padding: 0 22px 16px;
}
.honsumi-share--single {
  justify-content: flex-start;
  padding: 24px 0 0;
}
.honsumi-share__btn {
  display: inline-block;
  border: 1px solid var(--honsumi-line);
  background-color: var(--honsumi-surface);
  color: #3d4750;
  border-radius: 999px;
  padding: .3em 1em;
  font-size: .8rem;
  font-weight: 700;
  text-decoration: none;
}
.honsumi-share__btn:hover {
  border-color: var(--honsumi-blue);
  color: var(--honsumi-blue);
}
.honsumi-share:not(.honsumi-share--single) .honsumi-share__comments {
  margin-right: auto;
}

/* ============ Card comments (追記全文) ============ */
.honsumi-card-comments {
  margin: 0 22px 18px;
  border-top: 1px dashed var(--honsumi-line);
  padding-top: 12px;
  display: grid;
  gap: 12px;
}
.honsumi-card-comment__meta {
  font-size: .78rem;
  font-weight: 700;
  color: var(--honsumi-blue);
  margin-bottom: 4px;
}
.honsumi-card-comment__date {
  margin-left: .6em;
  font-weight: 400;
  color: #6e7b87;
}
.honsumi-card-comment__body {
  font-size: .95rem;
  line-height: 1.8;
  color: #2b333a;
}
.honsumi-card-comment__body p {
  margin: 0 0 .6em;
}
.honsumi-card-comment__body p:last-child {
  margin-bottom: 0;
}

/* ============ Compose form (admin only) ============ */
.honsumi-posted {
  max-width: 720px;
  margin: 0 auto 12px;
  background-color: var(--honsumi-gold-bg);
  color: var(--honsumi-gold);
  border-radius: 12px;
  padding: 10px 16px;
  font-weight: 700;
}
.honsumi-compose {
  max-width: 720px;
  margin: 0 auto 20px;
  background-color: var(--honsumi-surface);
  border: 1px solid var(--honsumi-line);
  border-radius: var(--honsumi-radius);
  box-shadow: var(--honsumi-shadow);
  padding: 18px 22px 20px;
}
.honsumi-compose__head {
  font-weight: 800;
  margin: 0 0 12px;
}
.honsumi-compose__head span {
  color: #71808e;
  font-size: .78rem;
  font-weight: 600;
}
.honsumi-compose__label {
  display: block;
  font-size: .82rem;
  font-weight: 700;
  color: #4a5560;
  margin-bottom: 12px;
}
.honsumi-compose__label select,
.honsumi-compose__label input[type="text"],
.honsumi-compose__label textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  border: 1px solid var(--honsumi-line);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: .95rem;
  font-weight: 400;
  color: var(--honsumi-ink);
  background-color: #fbfcfe;
}
.honsumi-compose__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.honsumi-compose__photo {
  font-size: .82rem;
  font-weight: 700;
  color: var(--honsumi-blue);
  cursor: pointer;
}
.honsumi-compose__photo input {
  display: block;
  margin-top: 4px;
  font-weight: 400;
}
.honsumi-compose__submit {
  background-color: var(--honsumi-blue);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: .6em 1.8em;
  font-weight: 800;
  cursor: pointer;
}
.honsumi-compose__submit:hover {
  background-color: var(--honsumi-blue-deep);
}

/* ============ Pickup / archive resurfacing ============ */
.honsumi-pickup,
.honsumi-fromarchive {
  max-width: 720px;
  margin: 0 auto 20px;
}
.honsumi-pickup__head,
.honsumi-fromarchive__head {
  font-size: .95rem;
  font-weight: 800;
  color: var(--honsumi-blue-deep);
  margin: 0 0 10px;
}
.honsumi-pickup__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 640px) {
  .honsumi-pickup__list {
    grid-template-columns: 1fr;
  }
}
.honsumi-mini {
  display: block;
  background-color: var(--honsumi-surface);
  border: 1px solid var(--honsumi-line);
  border-radius: 14px;
  box-shadow: var(--honsumi-shadow);
  padding: 12px;
  text-decoration: none;
}
.honsumi-mini__thumb {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 8px;
}
.honsumi-mini__title {
  display: block;
  color: var(--honsumi-ink);
  font-weight: 700;
  font-size: .9rem;
  line-height: 1.5;
}
.honsumi-mini__date {
  display: block;
  color: #71808e;
  font-size: .75rem;
  margin-top: 4px;
}

/* ============ Bookshelf page ============ */
.honsumi-bookshelf__author {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--honsumi-blue-deep);
  border-bottom: 2px solid var(--honsumi-chip);
  padding-bottom: 4px;
  margin: 28px 0 10px;
}
.honsumi-bookshelf__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.honsumi-bookshelf__list li {
  padding: 6px 0;
  border-bottom: 1px dotted var(--honsumi-line);
}
.honsumi-bookshelf__date {
  color: #71808e;
  font-size: .78rem;
  margin-left: .6em;
}
.honsumi-bookshelf__archives {
  columns: 3;
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (max-width: 640px) {
  .honsumi-bookshelf__archives {
    columns: 2;
  }
}

/* v0.4.1→v0.6.5: 写真のない記事のサムネイル枠だけ隠す（写真つきは小さく表示） */
body.home .p-postList__thumb[data-has-thumb="0"],
body.archive .p-postList__thumb[data-has-thumb="0"],
body.search .p-postList__thumb[data-has-thumb="0"],
body.home .honsumi-mini__thumb,
.p-entry__related .p-postList__thumb {
  display: none !important;
}

/* v0.6.5→v0.6.6: 一覧カードに小さなサムネイル（写真がある記事のみ、92px四方）
   ※Arkheカード型の width:100% や比率paddingを確実に上書きするため !important を使う */
body.home .p-postList__link,
body.archive .p-postList__link,
body.search .p-postList__link {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
body.home .p-postList__body,
body.archive .p-postList__body,
body.search .p-postList__body {
  flex: 1 1 auto;
  min-width: 0;
}
body.home .p-postList__thumb,
body.archive .p-postList__thumb,
body.search .p-postList__thumb {
  flex: none;
  width: 92px !important;
  margin: 18px 0 4px 18px;
}
body.home .p-postList__thumb .c-postThumb__figure,
body.archive .p-postList__thumb .c-postThumb__figure,
body.search .p-postList__thumb .c-postThumb__figure {
  margin: 0;
  padding-top: 0 !important;
}
body.home .p-postList__thumb .c-postThumb__img,
body.archive .p-postList__thumb .c-postThumb__img,
body.search .p-postList__thumb .c-postThumb__img {
  display: block;
  position: static !important;
  width: 92px !important;
  height: 92px !important;
  object-fit: cover;
  border-radius: 12px;
}
@media (max-width: 640px) {
  body.home .p-postList__thumb,
  body.archive .p-postList__thumb,
  body.search .p-postList__thumb {
    width: 72px !important;
    margin-left: 14px;
  }
  body.home .p-postList__thumb .c-postThumb__img,
  body.archive .p-postList__thumb .c-postThumb__img,
  body.search .p-postList__thumb .c-postThumb__img {
    width: 72px !important;
    height: 72px !important;
  }
}

/* v0.4.2: 右サイドバーがある場合の2カラム調整 */
.l-content__body:has(> .l-sidebar) {
  display: flex;
  align-items: flex-start;
  gap: 36px;
}
.l-content__body:has(> .l-sidebar) .l-main {
  flex: 1 1 auto;
  min-width: 0;
}
.l-content__body:has(> .l-sidebar) .l-sidebar {
  flex: 0 0 300px;
  width: 300px;
}
@media (max-width: 900px) {
  .l-content__body:has(> .l-sidebar) {
    flex-direction: column;
  }
  .l-content__body:has(> .l-sidebar) .l-sidebar {
    width: 100%;
    flex: none;
  }
}

/* サイドバー用・本の棚（著者リストのコンパクト版） */
.honsumi-bookshelf--sidebar .honsumi-bookshelf__authors {
  list-style: none;
  margin: 0;
  padding: 0;
}
.honsumi-bookshelf--sidebar .honsumi-bookshelf__authors li {
  padding: 5px 0;
  border-bottom: 1px dotted var(--honsumi-line);
  font-size: .9rem;
}
.honsumi-bookshelf__count {
  color: #71808e;
  font-size: .78rem;
}

/* v0.4.3: 投稿カードに著者アイコン（Threads風） */
.honsumi-cardhead {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.honsumi-cardhead__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--honsumi-line);
  flex: none;
}
.honsumi-cardhead__name {
  font-weight: 700;
  font-size: .98rem;
}
.honsumi-cardhead__handle {
  color: #5f7080;
  font-size: .85rem;
  margin-left: .45em;
}

/* v0.5.3: 記事ページの写真を少し小さく（アイキャッチと本文画像） */
.single .p-entry__thumb {
  max-width: 440px;
  margin-left: 0;
  margin-right: auto;
}
.single .p-entry__content img {
  max-width: min(100%, 480px);
  height: auto;
}
