@charset "utf-8";

:root {
  --lc-ink: #1f2925;
  --lc-muted: #66736d;
  --lc-green: #285b45;
  --lc-green-dark: #173d2e;
  --lc-green-soft: #edf5f0;
  --lc-sand: #f7f3eb;
  --lc-accent: #b66e2f;
  --lc-accent-dark: #8f4f1f;
  --lc-line: #dce4df;
  --lc-bg: #f3f5f3;
  --lc-white: #ffffff;
  --lc-shadow: 0 12px 32px rgba(24, 49, 38, .08);
  --lc-radius: 16px;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--lc-ink);
  background: var(--lc-bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--lc-green); }
a:hover { color: var(--lc-green-dark); }
img { max-width: 100%; height: auto; }

#container {
  width: min(1120px, calc(100% - 28px));
  max-width: 1120px;
  min-width: 0;
  margin: 18px auto 36px;
  padding: 0;
  background: var(--lc-white);
  border: 1px solid var(--lc-line);
  border-radius: 20px;
  box-shadow: var(--lc-shadow);
  overflow: hidden;
}

main { padding: 26px 34px 48px; }
section { margin: 0 0 40px; }

/* header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 20px 30px;
  background: #fff;
}
.site-brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.site-brand img { display: block; width: 216px; height: auto; }
.site-brand-copy { min-width: 0; }
.site-brand-name { margin: 0; font-weight: 800; font-size: 14px; color: var(--lc-green-dark); letter-spacing: .02em; }
.site-brand-tagline { margin: 2px 0 0; color: var(--lc-muted); font-size: 12px; line-height: 1.5; }
.site-header-actions { display: flex; gap: 8px; flex-shrink: 0; }
.site-header-actions a {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 42px; padding: 0 15px;
  border: 1px solid var(--lc-line); border-radius: 10px;
  color: var(--lc-ink); background: #fff; text-decoration: none; font-weight: 700; font-size: 13px;
}
.site-header-actions a.primary { color: #fff; background: var(--lc-green); border-color: var(--lc-green); }
.site-header-actions a:hover { transform: translateY(-1px); box-shadow: 0 5px 14px rgba(23,61,46,.11); }

/* nav */
.global-nav { position: relative; overflow: visible; background: var(--lc-green-dark); white-space: normal; }
.nav-inner { display: flex; align-items: stretch; justify-content: space-between; }
.nav-list { display: flex; flex: 1; list-style: none; margin: 0; padding: 0; }
.nav-item { flex: 1 1 auto; }
.nav-item a {
  display: flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 14px; color: #fff; text-decoration: none;
  font-weight: 700; font-size: 14px; letter-spacing: .01em; border-right: 1px solid rgba(255,255,255,.09);
}
.nav-item a:hover, .nav-item a:focus { background: rgba(255,255,255,.09); color: #fff; }
.nav-toggle { display: none; }

/* headings */
h1 {
  margin: 10px 0 22px;
  padding: 0 0 16px;
  color: var(--lc-ink);
  background: none;
  border-bottom: 3px solid var(--lc-green);
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.35;
  letter-spacing: -.02em;
}
h2 {
  display: block;
  width: auto;
  margin: 44px 0 18px;
  padding: 0 0 10px 15px;
  color: var(--lc-ink);
  background: none;
  border-radius: 0;
  border-left: 6px solid var(--lc-green);
  border-bottom: 1px solid var(--lc-line);
  box-shadow: none;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.4;
}
h2::before { display: none; }
h3 {
  margin: 28px 0 12px;
  padding: 0 0 7px;
  color: var(--lc-green-dark);
  border-bottom: 1px solid var(--lc-line);
  font-size: 20px;
  line-height: 1.5;
}
h4 { color: var(--lc-ink); border-color: var(--lc-line); }

p, li, dd { overflow-wrap: anywhere; }
.text-area { margin: 10px 0; }

/* hero */
.home-hero {
  position: relative;
  overflow: hidden;
  margin: 4px 0 26px;
  padding: 40px;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, #173d2e 0%, #2f6d51 100%);
}
.home-hero::after {
  content: ""; position: absolute; width: 260px; height: 260px; right: -80px; top: -110px;
  border: 1px solid rgba(255,255,255,.18); border-radius: 50%;
  box-shadow: 0 0 0 46px rgba(255,255,255,.04), 0 0 0 92px rgba(255,255,255,.025);
}
.home-hero > * { position: relative; z-index: 1; }
.home-hero-label { display: inline-block; margin-bottom: 12px; padding: 5px 10px; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: .05em; }
.home-hero h1 { margin: 0 0 14px; padding: 0; color: #fff; border: 0; font-size: clamp(29px, 4.5vw, 48px); }
.home-hero p { max-width: 820px; margin: 0; color: rgba(255,255,255,.90); font-size: 17px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.hero-actions a { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 18px; border-radius: 10px; background: #fff; color: var(--lc-green-dark); text-decoration: none; font-weight: 800; }
.hero-actions a.secondary { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.55); }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 20px 0 28px; }
.stat-card { padding: 18px; border: 1px solid var(--lc-line); border-radius: 14px; background: #fff; }
.stat-label { color: var(--lc-muted); font-size: 12px; font-weight: 700; }
.stat-value { margin-top: 2px; color: var(--lc-green-dark); font-size: 25px; font-weight: 900; line-height: 1.3; }

.quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; margin: 18px 0 34px; }
.quick-card { display: block; min-height: 114px; padding: 20px; border: 1px solid var(--lc-line); border-radius: 14px; background: #fff; text-decoration: none; color: var(--lc-ink); transition: .2s ease; }
.quick-card:hover { color: var(--lc-ink); transform: translateY(-2px); border-color: #b8cbc0; box-shadow: 0 10px 26px rgba(24,49,38,.08); }
.quick-card strong { display: block; margin-bottom: 5px; color: var(--lc-green-dark); font-size: 18px; }
.quick-card span { display: block; color: var(--lc-muted); font-size: 13px; line-height: 1.6; }

/* search / definition / toc */
.teigi { margin: 20px 0; padding: 16px 18px; border: 1px solid #d9e7df; border-left: 5px solid var(--lc-green); border-radius: 10px; background: var(--lc-green-soft); color: #36433d; font-size: 14px; }
.mokuji { margin: 25px 0 10px; padding: 9px 13px; border-radius: 8px; background: var(--lc-ink); color: #fff; font-weight: 800; }
.notes { margin: 18px 0; padding: 14px 16px; border: 1px solid #eadcc9; border-radius: 10px; background: #fbf6ee; color: #5e554b; font-size: 13px; }

.kenbar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 7px; padding: 14px; background: var(--lc-sand); border-radius: 14px; }
.kenbar a { display: flex; align-items: center; justify-content: center; width: auto; min-height: 38px; margin: 0; padding: 5px 7px; border: 1px solid #d4ddd8; border-radius: 8px; background: #fff; color: var(--lc-green-dark); text-decoration: none; font-weight: 700; font-size: 13px; }
.kenbar a:hover { background: var(--lc-green); color: #fff; border-color: var(--lc-green); }

/* breadcrumb */
.pan { margin: 18px 0 10px; color: var(--lc-muted); font-size: 12px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 2px; margin: 0; padding: 0; }
.breadcrumb li a { color: var(--lc-muted); }

/* company listings */
.company-card { margin: 22px 0 34px; padding: 24px; border: 1px solid var(--lc-line); border-radius: var(--lc-radius); background: #fff; box-shadow: 0 8px 22px rgba(24,49,38,.05); overflow: hidden; }
.company-card > h2 { margin-top: 0; font-size: 26px; }
.company-card .dtlimg { width: 42%; margin: 0 24px 16px 0; float: left; clear: none; }
.company-card .dtlimg img { width: 100%; border-radius: 12px; border: 1px solid var(--lc-line); object-fit: cover; }
.company-card .dtlspc { width: calc(58% - 24px); min-height: 120px; float: left; color: var(--lc-muted); }
.company-card .dtlmsg, .company-card .dtlaimsg { margin-top: 15px; }
.company-card .surveyday { margin-top: 20px; padding-top: 10px; border-top: 1px solid var(--lc-line); color: var(--lc-muted); font-size: 12px; }
.company-card .btn_wrapper { clear: both; padding-top: 8px; }
.company-card > .link_btn01 { display: block; clear: both; margin-top: 8px; }

.tagarea { margin: 12px 0; line-height: 2.3; }
.icon1, .icon2, .icon3, .icon4, .icon5 { display: inline-block; margin: 2px 4px 2px 0; padding: 5px 9px; border-radius: 999px; line-height: 1.2; font-size: 12px; }
.icon1 { background: #e7f1eb; color: #1f513d; }
.icon2 { background: #e9f1f4; color: #235365; }
.icon3 { background: #f4eae8; color: #764039; }

/* detail page */
.company-hero { display: grid; grid-template-columns: minmax(0, 410px) 1fr; gap: 28px; align-items: start; margin: 10px 0 28px; padding: 24px; border: 1px solid var(--lc-line); border-radius: var(--lc-radius); background: var(--lc-sand); }
.company-hero-image img { width: 100%; border-radius: 12px; border: 1px solid var(--lc-line); background: #fff; }
.company-hero-body h1 { margin-top: 0; }
.company-hero-body .shiny_btn02 { margin: 10px 0 0; }
.company-summary { margin: 20px 0; padding: 20px; border: 1px solid var(--lc-line); border-radius: 14px; background: #fff; }
.branch-list { margin-top: 28px; padding: 18px 20px; border: 1px solid var(--lc-line); border-radius: 14px; background: #fff; }
.branch-item { padding: 10px 0; border-bottom: 1px solid var(--lc-line); }
.branch-item:last-child { border-bottom: 0; }

/* plans */
dl.ieplan { max-width: none; margin: 18px 0; padding: 0; background: transparent; border-radius: 0; box-shadow: none; display: block; }
.plan-entry { margin: 0 0 12px; }
dl.ieplan dt { margin: 0; padding: 14px 16px 7px; border: 1px solid var(--lc-line); border-bottom: 0; border-radius: 12px 12px 0 0; background: var(--lc-green-soft); color: var(--lc-green-dark); font-size: 15px; }
dl.ieplan dt img { vertical-align: middle; margin-right: 6px; }
dl.ieplan dd { margin: 0 0 4px; padding: 8px 16px 16px; border: 1px solid var(--lc-line); border-top: 0; border-radius: 0 0 12px 12px; color: var(--lc-ink); background: #fff; font-size: 16px; }

/* buttons */
.link_btn01, .shiny_btn02, .form300, a.misekazu {
  box-sizing: border-box;
  border-radius: 10px;
  box-shadow: none;
  transition: .2s ease;
}
.link_btn01 { max-width: 360px; border: 0; background: var(--lc-green); color: #fff; }
.link_btn01:before { display: none; }
.link_btn01:hover { background: var(--lc-green-dark); color: #fff; transform: translateY(-1px); }
.shiny_btn02 { max-width: 360px; border: 0; background: var(--lc-accent); background-image: none; color: #fff; }
.shiny_btn02::before { display: none; animation: none; }
.shiny_btn02:hover { background: var(--lc-accent-dark); color: #fff; transform: translateY(-1px); }
a.misekazu { max-width: 360px; width: auto; border-color: var(--lc-green); color: var(--lc-green); }
.form300 { border: 0; background: var(--lc-green); color: #fff; }

/* tables */
.table-container, .table-container2 { margin: 14px 0 22px; border: 1px solid var(--lc-line); border-radius: 12px; background: #fff; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { padding: 11px 10px; border-color: var(--lc-line); vertical-align: top; }
th { background: var(--lc-green-dark); color: #fff; font-size: 13px; }
table tr:nth-child(odd), table tr:nth-child(even) { background: #fff; }
table tbody tr:nth-child(even) { background: #f8faf8; }
table tbody tr:hover { background: #f0f6f2; }
.scroll-arrow { position: sticky; right: 10px; float: right; margin-top: -55px; width: 36px; height: 36px; padding: 0; display: grid; place-items: center; border-radius: 50%; font-size: 22px; color: #fff; background: rgba(23,61,46,.82); animation: none; box-shadow: none; pointer-events: none; }

/* forms */
#budgetForm { max-width: 720px; margin: 18px auto; padding: 22px; border: 1px solid var(--lc-line); border-radius: 14px; background: var(--lc-sand); }
.input-group { margin: 0 0 14px; }
.input-group label { display: block; margin-bottom: 5px; font-weight: 700; color: var(--lc-ink); }
.input-group input, .input-group select, textarea, input[type="text"], input[type="email"], input[type="number"], select {
  box-sizing: border-box; max-width: 100%; min-height: 42px; padding: 8px 10px; border: 1px solid #bac8c0; border-radius: 8px; background: #fff; font: inherit; color: var(--lc-ink);
}
#result { margin-top: 16px; }
.result-item { padding: 15px; border: 1px solid var(--lc-line); border-radius: 10px; background: #fff; }

/* legacy content boxes */
.waku1, .waku2, .waku4 { border-color: var(--lc-line); border-radius: 12px; }
.waku3 { margin: 8px 0; padding: 12px; border-radius: 10px; background: #f7f9f7; }

/* footer */
.footer-button-container { display: none; }
footer { display: flex; justify-content: space-between; gap: 20px; padding: 28px 30px 34px; background: #172b23; color: #dce8e1; font-size: 13px; }
footer a { color: #fff; }
.footer-main { max-width: 650px; }
.footer-title { margin-bottom: 6px; font-weight: 800; color: #fff; font-size: 16px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 16px; align-content: flex-start; }
#topButton { right: 24px; bottom: 24px; width: 46px; height: 46px; padding: 0; border-radius: 50%; background: var(--lc-green-dark); }
.footmenu { display: none; }

@media (max-width: 900px) {
  #container { width: min(100% - 18px, 1120px); margin-top: 9px; border-radius: 14px; }
  main { padding: 22px 20px 38px; }
  .site-header { padding: 15px 18px; }
  .site-brand-copy, .site-header-actions { display: none; }
  .site-brand img { width: 190px; }
  .nav-inner { display: block; }
  .nav-toggle { display: flex; width: 100%; min-height: 48px; align-items: center; justify-content: space-between; padding: 0 18px; border: 0; background: var(--lc-green-dark); color: #fff; font: inherit; font-weight: 800; cursor: pointer; }
  .nav-toggle::after { content: "☰"; font-size: 21px; }
  .global-nav.is-open .nav-toggle::after { content: "×"; }
  .nav-list { display: none; grid-template-columns: repeat(2, 1fr); border-top: 1px solid rgba(255,255,255,.1); }
  .global-nav.is-open .nav-list { display: grid; }
  .nav-item a { min-height: 46px; border-right: 1px solid rgba(255,255,255,.08); border-bottom: 1px solid rgba(255,255,255,.08); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .kenbar { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .company-hero { grid-template-columns: 1fr; }
  .company-hero-image { max-width: 520px; }
  .company-card .dtlimg, .company-card .dtlspc { width: 100%; float: none; margin: 0 0 14px; }

  footer { flex-direction: column; }
}

@media (max-width: 560px) {
  body { font-size: 15px; }
  #container { width: 100%; margin: 0; border: 0; border-radius: 0; box-shadow: none; }
  main { padding: 18px 14px 34px; }
  .site-header { padding: 13px 14px; }
  .site-brand img { width: 178px; }
  h1 { font-size: 27px; }
  h2 { margin-top: 34px; font-size: 22px; }
  .home-hero { padding: 28px 20px; border-radius: 13px; }
  .home-hero p { font-size: 15px; }
  .hero-actions a { width: 100%; box-sizing: border-box; }
  .stat-grid, .quick-grid { grid-template-columns: 1fr; }
  .stat-card { padding: 14px 16px; }
  .quick-card { min-height: 0; }
  .kenbar { grid-template-columns: repeat(3, minmax(0,1fr)); padding: 10px; gap: 6px; }
  .kenbar a { font-size: 12px; }
  .company-card { padding: 16px; margin: 18px 0 26px; border-radius: 12px; }
  .company-card > h2 { font-size: 21px; }
  .company-hero { padding: 15px; gap: 16px; }
  th, td { padding: 9px 8px; font-size: 13px; }
  footer { padding: 25px 18px 32px; }
}

.page-lead {
  margin: 0 0 22px;
  padding: 18px 20px;
  border: 1px solid var(--lc-line);
  border-radius: 12px;
  background: #f8faf8;
  color: #46534d;
}
.page-lead strong { color: var(--lc-green-dark); }
.data-note { margin: 12px 0 20px; color: var(--lc-muted); font-size: 13px; }
