/* 全ページ共通：色・文字・横幅・ヘッダー・フッター・再利用部品。 */
:root {
  --ae-bg: #F2F2F0;
  --ae-paper: #FFFFFF;
  --ae-ink: #222222;
  --ae-red: #F03616;
  --ae-line: #D5D5D1;
  --ae-soft: #E9E9E7;
  --ae-dark: #2A2A2A;
  --ae-black: #000000;
  --ae-space: 82px;
  --ae-content-width: 1500px;
  --ae-reading-width: 720px;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 20px; }
body { margin: 0; }
.ae-site {
  background: var(--ae-bg);
  color: var(--ae-ink);
  font-family: "Noto Sans JP", sans-serif;
  font-size: 15px;
  line-height: 2;
  letter-spacing: .05em;
  overflow-wrap: anywhere;
}
h1, h2, h3, p { margin: 0; }
h2 { font-size: 36px; line-height: 1.2; font-weight: 700; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--ae-ink); outline-offset: 5px; }
[hidden] { display: none !important; }
.ae-wrap { width: 89%; max-width: var(--ae-content-width); margin-inline: auto; }
.ae-head { border-bottom: 1px solid var(--ae-line); }
.ae-head-inner { min-height: 114px; display: flex; align-items: center; gap: 28px; }
.ae-brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.ae-brand-name { font-size: 23px; font-weight: 700; letter-spacing: .06em; line-height: 1.2; }
.ae-brand-name small { display: block; font-size: 11px; letter-spacing: .15em; font-weight: 400; margin-top: 8px; }
.ae-mark { width: 8px; height: 30px; background: var(--ae-red); transform: skewY(-20deg); }
.ae-nav { display: flex; align-items: center; justify-content: flex-end; gap: 27px; flex: 1; font-size: 15px; font-weight: 700; }
.ae-nav a { white-space: nowrap; }
.ae-nav a:hover { text-decoration: underline; text-underline-offset: 7px; }
.ae-nav-contact { display: none; }
.ae-menu-toggle { display: none; }
.ae-contact-button { display: inline-flex; align-items: center; justify-content: center; gap: 25px; border: 0; padding: 13px 24px; background: var(--ae-black); color: var(--ae-paper); font-weight: 700; font-size: 14px; white-space: nowrap; }
.ae-contact-button:hover { background: var(--ae-dark); }
.ae-icon { display: inline-flex; align-items: center; justify-content: center; width: 1.2em; flex-shrink: 0; font-style: normal; line-height: 1; }
.ae-icon::before { content: "→"; }
.ae-icon[data-icon="arrow-up-right"]::before { content: "↗"; }
.ae-icon[data-icon="arrow-down"]::before { content: "↓"; }
.ae-icon[data-icon="arrow-left"]::before { content: "←"; }
.ae-kicker { display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 700; letter-spacing: .13em; line-height: 1.5; }
.ae-kicker::before { content: ""; width: 26px; height: 3px; background: var(--ae-red); flex-shrink: 0; }
.ae-text-link { display: inline-flex; align-items: center; gap: 17px; background: none; border: 0; border-bottom: 1px solid var(--ae-ink); padding: 6px 0; font-size: 14px; font-weight: 700; line-height: 1.8; min-height: 44px; }
.ae-text-link:hover { border-bottom-color: var(--ae-red); }
.ae-panel { background: var(--ae-paper); border-radius: 10px; padding: 35px 36px 31px; display: flex; flex-direction: column; min-width: 0; }
.ae-panel .ae-kicker { font-size: 12px; }
.ae-panel h2 { margin: 17px 0 25px; }
.ae-panel-end { display: flex; justify-content: flex-end; margin-top: auto; padding-top: 30px; }
.ae-small-arrow { display: inline-flex; border: 1px solid var(--ae-line); border-radius: 50%; width: 30px; height: 30px; align-items: center; justify-content: center; flex-shrink: 0; }
.ae-posts { list-style: none; padding: 0; margin: 0; }
.ae-post { border-top: 1px solid var(--ae-line); }
.ae-post:last-child { border-bottom: 1px solid var(--ae-line); }
.ae-post > :is(a, button) { display: grid; grid-template-columns: 66px minmax(0, 1fr) 20px; gap: 17px; align-items: center; text-align: left; width: 100%; border: 0; background: none; padding: 22px 0; }
.ae-post:hover { background: var(--ae-soft); }
.ae-post-tag { display: block; font-size: 12px; line-height: 1.8; }
.ae-post-title { display: block; font-size: 16px; font-weight: 700; line-height: 1.93; }
.ae-cta { background: var(--ae-paper); border-top: 3px solid var(--ae-red); padding: var(--ae-space) 0 90px; }
.ae-cta-inner { max-width: var(--ae-reading-width); }
.ae-cta h2 { font-size: 36px; line-height: 1.6; margin-bottom: 40px; }
.ae-form { min-width: 0; }
.ae-form-fields { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.ae-field { min-width: 0; }
.ae-field label { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; margin-bottom: 10px; }
.ae-required { font-size: 11px; font-weight: 400; padding: 0 6px; background: var(--ae-soft); line-height: 1.8; letter-spacing: .05em; }
.ae-optional { font-size: 11px; font-weight: 400; }
.ae-field input, .ae-field textarea { display: block; width: 100%; border: 1px solid var(--ae-line); border-radius: 4px; background: var(--ae-bg); padding: 12px 14px; font-size: 16px; line-height: 1.7; letter-spacing: .025em; }
.ae-field textarea { min-height: 150px; resize: vertical; }
.ae-field input:focus-visible, .ae-field textarea:focus-visible { outline: 2px solid var(--ae-ink); outline-offset: 3px; }
.ae-form-actions { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; margin-top: 25px; }
.ae-form-actions .ae-contact-button { padding: 16px 27px; }
.ae-preview-note { font-size: 12px; }
.ae-form-note { font-size: 12px; }
.ae-form-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.ae-turnstile { max-width: 100%; min-height: 65px; }
.ae-form-status { font-size: 14px; margin-top: 14px; overflow-wrap: anywhere; }
.ae-form :is(button:disabled) { opacity: .5; cursor: not-allowed; }
.ae-form-success h3 { font-size: 24px; line-height: 1.6; margin-bottom: 15px; }
.ae-confirm h3 { font-size: 24px; line-height: 1.6; margin-bottom: 15px; }
.ae-confirm dl { margin: 25px 0; }
.ae-confirm dl > div { padding: 15px 0; border-top: 1px solid var(--ae-line); }
.ae-confirm dt { font-size: 12px; font-weight: 700; margin-bottom: 5px; }
.ae-confirm dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.ae-foot { background: var(--ae-dark); color: var(--ae-paper); padding: 38px 0; }
.ae-foot-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.ae-foot .ae-brand-name { font-size: 20px; }
.ae-foot-brand { min-width: 0; max-width: 100%; }
.ae-foot-address { max-width: 32em; margin: 14px 0 0; font-size: 12px; font-style: normal; line-height: 1.8; }
.ae-foot-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 12px; }
.ae-foot-nav a { display: inline-flex; align-items: center; min-height: 44px; }
.ae-foot small { font-size: 11px; }

/* 下層ページ共通：タイトル・本文・カード・表・記事の構成部品。 */
.ae-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--ae-red); text-underline-offset: 8px; text-decoration-thickness: 2px; }
.ae-page-wrap { max-width: 1100px; }
.ae-reading { max-width: var(--ae-reading-width); }
.ae-breadcrumbs { padding-block: 22px; font-size: 12px; line-height: 1.8; }
.ae-breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; list-style: none; padding: 0; margin: 0; }
.ae-breadcrumbs li + li::before { content: "/"; padding-right: 12px; }
.ae-breadcrumbs a { text-decoration: underline; text-underline-offset: 4px; display: inline-block; padding-block: 10px; }
.ae-page-header { padding-block: 38px 60px; }
.ae-page-title { font-size: 44px; font-weight: 700; line-height: 1.5; letter-spacing: .035em; margin-top: 20px; }
.ae-page-lead { max-width: var(--ae-reading-width); margin-top: 24px; }
.ae-content-section { padding-block: 44px; border-top: 1px solid var(--ae-line); scroll-margin-top: 20px; }
.ae-content-section > h2 { font-size: 30px; line-height: 1.5; margin-bottom: 26px; }
.ae-prose { font-size: 16px; line-height: 2; }
.ae-prose > * + * { margin-top: 22px; }
.ae-prose h2 { font-size: 30px; line-height: 1.5; margin-top: 46px; }
.ae-prose h3 { font-size: 21px; line-height: 1.6; margin-top: 32px; }
.ae-prose ul, .ae-prose ol { padding-left: 1.5em; }
.ae-prose a { text-decoration: underline; text-underline-offset: 4px; }
.ae-prose blockquote { margin-inline: 0; border-left: 3px solid var(--ae-red); padding: 18px 24px; background: var(--ae-paper); }
.ae-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.ae-card { padding: 30px; background: var(--ae-paper); border-radius: 10px; min-width: 0; }
.ae-card h3 { font-size: 21px; line-height: 1.6; margin-bottom: 16px; }
.ae-card-title { font-size: 23px; line-height: 1.6; }
.ae-card .ae-text-link { margin-top: 22px; }
.ae-definition { margin: 0; }
.ae-definition > div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 28px; padding: 20px 0; border-bottom: 1px solid var(--ae-line); }
.ae-definition dt { font-weight: 700; }
.ae-definition dd { margin: 0; }
.ae-table-wrap { overflow-x: auto; }
.ae-table { border-collapse: collapse; width: 100%; font-size: 14px; }
.ae-table caption { text-align: left; margin-bottom: 14px; font-weight: 700; }
.ae-table th, .ae-table td { text-align: left; vertical-align: top; border-bottom: 1px solid var(--ae-line); padding: 14px 18px; overflow-wrap: anywhere; }
.ae-table th { background: var(--ae-soft); font-weight: 700; }
.ae-toc { padding: 24px 28px; background: var(--ae-paper); border-radius: 10px; }
.ae-toc h2 { font-size: 18px; line-height: 1.6; margin-bottom: 12px; }
.ae-toc ol { margin: 0; padding-left: 1.5em; }
.ae-toc a { display: inline-block; padding-block: 8px; text-decoration: underline; text-underline-offset: 4px; }
.ae-article-meta { display: flex; flex-wrap: wrap; gap: 12px 24px; font-size: 12px; margin-top: 20px; }
.ae-article-meta span { background: var(--ae-soft); padding: 2px 10px; }
.ae-article-meta .ae-meta-date { background: transparent; padding-inline: 0; }
.ae-empty { padding: 30px; background: var(--ae-paper); border-radius: 10px; }
.ae-return { border-top: 1px solid var(--ae-line); margin-top: 44px; padding-top: 24px; }

/* タブレット：共通ナビゲーションをメニューにまとめる。 */
@media (max-width: 1023px) {
  .ae-head-inner { gap: 16px; flex-wrap: wrap; min-height: 88px; padding-block: 18px; }
  .ae-head-cta { display: none; }
  .ae-menu-toggle { margin-left: auto; min-height: 44px; padding: 8px 12px; border: 1px solid var(--ae-ink); background: transparent; font-size: 14px; font-weight: 700; }
  .js-ready .ae-menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .ae-nav { order: 3; width: 100%; flex: auto; flex-direction: column; align-items: stretch; gap: 0; padding-top: 12px; border-top: 1px solid var(--ae-line); }
  .ae-nav a { display: flex; align-items: center; min-height: 48px; padding: 8px 0; }
  .ae-nav .ae-nav-contact { display: flex; }
  .js-ready .ae-head:not(.is-menu-open) .ae-nav { display: none; }
  .ae-panel { padding: 30px 24px; }
  h2 { font-size: 30px; }
  .ae-post > :is(a, button) { grid-template-columns: minmax(0, 1fr) 20px; gap: 5px 15px; }
  .ae-post-tag { grid-column: 1 / -1; }
  .ae-page-title { font-size: 38px; }
}

/* スマートフォン：共通部品の余白・文字・操作範囲を調整する。 */
@media (max-width: 767px) {
  :root { --ae-space: 50px; }
  .ae-wrap { width: calc(100% - 40px); }
  .ae-brand-name { font-size: 19px; }
  .ae-head-inner { gap: 10px; }
  h2 { font-size: 28px; }
  .ae-post-title { font-size: 14px; line-height: 1.9; }
  .ae-post-title br { display: none; }
  .ae-cta { padding-bottom: 50px; }
  .ae-cta h2 { font-size: 28px; margin-bottom: 30px; }
  .ae-form-fields { gap: 20px; }
  .ae-form-actions { flex-direction: column; align-items: stretch; }
  .ae-form-actions .ae-contact-button { width: 100%; white-space: normal; }
  .ae-foot-bottom { flex-direction: column; align-items: flex-start; gap: 22px; }
  .ae-foot-nav { flex-direction: column; gap: 0; }
  .ae-breadcrumbs { padding-block: 14px; }
  .ae-page-header { padding-block: 22px 40px; }
  .ae-page-title { font-size: 30px; margin-top: 16px; }
  .ae-page-lead { margin-top: 20px; }
  .ae-content-section { padding-block: 32px; }
  .ae-content-section > h2, .ae-prose h2 { font-size: 25px; }
  .ae-prose h3, .ae-card h3 { font-size: 20px; }
  .ae-card-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .ae-card, .ae-empty { padding: 24px; }
  .ae-definition > div { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .ae-table th, .ae-table td { padding: 12px 10px; }
  .ae-toc { padding: 22px; }
}
