/* ==========================================================================
   T-LAB（鉄塔ラボ）共通スタイル
   全ページ共通。ページ固有の調整は各HTML内の <style> で最小限に上書きする。
   ========================================================================== */

:root {
  --bg: #f8fbff;
  --text: #172033;
  --muted: rgba(23, 32, 51, 0.68);
  --line: rgba(23, 32, 51, 0.12);
  --white: rgba(255,255,255,0.78);
  --cyan: #18c8dc;
  --blue: #4b7cff;
  --purple: #9b7cff;
  --yellow: #ffd66b;
  --pink: #ff8fc7;
  --shadow: 0 24px 70px rgba(29, 45, 80, 0.13);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, Arial, sans-serif;
  color: var(--text);
  line-height: 1.8;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 15% 15%, rgba(24,200,220,0.22), transparent 28%),
    radial-gradient(circle at 85% 20%, rgba(255,143,199,0.18), transparent 26%),
    radial-gradient(circle at 50% 90%, rgba(255,214,107,0.22), transparent 30%),
    linear-gradient(135deg, #ffffff 0%, #eef7ff 55%, #fff8ee 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.18;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(23,32,51,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23,32,51,0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}

a { color: inherit; }
img { max-width: 100%; }

/* ---------- ヘッダー / ナビ ---------- */

header.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  background: rgba(255,255,255,0.68);
  border-bottom: 1px solid var(--line);
}

nav.site-nav {
  max-width: 1240px;
  margin: auto;
  padding: 14px 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  font-size: 18px;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(24,200,220,0.22));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 8px 10px 8px 28px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(20, 35, 60, 0.12);
  border-radius: 999px;
  box-shadow: 0 18px 45px rgba(90, 100, 130, 0.14);
}

.nav-links a {
  color: #626b7a;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: 0.25s;
}

.nav-links a:hover,
.nav-links a.active {
  color: #178cff;
}

.nav-cta {
  padding: 13px 22px !important;
  color: #fff !important;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff8bd6, #6b7cff);
  box-shadow: 0 12px 28px rgba(111, 120, 255, 0.32);
}

main { padding-top: 0; }
main.with-fixed-header { padding-top: 0; }

/* ---------- 共通ボタン ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 170px;
  padding: 14px 24px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: white;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: 0.04em;
  box-shadow: 0 18px 44px rgba(24,200,220,0.26);
  transition: 0.3s;
  border: none;
  cursor: pointer;
  font-size: 16px;
  font-family: inherit;
}

.btn:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 26px 60px rgba(75,124,255,0.28);
}

.btn-outline {
  background: rgba(255,255,255,0.72);
  color: var(--text);
  border: 1px solid rgba(23,32,51,0.1);
  box-shadow: 0 18px 44px rgba(29,45,80,0.1);
  backdrop-filter: blur(16px);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none !important;
}

/* ---------- セクション共通 ---------- */

section {
  padding: 115px 24px;
  position: relative;
}

.container {
  max-width: 1160px;
  margin: auto;
}

.section-kicker {
  display: inline-block;
  margin-bottom: 18px;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(24,200,220,0.12);
  color: #008fa3;
  font-size: 12px;
  letter-spacing: 0.2em;
  font-weight: 900;
}

.section-title {
  font-size: clamp(34px, 5vw, 64px);
  letter-spacing: -0.06em;
  line-height: 1.1;
  margin-bottom: 28px;
  color: var(--text);
}

.lead {
  font-size: 18px;
  color: var(--muted);
  max-width: 860px;
}

.pop-section {
  background:
    radial-gradient(circle at 20% 30%, rgba(24,200,220,0.18), transparent 28%),
    radial-gradient(circle at 80% 70%, rgba(255,143,199,0.16), transparent 30%),
    #f1f8ff;
  border-top: 1px solid rgba(23,32,51,0.08);
  border-bottom: 1px solid rgba(23,32,51,0.08);
}

/* ---------- ページヒーロー(下層ページ用の小さめヒーロー) ---------- */

.page-hero {
  min-height: 46vh;
  display: flex;
  align-items: center;
  padding: 150px 24px 70px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.page-hero::before {
  content: "";
  position: absolute;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(24,200,220,0.22), transparent 65%);
  top: -10%;
  left: -6%;
}

.page-hero::after {
  content: "";
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,143,199,0.2), transparent 65%);
  right: -6%;
  bottom: -20%;
}

.page-hero .container { position: relative; z-index: 2; margin: auto; }

/* ---------- カードグリッド(研究分野・サービス) ---------- */

.grid-4 {
  margin-top: 54px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.grid-3 {
  margin-top: 54px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card {
  position: relative;
  padding: 30px 26px;
  border-radius: 32px;
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(23,32,51,0.1);
  box-shadow: var(--shadow);
  transition: 0.35s;
  min-height: 230px;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  right: -60px;
  top: -60px;
  transition: 0.35s;
  background: rgba(24,200,220,0.16);
}

.card:nth-child(4n+2)::before { background: rgba(255,214,107,0.22); }
.card:nth-child(4n+3)::before { background: rgba(155,124,255,0.16); }
.card:nth-child(4n+4)::before { background: rgba(255,143,199,0.18); }

.card:hover {
  transform: translateY(-10px) rotate(-0.5deg);
}

.card:hover::before {
  transform: scale(1.35);
}

.card > * {
  position: relative;
  z-index: 2;
}

.icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  font-size: 28px;
  margin-bottom: 24px;
  background: white;
  box-shadow: 0 12px 28px rgba(29,45,80,0.1);
}

.card h3 {
  font-size: 21px;
  margin-bottom: 10px;
  color: var(--text);
}

.card p {
  color: var(--muted);
  font-size: 15px;
}

/* ---------- 強み(STRENGTHS) ---------- */

.strength-card {
  padding: 34px 30px;
  border-radius: 32px;
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(23,32,51,0.1);
  box-shadow: var(--shadow);
}

.strength-no {
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.2em;
  color: #008fa3;
  margin-bottom: 14px;
}

.strength-card h3 {
  font-size: 23px;
  margin-bottom: 12px;
}

.strength-card p {
  color: var(--muted);
  font-size: 15px;
}

/* ---------- 進め方(WORK FLOW) ---------- */

.flow-grid {
  margin-top: 54px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.flow-step {
  padding: 30px 24px;
  border-radius: 28px;
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(23,32,51,0.1);
  box-shadow: 0 18px 45px rgba(29,45,80,0.08);
  position: relative;
}

.flow-no {
  font-size: 34px;
  font-weight: 900;
  color: rgba(24,140,255,0.22);
  margin-bottom: 6px;
}

.flow-step h4 {
  font-size: 18px;
  margin-bottom: 8px;
}

.flow-step p {
  color: var(--muted);
  font-size: 14px;
}

.flow-note {
  margin-top: 24px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

/* ---------- お知らせ(NEWS) ---------- */

.news-card {
  margin-top: 48px;
  border-radius: 34px;
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(23,32,51,0.1);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.news-item {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 22px;
  padding: 26px 34px;
  border-bottom: 1px solid rgba(23,32,51,0.08);
  align-items: baseline;
}

.news-item:last-child { border-bottom: none; }

.news-date {
  font-weight: 800;
  color: #008fa3;
  font-size: 14px;
  letter-spacing: 0.03em;
}

.news-body h4 {
  font-size: 16px;
  margin-bottom: 4px;
}

.news-body p {
  color: var(--muted);
  font-size: 14.5px;
}

.news-tag {
  display: inline-block;
  margin-right: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(75,124,255,0.12);
  color: #4b7cff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.news-empty,
.gallery-empty {
  padding: 60px 30px;
  text-align: center;
  color: var(--muted);
}

/* ---------- 写真プレースホルダー(実写真に差し替え予定) ---------- */

.photo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 220px;
  border-radius: 28px;
  border: 2px dashed rgba(23,32,51,0.22);
  background: repeating-linear-gradient(135deg, rgba(23,32,51,0.03) 0 12px, transparent 12px 24px);
  color: rgba(23,32,51,0.45);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  padding: 20px;
}

.photo-placeholder .ph-icon {
  font-size: 30px;
  opacity: 0.6;
}

/* ---------- SNS(準備中を含む) ---------- */

.sns-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.sns-link {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(23,32,51,0.12);
  box-shadow: 0 10px 26px rgba(29,45,80,0.1);
  font-size: 18px;
  text-decoration: none;
  transition: 0.25s;
}

.sns-link:hover { transform: translateY(-4px); }

.sns-link.pending {
  opacity: 0.42;
  cursor: default;
  pointer-events: none;
}

/* ---------- フッター ---------- */

footer.site-footer {
  background: #ffffff;
  border-top: 1px solid rgba(23,32,51,0.1);
  color: rgba(23,32,51,0.62);
}

.footer-top {
  max-width: 1200px;
  margin: auto;
  padding: 80px 24px 50px;
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: 36px;
}

.footer-brand .brand { margin-bottom: 16px; }

.footer-brand p {
  font-size: 14px;
  color: rgba(23,32,51,0.58);
  margin-bottom: 20px;
  max-width: 320px;
}

.footer-col h5 {
  font-size: 13px;
  letter-spacing: 0.1em;
  color: rgba(23,32,51,0.45);
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; }

.footer-col li { margin-bottom: 10px; }

.footer-col a {
  text-decoration: none;
  font-size: 14.5px;
  color: rgba(23,32,51,0.7);
  transition: 0.2s;
}

.footer-col a:hover { color: #178cff; }

.footer-bottom {
  border-top: 1px solid rgba(23,32,51,0.08);
  padding: 22px 24px 40px;
  text-align: center;
  font-size: 13px;
  color: rgba(23,32,51,0.45);
}

/* ---------- お問い合わせフォーム ---------- */

.contact-layout {
  margin-top: 50px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 30px;
  align-items: start;
}

.contact-info-card,
.contact-form-card {
  padding: 42px;
  border-radius: 36px;
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(23,32,51,0.1);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.contact-info-card h3 { font-size: 21px; margin-bottom: 14px; }
.contact-info-card p { color: var(--muted); font-size: 14.5px; margin-bottom: 18px; }

.contact-info-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 16px;
  font-size: 14.5px;
}

.contact-info-row strong { min-width: 84px; display: inline-block; color: var(--text); }

.form-field { margin-bottom: 20px; }

.form-field label {
  display: block;
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 8px;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(23,32,51,0.16);
  background: rgba(255,255,255,0.9);
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
}

.form-field textarea { min-height: 150px; resize: vertical; }

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid var(--cyan);
  outline-offset: 1px;
}

.form-hint { font-size: 12.5px; color: var(--muted); margin-top: 6px; }

.form-msg {
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
  display: none;
}

.form-msg.show { display: block; }
.form-msg.success { background: rgba(24,200,120,0.12); color: #0a8a55; }
.form-msg.error { background: rgba(255,90,90,0.12); color: #c0392b; }

/* honeypot: 人間には見せない */
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ---------- フェードイン ---------- */

.fade-in {
  opacity: 0;
  transform: translateY(45px);
  transition: 0.9s ease;
}

.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- レスポンシブ ---------- */

@media (max-width: 980px) {
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .flow-grid { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  nav.site-nav { padding: 12px 16px; }
  .brand { font-size: 15px; }
  .brand img { width: 34px; height: 34px; }

  .nav-links {
    gap: 8px;
    padding: 5px 6px 5px 10px;
    max-width: 62vw;
    overflow-x: auto;
    white-space: nowrap;
  }

  .nav-links a { font-size: 13px; flex: 0 0 auto; }
  .nav-cta { padding: 9px 14px !important; font-size: 13px; }

  section { padding: 88px 20px; }
  .grid-4, .flow-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; padding: 60px 22px 40px; }
  .news-item { grid-template-columns: 1fr; gap: 6px; }
}
