body {
  margin: 0;
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  background: #f7f7f7;
  color: #333;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  background: #fff;
  border-bottom: 1px solid #ececec;
  margin-bottom: 40px;
}

.site-header-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 48px 24px 40px;
}

.site-header h1 {
  margin: 0 0 18px;
  font-size: 34px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.site-header p {
  margin: 0;
  color: #666;
  line-height: 1.9;
  font-size: 15px;
}

.site-title {
  display: inline-block;
  font-size: 34px;
  font-weight: 700;
  color: #222;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: .2s;
}

.site-title:hover {
  opacity: 0.7;
}

.site-subtitle {
  margin-top: 18px;
  color: #666;
  line-height: 2;
  font-size: 15px;
}

.layout {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 24px 80px;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 40px;
}

.article-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.post-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  transition: 0.2s;
}

.post-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  transform: translateY(-2px);
}

.post-card a {
  display: block;
  padding: 26px 30px;
}

.post-date {
  margin: 0 0 10px;
  color: #888;
  font-size: 13px;
}

.post-card h2 {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 600;
}

.post-card p {
  margin: 0;
  color: #666;
  line-height: 1.8;
  font-size: 14px;
}

.profile {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  padding: 28px;
  height: fit-content;
  position: sticky;
  top: 24px;
}

.profile-icon {
  width: 92px;
  height: 92px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  margin-bottom: 18px;
}

.profile h2 {
  margin: 0 0 12px;
  font-size: 22px;
}

.profile-text {
  margin: 0 0 24px;
  color: #666;
  line-height: 1.8;
  font-size: 14px;
}

.profile-box {
  border-top: 1px solid #eee;
  padding-top: 18px;
  margin-top: 18px;
}

.profile-box h3 {
  margin: 0 0 12px;
  font-size: 14px;
  color: #555;
}

.profile-box ul {
  margin: 0;
  padding-left: 18px;
  color: #666;
  line-height: 1.9;
  font-size: 14px;
}

.profile-box p {
  margin: 0;
  color: #666;
  font-size: 14px;
}

footer {
  text-align: center;
  padding: 35px 20px;
  color: #999;
  font-size: 12px;
}
.article-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px 90px;
}

.article-body {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  padding: 46px 52px;
}

.article-body h1 {
  margin: 0 0 34px;
  font-size: 32px;
  line-height: 1.5;
}

.article-body p {
  line-height: 2.1;
  font-size: 15px;
  margin: 0 0 22px;
}

.article-nav{
display:flex;
justify-content:space-between;
align-items:center;
margin-top:30px;
font-size:14px;
}

.article-nav a{
color:#666;
text-decoration:none;
transition:.2s;
}

.article-nav a:hover{
opacity:0.6;
}
.answer-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 42px 0;
}

.answer-box label {
  margin-top: 10px;
  font-size: 14px;
  color: #666;
}

.answer-box input {
  padding: 14px 16px;
  font-size: 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: inherit;
}

.answer-box input:focus {
  outline: none;
  border-color: #999;
  background: #fafafa;
}

@media (max-width: 800px) {
  .article-body {
    padding: 32px 24px;
  }

  .article-body h1 {
    font-size: 26px;
  }
}

.site-footer {
  margin-top: 60px;
  padding: 28px 24px;
  border-top: 1px solid #ececec;
  background: #fff;
}

.footer-inner {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #999;
  font-size: 13px;
}

.footer-page {
  letter-spacing: 0.08em;
}
.article-image {
  margin: 34px 0;
}

.article-image img {
  width: 100%;
  max-width: 520px;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
}

.article-image figcaption {
  margin-top: 12px;
  text-align: center;
  color: #888;
  font-size: 13px;
}
.deleted-article {
  border: 1px solid #ddd;
  background: #fffdfd;
}

.deleted-label {
  display: inline-block;
  margin-bottom: 18px;
  padding: 4px 10px;
  background: #f1f1f1;
  color: #777;
  font-size: 12px;
  border-radius: 4px;
}
.university-page {
  background: #fff;
}

.info-block {
  margin-top: 38px;
  padding-top: 24px;
  border-top: 1px solid #e5e5e5;
}

.info-block h2 {
  font-size: 20px;
  margin: 0 0 18px;
}
.simple-list {
  margin: 0;
  padding-left: 22px;
  line-height: 2;
  color: #555;
}
.profile-table {
  width: 100%;
  border-collapse: collapse;
}

.profile-table th,
.profile-table td {
  border-bottom: 1px solid #e5e5e5;
  padding: 16px 12px;
  text-align: left;
  font-size: 15px;
}

.profile-table th {
  width: 150px;
  color: #666;
  background: #fafafa;
  font-weight: 600;
}

.blackout {
  display: inline-block;
  background: #111;
  color: #111;
  padding: 0 14px;
  user-select: none;
}
.book-list {
  margin: 0;
  padding-left: 22px;
  line-height: 2.1;
}

.book-list li {
  margin-bottom: 6px;
}
.center {
  text-align: center;
}

.post-button {
  display: inline-block;
  margin-top: 30px;
  padding: 14px 48px;
  font-size: 16px;
  border: none;
  border-radius: 999px;
  background: #333;
  color: #fff;
  cursor: pointer;
  transition: 0.2s;
}

.post-button:hover {
  opacity: 0.8;
}
.ending-page {
  text-align: center;
}

.ending-page h1 {
  margin-bottom: 36px;
}

.ending-image {
  margin: 48px auto;
}

.ending-image img {
  width: 100%;
  max-width: 680px;
  display: block;
  margin: 0 auto;
  border-radius: 10px;
}

.share-section {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid #eee;
}

.x-share-btn {
  display: inline-block;
  margin-top: 14px;
  padding: 14px 34px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  text-decoration: none;
  font-size: 15px;
}
.good-ending {
  background: #fff;
}
.site-header{

text-align:center;

padding:50px 20px 35px;

border-bottom:1px solid #eee;

background:#fff;

}

.site-title{

font-size:36px;

color:#222;

text-decoration:none;

font-weight:700;

letter-spacing:0.08em;

}

.site-title:hover{

opacity:.7;

}

.site-subtitle{

margin-top:14px;

font-size:14px;

color:#777;

}

.header-search {
  max-width: 520px;
  margin: 30px auto 0;
}
.header-search form {
  display: flex;
  gap: 10px;
}

.header-search input {
  flex: 1;
  padding: 13px 16px;
  font-size: 15px;
  border: 1px solid #ddd;
  border-radius: 999px;
  outline: none;
}

.header-search input:focus{

border-color:#999;

box-shadow:0 0 0 3px rgba(0,0,0,.05);

}

.header-search button {
  padding: 13px 26px;
  border: none;
  border-radius: 999px;
  background: #333;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
}
}

.header-search button:hover{

opacity:.8;

}
@media (max-width: 800px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .profile {
    position: static;
  }

  .site-header h1 {
    font-size: 28px;
  }
}
.bad-end{

background:#0d0d0d;

color:#eee;

}

.bad-end .article-body{

background:#0d0d0d;

color:#eee;

}

.bad-end .deleted-label{

background:#222;

color:#aaa;

}

.bad-end .post-date{

color:#888;

}

.bad-end h1{

color:#fff;

}

.bad-end #header{

background:#0d0d0d;

border-bottom:1px solid #222;

}

.bad-end #footer{

background:#0d0d0d;

border-top:1px solid #222;

color:#777;

}
@media(max-width:800px){
.site-title{
font-size:28px;
}

.site-header-inner{
padding:40px 24px 32px;
}

}