/*
Theme Name: Keiei Corporate Theme
Theme URI: https://example.com/keiei-corporate-theme
Author: ChatGPT
Description: Japanese corporate WordPress theme for consulting, finance, recruiting and back-office support companies. Original implementation inspired by a compact service-led corporate website structure.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: keiei-corporate
Tags: custom-logo, custom-menu, featured-images, one-column, two-columns, block-styles, wide-blocks
*/

:root {
  --navy: #0c2444;
  --navy2: #123b67;
  --blue: #1f5d99;
  --gold: #c79b42;
  --gold2: #e7c76f;
  --ink: #172233;
  --muted: #607083;
  --line: #dfe7ef;
  --bg: #f5f8fb;
  --white: #fff;
  --r: 18px;
  --shadow: 0 18px 45px rgba(12,36,68,.12);
  --soft: 0 9px 24px rgba(12,36,68,.08);
  --w: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", YuGothic, Meiryo, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--bg); font-family: var(--font); line-height: 1.8; letter-spacing: .02em; }
a { color: var(--blue); text-decoration: none; transition: .2s; }
a:hover, a:focus { color: var(--navy); }
img { max-width: 100%; height: auto; }
.screen-reader-text, .skip-link { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }
.skip-link:focus { z-index: 9999; top: 16px; left: 16px; width: auto; height: auto; padding: 10px 14px; color: #fff; background: var(--navy); clip: auto; border-radius: 999px; }
.kc-container { width: min(calc(100% - 40px), var(--w)); margin-inline: auto; }

.kc-site-header { position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,.94); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.admin-bar .kc-site-header { top: 32px; }
.kc-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.kc-branding { display: flex; align-items: center; gap: 12px; min-width: 210px; }
.kc-custom-logo img { max-height: 48px; width: auto; }
.kc-site-title { margin: 0; font-size: clamp(1.05rem,2vw,1.35rem); font-weight: 900; line-height: 1.25; }
.kc-site-title a { color: var(--navy); }
.kc-site-description { margin: 2px 0 0; color: var(--muted); font-size: .78rem; }
.kc-primary-nav { display: flex; align-items: center; gap: 14px; }
.kc-menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 999px; background: #eef4f8; color: var(--navy); cursor: pointer; }
.kc-menu-toggle .kc-bars, .kc-menu-toggle .kc-bars::before, .kc-menu-toggle .kc-bars::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 99px; content: ""; }
.kc-menu-toggle .kc-bars { position: relative; margin: auto; }
.kc-menu-toggle .kc-bars::before, .kc-menu-toggle .kc-bars::after { position: absolute; left: 0; }
.kc-menu-toggle .kc-bars::before { top: -6px; }
.kc-menu-toggle .kc-bars::after { top: 6px; }
.kc-menu, .kc-menu ul { padding: 0; margin: 0; list-style: none; }
.kc-menu { display: flex; align-items: center; gap: 3px; }
.kc-menu li { position: relative; }
.kc-menu a { display: flex; align-items: center; gap: 6px; padding: 10px 12px; color: var(--ink); font-weight: 800; font-size: .92rem; border-radius: 999px; }
.kc-menu a:hover, .kc-menu .current-menu-item > a, .kc-menu .current_page_item > a, .kc-menu .current-menu-ancestor > a { color: var(--navy); background: #eef4f8; }
.kc-menu .menu-item-has-children > a::after, .kc-menu .page_item_has_children > a::after { width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; content: ""; transform: rotate(45deg) translateY(-2px); }
.kc-menu ul { position: absolute; top: calc(100% + 8px); left: 0; z-index: 10; min-width: 250px; padding: 10px; visibility: hidden; opacity: 0; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--soft); transform: translateY(8px); transition: .18s; }
.kc-menu li:hover > ul, .kc-menu li:focus-within > ul { visibility: visible; opacity: 1; transform: translateY(0); }
.kc-menu ul a { width: 100%; justify-content: flex-start; border-radius: 12px; }
.kc-header-cta, .kc-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 18px; border-radius: 999px; font-weight: 900; }
.kc-header-cta { color: #fff; background: linear-gradient(135deg,var(--navy),var(--blue)); box-shadow: 0 8px 20px rgba(12,36,68,.15); white-space: nowrap; }
.kc-header-cta:hover { color: #fff; transform: translateY(-1px); }

.kc-hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(circle at 20% 20%, rgba(231,199,111,.22), transparent 28%), linear-gradient(135deg, rgba(12,36,68,.98), rgba(18,59,103,.96)); }
.kc-hero::after { position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 46px 46px; content: ""; }
.kc-hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0,1.1fr) minmax(300px,.9fr); gap: 48px; align-items: center; min-height: min(720px, calc(100vh - 76px)); padding-block: 88px; }
.kc-eyebrow { display: inline-flex; gap: 8px; align-items: center; padding: 6px 12px; margin: 0 0 18px; color: var(--gold2); background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); border-radius: 999px; font-size: .82rem; font-weight: 900; letter-spacing: .08em; }
.kc-eyebrow::before { width: 8px; height: 8px; background: var(--gold2); border-radius: 50%; content: ""; }
.kc-hero-title { margin: 0; font-size: clamp(2.1rem,5vw,4.55rem); line-height: 1.15; }
.kc-hero-title span { display: block; color: var(--gold2); }
.kc-hero-text { max-width: 720px; margin: 22px 0 0; color: rgba(255,255,255,.84); font-size: clamp(1rem,2vw,1.18rem); }
.kc-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.kc-button-primary { color: var(--navy); background: linear-gradient(135deg,#f2d98d,var(--gold)); box-shadow: 0 14px 28px rgba(199,155,66,.25); }
.kc-button-primary:hover { color: var(--navy); transform: translateY(-2px); }
.kc-button-secondary { color: #fff; background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.24); }
.kc-button-secondary:hover { color: #fff; background: rgba(255,255,255,.15); }
.kc-hero-panel { padding: 28px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); border-radius: 28px; box-shadow: 0 24px 70px rgba(0,0,0,.18); backdrop-filter: blur(12px); }
.kc-hero-panel-title { margin: 0 0 16px; color: var(--gold2); font-size: 1.1rem; }
.kc-hero-list { display: grid; gap: 12px; padding: 0; margin: 0; list-style: none; }
.kc-hero-list li { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; padding: 14px; background: rgba(255,255,255,.1); border-radius: 16px; }
.kc-hero-list li::before { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; color: var(--navy); background: var(--gold2); border-radius: 50%; content: "✓"; font-size: .78rem; font-weight: 900; }

.kc-section { padding-block: clamp(64px,8vw,108px); }
.kc-section-tight { padding-block: clamp(42px,6vw,72px); }
.kc-section-white { background: #fff; }
.kc-section-gradient { background: linear-gradient(180deg,#fff,var(--bg)); }
.kc-section-head { display: grid; grid-template-columns: minmax(0,.85fr) minmax(280px,.55fr); gap: 28px; align-items: end; margin-bottom: 34px; }
.kc-section-kicker { display: inline-block; margin-bottom: 8px; color: var(--gold); font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.kc-section-title { margin: 0; color: var(--navy); font-size: clamp(1.65rem,3vw,2.55rem); line-height: 1.35; }
.kc-section-description { margin: 0; color: var(--muted); }
.kc-grid { display: grid; gap: 22px; }
.kc-grid-2 { grid-template-columns: repeat(2,minmax(0,1fr)); }
.kc-grid-3 { grid-template-columns: repeat(3,minmax(0,1fr)); }
.kc-card { padding: 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--soft); }
.kc-card-hover { transition: .2s; }
.kc-card-hover:hover { border-color: rgba(199,155,66,.55); box-shadow: var(--shadow); transform: translateY(-3px); }
.kc-service-card { display: flex; flex-direction: column; min-height: 100%; }
.kc-service-icon, .kc-reason-number { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin-bottom: 18px; color: var(--navy); background: linear-gradient(135deg,#f4df9c,var(--gold)); border-radius: 16px; font-size: 1.2rem; font-weight: 900; }
.kc-card h3 { margin: 0 0 10px; color: var(--navy); font-size: 1.18rem; line-height: 1.45; }
.kc-card p { margin: 0; color: var(--muted); }
.kc-card ul { padding-left: 1.25em; margin: 16px 0 0; color: var(--muted); }
.kc-card-link { display: inline-flex; gap: 6px; margin-top: auto; padding-top: 18px; color: var(--blue); font-weight: 900; }
.kc-card-link::after { content: "→"; }
.kc-band { color: #fff; background: linear-gradient(135deg,var(--navy),var(--navy2)); }
.kc-band .kc-section-title, .kc-band .kc-section-kicker { color: #fff; }
.kc-band .kc-section-description, .kc-band .kc-card p { color: rgba(255,255,255,.76); }
.kc-band .kc-card { color: #fff; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.14); box-shadow: none; }
.kc-band .kc-card h3 { color: #fff; }
.kc-profile { display: grid; grid-template-columns: minmax(280px,.75fr) minmax(0,1.25fr); gap: 34px; align-items: center; }
.kc-profile-photo { position: relative; min-height: 360px; overflow: hidden; color: #fff; background: linear-gradient(135deg,rgba(12,36,68,.92),rgba(31,93,153,.72)); border-radius: 28px; box-shadow: var(--shadow); }
.kc-profile-photo::before { position: absolute; inset: 28px; border: 1px solid rgba(255,255,255,.24); border-radius: 22px; content: ""; }
.kc-profile-photo::after { position: absolute; right: 34px; bottom: 28px; color: rgba(255,255,255,.22); content: "CEO"; font-size: clamp(4rem,12vw,7rem); font-weight: 900; line-height: 1; letter-spacing: -.06em; }
.kc-profile-meta { position: absolute; left: 34px; right: 34px; bottom: 34px; z-index: 1; }
.kc-profile-meta small { color: var(--gold2); font-weight: 900; letter-spacing: .1em; }
.kc-profile-meta strong { display: block; margin-top: 8px; font-size: 1.5rem; }
.kc-profile-body h2 { margin: 0 0 16px; color: var(--navy); font-size: clamp(1.6rem,3vw,2.4rem); line-height: 1.35; }
.kc-profile-body p { color: var(--muted); }
.kc-company-table { width: 100%; background: #fff; border: 1px solid var(--line); border-collapse: collapse; border-radius: var(--r); box-shadow: var(--soft); overflow: hidden; }
.kc-company-table th, .kc-company-table td { padding: 18px 20px; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; }
.kc-company-table th { width: 190px; color: var(--navy); background: #eef4f8; font-weight: 900; }
.kc-cta { padding: clamp(34px,5vw,54px); color: #fff; background: radial-gradient(circle at 90% 10%,rgba(225,196,122,.25),transparent 28%), linear-gradient(135deg,var(--navy),var(--blue)); border-radius: 28px; box-shadow: var(--shadow); }
.kc-cta-inner { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 24px; align-items: center; }
.kc-cta h2 { margin: 0; font-size: clamp(1.55rem,3vw,2.35rem); line-height: 1.35; }
.kc-cta p { margin: 12px 0 0; color: rgba(255,255,255,.78); }

.kc-page-hero { padding-block: clamp(56px,8vw,92px); color: #fff; background: radial-gradient(circle at 78% 20%,rgba(225,196,122,.2),transparent 26%), linear-gradient(135deg,var(--navy),var(--navy2)); }
.kc-page-hero h1 { max-width: 900px; margin: 0; font-size: clamp(2rem,4vw,3.4rem); line-height: 1.25; }
.kc-breadcrumb-like { margin-bottom: 12px; color: var(--gold2); font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.kc-main { min-height: 55vh; }
.kc-content-wrap { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 34px; align-items: start; padding-block: clamp(48px,7vw,84px); }
.kc-content-wrap.kc-no-sidebar { display: block; }
.kc-content-wrap.kc-no-sidebar .kc-content-area { width: 100%; }
.kc-content-area, .kc-sidebar .widget { background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--soft); }
.kc-content-area { padding: clamp(24px,4vw,44px); }
.entry-title { margin-top: 0; color: var(--navy); font-size: clamp(1.7rem,3vw,2.45rem); line-height: 1.35; }
.entry-meta, .entry-footer { color: var(--muted); font-size: .92rem; }
.entry-content h2, .entry-content h3, .entry-content h4 { color: var(--navy); line-height: 1.45; }
.entry-content h2 { margin-top: 2.2em; padding-bottom: .35em; border-bottom: 2px solid var(--line); font-size: 1.55rem; }
.entry-content a { font-weight: 800; text-decoration: underline; text-underline-offset: .22em; }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { padding: 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.entry-content th { color: var(--navy); background: #eef4f8; }
.kc-sidebar { display: grid; gap: 18px; }
.kc-sidebar .widget { padding: 22px; }
.kc-sidebar .widget-title, .kc-sidebar h2 { margin-top: 0; color: var(--navy); font-size: 1.05rem; }
.kc-search-form { display: flex; gap: 8px; }
.kc-search-form input[type=search], .entry-content input, .entry-content textarea, .entry-content select { width: 100%; min-height: 46px; padding: 10px 14px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.entry-content textarea { min-height: 150px; }
.kc-search-form button, .entry-content button, .entry-content input[type=submit] { min-height: 46px; padding: 10px 16px; color: #fff; background: var(--navy); border: 1px solid var(--navy); border-radius: 12px; font-weight: 900; cursor: pointer; }
.kc-site-footer { color: rgba(255,255,255,.78); background: #07182d; }
.kc-footer-top { display: grid; grid-template-columns: minmax(0,1fr) minmax(260px,.65fr); gap: 36px; padding-block: 48px; }
.kc-footer-title { margin: 0 0 10px; color: #fff; font-size: 1.35rem; }
.kc-footer-menu, .kc-footer-menu ul { padding: 0; margin: 0; list-style: none; }
.kc-footer-menu { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px 18px; }
.kc-footer-menu a { color: rgba(255,255,255,.82); font-weight: 800; }
.kc-footer-bottom { display: flex; justify-content: space-between; gap: 18px; padding-block: 18px; border-top: 1px solid rgba(255,255,255,.1); font-size: .9rem; }
.alignwide { max-width: min(100%,var(--w)); }
.alignfull { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); }

@media (max-width: 1000px) {
  .kc-menu-toggle { display: inline-flex; }
  .kc-menu-wrap { position: absolute; top: 100%; left: 20px; right: 20px; display: none; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
  .kc-menu-wrap.is-open { display: block; }
  .kc-menu { display: grid; gap: 4px; }
  .kc-menu a { justify-content: space-between; border-radius: 12px; }
  .kc-menu ul { position: static; display: block; visibility: visible; min-width: 0; padding: 4px 0 4px 16px; opacity: 1; background: transparent; border: 0; box-shadow: none; transform: none; }
  .kc-header-cta { display: none; }
  .kc-hero-inner, .kc-section-head, .kc-profile, .kc-content-wrap, .kc-footer-top, .kc-cta-inner { grid-template-columns: 1fr; }
  .kc-grid-3 { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 700px) {
  body { font-size: 15px; }
  .admin-bar .kc-site-header { top: 46px; }
  .kc-container { width: min(calc(100% - 28px),var(--w)); }
  .kc-site-description { display: none; }
  .kc-hero-inner { padding-block: 58px; }
  .kc-hero-panel { padding: 20px; }
  .kc-grid-2, .kc-grid-3 { grid-template-columns: 1fr; }
  .kc-company-table, .kc-company-table tbody, .kc-company-table tr, .kc-company-table th, .kc-company-table td { display: block; width: 100%; }
  .kc-company-table th { border-bottom: 0; }
  .kc-footer-bottom { flex-direction: column; }
  .kc-footer-menu { grid-template-columns: 1fr; }
}
