/* ===== Reset and Base Styles ===== */
html, body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* ===== Header ===== */
.site-header {
    background: #f8f8f8;
    border-bottom: 1px solid #e0e0e0;
    width: 100vw;
    min-height: 80px;
    position: relative;
    box-sizing: border-box;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}
.header-inner {
    display: flex;
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    padding-top: 3.5em;
}
.header-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: #f8f8f8;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 3000;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}
.header-left,
.lang-switch-group {
    display: flex;
    align-items: center;
    min-width: 0;
}
.header-left {
    gap: 0.5em;
    flex-shrink: 0;
}
.header-logo,
.logo {
    margin-top: 8px;
    min-width: 0;
    flex-shrink: 0;
}
.header-logo img,
.logo img {
    width: 180px;
    height: auto;
    display: block;
}
.logo p {
    font-size: 18px;
    font-weight: bold;
    margin: 0;
}
.lang-switch-group {
    gap: 0.5em;
}
.lang-switch-btn {
    font-size: 1em;
    font-weight: bold;
    color: #0072b1;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.2em 0.8em;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
    display: flex;
    align-items: center;
    gap: 0.3em;
}
.lang-switch-btn:hover,
.lang-switch-btn.active {
    background: #e0f0ff;
    color: #005580;
}

/* ===== Navigation ===== */
.header-nav-row {
    width: 100%;
    display: flex;
    justify-content: center;
    border-top: 1px solid #e0e0e0;
    background: #f8f8f8;
}
.header-nav ul {
    display: flex;
    gap: 2em;
    list-style: none;
    margin: 1em 0 0 0;
    padding: 0.5em 0;
}
.header-nav ul li {
    display: block;
}
.header-nav a {
    color: #0072b1;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    padding: 0.5em 0.4em;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
}
.header-nav a:hover,
.header-nav a.active {
    background: #e0f0ff;
    color: #005580;
}
@media (max-width: 600px) {
    .header-nav ul {
        gap: 0.5em;
        font-size: 0.95em;
        padding: 0.5em 0;
    }
    .header-nav a {
        padding: 0.4em 0.2em;
    }
    .header-nav-row {
        padding-left: 0.5em;
        padding-right: 0.5em;
    }
}

/* ===== Sidebar ===== */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 260px;
    background: #f8f8f8;
    border-right: 1px solid #ddd;
    padding-top: 0.5em;
    transform: translateX(-260px);
    transition: transform 0.2s;
    z-index: 4000;
    box-sizing: border-box;
}
.sidebar.open {
    transform: translateX(0);
}
.sidebar-logo-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 1em 1em 1em;
    gap: 0.5em;
}
.sidebar-logo {
    margin-left: 0;
}
.sidebar-close {
    background: none;
    border: none;
    color: #0072b1;
    font-size: 2em;
    cursor: pointer;
    padding: 0 0.2em;
    line-height: 1;
    transition: color 0.2s;
}
.sidebar-close:hover {
    color: #005580;
}
.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sidebar ul li {
    margin: 1.5em 0;
    text-align: left;
}
.sidebar ul a {
    color: #0072b1;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: bold;
    padding: 0.5em 1em;
    border-radius: 4px;
    transition: background 0.2s;
}
.sidebar ul a:hover {
    background: #e0f0ff;
}
.sidebar-toggle {
    background: #0072b1;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 0.3em 0.7em;
    cursor: pointer;
    font-size: 1.5em;
    min-width: 36px;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.sidebar-toggle:hover {
    background: #005580;
}

/* ===== Language Section ===== */
.lang-section { display: none; }
.lang-section.active { display: block; }

/* ===== Main Container ===== */
.main-container {
    max-width: 1100px;
    margin: 0 auto;
    padding-left: 32px;
    padding-right: 32px;
    box-sizing: border-box;
}
@media (max-width: 700px) {
    .main-container {
        padding-left: 8px;
        padding-right: 8px;
    }
}

/* ===== Main Background Section ===== */
.main-bg-section {
    background: url('main-background.png') center/cover no-repeat;
    position: relative;
    padding: 8em 1em;
    border-radius: 12px;
    margin-left: -32px;
    margin-right: -32px;
    box-sizing: border-box;
}
.main-bg-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.6);
    border-radius: 12px;
    z-index: 0;
}
.main-bg-section > * {
    position: relative;
    z-index: 1;
}
@media (max-width: 700px) {
    .main-bg-section {
        margin-left: -8px;
        margin-right: -8px;
    }
}

/* ===== Section Titles and Text ===== */
.main-title {
    font-size: 2.5em;
    font-weight: bold;
    margin-bottom: 0.2em;
    line-height: 1.3;
}
.subtitle {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 1.2em;
    line-height: 1.3;
}
.desc {
    margin-bottom: 1.5em;
    font-size: 1.5em;
}
.section-title {
    font-size: 1em;
    font-weight: bold;
    margin-bottom: 0.5em;
}
.catchphrase {
    color: #2a3db8;
    font-size: 1.8em;
    font-weight: bold;
    margin-bottom: 1.5em;
}

/* ===== Case Section ===== */
.case-flex {
    display: flex;
    align-items: flex-start;
    gap: 32px;
    margin-bottom: 2em;
}
.case-info {
    flex: 1 1 0;
}
.case-image {
    flex: 0 0 auto;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
}
.case-title {
    font-weight: bold;
    margin-top: 1.2em;
    margin-bottom: 0.2em;
}
.case-desc {
    margin-bottom: 1em;
}
@media (max-width: 700px) {
    .case-flex {
        flex-direction: column;
        gap: 16px;
    }
    .case-image {
        justify-content: center;
    }
}

/* ===== Company Profile Section ===== */
.company-profile-section {
    max-width: 420px;
    margin: 0 auto 2em auto;
    color: #111;
}
.profile-block {
    margin-bottom: 2.5em;
}
.profile-divider {
    border-top: 2px solid #222;
    width: 100%;
    margin-bottom: 1em;
}
.profile-title {
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 0.7em;
    margin-top: 0.5em;
    letter-spacing: 0.03em;
}
.profile-desc {
    font-size: 1em;
    line-height: 1.8;
    margin-bottom: 0.5em;
}
.profile-block ul {
    margin: 0.5em 0 0 1.2em;
    padding: 0;
}
.profile-block ul li {
    margin-bottom: 0.3em;
    font-size: 1em;
}
@media (max-width: 600px) {
    .company-profile-section {
        max-width: 98vw;
        padding: 0 4vw;
    }
}

/* ===== Client Section ===== */
.client-section {
    margin: 48px auto 32px auto;
    text-align: center;
    max-width: 950px;
}
.client-label {
    font-size: 1em;
    color: #222;
    margin-bottom: 0.5em;
    letter-spacing: 0.08em;
}
.client-main-message {
    font-size: 2em;
    font-weight: bold;
    color: #22308d;
    margin-bottom: 1.8em;
    line-height: 1.3;
}
.client-logos {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 40px;
    flex-wrap: wrap;
}
.client-logo-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 140px;
    max-width: 200px;
}
.client-logo-item img {
    max-width: 120px;
    max-height: 70px;
    width: auto;
    height: auto;
    margin-bottom: 0.5em;
}
.client-logo-label {
    font-size: 1.1em;
    font-weight: bold;
    color: #22308d;
    letter-spacing: 0.08em;
}
@media (max-width: 700px) {
    .client-logos {
        flex-direction: column;
        gap: 24px;
    }
    .client-section {
        max-width: 98vw;
    }
}

/* ===== Blog Layout ===== */
.blog-layout {
    display: flex;
    gap: 32px;
    max-width: 1200px;
    margin: 40px auto 0 auto;
    align-items: flex-start;
}
.blog-categories {
    flex: 0 0 180px;
    background: #f8fafc;
    border-radius: 10px;
    padding: 24px 16px;
    margin-top: 0;
}
.blog-categories h3 {
    font-size: 1.1em;
    color: #22308d;
    margin-bottom: 1em;
    font-weight: bold;
}
.blog-categories ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.blog-categories li {
    margin-bottom: 0.7em;
}
.category-link {
    color: #0072b1;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    padding: 0.2em 0.6em;
    transition: background 0.2s, color 0.2s;
    display: inline-block;
}
.category-link.active,
.category-link:hover {
    background: #e0f0ff;
    color: #005580;
}
.blog-author {
    flex: 0 0 240px;
    margin-top: 0;
}
.author-box {
    background: #f8fafc;
    border-radius: 10px;
    padding: 24px 16px;
    text-align: center;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.author-photo {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1em;
    border: 2px solid #22308d;
}
.author-name {
    font-size: 1.15em;
    font-weight: bold;
    color: #22308d;
    margin-bottom: 0.2em;
}
.author-title {
    font-size: 0.98em;
    color: #0072b1;
    margin-bottom: 0.8em;
}
.author-bio {
    font-size: 0.98em;
    color: #222;
}
@media (max-width: 900px) {
    .blog-layout {
        flex-direction: column;
        gap: 0;
    }
    .blog-categories,
    .blog-author {
        max-width: 100%;
        margin-bottom: 2em;
    }
    .blog-author {
        order: 2;
    }
}

/* ===== Blog List ===== */
.blog-container {
    max-width: 900px;
    margin: 40px auto 0 auto;
    padding: 0 16px;
}
.blog-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.blog-list li {
    background: #f8fafc;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    margin-bottom: 28px;
    padding: 28px 24px 18px 24px;
    transition: box-shadow 0.2s;
}
.blog-list li:hover {
    box-shadow: 0 4px 16px rgba(34,48,141,0.10);
}
.blog-title {
    font-size: 1.25em;
    font-weight: bold;
    color: #22308d;
    text-decoration: none;
    transition: color 0.2s;
}
.blog-title:hover {
    color: #00b6c9;
    text-decoration: underline;
}
.blog-date {
    font-size: 0.95em;
    color: #888;
    margin: 8px 0 6px 0;
}
.blog-summary {
    font-size: 1.05em;
    color: #222;
    margin-bottom: 0.2em;
}
@media (max-width: 600px) {
    .blog-container {
        padding: 0 2vw;
    }
    .blog-list li {
        padding: 18px 8px 12px 8px;
    }
}

/* ===== Footer ===== */
.site-footer,
footer {
    background: #f8f8f8;
    border-top: 1px solid #e7e7e7;
    padding: 2em 0 1em 0;
    margin-top: 2em;
    font-size: 1em;
}
.footer-inner,
.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 900px;
    margin: 0 auto;
    gap: 1em;
}
.footer-contact a {
    color: #0072b1;
    text-decoration: none;
    font-weight: bold;
}
.footer-contact a:hover {
    text-decoration: underline;
}
.footer-nav ul {
    display: flex;
    gap: 2em;
    list-style: none;
    margin: 0;
    padding: 0;
}
.footer-nav a {
    color: #0072b1;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s;
}
.footer-nav a:hover {
    color: #005580;
}
.footer-row-horizontal {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-bottom: 16px;
    gap: 100px;
}
@media (max-width: 600px) {
    .footer-nav ul {
        flex-direction: column;
        gap: 0.5em;
        align-items: center;
    }
    .footer-row-horizontal {
        flex-direction: column;
        gap: 16px;
    }
}
.footer-bottom {
  text-align: center;
}
/* ===== Utility ===== */
.contact-info, .social-media, .inquiry {
    margin: 0 20px;
}
.contact-info h3, .social-media h3, .inquiry h3 {
    font-size: 16px;
    margin-bottom: 10px;
}
.contact-info p, .social-media p {
    margin: 5px 0;
}
.inquiry button {
    background-color: #0033cc;
    color: white;
    border: none;
    padding: 10px 24px;
    cursor: pointer;
    letter-spacing: 0.15em;
    font-size: 1.1em;
}

/* ===== Service Section ===== */
.service-section {
    max-width: 900px;
    margin: 0 auto 48px auto;
    font-family: "Meiryo", "Hiragino Kaku Gothic Pro", Arial, sans-serif;
    color: #111;
}
.service-title-label {
    font-size: 1em;
    margin-bottom: 0.5em;
    color: #222;
    letter-spacing: 0.08em;
}
.service-main-title {
    font-size: 1.5em;
    font-weight: bold;
    color: #22308d;
    margin-bottom: 2em;
    line-height: 1.3;
}
.service-cards {
    display: flex;
    gap: 16px;
    margin-bottom: 2.5em;
    justify-content: space-between;
    flex-wrap: wrap;
}
.service-card {
    background: #f8fafc;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.03);
    flex: 1 1 0;
    min-width: 220px;
    max-width: 32%;
    padding: 24px 16px 18px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.service-icon {
    margin-bottom: 1em;
}
.service-card-title {
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 0.7em;
    color: #22308d;
}
.service-card-desc {
    font-size: 1em;
    line-height: 1.7;
    color: #222;
    text-align: center;
}
.service-flow-title {
    font-size: 1.2em;
    font-weight: bold;
    color: #22308d;
    margin: 2.5em 0 1em 0;
}
.service-flow-list {
    counter-reset: flow-num;
    list-style: none;
    padding: 0;
    margin-bottom: 2em;
}
.service-flow-list li {
    position: relative;
    padding-left: 48px;
    margin-bottom: 1em;
    font-size: 1em;
    line-height: 1.7;
}
.service-flow-list li:before {
    counter-increment: flow-num;
    content: counter(flow-num, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 0;
    color: #00a3e0;
    font-size: 1.3em;
    font-weight: bold;
    font-family: Arial, sans-serif;
}
.service-cert-title {
    font-size: 1.1em;
    font-weight: bold;
    color: #22308d;
    margin: 2.5em 0 0.7em 0;
}
.service-cert-list {
    margin: 0 0 1em 1.2em;
    padding: 0;
}
.service-cert-list li {
    margin-bottom: 0.3em;
    font-size: 1em;
    color: #22308d;
}
.service-cert-img {
    margin-bottom: 2em;
}
.service-price-title {
    font-size: 1.1em;
    font-weight: bold;
    color: #22308d;
    margin: 2.5em 0 0.7em 0;
}
.service-price-desc {
    font-size: 1em;
    line-height: 1.7;
    color: #222;
    margin-bottom: 2em;
}
@media (max-width: 900px) {
    .service-cards {
        flex-direction: column;
        gap: 24px;
    }
    .service-card {
        max-width: 100%;
    }
}

/* ===== CTA Box ===== */
.cta-box {
    max-width: 800px;
    margin: 48px auto 0 auto;
    text-align: center;
}
.cta-box h2 {
    color: #22308d;
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 0.2em;
    text-align: left;
}
.cta-desc {
    text-align: left;
    margin-bottom: 2em;
    color: #222;
    font-size: 1em;
}
.cta-form {
    width: 100%;
}
.cta-form-table {
    background: #f7f7f7;
    border-radius: 4px;
    padding: 32px 0 24px 0;
    margin-bottom: 2em;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.cta-form-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 1.5em;
    padding: 0 5%;
}
.cta-form-row label {
    flex: 0 0 160px;
    font-weight: bold;
    font-size: 1.1em;
    text-align: left;
}
.cta-form-row input,
.cta-form-row textarea {
    flex: 1 1 0;
    background: #d6dee2;
    border: none;
    border-radius: 12px;
    padding: 0.7em 1em;
    font-size: 1.1em;
    margin-left: 16px;
    outline: none;
    resize: none;
}
.cta-form-row textarea {
    min-height: 2.5em;
    max-width: 100%;
}
.cta-form-submit {
    text-align: center;
}
.cta-form-submit button {
    background: #00b6c9;
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 0.7em 3em;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    margin-top: 8px;
    transition: background 0.2s;
}
.cta-form-submit button:hover {
    background: #0095a8;
}
@media (max-width: 600px) {
    .cta-box {
        padding: 0 2vw;
    }
    .cta-form-row {
        flex-direction: column;
        align-items: flex-start;
        padding: 0 2vw;
    }
    .cta-form-row label {
        margin-bottom: 0.5em;
        margin-left: 0;
    }
    .cta-form-row input,
    .cta-form-row textarea {
        margin-left: 0;
        width: 100%;
    }
}

.blog-author {
    flex: 0 0 260px;
    margin-top: 0;
}
.author-box {
    background: #fff;
    border-radius: 12px;
    padding: 18px 10px 18px 10px;
    text-align: left;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    font-size: 1em;
}
.author-photo-twin {
    display: block;
    margin: 0 auto 1em auto;
    width: 120px;
    height: auto;
}
.author-names {
    font-weight: bold;
    font-size: 1.08em;
    margin-bottom: 1em;
    text-align: left;
}
.author-profile-block {
    margin-bottom: 1.2em;
    font-size: 0.98em;
    line-height: 1.7;
}
.author-profile-block:last-child {
    margin-bottom: 0;
}
@media (max-width: 900px) {
    .blog-author {
        max-width: 100%;
        margin-bottom: 2em;
        order: 2;
    }
}