/* ============================================
   Creer Corporate Site v2 - Shared Styles
   ============================================ */

:root {
  --navy: #0f2340;
  --navy-light: #1a3557;
  --navy-mid: #1e3f6a;
  --teal: #1a6b8a;
  --teal-light: #2490b5;
  --teal-pale: #e8f4f8;
  --accent: #2490b5;
  --white: #ffffff;
  --off-white: #f8f9fb;
  --gray-50: #f4f5f7;
  --gray-100: #e8eaed;
  --gray-200: #d1d5db;
  --gray-400: #9ca3af;
  --gray-600: #6b7280;
  --gray-800: #374151;
  --text-main: #1a2332;
  --text-sub: #4b5563;
  --text-light: #6b7280;
  --border: #e2e6ea;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.1);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --transition: 0.22s ease;
  --font-main: 'Noto Sans JP', 'Yu Gothic', 'Hiragino Sans', sans-serif;
  --font-en: 'DM Sans', sans-serif;
}

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

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

body {
  font-family: var(--font-main);
  color: var(--text-main);
  background: var(--white);
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ---- TYPOGRAPHY ---- */
.en { font-family: var(--font-en); }

/* ---- LAYOUT ---- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
}

.container-narrow {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 40px;
}

section { padding: 100px 0; }
section.alt { background: var(--off-white); }

/* ---- HEADER ---- */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: box-shadow var(--transition);
}

#header.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-img {
  height: 36px;
  width: auto;
  display: block;
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.logo-name {
  font-family: var(--font-en);
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1;
}

.logo-name span { color: var(--teal-light); }

.logo-sub {
  font-size: 10px;
  color: var(--gray-400);
  letter-spacing: 0.08em;
  font-weight: 400;
}

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

.nav-links a {
  font-size: 13px;
  color: var(--text-sub);
  padding: 6px 13px;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  font-weight: 400;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--navy);
  background: var(--gray-50);
}

.nav-contact-btn {
  margin-left: 10px;
  padding: 8px 20px !important;
  background: var(--navy) !important;
  color: var(--white) !important;
  border-radius: var(--radius-sm) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  transition: background var(--transition), transform var(--transition) !important;
}

.nav-contact-btn:hover {
  background: var(--navy-light) !important;
  color: var(--white) !important;
  transform: translateY(-1px);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: var(--transition);
}

.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 999;
  flex-direction: column;
  padding: 100px 40px 40px;
}

.mobile-nav.open { display: flex; }

.mobile-nav a {
  font-size: 18px;
  color: var(--text-main);
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  font-weight: 400;
  transition: color var(--transition);
}

.mobile-nav a:hover { color: var(--teal-light); }

.mobile-nav a:last-child {
  border-bottom: none;
  margin-top: 20px;
  background: var(--navy);
  color: white;
  text-align: center;
  padding: 16px;
  border-radius: var(--radius-sm);
}

/* ---- PAGE HERO ---- */
.page-hero {
  padding-top: 70px;
  padding-bottom: 72px;
  min-height: 260px;
  background: #1e2533;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: 0;
}

.page-hero::after {
  content: '';
  position: absolute;
  right: -80px;
  top: 50%;
  transform: translateY(-50%);
  width: 320px;
  height: 320px;
  border-radius: 50%;
  border: 1px solid rgba(55,138,221,0.18);
  pointer-events: none;
  z-index: 0;
}

.page-hero-inner-ring {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 1px solid rgba(55,138,221,0.1);
  pointer-events: none;
  z-index: 0;
}

.page-hero .container {
  position: relative;
  z-index: 1;
  padding-top: 64px;
}

.page-hero-label {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: #378ADD;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-hero-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: #378ADD;
}

.page-hero-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.4;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}

.page-hero-desc {
  font-size: 16px;
  color: rgba(255,255,255,0.62);
  max-width: 600px;
  line-height: 1.9;
  font-weight: 300;
}


/* ---- SECTION HEADER ---- */
.section-header { margin-bottom: 60px; }

.section-label {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--teal-light);
  text-transform: uppercase;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--teal-light);
  border-radius: 2px;
}

.section-title {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.5;
  letter-spacing: 0.02em;
  margin-bottom: 18px;
}

.section-desc {
  font-size: 16px;
  color: var(--text-sub);
  line-height: 2;
  max-width: 640px;
  font-weight: 400;
}

/* ---- CARDS ---- */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: rgba(36,144,181,0.3);
}

.card-icon {
  width: 46px; height: 46px;
  background: var(--teal-pale);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: background var(--transition);
}

.card:hover .card-icon { background: rgba(36,144,181,0.15); }

.card-icon svg { width: 22px; height: 22px; color: var(--teal); }

.card-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}

.card-text {
  font-size: 15px;
  color: var(--text-sub);
  line-height: 1.9;
  font-weight: 400;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  border: none;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--navy-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(15,35,64,0.28);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.4);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.7);
}

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

.btn-outline-dark:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-arrow::after {
  content: '→';
  font-size: 16px;
  transition: transform var(--transition);
}

.btn-arrow:hover::after { transform: translateX(4px); }

/* ---- BREADCRUMB ---- */
.breadcrumb {
  padding: 16px 0;
  background: var(--off-white);
  border-bottom: 1px solid var(--border);
}

.breadcrumb-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-light);
}

.breadcrumb-inner a {
  color: var(--text-light);
  transition: color var(--transition);
}

.breadcrumb-inner a:hover { color: var(--teal); }
.breadcrumb-inner .sep { color: var(--gray-200); }

/* ---- FOOTER ---- */
#footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 68px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 52px;
}

.footer-brand .logo-name { color: var(--white); font-size: 20px; }

.footer-desc {
  font-size: 13px;
  line-height: 2;
  margin-top: 14px;
  color: rgba(255,255,255,0.45);
  font-weight: 300;
}

.footer-addr {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  margin-top: 10px;
  line-height: 1.8;
}

.footer-col-title {
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.18em;
  font-weight: 600;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  margin-bottom: 18px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  transition: color var(--transition);
  font-weight: 300;
}

.footer-links a:hover { color: var(--white); }

.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,0.28);
  font-weight: 300;
}

.footer-copy-link {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  transition: color var(--transition);
}

.footer-copy-link:hover { color: var(--white); }

/* ---- NEWS LIST ---- */
.news-list { display: flex; flex-direction: column; }

.news-item {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

.news-item:first-child { border-top: 1px solid var(--border); }

.news-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  min-width: 200px;
}

.news-date {
  font-family: var(--font-en);
  font-size: 13px;
  color: var(--text-light);
  letter-spacing: 0.04em;
}

.news-title {
  font-size: 16px;
  color: var(--text-main);
  font-weight: 400;
  line-height: 1.7;
  flex: 1;
}

/* ---- TABLE ---- */
.info-table {
  width: 100%;
  border-collapse: collapse;
}

.info-table th, .info-table td {
  padding: 20px 24px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  line-height: 1.8;
}

.info-table th {
  width: 200px;
  color: var(--text-light);
  font-weight: 500;
  background: var(--off-white);
  vertical-align: top;
}

.info-table td {
  color: var(--text-main);
  font-weight: 400;
}

/* ---- TAG / BADGE ---- */
.tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--teal-pale);
  color: var(--teal);
  font-size: 12px;
  border-radius: 2px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

/* ---- CERTIFICATION GRID ---- */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.cert-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}

.cert-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: rgba(36,144,181,0.25);
}

.cert-item-logo {
  height: 52px;
  display: flex;
  align-items: center;
}

.cert-item-logo img {
  max-height: 52px;
  width: auto;
  object-fit: contain;
}

.cert-item-body {}

.cert-item-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
  line-height: 1.5;
}

.cert-item-num {
  font-family: var(--font-en);
  font-size: 12px;
  color: var(--text-light);
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.cert-item-desc {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.85;
}

.cert-item-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--teal);
  font-weight: 500;
  margin-top: 4px;
  transition: color var(--transition);
}

.cert-item-link:hover { color: var(--teal-light); }
.cert-item-link::after { content: ' →'; }

/* ---- CONTACT FORM ---- */
.form-group { margin-bottom: 28px; }

.form-label {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-main);
  margin-bottom: 8px;
}

.form-required {
  display: inline-block;
  margin-left: 6px;
  font-size: 11px;
  color: #e53e3e;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-family: var(--font-main);
  color: var(--text-main);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-control:focus {
  border-color: var(--teal-light);
  box-shadow: 0 0 0 3px rgba(36,144,181,0.12);
}

textarea.form-control {
  min-height: 168px;
  resize: vertical;
}

/* ---- ANIMATIONS ---- */
.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-up-delay-1 { transition-delay: 0.1s; }
.fade-up-delay-2 { transition-delay: 0.2s; }
.fade-up-delay-3 { transition-delay: 0.3s; }
.fade-up-delay-4 { transition-delay: 0.4s; }
.fade-up-delay-5 { transition-delay: 0.5s; }

/* line reveal */
.line-reveal {
  overflow: hidden;
}

.line-reveal span {
  display: block;
  transform: translateY(100%);
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.line-reveal.visible span {
  transform: translateY(0);
}

/* ---- GRID HELPERS ---- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ---- CTA BANNER ---- */
.cta-banner {
  background: var(--off-white);
  border-top: 1px solid var(--border);
  padding: 88px 0;
  text-align: center;
}

.cta-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

.cta-desc {
  font-size: 16px;
  color: var(--text-sub);
  margin-bottom: 36px;
  line-height: 1.9;
}

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

/* ---- RESPONSIVE ---- */
@media (max-width: 960px) {
  .container, .container-narrow { padding: 0 24px; }
  .header-inner { padding: 0 24px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  section { padding: 72px 0; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .news-item { flex-direction: column; gap: 8px; }
  .news-meta { min-width: auto; }
  .info-table th { width: 120px; font-size: 13px; }
  .info-table td { font-size: 13px; }
  section { padding: 56px 0; }
}
