#vision > div > div > div.flex-text > h3 {
    padding-bottom: 1em;
}
.flex-text > p {
    margin-bottom: 0.5em;
}

.hero {
    max-height: 888px;
}
section section .container {
    padding: 0 3em;
}

section section {
    max-width: 1100px;
    width: 90vw;
    margin: auto;
    border-radius: 18px;
}

#vision > h2 {
    text-align: center;
}

#projects h2.section-title {
    margin: 0;
    color: #fff;
    text-align: center;
    padding-top: 100px;
    padding-bottom: 40px;
}


img.performopticon-img {
filter: brightness(0) invert(1); /* 白く反転 */
    max-width: 70vw;
    margin-bottom: 1em;
    display: inline-block;
    width: 330px;
    height: auto;
}

.agency-logo .tm {
    vertical-align: top;
    font-size: 1.2em;
    font-weight: 400;
    margin-left: 0.2em;
}
.agency-logo {
    display: block;
    margin-top: 1em;
}


.hero.small_hero {
    height: 240px;
}

ul {
    margin-left: 2em;
}

#turnup > div > div > div.agency-content > h2 {
    font-size: clamp(24px, 6vw, 39px);
}

.tm { vertical-align: super; font-size: 0.7em; font-weight:400;}

a.footer-logo-wrapper{
  display:inline-flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  color:inherit;
}

a.footer-logo-wrapper:focus-visible{
  outline:2px solid currentColor;
  outline-offset:4px;
}
a.logo{
  display:flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
  color:inherit;
}
section#turnup .agency-box {
    flex-direction: row-reverse;
}

section#turnup {
    background: #003a70;
}
button.btn-primary {
    margin: auto;
    display: flex;
}
a {
    color: inherit;
}

/* --- フッター全体の装飾 --- */
p,a {
    transition: 0.5s ease all;
}
#mainNav a{display:inline-block;}
#mainNav a:hover, p.footer-address:hover {
    transform: translate(0px, 3px);
}
.footer-address {
    border: solid 1px;
    border-radius: 18px;
    width: fit-content;
    margin: auto;
    padding: 0.2em 1.5em;
    margin-top: 1em;
}
.footer-address a {
    text-decoration: none;
}
nav.footer-nav {
    padding-bottom: 3em;
}

.footer-nav-column {
    text-align: left;
}

footer.site-footer {
    padding-bottom: 0;
}
.site-footer {
    background-color: #1a1a1a;
    color: #fff;
    padding: 60px 0 0;
    font-size: 0.9rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    padding-bottom: 40px;
}

/* --- 左側：ロゴと会社情報 --- */
.footer-info {
    max-width: 300px;
}

.footer-logo-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
    margin-bottom: 20px;
}

.footer-logo-img {
    height: 32px;
    width: auto;
    filter: brightness(0) invert(1); /* 白く反転 */
}

.footer-logo {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.footer-address {
    line-height: 1.8;
    color: #ccc;
}

/* --- 中央：ナビゲーション --- */
.footer-nav {
    display: flex;
    gap: 60px;
}

.footer-nav-column h4 {
    font-size: 1rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 4px;
    width: fit-content;
}

.footer-nav-column h4::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background-color: #0044cc; 
}

.footer-nav-column ul {
    list-style: none;
    padding: 0;
}

.footer-nav-column ul li {
    margin-bottom: 12px;
}

.footer-nav-column ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-nav-column ul li a:hover {
    color: #fff;
}

/* --- 下部：コピーライト --- */
.footer-bottom {
    background-color: #111;
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid #333;
}

.copyright {
    font-size: 0.8rem;
    color: #777;
    margin: 0;
}

/* --- モバイル対応 --- */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    .footer-info, .footer-nav {
        margin: 0 auto;
    }
    .footer-logo-wrapper {
        justify-content: center;
    }
    .footer-nav {
        gap: 30px;
    }
    .footer-nav-column h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

/* --- ヘッダーロゴの調整 --- */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-text-group {
    display: flex;
    flex-direction: column;
}

.header-logo-img {
    height: 48px;
    width: auto;
    display: block;
}

/* --- フッターロゴの調整（反転して白くする） --- */
.footer-logo-wrapper {
    display: flex;
    align-items: center;
    justify-content: center; /* 中央揃え */
    gap: 8px;
    margin-bottom: 10px;
}

.footer-logo-img {
    height: 30px; /* フッターに合わせて少し小さめ */
    width: auto;
    /* フィルターで白く加工 */
    filter: brightness(0) invert(1);
}

.site-footer .footer-logo {
    margin: 0; /* 余計な余白をリセット */
}

/* モバイル対応 */
@media (max-width: 768px) {
    .header-logo-img {
        height: 36px;
    }
    .footer-logo-img {
        height: 24px;
    }
}

/* --- Base Variables --- */
:root {
    --primary-color: #003a70;
    --accent-color: #00a0e9;
    --text-color: #333;
    --bg-gray: #f4f7f9;
}

/* --- Global Reset --- */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--text-color);
    line-height: 1.7;
    overflow-x: hidden;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

img { max-width: 100%; height: auto; display: block; }

/* --- Header & Layout --- */
.site-header {
    height: 90px;
    display: flex;
    align-items: center;
    background: #fff;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo { line-height: 1.2; }
.logo-main { display: block; font-size: 1.5rem; font-weight: 700; color: var(--primary-color); letter-spacing: 0.1em; }
.logo-sub { font-size: 0.7rem; color: #999; }

/* Desktop Navigation */
.main-nav ul { list-style: none; display: flex; align-items: center; }
.main-nav ul li { margin-left: 30px; }
.main-nav ul li a { text-decoration: none; color: var(--text-color); font-weight: 500; font-size: 0.95rem; transition: 0.3s; }
.main-nav ul li a:hover { color: var(--accent-color); }
.nav-btn { background: var(--primary-color); color: #fff !important; padding: 10px 20px; border-radius: 4px; }

/* --- Hamburger Menu Button --- */
.menu-trigger {
    display: none;
    width: 30px;
    height: 24px;
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 2000;
}

.menu-trigger span {
    display: block;
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s;
    left: 0;
}

.menu-trigger span:nth-child(1) { top: 0; }
.menu-trigger span:nth-child(2) { top: 11px; }
.menu-trigger span:nth-child(3) { bottom: 0; }

.menu-trigger.active span:nth-child(1) { transform: translateY(11px) rotate(-45deg); }
.menu-trigger.active span:nth-child(2) { opacity: 0; }
.menu-trigger.active span:nth-child(3) { transform: translateY(-11px) rotate(45deg); }

/* --- Hero Section --- */
.hero {
    height: 85vh;
    position: relative;
    margin-top: 90px;
    display: flex;
    align-items: center;
    color: #fff;
    overflow: hidden;
}

.hero-img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: -1;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 58, 112, 0.4);
    z-index: 0;
}

.hero-container { position: relative; z-index: 1; }
.hero-text h1 { font-size: 3.5rem; line-height: 1.3; margin-bottom: 20px; }
.hero-text p { font-size: 1.25rem; max-width: 600px; text-shadow: 0 2px 4px rgba(0,0,0,0.3); }

/* --- Content Sections --- */
.section-padding { padding: 100px 0; }
.bg-gray { background-color: var(--bg-gray); }
.section-title { font-size: 2.2rem; margin-bottom: 40px; color: var(--primary-color); position: relative; }
.text-center { text-align: center; }

.flex-row {
    display: flex;
    align-items: flex-start;
    gap: 60px;
}
.flex-text, .flex-img { flex: 1; }
.flex-img img { border-radius: 8px; box-shadow: 20px 20px 0 #e0e0e0; }

.card-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.card-img img { height: 250px; width: 100%; object-fit: cover; }
.card-content { padding: 30px; }
.card-content h4 { margin-bottom: 15px; font-size: 1.3rem; color: var(--primary-color); }

/* --- SYN-VA Section --- */
.dark-section { background: #001b354f; color: #fff; }
.white-section { background: #fff; color: #1a1a1a; }
.white-section span.label {    color: #fff;}
.blue-section {
    background: var(--primary-color);
    color: #fff;
    padding: 0;
}
.agency-box { display: flex; align-items: center; gap: 50px; }
.agency-content { flex: 1; }
.label { background: var(--accent-color); padding: 4px 12px; font-size: 0.8rem; border-radius: 20px; margin-bottom: 20px; display: inline-block; }
.agency-content h2 { font-size: 3rem; margin-bottom: 20px; }
.agency-img { flex: 1; border-radius: 8px; overflow: hidden; opacity: 0.8; }

/* --- Forms --- */
.contact-form { max-width: 600px; margin: 40px auto 0; text-align: left; }
.form-group { margin-bottom: 20px; }
.form-group input, .form-group textarea { width: 100%; padding: 12px 15px; border: 1px solid #ddd; border-radius: 4px; font-size: 1rem; font-family: inherit; }
.form-agreement { background: #f8f9fa; padding: 15px; border-radius: 4px; margin-bottom: 30px; font-size: 0.9rem; color: #666; }
.form-agreement label { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.form-agreement input[type="checkbox"] { margin-top: 4px; }
.form-agreement small { display: block; margin-top: 5px; color: #999; }

.btn-primary { 
    display: inline-block; 
    padding: 18px 50px; 
    background: var(--primary-color); 
    color: #fff; 
    text-decoration: none; 
    font-size: 1.2rem; 
    font-weight: 700; 
    border-radius: 50px; 
    margin-top: 40px; 
    transition: 0.3s;
    border: none;
    cursor: pointer;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }

/* --- Footer --- */
.site-footer { background: #333; color: #fff; padding: 60px 0; text-align: center; }
.footer-logo { font-size: 1.5rem; font-weight: 700; margin-bottom: 20px; }
.copyright { font-size: 0.8rem; opacity: 0.6; }

/* --- Responsive Layout --- */
@media (max-width: 768px) {
#services .card-grid {
    display: flex;
    gap: 40px;
    flex-direction: column;
}

.footer-info {
    display: flex;
    width: 100%;        white-space: nowrap;
}
a.footer-logo-wrapper {
    margin-bottom: 0;
}

    p.footer-address {
        margin: 0 0 0 4em;
        vertical-align: middle;
        align-items: center;
        display: flex;
        justify-content: flex-start;
    }


    .menu-trigger {
        display: block;
    }

    .main-nav {
        display: block !important;
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: #fff;
        padding-top: 100px;
        transition: all 0.4s ease;
        z-index: 1500;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    }

    .main-nav.active {
        right: 0;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: center;
        padding: 0;
    }

    .main-nav ul li {
        margin: 20px 0;
        margin-left: 0; /* デスクトップ用マージン解除 */
    }

    .nav-btn {
        width: 200px;
        text-align: center;
    }

    .hero-text h1 { font-size: 2.2rem; }
    .hero-text p { font-size: 1.1rem; }
    
        .flex-row, .agency-box {
        flex-direction: column;
        gap: 30px;
        display: grid;
    }
    .section-padding { padding: 60px 0; }
    
    /* セクションタイトルのサイズ調整 */
    .section-title { font-size: 1.8rem; }
    .agency-content h2 { font-size: 2.2rem; }
}