/* リセットCSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Helvetica Neue", Arial, sans-serif;
}


body {
    background: linear-gradient(135deg, #6a43f423,#ffffff);
    color: #000000;
    overflow-x: hidden;
}

/* 斜め線アニメーション */
.line-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    pointer-events: none;
    overflow: hidden;
}

.diagonal-line {
    position: absolute;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.7);
    transform-origin: left center;
    transform: rotate(-30deg) scaleX(0);
    top: 0;
    left: 0;
}

/* ローディングアニメーション */
.loading-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(43, 88, 118, 0.8), rgba(78, 67, 118, 0.8));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.5s ease-out;
}

.loading-logo {
    font-size: 48px;
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 30px;
    color: #ffffff;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards 0.2s;
}

.loading-bar {
    width: 200px;
    height: 2px;
    background-color: #aaaaaa;
    position: relative;
}

.loading-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background-color: #fff;
    transition: width 2s cubic-bezier(0.19, 1, 0.22, 1);
}

/* メインコンテンツ */
.main-content {
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-out;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 30px 0;
    z-index: 100;
    transition: background-color 0.3s ease;
}

.header-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 1px;
}

.logo img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

nav ul {
    display: flex;
    list-style: none;
}

nav > ul > li {
    margin-left: 40px;
}

nav a {
    color: #000000;
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 1px;
    position: relative;
    transition: opacity 0.3s ease;
}

nav a:hover {
    opacity: 0.7;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #777777;
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    height: 18px;
    cursor: pointer;
    position: relative;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: #000;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* ハンバーガーメニューのX状態 */
.menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

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

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

/* ヒーローセクション */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-content {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 72px;
    font-weight: bold;
    line-height: 1.1;
    margin-bottom: 30px;
}

.title-line {
    display: block;
    opacity: 0;
    transform: translateY(30px);
}

.hero-subtitle {
    font-size: 1.5rem;
    letter-spacing: 1px;
    margin-bottom: 60px;
    opacity: 0;
}

.scroll-indicator {
    position: absolute;
    bottom: -70px;
    right: 50px;
    transform: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
}

.scroll-indicator span {
    font-size: 12px;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.scroll-arrow {
    width: 1px;
    height: 40px;
    background-color: #000000;
    position: relative;
    animation: scrollDown 1.5s infinite;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -3px;
    width: 7px;
    height: 7px;
    border-right: 1px solid #000000;
    border-bottom: 1px solid #000000;
    transform: rotate(45deg);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.bg-shape {
    position: absolute;
    top: 10%;
    right: -20%;
    width: 70%;
    height: 80%;
    background: linear-gradient(135deg, #2b5876, #4e4376);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    opacity: 0.6;
    transform: scale(0.8);
    transition: all 2s cubic-bezier(0.19, 1, 0.22, 1);
}

/* サービスセクション */
#service-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #ffffff, #ffffff);
}

.section-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 64px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 80px;
    letter-spacing: 4px;
    background: linear-gradient(135deg, #000000, #000000);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.service-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.service-list a{
        text-decoration: none;
        color: inherit;

}

.service-item {
    display: flex;
    align-items: center;
    padding: 40px;
    background: rgba(157, 157, 157, 0.03);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
}

.service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(78, 67, 118, 0.1), transparent);
    transition: left 0.5s ease;
}

.service-item:hover::before {
    left: 100%;
}

.service-item:hover {
    transform: translateY(-5px);
    border-color: rgba(78, 67, 118, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.service-content {
    flex: 1;
    z-index: 2;
}

.service-title {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.service-title-small {
    font-size: 0.5em;
    opacity: 0.6;
}

.service-subtitle {
    font-weight: bold;
    font-size: 17px;
    opacity: 0.8;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.service-description {
    font-weight: bold;
    font-size: 20px;
    line-height: 1.8;
    opacity: 0.8;
}

.service-image {
    width: 300px;
    height: 150px;
    margin-left: 40px;
    border-radius: 15px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border: 2px solid #f0f0f0;
}

.service-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    z-index: 2;
}

/* 2分割セクション（ABOUT & CAREER） */
.split-section {
    display: flex;
    min-height: 40vh;
}

.split-item {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    overflow: hidden;
    transition: all 0.25s ease;
}

.split-item:hover {
    transform: translateY(2px);
    filter: brightness(1.05);
}

.split-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
    transition: background 0.3s ease;
}

.split-item:hover::before {
    background: rgba(0, 0, 0, 0.2);
}

.about-bg {
    background: linear-gradient(135deg, rgba(43, 88, 118, 0.8), rgba(78, 67, 118, 0.8));
}

.career-bg {
    background: linear-gradient(135deg, rgba(78, 67, 118, 0.8), rgba(43, 88, 118, 0.8));
}

.split-content {
    text-align: center;
    z-index: 2;
    position: relative;
}

.split-title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    letter-spacing: 3px;
}

.split-subtitle {
    font-size: 18px;
    opacity: 0.9;
    letter-spacing: 1px;
}

/* CONTACTセクション */
.contact-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #ffffff, #ffffff);
    text-align: center;
}

.contact-title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    letter-spacing: 3px;
}

.contact-subtitle {
    font-size: 16px;
    margin-bottom: 50px;
    opacity: 0.8;
    border-bottom: 2px solid #000;
    padding-bottom: 10px;
    display: inline-block;
}

.contact-description {
    font-size: 16px;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.contact-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background-color: #000;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.25s ease;
    font-size: 24px;
}

.contact-button:hover {
    background-color: #333;
    transform: translateY(2px);
    filter: brightness(1.05);
}

.contact-button::after {
    content: '→';
}

/* アニメーション */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scrollDown {
    0% {
        height: 0;
    }
    50% {
        height: 40px;
    }
    100% {
        height: 0;
    }
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    header {
        padding: 16px 0;
    }

    .menu-toggle {
        display: flex;
    }

    .menu-toggle span {
        background-color: #000;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: linear-gradient(135deg, rgba(43, 88, 118, 0.95), rgba(78, 67, 118, 0.95));
        backdrop-filter: blur(10px);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: right 0.5s ease;
        z-index: 1000;
    }

    nav.active {
        right: 0;
    }

    nav ul {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        padding: 0 24px;
    }

    nav > ul > li {
        margin: 0;
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }

    nav a {
        color: #ffffff;
        font-size: 18px;
        display: block;
        width: 100%;
        padding: 14px 0;
    }

    .hero-title {
        font-size: 40px;
    }

    .scroll-indicator {
        display: none;
    }

    #service-section {
        background: linear-gradient(rgba(18, 24, 35, 0.45), rgba(18, 24, 35, 0.45)),
                    url("../img/freelance.jpg.png") center center / cover no-repeat;
    }

    .service-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
        border: 0;
    }

    .service-list > a {
        display: block;
        border: 0;
        transition: transform 0.25s ease, filter 0.25s ease;
        opacity: 0;
        transform: translateY(12px) scale(0.985);
    }

    .service-list > a.in-view {
        opacity: 1;
        transform: translateY(0) scale(1);
        transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
                    opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1),
                    filter 0.25s ease;
    }

    .service-list > a:hover,
    .service-list > a:active,
    .service-list > a:focus-visible {
        transform: translateY(2px);
        filter: brightness(1.05);
    }

    .service-item {
        height: 100%;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 24px 20px;
        min-height: 180px;
        border: 1px solid rgba(255, 255, 255, 0.45);
        border-radius: 24px;
        background: rgba(255, 255, 255, 0.72);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
    }

    .service-image {
        display: none;
    }

    .service-item::before {
        display: none;
    }

    .service-item:hover,
    .service-item:active,
    .service-item:focus-within {
        transform: translateY(2px);
        border-color: transparent;
        background: rgba(255, 255, 255, 0.86);
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
    }

    .service-content {
        width: 100%;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        text-align: center;
    }

    .service-title {
        display: block;
        font-size: 16px;
        color: #62676d;
        letter-spacing: 0;
        line-height: 1.2;
        margin-bottom: 2px;
        text-align: center;
    }

    p.service-description {
        display: none;
    }

    .service-title-small {
        display: block;
        font-size: 10px;
        color: #62676d;
        opacity: 1;
        margin-left: 0;
        text-align: center;
    }

    .service-subtitle {
        display: none;
    }

    .service-arrow {
        display: block;
        position: absolute;
        right: 14px;
        top: 50%;
        transform: translateY(-50%);
        color: #74b72e;
        font-size: 36px;
        line-height: 1;
        transition: transform 0.25s ease;
    }

    .service-arrow::before {
        content: "›";
    }

    .service-list > a:hover .service-arrow,
    .service-list > a:active .service-arrow,
    .service-list > a:focus-visible .service-arrow {
        transform: translateY(-50%) translateX(3px);
    }

    .split-section {
        flex-direction: column;
    }

    .split-title {
        font-size: 36px;
    }

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

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

    .dropdown-menu {
        position: static;
        min-width: 0;
        margin: 0;
        padding: 0 0 10px;
        background: transparent;
        box-shadow: none;
        border-radius: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
        pointer-events: auto;
        display: none;
    }

    .has-dropdown.open .dropdown-menu,
    .has-dropdown:hover .dropdown-menu,
    .has-dropdown:focus-within .dropdown-menu {
        display: block;
    }

    .dropdown-menu a {
        color: #ffffff !important;
        opacity: 0.85;
        padding: 10px 0 10px 14px;
        font-size: 16px;
    }

    .dropdown-menu a:hover {
        color: #ffffff !important;
        background-color: rgba(255, 255, 255, 0.08);
        font-weight: normal;
    }

    .contact-btn,
    .contact-button,
    .menu-toggle {
        transition: transform 0.25s ease, filter 0.25s ease;
    }

    .contact-btn:hover,
    .contact-button:hover,
    .menu-toggle:hover {
        transform: translateY(2px);
        filter: brightness(1.05);
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 32px;
    }

    .section-title {
        font-size: 34px;
        margin-bottom: 48px;
    }

    .service-item {
        min-height: 150px;
        padding: 20px 12px;
        border-radius: 18px;
    }

    .service-list {
        gap: 10px;
    }

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

    .service-title-small {
        font-size: 9px;
    }

    .service-arrow {
        right: 10px;
        font-size: 30px;
    }

    .contact-title,
    .split-title {
        font-size: 30px;
    }
}

/* メニューオーバーレイの背景 */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}



/* ドロップダウンメニューの基本スタイル */
.has-dropdown {
    position: relative;
}

@media (min-width: 769px) {
    .dropdown-menu {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: white;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        border-radius: 4px;
        list-style: none;
        padding: 10px 0;
        margin: 5px 0 0 0;
        min-width: 180px;
        z-index: 1001; /* ヘッダーより手前に表示 */
        opacity: 0;
        visibility: hidden;
        transform: translateY(6px);
        pointer-events: none;
        transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    }

    .has-dropdown:hover .dropdown-menu,
    .has-dropdown:focus-within .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }

    .dropdown-menu li {
        padding: 0;
        margin-left: 0;
    }

    .dropdown-menu a {
        display: block;
        padding: 5px 10px;
        color: #333 !important;
        font-weight: normal;
        text-decoration: none;
        white-space: nowrap;
    }

    .dropdown-menu a:hover {
        background-color: #f5f5f5;
        color: #00aaff !important;
        font-weight: bold;
    }
}

/* フッタースタイル */
footer {
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 80px 0 40px;
    font-family: "Helvetica Neue", Arial, sans-serif;
}

.footer-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.footer-info {
    flex: 1;
    min-width: 300px;
    margin-bottom: 40px;
}

.footer-logo img {
    height: 40px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1); /* 白ロゴにする */
}

.footer-logo-text {
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.footer-logo-text a {
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-logo-text a:hover {
    opacity: 0.7;
}

.footer-address {
    font-size: 14px;
    line-height: 1.8;
    color: #aaa;
}

.footer-nav {
    flex: 2;
    display: flex;
    justify-content: flex-end;
    gap: 60px;
    flex-wrap: wrap;
}

.footer-nav-group h4 {
    font-size: 16px;
    margin-bottom: 20px;
    font-weight: bold;
    letter-spacing: 1px;
}

.footer-nav-group ul {
    list-style: none;
    padding: 0;
}

.footer-nav-group ul li {
    margin-bottom: 12px;
}

.footer-nav-group ul li a {
    color: #aaa;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-nav-group ul li a:hover {
    color: #ffffff;
}

.footer-bottom {
    width: 90%;
    max-width: 1200px;
    margin: 60px auto 0;
    padding-top: 30px;
    border-top: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright {
    font-size: 12px;
    color: #777;
}

.footer-legal-links {
    display: flex;
    gap: 20px;
}

.footer-legal-links a {
    color: #777;
    text-decoration: none;
    font-size: 12px;
    transition: color 0.3s ease;
}

.footer-legal-links a:hover {
    color: #aaa;
}

@media (max-width: 768px) {
    footer {
        padding: 60px 0 30px;
    }
    
    .footer-container {
        flex-direction: column;
    }
    
    .footer-nav {
        justify-content: flex-start;
        gap: 30px;
    }
    
    .footer-nav-group {
        width: 100%;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        margin-top: 40px;
    }
}

