@charset "UTF-8";

/* =========================================================
   Variables & Reset
========================================================= */
:root {
  --bg-color: #ffffff;
  --text-main: #111111;
  --text-muted: #888888;
  --primary-color: #00BFA5;
  --accent-color: #FF3D00;
  --line-color: #E0E0E0;
  
  --font-en: 'Montserrat', sans-serif;
  --font-ja: 'Noto Sans JP', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-ja); color: var(--text-main); background-color: var(--bg-color);
  line-height: 1.8; font-weight: 400; letter-spacing: 0.05em; -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

ul { list-style: none; }
a { color: inherit; text-decoration: none; transition: 0.3s; }

/* =========================================================
   Smooth Custom Cursor (PC Only)
========================================================= */
@media (min-width: 769px) {
  body, a, button { cursor: none; }
  input, textarea, select { cursor: auto; }
}

.custom-cursor {
  position: fixed; top: 0; left: 0; width: 10px; height: 10px;
  background-color: var(--accent-color); border-radius: 50%;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.35s cubic-bezier(0.25, 1, 0.5, 1), height 0.35s cubic-bezier(0.25, 1, 0.5, 1), background-color 0.3s, opacity 0.3s, box-shadow 0.4s;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.custom-cursor.is-on-dark {
  background-color: var(--primary-color);
  box-shadow: 0 0 16px rgba(0, 191, 165, 0.7), 0 0 40px rgba(0, 191, 165, 0.4), 0 0 80px rgba(0, 191, 165, 0.15);
}
.custom-cursor.is-hover { width: 40px; height: 40px; }
.custom-cursor.is-on-dark.is-hover {
  width: 50px; height: 50px;
  background-color: var(--primary-color);
  box-shadow: 0 0 20px rgba(0, 191, 165, 0.8), 0 0 50px rgba(0, 191, 165, 0.4), 0 0 100px rgba(0, 191, 165, 0.15);
}
/* RECRUIT INFO button: hide cursor, let button glow do the work */
.custom-cursor.is-recruit {
  width: 0; height: 0; opacity: 0;
}
.custom-cursor.is-view { width: 90px; height: 90px; background-color: var(--primary-color); }
.custom-cursor.is-go { width: 90px; height: 90px; background-color: var(--accent-color); }
.custom-cursor.is-hidden { opacity: 0 !important; width: 0; height: 0; }
.custom-cursor.is-in-header { background-color: #fff !important; mix-blend-mode: difference; box-shadow: none !important; }
.custom-cursor.is-in-header .cursor-text,
.custom-cursor.is-in-header .cursor-text-go { opacity: 0 !important; }
.custom-cursor .cursor-text { color: #fff; font-family: var(--font-en); font-size: 1rem; font-weight: 800; opacity: 0; transition: opacity 0.3s; letter-spacing: 0.1em; }
.custom-cursor .cursor-text-go { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-family: var(--font-en); font-size: 1rem; font-weight: 800; letter-spacing: 0.1em; opacity: 0; transition: opacity 0.3s; }
.custom-cursor.is-view .cursor-text { opacity: 1; }
.custom-cursor.is-go .cursor-text-go { opacity: 1; }

@media (max-width: 768px) { .custom-cursor { display: none !important; } }

/* =========================================================
   Header & Mobile Navigation
========================================================= */
header {
  position: fixed; top: 0; width: 100%; padding: 24px 5%;
  display: flex; justify-content: space-between; align-items: center;
  z-index: 2000; background: rgba(255,255,255,0.95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line-color);
  transition: background 0.3s;
}
.logo {
  font-family: var(--font-en); font-size: clamp(1.2rem, 3vw, 1.5rem); font-weight: 800; letter-spacing: 0.1em; z-index: 2001; position: relative;
  display: inline-flex; align-items: center; gap: 6px;
}
/* Canvas logo replaces text gradient */
.logo-canvas {
  display: block;
}
footer .logo-canvas { display: block; margin: 0 auto; }
.logo-suffix { font-family: var(--font-en); font-size: 0.5em; font-weight: 700; letter-spacing: 0.05em; color: #111; }
footer .logo-suffix { color: rgba(255,255,255,0.65); }
.nav-links { display: flex; gap: 32px; font-family: var(--font-en); font-weight: 700; font-size: 0.85rem; }
.nav-links a:hover { color: var(--primary-color); }

.menu-btn {
  display: none; width: 40px; height: 40px; position: relative; z-index: 2001; cursor: pointer; background: none; border: none; outline: none;
}
.menu-btn span { display: block; width: 100%; height: 2px; background: var(--text-main); position: absolute; transition: 0.3s; }
.menu-btn span:nth-child(1) { top: 12px; }
.menu-btn span:nth-child(2) { bottom: 12px; }
.menu-btn.is-open span { background: #fff; }
.menu-btn.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-btn.is-open span:nth-child(2) { transform: translateY(-8px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; background: var(--text-main); z-index: 1500;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  padding-top: 100px;  /* ヘッダーの高さ分の余白。HOMEがヘッダーのぼかしと重ならないように */
  opacity: 0; pointer-events: none; transition: opacity 0.4s ease;
}
.mobile-menu.is-open { opacity: 1; pointer-events: auto; }
.mobile-menu nav { display: flex; flex-direction: column; text-align: center; gap: 32px; }
.mobile-menu nav a {
  font-family: var(--font-en); font-size: 2.5rem; font-weight: 800; color: #fff; text-transform: uppercase;
  letter-spacing: 0.05em; line-height: 1; transform: translateY(30px); opacity: 0; transition: 0.4s;
}
.mobile-menu.is-open nav a { transform: translateY(0); opacity: 1; }
.mobile-menu.is-open nav a:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.is-open nav a:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.is-open nav a:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.is-open nav a:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu.is-open nav a:nth-child(5) { transition-delay: 0.3s; }
.mobile-menu.is-open nav a:nth-child(6) { transition-delay: 0.35s; }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .menu-btn { display: block; }
  header.menu-open { background: transparent; border-bottom: none; }
  header.menu-open .logo { /* canvas handles color */ }
}

/* =========================================================
   Typography & Layout
========================================================= */
.en { font-family: var(--font-en); font-weight: 800; }
.sec-title { margin-bottom: clamp(40px, 8vw, 80px); position: relative; }
.sec-title .en-part { display: block; font-family: var(--font-en); font-size: clamp(2.5rem, 10vw, 4rem); font-weight: 800; line-height: 1; letter-spacing: -0.02em; }
.sec-title .ja-part { display: inline-block; font-size: clamp(0.85rem, 3vw, 1rem); font-weight: 700; color: var(--primary-color); margin-top: 8px; letter-spacing: 0.1em; }
.sec-title::after { content: ''; display: block; width: 60px; height: 4px; background: var(--accent-color); margin-top: 20px; }

.container { width: 90%; max-width: 1200px; margin: 0 auto; position: relative; z-index: 10; }
.section-pad { padding: clamp(80px, 15vw, 120px) 0; position: relative; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }

@media (max-width: 768px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; gap: 40px; }
  .mobile-bleed { margin-left: -5vw; margin-right: -5vw; width: 100vw; }
}

/* =========================================================
   Image Handling (実画像・プレースホルダー共用)
========================================================= */
.img-holder {
  width: 100%; height: 100%; min-height: 250px; background-color: #F5F5F5;
  display: flex; align-items: center; justify-content: center; text-align: center;
  color: #999; font-size: 0.8rem; font-weight: 500; border: 1px dashed #CCC; padding: 20px;
}

.img-wrapper {
  width: 100%; height: 100%; overflow: hidden; background-color: #F5F5F5;
}
.img-wrapper img {
  width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease;
}
@media (min-width: 769px) {
  .img-wrapper:hover img { transform: scale(1.05); }
}

/* =========================================================
   Interactions & Animations
========================================================= */
.fade-in { opacity: 1; transform: translateY(0); }
html.js-active .fade-in { opacity: 0; transform: translateY(40px); transition: 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
html.js-active .fade-in.is-visible { opacity: 1; transform: translateY(0); }

.dark-section { position: relative; z-index: 1; }

/* =========================================================
   Hero Video Background
========================================================= */
.hero-section { height: 100vh; position: relative; overflow: hidden; background: #111; }
.hero-video-wrapper { position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; z-index: 0; }
.video-landscape iframe { position: absolute; top: 50%; left: 50%; width: 100vw; height: 56.25vw; min-height: 100vh; min-width: 177.77vh; transform: translate(-50%, -50%); pointer-events: none; }
.video-portrait iframe { position: absolute; top: 50%; left: 50%; width: 100vw; height: 177.77vw; min-height: 100vh; min-width: 56.25vh; transform: translate(-50%, -50%); pointer-events: none; }

.video-landscape { display: block; }
.video-portrait { display: none; }
@media (max-aspect-ratio: 1/1), (max-width: 768px) {
  .video-landscape { display: none; }
  .video-portrait { display: block; }
}

.hero-overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.35); z-index: 1; }
.hero-content { position: absolute; top: 50%; left: 5%; width: 90%; transform: translateY(-50%); z-index: 10; }
.hero-content h1 { font-family: var(--font-en); font-size: clamp(2.5rem, 12vw, 6rem); font-weight: 800; line-height: 1.1; color: #fff; }
.hero-content p { color: #fff; font-size: clamp(0.9rem, 3vw, 1.2rem); font-weight: 700; margin-top: 24px; letter-spacing: 0.2em; }

/* =========================================================
   Outline Marquee
========================================================= */
.marquee-wrap { overflow: hidden; white-space: nowrap; padding: 40px 0; border-top: 1px solid var(--line-color); border-bottom: 1px solid var(--line-color); display: flex; }
.marquee-text { font-family: var(--font-en); font-size: clamp(3rem, 10vw, 6rem); font-weight: 800; color: transparent; -webkit-text-stroke: 2px var(--line-color); text-transform: uppercase; padding-right: 50px; animation: marquee 15s linear infinite; }
@media (max-width: 768px) {
  .marquee-wrap { padding: 20px 0; }
  .marquee-text { -webkit-text-stroke: 1px var(--line-color); animation: marquee 10s linear infinite; }
}
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-100%); } }

/* =========================================================
   Buttons & Forms
========================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: clamp(16px, 4vw, 20px) clamp(32px, 6vw, 48px); font-family: var(--font-en); font-weight: 700; font-size: clamp(0.85rem, 3vw, 1rem);
  letter-spacing: 0.1em; border: 2px solid var(--text-main); background: #fff;
  color: var(--text-main); position: relative; overflow: hidden; z-index: 10; width: fit-content;
}
.btn .arrow { width: 30px; height: 2px; background: var(--text-main); margin-left: 16px; transition: 0.3s; }
.btn:hover { background: var(--text-main); color: #fff; }
.btn:hover .arrow { background: var(--primary-color); transform: translateX(8px); width: 40px; }
@media (max-width: 768px) { .btn { width: 100%; } }

/* RECRUIT INFO button special hover */
.btn-recruit {
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  overflow: visible;
}
.btn-recruit::before {
  content: ''; position: absolute; inset: -2px; border: 2px solid var(--primary-color);
  opacity: 0; transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}
@media (min-width: 769px) {
  .btn-recruit:hover {
    border-color: var(--primary-color) !important;
    background: var(--primary-color) !important;
    color: #fff !important;
    box-shadow: 0 0 30px rgba(0, 191, 165, 0.6), 0 0 60px rgba(0, 191, 165, 0.3), 0 0 100px rgba(0, 191, 165, 0.15);
    transform: scale(1.05);
    animation: btn-recruit-glow 1.5s ease-in-out infinite;
  }
  .btn-recruit:hover .arrow {
    background: #fff !important; transform: translateX(12px); width: 50px;
  }
  .btn-recruit:hover::before {
    opacity: 1; inset: -8px;
    animation: recruit-ring 1.5s ease-in-out infinite;
  }
}
@keyframes btn-recruit-glow {
  0%, 100% { box-shadow: 0 0 30px rgba(0, 191, 165, 0.6), 0 0 60px rgba(0, 191, 165, 0.3), 0 0 100px rgba(0, 191, 165, 0.15); }
  50% { box-shadow: 0 0 40px rgba(0, 191, 165, 0.9), 0 0 80px rgba(0, 191, 165, 0.5), 0 0 140px rgba(0, 191, 165, 0.25); }
}
@keyframes recruit-ring {
  0%, 100% { inset: -8px; opacity: 0.6; }
  50% { inset: -14px; opacity: 0.2; }
}
/* Mobile: recruit button always glowing */
@media (max-width: 768px) {
  .btn-recruit {
    border-color: var(--primary-color) !important;
    background: var(--primary-color) !important;
    color: #fff !important;
    box-shadow: 0 0 20px rgba(0, 191, 165, 0.5), 0 0 40px rgba(0, 191, 165, 0.2);
    animation: btn-recruit-glow 2s ease-in-out infinite;
  }
  .btn-recruit .arrow { background: #fff !important; }
  .btn-recruit::before {
    opacity: 1; inset: -6px;
    animation: recruit-ring 2s ease-in-out infinite;
  }
}

.form-group { margin-bottom: 32px; }
.form-group label { display: block; font-weight: 700; margin-bottom: 8px; }
.form-control { width: 100%; padding: 16px; border: 2px solid var(--line-color); font-family: inherit; font-size: 1rem; background: #fff; transition: 0.3s; }
.form-control:focus { outline: none; border-color: var(--primary-color); }
select.form-control {
  cursor: pointer; appearance: none; -webkit-appearance: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='%23111'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") no-repeat right 16px center; background-size: 24px; padding-right: 48px;
}

/* =========================================================
   Page Headers (Subpages)
========================================================= */
.page-header { padding: clamp(120px, 20vw, 160px) 5% clamp(60px, 10vw, 80px); background: #f9f9f9; text-align: center; border-bottom: 1px solid var(--line-color); }
.page-header h1 { font-family: var(--font-en); font-size: clamp(3rem, 12vw, 4rem); font-weight: 800; color: var(--text-main); line-height: 1; }
.page-header p { font-weight: 700; color: var(--primary-color); letter-spacing: 0.1em; margin-top: 16px;}

/* =========================================================
   Subpages Specific Styles
========================================================= */
/* Company */
.company-table { width: 100%; border-collapse: collapse; margin-top: 40px; }
.company-table th, .company-table td { padding: 32px 24px; border-bottom: 1px solid var(--line-color); }
.company-table th { width: 30%; font-weight: 700; text-align: left; }
/* Services */
.s-list { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.s-list span { padding: 8px 16px; border: 2px solid var(--text-main); font-weight: 700; font-size: 0.85rem; }
.service-block { margin-bottom: 120px; }
/* Works */
.work-item { margin-bottom: 100px; }
.work-tags { margin-bottom: 12px; }
.work-tags span { color: var(--primary-color); font-weight: 700; margin-right: 16px; font-size: 0.85rem; display: inline-block; }
.work-tags span::before { content: '#'; margin-right: 2px; }
/* Slideshow */
.work-slideshow { position: relative; overflow: hidden; cursor: pointer; margin-bottom: 24px; }
.ss-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.8s ease; }
.ss-slide.active { opacity: 1; }
.ss-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.35); color: #fff; border: none; padding: 10px 16px; font-size: 1.6rem; cursor: pointer; z-index: 2; line-height: 1; transition: background 0.2s; }
.ss-nav:hover { background: rgba(0,0,0,0.6); }
.ss-prev { left: 0; }
.ss-next { right: 0; }
/* Lightbox */
.lightbox { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.92); z-index: 9000; align-items: center; justify-content: center; }
.lightbox.is-open { display: flex; }
.lightbox-img { max-width: 90vw; max-height: 85vh; object-fit: contain; display: block; }
.lightbox-close { position: absolute; top: 20px; right: 28px; color: #fff; font-size: 2.2rem; cursor: pointer; background: none; border: none; line-height: 1; }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.1); color: #fff; border: none; padding: 16px 22px; font-size: 2rem; cursor: pointer; line-height: 1; transition: background 0.2s; }
.lightbox-nav:hover { background: rgba(255,255,255,0.25); }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
.lightbox-counter { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,0.6); font-size: 0.82rem; font-family: var(--font-en); letter-spacing: 0.1em; }
/* Recruit */
.recruit-box { border: 4px solid var(--text-main); padding: clamp(30px, 6vw, 60px); margin-bottom: 60px; background: #fff; }
.recruit-box h3 { font-size: clamp(1.5rem, 5vw, 2rem); font-weight: 800; margin-bottom: 24px; color: var(--primary-color); }
.q-and-a details { border-bottom: 2px solid var(--line-color); padding: 24px 0; }
.q-and-a summary { font-weight: 700; font-size: clamp(1rem, 4vw, 1.2rem); cursor: pointer; list-style: none; outline: none; }
.q-and-a summary::-webkit-details-marker { display: none; }
.q-and-a .answer { padding-top: 16px; color: var(--text-muted); }

@media (max-width: 768px) {
  .company-table th, .company-table td { display: block; width: 100%; padding: 16px 0; border: none; }
  .company-table tr { border-bottom: 1px solid var(--line-color); }
  .company-table th { padding-bottom: 0; color: var(--primary-color); }
}

/* =========================================================
   Footer & Float Button
========================================================= */
footer { background: var(--text-main); color: #fff; padding: 80px 0; text-align: center; }
footer .logo {
  font-size: 2rem; margin-bottom: 16px; display: block;
}

.float-btn {
  position: fixed; right: 0; bottom: 5vh; background: var(--primary-color); color: #fff;
  padding: 24px 12px; writing-mode: vertical-rl; font-weight: 700; letter-spacing: 0.2em; font-size: 0.9rem;
  z-index: 990; display: flex; align-items: center; gap: 16px; transition: 0.3s; box-shadow: -5px 5px 20px rgba(0,0,0,0.2);
}
.float-btn .line { width: 1px; height: 30px; background: #fff; transition: 0.3s; }
.float-btn:hover { background: var(--text-main); }
.float-btn:hover .line { background: var(--accent-color); height: 50px; }