/* =========================================================
   ロボット研究会 公式サイト デザインシステム
   デザイン案（Figma 書き出し SVG）の色・形にあわせる
   ========================================================= */
:root {
  --navy: #2b416e;
  --navy-dark: #1f3053;
  --bg: #d1d1d6;
  --surface: #ffffff;
  --yellow: #e8c44d;
  --cyan: #64b2c5;
  --line: #c1c1c1;
  --text: #111418;
  --muted: #8e8e93;
  --ok: #2f7d4f;
  --warn: #b26a00;
  --danger: #b3261e;
  --info: #2b5bb5;
  --radius-s: 10px;
  --radius-l: 20px;
  --gutter: 60px;
  --max: 1320px;
  --font: 'Noto Sans JP', system-ui, -apple-system, 'Hiragino Sans', 'Yu Gothic UI', sans-serif;
  --font-display: 'Anton', 'Impact', 'Arial Narrow', sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.75;
  font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: var(--navy); }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 2px;
}
.container { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--yellow); color: var(--navy); padding: 8px 16px; z-index: 100; }
.skip-link:focus { left: 8px; }

/* ---------- ヘッダー ---------- */
.site-header { background: var(--navy); color: #fff; }
.site-header__top { display: flex; align-items: center; gap: 24px; padding-top: 18px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 16px; color: #fff; text-decoration: none; }
.brand__wordmark { font-family: var(--font-display); font-size: clamp(46px, 7vw, 86px); line-height: 1; letter-spacing: .01em; }
.brand__logo { width: 72px; height: 84px; object-fit: contain; }
.brand__logo--placeholder {
  width: 72px; height: 84px; border: 2px dashed rgba(255,255,255,.35); border-radius: 8px;
  display: grid; place-items: center; font-size: 11px; color: rgba(255,255,255,.6); text-align: center; line-height: 1.3;
}
.site-header__actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.btn-contact {
  display: inline-flex; align-items: center; justify-content: center; min-width: 180px; height: 45px; padding: 0 24px;
  background: var(--yellow); color: var(--navy); font-weight: 700; font-size: 18px; border-radius: var(--radius-s); text-decoration: none;
}
.btn-contact:hover { text-decoration: underline; }
.site-header__rule { border: 0; border-top: 5px solid var(--line); margin: 0; }
.site-header__sub { display: flex; align-items: center; gap: 24px; padding-top: 12px; padding-bottom: 18px; flex-wrap: wrap; }
.site-header__club { color: var(--line); font-weight: 700; font-size: 16px; margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; }
.site-header__url { color: var(--cyan); font-size: 13px; font-weight: 700; text-decoration: none; word-break: break-all; }
.site-header__url:hover { text-decoration: underline; }
.global-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px 30px; flex-wrap: wrap; }
.global-nav a { color: #fff; text-decoration: none; font-weight: 700; font-size: 16px; padding: 4px 0; border-bottom: 2px solid transparent; }
.global-nav a:hover, .global-nav a[aria-current='page'] { border-bottom-color: var(--yellow); }
.site-header__sub .global-nav { margin-left: auto; }

/* ---------- 見出し ---------- */
.section { padding-top: 36px; padding-bottom: 36px; }
.section-title {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
  color: var(--navy); font-size: clamp(26px, 3vw, 34px); font-weight: 800; line-height: 1.2;
  margin: 0 0 22px; padding-bottom: 12px; border-bottom: 5px solid var(--navy);
}
.section-title small { font-family: var(--font-display); font-weight: 400; font-size: 16px; letter-spacing: .08em; color: var(--muted); }
.lead { font-size: 17px; max-width: 760px; }
.page-head { padding-top: 40px; }
.page-head .section-title { font-size: clamp(30px, 4vw, 42px); }

/* ---------- メインビジュアル ---------- */
.hero { padding-top: 24px; }
.hero__frame { position: relative; border-radius: var(--radius-l); overflow: hidden; aspect-ratio: 1320 / 424; background: #20304f; min-height: 260px; }
.hero__img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.hero__copy { position: absolute; top: 12%; left: 4%; color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.45); }
.hero__catch { font-size: clamp(26px, 4vw, 52px); font-weight: 900; margin: 0; line-height: 1.25; }
.hero__band {
  position: absolute; left: 0; right: 0; bottom: 0; height: 80px; background: rgba(0,0,0,.6);
  display: flex; align-items: center; gap: 20px; padding: 0 30px; color: #fff;
}
.tag {
  display: inline-flex; align-items: center; justify-content: center; min-width: 70px; height: 20px; padding: 0 10px;
  border-radius: 999px; background: var(--yellow); color: var(--navy); font-size: 12px; font-weight: 800; letter-spacing: .04em;
}
.hero__band p { margin: 0; font-size: clamp(16px, 2vw, 26px); font-weight: 800; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; text-shadow: none; }

/* メインビジュアルのスライド */
.hero-slider { position: absolute; inset: 0; }
.hero-slider__track {
  display: flex; width: 100%; height: 100%; overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; overscroll-behavior-x: contain;
}
.hero-slider__track::-webkit-scrollbar { display: none; }
.hero-slider__slide { position: relative; flex: 0 0 100%; height: 100%; overflow: hidden; scroll-snap-align: start; scroll-snap-stop: always; }
.hero-slider__empty {
  width: 100%; height: 100%; display: grid; place-content: center end; text-align: right; padding: 0 6% 60px 0; gap: 4px; color: rgba(255,255,255,.55);
  background: linear-gradient(135deg, #2b416e 0%, #1f3053 100%);
}
.hero-slider__empty span { font-family: var(--font-display); font-size: clamp(32px, 6vw, 72px); letter-spacing: .08em; color: rgba(255,255,255,.18); }
.hero-slider__empty small { font-weight: 700; font-size: 13px; }

/* 操作：● ● ○ ○ と一時停止だけのシンプルな形。PC は帯の右側に重ねる */
.hero { position: relative; }
.hero-ctrl {
  position: absolute; right: calc(var(--gutter) + 28px); bottom: 0; height: 80px; z-index: 2;
  display: flex; align-items: center; gap: 14px;
}
.hero-ctrl button { -webkit-appearance: none; appearance: none; border: 0; padding: 0; background: none; cursor: pointer; color: #fff; }
.hero-ctrl__dots { display: flex; align-items: center; gap: 4px; }
/* 押しやすいようにボタン自体は大きめ、見た目の丸は ::before で小さく */
.hero-ctrl__dots button { width: 20px; height: 24px; display: grid; place-items: center; transition: width .35s cubic-bezier(.2,.7,.2,1); }
.hero-ctrl__dots button::before {
  content: ''; width: 8px; height: 8px; border-radius: 999px; background: rgba(255,255,255,.55);
  transition: width .35s cubic-bezier(.2,.7,.2,1), background-color .3s;
}
.hero-ctrl__dots button:hover::before { background: #fff; }
.hero-ctrl__dots button[aria-current='true'] { width: 34px; }
.hero-ctrl__dots button[aria-current='true']::before { width: 24px; background: var(--yellow); }
.hero-ctrl .hero-ctrl__play { width: 30px; height: 30px; border-radius: 999px; display: grid; place-items: center; border: 1.5px solid rgba(255,255,255,.6); opacity: .85; transition: opacity .2s; }
.hero-ctrl__play:hover { opacity: 1; }
.hero-ctrl__play svg { width: 10px; height: 12px; fill: currentColor; }
.hero-ctrl__icon-play { display: none; }
.hero-ctrl__play[aria-pressed='true'] .hero-ctrl__icon-pause { display: none; }
.hero-ctrl__play[aria-pressed='true'] .hero-ctrl__icon-play { display: block; }
.hero__band { padding-right: 260px; }
.hero__copy, .hero__band { z-index: 1; }
.hero__copy { pointer-events: none; }
.hero__copy a, .hero__copy button { pointer-events: auto; }
@media (prefers-reduced-motion: reduce) { .hero-slider__track { scroll-behavior: auto; } }

/* ---------- 仮画像 ---------- */
.placeholder {
  width: 100%; height: 100%; min-height: 120px; display: grid; place-items: center; text-align: center; padding: 12px;
  background: repeating-linear-gradient(135deg, #3a4f7c 0 14px, #34497a 14px 28px); color: rgba(255,255,255,.85);
  font-size: 13px; font-weight: 700; line-height: 1.5;
}
.hero__frame .placeholder { place-items: start end; padding: 14px 20px; font-size: 12px; text-align: right; }
.placeholder--light { background: repeating-linear-gradient(135deg, #e6e7ec 0 14px, #dfe0e6 14px 28px); color: var(--muted); }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 22px;
  border-radius: 999px; border: 3px solid var(--navy); background: transparent; color: var(--navy);
  font: inherit; font-weight: 800; font-size: 16px; text-decoration: none; cursor: pointer;
}
.btn:hover { background: rgba(43,65,110,.08); }
.btn--solid { background: var(--navy); color: #fff; }
.btn--solid:hover { background: var(--navy-dark); }
.btn--yellow { background: var(--yellow); border-color: var(--yellow); color: var(--navy); }
.btn--yellow:hover { background: var(--yellow); text-decoration: underline; }
.btn--light { border-color: #fff; color: #fff; }
.btn--light:hover { background: rgba(255,255,255,.12); }
.btn--danger { border-color: var(--danger); color: var(--danger); }
.btn--danger.btn--solid { background: var(--danger); color: #fff; }
.btn--small { min-height: 34px; padding: 0 14px; font-size: 14px; border-width: 2px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.more { display: flex; justify-content: center; margin-top: 26px; }
.more .btn { min-width: 300px; min-height: 40px; }
.more .btn svg { width: 16px; height: 16px; }

/* ---------- 活動記録の行（デザイン案のリスト） ---------- */
.post-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 25px; }
.post-row {
  display: flex; align-items: center; gap: 24px; min-height: 80px; padding: 14px 30px; background: var(--surface);
  border-radius: var(--radius-s); text-decoration: none; color: var(--text); transition: box-shadow .15s;
}
.post-row:hover { box-shadow: 0 4px 16px rgba(43,65,110,.18); }
.pill {
  flex: none; display: inline-flex; align-items: center; justify-content: center; min-width: 120px; height: 40px; padding: 0 14px;
  background: var(--navy); color: #fff; border-radius: var(--radius-s); font-weight: 800; font-size: 17px; letter-spacing: .02em;
}
.pill--common { font-size: 15px; }
.post-row__date { flex: none; color: var(--muted); font-weight: 600; min-width: 170px; }
.post-row__title { font-weight: 700; font-size: 18px; flex: 1; }
.post-row__cat { flex: none; color: var(--muted); font-size: 13px; border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; }
.post-row__thumb { flex: none; width: 96px; height: 54px; border-radius: 6px; overflow: hidden; }
.post-row__thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- カード ---------- */
.card-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card-grid--4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--surface); border-radius: var(--radius-l); overflow: hidden; display: flex; flex-direction: column; color: var(--text); text-decoration: none; }
a.card:hover { box-shadow: 0 6px 20px rgba(43,65,110,.2); }
.card__media { aspect-ratio: 16 / 10; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: 18px 22px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card__title { margin: 0; font-size: 26px; font-weight: 900; color: var(--navy); line-height: 1.2; }
.card__title--en { font-family: var(--font-display); font-weight: 400; letter-spacing: .02em; }
.card__sub { margin: 0; color: var(--muted); font-size: 13px; font-weight: 700; }
.card__text { margin: 0; font-size: 15px; }
.card__link { margin-top: auto; padding-top: 8px; font-weight: 800; color: var(--navy); }

/* シミュレータのカードは幅 416px（デザイン案） */
.sim-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 416px)); }

/* デザイン案：シミュレータのカード（紺の枠つき画像＋下線つき見出し） */
.sim-card { background: var(--surface); border-radius: var(--radius-l); padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.sim-card__shot { border: 2px solid var(--navy); border-radius: 9px; overflow: hidden; aspect-ratio: 369 / 209; background: #f3f4f7; }
.sim-card__shot img { width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.sim-card__name { margin: 0; color: var(--navy); font-size: 28px; font-weight: 900; display: inline-block; border-bottom: 5px solid var(--navy); line-height: 1.3; align-self: flex-start; }
.sim-card p { margin: 0; }

/* テーマ（つくる・考える・挑戦する） */
.theme-grid { display: grid; gap: 20px; grid-template-columns: repeat(5, 1fr); }
.theme { background: var(--surface); border-radius: var(--radius-s); overflow: hidden; }
.theme__media { aspect-ratio: 4 / 3; }
.theme__body { padding: 14px 16px 18px; }
.theme__en { font-family: var(--font-display); color: var(--cyan); letter-spacing: .06em; font-size: 14px; }
.theme__title { margin: 2px 0 6px; font-size: 17px; font-weight: 800; color: var(--navy); }
.theme__text { margin: 0; font-size: 14px; }

/* 実績 */
.result-list { display: grid; gap: 16px; }
.result-row { display: grid; grid-template-columns: 120px 1fr auto; gap: 16px 24px; align-items: center; background: var(--surface); border-radius: var(--radius-s); padding: 18px 30px; }
.result-row__year { color: var(--muted); font-weight: 700; font-size: 14px; }
.result-row__name { margin: 0; font-size: 18px; font-weight: 800; }
.result-row__meta { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.result-row__result { font-weight: 900; color: var(--navy); font-size: 18px; text-align: right; }
.result-row__desc { grid-column: 2 / -1; margin: 0; font-size: 15px; }
.result-row__links { grid-column: 2 / -1; display: flex; gap: 16px; font-size: 14px; font-weight: 700; }

/* 空状態・お知らせ */
.empty { background: var(--surface); border-radius: var(--radius-s); padding: 32px; text-align: center; color: var(--muted); }
.empty strong { display: block; color: var(--navy); font-size: 18px; margin-bottom: 4px; }
.notice { background: var(--surface); border-left: 6px solid var(--yellow); border-radius: 6px; padding: 14px 18px; margin: 16px 0; }
.notice--error { background: #fdecea; border-left-color: var(--danger); }
.notice--ok { background: #e8f5ec; border-left-color: var(--ok); }
.notice ul { margin: 6px 0 0; padding-left: 20px; }
.badge { display: inline-block; font-size: 12px; font-weight: 800; padding: 2px 10px; border-radius: 999px; background: #e7e8ec; color: #444; }
.badge--ok { background: #dff2e5; color: var(--ok); }
.badge--warn { background: var(--yellow); color: var(--navy); }
.badge--info { background: #e2ebfb; color: var(--info); }
.badge--muted { background: #ececef; color: #666; }
.badge--prep { background: #ececef; color: #666; }

/* 白い面（本文など） */
.panel { background: var(--surface); border-radius: var(--radius-l); padding: clamp(20px, 4vw, 44px); }
.panel + .panel { margin-top: 24px; }
.panel h2 { color: var(--navy); font-size: 22px; margin: 0 0 12px; padding-left: 12px; border-left: 6px solid var(--navy); line-height: 1.4; }
.panel h3 { color: var(--navy); font-size: 18px; margin: 20px 0 8px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.prep-list { margin: 8px 0 0; padding-left: 20px; color: var(--muted); }

/* 記事本文 */
.article { max-width: 880px; margin: 0 auto; }
.article__meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; color: var(--muted); font-size: 14px; font-weight: 600; }
.article__title { font-size: clamp(24px, 3.4vw, 36px); line-height: 1.35; margin: 12px 0 20px; color: var(--navy); }
.article__thumb { border-radius: var(--radius-s); overflow: hidden; margin-bottom: 24px; }
.article-body { font-size: 17px; }
.article-body h2 { font-size: 22px; color: var(--navy); border-left: 6px solid var(--navy); padding-left: 12px; margin: 36px 0 12px; }
.article-body h3 { font-size: 18px; color: var(--navy); margin: 28px 0 8px; }
.article-figure { margin: 24px 0; }
.article-figure img { border-radius: var(--radius-s); }
.article-figure figcaption { font-size: 13px; color: var(--muted); margin-top: 6px; }
.article-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; }
.article-nav a { display: block; background: var(--surface); border-radius: var(--radius-s); padding: 14px 18px; text-decoration: none; color: var(--text); font-weight: 700; }
.article-nav a span { display: block; font-size: 12px; color: var(--muted); }
.article-nav .next { text-align: right; }

/* 絞り込み */
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; background: var(--surface); border-radius: var(--radius-s); padding: 16px 20px; margin-bottom: 24px; }
.filters label { display: grid; gap: 2px; font-size: 13px; font-weight: 700; color: var(--muted); }
.filters select, .filters input { font: inherit; font-size: 15px; height: 40px; border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; background: #fff; color: var(--text); min-width: 140px; }

/* CTA */
.cta { background: var(--navy); color: #fff; border-radius: var(--radius-l); padding: 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta h2 { margin: 0 0 6px; font-size: 26px; }
.cta p { margin: 0; color: #dfe4ee; }

/* ---------- フッター ---------- */
.site-footer { background: var(--navy); color: #dfe4ee; margin-top: 48px; padding: 44px 0 24px; font-size: 14px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h2 { font-size: 14px; color: var(--line); margin: 0 0 10px; letter-spacing: .06em; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer-brand { font-family: var(--font-display); font-size: 36px; color: #fff; line-height: 1; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.2); margin-top: 32px; padding-top: 16px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: #b8c2d6; }
.unset { color: var(--muted); font-style: normal; }
.site-footer .unset { color: #9fb0cc; }

/* ---------- レスポンシブ ---------- */
@media (max-width: 1100px) {
  .theme-grid { grid-template-columns: repeat(3, 1fr); }
  .card-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  :root { --gutter: 16px; }
  .site-header__top { padding-top: 12px; }
  .brand__logo, .brand__logo--placeholder { width: 46px; height: 54px; }
  .site-header__actions .btn-contact { display: none; }
  .site-header__sub { display: block; padding-bottom: 10px; }
  .site-header__sub .global-nav--desktop { display: none; }
  .site-header .mobile-menu { display: block; }
  .brand__wordmark { font-size: 40px; }
  .hero__frame { aspect-ratio: auto; min-height: 0; display: flex; flex-direction: column; }
  .hero__frame > .hero__img, .hero__frame > .placeholder, .hero__frame > .hero-slider { position: absolute; inset: 0; }
  /* スマホ：操作は画像に重ねず、画像の下に置く */
  .hero-ctrl { position: static; height: auto; justify-content: center; padding: 10px 0 0; }
  .hero-ctrl button { color: var(--navy); }
  .hero-ctrl__dots button::before { background: rgba(43,65,110,.3); }
  .hero-ctrl__dots button:hover::before { background: rgba(43,65,110,.6); }
  .hero-ctrl__dots button[aria-current='true']::before { background: var(--navy); }
  .hero-ctrl .hero-ctrl__play { border-color: rgba(43,65,110,.45); }
  .hero__band { padding-right: 16px; }
  .hero__frame .placeholder span { display: none; }
  .hero__copy { position: relative; top: auto; left: auto; padding: 28px 20px 24px; }
  .hero__actions .btn { min-height: 40px; font-size: 14px; padding: 0 16px; }
  .hero__band { position: relative; }
  .two-col { grid-template-columns: 1fr; }
  .theme-grid { grid-template-columns: 1fr 1fr; }
  .post-row { flex-wrap: wrap; gap: 6px 14px; padding: 14px 18px; }
  .post-row__date { min-width: 0; }
  .post-row__title { flex-basis: 100%; font-size: 16px; }
  .post-row__thumb { display: none; }
  .pill { min-width: 84px; height: 32px; font-size: 14px; }
  .hero__band { height: auto; padding: 12px 16px; flex-wrap: wrap; gap: 8px; }
  .result-row { grid-template-columns: 1fr; padding: 16px 18px; }
  .result-row__result { text-align: left; }
  .result-row__desc, .result-row__links { grid-column: auto; }
  .article-nav { grid-template-columns: 1fr; }
  .more .btn { min-width: 0; width: 100%; }
  .cta { padding: 28px 20px; }
}
@media (max-width: 560px) {
  .site-header__url { display: none; }
  .card-grid--4, .theme-grid, .footer-grid { grid-template-columns: 1fr; }
}
.mobile-menu { display: none; margin-top: 8px; }
.mobile-menu__btn {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
  border: 2px solid rgba(255,255,255,.6); border-radius: 999px; color: #fff; font-weight: 800;
}
.mobile-menu__btn::-webkit-details-marker { display: none; }
.mobile-menu[open] .mobile-menu__btn { background: rgba(255,255,255,.12); }
.mobile-menu ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; }
.mobile-menu a { display: block; color: #fff; text-decoration: none; font-weight: 700; padding: 12px 4px; border-bottom: 1px solid rgba(255,255,255,.15); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---------- Instagram（お問い合わせの隣） ---------- */
.site-header__actions { display: flex; align-items: center; gap: 12px; }
.btn-instagram {
  display: inline-flex; align-items: center; gap: 8px; height: 45px; padding: 0 18px; border-radius: var(--radius-s);
  border: 2px solid #fff; color: #fff; text-decoration: none; font-weight: 700; font-size: 16px; transition: background-color .2s, color .2s;
}
.btn-instagram svg { width: 22px; height: 22px; }
.btn-instagram:hover { background: #fff; color: var(--navy); }
@media (max-width: 860px) {
  .btn-instagram { height: 40px; width: 40px; padding: 0; justify-content: center; }
  .btn-instagram span { display: none; }
}

/* ---------- 記事本文の追加の書式 ---------- */
.article-body ol, .article-body ul { padding-left: 1.6em; }
.article-body blockquote { margin: 20px 0; padding: 4px 0 4px 18px; border-left: 4px solid var(--line); color: #555; }
.article-body blockquote p { margin: 0; }
.article-body hr { border: 0; border-top: 2px solid #e2e3e8; margin: 32px 0; }
.article-code { background: #1d2433; color: #e6e9ef; border-radius: var(--radius-s); padding: 16px 18px; overflow-x: auto; font-size: 14px; line-height: 1.6; }
.article-code code { font-family: ui-monospace, 'Cascadia Code', Consolas, monospace; }

/* ---------- 競技：参考写真の表示 ---------- */
.card__media { position: relative; }
.ref-photo { position: absolute; left: 10px; top: 10px; background: rgba(0,0,0,.6); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.photo-credit { margin: 8px 4px 0; font-size: 12px; color: var(--muted); }
.photo-credit a { color: inherit; }

/* ---------- ENGINEERING の記事カード ---------- */
.theme--post { text-decoration: none; color: var(--text); display: block; outline: 3px solid transparent; transition: outline-color .2s; }
.theme--post:hover { outline-color: var(--yellow); }
.theme--post .theme__media img { width: 100%; height: 100%; object-fit: cover; }
.theme--post .theme__text { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- 成果物 ---------- */
.sim-card__sub { margin: 6px 0 0; color: var(--muted); font-size: 14px; font-weight: 700; }

/* ---------- お問い合わせ ---------- */
.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.contact-form { display: grid; gap: 18px; }
.contact-form > p { margin: 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: grid; gap: 6px; }
.form-field > span { font-weight: 800; color: var(--navy); }
.form-field input, .form-field select, .form-field textarea {
  font: inherit; font-size: 16px; width: 100%; border: 2px solid #d7d9df; border-radius: 10px; padding: 10px 12px; background: #fff; color: var(--text);
  transition: border-color .2s;
}
.form-field textarea { min-height: 180px; line-height: 1.7; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: none; border-color: var(--navy); }
.req { display: inline-block; margin-left: 8px; font-size: 11px; font-weight: 800; color: var(--navy); background: var(--yellow); border-radius: 4px; padding: 0 6px; vertical-align: 2px; }
.form-check { display: flex; gap: 10px; align-items: flex-start; font-weight: 700; }
.form-check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--navy); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-side h2 { font-size: 18px; }
.contact-side ul { padding-left: 20px; font-size: 14px; }
.contact-done h2 { font-size: 24px; }

/* ---------- このサイトについて ---------- */
.credit-list { padding-left: 20px; font-size: 14px; }
.credits { display: grid; gap: 12px; margin: 0; }
.credits > div { display: grid; grid-template-columns: 220px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid #e6e8ee; }
.credits dt { font-weight: 800; color: var(--navy); }
.credits dd { margin: 0; font-weight: 700; }

@media (max-width: 860px) {
  .contact-layout, .form-row { grid-template-columns: 1fr; }
  .credits > div { grid-template-columns: 1fr; gap: 2px; }
}

/* =========================================================
   アニメーション（控えめに。「動きを減らす」設定では止める）
   ========================================================= */
/* メニューの下線：中央から伸びる */
.global-nav a { position: relative; border-bottom: 0; }
.global-nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 3px; border-radius: 2px;
  background: var(--yellow); transform: scaleX(0); transition: transform .3s cubic-bezier(.2,.7,.2,1);
}
.global-nav a:hover::after, .global-nav a[aria-current='page']::after { transform: scaleX(1); }
.section-title { position: relative; }

@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes band-in { from { transform: translateY(100%); } to { transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { 0% { transform: scale(.6); } 60% { transform: scale(1.25); } 100% { transform: scale(1); } }

@media (prefers-reduced-motion: no-preference) {
  /* 読み込み時：キャッチコピー → ボタン → 帯 の順に出る */
  .hero__catch { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
  .hero__actions { animation: rise .9s .15s cubic-bezier(.2,.7,.2,1) both; }
  .hero__band { animation: band-in .7s .35s cubic-bezier(.2,.7,.2,1) both; }
  .hero-ctrl { animation: fade-in .6s .8s both; }

  /* 表示中のスライドがゆっくりズーム（自動送りの間隔に合わせる） */
  .hero-slider__slide .hero__img { transform: scale(1); transition: transform .6s ease-out; }
  .hero-slider__slide.is-active .hero__img { transform: scale(1.06); transition: transform var(--hero-interval, 6s) linear; }
  .hero-slider.is-paused .hero-slider__slide.is-active .hero__img { transform: scale(1.03); transition-duration: .6s; }

  /* スクロールで見えたら、下からふわっと出る */
  .js-anim .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
  .js-anim .reveal.is-visible { opacity: 1; transform: none; }
  .js-anim .card-grid > .reveal:nth-child(2), .js-anim .theme-grid > .reveal:nth-child(2), .js-anim .post-list > li:nth-child(2) > .reveal { transition-delay: .08s; }
  .js-anim .card-grid > .reveal:nth-child(3), .js-anim .theme-grid > .reveal:nth-child(3), .js-anim .post-list > li:nth-child(3) > .reveal { transition-delay: .16s; }
  .js-anim .card-grid > .reveal:nth-child(4), .js-anim .theme-grid > .reveal:nth-child(4), .js-anim .post-list > li:nth-child(4) > .reveal { transition-delay: .24s; }
  .js-anim .theme-grid > .reveal:nth-child(5), .js-anim .post-list > li:nth-child(n+5) > .reveal { transition-delay: .32s; }

  /* 見出しの下線が左から引かれる */
  .js-anim .section-title.reveal { border-bottom-color: transparent; }
  .js-anim .section-title.reveal::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: -5px; height: 5px; background: var(--navy);
    transform: scaleX(0); transform-origin: left; transition: transform 1s .2s cubic-bezier(.2,.7,.2,1);
  }
  .js-anim .section-title.reveal.is-visible::after { transform: scaleX(1); }

  /* ホバー：ボタン・カード・行が少し浮く（影は付けない） */
  .btn, .btn-contact { transition: transform .2s ease, background-color .2s ease, color .2s ease; }
  .btn:hover, .btn-contact:hover { transform: translateY(-2px); }
  a.card, .post-row, .article-nav a { transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s, opacity .7s cubic-bezier(.2,.7,.2,1); }
  a.card.is-visible:hover, a.card:hover { transform: translateY(-6px); }
  .post-row.is-visible:hover, .post-row:hover { transform: translateX(6px); }
  .card__media img { transition: transform .6s cubic-bezier(.2,.7,.2,1); }
  a.card:hover .card__media img { transform: scale(1.06); }
  .card__link { transition: letter-spacing .3s; }
  a.card:hover .card__link { letter-spacing: .06em; }
  .brand__logo { transition: transform .4s cubic-bezier(.2,.7,.2,1); }
  .brand:hover .brand__logo { transform: rotate(-8deg) scale(1.08); }
}
