*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Noto Sans JP', 'Yu Gothic', 'YuGothic', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif; color: #1c1c1c; background: #fff; overflow-x: hidden; line-height: 1.6; }
:root {
  --accent: #4ecb6a; --accent-hover: #3ab857; --accent-light: #edfaf1;
  --accent-mid: #72d988; --accent-pale: #f2fdf5; --text: #1c1c1c;
  --text-light: #5a5a5a; --text-muted: #a0a0a0; --border: #e8e8e8;
  --bg-off: #f9faf8; --max: 1180px; --max-wide: 1380px;
}
/* HEADER */
header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: rgba(255,255,255,.88); border-bottom: 1px solid var(--border); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.header-inner { max-width: 1520px; margin: 0 auto; padding: 0 32px; height: 88px; display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 20px; text-decoration: none; color: var(--text); }
.logo img { display: block; height: 72px; width: auto; }
.logo-text { display: flex; flex-direction: column; gap: 4px; }
.logo-text .logo-ja { font-size: 28px; font-weight: 700; letter-spacing: 0.04em; }
.logo-text .logo-en { font-family: 'Cormorant Garamond', serif; font-size: 14px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted); }
nav { display: flex; align-items: center; }
nav a { display: flex; flex-direction: column; align-items: center; padding: 0 24px; height: 88px; justify-content: center; text-decoration: none; color: var(--text); font-size: 14px; font-weight: 600; letter-spacing: 0.04em; position: relative; transition: color .2s; }
nav a::after { content: ''; position: absolute; bottom: 0; left: 24px; right: 24px; height: 3px; background: var(--accent); transform: scaleX(0); transition: transform .25s; border-radius: 2px 2px 0 0; }
nav a:hover { color: var(--accent-hover); }
nav a:hover::after, nav a.active::after { transform: scaleX(1); }
nav a.active { color: var(--accent-hover); }
nav a .nav-en { font-family: 'Cormorant Garamond', serif; font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); margin-top: 4px; transition: color .2s; }
nav a:hover .nav-en { color: var(--accent); }
.hdr-cta { display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; padding: 10px 22px; border-radius: 40px; text-decoration: none; transition: background .2s, transform .15s; box-shadow: 0 4px 16px rgba(78,203,106,.28); white-space: nowrap; }
.hdr-cta:hover { background: var(--accent-hover); transform: translateY(-1px); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.header-group-logo img { display: block; height: 28px; width: auto; }
/* SECTION */
.sec { padding: 96px 0; }
.sec-alt { background: var(--bg-off); }
.container { max-width: var(--max); margin: 0 auto; padding: 0 40px; }
.sec-label { display: inline-flex; align-items: center; gap: 8px; font-family: 'Cormorant Garamond', serif; font-size: 10px; font-weight: 700; letter-spacing: 0.28em; text-transform: uppercase; color: var(--accent-hover); margin-bottom: 14px; }
.sec-label::before { content: ''; width: 20px; height: 2px; background: var(--accent); border-radius: 1px; }
.sec-title { font-size: clamp(24px, 3vw, 36px); font-weight: 700; line-height: 1.45; letter-spacing: 0.01em; margin-bottom: 18px; }
/* PAGE HERO */
.page-hero { margin-top: 88px; position: relative; overflow: hidden; background: #111a13; padding: 80px 0 72px; }
.page-hero-bg { position: absolute; inset: 0; opacity: .62; }
.page-hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero .container { position: relative; z-index: 1; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 12px; color: rgba(255,255,255,.55); margin-bottom: 18px; }
.breadcrumb a { color: rgba(255,255,255,.55); text-decoration: none; transition: color .2s; }
.breadcrumb a:hover { color: #fff; }
.page-title { font-size: clamp(28px, 3.5vw, 44px); font-weight: 700; line-height: 1.3; color: #fff; }
.page-title-en { display: block; font-family: 'Cormorant Garamond', serif; font-size: 13px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(255,255,255,.5); margin-top: 8px; }
/* SUB NAV */
.page-subnav { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 88px; z-index: 50; }
.page-subnav ul { display: flex; align-items: center; list-style: none; overflow-x: auto; }
.page-subnav ul li a { display: flex; align-items: center; height: 44px; padding: 0 28px; font-size: 13px; font-weight: 600; color: var(--text-light); text-decoration: none; white-space: nowrap; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.page-subnav ul li a:hover { color: var(--accent-hover); border-bottom-color: var(--accent); }
/* COMPANY TABLE */
.data-tbl { width: 100%; border-collapse: collapse; max-width: 760px; }
.data-tbl tr { border-bottom: 1px solid var(--border); }
.data-tbl th { text-align: left; font-size: 11px; font-weight: 600; color: var(--text-muted); padding: 16px 20px 16px 0; white-space: nowrap; vertical-align: top; width: 110px; }
.data-tbl td { font-size: 14px; line-height: 1.9; padding: 16px 0; color: var(--text); }
/* CEO LAYOUT */
.ceo-layout { display: grid; grid-template-columns: 260px 1fr; gap: 56px; align-items: start; margin-top: 40px; }
.ceo-photo { border-radius: 12px; overflow: hidden; background: var(--accent-pale); aspect-ratio: 3/4; display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-size: 13px; border: 1px solid var(--border); }
.ceo-message-wrap .ceo-role { font-size: 11px; font-weight: 600; color: var(--text-muted); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 6px; }
.ceo-message-wrap .ceo-name { font-size: 20px; font-weight: 700; margin-bottom: 28px; letter-spacing: 0.04em; }
.ceo-message-wrap .ceo-body { font-size: 15px; line-height: 2.2; color: var(--text-light); }
/* QUALIFIED */
.qualified-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; margin-top: 36px; }
.qualified-row { background: #fff; display: flex; justify-content: space-between; align-items: center; padding: 18px 24px; gap: 16px; }
.qualified-row .q-name { font-size: 14px; font-weight: 500; }
.qualified-row .q-count { font-family: 'Noto Sans JP', 'Yu Gothic', 'YuGothic', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif; font-size: 26px; font-weight: 700; color: var(--accent-hover); white-space: nowrap; }
.qualified-row .q-unit { font-size: 12px; color: var(--text-muted); }
.qualified-note { font-size: 12px; color: var(--text-muted); margin-top: 14px; }
/* HISTORY */
.history-list { margin-top: 36px; display: flex; flex-direction: column; gap: 0; border-left: 2px solid var(--accent-mid); padding-left: 32px; }
.history-item { position: relative; padding: 0 0 32px; }
.history-item::before { content: ''; position: absolute; left: -38px; top: 6px; width: 12px; height: 12px; background: var(--accent); border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 2px var(--accent-mid); }
.history-year { font-family: 'Noto Sans JP', 'Yu Gothic', 'YuGothic', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif; font-size: 14px; font-weight: 700; color: var(--accent-hover); letter-spacing: 0.04em; margin-bottom: 4px; }
.history-text { font-size: 14px; line-height: 1.8; color: var(--text); }
/* ACCESS */
.access-layout { display: grid; grid-template-columns: 1fr 1.4fr; gap: 56px; align-items: start; margin-top: 36px; }
.access-map { border-radius: 12px; overflow: hidden; aspect-ratio: 4/3; background: #e8eae6; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-size: 13px; }
.access-map iframe { width: 100%; height: 100%; border: 0; display: block; }
.access-info h3 { font-size: 16px; font-weight: 700; margin-bottom: 16px; }
.access-info address { font-style: normal; font-size: 14px; line-height: 2.1; color: var(--text-light); margin-bottom: 24px; }
.access-route { background: var(--bg-off); border-radius: 8px; padding: 20px 24px; }
.access-route h4 { font-size: 12px; font-weight: 700; color: var(--text-muted); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 12px; }
.access-route ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.access-route ul li { font-size: 13px; line-height: 1.8; color: var(--text-light); padding-left: 14px; position: relative; }
.access-route ul li::before { content: '—'; position: absolute; left: 0; color: var(--accent-mid); }
/* BUTTONS */
.btn-primary { display: inline-flex; align-items: center; gap: 10px; background: var(--accent); color: #fff; font-size: 14px; font-weight: 700; padding: 14px 30px; border-radius: 40px; text-decoration: none; box-shadow: 0 6px 24px rgba(78,203,106,.35); transition: background .2s, transform .15s; }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); }
/* FOOTER */
footer { background: #143d27; color: rgba(255,255,255,.65); padding: 64px 0 32px; }
.footer-wrap { max-width: var(--max-wide); margin: 0 auto; padding: 0 40px; }
.footer-top { display: block; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.08); margin-bottom: 28px; }
.footer-brand .brand-name { font-size: 15px; font-weight: 700; color: #fff; display: block; margin-bottom: 4px; }
.footer-brand .brand-en { font-family: 'Cormorant Garamond', serif; font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,.3); }
.footer-brand .footer-addr { margin-top: 16px; font-size: 12px; line-height: 2.1; }
.footer-brand .footer-group { margin-top: 14px; font-size: 11px; color: rgba(255,255,255,.3); font-style: normal; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; }
.footer-bottom p { font-family: 'Cormorant Garamond', serif; font-size: 11px; color: rgba(255,255,255,.25); }
/* HAMBURGER */
.hamburger { display:none; flex-direction:column; justify-content:center; align-items:center; gap:5px; width:44px; height:44px; background:none; border:none; cursor:pointer; padding:0; flex-shrink:0; }
.hamburger span { display:block; width:22px; height:2px; background:var(--text); border-radius:2px; transition:transform .25s ease, opacity .2s ease; }
.nav-open .hamburger span:nth-child(1) { transform:translateY(7px) rotate(45deg); }
.nav-open .hamburger span:nth-child(2) { opacity:0; transform:scaleX(0); }
.nav-open .hamburger span:nth-child(3) { transform:translateY(-7px) rotate(-45deg); }
.mobile-nav { display:none; position:fixed; top:64px; left:0; right:0; z-index:98; }
.nav-open .mobile-nav { display:block; }
body.nav-open { overflow:hidden; }
.mobile-nav-panel { background:#fff; border-bottom:2px solid var(--accent); box-shadow:0 8px 32px rgba(0,0,0,.14); }
.mobile-nav-links { display:flex; flex-direction:column; }
.mobile-nav-links a { display:flex; align-items:center; gap:10px; padding:15px 28px; text-decoration:none; color:var(--text); font-size:15px; font-weight:600; letter-spacing:0.04em; border-bottom:1px solid var(--border); transition:background .15s, color .15s; }
.mobile-nav-links a:hover { background:var(--accent-light); color:var(--accent-hover); }
.mobile-nav-links a.active { color:var(--accent-hover); background:var(--accent-pale); }
.mobile-nav-links a .nav-en { font-family:'Cormorant Garamond',serif; font-size:11px; letter-spacing:0.14em; text-transform:uppercase; color:var(--text-muted); margin-left:6px; }
.mobile-nav-cta { padding:20px 28px 24px; }
.mobile-nav-cta a { display:flex; align-items:center; justify-content:center; gap:8px; background:var(--accent); color:#fff; font-size:14px; font-weight:700; letter-spacing:0.06em; padding:14px; border-radius:40px; text-decoration:none; box-shadow:0 4px 16px rgba(78,203,106,.28); transition:background .2s; }
.mobile-nav-cta a:hover { background:var(--accent-hover); }
.mobile-nav-overlay { display:none; position:fixed; top:64px; left:0; right:0; bottom:0; background:rgba(0,0,0,.4); z-index:97; }
.nav-open .mobile-nav-overlay { display:block; }

/* RESPONSIVE */
@media (max-width: 1280px) {
  nav a { padding: 0 10px; }
  .hdr-cta { padding: 8px 12px; font-size: 11px; gap: 5px; }
  .logo-text .logo-en { display: none; }
  .logo img { height: 52px; }
  .logo-text .logo-ja { font-size: 22px; }
  .header-group-logo { display: none; }
}
@media (max-width: 1100px) {
  .header-inner, .container, .footer-wrap { padding-left: 24px; padding-right: 24px; }
  .footer-top { grid-template-columns: 1fr; gap: 36px; }
  .ceo-layout, .access-layout { grid-template-columns: 1fr; }
  .qualified-grid { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .header-inner { height: 64px; flex-wrap: nowrap; }
  nav { display: none; }
  .hdr-cta { display: none; }
  .hamburger { display: flex; }
  .page-hero { margin-top: 64px; }
  .page-subnav { top: 64px; }
}
@media (max-width: 640px) {
  .sec { padding: 64px 0; }
}

/* ===== FOOTER ひびみっけロゴ（右端） ===== */
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; }
.footer-hibimikke { flex-shrink: 0; background: #fff; border-radius: 8px; padding: 14px 16px; max-width: 230px; }
.footer-hibimikke img { width: 175px; max-width: 100%; height: auto; display: block; margin: 0 auto; }
.footer-hibimikke-text { margin-top: 8px; font-size: 11px; line-height: 1.6; color: #333; text-align: left; }
.footer-badges { display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 640px) { .footer-top { flex-direction: column; } }
