/*
Theme Name: SwiftBoar
Theme URI: https://swiftboar.co.jp
Author: 合同会社SwiftBoar
Description: SwiftBoar公式サイト カスタムテーマ
Version: 1.5
Text Domain: swiftboar
*/


  :root {
    --black: #0f1a14;
    --surface: #162010;
    --surface2: #1c2a1a;
    --white: #f0f4f1;
    --white-dim: #ccddd4;
    --green: #4a8b6f;
    --green-light: #63a885;
    --green-bright: #7dc4a0;
    --green-glow: rgba(74,139,111,0.18);
    --gray-300: #aabfb5;
    --gray-500: #6a8a78;
    --gray-700: #3a5045;
    --border: rgba(255,255,255,0.09);
    --border-green: rgba(99,168,133,0.25);
    --text-body: #c0d8ca;
    --text-muted: #7aa090;
  }

  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  body {
    background: var(--black);
    color: var(--white);
    font-family: 'DM Sans', 'Noto Sans JP', sans-serif;
    font-weight: 400;
    line-height: 1.7;
    overflow-x: hidden;
  }

  /* subtle noise */
  body::after {
    content: '';
    position: fixed; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
    pointer-events: none; z-index: 9999; opacity: 0.3;
  }

  /* ── NAV ── */
  nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    padding: 14px 48px;
    display: flex; justify-content: space-between; align-items: center;
    backdrop-filter: blur(24px);
    background: rgba(8,12,10,0.8);
    border-bottom: 1px solid var(--border);
    transition: padding 0.3s ease;
  }
  .logo-img { display: none; }  /* 旧ロゴimg非表示 */
  .nav-links { display: flex; gap: 32px; list-style: none; align-items: center; }
  .nav-links a {
    color: var(--gray-300); text-decoration: none;
    font-size: 0.85rem; letter-spacing: 0.03em;
    transition: color 0.2s; font-weight: 400;
  }
  .nav-links a:hover { color: var(--green-bright); }
  .nav-cta {
    background: var(--green) !important; color: var(--white) !important;
    padding: 9px 22px; border-radius: 6px;
    font-weight: 500 !important; font-size: 0.83rem !important;
    letter-spacing: 0.02em;
    transition: background 0.2s, transform 0.15s !important;
  }
  .nav-cta:hover { background: var(--green-light) !important; transform: translateY(-1px); }

  .hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
  .hamburger span { display: block; width: 22px; height: 1.5px; background: var(--white); border-radius: 2px; }
  .mobile-nav {
    display: none; position: fixed; inset: 0;
    background: rgba(8,12,10,0.97); z-index: 99;
    flex-direction: column; align-items: center; justify-content: center; gap: 36px;
    backdrop-filter: blur(20px);
  }
  .mobile-nav.open { display: flex; }
  .mobile-nav a { font-family: 'Syne', sans-serif; font-size: 1.5rem; font-weight: 700; color: var(--white); text-decoration: none; transition: color 0.2s; }
  .mobile-nav a:hover { color: var(--green-bright); }
  .mobile-close { position: absolute; top: 24px; right: 24px; font-size: 1.5rem; cursor: pointer; color: var(--gray-300); background: none; border: none; padding: 8px; }

  /* ── HERO ── */
  #hero {
    min-height: 100vh; display: flex; align-items: center;
    padding: 120px 48px 80px; position: relative; overflow: hidden;
  }
  .hero-bg {
    position: absolute; inset: 0;
    background:
      radial-gradient(ellipse 65% 60% at 80% 35%, rgba(74,139,111,0.22) 0%, transparent 65%),
      radial-gradient(ellipse 45% 55% at 10% 85%, rgba(74,139,111,0.12) 0%, transparent 55%),
      radial-gradient(ellipse 80% 80% at 50% 50%, rgba(22,32,16,0.0) 0%, rgba(15,26,20,1) 100%);
  }
  .hero-grid {
    position: absolute; inset: 0;
    background-image:
      linear-gradient(rgba(99,168,133,0.07) 1px, transparent 1px),
      linear-gradient(90deg, rgba(99,168,133,0.07) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 85% 85% at 50% 50%, black, transparent);
  }
  .hero-content { position: relative; max-width: 860px; }

  .hero-tag {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(74,139,111,0.1); border: 1px solid var(--border-green);
    border-radius: 100px; padding: 6px 18px;
    font-size: 0.8rem; letter-spacing: 0.06em; color: var(--green-bright);
    margin-bottom: 32px; font-weight: 400;
    animation: fadeUp 0.8s ease both;
    font-family: 'Noto Sans JP', sans-serif;
  }
  .hero-tag::before {
    content: ''; width: 6px; height: 6px; background: var(--green-bright);
    border-radius: 50%; animation: blink 2s infinite;
  }
  @keyframes blink { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.4;transform:scale(0.7)} }

  h1 {
    font-family: 'Syne', sans-serif; font-weight: 800;
    font-size: clamp(2.8rem, 5.5vw, 5.2rem);
    line-height: 1.08; letter-spacing: -0.02em;
    margin-bottom: 28px;
    animation: fadeUp 0.8s 0.1s ease both;
    color: var(--white);
  }
  /* Fix "IT" rendering - use span with explicit styling */
  h1 .word-it {
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--white);
    display: inline;
  }
  h1 em { font-style: normal; color: var(--green-bright); }
  .hero-sub {
    display: block;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: clamp(0.9rem, 1.6vw, 1.15rem);
    font-weight: 400; letter-spacing: 0.07em;
    color: var(--text-body); margin-top: 16px;
  }

  .hero-desc {
    font-size: 1rem; color: var(--text-body);
    max-width: 520px; line-height: 2.0; margin-bottom: 48px;
    animation: fadeUp 0.8s 0.2s ease both;
    font-family: 'Noto Sans JP', sans-serif; font-weight: 400;
  }

  .hero-actions { display: flex; gap: 14px; flex-wrap: wrap; animation: fadeUp 0.8s 0.3s ease both; }

  .btn-primary {
    background: var(--green); color: var(--white);
    border: none; padding: 15px 34px; border-radius: 7px;
    font-size: 0.95rem; font-weight: 500; letter-spacing: 0.02em;
    cursor: pointer; text-decoration: none;
    display: inline-flex; align-items: center; gap: 8px;
    transition: all 0.2s;
    font-family: 'Noto Sans JP', sans-serif;
  }
  .btn-primary:hover { background: var(--green-light); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(74,139,111,0.35); }

  .btn-secondary {
    background: transparent; color: var(--white-dim);
    border: 1px solid rgba(255,255,255,0.15); padding: 15px 34px; border-radius: 7px;
    font-size: 0.95rem; font-weight: 400; letter-spacing: 0.02em;
    cursor: pointer; text-decoration: none;
    display: inline-flex; align-items: center; gap: 8px;
    transition: all 0.2s;
    font-family: 'Noto Sans JP', sans-serif;
  }
  .btn-secondary:hover { border-color: rgba(255,255,255,0.3); background: rgba(255,255,255,0.05); transform: translateY(-2px); }

  .scroll-hint {
    position: absolute; bottom: 40px; left: 48px;
    display: flex; align-items: center; gap: 12px;
    font-size: 0.72rem; letter-spacing: 0.14em; color: var(--gray-500);
    animation: fadeUp 1s 0.6s ease both;
  }
  .scroll-line { width: 40px; height: 1px; background: var(--gray-700); position: relative; overflow: hidden; }
  .scroll-line::after {
    content: ''; position: absolute; left: -100%; top: 0; width: 100%; height: 100%;
    background: var(--green-bright); animation: lineSlide 2.5s 1s infinite;
  }
  @keyframes lineSlide { 0%{left:-100%} 100%{left:100%} }
  @keyframes fadeUp { from{opacity:0;transform:translateY(22px)} to{opacity:1;transform:translateY(0)} }

  /* ── SECTION ── */
  section { padding: 96px 48px; }
  .section-eyebrow {
    font-family: 'Syne', sans-serif; font-size: 0.7rem;
    letter-spacing: 0.22em; color: var(--green-bright);
    text-transform: uppercase; margin-bottom: 14px;
    display: flex; align-items: center; gap: 12px;
  }
  .section-eyebrow::after { content: ''; height: 1px; width: 36px; background: var(--green); opacity: 0.5; }
  h2 {
    font-family: 'Syne', sans-serif; font-weight: 700;
    font-size: clamp(1.7rem, 3vw, 2.6rem); letter-spacing: -0.015em;
    line-height: 1.22; margin-bottom: 18px; color: var(--white);
  }
  .section-desc {
    color: var(--text-body); font-size: 0.98rem;
    max-width: 540px; margin-bottom: 56px; line-height: 1.9;
    font-family: 'Noto Sans JP', sans-serif; font-weight: 400;
  }

  /* ── CONCEPT (v1スタイル) ── */
  #concept {
    text-align: center;
    background: linear-gradient(180deg, var(--surface) 0%, #1c2e1e 100%);
    padding: 80px 48px;
    position: relative;
    overflow: hidden;
  }
  #concept::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse 60% 70% at 50% 50%, rgba(74,139,111,0.12) 0%, transparent 70%);
    pointer-events: none;
  }
  .concept-word {
    font-family: 'Syne', sans-serif; font-weight: 800;
    font-size: clamp(3rem, 7vw, 7rem);
    letter-spacing: -0.04em; line-height: 1;
    background: linear-gradient(135deg, var(--white) 0%, var(--green-bright) 55%, var(--white) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    margin-bottom: 28px;
  }
  .concept-jp {
    font-family: 'Noto Sans JP', sans-serif; font-weight: 700;
    font-size: clamp(1rem, 2vw, 1.4rem); letter-spacing: 0.2em;
    color: var(--text-muted); margin-bottom: 32px;
  }
  .concept-desc {
    max-width: 620px; margin: 0 auto;
    font-size: 0.97rem; color: var(--text-body); line-height: 1.95;
    font-family: 'Noto Sans JP', sans-serif; font-weight: 400;
  }

  /* ── SERVICES: 2×2 grid (4 items, no gaps) ── */
  #services { background: linear-gradient(180deg, #1c2e1e 0%, var(--black) 100%); }
  .services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: rgba(99,168,133,0.08);
    border: 1px solid rgba(99,168,133,0.12);
    border-radius: 16px; overflow: hidden;
  }
  .svc {
    background: rgba(26,38,22,0.95);
    padding: 48px 44px;
    transition: background 0.3s; position: relative; overflow: hidden;
  }
  .svc::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, var(--green), var(--green-bright));
    transform: scaleX(0); transform-origin: left; transition: transform 0.4s;
  }
  .svc:hover { background: #1e3018; }
  .svc:hover::before { transform: scaleX(1); }
  .svc-icon {
    width: 52px; height: 52px;
    background: rgba(74,139,111,0.1);
    border: 1px solid var(--border-green);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; margin-bottom: 24px;
  }
  .svc-num {
    font-family: 'Syne', sans-serif; font-size: 0.68rem;
    color: var(--gray-500); letter-spacing: 0.12em; margin-bottom: 10px;
  }
  .svc-title {
    font-family: 'Syne', sans-serif; font-size: 1.1rem; font-weight: 700;
    margin-bottom: 14px; letter-spacing: -0.01em; color: var(--white);
  }
  .svc-desc {
    font-size: 0.92rem; color: var(--text-body); line-height: 1.9;
    font-family: 'Noto Sans JP', sans-serif; font-weight: 400;
  }

  /* ── REGIONAL ── */
  #regional { background: linear-gradient(180deg, var(--black) 0%, #162414 50%, var(--black) 100%); }
  .regional-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
  .area-box {
    position: relative; height: 420px;
    background: rgba(74,139,111,0.03); border: 1px solid var(--border-green);
    border-radius: 20px; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
  }
  .area-bg-text {
    position: absolute; font-family: 'Syne', sans-serif; font-weight: 800;
    font-size: 5rem; color: var(--white); opacity: 0.03;
    letter-spacing: -0.04em; user-select: none;
  }
  .pills { position: absolute; inset: 28px; display: flex; flex-wrap: wrap; gap: 10px; align-content: center; justify-content: center; }
  .pill {
    background: rgba(74,139,111,0.08); border: 1px solid var(--border-green);
    border-radius: 100px; padding: 8px 18px;
    font-size: 0.85rem; color: var(--green-bright); font-weight: 400; letter-spacing: 0.02em;
    white-space: nowrap; transition: all 0.3s; cursor: default;
    font-family: 'Noto Sans JP', sans-serif;
  }
  .pill:hover { background: rgba(74,139,111,0.18); transform: scale(1.04); }
  .pill.hub {
    background: var(--green); color: var(--white); font-weight: 600;
    font-size: 0.9rem; padding: 10px 22px;
    box-shadow: 0 4px 18px rgba(74,139,111,0.35);
  }
  .regional-list { list-style: none; display: flex; flex-direction: column; gap: 18px; margin-bottom: 40px; }
  .regional-list li {
    display: flex; gap: 14px; align-items: flex-start;
    font-size: 0.95rem; color: var(--text-body); line-height: 1.75;
    font-family: 'Noto Sans JP', sans-serif;
  }
  .regional-list li::before { content: '✓'; color: var(--green-bright); font-weight: 600; font-size: 0.85rem; margin-top: 3px; flex-shrink: 0; }

  /* ── RECRUIT ── */
  #recruit { background: linear-gradient(160deg, #162e1a 0%, var(--black) 50%, #14281a 100%); position: relative; overflow: hidden; }
  #recruit::before {
    content: ''; position: absolute; width: 500px; height: 500px; border-radius: 50%;
    background: radial-gradient(circle, rgba(74,139,111,0.08) 0%, transparent 70%);
    right: -150px; top: -150px; pointer-events: none;
  }
  .recruit-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; position: relative; }
  .tech-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
  .tech-tag {
    background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1);
    border-radius: 5px; padding: 5px 13px; font-size: 0.78rem; color: var(--gray-300);
    letter-spacing: 0.04em; font-family: 'Syne', sans-serif; font-weight: 600;
  }
  .jcards { display: flex; flex-direction: column; gap: 14px; }
  .jcard {
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.07);
    border-radius: 12px; padding: 26px 28px; position: relative; transition: all 0.3s;
  }
  .jcard:hover { background: rgba(74,139,111,0.06); border-color: var(--border-green); transform: translateX(6px); }
  .jcard-type { font-size: 0.7rem; color: var(--green-bright); letter-spacing: 0.1em; font-weight: 500; text-transform: uppercase; margin-bottom: 6px; }
  .jcard-role { font-family: 'Syne', sans-serif; font-size: 1rem; font-weight: 700; margin-bottom: 7px; color: var(--white); }
  .jcard-desc { font-size: 0.87rem; color: var(--text-body); line-height: 1.75; font-family: 'Noto Sans JP', sans-serif; }
  .jcard-badge {
    position: absolute; top: 18px; right: 18px;
    background: rgba(74,139,111,0.15); border: 1px solid var(--border-green);
    color: var(--green-bright); font-size: 0.66rem; padding: 3px 9px;
    border-radius: 100px; font-weight: 500; letter-spacing: 0.06em;
  }

  /* ── ABOUT ── */
  #about { background: linear-gradient(180deg, #162414 0%, var(--surface) 100%); }
  .about-wrap { display: grid; grid-template-columns: 1fr 2fr; gap: 72px; align-items: start; }
  .about-table { width: 100%; border-collapse: collapse; }
  .about-table tr { border-bottom: 1px solid rgba(255,255,255,0.06); }
  .about-table td { padding: 16px 0; font-size: 0.92rem; vertical-align: top; line-height: 1.75; }
  .about-table td:first-child {
    color: var(--text-muted); width: 110px;
    font-size: 0.83rem; letter-spacing: 0.04em;
    font-family: 'Noto Sans JP', sans-serif;
  }
  .about-table td:last-child { color: var(--text-body); font-family: 'Noto Sans JP', sans-serif; }

  /* ── CTA ── */
  #cta { text-align: center; position: relative; overflow: hidden; padding: 100px 48px; background: linear-gradient(180deg, var(--black) 0%, #182816 100%); }
  #cta::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(74,139,111,0.09) 0%, transparent 70%);
  }
  .cta-inner { position: relative; max-width: 680px; margin: 0 auto; }
  .cta-title {
    font-family: 'Syne', sans-serif; font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 800; letter-spacing: -0.02em; line-height: 1.2;
    margin-bottom: 20px; color: var(--white);
  }
  .cta-sub {
    color: var(--text-body); margin-bottom: 40px; font-size: 0.97rem; line-height: 1.9;
    font-family: 'Noto Sans JP', sans-serif;
  }
  .cta-acts { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

  /* ── FOOTER ── */
  footer { padding: 56px 48px 36px; border-top: 1px solid rgba(255,255,255,0.06); background: #162010; }
  .footer-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 44px; }
  .footer-brand img { display: none; }
  .footer-tagline { font-size: 0.82rem; color: var(--text-muted); line-height: 1.7; font-family: 'Noto Sans JP', sans-serif; }
  .footer-links { display: flex; gap: 56px; }
  .footer-col h4 { font-size: 0.71rem; letter-spacing: 0.12em; color: var(--gray-500); text-transform: uppercase; margin-bottom: 14px; font-family: 'Syne', sans-serif; }
  .footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
  .footer-col a { color: var(--text-body); text-decoration: none; font-size: 0.87rem; transition: color 0.2s; font-family: 'Noto Sans JP', sans-serif; }
  .footer-col a:hover { color: var(--green-bright); }
  .footer-bottom {
    display: flex; justify-content: space-between; align-items: center;
    padding-top: 28px; border-top: 1px solid rgba(255,255,255,0.05);
    font-size: 0.78rem; color: var(--gray-500);
    font-family: 'Noto Sans JP', sans-serif;
  }

  /* ── REVEAL ── */
  .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
  .reveal.visible { opacity: 1; transform: translateY(0); }
  .d1 { transition-delay: 0.12s; } .d2 { transition-delay: 0.22s; } .d3 { transition-delay: 0.32s; }

  /* ── RESPONSIVE ── */
  @media (max-width: 900px) {
    nav { padding: 14px 20px; }
    .nav-links { display: none; }
    .hamburger { display: flex; }
    #hero { padding: 96px 20px 72px; }
    section { padding: 64px 20px; }
    .services-grid { grid-template-columns: 1fr; }
    .regional-wrap, .recruit-wrap, .about-wrap { grid-template-columns: 1fr; gap: 44px; }
    .area-box { height: 260px; }
    .footer-top { flex-direction: column; gap: 36px; }
    .footer-links { gap: 28px; flex-wrap: wrap; }
    footer { padding: 44px 20px 28px; }
    .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
    .scroll-hint { left: 20px; }
  }

  /* ── LOGO NAV ── */
  .logo-nav {
    display: flex;
    align-items: center;
    text-decoration: none;
  }
  .logo-nav img {
    height: 46px;
    width: auto;
    display: block;
  }
  .logo-nav-text { display: none; }

  /* ── LOGO FOOTER ── */
  .logo-footer {
    margin-bottom: 14px;
  }
  .logo-footer img {
    height: 44px;
    width: auto;
    display: block;
  }
  .logo-footer-text { display: none; }
