@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/* ============================================================
   Base / Reset
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  color: #333;
  background: #fff;
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }

/* ============================================================
   Variables
   ============================================================ */
:root {
  --color-primary: #1a3a7c;
  --color-accent:  #294571;
  --color-bg-light: #f0f4f8;
  --color-text:    #333;
  --color-white:   #fff;
  --max-width: 1200px;
  --header-height: 70px;
}

/* ============================================================
   Layout helpers
   ============================================================ */
.l-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
}
@media (max-width: 768px) {
  .l-container { padding: 0 20px; }
}

/* ============================================================
   Header
   ============================================================ */
.l-header {
  position: fixed;
  top: 0; left: 0; width: 100%;
  height: var(--header-height);
  background: rgba(255,255,255,0.02);
  backdrop-filter: blur(4px);
  z-index: 100;
  /* box-shadow: 0 1px 6px rgba(0,0,0,.08); */
}
.l-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  /* max-width: var(--max-width); */
  max-width: 100%;
  margin: 0 auto;
  padding: 0 40px;
}
.l-header__logo img { height: 36px; width: auto; }

/* Global nav */
.g-nav { display: flex; align-items: center; gap: 82px; }
.g-nav__list { display: flex; gap: 82px; }
.g-nav__item a {
  font-size: 0.85rem;
  font-weight: 500;
  color: #444;
  transition: color .2s;
}
.g-nav__item a:hover { color: var(--color-accent); }
.g-nav__cta a {
  display: inline-block;
  padding: 6px 62px;
  background: var(--color-accent);
  color: #fff;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background .2s;
}
.g-nav__cta a:hover { background: var(--color-primary); }

/* Hamburger */
.js-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px; height: 44px;
  gap: 6px;
  cursor: pointer;
  background: none; border: none; padding: 4px;
}
.js-hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: #333;
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.js-hamburger.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.js-hamburger.is-open span:nth-child(2) { opacity: 0; }
.js-hamburger.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Mobile nav drawer */
.g-nav__drawer {
  display: none;
  position: fixed;
  top: var(--header-height); left: 0; width: 100%;
  background: #fff;
  padding: 24px 20px 32px;
  box-shadow: 0 4px 12px rgba(0,0,0,.1);
  z-index: 99;
}
.g-nav__drawer.is-open { display: block; }
.g-nav__drawer .g-nav__list {
  flex-direction: column;
  gap: 0;
  border-top: 1px solid #eee;
}
.g-nav__drawer .g-nav__item a {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid #eee;
  font-size: 1rem;
}
.g-nav__drawer .g-nav__cta { margin-top: 20px; }
.g-nav__drawer .g-nav__cta a { display: block; text-align: center; padding: 14px; }

@media (max-width: 900px) {
  .g-nav__list,
  .g-nav__cta { display: none; }
  .js-hamburger { display: flex; }
}

/* ============================================================
   Main visual
   ============================================================ */
.s-main {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
}
.s-main__bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/index/main/bg.jpg');
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.s-main__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 80px 40px;
}
.s-main__text { flex: 1; }
.s-main__catch {
  font-size: clamp(2.4rem, 9vw, 10rem);
  font-weight: 900;
  line-height: 1.2;
  color: var(--color-primary);
  margin-bottom: 28px;
  
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-style: normal;
}
.s-main__lead {
  font-size: 1.05rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 8px;
}
.s-main__sub {
  font-size: 0.85rem;
  color: #666;
}
.s-main__image {
  flex: 0 0 340px;
  max-width: 340px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
}
.s-main__image img { width: 100%; height: 260px; object-fit: cover; }

@media (max-width: 900px) {
  .s-main__inner { flex-direction: column; padding: 60px 20px; }
  .s-main__image { flex: none; max-width: 100%; width: 100%; }
  .s-main__image img { height: 200px; }
}

/* ============================================================
   News
   ============================================================ */
.s-news { padding: 40px 0; background: #fff; }
.s-news__inner {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
}
.s-news__label {
  flex: 0 0 auto;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: .1em;
  padding: 6px 16px;
  align-self: flex-start;
}
.s-news__list { flex: 1; }
.s-news__item {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  font-size: 0.9rem;
}
.s-news__item:first-child { border-top: 1px solid #eee; }
.s-news__date { flex: 0 0 90px; color: #888; font-size: 0.82rem; }
.s-news__title a:hover { color: var(--color-accent); text-decoration: underline; }

@media (max-width: 768px) {
  .s-news__inner { flex-direction: column; gap: 16px; padding: 0 20px; }
  .s-news__item { flex-direction: column; gap: 4px; }
  .s-news__date { flex: none; }
}

/* ============================================================
   Section heading common
   ============================================================ */
.c-section-head {
  text-align: left;
  margin-bottom: 48px;
  position: relative;
  z-index: 0;
}

/* サークル背景 — z-index:0 が stacking context を作るので ::before の -1 はここで閉じる */
.c-section-head::before {
  content: '';
  position: absolute;
  top: 260%;
  left: 0;
  transform: translate(-38%, -80%);
  width:  clamp(220px, 30vw, 400px);
  height: clamp(220px, 30vw, 400px);
  background: #f0f6fc;
  border-radius: 50%;
  z-index: -1;
  pointer-events: none;
}

/* 中央揃えバリアント（RECRUIT INFO 等） */
.c-section-head.is-center {
  text-align: center;
}
.c-section-head.is-center::before {
  left: 50%;
  transform: translate(-50%, -50%);
}

.c-section-head__en {
  display: block;
  font-size: clamp(2.8rem, 6vw, 6.5rem);
  font-weight: 900;
  color: var(--color-text);
  letter-spacing: .04em;
  line-height: 1;
}
.c-section-head__en::first-letter {
  color: var(--color-primary);
}

.c-section-head__ja {
  display: block;
  font-size: 1rem;
  color: #666;
  margin-top: 8px;
}

/* ============================================================
   Service
   ============================================================ */
.s-service {
  padding: 80px 0;
  background: #fff;
}
.s-service__inner { max-width: var(--max-width); margin: 0 auto; padding: 0 40px; }
.s-service__label {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 48px;
}

/* Diagram */
.s-service__diagram {
  position: relative;
  width:80%;
  max-width: var(--max-width);
  height: 600px;
  margin: 0 auto 56px;
}
.s-service__diagram-item {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  font-size: 0.82rem;
  color: #555;
}
.s-service__diagram-item .box {
  width: 120px; height: 90px;
  background: #ccc;
  border-radius: 2px;
}
/* center */
.s-service__diagram-item.is-center {
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.9rem;
  color: var(--color-primary);
}
.s-service__diagram-item.is-center .box {
  width: 130px; height: 100px;
  background: var(--color-bg-light);
  border: 2px solid #bbb;
}
/* top */
.s-service__diagram-item.is-top { top: 0; left: 42%; transform: translateX(-50%); }
/* bottom */
.s-service__diagram-item.is-bottom { bottom: 0; left: 42%; transform: translateX(-50%); }
/* left */
.s-service__diagram-item.is-left { top: 42%; left: 0; transform: translateY(-50%); }
/* right */
.s-service__diagram-item.is-right { top: 42%; right: 0; transform: translateY(-50%); }

/* Connector lines via pseudo / SVG overlay */
.s-service__diagram-svg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}

/* Detail */
.s-service__detail { max-width: 700px; margin: 0 auto; text-align: center; }
.s-service__detail-title { font-size: 1.25rem; font-weight: 700; color: var(--color-primary); margin-bottom: 16px; }
.s-service__detail-body { font-size: 0.9rem; color: #555; line-height: 1.9; margin-bottom: 28px; }
.c-btn-outline {
  display: inline-block;
  padding: 12px 36px;
  border: 2px solid #aaa;
  border-radius: 30px;
  font-size: 0.9rem;
  color: #555;
  transition: border-color .2s, color .2s;
}
.c-btn-outline:hover { border-color: var(--color-accent); color: var(--color-accent); }

@media (max-width: 768px) {
  .s-service__inner { padding: 0 20px; }
  .s-service__diagram { width: 100%; height: auto; position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .s-service__diagram-item { position: static; transform: none; }
  .s-service__diagram-svg { display: none; }
  .s-service__diagram-item.is-center { grid-column: 1 / -1; }
}

/* ============================================================
   Recruit
   ============================================================ */
.s-recruit {
  padding: 80px 0;
  background: var(--color-bg-light);
}
.s-recruit__inner { max-width: var(--max-width); margin: 0 auto; padding: 0 40px; text-align: center; }
.s-recruit__body { font-size: 0.9rem; color: #555; line-height: 1.9; margin-bottom: 40px; }
.s-recruit__buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; margin-bottom: 24px; }
.c-btn-recruit {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 44px;
  border: 2px solid var(--color-primary);
  border-radius: 40px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary);
  min-width: 200px;
  justify-content: center;
  transition: background .2s, color .2s;
}
.c-btn-recruit:hover { background: var(--color-primary); color: #fff; }
.c-btn-recruit .arrow {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--color-primary);
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.c-btn-recruit:hover .arrow { background: #fff; }
.c-btn-recruit .arrow::after {
  content: '';
  display: block;
  width: 6px; height: 6px;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
  transform: rotate(45deg) translate(-1px, 1px);
}
.c-btn-recruit:hover .arrow::after { border-color: var(--color-primary); }
.s-recruit__contact { margin-top: 8px; }
.c-btn-contact-sm {
  display: inline-block;
  padding: 12px 40px;
  background: var(--color-accent);
  color: #fff;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background .2s;
}
.c-btn-contact-sm:hover { background: var(--color-primary); }

@media (max-width: 600px) {
  .s-recruit__inner { padding: 0 20px; }
  .c-btn-recruit { min-width: 100%; }
}

/* ============================================================
   Initiatives (当社の取り組み)
   ============================================================ */
.s-initiatives { padding: 80px 0; background: var(--color-bg-light); }
.s-initiatives__inner { max-width: var(--max-width); margin: 0 auto; padding: 0 40px; }
.s-initiatives__label {
  font-size: 0.78rem;
  letter-spacing: .12em;
  color: #888;
  margin-bottom: 4px;
}
.s-initiatives__heading { font-size: 1.1rem; font-weight: 700; color: #333; margin-bottom: 40px; }
.s-initiatives__items { display: flex; flex-direction: column; gap: 56px; }
.s-initiatives__item {
  display: flex;
  align-items: center;
  gap: 98px;
}
.s-initiatives__item.is-reverse { flex-direction: row-reverse; }
.s-initiatives__item-image { flex: 0 0 440px; }
.s-initiatives__item-image img { width: 100%; height: 340px; object-fit: cover; border-radius: 4px; background: #ccc; }
.s-initiatives__item-body { flex: 1; }
.s-initiatives__item-title { font-size: 1.2rem; font-weight: 700; color: #333; margin-bottom: 12px; }
.s-initiatives__item-text { font-size: 0.88rem; color: #555; line-height: 2; }

@media (max-width: 768px) {
  .s-initiatives__inner { padding: 0 20px; }
  .s-initiatives__item,
  .s-initiatives__item.is-reverse { flex-direction: column; gap: 20px; }
  .s-initiatives__item-image { flex: none; width: 100%; }
}

/* ============================================================
   Contact CTA (blue band)
   ============================================================ */
.s-contact-cta {
  padding: 60px 0;
  background: var(--color-accent);
  color: #fff;
}
.s-contact-cta__inner { max-width: var(--max-width); margin: 0 auto; padding: 0 40px; text-align: center; }
.s-contact-cta__title { font-size: 1.1rem; font-weight: 700; margin-bottom: 28px; }
.s-contact-cta__buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.c-btn-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 36px;
  background: #fff;
  color: var(--color-accent);
  border-radius: 6px;
  font-weight: 700;
  font-size: 1.1rem;
  transition: opacity .2s;
  min-width: 240px;
  justify-content: center;
}
.c-btn-cta:hover { opacity: .85; }
.c-btn-cta .icon { font-size: 1.3rem; }

@media (max-width: 600px) {
  .s-contact-cta__inner { padding: 0 20px; }
  .c-btn-cta { min-width: 100%; font-size: 1rem; }
}

/* ============================================================
   Footer
   ============================================================ */
.l-footer { background: #fff; border-top: 1px solid #ddd; padding: 40px 0 24px; }
.l-footer__upper {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px 32px;
  border-bottom: 1px solid #eee;
}
.l-footer__nav { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.l-footer__nav a { font-size: 0.82rem; color: #666; transition: color .2s; }
.l-footer__nav a:hover { color: var(--color-accent); }
.l-footer__lower {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 28px 40px 0;
}
.l-footer__info { font-size: 0.78rem; color: #888; line-height: 1.8; }
.l-footer__info .company-name { font-size: 0.92rem; font-weight: 700; color: #333; margin-bottom: 4px; }
.l-footer__logo img { height: 60px; width: auto; }
.l-footer__copy {
  text-align: center;
  font-size: 0.72rem;
  color: #aaa;
  padding-top: 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: 40px;
  padding-right: 40px;
}

@media (max-width: 768px) {
  .l-footer__upper { flex-direction: column; gap: 20px; padding: 0 20px 24px; }
  .l-footer__lower { flex-direction: column; align-items: flex-start; gap: 20px; padding: 20px 20px 0; }
  .l-footer__copy { padding-left: 20px; padding-right: 20px; }
}

/* ============================================================
   Main visual — right-fixed decorative image
   z-index: bg=0, float=1, inner-text=2
   ============================================================ */
.s-main__float {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

/* 右端固定、高さ100%（セクション全高）*/
.s-main__float-parallax {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
}

/* 始点 height:100% → ズームでクロップ */
.s-main__float-img {
  display: block;
  height: 100%;
  width: auto;
  max-width: none;
  opacity: 0.6;
  filter: drop-shadow(-16px 0 32px rgba(26, 58, 124, 0.12));
  animation: anim-float-zoom 8s ease-in-out infinite;
  will-change: transform;
  transform-origin: center center;
}

@keyframes anim-float-zoom {
  0%   { transform: scale(1);    }
  50%  { transform: scale(1.07); }
  100% { transform: scale(1);    }
}

/* ============================================================
   Animations — page load (main visual)
   ============================================================ */
@keyframes anim-slide-left {
  from { opacity: 0; transform: translateX(-64px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes anim-blur-in {
  from { opacity: 0; filter: blur(20px); transform: scale(1.04); }
  to   { opacity: 1; filter: blur(0);    transform: scale(1); }
}
@keyframes anim-fade-up {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

.s-main__catch {
  animation: anim-slide-left .9s cubic-bezier(.22,.68,0,1.2) both;
}
.s-main__lead {
  animation: anim-fade-up .8s .45s cubic-bezier(.22,.68,0,1.2) both;
}
.s-main__sub {
  animation: anim-fade-up .8s .65s cubic-bezier(.22,.68,0,1.2) both;
}
.s-main__image {
  animation: anim-blur-in 1.2s .3s cubic-bezier(.4,0,.2,1) both;
}

/* ============================================================
   Animations — scroll reveal
   ============================================================ */

/* overflow clip so translated elements don't create scrollbar */
.s-news, .s-service, .s-recruit, .s-initiatives, .s-contact-cta {
  overflow: hidden;
}

/* Base hidden state */
[data-reveal] {
  opacity: 0;
  transition:
    opacity  .75s cubic-bezier(.4,0,.2,1),
    transform .75s cubic-bezier(.4,0,.2,1);
  will-change: opacity, transform;
}
[data-reveal="left"]  { transform: translateX(-56px); }
[data-reveal="right"] { transform: translateX( 56px); }
[data-reveal="up"]    { transform: translateY( 36px); }

[data-reveal].is-visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* Blur-in on scroll */
.js-blur-in {
  opacity: 0;
  filter: blur(18px);
  transform: scale(1.05);
  transition:
    opacity   .95s cubic-bezier(.4,0,.2,1),
    filter    .95s cubic-bezier(.4,0,.2,1),
    transform .95s cubic-bezier(.4,0,.2,1);
  will-change: opacity, filter, transform;
}
.js-blur-in.is-visible {
  opacity: 1;
  filter: blur(0);
  transform: scale(1);
}

/* Stagger delay helpers */
[data-reveal-delay="1"] { transition-delay: .10s; }
[data-reveal-delay="2"] { transition-delay: .20s; }
[data-reveal-delay="3"] { transition-delay: .30s; }
[data-reveal-delay="4"] { transition-delay: .45s; }
[data-reveal-delay="5"] { transition-delay: .60s; }

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  [data-reveal], .js-blur-in,
  .s-main__catch, .s-main__lead, .s-main__sub, .s-main__image,
  .s-main__float-img {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    animation: none !important;
    transition: none !important;
  }
}
