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

body {
    font-family: 'Noto Sans JP', 'Inter', sans-serif;
    font-weight: 300;
    line-height: 1.6;
}

/* メインビジュアル */
.hero {
    background-color: #fff;
    padding: 60px 40px;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.hero-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

h1 {
    margin: 0;
    padding: 0;
}

.hero-logo {
    max-width: 500px;
    width: 100%;
    height: auto;
}

.hero-copy {
    max-width: 400px;
    width: 100%;
    height: auto;
}

.hero-stats {
    text-align: center;
}

.stats-main {
    font-size: 2.5rem;
    font-weight: bold;
    color: #333;
    margin: 0;
    line-height: 1.2;
}

.stats-number {
    color: #e60012;
    font-size: 3rem;
}

.stats-note {
    font-size: 0.9rem;
    color: #666;
    margin: 5px 0 0 0;
}

.hero-button {
    max-width: 300px;
    width: 100%;
    height: auto;
    cursor: pointer;
    transition: transform 0.3s;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.hero-button:hover {
    transform: scale(1.05);
}

.hero-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-illust {
    max-width: 500px;
    width: 100%;
    height: auto;
}

/* リード文A */
.lead-a {
    background-color: #14658b;
    padding: 60px 40px;
    color: #fff;
}

.lead-a-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 60px;
}

.lead-a-left {
    flex: 1;
    text-align: center;
}

.lead-a-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lead-a-image {
    max-width: 100%;
    width: 100%;
    height: auto;
}

.lead-label {
    font-size: 1.8rem;
    font-weight: 300;
    color: #fff;
    margin-bottom: 25px;
    letter-spacing: 0.1em;
}

.lead-title {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 35px;
    letter-spacing: 0.08em;
    line-height: 1.6;
}

.lead-text {
    font-size: 1rem;
    line-height: 2.2;
    font-weight: 300;
}

/* 特徴セクション */
.features {
    display: flex;
    gap: 0;
}

.feature-item {
    flex: 1;
    padding: 80px 40px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-content {
    max-width: 400px;
}

.feature-item:nth-child(1) {
    background-color: #f5f5f5;
}

.feature-item:nth-child(2) {
    background-color: #e8e8e8;
}

.feature-item:nth-child(3) {
    background-color: #f5f5f5;
}

.feature-item h3 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
}

.feature-image-wrapper {
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.feature-image {
    max-width: 35%;
    max-height: 100%;
    width: auto;
    height: auto;
}

.feature-lead {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
}

.feature-item p {
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
}

/* 動画セクション */
.video {
    background-color: #000;
    padding: 60px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-container {
    max-width: 1200px;
    width: 100%;
}

.video-wrapper {
    position: relative;
    width: 100%;
}

.video-player {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

.video-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: transform 0.3s;
    z-index: 10;
}

.video-play-button:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.video-play-button.hidden {
    display: none;
}

/* リード文B */
.lead-b {
    background-color: #14658b;
    padding: 60px 40px;
    color: #fff;
    text-align: center;
}

.note {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* フッター */
.footer {
    background-color: #f5f5f5;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    position: relative;
}

button {
    padding: 15px 30px;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    border-radius: 8px;
    transition: opacity 0.3s;
}

button:hover {
    opacity: 0.8;
}

.btn-top {
    background-color: #12607a;
    color: #fff;
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.btn-contact {
    background-color: #12607a;
    color: #fff;
    padding: 20px 80px;
    font-size: 1.3rem;
    font-weight: bold;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.btn-chat {
    background-color: #000;
    color: #fff;
    border-radius: 50%;
    width: 100px;
    height: 100px;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
    cursor: pointer;
    transition: transform 0.3s;
}

.corporate-data {
    width: 100%;
    max-width: 600px;
    margin: 40px auto 20px;
    padding-top: 30px;
    border-top: 1px solid #ddd;
}

.corporate-data h3 {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 20px;
    text-align: center;
    color: #333;
}

.corporate-table {
    width: 100%;
    border-collapse: collapse;
}

.corporate-table th {
    text-align: left;
    padding: 10px 20px 10px 0;
    font-weight: 500;
    color: #555;
    width: 80px;
    vertical-align: top;
}

.corporate-table td {
    padding: 10px 0;
    color: #666;
}

.corporate-table a {
    color: #14658b;
    text-decoration: none;
}

.corporate-table a:hover {
    text-decoration: underline;
}

.copyright {
    width: 100%;
    text-align: center;
    font-size: 0.9rem;
    color: #666;
    padding-top: 20px;
}

.copyright a {
    color: #666;
    text-decoration: none;
}

.copyright a:hover {
    text-decoration: underline;
}

/* お問い合わせフォーム */
.contact-form-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.contact-form-container {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(-30px);
    transition: transform 0.3s ease;
}

.contact-form-overlay.active .contact-form-container {
    transform: translateY(0);
}

.contact-form-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 32px;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s;
}

.contact-form-close:hover {
    color: #12607a;
}

.contact-form-container h2 {
    font-size: 2rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 30px;
    text-align: center;
}

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

.form-group label {
    display: block;
    font-size: 1rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

.required {
    color: #e60012;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: 'Noto Sans JP', 'Inter', sans-serif;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #12607a;
}

.form-submit {
    width: 100%;
    padding: 15px;
    background-color: #12607a;
    color: #fff;
    font-size: 1.2rem;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: opacity 0.3s;
}

.form-submit:hover {
    opacity: 0.8;
}

/* チャットウィンドウ */
.chat-window {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 380px;
    height: 550px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    z-index: 1500;
    transform: translateY(20px) scale(0.95);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
}

.chat-window.active {
    transform: translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
}

.chat-header {
    background: #12607a;
    color: #fff;
    padding: 20px;
    border-radius: 16px 16px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: bold;
}

.chat-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s;
}

.chat-close:hover {
    opacity: 0.7;
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #f9f9f9;
}

.chat-message {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
}

.chat-message.bot {
    align-items: flex-start;
}

.chat-message.user {
    align-items: flex-end;
}

.chat-message p {
    background: #fff;
    padding: 12px 16px;
    border-radius: 12px;
    margin: 0;
    max-width: 80%;
    line-height: 1.5;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.chat-message.bot p {
    background: #fff;
    color: #333;
}

.chat-message.user p {
    background: #12607a;
    color: #fff;
}

.chat-input-area {
    padding: 15px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 10px;
    background: #fff;
    border-radius: 0 0 16px 16px;
}

.chat-input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 0.95rem;
    font-family: 'Noto Sans JP', 'Inter', sans-serif;
    transition: border-color 0.3s;
}

.chat-input:focus {
    outline: none;
    border-color: #12607a;
}

.chat-send {
    background: #12607a;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.3s;
}

.chat-send:hover {
    opacity: 0.8;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .hero {
        padding: 40px 20px;
    }

    .hero-content {
        flex-direction: column;
        gap: 40px;
    }

    .hero-logo,
    .hero-copy,
    .hero-button,
    .hero-illust {
        max-width: 100%;
    }

    .lead-a-content {
        flex-direction: column;
        gap: 40px;
    }

    .features {
        flex-direction: column;
    }

    .footer {
        flex-direction: column;
        gap: 15px;
    }

    .btn-chat {
        width: 80px;
        height: 80px;
        filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
    }
}
