/* ==========================================================================
   y4ttazeの依頼部屋 - 軽量レトロ個人サイト (読みやすさ重視)
   ========================================================================== */

:root {
  --bg-color: #f0f0ee;
  --container-bg: #ffffff;
  --text-color: #222222;
  --text-muted: #555555;
  --link-color: #0000cc;
  --link-visited: #551a8b;
  --link-hover: #cc0000;
  --accent-color: #b22222;
  --border-color: #999999;
  --border-light: #cccccc;
  --font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Meiryo", "MS PGothic", sans-serif;
  --mono-family: "Courier New", Courier, "Consolas", monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-color);
  /* レトロな質感のうっすらドット背景 */
  background-image: radial-gradient(#d5d5d5 1px, transparent 1px);
  background-size: 10px 10px;
  color: var(--text-color);
  font-family: var(--font-family);
  font-size: 14px;
  line-height: 1.65;
  padding: 16px 10px;
  letter-spacing: 0.02em;
}

/* Container */
.site-wrapper {
  max-width: 760px;
  margin: 0 auto;
  background-color: var(--container-bg);
  border: 1px solid var(--border-color);
  padding: 24px 28px;
  box-shadow: 2px 2px 0px rgba(0, 0, 0, 0.15);
}

/* Links */
a {
  color: var(--link-color);
  text-decoration: underline;
}

a:visited {
  color: var(--link-visited);
}

a:hover, a:active {
  color: var(--link-hover);
  background-color: #ffffcc;
}

/* Header */
.site-header {
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 14px;
  margin-bottom: 16px;
  text-align: center;
}

.site-title {
  font-size: 22px;
  font-weight: bold;
  color: #111111;
  margin-bottom: 6px;
  letter-spacing: 0.05em;
}

.site-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

/* Marquee bar */
.marquee-box {
  background-color: #000000;
  border: 1px solid #666666;
  padding: 3px 8px;
  font-size: 12px;
  color: #ffff00;
  margin-bottom: 10px;
  font-family: var(--mono-family);
}

/* Access Counter */
.counter-box {
  display: inline-block;
  background-color: #f7f7f7;
  border: 1px solid #cccccc;
  padding: 5px 12px;
  font-size: 12px;
  margin-bottom: 8px;
}

.counter-digits {
  display: inline-block;
  background-color: #000000;
  color: #00ff66;
  font-family: var(--mono-family);
  font-weight: bold;
  font-size: 14px;
  letter-spacing: 2px;
  padding: 1px 6px;
  margin: 0 4px;
  border: 1px solid #333333;
}

.counter-role {
  font-weight: bold;
  color: var(--accent-color);
}

.meta-info {
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--mono-family);
}

/* Navigation */
.site-nav {
  background-color: #f0f3f6;
  border: 1px solid var(--border-light);
  padding: 6px 10px;
  margin: 14px 0 24px 0;
  text-align: center;
  font-size: 12px;
  font-weight: bold;
}

.site-nav a {
  margin: 0 6px;
  text-decoration: none;
}

.site-nav a:hover {
  text-decoration: underline;
}

/* Section styling */
section {
  margin-bottom: 28px;
}

h2.section-title {
  font-size: 15px;
  font-weight: bold;
  background-color: #e4eaf0;
  border-left: 5px solid #4a6b82;
  border-top: 1px solid #d0dbe4;
  border-right: 1px solid #d0dbe4;
  border-bottom: 1px solid #d0dbe4;
  padding: 4px 8px;
  margin-bottom: 12px;
  color: #223344;
}

h3.sub-title {
  font-size: 13px;
  font-weight: bold;
  margin: 14px 0 6px 0;
  color: #333333;
  border-bottom: 1px dotted #cccccc;
  padding-bottom: 2px;
}

p {
  margin-bottom: 10px;
}

/* Profile section */
.profile-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 14px;
  background-color: #fafafa;
  border: 1px solid var(--border-light);
  padding: 12px;
}

.profile-avatar {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border: 1px solid #888888;
  padding: 2px;
  background-color: #ffffff;
  flex-shrink: 0;
}

.profile-desc {
  flex-grow: 1;
  font-size: 13px;
}

.genre-tags {
  margin-top: 8px;
}

.tag {
  display: inline-block;
  background-color: #e8ecf2;
  border: 1px solid #ccd6e0;
  font-size: 11px;
  padding: 1px 6px;
  margin: 2px 2px 2px 0;
  border-radius: 2px;
}

/* Retro Table */
table.retro-table {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0 14px 0;
  font-size: 13px;
}

table.retro-table th,
table.retro-table td {
  border: 1px solid #bbbbbb;
  padding: 6px 10px;
  text-align: left;
}

table.retro-table th {
  background-color: #eaeaea;
  font-weight: bold;
  color: #333333;
}

table.retro-table tr:nth-child(even) {
  background-color: #f9f9f9;
}

/* Audio Player Section */
.beat-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.beat-item {
  background-color: #fcfcfc;
  border: 1px solid var(--border-light);
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.beat-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  font-size: 13px;
}

.beat-title {
  font-weight: bold;
  color: #111111;
}

.beat-meta {
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--mono-family);
}

audio {
  width: 100%;
  height: 32px;
  margin-top: 2px;
}

/* Info Box / Notice */
.info-box {
  background-color: #f8f9fa;
  border: 1px solid #d0d7de;
  border-left: 4px solid #0969da;
  padding: 10px 12px;
  font-size: 12px;
  margin: 10px 0;
}

/* Flow list */
ol.flow-list {
  padding-left: 20px;
  margin-bottom: 12px;
}

ol.flow-list li {
  margin-bottom: 6px;
}

/* Contact List */
ul.contact-list {
  list-style-type: square;
  padding-left: 20px;
  margin-bottom: 10px;
}

ul.contact-list li {
  margin-bottom: 4px;
}

/* Order Template Area */
.template-box {
  background-color: #f5f5f5;
  border: 1px solid #cccccc;
  padding: 10px;
  margin-top: 8px;
}

.template-textarea {
  width: 100%;
  height: 140px;
  font-family: var(--mono-family);
  font-size: 12px;
  padding: 8px;
  border: 1px solid #aaaaaa;
  background-color: #ffffff;
  resize: vertical;
  line-height: 1.5;
  color: #333333;
}

.button-group {
  margin-top: 8px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.retro-btn {
  background: #e6e6e6;
  border: 1px solid #707070;
  box-shadow: 1px 1px 0px #ffffff inset, -1px -1px 0px #888888 inset;
  padding: 5px 14px;
  font-size: 12px;
  font-family: var(--font-family);
  cursor: pointer;
  color: #000000;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.retro-btn:hover {
  background: #f0f0f0;
  color: #000000;
}

.retro-btn:active {
  box-shadow: -1px -1px 0px #ffffff inset, 1px 1px 0px #888888 inset;
  padding: 6px 13px 4px 15px;
}

.copy-status {
  font-size: 11px;
  color: #2e7d32;
  font-weight: bold;
  display: none;
}

/* Footer */
.site-footer {
  border-top: 2px solid var(--border-color);
  padding-top: 15px;
  margin-top: 30px;
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--mono-family);
}

.footer-links {
  margin-bottom: 8px;
}

.footer-links a {
  margin: 0 5px;
}

/* Responsive */
@media (max-width: 600px) {
  body {
    padding: 6px 4px;
  }
  .site-wrapper {
    padding: 14px 12px;
  }
  .profile-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .site-title {
    font-size: 19px;
  }
  .site-nav a {
    display: inline-block;
    margin: 2px 4px;
  }
}
