:root{--hero-bg:var(--hero-bg);
  --red:#C41E3A;
  --red-dark:#B01830;
  --ink:#0F172A;
  --text:#0b1220;
  --muted:#5b6472;
  --bg:#ffffff;
  --card:#ffffff;
  --border: rgba(15,23,42,.12);
  --shadow: 0 18px 45px rgba(15,23,42,.14);
  --radius:18px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,"Noto Sans","Apple Color Emoji","Segoe UI Emoji";
  color:var(--text);
  background:var(--bg);
}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
.container{width:min(1120px, calc(100% - 32px)); margin-inline:auto}

.btn{
  display:inline-flex; align-items:center; gap:.6rem;
  padding:.85rem 1.25rem;
  border-radius:999px;
  border:1px solid transparent;
  font-weight:600;
  letter-spacing:.2px;
  cursor:pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  user-select:none;
}
.btn:active{transform:translateY(1px)}
.btn-primary{background:var(--red); color:#fff; box-shadow:0 14px 28px rgba(196,30,58,.25)}
.btn-primary:hover{background:var(--red-dark)}
.btn-ghost{background:rgba(255,255,255,.14); border-color:rgba(255,255,255,.22); color:#fff}
.btn-ghost:hover{background:rgba(255,255,255,.22)}
.btn-light{background:#fff; color:var(--red); box-shadow:0 14px 28px rgba(15,23,42,.18)}
.btn-light:hover{background:#f6f7fb}

.badge{
  display:inline-flex; align-items:center; gap:.5rem;
  padding:.45rem .85rem;
  border-radius:999px;
  background:rgba(196,30,58,.10);
  color:var(--red);
  font-weight:700;
  font-size:.85rem;
}

.header{
  position:fixed; inset:0 0 auto 0;
  z-index:50;
  transition: background .2s ease, box-shadow .2s ease;
}
.header-inner{
  height:78px;
  display:flex; align-items:center; justify-content:space-between;
}
.brand{
  display:flex; align-items:center; gap:.75rem;
  font-weight:800;
  letter-spacing:.4px;
}
.brand .dot{
  width:12px; height:12px; border-radius:50%;
  background:var(--red);
  box-shadow:0 8px 18px rgba(196,30,58,.35);
}
.nav{
  display:flex; align-items:center; gap:1.25rem;
}
.nav a{
  font-size:.92rem;
  font-weight:600;
  opacity:.9;
  transition: opacity .15s ease, color .15s ease;
}
.nav a:hover{opacity:1; color:var(--red)}
.header--top .brand, .header--top .nav a{color:#fff}
.header--top .nav a:hover{color:#fff}
.header--top{background:transparent}
.header--scrolled{
  background:rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 25px rgba(15,23,42,.08);
}
.header--scrolled .brand, .header--scrolled .nav a{color:var(--text)}
.header-actions{display:flex; align-items:center; gap:.7rem}

.menu-btn{
  width:42px; height:42px;
  display:none;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(255,255,255,.12);
  color:#fff;
  cursor:pointer;
}
.header--scrolled .menu-btn{
  border-color:var(--border);
  background:#fff;
  color:var(--text);
}

.mobile-drawer{
  position:fixed; inset:0;
  background:rgba(15,23,42,.55);
  display:none;
  z-index:60;
}
.mobile-drawer.open{display:block}
.drawer-panel{
  position:absolute; right:0; top:0; bottom:0;
  width:min(360px, 86vw);
  background:#fff;
  padding:18px;
  box-shadow: -20px 0 50px rgba(15,23,42,.25);
}
.drawer-top{display:flex; align-items:center; justify-content:space-between; margin-bottom:8px}
.drawer-links{display:flex; flex-direction:column; gap:10px; margin-top:12px}
.drawer-links a{
  padding:12px 12px;
  border-radius:12px;
  font-weight:700;
  color:var(--text);
  background:#f6f7fb;
}
.drawer-links a:hover{background:#eef0f8}
.drawer-cta{margin-top:14px}

.hero{
  min-height:100vh;
  padding-top:78px;
  color:#fff;
  position:relative;
  overflow:hidden;
}
.hero::before{
  content:"";
  position:absolute; inset:0;
  background:
    linear-gradient(90deg, rgba(15,23,42,.75) 0%, rgba(15,23,42,.35) 55%, rgba(15,23,42,.55) 100%),
    var(--hero-bg) center/cover no-repeat;
}
.hero::after{
  content:"";
  position:absolute; inset:0;
  background: radial-gradient(1000px 500px at 80% 25%, rgba(196,30,58,.30), transparent 60%);
  mix-blend-mode: screen;
  pointer-events:none;
}
.hero-content{
  position:relative;
  padding:86px 0 70px;
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap:38px;
  align-items:center;
}
.h1{
  font-size: clamp(2.3rem, 4vw, 3.6rem);
  line-height:1.05;
  margin:.75rem 0 .75rem;
  letter-spacing:-.8px;
}
.lead{
  font-size:1.08rem;
  color:rgba(255,255,255,.86);
  line-height:1.7;
  margin:0 0 1.35rem;
  font-weight:300;
}
.hero-card{
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius);
  padding:20px;
  backdrop-filter: blur(8px);
}
.hero-card img{border-radius:14px; border:1px solid rgba(255,255,255,.12)}
.hero-cta{display:flex; gap:12px; flex-wrap:wrap; align-items:center}
.slider-controls{
  display:flex; gap:10px; margin-top:18px;
}
.icon-btn{
  width:44px; height:44px; border-radius:14px;
  border:1px solid rgba(255,255,255,.16);
  background:rgba(255,255,255,.10);
  color:#fff;
  cursor:pointer;
  transition: background .15s ease, transform .15s ease;
}
.icon-btn:hover{background:rgba(255,255,255,.18)}
.icon-btn:active{transform:translateY(1px)}
.pills{display:flex; gap:8px; margin-top:14px}
.pill{
  width:28px; height:6px; border-radius:999px;
  background:rgba(255,255,255,.28);
  cursor:pointer;
  border:0;
}
.pill.active{background:var(--red)}

.section{padding:92px 0}
.section-title{
  text-align:center;
  margin-bottom:48px;
}
.section-title h2{
  font-size: clamp(2rem, 3.2vw, 3rem);
  margin:0 0 10px;
  letter-spacing:-.6px;
}
.section-title p{
  margin:0 auto;
  max-width: 720px;
  color:var(--muted);
  font-weight:300;
  line-height:1.7;
  font-size:1.05rem;
}

.cards{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:22px;
}
.card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius: var(--radius);
  padding:22px;
  box-shadow: 0 10px 28px rgba(15,23,42,.06);
}
.card h3{margin:10px 0 10px; font-size:1.15rem}
.card p{margin:0; color:var(--muted); line-height:1.7; font-weight:300}
.card .icon{
  width:44px; height:44px; border-radius:14px;
  display:grid; place-items:center;
  background: rgba(196,30,58,.10);
  color:var(--red);
  font-weight:900;
}
.card .meta{
  margin-top:14px;
  display:flex; gap:10px; flex-wrap:wrap;
}
.tag{
  font-size:.78rem;
  font-weight:700;
  padding:.35rem .6rem;
  border-radius:999px;
  background:#f6f7fb;
  border:1px solid rgba(15,23,42,.08);
  color:#1c2432;
}

.stats{
  margin-top:40px;
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:18px;
}
.stat{
  text-align:center;
  padding:18px;
  border-radius: var(--radius);
  border:1px solid var(--border);
  background:#fff;
}
.stat .bubble{
  width:64px; height:64px;
  border-radius:999px;
  background: rgba(196,30,58,.10);
  display:grid; place-items:center;
  margin:0 auto 10px;
  color:var(--red);
  font-weight:900;
}
.stat .value{
  font-size:2.4rem;
  font-weight:900;
  letter-spacing:-.6px;
  color:var(--red);
}
.stat .label{margin-top:6px; color:var(--muted); font-weight:300; font-size:1.02rem}

.portfolio-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:18px;
}
.work{
  position:relative;
  border-radius: var(--radius);
  overflow:hidden;
  border:1px solid var(--border);
  height: 260px;
  background-size: cover;      /* 100%で領域を埋める */
  background-position: center; /* 中央寄せ */
  background-repeat: no-repeat;
}
.work::after{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(180deg, transparent 45%, rgba(15,23,42,.85) 100%);
  opacity:.88;
}
.work-info{
  position:absolute; inset:auto 0 0 0;
  padding:18px;
  z-index:2;
}
.work-info h3{margin:0 0 4px; color:#fff; letter-spacing:-.3px}
.work-info p{margin:0; color:rgba(255,255,255,.82); font-weight:300; font-size:.95rem}

.cta{
  position:relative;
  color:#fff;
  background: var(--red);
  overflow:hidden;
}
.cta::before{
  content:"";
  position:absolute; inset:0;
  background:
    radial-gradient(600px 300px at 80% 10%, rgba(255,255,255,.22), transparent 55%),
    radial-gradient(520px 320px at 10% 90%, rgba(0,0,0,.12), transparent 55%);
}
.cta-inner{position:relative; text-align:center}
.cta-inner h2{margin:0 0 14px; font-size: clamp(2.1rem, 3.3vw, 3.1rem); letter-spacing:-.6px}
.cta-inner p{margin:0 auto 22px; max-width:820px; color:rgba(255,255,255,.90); font-weight:300; line-height:1.7}

.footer{
  position:relative;
  color:#fff;
  background: var(--ink);
  overflow:hidden;
}
.footer::before{
  content:"";
  position:absolute; inset:0;
  background:
    linear-gradient(180deg, rgba(15,23,42,.78), rgba(15,23,42,.92)),
    url("../img/footer-world-map.jpg") center/cover no-repeat;
  opacity:.9;
}
.footer-inner{position:relative; padding:70px 0 42px}
.footer-grid{
  display:grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap:26px;
  margin-bottom:34px;
}
.footer h4{
  margin:0 0 12px;
  font-size:.82rem;
  letter-spacing:1.4px;
  text-transform:uppercase;
}
.footer p, .footer li, .footer a{color:rgba(255,255,255,.78); font-weight:300}
.footer ul{list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:10px}
.footer a:hover{color:#fff}
.footer-bottom{
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top:18px;
  text-align:center;
  color:rgba(255,255,255,.62);
  font-weight:300;
  font-size:.95rem;
}

@media (max-width: 980px){
  .hero-grid{grid-template-columns: 1fr; gap:20px}
  .cards{grid-template-columns: 1fr}
  .stats{grid-template-columns: repeat(2,1fr)}
  .portfolio-grid{grid-template-columns: 1fr}
  .nav{display:none}
  .menu-btn{display:grid; place-items:center}
  .footer-grid{grid-template-columns: 1fr 1fr}
}
@media (max-width: 560px){
  .footer-grid{grid-template-columns: 1fr}
  .stat .value{font-size:2.1rem}
}

/* === Hero slider styles (from redcoolcorp_static_final_v2) === */
.hero{
  height:100vh;
  min-height:680px;
  position:relative;
  padding-top:84px; /* header */
}
.hero-slides{height:100%}
.hero-slide{
  position:absolute;
  inset:0;
  background-position:center;
  background-size:cover;
  opacity:0;
  transform:scale(1.01);
  transition:opacity 600ms ease, transform 1200ms ease;
}
.hero-slide.is-active{
  opacity:1;
  transform:scale(1);
}
.hero-overlay{
  position:absolute;
  inset:0;

}
.hero-content{
  position:relative;
  height:100%;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:18px;
  padding-bottom:70px; /* leave room for dots */
}
.hero-title{
  margin:0;
  font-size: clamp(54px, 6.5vw, 96px);
  line-height:1.02;
  font-weight:800;
  letter-spacing:-.5px;
  text-shadow:0 10px 45px rgba(0,0,0,.55);
}
.hero-subtitle{
  margin:0;
  max-width:720px;
  color:rgb(255, 255, 255);
  font-size: clamp(16px, 1.5vw, 22px);
  line-height:1.55;
  text-shadow:0 8px 30px rgba(0,0,0,.55);
}
.hero-actions{
  margin-top:14px;
  display:flex;
  align-items:center;
  gap:18px;
}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:12px 22px;
  border-radius:999px;
  font-weight:800;
  font-size:14px;
  letter-spacing:.2px;
  border:2px solid transparent;
  min-width:140px;
}
.btn-primary{
  background:var(--red);
  color:#fff;
  box-shadow:0 14px 35px rgba(193,22,44,.35);
}
.btn-outline{
  background:rgba(0,0,0,.28);
  border-color:rgba(255,255,255,.85);
  color:#fff;
}

/* arrows */
.hero-arrow{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:54px;
  height:54px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.25);
  background:rgba(0,0,0,.25);
  backdrop-filter: blur(6px);
  color:#fff;
  cursor:pointer;
  display:grid;
  place-items:center;
  box-shadow:var(--shadow);
  opacity:.9;
}
.hero-arrow span{font-size:32px; line-height:1; margin-top:-2px}
.hero-arrow-left{left:18px}
.hero-arrow-right{right:18px}
.hero-arrow:hover{opacity:1}

/* dots */
.hero-dots{
  position:absolute;
  left:50%;
  bottom:24px;
  transform:translateX(-50%);
  display:flex;
  align-items:center;
  gap:10px;
  background:rgba(0,0,0,.25);
  border:1px solid rgba(255,255,255,.18);
  padding:10px 14px;
  border-radius:999px;
  backdrop-filter: blur(6px);
}
.dot{
  width:10px; height:10px;
  border-radius:999px;
  border:none;
  background:rgba(255,255,255,.35);
  cursor:pointer;
}
.dot.is-active{
  width:34px;
  background:var(--red);
}
.dot:focus{outline:2px solid rgba(255,255,255,.45); outline-offset:3px}

.spacer{height:40vh}

/* Responsive */
@media (max-width: 980px){
  .container{width:min(1200px, calc(100% - 44px))}
  .nav{display:none}
  .header-cta{display:none}
  .nav-toggle{display:inline-block}
  .hero-overlay{background:linear-gradient(90deg, rgba(0,0,0,.68) 0%, rgba(0,0,0,.35) 70%, rgba(0,0,0,.25) 100%)}
  .hero-arrow-left{left:10px}
  .hero-arrow-right{right:10px}
}


/* ===== Sections below hero ===== */

/* === Subpages: header white from start + banner between header and content (NO inline CSS) === */
body.subpage .header{
  background:#fff !important;
  box-shadow: 0 10px 24px rgba(0,0,0,.15) !important;
}
body.subpage .header .nav a,
body.subpage .header .brand .word,
body.subpage .header .menu-btn{
  color:#111 !important;
}
.subpage-banner{
  height:400px;
  overflow:hidden;
  background:#d9d9d9;
}
.subpage-banner img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.subpage-main{
  padding:56px 0 96px;
}



/* === Active menu highlight (v2) === */
/* active menu */
.nav a.active{
  position: relative;
  font-weight: 700;
}

.nav a.active::after{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 3px;
  background: #d10b2e;
  border-radius: 2px;
}

.hero-slide{ pointer-events:none; }
.hero-slide.is-active{ pointer-events:auto; }


/*ここからサブ
/* ===== Subpage body blocks ===== */
.subsec{ padding:70px 0; }
.two-col{ display:grid; grid-template-columns: 1fr 1fr; gap:40px; align-items:center; }
@media (max-width: 900px){ .two-col{ grid-template-columns:1fr; } }

.pill{
  display:inline-flex; align-items:center; gap:8px;
  padding:6px 14px; border-radius:999px;
  border:1px solid rgba(15,23,42,.12);
  background:#fff; font-weight:700; font-size:13px;
}
.pill-white{ background:transparent; border-color:rgba(255,255,255,.35); color:#fff; }

.subsec-about h2, .subsec-team h2{ font-size:44px; line-height:1.1; margin:14px 0 14px; }
.subsec-about p, .subsec-team p{ color:var(--muted); line-height:1.9; margin:0 0 18px; }

/* mosaic */
.about-mosaic{
  display:grid;
  grid-template-columns: 1.2fr 1fr;
  grid-template-rows: 160px 160px 160px;
  gap:12px;
}
.about-mosaic img{ width:100%; height:100%; object-fit:cover; border-radius:16px; }
.about-mosaic .m1{ grid-row:1 / span 2; }
.about-mosaic .m4{ grid-row:3; }
.about-mosaic .m5{ grid-column:2; grid-row:3; }

/* checklist */
.checklist{
  list-style:none; padding:0; margin:14px 0 22px;
  display:grid; grid-template-columns:1fr 1fr; gap:10px 18px;
}
.checklist li{
  position:relative; padding-left:22px; font-weight:700; color:#0f172a;
}
.checklist li::before{
  content:"✓"; position:absolute; left:0; top:0;
  color:#1d4ed8; font-weight:900;
}

/* blue block */
.subsec-blue{
  background:#1666d6;
  color:#fff;
}
.subsec-blue h2{ font-size:46px; line-height:1.1; margin:14px 0; }
.subsec-blue p{ color:rgba(255,255,255,.85); line-height:1.9; margin:0 0 22px; }
.blue-col{ align-items:stretch; }
.blue-right{ display:flex; justify-content:flex-end; }
.blue-right img{ width:min(520px, 100%); height:auto; object-fit:cover; border-radius:22px; }

.stat-row{ display:flex; gap:18px; flex-wrap:wrap; margin-top:22px; }
.stat{
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.18);
  border-radius:16px;
  padding:18px 20px;
  min-width:220px;
}
.stat .num{ font-size:34px; font-weight:900; line-height:1; }
.stat .lab{ margin-top:6px; color:rgba(255,255,255,.9); font-weight:700; }

/* team */
.team-left p{ color:var(--muted); }
.team-grid{
  display:grid; grid-template-columns:1fr 1fr; gap:22px;
}
@media (max-width: 900px){ .team-grid{ grid-template-columns:1fr; } }
.team-card{
  background:#fff;
  border:1px solid rgba(15,23,42,.10);
  border-radius:22px;
  padding:22px;
  box-shadow:0 10px 24px rgba(15,23,42,.10);
  text-align:center;
}
.team-card .avatar{
  width:190px; height:190px; margin:0 auto 14px;
  border-radius:999px; overflow:hidden; background:#eee;
}
.team-card .avatar img{ width:100%; height:100%; object-fit:cover; }
.team-card h3{ margin:8px 0 4px; }
.team-card .role{ margin:0 0 14px; color:var(--muted); }

.team-card .social{ display:flex; justify-content:center; gap:10px; }
.team-card .social a{
  width:38px; height:38px; border-radius:999px;
  background:#1666d6; color:#fff;
  display:inline-flex; align-items:center; justify-content:center;
  font-weight:900;
}

/* About: single image */
.about-image-single{
  width:100%;
}
.about-image-single img{
  width:100%;
  height:auto;
  display:block;
  border-radius:24px;
  object-fit:cover;
}

/* two-col reverse */
.two-col.reverse{
  direction: rtl;
}
.two-col.reverse > *{
  direction: ltr;
}


/*ここから
/* Updates / News */
.updates{
  padding: 48px 0;
}
.updates .container{
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}
.updates__list{
  display: flex;
  flex-direction: column;
  gap: 34px;
}
.updates__item{
  display: grid;
  grid-template-columns: 150px 1fr;
  column-gap: 28px;
  align-items: start;
}
.updates__date{
  background: #0e2a3a;            /* 濃いネイビー */
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .5px;
  padding: 14px 18px;
  border-radius: 0;               /* スクショっぽく角張らせる */
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 46px;
  width: 120px;
}
.updates__title{
  margin: 2px 0 10px;
  font-size: 22px;
  line-height: 1.35;
  font-weight: 700;
  color: #111;
}
.updates__text{
  margin: 0;
  color: #555;
  font-size: 14.5px;
  line-height: 1.9;
}

/* Responsive */
@media (max-width: 768px){
  .updates__item{
    grid-template-columns: 1fr;
    row-gap: 12px;
  }
  .updates__date{
    width: fit-content;
  }
  .updates__title{
    font-size: 20px;
  }
}