* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 15px; }
body {
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic Medium", "Meiryo", -apple-system, sans-serif;
  color: #1a1a1a;
  line-height: 1.85;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
a { color: #008b8b; text-decoration: none; }
a:hover { color: #006666; }
img { max-width: 100%; display: block; height: auto; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

:root {
  --primary: #1c4d5c;   /* dark teal */
  --primary-d: #0f3540;
  --accent: #00a8a8;     /* bright teal */
  --accent-d: #008080;
  --gray-bg: #f5f7f8;
  --gray-2:  #e7edef;
  --gray-line: #dde3e6;
  --text: #1a1a1a;
  --text-l: #5a6573;
}

/* Header */
.site-header { background: rgba(255,255,255,0.97); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 100; border-bottom: 1px solid var(--gray-line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.logo { display: flex; align-items: center; gap: 12px; color: var(--primary); }
.logo:hover { text-decoration: none; }
.logo-mark { display: flex; gap: 2px; }
.logo-mark span { background: var(--primary); color: #fff; font-weight: 800; font-size: 14px; padding: 6px 8px; border-radius: 2px; letter-spacing: 0.05em; }
.logo-mark span:last-child { background: var(--accent); }
.logo-block { display: flex; flex-direction: column; line-height: 1.2; }
.logo-text { font-weight: 800; font-size: 16px; letter-spacing: 0.05em; color: var(--primary); }
.logo-sub { font-size: 9px; letter-spacing: 0.2em; color: var(--text-l); margin-top: 2px; }
.nav { display: flex; gap: 0; align-items: center; height: 100%; }
.nav a { display: flex; align-items: center; padding: 0 13px; height: 100%; font-size: 13px; font-weight: 700; color: var(--text); letter-spacing: 0.05em; position: relative; }
.nav a::after { content: ""; position: absolute; bottom: 0; left: 50%; width: 0; height: 2px; background: var(--accent); transition: width .2s, left .2s; }
.nav a:hover { color: var(--primary); }
.nav a:hover::after { width: 70%; left: 15%; }
.nav-cta { background: var(--accent); color: #fff !important; margin-left: 10px; border-radius: 3px; }
.nav-cta:hover { background: var(--accent-d) !important; }
.nav-cta::after { display: none !important; }
.hamburger { display: none; }

/* Hero with slideshow */
.hero { position: relative; height: 88vh; min-height: 580px; display: flex; align-items: center; color: #fff; overflow: hidden; }
.hero-slides { position: absolute; inset: 0; z-index: 0; }
.hero-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.5s ease-in-out; }
.hero-slide.active { opacity: 1; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(15,53,64,0.75), rgba(0,168,168,0.4)); z-index: 1; }
.hero-inner { position: relative; z-index: 2; max-width: 1000px; padding: 0 24px; }
.hero-tag { display: inline-block; font-size: 11px; letter-spacing: 0.4em; color: #ffd166; padding: 6px 16px; border: 1.5px solid #ffd166; border-radius: 100px; margin-bottom: 28px; font-weight: 700; }
.hero-title { font-size: 56px; font-weight: 900; line-height: 1.25; letter-spacing: 0.04em; margin-bottom: 28px; text-shadow: 0 2px 12px rgba(0,0,0,0.3); }
.hero-line1, .hero-line2 { display: block; }
.hero-line2 { color: #ffd166; }
.hero-lead { font-size: 17px; line-height: 1.95; margin-bottom: 40px; opacity: 0.95; }
.hero-lead strong { color: #ffd166; font-weight: 800; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }
.btn { display: inline-block; padding: 15px 34px; font-weight: 800; font-size: 14px; border: 2px solid; border-radius: 4px; transition: all .15s; letter-spacing: 0.08em; cursor: pointer; font-family: inherit; }
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: 0 6px 14px rgba(0,168,168,0.3); }
.btn-primary:hover { background: var(--accent-d); border-color: var(--accent-d); color: #fff; text-decoration: none; transform: translateY(-2px); }
.btn-ghost { background: transparent; color: #fff; border-color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--primary); text-decoration: none; }
.hero-dots { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); display: flex; gap: 12px; z-index: 3; }
.hero-dot { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,0.4); cursor: pointer; transition: background .2s; }
.hero-dot.active { background: var(--accent); }

/* Sections */
section { padding: 96px 0; }
.section-en { display: block; text-align: center; font-size: 11px; letter-spacing: 0.5em; color: var(--accent); margin-bottom: 8px; font-weight: 800; }
.section-title { font-size: 32px; font-weight: 900; text-align: center; color: var(--primary); margin-bottom: 14px; letter-spacing: 0.08em; }
.section-title.white { color: #fff; }
.section-bar { width: 48px; height: 3px; background: var(--accent); margin: 0 auto 50px; border-radius: 100px; }
.section-bar.white { background: #fff; }
.section-lead { text-align: center; color: var(--text-l); font-size: 16px; margin-bottom: 56px; line-height: 1.9; }

/* About */
.about { background: #fff; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; max-width: 1100px; margin: 0 auto; }
.about-lead { font-size: 26px; font-weight: 800; color: var(--primary); line-height: 1.5; margin-bottom: 22px; border-left: 4px solid var(--accent); padding-left: 18px; }
.about-text p { font-size: 15px; line-height: 2; margin-bottom: 14px; color: var(--text); }
.about-img { aspect-ratio: 4/3; background-size: cover; background-position: center; border-radius: 4px; filter: contrast(1.05); }

/* Service */
.service { background: var(--gray-bg); }
.service-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.service-card { background: #fff; border-radius: 6px; overflow: hidden; transition: transform .2s, box-shadow .2s; border-bottom: 3px solid transparent; }
.service-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0,0,0,0.08); border-bottom-color: var(--accent); }
.service-img { aspect-ratio: 16/10; background-color: var(--gray-2); background-size: cover; background-position: center; }
.service-content { padding: 28px 28px 30px; }
.service-num { font-size: 13px; letter-spacing: 0.3em; color: var(--accent); font-weight: 800; margin-bottom: 8px; font-family: "Helvetica Neue", Arial, sans-serif; }
.service-card h3 { font-size: 21px; font-weight: 900; color: var(--primary); margin-bottom: 12px; letter-spacing: 0.05em; padding-bottom: 12px; border-bottom: 2px solid var(--gray-line); }
.service-card p { font-size: 14px; line-height: 1.85; color: var(--text); margin-bottom: 16px; }
.service-feats { list-style: none; }
.service-feats li { padding: 6px 0 6px 20px; font-size: 13px; position: relative; color: var(--text-l); }
.service-feats li::before { content: "▸"; position: absolute; left: 0; color: var(--accent); font-weight: 900; }

/* Capability */
.capability { background: #fff; }
.cap-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.cap-card { background: var(--gray-bg); padding: 36px 24px 30px; text-align: center; border-radius: 6px; border-top: 4px solid var(--accent); transition: transform .2s; }
.cap-card:hover { transform: translateY(-3px); }
.cap-icon { font-size: 24px; color: var(--accent); margin-bottom: 14px; line-height: 1; }
.cap-card h3 { font-size: 16px; font-weight: 800; color: var(--primary); margin-bottom: 12px; letter-spacing: 0.08em; }
.cap-big { font-size: 20px; font-weight: 900; color: var(--primary); margin: 14px 0 16px; line-height: 1.4; min-height: 56px; display: flex; align-items: center; justify-content: center; }
.cap-card ul { list-style: none; text-align: left; padding-top: 12px; border-top: 1px solid var(--gray-line); }
.cap-card li { padding: 5px 0 5px 16px; font-size: 12.5px; position: relative; color: var(--text-l); }
.cap-card li::before { content: "・"; position: absolute; left: 0; color: var(--accent); }

/* Works */
.works { background: var(--gray-bg); }
.works-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.work { background: #fff; border-radius: 6px; cursor: pointer; transition: all .2s; position: relative; overflow: hidden; }
.work:hover { box-shadow: 0 10px 24px rgba(0,0,0,0.1); transform: translateY(-3px); }
.work::after { content: "+"; position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 300; border-radius: 50%; opacity: 0; transition: opacity .2s; }
.work:hover::after { opacity: 1; }
.work-img { aspect-ratio: 4/3; background-color: var(--gray-2); background-size: cover; background-position: center; }
.work-content { padding: 14px 16px 16px; }
.work-content h4 { font-size: 13.5px; font-weight: 800; color: var(--primary); margin-bottom: 5px; line-height: 1.4; }
.work-content p { font-size: 11.5px; color: var(--text-l); line-height: 1.6; }

/* Quality */
.quality { background: #fff; }
.quality-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; max-width: 1100px; margin: 0 auto; }
.q-card { background: var(--gray-bg); padding: 28px 22px; border-radius: 6px; border-left: 4px solid var(--accent); }
.q-card h3 { font-size: 16px; font-weight: 900; color: var(--primary); margin-bottom: 10px; }
.q-card p { font-size: 13px; line-height: 1.85; color: var(--text); }

/* News */
.news { background: var(--gray-bg); }
.news-list { list-style: none; max-width: 900px; margin: 0 auto; background: #fff; border-top: 3px solid var(--accent); border-radius: 4px; }
.news-list li { display: flex; align-items: center; gap: 22px; padding: 18px 28px; border-bottom: 1px solid var(--gray-line); font-size: 14px; cursor: pointer; transition: background .15s; }
.news-list li:last-child { border-bottom: none; }
.news-list li:hover { background: #f0fafa; }
.news-list time { color: var(--text-l); font-size: 13px; min-width: 90px; font-family: "Helvetica Neue", Arial, sans-serif; }
.news-list .cat { background: var(--primary); color: #fff; font-size: 11px; padding: 3px 14px; min-width: 70px; text-align: center; letter-spacing: 0.1em; font-weight: 700; border-radius: 2px; }
.news-list a { font-size: 14px; color: var(--text); transition: color .15s; }
.news-list li:hover a { color: var(--accent); }

/* Contact */
.contact { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-d) 100%); color: #fff; position: relative; overflow: hidden; }
.contact::before { content: ""; position: absolute; width: 500px; height: 500px; border-radius: 50%; background: radial-gradient(circle, rgba(0,168,168,0.2), transparent 70%); right: -100px; top: -100px; }
.contact .container { position: relative; z-index: 1; }
.contact-lead { text-align: center; margin-bottom: 48px; font-size: 16px; opacity: 0.92; line-height: 1.9; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 800px; margin: 0 auto; }
.contact-card { display: flex; flex-direction: column; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.2); padding: 40px 26px; text-align: center; transition: all .2s; color: #fff; border-radius: 6px; }
.contact-card:hover { background: var(--accent); border-color: var(--accent); text-decoration: none; color: #fff; transform: translateY(-4px); }
.contact-icon { font-size: 36px; margin-bottom: 14px; color: #ffd166; }
.contact-card:hover .contact-icon { color: #fff; }
.contact-label { font-size: 12px; opacity: 0.85; margin-bottom: 12px; letter-spacing: 0.2em; font-weight: 700; }
.contact-big { font-size: 24px; font-weight: 900; margin-bottom: 8px; color: #ffd166; }
.contact-card:hover .contact-big { color: #fff; }
.contact-sub { font-size: 12px; opacity: 0.85; }

/* Footer */
.site-footer { background: #0a1f24; color: #94a4ab; padding: 56px 0 0; font-size: 13px; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 48px; }
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand .logo-text { color: #fff; }
.footer-brand .logo-sub { color: #94a4ab; }
.footer-brand p { font-size: 13px; line-height: 1.9; color: #94a4ab; }
.footer-nav h5 { color: #fff; font-size: 13px; margin-bottom: 14px; letter-spacing: 0.15em; padding-bottom: 8px; border-bottom: 2px solid var(--accent); font-weight: 800; display: inline-block; }
.footer-nav a { display: block; padding: 5px 0; font-size: 12.5px; color: #94a4ab; transition: color .15s; }
.footer-nav a:hover { color: #fff; text-decoration: none; }
.copyright { text-align: center; padding: 22px 0; border-top: 1px solid rgba(255,255,255,0.08); font-size: 11px; color: #5a6b73; letter-spacing: 0.15em; }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.open { display: flex; }
.modal-overlay { position: absolute; inset: 0; background: rgba(15,53,64,0.85); backdrop-filter: blur(4px); cursor: pointer; }
.modal-content { position: relative; background: #fff; max-width: 900px; width: 100%; max-height: 90vh; display: grid; grid-template-columns: 1.2fr 1fr; overflow: hidden; border-radius: 6px; box-shadow: 0 20px 60px rgba(0,0,0,0.4); }
.modal-close { position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; background: rgba(255,255,255,0.95); border: none; font-size: 24px; cursor: pointer; color: var(--primary); border-radius: 50%; z-index: 2; }
.modal-close:hover { background: var(--accent); color: #fff; }
.modal-img { background: #000; }
.modal-img img { width: 100%; height: 100%; object-fit: cover; max-height: 90vh; }
.modal-body { padding: 34px 30px; overflow-y: auto; }
.modal-body h3 { font-size: 22px; font-weight: 900; color: var(--primary); margin-bottom: 14px; border-left: 4px solid var(--accent); padding-left: 14px; }
.modal-spec { font-size: 13px; color: var(--text-l); padding: 8px 14px; background: var(--gray-bg); margin-bottom: 20px; border-radius: 3px; }
.modal-desc { font-size: 14px; line-height: 1.95; margin-bottom: 22px; }
.modal-meta { display: flex; flex-direction: column; gap: 4px; padding-top: 16px; border-top: 1px solid var(--gray-line); }
.modal-meta span { font-size: 12px; color: var(--text-l); padding: 4px 0; }
.modal-meta span::before { content: "■ "; color: var(--accent); font-size: 9px; }

.modal-content-form { grid-template-columns: 1fr; max-width: 680px; }
.form-body { padding: 44px 36px; }
.form-title { font-size: 22px; font-weight: 900; text-align: center; color: var(--primary); margin-bottom: 8px; }
.form-lead { text-align: center; font-size: 13px; color: var(--text-l); margin-bottom: 28px; }
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-size: 13px; font-weight: 800; color: var(--primary); margin-bottom: 6px; }
.req { background: var(--accent); color: #fff; font-size: 10px; font-weight: 700; padding: 1px 8px; margin-left: 6px; border-radius: 2px; }
.form-row input, .form-row select, .form-row textarea { width: 100%; padding: 10px 14px; font-size: 14px; border: 1px solid var(--gray-line); background: #fff; font-family: inherit; border-radius: 3px; }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: none; border-color: var(--accent); background: #f0fafa; }
.form-row .error { border-color: #c1272d; background: #fff5f5; }
.form-row textarea { resize: vertical; min-height: 100px; line-height: 1.7; }
.form-row select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='%2300a8a8' d='M0 0l6 8 6-8z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-check { padding: 12px 14px; background: var(--gray-bg); border-radius: 3px; }
.check-label { display: flex !important; align-items: center; gap: 10px; font-size: 13px !important; color: var(--text) !important; cursor: pointer; margin: 0 !important; }
.check-label input { width: 16px; height: 16px; accent-color: var(--accent); }
.form-actions { text-align: center; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--gray-line); }
.form-actions .btn { min-width: 220px; padding: 14px 34px; }
.form-success { display: none; text-align: center; padding: 28px 0 6px; }
.form-success .check-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 32px; display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; }
.form-success h4 { font-size: 20px; font-weight: 900; color: var(--primary); margin-bottom: 12px; }
.form-success p { font-size: 13px; line-height: 1.9; margin-bottom: 22px; }

@media (max-width: 1024px) {
  .nav a { padding: 0 10px; font-size: 12px; }
  .service-cards { grid-template-columns: 1fr; }
  .cap-grid { grid-template-columns: repeat(2, 1fr); }
  .works-grid { grid-template-columns: repeat(2, 1fr); }
  .quality-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .nav { position: fixed; top: 74px; right: -100%; width: 80%; max-width: 320px; height: calc(100vh - 74px); background: #fff; flex-direction: column; padding: 0; transition: right .3s; align-items: stretch; overflow-y: auto; box-shadow: -4px 0 16px rgba(0,0,0,0.1); }
  .nav.open { right: 0; }
  .nav a { height: auto; padding: 18px 24px; border-bottom: 1px solid var(--gray-line); }
  .nav a::after { display: none; }
  .nav-cta { margin-left: 0; border-radius: 0; }
  .hamburger { display: flex; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
  .hamburger span { width: 24px; height: 2px; background: var(--primary); }
  .hero-title { font-size: 36px; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  section { padding: 64px 0; }
  .section-title { font-size: 26px; }
  .modal-content { grid-template-columns: 1fr; grid-template-rows: 240px 1fr; }
  .modal-img img { max-height: 240px; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  html { font-size: 14px; }
  .hero-title { font-size: 28px; }
  .cap-grid { grid-template-columns: 1fr; }
  .works-grid { grid-template-columns: 1fr 1fr; }
  .quality-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .form-row-2 { grid-template-columns: 1fr; }
}
