@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

:root {
    --main-bg: #181c24;
    --accent: #00c3ff;
    --accent2: #ff7e5f;
    --text: #f4f4f4;
    --subtext: #b0b8c1;
    --card-bg: #232a36;
    --border: #2c3440;
}

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

body {
    font-family: 'Roboto', 'Yu Gothic', 'Meiryo', sans-serif;
    background: var(--main-bg);
    color: var(--text);
    line-height: 1.7;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background: transparent;
    border-bottom: none;
    padding: 24px 0 12px 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 200;
    transition: background 0.3s, box-shadow 0.3s, padding 0.3s, border-bottom 0.3s;
}

header.scrolled {
    background: rgba(24, 28, 36, 0.98);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.12);
    border-bottom: 1px solid var(--border);
    padding: 10px 0 4px 0;
}

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

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    transition: width 0.3s, height 0.3s;
}

header.scrolled .header-logo {
    width: 40px;
    height: 40px;
}

.logo {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #fff;
    display: inline-block;
    transition: font-size 0.3s, color 0.3s;
}

header.scrolled .logo {
    font-size: 1.4rem;
    color: var(--accent);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 32px;
    margin-top: 8px;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s, border-bottom 0.2s;
    position: relative;
}

header.scrolled nav a {
    color: var(--text);
}

nav a::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: var(--accent2);
    transition: width 0.3s;
    position: absolute;
    left: 0;
    bottom: -4px;
}

nav a:hover {
    color: var(--accent2);
}

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

#loader {
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: #181c24;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s;
}

#loader.loaded {
    opacity: 0;
    pointer-events: none;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.loader-logo {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 32px;
    letter-spacing: 2px;
}

.loader-spinner {
    width: 48px;
    height: 48px;
    border: 5px solid #fff;
    border-top: 5px solid var(--accent2);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.hero {
    position: relative;
    min-height: 100vh;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    overflow: hidden;
    z-index: 1;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    z-index: 0;
}

.hero-bg video {
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    min-width: 100vw;
    min-height: 100vh;
    filter: brightness(0.6) blur(1px);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(120deg, rgba(0, 195, 255, 0.3) 0%, rgba(255, 126, 95, 0.3) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    text-align: center;
    padding: 80px 0 60px 0;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero .container {
    opacity: 0;
    transform: translateY(40px);
    animation: fadeUp 1.2s cubic-bezier(.77, 0, .18, 1) 0.2s forwards;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: none;
    }
}

.hero h2 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 18px;
    opacity: 0;
    animation: fadeIn 1s 0.5s forwards;
}

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

.hero p {
    font-size: 1.3rem;
    margin-bottom: 32px;
    opacity: 0;
    animation: fadeIn 1s 0.8s forwards;
}

.cta-btn {
    display: inline-block;
    background: #fff;
    color: var(--accent2);
    font-weight: bold;
    padding: 14px 38px;
    border-radius: 30px;
    font-size: 1.1rem;
    text-decoration: none;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    transition: background 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
    opacity: 0;
    animation: fadeIn 1s 1.1s forwards;
}

.cta-btn:hover {
    background: var(--accent2);
    color: #fff;
    transform: translateY(-3px) scale(1.07);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}

.services {
    background: var(--main-bg);
    padding: 60px 0 40px 0;
}

.services h3 {
    font-size: 2rem;
    margin-bottom: 36px;
    text-align: center;
    color: var(--accent);
}

.service-list {
    display: flex;
    gap: 32px;
    justify-content: center;
    flex-wrap: wrap;
}

.service-item {
    background: var(--card-bg);
    border-radius: 18px;
    padding: 32px 28px;
    min-width: 260px;
    max-width: 320px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
    text-align: center;
    margin-bottom: 24px;
    transition: transform 0.25s cubic-bezier(.77, 0, .18, 1), box-shadow 0.25s;
    opacity: 0;
    transform: translateY(40px);
}

.service-item.visible {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s, transform 0.7s;
}

.service-item:hover {
    transform: translateY(-10px) scale(1.04);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
    z-index: 1;
}

.service-item h4 {
    color: var(--accent2);
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.service-item p {
    color: var(--subtext);
}

.about {
    background: var(--card-bg);
    padding: 60px 0 40px 0;
}

.about h3 {
    font-size: 2rem;
    margin-bottom: 28px;
    color: var(--accent);
    text-align: center;
}

.about table {
    margin: 0 auto;
    color: var(--text);
    border-collapse: collapse;
    min-width: 320px;
}

.about th,
.about td {
    padding: 12px 18px;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

.about th {
    color: var(--accent2);
    font-weight: 700;
    width: 120px;
}

.contact {
    background: var(--main-bg);
    padding: 60px 0 60px 0;
    text-align: center;
}

.contact h3 {
    font-size: 2rem;
    margin-bottom: 18px;
    color: var(--accent);
}

.contact p {
    color: var(--subtext);
    margin-bottom: 32px;
}

/* 問い合わせフォーム */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text);
    font-weight: 500;
}

.required {
    color: var(--accent2);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: 8px;
    background: var(--card-bg);
    color: var(--text);
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 195, 255, 0.1);
}

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

.submit-btn {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    width: 100%;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 195, 255, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

/* フォーム送信結果 */
.form-success,
.form-error {
    max-width: 600px;
    margin: 32px auto 0;
    padding: 24px;
    border-radius: 12px;
    text-align: center;
}

.form-success {
    background: rgba(76, 175, 80, 0.1);
    border: 2px solid #4CAF50;
    color: #4CAF50;
}

.form-error {
    background: rgba(244, 67, 54, 0.1);
    border: 2px solid #F44336;
    color: #F44336;
}

.form-success h4,
.form-error h4 {
    margin-bottom: 12px;
    font-size: 1.2rem;
}

footer {
    background: var(--card-bg);
    text-align: center;
    padding: 18px 0;
    color: var(--subtext);
    font-size: 0.95rem;
    border-top: 1px solid var(--border);
}

@media (max-width: 800px) {

    .service-content,
    .company-intro-content,
    .access-content {
        flex-direction: column;
        gap: 32px;
    }

    .service-image,
    .company-intro-image {
        flex: none;
        max-width: 280px;
        margin: 0 auto;
    }

    .access-map {
        flex: none;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    .service-list {
        flex-direction: column;
        align-items: center;
    }

    .container {
        padding: 0 10px;
    }

    .hero {
        padding: 60px 0 40px 0;
    }
}

@media (max-width: 500px) {
    .logo {
        font-size: 1.3rem;
    }

    .header-logo {
        width: 40px;
        height: 40px;
    }

    .logo-container {
        gap: 8px;
    }

    .hero h2 {
        font-size: 1.5rem;
    }

    .services h3,
    .about h3,
    .company-intro h3,
    .access h3,
    .contact h3 {
        font-size: 1.3rem;
    }

    .service-item {
        padding: 18px 10px;
        min-width: 180px;
    }

    .about table {
        min-width: 180px;
        font-size: 0.95rem;
    }

    .service-image,
    .company-intro-image {
        max-width: 240px;
    }

    .access-map {
        max-width: 320px;
    }

    /* フォームのレスポンシブ対応 */
    .contact-form {
        padding: 0 10px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px;
        /* iOSでズームを防ぐ */
    }

    .submit-btn {
        padding: 16px 24px;
        font-size: 1rem;
    }
}

/* スクロール時のふわっと表示用 */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s, transform 0.7s;
}

.fade-in.visible {
    opacity: 1;
    transform: none;
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.7s, transform 0.7s;
}

.slide-in-left.visible {
    opacity: 1;
    transform: none;
}

.slide-in-right {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.7s, transform 0.7s;
}

.slide-in-right.visible {
    opacity: 1;
    transform: none;
}

.zoom-in {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.7s, transform 0.7s;
}

.zoom-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* サービスセクションの画像表示 */
.service-content {
    display: flex;
    align-items: center;
    gap: 48px;
    margin-bottom: 40px;
}

.service-image {
    flex: 0 0 300px;
    text-align: center;
}

.service-img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.service-img:hover {
    transform: scale(1.05);
}

.service-list {
    flex: 1;
    display: flex;
    gap: 32px;
    justify-content: center;
    flex-wrap: wrap;
}

/* 会社紹介セクション */
.company-intro {
    background: var(--card-bg);
    padding: 60px 0 40px 0;
}

.company-intro h3 {
    font-size: 2rem;
    margin-bottom: 36px;
    color: var(--accent);
    text-align: center;
}

.company-intro-content {
    display: flex;
    align-items: center;
    gap: 48px;
}

.company-intro-text {
    flex: 1;
}

.company-intro-text h4 {
    color: var(--accent2);
    font-size: 1.3rem;
    margin-bottom: 12px;
    margin-top: 24px;
}

.company-intro-text h4:first-child {
    margin-top: 0;
}

.company-intro-text p {
    color: var(--subtext);
    margin-bottom: 16px;
    line-height: 1.8;
}

.company-intro-text ul {
    color: var(--subtext);
    margin-left: 20px;
    margin-bottom: 16px;
}

.company-intro-text li {
    margin-bottom: 8px;
}

.company-intro-image {
    flex: 0 0 300px;
    text-align: center;
}

.company-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.company-image:hover {
    transform: scale(1.05);
}

/* アクセスセクション */
.access {
    background: var(--main-bg);
    padding: 60px 0 40px 0;
}

.access h3 {
    font-size: 2rem;
    margin-bottom: 36px;
    color: var(--accent);
    text-align: center;
}

.access-content {
    display: flex;
    align-items: flex-start;
    gap: 48px;
}

.access-info {
    flex: 1;
}

.access-info h4 {
    color: var(--accent2);
    font-size: 1.3rem;
    margin-bottom: 12px;
    margin-top: 24px;
}

.access-info h4:first-child {
    margin-top: 0;
}

.access-info p {
    color: var(--subtext);
    margin-bottom: 16px;
    line-height: 1.8;
}

.access-info ul {
    color: var(--subtext);
    margin-left: 20px;
    margin-bottom: 16px;
}

.access-info li {
    margin-bottom: 8px;
}

.access-map {
    flex: 0 0 400px;
    min-height: 300px;
}

.map-placeholder {
    background: var(--card-bg);
    border: 2px dashed var(--border);
    border-radius: 12px;
    height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--subtext);
    text-align: center;
    padding: 20px;
}

.map-placeholder p {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.map-placeholder small {
    font-size: 0.9rem;
    opacity: 0.7;
}

.section-divider-top,
.section-divider-bottom {
    width: 100%;
    line-height: 0;
    position: relative;
    z-index: 2;
}

.section-divider-top {
    margin-bottom: -1px;
}

.section-divider-bottom {
    margin-top: -1px;
}

.services,
.about,
.company-intro,
.access,
.contact {
    position: relative;
    z-index: 3;
}