:root {
  --page-bg: #f3f2ef;
  --content-bg: #fff;
  --header-bg: #faf9f6;
  --text: #3f4347;
  --sub-text: var(--ui-text-muted);
  --border: var(--ui-line);
  --accent: #657d8a;
}
html {
  overflow-x: hidden;
}
body {
  background: var(--page-bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Yu Gothic", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.9;
}
body.locked {
  overflow: hidden;
}
a {
  color: #526d7c;
  text-underline-offset: 3px;
}
img {
  display: block;
  max-width: 100%;
}
button {
  font: inherit;
}
:focus-visible {
  outline: 3px solid #8ca0aa;
  outline-offset: 3px;
}
.wrap {
  width: min(calc(100% - 36px), 1060px);
  margin: auto;
}
.skip {
  position: fixed;
  left: 12px;
  top: -80px;
  z-index: 50;
  background: #fff;
  padding: 8px;
}
.skip:focus {
  top: 12px;
}
.icon {
  width: 18px;
  height: 18px;
  vertical-align: -4px;
  margin-right: 5px;
  color: var(--accent);
}
.site-head {
  background: var(--header-bg);
  border-top: 4px solid #7d929e;
  border-bottom: 1px solid var(--border);
}
.logo {
  text-decoration: none;
  color: var(--text);
}
.logo b {
  display: block;
  font:
    500 1.8rem/1.4 Georgia,
    "Yu Mincho",
    serif;
  letter-spacing: 0.08em;
}
.logo span {
  display: block;
  color: var(--sub-text);
  font-size: 0.8rem;
}
.layout {
  display: grid;
  grid-template-columns: minmax(0, 740px) 270px;
  gap: 28px;
  align-items: start;
  padding-block: 32px 64px;
}
.content,
.entry {
  min-width: 0;
  background: var(--content-bg);
  border: 1px solid var(--border);
  padding: 30px 34px;
}
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: end;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.section-title h1 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 500;
}
.section-title span {
  color: var(--sub-text);
  font-size: 0.76rem;
}
.post {
  padding: 14px 0 12px;
  border-bottom: 1px solid var(--border);
}
.post:last-of-type {
  border-bottom: 0;
}
.post header {
  margin-bottom: 16px;
}
.post h2 {
  margin: 7px 0 0;
  font:
    500 1.65rem/1.55 Georgia,
    "Yu Mincho",
    serif;
}
.post h2 a {
  color: var(--text);
  text-decoration: none;
}
.meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px 14px;
  margin: 0;
  color: var(--sub-text);
  font-size: 0.76rem;
}
.meta span {
  display: inline-flex;
  align-items: center;
}
.meta .icon {
  width: 15px;
  height: 15px;
}
.meta a {
  padding-left: 14px;
  border-left: 1px solid var(--border);
}
.post-photo,
.photo-open {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  border: 0;
  padding: 0;
  background: #e8e8e5;
}
.post-photo img,
.photo-open > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo-open {
  cursor: zoom-in;
}
.read-more {
  display: inline-block;
  min-height: 0;
  margin: 8px 0 2px;
  padding: 6px 2px;
  color: var(--accent);
  font-size: 0.88rem;
  text-decoration: none;
}
.read-more span {
  padding-left: 7px;
}
.page-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}
.page-nav > a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}
.page-nav > a:last-child {
  justify-self: end;
}
.page-nav div {
  display: flex;
  gap: 6px;
}
.page-nav div a,
.page-nav strong {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  text-decoration: none;
  font-weight: 400;
}
.page-nav strong {
  background: var(--accent);
  color: #fff;
}
.sidebar {
  display: grid;
  gap: 14px;
}
.sidebar section,
.sidebar details {
  background: #fbfbf9;
  border: 1px solid var(--border);
  padding: 18px;
}
.sidebar h2 {
  display: flex;
  align-items: center;
  margin: 0 0 12px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  font-weight: 500;
}
.side-group summary {
  cursor: pointer;
  list-style: none;
}
.side-group summary::-webkit-details-marker {
  display: none;
}
.side-group summary h2 {
  margin: 0 0 12px;
}
.side-group:not([open]) summary h2 {
  margin: 0;
  padding-bottom: 0;
  border-bottom: 0;
}
.side-chevron {
  display: none;
  margin-left: auto;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  transition: transform 0.15s ease;
}
.side-group[open] .side-chevron {
  transform: rotate(180deg);
}
@media (max-width: 800px) {
  .side-chevron {
    display: block;
  }
}
.sidebar h2 .icon {
  width: 16px;
  height: 16px;
}
.profile > img {
  width: 92px;
  height: 92px;
  margin: 2px auto 12px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 0 0 1px var(--border);
}
.profile > div {
  text-align: center;
}
.profile > div b,
.profile > div small {
  display: block;
}
.profile > div small {
  color: var(--sub-text);
}
.profile p {
  font-size: 0.8rem;
  line-height: 1.75;
}
.sidebar ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sidebar li {
  border-bottom: 1px dotted var(--border);
}
.sidebar li:last-child {
  border-bottom: 0;
}
.sidebar li a {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  text-decoration: none;
  font-size: 0.8rem;
}
.sidebar li time {
  display: block;
  color: var(--sub-text);
  font-size: 0.65rem;
}
.recent li a {
  display: block;
}
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--sub-text);
  font-size: 0.74rem;
}
.entry > header {
  margin: 28px 0 30px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.entry h1 {
  margin: 10px 0 0;
  font:
    500 clamp(1.9rem, 4vw, 2.6rem) / 1.5 Georgia,
    "Yu Mincho",
    serif;
}
.entry figure {
  margin: 34px 0 26px;
}
.entry figcaption {
  margin-top: 7px;
  color: var(--sub-text);
  font-size: 0.74rem;
}
.entry figcaption small {
  display: block;
}
.zoom-hint {
  position: absolute;
  right: 10px;
  bottom: 10px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #b8c0c4;
  padding: 6px 10px;
  color: var(--text);
  font-size: 0.72rem;
}
.entry-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin-top: 38px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}
.entry-nav > a:last-child {
  grid-template-columns: 1fr auto;
  text-align: right;
}
.entry-nav small,
.entry-nav b {
  display: block;
  font-size: 0.72rem;
  font-weight: 400;
}
.entry-nav b {
  font-size: 0.8rem;
}
dialog {
  width: min(96vw, 1160px);
  max-height: 94vh;
  padding: 0;
  border: 0;
  background: transparent;
}
dialog::backdrop {
  background: rgba(23, 28, 31, 0.82);
}
.modal-box {
  position: relative;
  background: #f5f5f3;
  padding: 54px 18px 18px;
}
.modal-box h2 {
  position: absolute;
  left: -9999px;
}
.close {
  position: absolute;
  right: 12px;
  top: 10px;
  min-width: 72px;
  min-height: 38px;
  border: 1px solid #8c969b;
  background: #fff;
}
.modal-content {
  display: grid;
  place-items: center;
  max-height: 78vh;
  overflow: auto;
  touch-action: pan-x pan-y pinch-zoom;
}
.modal-photo {
  position: relative;
  width: max-content;
  max-width: 100%;
}
.modal-photo > img {
  width: auto;
  max-width: 100%;
  max-height: 74vh;
  object-fit: contain;
}
@media (max-width: 800px) {
  .wrap {
    width: min(calc(100% - 28px), 1060px);
  }
  .layout {
    grid-template-columns: 1fr;
    padding-block: 16px 24px;
  }
  .sidebar {
    order: 2;
    gap: 8px;
  }
  .sidebar section,
  .sidebar details {
    padding: 12px 14px;
  }
  .side-group summary h2,
  .sidebar h2 {
    margin-bottom: 8px;
    padding-bottom: 5px;
  }
  .content,
  .entry {
    order: 1;
  }
}
@media (max-width: 560px) {
  body {
    font-size: 16px;
  }
  .wrap {
    width: min(calc(100% - 20px), 1060px);
  }
  .logo b {
    font-size: 1.35rem;
  }
  .logo span {
    font-size: 0.7rem;
  }
  .content,
  .entry {
    padding: 20px 16px;
  }
  .post {
    padding: 12px 0 10px;
  }
  .post-photo {
    margin-inline: -16px;
    width: calc(100% + 32px);
    aspect-ratio: 4/3;
  }
  .excerpt {
    line-height: 1.6;
  }
  .read-more {
    display: block;
    padding: 6px 0;
  }
  .page-nav {
    grid-template-columns: 1fr 1fr;
  }
  .page-nav div {
    grid-column: 1/-1;
    grid-row: 1;
    justify-content: center;
  }
  .page-nav > a {
    grid-row: 2;
  }
  .entry > header {
    margin-top: 14px;
  }
  .entry figure {
    margin-inline: -16px;
  }
  .entry figcaption {
    padding-inline: 16px;
  }
  .entry-nav {
    grid-template-columns: 1fr 1fr;
  }
  .modal-box {
    padding-inline: 8px;
  }
}
@media (max-width: 560px) {
  .page-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
  }
  .page-nav > span {
    display: none;
  }
  .page-nav > .page-prev {
    margin-right: auto;
  }
  .page-nav > .page-next {
    margin-left: auto;
  }
  .page-nav > div {
    order: 2;
    width: 100%;
    justify-content: center;
  }
  .page-nav > a {
    order: 1;
  }
}
@media (max-width: 560px) {
  .page-nav {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 4px 8px;
  }
  .page-nav > a {
    white-space: nowrap;
    font-size: 0.74rem;
    gap: 3px;
    grid-row: 1;
  }
  .page-nav > .page-prev {
    grid-column: 1;
    justify-self: start;
    margin: 0;
  }
  .page-nav > .page-next {
    grid-column: 3;
    justify-self: end;
    margin: 0;
  }
  .page-nav > div {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    width: auto;
    order: initial;
  }
  .page-nav div a,
  .page-nav strong {
    width: 30px;
    height: 30px;
  }
  .entry-nav {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 18px;
  }
  .entry-nav > span {
    display: none;
  }
  .entry-nav > .prev-post {
    grid-column: 1;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
  }
  .entry-nav > .next-post {
    grid-column: 2;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    text-align: right;
  }
  .entry-nav .nav-arrow {
    margin-top: 3px;
  }
  .entry-nav b {
    overflow-wrap: normal;
    word-break: normal;
  }
}
.entry .inline-photo {
  width: min(100%, 500px);
  margin: 2.2rem auto;
}
.inline-photo .photo-open {
  aspect-ratio: 4/3;
}
.post .excerpt {
  margin-top: 12px;
}
/* .sidebar section / .sidebar h2 の共通指定を打ち消す。
 * !important ではなく詳細度（クラス2つ）で上書きする。 */
.sidebar .ad-section {
  padding: 12px;
  background: transparent;
  border: 0;
}
.sidebar .ad-section > h2 {
  margin: 0 0 8px;
  padding: 0;
  border: 0;
  color: #8b8a85;
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.14em;
}
.ad-card {
  position: relative;
  overflow: hidden;
  margin: 0 0 12px;
  border: 1px solid var(--border);
  background: #20242a;
  box-shadow: 0 1px 3px rgba(35, 38, 41, 0.08);
}
.ad-card:last-child {
  margin-bottom: 0;
}
.ad-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  opacity: 0.8;
}
.ad-card > div {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 34px 12px 10px;
  background: linear-gradient(transparent, rgba(14, 18, 23, 0.92));
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
}
.ad-card small,
.ad-card b {
  display: block;
}
.ad-card small {
  font-size: 0.62rem;
  letter-spacing: 0.1em;
}
.ad-card b {
  margin-top: 2px;
  font-family: Georgia, "Yu Mincho", serif;
  font-size: 1.04rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.ad-card p {
  margin: 2px 0 0;
  font-size: 0.62rem;
  line-height: 1.5;
}
.entry-nav {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
}
.entry-nav .next-post {
  justify-content: flex-end;
  text-align: right;
}
.entry-nav small {
  margin-bottom: 4px;
  color: var(--sub-text);
  font-size: 0.62rem;
  font-weight: 400;
}
.entry-nav b {
  overflow-wrap: anywhere;
  font-family: Georgia, "Yu Mincho", serif;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.6;
}
.entry-nav .nav-arrow {
  flex: 0 0 auto;
}
.entry-nav .icon {
  margin: 0;
}
@media (max-width: 560px) {
  .entry-nav {
    gap: 8px;
  }
  .entry-nav b {
    font-size: 0.72rem;
  }
  .sidebar .ad-section {
    padding-right: 0;
    padding-left: 0;
  }
}
.ad-card img {
  height: 118px;
  aspect-ratio: auto;
  object-fit: cover;
}
.ad-card > div {
  padding: 22px 10px 7px;
}
.ad-card b {
  font-size: 0.88rem;
  line-height: 1.25;
}
.ad-card p {
  font-size: 0.56rem;
  line-height: 1.35;
}
.ad-card small {
  font-size: 0.55rem;
}
body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic Medium", "Yu Gothic",
    Meiryo, sans-serif;
  font-weight: 400;
  letter-spacing: 0;
}
.logo b,
.post h2,
.entry h1,
.entry-nav b,
.ad-card b {
  font-family: inherit;
}
.site-head {
  padding: 18px 0;
  background: #ece9e2;
  border-top: 0;
}
.header-visual {
  position: relative;
  overflow: hidden;
  height: 210px;
  padding: 0;
  background: #c8c0b3;
}
.header-visual > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.header-visual:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(25, 27, 27, 0.48), rgba(25, 27, 27, 0.04) 62%);
}
.header-visual .logo {
  position: absolute;
  z-index: 1;
  left: 34px;
  top: 50%;
  color: #fff;
  transform: translateY(-50%);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.65);
}
.header-visual .logo b {
  font-size: 1.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}
.header-visual .logo span {
  margin-top: 3px;
  color: #fff;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}
.post h2 {
  font-weight: 500;
  letter-spacing: 0.01em;
}
.entry h1 {
  font-weight: 500;
  letter-spacing: 0.01em;
}
.ad-card {
  line-height: 0;
}
.ad-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 2.2/1;
  object-fit: contain;
  opacity: 1;
}
.ad-card > div {
  display: none;
}
@media (max-width: 560px) {
  .site-head {
    padding: 10px 0;
  }
  .header-visual {
    height: 145px;
  }
  .header-visual .logo {
    left: 18px;
  }
  .header-visual .logo b {
    font-size: 1.35rem;
  }
  .header-visual .logo span {
    font-size: 0.68rem;
  }
}
.site-head {
  padding: 0;
  border-bottom: 0;
}
.header-visual {
  width: 100%;
  height: 220px;
}
.header-visual .logo {
  left: max(24px, calc((100% - 1060px) / 2));
}
.post header {
  margin-bottom: 10px;
}
.post h2 {
  margin: 0 0 5px;
  font-size: 1.32rem;
  line-height: 1.45;
}
.post .meta,
.entry .meta {
  font-size: 0.7rem;
}
.excerpt {
  margin-top: 8px;
  font-size: 0.85rem;
  line-height: 1.6;
}
.entry > header {
  margin: 22px 0 26px;
  padding-bottom: 14px;
}
/* 記事タイトルは一覧・詳細で同じサイズにそろえる。 */
.entry h1 {
  margin: 0 0 8px;
  font-size: 1.32rem;
  line-height: 1.45;
}
.body {
  font-size: 0.85rem;
  line-height: 1.6;
}
.body p {
  margin: 0 0 0.85em;
}
@media (max-width: 560px) {
  .site-head {
    padding: 0;
  }
  .header-visual {
    height: 110px;
  }
  .header-visual .logo {
    left: 18px;
  }
  .post h2,
  .entry h1 {
    font-size: 1.22rem;
  }
  .body {
    font-size: 0.85rem;
    line-height: 1.55;
  }
}
.post header,
.entry > header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px 22px;
}
.post h2,
.entry h1 {
  grid-column: 1;
  margin-bottom: 0;
}
.post .meta,
.entry .meta {
  grid-column: 2;
  grid-row: 1;
  justify-content: flex-end;
  align-self: start;
  white-space: nowrap;
}
.read-more {
  display: block;
  width: max-content;
  margin: 4px 0 0 auto;
  text-align: right;
}
@media (max-width: 700px) {
  .post header,
  .entry > header {
    grid-template-columns: 1fr;
    gap: 5px;
  }
  .post .meta,
  .entry .meta {
    grid-column: 1;
    grid-row: 2;
    justify-content: flex-start;
    white-space: normal;
  }
}
.sidebar h2 {
  display: flex;
  align-items: center;
  gap: 7px;
}
.sidebar h2 .icon {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin: 0;
  color: #657d8a;
}
.icon path,
.icon circle,
.icon rect {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.post.has-photo {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  grid-template-areas: "photo head" "photo excerpt" "photo more";
  column-gap: 24px;
  align-items: start;
}
.post.has-photo header {
  grid-area: head;
  margin-bottom: 8px;
}
.post.has-photo .list-photo {
  grid-area: photo;
  width: 220px;
  margin: 2px 0 0;
}
.post.has-photo .post-photo {
  aspect-ratio: 4/3;
}
.post.has-photo .excerpt {
  grid-area: excerpt;
  margin-top: 0;
}
.post.has-photo .read-more {
  grid-area: more;
  justify-self: end;
  margin-top: 4px;
}
.list-photo {
  width: min(100%, 500px);
  margin: 14px auto 12px;
}
.body p {
  white-space: pre-line;
}
.entry-nav {
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
}
@media (max-width: 700px) {
  .post.has-photo {
    grid-template-columns: 150px minmax(0, 1fr);
    column-gap: 16px;
  }
  .post.has-photo .list-photo {
    width: 150px;
  }
}
@media (max-width: 560px) {
  .post.has-photo {
    display: block;
  }
  .post.has-photo .list-photo {
    width: min(100%, 420px);
    margin: 14px auto 12px;
  }
  .post.has-photo .excerpt {
    margin-top: 12px;
  }
  .post.has-photo .read-more {
    display: block;
    text-align: right;
  }
  .entry-nav {
    grid-template-columns: 1fr 1fr;
  }
  .entry .inline-photo {
    width: min(100%, 420px);
  }
}
.side-stat {
  display: flex;
  justify-content: space-between;
  margin: 0 -6px;
  padding: 6px;
  color: #526d7c;
  font-size: 0.8rem;
  text-decoration: none;
}
.side-stat:link,
.side-stat:visited,
.side-stat:hover,
.side-stat:active {
  color: #526d7c;
  text-decoration: none;
}
.side-stat small {
  color: var(--sub-text);
}

.google-search-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
}
.google-search-box input {
  min-width: 0;
  width: 100%;
  height: 36px;
  padding: 6px 9px;
  border: 1px solid #b9bdc0;
  border-radius: 2px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 0.76rem;
}
.google-search-box button,
.google-search-box .web-search-submit {
  height: 36px;
  padding: 0 12px;
  border: 1px solid #5f7886;
  border-radius: 2px;
  background: #657d8a;
  color: #fff;
  font-size: 0.74rem;
}
.google-search-box .web-search-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  white-space: nowrap;
}
.google-search-box input:focus {
  border-color: #657d8a;
  outline: 1px solid #657d8a;
  outline-offset: 0;
}
.ad-card {
  display: block;
  width: 100%;
  padding: 0;
  cursor: pointer;
}
.ad-card:focus-visible {
  outline-offset: 3px;
}
.web-search-message {
  margin: 8px 1px 0;
  color: #9a4f4f;
  font-size: 0.7rem;
  line-height: 1.55;
}
.web-search-message[hidden] {
  display: none;
}
/* 絞り込みを促す案内は、該当なしの警告色ではなく通常の注記色にする。 */
.web-search-message.is-broad {
  color: #4a5b6a;
}
.post.is-empty {
  padding-bottom: 32px;
}
.empty-excerpt {
  height: 48px;
  display: flex;
  align-items: center;
  margin-top: 5px;
}
.post.is-empty .read-more {
  margin-top: 0;
}
.entry.is-empty > header {
  margin-bottom: 0;
}
.entry.is-empty .meta {
  font-size: 0.76rem;
}
.empty-body {
  min-height: 190px;
  display: grid;
  place-items: center;
}
.entry.is-empty .entry-nav {
  margin-top: 0;
}

/* Keep each previous/next article link as one compact unit. */
@media (max-width: 560px) {
  .empty-body {
    min-height: 150px;
  }
  .empty-excerpt {
    height: 40px;
  }
}

.ad-modal {
  width: min(94vw, 920px);
  max-height: 94vh;
  border-radius: 8px;
  overflow-y: auto;
  scrollbar-gutter: stable;
}
@media (min-width: 701px) {
  .ad-modal {
    overflow-y: hidden;
  }
}
.ad-release {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(196, 139, 206, 0.26);
  border-radius: 8px;
  color: #fff;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
  font-family:
    "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
}
.ad-release:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 42%,
    rgba(255, 255, 255, 0.035) 61%,
    transparent 76%
  );
  pointer-events: none;
}
.ad-release.ad-splash {
  padding: 46px 52px 26px;
  background:
    radial-gradient(circle at 88% 12%, rgba(112, 62, 133, 0.28), transparent 34%),
    linear-gradient(135deg, #061327 0%, #0b1a32 58%, #24172f 100%);
}
.ad-splash .ad-close {
  position: absolute;
  z-index: 3;
  top: 7px;
  right: 12px;
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  border: 0;
  border-radius: 2px;
  background: transparent;
  color: #fff;
  font-size: 1.65rem;
  font-weight: 200;
  line-height: 1;
  cursor: pointer;
}
.ad-splash .ad-close:hover {
  background: transparent;
}
.ad-splash-hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 285px;
  align-items: center;
  gap: 54px;
}
.ad-release-info {
  align-self: center;
}
.ad-splash .ad-release-label {
  margin: 0;
  color: #d274c2;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
}
.ad-splash .ad-release-date {
  margin: 16px 0 26px;
  font-size: 0.76rem;
  letter-spacing: 0.18em;
}
.ad-splash .ad-release-info h2 {
  margin: 0;
  max-width: 100%;
  font-family: Georgia, "Times New Roman", "Yu Mincho", serif;
  font-weight: 400;
  font-size: clamp(2.5rem, 4.7vw, 3.8rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
  white-space: nowrap;
}
.ad-splash .ad-release-artist {
  margin: 14px 0 25px;
  color: #c181bd;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.7rem;
  letter-spacing: 0.01em;
}
.ad-splash .ad-release-copy {
  margin: 0;
  padding: 0;
  color: #f3f0f6;
  font-size: 0.8rem;
  line-height: 2;
  text-align: left;
}
.ad-splash .ad-cover {
  width: 285px;
  height: 285px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 3px;
  object-fit: cover;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.38);
}
.ad-campaign-teaser {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 56% 44%;
  margin-top: 32px;
  overflow: hidden;
  border: 1px solid rgba(211, 184, 220, 0.2);
  background: rgba(255, 255, 255, 0.035);
}
.ad-campaign-teaser > img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 172px;
  align-self: stretch;
  object-fit: cover;
}
.ad-campaign-teaser > div {
  align-self: center;
  padding: 20px 24px;
}
.ad-campaign-teaser > div > p:first-child {
  margin: 0;
  color: #d274c2;
  font-size: 0.57rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}
.ad-campaign-teaser h3 {
  margin: 5px 0 10px;
  color: #fff;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.5;
}
.ad-campaign-teaser > div > p:last-child {
  margin: 0;
  color: #c8c1cd;
  font-size: 0.66rem;
  line-height: 1.7;
}
.ad-feature-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-width: 190px;
  min-height: 52px;
  padding: 11px 20px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 3px;
  color: #fff;
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
}
.ad-feature-link:visited {
  color: #fff;
}
.ad-feature-link span {
  font-size: 1.45rem;
  font-weight: 200;
  line-height: 1;
}
.ad-campaign-teaser .ad-feature-link {
  display: flex;
  width: max-content;
  min-width: 154px;
  min-height: 40px;
  margin: 14px 0 0 auto;
  padding: 8px 15px;
  font-size: 0.7rem;
}
.ad-splash .ad-feature-link {
  min-width: 174px;
  min-height: 46px;
  font-size: 0.75rem;
}
.ad-scroll-hint {
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  box-sizing: border-box;
  height: 44px;
  margin-top: -44px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 8px;
  background: linear-gradient(to bottom, transparent, rgba(6, 19, 39, 0.94) 70%);
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.2s ease;
}
.ad-scroll-hint.is-hidden {
  opacity: 0;
}
.ad-scroll-hint:before {
  content: "";
  width: 20px;
  height: 20px;
  border-right: 2px solid rgba(255, 255, 255, 0.8);
  border-bottom: 2px solid rgba(255, 255, 255, 0.8);
  transform: rotate(45deg);
  animation: ad-scroll-hint-bounce 1.4s ease-in-out infinite;
}
@keyframes ad-scroll-hint-bounce {
  0%,
  100% {
    transform: rotate(45deg) translate(0, 0);
  }
  50% {
    transform: rotate(45deg) translate(3px, 3px);
  }
}
@media (max-width: 700px) {
  .ad-release.ad-splash {
    padding: 30px 18px 16px;
  }
  .ad-splash-hero {
    grid-template-columns: 84px 1fr;
    align-items: start;
    gap: 14px;
  }
  .ad-splash .ad-release-info {
    order: 2;
  }
  .ad-splash .ad-release-date {
    display: none;
  }
  .ad-splash .ad-cover {
    order: 1;
    width: 84px;
    height: 84px;
    margin: 0;
    border-radius: 6px;
  }
  .ad-splash .ad-release-info h2 {
    font-size: clamp(1.3rem, 7vw, 1.6rem);
    white-space: normal;
  }
  .ad-splash .ad-release-artist {
    margin: 6px 0 8px;
    font-size: 1rem;
    line-height: 1.2;
  }
  .ad-splash .ad-release-copy {
    font-size: 0.72rem;
    line-height: 1.45;
  }
  .ad-campaign-teaser {
    grid-template-columns: 1fr;
    margin-top: 14px;
  }
  .ad-campaign-teaser > img {
    height: 72px;
    min-height: 0;
  }
  .ad-campaign-teaser > div {
    padding: 10px 14px;
  }
  .ad-campaign-teaser h3 {
    font-size: 1rem;
  }
}

/* 一覧の抜粋は、空行も1行として数えて最大5行でクリップする。
 * line-clamp は末尾に「…」が必ず付くため使わず、max-height で切る。
 * 段落の区切りは実在する空行（\n\n + pre-line）で行の高さが一定なので、
 * 5行ぶん（1.6em × 5 = 8em）ちょうどで切れ、行の途中で切れることはない。 */
.post:not(.is-empty) .excerpt {
  display: block;
  overflow: hidden;
  max-height: 8em;
  line-height: 1.6;
}
.excerpt p {
  display: block;
  margin: 0;
  white-space: pre-line;
}

.post.has-photo {
  grid-template-areas: "head head" "photo excerpt" "photo more";
}
.post.has-photo header {
  margin-bottom: 16px;
}
.post.has-photo .list-photo {
  align-self: start;
}
@media (max-width: 560px) {
  .post.has-photo {
    display: block;
  }
  .post.has-photo header {
    margin-bottom: 16px;
  }
}

.ad-section .ad-card {
  overflow: visible;
  background: #07182b;
  line-height: 0;
}
.ad-section .ad-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
  opacity: 1;
}

#photo-modal {
  overflow: hidden;
}
#photo-modal .modal-box {
  max-height: 94vh;
  padding: 0;
  overflow: hidden;
  background: transparent;
}
#photo-modal .modal-content {
  max-height: 94vh;
  overflow: hidden;
  touch-action: pinch-zoom;
}
#photo-modal .modal-photo > img {
  max-width: 96vw;
  max-height: 94vh;
}
#photo-modal .close {
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 2px;
  background: rgba(10, 12, 15, 0.62);
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 1.55rem;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(3px);
}
#photo-modal .close span {
  display: block;
  transform: translateY(-1px);
}
#photo-modal .close:hover {
  background: rgba(10, 12, 15, 0.78);
}

:root {
  --fiction-footer-bg: #e7e8e5;
  --fiction-footer-fg: var(--ui-text-muted);
  --fiction-footer-border: 1px solid var(--ui-line);
}

.entry-nav {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
}
.entry-nav > span {
  display: none;
}
.entry-nav > a {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.entry-nav > .prev-post {
  grid-column: 1;
  justify-self: start;
  justify-content: flex-start;
  text-align: left;
}
.entry-nav > .next-post {
  grid-column: 2;
  justify-self: end;
  justify-content: flex-end;
  text-align: right;
}
.entry-nav .nav-arrow {
  display: grid;
  place-items: center;
  align-self: center;
  margin: 0;
}
@media (max-width: 560px) {
  .entry-nav {
    gap: 16px;
  }
  .entry-nav > a {
    gap: 7px;
  }
}
