/*--------リセットCSS-------*/
body,
div{
    margin: 0;
    padding: 0;
    display: block;
    box-sizing: border-box;
}

/*ボディー*/
body{
    background-color: rgb(205, 170, 125);
}

/*ヘッダー*/
header{
    background-color: rgb(59, 133, 38);
}
.header{
    /*background-color: antiquewhite;*/
    width: 880px;
    margin: 0 auto 0 auto; /*センタリング*/
    padding: 20px;
    color: rgb(255, 255, 255);
}

/*画像*/
.image-area{
    width: 840px;
    margin: 20px auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    justify-content: center;
    gap: 20px; /* 写真同士の間隔 */
}

.image-area figure{
    margin: 0;
    text-align: center
}

.image-area img{
    width: 400px; /* 写真の横幅 */
    height: auto;
    display: block;
    border-radius: 10px;
}

.image-area-mini {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); 
    gap: 12px; 
}

.image-area-mini img {
    max-width: 100%; 
    border-radius: 6px; 
}

.image-area figcaption{
    margin-top: 0px;
    font-size: 14px;
    color: black;
}

/*メニュー*/
menu{
    background-color: rgb(91, 180, 67);
    margin: 0;
    padding: 0;
}
.menu{
    /*background-color: burlywood;*/
    width: 888px;
    margin: 0 auto 0 auto;/*センタリング*/
    display: flex; /*子要素（ボタン）を横並びにする*/
}
.menu a{
    display: block;
    background-color: darkgoldenrod;
    color: white;
    text-decoration:none;
    font-size: 16px;
    padding: 8px;
    transition-duration: 0.3s;
    flex: 1; /*ボタンを均等に横幅いっぱいに広げる*/
    text-align: center; /*広がったボタンの中で文字を中央に寄せる*/
}
.menu a:hover{
    background-color: rgb(30, 130, 9);
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    transition: 0.3s;
}

.menu-item{
    position: relative;
    flex: 1;
    text-align: center;
}

.sub-menu{
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    width: auto;
    background-color: rgb(76,160,60);
}

.menu-item:hover .sub-menu{
    display:block;
}

.sub-menu a {
    display: block;
    padding: 8px;
    color: white;
    text-decoration: none;
    text-align: right;
    font-size: 14px;
    padding: 4px 8px;

}

.sub-menu a:hover{
    background-color: rgb(30, 130, 9);
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/*コンテンツ*/
.content-section{
    background-color: rgb(245, 245, 245);
    width: 800px;
    margin: 20px auto 0 auto;/*センタリング*/
    padding: 20px;
}
.content{
    background-color: rgb(255, 255, 255);
    width: 800px;
    margin:0 auto 0 auto;
    padding:20px;
}

/*ページ中とびボタン*/
.sub-button {
    display: flex;
    flex-direction: column;
    
    gap: 12px;

    margin-top: 20px;
    padding: 16px;

    background-color: rgb(230, 220, 200);
    border: 2px solid rgb(80, 60, 30);
    border-radius: 10px;
}

.sub-button a {
    display: block;
    text-align: center;

    background-color: rgb(107, 191, 89);
    color: white;
    text-decoration: none;

    padding: 12px;
    border-radius: 8px;

    font-weight: bold;
    text-shadow: 1px 1px 2px black;

    transition: 0.3s;
}

.sub-button a:hover {
    background-color: rgb(62, 142, 65);
    transform: translateY(-2px);
}

.sub-button a:active {
    background-color: rgb(46, 107, 47);
    transform: scale(0.97);
}

/*ボタン*/
.main-button {
    width: 888px;
    margin: 20px auto 0 auto;
    display: flex;
    gap: 20px;
}

.main-button a {
    flex: 1;
    display: block;
    text-align: center;

    background-color: #6bbf59; /* やさしい緑 */
    color: white;
    text-decoration: none;

    padding: 18px 10px;

    border-radius: 999px; /* ←これで丸くなる */
    font-size: 16px;
    font-weight: bold;
    text-shadow:2px 2px 4px rgba(0,0,0,0.6);

    transition: 0.3s;
}

.main-button a:hover {
    background-color: rgb(62, 142, 65);
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    transform: translateY(-2px);
}

.main-button a:active {
    background-color: rgb(46, 107, 47);
    transform: scale(0.97);
}