/* ============================================
   合同会社ａｔイノベーション - 共通スタイル
   ============================================ */

:root {
    --primary: #005bac;
    --primary-dark: #003d7a;
    --accent: #00c2ff;
    --accent-light: #e8f7ff;
    --white: #ffffff;
    --bg-gray: #f8f9fa;
    --text-dark: #1a1a2e;
    --text-mid: #555;
    --text-light: #888;
    --border: #e0e8f0;
    --shadow-sm: 0 2px 10px rgba(0,91,172,0.08);
    --shadow-md: 0 8px 30px rgba(0,91,172,0.12);
    --shadow-lg: 0 20px 50px rgba(0,91,172,0.15);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
}

/* ============ RESET & BASE ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic', sans-serif;
    margin: 0; padding: 0;
    overflow-x: hidden;
    color: var(--text-dark);
    background: #fff;
    font-size: 16px;
    line-height: 1.7;
}
h1, h2, h3, h4, h5, h6 { line-height: 1.4; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }
ul { margin: 0; padding: 0; list-style: none; }

/* ============ NAVIGATION ============ */
.global-nav {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 1000;
    background: #ffffff;
    border-bottom: 1px solid rgba(0,91,172,0.12);
    box-shadow: 0 2px 12px rgba(0,91,172,0.06);
    transition: all 0.3s ease;
}
.global-nav.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}
.nav-logo img {
    height: 48px;
    width: auto;
    display: block;
    image-rendering: auto;
    /* 高解像度透過PNGロゴ：スムーズに縮小表示 */
}
/* CSSテキストロゴ（ナビ用・フォールバック：PNG読み込み失敗時に.nav-logo-iconを表示） */
.nav-logo-icon {
    display: none; /* PNG有効時は非表示 */
}
.nav-logo-text {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}
.nav-logo-text span {
    display: block;
    font-size: 0.65rem;
    font-weight: 400;
    color: var(--text-mid);
    letter-spacing: 0.05em;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}
.nav-links a {
    padding: 8px 16px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-dark);
    border-radius: 6px;
    transition: all 0.2s;
    position: relative;
}
.nav-links a:hover, .nav-links a.active {
    color: var(--primary);
    background: var(--accent-light);
}
.nav-cta {
    background: var(--primary) !important;
    color: #fff !important;
    padding: 10px 22px !important;
    border-radius: 50px !important;
    font-weight: 700 !important;
    transition: all 0.3s !important;
}
.nav-cta:hover {
    background: var(--accent) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(0,91,172,0.3) !important;
}
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    background: none;
    border: none;
}
.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--primary);
    transition: all 0.3s;
    border-radius: 2px;
}
.mobile-menu {
    display: none;
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 20px;
    z-index: 999;
    border-top: 2px solid var(--accent);
}
.mobile-menu.open { display: block; }
.mobile-menu a {
    display: block;
    padding: 14px 20px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-dark);
    border-bottom: 1px solid var(--border);
    transition: 0.2s;
}
.mobile-menu a:hover { color: var(--primary); padding-left: 28px; }
.mobile-menu a:last-child { border-bottom: none; }

/* ============ SECTION COMMON ============ */
.section-header {
    text-align: center;
    margin-bottom: 64px;
}
.section-label {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    background: var(--accent-light);
    padding: 4px 16px;
    border-radius: 50px;
    margin-bottom: 16px;
}
.section-title {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 16px;
}
.section-desc {
    font-size: 1rem;
    color: var(--text-mid);
    max-width: 600px;
    margin: 0 auto;
}

/* ============ BUTTONS ============ */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: var(--primary);
    color: #fff;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s;
    border: 2px solid transparent;
    cursor: pointer;
}
.btn-primary:hover {
    background: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,91,172,0.3);
}
.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 30px;
    background: transparent;
    color: var(--primary);
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s;
    border: 2px solid var(--primary);
    cursor: pointer;
}
.btn-outline:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,91,172,0.2);
}

/* ============ CARDS ============ */
.card {
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: all 0.4s;
    overflow: hidden;
}
.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

/* ============ BREADCRUMB ============ */
.breadcrumb {
    background: var(--bg-gray);
    padding: 12px 5%;
    font-size: 0.82rem;
    color: var(--text-light);
    border-bottom: 1px solid var(--border);
}
.breadcrumb a { color: var(--primary); }
.breadcrumb span { margin: 0 8px; }

/* ============ PAGE HERO (内部ページ) ============ */
.page-hero {
    background: linear-gradient(135deg, var(--primary) 0%, #0077cc 50%, #003d7a 100%);
    color: #fff;
    text-align: center;
    padding: 120px 5% 80px;
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0,194,255,0.1) 0%, transparent 60%);
    animation: rotateBg 20s linear infinite;
}
@keyframes rotateBg {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.page-hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 16px;
    position: relative;
}
.page-hero p {
    font-size: 1.05rem;
    opacity: 0.85;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

/* ============ STATS ============ */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2px;
    background: var(--border);
}
.stat-item {
    background: #fff;
    padding: 40px 20px;
    text-align: center;
}
.stat-num {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 8px;
}
.stat-num span { font-size: 1.2rem; }
.stat-label {
    font-size: 0.82rem;
    color: var(--text-mid);
    font-weight: 500;
}

/* ============ FOOTER ============ */
.global-footer {
    background: #f4f6f9;
    color: var(--text-dark);
    border-top: 4px solid var(--primary);
}
.footer-main {
    max-width: 1280px;
    margin: 0 auto;
    padding: 60px 5% 40px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}
.footer-brand img {
    height: 72px;
    width: auto;
    display: block;
    margin-bottom: 16px;
    image-rendering: auto;
    /* 高解像度透過PNGロゴ：スムーズに縮小表示 */
}
/* CSSテキストロゴ（フッター用フォールバック） */
.footer-logo-icon {
    display: none; /* PNG表示時は非表示 */
}
.footer-brand p {
    font-size: 0.88rem;
    color: var(--text-mid);
    line-height: 1.8;
    margin-bottom: 20px;
}
.footer-col h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 16px;
    border-bottom: 2px solid rgba(0,91,172,0.15);
    padding-bottom: 8px;
}
.footer-col a {
    display: block;
    font-size: 0.88rem;
    color: var(--text-mid);
    padding: 5px 0;
    transition: 0.2s;
}
.footer-col a:hover {
    color: var(--primary);
    padding-left: 8px;
}
.footer-bottom {
    border-top: 1px solid rgba(0,91,172,0.12);
    padding: 20px 5%;
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-light);
    flex-wrap: wrap;
    gap: 10px;
}

/* ============ UTILITIES ============ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 5%; }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.tag {
    display: inline-block;
    padding: 3px 12px;
    background: var(--accent-light);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 50px;
    border: 1px solid rgba(0,194,255,0.3);
}
.tag-dark {
    background: rgba(0,91,172,0.1);
    color: var(--primary);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
    .footer-main { grid-template-columns: 1fr 1fr; gap: 30px; }
}
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hamburger { display: flex; }
    .footer-main { grid-template-columns: 1fr; gap: 24px; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .page-hero { padding: 100px 5% 60px; }
}
