@charset "UTF-8";

/* ------------------------------------------
	PARTS::パーツごとのCSS
--------------------------------------------- */

/* flex 2列横並び */
.flex_2{
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.flex_2 .col{
    width: 48%;
}

/* flex 3列横並び */
.flex_3{
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.flex_3 .col{
    width: 33%;
}

/* flex 4列横並び */
.flex_4{
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.flex_4 .col{
    width: 23%;
}

/* flex colのスタイル */
/* .col{
    padding: 10px;
    margin: 10px;
} */
@media (max-width: 767px) {
    .flex_2, .flex_3, .flex_4 {
        flex-direction: column;
    }

    .flex_2 .col, .flex_3 .col, .flex_4 .col {
        width: 100%;
    }
}


.grid{
    display: grid;
    grid-template-columns:repeat(1, 1fr);
    row-gap: 40px;
}
.grid div{
    width: 100%;
}
.grid2{
    display: grid;
    grid-template-columns:repeat(2, 1fr);
    column-gap: 24px;
    row-gap: 40px;
}
.grid3{
    display: grid;
    grid-template-columns:repeat(3, 1fr);
    column-gap: 16px;
    row-gap: 40px;
}
.grid4{
    display: grid;
    grid-template-columns:repeat(4, 1fr);
    column-gap: 40px;
    row-gap: 16px;
}
@media (max-width:767px){
    .grid2,.grid3,.grid4{
        grid-template-columns:repeat(1, 1fr);
    }
}


/* news一覧レイアウト */
.news_item{
    margin: 20px 0;
    justify-content: space-evenly;
}


/* map仮CSS */
.map {
    height: 400px;
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column; /* 縦並びにする */
    justify-content: space-around;
    align-items: center; /* 横方向の中央揃え */
    text-align: center;
}

.map h3{
    color: #E8E8E8;
    position: relative;
    z-index: 1;
}
@media (max-width: 1200px) {
    .map{
        width: 100%;
    }
}

.text-c{
    text-align: center;
}
.text-l{
    text-align: left;
}
.text-r{
    text-align: right;
}


/* table 基本のCSS */
table , td, th {
	border-bottom: 1px solid #dddddd;
	border-collapse: collapse;
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
}
td, th {
	padding: 20px;
	width: 80%;
	height: 25px;
    text-align: left;
}
th {
    width: 20%;
}
@media (max-width:768px){
    td, th{
        display: block;
        width: 100%;
        height: auto;
        text-align: center;
    }
    th{
        border-bottom: 0;
        padding-bottom: 0;
    }
    td{
        padding-top: 0;
    }
}
/* end table */



/* フォーム全体のスタイル */
form {
    max-width: 960px;
    margin: 0 auto;
    padding: 20px;
    width: 100%;
}
/* テキストエリアのスタイル */
form textarea {
    height: 150px;
    resize: vertical; /* 垂直方向のサイズ変更を許可 */
}
/* エラーメッセージのスタイル */
.form-error {
    color: red;
    font-size: 14px;
    margin-bottom: 16px;
}
/* Form Elements */
input[type="text"],
input[type="tel"],
input[type="email"],
input[type="file"],
input[type="date"],
textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 0;
    background: #f1f1f1;
}
input[type="file"]{
    border: 0;
    background: none;
}
input[type="checkbox"],
input[type="radio"] {
    margin-right: 10px;
}
label {
    width: 100%;
    font-size: var(--body-font-size);
}

/* Cards */
.card {
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
    background-color: #fff;
}

.card-header {
    font-weight: bold;
    margin-bottom: 10px;
}

.card-body {
    font-size: 14px;
}


/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 4px;
    width: 500px;
    max-width: 90%;
}

.modal-header,
.modal-body,
.modal-footer {
    margin-bottom: 10px;
}

.modal-header {
    font-weight: bold;
}

.modal-close {
    cursor: pointer;
    float: right;
    font-size: 20px;
}


/* Tooltip */
.tooltip {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.tooltip .tooltip-text {
    visibility: hidden;
    width: 120px;
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 5px 0;
    border-radius: 4px;
    
    position: absolute;
    z-index: 1;
    bottom: 125%; /* Tooltip above the text */
    left: 50%;
    margin-left: -60px;
    
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

