/*
Theme Name: Hamasaki Kensetsu
Theme URI: https://hamasaki-kensetsu.example/
Author: 浜崎建設株式会社
Author URI: https://hamasaki-kensetsu.example/
Description: 浜崎建設株式会社のコーポレートサイト用WordPressテーマ。1946年創業、山口県宇部市を拠点とした製缶・配管・機械据付・溶接工事の企業サイト。
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: Proprietary
License URI:
Text Domain: hamasaki
*/

/* =========================================================
   COMMON STYLES — 全テンプレート共通
   ページ固有スタイルは各テンプレート内 <style> に記述
   ========================================================= */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --c-bg: #0a0a0a; --c-bg-alt: #0e0e0e; --c-surface: #161616; --c-surface-light: #1e1e1e;
  --c-accent: #137b3b; --c-accent-glow: #1a9e4d; --c-accent-dark: #0e5c2c;
  --c-white: #f0ece6; --c-gray: #777; --c-gray-light: #aaa; --c-border: rgba(255,255,255,0.07);
  --font-en: 'Outfit', sans-serif; --font-jp: 'Noto Sans JP', sans-serif;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1); --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
}
html { scroll-behavior: smooth; font-size: 16px; scrollbar-width: thin; scrollbar-color: var(--c-accent) var(--c-bg); }
body { font-family: var(--font-jp); background: var(--c-bg); color: var(--c-white); overflow-x: hidden; -webkit-font-smoothing: antialiased; line-height: 1.8; }
a { color: inherit; text-decoration: none; } img { max-width: 100%; display: block; } ul { list-style: none; }
::-webkit-scrollbar { width: 5px; } ::-webkit-scrollbar-track { background: var(--c-bg); } ::-webkit-scrollbar-thumb { background: var(--c-accent); border-radius: 3px; }

/* CURSOR */
.cursor-dot { width: 8px; height: 8px; background: var(--c-accent); border-radius: 50%; position: fixed; pointer-events: none; z-index: 9999; mix-blend-mode: difference; }
.cursor-ring { width: 40px; height: 40px; border: 1px solid rgba(19,123,59,0.3); border-radius: 50%; position: fixed; pointer-events: none; z-index: 9998; transition: all 0.3s var(--ease-out-quart); }
.cursor-ring.hover { width: 60px; height: 60px; border-color: var(--c-accent); }
@media (max-width: 768px) { .cursor-dot, .cursor-ring { display: none; } }

/* NAV (home variant: initially transparent, becomes solid on scroll) */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; padding: 18px 40px; display: flex; align-items: center; justify-content: space-between; transition: background 0.4s, backdrop-filter 0.4s, padding 0.4s; }
.nav.scrolled { background: rgba(10,10,10,0.88); backdrop-filter: blur(24px); padding: 12px 40px; border-bottom: 1px solid var(--c-border); }
/* NAV (sub-page variant: always solid) */
body.page .nav, body.single .nav, body.archive .nav, body.search .nav, body.error404 .nav { background: rgba(10,10,10,0.88); backdrop-filter: blur(24px); border-bottom: 1px solid var(--c-border); }
body.page .nav.scrolled, body.single .nav.scrolled, body.archive .nav.scrolled, body.search .nav.scrolled, body.error404 .nav.scrolled { padding: 12px 40px; }
.nav-brand { display: flex; align-items: center; gap: 12px; }
.nav-brand-logo { width: 36px; height: 36px; mix-blend-mode: screen; opacity: 0.9; transition: opacity 0.3s, transform 0.4s var(--ease-out-expo); }
.nav-brand:hover .nav-brand-logo { opacity: 1; transform: rotate(10deg); }
.nav-brand-text { font-weight: 700; font-size: 15px; letter-spacing: 2px; }
.nav-brand-text span { color: var(--c-accent); }
.nav-links { display: flex; gap: 28px; }
.nav-links a { font-family: var(--font-en); font-size: 11px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; position: relative; padding: 4px 0; transition: color 0.3s; }
.nav-links a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 1px; background: var(--c-accent); transition: width 0.4s var(--ease-out-expo); }
.nav-links a:hover { color: var(--c-accent); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--c-accent); }
.nav-links a.active::after { width: 100%; }
.nav-hamburger { display: none; cursor: pointer; width: 30px; height: 18px; position: relative; z-index: 1001; }
.nav-hamburger span { display: block; width: 100%; height: 1.5px; background: var(--c-white); position: absolute; left: 0; transition: all 0.4s var(--ease-out-expo); }
.nav-hamburger span:nth-child(1) { top: 0; } .nav-hamburger span:nth-child(2) { top: 8px; } .nav-hamburger span:nth-child(3) { top: 16px; }
.nav-hamburger.active span:nth-child(1) { top: 8px; transform: rotate(45deg); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; }
.nav-hamburger.active span:nth-child(3) { top: 8px; transform: rotate(-45deg); }
.mobile-menu { position: fixed; inset: 0; background: rgba(10,10,10,0.97); z-index: 999; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 20px; opacity: 0; visibility: hidden; transition: all 0.5s var(--ease-out-expo); }
.mobile-menu.active { opacity: 1; visibility: visible; }
.mobile-menu-logo { width: 60px; height: 60px; mix-blend-mode: screen; opacity: 0.15; margin-bottom: 20px; }
.mobile-menu a { font-family: var(--font-en); font-size: 13px; font-weight: 500; letter-spacing: 3px; text-transform: uppercase; padding: 10px 0; transform: translateY(20px); opacity: 0; transition: all 0.5s var(--ease-out-expo); }
.mobile-menu.active a { transform: translateY(0); opacity: 1; }
.mobile-menu.active a:nth-child(2){transition-delay:.08s} .mobile-menu.active a:nth-child(3){transition-delay:.12s} .mobile-menu.active a:nth-child(4){transition-delay:.16s} .mobile-menu.active a:nth-child(5){transition-delay:.2s} .mobile-menu.active a:nth-child(6){transition-delay:.24s} .mobile-menu.active a:nth-child(7){transition-delay:.28s} .mobile-menu.active a:nth-child(8){transition-delay:.32s}
@media (max-width: 900px) { .nav-links { display: none; } .nav-hamburger { display: block; } .nav { padding: 14px 20px; } }

/* REVEAL */
.reveal { opacity: 0; transform: translateY(50px); transition: opacity 0.9s var(--ease-out-expo), transform 0.9s var(--ease-out-expo); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1{transition-delay:.1s} .reveal-d2{transition-delay:.2s} .reveal-d3{transition-delay:.3s} .reveal-d4{transition-delay:.4s}

/* SECTION TAG / TITLE / NUM — 共通（各ページでカスタムされる場合は上書き） */
.section-tag { font-family: var(--font-en); font-size: 11px; font-weight: 600; letter-spacing: 6px; text-transform: uppercase; color: var(--c-accent); display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.section-tag::before { content: ''; width: 28px; height: 1px; background: var(--c-accent); }
.section-title { font-size: clamp(24px, 3.5vw, 38px); font-weight: 900; line-height: 1.3; }
.section-title em { font-style: normal; color: var(--c-accent); }

/* BTN PRIMARY */
.btn-primary { display: inline-flex; align-items: center; gap: 12px; padding: 15px 36px; background: var(--c-accent); color: var(--c-white); font-family: var(--font-en); font-size: 12px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; border: none; cursor: pointer; transition: background 0.4s, gap 0.4s var(--ease-out-expo), transform 0.3s; position: relative; }
.btn-primary:hover { background: var(--c-accent-glow); gap: 18px; transform: translateY(-2px); }

/* FOOTER */
.footer { background: var(--c-bg); border-top: 1px solid var(--c-border); padding: 72px 40px 36px; position: relative; overflow: hidden; }
.footer-logo-bg { position: absolute; bottom: -40px; right: -40px; width: 280px; height: 280px; opacity: 0.015; mix-blend-mode: screen; pointer-events: none; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 56px; max-width: 1200px; margin: 0 auto; padding-bottom: 56px; border-bottom: 1px solid var(--c-border); }
.footer-brand-area { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.footer-brand-logo { width: 40px; height: 40px; mix-blend-mode: screen; opacity: 0.8; }
.footer-brand { font-size: 18px; font-weight: 700; }
.footer-brand span { color: var(--c-accent); }
.footer-address { font-size: 12.5px; color: var(--c-gray-light); line-height: 2; font-weight: 300; }
.footer-nav-title { font-family: var(--font-en); font-size: 10px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; color: var(--c-accent); margin-bottom: 20px; }
.footer-nav a { display: block; font-size: 13px; padding: 5px 0; color: var(--c-gray-light); transition: color 0.3s, padding-left 0.3s; font-weight: 300; }
.footer-nav a:hover { color: var(--c-white); padding-left: 8px; }
.footer-bottom { max-width: 1200px; margin: 0 auto; padding-top: 28px; display: flex; align-items: center; justify-content: space-between; }
.footer-copy { font-family: var(--font-en); font-size: 10px; color: var(--c-gray); letter-spacing: 2px; }
.footer-top-btn { font-family: var(--font-en); font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--c-gray); display: flex; align-items: center; gap: 6px; transition: color 0.3s; cursor: pointer; }
.footer-top-btn:hover { color: var(--c-accent); }
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 36px; text-align: center; }
  .footer { padding: 52px 20px 28px; }
  .footer-bottom { flex-direction: column; gap: 14px; align-items: center; }
  .footer-brand-area { justify-content: center; }
  .footer-nav a { padding: 8px 0; }
}
