/* =========================
   Reset / 共通設定
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Noto Sans JP", sans-serif;
    line-height: 1.6;
    letter-spacing: 0.02em;
    color: #333;
    background-color: #fff;
}

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

ul, ol {
    margin-left: 1.5em;
    margin-bottom: 1em;
}

h1, h2, h3, h4, h5 {
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #222;
    margin-bottom: 0.5em;
}

p {
    margin-bottom: 1em;
}

/* =========================
   ヘッダー
========================= */

/* ヘッダー全体 */
header {
    width: 100%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* header-top：ロゴ左上、背景白 */
.header-top {
    background-color: #fff;
    padding: 10px 20px;
}

.header-top .logo img {
    height: 50px; /* 必要に応じて調整 */
    display: block;
}

/* header-bottom：ナビとlangを横並び */
.header-bottom {
    display: flex;
    justify-content: center; /* ナビを中央に配置 */
    align-items: center;     /* 縦中央揃え */
    background-color: #000;  /* 黒背景 */
    padding: 10px 20px;
    position: relative;
}

/* ナビメニュー */
.main-nav ul {
    font-family: "Roboto", sans-serif;
    letter-spacing: 0.08em;
    display: flex;
    gap: 40px; /* メニュー間隔 */
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

.main-nav ul li a:hover {
    text-decoration: underline; /* ホバー時の視認性向上 */
}

/* 言語切替 */
.lang-switch {
    position: absolute;
    right: 20px;  /* 右端に配置 */
    background-color: #fff; /* 背景白 */
    color: #000;           /* 文字黒 */
    padding: 5px 10px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3); /* 影をつけて目立たせる */
    font-weight: bold;
}

.lang-switch a {
    color: #000;
    text-decoration: none;
}

.lang-switch .active-lang {
    font-weight: bold;
    text-decoration: underline;
}

.lang-switch a:hover {
    text-decoration: underline;
}

/* =========================
   HERO
========================= */
.hero {
    position: relative;
    height: 500px;
    background-image: url("../images/top_main.png");
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.45);
}

.hero-content {
    position: relative;
    color: white;
    text-align: center;
    z-index: 2;
}

.hero-content h1 {
    color: white;
    font-size: 48px;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
}

.hero-content p {
    font-size: 20px;
}

/* =========================
   コンテナ・共通セクション
========================= */
.container {
    max-width: 1100px;
    margin: auto;
    padding: 60px 20px;
}

.page {
    max-width: 1000px;
    margin: auto;
    padding: 60px 20px;
}

.page h1 {
    font-size: 36px;
    margin-bottom: 30px;
    text-align: center;
}

.page h2 {
    font-size: 28px;
    margin-top: 40px;
    margin-bottom: 15px;
}

.page h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: #555;
}

.page p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 15px;
}

/* =========================
   テーブル
========================= */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 40px;
}

table th, table td {
    border: 1px solid #ddd;
    padding: 10px 15px;
    text-align: left;
    vertical-align: top;
}

table th {
    background-color: #f5f5f5;
    width: 200px;
}

/* =========================
   フォーム
========================= */
.contact-form {
    max-width: 700px;
    margin: auto;
    background: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

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

.contact-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 15px;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form button {
    background-color: #0077cc;
    color: #fff;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.contact-form button:hover {
    background-color: #005fa3;
}

/* =========================
   フッター
========================= */
footer {
    background-color: #000; /* 黒帯 */
    color: #fff;            /* 文字白 */
    padding: 20px 0;
    text-align: center;
}

footer p {
    margin: 0;
}

/* =========================
   アクセスマップ
========================= */
.map iframe {
    width: 100%;
    height: 400px;
    border: 0;
}

/* =========================
   レスポンシブ
========================= */
@media screen and (max-width: 768px) {
    .hero-content h1 {
        font-size: 32px;
    }
    .hero-content p {
        font-size: 16px;
    }
    header .container {
        flex-direction: column;
        align-items: flex-start;
    }
    header nav ul {
        flex-direction: column;
        margin-top: 10px;
    }
    header nav ul li {
        margin-left: 0;
        margin-bottom: 10px;
    }
    .header-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .main-nav ul {
        flex-direction: column;
        gap: 10px;
    }
    .lang-switch {
        align-self: flex-end;
    }
}