/* 今関大地サイト */
/* fifteen */

/* reset from Gemini */

/* 1. 全要素の余白をリセットし、サイズ計算を楽にする */
*,
*::before,
*::after {
    box-sizing: border-box;
    /* paddingを含めたサイズ計算にする */
    margin: 0;
    padding: 0;
}

/* 2. 画像が親要素からはみ出ないようにする */
img {
    max-width: 100%;
    display: block;
}

/* 3. リストのポッチを消す（メニューやパンくずで便利） */
ul,
ol {
    list-style: none;
}

/* 4. リンクの下線を消す（必要に応じて） */
a {
    text-decoration: none;
    color: inherit;
    /* 親要素の色を引き継ぐ */
}

/* COLOR */

:root {
    --fifteen: 39, 181, 150;
}

/* FONT */
h1,
h2,
h3,
h4,
a {
    font-family: "Noto Sans JP", sans-serif;
    font-weight: normal;
}

/* header */
header {
    width: 100%;
    height: 52px;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid rgb(var(--fifteen));
}

.sitename {
    position: relative;
    top: 12px;
    left: 18px;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 1px;
}

.fifteen {
    padding-left: 10px;
    font-family: "Ms Madi", cursive;
    font-size: 22px;
    color: rgb(var(--fifteen));
}

.nav-wrapper {
    position: relative;
    top: 14px;
    right: 18px;
}

/* 1. チェックボックスは画面から隠す */
.menu-checkbox {
    display: none;
}

/* 2. メニューの初期状態（画面の外に隠しておく） */
.menu-content {
    position: fixed;
    top: 0;
    left: -100%;
    /* 右側に隠す */
    width: 60%;
    height: 100%;
    background: #fff;
    transition: all 0.5s;
    /* アニメーション */
}

.menu-content li {
    font-family: "Noto Sans JP", sans-serif;
    color: rgb(var(--fifteen));
    line-height: 60px;
    margin-left: 30px;

}

/* 3. 【重要】チェックが入ったらメニューをスライドして出す */
.menu-checkbox:checked~.menu-content {
    left: 0;
}

/* 4. 三本線アイコンのデザイン（一部抜粋） */
.menu-button {
    display: block;
    cursor: pointer;
    width: 30px;
    height: 30px;
    position: relative;
    z-index: 100;
    /* メニューより上に表示 */
}

.menu-button span {
    display: block;
    height: 1px;
    background: #333;
    margin-bottom: 10px;
    transition: all 0.4s;
}

/* 5. チェックが入った時に三本線を「×」に変える（お好みで） */
.menu-checkbox:checked~.menu-button span:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
}

.menu-checkbox:checked~.menu-button span:nth-child(2) {
    opacity: 0;
}

.menu-checkbox:checked~.menu-button span:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}

/* main */
main {
    width: calc(100% - 36px);
    margin: 0 auto;
}

/* common */
.profile h1,
.diary-list h1,
.gallery-list h1,
.picture h1,
.contact h1 {
    color: rgb(var(--fifteen));
    font-size: 20px;
    margin: 10px 0px;
}

/* index */
.top section {
    margin-bottom: 30px;
}

.top h1,
.top h2,
.top h3,
.top h4 {
    color: rgb(var(--fifteen));
}

.top h2 {
    font-size: 16px;
    margin-bottom: 20px;
}

.top h3 {
    font-size: 14px;
}

.index-intro {
    margin-top: 10px;
    text-align: center;
}

.index-intro div {
    margin: 20px 0;
}

.index-intro h1 {
    font-size: 20px;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.index-intro p {
    font-size: 12px;
}

.index-news img {
    width: 60%;
    display: block;
    margin: 0 auto 20px;
}

.index-news h3 {
    color: #000;
}

.index-information {
    text-align: center;
}

.index-information div {
    margin: 20px 0;
}


.index-information ul {
    margin-bottom: 10px;
}

.index-gallery li {
    margin-bottom: 20px;
}

.index-gallery img {
    width: 80%;
    display: block;
    margin: 0 auto;
}

.index-diary li {
    font-size: 12px;
    margin-bottom: 20px;
}

.index-diary h3 {
    margin-bottom: 6px;
    color: #000;
}


.index-diary div {
    margin-bottom: 20px;
}

.index-diary img {
    width: 68%;
    display: block;
    margin: 0 auto;
}

.index-contact p {
    font-size: 12px;
    margin-bottom: 10px;
}

/* proile */

.daichi-imazeki {
    margin-bottom: 40px;
}

.daichi-imazeki div {
    margin-bottom: 20px;
}

.daichi-imazeki img {
    margin-bottom: 20px;
}

.profile p {
    font-size: 15px;
    line-height: 1.5;
}

.daichi-imazeki h2 {
    font-size: 26px;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.europi div {
    margin-bottom: 20px;
}

.europi img {
    margin-bottom: 20px;
}

.europi h2 {
    font-size: 20px;
}


.daichi-imazeki h3,
.daichi-imazeki h4,
.europi h3,
.europi h4 {
    font-size: 15px;
    margin-top: 30px;
    margin-bottom: 6px;
}

.imazeki-europi {
    margin-bottom: 20px;
}

/* diary */
.diary-page {
    font-family: serif;
}

.breadcrumb {
    margin: 10px 0;
    display: flex;
    flex-wrap: wrap;
    font-size: 10px;
}

.breadcrumb li {
    margin-right: 4px;
}

.diary h1 {
    font-family: serif;
    font-size: 24px;
    line-height: 1.5em;
}

.diary time {
    font-size: 10px;
    margin-bottom: 10px;
}

.diary-body {
    margin-top: 10px;
    font-size: 18px;
    margin-bottom: 50px;
}

.diary-author {
    margin-bottom: 30px;
}

.diary-author h2 {
    font-size: 16px;
    color: rgb(var(--fifteen));
    margin-bottom: 12px;
}

.diary-author img {
    width: 50%;
    margin-bottom: 10px;
}

.diary-author a {
    color: rgb(var(--fifteen));
    font-size: 14px;
}

.diary-author p {
    font-family: sans-serif;
    font-size: 12px;
}

.diary-author p:last-of-type {
    margin-bottom: 20px;
}

.diary-list {
    margin-bottom: 20px;
}

.diary-list h2 {
    font-size: 18px;
    margin-bottom: 10px;
}

.diary-list h3 {
    font-size: 16px;
}

.diary-list time {
    font-size: 10px;
}

.diary-list li {
    margin-bottom: 16px;
}

.return {
    color: rgb(var(--fifteen));
    font-size: 14px;
}

.paging {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

/* gallery */

.pictures li {
    width: 60%;
    margin: 0 auto 40px;
}

.gallery-paging {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.picture {
    text-align: center;
}

.picture {
    margin-top: 20px;
}

.picture div {
    margin-bottom: 60px;
}

/* contact */
form ul {
    margin-top: 10px;
}

form ul li {
    margin-bottom: 20px;
}

/* 入力欄の基本スタイル */
input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    /* 横幅いっぱい */
    padding: 12px 15px;
    /* 中に余裕を持たせる */
    border: 2px solid #ddd;
    /* 控えめな枠線 */
    border-radius: 6px;
    /* 少し角を丸く */
    font-family: inherit;
    /* Noto Sans JP を継承 */
    font-size: 16px;
    /* スマホでズームされないサイズ */
    box-sizing: border-box;
    /* paddingを含めたサイズ計算 */
    transition: border-color 0.3s;
    /* 変化をなめらかに */
}

/* 入力中に枠線の色を変える（フォーカス時） */
input:focus,
textarea:focus {
    outline: none;
    /* デフォルトの青い枠を消す */
    border-color: rgb(var(--fifteen));
    /* メインカラーで強調 */
}

input[type="submit"],
.rewrite {
    width: 100%;
    text-align: center;
    background-color: rgb(var(--fifteen));
    color: white;
    padding: 16px 40px;
    border: none;
    border-radius: 30px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.3s;
    margin-bottom: 20px;
}

.rewrite {
    background-color: rgb(200, 200, 200);
}

input[type="submit"]:hover {
    transform: translateY(-2px);
    /* 軽く浮き上がらせる */
}

.comform {
    font-size: 12px;
    color: gray;
}

/* footer */
footer {
    width: 100%;
    height: 150px;
    background-color: rgba(var(--fifteen), 0.1);
    border-top: 1px solid rgb(var(--fifteen));
}

footer p,
small {
    display: block;
    width: calc(100% - 36px);
    margin: 0 auto;
}

.footer-sitename {
    font-family: Noto Sans JP, sans-serif;
    font-size: 15px;
    margin: 16px auto;
    letter-spacing: 2px;
}

.footer-fifteen {
    font-family: "Ms Madi", cursive;
    font-size: 24px;
    letter-spacing: 0;
}

.footer-message,
.copyright {
    font-size: 10px;
    margin-bottom: 16px;
}

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

    /* header */
    header {
        max-width: 1280px;
        margin: 0 auto;
        border-bottom: none;
        /*境界線は検討*/
    }

    .sitename {
        left: 0;
    }

    .menu-button {
        display: none;
    }

    .nav-wrapper {
        top: 0;
        right: 0;
    }

    .menu-content {
        position: relative;
        top: 0;
        left: 0;
        margin-right: 0;
        width: 600px;
        height: 50px;
    }

    .menu-content ul {
        display: flex;
        justify-content: space-around;
    }

    .menu-content li {
        line-height: 50px;
    }

    /* main */
    main {
        width: 100%;
        max-width: 1280px;
        margin: 0 auto;
    }

    /* index */
    .index-intro {
        width: 1280px;
        margin: 0 auto 30px;
        display: flex;
        justify-content: space-between;
        flex-direction: row-reverse;
        margin-top: 0;
        align-items:
            flex-end;
        text-align: left;
    }


    .index-intro h1 {
        font-size: 26px;
    }

    .index-intro img {
        width: 850px;
    }

    .index-intro div {
        margin-left: 60px;
        margin-bottom: 200px;
    }

    .index-news {
        width: 900px;
        margin: 0 auto 30px;
        display: flex;
        justify-content: space-around;
        align-items: center;
    }

    .index-news img {
        width: 360px;
        margin: 0;
    }

    .index-information {
        width: 1000px;
        margin: 0 auto 30px;
        display: flex;
        justify-content: space-around;
        align-items: center;
        flex-direction: row-reverse;
    }

    .index-information img {
        width: 650px;
    }

    .index-information div {
        text-align: left;
    }

    .index-gallery ul {
        width: 1100px;
        margin: 0 auto 30px;
        display: flex;
        justify-content: space-around;
    }

    .index-gallery img {
        height: 460px;
        width: auto;
    }

    .index-diary {
        width: 900px;
        margin: 0 auto;
        display: flex;
        justify-content: space-around;
        flex-direction: row-reverse;
        align-items: center;
    }

    .index-diary img {
        width: 380px;
    }

    .index-contact {
        width: 1100px;
        margin: 0 auto 20px;
    }

    /* profile */
    .profile h1 {
        max-width: 1150px;
        margin: 0 auto 10px;
    }

    .daichi-imazeki {
        max-width: 1150px;
        margin: 0 auto 40px;
        display: flex;
        justify-content: space-between;
    }

    .daichi-imazeki div {
        width: 500px;
        margin: 0 40px 0 0;
    }

    .daichi-imazeki img {
        width: 560px;
    }

    .europi {
        max-width: 1150px;
        margin: 0 auto 40px;
        display: flex;
        flex-direction: row-reverse;
        justify-content: space-between;
        align-items: flex-start;
    }

    .europi div {
        width: 500px;
        margin: 0 40px 0 0;
    }

    .europi img {
        width: 560px;
        height: auto;
    }

    .europi div img {
        margin: 20px auto;
        width: 360px;
    }

    /* diary */
    .diary-page {
        width: 600px;
        margin: 0 auto;
    }

    .diary-author {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .diary-author img {
        width: 200px;
    }

    .diary-author div {
        width: 360px;
    }

    .after-list {
        display: flex;
        justify-content: space-between;
    }

    .after-list section {
        width: 46%;
    }

    .top-diary-list {
        width: 600px;
        min-height: 500px;
        margin: 0 auto 20px;
    }

    .top-diary-list h1 {
        margin: 40px 0;
    }

    .paging {
        width: 600px;
        margin: 0 auto 20px;
    }

    /* gallery */
    .gallery-list {
        width: 1280px;
        margin: 0 auto 20px;
    }

    .pictures ul {
        display: grid;
        /* 1列の幅を揃えて、3列並べる指定 */
        grid-template-columns: repeat(6, 1fr);
        gap: 60px;
    }

    .pictures li {
        width: 160px;
        margin: 0;
    }

    .pictures li img {
        width: 100%;

    }

    .gallery-paging {
        width: 1280px;
        margin: 20px auto;
    }

    .picture {
        width: 1280px;
        margin-bottom: 80px;
        display: flex;
        justify-content: space-around;
        flex-direction: row-reverse;
        align-items: flex-end;
    }

    .picture img {
        max-height: 640px;
    }

    .picture div {
        width: 300px;
        text-align: left;
    }

    .pictures .return {
        margin-bottom: 20px;
    }

    /* contact */
    form {
        width: 600px;
        margin: 0 auto 20px;
    }

}

/* 画面幅800px以上のスタイル */