/* ==========================================================================
   ennect.css — en-nect コーポレートサイト
   正典: 01_projects/ennect-corp/DESIGN.md（neverjp.com実測ベース 2026-07-27）
   命名: FLOCSS（l- / c- / p- / u- / js-）
   BP: 999px以下=SP / 1000px以上=PC / 1512px以上=大画面微調整
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. リセット（最小限）
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
img,
svg,
video {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
ul,
ol {
  list-style: none;
}
button {
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

/* --------------------------------------------------------------------------
   1. デザイントークン（DESIGN.md §2）
   -------------------------------------------------------------------------- */
:root {
  /* カラー（§2.1） */
  --color-bg: #ffffff;
  --color-text: #000000;
  --color-surface: #fafafa;
  --color-invert-text: #ffffff;
  --color-panel: #000000;
  --color-text-sub: #666666;
  --color-text-mute: #333333;
  --color-border: #dddddd;
  --color-border-light: #cccccc;
  --color-hero-symbol: #f0f0f0;

  /* サービス識別色スロット（4本柱。実色はデザイナーチェック工程で確定） */
  --color-service-1: #a8bfd4; /* DX伴走・IT顧問（仮: 静穏なブルーグレー） */
  --color-service-2: #d4b88f; /* 新規事業・事業戦略支援（仮: 温かいサンド） */
  --color-service-3: #9fbfae; /* システム開発・導入支援（仮: セージ） */
  --color-service-4: #c9a8c4; /* AI活用支援（仮: モーブ） */

  /* フォント（§2.2） */
  --font-en: "Kumbh Sans", sans-serif;
  --font-ja: "Noto Sans JP", "Yu Gothic", YuGothic, "Hiragino Sans", sans-serif;

  /* モーション（§2.5） */
  --transition: 0.3s;
  --transition-fast: 0.1s ease-in;

  /* 影（§2.5 オフセットなし） */
  --shadow: 0 0 16px rgba(0, 0, 0, 0.2);
  --shadow-soft: 0 0 36px rgba(0, 0, 0, 0.1);
}

/* --------------------------------------------------------------------------
   2. ベース（1rem = 10px）
   -------------------------------------------------------------------------- */
html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}
body {
  font-family: var(--font-ja);
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 2;
  letter-spacing: 0.06em;
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* --------------------------------------------------------------------------
   3. l- レイアウト
   -------------------------------------------------------------------------- */

/* 3.1 コンテナ（§2.4 vw流動） */
.l-container {
  overflow: hidden;
  position: relative;
}
.l-inner--panel {
  width: 91.8vw;
  margin-inline: auto;
} /* ヘッダー・黒パネル */
.l-inner--large {
  width: 84.7vw;
  margin-inline: auto;
} /* 通常セクション */
.l-inner--medium {
  width: 75.7vw;
  margin-inline: auto;
} /* 文章主体 */
@media (min-width: 1512px) {
  .l-inner--panel {
    max-width: 1420px;
  }
  .l-inner--large {
    max-width: 1310px;
  }
  .l-inner--medium {
    max-width: 1170px;
  }
}
@media (max-width: 999px) {
  .l-inner--panel,
  .l-inner--large,
  .l-inner--medium {
    width: 88vw;
  }
}

/* 3.2 セクション（§2.3 余白3段階のみ） */
.l-section--large,
.l-section--medium,
.l-section--small,
.l-section--title {
  width: 100%;
  position: relative;
}
.l-section--large {
  padding: 200px 0;
}
.l-section--medium {
  padding: 120px 0;
}
.l-section--small {
  padding: 60px 0;
}
@media (max-width: 999px) {
  .l-section--large {
    padding: 140px 0;
  }
  .l-section--medium {
    padding: 80px 0;
  }
  .l-section--small {
    padding: 34px 0;
  }
}

/* 下層ページタイトル帯 */
.l-section--title {
  padding: 160px 0 80px;
}
@media (max-width: 999px) {
  .l-section--title {
    padding: 120px 0 48px;
  }
}

/* 3.3 ヘッダー（§3.1 高さ68px・透明・重ねる） */
.l-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 68px;
}
.l-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.l-header__logo {
  font-family: var(--font-en);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 12px;
}
.l-header__nav {
  display: flex;
  align-items: center;
  gap: 40px;
}
.l-header__item {
  font-family: var(--font-en);
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: 0.29em;
  text-transform: uppercase;
  transition: opacity var(--transition);
}
.l-header__item:hover {
  opacity: 0.8;
}
.l-header__contact {
  margin-left: 8px;
}
@media (max-width: 999px) {
  .l-header__nav {
    display: none;
  }
}

/* ハンバーガー（円形アウトライン 直径56px） */
.l-header__menuBtn {
  width: 56px;
  height: 56px;
  border: 1px solid var(--color-text);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: opacity var(--transition);
}
.l-header__menuBtn:hover {
  opacity: 0.6;
}
.l-header__menuBtn span {
  display: block;
  width: 20px;
  height: 1px;
  background: var(--color-text);
  transition: transform var(--transition), opacity var(--transition);
}
.is-navOpen .l-header__menuBtn span:nth-child(1) {
  transform: translateY(3.5px) rotate(45deg);
}
.is-navOpen .l-header__menuBtn span:nth-child(2) {
  transform: translateY(-3.5px) rotate(-45deg);
}

/* 3.4 グローバルナビ展開パネル（§3.2 黒41px角丸・地の白を残す） */
.l-gNav {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 91.8vw;
  z-index: 90;
  visibility: hidden;
  opacity: 0;
  transition: opacity var(--transition), visibility var(--transition);
}
.is-navOpen .l-gNav {
  visibility: visible;
  opacity: 1;
}
.l-gNav__panel {
  background: var(--color-panel);
  color: var(--color-invert-text);
  border-radius: 41px;
  padding: 100px 8% 80px;
}
.l-gNav__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px 40px;
}
.l-gNav__item a {
  display: inline-block;
  transition: opacity var(--transition);
}
.l-gNav__item a:hover {
  opacity: 0.6;
}
.l-gNav__en {
  font-family: var(--font-en);
  font-size: 1.8rem;
  font-weight: 400;
  letter-spacing: 0.29em;
  text-transform: uppercase;
}
.l-gNav__ja {
  display: block;
  font-size: 1.2rem;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 4px;
}
@media (max-width: 999px) {
  .l-gNav__panel {
    border-radius: 30px;
    padding: 80px 10% 60px;
  }
  .l-gNav__list {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* 3.5 フッター（§3.8 黒角丸パネル+白下部） */
.l-footer {
  margin-top: 120px;
}
.l-footerSitemap {
  width: 91.8vw;
  margin-inline: auto;
}
.l-footerSitemap__panel {
  background: var(--color-panel);
  color: var(--color-invert-text);
  border-radius: 41px;
  padding: 90px 8%;
}
.l-footerSitemap__logo {
  font-family: var(--font-en);
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 48px;
}
.l-footerSitemap__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 40px;
}
.l-footerSitemap__item a {
  transition: opacity var(--transition);
}
.l-footerSitemap__item a:hover {
  opacity: 0.6;
}
.l-footerSitemap__en {
  font-family: var(--font-en);
  font-size: 1.8rem;
  font-weight: 400;
  letter-spacing: 0.29em;
  text-transform: uppercase;
}
.l-footerSitemap__ja {
  display: block;
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 2px;
}
.l-footerLower {
  padding: 40px 0;
}
.l-footerLower__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.l-footerLower__links {
  display: flex;
  gap: 28px;
  font-size: 1.2rem;
}
.l-footerLower__links a {
  transition: opacity var(--transition);
}
.l-footerLower__links a:hover {
  opacity: 0.8;
}
.l-footerLower__copy {
  font-family: var(--font-en);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.17em;
  color: var(--color-text-sub);
}
@media (max-width: 999px) {
  .l-footer {
    margin-top: 80px;
  }
  .l-footerSitemap__panel {
    border-radius: 30px;
    padding: 60px 10%;
  }
  .l-footerSitemap__list {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .l-footerLower__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* --------------------------------------------------------------------------
   4. c- コンポーネント
   -------------------------------------------------------------------------- */

/* 4.1 セクション見出し（§3.4 英字主+和文従） */
.c-sectionTitle {
  margin-bottom: 46px;
}
.c-sectionTitle__en {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 5.8rem;
  letter-spacing: 0.16em;
  line-height: 1.5;
}
.c-sectionTitle__ja {
  display: block;
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--color-text-sub);
  margin-top: 8px;
}
.c-sectionTitle--secondary .c-sectionTitle__en {
  font-size: 2.8rem;
  letter-spacing: 0.15em;
}
@media (max-width: 999px) {
  .c-sectionTitle {
    margin-bottom: 24px;
  }
  .c-sectionTitle__en {
    font-size: 3rem;
    letter-spacing: 0.17em;
  }
  .c-sectionTitle--secondary .c-sectionTitle__en {
    font-size: 2.2rem;
  }
}

/* 4.2 ボタン（§3.5 ピル型60px・右端円形矢印） */
.c-button {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  border-radius: 60px;
  padding: 15px 27px 13.5px;
  font-family: var(--font-en);
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  line-height: 1.5;
  transition: opacity var(--transition);
}
.c-button:hover {
  opacity: 0.6;
}
.c-button--primary {
  background: var(--color-panel);
  color: var(--color-invert-text);
}
.c-button--secondary {
  background: var(--color-bg);
  color: var(--color-text);
  border: 1px solid var(--color-text);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.18em;
}
.c-button .arrow {
  position: relative;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  flex-shrink: 0;
}
.c-button--primary .arrow {
  background: var(--color-invert-text);
}
.c-button--secondary .arrow {
  background: var(--color-panel);
}
.c-button .arrow::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  border-top: 1.5px solid;
  border-right: 1.5px solid;
  rotate: 45deg;
}
.c-button--primary .arrow::after {
  color: var(--color-panel);
}
.c-button--secondary .arrow::after {
  color: var(--color-invert-text);
}
.c-button:hover .arrow::after {
  transform: translate(-50%, -50%) scale(1.1);
}

/* 4.3 カード（§3.6 #fafafa面・16px・枠線影なし） */
.c-card {
  background: var(--color-surface);
  border-radius: 16px;
  padding: 40px;
  transition: opacity var(--transition);
}
a.c-card:hover {
  opacity: 0.6;
}
.c-card__label {
  display: block;
  font-family: var(--font-en);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--color-text-sub);
}
.c-card__title {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.7;
  margin-top: 12px;
}
.c-card__text {
  display: block;
  font-size: 1.4rem;
  color: var(--color-text-mute);
  margin-top: 12px;
}
.c-card__accent {
  display: block;
  width: 44px;
  height: 4px;
  border-radius: 2px;
  margin-bottom: 20px;
}

/* 4.4 カテゴリタグ（高さ50px→標準は小型32px運用） */
.c-tag {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 16px;
  border-radius: 30px;
  background: var(--color-surface);
  font-size: 1.2rem;
  letter-spacing: 0.09em;
}
.c-tag--outline {
  background: transparent;
  border: 1px solid var(--color-border);
}

/* 4.5 バナーリンク（§3.7） */
.c-bannerlink {
  display: block;
  background: var(--color-surface);
  border-radius: 16px;
  padding: 56px 8%;
  transition: opacity var(--transition);
}
.c-bannerlink:hover {
  opacity: 0.6;
}
.c-bannerlink__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.c-bannerlink__title {
  font-family: var(--font-en);
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}
.c-bannerlink__desc {
  font-size: 1.4rem;
  color: var(--color-text-mute);
  margin-top: 8px;
}

/* 4.6 テーブル（会社概要・事例サマリー用） */
.c-table {
  width: 100%;
  border-collapse: collapse;
}
.c-table th,
.c-table td {
  padding: 20px 8px;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  vertical-align: top;
  font-weight: 400;
}
.c-table th {
  width: 28%;
  font-weight: 500;
  letter-spacing: 0.09em;
  color: var(--color-text-sub);
}
@media (max-width: 999px) {
  .c-table th {
    width: 36%;
  }
}

/* --------------------------------------------------------------------------
   5. u- ユーティリティ
   -------------------------------------------------------------------------- */
.u-textCenter {
  text-align: center;
}
.u-mt20 {
  margin-top: 20px;
}
.u-mt40 {
  margin-top: 40px;
}
.u-mt60 {
  margin-top: 60px;
}
.u-pcOnly {
  display: block;
}
.u-spOnly {
  display: none;
}
@media (max-width: 999px) {
  .u-pcOnly {
    display: none;
  }
  .u-spOnly {
    display: block;
  }
}
.u-visuallyHidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   6. スクロールフェード（JS無効時フォールバック: no-js では常時表示）
   -------------------------------------------------------------------------- */
.js .js-fade {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.js .js-fade.is-visible {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   7. p- ページ固有（トップ骨格。詳細スタイルはP4で拡充）
   -------------------------------------------------------------------------- */

/* 7.1 ヒーロー（§3.3 100vh・シンボルアウトライン極薄・円形スクロールボタン） */
.p-hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  position: relative;
}
.p-hero__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  color: var(--color-hero-symbol);
}
.p-hero__inner {
  position: relative;
  z-index: 1;
}
.p-hero__title {
  font-weight: normal;
}
.p-hero__en {
  display: block;
  font-family: var(--font-en);
  font-size: 8rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  line-height: 1.1;
}
.p-hero__ja {
  display: block;
  font-size: 3rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  line-height: 1.6;
  margin-top: 28px;
}
.p-hero__desc {
  font-size: 1.7rem;
  letter-spacing: 0.4em;
  line-height: 2.4;
  margin-top: 40px;
}
.p-hero__scrollDown {
  position: absolute;
  right: 4.1vw;
  bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  z-index: 1;
}
.p-hero__scrollCircle {
  position: relative;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--color-panel);
  transition: opacity var(--transition);
}
.p-hero__scrollDown:hover .p-hero__scrollCircle {
  opacity: 0.6;
}
.p-hero__scrollCircle::after {
  content: "";
  position: absolute;
  top: 44%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(135deg);
  width: 14px;
  height: 14px;
  border-top: 1.5px solid var(--color-invert-text);
  border-right: 1.5px solid var(--color-invert-text);
}
.p-hero__scrollLabel {
  font-family: var(--font-en);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}
@media (max-width: 999px) {
  .p-hero__en {
    font-size: clamp(22px, 5.87vw, 34px);
  }
  .p-hero__ja {
    font-size: 2rem;
    letter-spacing: 0.2em;
  }
  .p-hero__desc {
    font-size: 1.4rem;
    letter-spacing: 0.2em;
  }
  .p-hero__scrollCircle {
    width: 64px;
    height: 64px;
  }
}

/* 7.2 コンセプト */
.p-concept__lead {
  font-family: var(--font-en);
  font-size: 2.9rem;
  font-weight: 700;
  letter-spacing: 0.29em;
  line-height: 1.5;
  margin-bottom: 28px;
}
@media (max-width: 999px) {
  .p-concept__lead {
    font-size: 2rem;
  }
}

/* 7.3 グリッド群（§2.4 2カラム基本・gap 20px） */
.p-service__grid,
.p-cta__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.p-reason__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 999px) {
  .p-service__grid,
  .p-cta__grid,
  .p-reason__grid {
    grid-template-columns: 1fr;
  }
}

/* 7.4 ニュース一覧 */
.p-news__list {
  border-top: 1px solid var(--color-border);
}
.p-news__item a {
  display: flex;
  align-items: baseline;
  gap: 28px;
  padding: 20px 4px;
  border-bottom: 1px solid var(--color-border);
  transition: opacity var(--transition);
}
.p-news__item a:hover {
  opacity: 0.8;
}
.p-news__item time {
  font-family: var(--font-en);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.17em;
  color: var(--color-text-sub);
  flex-shrink: 0;
}
.p-news__empty {
  color: var(--color-text-sub);
}

/* 7.5 下層本文の基本（page.php） */
.p-pageBody h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 48px 0 16px;
}
.p-pageBody h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 32px 0 12px;
}
.p-pageBody p {
  margin-bottom: 16px;
}
.p-pageBody ul {
  list-style: disc;
  padding-left: 1.5em;
  margin-bottom: 16px;
}

/* 実績タグ帯の無限横スライド */
@keyframes loop-slide {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
.c-loopTags {
  overflow: hidden;
  white-space: nowrap;
}
.c-loopTags__track {
  display: inline-flex;
  gap: 12px;
  padding-right: 12px;
  animation: loop-slide 36s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
  .c-loopTags__track {
    animation: none;
  }
  .js .js-fade {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
