/* 基本リセット */
body {
    font-family: '游明朝', 'MS Mincho', serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
    box-sizing: border-box;
}

/* ヘッダー */
header {
    background-color: #333;
    color: #fff;
    padding: 20px 0;
    text-align: center;
    border-bottom: 5px solid #666;
}

h1 {
    font-size: 48px;
    font-family: '游明朝', 'MS Mincho', serif;
    font-weight: bold;
    color: #fff;
    text-align: center;
    margin: 20px 0;
}

/* ナビゲーションメニュー */
.nav-menu {
    list-style: none;
    padding: 0;
    margin: 10px 0;
    display: flex;
    justify-content: center;
}

.nav-menu li {
    margin: 0 15px;
}

.nav-menu li a {
    color: #fff;
    text-decoration: none;
    padding: 10px 15px;
    font-size: 16px;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.nav-menu li a:hover {
    background-color: #666;
    color: #fff;
}

/* メインコンテンツ */
main {
    margin: 20px auto;
    max-width: 1200px;
    padding: 20px;
}

.section {
    margin-bottom: 40px;
}

.section h2 {
    font-size: 28px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    color: #444;
}

/* 各セクションの配置 */
.section-content {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 20px;
}

/* スライドショーのスタイル */
.slideshow-container {
    position: relative;
    max-width: 100%;
    height: 400px;
    overflow: hidden;
    margin: 20px auto; /* 中央揃え */
}

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

/* 写真枠と配置 */
.photo-placeholder {
    width: 300px;
    height: 200px;
    background-color: #f9f9f9;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.photo-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 文章部分のスタイル */
.text-content {
    flex: 1;
    font-size: 20px;
    line-height: 1.8;
    color: #333;
}

/* 石材加工の技術力セクション: 写真右、文章左 */
#techniques .section-content {
    display: flex;
    flex-direction: row-reverse; /* 写真を右に配置 */
    justify-content: flex-start; /* 左寄せ */
    align-items: center; /* 縦方向の位置を揃える */
    gap: 20px; /* 画像と文章の間隔を調整 */
}

/* レスポンシブ対応: 画面幅が768px以下の場合 */
@media (max-width: 768px) {
    #techniques .section-content {
        flex-direction: column; /* 縦並びに変更（写真を上、文章を下） */
        justify-content: center; /* 中央揃え */
        align-items: center; /* 縦方向も中央揃え */
        gap: 20px; /* 間隔を保つ */
    }

    #techniques .photo-placeholder {
        margin-bottom: 20px; /* 写真と文章の間隔を調整 */
    }

    #techniques .text-content {
        text-align: center; /* テキストを中央揃え */
    }
}


/* リンク付き写真の配置 */
.photo-link-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.photo-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #333;
    width: 300px; /* 写真リンクの幅を指定 */
    border-radius: 8px; /* 角を丸く */
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.photo-link img {
    width: 100%;
    height: auto;
    object-fit: cover; /* 画像を枠内に収める */
    border: none; /* 点線枠を削除 */
}

.photo-link:hover {
    transform: translateY(-5px); /* ホバーで少し浮かせる */
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

.photo-link p {
    margin: 10px 0;
    font-size: 14px;
    text-align: center;
}

@media (max-width: 768px) {
    .section-content {
        flex-direction: column; /* 全セクションを縦並びにする */
        text-align: center; /* テキストを中央揃え */
    }

    #techniques .section-content {
        flex-direction: column; /* 写真を上、テキストを下 */
    }

    #techniques .photo-placeholder {
        margin-bottom: 20px; /* 写真とテキストの間隔を調整 */
    }

    #techniques .text-content {
        text-align: center; /* テキストを中央揃え */
    }
}
footer {
    background-color: #333;
    color: #fff;
    text-align: center; /* テキストを中央揃え */
    padding: 10px;
    margin-top: 40px;
    display: flex; /* フレックスボックスを使用 */
    justify-content: center; /* コンテンツを中央揃え */
    align-items: center; /* 縦方向も中央揃え */
}
/* メインCSS (styles.css) に追加する例 */
form {
    max-width: 500px;
    margin: 20px auto;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

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

form input, form textarea, form button {
    width: 100%;
    margin-bottom: 15px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
}