/* =============================================
   INDEX PAGE — squarewall トップページ固有スタイル
   ============================================= */

/* ─── BG CANVAS ─── */
#bgCanvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* ─── HEADER (override: fixed + blur) ─── */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

nav { display: flex; align-items: center; gap: 32px; }
nav a {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--gray2);
  transition: color 0.2s;
}
nav a:hover { color: var(--white); background: var(--black); }
.nav-btn {
  padding: 8px 20px;
  border: 1px solid var(--black);
  color: var(--black) !important;
  font-size: 11px !important;
  letter-spacing: 0.12em;
  text-decoration: none;
  transition: all 0.2s !important;
}
.nav-btn:hover { background: var(--black) !important; color: var(--white) !important; }

/* hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--black);
  transition: all 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.sp-menu {
  display: none;
  position: fixed;
  top: 64px; left: 0; right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  z-index: 99;
  padding: 24px var(--pad-x);
  flex-direction: column;
  gap: 20px;
}
.sp-menu.open { display: flex; }
.sp-menu a {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--gray1);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.sp-menu a:last-child { border-bottom: none; padding-bottom: 0; }

/* ─── HERO ─── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
/* ── SLIDESHOW ── */
.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}
.hero-slide.active { opacity: 1; }
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
/* インジケーター */
.slide-dots {
  position: absolute;
  bottom: 32px;
  right: var(--pad-x);
  z-index: 2;
  display: flex;
  gap: 8px;
}
.slide-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s, transform 0.3s;
}
.slide-dot.active {
  background: var(--white);
  transform: scale(1.3);
}
.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 64px var(--pad-x) 100px;
  color: var(--white);
}
.hero-content .label {
  margin-bottom: 16px;
  color: rgba(255,255,255,0.75);
}
.hero-content .label::before { background: rgba(255,255,255,0.5); }
h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.02em;
  margin-bottom: 18px;
  text-shadow: 0 1px 8px rgba(0,0,0,0.25);
}
.hero-content > p {
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  line-height: 2;
  margin-bottom: 32px;
  max-width: 520px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 13px 28px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-dark { background: var(--white); color: var(--black); border-color: var(--white); }
.btn-dark:hover { background: var(--gray1); border-color: var(--gray1); color: var(--white); }
/* セクション内ボタン（白背景・グレー枠） */
.sec .btn-dark {
  background: var(--white);
  color: var(--black);
  border-color: var(--gray3);
}
.sec .btn-dark:hover {
  background: var(--black);
  border-color: var(--black);
  color: var(--white);
}
.sec-gray .btn-dark {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}
.sec-gray .btn-dark:hover {
  background: var(--gray1);
  border-color: var(--gray1);
  color: var(--white);
}
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.7); }
.btn-outline:hover { background: rgba(255,255,255,0.15); border-color: var(--white); }

/* ─── NEWS STRIP ─── */
.news-strip {
  background: var(--black);
  color: var(--white);
  overflow: hidden;
}
.news-strip-inner {
  display: flex;
  align-items: stretch;
}
.news-strip-tag {
  flex-shrink: 0;
  padding: 14px 24px;
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  border-right: 1px solid #333;
  display: flex;
  align-items: center;
  font-weight: 700;
}
.news-track-wrap {
  flex: 1;
  overflow: hidden;
  height: 48px;
  display: flex;
  align-items: center;
}
.news-track {
  display: flex;
  gap: 40px;
  white-space: nowrap;
  animation: ticker 32s linear infinite;
}
.news-track a {
  font-size: 12px;
  color: #ccc;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s;
}
.news-track a:hover { color: #fff; }
.news-track .dot { color: #555; user-select: none; }
@keyframes ticker { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }

/* ─── SECTION BASE ─── */
.sec { padding: 96px 0; }
.sec-gray-light { background: #f5f5f5; }
.sec-gray {
  background: var(--black);
  color: var(--white);
}
.sec-gray h2 { color: var(--white); }
.sec-gray .label { color: rgba(255,255,255,0.6); }
.sec-gray .label::before { background: rgba(255,255,255,0.4); }
.sec-gray .sec-sub { color: rgba(255,255,255,0.5); }

.sec-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  margin-bottom: 56px;
  gap: 24px;
}
.sec-head-left .label { margin-bottom: 12px; }
h2 {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.01em;
}
.sec-sub {
  font-size: 13px;
  color: var(--gray2);
  line-height: 1.9;
  text-align: right;
}

/* ─── ABOUT ─── */
.about-wrap {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 72px;
  align-items: center;
}
.about-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--gray4);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--gray2);
}
.about-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.about-intro .label { margin-bottom: 12px; }
.about-intro h2 { margin-bottom: 28px; }
.about-lead {
  font-size: 16px;
  font-weight: 700;
  line-height: 2;
  margin-bottom: 20px;
  color: var(--black);
}
.about-body {
  font-size: 14px;
  color: var(--gray1);
  line-height: 2;
  margin-bottom: 14px;
}
.about-body strong { color: var(--black); }

/* profile section (Contact上) */
.profile-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.profile-col h3 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray2);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

/* member card 横レイアウト版 */
.member-card-h {
  display: flex;
  gap: 28px;
  align-items: flex-start;
}
.member-card-h .member-avatar {
  width: 90px; height: 90px;
  border-radius: 50%;
  background: var(--gray4);
  border: 1px solid var(--border);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  overflow: hidden;
  margin: 0;
}
.member-card-h .member-avatar img { width: 100%; height: 100%; object-fit: cover; }
.member-card-h .member-info { flex: 1; }
.member-card-h h4 { font-size: 18px; font-weight: 700; margin-bottom: 2px; }
.member-card-h .member-en { font-size: 10px; letter-spacing: 0.14em; color: var(--gray2); text-transform: uppercase; margin-bottom: 14px; }
.member-card-h p { font-size: 13px; color: var(--gray1); line-height: 1.9; margin-bottom: 14px; }
.member-roles {
  list-style: none;
  margin-bottom: 18px;
}
.member-roles li {
  font-size: 12px;
  color: var(--gray1);
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.member-roles li::before {
  content: '—';
  color: var(--gray3);
  flex-shrink: 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 72px;
  align-items: start;
}
.about-text .label { margin-bottom: 12px; }
.about-text h2 { margin-bottom: 20px; }
.about-text p {
  font-size: 13.5px;
  color: var(--gray1);
  line-height: 2;
  margin-bottom: 12px;
}
.info-tbl { margin-top: 32px; border-top: 1px solid var(--border); }
.info-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.info-k { color: var(--gray2); }
.info-v a { text-decoration: none; color: var(--black); border-bottom: 1px solid var(--border); }

/* member card (About内) */
.member-card {
  border: 1px solid var(--border);
  padding: 36px 28px;
  text-align: center;
  background: var(--gray4);
}
.member-avatar {
  width: 100px; height: 100px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--border);
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  overflow: hidden;
}
.member-avatar img { width: 100%; height: 100%; object-fit: cover; }
.member-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.member-card .member-en { font-size: 10px; letter-spacing: 0.14em; color: var(--gray2); text-transform: uppercase; margin-bottom: 6px; }
.member-card .member-role { font-size: 11px; color: var(--gray2); margin-bottom: 16px; letter-spacing: 0.04em; }
.member-card p { font-size: 12.5px; color: var(--gray1); line-height: 1.9; text-align: left; }
.sns-btn-row {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.sns-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1px solid var(--border);
  background: var(--white);
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--black);
  transition: background 0.2s, border-color 0.2s;
}
.sns-btn:hover { background: var(--black); border-color: var(--black); color: var(--white); }
.sns-btn svg { flex-shrink: 0; }

/* ─── SERVICES ─── */
.sv-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.sv-card {
  background: var(--white);
  padding: 44px 40px;
  transition: background 0.2s, color 0.2s;
  position: relative;
  overflow: hidden;
}
.sv-card:hover { background: var(--black); }
.sv-card:hover h3 { color: var(--white); }
.sv-card:hover p { color: var(--gray3); }
.sv-card:hover .sv-num { color: rgba(255,255,255,0.06); }
.sv-card:hover .sv-tag { border-color: rgba(255,255,255,0.2); color: var(--gray3); }
.sv-num {
  position: absolute;
  top: -20px;
  right: 16px;
  font-size: 320px;
  letter-spacing: -0.04em;
  color: var(--gray4);
  font-weight: 900;
  line-height: 1;
  user-select: none;
  pointer-events: none;
  z-index: 0;
}
.sv-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 14px;
  line-height: 1.45;
  position: relative;
  z-index: 1;
  color: var(--black);
}
.sv-card > p {
  position: relative;
  z-index: 1;
}
.sv-tags {
  position: relative;
  z-index: 1;
}
.sv-card p { font-size: 13px; color: var(--black); line-height: 1.95; }
.sv-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 16px; }
.sv-tag {
  font-size: 10px;
  letter-spacing: 0.06em;
  padding: 3px 9px;
  border: 1px solid var(--border);
  color: var(--gray2);
}

/* ─── WORKS ─── */
.works-note {
  font-size: 12px;
  color: var(--gray2);
  padding: 12px 16px;
  border-left: 2px solid var(--gray3);
  background: var(--gray4);
  margin-bottom: 32px;
}
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.work-card {
  background: var(--white);
  overflow: hidden;
  transition: background 0.2s;
}
.work-card:hover { background: var(--black); }
.work-card:hover .work-thumb { background: #222; color: rgba(255,255,255,0.06); }
.work-card:hover .work-info { border-top-color: rgba(255,255,255,0.1); }
.work-card:hover .work-cat { color: var(--gray2); }
.work-card:hover .work-info h3 { color: var(--white); }
.work-thumb {
  aspect-ratio: 4/3;
  background: var(--white);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  font-weight: 900;
  color: rgba(0,0,0,0.05);
  letter-spacing: -0.05em;
  position: relative;
  overflow: hidden;
}
.work-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.work-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.04);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: opacity 0.25s;
}
.work-card:hover .work-overlay { opacity: 1; }
.work-info { padding: 18px 20px; border-top: 1px solid var(--border); }
.work-cat {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray2);
  margin-bottom: 5px;
}
.work-info h3 { font-size: 13px; font-weight: 600; line-height: 1.5; }
.works-more {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--black);
  min-height: 180px;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  transition: opacity 0.2s;
}
.works-more:hover { opacity: 0.85; }
.works-more p { font-size: 11px; color: var(--gray3); letter-spacing: 0.1em; text-transform: uppercase; }
.works-more a { font-size: 13px; color: var(--white); text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.3); padding-bottom: 2px; }

/* ─── PICKUP CARDS ─── */
.pickup-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 56px;
}
.pickup-card {
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.pickup-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,0.08); }
.pickup-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--gray2);
  overflow: hidden;
  padding: 16px;
}
.pickup-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.pickup-body {
  padding: 24px 24px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.pickup-label {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray2);
  margin-bottom: 8px;
}
.pickup-body h3 {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 12px;
}
.pickup-body p {
  font-size: 13px;
  color: var(--gray1);
  line-height: 1.85;
  flex: 1;
  margin-bottom: 20px;
}
.pickup-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--black);
  text-decoration: none;
  border-bottom: 1px solid var(--black);
  padding-bottom: 2px;
  align-self: flex-start;
  transition: opacity 0.2s;
}
.pickup-btn:hover { background: var(--black); color: var(--white); border-color: var(--black); padding: 2px 6px; }

/* ─── SEMINAR ─── */
.seminar-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: stretch;
}
.seminar-grid > div { display: flex; flex-direction: column; }
.news-box { flex: 1; display: flex; flex-direction: column; }
.news-list-wrap { overflow-y: auto; }
.seminar-text p {
  font-size: 13.5px;
  color: var(--gray1);
  line-height: 2;
  margin-bottom: 18px;
}
.seminar-list { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.seminar-list li {
  font-size: 13px;
  color: var(--gray1);
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.seminar-list li::before { content: '—'; color: var(--gray3); flex-shrink: 0; }
.news-box { border: 1px solid var(--border); }
.news-box-head {
  padding: 14px 20px;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
  border-bottom: 1px solid var(--border);
  background: var(--gray4);
  flex-shrink: 0;
}
.news-list-wrap {
  max-height: 500px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--gray3) transparent;
}
.news-list-wrap::-webkit-scrollbar { width: 4px; }
.news-list-wrap::-webkit-scrollbar-track { background: transparent; }
.news-list-wrap::-webkit-scrollbar-thumb { background: var(--gray3); border-radius: 2px; }
.news-list { list-style: none; }
.news-list li {
  border-bottom: 1px solid var(--border);
  padding: 13px 20px;
  font-size: 13px;
  color: var(--gray1);
}
.news-list li:last-child { border-bottom: none; }

/* ─── TEAM ─── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.team-card {
  background: var(--white);
  padding: 40px 32px;
  text-align: center;
  transition: background 0.2s;
}
.team-card:hover { background: var(--gray4); }
.team-avatar {
  width: 88px; height: 88px;
  border-radius: 50%;
  background: var(--gray4);
  border: 1px solid var(--border);
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}
.team-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 3px; }
.team-card .team-en { font-size: 10px; letter-spacing: 0.1em; color: var(--gray2); margin-bottom: 14px; text-transform: uppercase; }
.team-card p { font-size: 12.5px; color: var(--gray1); line-height: 1.85; }

/* ─── NUMBERS ─── */
.num-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.num-item {
  background: var(--white);
  padding: 44px 32px;
  text-align: center;
}
.num-val {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 900;
  color: var(--black);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.num-val small { font-size: 0.45em; vertical-align: middle; margin-left: 2px; }
.num-label { font-size: 11px; color: var(--gray2); letter-spacing: 0.06em; }

/* ─── CONTACT ─── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 72px;
  align-items: start;
}
.contact-info > p {
  font-size: 13.5px;
  color: rgba(255,255,255,0.75);
  line-height: 2;
  margin-bottom: 28px;
}
.addr-block {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  line-height: 2.2;
  padding: 24px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  margin-bottom: 16px;
}
.addr-block strong { font-size: 14px; color: var(--white); display: block; margin-bottom: 8px; font-weight: 700; }
.addr-block a { color: var(--white); text-decoration: none; }
.line-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 12px 28px;
  background: #06C755;
  color: #fff !important;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  border: none;
  text-decoration: none;
  transition: background 0.2s;
}
.line-btn:hover { background: #05b34c; }
.law-links { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.law-link {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.25);
  padding-bottom: 1px;
  display: inline-block;
}
.law-link:hover { color: var(--black); background: var(--white); border-color: var(--white); padding: 1px 4px; }

/* form */
form { display: flex; flex-direction: column; gap: 16px; }
.f-group { display: flex; flex-direction: column; gap: 7px; }
label { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.7); font-weight: 600; }
label .req { color: #f66; margin-left: 3px; }
input[type=text], input[type=email], textarea {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--white);
  padding: 12px 14px;
  font-size: 14px;
  font-family: inherit;
  border-radius: 0;
  outline: none;
  width: 100%;
  transition: border-color 0.2s;
  box-shadow: none;
}
input[type=text]::placeholder, input[type=email]::placeholder, textarea::placeholder { color: rgba(255,255,255,0.35); }
input[type=text]:focus, input[type=email]:focus, textarea:focus { border-color: var(--white); background: rgba(255,255,255,0.15); }
textarea { resize: vertical; min-height: 130px; }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.f-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  letter-spacing: normal;
  text-transform: none;
  font-weight: 400;
}
.f-check input { width: auto; }
.f-submit {
  background: var(--white);
  color: var(--black);
  border: none;
  padding: 15px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: background 0.2s;
  width: 100%;
  font-family: inherit;
}
.f-submit:hover { background: var(--gray3); }

/* ─── FOOTER (override for index) ─── */
footer {
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
}
.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 40px;
}
.footer-nav { display: flex; gap: 28px; flex-wrap: wrap; align-items: center; }
.footer-nav a {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--gray2);
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--white); background: var(--black); padding: 2px 6px; }
.footer-sns { display: flex; gap: 10px; }
.footer-sns a {
  width: 34px; height: 34px;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; letter-spacing: 0;
  color: var(--gray1);
  text-decoration: none;
  transition: all 0.2s;
}
.footer-sns a:hover { background: var(--black); border-color: var(--black); color: var(--white); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.footer-sub { display: flex; flex-direction: column; gap: 8px; }
.footer-sub a { font-size: 11px; color: var(--gray2); text-decoration: none; }
.footer-sub a:hover { color: var(--white); background: var(--black); padding: 1px 4px; }

/* ─── NEWS MODAL ─── */
.news-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.news-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.news-modal {
  background: var(--white);
  max-width: 560px;
  width: 100%;
  padding: 44px 40px;
  position: relative;
  transform: translateY(16px);
  transition: transform 0.25s;
}
.news-modal-overlay.open .news-modal {
  transform: translateY(0);
}
.news-modal-date {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--gray2);
  margin-bottom: 10px;
}
.news-modal-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
}
.news-modal-body {
  color: var(--gray1);
  line-height: 1.9;
  font-size: 14px;
}
.news-modal-close {
  position: absolute;
  top: 16px; right: 16px;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--gray2);
  line-height: 1;
  padding: 4px 8px;
}
.news-modal-close:hover { color: var(--black); }

/* ─── SCROLL-TOP ─── */
.to-top {
  position: fixed;
  bottom: 32px; right: 32px;
  width: 44px; height: 44px;
  border: 1px solid var(--border);
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  font-size: 16px;
  color: var(--gray1);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s;
  z-index: 50;
}
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { background: var(--black); color: var(--white); border-color: var(--black); }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  :root { --pad-x: 40px; }
}

@media (max-width: 768px) {
  :root { --pad-x: 24px; }

  /* header */
  nav { display: none; }
  .hamburger { display: flex; }

  /* hero */
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 60px var(--pad-x);
  }
  h1 { font-size: 1.8rem; }

  /* sections */
  .sec { padding: 64px 0; }
  .sec-head { grid-template-columns: 1fr; }
  .sec-sub { text-align: left; }

  /* about */
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-wrap { grid-template-columns: 1fr; gap: 36px; }
  .about-img { aspect-ratio: 16 / 9; }
  .profile-section { grid-template-columns: 1fr; gap: 40px; }
  .member-card-h { flex-direction: column; align-items: center; text-align: center; }
  .member-card-h .member-roles li { text-align: left; }

  /* pickup cards */
  .pickup-grid { grid-template-columns: 1fr; gap: 20px; margin-top: 36px; }

  /* services */
  .sv-grid { grid-template-columns: 1fr; }

  /* works */
  .works-grid { grid-template-columns: 1fr 1fr; }

  /* seminar */
  .seminar-grid { grid-template-columns: 1fr; gap: 40px; }

  /* team */
  .team-grid { grid-template-columns: 1fr; }

  /* numbers */
  .num-grid { grid-template-columns: 1fr 1fr; }

  /* contact */
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }

  /* footer */
  .footer-top { flex-direction: column; gap: 24px; }
  .footer-nav { gap: 16px; }
}

@media (max-width: 480px) {
  :root { --pad-x: 20px; }
  h1 { font-size: 1.6rem; }
  .works-grid { grid-template-columns: 1fr; }
  .num-grid { grid-template-columns: 1fr 1fr; }
  .f-row { grid-template-columns: 1fr; }
  .to-top { bottom: 20px; right: 20px; width: 40px; height: 40px; }
}
