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

:root {
  --accent:       #00729f;
  --accent-dark:  #004968;
  --overlay-navy: #002347;
  --navy:         #1a1a1a;
  --white:        #ffffff;
  --bg:           #ffffff;
  --bg-alt:       #f6f6f6;
  --panel:        #ffffff;
  --border:       #dddddd;
  --gray:         #8c8c8c;
  --gray-dark:    #5a5a5a;
  --text:         #333333;
  --t:            0.3s ease;
}

html { scroll-behavior: smooth; }
body {
  font-family: Arial, 'Hiragino Sans', 'Yu Gothic Medium', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.9;
  font-size: 15px;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 32px; }
.rich_font { font-weight: 600; }

/* ===== SITE LOADER ===== */
.site-loader {
  position: fixed; inset: 0; z-index: 10000;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.7s cubic-bezier(.83,0,.17,1), visibility 0.7s cubic-bezier(.83,0,.17,1);
}
.site-loader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.site-loader-inner { text-align: center; padding: 0 30px; }
.site-loader-catch { font-size: clamp(22px, 3.2vw, 34px); font-weight: 600; color: #fff; line-height: 1.7; letter-spacing: 0.04em; }
.site-loader-catch span { display: inline-block; opacity: 0; transform: translateY(10px); transition: opacity 0.4s ease, transform 0.4s ease; }
.site-loader-catch span.animate { opacity: 1; transform: translateY(0); }
.site-loader-dots { display: flex; gap: 8px; justify-content: center; margin-top: 24px; }
.site-loader-dots i { width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: loaderDot 1s ease-in-out infinite; }
.site-loader-dots i:nth-child(2) { animation-delay: 0.15s; }
.site-loader-dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes loaderDot { 0%, 80%, 100% { opacity: 0.25; transform: scale(0.8); } 40% { opacity: 1; transform: scale(1.1); } }

/* ===== HEADER ===== */
#header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  height: 80px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  transition: background var(--t), border-color var(--t);
}
#header.transparent { background: transparent; border-bottom-color: transparent; }
.header-inner {
  max-width: 1320px; margin: 0 auto; padding: 0 32px; height: 80px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.logo { display: flex; flex-direction: row; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-mark { height: 42px; width: auto; display: block; flex-shrink: 0; }
.logo-text { font-size: 22px; font-weight: 800; color: var(--navy); letter-spacing: 0.03em; line-height: 1; font-family: 'Noto Sans JP', sans-serif; transition: color var(--t); }
.logo-text span { color: var(--accent); }
#header.transparent .logo-text { color: #fff; }

/* --- desktop nav --- */
.main-nav { display: flex; align-items: center; height: 80px; }
.main-nav > li { position: relative; height: 80px; }
.main-nav > li > a {
  display: flex; align-items: center; height: 80px; padding: 0 18px;
  font-size: 13px; font-weight: 600; color: var(--navy); letter-spacing: 0.04em;
  white-space: nowrap; transition: color var(--t);
}
#header.transparent .main-nav > li > a { color: #fff; }
.main-nav > li > a:hover { color: var(--accent); }
#header.transparent .main-nav > li > a:hover { color: #bfe4f2; }
.main-nav .contact-link { background: var(--accent); color: #fff !important; padding: 0 26px; margin-left: 8px; font-weight: 700; transition: background var(--t); }
.main-nav .contact-link:hover { background: var(--accent-dark); color: #fff !important; }

.header-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.header-icon-btn { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: none; border: none; color: var(--navy); cursor: pointer; transition: background var(--t), color var(--t); }
#header.transparent .header-icon-btn { color: #fff; }
.header-icon-btn:hover { background: rgba(0,114,159,0.08); color: var(--accent); }

.hamburger-btn { display: none; width: 44px; height: 44px; border-radius: 50%; border: none; background: rgba(0,0,0,0.045); cursor: pointer; position: relative; flex-shrink: 0; transition: background var(--t); }
.hamburger-btn:hover { background: rgba(0,114,159,0.12); }
.hamburger-btn span { position: absolute; left: 13px; width: 18px; height: 2px; background: var(--navy); transition: transform 0.3s ease, opacity 0.3s ease, top 0.3s ease; }
#header.transparent .hamburger-btn span { background: #fff; }
.hamburger-btn span:nth-child(1) { top: 16px; }
.hamburger-btn span:nth-child(2) { top: 22px; }
.hamburger-btn span:nth-child(3) { top: 28px; }
.hamburger-btn.active span:nth-child(1) { top: 22px; transform: rotate(45deg); background: var(--navy); }
.hamburger-btn.active span:nth-child(2) { opacity: 0; }
.hamburger-btn.active span:nth-child(3) { top: 22px; transform: rotate(-45deg); background: var(--navy); }

/* ===== MEGA MENU (desktop hover) ===== */
.mega { position: fixed; top: 80px; left: 0; right: 0; background: #fff; box-shadow: 0 24px 48px rgba(0,20,40,0.14); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity var(--t), visibility var(--t), transform var(--t); z-index: 400; border-top: 1px solid var(--border); }
.main-nav > li:hover .mega { opacity: 1; visibility: visible; transform: translateY(0); }
.mega-inner { max-width: 1320px; margin: 0 auto; padding: 48px 56px; display: flex; gap: 56px; }
.mega-head { min-width: 160px; }
.mega-head .headline { display: block; font-size: 22px; font-weight: 600; color: var(--navy); letter-spacing: 0.06em; }
.mega-head .sub-headline { display: block; font-size: 12px; color: var(--gray); margin-top: 8px; letter-spacing: 0.08em; }

/* type B: service hover list + image swap */
.mega-service { display: flex; flex: 1; gap: 0; height: 300px; }
.mega-service-list { flex: 0 0 320px; display: flex; flex-direction: column; border-right: 1px solid var(--border); }
.mega-service-list .item { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 0 8px; border-bottom: 1px solid var(--border); cursor: pointer; transition: background var(--t); }
.mega-service-list .item:last-child { border-bottom: none; }
.mega-service-list .item:hover, .mega-service-list .item.active { background: var(--bg-alt); }
.mega-service-list .item .main-title { display: block; font-size: 14px; font-weight: 700; color: var(--accent); letter-spacing: 0.08em; }
.mega-service-list .item .sub-title { display: block; font-size: 12px; color: var(--gray-dark); margin-top: 4px; }
.mega-service-image { flex: 1; position: relative; overflow: hidden; }
.mega-service-image .img { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 0.5s ease; }
.mega-service-image .img.active { opacity: 1; }
.mega-service-image .img::after { content: ''; position: absolute; inset: 0; background: rgba(0,35,71,0.22); }

/* type C: company grid */
.mega-grid { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.mega-grid-item { position: relative; height: 130px; border-radius: 4px; overflow: hidden; background-size: cover; background-position: center; }
.mega-grid-item::after { content: ''; position: absolute; inset: 0; background: linear-gradient(rgba(0,35,71,0.15), rgba(0,35,71,0.55)); transition: background var(--t); }
.mega-grid-item:hover::after { background: linear-gradient(rgba(0,35,71,0.25), rgba(0,35,71,0.7)); }
.mega-grid-item .txt { position: absolute; left: 16px; bottom: 12px; z-index: 2; }
.mega-grid-item .main-title { display: block; font-size: 14px; font-weight: 700; color: #fff; letter-spacing: 0.06em; }
.mega-grid-item .sub-title { display: block; font-size: 11px; color: rgba(255,255,255,0.8); margin-top: 2px; }

@media (max-width: 1100px) { .main-nav, .mega { display: none; } .hamburger-btn { display: block; } }

/* ===== MOBILE DRAWER ===== */
.drawer-overlay { position: fixed; inset: 0; z-index: 600; background: rgba(0,20,40,0.55); opacity: 0; visibility: hidden; transition: opacity var(--t), visibility var(--t); }
.drawer-overlay.open { opacity: 1; visibility: visible; }
.side-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 380px; max-width: 88vw; background: var(--overlay-navy); z-index: 700; transform: translateX(100%); transition: transform 0.45s cubic-bezier(.22,.61,.36,1); display: flex; flex-direction: column; overflow-y: auto; }
.side-drawer.open { transform: translateX(0); }
.side-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 26px 32px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.side-drawer-logo { font-size: 18px; font-weight: 800; color: #fff; font-family: 'Noto Sans JP', sans-serif; }
.side-drawer-logo span { color: #6fc4e8; }
.drawer-close { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.25); background: none; color: #fff; font-size: 20px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background var(--t); }
.drawer-close:hover { background: var(--accent); border-color: var(--accent); }
.side-drawer-nav { padding: 12px 0; }
.side-drawer-nav > li { border-bottom: 1px solid rgba(255,255,255,0.08); }
.side-drawer-nav > li > a { display: flex; align-items: center; justify-content: space-between; padding: 17px 32px; font-size: 14px; font-weight: 700; color: #fff; letter-spacing: 0.03em; transition: color var(--t); }
.side-drawer-nav > li > a:hover { color: #6fc4e8; }
.side-drawer-nav .sub-arrow { width: 8px; height: 8px; border-right: 1.5px solid rgba(255,255,255,0.4); border-bottom: 1.5px solid rgba(255,255,255,0.4); transform: rotate(45deg); flex-shrink: 0; }
.side-sub { background: rgba(255,255,255,0.04); }
.side-sub li a { display: block; padding: 12px 32px 12px 48px; font-size: 12.5px; color: rgba(255,255,255,0.65); border-top: 1px solid rgba(255,255,255,0.06); transition: color var(--t); }
.side-sub li a:hover { color: #6fc4e8; }
.side-drawer-foot { margin-top: auto; padding: 26px 32px 34px; }
.side-drawer-contact { display: block; text-align: center; padding: 15px 24px; background: var(--accent); color: #fff; font-weight: 700; font-size: 13.5px; letter-spacing: 0.06em; margin-bottom: 20px; transition: background var(--t); }
.side-drawer-contact:hover { background: #005f85; }
.side-drawer-meta { font-size: 11px; color: rgba(255,255,255,0.4); line-height: 1.9; letter-spacing: 0.02em; }

/* ===== BUTTONS ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-width: 220px; height: 58px; padding: 0 30px; font-size: 13.5px; font-weight: 700; letter-spacing: 0.08em; cursor: pointer; position: relative; overflow: hidden; transition: all var(--t); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-outline { border: 1.5px solid var(--navy); color: var(--navy); background: none; }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-outline-accent { border: 1.5px solid var(--accent); color: var(--accent); background: none; }
.btn-outline-accent:hover { background: var(--accent); color: #fff; }

/* ===== SECTIONS ===== */
.section { padding: 100px 0; background: var(--bg); }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--overlay-navy); }

.section-header { text-align: center; margin-bottom: 56px; }
.section-header-left { text-align: left; margin-bottom: 48px; }
.section-headline { display: block; font-size: clamp(30px, 4vw, 40px); font-weight: 600; color: var(--navy); letter-spacing: 0.08em; font-family: 'Noto Sans JP', sans-serif; }
.section-sub { display: block; font-size: 13px; color: var(--gray); margin-top: 12px; letter-spacing: 0.15em; }
.section-lead { font-size: 14px; color: var(--gray-dark); margin-top: 24px; line-height: 2.3; }

.section-ja { font-size: clamp(22px, 3vw, 30px); font-weight: 700; color: var(--navy); letter-spacing: 0.04em; line-height: 1.4; }
.section-en { font-size: 10px; font-weight: 700; letter-spacing: 0.3em; text-transform: uppercase; color: var(--accent); display: block; margin-bottom: 12px; }
.divider { width: 40px; height: 2px; background: var(--accent); margin: 16px auto 0; }
.divider-left { margin-left: 0; }

/* ===== HERO SLIDER ===== */
.hero { position: relative; height: 88vh; min-height: 600px; overflow: hidden; }
.slider-wrap { position: absolute; inset: 0; }
.slide { position: absolute; inset: 0; background-size: cover; background-position: center top; opacity: 0; transition: opacity 1.2s ease; }
.slide::after { content: ''; position: absolute; inset: 0; background: rgba(0,35,71,0.32); }
.slide.active { opacity: 1; }

.hero-caption { position: absolute; left: 60px; top: 50%; transform: translateY(-50%); z-index: 10; max-width: 720px; }
.hero-caption h1 { font-size: clamp(26px, 4vw, 42px); font-weight: 600; color: #fff; line-height: 1.7; letter-spacing: 0.06em; text-shadow: 0 4px 24px rgba(0,20,40,0.3); }
.hero-caption h1 span { display: inline-block; opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s ease; }
.hero-caption h1 span.animate { opacity: 1; transform: translateY(0); }
.hero-cta { display: inline-flex; margin-top: 34px; opacity: 0; transform: translateY(10px); transition: opacity 0.5s ease 0.3s, transform 0.5s ease 0.3s; }
.hero-caption.animate .hero-cta { opacity: 1; transform: translateY(0); }

.slider-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 20; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.35); width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 20px; color: #fff; transition: all var(--t); }
.slider-arrow:hover { background: var(--accent); border-color: var(--accent); }
.slider-prev { left: 24px; }
.slider-next { right: 24px; }

/* thumbnail nav strip */
.hero-nav { position: absolute; left: 60px; bottom: 40px; z-index: 20; display: flex; align-items: center; gap: 16px; }
.hero-nav-thumb { display: flex; align-items: center; gap: 16px; background: rgba(0,20,40,0.35); backdrop-filter: blur(6px); padding: 10px; cursor: pointer; transition: background var(--t); }
.hero-nav-thumb:hover { background: rgba(0,20,40,0.55); }
.hero-nav-thumb .img { width: 64px; height: 64px; background-size: cover; background-position: center; flex-shrink: 0; }
.hero-nav-thumb .cap { font-size: 12px; color: #fff; line-height: 1.7; max-width: 220px; padding-right: 16px; }
.hero-nav-num { color: rgba(255,255,255,0.6); font-size: 11px; letter-spacing: 0.1em; }

/* ===== FREE SPACE (intro) ===== */
.free-space { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding: 100px 0; }
.free-space-photo { border-radius: 4px; overflow: hidden; }
.free-space-photo img { width: 100%; height: auto; }
.free-space-text h3 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 600; color: var(--navy); line-height: 1.7; margin-bottom: 26px; }
.free-space-text p { font-size: 14px; color: var(--gray-dark); line-height: 2.3; }
.free-space-list { margin-top: 28px; display: flex; flex-direction: column; gap: 14px; }
.free-space-list li { font-size: 13px; color: var(--gray-dark); line-height: 1.9; padding-left: 20px; border-left: 2px solid var(--accent); }
.free-space-list li strong { display: block; font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }

/* ===== TAB CONTENT ===== */
.tab-section { position: relative; overflow: hidden; }
.tab-top { position: relative; padding: 90px 0 0; text-align: center; color: #fff; }
.tab-top::before { content: ''; position: absolute; inset: 0; background: rgba(0,35,71,0.72); z-index: 0; }
.tab-top-bg { position: absolute; inset: 0; background-size: cover; background-position: center; background-attachment: fixed; z-index: -1; }
.tab-top-inner { position: relative; z-index: 1; }
.tab-top h2 { font-size: clamp(24px, 3.2vw, 34px); font-weight: 600; letter-spacing: 0.04em; }
.tab-top p { font-size: 13.5px; color: rgba(255,255,255,0.8); margin-top: 20px; line-height: 2.2; max-width: 640px; margin-left: auto; margin-right: auto; }
.tab-buttons { display: flex; justify-content: center; margin-top: 48px; }
.tab-buttons .item { padding: 22px 40px; font-size: 15px; font-weight: 700; letter-spacing: 0.08em; color: rgba(255,255,255,0.55); cursor: pointer; border-bottom: 3px solid transparent; transition: all var(--t); }
.tab-buttons .item:hover { color: #fff; }
.tab-buttons .item.active { color: #fff; border-bottom-color: var(--accent); }

.tab-body { position: relative; background: #fff; }
.tab-panel { display: none; }
.tab-panel.active { display: grid; grid-template-columns: 1fr 1fr; }
.tab-panel-img { height: 460px; background-size: cover; background-position: center; }
.tab-panel-content { padding: 64px 64px; display: flex; flex-direction: column; justify-content: center; }
.tab-panel-content .label { font-size: 12px; font-weight: 700; color: var(--accent); letter-spacing: 0.2em; margin-bottom: 16px; }
.tab-panel-content h3 { font-size: clamp(20px, 2.4vw, 26px); font-weight: 600; color: var(--navy); line-height: 1.7; margin-bottom: 22px; }
.tab-panel-content p { font-size: 13.5px; color: var(--gray-dark); line-height: 2.2; margin-bottom: 30px; }
@media (max-width: 900px) { .tab-panel.active { grid-template-columns: 1fr; } .tab-panel-img { height: 260px; } .tab-panel-content { padding: 40px 28px; } .tab-buttons { flex-wrap: wrap; } .tab-buttons .item { padding: 16px 20px; font-size: 13px; } }

/* ===== SERVICE HOVER LIST ===== */
.service-section { background: var(--bg-alt); padding: 100px 0; }
.service-wrap { display: flex; margin-top: 56px; height: 520px; border: 1px solid var(--border); }
.service-list { flex: 0 0 40%; display: flex; flex-direction: column; background: #fff; }
.service-list .item { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 0 44px; border-bottom: 1px solid var(--border); cursor: pointer; position: relative; transition: background var(--t); }
.service-list .item:last-child { border-bottom: none; }
.service-list .item:hover, .service-list .item.active { background: #fff; }
.service-list .item.active { padding-left: 54px; }
.service-list .item.active::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--accent); }
.service-list .item .main-title { display: block; font-size: 18px; font-weight: 700; color: var(--navy); letter-spacing: 0.04em; transition: color var(--t); }
.service-list .item.active .main-title, .service-list .item:hover .main-title { color: var(--accent); }
.service-list .item .sub-title { display: block; font-size: 11px; color: var(--gray); letter-spacing: 0.15em; margin-top: 6px; text-transform: uppercase; }
.service-list .item .desc { font-size: 12.5px; color: var(--gray-dark); line-height: 1.9; margin-top: 12px; max-height: 0; opacity: 0; overflow: hidden; transition: max-height 0.4s ease, opacity 0.4s ease, margin-top 0.4s ease; }
.service-list .item.active .desc { max-height: 120px; opacity: 1; }
.service-image { flex: 1; position: relative; overflow: hidden; }
.service-image .img { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 0.6s ease; }
.service-image .img.active { opacity: 1; }
.service-image .img::after { content: ''; position: absolute; inset: 0; background: rgba(0,35,71,0.18); }
@media (max-width: 900px) { .service-wrap { flex-direction: column; height: auto; } .service-image { height: 260px; } }

/* ===== NEWS TICKER + LIST ===== */
.news-cat-tabs { display: flex; justify-content: center; gap: 4px; margin: 44px 0 40px; flex-wrap: wrap; }
.news-cat-tabs .item { padding: 10px 24px; font-size: 12.5px; font-weight: 700; color: var(--gray-dark); border: 1px solid var(--border); cursor: pointer; transition: all var(--t); }
.news-cat-tabs .item:hover { border-color: var(--accent); color: var(--accent); }
.news-cat-tabs .item.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.news-list-panel { display: none; }
.news-list-panel.active { display: block; }
.news-row { display: flex; align-items: baseline; gap: 24px; padding: 22px 4px; border-bottom: 1px solid var(--border); transition: opacity var(--t); }
.news-row .date { font-size: 12px; color: var(--gray); font-family: Arial, sans-serif; flex-shrink: 0; width: 90px; }
.news-row .cat { font-size: 10px; font-weight: 700; color: var(--accent); border: 1px solid var(--accent); padding: 3px 12px; letter-spacing: 0.05em; flex-shrink: 0; white-space: nowrap; }
.news-row .title { font-size: 14px; color: var(--navy); line-height: 1.6; transition: color var(--t); }
.news-row:hover .title { color: var(--accent); }
@media (max-width: 700px) { .news-row { flex-wrap: wrap; gap: 8px; } .news-row .date { width: auto; } }

/* ===== PROJECT / CASE GRID ===== */
.project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 56px; }
.project-card { display: block; position: relative; height: 320px; overflow: hidden; }
.project-card .cat { position: absolute; top: 18px; left: 18px; z-index: 3; font-size: 10px; font-weight: 700; color: #fff; background: var(--accent); padding: 4px 14px; letter-spacing: 0.06em; }
.project-card .image { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform 0.5s ease; }
.project-card:hover .image { transform: scale(1.06); }
.project-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(rgba(0,20,40,0.05) 30%, rgba(0,20,40,0.82) 100%); z-index: 1; }
.project-card .title { position: absolute; left: 26px; bottom: 26px; right: 26px; z-index: 2; font-size: 18px; font-weight: 700; color: #fff; line-height: 1.6; }
@media (max-width: 900px) { .project-grid { grid-template-columns: 1fr; } }

/* ===== CARDS (generic light) ===== */
.cards-grid { display: grid; gap: 24px; grid-template-columns: repeat(3,1fr); }
.cards-grid-5 { display: grid; gap: 20px; grid-template-columns: repeat(5,1fr); }
@media (max-width: 1100px) { .cards-grid-5 { grid-template-columns: repeat(3,1fr); } }
.card { background: #fff; border: 1px solid var(--border); padding: 40px 32px; position: relative; transition: box-shadow var(--t), transform var(--t); }
.card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(0,20,40,0.08); }
.card-num { font-size: 38px; font-weight: 700; color: #eee; font-family: Georgia, serif; line-height: 1; margin-bottom: 16px; }
.card h3 { font-size: 17px; font-weight: 700; color: var(--navy); margin-bottom: 14px; }
.card p { font-size: 13px; color: var(--gray-dark); line-height: 2; }
.card-link { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--accent); margin-top: 20px; letter-spacing: 0.06em; }

.strength-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; }
.strength-item { background: #fff; border: 1px solid var(--border); padding: 44px 40px; border-left: 3px solid transparent; transition: border-color var(--t), box-shadow var(--t); }
.strength-item:hover { border-left-color: var(--accent); box-shadow: 0 12px 32px rgba(0,20,40,0.08); }
.strength-num { font-size: 40px; font-weight: 700; color: var(--accent); opacity: 0.25; line-height: 1; margin-bottom: 12px; font-family: Georgia, serif; }
.strength-item h3 { font-size: 17px; font-weight: 700; color: var(--navy); margin-bottom: 14px; }
.strength-item p { font-size: 13px; color: var(--gray-dark); line-height: 2.1; }

/* ===== FLOW STEPS ===== */
.flow-steps { display: flex; position: relative; }
.flow-steps::before { content: ''; position: absolute; top: 35px; left: calc(10% + 35px); right: calc(10% + 35px); height: 1px; background: var(--border); }
.step { flex: 1; text-align: center; padding: 0 10px; }
.step-num { width: 70px; height: 70px; background: #fff; border: 2px solid var(--accent); display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; font-size: 20px; font-weight: 700; color: var(--accent); position: relative; z-index: 1; font-family: Georgia, serif; }
.step h4 { font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.step p { font-size: 12px; color: var(--gray); line-height: 1.8; }

/* ===== IMG SECTION ===== */
.img-section { display: grid; grid-template-columns: 1fr 1fr; min-height: 480px; }
.img-section-photo { background-size: cover; background-position: center; min-height: 360px; }
.img-section-body { padding: 64px 56px; display: flex; flex-direction: column; justify-content: center; background: var(--bg); }
.img-section-body.tinted { background: var(--bg-alt); }
.img-section-body h2 { font-size: 26px; font-weight: 700; color: var(--navy); margin-bottom: 20px; line-height: 1.6; }
.img-section-body p { font-size: 14px; line-height: 2.2; color: var(--gray-dark); }

/* ===== COMPANY TABLE ===== */
.company-table { width: 100%; border-collapse: collapse; }
.company-table tr { border-bottom: 1px solid var(--border); }
.company-table th { width: 210px; padding: 24px; font-size: 13px; font-weight: 700; color: var(--navy); background: var(--bg-alt); text-align: left; vertical-align: top; }
.company-table td { padding: 24px; font-size: 14px; color: var(--gray-dark); line-height: 2; }

/* ===== GREETING ===== */
.greeting-wrap { display: grid; grid-template-columns: 1fr 280px; gap: 64px; align-items: start; }
.greeting-body h2 { font-size: 24px; font-weight: 700; color: var(--navy); line-height: 1.7; margin-bottom: 30px; padding-bottom: 22px; border-bottom: 2px solid var(--accent); }
.greeting-body p { font-size: 14px; color: var(--gray-dark); line-height: 2.3; margin-bottom: 22px; }
.greeting-sign { margin-top: 38px; text-align: right; }
.greeting-sign .title { font-size: 12px; color: var(--gray); }
.greeting-sign .name { font-size: 22px; font-weight: 700; color: var(--navy); margin-top: 8px; letter-spacing: 0.1em; }
.greeting-photo { background: var(--bg-alt); border: 1px solid var(--border); aspect-ratio: 3/4; display: flex; align-items: center; justify-content: center; flex-direction: column; color: var(--gray); font-size: 12px; gap: 12px; }
.greeting-photo svg { width: 56px; height: 56px; fill: #ddd; }

/* ===== CONTACT ===== */
.contact-box { background: #fff; border: 1px solid var(--border); border-top: 4px solid var(--accent); max-width: 620px; margin: 0 auto; padding: 60px 52px; text-align: center; }
.contact-box h2 { font-size: 24px; font-weight: 700; color: var(--navy); margin-bottom: 14px; }
.contact-box .sub { font-size: 13px; color: var(--gray); margin-bottom: 38px; line-height: 2; }
.contact-note { font-size: 12px; color: var(--gray); margin-top: 22px; line-height: 1.9; }

/* ===== RECRUIT ===== */
.recruit-status { background: #fff; border: 1px solid var(--border); border-left: 4px solid var(--accent); padding: 34px 38px; max-width: 640px; margin: 0 auto; }
.recruit-status h3 { font-size: 18px; font-weight: 700; color: var(--navy); margin-bottom: 14px; }
.recruit-status p { font-size: 14px; color: var(--gray-dark); line-height: 2.1; }

/* ===== PAGE HERO ===== */
.page-hero { position: relative; height: 380px; margin-top: 0; overflow: hidden; display: flex; align-items: center; padding-top: 80px; }
.page-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.page-hero-overlay { position: absolute; inset: 0; background: rgba(0,35,71,0.55); }
.page-hero-inner { position: relative; z-index: 2; }
.page-hero-tag { font-size: 11px; font-weight: 700; color: #bfe4f2; letter-spacing: 0.3em; text-transform: uppercase; display: block; margin-bottom: 16px; }
.page-hero h1 { font-size: clamp(26px, 3.2vw, 38px); font-weight: 600; color: #fff; letter-spacing: 0.06em; }
.page-hero-lead { font-size: 13.5px; color: rgba(255,255,255,0.82); margin-top: 16px; line-height: 1.9; }
.breadcrumb { margin-top: 22px; font-size: 12px; color: rgba(255,255,255,0.6); display: flex; align-items: center; gap: 8px; }
.breadcrumb a { color: rgba(255,255,255,0.75); transition: color var(--t); }
.breadcrumb a:hover { color: #fff; }

/* ===== MARKET CARDS ===== */
.market-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.market-card { background: #fff; border: 1px solid var(--border); padding: 34px 26px; border-top: 3px solid var(--accent); transition: box-shadow var(--t); }
.market-card:hover { box-shadow: 0 12px 32px rgba(0,20,40,0.08); }
.market-card h4 { font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.market-card .mkt-sub { font-size: 10px; color: var(--accent); margin-bottom: 14px; letter-spacing: 0.04em; }
.market-card p { font-size: 12px; color: var(--gray-dark); line-height: 2; }

/* ===== FAQ ===== */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q { display: flex; align-items: center; gap: 18px; padding: 24px 4px; cursor: pointer; transition: background var(--t); user-select: none; }
.faq-q:hover { background: var(--bg-alt); }
.faq-q-mark { font-size: 18px; font-weight: 700; color: var(--accent); font-family: Georgia, serif; flex-shrink: 0; }
.faq-q-text { font-size: 15px; font-weight: 700; color: var(--navy); flex: 1; line-height: 1.6; }
.faq-toggle { width: 26px; height: 26px; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 17px; color: var(--accent); flex-shrink: 0; transition: all var(--t); }
.faq-item.open .faq-toggle { background: var(--accent); color: #fff; border-color: var(--accent); transform: rotate(45deg); }
.faq-a { display: none; padding: 0 4px 26px calc(18px + 26px + 18px); font-size: 14px; color: var(--gray-dark); line-height: 2.1; }
.faq-item.open .faq-a { display: block; }

/* ===== SUSTAINABILITY / VMV BLOCKS ===== */
.vmv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-bottom: 4px; }
.vmv-block { padding: 68px 56px; }
.vmv-vision { background: var(--accent); }
.vmv-mission { background: var(--overlay-navy); }
.vmv-label { font-size: 10px; font-weight: 700; letter-spacing: 0.25em; text-transform: uppercase; color: rgba(255,255,255,0.75); margin-bottom: 24px; display: flex; align-items: center; gap: 12px; }
.vmv-label::before { content: ''; width: 20px; height: 1px; background: rgba(255,255,255,0.55); }
.vmv-title { font-size: 22px; font-weight: 600; color: #fff; line-height: 1.7; margin-bottom: 22px; }
.vmv-body { font-size: 14px; color: rgba(255,255,255,0.82); line-height: 2.2; }
.vmv-values { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: var(--border); }
.vmv-value-item { background: #fff; padding: 38px 30px; }
.vmv-value-num { font-size: 34px; font-weight: 700; color: var(--accent); opacity: 0.3; font-family: Georgia, serif; line-height: 1; margin-bottom: 14px; }
.vmv-value-item h4 { font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.vmv-value-item p { font-size: 13px; color: var(--gray-dark); line-height: 2; }

.sdg-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.sdg-card { background: #fff; border: 1px solid var(--border); padding: 34px; border-top: 3px solid var(--accent); }
.sdg-card h3 { font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: 14px; }
.sdg-card p { font-size: 13px; color: var(--gray-dark); line-height: 2; }
.sdg-icon { width: 48px; height: 48px; background: var(--bg-alt); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; font-size: 24px; }

.chart-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 56px; }
.chart-card { background: #fff; border: 1px solid var(--border); padding: 44px; text-align: center; }
.chart-headline { font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 26px; letter-spacing: 0.04em; }
.chart-canvas-wrap { max-width: 240px; margin: 0 auto; position: relative; height: 240px; }
.chart-labels { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; margin-top: 28px; }
.chart-labels .item { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--gray-dark); }
.chart-labels .color { width: 12px; height: 12px; display: inline-block; flex-shrink: 0; }
@media (max-width: 900px) { .chart-grid { grid-template-columns: 1fr; } }

/* ===== CTA BAND ===== */
.cta-band { position: relative; padding: 90px 0; overflow: hidden; }
.cta-band-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.cta-band-overlay { position: absolute; inset: 0; background: rgba(0,35,71,0.72); }
.cta-band-inner { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.cta-band h2 { font-size: 26px; font-weight: 600; color: #fff; line-height: 1.6; }
.cta-band p { font-size: 13px; color: rgba(255,255,255,0.75); margin-top: 10px; }
.btn-white { background: #fff; color: var(--accent); padding: 18px 40px; font-size: 13px; font-weight: 700; white-space: nowrap; transition: all var(--t); display: inline-block; letter-spacing: 0.06em; }
.btn-white:hover { background: var(--overlay-navy); color: #fff; }

/* ===== FOOTER ===== */
#footer { background: #fff; border-top: 1px solid var(--border); }
.footer-top { padding: 60px 0; display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 40px; border-bottom: 1px solid var(--border); }
.footer-logo .logo-text { font-size: 20px; }
.footer-logo .logo-mark { height: 40px; margin-bottom: 6px; }
.footer-sns { display: flex; gap: 10px; margin-top: 24px; }
.footer-sns a { width: 34px; height: 34px; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 13px; color: var(--gray-dark); transition: all var(--t); }
.footer-sns a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.footer-menu-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-col h4 { font-size: 12px; font-weight: 700; color: var(--navy); letter-spacing: 0.1em; margin-bottom: 18px; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a { font-size: 12.5px; color: var(--gray-dark); transition: color var(--t); }
.footer-col ul li a:hover { color: var(--accent); }

.footer-banner { display: grid; grid-template-columns: repeat(4, 1fr); }
.footer-banner .item { position: relative; height: 160px; overflow: hidden; }
.footer-banner .item .image { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform 0.5s ease; }
.footer-banner .item:hover .image { transform: scale(1.08); }
.footer-banner .item::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to right, rgba(0,35,71,0.75) 0%, rgba(0,35,71,0.15) 100%); z-index: 1; }
.footer-banner .item .txt { position: absolute; left: 24px; top: 50%; transform: translateY(-50%); z-index: 2; }
.footer-banner .item .title { font-size: 18px; font-weight: 600; color: #fff; letter-spacing: 0.04em; }
.footer-banner .item .sub-title { font-size: 11px; color: rgba(255,255,255,0.8); margin-top: 6px; }
@media (max-width: 900px) { .footer-banner { grid-template-columns: repeat(2, 1fr); } }

.footer-bottom-menu { display: flex; justify-content: center; gap: 32px; padding: 24px 0; flex-wrap: wrap; }
.footer-bottom-menu a { font-size: 12px; color: var(--gray-dark); transition: color var(--t); }
.footer-bottom-menu a:hover { color: var(--accent); }
#copyright { text-align: center; padding: 18px 0; font-size: 11px; color: var(--gray); border-top: 1px solid var(--border); }

/* footer CTA fixed bar */
.footer-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 400; background: var(--overlay-navy); display: flex; align-items: center; justify-content: center; gap: 28px; padding: 16px 56px 16px 24px; transform: translateY(100%); transition: transform 0.5s cubic-bezier(.22,.61,.36,1); }
.footer-cta.visible { transform: translateY(0); }
.footer-cta-inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; justify-content: center; }
.footer-cta-text { font-size: 13px; font-weight: 700; color: #fff; letter-spacing: 0.04em; }
.footer-cta-btn { background: var(--accent); color: #fff; padding: 12px 30px; font-size: 12.5px; font-weight: 700; letter-spacing: 0.06em; transition: background var(--t); }
.footer-cta-btn:hover { background: #005f85; }
.footer-cta-close { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; border: none; background: rgba(255,255,255,0.12); color: #fff; font-size: 16px; cursor: pointer; transition: background var(--t); }
.footer-cta-close:hover { background: rgba(255,255,255,0.22); }

/* return to top */
.return-top { position: fixed; right: 24px; bottom: 24px; z-index: 300; width: 54px; height: 54px; background: var(--overlay-navy); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(10px); transition: all var(--t); font-size: 10px; letter-spacing: 0.1em; flex-direction: column; gap: 4px; }
.return-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.return-top:hover { background: var(--accent); }
@media (max-width: 900px) { .return-top { right: 16px; bottom: 16px; } }

/* ===== FORM ===== */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.form-label { font-size: 12px; font-weight: 700; color: var(--navy); letter-spacing: 0.06em; }
.form-required { color: var(--accent); }
.form-input { width: 100%; padding: 13px 16px; border: 1px solid var(--border); font-size: 14px; color: var(--text); background: #fff; outline: none; transition: border-color var(--t); font-family: inherit; }
.form-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0,114,159,0.1); }
.form-textarea { min-height: 140px; resize: vertical; }
select.form-input { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.form-submit { width: 100%; padding: 17px; font-size: 14px; font-weight: 700; letter-spacing: 0.1em; margin-top: 8px; cursor: pointer; border: none; }
.form-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.form-success { display: flex; align-items: center; gap: 10px; padding: 16px 20px; background: #eef8f0; border: 1px solid #b9e0c2; color: #1e7d42; font-size: 14px; margin-bottom: 16px; }
.form-error { padding: 16px 20px; background: #fdeeec; border: 1px solid #f3b8ae; color: #c1401f; font-size: 14px; margin-bottom: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

/* ===== BIZ / NEWS (legacy compat) ===== */
.biz-photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 56px; }
.biz-photo-card { position: relative; height: 480px; background-size: cover; background-position: center; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; text-decoration: none; transition: transform 0.4s ease; }
.biz-photo-card:hover { transform: scale(1.02); }
.biz-photo-card::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,35,71,0.1) 0%, rgba(0,35,71,0.3) 40%, rgba(0,20,40,0.88) 100%); z-index: 1; }
.biz-photo-num { position: absolute; top: 22px; left: 26px; font-size: 11px; font-weight: 700; color: rgba(255,255,255,0.7); letter-spacing: 0.25em; z-index: 2; }
.biz-photo-body { position: relative; z-index: 2; padding: 26px 28px 32px; }
.biz-photo-en { font-size: 10px; font-weight: 700; color: #bfe4f2; letter-spacing: 0.28em; text-transform: uppercase; margin-bottom: 10px; display: block; }
.biz-photo-title { font-size: 21px; font-weight: 700; color: #fff; line-height: 1.5; margin-bottom: 14px; }
.biz-photo-desc { font-size: 12px; color: rgba(255,255,255,0.78); line-height: 1.9; }
.biz-photo-link { display: inline-flex; align-items: center; gap: 10px; margin-top: 20px; font-size: 11px; font-weight: 700; color: #fff; letter-spacing: 0.1em; }
@media (max-width: 900px) { .biz-photo-grid { grid-template-columns: 1fr; } .biz-photo-card { height: 380px; } }

/* ===== LANDING PAGE (電気工事業) ===== */
.lp-header { position: fixed; top: 0; left: 0; right: 0; z-index: 500; background: #fff; border-bottom: 1px solid var(--border); height: 76px; }
.lp-header-inner { max-width: 1160px; margin: 0 auto; padding: 0 24px; height: 76px; display: flex; align-items: center; justify-content: space-between; }
.lp-back { font-size: 11px; color: var(--gray); display: flex; align-items: center; gap: 6px; transition: color var(--t); }
.lp-back:hover { color: var(--accent); }
.lp-phone { display: flex; align-items: center; gap: 10px; }
.lp-phone .icon { width: 38px; height: 38px; border-radius: 50%; background: var(--bg-alt); display: flex; align-items: center; justify-content: center; color: var(--accent); }
.lp-phone .num { font-size: 21px; font-weight: 800; color: var(--navy); font-family: Georgia, serif; line-height: 1; }
.lp-phone .label { font-size: 10px; color: var(--gray); letter-spacing: 0.04em; }

.lp-hero { position: relative; margin-top: 76px; min-height: 600px; height: 82vh; display: flex; align-items: center; overflow: hidden; }
.lp-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.lp-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to right, rgba(0,35,71,0.78) 0%, rgba(0,35,71,0.4) 100%); }
.lp-hero-inner { position: relative; z-index: 2; max-width: 640px; }
.lp-hero-tag { display: inline-block; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; padding: 6px 16px; margin-bottom: 22px; }
.lp-hero h1 { font-size: clamp(28px, 4vw, 44px); font-weight: 600; color: #fff; line-height: 1.6; letter-spacing: 0.03em; }
.lp-hero p { font-size: 14px; color: rgba(255,255,255,0.85); margin-top: 22px; line-height: 2.1; }
.lp-cta-row { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 36px; }
.lp-cta-row .btn { min-width: 240px; }

.lp-badges { background: var(--bg-alt); padding: 32px 0; }
.lp-badges-grid { display: flex; justify-content: center; gap: 56px; flex-wrap: wrap; text-align: center; }
.lp-badges-grid .item .num { font-size: 30px; font-weight: 800; color: var(--accent); font-family: Georgia, serif; line-height: 1; }
.lp-badges-grid .item .label { font-size: 12px; color: var(--gray-dark); margin-top: 8px; letter-spacing: 0.02em; }

.lp-service-card { background: #fff; border: 1px solid var(--border); padding: 34px 26px; text-align: center; transition: box-shadow var(--t), transform var(--t); }
.lp-service-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(0,20,40,0.08); }
.lp-service-icon { width: 56px; height: 56px; border-radius: 50%; background: var(--bg-alt); color: var(--accent); display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; font-size: 24px; }
.lp-service-card h3 { font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 12px; }
.lp-service-card p { font-size: 12.5px; color: var(--gray-dark); line-height: 1.9; }

.lp-sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 500; display: flex; box-shadow: 0 -4px 20px rgba(0,20,40,0.14); }
.lp-sticky-cta a { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; height: 62px; font-size: 14px; font-weight: 700; color: #fff; letter-spacing: 0.03em; }
.lp-sticky-cta .call { background: var(--navy); }
.lp-sticky-cta .form { background: var(--accent); }

.lp-footer { text-align: center; padding: 44px 0 100px; border-top: 1px solid var(--border); }
.lp-footer .logo-text { font-size: 18px; margin-bottom: 14px; display: inline-block; }
.lp-footer .logo-mark { height: 36px; margin: 0 auto 14px; }
.lp-footer p { font-size: 12px; color: var(--gray); margin-top: 6px; }
.lp-footer a.back-link { display: inline-block; margin-top: 18px; font-size: 12px; color: var(--accent); border-bottom: 1px solid var(--accent); }
@media (max-width: 900px) { .lp-sticky-cta a span.full { display: none; } .lp-footer { padding-bottom: 90px; } }

/* ===== MAGAZINE / COLUMN ===== */
.mag-section { background: var(--bg-alt); padding: 100px 0; }
.mag-header-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 48px; flex-wrap: wrap; }
.mag-byline { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.mag-byline-photo { width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; font-family: Georgia, serif; flex-shrink: 0; }
.mag-byline-name { font-size: 12.5px; color: var(--gray-dark); }
.mag-byline-name strong { color: var(--navy); font-weight: 700; }

.mag-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.mag-card {
  background: #fff; border: 1px solid var(--border); overflow: hidden;
  opacity: 0; transform: translateX(-50px) rotate(-5deg) scale(0.94);
  transition: opacity 0.75s cubic-bezier(.22,.61,.36,1), transform 0.75s cubic-bezier(.22,.61,.36,1);
}
.mag-card:nth-child(2) { transform: translateY(46px) scale(0.94); }
.mag-card:nth-child(3n) { transform: translateX(50px) rotate(5deg) scale(0.94); }
.mag-card:nth-child(2) { transition-delay: 0.12s; }
.mag-card:nth-child(3n) { transition-delay: 0.24s; }
.mag-card.in-view { opacity: 1; transform: translate(0,0) rotate(0) scale(1); }
.mag-card:hover { box-shadow: 0 20px 44px rgba(0,20,40,0.1); transform: translateY(-4px) !important; }
.mag-card-img { height: 190px; background-size: cover; background-position: center; position: relative; }
.mag-card-cat { position: absolute; top: 14px; left: 14px; background: var(--accent); color: #fff; font-size: 10px; font-weight: 700; padding: 4px 12px; letter-spacing: 0.06em; }
.mag-card-body { padding: 24px 24px 26px; }
.mag-card-date { font-size: 11px; color: var(--gray); letter-spacing: 0.05em; font-family: Georgia, serif; margin-bottom: 10px; }
.mag-card-title { font-size: 15.5px; font-weight: 700; color: var(--navy); line-height: 1.6; margin-bottom: 10px; }
.mag-card-excerpt { font-size: 12.5px; color: var(--gray-dark); line-height: 1.85; }
.mag-card-more { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; color: var(--accent); margin-top: 16px; letter-spacing: 0.04em; }
@media (max-width: 900px) {
  .mag-grid { grid-template-columns: 1fr; }
  .mag-card, .mag-card:nth-child(2), .mag-card:nth-child(3n) { transform: translateY(40px) scale(0.96); transition-delay: 0s; }
}

/* --- magazine telop ticker (index.html only) --- */
.mag-ticker {
  overflow: hidden;
  margin-top: 48px;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
}
.mag-ticker-track {
  display: flex;
  gap: 24px;
  width: max-content;
  padding: 0 24px;
  animation: magTickerScroll 42s linear infinite;
}
.mag-ticker:hover .mag-ticker-track { animation-play-state: paused; }
@keyframes magTickerScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.mag-ticker-card {
  flex: 0 0 320px;
  background: #fff;
  border: 1px solid var(--border);
  overflow: hidden;
  text-decoration: none;
  transition: box-shadow var(--t), transform var(--t);
}
.mag-ticker-card:hover { box-shadow: 0 20px 40px rgba(0,20,40,0.1); transform: translateY(-4px); }
@media (max-width: 900px) {
  .mag-ticker-card { flex: 0 0 250px; }
  .mag-ticker-track { animation-duration: 28s; }
}

/* ===== REVEAL ===== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ===== MEDIA ===== */
@media (max-width: 1024px) {
  .footer-top { flex-direction: column; }
}
@media (max-width: 900px) {
  .free-space { grid-template-columns: 1fr; padding: 60px 0; }
  .hero-caption { left: 24px; right: 24px; }
  .hero-nav { display: none; }
  .cards-grid, .cards-grid-5, .strength-grid, .market-grid, .sdg-grid { grid-template-columns: 1fr; }
  .footer-menu-cols { gap: 32px; }
  .greeting-wrap { grid-template-columns: 1fr; }
  .greeting-photo { display: none; }
  .img-section { grid-template-columns: 1fr; }
  .img-section-photo { min-height: 240px; }
  .cta-band-inner { flex-direction: column; text-align: center; }
  .flow-steps { flex-direction: column; gap: 20px; }
  .flow-steps::before { display: none; }
  .vmv-grid { grid-template-columns: 1fr; }
  .vmv-values { grid-template-columns: 1fr 1fr; }
  .footer-cta { padding: 14px 44px 14px 16px; }
  .footer-cta-inner { flex-direction: column; gap: 10px; }
}
