.nav-list a.is-current {
  padding-left: 8px;
  background: rgba(75, 101, 123, 0.1);
}

.inner-content {
  min-height: 760px;
}

.status-line a {
  color: var(--blue);
  text-underline-offset: 3px;
}

.page-intro {
  min-height: 300px;
  padding: 68px 64px 58px;
  border-bottom: 1px solid var(--line);
}

.page-intro h1 {
  margin: 0;
  font: 500 clamp(38px, 5vw, 64px) / 1.4 "Yu Mincho", serif;
  letter-spacing: 0.04em;
}

.page-intro > p:last-child {
  max-width: 620px;
  margin: 25px 0 0;
  color: #605f5a;
  font: 14px/2.1 "Yu Mincho", serif;
}

.page-sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.page-section {
  min-height: 245px;
  padding: 42px 48px;
  border-bottom: 1px solid var(--line);
}

.page-section:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.page-section.has-accent {
  background: #e9efea;
}

.page-section h2 {
  margin: 0 0 17px;
  font: 500 25px/1.5 "Yu Mincho", serif;
}

.page-section p:not(.card-kicker) {
  margin: 0 0 13px;
  color: #62615c;
  font: 13px/1.9 "Yu Mincho", serif;
}

.page-link {
  display: inline-block;
  margin-top: 10px;
  color: var(--blue);
  font-size: 12px;
  text-underline-offset: 4px;
}

.diary-intro {
  min-height: 255px;
}

.diary-composer {
  margin: 42px 64px 0;
  padding: 28px;
  border: 1px solid #8d998e;
  border-radius: 16px;
  background: #e9efea;
  box-shadow: 5px 6px 0 rgba(75, 101, 88, .12);
}

.diary-composer-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  margin-bottom: 20px;
}

.diary-composer h2 {
  margin: 4px 0 0;
  font: 500 24px/1.5 "Yu Mincho", serif;
}

.diary-composer-heading a {
  color: var(--blue);
  font-size: 12px;
  text-underline-offset: 3px;
}

.diary-composer label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.diary-composer textarea {
  display: block;
  width: 100%;
  padding: 15px 17px;
  border: 1px solid #92978f;
  border-radius: 10px;
  color: var(--ink);
  background: #fffdf7;
  font: 14px/1.9 "Yu Mincho", serif;
  resize: vertical;
}

.diary-composer-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 14px;
}

.diary-composer-actions small {
  color: #696c66;
  font-size: 11px;
}

.diary-composer button {
  padding: 9px 18px;
  border: 1px solid #496251;
  border-radius: 999px;
  color: #fff;
  background: #587360;
  font: 12px "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  cursor: pointer;
}

.diary-composer button:hover,
.diary-composer button:focus-visible {
  background: #405947;
}

.inline-message {
  margin: 0 0 16px;
  padding: 10px 13px;
  border-radius: 8px;
  font-size: 12px;
}

.inline-message.is-error {
  color: #722f2b;
  background: #f1deda;
}

.inline-message.is-success {
  color: #31583b;
  background: #d7e6d8;
}

.diary-timeline {
  max-width: 720px;
  padding: 54px 64px 80px;
}

.diary-entry {
  position: relative;
  margin-left: 10px;
  padding: 0 0 44px 32px;
  border-left: 1px solid var(--line);
}

.diary-entry::before {
  position: absolute;
  top: 4px;
  left: -5px;
  width: 9px;
  height: 9px;
  border: 1px solid #657765;
  border-radius: 50%;
  background: #e9efea;
  content: "";
}

.diary-entry time {
  display: block;
  margin-bottom: 12px;
  color: #77756f;
  font-size: 11px;
  letter-spacing: .08em;
}

.diary-body {
  font: 14px/2 "Yu Mincho", serif;
  overflow-wrap: anywhere;
}

.diary-entry img {
  display: block;
  max-width: 100%;
  margin-top: 18px;
  border-radius: 8px;
}

.empty-state {
  color: #6f6e69;
  font: 14px/2 "Yu Mincho", serif;
}

@media (max-width: 580px) {
  .page-intro { min-height: 0; padding: 46px 24px 40px; }
  .page-intro h1 { font-size: 38px; }
  .page-sections { grid-template-columns: 1fr; }
  .page-section, .page-section:nth-child(odd) { min-height: 0; padding: 34px 25px; border-right: 0; }
  .diary-composer { margin: 28px 20px 0; padding: 22px 18px; }
  .diary-composer-heading, .diary-composer-actions { align-items: flex-start; flex-direction: column; }
  .diary-composer-actions button { align-self: flex-end; }
  .diary-timeline { padding: 38px 24px 58px; }
}

.page-section.has-accent { background: var(--mint); }
.page-section p:not(.card-kicker), .page-intro > p:last-child { color: #505a5a; }
.page-link { color: var(--blue-dark); }
.writing-intro { min-height: 255px; }
.note-feed { padding: 40px 52px 58px; background: var(--paper); }
.note-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: 22px; }
.note-card { display: flex; min-height: 220px; overflow: hidden; border: 1px solid var(--line); background: #fffdf7; box-shadow: 5px 6px 0 rgb(42 159 155 / 13%); }
.note-card img { width: 38%; object-fit: cover; object-position: center; background: var(--mint); }
.note-card-copy { display: flex; flex: 1; flex-direction: column; min-width: 0; padding: 21px 19px; }
.note-card h3 { margin: 6px 0 10px; font: 500 20px/1.55 "Yu Mincho", serif; overflow-wrap: anywhere; }
.note-card h3 a { text-decoration-color: var(--orange); text-decoration-thickness: 1px; text-underline-offset: 5px; }
.note-card time { color: #5f6c6b; font: 10px "Courier New", monospace; }
.note-read-link { margin-top: auto; padding-top: 16px; color: var(--blue-dark); font-size: 12px; text-underline-offset: 4px; }
.note-fallback { margin-top: 22px; padding: 24px; border: 1px dashed var(--line); background: var(--mint); }
.note-fallback p { margin: 0; color: #445959; font: 14px/1.9 "Yu Mincho", serif; }
.note-profile-link { margin: 32px 0 0; text-align: right; }
.note-profile-link a { color: var(--blue-dark); font-size: 13px; text-underline-offset: 4px; }
.profile-feature { display: grid; grid-template-columns: minmax(240px, .82fr) minmax(0, 1.18fr); border-bottom: 1px solid var(--line); background: var(--pink); }
.profile-photo { margin: 0; padding: 34px; border-right: 1px solid var(--line); }
.profile-photo img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; object-position: center; border: 1px solid var(--line); box-shadow: 6px 7px 0 rgb(226 102 105 / 18%); }
.profile-copy { align-self: center; padding: 42px 48px; }
.profile-copy h2, .profile-section h2 { margin: 0 0 17px; font: 500 25px/1.5 "Yu Mincho", serif; }
.profile-copy p:not(.card-kicker), .profile-section p:not(.card-kicker) { margin: 0 0 13px; color: #505a5a; font: 13px/1.9 "Yu Mincho", serif; }
.profile-section { padding: 42px 48px; background: var(--mint); }
@media (max-width: 700px) { .note-feed { padding: 32px 24px 42px; } .note-grid { grid-template-columns: 1fr; } .profile-feature { grid-template-columns: 1fr; } .profile-photo { padding: 26px; border-right: 0; border-bottom: 1px solid var(--line); } .profile-copy, .profile-section { padding: 34px 25px; } }
@media (max-width: 380px) { .note-card { flex-direction: column; } .note-card img { width: 100%; height: 170px; } }

.profile-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; }
.profile-facts > div { padding: 10px 0; border-top: 1px dotted var(--line); }
.profile-facts dt { color: var(--orange-dark); font: 10px "Courier New", monospace; letter-spacing: .08em; }
.profile-facts dd { margin: 5px 0 0; font: 14px/1.6 "Yu Mincho", serif; overflow-wrap: anywhere; }
.profile-introduction, .profile-history, .profile-reason { max-width: none; }
.profile-introduction { background: var(--mint); }
.profile-preferences { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.preference-card { min-width: 0; padding: 42px 48px; }
.preference-card + .preference-card { border-left: 1px solid var(--line); }
.preference-card.is-favorite { background: var(--pink); }
.preference-card.is-not-good { background: var(--paper); }
.preference-card h2 { margin: 0 0 17px; font: 500 25px/1.5 "Yu Mincho", serif; }
.preference-card ul { margin: 0; padding: 0; list-style: none; }
.preference-card li { padding: 9px 0 9px 23px; border-top: 1px dotted var(--line); font: 13px/1.8 "Yu Mincho", serif; overflow-wrap: anywhere; }
.preference-card li::before { display: inline-block; width: 17px; margin-left: -23px; color: var(--orange-dark); content: "✦"; }
.profile-history { background: var(--paper); }
.profile-history ol { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; counter-reset: internet-history; }
.profile-history li { display: grid; grid-template-columns: 31px minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 10px 0; border-top: 1px dotted var(--line); font: 14px/1.8 "Yu Mincho", serif; overflow-wrap: anywhere; counter-increment: internet-history; }
.profile-history li::before { color: var(--blue-dark); content: "0" counter(internet-history); font: 11px "Courier New", monospace; }
.profile-reason { background: var(--pink); }
.profile-bbs-callout { padding: 42px 48px 48px; border-bottom: 1px solid var(--line); background: var(--paper); }
.profile-bbs-callout h2 { margin: 0 0 12px; font: 500 25px/1.5 "Yu Mincho", serif; }
.profile-bbs-callout p:not(.card-kicker) { margin: 0 0 20px; color: #505a5a; font: 14px/1.9 "Yu Mincho", serif; }
.profile-bbs-callout a { display: inline-block; padding: 11px 18px; border: 1px solid var(--orange-dark); border-radius: 999px; color: #fff; background: var(--orange); font-size: 12px; text-decoration: none; }
.profile-bbs-callout a:hover, .profile-bbs-callout a:focus-visible { background: var(--orange-dark); }

.bookmark-section { padding: 40px 52px 52px; background: var(--paper); }
.bookmark-list { display: grid; gap: 14px; margin: 22px 0 0; padding: 0; list-style: none; counter-reset: bookmarks; }
.bookmark-item { min-width: 0; counter-increment: bookmarks; }
.bookmark-item article { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 12px; align-items: center; min-height: 80px; padding: 18px 22px; border: 1px solid var(--line); border-left: 4px solid var(--blue); background: #fffdf7; box-shadow: 4px 5px 0 rgb(42 159 155 / 11%); }
.bookmark-item:nth-child(even) article { border-left-color: var(--orange); box-shadow: 4px 5px 0 rgb(226 102 105 / 14%); }
.bookmark-item article::before { color: var(--blue-dark); content: "0" counter(bookmarks); font: 11px "Courier New", monospace; }
.bookmark-item:nth-child(even) article::before { color: var(--orange-dark); }
.bookmark-item h3 { min-width: 0; margin: 0; font: 500 20px/1.5 "Yu Mincho", serif; overflow-wrap: anywhere; }
.bookmark-item h3 a { text-decoration-color: var(--orange); text-decoration-thickness: 1px; text-underline-offset: 5px; }
.bookmark-domain { grid-column: 2; margin: -6px 0 0; color: #5f6c6b; font: 10px "Courier New", monospace; overflow-wrap: anywhere; }
.bookmark-description { grid-column: 2; margin: 0; color: #505a5a; font: 13px/1.8 "Yu Mincho", serif; }
.link-policy { padding: 42px 52px 50px; border-bottom: 1px solid var(--line); background: var(--mint); }
.link-policy h2 { margin: 0 0 13px; font: 500 25px/1.5 "Yu Mincho", serif; }
.link-policy p:not(.card-kicker) { max-width: 680px; margin: 0; color: #505a5a; font: 13px/1.9 "Yu Mincho", serif; }

@media (max-width: 700px) {
  .profile-facts { grid-template-columns: 1fr; }
  .profile-preferences { grid-template-columns: 1fr; }
  .preference-card, .profile-bbs-callout, .bookmark-section, .link-policy { padding: 34px 25px; }
  .preference-card + .preference-card { border-top: 1px solid var(--line); border-left: 0; }
}

@media (max-width: 380px) {
  .bookmark-item article { grid-template-columns: 30px minmax(0, 1fr); padding: 16px 14px; }
}
