:root {
  --ink:#0f172a; --muted:#64748b; --bg:#f8fafc; --card:#ffffff;
  --brand:#0b5fb3; --brand-700:#0a4d91; --brand-500:#1d7fd4; --border:#e2e8f0;
  --accent:#06b6d4; --accent-dark:#0891b2;
  --gradient-1: linear-gradient(135deg, #1d7fd4 0%, #06b6d4 100%);
  --gradient-2: linear-gradient(135deg, #3b82f6 0%, #0ea5e9 100%);
  --gradient-3: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%);
  --gradient-vibrant: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 50%, #0891b2 100%);
  --container:1200px; --content:900px;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
  --shadow-neon: 0 0 20px rgba(14, 165, 233, 0.4), 0 0 40px rgba(6, 182, 212, 0.2);
  --radius: 24px;
  --radius-sm: 16px;
  --blur-glass: blur(16px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0; color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(120, 119, 198, 0.12), transparent),
    radial-gradient(circle at 10% 80%, rgba(79, 172, 254, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 90% 20%, rgba(250, 112, 154, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 50% 100%, rgba(102, 126, 234, 0.04) 0%, transparent 60%),
    linear-gradient(180deg, #fcfdff 0%, #ffffff 40%, #fafcff 100%);
  background-attachment: fixed;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,"Noto Sans JP",sans-serif;
  line-height:1.75;
  font-size: 16px;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  position: relative;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

@media (prefers-color-scheme: dark) {
  body {
    background:
      radial-gradient(ellipse 80% 50% at 50% -20%, rgba(120, 119, 198, 0.2), transparent),
      radial-gradient(circle at 10% 80%, rgba(79, 172, 254, 0.1) 0%, transparent 50%),
      radial-gradient(circle at 90% 20%, rgba(250, 112, 154, 0.08) 0%, transparent 50%),
      linear-gradient(180deg, #1a1a2e 0%, #16213e 40%, #0f1419 100%);
    color: #e0e0e0;
  }
}

body::before {
  content: '';
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(102, 126, 234, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 0;
}

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

table {
  max-width: 100%;
  overflow-x: auto;
  display: block;
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }
  
  table {
    font-size: 0.9rem;
  }
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; width: 100%; box-sizing: border-box; }

main { width: 100%; max-width: 100%; overflow-x: hidden; }

/* ================= ヘッダー ================= */
.site-header {
  position: sticky; top: 0; z-index: 90;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.header-inner {
  display:flex; align-items:center; gap:20px;
  padding:20px 32px;
  background: linear-gradient(135deg, #0b5fb3 0%, #1d7fd4 50%, #0ea5e9 100%);
  color:#fff;
  box-shadow: 
    0 8px 32px rgba(102, 126, 234, 0.3),
    0 2px 8px rgba(0, 0, 0, 0.1),
    inset 0 -1px 0 rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.header-inner::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  animation: shimmer 3s infinite;
}

.header-inner::after {
  content: '';
  position: absolute;
  bottom: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  animation: float 8s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-20px, 20px) rotate(5deg); }
}
.header-inner a, .header-inner a:visited { color:#fff !important; text-decoration:none; transition: all 0.2s ease; }
.header-inner a:hover, .header-inner a:focus { color:#fff !important; text-decoration:underline; text-underline-offset:3px; text-decoration-color:rgba(255,255,255,.8); transform: translateY(-1px); }
.brand-name { color:#fff; text-decoration:none; font-weight:900; font-size:24px; letter-spacing: -0.02em; text-shadow: 0 2px 8px rgba(0,0,0,0.2); }
.brand-tag { margin:6px 0 0; color:#e0f2fe; font-size:13px; font-weight: 500; line-height: 1.4; opacity: 0.95; }
.contact { margin-left:auto; text-align:right; }
.contact .tel { margin:0; font-weight:800; font-size: 18px; letter-spacing: 0.02em; }
.contact .addr { margin:4px 0 0; color:#e0f2fe; font-size:12px; opacity: 0.9; }

/* ================= ナビゲーション ================= */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  background: rgba(255,255,255,.75);
  border-bottom: 1px solid rgba(226,232,240,0.8);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.site-nav .nav-toggle {
  display:none; align-items:center; gap:10px;
  margin:12px auto; padding:12px 20px;
  border-radius:999px; border:none;
  background: linear-gradient(135deg, #1e40af, #0ea5e9);
  color:#fff; font-weight:800; cursor:pointer;
  box-shadow: var(--shadow-md);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.site-nav .nav-toggle:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.site-nav .nav-toggle .icon {
  font-size: 20px;
}
.site-nav ul {
  list-style:none; margin:0 auto; max-width:var(--container);
  display:flex; flex-wrap:wrap; justify-content:center; gap:8px 12px;
  padding:12px 24px; background:transparent; border:none;
}
.site-nav a {
  display:block; padding:12px 18px; border-radius:999px;
  color: var(--brand-700); font-weight:700; text-decoration:none;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  font-size: 17px;
  overflow: hidden;
}

.site-nav a::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.15), rgba(79, 172, 254, 0.15));
  opacity: 0;
  transition: opacity 0.3s ease;
  transform: scale(0.8);
}

.site-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #1d7fd4, #0ea5e9);
  transform: translateX(-50%);
  transition: width 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  border-radius: 999px;
  box-shadow: 0 0 10px rgba(14, 165, 233, 0.5);
}

.site-nav a:hover {
  background: linear-gradient(135deg, rgba(29, 127, 212, 0.1), rgba(14, 165, 233, 0.1));
  transform:translateY(-3px);
  box-shadow: 
    0 6px 20px rgba(29, 127, 212, 0.2),
    0 0 20px rgba(14, 165, 233, 0.1);
  color: var(--brand-500);
}

.site-nav a:hover::before {
  opacity: 1;
  transform: scale(1);
}

.site-nav a:hover::after {
  width: 80%;
}

.site-nav a:active {
  transform: translateY(-1px) scale(0.98);
}

/* ================= 各ページ用スタイル ================= */
main { padding:16px 0; }
main > section { max-width:var(--content); margin:auto; }
.hero { border-radius:var(--radius); overflow:hidden; box-shadow: var(--shadow-xl); margin-bottom:16px; }
.hero img { width:100%; height:auto; max-height:500px; object-fit:cover; }

/* Hero slider */
.hero-slider{ 
  position:relative; 
  border-radius: 0;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
  overflow: hidden;
  max-width: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
.hero-slider .slides{ 
  position:relative; 
  height: clamp(240px, 40vh, 500px);
  border-radius: 0;
  overflow: hidden;
}
.hero-slider .slide{ 
  position:absolute; inset:0; margin:0; opacity:0; 
  transition: opacity 1200ms cubic-bezier(0.4, 0, 0.2, 1);
}
.hero-slider .slide img,
.hero-slider .slide video { 
  width:100%; height:100%; object-fit:cover; display:block;
  filter: brightness(0.95) contrast(1.05);
}
.hero-slider .slide video {
  pointer-events: none;
  object-position: center 45%;
  transform: scale(1.15);
}
.hero-slider .slide.is-active{ opacity:1; }
.slide-caption{ 
  position:absolute; 
  left:50%; 
  top:50%; 
  transform: translate(-50%, -50%);
  padding:0; 
  border-radius:0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  color:#fff; 
  font-weight:900; 
  font-size: 32px; 
  letter-spacing:.05em;
  text-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.8),
    0 2px 6px rgba(0, 0, 0, 0.9),
    0 0 20px rgba(0, 0, 0, 0.5);
  border: none;
  box-shadow: none;
  animation: fadeInCaption 1s ease-out 0.5s both;
}

@keyframes fadeInCaption {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

.hero-slider .slide.is-active .slide-caption {
  animation: fadeInCaption 1s ease-out 0.5s both;
}

/* Home sections grid */
.home-sections{ 
  display:grid; 
  grid-template-columns: repeat(4, 1fr); 
  gap:12px; 
  margin: 8px auto 8px; 
  max-width: var(--container); 
  padding: 0 16px; 
}
.home-card{ 
  position:relative; display:flex; align-items:center; justify-content:flex-start; 
  flex-direction: row;
  gap:8px; padding:12px 20px; min-height:50px; border-radius:var(--radius); overflow:visible;
  background: transparent;
  box-shadow: none;
  text-decoration:none;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.home-card::before{ 
  content:""; position:absolute; inset:0; 
  background: transparent;
  transform: scale(1.08);
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), background 0.5s ease;
}

.home-card::after{ 
  content:""; position:absolute; inset:0; 
  background: transparent;
  transition: background 0.5s ease;
}

.home-card__icon {
  width: 56px; height: 56px;
  background-size: cover;
  background-position: center;
  border-radius: 50%; margin-right: 12px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  position: relative; z-index: 1;
  transition: none;
  flex-shrink: 0;
}

.home-card__title{ 
  position:relative; display:inline-block; white-space:nowrap; 
  color:#333; font-weight:900; letter-spacing:.05em; z-index:1; 
  margin:0; text-align:left; 
  text-shadow: 
    0 1px 2px rgba(255,255,255,.8), 
    0 -1px 1px rgba(0,0,0,.3),
    0 0 10px rgba(255, 255, 255, 0.5); 
  padding:6px 16px; line-height:1.3; font-size: 16px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  backdrop-filter: blur(8px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.4);
  transition: all 0.3s ease;
}

.home-card:hover{ 
  transform: none;
  box-shadow: none;
}

.home-card:hover::before {
  transform: scale(1.08);
  background: transparent;
}

.home-card:hover::after {
  background: transparent;
}

.home-card:hover .home-card__title {
  transform: none;
  background: rgba(29, 127, 212, 0.85);
  color: #ffffff;
  text-shadow: 
    0 1px 3px rgba(0,0,0,.5);
  border-color: rgba(29, 127, 212, 0.9);
}

/* Privacy page CTA */
.privacy-cta { text-align:center; margin: 40px 0; }
.btn-contact { display: inline-flex; align-items: center; gap: 12px; padding: 16px 32px; background: linear-gradient(135deg, var(--brand), var(--brand-500)); color: white; text-decoration: none; border-radius: 12px; font-size: 1.1rem; font-weight: 600; box-shadow: 0 8px 24px rgba(11, 95, 179, 0.3); transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.btn-contact-icon { font-size: 1.3rem; }

.hero-tagline { text-align: center; margin: 24px auto; max-width: 800px; font-size: clamp(16px, 3vw, 20px); font-weight: 500; color: #1e293b; }

/* Recruit CTA */
.apply-cta { margin-top: 40px; text-align: center; }
.apply-cta-title { font-size: 1.4rem; margin-bottom: 12px; }
.apply-cta-desc { margin-bottom: 24px; font-size: 1rem; }
.btn-apply { padding: 12px 22px; border-radius: 12px; background: var(--brand); color: white; display:inline-flex; gap:8px; align-items:center; font-weight:700; text-decoration:none; }

/* Utility: visually hidden (honeypot) */
.visually-hidden { position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }

/* Load error message */
.load-error { color: #b91c1c; }

/* Utility helpers used to replace inline styles */
.small-muted { color: #475569; font-size: 13px; }
.mt-1 { margin-top: 8px; }

@media (max-width:700px){
  .site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
  }
  
  .hero-slider .slides{ height: clamp(240px, 40vh, 400px); }
  .slide-caption { 
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    padding: 10px 16px; 
    font-size: 16px;
    text-align: center;
  }
}

/* Home sections: enforce 4-up / 2-up / 1-up layout */
@media (min-width: 901px){
  .home-sections{ grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 900px) and (min-width: 541px){
  .home-sections{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px){
  .home-sections{ 
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .home-card{ 
    min-height: 180px;
    align-items: center;
    justify-content: center;
    position: relative;
    background-size: cover;
    background-position: center;
  }
  .home-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 0;
  }
  .home-card:hover::before {
    background: rgba(0, 0, 0, 0.35);
  }
  .home-card__icon {
    display: none;
  }
  .home-card__title {
    display: block;
    margin: 0;
    font-size: 20px;
    padding: 10px 20px;
    position: relative;
    z-index: 1;
    text-shadow: 
      0 2px 8px rgba(0,0,0,.9), 
      0 1px 4px rgba(0,0,0,1);
  }
}

/* ===== Single-page dynamic sections on top ===== */
.sp-sections{ margin: 20px 0 40px; }
.sp-section{ max-width: var(--content); margin: 32px auto; padding: 0 0 8px 0; }
.sp-title{ margin: .2em 0 .4em; font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.6rem); text-align:left; cursor:pointer; position:relative; display:inline-flex; align-items:center; gap:.5em; }
.sp-title::before{ content:'\25B6'; display:inline-block; transform: rotate(0deg); transition: transform .3s ease, filter .3s ease; filter: drop-shadow(0 1px 0 rgba(0,0,0,.15)); }
.sp-title::after{ content:""; position:absolute; left:0; right:0; bottom:-6px; height:3px; border-radius:3px; background: linear-gradient(90deg, rgba(11,95,179,.0), rgba(11,95,179,.6), rgba(11,95,179,.0)); opacity:.6; transform: translateX(-30%); filter: blur(0.2px); transition: transform .6s ease; }
.sp-title:hover::after{ transform: translateX(0%); }
.sp-title[aria-expanded="true"]::after{ opacity:1; }
.sp-section.expanded .sp-title::before{ transform: rotate(90deg); }
.sp-content{ overflow:hidden; max-height:0; opacity:0; transform: translateY(6px); transition: max-height .5s ease, opacity .35s ease, transform .35s ease; will-change: max-height, opacity, transform; }
.sp-section.expanded .sp-content{ opacity:1; transform:none; }
.sp-content[aria-busy="true"]::before{
  content:""; display:block; height: 8px; border-radius:999px; background:linear-gradient(90deg, rgba(11,95,179,.2), rgba(11,95,179,.05), rgba(11,95,179,.2));
  animation: shimmer-content 1.2s linear infinite; background-size: 200% 100%;
}
@keyframes shimmer-content{ 0%{background-position:0% 50%} 100%{background-position:200% 50%} }

.sp-section .reveal{ opacity:0.5; }
.sp-section .reveal-visible{ opacity:1; transition:opacity .3s ease; }

/* Parallax helpers */
.parallax{ will-change: transform; }

/* Nav scrollspy */
.site-nav a.active{ background: rgba(11,95,179,.12); border:1px solid rgba(11,95,179,.28); border-radius:999px; }

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 200%; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
  .header-inner{ animation: none !important; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ================= 可読性のための行間・余白調整 ================= */
main p,
main li,
main dd { 
  line-height: 1.85; 
  margin-bottom: 1em;
  font-weight: 500;
  color: #1e293b;
}
main h1 { 
  line-height: 1.3; margin: 1.2em 0 0.6em; text-align:left;
  font-size: clamp(1.75rem, 2vw + 1rem, 2.5rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #1d7fd4 0%, #0ea5e9 50%, #06b6d4 100%);
  background-size: 200% 200%;
  animation: gradientShift 8s ease infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  display: inline-block;
}

main h1::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #1d7fd4, #0ea5e9);
  border-radius: 999px;
  opacity: 0.3;
  filter: blur(2px);
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
main h2 { 
  line-height: 1.35; margin: 1.4em 0 0.7em; text-align:left;
  font-size: clamp(1.5rem, 1.5vw + 0.75rem, 2rem);
  font-weight: 800;
  color: transparent;
  background: linear-gradient(135deg, #1d7fd4, #0ea5e9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.01em;
  position: relative;
  padding-left: 20px;
}

main h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 70%;
  background: linear-gradient(180deg, #1d7fd4, #0ea5e9);
  border-radius: 999px;
  box-shadow: 0 0 10px rgba(29, 127, 212, 0.5);
}

main h3 { 
  line-height: 1.4; margin: 1.2em 0 0.6em; text-align:left;
  font-size: clamp(1.25rem, 1.2vw + 0.5rem, 1.75rem);
  font-weight: 700;
  color: var(--brand-700);
  position: relative;
  padding-left: 16px;
}

main h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 60%;
  background: linear-gradient(180deg, #4facfe, #00f2fe);
  border-radius: 999px;
}
/* Indentation for lists to improve readability */
main ul, main ol{ 
  padding-left: 1.8em; 
  margin-top:.6em;
  font-weight: 500;
  color: #1e293b;
}
main li {
  margin: 0.4em 0;
  line-height: 1.7;
}
/* Extra indent when a list directly follows a heading */
main :is(h2,h3) + :is(ul,ol){ padding-left: 2.2em; }

/* Neutralize legacy center alignment inside main */
main :is(center, [align="center"], .align-center){ text-align:left !important; }

.callout {
  border:1px solid var(--border); border-radius: var(--radius-sm); padding:20px;
  background:rgba(255, 255, 255, 0.7); box-shadow: var(--shadow-lg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}
.callout:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-2px);
}
.callout.primary { 
  border-color: rgba(29,127,212,.3); 
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.85), rgba(240, 249, 255, 0.85)); 
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-width: 2px;
}
.chip { display:inline-block; padding:8px 14px; border:1px solid var(--border); border-radius:999px; background:var(--card); font-size: 14px; font-weight: 600; transition: all 0.2s ease; }
.chip:hover { background: var(--bg); transform: translateY(-1px); }
.chips { display:flex; flex-wrap:wrap; gap:10px; }

.features {
  display:grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap:20px;
}
.feature-card {
  border:1px solid var(--border); border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.9));
  backdrop-filter: blur(10px);
  padding:24px;
  box-shadow: 
    var(--shadow-md),
    0 0 0 1px rgba(102, 126, 234, 0.1);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(102, 126, 234, 0.1), transparent);
  transform: rotate(0deg);
  transition: transform 0.6s ease;
}

.feature-card:hover {
  box-shadow: 
    var(--shadow-xl),
    0 0 40px rgba(102, 126, 234, 0.2),
    0 0 0 1px rgba(102, 126, 234, 0.3);
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(102, 126, 234, 0.4);
}

.feature-card:hover::before {
  transform: rotate(180deg);
}

.feature-card h4 { 
  margin:.2em 0 .6em; 
  color: transparent;
  background: linear-gradient(135deg, #1d7fd4, #0ea5e9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 1.25rem;
  font-weight: 700;
}

/* Modifier: stack features vertically as full-width blocks */
.features--stack{ display:block; }
.features--stack .feature-card{ margin-bottom:20px; }

/* 会社概要用テーブル */
.company-table {
  width:100%; border-collapse:separate; border-spacing:0; margin:1.5em 0 2em;
  background:rgba(255, 255, 255, 0.7); border:1px solid var(--border); border-radius: var(--radius-sm);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.company-table th,
.company-table td {
  padding:16px 20px; border-bottom:1px solid rgba(226,232,240,0.6); line-height:1.75;
  text-align:left; vertical-align:top;
}
.company-table th {
  width:30%; 
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe); 
  font-weight:700; 
  color:var(--brand-700);
  font-size: 15px;
}
.company-table td {
  font-size: 15px;
}
.company-table tr:last-child th,
.company-table tr:last-child td { border-bottom:none; }
.company-table tr:first-child th {
  border-top-left-radius: var(--radius-sm);
}
.company-table tr:first-child td {
  border-top-right-radius: var(--radius-sm);
}

/* ================= 採用情報テーブル（recruit）================= */
.recruit-table{
  width:100%; border-collapse:separate; border-spacing:0;
  background:transparent; border:none;
}
.recruit-table th,
.recruit-table td{
  padding:12px 0; border:none; vertical-align:top; text-align:left; line-height:1.85;
}
.recruit-table th{
  width:14em; max-width:40%; white-space:nowrap; font-weight:800; color:var(--muted); padding-right:20px;
}
@media (max-width: 720px){
  .recruit-table, .recruit-table tbody, .recruit-table tr, .recruit-table th, .recruit-table td{ display:block; width:100%; }
  .recruit-table th{ padding-bottom:4px; }
  .recruit-table td{ padding-top:0; margin-bottom:14px; }
}

/* ================= フッター ================= */
.site-footer { 
  border-top:1px solid var(--border); 
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(248, 250, 252, 0.8)); 
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  margin-top: 60px;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.03);
}
.footer-inner { 
  padding:24px 0; 
  color: var(--muted); 
  font-size:14px;
  text-align: center;
}
.footer-inner p {
  margin: 8px 0;
}
.footer-inner a { 
  color: var(--brand); 
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}
.footer-inner a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* ================= モバイル対応 ================= */
@media (max-width:700px){
  .container{ padding: 0 12px; }
  main { padding: 16px 0; }
  main > section { padding: 0 4px; }
  
  /* モバイル時はリストのインデントを削減 */
  main ul, main ol { padding-left: 1.2em; }
  main h2 { padding-left: 12px; }
  main h3 { padding-left: 12px; }
  main p { padding: 0 8px; }

  .header-inner{ 
    padding: 12px 16px;
    flex-wrap: nowrap;
    gap: 8px;
    justify-content: space-between;
  }
  
  .header-inner::after {
    width: 300px;
    height: 300px;
  }
  
  .brand-name{ font-size: 18px; }
  .brand-tag{ 
    display: block;
    font-size: 11px;
    line-height: 1.3;
    margin-top: 4px;
  }
  .contact { 
    display: none;
  }

  .site-nav .nav-toggle{ 
    display:inline-flex;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    margin: 0;
    box-shadow: 
      0 8px 24px rgba(0, 0, 0, 0.2),
      0 4px 12px rgba(30, 64, 175, 0.4),
      0 0 0 1px rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
  }
  .site-nav ul{ 
    display:none; 
    padding: 0;
  }
  body.nav-open .site-nav ul{ 
    display:flex; 
    flex-direction: column;
    padding: 12px 16px; 
    gap: 8px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px) saturate(150%);
    animation: slideDown 0.3s ease-out;
    border-bottom: 1px solid rgba(102, 126, 234, 0.2);
  }
  .site-nav ul li{ margin:0; }
  .site-nav a{ 
    padding: 14px 16px; 
    border: 1px solid rgba(102, 126, 234, 0.2); 
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(248,250,252,0.5), rgba(241,245,249,0.5));
    color: #0f172a;
    font-size: 15px;
  }
  .site-nav a:hover,
  .site-nav a.active {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(79, 172, 254, 0.1));
    border-color: rgba(102, 126, 234, 0.4);
  }
  
  /* Disable complex animations on mobile */
  .home-card,
  .feature-card {
    animation: none !important;
  }
  
  /* Simplified hover effects for mobile */
  .home-card:active {
    transform: scale(0.98);
  }
  
  /* Hide cursor trail on mobile */
  .cursor-trail {
    display: none !important;
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Extra-small screens: even tighter gutters */
@media (max-width: 360px){
  .container{ padding: 0 12px; }
}

/* ================= タブレット（iPad mini 横向きも）================= */
@media (min-width: 701px) and (max-width: 900px){
  .container{ padding: 0 20px; }
  .header-inner{ padding:16px 24px; }
  .site-nav ul{ gap:8px 10px; padding:10px 20px; }
  .site-nav a{ padding:10px 14px; letter-spacing:.01em; }
}

/* ================= ダークモード ================= */
@media (prefers-color-scheme: dark){
  :root{
    --bg:#0b1220;
    --ink:#eaf2ff;
    --muted:#cbd5e1;
    --border:#334155;
    --card:#0f172a;
  }
  body { background:#0b1220; color: var(--ink); }
  .header-inner { background: linear-gradient(135deg, #0a4d91, #0b5fb3, #0891b2); background-size: 300% 300%; }
  .site-nav { background: rgba(15,23,42,.75); border-color:#243143; }
  .site-nav a { color:#dbeafe; }
  .site-footer{ background:#0d1424; border-top-color:#243143; }
  .footer-inner{ color:#cbd5e1; }

  /* Mobile navigation in dark mode */
  body.nav-open .site-nav ul {
    background: rgba(15, 23, 42, 0.95) !important;
    border-bottom-color: rgba(102, 126, 234, 0.3);
  }
  .site-nav a {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.6), rgba(30, 41, 59, 0.6)) !important;
    border-color: rgba(102, 126, 234, 0.3) !important;
    color: #dbeafe !important;
  }

  /* Cards / callouts / chips */
  .feature-card, .callout { background: var(--card); border-color: var(--border); color: var(--ink); }
  .callout.primary, .callout.accent { background: var(--card) !important; border-color: var(--border) !important; color: var(--ink) !important; }
  .chip { background: var(--card); border-color: var(--border); color: var(--ink); }
  
  .home-card {
    background: rgba(15, 23, 42, 0.8);
    border-color: rgba(102, 126, 234, 0.3);
  }
  
  .home-card__title {
    color: #e0e0e0;
  }

  /* Tables */
  .company-table { background: rgba(15, 23, 42, 0.9); border-color: var(--border); }
  .company-table th { background: rgba(30, 41, 59, 0.9); color: #93c5fd; border-color: var(--border); }
  .company-table td { color: #e0e7ef; background: rgba(15, 23, 42, 0.5); border-color: var(--border); }

  .site-nav a.active{ background: rgba(56,78,110,.45); border:1px solid #334155; }
  
  /* 本文テキストを明るく */
  main p, main li, main dd {
    color: #e0e7ef !important;
  }
  
  main h1, main h2, main h3, main h4, main h5, main h6 {
    color: #f0f4f8 !important;
  }
  
  main dt {
    color: #cbd5e1 !important;
  }
}

/* Subtle section background glow on expand (borderless) */
.sp-section{ position:relative; }
.sp-section::before{ content:""; position:absolute; inset:-4px 0 auto 0; height:0; background: radial-gradient(80% 80% at 20% 0%, rgba(11,95,179,.09), rgba(11,95,179,0)); opacity:0; transition: height .6s ease, opacity .6s ease; pointer-events:none; }
.sp-section.expanded::before{ height:20px; opacity:1; }

/* Hero slider dots */
.hero-dots{ 
  position:absolute; left:0; right:0; bottom:16px; 
  display:flex; gap:12px; justify-content:center; align-items:center; z-index:5; 
}

.hero-dot{ 
  width:10px; height:10px; border-radius:999px; 
  background: rgba(255,255,255,.7); 
  box-shadow:
    0 2px 8px rgba(0,0,0,.3),
    0 0 20px rgba(255, 255, 255, 0.3);
  cursor:pointer; 
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); 
  border: 2px solid rgba(255,255,255,0.4);
  position: relative;
}

.hero-dot::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  opacity: 0;
  transition: all 0.3s ease;
}

.hero-dot:hover{ 
  transform: scale(1.3); 
  background: rgba(255,255,255,0.9);
  box-shadow: 
    0 4px 12px rgba(0,0,0,.4),
    0 0 30px rgba(255, 255, 255, 0.5);
}

.hero-dot:hover::before {
  opacity: 1;
  transform: scale(1.5);
}

.hero-dot.is-active{ 
  background: linear-gradient(135deg, #1d7fd4, #0ea5e9);
  transform: scale(1.4); 
  box-shadow: 
    0 4px 12px rgba(0,0,0,.5),
    0 0 30px rgba(29, 127, 212, 0.6);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { 
    box-shadow: 
      0 4px 12px rgba(0,0,0,.5),
      0 0 30px rgba(29, 127, 212, 0.6);
  }
  50% { 
    box-shadow: 
      0 4px 16px rgba(0,0,0,.6),
      0 0 40px rgba(29, 127, 212, 0.8),
      0 0 60px rgba(14, 165, 233, 0.4);
  }
}

/* ================= 画像（オリジナル設定を復活） ================= */

/* コンテンツ内のメディア共通（リサイズ・センタリング）*/
main section img,
main section picture,
main section video{
  display:block;
  max-width:100%;
  height:auto;
  margin:16px auto;
}

/* 画像を figure 内でセンタリング（テキストは左寄せ維持）*/
main section figure:has(> img){
  text-align:center;
}
/* 複数画像の自動ギャラリー（figure内）*/
main section figure:has(> img + img){
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:14px;
  justify-items:center;
}
main section figure:has(> img + img) img{
  width:100%;
  height:auto;
  margin:0;
}

/* 画像のビジュアル：角丸・影・ホバーのリフト */
main section img{
  border-radius:12px;
  box-shadow: var(--shadow-md);
  transition: transform .3s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow .3s ease,
              filter .3s ease;
}
main section img:hover{
  transform: translateY(-6px) scale(1.02);
  box-shadow: var(--shadow-xl);
}

/* ヒーロー画像（オリジナルの高さバランス）*/
.hero{
  border-radius:var(--radius);
  overflow:hidden;
  box-shadow: var(--shadow-xl);
  margin-bottom:32px;
}
.hero img{
  display:block;
  width:100%;
  height:auto;
  max-height:clamp(200px, 45vh, 500px);
  object-fit:cover;
  transition: transform .3s cubic-bezier(0.4, 0, 0.2, 1);
}
.hero img:hover{
  transform: scale(1.05);
}

/* ============ akita.php 専用：オリジナルのグリッド復活 ============ */
#office-akita figure{ margin:0; }

/* 画像を含む .reveal 直下のレイアウトを自動グリッドに */
#office-akita > .reveal:has(img){
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap:16px;
  justify-items:center;
}

/* akita map sizing */
#akita-map {
  width:100%;
  height: clamp(280px, 45vh, 480px);
  border:1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow:hidden;
  box-shadow: var(--shadow-lg);
}

#hq-map {
  width:100%;
  height: clamp(280px, 45vh, 480px);
  border:1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow:hidden;
  box-shadow: var(--shadow-lg);
}

@media (max-width: 720px){
  #office-akita > .reveal:has(img){
    grid-template-columns: 1fr;
  }
}

/* ======= 任意用フォールバック・:has 未対応ブラウザ向け・任意（） ======= */
/* :has() が効かない環境でも確実にグリッドにしたい場合に .photo-grid を付けてください */
.photo-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap:16px;
  justify-items:center;
}
.photo-grid img{
  width:100%;
  height:auto;
}

/* （任意）同じ高さで揃えたい時は .uniform-crop を併用 */
.uniform-crop img{
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* ================= 取扱メーカー一覧 ================= */
.maker-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem 2.5rem;
  margin: 2rem 0;
  padding: 0;
}

.maker-list a,
.maker-list span {
  display: block;
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, #e3f0fb, #d0e7f8);
  border-radius: 8px;
  font-size: 1rem;
  text-decoration: none;
  color: #004080;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
}

.maker-list a:hover {
  background: linear-gradient(135deg, #cfe2f3, #b8d8f0);
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-md);
}

/* Reveal animation */
.reveal {
  opacity: 0.5;
}

.reveal-visible {
  opacity: 1;
  transition: opacity 0.3s ease;
}

/* Staggered animation for child elements */
.home-card.reveal-visible,
.feature-card.reveal-visible {
  opacity: 1;
  transition: opacity 0.3s ease;
}

/* Floating animation for cards */
@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Shimmer effect for loading */
@keyframes shimmer-content { 
  0% { background-position: 0% 50%; } 
  100% { background-position: 200% 50%; } 
}

/* Blob morphing background effect */
.site-header::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(79, 172, 254, 0.2) 0%, transparent 70%);
  filter: blur(80px);
  animation: blobMove 20s ease-in-out infinite;
  pointer-events: none;
}

@keyframes blobMove {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  }
  25% {
    transform: translate(20px, -30px) scale(1.1);
    border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
  }
  50% {
    transform: translate(-20px, 20px) scale(0.9);
    border-radius: 40% 50% 60% 50% / 70% 40% 50% 60%;
  }
  75% {
    transform: translate(30px, 10px) scale(1.05);
    border-radius: 70% 30% 50% 50% / 30% 70% 40% 60%;
  }
}

/* Parallax layers */
.parallax-layer {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Text glitch effect on hover */
.glitch-text:hover {
  animation: glitch 0.3s ease;
}

@keyframes glitch {
  0% {
    transform: translate(0);
  }
  20% {
    transform: translate(-2px, 2px);
  }
  40% {
    transform: translate(-2px, -2px);
  }
  60% {
    transform: translate(2px, 2px);
  }
  80% {
    transform: translate(2px, -2px);
  }
  100% {
    transform: translate(0);
  }
}

/* Neon glow on active elements */
.neon-glow {
  box-shadow: 
    0 0 10px rgba(102, 126, 234, 0.5),
    0 0 20px rgba(102, 126, 234, 0.3),
    0 0 30px rgba(102, 126, 234, 0.2);
}

/* Glassmorphism card */
.glass-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

/* Scroll progress indicator */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, #1d7fd4, #0ea5e9);
  z-index: 9999;
  transition: width 0.1s ease;
  box-shadow: 0 0 10px rgba(14, 165, 233, 0.5);
}

/* Top page specific content */
#toppage {
  padding: 2rem 1rem;
  max-width: var(--container);
  margin: 0 auto;
}

#toppage .large {
  font-size: clamp(1.1rem, 1.5vw, 1.4rem);
  font-weight: 600;
  text-align: center;
  margin: 2rem 0;
  color: var(--brand-700);
  line-height: 1.8;
}

@media (prefers-color-scheme: dark) {
  #toppage .large {
    color: #93c5fd;
  }
}

#toppage-news {
  max-width: var(--container);
  margin: 3rem auto;
  padding: 2.5rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.95));
  backdrop-filter: blur(20px) saturate(150%);
  border-radius: var(--radius);
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(102, 126, 234, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.5);
  position: relative;
  overflow: hidden;
}

@media (prefers-color-scheme: dark) {
  #toppage-news {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.9));
    box-shadow: 
      0 20px 60px rgba(0, 0, 0, 0.4),
      0 0 0 1px rgba(102, 126, 234, 0.2);
    border: 1px solid rgba(102, 126, 234, 0.2);
  }
  
  #toppage-news h3 {
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  
  #toppage-news dt {
    color: #94a3b8;
  }
  
  #toppage-news dd {
    color: #e0e0e0;
  }
  
  #toppage-news a {
    color: #60a5fa;
  }
  
  #toppage-news a:hover {
    color: #3b82f6;
  }
}

#toppage-news::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.15) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}

#toppage-news h3 {
  color: transparent;
  background: linear-gradient(135deg, #1d7fd4, #0ea5e9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  border-bottom: 3px solid transparent;
  border-image: linear-gradient(90deg, #1d7fd4, #0ea5e9) 1;
  padding-bottom: 0.75rem;
  margin-bottom: 1.5rem;
  font-size: 1.75rem;
  position: relative;
}

#toppage-news h3::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #1d7fd4, #0ea5e9);
  filter: blur(4px);
  opacity: 0.5;
}

#toppage-news dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem 1.5rem;
  align-items: start;
}

#toppage-news dt {
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
}

#toppage-news .badge {
  background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 50%, #14b8a6 100%);
  background-size: 200% 200%;
  animation: gradientShift 4s ease infinite;
  color: #fff;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  box-shadow: 
    0 4px 15px rgba(14, 165, 233, 0.4),
    0 0 20px rgba(6, 182, 212, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  animation: badgePulse 2s ease-in-out infinite, gradientShift 4s ease infinite;
  display: inline-block;
  transform-origin: center;
}

@keyframes badgePulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 
      0 4px 15px rgba(14, 165, 233, 0.4),
      0 0 20px rgba(6, 182, 212, 0.3);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 
      0 6px 20px rgba(14, 165, 233, 0.6),
      0 0 30px rgba(6, 182, 212, 0.5);
  }
}

#toppage-news dd {
  margin: 0;
  line-height: 1.7;
}

#toppage-news a {
  color: var(--brand);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

#toppage-news a:hover {
  color: var(--accent);
  text-decoration: underline;
}

@media (prefers-color-scheme: dark) {
  #toppage-news .badge {
    background: linear-gradient(135deg, #c2185b 0%, #f57c00 50%, #00838f 100%);
    box-shadow: 
      0 4px 15px rgba(194, 24, 91, 0.4),
      0 0 20px rgba(245, 124, 0, 0.3),
      inset 0 1px 0 rgba(255, 255, 255, 0.2);
  }
}

@media (max-width: 600px) {
  #toppage-news dl {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  
  #toppage-news dt {
    margin-bottom: 0.25rem;
  }
  
  #toppage-news dd {
    margin-bottom: 1.5rem;
  }
}

/* Service page styles */
#service {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

#service .service-content {
  padding-left: 2em !important;
  padding-right: 1em !important;
}

#service h2 {
  font-size: clamp(1.6rem, 2vw, 2rem);
  margin-bottom: 2rem;
  color: var(--brand-700);
  margin-left: 0;
}

#service h3 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  margin-left: 1em;
}

#service h4 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

#service p {
  text-indent: 1em !important;
  line-height: 1.8 !important;
  margin-bottom: 1rem !important;
  padding-left: 2em !important;
}

#service ul {
  margin-left: 4em;
  margin-bottom: 1.5rem;
}

#service ul li {
  line-height: 1.8;
  margin-bottom: 0.5rem;
}

@media (max-width: 700px) {
  #service .service-content {
    padding-left: 0.5em !important;
    padding-right: 0.5em !important;
  }
  
  #service h3 {
    margin-left: 0 !important;
  }
  
  #service p {
    text-indent: 0 !important;
    padding-left: 0 !important;
  }
  
  #service ul {
    margin-left: 1.2em !important;
  }
}

/* Print styles for A4 portrait */
@media print {
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  
  *,
  *::before,
  *::after {
    text-shadow: none !important;
    box-shadow: none !important;
  }
  
  body {
    font-size: 11pt;
    line-height: 1.5;
    margin: 0;
    padding: 0;
    background: white !important;
    color: #000 !important;
  }
  
  /* Page settings for A4 */
  @page {
    size: A4 portrait;
    margin: 10mm;
  }
  
  /* Simplify header */
  header {
    background: white !important;
    padding: 8pt 0 !important;
    border-bottom: 2px solid #333 !important;
    margin-bottom: 8pt !important;
    transform: none !important;
  }
  
  .header-inner {
    padding: 4pt !important;
    background: white !important;
  }
  
  .header-inner::before,
  .header-inner::after {
    display: none !important;
  }
  
  header h1,
  header .site-title {
    font-size: 14pt !important;
    color: #000 !important;
  }
  
  /* Simplify navigation */
  .site-nav {
    background: white !important;
    padding: 4pt 0 !important;
    border-bottom: 1px solid #999 !important;
    margin-bottom: 6pt !important;
    transform: none !important;
  }
  
  .site-nav ul {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 4pt !important;
  }
  
  .site-nav a {
    padding: 3pt 8pt !important;
    font-size: 8pt !important;
    background: #f5f5f5 !important;
    color: #000 !important;
    border: 1px solid #999 !important;
  }
  
  .site-nav a::before,
  .site-nav a::after {
    display: none !important;
  }
  
  /* Hide hero slider for cleaner print */
  .hero-slider {
    display: none !important;
  }
  
  /* Thumbnail cards - simple inline blocks */
  .home-sections {
    display: block !important;
    margin: 8pt 0 !important;
    padding: 8pt !important;
    border: 1px solid #ccc !important;
    background: #f9f9f9 !important;
    page-break-inside: avoid;
  }
  
  .home-card {
    display: inline-block !important;
    width: 48% !important;
    min-height: auto !important;
    padding: 4pt 6pt !important;
    margin: 2pt 1% !important;
    border: 1px solid #999 !important;
    background: white !important;
    page-break-inside: avoid;
  }
  
  .home-card::before,
  .home-card::after {
    display: none !important;
  }
  
  .home-card__icon {
    width: 16pt !important;
    height: 16pt !important;
    margin-right: 4pt !important;
    vertical-align: middle;
  }
  
  .home-card__title {
    font-size: 9pt !important;
    padding: 2pt 4pt !important;
    background: transparent !important;
    color: #000 !important;
    border: none !important;
  }
  
  /* Main content */
  main {
    max-width: 100%;
    padding: 0 !important;
  }
  
  /* Headings with borders */
  h1, h2, h3, h4, h5, h6 {
    color: #000 !important;
    page-break-after: avoid;
    page-break-inside: avoid;
    background: transparent !important;
  }
  
  h1 { 
    font-size: 16pt; 
    margin: 8pt 0 6pt; 
    border-bottom: 2px solid #000;
    padding-bottom: 3pt;
  }
  h2 { 
    font-size: 13pt; 
    margin: 8pt 0 5pt; 
    border-bottom: 1px solid #666;
  }
  h3 { font-size: 11pt; margin: 6pt 0 4pt; }
  
  /* Text */
  p, li, dd, dt {
    color: #000 !important;
    orphans: 3;
    widows: 3;
  }
  
  p { margin: 0 0 6pt; }
  
  /* Links */
  a {
    color: #000 !important;
    text-decoration: none !important;
  }
  
  /* Tables */
  table {
    border-collapse: collapse;
    width: 100%;
    page-break-inside: avoid;
    font-size: 9pt;
  }
  
  th, td {
    border: 1px solid #666 !important;
    padding: 3pt 5pt;
    background: white !important;
  }
  
  th {
    background: #e5e5e5 !important;
    font-weight: bold;
    color: #000 !important;
  }
  
  /* Lists */
  ul, ol { margin: 0 0 6pt 12pt; }
  li { margin-bottom: 2pt; color: #000 !important; }
  
  /* Top page */
  #toppage {
    padding: 6pt 0 !important;
    max-width: 100% !important;
  }
  
  #toppage .large {
    font-size: 11pt !important;
    margin: 6pt 0 !important;
    color: #000 !important;
  }
  
  /* News section - ensure black text */
  #toppage-news {
    padding: 8pt !important;
    margin: 8pt 0 !important;
    border: 2px solid #333 !important;
    background: white !important;
    page-break-inside: avoid;
  }
  
  #toppage-news h3 {
    font-size: 13pt !important;
    margin: 0 0 6pt 0 !important;
    padding: 0 0 3pt 0 !important;
    border-bottom: 2px solid #333 !important;
    color: #000 !important;
    background: transparent !important;
    -webkit-text-fill-color: #000 !important;
  }
  
  #toppage-news::before {
    display: none !important;
  }
  
  #toppage-news dl {
    display: block !important;
  }
  
  #toppage-news dt {
    font-weight: bold;
    margin: 4pt 0 2pt 0;
    font-size: 9pt;
    color: #000 !important;
  }
  
  #toppage-news dd {
    margin: 0 0 6pt 8pt;
    font-size: 9pt;
    color: #000 !important;
  }
  
  #toppage-news .badge {
    padding: 1pt 4pt !important;
    font-size: 7pt !important;
    background: #000 !important;
    color: white !important;
  }
  
  #toppage-news a {
    color: #000 !important;
    text-decoration: underline !important;
  }
  
  /* Footer */
  footer {
    margin-top: 12pt;
    padding-top: 6pt !important;
    border-top: 1px solid #999 !important;
    font-size: 8pt !important;
    background: white !important;
    color: #000 !important;
    transform: none !important;
  }
  
  footer * {
    color: #000 !important;
    background: transparent !important;
  }
  
  /* Images */
  img {
    max-width: 100% !important;
    page-break-inside: avoid;
  }
  
  /* Hide decorative elements */
  .no-print,
  button:not([type="submit"]) {
    display: none !important;
  }
  
  /* Content blocks */
  .content-block {
    margin-bottom: 8pt;
    page-break-inside: avoid;
  }
  
  section {
    page-break-inside: auto;
  }
}
