/* 全体的な設定 */
body {
    font-family: sans-serif;
    margin: 0;
    color: #333;
    background-color: #f9f9f9;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 署名 */
.signature {
    width: 100%;
    text-align: right;
    line-height: 1.8;
    box-sizing: border-box;
    font-family: "Yuji Syuku", serif;
}

/* ヘッダー */
header {
    background-color: #fff;
    padding: 20px 0;
    border-bottom: 1px solid #ddd;
}

/* ★変更点：ヘッダー全体のレイアウト */
.header-container {
    display: flex;
    justify-content: space-between; /* ロゴを左、残りを右に配置 */
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
    vertical-align: middle;
}

/* ★変更点：右側の要素のレイアウト */
.header-right {
    display: flex;
    flex-direction: column; /* ナビとSNSアイコンを縦に並べる */
    align-items: flex-end;  /* 右寄せにする */
}

nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
}

nav li {
    margin-left: 20px;
}

nav a {
    text-decoration: none;
    color: #555;
    font-weight: bold;
}

nav a:hover {
    color: #007bff;
}

/* ★変更点：ヘッダーSNSアイコンのスタイル */
.social-icons-header {
    display: flex;
    gap: 12px; /* アイコン間の隙間 */
    margin-top: 15px; /* ← ここの数値を 10px から 15px に変更 */
}

.social-icons-header img {
    width: 28px;
    height: 28px;
    display: block;
    transition: opacity 0.3s;
}

.social-icons-header img:hover {
    opacity: 0.7;
}

/* メインコンテンツ */
main {
    padding: 40px 0;
}

h1 {
    font-size: 36px;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

h2 {
    font-size: 28px;
    color: #333;
}

/* Topページ用 */
.hero {
    position: relative;
    text-align: center;
    color: white;
}
.hero img {
    width: 100%;
    object-fit: cover; 
    display: block;
}
.hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 5px;
    width: 90%;
    max-width: 800px;
    box-sizing: border-box;
}
.hero-text h1 {
    font-size: clamp(24px, 6vw, 48px);
    line-height: 1.3;
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 10px;
}
.hero-text p {
    font-size: clamp(14px, 2.5vw, 20px);
    margin: 0;
}
.message {
    padding: 40px 0;
    text-align: center;
}

/* Aboutページ用 */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}
th, td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}
th {
    background-color: #f2f2f2;
    width: 30%;
}

/* フッター */
footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}

.footer-nav ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
}
.footer-nav li {
    margin: 0 15px;
}
.footer-nav a {
    color: #fff;
    text-decoration: none;
}
.footer-nav a:hover {
    text-decoration: underline;
}

/* フッターのSNSアイコンエリアのスタイル */
.social-icons {
    margin-top: 12px;
}
.social-icons ul {
    display: flex;
    gap: 15px;
}
.social-icons img {
    width: 32px;
    height: 32px;
    display: block;
    transition: opacity 0.3s;
}
.social-icons img:hover {
    opacity: 0.7;
}

/* ============================================= */
/* --- スマホ用のスタイル (768px以下) --- */
/* ============================================= */
@media screen and (max-width: 768px) {
    h1 {
        font-size: 28px;
        line-height: 1.4;
    }
    h2 {
        font-size: 22px;
    }
    .hero-text h1 {
        font-size: 32px;
        line-height: 1.5;
    }
    .message p {
        font-size: 15px;
    }

    /* ★変更点：スマホでのヘッダーレイアウト */
    .header-container {
        flex-direction: column; /* 全体を縦並びに */
    }
    .logo {
        margin-bottom: 20px; /* ロゴと下の要素の間に余白 */
    }
    .header-right {
        align-items: center; /* ナビとSNSアイコンを中央揃えに */
    }
    nav ul {
        justify-content: center;
        width: 100%;
    }
    nav li {
        margin-left: 10px;
        margin-right: 10px;
    }

    /* フッターナビゲーションを縦並びに変更 */
    .footer-nav ul {
        flex-direction: column;
        align-items: center;
    }
    .footer-nav li {
        margin: 10px 0;
    }
}

