/*
Theme Name: OMworks
Theme URI: https://om-works.net
Author: OMworks
Description: 株式会社オーエムワークス 公式サイトテーマ v3
Version: 3.0
License: GNU General Public License v2 or later
Text Domain: omworks
*/

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  :root {
    --black: #0f1a0f;
    --white: #f8f6f2;
    --accent: #7ab648;
    --serif: 'Noto Serif JP', serif;
    --sans: 'Noto Sans JP', sans-serif;
  }
  html { scroll-behavior: smooth; }
  body { background: #e8f0e4; color: #1a2a1a; font-family: var(--sans); font-weight: 300; line-height: 1.8; overflow-x: hidden; }

  /* NAV */
  nav { position: fixed; top: 0; width: 100%; z-index: 100; overflow: hidden; background: rgba(15,26,15,0.0); backdrop-filter: blur(12px); border-bottom: 2px solid rgba(245,240,192,0.25); }
  .nav-top { display: flex; justify-content: center; align-items: center; gap: 1.5rem; padding: 0.7rem 4rem; border-bottom: 1px solid rgba(245,240,192,0.2); position: relative; z-index: 1; }
  .nav-logo-img { height: 130px; width: auto; border-radius: 6px; background: #000; padding: 5px 12px; box-shadow: 0 2px 10px rgba(0,0,0,0.4); position: relative; z-index: 1; }
  .nav-bottom { display: flex; justify-content: center; align-items: center; padding: 0.6rem 4rem; position: relative; z-index: 1; }
  .logo { font-family: var(--serif); letter-spacing: 0.15em; color: #f5f0c0; display: flex; flex-direction: column; align-items: center; gap: 0.35rem; position: relative; z-index: 1; padding: 0.6rem 2.5rem; }
  /* divider line between main and sub */
  .logo-divider { width: 70%; height: 1px; background: linear-gradient(to right, transparent, rgba(168,224,122,0.7), transparent); margin: 0.1rem 0; }
  /* diamond accents */
  .logo-divider { position: relative; }
  .logo-divider::before { content: '◆'; position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); font-size: 0.5rem; color: #a8e07a; background: transparent; }
  .logo-prefix { font-size: 1.5rem; }
  .logo-company { font-size: 2.3rem; }
  .logo-main { font-size: 1.5rem; font-weight: 900; letter-spacing: 0.2em; position: relative; display: inline-block; padding: 0 0.3em;
    background: linear-gradient(120deg, #f5f0c0 0%, #ffffff 35%, #c8e89a 65%, #f5f0c0 100%);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 1px 8px rgba(255,240,100,0.3)); }
  /* decorative flanking lines around company name */
  .logo-main::before, .logo-main::after { content: ''; position: absolute; top: 50%; width: 0; height: 1px;
    background: linear-gradient(to var(--dir, right), transparent, rgba(168,224,122,0.8)); transition: width 0.5s ease; }
  .logo-sub { font-size: 0.72rem; font-weight: 400; color: rgba(200,232,154,0.85); letter-spacing: 0.4em; font-family: var(--sans); text-transform: uppercase; }
  .nav-links { display: flex; gap: 3rem; list-style: none; }
  .nav-links a { color: #f5f0c0; text-decoration: none; font-size: 0.85rem; letter-spacing: 0.15em; opacity: 0.85; font-weight: 500; transition: opacity 0.3s, color 0.3s; }
  .nav-links a:hover { opacity: 1; color: #ffe066; }
  #nav-vid-wrap { position: absolute; inset: 0; overflow: hidden; z-index: -1; }
  #nav-spanner-bg svg { width: 100%; height: 100%; }
  #nav-vid-wrap::after { content:''; position: absolute; inset: 0; background: rgba(0,0,0,0.95); backdrop-filter: blur(4px); }
  #nav-vid-wrap video { width: 100%; height: 100%; object-fit: cover; }

  /* HERO */
  #hero { height: 100vh; padding-top: 5rem; display: flex; align-items: center; position: relative; padding: 0 4rem; overflow: hidden; background: #c8dfc0; }
  #hero-bg-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: 0.45; }
  #hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
  .hero-overlay { position: absolute; inset: 0; background: linear-gradient(to right, rgba(180,220,160,0.45) 0%, rgba(180,220,160,0.1) 100%); }
  .hero-content { position: relative; z-index: 2; max-width: 700px; text-align: left; }
  .hero-sub { font-size: 0.75rem; letter-spacing: 0.4em; color: #2a6a10; margin-bottom: 2rem; opacity: 0; animation: fadeUp 1s 0.5s forwards; }
  .hero-title { font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.8rem); font-weight: 300; line-height: 1.3; margin-top: 2rem; margin-bottom: 2rem; color: #1a1a1a; opacity: 0; animation: fadeUp 1s 0.7s forwards; }
  .hero-title em { font-style: normal; display: block; }
  .hero-desc { font-size: 0.9rem; color: rgba(20,50,10,0.72); max-width: 480px; margin-bottom: 3rem; opacity: 0; animation: fadeUp 1s 0.9s forwards; }
  .hero-cta { display: inline-flex; align-items: center; gap: 1rem; padding: 1rem 2.5rem; border: 1px solid #3a8a18; color: #3a8a18; text-decoration: none; font-size: 0.8rem; letter-spacing: 0.2em; transition: all 0.3s; opacity: 0; animation: fadeUp 1s 1.1s forwards; }
  .hero-cta:hover { background: var(--accent); color: var(--black); }
  .hero-scroll { position: absolute; bottom: 3rem; left: 4rem; z-index: 2; font-size: 0.7rem; letter-spacing: 0.3em; color: rgba(20,50,10,0.5); display: flex; align-items: center; gap: 1rem; }
  .hero-scroll::before { content: ''; width: 40px; height: 1px; background: rgba(200,169,110,0.5); }

  /* SECTIONS */
  section { padding: 8rem 4rem; }

  /* VIDEO BG */
  .vid-bg-wrap { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
  .vid-bg-wrap video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .vid-bg-overlay { position: absolute; inset: 0; }
  .section-inner { position: relative; z-index: 1; }
  .section-label { font-size: 0.7rem; letter-spacing: 0.4em; color: #a8e07a; text-transform: uppercase; margin-bottom: 1rem; }
  .section-title { font-family: var(--serif); font-size: clamp(2rem, 3.5vw, 3rem); font-weight: 300; margin-bottom: 1.5rem; }
  .section-divider { width: 60px; height: 1px; background: #7ab648; margin-bottom: 3rem; }

  /* ABOUT */
  #about { background: transparent; color: #f0f8ec; position: relative; overflow: hidden; }
  #about .about-text p { color: rgba(240,248,236,0.85); }
  #about .about-num-label { color: rgba(240,248,236,0.6); }
  #about .about-num-val { color: #a8e07a; }
  .about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: center; }
  .about-text p { color: rgba(20,40,20,0.75); font-size: 0.95rem; margin-bottom: 1.5rem; }
  .about-numbers { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
  .about-num { border-left: 2px solid var(--accent); padding-left: 1.5rem; }
  .about-num-val { font-family: var(--serif); font-size: 2.5rem; font-weight: 300; color: var(--accent); }
  .about-num-label { font-size: 0.75rem; color: rgba(20,40,20,0.55); letter-spacing: 0.1em; }

  /* SERVICES */
  #services { background: transparent; color: #f0f8ec; position: relative; overflow: hidden; }
  .services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin-top: 4rem; } .services-grid .service-card:nth-child(4) { grid-column: span 1; } .services-grid .service-card:nth-child(5) { grid-column: span 2; }
  .service-card { background: rgba(10,30,10,0.62); backdrop-filter: blur(6px); border: 1px solid rgba(120,200,80,0.18); padding: 2.5rem; position: relative; overflow: hidden; transition: background 0.4s; cursor: default; }
  .service-card::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--accent); transition: width 0.4s; }
  .service-card:hover { background: rgba(20,60,15,0.75); }
  .service-card:hover::after { width: 100%; }
  .service-num { font-family: var(--serif); font-size: 3rem; color: rgba(140,220,80,0.22); font-weight: 300; margin-bottom: 1.5rem; }
  .service-title { font-size: 1.05rem; margin-bottom: 1rem; font-weight: 400; }
  .service-desc { font-size: 0.82rem; color: rgba(220,245,200,0.75); line-height: 1.9; }

  /* MESSAGE */
  #message { background: transparent; color: #f0f8ec; position: relative; overflow: hidden; }
  .message-inner { max-width: 760px; margin: 0 auto; text-align: left; }
  .message-para { font-family: var(--serif); font-size: clamp(0.95rem, 1.8vw, 1.15rem); font-weight: 300; line-height: 2.2; color: rgba(235,255,220,0.88); margin-bottom: 1.8rem; }
  .message-highlight { font-family: var(--serif); font-size: clamp(1.1rem, 2.2vw, 1.5rem); font-weight: 400; color: #a8e07a; border-left: 3px solid #7ab648; padding: 0.8rem 1.5rem; margin: 2.5rem 0; line-height: 1.9; }
  .message-author { font-size: 0.9rem; letter-spacing: 0.25em; color: #a8e07a; text-align: right; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(122,182,72,0.25); }

  /* CONTACT */
  #contact { background: #d4e6cc; color: #1a2a1a; }
  .contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: start; }
  .contact-info p { color: rgba(20,40,20,0.7); font-size: 0.9rem; margin-bottom: 2rem; }
  .contact-detail { display: flex; flex-direction: column; gap: 1rem; }
  .contact-item { display: flex; align-items: flex-start; gap: 1.5rem; padding: 1.2rem 0; border-bottom: 1px solid rgba(200,169,110,0.1); }
  .contact-item-label { font-size: 0.7rem; letter-spacing: 0.2em; color: var(--accent); min-width: 60px; padding-top: 0.15rem; }
  .contact-item-val { font-size: 0.85rem; color: rgba(20,40,20,0.8); }
  .contact-form { display: flex; flex-direction: column; gap: 1.5rem; }
  .form-field { display: flex; flex-direction: column; gap: 0.5rem; }
  .form-field label { font-size: 0.7rem; letter-spacing: 0.2em; color: var(--accent); }
  .form-field input, .form-field textarea { background: transparent; border: none; border-bottom: 1px solid rgba(100,160,80,0.4); padding: 0.75rem 0; color: #1a2a1a; font-family: var(--sans); font-size: 0.9rem; font-weight: 300; outline: none; transition: border-color 0.3s; resize: none; }
  .form-field input:focus, .form-field textarea:focus { border-bottom-color: var(--accent); }
  .form-field input::placeholder, .form-field textarea::placeholder { color: rgba(20,40,20,0.3); font-size: 0.85rem; }
  .submit-btn { align-self: flex-start; padding: 0.9rem 2.5rem; border: 1px solid var(--accent); background: transparent; color: var(--accent); font-family: var(--sans); font-size: 0.8rem; letter-spacing: 0.2em; cursor: pointer; transition: all 0.3s; margin-top: 0.5rem; }
  .submit-btn:hover { background: var(--accent); color: var(--black); }

  /* FOOTER */
  footer { background: #1a2a1a; border-top: 1px solid rgba(200,169,110,0.1); padding: 2.5rem 4rem; display: flex; justify-content: space-between; align-items: center; }
  .footer-logo { font-family: var(--serif); font-size: 1rem; letter-spacing: 0.2em; color: var(--accent); }
  .footer-copy { font-size: 0.75rem; color: rgba(248,246,242,0.3); }


  /* AREA MAP */
  .about-area { display: flex; flex-direction: column; gap: 1.5rem; }
  .area-heading { display: flex; flex-direction: column; gap: 0.4rem; }
  .area-label { font-size: 0.7rem; letter-spacing: 0.3em; color: #7ab648; }
  .area-main { font-family: var(--serif); font-size: 1.6rem; font-weight: 400; color: #a8e07a; }
  .area-note { font-size: 0.8rem; color: rgba(220,245,200,0.7); }
  .map-wrap { background: rgba(10,30,10,0.45); border: 1px solid rgba(120,200,80,0.18); border-radius: 8px; padding: 1rem; }
  .kanto-map { width: 100%; height: auto; }
  .kanto-map .pref { fill: rgba(120,180,70,0.18); stroke: rgba(168,224,122,0.5); stroke-width: 1.2; transition: fill 0.3s; }
  .kanto-map .pref:hover { fill: rgba(120,180,70,0.35); }
  .kanto-map .pref-center { fill: rgba(122,182,72,0.6); stroke: #a8e07a; stroke-width: 2; }
  .kanto-map .pref-name { fill: rgba(230,250,215,0.85); font-size: 9px; font-family: var(--sans); text-anchor: middle; pointer-events: none; }
  .kanto-map .pref-name-center { fill: #ffffff; font-size: 12px; font-weight: 700; }
  .kanto-map .hq-dot { fill: #ffe066; }
  .kanto-map .hq-pulse { fill: rgba(255,224,102,0.4); animation: hqpulse 2s ease-out infinite; transform-origin: 135px 135px; }
  @keyframes hqpulse {
    0%   { transform: scale(1);   opacity: 0.7; }
    100% { transform: scale(3.5); opacity: 0; }
  }


  /* SOCIAL LINKS */
  .social-links { margin-top: 2.5rem; }
  .social-heading { font-size: 0.78rem; letter-spacing: 0.15em; color: rgba(20,40,20,0.7); margin-bottom: 1rem; }
  .social-btns { display: flex; gap: 1rem; flex-wrap: wrap; }
  .social-btn { display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.7rem 1.4rem; border-radius: 30px; text-decoration: none; font-size: 0.85rem; font-weight: 500; letter-spacing: 0.05em; color: #fff; transition: transform 0.25s, box-shadow 0.25s; }
  .social-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,0.2); }
  .social-ig { background: linear-gradient(45deg, #f09433, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888); }
  .social-line { background: #06c755; }
  .social-btn svg { flex-shrink: 0; }


  /* COMPANY INFO TABLE */
  .company-info { margin-top: 5rem; }
  .company-info-title { font-family: var(--serif); font-size: 1.4rem; font-weight: 400; color: #a8e07a; margin-bottom: 1.5rem; padding-left: 1rem; border-left: 3px solid #7ab648; }
  .info-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
  .info-table th, .info-table td { text-align: left; padding: 1rem 1.2rem; vertical-align: top; border-bottom: 1px solid rgba(120,200,80,0.2); }
  .info-table th { width: 28%; color: #a8e07a; font-weight: 500; letter-spacing: 0.1em; white-space: nowrap; }
  .info-table td { color: rgba(235,255,220,0.88); }
  @media (max-width: 700px) {
    .info-table th, .info-table td { display: block; width: 100%; }
    .info-table th { padding-bottom: 0.2rem; border-bottom: none; }
    .info-table td { padding-top: 0.2rem; }
  }


  /* COMPACT SERVICES */
  .services-grid.compact { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; margin-top: 3rem; }
  .services-grid.compact .service-card:nth-child(4) { grid-column: auto; }
  .services-grid.compact .service-card:nth-child(5) { grid-column: auto; }
  .services-grid.compact .service-card { padding: 1.6rem 1.2rem; text-align: center; }
  .services-grid.compact .service-num { font-size: 1.8rem; margin-bottom: 0.6rem; }
  .services-grid.compact .service-title { font-size: 0.92rem; line-height: 1.5; margin-bottom: 0.6rem; }
  .services-grid.compact .service-desc { font-size: 0.72rem; line-height: 1.6; color: rgba(220,245,200,0.7); }
  @media (max-width: 900px) { .services-grid.compact { grid-template-columns: repeat(2, 1fr); } }

  /* AREA RESULTS */
  .area-results { margin-top: 5rem; }
  .area-results-head { margin-bottom: 2.5rem; }
  .area-results-label { font-size: 0.7rem; letter-spacing: 0.4em; color: #a8e07a; text-transform: uppercase; }
  .area-results-title { font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 300; color: #f0f8ec; margin: 0.6rem 0 0.4rem; }
  .area-results-note { font-size: 0.85rem; color: rgba(220,245,200,0.7); }
  .area-map-only { max-width: 820px; margin: 0 auto; text-align: center; }
  .area-map-only .kanto-map { width: 100%; height: auto; }
  /* all prefectures share the radial gradient centered on Saitama */
  .area-map-only .pref { fill: url(#areaGrad); stroke: rgba(168,224,122,0.55); stroke-width: 1.2; transition: opacity 0.3s; }
  .area-map-only .pref:hover { opacity: 0.82; }
  .area-map-only .pref-center { stroke: #d8ffb0; stroke-width: 2.4; filter: drop-shadow(0 0 6px rgba(80,220,80,0.7)); }
  .area-map-only .pref-name { fill: rgba(245,255,235,0.92); font-size: 9px; font-family: var(--sans); text-anchor: middle; pointer-events: none; }
  .area-map-only .pref-name-center { fill: #fff; font-size: 13px; font-weight: 700; }
  .area-map-only .hq-dot { fill: #ffffff; }
  .area-map-only .hq-pulse { fill: rgba(255,255,255,0.5); animation: hqpulse 2s ease-out infinite; transform-origin: 135px 135px; }
  .area-supplement { margin-top: 1.5rem; font-size: 0.9rem; color: rgba(220,245,200,0.78); letter-spacing: 0.05em; }
  .area-supplement::before { content: '※ '; color: #a8e07a; }


  /* WORKS (修理実例) */
  #works { background: #0f1a0f; color: #f0f8ec; position: relative; overflow: hidden; }
  .works-intro { font-size: 0.95rem; color: rgba(220,245,200,0.8); margin-bottom: 3rem; max-width: 600px; }
  .works-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
  .work-card { background: rgba(20,40,15,0.55); border: 1px solid rgba(120,200,80,0.18); border-radius: 10px; overflow: hidden; transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s; }
  .work-card:hover { transform: translateY(-5px); box-shadow: 0 12px 30px rgba(0,0,0,0.35); border-color: rgba(168,224,122,0.5); }
  .work-img { height: 150px; position: relative; display: flex; align-items: flex-end; padding: 1rem; }
  .work-tag { font-size: 0.7rem; letter-spacing: 0.1em; color: #fff; background: rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.3); padding: 0.25rem 0.8rem; border-radius: 20px; backdrop-filter: blur(4px); }
  .work-body { padding: 1.5rem; }
  .work-title { font-size: 1rem; font-weight: 500; color: #f0f8ec; margin-bottom: 0.5rem; line-height: 1.5; }
  .work-meta { font-size: 0.72rem; color: #a8e07a; letter-spacing: 0.05em; margin-bottom: 0.8rem; }
  .work-desc { font-size: 0.82rem; color: rgba(220,245,200,0.72); line-height: 1.9; }
  .works-note { margin-top: 2.5rem; font-size: 0.78rem; color: rgba(220,245,200,0.5); }
  @media (max-width: 900px) { .works-grid { grid-template-columns: 1fr; } }

  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
  }

  /* TIMELINE */
  .about-tagline { font-family: var(--serif); font-size: clamp(1.1rem, 2vw, 1.5rem); font-weight: 300; color: #e0f5d0; line-height: 2; margin-bottom: 3rem; border-left: 3px solid #7ab648; padding-left: 1.5rem; }
  .about-tagline strong { color: #a8e07a; font-weight: 400; display: block; font-size: 0.85em; letter-spacing: 0.05em; }
  .timeline { position: relative; padding-left: 2rem; }
  .timeline::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: linear-gradient(to bottom, #7ab648, rgba(122,182,72,0.1)); }
  .tl-item { position: relative; margin-bottom: 2.5rem; }
  .tl-item::before { content: ''; position: absolute; left: -2.45rem; top: 0.55rem; width: 10px; height: 10px; border-radius: 50%; background: #7ab648; box-shadow: 0 0 10px rgba(122,182,72,0.7); }
  .tl-year { font-size: 0.72rem; letter-spacing: 0.3em; color: #7ab648; margin-bottom: 0.5rem; }
  .tl-works { list-style: none; padding: 0; }
  .tl-works li { font-size: 0.88rem; color: rgba(220,245,200,0.82); padding: 0.2rem 0; padding-left: 1rem; position: relative; }
  .tl-works li::before { content: '—'; position: absolute; left: 0; color: rgba(122,182,72,0.5); }