/* 既存のスタイル */
body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background: #f0f2f5; /* 背景色を変更 */
    color: #333;
}

header, footer {
    background: #333;
    color: #fff;
    padding: 1em 0;
    text-align: center;
}

main {
    padding: 20px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background: #444;
}

.menu-toggle {
    display: none;
    cursor: pointer;
}

.menu-toggle i {
    font-size: 1.5em;
    color: #fff;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 15px;
}

.nav-links li {
    margin: 0;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background 0.3s;
}

.nav-links a:hover {
    background: #555;
}

.logo a {
    color: #fff;
    text-decoration: none;
    font-size: 1.5em;
}

.tablecontent {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* ボックスを中央に揃える */
    gap: 10px;
    margin: 20px 0;
}

.tablecontent .box {
    position: relative;
    flex: 1 1 calc(20% - 10px); /* 5つ並べる場合の設定 */
    margin: 5px;
    text-align: center;
    background: #ffffff; /* 背景色を変更 */
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100px; /* ボックスの高さを固定 */
    overflow: hidden;
}

.tablecontent .box:hover {
    transform: translateY(-5px);
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.2);
}

.tablecontent .box a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    padding: 15px;
    box-sizing: border-box; /* paddingを含むサイズ計算 */
}

.tablecontent .highlight {
    background: #f0f8ff; /* 目立たせるための背景色 */
    color: #000; /* 文字色を黒に */
}

.tablecontent .highlight:hover {
    transform: translateY(-5px);
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.2);
}

.tablecontent .bigareabox {
    flex: 1 1 100%;
    text-align: center;
    margin: 10px 0;
    font-weight: bold;
    font-size: 1.4em;
    color: #444;
}

/* スマートフォン用のスタイル */
@media (max-width: 800px) {
    .nav-links {
        display: none;
        flex-direction: column;
        gap: 0;
        background: #444;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        padding: 10px 0;
    }

    .nav-links.active {
        display: flex;
    }

    .tablecontent .box {
        flex: 1 1 calc(50% - 10px); /* スマートフォンでは2つ並べる場合の設定 */
    }

    .menu-toggle {
        display: block;
    }
}

#mainimg {
    display: flex;
    justify-content: center;
}

#mainimg img {
    width: 100%;
    max-width: 100%;
}

@media (min-width: 800px) {
    #mainimg img {
        width: 800px;
    }
}

.areacontainer {
    display: flex;
    justify-content: space-around;
    margin: 20px 0;
}

.boxbig {
    flex: 1 1 calc(50% - 20px);
    text-align: center;
    background: #ffffff;
    padding: 20px;
    margin: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.boxbig:hover {
    transform: translateY(-5px);
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.2);
}

.boxbig a {
    text-decoration: none;
    color: #333;
    font-size: 1.2em;
    font-weight: bold;
}

.k90 {
    color: #555;
}

/* エリア選択機能のスタイル */
.region-selector {
    display: flex;
    align-items: center;
    color: #fff;
    font-size: 16px;
}

.region-selector a {
    color: #d9534f;
    text-decoration: none;
    margin-left: 10px;
}

/* ポップアップのスタイル */
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000; /* 最前面に表示するための z-index */
}

.popup-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.popup-content ul {
    list-style: none;
    padding: 0;
}

.popup-content ul li {
    margin: 10px 0;
}

.popup-content ul li a {
    text-decoration: none;
    color: #007bff;
}


/* セレクトボックスのスタイル */
select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: #fff;
    font-size: 16px;
    color: #333;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23333" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
}

select[multiple] {
    background-image: none;
}

select:focus {
    border-color: #aaa;
    outline: none;
}

/* ボタンのスタイル */
button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    background: #007BFF;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
}

button:hover {
    background: #0056b3;
}

button:focus {
    outline: none;
}


/* フォームのレイアウト */
form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 20px 0;
}

label {
    font-weight: bold;
    color: #333;
}


/* h2 タグのスタイル */
h2 {
    position: relative;
    padding-left: 15px;
    margin-bottom: 20px;
}

h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 100%;
    background-color: #FF66C4;
    border-radius: 2px;
}


/* 共通のリンクスタイル */
a {
    color: #FF66C4; /* 訪問前のリンク色 */
    text-decoration: none;
}

/* 訪問済みリンクの色を変更 */
a:visited {
    color: #FF66C4; /* 訪問前と同じ色に設定 */
}

/* フッターのスタイル */
footer {
    background: #333;
    color: #fff;
    padding: 1em 0;
    text-align: center;
}

footer a {
    color: #FF66C4;
    text-decoration: none;
}

footer a:visited {
    color: #FF66C4;
}


h1 {
    font-size: 24px;
    margin-bottom: 20px;
}







/* Header Styles */
header {
    background-color: #007BFF;
    color: white;
    padding: 10px 0;
    text-align: center;
}

/* Footer Styles */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 10px 0;
    width: 100%;
}



}







