/* 基本リセット */
body, html {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    box-sizing: border-box;
}

/* ヘッダー */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 10px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

/* ロゴ画像 */
.logo {
    display: flex;
    align-items: center;
    padding-left: 60px;
}

.logo img {
    height: 88px; /* ロゴサイズは110% */
}

/* ナビゲーションバー */
.navbar {
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar ul {
    list-style: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar li {
    margin: 0 5px;
}

/* ヘッダーメニューリンク */
.navbar a {
    text-decoration: none;
    color: #000; /* テキストの色を黒に設定 */
    font-weight: bold;
    position: relative; /* ライン用に相対位置指定 */
    text-align: center;
    font-size: 16.8px; /* メニューのテキストは120% */
    padding-right: 40px; /* テキスト右側の余白 */
}

/* マウスオン時の下線 */
.navbar a::after {
    content: "";
    position: absolute;
    bottom: -25px; /* 下線をスライド画像の上限あたりに配置 */
    left: 0; /* 左端をテキストに揃える */
    width: 0; /* 初期状態は非表示 */
    height: 2px; /* ラインの太さ */
    background-color: #000; /* ラインの色を黒に設定 */
    transition: width 0.3s ease; /* アニメーション効果 */
}

.navbar a:hover::after {
    width: 80%; /* 下線の長さを80%に設定 */
}

/* マウスオン時のテキスト色も黒のまま */
.navbar a:hover {
    color: #000; /* テキストの色を黒に維持 */
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle span {
    background-color: #333;
    height: 3px;
    width: 25px;
    margin: 3px 0;
}

/* メインコンテンツ */
main {
    padding-top: 80px; /* ヘッダーの高さ */
}

/* スライダーセクション */
#slider {
    position: relative;
    overflow: hidden;
    height: 500px;
}

.slider-container {
    display: flex;
    transition: transform 1s ease;
}

.slide {
    position: relative;
    min-width: 100%;
    transition: opacity 1s ease;
}

.slide img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

/* スライドテキストのスタイル */
.slide-text {
    position: absolute;
    top: 50%; /* スライドの垂直中央 */
    left: 50%; /* スライドの水平中央 */
    transform: translate(-50%, -50%); /* 中央揃え */
    text-align: center; /* テキストを中央揃え */
    color: black; /* テキストの色 */
    font-weight: normal; /* ボールドをやめる */
    line-height: 1.5; /* 読みやすい行間 */
}

.slide-text h2 {
    font-size: 25.6px; /* タイトルサイズを80% (32px → 25.6px) */
    margin: 0 0 15px; /* タイトルと段落間の余白調整 */
}

.slide-text p {
    font-size: 14.4px; /* 段落のテキストサイズを80% (18px → 14.4px) */
    margin: 8px 0; /* 段落間の余白調整 */
    line-height: 1.6; /* 読みやすい行間 */
}

/* ボタン */
.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    font-size: 24px;
    padding: 10px 15px;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

.prev:hover, .next:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* 商品セクション */
#products {
    padding: 50px 20px;
    text-align: center;
}

.product-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.product {
    background: #fff;
    padding: 20px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    text-align: center;
    width: 250px;
    transition: transform 0.3s ease;
}

.product:hover {
    transform: scale(1.05);
}

.product img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.product h3 {
    font-size: 18px;
    margin: 10px 0;
    color: #333;
}

.product p {
    font-weight: bold;
    color: #007BFF;
}

/* フッター */
footer {
    padding: 20px 10px;
    color: #666;
    font-size: 14px;
    text-align: center;
    background-color: transparent; /* 背景色を消す */
}

.footer-container {
    display: flex;
    justify-content: center; /* メニューテキストを中央に配置 */
    align-items: center;
    flex-wrap: wrap; /* レスポンシブ対応 */
    gap: 20px; /* ロゴとメニューの間に適切な間隔 */
}

.footer-logo img {
    height: 65px; /* ロゴの表示サイズを130%に変更（50px → 65px） */
}

.footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px; /* メニューアイテム間の余白 */
}

.footer-nav li {
    margin: 0;
}

.footer-nav a {
    text-decoration: none;
    color: #333;
    font-weight: normal; /* ボールドを解除 */
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: #007BFF;
}

footer p {
    margin: 10px 0 0;
    font-size: 12px;
    color: #888;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .navbar {
        display: none;
        flex-direction: column;
        width: 100%;
    }

    .menu-toggle {
        display: flex;
    }

    .navbar.active {
        display: flex;
    }

    .navbar li {
        margin: 10px 0;
    }

    .product-grid {
        flex-direction: column;
        align-items: center;
    }

    .product {
        width: 90%;
    }

    .footer-container {
        flex-direction: column;
    }

    .footer-nav ul {
        flex-direction: column;
        gap: 10px; /* メニューアイテム間の余白を調整 */
    }
}

/* パートナーページ用の入力欄スタイル調整 */
input, textarea {
    height: 150%; /* 高さを1.5倍に設定 */
    border: none; /* 枠線を削除 */
    outline: none; /* フォーカス時の枠線も削除 */
    background-color: #f9f9f9; /* 背景色を薄いグレー */
    padding: 10px; /* テキストと枠の間に余白を設定 */
    border-radius: 5px; /* 少し丸みを持たせる */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* 軽い影を追加 */
}

/* パートナーページ用の入力欄スタイル調整（横幅2倍） */
input, textarea {
    width: 200%; /* 横幅を2倍に設定 */
    height: 150%; /* 高さを1.5倍に設定 */
    border: none; /* 枠線を削除 */
    outline: none; /* フォーカス時の枠線も削除 */
    background-color: #f9f9f9; /* 背景色を薄いグレー */
    padding: 10px; /* テキストと枠の間に余白を設定 */
    border-radius: 5px; /* 少し丸みを持たせる */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* 軽い影を追加 */
}

/* パートナーページ用の入力欄スタイル調整（横幅調整） */
.content-section form input,
.content-section form textarea {
    width: 100%; /* 横幅をコンテンツ幅に収める */
    max-width: 600px; /* 最大幅を600pxに設定 */
    height: 150%; /* 高さを1.5倍に設定 */
    border: none; /* 枠線を削除 */
    outline: none; /* フォーカス時の枠線も削除 */
    background-color: #f9f9f9; /* 背景色を薄いグレー */
    padding: 10px; /* テキストと枠の間に余白を設定 */
    border-radius: 5px; /* 少し丸みを持たせる */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* 軽い影を追加 */
    box-sizing: border-box; /* パディングを含めた幅調整 */
}

/* 送信ボタンのスタイル調整 */
button[type="submit"] {
    border: none; /* ボーダーを消す */
    background-color: #000; /* 背景色を設定 */
    color: #fff; /* テキスト色を白に */
    padding: 10px 20px; /* 十分な余白 */
	border-radius: 5px; /* ボタンに丸みを付ける */
	font-size: 16px;
    cursor: pointer; /* カーソルをポインターに */
    transition: background-color 0.3s ease; /* ホバー時のアニメーション */
}

button[type="submit"]:hover {
    background-color: #333333; /* ホバー時の背景色 */
}
