/*
Theme Name: nlinks
Theme URI:
Author: nlinks
Author URI:
Description: nlinks corporate theme — minimal one-page layout.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nlinks
*/

/* ========================================
   Reset & Base
   ======================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Yu Gothic", "Meiryo", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: #1d1d1f;
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

/* ========================================
   Typography
   ======================================== */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.02em;
}

/* ========================================
   Layout
   ======================================== */
.l-container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.l-section {
  padding: 120px 0;
}

.l-section__title {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #86868b;
  margin-bottom: 16px;
}

.l-section__heading {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 48px;
}

/* ========================================
   Header / Navigation
   ======================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.4s ease, border-color 0.4s ease;
}

/* スクロール後：白背景 */
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom-color: rgba(0, 0, 0, 0.06);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.site-header__logo {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  transition: color 0.4s ease;
}

.site-header.is-scrolled .site-header__logo {
  color: #1d1d1f;
}

.site-nav__list {
  display: flex;
  gap: 32px;
}

.site-nav__link {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.4s ease;
}

.site-header.is-scrolled .site-nav__link {
  color: #1d1d1f;
}

.site-nav__link:hover {
  color: #fff;
  opacity: 0.7;
}

.site-header.is-scrolled .site-nav__link:hover {
  color: #0071e3;
  opacity: 1;
}

/* Mobile menu button */
.site-header__hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  position: relative;
  flex-shrink: 0;
}

.site-header__hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  position: absolute;
  left: 10px;
  transition: transform 0.3s, opacity 0.3s, background 0.4s ease;
}

.site-header.is-scrolled .site-header__hamburger span {
  background: #1d1d1f;
}

.site-header__hamburger span:nth-child(1) { top: 14px; }
.site-header__hamburger span:nth-child(2) { top: 19px; }
.site-header__hamburger span:nth-child(3) { top: 24px; }

.site-header__hamburger.is-active span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}
.site-header__hamburger.is-active span:nth-child(2) {
  opacity: 0;
}
.site-header__hamburger.is-active span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

/* ========================================
   Hero
   ======================================== */

/* フェードイン＋浮き上がりアニメーション */
@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  text-align: center;
  overflow: hidden;

  /* 濃紺→黒のダークグラデーション */
  background: linear-gradient(160deg, #0d1b2a 0%, #0a0a0a 100%);
}

/* グリッドテクスチャ */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

/* 下部のフェードアウト（グリッドの境界を自然に溶かす） */
.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 200px;
  background: linear-gradient(to bottom, transparent, #0a0a0a);
  pointer-events: none;
}

.hero .l-container {
  position: relative;
  z-index: 1;
}

.hero__eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 20px;
}

/* タイプライターカーソル */
.hero__cursor {
  display: inline-block;
  margin-left: 2px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 300;
  animation: cursorBlink 0.6s step-end infinite;
}

@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

.hero__cursor.is-done {
  animation: none;
  opacity: 0;
  transition: opacity 0.2s;
}

.hero__catch {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.02em;
  color: #fff;
  margin-bottom: 24px;
  opacity: 0; /* JS が animation をセット */
}

.hero__sub {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.9;
  max-width: 560px;
  margin: 0 auto;
  opacity: 0; /* JS が animation をセット */
}

/* ========================================
   About
   ======================================== */
.about {
  background: #f5f5f7;
}

.about__intro {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: #6e6e73;
  max-width: 100%;
  margin-bottom: 80px;
  line-height: 2;
}

/* Reasons */
.reasons__heading {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 32px;
}

.reasons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 80px;
}

.reason-card {
  position: relative;
  overflow: hidden;
  padding: 32px 40px;
  border-left: 1px solid rgba(0, 0, 0, 0.1);
}

.reason-card:first-child {
  padding-left: 0;
  border-left: none;
}

.reason-card::after {
  content: attr(data-keyword);
  position: absolute;
  right: -8px;
  bottom: -12px;
  font-size: 64px;
  font-weight: 900;
  color: #1d1d1f;
  opacity: 0.08;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

.reason-card__number {
  font-size: 1.25rem; /* 20px */
  font-weight: 700;
  color: #0071e3;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  line-height: 1;
}

.reason-card__title {
  font-size: 1.375rem; /* 22px */
  font-weight: 700;
  margin-bottom: 12px;
}

.reason-card__text {
  font-size: 0.9rem;
  color: #6e6e73;
  line-height: 1.8;
}

/* Company table */
.company-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 80px;
  margin-bottom: 80px;
}

.company-table th,
.company-table td {
  padding: 20px 0;
  font-size: 0.95rem;
  text-align: left;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  vertical-align: top;
}

.company-table th {
  width: 160px;
  font-weight: 600;
  color: #86868b;
  white-space: nowrap;
}

/* 所在地リンク */
.company-location {
  display: block;
  margin-bottom: 4px;
}

.company-map-link {
  display: inline-block;
  font-size: 0.8rem;
  color: #0071e3;
  margin-bottom: 16px;
  transition: opacity 0.2s;
}

.company-map-link:hover {
  opacity: 0.7;
}

.company-map-link:last-child {
  margin-bottom: 0;
}

/* Management */
.management__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 40px;
}

.management__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
}

.management-card {
  padding: 32px;
  background: #fff;
  border-radius: 16px;
}

.management-card__role {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #86868b;
  margin-bottom: 8px;
}

.management-card__name {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.management-card__name-en {
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
  color: #86868b;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

.management-card__desc {
  font-size: 0.85rem;
  color: #6e6e73;
  line-height: 1.7;
}

/* ========================================
   Service
   ======================================== */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.service-card {
  position: relative;
  overflow: hidden;
  padding: 48px 40px;
  background: #f5f5f7;
  border-radius: 16px;
  transition: transform 0.3s;
}

.service-card:hover {
  transform: translateY(-4px);
}

.service-card::after {
  content: attr(data-keyword);
  position: absolute;
  right: -8px;
  bottom: -16px;
  font-size: 64px;
  font-weight: 900;
  color: #1d1d1f;
  opacity: 0.08;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

.service-card__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #555;
  margin-bottom: 10px;
}

.service-card__title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.service-card__text {
  font-size: 0.9rem;
  color: #6e6e73;
  line-height: 1.8;
  margin-bottom: 20px;
}

.service-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.service-card__tags li {
  font-size: 0.8125rem; /* 13px */
  font-weight: 500;
  color: #fff;
  background: #111;
  padding: 6px 16px;
  border-radius: 999px;
}

.service-card__site-link {
  display: inline-block;
  margin-top: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #0071e3;
  text-decoration: none;
  border-bottom: 1px solid #0071e3;
  padding-bottom: 2px;
  transition: opacity 0.2s;
}
.service-card__site-link:hover {
  opacity: 0.6;
}

/* ========================================
   Recruit
   ======================================== */
.recruit {
  background: #f5f5f7;
  text-align: center;
}

.recruit__text {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: #6e6e73;
  max-width: 100%;
  margin: 0 auto 16px;
  line-height: 2;
}

.recruit__text:last-of-type {
  margin-bottom: 48px;
}

.recruit__btn {
  display: inline-block;
  padding: 14px 40px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1d1d1f;
  border: 1.5px solid #1d1d1f;
  border-radius: 980px;
  transition: background 0.2s, color 0.2s;
}

.recruit__btn:hover {
  background: #1d1d1f;
  color: #fff;
}

/* ========================================
   Contact
   ======================================== */
.contact {
  text-align: center;
}

.contact__text {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: #6e6e73;
  margin-bottom: 32px;
}

.contact__email {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
}

.contact__note {
  font-size: 0.85rem;
  color: #86868b;
}

/* ========================================
   Footer
   ======================================== */
.site-footer {
  padding: 40px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-footer__nav {
  flex: 1;
}

.site-footer__spacer {
  flex: 1;
}

.site-footer__copy {
  font-size: 0.8rem;
  color: #86868b;
}

.site-footer__link {
  font-size: 0.8rem;
  color: #86868b;
  transition: color 0.2s;
}

.site-footer__link:hover {
  color: #1d1d1f;
}

@media (max-width: 768px) {
  .site-footer__inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 768px) {
  .hero__catch {
    font-size: 2.5rem; /* 40px */
  }

  .hero__sub {
    font-size: 1rem; /* 16px */
  }

  .l-section {
    padding: 80px 0;
  }

  .site-header__hamburger {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: 64px;
    left: 0;
    width: 100%;
    height: calc(100vh - 64px);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
  }

  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
  }

  .site-nav__list {
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }

  .site-nav__link {
    font-size: 1.25rem;
  }

  .reasons {
    grid-template-columns: 1fr;
  }

  .reason-card {
    padding: 24px 0;
    border-left: none;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
  }

  .reason-card:first-child {
    padding-top: 24px;
    border-top: none;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .company-table th {
    width: 100px;
  }
}
