/* zigyo.ai トップページ専用。紙色の地に濃紺インクと群青ひとつ。ほかのページには影響しない */
.portal-site.is-home {
  --h-paper: #f3f5f1; --h-tint: #e7ebe4; --h-ink: #10161c; --h-sub: #4b5660; --h-rule: rgba(16,22,28,.16); --h-blue: #2433e6;
  background: var(--h-paper); color: var(--h-ink);
  font-family: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}
.is-home main { background: var(--h-paper); }
.is-home .hm-hero, .is-home .hm-ways, .is-home .hm-sec, .is-home .hm-end { font-feature-settings: "palt"; }

/* ヘッダーを紙色に */
.portal-site.is-home .site-header { background: rgba(243,245,241,.92); border-bottom: 1px solid var(--h-rule); }
.portal-site.is-home .logo-image img { filter: none; }
.portal-site.is-home .global-nav a:not(.btn) { color: var(--h-ink); }
.portal-site.is-home .global-nav a:not(.btn)::after { background: var(--h-blue); }
.portal-site.is-home .global-nav .nav-member { color: var(--h-blue); }
.portal-site.is-home .site-header .btn-small, .portal-site.is-home .header-cta, .portal-site.is-home .site-header .btn-primary { background: var(--h-blue) !important; color: #fff !important; border-color: var(--h-blue); box-shadow: none; }
.portal-site.is-home .site-header .btn-small:hover, .portal-site.is-home .site-header .btn-primary:hover { background: var(--h-ink) !important; color: #fff !important; border-color: var(--h-ink); }
.portal-site.is-home .menu-toggle { color: var(--h-ink); border-color: var(--h-rule); }
.is-home :focus-visible { outline: 3px solid var(--h-blue); outline-offset: 3px; }

/* 見出しの色は、ほかのページ用の白指定を打ち消す */
.portal-site.is-home main :is(h1, h2, h3) { color: inherit; text-wrap: balance; }
.portal-site.is-home .hm-ways a:hover h2 { color: var(--h-blue); }

/* ヒーロー */
.hm-hero { padding: clamp(56px, 9vw, 120px) 0 clamp(48px, 7vw, 96px); }
.hm-title { font-size: clamp(2.6rem, 8.2vw, 6.6rem); line-height: 1.12; font-weight: 900; letter-spacing: -.02em; margin: 0; max-width: 11em; }
.hm-lead { font-size: clamp(1rem, 1.5vw, 1.15rem); line-height: 1.95; color: var(--h-sub); max-width: 38em; margin: 28px 0 0; }

.hm-moves { margin-top: clamp(40px, 6vw, 72px); max-width: 980px; }
.hm-moves-head { font-weight: 700; font-size: .95rem; color: var(--h-sub); margin: 0 0 10px; }
.hm-moves ul { list-style: none; margin: 0; padding: 0; border-top: 3px solid var(--h-ink); }
.hm-moves li { border-bottom: 1px solid var(--h-rule); }
.hm-moves li a { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; padding: 20px 4px; color: var(--h-ink); text-decoration: none; background: linear-gradient(var(--h-blue), var(--h-blue)) no-repeat left / 0 100%; transition: background-size .35s cubic-bezier(.2,.7,.2,1), color .2s, padding .35s; }
.hm-say { font-size: clamp(1.1rem, 2.3vw, 1.6rem); font-weight: 700; line-height: 1.45; }
.hm-to { flex: none; font-size: .9rem; font-weight: 500; color: var(--h-sub); white-space: nowrap; }
.hm-moves li a:hover, .hm-moves li a:focus-visible { background-size: 100% 100%; color: #fff; padding-inline: 18px; }
.hm-moves li a:hover .hm-to, .hm-moves li a:focus-visible .hm-to { color: #fff; }
.hm-moves-foot { margin: 20px 0 0; color: var(--h-sub); }
.hm-moves-foot a { color: var(--h-blue); font-weight: 700; }
.hm-facts { margin: 36px 0 0; font-size: .85rem; color: var(--h-sub); }

/* 学ぶ・調べる・任せる */
.hm-ways { border-top: 1px solid var(--h-rule); border-bottom: 1px solid var(--h-rule); }
.hm-ways-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.hm-ways a { padding: clamp(28px, 4vw, 48px) clamp(16px, 3vw, 40px) clamp(28px, 4vw, 48px) 0; color: var(--h-ink); text-decoration: none; }
.hm-ways a + a { padding-left: clamp(16px, 3vw, 40px); border-left: 1px solid var(--h-rule); }
.hm-ways h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); font-weight: 900; margin: 0 0 12px; line-height: 1.1; transition: color .2s; }
.hm-ways p { margin: 0; color: var(--h-sub); line-height: 1.8; }
.hm-ways a:hover h2 { color: var(--h-blue); }

/* 共通セクション */
.hm-sec { padding: clamp(56px, 8vw, 104px) 0; }
.hm-sec-tint { background: var(--h-tint); }
.hm-sec h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 900; line-height: 1.35; margin: 0; letter-spacing: -.01em; }
.hm-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.hm-split-head p { color: var(--h-sub); line-height: 1.9; margin: 16px 0 0; }

.hm-flow { list-style: none; margin: 0; padding: 0; border-top: 3px solid var(--h-ink); }
.hm-flow li { border-bottom: 1px solid var(--h-rule); }
.hm-flow a { display: flex; gap: 20px; padding: 22px 0; color: var(--h-ink); text-decoration: none; line-height: 1.8; color: var(--h-sub); }
.hm-flow strong { display: block; color: var(--h-ink); font-size: 1.2rem; margin-bottom: 4px; }
.hm-n { flex: none; width: 2.2em; font-size: 2rem; font-weight: 900; color: var(--h-blue); line-height: 1.2; }
.hm-flow a:hover strong { color: var(--h-blue); }

.hm-pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); }
.hm-pair a { display: block; color: var(--h-ink); text-decoration: none; border-top: 3px solid var(--h-ink); padding-top: 24px; }
.hm-pair p { color: var(--h-sub); line-height: 1.9; margin: 14px 0 20px; }
.hm-pair span { font-weight: 700; color: var(--h-blue); border-bottom: 2px solid var(--h-blue); padding-bottom: 2px; }

.hm-line-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; border-bottom: 3px solid var(--h-ink); padding-bottom: 14px; }
.hm-line-head a { color: var(--h-blue); font-weight: 700; }
.hm-index { list-style: none; margin: 0; padding: 0; }
.hm-index li { border-bottom: 1px solid var(--h-rule); }
.hm-index a { display: grid; grid-template-columns: 9em minmax(0, 1fr) auto; gap: 20px; align-items: baseline; padding: 18px 0; color: var(--h-ink); text-decoration: none; }
.hm-index time, .hm-index span { color: var(--h-sub); font-size: .88rem; }
.hm-index strong { font-size: 1.1rem; line-height: 1.6; }
.hm-index a:hover strong { color: var(--h-blue); text-decoration: underline; text-underline-offset: 4px; }

.hm-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.hm-plans > div { padding: 28px; border: 1px solid var(--h-rule); background: var(--h-paper); display: flex; flex-direction: column; }
.hm-plans h3 { margin: 0 0 14px; font-size: 1.3rem; font-weight: 900; }
.hm-plans ul { margin: 0 0 24px; padding-left: 1.2em; line-height: 1.9; flex: 1; }
.hm-plan-pro { background: var(--h-ink) !important; color: #fff; border-color: var(--h-ink) !important; }

.hm-btn { display: inline-block; padding: 14px 26px; font-weight: 700; text-decoration: none; text-align: center; border: 2px solid transparent; transition: background .2s, color .2s, border-color .2s; align-self: flex-start; }
.hm-btn-line { border-color: var(--h-ink); color: var(--h-ink); }
.hm-btn-line:hover { background: var(--h-ink); color: #fff; }
.hm-btn-solid { background: var(--h-blue); color: #fff; }
.hm-btn-solid:hover { background: #fff; color: var(--h-ink); }
.hm-btn-paper { background: var(--h-paper); color: var(--h-ink); padding: 18px 40px; font-size: 1.15rem; }
.hm-btn-paper:hover { background: var(--h-ink); color: #fff; }

/* 結び */
.hm-end { background: var(--h-blue); color: #fff; padding: clamp(64px, 10vw, 128px) 0; }
.hm-end h2 { font-size: clamp(2.2rem, 6.4vw, 5rem); font-weight: 900; line-height: 1.2; margin: 0 0 24px; letter-spacing: -.02em; }
.hm-end p { max-width: 36em; line-height: 1.9; margin: 0 0 32px; }
.hm-end .hm-end-note { margin: 18px 0 0; font-size: .9rem; opacity: .85; }
.hm-end :focus-visible { outline-color: #fff; }

@media (max-width: 860px) {
  .hm-ways-grid { grid-template-columns: 1fr; }
  .hm-ways a, .hm-ways a + a { padding-inline: 0; border-left: 0; }
  .hm-ways a + a { border-top: 1px solid var(--h-rule); }
  .hm-split, .hm-pair, .hm-plans { grid-template-columns: 1fr; }
  .hm-index a { grid-template-columns: 1fr; gap: 4px; }
  .hm-moves li a { flex-direction: column; gap: 4px; }
}
@media (prefers-reduced-motion: reduce) { .hm-moves li a { transition: none; } }
