/* マルホ総研 コーポレートサイト
   ロゴの緑1色相・文字はグレー・余白広め・楕円ボタン（stayway.co.jp の考え方を参考に独自に作成） */
:root {
  /* 会社ロゴの緑（#1a8216）を基調に、オレンジ（#f89604）は「無料」などの印だけに使う */
  --text: #333f38;
  --muted: #5c6a61;
  --blue: #1a8216;
  --blue-dark: #12620f;
  --sky: #4fa84a;
  --orange: #f89604;
  --link: #0b57d0;
  --link-hover: #083f99;
  --pale: #ecf6ea;
  --pale2: #f6fbf5;
  --line: #d6e6d3;
  --white: #fff;
  --radius: 16px;
  --wrap: 1120px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--white); color: var(--text);
  font-family: "Noto Sans JP", "Hiragino Sans", "BIZ UDPGothic", "Yu Gothic", Meiryo, sans-serif;
  font-size: 16px; line-height: 1.9; letter-spacing: .04em;
  font-feature-settings: "palt";
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--link-hover); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 4px; }

.nb { display: inline-block; }
h1, h2, h3 { word-break: keep-all; overflow-wrap: anywhere; line-height: 1.45; letter-spacing: .06em; color: var(--text); }
h2 { font-size: clamp(1.4rem, 3.2vw, 1.9rem); margin: 0 0 .6em; }
h3 { font-size: 1.15rem; margin: 1.6em 0 .4em; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.en { font-family: "Roboto", "Segoe UI", Arial, sans-serif; letter-spacing: .12em; color: var(--blue); font-weight: 700; font-size: .82rem; text-transform: uppercase; display: block; margin-bottom: .4em; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px 12px; z-index: 99; }

/* ヘッダー */
.site-head { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand-logo { height: 40px; width: auto; display: block; }
.brand-name { font-weight: 700; font-size: 1.15rem; letter-spacing: .1em; line-height: 1.2; }
.brand-name small { display: block; white-space: nowrap; font-weight: 400; font-size: .68rem; letter-spacing: .04em; color: var(--muted); }
.gnav { display: flex; align-items: center; gap: 22px; font-size: .92rem; white-space: nowrap; }
.gnav a { color: var(--text); text-decoration: none; border-bottom: 2px solid transparent; padding: 4px 0; }
.gnav a:hover, .gnav a[aria-current="page"] { color: var(--blue-dark); border-bottom-color: var(--blue); }
.menu { display: none; }
.menu summary { white-space: nowrap; list-style: none; cursor: pointer; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: .9rem; }
.menu summary::-webkit-details-marker { display: none; }
.menu nav { position: absolute; right: 12px; top: 60px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 6px; min-width: 240px; box-shadow: 0 8px 24px rgba(51,63,56,.08); }
.menu nav a { display: block; padding: 10px 16px; color: var(--text); text-decoration: none; }
.menu nav a:hover { background: var(--pale); }

/* ボタン（楕円） */
.btn { text-decoration: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .85em 1.8em; border-radius: 999px; border: 1.5px solid var(--blue); background: #fff; color: var(--blue); font-weight: 700; text-decoration: none; letter-spacing: .06em; line-height: 1.4; transition: background .2s, color .2s; }
.btn:hover { background: var(--pale); color: var(--blue-dark); }
.btn.primary { background: var(--blue); color: #fff; }
.btn.primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }
.btn.small { padding: .55em 1.3em; font-size: .9rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.4em; }

/* セクション */
section { padding: clamp(56px, 9vw, 104px) 0; }
section.pale { background: var(--pale2); }
.sec-head { margin-bottom: 2em; }
.sec-head p { color: var(--muted); max-width: 46em; }

/* ヒーロー */
.hero { padding: clamp(56px, 10vw, 120px) 0 clamp(48px, 8vw, 96px); background: linear-gradient(180deg, var(--pale) 0%, #fff 100%); }
.hero .wrap { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
.hero .eyebrow { display: inline-block; font-size: .88rem; color: var(--blue); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .3em 1.1em; margin-bottom: 1.2em; letter-spacing: .06em; }
.hero h1 { font-size: clamp(1.7rem, 4.2vw, 3rem); margin: 0 0 .6em; letter-spacing: .08em; }
.hero h1 .eyebrow { font-size: .88rem; font-weight: 400; }
.hero .lead { color: var(--muted); max-width: 36em; }
.hero-art { width: 100%; max-width: 420px; justify-self: center; }

/* 数字 */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; }
.stat .num { font-family: "Roboto", "Segoe UI", Arial, sans-serif; font-weight: 700; font-size: clamp(2.4rem, 6vw, 3.6rem); color: var(--blue); line-height: 1.1; letter-spacing: .02em; }
.stat .num small { font-size: 1rem; margin-left: .2em; font-family: inherit; }
.stat .label { font-weight: 700; margin-top: .4em; }
.stat .note { font-size: .8rem; color: var(--muted); line-height: 1.7; margin: .6em 0 0; padding: 0; background: none; border: 0; }

/* カード */
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card h3 { margin-top: 0; }
.card .icon { width: 56px; height: 56px; margin-bottom: 12px; }
.card .no { font-family: "Roboto", "Segoe UI", Arial, sans-serif; color: var(--blue); font-weight: 700; font-size: 1.6rem; display: block; }
a.card { display: block; text-decoration: none; color: var(--text); transition: border-color .2s, box-shadow .2s, transform .2s; box-shadow: 0 2px 8px rgba(51,63,56,.06); }
a.card:hover { border-color: var(--blue); box-shadow: 0 8px 20px rgba(51,63,56,.12); transform: translateY(-2px); color: var(--text); }
.more { display: inline-block; margin-top: .6em; font-weight: 700; color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
a.card .more::after, a.more::after { content: ""; }

/* 流れ */
.flow { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: flow; }
.flow li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: relative; }
.flow li::before { counter-increment: flow; content: counter(flow, decimal-leading-zero); font-family: "Roboto", "Segoe UI", Arial, sans-serif; font-weight: 700; color: var(--blue); font-size: 1.5rem; display: block; }
.flow b { display: block; font-size: 1.05rem; }
.flow .tag { display: inline-block; font-size: .75rem; background: #fff3df; color: #9a5a00; border-radius: 999px; padding: .1em .8em; margin-left: .4em; vertical-align: middle; }
.flow p { color: var(--muted); font-size: .9rem; margin: .4em 0 0; }

/* 表 */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { text-align: left; vertical-align: top; padding: 14px 18px; border-bottom: 1px solid var(--line); }
tr:last-child th, tr:last-child td { border-bottom: 0; }
thead th { background: var(--pale); font-weight: 700; white-space: nowrap; }
tbody th { width: 28%; font-weight: 700; background: var(--pale2); }

/* FAQ */
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 0 24px; margin-bottom: 12px; }
.faq summary:hover { color: var(--blue-dark); }
.faq summary { cursor: pointer; font-weight: 700; padding: 18px 0; list-style: none; position: relative; padding-right: 28px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 14px; color: var(--blue); font-size: 1.4rem; }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 0 18px; color: var(--muted); }

/* 下層ページ */
.page-head { background: var(--pale); padding: clamp(40px, 7vw, 72px) 0 clamp(32px, 5vw, 48px); }
.page-head h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); margin: .2em 0 .4em; }
.page-head p { color: var(--muted); max-width: 46em; margin: 0; }
.crumbs { font-size: .8rem; color: var(--muted); margin: 0; }
.crumbs a { color: var(--link); }
.article { padding: clamp(40px, 6vw, 72px) 0; }
.article .wrap { max-width: 860px; }
.article h2 { margin-top: 2.2em; padding-bottom: .4em; border-bottom: 2px solid var(--pale); }
.article h2:first-child { margin-top: 0; }
.article ul, .article ol { padding-left: 1.4em; }
.article li { margin-bottom: .4em; }
.article .table-wrap { margin: 1.2em 0 1.6em; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .85rem; color: var(--muted); margin-top: 1em; }
.note { background: var(--pale2); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; font-size: .92rem; color: var(--muted); margin: 1.6em 0; }
.note b { color: var(--text); }
.toc { background: var(--pale2); border-radius: var(--radius); padding: 18px 24px; margin-bottom: 2em; font-size: .95rem; }
.toc ol { margin: .4em 0 0; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 2em 0; }
.share-label { font-weight: 700; font-size: .9rem; margin-right: 4px; }
.share .btn { font-size: .85rem; padding: .45em 1.1em; }
.share-msg { font-size: .85rem; color: var(--blue); }
.form-embed { width: 100%; min-height: 1400px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }

/* 補助金ポータル */
.portal { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin: 1em 0 1.6em; }
.portal .card { display: flex; flex-direction: column; }
.portal h3 { margin: .2em 0 .2em; font-size: 1.12rem; }
.portal .org { font-size: .82rem; color: var(--muted); margin-bottom: .8em; }
.portal dl { margin: 0 0 1em; font-size: .92rem; }
.portal dt { font-weight: 700; color: var(--blue-dark); margin-top: .5em; }
.portal dd { margin: 0; }
.portal .links { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px; }
.tag-main { align-self: flex-start; font-size: .75rem; font-weight: 700; background: #fff3df; color: #9a5a00; border-radius: 999px; padding: .15em .9em; }
.portal .card:only-child { grid-column: 1 / -1; }
.st { display: inline-block; font-size: .78rem; font-weight: 700; border-radius: 999px; padding: .1em .9em; margin: .2em 0 0; }
.st-open { background: #1a8216; color: #fff; }
.st-soon { background: #fff3df; color: #9a5a00; }
.st-closed { background: #e6e9e7; color: #4a554e; }

/* 補助額シミュレーター */
.sim { margin: 1em 0 1.6em; }
.sim fieldset { border: 0; padding: 0; margin: 0 0 1em; }
.sim legend { font-weight: 700; margin-bottom: .3em; }
.sim fieldset label { display: inline-flex; align-items: center; gap: .4em; margin: 0 1.4em .3em 0; cursor: pointer; }
.sim-num { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 0; border-top: 1px solid var(--line); font-weight: 700; }
.sim-num input { width: 8em; font: inherit; padding: .45em .7em; border: 1.5px solid #8aa596; border-radius: 10px; text-align: right; }
.sim-total { font-size: 1.1rem; margin: 1em 0 .6em; }
.sim-total b { font-family: "Roboto", "Segoe UI", Arial, sans-serif; font-size: 2rem; color: var(--blue); margin-left: .3em; }

/* 最後の相談導線 */
.cta { background: var(--blue); color: #fff; text-align: center; }
.cta h2 { color: #fff; }
.cta p { color: #e3f2e1; }
.cta .btn-row { justify-content: center; }
.cta .btn { border-color: #fff; }
.cta .btn.primary { background: #fff; color: var(--blue); }
.cta .btn.primary:hover { background: var(--pale); color: var(--blue-dark); }
.cta .btn:not(.primary) { background: transparent; color: #fff; }
.cta .btn:not(.primary):hover { background: rgba(255,255,255,.12); }

/* フッター */
.site-foot { background: #24312a; color: #cbd8cf; padding: 56px 0 96px; font-size: .9rem; }
.site-foot a { color: #fff; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.4); }
.site-foot .cols { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; }
.site-foot .fname { color: #fff; font-weight: 700; font-size: 1.05rem; }
.site-foot .links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-foot .copy { margin-top: 32px; font-size: .78rem; color: #8fa196; }

/* スマホ下部の固定ボタン */
.fixed-cta { display: none; }

@media (max-width: 1320px) {
  .brand-name { display: none; }
}
@media (max-width: 1180px) {
  .gnav { display: none; }
  .menu { display: block; }
}
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { max-width: 280px; order: -1; }
  .g3, .flow { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .brand-name small { display: none; }
  .stats, .g2, .g3, .flow, .portal { grid-template-columns: 1fr; }
  .site-foot .cols { grid-template-columns: 1fr; }
  th, td { padding: 12px 14px; }
  tbody th { width: 34%; }
  .fixed-cta { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.97); border-top: 1px solid var(--line); }
  .fixed-cta .btn { flex: 1; padding: .7em .6em; font-size: .9rem; }
  .fixed-cta .btn.line { flex: .7; }
}
