/* ========================================
   鳶勇 - TOBI-YU Scaffolding Co.
   Deep Indigo + White + Red Accent
   ======================================== */

:root {
  --indigo: #1A237E;
  --indigo-dark: #0D1452;
  --indigo-light: #283593;
  --red: #D32F2F;
  --red-dark: #B71C1C;
  --white: #FFFFFF;
  --gray-50: #FAFAFA;
  --gray-100: #F5F5F5;
  --gray-200: #EEEEEE;
  --gray-300: #E0E0E0;
  --gray-600: #757575;
  --gray-700: #616161;
  --gray-800: #424242;
  --gray-900: #212121;
  --font-display: 'Zen Kaku Gothic New', sans-serif;
  --font-body: 'Noto Sans JP', sans-serif;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,.1);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.12);
  --radius: 6px;
  --radius-lg: 12px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: var(--font-body);
  color: var(--gray-900);
  line-height: 1.8;
  font-size: 15px;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Banner */
.sample-banner {
  background: var(--red);
  color: var(--white);
  text-align: center;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .05em;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10000;
}

/* Header */
.header {
  position: fixed;
  top: 33px;
  left: 0;
  right: 0;
  z-index: 9000;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(26,35,126,.08);
  transition: box-shadow .3s, background .3s;
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-main {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 900;
  color: var(--indigo);
  letter-spacing: .08em;
}

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

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

.nav-desktop a {
  font-size: 13px;
  font-weight: 700;
  color: var(--gray-800);
  letter-spacing: .04em;
  position: relative;
  transition: color .2s;
}

.nav-desktop a:not(.nav-cta):hover {
  color: var(--indigo);
}

.nav-desktop a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width .3s;
}

.nav-desktop a:not(.nav-cta):hover::after {
  width: 100%;
}

.nav-cta {
  background: var(--indigo);
  color: var(--white) !important;
  padding: 8px 20px;
  border-radius: var(--radius);
  font-size: 13px;
  transition: background .2s;
}

.nav-cta:hover {
  background: var(--indigo-light);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 9999;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--indigo);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}

.hamburger.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Mobile Nav */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 360px;
  height: 100vh;
  background: var(--indigo-dark);
  z-index: 9500;
  padding: 100px 32px 40px;
  transition: right .35s cubic-bezier(.4,0,.2,1);
  overflow-y: auto;
}

.mobile-nav.open {
  right: 0;
}

.mobile-nav nav {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mobile-nav nav a {
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
  letter-spacing: .06em;
  transition: padding-left .2s;
}

.mobile-nav nav a:hover {
  padding-left: 8px;
}

.mobile-nav-tel {
  margin-top: 32px;
}

.mobile-nav-tel a {
  display: block;
  text-align: center;
  background: var(--red);
  color: var(--white);
  padding: 14px;
  border-radius: var(--radius);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .08em;
}

/* Mobile Overlay */
.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 9400;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
}

.mobile-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Hero */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  max-height: 1000px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13,20,82,.85) 0%, rgba(26,35,126,.6) 50%, rgba(13,20,82,.7) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  padding: 0 20px;
}

.hero-lead {
  font-size: 15px;
  letter-spacing: .3em;
  margin-bottom: 16px;
  opacity: .8;
  font-weight: 500;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 7vw, 72px);
  font-weight: 900;
  letter-spacing: .1em;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--red);
  margin: 20px auto 0;
}

.hero-desc {
  font-size: 16px;
  line-height: 1.9;
  opacity: .85;
  margin-bottom: 36px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 36px;
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .25s;
  letter-spacing: .06em;
  font-family: var(--font-body);
}

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

.btn-primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.5);
}

.btn-outline:hover {
  background: rgba(255,255,255,.1);
  border-color: var(--white);
}

.btn-full {
  width: 100%;
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.6);
}

.hero-scroll span {
  font-size: 10px;
  letter-spacing: .3em;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,.3);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--white);
  animation: scrollDown 1.8s infinite;
}

@keyframes scrollDown {
  0% { top: -100%; }
  100% { top: 100%; }
}

/* Section Common */
.section {
  padding: 100px 0;
}

.section-label {
  font-size: 12px;
  letter-spacing: .35em;
  color: var(--red);
  font-weight: 700;
  margin-bottom: 8px;
  text-align: center;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 900;
  text-align: center;
  color: var(--indigo);
  margin-bottom: 16px;
  letter-spacing: .06em;
}

.section-desc {
  text-align: center;
  color: var(--gray-600);
  max-width: 600px;
  margin: 0 auto 48px;
  font-size: 15px;
}

/* About */
.about {
  background: var(--gray-50);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.about-text {
  padding-top: 8px;
}

.about-lead {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--indigo);
  margin-bottom: 20px;
  line-height: 1.7;
}

.about-text p {
  margin-bottom: 16px;
  color: var(--gray-700);
  font-size: 14.5px;
  line-height: 2;
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 24px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: var(--gray-300);
}

.timeline-item {
  position: relative;
  padding-bottom: 28px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 16px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-year {
  position: absolute;
  left: -24px;
  top: -2px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 900;
  color: var(--red);
  width: 16px;
  text-align: center;
  display: none;
}

.timeline-dot {
  position: absolute;
  left: -21px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--red);
  z-index: 1;
}

.timeline-content h4 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--indigo);
  margin-bottom: 2px;
}

.timeline-content h4::before {
  content: attr(data-year);
}

.timeline-content p {
  font-size: 13px;
  color: var(--gray-600);
}

.timeline-item .timeline-content {
  position: relative;
}

.timeline-item .timeline-content::before {
  font-family: var(--font-display);
  font-weight: 900;
  color: var(--red);
  font-size: 12px;
  display: block;
  margin-bottom: 2px;
  letter-spacing: .05em;
}

.timeline-item:nth-child(1) .timeline-content::before { content: '1968'; }
.timeline-item:nth-child(2) .timeline-content::before { content: '1985'; }
.timeline-item:nth-child(3) .timeline-content::before { content: '1998'; }
.timeline-item:nth-child(4) .timeline-content::before { content: '2015'; }
.timeline-item:nth-child(5) .timeline-content::before { content: '2026'; }

/* Services */
.services {
  background: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: transform .3s, box-shadow .3s;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.service-icon {
  margin-bottom: 20px;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  color: var(--indigo);
  margin-bottom: 12px;
  letter-spacing: .04em;
}

.service-card h3 small {
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-600);
  margin-left: 4px;
}

.service-card p {
  font-size: 14px;
  color: var(--gray-700);
  line-height: 1.9;
  margin-bottom: 16px;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.service-tags li {
  font-size: 12px;
  background: var(--indigo);
  color: var(--white);
  padding: 4px 12px;
  border-radius: 100px;
  font-weight: 500;
  letter-spacing: .04em;
}

/* Training */
.training {
  background: var(--gray-50);
}

.training-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: start;
}

.training-program h3,
.training-achievements h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  color: var(--indigo);
  margin-bottom: 24px;
  letter-spacing: .04em;
}

.program-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.program-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.step-num {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 900;
  color: var(--red);
  opacity: .7;
  line-height: 1;
  min-width: 40px;
}

.step-body h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--indigo);
  margin-bottom: 4px;
}

.step-body h4 span {
  font-size: 12px;
  font-weight: 500;
  color: var(--gray-600);
  margin-left: 8px;
}

.step-body p {
  font-size: 13.5px;
  color: var(--gray-700);
  line-height: 1.8;
}

.achievement-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.achievement-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--white);
  padding: 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
}

.achievement-icon {
  flex-shrink: 0;
}

.achievement-item h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--indigo);
  margin-bottom: 2px;
}

.achievement-item p {
  font-size: 13px;
  color: var(--gray-600);
}

.achievement-item strong {
  color: var(--red);
  font-size: 18px;
  font-weight: 900;
}

/* Works */
.works {
  background: var(--white);
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.work-card {
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  transition: transform .3s, box-shadow .3s;
}

.work-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.work-img {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.work-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s;
}

.work-card:hover .work-img img {
  transform: scale(1.05);
}

.work-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--red);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 100px;
}

.work-info {
  padding: 24px 20px;
}

.work-info h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--indigo);
  margin-bottom: 8px;
}

.work-info p {
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 12px;
}

.work-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.work-meta span {
  font-size: 11px;
  background: var(--gray-200);
  color: var(--gray-700);
  padding: 3px 10px;
  border-radius: 100px;
}

/* Numbers */
.numbers {
  background: var(--indigo-dark);
  padding: 80px 0;
}

.numbers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.number-item {
  text-align: center;
  color: var(--white);
  padding: 20px;
}

.number-value {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 900;
  line-height: 1;
  margin-bottom: 8px;
  color: var(--white);
}

.number-value small {
  font-size: .4em;
  color: rgba(255,255,255,.6);
  margin-left: 4px;
}

.number-label {
  font-size: 13px;
  color: rgba(255,255,255,.6);
  letter-spacing: .08em;
}

/* Safety */
.safety {
  background: var(--gray-50);
}

.safety-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.safety-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  transition: transform .3s, box-shadow .3s;
}

.safety-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.safety-num {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 900;
  color: var(--red);
  opacity: .3;
  margin-bottom: 8px;
  line-height: 1;
}

.safety-card h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--indigo);
  margin-bottom: 10px;
}

.safety-card p {
  font-size: 13.5px;
  color: var(--gray-600);
  line-height: 1.9;
}

/* Company */
.company {
  background: var(--white);
}

.company-table {
  max-width: 800px;
  margin: 0 auto;
}

.company-table table {
  width: 100%;
  border-collapse: collapse;
}

.company-table tr {
  border-bottom: 1px solid var(--gray-200);
}

.company-table th,
.company-table td {
  padding: 16px 20px;
  text-align: left;
  font-size: 14px;
  vertical-align: top;
}

.company-table th {
  font-weight: 700;
  color: var(--indigo);
  white-space: nowrap;
  width: 160px;
  background: var(--gray-50);
}

.company-table td {
  color: var(--gray-700);
}

.company-table td a {
  color: var(--indigo);
  font-weight: 700;
}

/* Contact */
.contact {
  background: var(--gray-50);
}

.contact-grid {
  max-width: 720px;
  margin: 0 auto;
}

.contact-tel {
  text-align: center;
  margin-bottom: 40px;
  background: var(--white);
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 2px solid var(--indigo);
}

.contact-tel-label {
  font-size: 14px;
  color: var(--gray-600);
  margin-bottom: 8px;
}

.contact-tel-number {
  display: block;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 900;
  color: var(--indigo);
  letter-spacing: .06em;
  margin-bottom: 8px;
}

.contact-tel-hours {
  font-size: 13px;
  color: var(--gray-600);
}

.contact-form {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 6px;
}

.req {
  background: var(--red);
  color: var(--white);
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 3px;
  margin-left: 4px;
  vertical-align: middle;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: var(--font-body);
  color: var(--gray-900);
  transition: border-color .2s;
  background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--indigo);
  box-shadow: 0 0 0 3px rgba(26,35,126,.1);
}

.form-group textarea {
  resize: vertical;
}

/* Footer */
.footer {
  background: var(--indigo-dark);
  color: var(--white);
  padding: 60px 0 0;
}

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

.footer-brand p {
  font-size: 13px;
  color: rgba(255,255,255,.5);
  margin-top: 16px;
  line-height: 1.8;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 28px;
  align-items: flex-start;
}

.footer-nav a {
  font-size: 13px;
  color: rgba(255,255,255,.6);
  transition: color .2s;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  font-size: 12px;
  color: rgba(255,255,255,.4);
}

.footer-bottom a {
  color: rgba(255,255,255,.4);
  transition: color .2s;
}

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

/* Animations */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}

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

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 1024px) {
  .nav-desktop { display: none; }
  .hamburger { display: flex; }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .training-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .works-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .safety-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .section {
    padding: 72px 0;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .works-grid {
    grid-template-columns: 1fr;
  }

  .numbers-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .safety-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 28px 20px;
  }

  .company-table th {
    width: 120px;
    padding: 12px 10px;
  }

  .company-table td {
    padding: 12px 10px;
  }

  .footer-top {
    flex-direction: column;
    gap: 32px;
  }

  .footer-nav {
    gap: 12px 20px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .hero {
    min-height: 500px;
  }

  .hero-desc br {
    display: none;
  }
}

@media (max-width: 480px) {
  .header-inner {
    height: 56px;
  }

  .logo-main {
    font-size: 20px;
  }

  .logo-mark {
    width: 36px;
    height: 36px;
  }

  .numbers-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .number-value {
    font-size: 32px;
  }

  .contact-tel-number {
    font-size: 24px;
  }

  .btn {
    padding: 12px 24px;
    font-size: 13px;
  }
}
