@charset "UTF-8";

/* ========================================
   共通スタイル（solution.sapeet.com のテーマから移植）
   - 変数 / リセット / ヘッダー / SPメニュー / フッター
======================================== */

/* ---------- Reset (ress.css v4.0.0 / MIT) ---------- */
html{box-sizing:border-box;-webkit-text-size-adjust:100%;word-break:normal;-moz-tab-size:4;tab-size:4}*,:after,:before{background-repeat:no-repeat;box-sizing:inherit}:after,:before{text-decoration:inherit;vertical-align:inherit}*{padding:0;margin:0}hr{overflow:visible;height:0;color:inherit}details,main{display:block}summary{display:list-item}small{font-size:80%}[hidden]{display:none}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}a{background-color:transparent}a:active,a:hover{outline-width:0}code,kbd,pre,samp{font-family:monospace,monospace}pre{font-size:1em}b,strong{font-weight:bolder}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-color:inherit;text-indent:0}input{border-radius:0}[disabled]{cursor:default}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}textarea{overflow:auto;resize:vertical}button,input,optgroup,select,textarea{font:inherit}optgroup{font-weight:700}button{overflow:visible}button,select{text-transform:none}[role=button],[type=button],[type=reset],[type=submit],button{cursor:pointer;color:inherit}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=reset],[type=submit],button,html [type=button]{-webkit-appearance:button}button,input,select,textarea{background-color:transparent;border-style:none}a:focus,button:focus,input:focus,select:focus,textarea:focus{outline-width:0}select{-moz-appearance:none;-webkit-appearance:none}select::-ms-expand{display:none}select::-ms-value{color:currentColor}legend{border:0;color:inherit;display:table;white-space:normal;max-width:100%}::-webkit-file-upload-button{-webkit-appearance:button;color:inherit;font:inherit}img{border-style:none}progress{vertical-align:baseline}[aria-busy=true]{cursor:progress}[aria-controls]{cursor:pointer}[aria-disabled=true]{cursor:default}

/* ---------- Variables ---------- */
:root {
  /* -- Colors (solution.sapeet.com) -- */
  --color-navy: #1e2a4a;
  --color-navy-dark: #0f1a2e;
  --color-navy-bg: #1a2744;
  --color-white: #ffffff;
  --color-white-80: rgba(255, 255, 255, 0.8);
  --color-white-60: rgba(255, 255, 255, 0.6);
  --color-white-40: rgba(255, 255, 255, 0.4);
  --color-gray: #3E3A39;
  --color-text: #333333;
  --color-text-light: #555555;
  --color-accent: #3B4B78;
  --color-bg: #f8f9fa;

  /* -- Fonts -- */
  --font-ja: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  --font-en: "Jost", sans-serif;
  /* STUDIO 側 LP 本文用（Lato + 日本語はシステムフォント） */
  --font-lp: "Lato", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", Meiryo, sans-serif;

  /* -- Font Sizes (base: 1440px viewport) -- */
  --fs-xs: clamp(12px, 0.9028vw, 14px);
  --fs-sm: clamp(13px, 0.9722vw, 15px);
  --fs-base: clamp(14px, 1.0417vw, 16px);
  --fs-md: clamp(15px, 1.1111vw, 17px);
  --fs-lg: clamp(16px, 1.1806vw, 18px);
  --fs-xl: clamp(17px, 1.25vw, 19px);
  --fs-2xl: clamp(20px, 1.5278vw, 24px);
  --fs-heading-sm: clamp(28px, 2.4306vw, 38px);
  --fs-heading-xl: clamp(56px, 6.25vw, 94px);

  /* -- Layout -- */
  --header-height: clamp(60px, 4.8611vw, 72px);
  --content-max60: clamp(960px, 87.5vw, 1280px);
  --content-max: clamp(900px, 83.3333vw, 1220px);
  --side-padding: clamp(20px, 2.7778vw, 44px);
}

/* ---------- Base ---------- */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  font-family: var(--font-ja);
  font-size: var(--fs-base);
  font-weight: 400;
  color: var(--color-text);
  line-height: 1.8;
  background-color: var(--color-white);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Noto Sans JP はページに出る文字だけに絞って読み込む (infra/font-subset.mjs)。フォームのように利用者が文字を
   入力する範囲には data-font-system を付け、日本語を OS のフォントで表示する (絞った一覧に無い文字が混ざらないように)。
   --font-ja ごと差し替えるので、中で var(--font-ja) を指定している入力欄などにも効く。英字の --font-en はそのまま */
[data-font-system] {
  --font-ja: "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  font-family: var(--font-ja);
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

a:hover {
  opacity: 0.7;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
}

ul, ol {
  list-style: none;
}

.sp-only {
  display: none;
}

/* ========================================
   Header
======================================== */
.header.is-hidden {
  transform: translateY(-100%);
}

.header {
  position: fixed;
  top: 4px;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 0 var(--side-padding);
  height: 90px;
  display: flex;
  align-items: center;
  transition: background-color 0.3s ease, top 0.3s ease, transform 0.3s ease;
}

.header.is-scrolled {
  top: 0;
  background-color: rgba(38, 50, 88, 1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.header.is-scrolled.is-menu-open {
  background-color: unset;
}

/* -- Logo -- */
.header__logo {
  flex-shrink: 0;
  margin-right: auto;
}

.header__logo-link {
  display: flex;
  align-items: center;
}

.header__logo-img {
  display: block;
  width: 150px;
  height: 48px;
  background-color: var(--color-gray);
  -webkit-mask: url("../img/logo-sapeet.svg") no-repeat center / contain;
  mask: url("../img/logo-sapeet.svg") no-repeat center / contain;
}

.header.is-scrolled .header__logo-img {
  background-color: var(--color-white);
}

/* -- Desktop Nav -- */
.header__nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header__nav-list {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 0;
  background-color: var(--color-white);
  border-radius: 999px;
  overflow: hidden;
  padding: 0;
  /* LP は白背景のため、ピルの輪郭が分かるよう薄い影を追加 */
  box-shadow: 0 2px 14px rgba(30, 42, 74, 0.08);
}

.header.is-scrolled .header__nav-list {
  box-shadow: none;
}

.header__nav-link {
  display: block;
  padding: 14px 15px 16px;
  font-size: var(--fs-base);
  font-weight: 500;
  color: var(--color-text);
  letter-spacing: 0.03em;
  white-space: nowrap;
  transition: background-color 0.3s ease;
}

.header__nav-link:hover {
  background-color: rgba(0, 0, 0, 0.04);
  opacity: 1;
}

.header__nav-item:first-child .header__nav-link {
  border-radius: 999px 0 0 999px;
  padding-left: 32px;
}

.header__nav-item:last-child .header__nav-link {
  border-radius: 0 999px 999px 0;
  padding-right: 32px;
}

/* -- Contact Button -- */
.header__contact-link {
  display: flex;
  align-items: center;
  gap: 53px;
  padding: 14px 25px 16px;
  background-image: linear-gradient(7deg, #253258 62%, #7b849c);
  color: var(--color-white);
  border-radius: 999px;
  font-size: var(--fs-base);
  font-weight: 500;
  white-space: nowrap;
  transition: opacity 0.3s ease;
  border: 1px solid rgb(255 255 255 / 55%);
}

.header__contact-link:hover {
  background-color: #2a3a5c;
  opacity: 1;
}

.header__contact-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: var(--fs-sm);
  line-height: 1;
  transition: transform 0.3s ease;
  border: 1px solid var(--color-white);
}

.header__contact-link:hover .header__contact-arrow {
  transform: translateX(3px);
}

/* -- Hamburger (SP) -- */
.header__hamburger {
  display: none;
  width: 52px;
  height: 52px;
  border: none;
  border-radius: 50%;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding-left: 15px;
  gap: 7px;
  cursor: pointer;
  background-image: linear-gradient(160deg, #7b849c 0%, #3a4a6e 35%, #1e2a4a 100%);
  transition: opacity 0.3s ease;
  border: 1px solid rgb(255 255 255 / 100%);
}

.header__hamburger:hover {
  opacity: 0.85;
}

.header__hamburger-line {
  display: block;
  width: 22px;
  height: 1px;
  background-color: var(--color-white);
  transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
}

.header__hamburger-line:nth-child(2) { width: 18px; }
.header__hamburger-line:nth-child(3) { width: 14px; }

.header__hamburger.is-open .header__hamburger-line:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.header__hamburger.is-open .header__hamburger-line:nth-child(2) {
  opacity: 0;
}
.header__hamburger.is-open .header__hamburger-line:nth-child(3) {
  width: 22px;
  transform: translateY(-9px) rotate(-45deg);
}

/* -- SP Menu Overlay -- */
.sp-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(32deg, #253258 57%, #717a94 100%, #4b5676 100%);
  z-index: 99;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.sp-menu.is-open {
  opacity: 1;
  visibility: visible;
}

.sp-menu__list {
  list-style: none;
  text-align: center;
}

.sp-menu__item {
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.sp-menu.is-open .sp-menu__item {
  opacity: 1;
  transform: translateY(0);
}

.sp-menu.is-open .sp-menu__item:nth-child(1) { transition-delay: 0.1s; }
.sp-menu.is-open .sp-menu__item:nth-child(2) { transition-delay: 0.15s; }
.sp-menu.is-open .sp-menu__item:nth-child(3) { transition-delay: 0.2s; }
.sp-menu.is-open .sp-menu__item:nth-child(4) { transition-delay: 0.25s; }
.sp-menu.is-open .sp-menu__item:nth-child(5) { transition-delay: 0.3s; }

.sp-menu__link {
  font-size: var(--fs-xl);
  letter-spacing: 0.08em;
  padding: 8px 16px;
  color: var(--color-white);
}

.sp-menu__contact {
  margin-top: 20px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.sp-menu.is-open .sp-menu__contact {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.35s;
}

.sp-menu__contact-link {
  display: inline-flex;
  align-items: center;
  gap: 54px;
  padding: 12px 24px 16px 24px;
  background-color: var(--color-bg);
  border-radius: 999px;
  font-size: var(--fs-md);
  letter-spacing: 0.05em;
  color: var(--color-navy-bg);
}

.sp-menu__contact-link span {
  font-weight: 500;
}

.sp-menu__contact-link .header__contact-arrow {
  border-color: var(--color-navy-bg);
}

/* ========================================
   Footer
======================================== */
.footer {
  background-color: #333333;
  color: var(--color-white);
  padding: 60px 0 0;
  font-family: var(--font-ja);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: var(--content-max60);
  margin: 0 auto;
  padding: 0 var(--side-padding);
}

/* -- 左カラム -- */
.footer__logo {
  margin-bottom: 32px;
}

.footer__logo img {
  height: 40px;
  width: auto;
}

.footer__badges {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 32px;
}

.footer__badges img.jpx {
  height: 116px;
  width: auto;
}

.footer__badges img.iso {
  height: 86px;
  width: auto;
}

.footer__address {
  font-size: var(--fs-base);
  line-height: 1.8;
  color: var(--color-white-80);
}

.footer__address-label {
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 4px;
}

/* -- 右カラム：ナビ -- */
.footer__right {
  display: flex;
  justify-content: flex-end;
}

.footer__nav {
  display: flex;
  gap: 60px;
}

.footer__nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer__nav-link {
  font-size: var(--fs-base);
  color: var(--color-white);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: opacity 0.3s ease;
}

.footer__nav-link:hover {
  opacity: 0.7;
}

.footer__external-icon {
  display: inline-block;
  width: 14px;
  height: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23ffffff' stroke-width='1.5'%3E%3Cpath d='M6 2H3a1 1 0 00-1 1v10a1 1 0 001 1h10a1 1 0 001-1v-3M10 2h4v4M14 2L7 9'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  flex-shrink: 0;
}

/* -- コピーライト -- */
.footer__copyright {
  max-width: var(--content-max60);
  margin: 60px auto 0;
  padding: 0 var(--side-padding);
}

.footer__copyright-line {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer__copyright-text {
  text-align: center;
  font-size: var(--fs-xs);
  font-family: var(--font-en);
  color: var(--color-white-60);
  padding: 24px 0;
  letter-spacing: 0.05em;
}

/* ========================================
   Responsive
======================================== */
@media screen and (max-width: 1024px) {
  .header__contact-arrow { border: 1px solid var(--color-accent); }
  .header__nav { display: none; }
  .header__hamburger { display: flex; }

  .footer__inner { grid-template-columns: 1fr; padding: 0 var(--side-padding); gap: 40px; }
  .footer__left { text-align: center; }
  .footer__badges { justify-content: center; }
  .footer__right { justify-content: center; }
  .footer__nav { gap: 40px; }
  .footer__nav-list { flex-direction: row; flex-wrap: wrap; gap: 12px 28px; }
}

@media screen and (max-width: 768px) {
  :root {
    --fs-lg: 14px;
    --fs-md: 14px;
    --fs-base: 15px;
    --fs-sm: 14px;
    --fs-xs: 13px;
  }

  html { scroll-padding-top: 64px; }

  .sp-only { display: block; }

  .header { top: 0; height: 54px; padding: 0 16px; }
  .header__logo-img { width: 120px; height: 32px; }
  .header.is-menu-open .header__logo-img { background-color: var(--color-white); }
  .header__hamburger { width: 34px; height: 34px; padding-left: 9px; gap: 4px; margin-bottom: 3px; }
  .header__hamburger-line { width: 16px; }
  .header__hamburger-line:nth-child(2) { width: 12px; }
  .header__hamburger-line:nth-child(3) { width: 8px; }
  .header__hamburger.is-open .header__hamburger-line:nth-child(1) { width: 16px; transform: translateY(5px) rotate(45deg); }
  .header__hamburger.is-open .header__hamburger-line:nth-child(2) { opacity: 0; }
  .header__hamburger.is-open .header__hamburger-line:nth-child(3) { width: 16px; transform: translateY(-6px) rotate(-45deg); }
  .header__hamburger.is-open { align-items: center; padding-left: 0; background-image: none; background-color: var(--color-white); }
  .header__hamburger.is-open .header__hamburger-line { background-color: #3B4B78; }

  .footer { padding: 40px 0 0; }
  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .footer__left { text-align: center; }
  .footer__logo { margin-bottom: 32px; }
  .footer__logo img { height: 52px; }
  .footer__badges { justify-content: center; }
  .footer__badges img.jpx { height: 100px; }
  .footer__badges img.iso { height: 80px; }
  .footer__right { justify-content: flex-start; }
  .footer__nav { flex-direction: column; gap: 24px; }
  .footer__nav-list { flex-direction: row; flex-wrap: wrap; gap: 12px 24px; }
  .footer__nav-link { font-size: var(--fs-base); }
  .footer__copyright { margin-top: 40px; padding: 0; }
  .footer__copyright-text { font-size: 12px; }
}
