/* ===== ABC Learning Lab Osaka — Front Page styles ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --red:    #D42B2B;
  --red-l:  #E85050;
  --blue:   #1A4F8F;
  --blue-l: #4A8FCC;
  --navy:   #1A5BA8;
  --sky:    #E8F4FD;   /* ライトブルー背景 */
  --sky-m:  #C8E4F5;
  --white:  #FFFFFF;
  --off:    #F0F0F0;
  --ink:    #111827;
  --mid:    #4B5563;
  --muted:  #9CA3AF;
  --border: #E5E7EB;
  --serif:  'DM Serif Display', Georgia, serif;
  --sans:   'Noto Sans JP', sans-serif;
}
html { scroll-behavior: smooth; }
body { font-family: var(--sans); color: var(--ink); background: var(--white); line-height: 1.75; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ══ NAV ══ */
.nav {
  position: sticky; top: 0; z-index: 200;
  height: 72px; background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5vw;
}
.nav-logo { display: flex; align-items: center; }
.nav-logo-icon { height: 52px; width: auto; display: block; }
.nav-logo-text { display: none; font-family: var(--serif); font-size: 16px; color: var(--navy); }
.nav-items { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav-items a { font-size: 13px; font-weight: 500; color: var(--mid); padding: 7px 14px; border-radius: 6px; transition: color .15s, background .15s; }
.nav-items a:hover { color: var(--navy); background: var(--off); }
.nav-cta { font-size: 13px; font-weight: 700; background: var(--red); color: var(--white); padding: 10px 22px; border-radius: 24px !important; transition: background .15s, transform .12s; }
.nav-cta:hover { background: var(--red-l); transform: translateY(-1px); }

/* ══ HERO ══ */
#hero {
  background: linear-gradient(160deg, var(--white) 0%, var(--sky) 60%, var(--sky-m) 100%);
  min-height: 90vh;
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; gap: 32px;
  padding: 80px 5vw 60px;
  position: relative; overflow: hidden;
}
/* 右上の大きな薄円 */
#hero::before {
  content: ''; position: absolute;
  top: -180px; right: -180px;
  width: 700px; height: 700px; border-radius: 50%;
  background: rgba(200,228,245,0.45);
  pointer-events: none; z-index: 0;
}
.hero-text { position: relative; z-index: 1; }
.hero-tag {
  display: inline-block;
  font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--blue); background: rgba(26,91,168,0.08);
  border: 1px solid rgba(26,91,168,0.2);
  padding: 5px 14px; border-radius: 20px; margin-bottom: 24px;
}
.hero-h1 {
  font-family: var(--serif);
  font-size: clamp(32px, 4.2vw, 48px);
  font-weight: 400; color: var(--ink);
  line-height: 1.12; margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.hero-h1 .accent { color: var(--red); }
.hero-h1-en {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(14px, 1.5vw, 18px);
  color: var(--blue); font-weight: 400;
  display: block; margin-bottom: 28px; line-height: 1.5;
}
.hero-lead { font-size: 14px; font-weight: 400; color: var(--mid); line-height: 1.95; max-width: 480px; margin-bottom: 40px; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-red {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: 28px;
  font-size: 14px; font-weight: 700; letter-spacing: 0.04em;
  background: var(--red); color: var(--white);
  transition: background .15s, transform .12s;
}
.btn-red:hover { background: var(--red-l); transform: translateY(-2px); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 28px;
  font-size: 14px; font-weight: 600;
  border: 1.5px solid var(--blue); color: var(--blue);
  transition: background .15s, color .15s;
}
.btn-outline:hover { background: var(--blue); color: var(--white); }

/* HERO STATS BAR */
.hero-stats {
  display: flex; gap: 0; margin-top: 52px;
  border-top: 1px solid var(--border); padding-top: 28px;
  flex-wrap: wrap; gap: 32px;
}
.stat-item { display: flex; align-items: center; gap: 10px; }
.stat-icon {
  width: 36px; height: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0;
}
.stat-icon-blue { background: rgba(26,91,168,0.1); }
.stat-icon-red  { background: rgba(212,43,43,0.1); }
.stat-icon-grn  { background: rgba(16,185,129,0.1); }
.stat-n { font-family: var(--serif); font-size: 22px; color: var(--ink); line-height: 1; }
.stat-l { font-size: 11px; color: var(--muted); margin-top: 2px; }

/* ── HERO IMAGE SLOT ── */
.hero-visual {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center;
}
.hero-img {
  width: 100%; max-width: 520px; height: auto;
  border-radius: 12px;
  filter: drop-shadow(0 16px 40px rgba(26,79,143,0.18));
}
.hero-placeholder {
  width: 100%; max-width: 520px;
  aspect-ratio: 5 / 4;
  background: linear-gradient(135deg, var(--sky) 0%, var(--sky-m) 100%);
  border: 2px dashed rgba(26,79,143,0.25);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
}
.hero-placeholder-inner { text-align: center; }
.hero-placeholder-text {
  font-size: 13px; color: rgba(26,91,168,0.55);
  margin-top: 12px; line-height: 1.7;
}
.hero-placeholder-text span { font-size: 11px; color: rgba(26,91,168,0.38); }

/* ══ ABOUT ══ */
#about { background: var(--white); padding: 96px 5vw; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.eyebrow { font-size: 10px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--red); margin-bottom: 14px; }
.h2 { font-family: var(--serif); font-size: clamp(26px, 3vw, 38px); font-weight: 400; color: var(--ink); line-height: 1.25; margin-bottom: 18px; }
.lead { font-size: 14px; color: var(--mid); line-height: 1.9; }
.feat-list { margin-top: 36px; }
.feat-item { display: flex; gap: 14px; align-items: flex-start; padding: 18px 0; border-bottom: 1px solid var(--border); }
.feat-item:first-child { border-top: none; }
.feat-num { font-family: var(--serif); font-size: 26px; color: var(--red); flex-shrink: 0; width: 32px; margin-top: 1px; line-height: 1; }
.feat-title { font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 3px; }
.feat-body { font-size: 13px; color: var(--mid); line-height: 1.7; }
.pub-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.pub-cell { display: flex; align-items: center; justify-content: center; min-height: 58px; border: 1px solid var(--border); border-radius: 6px; padding: 12px 8px; text-align: center; transition: border-color .15s, box-shadow .15s; }
.pub-cell:hover { border-color: var(--blue-l); box-shadow: 0 2px 10px rgba(26,91,168,0.08); }
.pub-cell-n { font-size: 12px; font-weight: 700; color: var(--blue); line-height: 1.35; }
.pub-more { font-size: 11px; color: var(--muted); text-align: center; margin-top: 10px; }

/* ══ PUBLISHERS TICKER ══ */
#publishers {
  padding: 72px 5vw;
  background:
    radial-gradient(ellipse at 70% 40%, rgba(26,79,143,0.25) 0%, transparent 55%),
    linear-gradient(150deg, #1255A8 0%, #1A4F8F 50%, #1660B8 100%);
  position: relative;
}
#publishers::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}
.h2-w { font-family: var(--serif); font-size: clamp(24px,3vw,36px); font-weight:400; color:var(--white); line-height:1.25; margin-bottom:14px; }
.lead-w { font-size:14px; color:rgba(255,255,255,0.55); line-height:1.9; }
.eyebrow-b { font-size:10px; font-weight:700; letter-spacing:0.22em; text-transform:uppercase; color:var(--blue-l); margin-bottom:14px; }
.ticker-outer {
  overflow: hidden;
  margin-top: 40px;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}
.ticker {
  display: flex;
  gap: 12px;
  width: max-content;
}
.chip {
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 20px;
  padding: 8px 22px;
  font-size: 12px; font-weight: 500; letter-spacing: 0.05em;
  color: rgba(255,255,255,0.72); white-space: nowrap;
  flex-shrink: 0;
  user-select: none;
}
.pub-cta-wrap { position: relative; z-index: 1; text-align: center; margin-top: 40px; }
.pub-cta {
  display: inline-block;
  padding: 13px 34px;
  border-radius: 999px;
  font-size: 14px; font-weight: 700; letter-spacing: 0.04em;
  color: var(--white);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.4);
  transition: background .15s, border-color .15s, transform .12s, color .15s;
}
.pub-cta:hover { background: var(--white); color: var(--blue); border-color: var(--white); transform: translateY(-2px); }

/* ══ CLIENTS ══ */
#clients { padding: 96px 5vw; background: var(--off); }
.clients-hd { margin-bottom: 48px; }
.clients-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.client-card {
  background: var(--white); border: 1px solid var(--border); border-radius: 10px;
  padding: 28px 22px; border-top: 3px solid transparent;
  transition: box-shadow .18s, transform .15s;
}
.client-card:nth-child(odd)  { border-top-color: var(--blue); }
.client-card:nth-child(even) { border-top-color: var(--red); }
.client-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.09); transform: translateY(-3px); }
.client-tag { font-size: 9px; font-weight:700; letter-spacing:0.16em; text-transform:uppercase; color:var(--red); margin-bottom:10px; }
.client-title { font-family:var(--serif); font-size:17px; color:var(--ink); line-height:1.3; margin-bottom:10px; }
.client-body { font-size:13px; color:var(--mid); line-height:1.72; }

/* ══ SNS ══ */
#sns { padding: 96px 5vw; background: var(--white); }
.sns-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 44px;
  align-items: start;
}
.sns-img-wrap {
  position: relative; border-radius: 12px; overflow: hidden;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--sky) 0%, var(--sky-m) 100%);
  box-shadow: 0 8px 28px rgba(0,0,0,0.08);
}
.sns-img-wrap img { width:100%; height:100%; object-fit:cover; display:block; border-radius:12px; }
.sns-img-placeholder {
  position:absolute; inset:0; display:flex; flex-direction:column;
  align-items:center; justify-content:center; gap:12px;
  border: 2px dashed rgba(26,79,143,0.22); border-radius:12px;
}
.sns-img-placeholder svg { opacity:0.32; }
.sns-img-placeholder-text { font-size:12px; color:rgba(26,91,168,0.48); text-align:center; line-height:1.7; }
.sns-img-placeholder-text strong { display:block; font-size:13px; margin-bottom:2px; }
.sns-right { display:flex; flex-direction:column; gap:12px; }
.sns-links { display:flex; flex-direction:column; gap:10px; }
.sns-link {
  display:flex; align-items:center; gap:14px;
  background:var(--off); border:1px solid var(--border); border-radius:10px;
  padding:14px 16px; transition:border-color .15s, box-shadow .15s;
  text-decoration:none;
}
.sns-link:hover { border-color:var(--blue-l); box-shadow:0 2px 10px rgba(26,91,168,0.07); }
.sns-icon { width:40px; height:40px; border-radius:10px; flex-shrink:0; display:flex; align-items:center; justify-content:center; }
.sns-icon svg { width:20px; height:20px; }
.sns-link-name { font-size:14px; font-weight:700; color:var(--ink); }
.sns-link-sub { font-size:12px; color:var(--muted); margin-top:1px; }
.sns-note { background:var(--sky); border:1px solid var(--sky-m); border-left:3px solid var(--blue); border-radius:0 8px 8px 0; padding:14px 16px; }
.sns-note-lbl { font-size:9px; font-weight:700; letter-spacing:0.16em; text-transform:uppercase; color:var(--blue); margin-bottom:6px; }
.sns-note-body { font-size:13px; color:var(--mid); line-height:1.75; }

/* ══ CONTACT ══ */
#contact {
  padding: 80px 5vw;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(26,79,143,0.22) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 20%, rgba(212,43,43,0.12) 0%, transparent 50%),
    linear-gradient(150deg, #1255A8 0%, #1A4F8F 60%, #1660B8 100%);
  text-align: center; position: relative; overflow: hidden;
}
#contact::before {
  content:''; position:absolute; inset:0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events:none;
}
.contact-inner { position: relative; z-index: 1; }
.h2-contact { font-family:var(--serif); font-size:clamp(24px,3vw,38px); font-weight:400; color:var(--white); margin-bottom:12px; }
.lead-contact { font-size:14px; color:rgba(255,255,255,0.55); margin-bottom:0; }
.contact-cards { display:flex; justify-content:center; gap:16px; flex-wrap:wrap; max-width:680px; margin:40px auto 0; }
.contact-card {
  flex: 1; min-width: 260px; text-align: left;
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px; padding: 26px 22px;
  transition: background .15s, border-color .15s;
}
.contact-card:hover { background: rgba(255,255,255,0.11); border-color: rgba(74,143,204,0.45); }
.contact-card-tag { font-size:9px; font-weight:700; letter-spacing:0.18em; text-transform:uppercase; color:var(--blue-l); margin-bottom:10px; }
.contact-card-lbl { font-size:12px; color:rgba(255,255,255,0.42); margin-bottom:5px; }
.contact-card-email { font-size:14px; font-weight:700; color:var(--white); word-break:break-all; }
.contact-card-email a { color:inherit; transition:color .15s; }
.contact-card-email a:hover { color:var(--blue-l); }
.contact-sns { display:flex; justify-content:center; gap:10px; flex-wrap:wrap; margin-top:28px; }
.contact-sns-btn { display:inline-flex; align-items:center; gap:7px; border:1px solid rgba(255,255,255,0.18); border-radius:24px; padding:9px 20px; font-size:12px; font-weight:500; color:rgba(255,255,255,0.65); transition:border-color .15s, color .15s; }
.contact-sns-btn:hover { border-color:var(--blue-l); color:var(--blue-l); }
.contact-cta-wrap { margin: 40px auto 0; display: flex; justify-content: center; }
.contact-main-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--red); color: var(--white);
  font-size: 16px; font-weight: 700; letter-spacing: 0.05em;
  padding: 18px 48px; border-radius: 32px !important;
  transition: background .15s, transform .15s, box-shadow .15s;
  box-shadow: 0 4px 20px rgba(212,43,43,0.35);
}
.contact-main-btn:hover { background: var(--red-l); transform: translateY(-3px); box-shadow: 0 8px 28px rgba(212,43,43,0.4); }
.contact-note { font-size:11px; color:rgba(255,255,255,0.22); margin-top:28px; letter-spacing:0.07em; }

/* ══ FOOTER ══ */
footer { background: #0A3060; padding: 36px 5vw 24px; }
.footer-row { display:flex; align-items:flex-start; justify-content:space-between; flex-wrap:wrap; gap:18px; padding-bottom:22px; border-bottom:1px solid rgba(255,255,255,0.07); margin-bottom:16px; }
.footer-brand { font-family:var(--serif); font-size:14px; color:var(--white); margin-bottom:3px; }
.footer-tag { font-size:10px; letter-spacing:0.1em; color:rgba(255,255,255,0.24); }
.footer-nav { display:flex; gap:18px; flex-wrap:wrap; align-items:center; list-style:none; }
.footer-nav a { font-size:11px; font-weight:500; color:rgba(255,255,255,0.32); transition:color .15s; }
.footer-nav a:hover { color:rgba(255,255,255,0.7); }
.footer-copy { font-size:10px; color:rgba(255,255,255,0.16); letter-spacing:0.07em; }

/* ══ RESPONSIVE ══ */
@media (max-width: 960px) {
  #hero { grid-template-columns: 1fr; min-height: auto; padding: 72px 5vw 56px; }
  .hero-visual { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .clients-grid { grid-template-columns: 1fr 1fr; }
  .sns-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav-items { display: none; }
  .clients-grid { grid-template-columns: 1fr; }
  .contact-cards { flex-direction: column; }
  .sns-grid { grid-template-columns: 1fr; }
}
