/* ==========================
   GSAP勉強会 実演用コーポレートサイト
   ========================== */
:root {
  --color-main: #0f3d5c;
  --color-accent: #e8a33d;
  --color-text: #2b2b2b;
  --color-bg: #ffffff;
  --color-bg-gray: #f4f6f8;
  --font-jp: "Noto Sans JP", sans-serif;
  --font-en: "Montserrat", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-jp);
  color: var(--color-text);
  line-height: 1.8;
  background: var(--color-bg);
}

img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }

.sp-only { display: none; }

/* Header */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  z-index: 100;
  border-bottom: 1px solid #eee;
}
.header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.header__logo {
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--color-main);
  letter-spacing: 0.02em;
}
.header__logo span { color: var(--color-accent); }
.header__nav { margin-left: auto; }
.nav-list { display: flex; gap: 28px; font-size: 0.9rem; font-weight: 500; }
.nav-list a:hover { color: var(--color-accent); }
.header__cta {
  background: var(--color-main);
  color: #fff;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  transition: background 0.3s;
}
.header__cta:hover { background: var(--color-accent); }

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
}
/* パララックス用の背景レイヤー（上下に余白を持たせてズレしろを確保） */
.hero__photo {
  position: absolute;
  left: 0;
  right: 0;
  top: -15%;
  height: 130%;
  background: url("../images/hero.jpg") center / cover no-repeat;
  z-index: 0;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(11, 44, 66, 0.92) 0%, rgba(15, 61, 92, 0.75) 50%, rgba(15, 61, 92, 0.35) 100%);
  z-index: 1;
}
.hero__inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 24px 80px;
  width: 100%;
}
.hero__sub {
  font-family: var(--font-en);
  font-weight: 600;
  letter-spacing: 0.25em;
  color: var(--color-accent);
  margin-bottom: 16px;
}
.hero__title {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.4;
  margin-bottom: 24px;
}
.hero__lead { opacity: 0.9; margin-bottom: 40px; }
.hero__bg {
  position: absolute;
  right: -10%;
  bottom: -20%;
  width: 60vw;
  height: 60vw;
  max-width: 700px;
  max-height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232,163,61,0.25) 0%, transparent 70%);
  z-index: 1;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 16px 40px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.3s, background 0.3s, color 0.3s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--color-accent); color: #fff; }
.btn--white { background: #fff; color: var(--color-main); }

/* Sections common */
.section { padding: 110px 0; }
.section:nth-of-type(even) { background: var(--color-bg-gray); }
.section__inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section__label {
  font-family: var(--font-en);
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--color-accent);
  font-size: 0.85rem;
}
.section__title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 900;
  color: var(--color-main);
  margin-bottom: 48px;
}

/* About */
.about__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 0.8fr;
  gap: 40px;
  align-items: center;
}
.about__img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(15, 61, 92, 0.15);
}
.about__catch {
  font-size: 1.4rem;
  color: var(--color-main);
  margin-bottom: 20px;
}
.about__text p + p { margin-top: 16px; }
.about__stats { display: grid; gap: 20px; }
.stat {
  background: #fff;
  border: 1px solid #e5e9ec;
  border-radius: 12px;
  padding: 24px 28px;
  box-shadow: 0 4px 16px rgba(15, 61, 92, 0.06);
}
.stat__number {
  font-family: var(--font-en);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--color-main);
  line-height: 1.2;
}
.stat__number span { font-size: 1rem; font-family: var(--font-jp); margin-left: 4px; }
.stat__label { font-size: 0.85rem; color: #777; }

/* Service cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 16px;
  padding: 36px 28px;
  box-shadow: 0 6px 24px rgba(15, 61, 92, 0.08);
}
.card__icon { font-size: 2.4rem; margin-bottom: 16px; }
.card__title { font-size: 1.1rem; color: var(--color-main); margin-bottom: 12px; }
.card__text { font-size: 0.9rem; color: #555; }

/* Works */
/* 横スクロール用：カードを横一列に並べて画面幅からはみ出させる */
.works { overflow: hidden; }
.works__list { display: flex; gap: 32px; }
.works__list .work { flex: 0 0 min(60vw, 560px); }
.work {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(15, 61, 92, 0.08);
}
.work__thumb { height: 200px; overflow: hidden; }
.work__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.work:hover .work__thumb img { transform: scale(1.05); }
.work__body { padding: 24px; }
.work__cat {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
  border-radius: 999px;
  padding: 2px 12px;
  margin-bottom: 12px;
}
.work__title { font-size: 1.05rem; color: var(--color-main); margin-bottom: 8px; }
.work__text { font-size: 0.88rem; color: #555; }

/* News */
.news__list { border-top: 1px solid #ddd; }
.news__item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 8px;
  border-bottom: 1px solid #ddd;
  font-size: 0.95rem;
}
.news__item time { font-family: var(--font-en); color: #888; flex-shrink: 0; }
.news__tag {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-main);
  background: #e8eef3;
  border-radius: 4px;
  padding: 2px 10px;
}
.news__item a:hover { color: var(--color-accent); }

/* Company */
.company__table { width: 100%; border-collapse: collapse; }
.company__table th,
.company__table td {
  text-align: left;
  padding: 18px 16px;
  border-bottom: 1px solid #ddd;
  font-size: 0.95rem;
}
.company__table th { width: 180px; color: var(--color-main); vertical-align: top; }

/* CTA */
.cta {
  background: linear-gradient(135deg, #0f3d5c, #1f6a99);
  color: #fff;
  text-align: center;
  padding: 90px 24px;
}
.cta__title { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 900; margin-bottom: 16px; }
.cta__text { opacity: 0.9; margin-bottom: 36px; }

/* Footer */
.footer { background: #0b2c42; color: #fff; padding: 48px 24px 32px; }
.footer__inner { max-width: 1200px; margin: 0 auto; text-align: center; }
.footer__logo { font-family: var(--font-en); font-weight: 800; font-size: 1.2rem; margin-bottom: 20px; }
.footer__logo span { color: var(--color-accent); }
.footer__nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 0.85rem;
  margin-bottom: 28px;
}
.footer__nav a:hover { color: var(--color-accent); }
.footer__copy { font-size: 0.75rem; opacity: 0.6; }

/* Responsive */
@media (max-width: 900px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .works__list { display: grid; grid-template-columns: 1fr; }
  .works__list .work { flex: none; }
  .about__grid { grid-template-columns: 1fr; gap: 40px; }
  .about__img { min-height: 240px; }
}
@media (max-width: 640px) {
  .sp-only { display: inline; }
  .header__nav { display: none; }
  .section { padding: 72px 0; }
  .card-grid { grid-template-columns: 1fr; }
  .news__item { flex-wrap: wrap; gap: 8px 16px; }
  .company__table th { width: 110px; }
}
