@charset "UTF-8";
/* ============================================================
   アイサード総研 コーポレートサイト共通CSS（2026-07 リニューアル）
   方針: ライト＆ポップ／水色ブランド統一／JSなし／ドット絵キャラ活用
   配色の一次入力: com-work/デザイン/ブログ-ブランドカラー暫定-2026-07-29.md
   ============================================================ */

:root {
  --c-accent: #3498db;   /* スカイブルー: リンク・ボタン・見出し差し色 */
  --c-accent-dark: #2980b9;
  --c-panel: #F0F8FF;    /* AliceBlue: パネル・ヒーロー背景 */
  --c-bg: #fdfdfd;
  --c-text: #333;
  --c-muted: #667;
  --c-aisa: #f08080;     /* コーラルピンク（アイサ系・最小限） */
  --c-third: #e0a800;    /* マスタードイエロー（サード系・最小限） */
  --c-border: #dce8f2;
  --radius: 12px;
  --shadow: 0 2px 8px rgba(52, 152, 219, .15);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: var(--c-text);
  background: var(--c-bg);
}

img { max-width: 100%; height: auto; }

a { color: var(--c-accent-dark); }
a:hover { color: var(--c-accent); }

.inner { max-width: 960px; margin: 0 auto; padding: 0 16px; }

/* ---------- ヘッダー・ナビ ---------- */
.site-header {
  background: #fff;
  border-bottom: 3px solid var(--c-accent);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand img { width: 44px; height: auto; }

.brand .brand-name {
  font-weight: bold;
  font-size: 1.05rem;
  color: var(--c-text);
  line-height: 1.3;
}

.brand .brand-name small {
  display: block;
  font-size: .72rem;
  font-weight: normal;
  color: var(--c-muted);
}

.global-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  list-style: none;
}

.global-nav a {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: bold;
  font-size: .95rem;
  color: var(--c-text);
  transition: background .2s, color .2s;
}

.global-nav a:hover,
.global-nav a[aria-current="page"] {
  background: var(--c-accent);
  color: #fff;
}

/* ---------- ヒーロー ---------- */
.hero {
  background: linear-gradient(180deg, var(--c-panel) 0%, #fff 100%);
  padding: 56px 0 40px;
  text-align: center;
}

.hero-chara {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 1.9rem;
  line-height: 1.5;
  margin-bottom: 12px;
}

.hero .lead {
  color: var(--c-muted);
  max-width: 640px;
  margin: 0 auto;
}

/* ページ個別ヒーロー（下層ページ用・小ぶり） */
.page-hero {
  background: linear-gradient(180deg, var(--c-panel) 0%, #fff 100%);
  padding: 40px 0 28px;
  text-align: center;
}

.page-hero h1 { font-size: 1.7rem; margin-top: 12px; }

/* ---------- キャラ（ドット絵） ---------- */
/* 元画像128px。ドット割れ防止のため整数倍サイズ＋pixelatedで表示する */
.chara {
  image-rendering: pixelated;
  width: 128px;
  height: auto;
}

.chara--lg { width: 256px; }
.chara--sm { width: 96px; }  /* アイコン(bust)用。bustは128px正方でないため目安幅 */

/* ---------- セクション共通 ---------- */
.section { padding: 40px 0; }

.section--alt { background: var(--c-panel); }

.section h2 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 3px solid var(--c-accent);
  display: inline-block;
}

.section .section-lead { margin-bottom: 20px; }

/* ---------- カード ---------- */
.card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

.card h3 {
  color: var(--c-accent-dark);
  font-size: 1.1rem;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--c-border);
}

.card p { font-size: .95rem; }

/* ---------- 吹き出し（キャラ紹介） ---------- */
.chara-intro {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

.chara-intro .profile {
  display: flex;
  align-items: center;
  gap: 16px;
}

.bubble {
  position: relative;
  background: #fff;
  border: 2px solid var(--c-accent);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: .95rem;
  flex: 1;
}

.bubble::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 50%;
  transform: translateY(-50%);
  border: 8px solid transparent;
  border-right-color: inherit;
  border-left-width: 0;
}

.bubble--aisa { border-color: var(--c-aisa); }
.bubble--third { border-color: var(--c-third); }

.bubble .name {
  display: block;
  font-weight: bold;
  font-size: .8rem;
  color: var(--c-muted);
  margin-bottom: 2px;
}

/* ---------- ボタン ---------- */
.btn {
  display: inline-block;
  background: var(--c-accent);
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  padding: 12px 28px;
  border-radius: 999px;
  box-shadow: var(--shadow);
  transition: background .2s, transform .2s;
}

.btn:hover {
  background: var(--c-accent-dark);
  color: #fff;
  transform: translateY(-2px);
}

/* ---------- ポスターギャラリー ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

.gallery figure {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 12px;
  text-align: center;
}

.gallery img { border-radius: 6px; }

.gallery figcaption {
  margin-top: 8px;
  font-size: .9rem;
  font-weight: bold;
  color: var(--c-muted);
}

/* 縦長ポスター（過去の研修）は列を狭めて行を分ける */
.gallery--tall { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.gallery--tall img { max-height: 480px; width: auto; }

/* ---------- お知らせ ---------- */
.news dl {
  display: grid;
  grid-template-columns: 8.5em 1fr;
  gap: 6px 12px;
}

.news dt {
  font-weight: bold;
  color: var(--c-accent-dark);
  white-space: nowrap;
}

.news .newicon {
  display: inline-block;
  background: var(--c-aisa);
  color: #fff;
  font-size: .7rem;
  font-weight: bold;
  border-radius: 6px;
  padding: 1px 8px;
  margin-left: 8px;
  vertical-align: middle;
}

/* ---------- 表 ---------- */
.table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  background: #fff;
}

.table th, .table td {
  border: 1px solid var(--c-border);
  padding: 10px 14px;
  text-align: left;
}

.table th {
  background: var(--c-accent);
  color: #fff;
  white-space: nowrap;
}

.table tr:nth-child(even) td { background: var(--c-panel); }

/* 概要表（見出し列が左） */
.table--profile th {
  background: var(--c-panel);
  color: var(--c-text);
  width: 9em;
}

/* ---------- FAQ（detailsで開閉・JSなし） ---------- */
.faq details {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 12px;
  padding: 0;
  overflow: hidden;
}

.faq summary {
  cursor: pointer;
  font-weight: bold;
  padding: 14px 18px;
  list-style-position: inside;
}

.faq summary:hover { background: var(--c-panel); }

.faq .faq-a {
  padding: 0 18px 14px;
  border-top: 1px dashed var(--c-border);
  padding-top: 12px;
  font-size: .95rem;
}

/* ---------- 図（SVG） ---------- */
.diagram { margin: 20px 0; text-align: center; }
.diagram svg { max-width: 100%; height: auto; }

/* ---------- CTA ---------- */
.cta {
  text-align: center;
  padding: 32px 24px;
}

.cta .chara { margin-bottom: 12px; }

/* 最新ブログ記事（トップ・JSで動的表示。取得失敗時はhiddenのまま） */
.latest-post {
  display: block;
  max-width: 480px;
  margin: 0 auto 16px;
  text-decoration: none;
}

.latest-post img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--c-border);
}

.latest-post span {
  display: block;
  margin-top: 8px;
  font-weight: bold;
  font-size: .95rem;
  color: var(--c-text);
}

.latest-post:hover span { color: var(--c-accent-dark); }

/* ---------- フッター ---------- */
.site-footer {
  background: var(--c-panel);
  border-top: 3px solid var(--c-accent);
  margin-top: 48px;
  padding: 32px 0 24px;
  font-size: .9rem;
}

.site-footer .footer-org { font-weight: bold; margin-bottom: 6px; }

.site-footer address { font-style: normal; color: var(--c-muted); }

.site-footer .copyright {
  display: block;
  text-align: center;
  margin-top: 20px;
  color: var(--c-muted);
  font-size: .8rem;
}

/* ---------- レスポンシブ ---------- */
@media (max-width: 600px) {
  .hero h1 { font-size: 1.4rem; }
  .hero-chara { gap: 12px; }
  .hero-chara .chara--lg { width: 128px; }  /* スマホは等倍表示に落とす（整数倍維持） */
  .section h2 { font-size: 1.25rem; }
  .news dl { grid-template-columns: 1fr; gap: 0; }
  .news dt { margin-top: 8px; }
  .chara-intro .profile { flex-direction: column; text-align: center; }
  .bubble::before { display: none; }
}
