/* うつくし明朝体フォントの読み込み */
@font-face {
    font-family: 'Utsukushi Mincho';
    src: url('../fonts/UtsukushiFONT.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* リセットとベーススタイル */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Utsukushi Mincho', 'Yu Mincho', 'YuMincho', '游明朝', serif;
    color: #333;
    background-color: #f8f8f8;
    overflow-x: hidden;
    line-height: 1.8;
}

/* スプラッシュ画面 */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.splash-screen.active {
    opacity: 1;
    pointer-events: all;
}

.logo-splash {
    width: 120px;
    height: 120px;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    animation: logoFadeIn 1.2s ease-out forwards;
    transition: transform 0.3s ease;
}

.logo-splash:hover {
    transform: translateY(20px) scale(1.05);
}

@keyframes logoFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* メインコンテンツ */
.main-content {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
    min-height: 100vh;
}

.main-content.active {
    opacity: 1;
    pointer-events: all;
}

/* ナビゲーション */
.nav-menu {
    position: fixed;
    top: 30px;
    right: 40px;
    z-index: 100;
}

.nav-menu ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: #666;
    font-size: 14px;
    letter-spacing: 0.1em;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #a63a3a;
}

.nav-link.active {
    color: #a63a3a;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #a63a3a;
}

/* ページセクション */
.page-section {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 80px 20px;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.page-section.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
    position: relative;
}

.content-wrapper {
    max-width: 800px;
    width: 100%;
    text-align: center;
}

/* タイトルとロゴの配置 */
.title-with-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 60px;
}

.logo-small {
    width: 35px;
    height: 35px;
    flex-shrink: 0;
    margin-top: -8px;
}

.page-title {
    font-size: 32px;
    font-weight: 400;
    letter-spacing: 0.15em;
    margin-bottom: 0;
    color: #333;
}

/* 会社概要 */
.description {
    font-size: 16px;
    line-height: 2.2;
    color: #555;
    letter-spacing: 0.05em;
}

.description p {
    margin-bottom: 40px;
}

.description p:last-child {
    margin-bottom: 0;
}

/* デスクトップとモバイルの表示切り替え */
.description-mobile {
    display: none;
}

.description-desktop {
    display: block;
}

/* 会社情報 */
.company-info {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.company-info dl {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 30px 40px;
    font-size: 15px;
}

.company-info dt {
    font-weight: 500;
    color: #666;
    letter-spacing: 0.1em;
}

.company-info dd {
    color: #333;
    letter-spacing: 0.05em;
}

/* 社名とロゴの配置（会社情報内） */
.company-name-with-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 70px;
    margin-bottom: 50px;
    font-size: 20px;
    font-weight: 400;
    letter-spacing: 0.1em;
    color: #333;
}

.logo-inline {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: -3px;
}

/* メールリンク */
.email-link {
    color: #a63a3a;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.email-link:hover {
    opacity: 0.7;
    text-decoration: underline;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .nav-menu {
        top: 20px;
        right: 20px;
    }

    .nav-menu ul {
        gap: 20px;
    }

    .nav-link {
        font-size: 12px;
    }

    .logo-splash {
        width: 100px;
        height: 100px;
    }

    .page-section {
        padding: 60px 20px;
    }

    .title-with-logo {
        gap: 15px;
        margin-bottom: 40px;
    }

    .logo-small {
        width: 30px;
        height: 30px;
    }

    .page-title {
        font-size: 24px;
        margin-bottom: 0;
    }

    .description {
        font-size: 14px;
        line-height: 2;
    }

    .description p {
        margin-bottom: 30px;
    }

    .company-info dl {
        grid-template-columns: 1fr;
        gap: 15px;
        font-size: 14px;
    }

    .company-info dt {
        font-weight: 600;
        margin-top: 15px;
    }

    .company-info dt:first-child {
        margin-top: 0;
    }

    .company-name-with-logo {
        font-size: 16px;
        margin-top: 50px;
        margin-bottom: 35px;
    }

    .logo-inline {
        width: 16px;
        height: 16px;
        margin-top: -2px;
    }
}

@media (max-width: 480px) {
    .nav-menu {
        top: 15px;
        right: 15px;
    }

    .nav-menu ul {
        gap: 15px;
    }

    .logo-splash {
        width: 80px;
        height: 80px;
    }

    .title-with-logo {
        gap: 12px;
        margin-bottom: 30px;
    }

    .logo-small {
        width: 28px;
        height: 28px;
    }

    .page-title {
        font-size: 20px;
        margin-bottom: 0;
    }

    .description {
        font-size: 13px;
    }

    /* スマホ用テキストに切り替え */
    .description-desktop {
        display: none;
    }

    .description-mobile {
        display: block;
    }

    .company-name-with-logo {
        font-size: 14px;
        margin-top: 40px;
        margin-bottom: 25px;
    }

    .logo-inline {
        width: 14px;
        height: 14px;
        margin-top: -2px;
    }
}
