/*
 * NUET Inc. — Main Stylesheet
 * Version: 1.0
 */

/* ================================================
   CSS Custom Properties
   ================================================ */
:root {
  --primary:       #1B3A6B;
  --primary-dark:  #122750;
  --accent:        #2563EB;
  --accent-light:  #EFF6FF;
  --text:          #111827;
  --text-sub:      #4B5563;
  --text-muted:    #9CA3AF;
  --bg:            #FFFFFF;
  --bg-alt:        #F8FAFC;
  --bg-dark:       #0F1F3D;
  --border:        #E5E7EB;
  --shadow-sm:     0 1px 3px rgba(0,0,0,.07);
  --shadow-md:     0 4px 16px rgba(0,0,0,.10);
  --radius:        8px;
  --radius-lg:     12px;
  --max-w:         1100px;
  --header-h:      68px;
  --ease:          0.2s ease;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic Medium', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img  { max-width: 100%; height: auto; display: block; }
a    { color: var(--accent); text-decoration: none; transition: color var(--ease); }
a:hover { color: var(--primary); }
ul   { list-style: none; }

/* ================================================
   Typography
   ================================================ */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.3; color: var(--text); }
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem);   }
h3 { font-size: clamp(1.05rem, 2.5vw, 1.35rem); }
p  { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ================================================
   Layout
   ================================================ */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.section        { padding: 80px 0; }
.section--alt   { background: var(--bg-alt); }

.section-label {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-title { margin-bottom: 14px; }
.section-desc  { color: var(--text-sub); font-size: 1.02rem; max-width: 600px; }

/* ================================================
   Header & Navigation
   ================================================ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: box-shadow var(--ease);
}
.header.scrolled { box-shadow: var(--shadow-sm); }

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

.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.header__logo img { height: 36px; width: auto; }

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

.nav__link {
  font-size: .9rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: color var(--ease);
  position: relative;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform var(--ease);
}
.nav__link:hover,
.nav__link.active { color: var(--accent); }
.nav__link:hover::after,
.nav__link.active::after { transform: scaleX(1); }

.nav__cta {
  background: var(--primary);
  color: #fff !important;
  padding: 9px 20px;
  border-radius: var(--radius);
  font-size: .875rem;
  font-weight: 600;
}
.nav__cta::after { display: none; }
.nav__cta:hover  { background: var(--primary-dark); color: #fff !important; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  transition: all var(--ease);
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* Mobile Nav Drawer */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-h); left: 0; right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 8px 24px 16px;
  z-index: 999;
  box-shadow: var(--shadow-md);
}
.mobile-nav.open { display: block; }
.mobile-nav__link {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: .95rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
}
.mobile-nav__link:last-child { border-bottom: none; }

/* Page offset */
.page-top { padding-top: var(--header-h); }

/* ================================================
   Hero (トップページ)
   ================================================ */
.hero {
  background: linear-gradient(135deg, #0F1F3D 0%, #1B3A6B 55%, #1e4585 100%);
  color: #fff;
  padding: 100px 0 90px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -40%; right: -10%;
  width: 640px; height: 640px;
  background: radial-gradient(circle, rgba(37,99,235,.14) 0%, transparent 70%);
  pointer-events: none;
}
.hero__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.hero__tag {
  display: inline-block;
  background: rgba(37,99,235,.2);
  border: 1px solid rgba(37,99,235,.4);
  color: #93C5FD;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 24px;
}
.hero__title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 24px;
  letter-spacing: -.01em;
}
.hero__title em { font-style: normal; color: #93C5FD; }
.hero__desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,.75);
  max-width: 580px;
  line-height: 1.85;
  margin-bottom: 40px;
}
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--ease);
  border: none;
  text-decoration: none;
  font-family: inherit;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover {
  background: #1d4ed8;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37,99,235,.35);
}
.btn--outline {
  background: transparent;
  color: rgba(255,255,255,.85);
  border: 1.5px solid rgba(255,255,255,.3);
}
.btn--outline:hover {
  background: rgba(255,255,255,.08);
  color: #fff;
  border-color: rgba(255,255,255,.55);
}
.btn--dark {
  background: var(--primary);
  color: #fff;
}
.btn--dark:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(27,58,107,.35);
}

/* ================================================
   Services Grid (top page)
   ================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.service-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all var(--ease);
}
.service-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.service-card__icon {
  width: 48px; height: 48px;
  background: var(--accent-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.service-card__icon svg { width: 24px; height: 24px; }
.service-card__title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}
.service-card__desc {
  font-size: .875rem;
  color: var(--text-sub);
  line-height: 1.75;
  margin: 0;
}

/* ================================================
   Page Hero (内部ページ共通)
   ================================================ */
.page-hero {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding: 56px 0 48px;
}
.page-hero__label {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.page-hero__title  { font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin-bottom: 12px; }
.page-hero__desc   { color: var(--text-sub); font-size: 1rem; max-width: 600px; }

/* ================================================
   About (top page brief)
   ================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-grid .section-desc { max-width: none; margin-bottom: 28px; }
.about-features { display: flex; flex-direction: column; gap: 14px; margin-top: 24px; }
.about-feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: .9rem;
  color: var(--text-sub);
}
.about-feature__dot {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 6px;
}
.about-visual {
  background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid #BFDBFE;
}
.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.stat {
  background: #fff;
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid #BFDBFE;
}
.stat__num {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 4px;
}
.stat__label { font-size: .8rem; color: var(--text-muted); }

/* ================================================
   CTA Section
   ================================================ */
.cta-section {
  background: linear-gradient(135deg, #0F1F3D 0%, #1B3A6B 100%);
  color: #fff;
  text-align: center;
  padding: 80px 0;
}
.cta-section h2  { color: #fff; margin-bottom: 16px; }
.cta-section p   { color: rgba(255,255,255,.7); margin-bottom: 36px; font-size: 1rem; }
.cta-section .btn--primary { font-size: 1rem; padding: 14px 36px; }

/* ================================================
   Company Table
   ================================================ */
.company-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 40px;
}
.company-table th,
.company-table td {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
  font-size: .95rem;
  line-height: 1.75;
}
.company-table th {
  width: 200px;
  font-weight: 600;
  color: var(--primary);
  background: var(--bg-alt);
  white-space: nowrap;
}
.company-table tr:first-child th,
.company-table tr:first-child td { border-top: 1px solid var(--border); }
.company-table td ul { padding-left: 0; }
.company-table td li { padding-left: 1em; position: relative; }
.company-table td li::before {
  content: '・';
  position: absolute;
  left: 0;
}

/* ================================================
   Services Detail Page
   ================================================ */
.service-section {
  padding: 60px 0;
  border-bottom: 1px solid var(--border);
}
.service-section:last-child { border-bottom: none; }
.service-section__inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  align-items: start;
}
.service-section__num {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--accent);
  margin-bottom: 8px;
}
.service-section__icon {
  width: 56px; height: 56px;
  background: var(--accent-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.service-section__icon svg { width: 28px; height: 28px; }
.service-section__title { font-size: 1.35rem; margin-bottom: 0; }
.service-section__desc {
  color: var(--text-sub);
  line-height: 1.85;
  margin-bottom: 24px;
}
.service-section__points { display: flex; flex-direction: column; gap: 10px; }
.service-section__point {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .9rem;
  color: var(--text-sub);
}
.service-section__point::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ================================================
   Contact
   ================================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  margin-top: 48px;
  align-items: start;
}
.contact-info__block { margin-bottom: 32px; }
.contact-info__label {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.contact-info__value {
  font-size: .95rem;
  color: var(--text);
  font-weight: 500;
}
.contact-info__value a { color: var(--accent); }

/* Form */
.form { display: flex; flex-direction: column; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label {
  font-size: .875rem;
  font-weight: 600;
  color: var(--text);
}
.form-label span { color: #EF4444; margin-left: 4px; font-size: .8rem; }
.form-input,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: .95rem;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
  transition: border-color var(--ease), box-shadow var(--ease);
  outline: none;
}
.form-input:focus,
.form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}
.form-textarea  { resize: vertical; min-height: 160px; }
.form-note      { font-size: .8rem; color: var(--text-muted); margin: 0; }
.form-submit {
  align-self: flex-start;
  background: var(--primary);
  color: #fff;
  padding: 13px 32px;
  border-radius: var(--radius);
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: all var(--ease);
}
.form-submit:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(27,58,107,.3);
}

/* ================================================
   Notice Page
   ================================================ */
.notice-box {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: 48px;
  margin-top: 40px;
  max-width: 760px;
}
.notice-box__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.notice-box__text { font-size: .95rem; line-height: 2; color: var(--text); }
.notice-box__meta {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: .85rem;
  color: var(--text-muted);
  line-height: 2;
}

.notice-none {
  margin-top: 40px;
  padding: 40px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  max-width: 760px;
  color: var(--text-sub);
  font-size: .95rem;
}

/* ================================================
   Footer
   ================================================ */
.footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,.6);
  padding: 56px 0 32px;
}
.footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer__logo img {
  height: 30px;
  width: auto;
  margin-bottom: 16px;
  filter: brightness(0) invert(1);
  opacity: .85;
}
.footer__tagline { font-size: .875rem; line-height: 1.7; margin: 0; }
.footer__heading {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  margin-bottom: 16px;
}
.footer__links { display: flex; flex-direction: column; gap: 10px; }
.footer__link {
  font-size: .875rem;
  color: rgba(255,255,255,.6);
  text-decoration: none;
  transition: color var(--ease);
}
.footer__link:hover { color: #fff; }
.footer__bottom {
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .8rem;
  color: rgba(255,255,255,.3);
}
.footer__bottom-links { display: flex; gap: 20px; }
.footer__bottom-links a {
  color: rgba(255,255,255,.3);
  text-decoration: none;
  font-size: .8rem;
  transition: color var(--ease);
}
.footer__bottom-links a:hover { color: rgba(255,255,255,.7); }

/* ================================================
   Focus / Accessibility
   ================================================ */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ================================================
   Responsive
   ================================================ */
@media (max-width: 900px) {
  .service-section__inner { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 768px) {
  .section { padding: 56px 0; }
  .nav      { display: none; }
  .hamburger { display: flex; }

  .about-grid        { grid-template-columns: 1fr; gap: 40px; }
  .contact-layout    { grid-template-columns: 1fr; gap: 40px; }
  .footer__top       { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom    { flex-direction: column; gap: 12px; text-align: center; }
  .company-table th  { width: 120px; font-size: .85rem; }
  .notice-box        { padding: 28px; }
  .hero              { padding: 72px 0 60px; }
}

@media (max-width: 480px) {
  .company-table { display: block; overflow-x: auto; }
  .stat-grid     { grid-template-columns: 1fr 1fr; }
  .hero__actions { flex-direction: column; }
  .btn           { width: 100%; justify-content: center; }
}
