:root {
  --washi-bg: #FBF8F3;
  --washi-card: #FFFFFF;
  --washi-surface: #F3EDE2;
  --sumi-ink: #2A2623;
  --sumi-muted: #6B635B;
  --shu-accent: #B85D3B;
  --shu-hover: #9E4A2B;
  --kin-accent: #B58938;
  --hisui-accent: #3A7D6B;
  --border-light: #E4DDD0;
  --header-h: 68px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans JP", "Hiragino Sans", sans-serif;
  background-color: var(--washi-bg);
  color: var(--sumi-ink);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

/* 言語切替制御（デフォルト英語） */
body.lang-en .t-ja { display: none !important; }
body.lang-ja .t-en { display: none !important; }

a {
  color: var(--shu-accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ヘッダー（スマホでも文字でごちゃつかないアイコン＋ツールチップ中心構成） */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  background: rgba(251, 248, 243, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
  z-index: 100;
}

.header-inner {
  max-width: 1080px;
  margin: 0 auto;
  height: 100%;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--sumi-ink);
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
}
.brand:hover { text-decoration: none; }

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--washi-surface);
  border: 1px solid var(--kin-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--shu-accent);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border-light);
  background: var(--washi-card);
  color: var(--sumi-ink);
  position: relative;
  transition: background-color 0.2s, border-color 0.2s;
}
.icon-btn:hover {
  background: var(--washi-surface);
  border-color: var(--kin-accent);
  text-decoration: none;
}
.icon-btn svg {
  width: 20px;
  height: 20px;
}

.lang-switcher {
  display: inline-flex;
  background: var(--washi-surface);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 3px;
}
.lang-btn {
  border: none;
  background: transparent;
  color: var(--sumiMuted);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 7px;
  cursor: pointer;
}
.lang-btn.active {
  background: var(--washi-card);
  color: var(--shu-accent);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

/* メイン余白（ヘッダーとヒーローが被らないよう確実に確保） */
.page-main {
  padding-top: calc(var(--header-h) + 28px);
}

/* ヒーローセクション */
.hero {
  padding: 28px 0 48px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--shu-accent);
  background: rgba(184, 93, 59, 0.1);
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

h1 {
  font-family: Georgia, "Noto Serif JP", serif;
  font-size: clamp(28px, 4.5vw, 44px);
  line-height: 1.22;
  margin: 0 0 16px;
  color: var(--sumi-ink);
}

.lead {
  font-size: 17px;
  color: var(--sumi-muted);
  margin: 0 0 26px;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 54px;
  padding: 0 26px;
  border-radius: 14px;
  background: var(--shu-accent);
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 700;
  transition: background-color 0.2s, transform 0.15s;
}
.btn-primary:hover {
  background: var(--shu-hover);
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 54px;
  padding: 0 22px;
  border-radius: 14px;
  background: var(--washi-card);
  color: var(--sumi-ink);
  border: 1.5px solid var(--kin-accent);
  font-size: 16px;
  font-weight: 600;
}
.btn-secondary:hover {
  background: var(--washi-surface);
  text-decoration: none;
}

.hero-visual-card {
  background: linear-gradient(145deg, #FFFFFF, #F5EDE0);
  border: 1px solid var(--border-light);
  border-radius: 24px;
  padding: 24px;
  text-align: center;
  box-shadow: 0 12px 32px rgba(42, 38, 35, 0.06);
}

.hero-photo {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 16px;
}

/* セクション共通 */
.section {
  padding: 44px 0;
}

.section-title {
  font-family: Georgia, "Noto Serif JP", serif;
  font-size: clamp(22px, 3vw, 30px);
  margin: 0 0 10px;
}

.section-sub {
  font-size: 16px;
  color: var(--sumi-muted);
  margin: 0 0 28px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.card {
  background: var(--washi-card);
  border: 1px solid var(--border-light);
  border-radius: 18px;
  padding: 22px;
}

.card h3 {
  font-size: 18px;
  margin: 0 0 8px;
  color: var(--sumi-ink);
}

.card p {
  font-size: 15px;
  color: var(--sumi-muted);
  margin: 0;
}

/* 注目卦レコメンド（回遊性強化） */
.hex-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--shu-accent);
  background: rgba(184, 93, 59, 0.1);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.hex-symbol {
  font-size: 28px;
  color: var(--kin-accent);
  margin-bottom: 6px;
}

/* 法務文書スタイル */
article h2 {
  font-size: 20px;
  margin: 32px 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-light);
}
article p, article li {
  font-size: 15px;
  color: var(--sumi-ink);
}
article ul {
  padding-left: 22px;
}
.meta {
  font-size: 14px;
  color: var(--sumi-muted);
  margin-bottom: 20px;
}
table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  background: var(--washi-card);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-light);
}
th, td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-light);
  font-size: 14px;
}
th {
  background: var(--washi-surface);
  font-weight: 700;
}

/* フッター */
.site-footer {
  border-top: 1px solid var(--border-light);
  background: var(--washi-surface);
  padding: 32px 0;
  margin-top: 40px;
  font-size: 14px;
  color: var(--sumi-muted);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.footer-links {
  display: flex;
  gap: 20px;
}

@media (max-width: 820px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .btn-primary, .btn-secondary {
    width: 100%;
  }
}
