/* =========================
   Base
========================= */
:root{
  --brand:#1f6feb;
  --brand-rgb: 31,111,235;
  --bg:#f7f7fb;
  --bg-rgb: 247,247,251;
  --text:#162023;
  --muted:#687387;
  --card:#ffffff;
  --shadow:0 18px 44px rgba(12,16,28,.08);
  --wrap-w:min(1100px,92%);
  --header-h:72px;

  /* スクロールによる各コンテンツのディレイ表示 */
  --reveal-distance: 16px;
  --reveal-duration: 2s;  /* ディレイ秒数 */
  --reveal-ease: cubic-bezier(.2,.7,.2,1);

  /* つなぎ用トークン（好みで調整） */
  /* --bridge-fade-h: 280px; */
}
@media (max-width:768px){
  :root{ --header-h:60px; }
}

*{
  box-sizing:border-box
}
html{
  scroll-behavior:smooth;
  scroll-padding-top:var(--header-h)
}
body{
  margin:0; color:var(--text); background:var(--bg);
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Hiragino Sans","Noto Sans JP","Helvetica Neue",Arial,sans-serif;
  line-height:1.7;
}
img{
  max-width:100%;
  height:auto;
  display:block
}
a{
  color:var(--brand);
  text-decoration:none
}
a:hover{
  text-decoration:underline
}
.container{
  width:var(--wrap-w);
  margin-inline:auto
}
.section{
  padding:64px 0
}
.sec-title{
  font-size:clamp(26px,3.6vw,40px);
  margin:0 0 18px
}

/* =========================
   スクロールによる各コンテンツのディレイ表示
========================= */
.reveal{
  opacity:0;
  transform: translateY(var(--reveal-distance));
  transition:
    opacity var(--reveal-duration) var(--reveal-ease),
    transform var(--reveal-duration) var(--reveal-ease);
  will-change: opacity, transform;
}
.reveal.is-visible{
  opacity:1;
  transform: none;
}
@media (prefers-reduced-motion: reduce){
  .reveal,
  .reveal.is-visible{
    opacity:1 !important;
    transform:none !important;
    transition:none !important;
  }
}

/* =========================
   Header（半透明＋背景ぼかし）
========================= */
.site-header.dark{
  position:fixed; inset:0 0 auto 0; height:var(--header-h);
  z-index:1000;
  background:rgba(18,20,22,.62) !important;
  -webkit-backdrop-filter:blur(10px) saturate(120%);
  backdrop-filter:blur(10px) saturate(120%);
  border-bottom:1px solid rgba(255,255,255,.08);
  box-shadow:0 2px 10px rgba(0,0,0,.12);
}
@supports not ((-webkit-backdrop-filter:blur(10px)) or (backdrop-filter:blur(10px))){
  .site-header.dark{ background:rgba(18,20,22,.70); }
}

.header-inner{
  height:100%;
  width: 100%;

  padding-left: 30px;
  padding-right: 20px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-inline: 0;
  max-width: none;
}
.brand{
  display:flex;
  align-items:center;
  gap:0px;
}

.site-nav ul{
  margin:0;
  padding:0;
  list-style:none;
  display:flex;
  gap:20px;
  justify-content:flex-end
}
.site-nav a{
  padding:.4rem .2rem;
  color:#fff;
  text-shadow:0 1px 2px rgba(0,0,0,.35)
}
.nav-toggle{
  display:none;
  background:transparent;
  border:0;
  width:40px;
  height:40px;
  justify-self:end
}
.nav-toggle .bar{
  display:block;
  width:100%;
  height:3px;
  background:#fff;
  margin:6px 0;
  border-radius:2px
}
@media (max-width:768px){
  .site-nav{ position:absolute;
             inset:var(--header-h) 0 auto 0;
             background:rgba(18,20,22,.85);
             display:none;
             border-bottom:1px solid rgba(255,255,255,.08) }
  .site-nav.open{ display:block }
  .site-nav ul{ flex-direction:column }
  .site-nav a{ padding:1rem 1.25rem;
               border-top:1px solid rgba(255,255,255,.1) }
  .nav-toggle{ display:inline-block }
}

/* ヘッダロゴ（SSSicon＋SSS_Name） */
.brand-logo{
  height: 40px;
  width: auto;
  display: block;
}
@media (max-width: 768px){
  .brand-logo{
    height: 32px;
  }
}

/* =========================
   ヒーロー画像設定
========================= */
html, body{
  overflow-x: clip;
}
@supports not (overflow-x: clip){
  html, body{ overflow-x: hidden; }
}
.hero{
  position: relative;

  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);

  min-height: 100vh;  
  padding: 0px 0 32px;
  padding-top: var(--header-h);

  display: grid;
  align-items: center;
  justify-items: flex-start;
  padding-left: clamp(24px, 6vw, 80px);

  isolation: isolate;
  z-index: 2;
  overflow: hidden;
}
/* 少し濃い暗めグラデーションを敷く */
.hero::before{
  content:"";
  position:absolute;
  inset: var(--header-h) 0 0 0;
  z-index:1;
  background:
    linear-gradient(120deg,
      rgba(0,0,0,0.45),
      rgba(0,0,0,0.20)
    );
  pointer-events:none;
}

.hero__inner{
  position: relative;
  z-index: 3;
}

.hero__bg{
  position: absolute;
  inset: var(--header-h) 0 0 0;
  z-index: 0;
  pointer-events: none;

  overflow: hidden;
}
.hero__bg img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 65% 40% !important;

  filter: brightness(0.9) contrast(1.05);

  animation: none;
  transform: none;

  transform-origin: center;
  will-change: auto;
}


/* =========================================
   ヒーロー：斜めに流れるライン演出
========================================= */
.hero__fx{
  position: absolute;
  inset: var(--header-h) 0 0 0;

  z-index: 2;
  pointer-events: none;
  overflow: hidden;

  clip-path: polygon(
    80% 100%,
    100% 0%,
    100% 100%
  );
}
@supports ((-webkit-mask-image: linear-gradient(#000,#000)) or (mask-image: linear-gradient(#000,#000))){
  .hero__fx{
    clip-path: none;
    -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 62%);
            mask-image: linear-gradient(to left, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 62%);
  }
}

.hero__fx .diag-line{
  position: absolute;
  left: auto;
  right: var(--line-r, 0%);
  bottom: -25%;
  top: auto;

  width: 6px;
  height: 220%;

  opacity: 0;

  transform: rotate(45deg);
  transform-origin: 50% 100%;

  overflow: hidden;

  will-change: opacity, transform;
}

.hero__fx .diag-line__inner{
  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      to top,
      rgba(255,255,255,0) 0%,
      rgba(245,248,255,.18) 22%,
      rgba(255,255,255,.35) 35%,
      rgba(245,248,255,.12) 48%,
      rgba(255,255,255,0) 100%
    ),
    linear-gradient(
      to top,
      rgba(158,166,175,.98) 0%,
      rgba(176,184,193,.80) 35%,
      rgba(200,206,214,.22) 70%,
      rgba(200,206,214,0) 100%
    );
  background-blend-mode: screen;

  box-shadow:
    0 0 26px rgba(190,198,208,.60),
    0 0 85px rgba(190,198,208,.28);
  filter: blur(.12px) drop-shadow(0 0 14px rgba(210,218,228,.55));

  mix-blend-mode: screen;
}
.hero__fx .diag-line__inner::after{
  content: "";
  position: absolute;
  inset: -10px;
  background: inherit;
  opacity: .55;
  filter: blur(12px);
  pointer-events: none;
}

.hero__fx .diag-line__reveal{
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 0%;
  overflow: hidden;
}
@media (max-width: 560px){
  .hero__fx{
    clip-path: none !important;
    -webkit-mask-image: none !important;
            mask-image: none !important;
  }

  .hero__fx .diag-line{
    right: auto;
    left: var(--line-l, 0%);
    bottom: -5%;
    height: 260%;
  }

  .hero__fx .diag-line:nth-of-type(n+4){
    display: none;
  }
}



/* ===== PRテキスト ===== */
.hero__pr{
  width: min(1400px, 90vw);
  transform: none;
  container-type: inline-size;
}
.hero__pr .pr-line{
  margin: 0 0 2.6em;
  font-family: "BIZ UDMincho", "BIZ UDMincho Medium",
               "Yu Mincho", "Hiragino Mincho ProN",
               "MS PMincho", serif;
  font-weight: 500;
  font-size: clamp(22px, 3.2vw, 40px);
  line-height: 1.45;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0,0,0,.75);

  opacity: 0;
  transform: translateY(10px);
}
.hero-pr-line1, .hero-pr-line3{
  white-space: nowrap;
}
@container (max-width: 520px){
  .hero-pr-line1,
  .hero-pr-line3{
    white-space: normal;
    overflow-wrap: normal;
  }
}
.hero-pr-line2{
  margin-top: .4em;
  padding-right: .3em;
}

.hero__pr .pr-em{
  font-size: 2.0em;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.1;
  display: inline-block;
}
@media (max-width: 560px){
  .hero-pr-line1,
  .hero-pr-line2,
  .hero-pr-line3{
    white-space: normal;
    overflow-wrap: break-word;
  }
  .hero{
    align-items: start;
    justify-items: center;
    padding-left: 0;
  }
  .hero__inner{
    width: 100%;
    padding-top: 12px;
    display: grid;
    justify-items: center;
  }
  /* 3行(p)を“列”として横並びにする */
  .hero__pr{
    display: flex;
    flex-direction: row-reverse;
    gap: 80px;
    align-items: center;
    justify-content: center;
    align-items: flex-start;

    margin-top: 8px;
    padding-right: 0;
    max-width: 92vw;
    max-height: 92vh;
  }

  /* 強調文字 */
  .hero__pr .pr-em{
    font-size: 1.75em;
    line-height: 1.05;
  }

  /* 各PR行を縦書き化 */
  .hero__pr .pr-line{
    writing-mode: vertical-rl;
    text-orientation: mixed;

    /* 余白・サイズ調整 */
    margin: 0;
    line-height: 1.15;
    font-size: clamp(20px, 6.2vw, 30px);

    /* 縦書きでは“横から出てくる”方が自然 */
    transform: translateX(10px);
  }

  /* SP用の任意改行は縦書きでは不要なので消す */
  .u-br-sp{
    display: none !important;
  }

  /* SP時だけアニメを横方向フェードに差し替え（遅延は既存のまま効く） */
  .hero__pr .pr-line.is-show { animation: prFadeInSide 800ms ease forwards; }

  @keyframes prFadeInSide{
    0%{
      opacity: 0;
      transform: translateX(10px);
    }
    100%{
      opacity: 1;
      transform: translateX(0);
    }
  }
}

.hero__pr .pr-line.is-show { animation: prFadeUp 800ms ease forwards; }
.hero__pr .pr-line:nth-child(1).is-show { animation-delay: 1s; }
.hero__pr .pr-line:nth-child(2).is-show { animation-delay: 2s; }
.hero__pr .pr-line:nth-child(3).is-show { animation-delay: 3s; }


@keyframes prFadeUp{
  0%{
    opacity: 0;
    transform: translateY(10px);
  }
  100%{
    opacity: 1;
    transform: translateY(0);
  }
}

.u-br-sp{
  display: none;
}
@media (max-width: 560px){
  .u-br-sp{
    display: inline;
  }
}



:root{
  --section-grad:
    linear-gradient(180deg,
      rgba(var(--brand-rgb), .10) 0%,
      rgba(var(--brand-rgb), .06) 22%,
      rgba(var(--bg-rgb), 1) 72%,
      rgba(var(--bg-rgb), 1) 100%
    ),
    rgb(var(--bg-rgb));
}

/* =========================
   業務内容
========================= */
#services {
  --bridge-fade-h: 120px;
  --start-color: 5, 6, 18;

  position: relative;
  margin-top: 0;

  padding-top: var(--bridge-fade-h);
  padding-bottom: 64px;

  background-color: rgb(var(--bg-rgb));

  background-image: linear-gradient(
      to bottom,
      rgb(var(--start-color)) 0%,
      rgb(var(--bg-rgb)) var(--bridge-fade-h),
      rgb(var(--bg-rgb)) 100%
    );

  background-repeat: no-repeat;
}

#services::before{
  content:none;
}
#services .container{
  position: relative;
  z-index: 1;
}

.services-grid{
  display:grid;
  gap:28px;
}
@media (min-width:992px){
  .services-grid{
    grid-template-columns:1fr 1fr;
    align-items:stretch;
  }
}

.service-card{
  position:relative;
  isolation:isolate;

  display:grid;
  grid-template-rows:
    auto
    auto
    var(--h-body, auto)
    var(--h-results, auto);

  gap:18px;
  align-items:start;

  background:#fff;
  border-radius:24px;
  padding:clamp(20px,2.4vw,32px);
  box-shadow:0 18px 48px rgba(0,0,0,.07);
  overflow:hidden;

  transition: background-color .25s ease;
}
.service-card:hover,
.service-card:focus-within{
  background-color:#eef0f3;
}
.service-card::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius:inherit;
  pointer-events:none;

  background:rgba(0,0,0,.12);
  opacity:0;
  z-index:1;
  transition:opacity .25s ease;
}
.service-card:hover::after,
.service-card:focus-within::after{
  opacity:.12
}
.service-card > *{
  position:relative;
  z-index:2;
}
.service-title{
  margin:0 0 .5rem;
  font-weight:800;
  letter-spacing:.02em;
  line-height:1.2;

  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;

  font-size:clamp(18px, 1.8vw, 26px);
  
  display:inline-block;
  justify-self:flex-start;
  max-width:100%;
}
.service-subtitle{
  font-size:clamp(15px,1.5vw,18px);
  font-weight:700;
  margin:18px 0 8px;
}
.service-list{
  margin:0 0 clamp(10px,1.2vw,16px) 1.1em;
  padding:0;
}
.service-list li{
  line-height:1.9;
  margin:.15em 0;
}

.service-figure{
  margin:0;
  position:relative;
  overflow:hidden;
  border-radius:18px;
  aspect-ratio:16/9;
  box-shadow:0 12px 24px rgba(0,0,0,.08);
}
@supports not (aspect-ratio:16/9){
  .service-figure{
    height:0;
    padding-top:56.25%;
  }
  .service-figure > img{
    position:absolute;
    inset:0;
  }
}
.service-figure > img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transform-origin:center;
  transition:transform .8s ease;
}
.service-card:hover .service-figure > img,
.service-card:focus-within .service-figure > img{
  transform:scale(1.06);
}

.service-card > .service-title   { grid-row:1; }
.service-card > .service-figure  { grid-row:2; }
.service-card > .service-body    { grid-row:3; }
.service-card > .service-results { grid-row:4; }

#services.reveal,
#services .reveal{
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

#services .service-card{
  box-shadow: 0 10px 22px rgba(0,0,0,.06) !important;
}

#services .service-figure{
  box-shadow: 0 8px 18px rgba(0,0,0,.06) !important;
}

/* =========================
   会社理念
========================= */
.philosophy-hero__catch{
  font-family:
    "BIZ UDMincho",
    "BIZ UDMincho Medium",
    "Yu Mincho",
    "Hiragino Mincho ProN",
    "MS PMincho",
    serif;
}
.philosophy-hero__sub{
  font-family:
    "Times New Roman Italic",
    "Georgia",
    serif;
  font-style: italic;
  letter-spacing: .22em;
}

.philosophy-hero--center{
  text-align: center;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(0,0,0,.06);
}

.philosophy-hero--center .philosophy-hero__catch{
  font-size: clamp(26px, 3.6vw, 40px);
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1.25;
  margin: 0 0 10px;
  white-space: nowrap;
}
@media (max-width: 560px){
  .philosophy-hero--center .philosophy-hero__catch{
    font-size: clamp(20px, 6.2vw, 28px);
    letter-spacing: .04em;
  }
}

.philosophy-hero--center .philosophy-hero__sub{
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: .18em;
  color: var(--muted);
  margin: 0;
}

.company-philosophy h2,
.company-philosophy .sec-title{
  font-size: clamp(26px, 3.6vw, 40px);
  margin: 0 0 18px;
  font-weight: 800;
}

.company-philosophy{
  position: relative;
  margin-top: 0px;
  padding-top: 20px;
  padding-bottom: 40px;
  background: rgb(var(--bg-rgb));
}
.company-philosophy::before{
  content: none;
}

.company-philosophy .card{
  background: var(--card);
  border-radius: 16px;

  margin-top: 0;

  padding-left: var(--card-padding-left);
  padding-right: var(--card-padding-right);
  padding-top: var(--card-padding-top);
  padding-bottom: var(--card-padding-bottom);

  box-shadow: 0 10px 22px rgba(0,0,0,.06) !important;
}

.philosophy-divider{
  width: 100vw;
  margin-top: 0;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);

  height: clamp(90px, 10vw, 200px);
  line-height: 0;

  position: relative;
  overflow: visible;
  background: transparent;
  z-index: 5;
}
.philosophy-divider img{
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.company-philosophy.reveal,
.company-philosophy .reveal{
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}




figure {
  margin: 0;
}
:root {
  --card-padding-left:28px;
  --card-padding-right:28px;
  --card-padding-top:28px;
  --card-padding-bottom:28px;
}
.card{
  background:var(--card);
  border-radius:16px;
  padding-left: var(--card-padding-left);
  padding-right: var(--card-padding-right);
  padding-top: var(--card-padding-top);
  padding-bottom: var(--card-padding-bottom);
  box-shadow:var(--shadow);
  transition: background-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
#company .card + .card {
  margin-top: 64px;
}

#company .card:hover,
#company .card:focus-within{
  background: #f3f4f6;
  box-shadow: 0 18px 44px rgba(12,16,28,.12);
}

#careers-page .card:not(.card--no-hover):hover,
#careers-page .card:not(.card--no-hover):focus-within,
#contact .card:not(.card--no-hover):hover,
#contact .card:not(.card--no-hover):focus-within{
  background: #f3f4f6;
  box-shadow: 0 18px 44px rgba(12,16,28,.12);
}

.company-card__title{
  margin: 0 0 16px;
  font-size: 1.1rem;
}

.company-card__grid{
  display: grid;
  gap: 24px;
}
@media (min-width: 900px){
  .company-card__grid{
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: flex-start;
  }
}

.company-card__info{
  min-width: 0;
}

.company-card__org{
  min-width: 0;
  display: grid;
  gap: 12px;
  align-content: flex-start;

  justify-items: center;
  text-align: center;

  margin: 0;
  margin-top: 15px;
}

.company-card__org figcaption{
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}

.deflist{
  display:grid;
  grid-template-columns:160px 1fr;
  gap:10px 18px
}
.deflist div{
  display:contents
}
.deflist dt{
  color:var(--muted)
}
.deflist dd{
  margin:0
}
@media (max-width: 560px){
  .deflist{
    grid-template-columns: 1fr;
    gap: 6px 0;
  }

  .deflist dt{
    font-weight: 700;
    color: var(--muted);
  }

  .deflist dd{
    grid-column: 1;
    margin: 0 0 14px;
  }
}
.timeline{
  margin:0;
  padding:0;
  list-style:none
}
.timeline li{
  display:grid;
  grid-template-columns:9em 1fr;
  gap:1rem;
  padding:.45rem 0;
  border-top:1px dashed #e1e5ee
}
.timeline li:first-child{
  border-top:0
}
.timeline time{
  color:var(--muted)
}


/* =========================
   アクセス・組織図など
========================= */
.access-card{
  position: relative;
  transition: background-color .25s ease;
}
.access-card figcaption{
  margin-top:8px;
  color:var(--muted)
}
.org-image{
  max-width: 100%;
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: transform .45s ease, box-shadow .25s ease;
}

.company-card__org:hover .org-image,
.company-card__org:focus-within .org-image{
  transform: scale(1.03);
  box-shadow: 0 18px 36px rgba(15,23,42,.22);
}

.access-card--double .access-double{
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 900px){
  .access-card--double .access-double{
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }
}

.access-caption{
  margin-top: 12px;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.6;
}

.access-card:hover,
.access-card:focus-within{
  background: #f3f4f6;
}

.access-card .access-img-wrap{
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.access-card .access-img-wrap img{
  display: block;
  width: 100%;
  height: auto;
  transition: transform .6s ease;
  transform-origin: center center;
}

.access-card:hover .access-img-wrap img,
.access-card:focus-within .access-img-wrap img{
  transform: scale(1.05);
}


 /* =========================
   会社沿革
========================= */
#company .card--history{
  position: relative;
  overflow: hidden;

  --tl-line-w: 2px;
  --tl-radius: 7px;
  --tl-li-pad: 74px;
  --tl-circle-left: 23px;
  --tl-top: 130px;
  --tl-bottom: 40px;
}

#company .card--history::before{
  content:"";
  position:absolute;
  left : calc(
              var(--card-padding-left)
              + var(--tl-circle-left)
              + var(--tl-radius)
  );
  top: var(--tl-top);
  bottom: var(--tl-bottom);
  width: var(--tl-line-w);
  border-radius:999px;
  background: linear-gradient(
    to bottom,
    rgba(31,111,235,.25),
    rgba(31,111,235,.95)
  );
}

#company .card--history .timeline{
  margin: 0;
  padding: 0;
  list-style: none;
}

#company .card--history .timeline li{
  position: relative;
  display: block;
  padding: 18px 0 18px var(--tl-li-pad);
  border-top: none;
}

#company .card--history .timeline li::before{
  content:"";
  position:absolute;
  left: var(--tl-circle-left);
  top: 26px;
  width: calc(var(--tl-radius) * 2);
  height: calc(var(--tl-radius) * 2);
  border-radius: 999px;
    background:rgb(31,111,235);
  border: 2px solid rgb(31,111,235);
}

#company .card--history .timeline time{
  display:block;
  font-weight:700;
  color:var(--text);
  font-size: 1.02rem;
  margin-bottom: 4px;
  margin-left: 0;
}

#company .card--history .timeline .desc{
  display:block;
  color:var(--text);
  line-height:1.8;
  margin-left: 0;
}

@media (max-width: 600px){
  #company .card--history{
    --tl-li-pad: 54px;
    --tl-circle-left: 17px;
    --tl-top: 130px;
    --tl-bottom: 52px;
  }
  #company .card--history .timeline li{
    padding: 16px 0 16px var(--tl-li-pad);
  }
  #company .card--history .timeline li::before{
    top: 22px;
  }
}




/* =========================
   Footer
========================= */
.site-footer{
  padding:32px 0;
  border-top:1px solid rgba(0,0,0,.06);
  background:#fff
}
.footer-inner{
  display:grid;
  gap:8px;
  place-items:center
}
.footer-links{
  color:var(--muted)
}
.footer-links a{
  color:#162023
}

.service-cta{
  position:relative;
  z-index:2;
  margin: .6rem 0 1.0rem;
}
.cta-btn{
  --cta: #d90a0a;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px 14px 20px;
  border-radius: 9999px;
  font-weight: 800;
  letter-spacing: .02em;
  color: #fff;
  background: linear-gradient(180deg, #e01919, var(--cta));
  box-shadow: 0 10px 26px rgba(217,10,10,.28);
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
@media (max-width: 520px){
  .cta-btn{
    width: 100%;
    justify-content: center;
    padding-right: 14px;
    padding-left: 16px;
  }
}

.cta-btn:hover{
  transform: translateY(-1px);
  filter: brightness(.98);
  box-shadow: 0 14px 30px rgba(184,8,8,.35);
  text-decoration: none;
}

.cta-btn:active{
  transform: translateY(0);
  filter: brightness(.96);
}

.cta-btn:focus-visible{
  outline: 3px solid rgba(217,10,10,.35);
  outline-offset: 2px;
}

.cta-icon{
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9999px;
  background: #fff;
  color: var(--cta);
  transition: transform .22s ease;
}

.cta-btn:hover .cta-icon{
  transform: translateX(2px);
}

.auto-grid {
  display: grid;
  gap: 64px;
}

.section--with-header{
  padding-top: calc(var(--header-h) + 24px);
}

/* ==========
   採用情報 問い合わせフォーム
   ========== */
.contact-form {
  margin-top: 1.5rem;
}

.contact-form .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem 1.25rem;
}

.contact-form .span-2 {
  grid-column: 1 / -1;
}

.contact-form label {
  display: block;
  margin-bottom: .35rem;
  font-weight: 600;
  color: #0f172a;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: #f3f4f6;
  border: 1px solid rgba(15, 23, 42, 0.04);
  border-radius: .75rem;
  padding: .55rem .7rem;
  font-size: 1rem;
  line-height: 1.4;
  transition: border .18s ease, box-shadow .18s ease, background .18s ease;
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  background: #ffffff;
  border: 1px solid rgba(31, 111, 235, .4);
  box-shadow: 0 0 0 3px rgba(31, 111, 235, .12);
}

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

.contact-form .form-actions {
  margin-top: 1.5rem;
}

.contact-form .btn.primary {
  background: linear-gradient(180deg, #e01919, #d90a0a);
  color: #fff;
  border: none;
  border-radius: 9999px;
  padding: 14px 32px;
  font-weight: 700;
  letter-spacing: .02em;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(217, 10, 10, 0.18);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

.contact-form .btn.primary:hover {
  transform: translateY(-1px);
  filter: brightness(.98);
  box-shadow: 0 10px 22px rgba(184, 8, 8, 0.24);
}

.contact-form .btn.primary:active {
  transform: translateY(0);
  filter: brightness(.96);
}

.contact-form .form-note {
  margin-top: .8rem;
  font-size: .88rem;
  color: #6b7280;
}

@media (max-width: 820px) {
  .contact-form .form-grid {
    grid-template-columns: 1fr;
  }
  .contact-form .span-2 {
    grid-column: auto;
  }
}

.contact-form .radio-field{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.contact-form .radio-pill{
  display: inline-flex;
  align-items: center;
  gap: 10px;

  padding: .55rem .8rem;
  border-radius: .75rem;

  background: #f3f4f6;
  border: 1px solid rgba(15, 23, 42, 0.04);
  cursor: pointer;
  user-select: none;

  transition: border .18s ease, box-shadow .18s ease, background .18s ease;
}

.contact-form .radio-pill input{
  width: 18px;
  height: 18px;
  accent-color: var(--brand);
}

.contact-form .radio-pill:focus-within{
  background: #ffffff;
  border: 1px solid rgba(31, 111, 235, .4);
  box-shadow: 0 0 0 3px rgba(31, 111, 235, .12);
}

/* =========================
   個人情報保護方針、情報セキュリティ基本方針
========================= */
.policy-meta{
  text-align: right;
  margin-top: 2rem;
  line-height: 1.9;
  color: var(--muted);
}


/* =========================================================
   見出しの下線を「文字の長さだけ」にするアニメーション
========================================================= */
h2, h3, .sec-title {
  position: relative;
  display: inline-block;
  padding-bottom: .35em;
}

h2::after,
h3::after,
.sec-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 3px;
  background: var(--brand);
  border-radius: 9999px;

  transition: width 2.0s cubic-bezier(.15, .9, .3, 1);
}

.reveal.is-visible h2::after,
.reveal.is-visible h3::after,
.reveal.is-visible .sec-title::after {
  width: 100%;
}



/* =========================
   背景の格子模様(グリッド)設定
========================= */
body::before{
  content:"";
  position: fixed;
  inset:-25% -25%;
  pointer-events: none;
  z-index: 0;
  background:
    repeating-linear-gradient( to bottom,
      rgba(200,200,200, var(--grid-alpha, .32)) 0 var(--grid-thin, 1px),
      transparent var(--grid-thin, 1px) var(--grid-gap, 120px)
    ),
    repeating-linear-gradient( to right,
      rgba(200,200,200, var(--grid-alpha, .32)) 0 var(--grid-thin, 1px),
      transparent var(--grid-thin, 1px) var(--grid-gap, 120px)
    ),
    repeating-linear-gradient( to bottom,
      rgba(200,200,200, var(--grid-alpha, .32)) 0 var(--grid-thin, 1px),
      transparent var(--grid-thin, 1px) calc(var(--grid-gap,120px)*4)
    ),
    repeating-linear-gradient( to right,
      rgba(200,200,200, var(--grid-alpha, .32)) 0 var(--grid-thin, 1px),
      transparent var(--grid-thin, 1px) calc(var(--grid-gap,120px)*4)
    );
  
  clip-path: polygon(
    0% 0%,
    calc(100% - var(--corner-cut,12vw)) 0%,
    100% var(--corner-cut,12vw),
    100% 100%,
    var(--corner-cut,12vw) 100%,
    0% calc(100% - var(--corner-cut,12vw))
  );

  transform:
    perspective(var(--grid-perspective, 1200px))
    rotateX(var(--grid-tilt-x, 40deg))
    rotateY(var(--grid-tilt-y, 0deg))
    rotate(45deg)
    translate3d(0,0,0);

  animation: gridPan3D var(--grid-speed, 80s) linear infinite;

  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

:root{
  --grid-perspective: 1200px;
  --grid-tilt-x: 40deg;
  --grid-tilt-y: 0deg;
  --grid-speed: 30s;
  --grid-shift-x: -480px;
}

@keyframes gridPan3D{
  from {
    transform:
      perspective(var(--grid-perspective, 1200px))
      rotateX(var(--grid-tilt-x, 40deg))
      rotateY(var(--grid-tilt-y, 0deg))
      rotate(45deg)
      translate3d(0,0,0);
  }
  to {
    transform:
      perspective(var(--grid-perspective, 1200px))
      rotateX(var(--grid-tilt-x, 40deg))
      rotateY(var(--grid-tilt-y, 0deg))
      rotate(45deg)
      translate3d(var(--grid-shift-x),0,0);
  }
}

/* =========================
   浮遊する角丸四角
========================= */
.floating-squares{
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;

  transform:
    perspective(var(--sq-perspective, 1200px))
    rotateX(var(--sq-tilt-x, 12deg))
    rotateY(var(--sq-tilt-y, 0deg))
    rotate(45deg)
    translate3d(var(--sq-offset-x, -150px), 0, 0);

  animation: floatSquares3D var(--sq-speed, 6.5s) ease-in-out infinite alternate;
}

.floating-squares .square{
  position: absolute;
  border-radius: 24px;
  box-shadow: 0 12px 18px rgba(0,0,0,.12);
  will-change: transform;
  backface-visibility: hidden;
}

.floating-squares .sq1{
  width: 120px;
  height: 120px;
  left: 20%;
  bottom: 20%;
  background: var(--float-sq-color1);
}

.floating-squares .sq2{
  width: 200px;
  height: 200px;
  left: 60%;
  bottom: 10%;
  background: var(--float-sq-color1);
}

.floating-squares .sq3{
  width: 120px;
  height: 120px;
  right: 5%;
  top: 15%;
  background: var(--float-sq-color2);
}

.floating-squares .sq4{
  width: 180px;
  height: 180px;
  left: 30%;
  top: 15%;
  background: var(--float-sq-color2);
}

.floating-squares .sq5{
  width: 200px;
  height: 200px;
  left: 30%;
  bottom: 0%;
  background: var(--float-sq-color2);
}

:root{
  --float-sq-color1: #f7faf8;
  --float-sq-color2: #ebf2e9;
  --sq-perspective: 1200px;
  --sq-tilt-x: var(--grid-tilt-x, 12deg);
  --sq-tilt-y: var(--grid-tilt-y, 0deg);
  --sq-bob: 22px;
  --sq-speed: 6.5s;
  --sq-drift-x: -45px;
  --sq-offset-x: -150px;
}

@keyframes floatSquares3D{
  0%{
    transform:
      perspective(var(--sq-perspective, 1200px))
      rotateX(var(--sq-tilt-x, 12deg))
      rotateY(var(--sq-tilt-y, 0deg))
      rotate(45deg)
      translate3d(var(--sq-offset-x, 0px), 0, 0);
  }
  100%{
    transform:
      perspective(var(--sq-perspective, 1200px))
      rotateX(var(--sq-tilt-x, 12deg))
      rotateY(var(--sq-tilt-y, 0deg))
      rotate(45deg)
      translate3d(calc(var(--sq-offset-x, 0px) + var(--sq-drift-x, -14px)),
                  calc(var(--sq-bob, 22px) * -1),
                  0);
  }
}

/* =========================================
   全コンテンツを背景より前面に固定する共通ルール
   - 背景: html::before(=1) / body::before(=0)
   - コンテンツ: z-index:2 に統一
========================================= */
:root{ --content-z: 2; }
body > *:not(.site-header):not(.floating-squares){
  position: relative;
  z-index: var(--content-z);
}
