/* ================================================================
   page.css — 固定ページ / プロフィール / 404 共通スタイル (F4)
   ================================================================ */

/* ── 固定ページ共通レイアウト ────────────────────────────────── */
.page-main {
  max-width: 780px;
  margin-inline: auto;
  padding: calc(var(--header-h) + 3rem) clamp(1rem, 4vw, 2.5rem) 5rem;
}

.page-breadcrumb {
  font-family: var(--font-ui);
  font-size: 0.73rem;
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
}
.page-breadcrumb ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15em 0.1em;
  align-items: center;
}
.page-breadcrumb li { display: flex; align-items: center; }
.page-breadcrumb li + li::before {
  content: '/';
  margin-inline: 0.4em;
  color: var(--brass-shadow);
}
.page-breadcrumb a { color: var(--brass-deep); text-decoration: none; }
.page-breadcrumb a:hover { color: var(--brass); }
.page-breadcrumb [aria-current] { color: var(--ink-soft); }

.page-title {
  font-family: var(--font-ui);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.04em;
  line-height: 1.3;
  margin-bottom: 2rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--brass);
}

.page-content {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--ink);
}
.page-content h2 {
  font-family: var(--font-ui);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
  margin: 2.5rem 0 1rem;
  padding-left: 0.75em;
  border-left: 3px solid var(--brass);
}
.page-content p { margin-bottom: 1.1rem; }
.page-content a { color: var(--brass-mid); }
.page-content a:hover { color: var(--neon); }

/* ================================================================
   プロフィールページ専用
   ================================================================ */
.profile-main {
  max-width: 820px;
  margin-inline: auto;
  padding: calc(var(--header-h) + 3rem) clamp(1rem, 4vw, 2.5rem) 5rem;
}

/* ── ヒーロー ──────────────────────────────────────────────── */
.profile-hero {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
  margin-bottom: 3rem;
}
.profile-porthole {
  flex: 0 0 auto;
  width: clamp(100px, 18vw, 148px);
  height: clamp(100px, 18vw, 148px);
  border-radius: 50%;
  border: 4px solid var(--brass);
  box-shadow:
    0 0 0 6px var(--brass-deep),
    0 0 24px rgba(212, 169, 90, 0.4);
  overflow: hidden;
}
.profile-porthole img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.profile-hero__body { flex: 1 1 auto; }
.profile-name {
  font-family: var(--font-ui);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.25rem;
}
.profile-handle {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--brass-mid);
  margin-bottom: 0.75rem;
}
.profile-badge {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--brass);
  color: var(--dark-plate);
  padding: 0.2em 0.75em;
  border-radius: 2px;
  margin: 0.15em 0.2em 0.15em 0;
}

/* ── 統計バッジ ────────────────────────────────────────────── */
.profile-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 2rem 0;
}
.profile-stat {
  background: var(--ivory);
  border: 1px solid var(--brass);
  border-radius: 6px;
  padding: 0.75rem 1.25rem;
  text-align: center;
  min-width: 90px;
}
.profile-stat__num {
  display: block;
  font-family: var(--font-ui);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--brass-mid);
  line-height: 1.1;
  margin-bottom: 0.2rem;
}
.profile-stat__label {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  color: var(--ink-soft);
  letter-spacing: 0.05em;
}

/* ── プロフィール本文セクション ────────────────────────────── */
.profile-section {
  margin: 2.5rem 0;
  padding: 1.5rem 1.75rem;
  background: var(--ivory);
  border-left: 4px solid var(--brass);
  border-radius: 0 6px 6px 0;
}
.profile-section__title {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--brass-mid);
  margin-bottom: 0.75rem;
}
.profile-section p {
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--ink);
  margin: 0;
}
.profile-section ul {
  margin: 0;
  padding-left: 1.25em;
}
.profile-section li {
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--ink);
  margin-bottom: 0.25rem;
}

/* ── メディアリンク ────────────────────────────────────────── */
.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 2.5rem 0;
}
.profile-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark-plate);
  background: var(--brass);
  padding: 0.55em 1.25em;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s, box-shadow 0.2s;
}
.profile-link:hover {
  background: var(--brass-light);
  box-shadow: 0 0 10px var(--neon-glow);
  color: var(--dark-plate);
  text-decoration: none;
}

/* ── 哲学・信条 ────────────────────────────────────────────── */
.profile-philosophy {
  margin: 2.5rem 0;
  padding: 1.75rem;
  background: var(--dark-plate);
  border: 1px solid var(--brass-deep);
  border-radius: 8px;
  text-align: center;
}
.profile-philosophy__quote {
  font-family: var(--font-ui);
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  font-weight: 600;
  color: var(--brass-light);
  line-height: 1.6;
  margin: 0 0 0.75rem;
}
.profile-philosophy__sub {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--brass-mid);
  margin: 0;
}

/* ─ レスポンシブ ─────────────────────────────────────────── */
@media (max-width: 520px) {
  .profile-hero { flex-direction: column; align-items: flex-start; }
  .profile-porthole { width: 88px; height: 88px; }
}

/* ================================================================
   404 ページ
   ================================================================ */
.error404-main {
  min-height: calc(100vh - var(--header-h) - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-h) + 2rem) clamp(1rem, 4vw, 2.5rem) 4rem;
}
.error404-inner {
  max-width: 560px;
  width: 100%;
  text-align: center;
}

/* ── ギア SVG ──────────────────────────────────────────────── */
.error404-gear-wrap {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 1.75rem;
}
.error404-gear {
  width: 100%;
  height: 100%;
  color: var(--brass-mid);
  filter: drop-shadow(0 0 8px rgba(212,169,90,0.5));
}
@media (prefers-reduced-motion: no-preference) {
  .error404-gear { animation: gear-spin 8s linear infinite; }
}
@keyframes gear-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.error404-code {
  font-family: var(--font-ui);
  font-size: 4.5rem;
  font-weight: 700;
  color: var(--brass);
  line-height: 1;
  margin-bottom: 0.25rem;
  letter-spacing: -0.02em;
}
.error404-title {
  font-family: var(--font-ui);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.75rem;
}
.error404-desc {
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.75;
  margin-bottom: 2rem;
}
.error404-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 2rem;
}
.error404-search {
  display: flex;
  gap: 0;
  max-width: 400px;
  margin-inline: auto;
  border: 1px solid var(--brass);
  border-radius: 4px;
  overflow: hidden;
}
.error404-search input[type="search"] {
  flex: 1;
  background: var(--ivory);
  border: none;
  padding: 0.6em 1em;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--ink);
  outline: none;
}
.error404-search button {
  background: var(--brass);
  border: none;
  padding: 0.6em 1.2em;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark-plate);
  cursor: pointer;
  transition: background 0.2s;
}
.error404-search button:hover { background: var(--brass-light); }
