:root {
  --paper: #fffdf8;
  --ink: #272522;
  --muted: #7a746d;
  --line: #dfd8ce;
  --accent: #f0a9a2;
  --accent-soft: #f9e6df;
  --yellow: #f4d889;
  --blue: #b9dadd;
  --max: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: 'Noto Sans JP', sans-serif; line-height: 1.8; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; }
main { overflow: hidden; }
.site-header { position: sticky; top: 0; z-index: 100; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(39,37,34,.08); }
.site-header__inner { max-width: 1280px; height: 78px; margin: auto; padding: 0 28px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.site-brand { display: inline-flex; align-items: center; gap: 10px; font-family: 'Kiwi Maru', serif; font-weight: 500; }
.site-brand__mark { width: 38px; height: 38px; border: 1.5px solid var(--ink); border-radius: 50%; display: grid; place-items: center; transform: rotate(-7deg); }
.site-brand__name { font-size: 18px; letter-spacing: .04em; }
.custom-logo { max-height: 48px; width: auto; }
.site-nav__list, .footer-nav { list-style: none; padding: 0; margin: 0; display: flex; gap: 30px; align-items: center; }
.site-nav a { position: relative; font-size: 14px; font-weight: 500; }
.site-nav a::after { content: ''; position: absolute; left: 0; right: 100%; bottom: -7px; height: 2px; background: var(--accent); transition: .25s; transform: rotate(-1deg); }
.site-nav a:hover::after { right: 0; }
.nav-toggle { display: none; width: 42px; height: 42px; background: transparent; border: 0; padding: 8px; }
.nav-toggle span { display: block; height: 2px; margin: 6px 0; background: var(--ink); transition: .25s; }
/* Hero: artwork-first, full background */
.hero { position: relative; background: #181818; }
.hero-slider { position: relative; width: 100%; }
.hero-slider__viewport { position: relative; height: clamp(560px, calc(100vh - 78px), 900px); min-height: 560px; overflow: hidden; }
.hero-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .65s ease, visibility .65s ease; color: #fff; }
.hero-slide.is-active { opacity: 1; visibility: visible; pointer-events: auto; }
.hero-slide__image { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center; transform: scale(1.01); }
.hero-slide__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,8,8,.72) 0%, rgba(8,8,8,.50) 35%, rgba(8,8,8,.22) 66%, rgba(8,8,8,.38) 100%), linear-gradient(0deg, rgba(5,5,5,.38), transparent 45%); }
.hero-slide__content { position: relative; z-index: 2; width: min(100% - 56px, 1280px); height: 100%; margin: auto; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 72px 0 86px; text-shadow: 0 2px 22px rgba(0,0,0,.32); }
.hero .eyebrow { color: rgba(255,255,255,.76); }
.hero h1 { margin: 0; max-width: 760px; font-family: 'Kiwi Maru', serif; font-size: clamp(46px, 6vw, 88px); line-height: 1.3; font-weight: 500; letter-spacing: .02em; }
.hero h1 span { white-space: nowrap; }
.hero__lead { max-width: 560px; margin: 26px 0 0; color: rgba(255,255,255,.88); font-size: 16px; }
.hero-slide__caption { margin-top: 34px; display: flex; align-items: baseline; gap: 14px; color: #fff; }
.hero-slide__caption strong { font-family: 'Kiwi Maru', serif; font-size: clamp(20px, 2vw, 28px); font-weight: 500; }
.hero-slide__caption span { color: rgba(255,255,255,.72); font-size: 13px; }
.hero__scroll { margin-top: 30px; padding-bottom: 4px; border-bottom: 1px solid rgba(255,255,255,.7); font-size: 13px; font-weight: 700; letter-spacing: .04em; }
.hero-slider__controls { position: absolute; z-index: 5; left: 50%; bottom: 26px; transform: translateX(-50%); display: flex; justify-content: center; align-items: center; gap: 18px; color: #fff; }
.hero-slider__controls > button { border: 0; background: transparent; color: #fff; cursor: pointer; font-size: 20px; text-shadow: 0 1px 8px rgba(0,0,0,.5); }
.hero-slider__dots { display: flex; gap: 8px; }
.hero-dot { width: 8px; height: 8px; padding: 0; border: 1px solid rgba(255,255,255,.9); border-radius: 50%; background: transparent; cursor: pointer; }
.hero-dot.is-active { background: #fff; }
.hero-placeholder { min-height: 560px; display: grid; place-items: center; align-content: center; gap: 20px; text-align: center; color: var(--muted); background: var(--paper); }
.hero-placeholder span { font-size: 54px; }
.section { padding: clamp(85px, 10vw, 145px) 28px; }
.section-heading { max-width: 700px; margin: 0 auto 55px; text-align: center; }
.section-heading--left { max-width: var(--max); text-align: left; }
.section-heading h1, .section-heading h2, .blogs-cta h2, .bbs-banner h2, .entry-header h1 { margin: 0; font-family: 'Kiwi Maru', serif; font-size: clamp(34px, 4vw, 54px); font-weight: 500; letter-spacing: .03em; }
.section-heading > p:last-child { color: var(--muted); }
.scribble { display: block; width: 94px; height: 10px; margin: 14px auto 18px; border-top: 3px solid var(--accent); border-radius: 50%; transform: rotate(-2deg); }
/* Gallery: never crop artwork; responsive 4 / 3 / 2 columns */
.gallery-section { background: #fff; }
.oekaki-gallery-shell { width: min(100%, var(--max)); margin: auto; overflow: visible; }
/* POTI-board作品はJSによる統合前から完成後と同じ大きさで表示し、読み込み時の拡大→縮小を防ぐ */
.potiboard-gallery-source { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 26px); align-items: start; }
.potiboard-gallery-source > a { min-width: 0; width: 100% !important; max-width: 100% !important; margin: 0 !important; }
.potiboard-gallery-source > a.oekaki-art-card { position: relative; display: block !important; aspect-ratio: 1 / 1; height: auto !important; overflow: hidden; background: #f7f7f7; border-radius: 10px; }
.potiboard-gallery-source > a.oekaki-art-card > img { display: block !important; width: 100% !important; height: 100% !important; max-width: none !important; max-height: none !important; margin: 0 !important; object-fit: cover !important; object-position: center !important; }
.oekaki-gallery-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 26px); align-items: start; }
.oekaki-gallery-grid > .oekaki-art-card { min-width: 0; width: 100% !important; max-width: 100% !important; margin: 0 !important; }
.oekaki-gallery-shell a.oekaki-art-card { position: relative; display: block !important; width: 100% !important; max-width: 100% !important; aspect-ratio: 1 / 1; height: auto !important; overflow: hidden; background: #f7f7f7; border-radius: 10px; }
.oekaki-gallery-shell .oekaki-art-card img { display: block !important; width: 100% !important; height: 100% !important; max-width: none !important; max-height: none !important; margin: 0 !important; object-fit: cover !important; object-position: center !important; aspect-ratio: auto !important; transition: transform .28s ease, filter .28s ease; }
.oekaki-art-card__title { position: absolute; left: 10px; right: 10px; bottom: 10px; padding: 10px 12px; background: rgba(25,25,25,.72); color: #fff; border-radius: 7px; backdrop-filter: blur(5px); font-family: 'Kiwi Maru', serif; font-size: 13px; opacity: 0; transform: translateY(8px); transition: .24s ease; }
.oekaki-art-card:hover img { transform: scale(1.015); }
.oekaki-art-card:hover .oekaki-art-card__title, .oekaki-art-card:focus .oekaki-art-card__title { opacity: 1; transform: translateY(0); }
.shortcode-notice { border: 1.5px dashed var(--line); border-radius: 14px; padding: 28px; text-align: center; background: var(--paper); }
.shortcode-notice code { background: #eee9e1; padding: 3px 7px; border-radius: 5px; }
.blogs-cta { padding-top: 0; background: #fff; }
.blogs-cta__card { max-width: var(--max); margin: auto; min-height: 340px; padding: clamp(38px, 6vw, 74px); display: flex; justify-content: space-between; align-items: end; gap: 50px; background: var(--accent-soft); border-radius: 3px 70px 3px 70px; position: relative; }
.blogs-cta__card::after { content: '✎'; position: absolute; right: 8%; top: 9%; font-size: 86px; opacity: .08; transform: rotate(-14deg); }
.blogs-cta h2 { margin-bottom: 18px; }
.blogs-cta p { max-width: 540px; margin-bottom: 0; }
.round-button { flex: 0 0 auto; min-width: 220px; min-height: 58px; padding: 16px 22px; border: 1.5px solid var(--ink); border-radius: 999px; display: inline-flex; justify-content: space-between; align-items: center; gap: 20px; font-size: 14px; font-weight: 700; transition: .25s; }
.round-button:hover { background: var(--ink); color: #fff; transform: translateY(-2px); }
.latest-section { background: var(--paper); }
.latest-posts-shell { max-width: var(--max); margin: auto; }
.latest-posts-shell ul { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.latest-posts-shell li { border-bottom: 1px solid var(--line); padding: 19px 4px; }
.latest-posts-shell a { transition: opacity .2s; }
.latest-posts-shell a:hover { opacity: .58; }
.bbs-banner { padding-top: 0; background: var(--paper); }
.bbs-banner__inner { max-width: var(--max); margin: auto; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 34px; padding: 52px; border: 1px solid var(--line); background: #fff; }
.bbs-banner__icon { width: 94px; height: 94px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); font-size: 40px; transform: rotate(-7deg); }
.bbs-banner h2 { font-size: clamp(30px, 3vw, 44px); }
.round-button--dark { background: var(--ink); color: #fff; }
.round-button--dark:hover { background: transparent; color: var(--ink); }
.site-footer { background: #2c2a28; color: #f6f2ec; padding: 64px 28px 24px; }
.site-footer__inner { max-width: var(--max); margin: auto; display: flex; justify-content: space-between; gap: 50px; }
.site-footer__brand { font-family: 'Kiwi Maru', serif; font-size: 20px; }
.site-footer p { color: #bdb6ad; font-size: 13px; }
.footer-nav { flex-wrap: wrap; }
.footer-nav a { font-size: 13px; color: #ddd6ce; }
.copyright { max-width: var(--max); margin: 55px auto 0 !important; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); }
.content-wrap { max-width: var(--max); margin: auto; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 24px; }
.post-card { background: #fff; border: 1px solid var(--line); }
.post-card__image { display: block; aspect-ratio: 4/3; overflow: hidden; background: #f1eee9; }
.post-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.post-card:hover img { transform: scale(1.03); }
.post-card__body { padding: 20px; }
.post-card time, .entry-header time { color: var(--muted); font-size: 12px; }
.post-card h2 { margin: 7px 0 0; font-family: 'Kiwi Maru', serif; font-size: 20px; font-weight: 500; }
.single-content { max-width: 860px; }
.entry-header { margin-bottom: 45px; }
.entry-content { font-size: 16px; }
.entry-content > * + * { margin-top: 1.5em; }
.entry-content img { margin-left: auto; margin-right: auto; }
.single-thumbnail { margin-bottom: 45px; }
@media (max-width: 900px) {
  .site-header__inner { height: 68px; padding: 0 18px; }
  .nav-toggle { display: block; z-index: 3; }
  .site-nav { position: fixed; inset: 68px 0 auto; padding: 30px 24px 40px; background: var(--paper); border-bottom: 1px solid var(--line); opacity: 0; visibility: hidden; transform: translateY(-12px); transition: .25s; }
  .site-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .site-nav__list { flex-direction: column; align-items: flex-start; gap: 20px; }
  .hero { min-height: auto; padding: 0; }
  .hero__inner { grid-template-columns: 1fr; gap: 50px; }
  .hero-slider { min-height: 530px; }
  .hero-slider__viewport { height: 500px; }
  .hero-slide__frame img { height: 390px; }
  .blogs-cta__card { align-items: flex-start; flex-direction: column; }
  .bbs-banner__inner { grid-template-columns: auto 1fr; }
  .bbs-banner__inner .round-button { grid-column: 1 / -1; }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .site-brand__name { font-size: 15px; }
  .hero h1 { font-size: 41px; }
  .hero h1 span { white-space: normal; }
  .hero__lead { font-size: 14px; }
  .hero-slider { min-height: 450px; }
  .hero-slider__viewport { height: 420px; }
  .hero-slide__frame { padding: 10px 10px 32px; }
  .hero-slide__frame img { height: 320px; }
  .hero-slide__caption { padding-top: 14px; }
  .hero-slide__caption strong { font-size: 18px; }
  .hero-slide__caption span { font-size: 11px; }
  .section { padding: 80px 18px; }
  .gallery-section { padding-left: 12px; padding-right: 12px; }
  .blogs-cta { padding-left: 12px; padding-right: 12px; }
  .blogs-cta__card { border-radius: 2px 42px 2px 42px; padding: 38px 24px; }
  .round-button { width: 100%; }
  .bbs-banner { padding-left: 12px; padding-right: 12px; }
  .bbs-banner__inner { grid-template-columns: 1fr; padding: 36px 24px; }
  .bbs-banner__icon { width: 72px; height: 72px; }
  .site-footer__inner { flex-direction: column; }
  .footer-nav { flex-direction: column; align-items: flex-start; gap: 13px; }
  .post-grid { grid-template-columns: 1fr; }
  .oekaki-art-card__title { opacity: 0; transform: translateY(8px); font-size: 12px; padding: 8px 10px; inset: auto 7px 7px; }
}

/* v0.4 responsive overrides */
@media (max-width: 900px) {
  .hero-slider__viewport { height: min(780px, calc(100svh - 68px)); min-height: 540px; }
  .hero-slide__content { width: min(100% - 40px, 760px); padding: 60px 0 80px; }
  .hero h1 { font-size: clamp(42px, 8vw, 68px); }
  .oekaki-gallery-grid, .potiboard-gallery-source { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .hero-slider__viewport { height: 72svh; min-height: 500px; max-height: 700px; }
  .hero-slide__content { width: calc(100% - 36px); padding: 46px 0 72px; justify-content: flex-end; }
  .hero h1 { font-size: clamp(35px, 10.5vw, 48px); }
  .hero h1 span { white-space: normal; }
  .hero__lead { margin-top: 18px; font-size: 13px; line-height: 1.8; }
  .hero-slide__caption { margin-top: 22px; display: block; }
  .hero-slide__caption span { display: block; margin-top: 3px; }
  .hero__scroll { display: none; }
  .oekaki-gallery-grid, .potiboard-gallery-source { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}

/* PCなどhoverできる端末だけ */
@media (hover: hover) and (pointer: fine) {
  .oekaki-art-card:hover img { transform: scale(1.015); }
  .oekaki-art-card:hover .oekaki-art-card__title, .oekaki-art-card:focus .oekaki-art-card__title { opacity: 1; transform: translateY(0); }
}

/* お知らせ */
.archive-section { background: var(--paper); }
.news-list { width: min(100%, 900px); margin: 0 auto; border-top: 1px solid var(--line); }
.news-item { border-bottom: 1px solid var(--line); }
.news-item__link { display: grid; grid-template-columns: 120px 1fr auto; align-items: center; gap: 28px; padding: 28px 6px; transition: opacity .2s ease, padding .25s ease; }
.news-item__link:hover { opacity: .6; padding-left: 12px; }
.news-item__date { color: var(--muted); font-size: 13px; letter-spacing: .05em; }
.news-item__title { margin: 0; font-family: 'Kiwi Maru', serif; font-size: 18px; font-weight: 500; line-height: 1.7; }
.news-item__arrow { font-size: 18px; transition: transform .2s ease; }
.news-item__link:hover .news-item__arrow { transform: translateX(5px); }

/* Pagination */
.pagination { margin-top: 50px; }
.pagination .nav-links { display: flex; justify-content: center; align-items: center; gap: 8px; }
.pagination .page-numbers { min-width: 42px; height: 42px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 50%; font-size: 13px; }
.pagination .page-numbers.current { background: var(--ink); border-color: var(--ink); color: #fff; }

@media (max-width: 600px) {
  .news-item__link { grid-template-columns: 1fr auto; gap: 8px 16px; padding: 22px 2px; }
  .news-item__date { grid-column: 1 / -1; font-size: 11px; }
  .news-item__title { font-size: 16px; }
}