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

body {
    font-family: 'Hiragino Kaku Gothic ProN', 'ヒラギノ角ゴ ProN W3', 'メイリオ', Meiryo, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* ヘッダー */
header {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-image {
    height: 50px;
    width: auto;
}

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

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

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
}

nav a:hover {
    opacity: 0.8;
}

/* ヒーローセクション */
.hero {
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.85) 0%, rgba(0, 242, 254, 0.85) 100%),
                url('images/hero-background.png') center/cover no-repeat;
    background-blend-mode: overlay;
    color: white;
    text-align: center;
    padding: 150px 2rem 100px;
    margin-top: 60px;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: #FFD700;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
    letter-spacing: 0.05em;
}

.hero p {
    font-size: 1.2rem;
    font-weight: 500;
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.03em;
}

/* コンテナ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* セクション共通スタイル */
section {
    padding: 80px 0;
}

section h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 3rem;
    color: #0891b2;
    position: relative;
    padding-bottom: 1rem;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

/* 会社概要セクション */
#about {
    background-color: #f9fafb;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #0891b2;
}

.about-text p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.about-image {
    height: 300px;
    border-radius: 10px;
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 事業内容セクション */
#business {
    background-color: #f0f9ff;
}

.business-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 5rem;
    padding: 3rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.business-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.business-item:last-child {
    margin-bottom: 0;
}

.business-item:nth-child(even) .business-text {
    order: 2;
}

.business-item:nth-child(even) .business-image {
    order: 1;
}

.business-text h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #0891b2;
}

.business-text p {
    color: #555;
    line-height: 1.9;
    font-size: 1.05rem;
}

.business-image {
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
}

.business-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 会社情報セクション */
#company-info {
    background-color: #f9fafb;
}

.info-table {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

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

.info-table th,
.info-table td {
    padding: 1.5rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.info-table th {
    background-color: #0891b2;
    color: white;
    font-weight: 600;
    width: 30%;
}

.info-table td {
    color: #333;
}

.info-table tr:last-child th,
.info-table tr:last-child td {
    border-bottom: none;
}

/* お問い合わせセクション */
.contact-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-info {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-top: 2rem;
    margin-bottom: 3rem;
}

.contact-info p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.contact-info strong {
    color: #0891b2;
    font-weight: 600;
}

.contact-info a {
    color: #0891b2;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* お問い合わせフォーム */
.contact-form {
    background: white;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: left;
}

.form-group {
    margin-bottom: 1.5rem;
}

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

.required {
    color: #ef4444;
    font-weight: bold;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e5e7eb;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4facfe;
}

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

.submit-btn {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    padding: 1rem 3rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 6px rgba(79, 172, 254, 0.3);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(79, 172, 254, 0.4);
}

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

/* フッター */
footer {
    background-color: #0e7490;
    color: white;
    text-align: center;
    padding: 2rem 0;
}

footer p {
    opacity: 0.8;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.5rem 1rem;
    }

    .logo {
        gap: 0.5rem;
    }

    .logo-image {
        height: 35px;
    }

    .logo h1 {
        font-size: 1.3rem;
    }

    nav ul {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
        justify-content: center;
        font-size: 0.9rem;
    }

    nav li {
        padding: 0.3rem 0.5rem;
    }

    .hero {
        padding: 100px 1.5rem 70px;
    }

    .hero h2 {
        font-size: 1.8rem;
        line-height: 1.3;
    }

    .hero p {
        font-size: 1rem;
        line-height: 1.5;
    }

    section {
        padding: 50px 0;
    }

    section h2 {
        font-size: 1.6rem;
        margin-bottom: 2rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-image {
        height: 250px;
    }

    .business-item {
        grid-template-columns: 1fr;
        padding: 1.5rem;
        margin-bottom: 2.5rem;
        gap: 1.5rem;
    }

    .business-item:nth-child(even) .business-text,
    .business-item:nth-child(even) .business-image {
        order: unset;
    }

    .business-text h3 {
        font-size: 1.4rem;
    }

    .business-text p {
        font-size: 0.95rem;
    }

    .business-image {
        height: 250px;
    }

    .info-table th,
    .info-table td {
        padding: 0.8rem;
        font-size: 0.85rem;
    }

    .info-table th {
        width: 35%;
    }

    .contact-info {
        padding: 1.5rem;
    }

    .contact-info p {
        font-size: 1rem;
    }

    .contact-form {
        padding: 2rem 1.5rem;
    }

    .form-group label {
        font-size: 0.95rem;
    }

    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group textarea {
        padding: 0.7rem;
        font-size: 0.95rem;
    }

    .submit-btn {
        width: 100%;
        padding: 0.9rem 2rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 0.5rem 0.8rem;
    }

    .logo {
        gap: 0.4rem;
    }

    .logo-image {
        height: 30px;
    }

    .logo h1 {
        font-size: 1.1rem;
    }

    nav ul {
        gap: 0.3rem;
        font-size: 0.8rem;
    }

    nav li {
        padding: 0.2rem 0.4rem;
    }

    .container {
        padding: 0 1rem;
    }

    .hero {
        padding: 90px 1rem 60px;
    }

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

    .hero p {
        font-size: 0.9rem;
    }

    section {
        padding: 40px 0;
    }

    section h2 {
        font-size: 1.4rem;
        margin-bottom: 1.5rem;
    }

    .about-text h3 {
        font-size: 1.2rem;
    }

    .about-text p {
        font-size: 0.9rem;
    }

    .about-image {
        height: 200px;
    }

    .business-item {
        padding: 1.2rem;
        margin-bottom: 2rem;
        gap: 1.2rem;
    }

    .business-text h3 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    .business-text p {
        font-size: 0.9rem;
        line-height: 1.7;
    }

    .business-image {
        height: 200px;
    }

    .info-table th,
    .info-table td {
        display: block;
        width: 100%;
        padding: 0.8rem;
        font-size: 0.85rem;
    }

    .info-table th {
        padding-bottom: 0.5rem;
        background-color: #f0f9ff;
        color: #0891b2;
        border-bottom: none;
    }

    .info-table td {
        padding-top: 0.5rem;
        padding-bottom: 1rem;
    }

    .info-table tr {
        border-bottom: 2px solid #e5e7eb;
    }

    .contact-info {
        padding: 1.2rem;
    }

    .contact-info p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .contact-form {
        padding: 1.5rem 1rem;
    }

    .form-group {
        margin-bottom: 1.2rem;
    }

    .form-group label {
        font-size: 0.9rem;
    }

    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group textarea {
        padding: 0.6rem;
        font-size: 0.9rem;
    }

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

    .submit-btn {
        width: 100%;
        padding: 0.8rem 2rem;
        font-size: 0.95rem;
    }
}
