﻿body {
    font-family: "Helvetica Neue", Arial, sans-serif;
    text-align: center;
    margin: 0;
    padding: 0;
    background-color: #f5f0ea;
}

/*リンク色なし*/
a {
    text-decoration: none;
    color: #000000; /* 今回は#000000を指定していますが、好きな色を指定できます */
}



#main{
    width:100%;
    height:100%;
    margin-left:auto;
    margin-right:auto;
    display:block;
}

/*header部分宣言*/

#header{
    width:80%;
    margin-right:auto;
    margin-left:auto;
}

#header h1{
    font-size:2.8vw;
    padding-top:1vw;
    margin-top:0;
    margin-bottom:0.03em;
    text-align:left;
    color:#608a42;
    font-family: kosugi-maru, sans-serif;
    font-style: normal;
    font-weight: 700;
}

.menu {
    background-color: #f5f0ea;
    padding: 10px 0;
    display: flex; /* フレックスボックスを使用 */
    justify-content: space-between; /* 項目間を均等に配置 */
    width: 100%; /* メニューの幅を画面いっぱいに */
    margin: 0;
}

.menu ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex; /* 横並びにする */
    width: 100%; /* 横幅を100%に */
}

.menu ul li {
    flex: 1; /* 各項目を均等に割り付け */
    text-align: center; /* 項目を中央揃え */
}

.menu ul li a {
font-family: kosugi-maru, sans-serif;
font-style: normal;
font-weight: 400;
    color: #3f3f3f;
    text-decoration: none;
    font-size: 1.6vw;
    padding: 10px 0;
    display: block;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

/* 項目の間に縦線を追加 */
.menu ul li:not(:last-child) {
    border-right: 1px solid #a7a7a7; /* 縦線の設定 */
}

.menu ul li a:hover {
    background-color: #d3d3d3;
}

.m-box{
    width:50%;
    height:auto;
    margin-left:auto;
    margin-right:auto;
}

.t{
    width:100%;
    text-align:left;
    margin-top:3vw;
    margin-left:auto;
    margin-right:auto;
}

#info-title{
    color:#6b8e23;
    width:100%;
    font-family: 'smart',Arial, sans-serif;
    background-color:#f5f0ea;
    line-height:1;
    text-align:left;
    padding-top:0.2em;
    padding-bottom:0.1em;
    padding-left:0.4em;
    border-bottom:0.1em solid #6b8e23;
    margin-top:3vw;
    margin-left:auto;
    margin-right:auto;
    font-weight: normal;
    display:flex;
    align-items: center;
    align-items: baseline;
}

.m-box h2{
    color:#6b8e23;
    width:100%;
    font-family: 'smart',Arial, sans-serif;
    background-color:#f5f0ea;
    line-height:1;
    text-align:left;
    padding-top:0.2em;
    padding-bottom:0.1em;
    padding-left:0.4em;
    border-bottom:0.1em solid #6b8e23;
    margin-top:3vw;
    margin-left:auto;
    margin-right:auto;
    font-weight: normal;
    display:block;
    align-items: center;
    align-items: baseline;
    box-sizing:border-box;
}



#info-link{
    color:black;
    margin-left:auto;
    font-size:0.7em;
}

#info-box{
    width:100%;
    height:10vw;
}


.n-info{
    text-align:left;
}



/* グリッド全体のスタイル */
.icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* 自動調整 */
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    text-align: center;
}

/* 各アイコン要素のスタイル */
.icon-item {
    text-decoration: none;
    color: #344e41;
}

.icon-item:hover {
    transform: scale(1.05);
    transition: transform 0.2s ease-in-out;
}

/* アイコンの円のスタイル */
.icon-circle {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    border: 1px solid #6b8e23;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #6b8e23;
}

h3 {
    font-size: 1rem;
    margin: 0.5rem 0;
}

.icon-grid p {
    font-size: 0.875rem;
    color: #666;
}

.copylight{
    margin-top:2vw;
    text-align:center;
    font-size:0.8em;
}

/*ハンバーガーメニュー*/
        .menu-btn {
            position: fixed;
            top: 10px;
            left: 10px;
            background: white;
            border: 1px solid #ccc;
            padding: 10px;
            cursor: pointer;
            z-index: 1000;
            display: none; /* 初期状態では非表示 */
        }
        .menu-btn div {
            width: 25px;
            height: 3px;
            background: black;
            margin: 5px 0;
        }
        .hamburger-menu {
            position: fixed;
            top: 50px; /* ハンバーガーボタンの下に配置 */
            left: 10px;
            width: 200px;
            background: white;
            border: 1px solid #ccc;
            padding: 10px;
            box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
            opacity: 0;
            transform: translateY(-10px);
            transition: opacity 0.3s ease-out, transform 0.3s ease-out, visibility 0.3s ease-out;
            z-index: 2000; /* 最前面に表示 */
            visibility: hidden;
        }
        .hamburger-menu.show {
            opacity: 1;
            transform: translateY(0);
            visibility: visible;
        }
        .hamburger-menu.hide {
            opacity: 0;
            transform: translateY(-10px);
            visibility: hidden;
        }
        .hamburger-menu a {
            display: block;
            padding: 10px;
            text-decoration: none;
            color: black;
            border-bottom: 1px solid #ddd;
        }
        .hamburger-menu a:hover {
            background: #f0f0f0;
        }


/*-----------------------------------------------------------------------------------------*/


/*スマホ対応CSS*/

@media only screen and (max-width: 800px) {

#header{
    width:90%;
    margin-right:auto;
    margin-left:auto;
}

#header h1{
    font-size:2.8vw;
    padding-top:1vw;
    padding-bottom:4vw;
    margin-top:0;
    margin-bottom:10em;
    text-align:left;
    color:#608a42;
    font-family: kosugi-maru, sans-serif;
    font-style: normal;
    font-weight: 700;
}



.m-box{
    width:90%;
    height:auto;
    margin-left:auto;
    margin-right:auto;
}


#header h1{
    font-size:6vw;
    padding-top:0vw;
    margin-top:1em;
    margin-bottom:0.3em;
    text-align:center;
    color:#608a42;
    font-family: kosugi-maru, sans-serif;
    font-style: normal;
    font-weight: 700;
}

.t{
    width:100%;
    text-align:left;
    margin-top:3vw;
    margin-left:auto;
    margin-right:auto;
    font-size:1em;
}





.menu ul {
        display: grid;
        grid-template-columns: repeat(3, 1fr); /* 3列に分割 */
        gap: 10px; /* 余白を追加 */
        justify-items: center; /* アイテムを中央揃え */
    }

    .menu ul li {
        flex: none; /* グリッドで調整するので解除 */
        width: 100%; /* 幅を揃える */
        border-right: none; /* 縦線を削除 */
    }

    .menu ul li a {
        font-size: 3.7vw; /* モバイルでは文字を大きめに */
        padding: 10px;
    }

.menu ul li{
    border-right: 1px solid #a7a7a7; /* 縦線の設定 */
}


.menu{
    display:none;
}

}

@media screen and (max-width: 768px) {
            .menu-btn {
                display: block;
            }
        }

