/* ========================================
   清水建材工業 - Modern Construction Site
   Design: Dark Navy + Warm Accent
   ======================================== */

:root {
  --navy: #1a2332;
  --navy-light: #243044;
  --dark: #0f1621;
  --accent: #c8956c;
  --accent-light: #dbb08e;
  --white: #ffffff;
  --gray-50: #f8f9fa;
  --gray-100: #f0f1f3;
  --gray-200: #e2e4e8;
  --gray-400: #9ca3af;
  --gray-600: #6b7280;
  --text: #2d3748;
  --text-light: #718096;
  --radius: 12px;
  --transition: .4s cubic-bezier(.25,.46,.45,.94);
}

/* Reset */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Zen Kaku Gothic New', 'Noto Sans JP', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }

/* Container */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Utility */
.sp-only { display: none; }
@media (max-width: 768px) { .sp-only { display: inline; } }

/* ========== Loader ========== */
.loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--navy);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .6s, visibility .6s;
}
.loader.hide { opacity: 0; visibility: hidden; }
.loader-inner { text-align: center; }
.loader-text {
  display: block; color: var(--white);
  font-size: 1.5rem; font-weight: 700;
  letter-spacing: .2em; margin-bottom: 24px;
}
.loader-bar {
  width: 200px; height: 2px;
  background: rgba(255,255,255,.15); border-radius: 2px;
  overflow: hidden;
}
.loader-bar-fill {
  width: 0; height: 100%;
  background: var(--accent);
  animation: loaderFill 1.5s ease forwards;
}
@keyframes loaderFill { to { width: 100%; } }

/* ========== Header ========== */
.header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 100;
  padding: 0 40px; height: 80px;
  display: flex; align-items: center;
  transition: background .3s, box-shadow .3s;
}
.header.scrolled {
  background: rgba(26,35,50,.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255,255,255,.05);
}
.header-inner {
  width: 100%; max-width: 1400px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
}
.logo { display: flex; flex-direction: column; }
.logo-jp {
  font-size: 1.25rem; font-weight: 700;
  color: var(--white); letter-spacing: .15em;
}
.gnav { display: flex; gap: 32px; }
.gnav a {
  color: rgba(255,255,255,.7); font-size: .875rem;
  font-weight: 500; letter-spacing: .05em;
  transition: color .3s;
  position: relative;
}
.gnav a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 1px; background: var(--accent);
  transition: width .3s;
}
.gnav a:hover { color: var(--white); }
.gnav a:hover::after { width: 100%; }

.header-cta {
  display: inline-flex; align-items: center;
  padding: 10px 28px; border: 1px solid rgba(255,255,255,.3);
  color: var(--white); font-size: .875rem; font-weight: 500;
  border-radius: 100px; letter-spacing: .05em;
  transition: all .3s;
}
.header-cta:hover {
  background: var(--accent); border-color: var(--accent);
}

.menu-btn {
  display: none; width: 32px; height: 20px;
  position: relative; z-index: 110;
}
.menu-btn span {
  display: block; width: 100%; height: 2px;
  background: var(--white); border-radius: 2px;
  position: absolute; left: 0;
  transition: all .3s;
}
.menu-btn span:first-child { top: 0; }
.menu-btn span:last-child { bottom: 0; }
.menu-btn.active span:first-child { top: 50%; transform: translateY(-50%) rotate(45deg); }
.menu-btn.active span:last-child { bottom: 50%; transform: translateY(50%) rotate(-45deg); }

@media (max-width: 900px) {
  .header { padding: 0 20px; height: 64px; }
  .gnav, .header-cta { display: none; }
  .menu-btn { display: block; }
}

/* ========== Mobile Nav ========== */
.mnav {
  position: fixed; inset: 0; z-index: 105;
  background: var(--navy);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: all .4s;
}
.mnav.open { opacity: 1; visibility: visible; }
.mnav-inner { text-align: center; }
.mnav-links { display: flex; flex-direction: column; gap: 28px; margin-bottom: 48px; }
.mnav-link {
  display: flex; flex-direction: column; align-items: center;
  color: var(--white); transition: color .3s;
}
.mnav-link-en {
  font-size: .75rem; color: var(--accent);
  letter-spacing: .15em; text-transform: uppercase;
  margin-bottom: 2px;
}
.mnav-link-jp { font-size: 1.25rem; font-weight: 500; }
.mnav-info { color: rgba(255,255,255,.4); font-size: .8rem; line-height: 1.8; }

/* ========== Hero ========== */
.hero {
  position: relative; height: 100vh; min-height: 600px;
  display: flex; align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
}
.hero-bg-img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.05);
  animation: heroZoom 20s ease forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero-bg-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(15,22,33,.85) 0%, rgba(26,35,50,.6) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  padding: 0 60px; max-width: 900px;
}
.hero-tag {
  display: inline-block;
  padding: 8px 20px; margin-bottom: 28px;
  border: 1px solid rgba(200,149,108,.5);
  color: var(--accent-light);
  font-size: .8rem; letter-spacing: .15em;
  border-radius: 100px;
}
.hero-title {
  margin-bottom: 24px;
}
.hero-title-line {
  display: block;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900; color: var(--white);
  line-height: 1.3; letter-spacing: .05em;
}
.hero-sub {
  color: rgba(255,255,255,.6);
  font-size: 1rem; letter-spacing: .15em;
  margin-bottom: 40px;
}
.btn-primary {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 40px;
  background: var(--accent); color: var(--white);
  font-size: .95rem; font-weight: 500;
  border-radius: 100px; letter-spacing: .05em;
  transition: all .3s;
}
.btn-primary:hover {
  background: var(--accent-light); transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200,149,108,.3);
}
.hero-scroll {
  position: absolute; bottom: 40px; left: 60px; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.hero-scroll span {
  font-size: .7rem; color: rgba(255,255,255,.4);
  letter-spacing: .2em; text-transform: uppercase;
  writing-mode: vertical-rl;
}
.hero-scroll-line {
  width: 1px; height: 60px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollLine 2s ease infinite;
}
@keyframes scrollLine {
  0% { opacity: 1; transform: scaleY(1); }
  50% { opacity: .5; transform: scaleY(.5); transform-origin: top; }
  100% { opacity: 1; transform: scaleY(1); }
}

@media (max-width: 768px) {
  .hero-content { padding: 0 24px; }
  .hero-scroll { left: 24px; bottom: 100px; }
}

/* ========== Numbers ========== */
.numbers {
  padding: 80px 0;
  background: var(--gray-50);
}
.numbers-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 40px; text-align: center;
}
.number-item { padding: 20px; }
.number-value {
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 900; color: var(--navy);
  line-height: 1;
}
.number-unit {
  font-size: 1.1rem; font-weight: 700;
  color: var(--navy); margin-left: 4px;
}
.number-label {
  display: block; margin-top: 8px;
  font-size: .85rem; color: var(--text-light);
  letter-spacing: .05em;
}
@media (max-width: 600px) {
  .numbers { padding: 60px 0; }
  .numbers-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* ========== Section Common ========== */
.section { padding: 120px 0; }
.section-head { text-align: center; margin-bottom: 64px; }
.section-en {
  display: block; font-size: .8rem;
  color: var(--accent); letter-spacing: .2em;
  text-transform: uppercase; margin-bottom: 12px;
  font-weight: 500;
}
.section-en.light { color: var(--accent-light); }
.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700; letter-spacing: .1em;
}
.section-title.light { color: var(--white); }
@media (max-width: 768px) {
  .section { padding: 80px 0; }
  .section-head { margin-bottom: 48px; }
}

/* ========== Message ========== */
.message-content {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
}
.message-img {
  position: relative; border-radius: var(--radius);
  overflow: hidden;
}
.message-img img { width: 100%; height: 500px; object-fit: cover; }
.message-img-accent {
  position: absolute; bottom: -16px; right: -16px;
  width: 120px; height: 120px;
  border: 3px solid var(--accent);
  border-radius: var(--radius);
  z-index: -1;
}
.message-heading {
  font-size: 1.5rem; font-weight: 700;
  margin-bottom: 24px; line-height: 1.6;
  letter-spacing: .05em;
}
.message-text p {
  margin-bottom: 16px; color: var(--text-light);
  font-size: .95rem; line-height: 2;
}
.message-sign {
  margin-top: 32px; padding-top: 24px;
  border-top: 1px solid var(--gray-200);
  display: flex; align-items: baseline; gap: 16px;
}
.sign-pos { font-size: .85rem; color: var(--text-light); }
.sign-name { font-size: 1.5rem; font-weight: 700; letter-spacing: .1em; }

@media (max-width: 768px) {
  .message-content { grid-template-columns: 1fr; gap: 40px; }
  .message-img img { height: 300px; }
  .message-img-accent { display: none; }
}

/* ========== Service ========== */
.service { background: var(--gray-50); }
.service-list { display: flex; flex-direction: column; gap: 60px; }
.service-item {
  display: grid; grid-template-columns: 1.2fr 1fr;
  gap: 48px; align-items: center;
}
.service-item.reverse { grid-template-columns: 1fr 1.2fr; }
.service-item.reverse .service-item-img { order: 2; }
.service-item.reverse .service-item-body { order: 1; }

.service-item-img {
  border-radius: var(--radius); overflow: hidden;
}
.service-item-img img {
  width: 100%; height: 320px; object-fit: cover;
  transition: transform .6s;
}
.service-item:hover .service-item-img img { transform: scale(1.05); }

.service-item-num {
  display: block; font-size: 3rem; font-weight: 900;
  color: var(--gray-200); line-height: 1;
  margin-bottom: 12px;
}
.service-item-body h3 {
  font-size: 1.35rem; font-weight: 700;
  margin-bottom: 16px; letter-spacing: .05em;
}
.service-item-body p {
  color: var(--text-light); font-size: .95rem; line-height: 1.9;
}

@media (max-width: 768px) {
  .service-item,
  .service-item.reverse {
    grid-template-columns: 1fr; gap: 24px;
  }
  .service-item.reverse .service-item-img { order: 0; }
  .service-item.reverse .service-item-body { order: 0; }
  .service-item-img img { height: 220px; }
  .service-item-num { font-size: 2rem; }
}

/* ========== Strength ========== */
.strength {
  background: var(--navy);
  position: relative; overflow: hidden;
}
.strength::before {
  content: ''; position: absolute;
  top: -50%; right: -10%; width: 500px; height: 500px;
  border: 1px solid rgba(255,255,255,.03);
  border-radius: 50%;
}
.strength-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.strength-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: 48px 32px;
  transition: all .3s;
}
.strength-card:hover {
  background: rgba(255,255,255,.08);
  transform: translateY(-4px);
}
.strength-card-icon {
  width: 64px; height: 64px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(200,149,108,.1);
  border-radius: 12px; margin-bottom: 24px;
  color: var(--accent);
}
.strength-card h3 {
  font-size: 1.15rem; font-weight: 700;
  color: var(--white); margin-bottom: 16px;
  line-height: 1.5; letter-spacing: .05em;
}
.strength-card p {
  color: rgba(255,255,255,.5);
  font-size: .9rem; line-height: 1.8;
}

@media (max-width: 768px) {
  .strength-grid { grid-template-columns: 1fr; gap: 20px; }
  .strength-card { padding: 32px 24px; }
}

/* ========== Company ========== */
.company-content { max-width: 800px; margin: 0 auto 48px; }
.company-table { width: 100%; border-collapse: collapse; }
.company-table tr { border-bottom: 1px solid var(--gray-200); }
.company-table th,
.company-table td { padding: 20px 16px; text-align: left; font-size: .95rem; }
.company-table th {
  width: 160px; font-weight: 500;
  color: var(--navy); white-space: nowrap;
  vertical-align: top;
}
.company-table td { color: var(--text-light); }

.company-map { max-width: 800px; margin: 0 auto; }
.company-map iframe { border-radius: var(--radius); }

@media (max-width: 768px) {
  .company-table th { width: 100px; font-size: .85rem; padding: 16px 8px; }
  .company-table td { font-size: .85rem; padding: 16px 8px; }
}

/* ========== Contact ========== */
.contact {
  background: var(--dark);
}
.contact-lead {
  text-align: center; color: rgba(255,255,255,.5);
  font-size: .95rem; margin-bottom: 48px;
}
.contact-wrap {
  max-width: 900px; margin: 0 auto;
  display: grid; grid-template-columns: auto auto 1fr;
  gap: 48px; align-items: start;
}
.contact-tel { text-align: center; padding: 40px 32px; }
.contact-tel-label {
  font-size: .8rem; color: rgba(255,255,255,.4);
  margin-bottom: 12px; letter-spacing: .1em;
}
.contact-tel-num {
  display: block; font-size: 1.8rem; font-weight: 700;
  color: var(--white); letter-spacing: .05em;
  margin-bottom: 8px;
}
.contact-tel-note { font-size: .8rem; color: rgba(255,255,255,.3); }

.contact-divider {
  display: flex; align-items: center; justify-content: center;
  height: 100%;
}
.contact-divider span {
  color: rgba(255,255,255,.2); font-size: .85rem;
  font-style: italic;
}

.contact-form { display: flex; flex-wrap: wrap; gap: 16px; }
.form-row { display: flex; gap: 16px; width: 100%; }
.form-group { flex: 1; }
.form-group.full { width: 100%; flex: none; }
.form-group label {
  display: block; font-size: .85rem;
  color: rgba(255,255,255,.6); margin-bottom: 8px;
  font-weight: 500;
}
.req {
  display: inline-block; padding: 1px 8px;
  background: var(--accent); color: var(--white);
  font-size: .7rem; border-radius: 4px;
  margin-left: 8px; vertical-align: middle;
}
.form-group input,
.form-group textarea {
  width: 100%; padding: 14px 16px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px; color: var(--white);
  font-size: .95rem; font-family: inherit;
  transition: border-color .3s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none; border-color: var(--accent);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255,255,255,.2);
}
.btn-submit {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 48px; margin-top: 8px;
  background: var(--accent); color: var(--white);
  font-size: .95rem; font-weight: 500;
  border-radius: 100px; letter-spacing: .05em;
  transition: all .3s;
}
.btn-submit:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
}

@media (max-width: 900px) {
  .contact-wrap {
    grid-template-columns: 1fr; gap: 32px;
  }
  .contact-divider { display: none; }
  .form-row { flex-direction: column; }
}

/* ========== Footer ========== */
.footer {
  background: var(--navy);
  padding: 60px 0 24px;
}
.footer-top {
  display: flex; justify-content: space-between;
  align-items: start; padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.footer-logo {
  font-size: 1.2rem; font-weight: 700;
  color: var(--white); letter-spacing: .15em;
  margin-bottom: 12px; display: block;
}
.footer-brand p {
  color: rgba(255,255,255,.3); font-size: .8rem; line-height: 1.8;
}
.footer-links { display: flex; gap: 28px; }
.footer-links a {
  color: rgba(255,255,255,.4); font-size: .85rem;
  transition: color .3s;
}
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  padding-top: 24px; text-align: center;
}
.footer-bottom small {
  color: rgba(255,255,255,.2); font-size: .75rem;
}

@media (max-width: 768px) {
  .footer-top { flex-direction: column; gap: 32px; }
  .footer-links { flex-wrap: wrap; gap: 16px; }
}

/* ========== Fixed Bar ========== */
.fixed-bar {
  display: none; position: fixed; bottom: 0; left: 0;
  width: 100%; z-index: 90;
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,.08);
}
.fixed-bar-item {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; padding: 14px; font-size: .85rem;
  font-weight: 500; color: var(--white);
  flex: 1; text-align: center;
}
.fixed-bar-item.tel { border-right: 1px solid rgba(255,255,255,.08); }
.fixed-bar-item.mail { background: var(--accent); }

@media (max-width: 768px) {
  .fixed-bar { display: flex; }
  body { padding-bottom: 56px; }
}

/* ========== Animations ========== */
.fade-up {
  opacity: 0; transform: translateY(30px);
  transition: opacity .8s var(--transition), transform .8s var(--transition);
  transition-delay: var(--delay, 0s);
}
.fade-up.visible {
  opacity: 1; transform: translateY(0);
}
