/* 基本設定 */
body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
    color: #333;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

/* ヘッダー */
header {
    background: #fff;
    border-bottom: 1px solid #ddd;
    padding: 20px 0;
}

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

header .logo {
    margin: 0;
    line-height: 0;
}

header .logo img {
    height: 100px;
    width: auto;
}

header nav ul {
    display: flex;
    gap: 20px;
}

header nav ul li a {
    font-weight: bold;
    color: #333;
}

header nav ul li a.active,
header nav ul li a:hover {
    color: #0066cc;
}

/* メインビジュアル */
.hero img {
    display: block;
    width: 100%;
    max-height: 400px;
    object-fit: cover;
}

.hero-text {
    text-align: center;
    padding: 40px 20px;
}

/* ご挨拶セクション */
.greeting {
    padding: 50px 0;
    background: #f9f9f9;
}

.flex-box {
    display: flex;
    align-items: center;
    gap: 40px;
}

.greeting-text {
    flex: 1;
}

.greeting-img {
    flex: 1;
    text-align: center;
}

.greeting-img img {
    max-width: 300px;
    border-radius: 8px;
}

/* フッター */
footer {
    background: #fff;
    color: #333;
    border-top: 1px solid #ddd;
    padding: 30px 0;
    text-align: center;
}

.sns-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.sns-icons img {
    width: 40px;
    height: 40px;
}

.footer-info {
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.footer-info p {
    margin: 3px 0;
}

.footer-info .footer-name {
    font-weight: bold;
    font-size: 1rem;
}

.footer-info a:hover {
    color: #0066cc;
}

/* ページ共通ヘッダータイトル */
.page-header {
    background: #f4f4f4;
    padding: 30px 0;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
}

.page-header img {
    display: block;
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    margin: -30px 0 30px 0;
}

.page-header h2 {
    margin: 0 0 10px 0;
    font-size: 1.8rem;
    color: #222;
}

/* サービスグリッド（カード並び） */
.service-list {
    padding: 50px 0;
}

.grid-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
}

.service-card {
    flex: 0 1 340px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.2s;
}

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

.service-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.customization-card {
    flex-basis: 100%;
}

.customization-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 340px));
    justify-content: center;
    gap: 20px;
    padding: 0 20px 20px;
}

.customization-gallery .customization-photo {
    display: block;
    width: 100%;
    max-width: 340px;
    aspect-ratio: 1;
    height: auto;
    box-sizing: border-box;
    justify-self: center;
    object-fit: cover;
    border: 1px dashed #aaa;
    background: #f7f7f7;
}

.card-content {
    padding: 20px;
}

.card-content h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #0066cc;
    border-bottom: 2px solid #0066cc;
    display: inline-block;
    padding-bottom: 3px;
}

/* 当社概要スタイル */
.about-content {
    padding: 50px 0;
}

.about-images {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.about-images img {
    max-width: 450px;
    width: 100%;
    border-radius: 8px;
    object-fit: cover;
}

.info-table {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    border-collapse: collapse;
}

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

.info-table th {
    width: 30%;
    background: #f9f9f9;
    font-weight: bold;
}

/* お問合せスタイル */
.contact-section {
    padding: 50px 0;
}

.contact-info-box {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-bottom: 40px;
}

.contact-item {
    flex: 1 1 280px;
    max-width: 440px;
    background: #eef6ff;
    padding: 25px 20px;
    border-radius: 8px;
    text-align: center;
}

.contact-item h3 {
    margin: 0 0 10px 0;
    color: #0066cc;
}

.contact-item p {
    margin: 5px 0;
}

.contact-main {
    font-size: 1.5rem;
    font-weight: bold;
    word-break: break-all;
}

.contact-main a:hover {
    color: #0066cc;
}

.map-container {
    margin-top: 40px;
}

.map-container h3 {
    text-align: center;
    margin-bottom: 20px;
}

.map-frame {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* ケミカル用品（WAKO'Sロゴ） */
.chemical {
    text-align: center;
    margin-top: 50px;
}

.chemical img {
    display: block;
    margin: 0 auto 10px auto;
}

.chemical h3 {
    margin: 0;
}

/* スマートフォン向け（画面幅768px以下） */
@media (max-width: 768px) {
    header {
        padding: 10px 0;
    }

    header .container {
        flex-direction: column;
        gap: 10px;
    }

    header .logo img {
        height: 70px;
    }

    header nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px 18px;
    }

    .hero img,
    .page-header img {
        max-height: 240px;
    }

    .hero-text {
        padding: 25px 0;
    }

    .hero-text h2 {
        font-size: 1.2rem;
    }

    .page-header h2 {
        font-size: 1.5rem;
    }

    .page-header p {
        font-size: 0.9rem;
        text-align: left;
    }

    .page-header p br {
        display: none;
    }

    .flex-box {
        flex-direction: column;
        gap: 25px;
    }

    .greeting,
    .service-list,
    .about-content,
    .contact-section {
        padding: 30px 0;
    }

    .service-card {
        flex-basis: 100%;
    }

    .customization-gallery {
        grid-template-columns: 1fr;
    }

    .info-table th,
    .info-table td {
        display: block;
        width: auto;
        padding: 10px;
    }

    .info-table th {
        border-bottom: none;
    }

    .contact-main {
        font-size: 1.3rem;
    }

    .map-frame iframe {
        height: 300px;
    }
}
