/*
Theme Name: Kaishu
Theme URI: https://legal.kaishuu.com/
Author: 海秋 法務管理室
Description: 海秋 法務管理室向けの記録管理・専門家確認支援テーマ。機能ロジックはKaishu Intakeプラグインが担当します。
Version: 0.1.3
Text Domain: kaishu
*/

:root {
  --kaishu-page-bg: #f7f8f6;
  --kaishu-ink: #132238;
  --kaishu-muted: #5f6a74;
  --kaishu-line: #d6dde2;
  --kaishu-accent: #0b2d52;
  --kaishu-gold: #b88a33;
  --kaishu-focus: #b88a33;
  --kaishu-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --kaishu-serif: "Zen Old Mincho", "Yu Mincho", "Hiragino Mincho ProN", serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--kaishu-page-bg);
  color: var(--kaishu-ink);
  font-family: var(--kaishu-sans);
  font-size: 16px;
  line-height: 1.7;
}

a {
  color: var(--kaishu-accent);
}

a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 3px solid color-mix(in srgb, var(--kaishu-focus) 55%, transparent);
  outline-offset: 2px;
}

.site-header {
  border-bottom: 3px solid var(--kaishu-gold);
  background: #071b31;
  box-shadow: 0 10px 28px rgba(7, 27, 49, 0.16);
}

.site-header__inner,
.site-footer__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 14px 18px;
}

.site-header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  min-width: 0;
}

.site-brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border: 2px solid rgba(184, 138, 51, 0.72);
  border-radius: 50%;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 8px 20px rgba(0, 0, 0, 0.24);
}

.site-brand__mark img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  display: block;
}

.site-brand__text {
  display: grid;
  gap: 1px;
}

.site-brand__name {
  font-family: var(--kaishu-serif);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
}

.site-brand__sub {
  color: #d9bc75;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.site-nav a {
  color: #e8eef4;
  text-decoration: none;
  font-weight: 700;
}

.site-nav a:hover,
.site-nav a:focus {
  color: #d9bc75;
}

.site-main {
  min-height: 70vh;
}

.site-footer {
  border-top: 3px solid var(--kaishu-gold);
  color: #dbe3ea;
  background: #071b31;
}

.entry-content {
  min-height: 40vh;
}

@media (max-width: 720px) {
  .site-header__inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    width: 100%;
  }

  .site-brand__name {
    font-size: 17px;
  }
}
