/* =========================================================
   Kubota Patent Office - style.css (cleaned & consolidated)
   - Fix broken braces
   - Remove duplicates
   - Soft background (#f5f7fa) + white wrap for calm/secure feel
   ========================================================= */

/* ---------- Theme variables ---------- */
:root{
  /* Background: slightly tinted for calm */
  --bg: #f5f7fa;

  /* Surfaces / panels */
  --panel: #ffffff;

  /* Text colors */
  --text: #1f2937;
  --muted: #4b5563;

  /* Borders */
  --border: #d7dbe6;

  /* Accent */
  --accent: #1f3a8a;
}

/* ---------- Base ---------- */
body{
  margin: 0;
  font-family: "Hiragino Sans","Yu Gothic","Meiryo",sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
}

.wrap{
  max-width: 900px;
  margin: 0 auto;
  padding: 30px 20px;
  background: #ffffff; /* central content is white */
}

/* ---------- Header / Brand / Nav ---------- */
header{
  margin-bottom: 30px;
}

.brand .name{
  font-size: 16px;
  font-weight: bold;
}

.brand .sub{
  font-size: 12px;
  color: var(--muted);
}

/* Nav: keep readable, avoid visited-purple issue */
.nav a{
  margin-right: 12px;
  font-size: 14px;
  color: var(--accent);
  text-decoration: none;
}
.nav a:hover{
  text-decoration: underline;
  opacity: 0.85;
}

/* General link rule (keep consistent) */
a,
a:visited{
  color: var(--accent);
  text-decoration: underline;
}
a:hover{
  opacity: 0.85;
}

/* ---------- Typography ---------- */
h1{
  font-size: 36px;
  margin-bottom: 10px;
  color: var(--text);
}

h2{
  font-size: 22px;
  margin-top: 40px;
  color: var(--text);
}

h3{
  color: var(--text);
}

.lead{
  font-size: 18px;
  max-width: 32em;
  color: var(--muted);
}

/* ---------- Footer ---------- */
footer{
  margin-top: 40px;
  font-size: 12px;
  color: var(--muted);
}

/* ---------- Cards / Grid ---------- */
.card{
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 16px 18px;
}

/* ---------- Buttons / CTA ---------- */
.ctaRow{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.btn{
  display: inline-block;
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  line-height: 1.2;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--accent);
}

.btn:hover{
  opacity: 0.9;
}

/* Primary button */
.btn.primary{
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

/* ---------- Symbol image block ---------- */
.symbol-image{
  text-align: center;
  margin: 18px 0 22px;
}
.symbol-image img{
  max-width: 400px;
  width: 100%;
  opacity: 0.9;
}

/* ---------- Flow diagram ---------- */
.flow-diagram{
  max-width: 420px;
  margin: 0 auto;
  margin-left: 1.5em;
}

.flow-diagram .step,
.flow-diagram .arrow{
  font-weight: 700;
  text-align: center;
}

.flow-diagram .arrow{
  line-height: 1.2;
}

/* 相談の流れ：縦フロー表示用 */
.flow-diagram.vertical{
  flex-direction: column;
}
.flow-diagram.vertical .arrow{
  font-size: 1.4em;
  margin: 2px 0;
}