@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;700;900&display=swap');

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

:root {
  --navy:    #1a3f72;
  --navy-dk: #122d55;
  --blue:    #2980b9;
  --blue-lt: #3a91c9;
  --white:   #ffffff;
  --bg:      #f5f5f5;
  --border:  #d8d8d8;
  --text:    #333333;
  --text-lt: #666666;
  --orange:  #e07b00;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans JP', 'Hiragino Sans', 'Meiryo', sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: 14px;
  line-height: 1.8;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--blue-lt); }
img { max-width: 100%; height: auto; display: block; }

/* ===== TOP BAR ===== */
.top-bar { background: var(--navy-dk); color: rgba(255,255,255,0.7); font-size: 12px; padding: 6px 0; }
.top-bar-inner { max-width: 1000px; margin: 0 auto; padding: 0 16px; display: flex; justify-content: space-between; align-items: center; }
.top-bar a { color: rgba(255,255,255,0.7); font-size: 12px; }
.top-bar a:hover { color: #fff; text-decoration: none; }
.top-bar-links { display: flex; gap: 16px; }

/* ===== HEADER ===== */
header { background: var(--white); border-bottom: 3px solid var(--navy); }
.header-inner { max-width: 1000px; margin: 0 auto; padding: 16px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-icon { width: 52px; height: 52px; background: var(--navy); border-radius: 4px; display: flex; align-items: center; justify-content: center; color: var(--white); font-size: 22px; font-weight: 900; flex-shrink: 0; }
.logo-name { font-size: 20px; font-weight: 700; color: var(--navy); line-height: 1.2; }
.logo-sub { font-size: 11px; color: var(--text-lt); letter-spacing: 0.5px; }
.header-contact { text-align: right; flex-shrink: 0; }
.header-tel { font-size: 22px; font-weight: 700; color: var(--navy); letter-spacing: 1px; }
.header-tel-label { font-size: 11px; color: var(--text-lt); }
.header-btn { display: inline-block; margin-top: 6px; background: var(--orange); color: var(--white); padding: 7px 18px; border-radius: 3px; font-size: 13px; font-weight: 700; text-decoration: none; transition: background 0.2s; }
.header-btn:hover { background: #c96e00; text-decoration: none; color: var(--white); }

/* ===== GLOBAL NAV ===== */
.global-nav { background: var(--navy); }
.global-nav-inner { max-width: 1000px; margin: 0 auto; display: flex; flex-wrap: wrap; }
.global-nav a { display: block; color: var(--white); padding: 12px 16px; font-size: 13px; font-weight: 500; text-decoration: none; border-right: 1px solid rgba(255,255,255,0.12); transition: background 0.2s; white-space: nowrap; }
.global-nav a:first-child { border-left: 1px solid rgba(255,255,255,0.12); }
.global-nav a:hover { background: var(--blue); text-decoration: none; }
.global-nav a.active { background: var(--blue); }

/* ===== BREADCRUMB ===== */
.breadcrumb { background: var(--white); border-bottom: 1px solid var(--border); }
.breadcrumb-inner { max-width: 1000px; margin: 0 auto; padding: 8px 16px; font-size: 12px; color: var(--text-lt); }
.breadcrumb-inner a { color: var(--text-lt); }

/* ===== PAGE HERO (inner pages) ===== */
.page-hero { background: linear-gradient(135deg, var(--navy-dk) 0%, var(--navy) 100%); padding: 36px 16px; }
.page-hero-inner { max-width: 1000px; margin: 0 auto; }
.page-hero h1 { font-size: 24px; font-weight: 700; color: var(--white); margin-bottom: 4px; }
.page-hero p { font-size: 13px; color: rgba(255,255,255,0.65); }

/* ===== MAIN LAYOUT ===== */
.page-body { max-width: 1000px; margin: 24px auto; padding: 0 16px; display: grid; grid-template-columns: 1fr 280px; gap: 24px; align-items: start; }
.page-body.full { grid-template-columns: 1fr; }

/* ===== SECTION TITLES ===== */
.section-title { font-size: 18px; font-weight: 700; color: var(--navy); padding: 10px 16px; border-left: 4px solid var(--navy); background: #eef3fa; margin-bottom: 16px; }
.section-title span { font-size: 11px; color: var(--blue); font-weight: 400; margin-left: 10px; letter-spacing: 1px; }

/* ===== WHITE CARD ===== */
.card { background: var(--white); border: 1px solid var(--border); border-top: 3px solid var(--navy); margin-bottom: 24px; }
.card-body { padding: 20px; }

/* ===== MORE LINK ===== */
.more-link-wrap { text-align: right; margin-top: 12px; }
.more-link { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--blue); text-decoration: none; border: 1px solid var(--blue); padding: 4px 12px; border-radius: 2px; transition: background 0.2s, color 0.2s; }
.more-link:hover { background: var(--blue); color: var(--white); text-decoration: none; }

/* ===== SIDEBAR ===== */
.sidebar-widget { background: var(--white); border: 1px solid var(--border); border-top: 3px solid var(--navy); margin-bottom: 16px; }
.widget-title { background: var(--navy); color: var(--white); font-size: 13px; font-weight: 700; padding: 8px 14px; letter-spacing: 0.5px; }
.widget-body { padding: 14px; }
.widget-cta p { font-size: 13px; color: var(--text-lt); margin-bottom: 12px; line-height: 1.7; }
.widget-btn { display: block; padding: 11px 16px; border-radius: 3px; font-size: 13px; font-weight: 700; text-decoration: none; text-align: center; transition: background 0.2s; margin-bottom: 8px; }
.widget-btn:hover { text-decoration: none; }
.widget-btn-primary { background: var(--orange); color: var(--white); }
.widget-btn-primary:hover { background: #c96e00; color: var(--white); }
.widget-btn-secondary { background: var(--navy); color: var(--white); }
.widget-btn-secondary:hover { background: var(--navy-dk); color: var(--white); }
.widget-menu { list-style: none; }
.widget-menu li { border-bottom: 1px dotted var(--border); }
.widget-menu li:last-child { border-bottom: none; }
.widget-menu a { display: flex; align-items: center; gap: 6px; padding: 8px 0; font-size: 13px; color: var(--text); }
.widget-menu a::before { content: '▶'; font-size: 9px; color: var(--blue); flex-shrink: 0; }
.widget-menu a:hover { color: var(--blue); text-decoration: none; }
.widget-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border); }
.widget-stat { background: var(--white); padding: 14px 10px; text-align: center; }
.widget-stat-num { font-size: 26px; font-weight: 900; color: var(--navy); letter-spacing: -1px; line-height: 1; }
.widget-stat-num sup { font-size: 14px; }
.widget-stat-label { font-size: 10px; color: var(--text-lt); margin-top: 3px; }

/* ===== FOOTER CTA ===== */
.footer-cta { background: var(--navy); padding: 40px 16px; text-align: center; }
.footer-cta-title { font-size: 22px; font-weight: 700; color: var(--white); margin-bottom: 8px; }
.footer-cta-desc { font-size: 14px; color: rgba(255,255,255,0.75); margin-bottom: 20px; }
.footer-cta-btn { display: inline-block; background: var(--orange); color: var(--white); padding: 13px 36px; border-radius: 3px; font-size: 15px; font-weight: 700; text-decoration: none; transition: background 0.2s; }
.footer-cta-btn:hover { background: #c96e00; color: var(--white); text-decoration: none; }

/* ===== FOOTER ===== */
footer { background: var(--navy-dk); color: rgba(255,255,255,0.6); }
.footer-main { max-width: 1000px; margin: 0 auto; padding: 32px 16px; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand-name { font-size: 16px; font-weight: 700; color: var(--white); margin-bottom: 8px; }
.footer-brand-desc { font-size: 12px; color: rgba(255,255,255,0.45); line-height: 1.8; }
.footer-col-title { font-size: 12px; font-weight: 700; color: rgba(255,255,255,0.7); border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 8px; margin-bottom: 10px; }
.footer-col-links { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.footer-col-links a { font-size: 12px; color: rgba(255,255,255,0.45); text-decoration: none; display: flex; align-items: center; gap: 5px; }
.footer-col-links a::before { content: '▶'; font-size: 8px; color: rgba(255,255,255,0.3); }
.footer-col-links a:hover { color: rgba(255,255,255,0.8); text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); }
.footer-bottom-inner { max-width: 1000px; margin: 0 auto; padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; font-size: 11px; }
.footer-legal { display: flex; gap: 16px; }
.footer-legal a { color: rgba(255,255,255,0.35); text-decoration: none; font-size: 11px; }
.footer-legal a:hover { color: rgba(255,255,255,0.7); }

/* ===== FORMS ===== */
.contact-intro { font-size: 14px; color: var(--text); line-height: 1.9; margin-bottom: 20px; }
.contact-form { display: flex; flex-direction: column; gap: 14px; }
.form-label { display: block; font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 5px; }
.form-label .required { background: #c01f0e; color: var(--white); font-size: 10px; padding: 1px 5px; border-radius: 2px; margin-left: 6px; font-weight: 400; }
.form-input, .form-textarea { width: 100%; padding: 8px 10px; border: 1px solid var(--border); border-radius: 2px; font-size: 13px; font-family: inherit; color: var(--text); background: #fafafa; outline: none; transition: border-color 0.2s; }
.form-input:focus, .form-textarea:focus { border-color: var(--blue); background: var(--white); }
.form-textarea { resize: vertical; min-height: 100px; }
.form-submit-row { text-align: center; margin-top: 8px; }
.form-submit { background: var(--navy); color: var(--white); padding: 12px 48px; border: none; border-radius: 3px; font-size: 14px; font-weight: 700; cursor: pointer; font-family: inherit; transition: background 0.2s; }
.form-submit:hover { background: var(--navy-dk); }
.form-note { font-size: 11px; color: var(--text-lt); text-align: center; margin-top: 8px; }

/* ===== NEWS ===== */
.news-list { list-style: none; }
.news-item { border-bottom: 1px dotted var(--border); padding: 10px 0; display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.news-item:first-child { padding-top: 0; }
.news-date { font-size: 12px; color: var(--text-lt); white-space: nowrap; flex-shrink: 0; }
.news-cat { background: var(--navy); color: var(--white); font-size: 10px; padding: 1px 6px; border-radius: 2px; white-space: nowrap; flex-shrink: 0; }
.news-cat.cat-case { background: var(--blue); }
.news-cat.cat-seminar { background: var(--orange); }
.news-item a { font-size: 13px; color: var(--text); line-height: 1.5; }
.news-item a:hover { color: var(--blue); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .header-inner { flex-direction: column; gap: 12px; text-align: center; }
  .header-contact { text-align: center; }
  .global-nav a { font-size: 12px; padding: 10px 10px; }
  .page-body { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 20px; }
  .footer-bottom-inner { flex-direction: column; gap: 8px; text-align: center; }
}
@media (max-width: 480px) {
  .top-bar-links { display: none; }
  .footer-main { grid-template-columns: 1fr; }
}
