*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; color-scheme: light; }
:root {
  --bg: #ffffff; --bg2: #f7f7f5; --border: #e8e8e4;
  --text: #111111; --muted: #555555; --red: #EC5A54;
  --nav-h: 64px;
  --px: max(40px, calc(50% - 720px));
}
body { background: #ffffff; color: #111111; font-family: 'Noto Sans JP', sans-serif; font-size: 17px; font-weight: 400; overflow-x: hidden; -webkit-font-smoothing: antialiased; }

/* Anchor offset for fixed nav */
[id] { scroll-margin-top: calc(var(--nav-h) + 16px); }

/* NAV */
nav#main-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: var(--nav-h); display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--px); background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s ease, border-color 0.3s ease;
}
nav#main-nav.nav-hero { background: var(--red); border-bottom-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.nav-logo { display: flex; align-items: center; text-decoration: none; }
.nav-logo-img { height: 36px; width: auto; display: block; }
.nav-logo-light { display: none; }
nav#main-nav.nav-hero .nav-logo-dark { display: none; }
nav#main-nav.nav-hero .nav-logo-light { display: block; }
.nav-links { display: flex; gap: 32px; list-style: none; align-items: center; }
.nav-links a { font-family: 'Montserrat', sans-serif; font-size: 13px; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text); text-decoration: none; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--red); }
nav#main-nav.nav-hero .nav-links a { color: #fff; }
nav#main-nav.nav-hero .nav-links a:hover, nav#main-nav.nav-hero .nav-links a.active { color: rgba(255,255,255,0.65); }
nav#main-nav.nav-hero .hamburger span { background: #fff; }
.nav-btn { display: inline-flex; align-items: center; font-family: 'Montserrat', sans-serif; font-size: 10px; font-weight: 900; letter-spacing: 0.15em; text-transform: uppercase; border: 1px solid var(--text); color: var(--text); background: none; padding: 8px 18px; cursor: pointer; text-decoration: none; transition: background 0.2s, color 0.2s; }
.nav-btn:hover { background: var(--text); color: #fff; }

/* HAMBURGER */
.hamburger { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 36px; height: 36px; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 100%; height: 1.5px; background: var(--text); transform-origin: center; transition: transform 0.3s ease, opacity 0.2s ease; }
.hamburger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* DRAWER */
.drawer { display: none; position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0; z-index: 190; background: #fff; overflow-y: auto; padding: 32px 24px 48px; flex-direction: column; }
.drawer.is-open { display: flex; }
.drawer-list { list-style: none; border-top: 1px solid var(--border); }
.drawer-list li { border-bottom: 1px solid var(--border); }
.drawer-list li a { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; font-family: 'Montserrat', sans-serif; font-size: 16px; font-weight: 900; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text); text-decoration: none; }
.drawer-list li a span { color: var(--red); }
.drawer-list li a.active { color: var(--red); }

/* COMMON */
.page-inner { padding-top: var(--nav-h); min-height: 100vh; display: flex; flex-direction: column; }
.page-inner > footer { margin-top: auto; }
.sec { padding: 80px var(--px); background: #ffffff; overflow: hidden; }
.sec-sm { padding: 56px var(--px); background: #ffffff; overflow: hidden; }
.sec-alt { background: #ffffff !important; }
.sec-label {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(40px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 40px;
  transition: opacity 0.6s ease, transform 0.6s ease;
  line-height: 1.1;
  white-space: normal;
  word-break: break-word;
}
/* アニメーション：JSが有効な場合のみ非表示スタート */
.js-anim .sec-label { opacity: 0; transform: translateX(-16px); }
.js-anim .sec-label.on { opacity: 1; transform: none; }
.sec-heading { font-family: 'Montserrat', sans-serif; font-weight: 900; font-size: clamp(48px, 6vw, 80px); line-height: 1.0; letter-spacing: -0.02em; color: var(--text); margin-bottom: 32px; }
.sec-heading span { color: var(--red); }
.sec-body { font-size: 14px; line-height: 2.3; color: var(--muted); max-width: 560px; font-weight: 500; }
.reveal { transition: opacity 0.7s ease, transform 0.7s ease; }
.js-anim .reveal { opacity: 0; transform: translateY(20px); }
.js-anim .reveal.on { opacity: 1; transform: none; }

/* BUTTONS */
.btn-solid { display: inline-block; font-family: 'Montserrat', sans-serif; font-size: 11px; font-weight: 900; letter-spacing: 0.15em; text-transform: uppercase; background: var(--red); color: #fff; padding: 14px 28px; text-decoration: none; cursor: pointer; border: none; transition: opacity 0.2s; }
.btn-solid:hover { opacity: 0.75; }
.btn-outline { display: inline-block; font-family: 'Montserrat', sans-serif; font-size: 11px; font-weight: 900; letter-spacing: 0.15em; text-transform: uppercase; border: 1px solid var(--red); color: var(--red); padding: 14px 28px; text-decoration: none; cursor: pointer; background: none; transition: border-color 0.2s, opacity 0.2s; }
.btn-outline:hover { opacity: 0.7; }

/* HERO */
.hero { min-height: calc(100vh - var(--nav-h)); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 80px var(--px) 60px; background: var(--red); gap: 56px; position: relative; }
.hero::before { content: ''; position: absolute; top: calc(-1 * var(--nav-h)); left: 0; right: 0; height: var(--nav-h); background: var(--red); }
.hero-brand { font-family: 'Montserrat', sans-serif; font-weight: 900; font-size: clamp(72px, 13vw, 160px); line-height: 1.1; letter-spacing: -0.02em; color: var(--text); }
.hero-brand span { color: var(--red); }
.hero-logo { width: clamp(320px, 60vw, 800px); height: auto; display: block; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

/* SCROLL INDICATOR */
.scroll-ind { display: flex; flex-direction: column; align-items: center; gap: 10px; position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%); }
.scroll-ind__label { font-family: 'Montserrat', sans-serif; font-size: 9px; letter-spacing: 0.3em; text-transform: uppercase; color: rgba(255,255,255,0.7); }
.scroll-ind__line { width: 1px; height: 48px; background: #ffffff; transform-origin: top center; animation: scrollLine 2s ease-in-out infinite; }
@keyframes scrollLine {
  0%   { transform: scaleY(0); opacity: 1; }
  70%  { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

/* NEWS ARTICLE */
.article-header { padding: 64px var(--px) 48px; border-bottom: 1px solid var(--border); }
.article-meta { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.article-date { font-size: 11px; color: var(--muted); letter-spacing: 0.05em; }
.article-cat { font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--red); }
.article-title { font-family: 'Noto Sans JP', sans-serif; font-size: clamp(20px, 3vw, 30px); font-weight: 700; line-height: 1.6; color: var(--text); }
.article-body { padding: 56px var(--px) 80px; }
.article-body p { font-size: 14px; line-height: 2.4; color: var(--text); margin-bottom: 24px; }
.article-body p:last-child { margin-bottom: 0; }
.article-body h2 { font-family: 'Noto Sans JP', sans-serif; font-size: 20px; font-weight: 700; color: var(--text); margin: 48px 0 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border); letter-spacing: 0.02em; line-height: 1.6; }
.article-body h3 { font-family: 'Noto Sans JP', sans-serif; font-size: 17px; font-weight: 700; color: var(--text); margin: 36px 0 12px; padding-left: 12px; border-left: 3px solid var(--red); line-height: 1.6; }
.article-body h4 { font-family: 'Noto Sans JP', sans-serif; font-size: 15px; font-weight: 700; color: var(--text); margin: 28px 0 10px; line-height: 1.6; }
.article-body h2:first-child, .article-body h3:first-child, .article-body h4:first-child { margin-top: 0; }
.article-body ul, .article-body ol { margin: 0 0 24px; padding-left: 1.4em; }
.article-body ul li, .article-body ol li { font-size: 14px; line-height: 2.2; color: var(--text); margin-bottom: 4px; }
.article-body ul ul, .article-body ol ol, .article-body ul ol, .article-body ol ul { margin-bottom: 0; margin-top: 4px; }
.article-body a:not(.article-back) { color: var(--red); text-decoration: underline; text-underline-offset: 3px; transition: opacity 0.2s; }
.article-body a:not(.article-back):hover { opacity: 0.7; }
.article-body blockquote { margin: 32px 0; padding: 20px 24px; border-left: 3px solid var(--red); background: var(--bg2); }
.article-body blockquote p { font-size: 14px; line-height: 2.2; color: var(--muted); margin-bottom: 8px; }
.article-body blockquote p:last-child { margin-bottom: 0; }
.article-body hr { border: none; border-top: 1px solid var(--border); margin: 40px 0; }
.article-body table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 13px; }
.article-body table th { font-weight: 700; color: var(--text); text-align: left; padding: 12px 16px; border-bottom: 2px solid var(--text); background: var(--bg2); }
.article-body table td { color: var(--text); padding: 12px 16px; border-bottom: 1px solid var(--border); }
.article-body table tr:hover td { background: var(--bg2); }
.article-body code { font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace; font-size: 12px; background: var(--bg2); color: var(--red); padding: 2px 6px; border-radius: 3px; }
.article-body pre { margin: 24px 0; padding: 20px 24px; background: #1e1e1e; border-radius: 4px; overflow-x: auto; }
.article-body pre code { background: none; color: #d4d4d4; padding: 0; font-size: 13px; line-height: 1.8; }
.article-body img { max-width: 100%; height: auto; margin: 24px 0; display: block; }
.article-body input[type="checkbox"] { width: 14px; height: 14px; accent-color: var(--red); margin-right: 6px; vertical-align: middle; pointer-events: none; }
.article-body .task-list-item { list-style: none; margin-left: -1.4em; }
.article-body strong { font-weight: 700; }
.article-body em { font-style: italic; }
.article-body del { color: var(--muted); }
.article-back { display: inline-flex; align-items: center; gap: 8px; font-family: 'Montserrat', sans-serif; font-size: 10px; font-weight: 900; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); text-decoration: none; margin-bottom: 48px; transition: color 0.2s; }
.article-back:hover { color: var(--text); }
.article-back::before { content: '←'; }

/* NEWS FILTER */
.news-filter { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 40px; }
.news-filter-btn { font-family: 'Montserrat', sans-serif; font-size: 10px; font-weight: 900; letter-spacing: 0.18em; text-transform: uppercase; border: 1px solid var(--border); color: var(--muted); background: none; padding: 8px 18px; cursor: pointer; transition: border-color 0.2s, color 0.2s, background 0.2s; }
.news-filter-btn:hover { border-color: var(--text); color: var(--text); }
.news-filter-btn.is-active { border-color: var(--red); color: var(--red); background: none; }
.news-list--page { margin-top: 24px; }


/* NEWS ROWS */
.news-list { margin-top: 40px; }
.news-row { display: grid; grid-template-columns: 140px 110px 1fr; gap: 20px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--border); cursor: pointer; transition: opacity 0.2s; text-decoration: none; color: inherit; }
.news-row:first-child { border-top: 1px solid var(--border); }
.news-row:hover { opacity: 0.55; }
.news-date { font-size: 13px; color: var(--muted); letter-spacing: 0.05em; white-space: nowrap; font-weight: 400; }
.news-cat { font-size: 13px; letter-spacing: 0.05em; color: var(--red); white-space: nowrap; font-weight: 500; }
.news-title { font-size: 14px; color: var(--text); line-height: 1.7; font-weight: 500; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 48px; }
.pg-btn { font-family: 'Montserrat', sans-serif; font-size: 11px; font-weight: 900; letter-spacing: 0.1em; background: none; border: 1px solid var(--border); color: var(--muted); width: 36px; height: 36px; cursor: pointer; transition: border-color 0.2s, color 0.2s; }
.pg-btn:hover:not(:disabled) { border-color: var(--text); color: var(--text); }
.pg-btn.is-active { border-color: var(--text); color: var(--text); background: var(--text); color: #fff; }
.pg-btn:disabled { opacity: 0.3; cursor: default; }

/* LAYOUT */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.big-quote { font-size: clamp(26px, 3.6vw, 44px); font-weight: 400; line-height: 1.5; color: var(--text); margin-bottom: 32px; }

/* PILLARS */
.pillars { display: grid; grid-template-columns: repeat(3,1fr); }
.pillar { padding: 40px 32px; border-right: 1px solid var(--border); }
.pillar:last-child { border-right: none; }
.pillar-num { font-size: 9px; letter-spacing: 0.25em; color: var(--muted); margin-bottom: 20px; text-transform: uppercase; }
.pillar-title { font-family: 'Montserrat', sans-serif; font-size: 15px; font-weight: 900; color: var(--text); margin-bottom: 14px; line-height: 1.3; }
.pillar-body { font-size: 12px; color: var(--muted); line-height: 2; }

/* M&A */
.ma-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border); margin-top: 48px; }
.ma-item { background: #ffffff; padding: 32px; }
.ma-num { font-size: 9px; letter-spacing: 0.25em; text-transform: uppercase; color: var(--red); margin-bottom: 10px; }
.ma-title { font-size: 14px; font-weight: 500; color: var(--text); margin-bottom: 8px; }
.ma-body { font-size: 12px; color: var(--muted); line-height: 2; }


/* CAREERS */
.careers-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: #ffffff; margin-top: 48px; }
.career-card { background: #ffffff; padding: 40px 32px; display: flex; flex-direction: column; }
.career-num { font-size: 9px; letter-spacing: 0.25em; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; }
.career-name { font-family: 'Montserrat', sans-serif; font-size: 22px; font-weight: 900; color: var(--text); margin-bottom: 2px; }
.career-sub { font-size: 11px; color: var(--muted); margin-bottom: 10px; }
.career-cat { font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--red); margin-bottom: 16px; }
.career-desc { font-size: 12px; color: var(--muted); line-height: 2.1; flex: 1; margin-bottom: 28px; }
.career-link { display: inline-block; font-family: 'Montserrat', sans-serif; font-size: 10px; font-weight: 900; letter-spacing: 0.15em; text-transform: uppercase; background: var(--text); color: #fff; padding: 11px 22px; text-decoration: none; transition: opacity 0.2s; align-self: flex-start; }
.career-link:hover { opacity: 0.7; }
.career-link-disabled { display: inline-block; font-family: 'Montserrat', sans-serif; font-size: 10px; font-weight: 900; letter-spacing: 0.15em; text-transform: uppercase; border: 1px solid var(--border); color: var(--muted); padding: 11px 22px; align-self: flex-start; }


/* CONTACT */
.form-group { margin-bottom: 22px; }
.form-label { display: block; font-size: 12px; font-weight: 500; letter-spacing: 0.05em; color: var(--text); margin-bottom: 8px; }
.req { color: var(--red); }
.contact-form-wrap { max-width: 560px; margin: 48px auto 0; }
.form-group input, .form-group select, .form-group textarea { width: 100%; border: none; border-bottom: 1px solid var(--border); background: transparent; color: var(--text); padding: 10px 0; font-family: 'Noto Sans JP', sans-serif; font-size: 13px; outline: none; transition: border-color 0.2s; -webkit-appearance: none; border-radius: 0; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--text); }
.form-group textarea { height: 100px; resize: none; }
.form-note { font-size: 10px; color: var(--muted); line-height: 1.9; margin-top: 16px; }
.form-error { display: none; font-size: 10px; color: var(--red); margin-top: 5px; }
.form-group.has-error .form-error { display: block; }
.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea { border-bottom-color: var(--red); }
.form-privacy { display: flex; justify-content: center; align-items: center; gap: 8px; cursor: pointer; margin-top: 32px; }
.form-privacy input[type="checkbox"] { width: 16px; height: 16px; flex-shrink: 0; accent-color: var(--text); cursor: pointer; }
.form-privacy span { font-size: 13px; color: var(--muted); line-height: 1.5; }
.form-privacy a { color: var(--text); text-decoration: underline; }
.contact-form-wrap .btn-solid { display: block; width: 100%; text-align: center; margin-top: 32px; padding: 15px; font-size: 12px; }
.contact-tabs { display: flex; gap: 0; margin: 48px auto 0; max-width: 560px; border-bottom: 1px solid var(--border); }
.contact-tab { flex: 1; font-family: 'Montserrat', sans-serif; font-size: 12px; font-weight: 900; letter-spacing: 0.15em; text-transform: uppercase; background: none; border: none; border-bottom: 2px solid transparent; color: var(--muted); padding: 16px 0; cursor: pointer; margin-bottom: -1px; transition: color 0.2s, border-color 0.2s; }
.contact-tab.is-active { color: var(--text); border-bottom-color: var(--red); }
.contact-panel.is-hidden { display: none; }
.form-complete { text-align: center; padding: 64px 0; }
.form-complete p { font-size: 15px; line-height: 2; color: var(--text); }
.contact-form-wrap .btn-solid:disabled { opacity: 0.5; pointer-events: none; }
.ci-h { font-family: 'Montserrat', sans-serif; font-size: 15px; font-weight: 900; color: var(--text); margin: 28px 0 8px; }
.ci-h:first-child { margin-top: 0; }
.ci-p { font-size: 13px; color: var(--muted); line-height: 2; }

/* RED SECTION */
.sec-red { background: var(--red); }
.sec-red .sec-label { color: #fff; }
.sec-red .sec-label::before { background: #fff; }
.sec-red .big-quote { color: #fff; }
.sec-red .sec-body { color: #fff; font-weight: 400; }
.sec-red .btn-outline { border-color: rgba(255,255,255,0.6); color: #fff; }
.sec-red .btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.1); }

/* FOOTER */
footer { background: #ffffff; border-top: 1px solid #e8e8e4; }
.footer-wrap { padding: 0 var(--px); }
.footer-inner { display: flex; flex-direction: row; justify-content: center; align-items: center; padding: clamp(32px, 4vw, 48px) 0; gap: clamp(32px, 5vw, 80px); flex-wrap: wrap; }
.footer-logo { display: flex; align-items: center; text-decoration: none; }
.footer-logo span { color: var(--red); }
.footer-logo-img { height: 32px; width: auto; display: block; }
.footer-tagline { font-size: 12px; color: var(--muted); margin-top: 8px; }
.footer-navs { display: flex; gap: clamp(24px, 3vw, 56px); flex-wrap: wrap; justify-content: center; align-items: center; }
.footer-col { display: flex; flex-direction: row; align-items: center; gap: 32px; flex-wrap: wrap; justify-content: center; }
.footer-primary { font-family: 'Montserrat', sans-serif; font-size: 12px; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red); text-decoration: none; transition: color 0.2s; }
.footer-primary:hover { color: var(--text); }
.footer-col ul { list-style: none; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.footer-secondary { font-size: 11px; color: var(--muted); text-decoration: none; transition: color 0.2s; }
.footer-secondary:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: center; align-items: center; gap: 24px; padding: 20px 0 28px; }
.footer-copy { font-size: 10px; color: var(--muted); }
.footer-policy { font-size: 10px; color: var(--muted); text-decoration: none; transition: color 0.2s; }
.footer-policy:hover { color: var(--text); }

/* PRIVACY POLICY */
.privacy-body { margin: 48px 0 0; }
.privacy-body p { font-size: 14px; line-height: 1.9; color: var(--text); margin: 0 0 20px; }
.privacy-body h2 { font-family: 'Noto Sans JP', sans-serif; font-size: 16px; font-weight: 700; margin: 40px 0 12px; letter-spacing: 0.02em; }
.privacy-body ul { margin: 0 0 20px; padding-left: 1.4em; }
.privacy-body ul li { font-size: 14px; line-height: 1.9; color: var(--text); margin-bottom: 6px; }
.privacy-body a { color: var(--text); text-decoration: underline; }

/* RESPONSIVE */
@media (max-width: 800px) {
  :root { --px: 20px; }
  nav#main-nav { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-btn { display: none; }
  .hamburger { display: flex; }
  .sec-label { font-size: clamp(24px, 7vw, 56px); gap: 10px; white-space: normal; word-break: break-word; }
  .sec-label::before { width: 4px; }
  .hero { padding: 60px var(--px) 48px; min-height: 100svh; min-height: 100dvh; gap: 40px; }
  .hero-brand { font-size: clamp(64px, 16vw, 100px); }
  .sec { padding: 56px var(--px); }
  .sec-sm { padding: 40px var(--px); }
  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .pillars { grid-template-columns: 1fr; }
  .pillar { border-right: none; border-bottom: 1px solid var(--border); }
  .pillar:last-child { border-bottom: none; }
  .ma-grid { grid-template-columns: 1fr; }
  .co-block { padding: 48px var(--px); }
  .co-inner { grid-template-columns: 1fr; gap: 28px; }
  .careers-grid { display: flex; flex-direction: column; background: transparent; gap: 0; }
  .career-card { border-bottom: 1px solid var(--border); padding: 32px 0; }
  .news-row { grid-template-columns: 1fr; gap: 5px; }
  .footer-navs { gap: 24px; }

  /* SP section fade-in */
  .js-anim .reveal {
    transform: translateY(32px);
    transition: opacity 0.8s ease, transform 0.8s ease;
  }
}
