/*
Theme Name: Akashic Yam=Yue (90s Retro)
Theme URI: https://example.com/
Author: yam=yue
Description: 宇宙図書館アカシックレコード分館 司書yam=yue の記録帳をイメージした、90年代後半レトロホームページ風デザインテーマです。日記(投稿)がそのまま「書架記録」として表示されます。
Version: 2.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: akashic-yamyue
*/

/* ==========================================================
   ベース（黒×赤×ピンク×シアン配色）
   ========================================================== */
* {
  box-sizing: border-box;
}

body {
  background-color: #000000;
  color: #ffffff;
  font-family: "MS Pゴシック", "ＭＳ Ｐゴシック", monospace;
  font-size: 15px;
  margin: 0;
  padding: 0;
  text-align: center;
}

a {
  color: #3399ff;
}
a:visited {
  color: #9966cc;
}
a:hover {
  color: #ff66cc;
}

/* ==========================================================
   レイアウト
   ========================================================== */
.container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 14px 10px;
}

.title-table {
  padding: 10px 0 6px;
}

.title-table .subtitle {
  color: #00e5ff;
  font-size: 18px;
  font-weight: bold;
  letter-spacing: 1px;
  margin: 0 0 6px;
}

.title-table h1,
.title-table h1 a {
  color: #ff2222;
  font-size: 34px;
  font-weight: bold;
  text-decoration: none;
  margin: 4px 0;
  display: inline-block;
  vertical-align: middle;
}

.title-table .title-icon {
  font-size: 26px;
  vertical-align: middle;
  margin: 0 6px;
}

.title-table .welcome {
  color: #ff33cc;
  font-size: 17px;
  font-weight: bold;
  margin: 8px 0 14px;
}

marquee {
  background-color: #000000;
  color: #ffff00;
  border: 1px solid #ff2222;
  padding: 5px;
  font-weight: bold;
  display: block;
  margin-bottom: 12px;
}

.blink {
  animation: blinker 1.1s step-start infinite;
  font-weight: bold;
}

@keyframes blinker {
  50% { opacity: 0.15; }
}

hr {
  border: none;
  height: 3px;
  background-color: #ff2222;
  margin: 18px 0;
}

.navbar {
  padding: 6px;
  text-align: center;
  margin-bottom: 15px;
}

.navbar .menu-heading {
  color: #ffffff;
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 14px;
}

.navbar ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar li {
  margin-bottom: 14px;
}

.navbar a {
  color: #3399ff;
  font-size: 16px;
  font-weight: bold;
  text-decoration: underline;
}

.navbar .menu-note {
  color: #cccccc;
  font-size: 13px;
  font-weight: normal;
  text-decoration: none;
  display: block;
  margin-top: 2px;
}

/* 管理人近影 */
.profile-photo-link {
  display: block;
  width: 260px;
  max-width: 80%;
  margin: 0 auto;
  text-decoration: none;
}

.profile-photo-box {
  border: 3px solid #ff33cc;
  width: 100%;
  margin: 10px 0 6px;
  padding: 10px;
  text-align: center;
}

.profile-photo-box .label {
  color: #3399ff;
  text-align: left;
  font-weight: bold;
  margin-bottom: 8px;
}

.profile-photo-box .photo-area {
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 1px solid #666;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #0a0a0a;
  overflow: hidden;
}

.profile-photo-box .photo-area img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-photo-box .photo-area .placeholder {
  color: #3399ff;
  font-size: 34px;
  border: 1px solid #3399ff;
  padding: 4px 12px;
}

.profile-click-note {
  color: #33cc66;
  font-size: 13px;
  margin: 6px 0 18px;
}

/* カウンター */
.counter {
  margin: 18px 0;
  font-size: 16px;
}

.counter span {
  background-color: #000000;
  color: #33cc66;
  border: 1px solid #33cc66;
  padding: 2px 8px;
  font-size: 20px;
  font-weight: bold;
  letter-spacing: 2px;
}

.counter .yesterday {
  margin-top: 4px;
}

.counter .yesterday b {
  color: #ff2222;
}

.kiriban-note {
  color: #ffff00;
  font-weight: bold;
  margin: 14px 0 6px;
}

.no-passing {
  color: #ff2222;
  font-weight: bold;
  font-size: 19px;
  margin: 4px 0 10px;
}

/* 司書からのメッセージ（固定ページ・トップ挨拶） */
.librarian-intro {
  text-align: left;
  border: 1px solid #444;
  padding: 14px;
  margin-bottom: 15px;
  background-color: #0a0a0a;
}

.librarian-intro .role {
  color: #dddddd;
  font-size: 14px;
  line-height: 1.9;
}

.librarian-intro .signature {
  text-align: right;
  color: #999999;
  font-size: 12px;
  margin-top: 8px;
}

/* 日記（投稿）1件分 = 書架記録 */
.diary-entry {
  text-align: left;
  background-color: #0a0a0a;
  border: 1px solid #444444;
  padding: 12px;
  margin-bottom: 15px;
}

.diary-date {
  background-color: #ff2222;
  color: #ffffff;
  padding: 3px 8px;
  display: inline-block;
  font-weight: bold;
  margin-bottom: 8px;
}

.diary-title,
.diary-title a {
  color: #00e5ff;
  font-size: 17px;
  font-weight: bold;
  margin: 5px 0;
  text-decoration: none;
}

.diary-body {
  color: #dddddd;
  line-height: 1.8;
}

.diary-body img {
  max-width: 100%;
  height: auto;
}

.gap-note {
  color: #999999;
  font-size: 11px;
  font-style: italic;
}

.review-box {
  background-color: #14140a;
  border: 2px dashed #ffff00;
  padding: 10px;
  margin: 10px 0;
}

.review-box .review-label {
  background-color: #ff2222;
  color: #ffffff;
  padding: 2px 6px;
  font-size: 12px;
  font-weight: bold;
}

a.aff-link {
  color: #00e5ff;
  font-weight: bold;
}

.under-construction {
  text-align: center;
  background-color: #1a0000;
  color: #ff2222;
  border: 2px solid #ff2222;
  padding: 6px;
  font-weight: bold;
  margin: 10px 0;
}

/* サイドバー・司書資料 */
.sidebar-table {
  margin-top: 15px;
  text-align: left;
}

.sidebar-widget {
  border: 1px solid #444;
  padding: 10px;
  color: #cccccc;
  margin-bottom: 12px;
  background-color: #0a0a0a;
}

.sidebar-widget b,
.sidebar-widget .widget-title {
  color: #00e5ff;
  display: block;
  margin-bottom: 6px;
}

.webring {
  border: 1px solid #ff33cc;
  padding: 10px;
  margin: 15px 0;
  color: #ff99e6;
}

/* 相互リンク・バナー枠 */
.linkbox {
  border: 2px dashed #00e5ff;
  padding: 12px;
  margin: 18px 0;
}

.linkbox .linkbox-title {
  color: #00e5ff;
  font-weight: bold;
  font-size: 16px;
  margin-bottom: 6px;
}

.linkbox .warning {
  color: #ffcc00;
  font-weight: bold;
  margin: 6px 0;
}

.linkbox .note {
  color: #cccccc;
  font-size: 13px;
  line-height: 1.6;
}

.banner-row {
  text-align: center;
  margin: 10px 0;
}

.banner-row span {
  background: #111111;
  color: #cccccc;
  border: 1px solid #666666;
  padding: 6px 20px;
  font-size: 11px;
  display: inline-block;
  margin: 2px;
}

/* クリック募金風リンク */
.charity-link {
  margin: 18px 0;
  font-size: 15px;
}

.charity-link .dot {
  color: #ff2222;
}

.charity-link a {
  color: #3399ff;
  text-decoration: underline;
}

/* コメント欄=参拝記録 */
.guestbook {
  text-align: left;
  border: 1px solid #444;
  padding: 12px;
  margin: 15px 0;
  background-color: #0a0a0a;
}

.guestbook h3 {
  color: #00e5ff;
  border-bottom: 1px dotted #444;
  padding-bottom: 6px;
}

.guestbook .comment {
  background-color: #111111;
  border: 1px solid #333;
  padding: 8px;
  margin-bottom: 8px;
  font-size: 13px;
}

.guestbook .comment-author {
  color: #00e5ff;
  font-weight: bold;
}

.guestbook .comment-date {
  color: #999999;
  font-size: 11px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
  background-color: #111111;
  color: #ffffff;
  border: 1px solid #444;
  width: 100%;
  padding: 6px;
  margin-bottom: 8px;
  font-family: inherit;
}

.comment-form input[type="submit"] {
  background-color: #ff2222;
  color: #ffffff;
  border: none;
  padding: 6px 16px;
  font-weight: bold;
  cursor: pointer;
}

.footer {
  color: #888888;
  font-size: 12px;
  margin-top: 24px;
  border-top: 1px solid #333;
  padding-top: 10px;
  line-height: 1.8;
}

.pagination {
  text-align: center;
  margin: 15px 0;
}

.pagination a {
  border: 1px solid #444;
  padding: 4px 10px;
  margin: 0 3px;
  text-decoration: none;
  color: #3399ff;
}

.latest-records {
  text-align: left;
  margin-top: 10px;
}

.record-url-box {
  text-align: left;
  border: 1px dashed #00e5ff;
  padding: 8px 10px;
  margin: 10px 0;
  background-color: #0a0a0a;
}

.record-url-label {
  color: #00e5ff;
  font-size: 12px;
  display: block;
  margin-bottom: 4px;
}

.record-url-input {
  width: 100%;
  background-color: #111111;
  color: #cccccc;
  border: 1px solid #444;
  padding: 6px;
  font-family: inherit;
  font-size: 12px;
}

/* ==========================================================
   司書資料室（プロフィールページ）
   ========================================================== */
.profile-header-box {
  text-align: center;
  background-color: #0a0a0a;
  border: 2px solid #ffff00;
  padding: 14px;
  margin-bottom: 18px;
}

.profile-header-box .profile-title {
  color: #00e5ff;
  font-size: 22px;
  font-weight: bold;
  margin: 4px 0;
}

.profile-header-box .icon {
  font-size: 20px;
}

.profile-header-box .profile-subtitle {
  color: #33cc66;
  font-size: 14px;
  margin: 6px 0;
}

.profile-header-box .profile-links {
  margin: 6px 0 0;
}

.profile-header-box .profile-links a {
  color: #3399ff;
  text-decoration: underline;
}

.profile-content-frame {
  border: 2px dashed #33cc33;
  padding: 16px 12px;
  margin-bottom: 18px;
  text-align: left;
}

.profile-photo-frame {
  border: 2px solid #ffff00;
  background-color: #333333;
  padding: 10px;
  margin: 0 auto 10px;
  max-width: 340px;
}

.profile-photo-frame .photo-label {
  color: #ffffff;
  text-align: left;
  margin-bottom: 8px;
}

.profile-photo-frame .photo-area-large {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: #333333;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.profile-photo-frame .photo-area-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-photo-frame .placeholder {
  color: #3399ff;
  font-size: 30px;
  border: 1px solid #3399ff;
  padding: 4px 12px;
  background-color: #0a0a0a;
}

.profile-caption {
  text-align: center;
  color: #999999;
  font-size: 13px;
  margin: 0 0 16px;
}

.profile-data-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
}

.profile-data-table th,
.profile-data-table td {
  border: 1px dashed #33cc33;
  padding: 10px;
  text-align: left;
  vertical-align: top;
}

.profile-data-table th {
  color: #ffff00;
  font-weight: bold;
  width: 30%;
  white-space: nowrap;
}

.profile-data-table td {
  color: #eeeeee;
}

.profile-message-box {
  border: 2px solid #cc33cc;
  padding: 12px;
  margin-top: 4px;
}

.profile-message-box .message-title {
  color: #ff66ff;
  font-weight: bold;
  margin: 0 0 8px;
}

.profile-message-box .message-body {
  color: #eeeeee;
  font-size: 14px;
  line-height: 1.8;
}

/* ==========================================================
   注：このテーマは意図的に「スマホ幅」の見た目をPCでも
   そのまま維持する設計です（.containerの max-width で固定）。
   ========================================================== */
@media screen and (max-width: 360px) {
  .title-table h1 { font-size: 20px; }
  .navbar a { font-size: 13px; }
}
