/* ============================================================
   CreamCode の共通のヘッダー・フッター・ページの先頭へ戻る（HPとAI活用イメージの両方が読む）
   設計＝04_marketing/職種別AI活用イメージ/ヘッダーをHPと共通にする_設計メモ.md §7
   - クラスは site- で始まる物だけ。素の要素（a・p・ul・summary など）への指定は書かない
   - 外の CSS の影響を受けないよう、一番外（.site-head・.site-foot・.site-pagetop）で
     書体・文字の大きさ・行の高さ・色を指定し直し、中の要素の余白・リストの印も自分で決める
   - 変数は --sc- で始める（読み込むページの変数とぶつからない）
   - 文字の大きさは一番外の 17px を基準に em で書く（読み込むページの html の大きさに頼らない）
   色の名前：-bg・-text・-mute・-link は、読みやすさの機械確認の対象
   ============================================================ */
.site-head, .site-foot, .site-pagetop {
  --sc-bg: #ffffff;
  --sc-soft-bg: #f3f5f7;
  --sc-text: #242e3c;
  --sc-mute: #4a5261;
  --sc-link: #14688c;
  --sc-rule: #3aabd6;
  --sc-tint: rgba(58, 171, 214, 0.12);
  --sc-hair: #d6dbe1;
  --sc-stamp: #e8946a;
  --sc-stamp-deep: #de8355;
  --sc-wrap: 1280px;
  --sc-head-h: 68px;
  --sc-disp: "Zen Kaku Gothic New", "Noto Sans JP", "Hiragino Sans", sans-serif;
  --sc-body: "Noto Sans JP", "Hiragino Sans", "Yu Gothic UI", sans-serif;
  box-sizing: border-box;
  font-family: var(--sc-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.85;
  letter-spacing: normal;
  color: var(--sc-text);
  -webkit-font-smoothing: antialiased;
  word-break: auto-phrase;
  line-break: strict;
  text-align: left;
}
.site-head *, .site-head *::before, .site-head *::after,
.site-foot *, .site-foot *::before, .site-foot *::after { box-sizing: border-box; }
.site-head p, .site-foot p { margin: 0; }
.site-head ul, .site-foot ul { margin: 0; padding: 0; list-style: none; }
.site-head li, .site-foot li { margin: 0; padding: 0; }
.site-head a, .site-foot a { color: var(--sc-link); text-underline-offset: 0.2em; }
.site-head a:focus-visible, .site-foot a:focus-visible, .site-head summary:focus-visible, .site-pagetop:focus-visible { outline: 3px solid var(--sc-rule); outline-offset: 3px; }
.site-head img { display: block; max-width: 100%; height: auto; }
.site-wrap { width: min(var(--sc-wrap), calc(100% - 48px)); margin-inline: auto; }

/* ボタン（押せる物には矢印） */
.site-btn {
  display: inline-block;
  font-family: var(--sc-disp);
  font-weight: 700;
  font-size: 0.94em;
  line-height: 1.3;
  text-decoration: none;
  white-space: nowrap;
  padding: 0.62em 1.1em;
  background: var(--sc-stamp);
  color: #4a2410;
  border: 1px solid #4a2410;
}
.site-head a.site-btn { color: #4a2410; }
.site-btn:hover { background: var(--sc-stamp-deep); }
.site-btn::after { content: "→"; margin-left: 0.6em; }

/* ---------- ヘッダー ---------- */
.site-head { position: sticky; top: 0; z-index: 30; background: var(--sc-bg); border-bottom: 1px solid var(--sc-hair); }
.site-head-in { display: flex; align-items: center; gap: 24px; min-height: var(--sc-head-h); }
.site-logo { margin-right: auto; display: block; color: var(--sc-text); text-decoration: none; }
.site-logo img { height: 40px; width: auto; max-width: none; }   /* 今の本番のPCと同じ（11/17 MJ） */
.site-nav ul { display: flex; gap: 22px; }
.site-nav a { color: var(--sc-text); text-decoration: none; font-weight: 500; font-size: 0.94em; padding-block: 0.4em; border-bottom: 2px solid transparent; white-space: nowrap; }
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--sc-rule); }

/* 幅が狭いときの開閉のメニュー（JSなし） */
.site-menu { display: none; margin: 0; padding: 0; }
.site-menu summary { display: block; list-style: none; cursor: pointer; margin: 0; font-family: var(--sc-disp); font-weight: 700; font-size: 0.94em; line-height: 1.85; padding: 0.5em 0.9em; border: 2px solid var(--sc-text); background: var(--sc-bg); color: var(--sc-text); }
.site-menu summary::-webkit-details-marker { display: none; }
.site-menu summary::before { content: "≡"; margin-right: 0.4em; }
.site-menu[open] summary::before { content: "×"; }
.site-menu summary:hover { background: var(--sc-soft-bg); }
.site-menu-panel { position: absolute; left: 0; right: 0; top: 100%; background: var(--sc-bg); border-bottom: 2px solid var(--sc-text); box-shadow: 0 10px 0 var(--sc-tint); }
.site-menu-panel ul { width: min(var(--sc-wrap), calc(100% - 48px)); margin-inline: auto; padding: 8px 0 4px; }
.site-menu-panel li a { display: block; padding: 14px 0; border-bottom: 1px solid var(--sc-hair); color: var(--sc-text); text-decoration: none; font-weight: 500; }
.site-menu-panel li a[aria-current="page"] { font-weight: 700; }
.site-head .site-menu-cta { width: min(var(--sc-wrap), calc(100% - 48px)); margin: 18px auto 22px; }   /* .site-head p より強く */
.site-menu-cta .site-btn { display: block; text-align: center; font-size: 1em; padding: 0.95em 1.7em; }

@media (max-width: 1080px) {
  .site-nav { display: none; }
  .site-menu { display: block; }
}
@media (max-width: 560px) {
  .site-head-cta { display: none; }
}

/* ---------- フッター ---------- */
.site-foot { background: var(--sc-soft-bg); border-top: 1px solid var(--sc-hair); padding: 64px 0 28px; margin: 0; }
.site-foot-cols { display: grid; grid-template-columns: 5fr 7fr; gap: 32px 56px; }
.site-foot h2 { font-family: var(--sc-disp); font-weight: 900; font-size: 1.12em; line-height: 1.4; letter-spacing: normal; margin: 0 0 12px; padding: 0 0 8px; border: 0; border-bottom: 2px solid var(--sc-text); color: var(--sc-text); background: none; }
.site-foot p { line-height: 1.85; }
.site-foot .site-ai-note { margin-top: 14px; color: var(--sc-mute); font-size: 0.8824em; }   /* 15px（11/17 MJ「もう少し小さく」） */
.site-foot-nav { margin-top: 44px; padding: 20px 0 4px; border-top: 1px solid var(--sc-hair); }
/* 中央寄せ・下線なし・区切りは文字の「｜」でなく左の線（読み上げで読まれない）。
   1行に収まらない幅では、行の頭に線が出ないよう線を消して間をあける（11/17 MJ） */
.site-foot-nav ul { display: flex; flex-wrap: wrap; justify-content: center; row-gap: 10px; font-size: 0.94em; }
.site-foot-nav li { padding-inline: 1em; line-height: 1.4; }
.site-foot-nav li + li { border-left: 1px solid var(--sc-mute); }
.site-foot-nav a { color: var(--sc-text); text-decoration: none; }
.site-foot-nav a:hover { text-decoration: underline; }
.site-foot .site-copy { margin: 20px auto 0; color: var(--sc-mute); font-size: 0.94em; text-align: center; }   /* .site-foot p より強く・左右は .site-wrap と同じ auto */
@media (max-width: 1300px) {   /* 9つのリンクの1行は約1170px＝外枠が 1250px を切ると折り返しうる */
  .site-foot-nav li + li { border-left: 0; }
}
@media (max-width: 900px) {
  .site-foot { padding-top: 48px; }
  .site-foot-cols { grid-template-columns: 1fr; }
}

/* ---------- ページの先頭へ戻る ---------- */
.site-pagetop { position: fixed; right: 18px; bottom: 18px; z-index: 25; display: grid; place-items: center; width: 52px; height: 52px; background: var(--sc-bg); border: 2px solid var(--sc-text); color: var(--sc-text); text-decoration: none; font-family: var(--sc-disp); font-weight: 900; font-size: 22px; line-height: 1; box-shadow: 4px 4px 0 var(--sc-tint); transition: opacity 0.2s; }
.site-pagetop:hover { background: var(--sc-soft-bg); }
.site-pagetop[data-hidden="true"] { opacity: 0; pointer-events: none; }
