/* リセットCSS */
*, *::before, *::after {
    box-sizing: border-box;
}

body, h1, h2, h3, h4, p, ul, li {
    margin: 0;
    padding: 0;
}

ul {
    list-style: none;
}

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

body {
    font-family: 'M PLUS Rounded 1c', sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: #343a40;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

/* ヘッダー */
header {
    background-color: #ffffff;
    padding: 20px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #3498db;
}

nav ul {
    display: flex;
}

nav li {
    margin-left: 30px;
}

nav a {
    display: block;
    padding: 10px;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #2980b9;
}

.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
}

.hamburger-menu span {
    display: block;
    height: 3px;
    background-color: #3498db;
    border-radius: 3px;
    transition: transform 0.3s ease;
}

/* メイン */
main {
    overflow: hidden; /* グリッドレイアウト時に子要素がはみ出るのを防ぐ */
}

/* ヒーローセクション */
.hero {
    background-image: url('first_view.jpg'); /* 画像パスを実際のファイル名に置き換えてください */
    background-size: cover;
    background-position: center;
    color: #ffffff; /* テキスト色を白に変更 */
    padding: 150px 0; /* パディングを調整 */
    position: relative; /* オーバーレイのために設定 */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* 背景オーバーレイで視認性を向上 */
}

.hero-content {
    position: relative; /* z-indexを有効にするために設定 */
    z-index: 1; /* テキストを画像の上に表示 */
    text-align: left; /* テキストを左寄せ */
    max-width: 600px; /* テキストコンテンツの最大幅を設定 */
    margin-left: 30px; /* 左に余白を設定 */
}

.hero h1 {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 48px; /* フォントサイズを調整 */
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 18px;
    margin-bottom: 30px;
    line-height: 1.6;
}

.button {
    display: inline-block;
    padding: 15px 30px;
    background-color: #ffc107; /* ボタンの色を変更 */
    color: #000000; /* ボタンのテキスト色を変更 */
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.button:hover {
    background-color: #ffca2c; /* ホバー時の色を変更 */
}

/* 会社紹介セクション */
.about {
    padding: 100px 0;
    background-color: #f8f9fa;
}

.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 50px;
    align-items: center;
}

.about-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.about-image img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.5s ease-in-out;
}

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

.about-text h2 {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 32px;
    font-weight: bold;
    color: #3498db;
    margin-bottom: 30px;
}

.about-text p {
    color: #6c757d;
    line-height: 1.7;
    margin-bottom: 25px;
}

.about-highlights {
    list-style: none;
    padding-left: 0;
    margin-bottom: 30px;
}

.about-highlights li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: #343a40;
}

.about-highlights i {
    color: #3498db;
    margin-right: 10px;
    font-size: 20px;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .about {
        padding: 80px 0;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .about-image {
        order: -1; /* 画像をテキストより上に表示 */
    }

    .about-text h2 {
        font-size: 28px;
    }
}

/* サービスセクション */
.services {
    background-color: #ffffff;
    padding: 80px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

/* .service-item のスタイルを .box30 に移す */
.service-item .box30 {
    padding: 40px 30px;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    transition: box-shadow 0.3s ease;
    margin: 0;
    min-height: 300px;
}

/* .service-item:hover のスタイルを .box30:hover に移す */
.service-item:hover .box30 {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.service-item p {
    color: #6c757d;
    margin-bottom: 15px;
    padding: 15px 0 0 0;
}

/* service.html - 主なサービスリスト */
.service-item .box30 ul {
    list-style: disc; /* リストマーカーをディスクに変更 */
    padding-left: 20px; /* 左側のインデントを追加 */
    margin-top: 10px; /* 上部の余白を追加 */
}

.service-item .box30 ul li {
    margin-bottom: 5px; /* 各リストアイテムの下の余白 */
}

/* service.html専用ヒーローセクション */
.service-hero {
    background-color: #f0f8ff; /* 非常に薄い青色など、サービスセクションに合う背景色 */
    padding: 120px 0; /* 垂直方向の余白を調整 */
    text-align: center; /* テキストを中央揃え */
}

.service-hero h1 {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 42px; /* 大きめの見出しフォントサイズ */
    font-weight: bold;
    color: #333; /* 見出しの色 */
    margin-bottom: 20px; /* 見出しと段落の間の余白 */
}

.service-hero p {
    color: #555; /* 段落のテキスト色 */
    font-size: 18px;
    line-height: 1.7; /* 行間を調整 */
    max-width: 800px; /* 段落の最大幅を設定して読みやすくする */
    margin: 0 auto; /* 中央揃え */
}

/* レスポンシブ対応 (画面幅が狭い場合) */
@media (max-width: 768px) {
    .service-hero {
        padding: 80px 0; /* パディングを小さく */
    }

    .service-hero h1 {
        font-size: 32px; /* フォントサイズを小さく */
    }

    .service-hero p {
        font-size: 16px;
        padding: 0 20px; /* 左右のパディングを追加 */
    }
}

.parallax-bg {
    background-image: url('first_view.jpg');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    color: white;
    padding: 120px 0;
    position: relative;
    overflow: hidden;
    font-family: 'Noto Sans JP', sans-serif;
}

.parallax-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
}

.parallax-bg .container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.parallax-bg h2 {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 60px;
    text-align: center;
}

.parallax-bg .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 20px;
    grid-auto-rows: minmax(100px, auto);
}

/* .parallax-bg .service-item のスタイルを .parallax-bg .service-item .box30 に移す */
.parallax-bg .service-item .box30 {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 40px;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    color: #333;
    min-height: 350px;
}

/* .parallax-bg .service-item:hover のスタイルを .parallax-bg .service-item .box30:hover に移す */
.parallax-bg .service-item:hover .box30 {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* box-titleのスタイル調整 */
.parallax-bg .service-item .box-title {
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 0;
    background: #5fc2f5;
    padding: 4px;
    text-align: center;
    letter-spacing: 0.05em;
}

.parallax-bg .service-item p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 25px;
}

.parallax-bg .service-item a.service-detail-link {
    display: inline-block;
    color: #fff;
    background-color: #3498db;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.parallax-bg .service-item a.service-detail-link:hover {
    background-color: #217dbb;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .parallax-bg {
        padding: 80px 0;
    }

    .parallax-bg h2 {
        font-size: 30px;
        margin-bottom: 40px;
    }

    .parallax-bg .services-grid {
        grid-template-columns: 1fr;
    }

    .parallax-bg .service-item .box30 {
        padding: 30px;
    }

    .parallax-bg .service-item .box-title {
        font-size: 22px;
    }
}

/* box-titleのスタイル調整 */
.service-item .box-title {
    font-size: 1.2em;
    font-weight: bold;
    color: #fff;
    margin-bottom: 0;
    background: #5fc2f5;
    padding: 4px;
    text-align: center;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

/* box30の調整 */
.box30 {
    margin: 0;
    background: #f1f1f1;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.22);
}

.box30 p {
    padding: 15px 20px 0 20px;
    margin: 0;
}
.service-details {
    padding: 80px 0;
    background-color: #e6f7ff;
}

.service-details h2 {
    text-align: center;
    margin-bottom: 60px;
}

.service-detail-item {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden; /* 角丸を適用するために追加 */
    margin-bottom: 0px;
}

/* 奇数番目のアイテムの画像とコンテンツの配置を反転 */
.service-detail-item:nth-child(odd) {
    grid-template-areas: "image content";
}

.service-detail-item:nth-child(even) {
    grid-template-areas: "content image";
}

.service-detail-image {
    grid-area: image;
}

.service-detail-image img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover; /* 画像がはみ出さないように */
    /* 必要に応じて高さを固定 */
    /* height: 300px; */
}

.service-detail-content {
    grid-area: content;
    padding: 30px;
}

.service-detail-content h3 {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 24px;
    font-weight: bold;
    color: #3498db;
    margin-bottom: 20px;
}

.service-detail-content p {
    color: #6c757d;
    line-height: 1.7;
    margin-bottom: 20px;
}

.service-detail-content h4 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}
/* スクロール連動アニメーション */
.js-scroll {
    opacity: 0;
    transition: opacity 3s ease-out; 
}

.js-scroll.active {
    opacity: 1; /* activeクラスが付与されたら表示 */
}
/* レスポンシブ対応 */
@media (max-width: 768px) {
    .service-details {
        padding: 60px 0;
    }

    .service-detail-item {
        grid-template-columns: 1fr;
        grid-template-areas:
            "image"
            "content";
    }

    .service-detail-content {
        padding: 20px;
    }

    .service-detail-content h3 {
        font-size: 22px;
    }
}

/* 会社概要セクション */
.overview {
    padding: 80px 0;
}

.overview table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 30px;
}

.overview th, .overview td {
    padding: 10px 15px;
    border-bottom: 1px solid #dee2e6;
    text-align: left;
}

.overview th {
    font-weight: bold;
    width: 30%;
}

/* お問い合わせセクション */
.contact {
    background-color: #e6f7ff;
    padding: 80px 0;
    text-align: center;
}

.contact p {
    color: #6c757d;
    margin-bottom: 30px;
}


/* products.html専用ヒーローセクション */
.products-hero {
    background-color: #f8f8f8; /* 薄いグレーの背景など */
    padding: 100px 0;
    text-align: center;
}

.products-hero h1 {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 36px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
}

.products-hero p {
    color: #555;
    font-size: 18px;
    line-height: 1.6;
}

/* products.html - 製品詳細セクション */
.product-details {
    padding: 80px 0;
}

.product-detail-item {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-bottom: 30px;
}

.product-detail-item h3 {
    font-size: 24px;
    font-weight: bold;
    color: #3498db;
    margin-bottom: 15px;
}

.product-detail-item p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 10px;
}

.product-detail-item h4 {
    font-size: 18px;
    font-weight: bold;
    margin-top: 20px;
    margin-bottom: 10px;
    color: #333;
}

/* contacts.html専用ヒーローセクション */
.contacts-hero {
    background-color: #f0f0f0; /* 薄いグレーの背景など */
    padding: 100px 0;
    text-align: center;
}

.contacts-hero h1 {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 36px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
}

.contacts-hero p {
    color: #555;
    font-size: 18px;
    line-height: 1.6;
}

/* お問い合わせフォームのスタイル */
.contact-form {
    padding: 60px 0;
}

.contact-form .container {
    max-width: 700px; /* フォームの最大幅を調整 */
    margin: 0 auto;
    padding: 30px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

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

.contact-form p {
    text-align: center;
    color: #555;
    margin-bottom: 30px;
}

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

.contact-form label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
}

.contact-form textarea {
    resize: vertical; /* 縦方向のリサイズを許可 */
}

.contact-form button[type="submit"] {
    display: block;
    width: 100%;
    padding: 15px;
    background-color: #5cb85c; /* 送信ボタンの色 */
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-form button[type="submit"]:hover {
    background-color: #4cae4c;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .contact-form {
        padding: 40px 0;
    }

    .contact-form .container {
        padding: 20px;
    }

    .contact-form h2 {
        font-size: 24px;
    }
}
/* フッター */
footer {
    background-color: #343a40;
    color: #ffffff;
    padding: 20px 0;
    text-align: center;
}

/* マイクロインタラクション (例: ボタンのホバー) */
.button {
    transition: background-color 0.3s ease;
}

.button:hover {
    background-color: #ffca2c;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    /* ヘッダー */
    header .container {
        flex-direction: column;
        align-items: flex-start;
    }

    .logo {
        margin-bottom: 10px;
    }

    nav {
        display: none;
        width: 100%;
        margin-top: 10px;
    }

    nav ul {
        flex-direction: column;
    }

    nav li {
        margin-left: 0;
        margin-bottom: 10px;
    }

    .hamburger-menu {
        display: flex;
        position: absolute;
        top: 20px;
        right: 20px;
    }

    nav.active {
        display: block;
    }

    /* ヒーローセクション */
    .hero {
        padding: 100px 0; /* パディングを調整 */
    }

    .hero-content {
        text-align: center; /* テキストを中央寄せ */
        margin-left: 0; /* 左余白を削除 */
        padding: 0 20px; /* 左右にパディングを追加 */
    }

    .hero h1 {
        font-size: 36px; /* フォントサイズを調整 */
    }

    .hero p {
        font-size: 16px;
    }

    /* サービスセクション */
    .services-grid {
        grid-template-columns: 1fr;
    }

    /* サービス詳細セクション */
    .service-details .container {
        grid-template-columns: 1fr;
    }
}

/* JavaScriptでハンバーガーメニューのアニメーションを制御する場合のCSS */
.hamburger-menu.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}
/* フォームメッセージ共通スタイル */
#form-message {
    margin-top: 10px;
    padding: 10px;
    border-radius: 5px;
    font-weight: bold;
    display: none; /* 初期状態では非表示 */
}

/* 送信成功時のスタイル */
.success-message {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* 送信失敗時のスタイル */
.error-message {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}