/* すべてのページに適用される設定 */
html {
    font-size: 16px;
    font-family: sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0 0 0 0;
}

p,
li,
td {
    line-height: 1.7;
}

a {
    &:link {
        color: #f07d34;
        text-decoration: none;
    }

    &:visited {
        color: #f07d34;
        text-decoration: none;
    }

    &:hover {
        color: #f07d34;
        text-decoration: underline;
    }

    &:active {
        color: #f07d34;
        text-decoration: underline;
    }
}

img {
    max-width: 100%;
}

/* すべてのページに適用 - ヘッダー - */
.header {
    background-image: url(../images/stripe.png);
    background-repeat: repeat-x;
    padding-top: 40px;
}

.logo {
    text-align: center;
}

.nav {
    ul {
        margin: 30px 0 0 0;
        padding: 0;
        list-style-type: none;

        display: flex;
        justify-content: center;
        gap: 40px;
    }

    a {
        &:link {
            color: #253958;
        }

        &:visited {
            color: #253958;
        }

        &:hover {
            color: #253958;
        }

        &:active {
            color: #253958
        }
    }
}

/* すべてのページに適用 - ヒーロー - */

.hero {
    padding: 137px 0;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    color: #fff;
    text-align: center;

    &.index {
        padding: 287px 0;
        background-image: url(../images/home-hero.jpg);
    }

    &.access {
        background-image: url(../images/access-hero.jpg);
    }

    &.menu {
        background-image: url(../images/menu-hero.jpg);
    }

    &.contact {
        background-image: url(../images/contact-hero.jpg);
    }
}

/* すべてのページに適用 - メイン - */
main {
    max-width: 1000px;
    margin: 90px auto 90px auto;

    h2 {
        margin: 60px 0 20px 0;
        border-bottom: 2px solid #253958;
        padding: 0 0 5px 0;
        color: #253958;
        font-size: 1.3rem;
    }
}

/* すべてのページに適用 - フッター - */
.gotop {
    text-align: center;
}

.copyright {
    margin-top: 20px;
    margin-bottom: 0;
    padding-top: 75px;
    padding-bottom: 75px;
    text-align: center;
    background-color: #253958;
    color: #fff;
}

/* 個別のスタイル */
/* index.html */
.logo-whale {
    text-align: center;
}

.shop-info {
    border-collapse: collapse;

    th,
    td {
        border: 1px solid #dbdbdb;
        padding: 20px;
    }

    th {
        width: 112px;
        text-align: left;
        vertical-align: top;
    }
}

/* menu.html */
.items {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
}

/* contact.html */
form {
    max-width: 640px;
    margin: 0 auto;
}

input[type="text"],
textarea {
    padding: 6px;
    width: 100%;
    font-size: 1rem;
}

textarea {
    height: 140px;
}

.submit {
    text-align: center;
}

input[type="submit"] {
    border: none;
    padding: 20px;
    width: 200px;
    background-color: #253958;
    color: #fff;
    font-size: 1rem;
}

/* モバイル対応 */
@media(max-width:767px) {
    .nav ul {
        flex-wrap: wrap;
        gap: 20px;
    }

    main {
        padding: 0 4%;
    }

    /* index.html */
    .hero.index {
        padding: 28vh 0;
    }

    /* menu.html */
    .items {
        grid-template-columns: 1fr 1fr;
    }
}