/* ===== リセット & ベース ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #00309C;
    --secondary-blue: #2B7CFF;
    --light-blue: #F2F8FF;
    --yellow: #FFCC00;
    --dark-blue: #002373;
    --text-dark: #192F60;
    --gray-bg: #F6F6F6;
    --white: #FFFFFF;
    --shadow: rgba(178, 178, 178, 0.36);
    --white-transparent: rgba(255, 255, 255, 0.68);
}

body {
    font-family: 'Noto Sans JP', 'Noto Sans', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 80px;
}

/* ===== ヘッダー ===== */
.header {
    background: rgba(255, 255, 255, 0.68);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    backdrop-filter: blur(10px);
    height: 74px;
    /* display: flex; */
    /* align-items: center; */
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    flex-shrink: 0;
    margin-left: -40px;
}

.nav {
    flex-shrink: 0;
    margin-right: -40px;
}

.logo a {
    display: block;
    text-decoration: none;
}

.logo img {
    height: 33px;
    width: auto;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 50px;
}

.nav-list a {
    font-family: 'Oswald', sans-serif;
    font-size: 20px;
    font-weight: 500;
    color: var(--dark-blue);
    text-decoration: none;
    transition: opacity 0.3s;
}

.nav-list a:hover {
    opacity: 0.7;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle {
    position: relative;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-blue);
    transition: all 0.3s ease;
    display: block;
    position: relative;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
    transform-origin: center;
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
    transform-origin: center;
}

/* モバイルメニューが開いた時のスタイル */
@media (max-width: 768px) {
    .nav.active {
        display: block;
        position: fixed;
        top: 74px;
        left: 0;
        width: 100%;
        height: calc(100vh - 74px);
        background: var(--white);
        z-index: 1000;
        padding: 40px 20px;
        overflow-y: auto;
    }

    .nav.active .nav-list {
        flex-direction: column;
        gap: 30px;
        align-items: flex-start;
    }

    .nav.active .nav-list a {
        font-size: 24px;
        color: var(--primary-blue);
    }
}

/* ===== パララックスセクション ===== */
.parallax-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-image: url('../images/parallax-bg.svg');
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    z-index: -2;
    pointer-events: none;
}
/* モバイルではbackground-attachment: fixedを無効化 */
@media (max-width: 768px) {
    .parallax-section {
        background-attachment: scroll;
    }
}

/* ===== ヒーローセクション ===== */
.hero {
    position: relative;
    min-height: 105vh;
    /* display: flex; */
    /* align-items: center; */
    padding-top: 74px;
    overflow: hidden;
}

.hero-title-container1 {
    margin-top: 212px;
    padding-left: 34px;
}

.hero-title-container1 .hero-title-line {
    font-family: 'Noto Sans', sans-serif;
    font-size: 80px;
    font-weight: 500;
    color: var(--white);
    line-height: 1.36;
}
.hero-title-container1 .hero-title-img {
    position: absolute;
    top: calc(212px + 63px);
    left: 0;
    z-index: -1;
}

.hero-title-container2 {
    margin-top: 68px;
    padding-left: 34px;
}

.hero-title-container2 .hero-title-line {
    font-family: 'Noto Sans', sans-serif;
    font-size: 80px;
    font-weight: 500;
    color: var(--white);
    line-height: 1.36;
}
.hero-title-container2 .hero-title-img {
    position: absolute;
    top: calc(212px + 63px + 177px);
    left: 0;
    z-index: -1;
}

.hero-content {
    width: 100%;
    padding: 286px 0;
}

.hero-title {
    font-family: 'Noto Sans', sans-serif;
    font-size: 80px;
    font-weight: 500;
    color: var(--white);
    line-height: 1.36;
}

.hero-title-line {
    display: block;
    margin-bottom: 10px;
}

/* ===== Serviceセクション ===== */
.services {
    padding: 170px 0;
    background: var(--white);
    background: rgba(220, 237, 255, 0.4);
    position: relative;
}

.services .ellipse-container {
    position: absolute;
    top: -280px;
    left: -150px;
    /* width: 100%;
    height: 100%; */
    z-index: 0;
}

.section-title {
    font-family: 'Oswald', sans-serif;
    font-size: 70px;
    font-weight: 500;
    /* color: var(--primary-blue); */
    color: #ffffff;
    margin-bottom: 80px;
    position: absolute;
    top: -60px;
    left: 60px;
    /* width: 100%;
    height: 100%; */
    z-index: 1;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
}

.service-card {
    background: var(--white);
    border: none;
    border-radius: 0;
    /* padding: 94px 43px; */
    /* box-shadow: 0px 0px 0px 1px #000, 0px 4px 4px 1px var(--shadow); */
    box-shadow: 0px 4px 4px rgba(178, 178, 178, 0.36);
    position: relative;
}

.service-number {
    position: absolute;
    top: -64px;
    left: -22px;
    /* width: 128px; */
    /* height: 109px; */
    font-family: 'Noto Sans', sans-serif;
    font-size: 80px;
    font-weight: 700;
    color: var(--yellow);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.service-header {
    position: relative;
    margin-bottom: 40px;
}

.service-header-bg {
    position: absolute;
    left: 0;
    /* top: 55px; */
    width: 516px;
    height: 71px;
    background: linear-gradient(90deg, rgba(0, 48, 156, 1) 0%, rgba(43, 124, 255, 1) 100%);
    border-radius: 0 100px 100px 0;
}

.service-title {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 30px;
    font-weight: 700;
    color: var(--white);
    position: relative;
    z-index: 1;
    padding: 10px 0 0 110px;
}

.service-content {
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 20px;
}

.service-description {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--dark-blue);
    line-height: 1.36;
    margin-bottom: 18px;
}

.highlight-blue {
    color: #2B7CFF;
}

.service-examples {
    background: var(--gray-bg);
    border-radius: 10px;
    padding: 20px;
    margin-top: 40px;
}

.examples-header {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.examples-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px 25px;
}

.example-item {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-blue);
}

/* ===== Featuresセクション ===== */
.features {
    position: relative;
    padding: 100px 0;
    background: rgba(220, 237, 255, 0.4);
}

.features-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
}

.features-title-white {
    color: var(--primary-blue);
    font-size: 100px;
    font-weight: 500;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
    margin-top: 80px;
}

.feature-card {
    background: var(--white);
    border-radius: 0;
    /* padding: 51px 19px 19px; */
    padding-bottom: 16px;
    box-shadow: 0px 4px 4px -1px rgba(12, 12, 13, 0.05), 0px 4px 4px -1px rgba(12, 12, 13, 0.1);
    position: relative;
    
}

.feature-card-odd {
    margin-bottom: 100px;
}

.feature-card-even {
    margin-top: 100px;
}

.feature-header {
    position: relative;
    margin-bottom: 30px;
}

.feature-header-bg {
    position: absolute;
    left: 0;
    top: 51px;
    width: 555px;
    height: 73px;
    background: linear-gradient(90deg, rgba(0, 48, 156, 1) 0%, rgba(43, 124, 255, 1) 100%);
    border: 1px solid var(--white);
    z-index: 1;
}

.feature-label {
    font-family: 'Oswald', sans-serif;
    font-size: 36px;
    font-weight: 500;
    color: var(--primary-blue);
    position: absolute;
    top: -51px;
    left: 0;
    z-index: 2;
    padding: 0 0 0 4px;
}

.feature-name {
    font-family: 'Oswald', sans-serif;
    font-size: 36px;
    font-weight: 500;
    color: var(--white);
    position: relative;
    z-index: 2;
    padding: 10px 0 10px 21px;
    background: linear-gradient(90deg, rgba(0, 48, 156, 1) 0%, rgba(43, 124, 255, 1) 100%);
}

.feature-content {
    padding-left: 20px;
    padding-right: 20px;
}

.feature-text {
    font-family: 'Noto Sans', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--dark-blue);
    line-height: 1.36;
    margin-bottom: 18px;
}

.feature-icon {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 88px;
    height: 42px;
    object-fit: contain;
}

/* ===== Messageセクション ===== */
.message {
    background-image: url('../images/message-bg.svg');
    background-position: center;
    background-size: cover;
    background-repeat: repeat;
    padding: 100px 0;
    position: relative;
    min-height: 966px;
}

.message .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.message-content {
    max-width: 530px;
    margin: 0;
    /* margin-left: 63px; */
    text-align: left;
}

.message-title {
    font-family: 'Oswald', sans-serif;
    font-size: 70px;
    font-weight: 500;
    color: var(--primary-blue);
    margin-bottom: 81px;
    line-height: 1.482;
}

.message-text {
    font-family: 'Noto Sans', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.36;
}

.message-text p {
    margin-bottom: 0;
    margin-top: 0;
}

.message-text p + p {
    margin-top: 30px;
}

/* ===== Contactセクション ===== */
.contact {
    background: var(--primary-blue);
    padding: 100px 0;
    text-align: center;
}

.contact-title {
    font-family: 'Oswald', sans-serif;
    font-size: 70px;
    font-weight: 500;
    color: var(--white);
    margin-bottom: 40px;
}

.contact-subtitle {
    font-family: 'Noto Sans', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: var(--white);
    margin-bottom: 40px;
}

.contact-button {
    display: inline-block;
    background: var(--primary-blue);
    border: 2px solid var(--white);
    border-radius: 7px;
    padding: 14px 60px;
    font-family: 'Noto Sans', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s;
}

.contact-button:hover {
    background: var(--white);
    color: var(--primary-blue);
}

/* ===== ページヘッダー（サブページ用） ===== */
.page-header {
    padding: 150px 0 80px;
    /* background: var(--light-blue); */
    text-align: center;
}

.page-title {
    font-family: 'Oswald', sans-serif;
    font-size: 70px;
    font-weight: 500;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.page-subtitle {
    font-family: 'Noto Sans', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: var(--text-dark);
}

/* ===== コンタクトフォーム ===== */
.contact-form-section {
    padding: 80px 0;
    /* background: var(--white-transparent); */
    background: var(--white);
}

.form-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.required {
    color: #FF0000;
}

.form-input,
.form-select,
.form-textarea {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 16px;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100%;
}

.form-textarea {
    resize: vertical;
    min-height: 200px;
}

.form-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
}

.form-checkbox-label input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
}

.form-checkbox-label span {
    line-height: 1.5;
}

.form-checkbox-label a {
    color: var(--primary-blue);
    text-decoration: underline;
}

.form-checkbox-label a:hover {
    opacity: 0.7;
}

.form-checkbox.error {
    outline: 2px solid #FF0000;
    outline-offset: 2px;
}

.submit-button {
    background: var(--primary-blue);
    color: var(--white);
    border: 2px solid var(--primary-blue);
    border-radius: 7px;
    padding: 14px 60px;
    font-family: 'Noto Sans', sans-serif;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    align-self: center;
}

.submit-button:hover {
    background: var(--white);
    color: var(--primary-blue);
}

.form-message {
    padding: 15px 20px;
    margin-bottom: 30px;
    border-radius: 4px;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 16px;
}

.form-message-success {
    background-color: #E8F5E9;
    color: #2E7D32;
    border: 1px solid #4CAF50;
}

.form-message-error {
    background-color: #FFEBEE;
    color: #C62828;
    border: 1px solid #F44336;
}

.form-input.error,
.form-select.error,
.form-textarea.error {
    border-color: #FF0000;
    background-color: #FFF5F5;
}

/* ===== 会社情報ページ ===== */
.company-info {
    padding: 80px 0;
    background: var(--white);
}

.company-content {
    max-width: 1000px;
    margin: 0 auto;
}

.company-section {
    margin-bottom: 60px;
}

.company-section-title {
    font-family: 'Oswald', sans-serif;
    font-size: 48px;
    font-weight: 500;
    color: var(--primary-blue);
    margin-bottom: 40px;
}

.company-list {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 20px 40px;
}

.company-list dt {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
}

.company-list dd {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: var(--text-dark);
}

/* ===== プライバシーポリシー ===== */
.privacy-info {
    padding: 80px 0;
    background: var(--white);
}

.privacy-content {
    max-width: 1000px;
    margin: 0 auto;
}

.privacy-section {
    margin-bottom: 60px;
}

.privacy-section-title {
    font-family: 'Oswald', sans-serif;
    font-size: 48px;
    font-weight: 500;
    color: var(--primary-blue);
    margin-bottom: 40px;
}

.privacy-section p {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 30px;
}

.privacy-section p strong {
    font-weight: 700;
    display: block;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--primary-blue);
}

.privacy-section p:first-child strong {
    margin-top: 0;
}

.privacy-section ul {
    list-style-position: inside;
    padding-left: 0;
    margin-bottom: 30px;
}

.privacy-section ul li {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 15px;
    padding-left: 1.2em;
    text-indent: -1.2em;
}

.privacy-section ul li p {
    display: inline;
    margin-bottom: 0;
}

.company-values {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.value-item {
    padding: 30px;
    background: var(--gray-bg);
    border-radius: 10px;
}

.value-title {
    font-family: 'Oswald', sans-serif;
    font-size: 30px;
    font-weight: 500;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.value-description {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: var(--text-dark);
    line-height: 1.6;
}

/* ===== フッター ===== */
.footer {
    background: #000000;
    padding: 60px 0 40px;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
    gap: 100px;
}

.footer-logo a {
    display: block;
    text-decoration: none;
}

.footer-logo img {
    height: auto;
    width: 45px;
}

.footer-nav-list {
    display: flex;
    flex-direction: column;
    list-style: none;
    gap: 5px;
    margin: 0;
    padding: 0;
    padding-left: 150px;
}

.footer-nav-list a {
    font-family: 'Oswald', sans-serif;
    font-size: 12px;
    font-weight: normal;
    color: var(--white);
    text-decoration: none;
    transition: opacity 0.3s;
}

.footer-nav-list a:hover {
    opacity: 0.7;
}

.footer-text {
    font-family: 'Noto Sans', sans-serif;
    font-size: 14px;
    color: var(--white);
    text-align: center;
    margin: 0;
}

/* ===== レスポンシブ ===== */
@media (max-width: 1024px) {
    .hero-title-container1 .hero-title-line,
    .hero-title-container2 .hero-title-line {
        font-size: 60px;
    }

    .hero-title-container1 {
        margin-top: 150px;
        padding-left: 20px;
    }

    .hero-title-container2 {
        margin-top: 40px;
        padding-left: 20px;
    }

    .hero-title-container1 .hero-title-img,
    .hero-title-container2 .hero-title-img {
        max-width: 100%;
        height: auto;
        left: -2px;
    }

    .section-title {
        font-size: 50px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .company-values {
        grid-template-columns: 1fr;
    }

    .message .container {
        flex-direction: column;
        gap: 40px;
    }

    .message-content {
        max-width: 100%;
    }

    .footer-content {
        flex-direction: column;
        gap: 30px;
        align-items: flex-start;
    }

    .footer-nav-list {
        padding-left: 0;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .header-content {
        gap: 20px;
    }

    .logo {
        margin-left: 0;
    }

    .nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hero {
        min-height: 95vh;
        padding-bottom: 60px;
    }

    .hero-title-container1 {
        margin-top: 240px;
        padding-left: 10px;
    }

    .hero-title-container2 {
        margin-top: 50px;
        padding-left: 10px;
    }

    .hero-title-container1 .hero-title-line,
    .hero-title-container2 .hero-title-line {
        font-size: 40px;
    }

    .hero-title-container1 .hero-title-img {
        top: 297px;
        /* left: 0; */
        margin-top: 10px;
        max-width: 82%;
    }
    .hero-title-container2 .hero-title-img {
        top: 399px;
        /* left: 0; */
        margin-top: 10px;
        max-width: 98%;
    }

    .services {
        padding: 60px 0;
    }

    .services .container {
        padding-top: 20px;
        padding-left: 24px;
        padding-right: 24px;
    }

    .services .ellipse-container {
        top: -150px;
        left: -100px;
    }
    .ellipse-img {
        width: 300px;
        height: 300px;
    }

    .section-title {
        font-size: 36px;
        margin-bottom: 40px;
        left: 20px;
        top: -26px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .service-card {
        /* padding: 40px 20px; */
    }

    .service-number {
        top: -14px;
        left: 20px;
        font-size: 52px;
    }

    .service-header-bg {
        width: 100%;
        max-width: 100%;
        height: 60px;
    }

    .service-title {
        /* padding-left: 20px; */
        /* font-size: 24px; */
        padding-left: 0;
        text-align: center;
        padding-top: 13px;
    }

    .service-content {
        /* padding-left: 0; */
        /* padding-right: 0; */
    }

    .service-description {
        font-size: 16px;
    }

    .examples-list {
        gap: 10px;
    }

    .example-item {
        font-size: 16px;
    }

    .features {
        padding: 30px 0;
        margin-bottom: -1px;
    }

    .features-title-white {
        top: 0;
    }

    .feature-card {
        /* padding: 30px 15px 60px; */
    }

    .feature-label {
        font-size: 28px;
        top: -40px;
    }

    .feature-name {
        font-size: 28px;
        padding: 8px 0 8px 15px;
    }

    .feature-text {
        font-size: 16px;
    }

    .feature-icon {
        width: 70px;
        height: 32px;
        right: -1.5px;
    }

    .feature-card-odd {
        margin-bottom: 0;
    }
    
    .feature-card-even {
        margin-top: 0;
    }

    .message {
        padding: 60px 0;
        background-image: url('../images/message-bg-sp.svg');
        /* min-height: 967px; */
        /* margin-bottom: -1px; */
    }

    .message-title {
        font-size: 48px;
        margin-bottom: 40px;
    }

    .message-text {
        font-size: 16px;
    }

    .message .container {
        flex-direction: column;
    }

    .message-icon {
        width: 100%;
        max-width: 300px;
        height: auto;
    }

    .contact {
        padding: 60px 0;
        margin-top: -1px;
    }

    .contact-title {
        font-size: 48px;
    }

    .contact-button {
        padding: 12px 40px;
        font-size: 18px;
    }

    .footer {
        padding: 40px 0 30px;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
        /* align-items: center; */
        /* text-align: center; */
        padding-left: 20px;
    }

    .footer-nav-list {
        padding-left: 0;
        /* align-items: center; */
    }

    .company-list {
        grid-template-columns: 1fr;
    }

    .privacy-section-title {
        font-size: 36px;
    }

    .privacy-section p {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .hero-title-container1 .hero-title-line,
    .hero-title-container2 .hero-title-line {
        font-size: 38px;
    }

    .section-title {
        font-size: 28px;
    }

    .service-title {
        font-size: 20px;
    }

    .feature-label,
    .feature-name {
        font-size: 24px;
    }

    .message-title,
    .contact-title {
        font-size: 36px;
    }

    .page-title {
        font-size: 48px;
    }

    .company-section-title,
    .privacy-section-title {
        font-size: 32px;
    }

    .privacy-section p {
        font-size: 14px;
    }
}

/* ===== 404ページ ===== */
.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 80px;
}

.error-content {
    text-align: center;
}

.error-code {
    font-family: 'Oswald', sans-serif;
    font-size: 160px;
    font-weight: 700;
    color: var(--primary-blue);
    line-height: 1;
    margin-bottom: 16px;
}

.error-title {
    font-family: 'Oswald', sans-serif;
    font-size: 32px;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 24px;
}

.error-message {
    font-size: 16px;
    color: var(--text-dark);
    line-height: 2;
    margin-bottom: 48px;
}

.error-button {
    display: inline-block;
    padding: 16px 48px;
    background: var(--primary-blue);
    color: var(--white);
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.error-button:hover {
    background: var(--secondary-blue);
}

@media (max-width: 768px) {
    .error-code {
        font-size: 100px;
    }

    .error-title {
        font-size: 24px;
    }

    .error-message {
        font-size: 14px;
    }
}

/* ===== カスタムカーソル ===== */
.cursor-text-ring {
    position: fixed;
    top: 0;
    left: 0;
    width: 66px;
    height: 66px;
    pointer-events: none;
    z-index: 9998;
    animation: cursorSpin 8s linear infinite;
    transition: width 0.5s ease, height 0.5s ease;
}

.cursor-text-ring .cursor-char {
    position: absolute;
    top: 0;
    left: 50%;
    font-family: 'Oswald', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: var(--primary-blue);
    transform-origin: 0 33px;
    opacity: 0.7;
    transition: color 0.5s ease, opacity 0.5s ease, transform-origin 0.5s ease;
}

.cursor-text-ring.hover {
    width: 88px;
    height: 88px;
}

.cursor-text-ring.hover .cursor-char {
    color: var(--secondary-blue);
    opacity: 1;
    transform-origin: 0 44px;
}

.cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 6px;
    height: 6px;
    background: var(--primary-blue);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: background 0.3s ease;
}

.cursor-dot.hover {
    background: var(--secondary-blue);
}

@keyframes cursorSpin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* タッチデバイスではカスタムカーソルを非表示 */
@media (hover: none), (pointer: coarse) {
    .cursor-dot,
    .cursor-text-ring {
        display: none !important;
    }
}

/* ===== アニメーション ===== */
/* キーフレーム定義 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* スクロールアニメーション用の基本クラス */
.animate-on-scroll {
    opacity: 0;
    will-change: opacity, transform;
}

.animate-on-scroll.animated {
    animation: fadeInUp 0.8s ease-out forwards;
}

.fade-in-up {
    opacity: 0.2;
    transform: translateY(40px);
    transition: opacity 1.1s ease-in-out, transform 1.1s ease-out;
    will-change: opacity, transform;
}

.fade-in-up.animated {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0.2;
    transform: translateX(-40px);
    transition: opacity 1.1s ease-in-out, transform 1.1s ease-out;
    will-change: opacity, transform;
}

.fade-in-left.animated {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0.2;
    transform: translateX(40px);
    transition: opacity 1.1s ease-in-out, transform 1.1s ease-out;
    will-change: opacity, transform;
}

.fade-in-right.animated {
    opacity: 1;
    transform: translateX(0);
}

/* ヒーローセクションのアニメーション */
.hero-title-line {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease-out, transform 1s ease-out;
    will-change: opacity, transform;
}

.hero-title-line.animated {
    opacity: 1;
    transform: translateY(0);
}

.hero-title-img {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 1s ease-out 0.3s, transform 1s ease-out 0.3s;
    will-change: opacity, transform;
}

.hero-title-img.animated {
    opacity: 1;
    transform: translateX(0);
}

/* ホバーエフェクトの強化 */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0px 8px 16px rgba(178, 178, 178, 0.5);
}

.feature-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0px 8px 16px rgba(12, 12, 13, 0.15);
}

.contact-button {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.contact-button:hover::before {
    width: 300px;
    height: 300px;
}

.contact-button:hover {
    transform: translateY(-2px);
    box-shadow: 0px 4px 12px rgba(0, 48, 156, 0.3);
}

/* モバイルでのアニメーション最適化 */
@media (max-width: 768px) {
    /* モバイルではアニメーションを軽量化 */
    /* .fade-in-up,
    .fade-in-left,
    .fade-in-right {
        transition-duration: 0.8s;
    } */

    /* ホバーエフェクトを軽量化 */
    .service-card:hover,
    .feature-card:hover {
        transform: translateY(-3px) scale(1.01);
    }

    .contact-button:hover {
        transform: translateY(-1px);
    }
}

/* モバイル（小画面）でのさらなる最適化 */
@media (max-width: 480px) {
    /* アニメーションをさらに軽量化 */
    .fade-in-up,
    .fade-in-left,
    .fade-in-right {
        transition-duration: 1.2s;
    }
}
