* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* フォント最適化 */
@font-face {
    font-family: 'Noto Sans JP';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: local('Noto Sans JP Regular'),
         url('/fonts/NotoSansJP-Regular.woff2') format('woff2');
}

body {
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #000;
    color: #fff;
    min-height: 100vh;
    overflow-x: hidden;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    backdrop-filter: blur(8px);
    background: rgba(0, 0, 0, 0.5);
    z-index: 100;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
}

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

.logo a:hover {
    color: #0070f3;
}

.menu {
    display: flex;
    gap: 2rem;
}

.menu a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.menu a:hover {
    color: #0070f3;
}

.video-background {
    position: fixed;
    right: 0;
    bottom: 0;
    min-width: 100%;
    min-height: 100%;
    z-index: 0;
}

.video-background video {
    width: 100%;
    height: 100vh;
    object-fit: cover;
    opacity: 0.7;
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.content {
    position: relative;
    z-index: 1;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 1rem;
    animation: fadeIn 1.5s ease-out;
}

h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
}

p {
    font-size: 1.5rem;
    opacity: 0.8;
}

/* Serviceページ用スタイル */
.service-main {
    padding: 100px 20px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: #fff;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
}

.service-item h2 {
    color: #0070f3;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.device-info {
    color: #fff;
}

.device-info h3 {
    border-bottom: 2px solid #0070f3;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.device-info ul {
    list-style: none;
    padding-left: 0;
}

.device-info ul ul {
    padding-left: 1.5rem;
    margin-top: 0.5rem;
}

.device-info li {
    margin-bottom: 0.5rem;
}

.device-name {
    color: #0070f3;
    font-weight: bold;
}

/* Profileページ用スタイル */
.profile-main {
    padding: 100px 20px 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.profile-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: #fff;
}

.profile-content {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.profile-section {
    margin-bottom: 3rem;
}

.profile-section h2 {
    color: #0070f3;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    border-bottom: 2px solid #0070f3;
    padding-bottom: 0.5rem;
}

.activity-list {
    list-style: none;
    padding-left: 0;
}

.activity-list li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.activity-list li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: #0070f3;
}

.map-container {
    margin-top: 1rem;
    border-radius: 10px;
    overflow: hidden;
}

.social-links {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
}

.social-button {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: #0070f3;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.social-button:hover {
    background: #0051a8;
}

.location-info {
    margin-top: 1rem;
}

.contact-info {
    line-height: 1.6;
}

/* 新しいプロフィールページのスタイル */
.mission-points {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.mission-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(0, 112, 243, 0.1);
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.mission-item:hover {
    transform: translateY(-5px);
}

.mission-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.mission-item h3 {
    color: #0070f3;
    margin-bottom: 0.5rem;
}

.timeline-items {
    position: relative;
    padding-left: 2rem;
}

.timeline-item {
    position: relative;
    padding-bottom: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 0;
    width: 2px;
    height: 100%;
    background: #0070f3;
}

.timeline-date {
    color: #0070f3;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.timeline-content {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 8px;
}

.timeline-content h3 {
    color: #fff;
    margin-bottom: 0.5rem;
}

.area-text {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.social-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.social-icon {
    font-size: 1.2rem;
}

/* 公式サイト用の追加スタイル */
.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.official-badge {
    background: linear-gradient(45deg, #0070f3, #00a6ff);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    font-weight: 500;
}

.main-copy {
    font-size: 2rem;
    margin: 2rem 0;
    font-weight: 300;
    letter-spacing: 0.1em;
}

.sub-copy {
    text-align: center;
    opacity: 0.8;
}

.established {
    font-size: 1rem;
    margin-top: 1rem;
    font-style: italic;
}

.site-footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    z-index: 10;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    font-size: 0.875rem;
    opacity: 0.8;
}

/* レスポンシブ調整 */
@media (max-width: 768px) {
    .mission-points {
        grid-template-columns: 1fr;
    }
    
    .timeline-items {
        padding-left: 1.5rem;
    }
    
    h1 {
        font-size: 3rem;
    }
    
    .main-copy {
        font-size: 1.5rem;
    }

    /* ヘッダー調整 */
    nav {
        padding: 0.8rem 1rem;
    }

    .logo {
        font-size: 1.2rem;
    }

    .menu {
        gap: 1rem;
    }

    .menu a {
        font-size: 0.9rem;
    }

    /* コンテンツ調整 */
    h1 {
        font-size: 2.5rem;
    }

    p {
        font-size: 1.2rem;
    }

    /* サービスページ調整 */
    .service-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-item {
        padding: 1.5rem;
    }

    /* プロフィールページ調整 */
    .profile-content {
        padding: 1rem;
    }

    .mission-points {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .timeline-items {
        padding-left: 1rem;
    }

    .timeline-item::before {
        left: -1rem;
    }

    /* マップ調整 */
    .map-container iframe {
        height: 300px;
    }
}

/* 小型スマートフォン対応 */
@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }

    p {
        font-size: 1rem;
    }

    .service-title,
    .profile-title {
        font-size: 1.8rem;
    }

    .device-info ul ul {
        padding-left: 1rem;
    }

    .social-button {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
}

/* デバイス向け最適化 */
@media (hover: none) {
    .service-item:hover,
    .mission-item:hover {
        transform: none;
    }
}

/* タッチデバイスでのハイライト制御 */
@media (hover: none) {
    .logo a:active,
    .menu a:active {
        color: #0070f3;
    }
}

/* 画面の向き対応 */
@media screen and (orientation: landscape) and (max-height: 500px) {
    .content {
        padding-top: 4rem;
        height: auto;
        min-height: 100vh;
    }
}

/* アニメーション効果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* テキスト選択の無効化 */
.logo,
.logo a,
h1,
p,
.menu a {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* クリック時の挙動を抑制 */
.logo a:active,
.menu a:active {
    transform: none;
    opacity: 1;
}

/* アクティブ状態でのスタイル変更を防止 */
.logo a:active,
.menu a:active,
.social-button:active {
    color: inherit;
    background: inherit;
}

/* フォーカス時のアウトラインを削除 */
.logo a:focus,
.menu a:focus,
.social-button:focus {
    outline: none;
}
