/* ========================================
   LOYAL CORPORATE SITE - MAIN STYLESHEET
   ======================================== */

/* ---------- CSS VARIABLES ---------- */
:root {
  --color-bg: #0a0a0a;
  --color-bg-alt: #111111;
  --color-bg-card: #161616;
  --color-bg-card-hover: #1c1c1c;
  --color-border: #222222;
  --color-border-light: #333333;
  --color-text: #ffffff;
  --color-text-secondary: #999999;
  --color-text-muted: #666666;
  --color-accent: #c8a45e;
  --color-accent-light: #d4b574;
  --color-accent-dark: #a88a3e;
  --font-heading: 'Cormorant Garamond', 'Noto Sans JP', serif;
  --font-body: 'Noto Sans JP', 'Inter', sans-serif;
  --font-accent: 'Inter', 'Noto Sans JP', sans-serif;
  --max-width: 1200px;
  --header-height: 80px;
  --section-padding: 120px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- RESET ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.8;
  font-weight: 300;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

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

ul {
  list-style: none;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* ---------- UTILITY ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
}

.pc-only {
  display: inline;
}

.sp-only {
  display: none;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 40px;
  font-family: var(--font-accent);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 0;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--color-accent);
  color: #000;
  border: 1px solid var(--color-accent);
}

.btn-primary:hover {
  background: var(--color-accent-light);
  border-color: var(--color-accent-light);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border-light);
}

.btn-outline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  transform: translateY(-2px);
}

.btn-full {
  width: 100%;
}

/* ---------- HEADER ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  transition: var(--transition);
  background: transparent;
}

.header.scrolled {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  z-index: 1001;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--color-text);
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-family: var(--font-accent);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-accent);
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--color-text);
}

.nav-link:hover::after {
  width: 100%;
}

.header-cta {
  font-family: var(--font-accent);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  padding: 10px 24px;
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
  transition: var(--transition);
}

.header-cta:hover {
  background: var(--color-accent);
  color: #000;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  z-index: 1001;
  padding: 8px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--color-text);
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Nav */
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 10, 10, 0.98);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-slow);
}

.mobile-nav.active {
  opacity: 1;
  pointer-events: all;
}

.mobile-nav-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.mobile-nav-link {
  font-family: var(--font-accent);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  transition: var(--transition);
}

.mobile-nav-link:hover {
  color: var(--color-accent);
}

.mobile-nav-link.cta {
  margin-top: 20px;
  padding: 12px 32px;
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--color-bg);
}

.hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  background: radial-gradient(ellipse at 70% 50%, transparent 30%, rgba(10,10,10,0.6) 70%);
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
  padding-top: var(--header-height);
}

.hero-label {
  font-family: var(--font-accent);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  margin-bottom: 32px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.02em;
  margin-bottom: 32px;
  color: var(--color-text);
}

.hero-title-accent {
  color: var(--color-accent);
}

.hero-sub {
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 2;
  color: var(--color-text-secondary);
  margin-bottom: 48px;
  max-width: 600px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.hero-scroll span {
  font-family: var(--font-accent);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--color-text-muted);
}

.scroll-line {
  width: 1px;
  height: 60px;
  background: var(--color-border-light);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-accent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0% { top: -100%; }
  50% { top: 0; }
  100% { top: 100%; }
}

/* ---------- SECTIONS (COMMON) ---------- */
.section {
  padding: var(--section-padding) 0;
  position: relative;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
}

.section-number {
  font-family: var(--font-accent);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--color-accent);
}

.section-label {
  font-family: var(--font-accent);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  position: relative;
  padding-left: 16px;
}

.section-label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 8px;
  height: 1px;
  background: var(--color-text-muted);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.02em;
  margin-bottom: 24px;
}

.section-title-accent {
  font-style: normal;
  color: var(--color-accent);
}

.section-subtitle {
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 2;
  color: var(--color-text-secondary);
  margin-bottom: 64px;
}

/* ---------- ABOUT ---------- */
.section-about {
  background: var(--color-bg);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-bottom: 80px;
}

.section-about .about-text .section-title {
  font-size: clamp(1.45rem, 2.6vw, 2.35rem);
}

.about-lead {
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 2;
  color: var(--color-text);
  margin-bottom: 24px;
}

.about-body {
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 2;
  color: var(--color-text-secondary);
}

.about-image-wrapper {
  position: relative;
}

.about-image {
  width: 100%;
  padding-bottom: 120%;
  background-size: cover;
  background-position: center;
  filter: brightness(0.8);
}

.about-image-accent {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 100%;
  height: 100%;
  border: 1px solid var(--color-accent);
  opacity: 0.3;
  z-index: -1;
}

.about-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  padding-top: 60px;
  border-top: 1px solid var(--color-border);
}

.value-item {
  padding: 32px;
}

.value-number {
  font-family: var(--font-accent);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--color-accent);
  display: block;
  margin-bottom: 16px;
}

.value-title {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 12px;
}

.value-text {
  font-size: 0.85rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--color-text-secondary);
}

/* ---------- STRENGTHS ---------- */
.section-strengths {
  background: var(--color-bg-alt);
}

.strengths-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.strength-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  padding: 40px 32px;
  transition: var(--transition);
}

.strength-card:hover {
  background: var(--color-bg-card-hover);
  border-color: var(--color-accent);
  transform: translateY(-4px);
}

.strength-icon {
  width: 48px;
  height: 48px;
  color: var(--color-accent);
  margin-bottom: 24px;
}

.strength-icon svg {
  width: 100%;
  height: 100%;
}

.strength-title {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 16px;
  line-height: 1.5;
}

.strength-text {
  font-size: 0.85rem;
  font-weight: 300;
  line-height: 1.9;
  color: var(--color-text-secondary);
}

/* ---------- SERVICES ---------- */
.section-services {
  background: var(--color-bg);
}

.service-block {
  display: flex;
  gap: 48px;
  padding: 60px 0;
  border-bottom: 1px solid var(--color-border);
}

.service-block:first-of-type {
  border-top: 1px solid var(--color-border);
}

.service-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 300;
  color: var(--color-accent);
  opacity: 0.5;
  min-width: 80px;
  line-height: 1;
}

.service-content {
  flex: 1;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.tag {
  font-family: var(--font-accent);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 4px 12px;
  border: 1px solid var(--color-border-light);
  color: var(--color-text-secondary);
}

.service-title {
  font-family: var(--font-body);
  font-size: 1.4rem;
  font-weight: 500;
  margin-bottom: 20px;
  line-height: 1.5;
}

.service-title-sub {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--color-text-secondary);
}

.service-text {
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 2;
  color: var(--color-text-secondary);
  margin-bottom: 32px;
}

.service-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.service-detail-item h4 {
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 16px;
  color: var(--color-accent);
  letter-spacing: 0.05em;
}

.service-detail-item ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-detail-item li {
  font-size: 0.85rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--color-text-secondary);
  padding-left: 16px;
  position: relative;
}

.service-detail-item li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 1px;
  background: var(--color-accent);
}

/* ---------- CONCERNS ---------- */
.section-concerns {
  background: var(--color-bg-alt);
}

.concerns-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 60px;
}

.concern-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 32px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  transition: var(--transition);
}

.concern-card:hover {
  border-color: var(--color-accent);
  transform: translateX(4px);
}

.concern-icon {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--color-accent);
  min-width: 32px;
  line-height: 1;
  padding-top: 2px;
}

.concern-text {
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-text-secondary);
}

.concerns-cta {
  text-align: center;
}

.concerns-cta-text {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  margin-bottom: 32px;
}

/* ---------- FLOW ---------- */
.section-flow {
  background: var(--color-bg);
}

.flow-timeline {
  position: relative;
  padding-left: 40px;
}

.flow-timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--color-border);
}

.flow-step {
  position: relative;
  padding: 0 0 60px 40px;
}

.flow-step:last-child {
  padding-bottom: 0;
}

.flow-step::before {
  content: '';
  position: absolute;
  left: -40px;
  top: 8px;
  width: 9px;
  height: 9px;
  background: var(--color-accent);
  border-radius: 50%;
  transform: translateX(-4px);
}

.flow-step-number {
  font-family: var(--font-accent);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--color-accent);
  margin-bottom: 12px;
}

.flow-step-title {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 12px;
}

.flow-step-text {
  font-size: 0.85rem;
  font-weight: 300;
  line-height: 1.9;
  color: var(--color-text-secondary);
  max-width: 600px;
}

/* ---------- MESSAGE ---------- */
.section-message {
  background: var(--color-bg-alt);
}

.message-content {
  max-width: 800px;
}

.message-name {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 32px;
}

.message-position {
  font-family: var(--font-accent);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
}

.message-fullname {
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-weight: 500;
}

.message-body p {
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 2.2;
  color: var(--color-text-secondary);
  margin-bottom: 24px;
}

.message-body p:last-child {
  margin-bottom: 0;
}

/* ---------- COMPANY ---------- */
.section-company {
  background: var(--color-bg);
}

.company-table-wrapper {
  max-width: 800px;
}

.company-table {
  width: 100%;
  border-collapse: collapse;
}

.company-table tr {
  border-bottom: 1px solid var(--color-border);
}

.company-table th,
.company-table td {
  padding: 24px 0;
  font-size: 0.9rem;
  font-weight: 300;
  vertical-align: top;
  text-align: left;
}

.company-table th {
  font-weight: 500;
  color: var(--color-text-secondary);
  width: 160px;
  padding-right: 40px;
}

.company-table td {
  color: var(--color-text);
}

.company-table td a {
  color: var(--color-accent);
  word-break: break-all;
}

.company-table td a:hover {
  text-decoration: underline;
}

/* ---------- FAQ ---------- */
.section-faq {
  background: var(--color-bg-alt);
}

.faq-list {
  max-width: 800px;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
  font-size: 0.95rem;
  font-weight: 400;
  text-align: left;
  color: var(--color-text);
  transition: var(--transition);
  gap: 24px;
}

.faq-question:hover {
  color: var(--color-accent);
}

.faq-icon {
  position: relative;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background: var(--color-text-secondary);
  transition: var(--transition);
}

.faq-icon::before {
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  transform: translateY(-50%);
}

.faq-icon::after {
  top: 0;
  left: 50%;
  width: 1px;
  height: 100%;
  transform: translateX(-50%);
}

.faq-item.active .faq-icon::after {
  transform: translateX(-50%) rotate(90deg);
  opacity: 0;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-answer p {
  padding: 0 0 28px 0;
  font-size: 0.85rem;
  font-weight: 300;
  line-height: 2;
  color: var(--color-text-secondary);
}

/* ---------- CONTACT ---------- */
.section-contact {
  background: var(--color-bg);
}

.contact-cta {
  max-width: 400px;
  margin: 0 auto;
}

/* ---------- FOOTER ---------- */
.footer {
  padding: 60px 0 40px;
  border-top: 1px solid var(--color-border);
  background: var(--color-bg);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 40px;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.footer-tagline {
  font-size: 0.75rem;
  font-weight: 300;
  color: var(--color-text-muted);
  margin-top: 8px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-nav a {
  font-family: var(--font-accent);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  transition: var(--transition);
}

.footer-nav a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
}

.copyright {
  font-size: 0.72rem;
  font-weight: 300;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  :root {
    --section-padding: 80px;
  }

  .container {
    padding: 0 24px;
  }

  .nav {
    display: none;
  }

  .header-cta {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .section-about .about-text .section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  }

  .about-values {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .strengths-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-details {
    grid-template-columns: 1fr;
    gap: 24px;
  }

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

  .footer-inner {
    flex-direction: column;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 64px;
    --header-height: 64px;
  }

  .pc-only {
    display: none;
  }

  .sp-only {
    display: inline;
  }

  .header-inner {
    padding: 0 20px;
  }

  .container {
    padding: 0 20px;
  }

  .hero-content {
    padding: 0 20px;
    padding-top: var(--header-height);
  }

  .hero-scroll {
    display: none;
  }

  .section-header {
    margin-bottom: 32px;
  }

  .section-subtitle {
    margin-bottom: 40px;
  }

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

  .service-block {
    flex-direction: column;
    gap: 16px;
    padding: 40px 0;
  }

  .service-number {
    font-size: 2rem;
  }

  .flow-timeline {
    padding-left: 24px;
  }

  .flow-step {
    padding-left: 24px;
    padding-bottom: 40px;
  }

  .flow-step::before {
    left: -24px;
  }

  .footer-nav {
    flex-direction: column;
    gap: 16px;
  }
}
