:root {
  --ink: #45353a;
  --rose: #a82e53;
  --pink: #ee7e94;
  --mint: #d9f1e8;
  --paper: #fffdfa;
  --line: #f1d8df;
  --texture: repeating-linear-gradient(135deg, #f5a4b5 0 3px, #ffe3eb 3px 6px);
  color: var(--ink);
  font-family: "Hiragino Maru Gothic ProN", "Yu Gothic", Meiryo, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.8;
}
* { box-sizing: border-box; }
body { margin: 0; background: #f8f5ef; }
body::before { content: ""; display: block; height: 7px; background: repeating-linear-gradient(135deg, #f4acbe 0 34px, #bddb9d 34px 68px, #9dddcf 68px 102px, #fbdf8d 102px 136px); }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--rose); text-underline-offset: .2em; }
a:hover { color: #78213c; }
a:focus-visible, input:focus-visible { outline: 3px solid #217a72; outline-offset: 3px; }
[hidden] { display: none !important; }
.wrap { width: min(1050px, calc(100% - 2.25rem)); margin-inline: auto; }
.skip { position: fixed; top: .5rem; left: .5rem; z-index: 2; padding: .5rem 1rem; background: white; transform: translateY(-160%); }
.skip:focus { transform: none; }
.header { background: #fffcf7; }
.masthead { display: flex; flex-wrap: wrap; gap: .3rem 1.3rem; align-items: baseline; padding-block: 1.25rem 1.1rem; }
.brand { color: #b1385b; font-weight: 900; letter-spacing: .045em; font-size: clamp(1.65rem, 4.4vw, 2.65rem); line-height: 1.2; text-decoration: none; }
.brand span { color: #e25981; display: inline-block; transform: rotate(-11deg); }
.masthead p { margin: 0; color: #71575f; font-size: .9rem; font-weight: 700; }
.nav { background: var(--pink); border-block: 3px solid transparent; border-image: var(--texture) 4; }
.nav-inner { display: flex; justify-content: center; flex-wrap: wrap; }
.nav a { flex: 1 1 auto; padding: .72rem .6rem; text-align: center; text-decoration: none; color: #431825; font-weight: 750; font-size: .91rem; }
.nav a:hover, .nav a[aria-current] { background: #ffe1eb; color: #75223e; }
.hero { width: min(1050px, 100%); background: #1cb8e6; }
.hero img { width: 100%; }
.layout { display: grid; grid-template-columns: minmax(0, 2.7fr) minmax(15rem, 1fr); gap: clamp(1rem, 3vw, 2rem); align-items: start; padding-block: 2rem 3rem; }
main { min-width: 0; }
.welcome-strip { display: grid; grid-template-columns: 5.75rem 1fr; align-items: center; gap: 1rem; background: #fff3f7; padding: .9rem 1.15rem; border: 1px solid #f1cada; border-radius: 13px; margin-bottom: 1.15rem; }
.welcome-strip img { mix-blend-mode: multiply; }
.welcome-strip h1 { margin: 0; color: #982a4c; font-size: clamp(1.12rem, 2.6vw, 1.55rem); line-height: 1.5; }
.welcome-strip p { margin: .3rem 0 0; font-size: .91rem; }
.page-intro, .paper, .card { background: var(--paper); border: 1px solid #ede3de; padding: clamp(1rem, 3vw, 1.9rem); margin: 0 0 1.15rem; overflow-wrap: anywhere; }
.page-intro h1, .paper h1, .card h2 { margin: 0 0 .75rem; line-height: 1.48; text-wrap: pretty; }
.paper h1, .card h2 { padding-bottom: .7rem; background: var(--texture) left bottom / 100% 4px no-repeat; }
.page-intro h1, .paper h1 { font-size: clamp(1.38rem, 3.1vw, 2rem); }
.card h2 { font-size: clamp(1.12rem, 2.45vw, 1.48rem); }
.card h2 a { text-decoration: none; color: inherit; }
.card h2 a:hover { color: var(--rose); text-decoration: underline; }
.page-intro p, .card-body p { margin: 0; }
.meta { display: flex; align-items: center; flex-wrap: wrap; gap: .45rem .65rem; margin-block: .65rem 1rem; font-size: .85rem; }
.meta time { color: #654f55; font-weight: 700; }
.tag, .partial { display: inline-block; padding: .13rem .65rem; border-radius: 99px; background: #f6e8ed; text-decoration: none; font-size: .8rem; font-weight: 700; }
.tag.akiruno_news { color: #89461c; background: #ffecd9; }
.tag.akiruno_kanko { color: #17665c; background: var(--mint); }
.partial { color: #66515a; background: #f2ebed; }
.card-body { display: flex; align-items: flex-start; gap: 1rem; }
.thumb { flex: 0 0 31%; overflow: hidden; background: #fff4f6; border: 1px solid #eee0e2; }
.thumb img { width: 100%; aspect-ratio: 4/3; object-fit: contain; }
.read { display: inline-block; padding-block: .35rem; font-weight: 750; margin-top: .3rem; }
.read span { font-size: 1.2em; }
.widget { background: var(--paper); margin-bottom: 1rem; border: 1px solid #e6e7de; }
.widget h2 { position: relative; margin: 0; background: var(--mint); color: #28534a; padding: .5rem .85rem .67rem; font-size: .97rem; }
.widget h2::before { content: "♥"; color: #437e71; margin-right: .35em; }
.widget h2::after { content: ""; position: absolute; inset: auto 0 0; height: 4px; background: repeating-linear-gradient(135deg,#84cfc0 0 3px,#c7eee5 3px 6px); }
.widget ul { list-style: none; padding: .45rem .85rem; margin: 0; }
.widget li + li { border-top: 1px dashed #eee3df; }
.widget li a { display: block; padding: .42rem 0; font-size: .88rem; }
.welcome { text-align: center; padding-bottom: .8rem; }
.welcome h2 { text-align: left; }
.welcome img { width: min(60%, 145px); margin: .85rem auto 0; mix-blend-mode: multiply; }
.welcome p { margin: .5rem .6rem .25rem; font-size: .9rem; }
.welcome > a { display: block; font-size: .86rem; }
.welcome > a + a { margin-top: .18rem; }
.search { display: flex; flex-wrap: wrap; align-items: end; gap: .2rem .8rem; margin-bottom: 1rem; }
.search label { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem .65rem; font-size: .93rem; font-weight: 700; }
.search input { width: min(17rem, 100%); border: 1px solid #d9c1ca; background: #fff; border-radius: 7px; min-height: 40px; color: var(--ink); font: inherit; padding: .3rem .65rem; }
.no-results, .archive-note { background: #fbf4dc; border-left: 4px solid #eac878; padding: .55rem .85rem; }
.pagination { margin: 1.25rem 0; }
.pagination a { display: inline-block; padding: .53rem .9rem; background: #ffe4ed; border: 1px solid #efc7d6; border-radius: 7px; font-weight: 750; }
.crumb { font-size: .85rem; color: #71575f; margin: 0 0 .65rem; overflow-wrap: anywhere; }
.prose { line-height: 1.95; }
.prose :is(h2,h3,h4) { text-wrap: pretty; line-height: 1.45; color: #8b2c4b; }
.prose h2 { padding: .4rem .65rem; background: #fce7ee; border-left: 4px solid var(--pink); margin-top: 1.6rem; font-size: 1.23rem; }
.prose img { max-height: 650px; object-fit: contain; }
.prose img.aligncenter { margin-inline: auto; }
.prose table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.prose td, .prose th { border: 1px solid var(--line); padding: .45rem; }
.prose blockquote { border-left: 3px solid var(--pink); padding-left: .85rem; margin-inline: .25rem; }
.chat-l, .chat-r { display: grid; grid-template-columns: clamp(3.4rem, 11vw, 5rem) minmax(0, 1fr); gap: .85rem; align-items: start; margin: 1rem 0 1.35rem; }
.talker { display: grid; justify-items: center; font-size: .79rem; text-align: center; line-height: 1.35; }
.talker img { width: 100%; aspect-ratio: 1; object-fit: contain; border: 1px solid var(--line); border-radius: 50%; background: white; padding: .15rem; margin-bottom: .25rem; }
.bubble { position: relative; background: #fff0f6; border: 1px solid #ecc5d2; border-radius: 13px; padding: .6rem .85rem; }
.bubble::before { content: ""; position: absolute; top: 1rem; left: -.4rem; width: .65rem; height: .65rem; background: inherit; border-left: 1px solid #ecc5d2; border-bottom: 1px solid #ecc5d2; transform: rotate(45deg); }
.bubble p { margin: .1rem 0; }
.bubble p + p { margin-top: .55rem; }
.chat-r { grid-template-columns: minmax(0, 1fr) clamp(3.4rem, 11vw, 5rem); }
.chat-r .talker { grid-column: 2; grid-row: 1; }
.chat-r .bubble, .chat-r .bubble-wrap { grid-column: 1; grid-row: 1; }
.chat-r .bubble { background: #eaf7ef; border-color: #cddfd3; }
.chat-r .bubble::before { left: auto; right: -.4rem; transform: rotate(225deg); border-color: #cddfd3; }
.photo-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .9rem; }
figure { margin: 0; }
.photo-grid figure { background: #fff9f7; border: 1px solid var(--line); padding: .45rem; }
.photo-grid img { width: 100%; aspect-ratio: 4/3; object-fit: contain; }
figcaption { padding-top: .28rem; font-size: .84rem; }
.gallery-group + .gallery-group { margin-top: 1.8rem; }
.source { border-top: 1px dashed #e1ccd3; padding-top: .7rem; margin-bottom: 0; font-size: .87rem; }
.sitemap-nav { display: flex; flex-wrap: wrap; gap: .5rem 1rem; }
.footer { background: #ef9caf; border-top: 4px solid transparent; border-image: var(--texture) 4; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .6rem 1rem; padding: 1.1rem 0; }
.footer-inner > div { display: flex; flex-wrap: wrap; gap: .3rem 1rem; font-size: .88rem; }
.footer a { color: #552335; }
.footer-brand { text-decoration: none; font-weight: 800; font-size: 1.09rem; }
@media (max-width: 780px) {
  .layout { grid-template-columns: minmax(0, 1fr); padding-top: 1.25rem; }
  .sidebar { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .7rem; align-items: start; }
  .widget { margin-bottom: 0; }
  .nav-inner { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nav a { display: grid; min-height: 44px; place-content: center; padding: .4rem .18rem; font-size: .83rem; border-bottom: 1px solid #ffc6d4; }
}
@media (max-width: 450px) {
  .wrap { width: calc(100% - 1.25rem); }
  .hero, .nav-inner { width: 100%; }
  .masthead { padding-block: .8rem; }
  .masthead p { font-size: .79rem; }
  .welcome-strip { grid-template-columns: 3.75rem 1fr; gap: .6rem; padding: .7rem .55rem; }
  .card-body { gap: .65rem; }
  .card-body p { font-size: .9rem; }
  .card-body .partial { display: table; margin-top: .25rem; }
  .sidebar { grid-template-columns: minmax(0,1fr); }
}
