@charset "utf-8";

/* common */
html {
    font-family: "Hina Mincho", serif;;
    font-size: 100%;
    color: #000000;
    background-color: #F2EBCD;
}

h1 {
    margin: 0;
}

main h2 {
    font-size:4rem;
    font-weight: lighter;
    text-align: center;
    color: #000000;
}

h3 {
    font-size:2rem;
    font-weight: lighter;
    text-align: center;
    color: #000000;

}

html {
    scroll-behavior: smooth;
}

.pagetop {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 150px;
    height: 150px;
    background-image: url("../images/pagetop.png"); 
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: 0.3s;
    z-index: 100;
}


/* header */

header {
    background-color: #4A4A4A;
    height: 120px
}

.header-inner {
    display: flex;
    max-width: 1440px;
    padding: 0 1rem;
    margin: 0 auto;
    align-items: center;
    justify-content: space-between;
}

.header-logo {
    margin: 0;
    padding: 0.5rem;
}

.global-nav {
    display: flex;
    justify-content: center;
    max-width: 800px;
    padding-left: 0;
    margin: 0 auto;
    list-style-type: none;
    font-size: 1.5rem;
}

.global-nav__item {
    position: relative;
    overflow: hidden;
    width: auto; 
    margin-left: 54px; 
    text-align: center;
}

.global-nav__item:first-child {
    margin-left: 0;
}


.global-nav__item:hover {
    overflow: visible;
    text-decoration: none;
}

.global-nav__item a:link {
    color: #ffffff;
    text-decoration: none;
}

.global-nav__item a:visited {
    color: #ffffff;
    text-decoration: none;
}

.global-nav__item a:hover {
    color: #ffffff;
    text-decoration: none;

}

.global-nav__item a:active {
    color: #ffffff;
    text-decoration: none;
}

/* main */

.content-area {
    max-width: 100%;
    padding: 0 3%;
    margin: 0 auto;
    font-size: clamp(0.75rem, 0.568rem + 0.91vw, 1.25rem);
}

.index-hero {
    position: relative;
    height: 800px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
    text-shadow: 7px 7px 10px rgba(0, 0, 0, 0.5); 
    opacity: 0.8; 
}

.index-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("../images/background.jpg"); 
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    animation-name: image;
    animation-duration: 5s;
    z-index: 0;
}

.index-hero h1, 
.index-hero p {
    position: relative;
    z-index: 1;
    animation-name: text; 
    animation-duration: 5s;
    font-size: 2rem;
    font-weight: lighter;
}

@keyframes image {
    from {
        opacity: 0;
        filter: blur(15px);
        transform: scale(1.1); 
    }
    to {
        opacity: 1;
        filter: blur(0);
        transform: scale(1);
    }
}

@keyframes text {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* 「鳥獣戯画」 */
.highlight-text {
    font-size: 8rem;
    font-weight: 100;
    letter-spacing: 0.8em; 
    margin-right: -0.8em; 
    display: block;
    padding: 20px 0;
}

/* 「国宝」「甲巻展」 */
.small-text, .medium-text {
    font-size: 4rem;
    font-weight: 100;
    letter-spacing: 0.5em; 
    margin-right: -0.5em;
    display: block;
}

/* 「in SAPPORO」 */
.location-text {
    font-size: 2rem;
    font-family: serif; 
    font-weight: 200;
    letter-spacing: 0.5em;
    margin-right: -0.5em;
    margin-top: 30px;
    display: inline-block;
}

.about-hero,
.event-hero,
.goods-hero,
.contact-hero {
    height: auto;
    width: 100%;
}

/* news */

.index-news {
    background-color: #ffffff;
    position: relative; 
    padding: 20px 0;    
    overflow: hidden;
    z-index: 1;
}

.news-bg-img {
    position: absolute;
    bottom: -200px; 
    right: 0;    
    width: 500px; 
    z-index: -1;
}

.news-list {
    max-width: 900px;
    height: 200px;
    margin: 0 auto;
    font-family:sans-serif;
}

.news-item {
    display: flex;      
    padding: 10px 0;
    border-bottom: 1px solid #cccccc;
}

.cat-goods
 { background-color: #FF90E3; 
}
.cat-event
 { background-color: #29D037; 
} 
.cat-info  
{ background-color: #58F8F3; 
} 

.news-date,
.news-category {
    margin-right: 20px;
    width: 70px;
    text-align: center;
    border-radius: 8px;
}


/* footer */

.copy {
    text-align: center;
    padding:20px;
    color: #EFE7C2;
}

.footer-nav {
    display: flex;
    justify-content: center;
    list-style-type: none;
    flex-direction: column;
    padding: 10px;
}

.sns-btn {
    display: flex;
    padding: 20px;
    }

.sns-btn li {
    width: 30px;
    margin-left: 10px;
    margin-right: 10px;
    list-style: none;
 }

 .sns-btn li img {
    width: 100%;
    height: auto; 
    display: block;
}

.footer-content {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: center;
    background-color: #4A4A4A;
}

.footer-nav__item:hover {
    overflow: visible;
    text-decoration: none;
}

.footer-nav__item a:link {
    color: #EFE7C2;
    text-decoration: none;
}

.footer-nav__item a:visited {
    color: #EFE7C2;
    text-decoration: none;
}

.footer-nav__item a:hover {
    color: #EFE7C2;
    text-decoration: none;

}

.footer-nav__item a:active {
    color: #EFE7C2;
    text-decoration: none;
}

/* about */

.about-giga {
    max-width: 900px;
    text-align: center;
    margin: 0 auto;
    padding: 40px;
    background-color: #4A4A4A;
}

.about-giga p {
    text-align: justify;    
    display: inline-block;  
    line-height: 2.2;  
    margin-bottom: 2.5rem;
    color: #ffffff;
    font-size: 1.2rem;    
}

.about-giga img {
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
    padding: 40px;
}

.about-giga p:last-child {
    margin-bottom: 0;
}

/* info */

.info-dlist {
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 40px 20px;
    max-width: 750px;
    margin: 0 auto;
    padding: 0 20px;
    align-items: center;
}

.info-dlist:last-child{
    margin-bottom:50px;
}

.info-dlist__term {
    font-weight: bold;
    font-size: 1.2rem;
    color: #4A4A4A;
    border-left: 4px solid #4A4A4A;
    padding-top: 10px;  
    padding-bottom: 10px;
    padding-left: 15px;  
    margin-bottom: 8px;
}

.info-dlist__desc {
    font-size: 1.2rem;
    margin: 0 0 20px 0;
    line-height: 1.8;
}

.map {
    width: 100%;
    text-align: center;
    padding-bottom: 20px;
}

/* event */

.event-open {
    max-width: 900px;
    text-align: center;
    margin: 0 auto;
    padding: 40px;
    background-color: #4A4A4A;
}

.event-open p {
    text-align: justify;    
    display: inline-block;  
    line-height: 2.2;  
    margin-bottom: 2.5rem;
    color: #ffffff;
    font-size: 1.5rem;    
}

.event-open h4 {
    color: #EFE7C2;
    font-size: 1.8rem;    
}

.event-talk, .event-sotei, .event-tera {
    display: flex;
    align-items: flex-start;
    gap: 20px;            
    margin-bottom: 30px;
}

.event-open img {
    padding-top: 30px;
    width: 400px;         
    height: auto;
    border-radius: 70px;    
}

.event-open {
    margin-bottom: 80px;
}

/* goods */

.goods {
    max-width: 1000px; 
    margin: 0 auto;    
    padding: 0 20px;
    margin-bottom: 120px; 
}

.goods p {
    text-align: justify;    
    display: inline-block;  
    margin-bottom: 40px;
    line-height: 2.2;
    font-size: 1.2rem;
}


.goods-list {
    display: flex;
    flex-wrap: wrap;    
    gap: 40px 20px; 
    list-style: none;
    padding: 0;
    margin-bottom: 60px;
}

.goods-list li {
    width: calc((100% - 40px) / 3);
    text-align: center;
}

.goods-list img {
    width: 100%;
    height: auto;
    margin-bottom: 10px;
}

img[alt="オンラインショップ"] {
    display: block;
    margin: 0 auto;
    max-width: 500px; 
    cursor: pointer;
}

/* contact */

.contact {
    max-width: 1000px; 
    margin: 0 auto;    
    padding: 0 20px;
    margin-bottom: 120px; 
    font-size:1.2rem;
    text-align: center;
}

form {
    max-width: 700px; 
    margin: 0 auto 100px;
    padding: 0 20px;
    text-align: left;
}


.submit-btn {
    text-align: center; 
    margin-top: 40px;   
}


.submit-btn input {
    padding: 12px 60px; 
    background-color: #333; 
    color: #fff;
    border: none;
    cursor: pointer;
    font-family: "Hina Mincho", serif;
}

textarea{
    padding: 6px;
    width: 100%;
    font-size: 1rem;
    height: 140px;
}

.submit {
    text-align: center;
}

/* privacy */
.privacy {
    max-width: 800px;     
    margin: 40px auto;        
    padding: 20px;
    line-height: 1.8;        
    color: #333; 
}

/* レスポンシブ */
@media screen and (max-width: 1100px) {

    .header-logo img {
        width: 300px; 
        height: auto;
    }
    header {
        height: auto;
    }
    .header-inner {
        flex-direction: column; 
        padding: 20px 0;
    }
    .global-nav {
        flex-wrap: wrap;
        margin-top: 20px;
        gap: 15px;
    }
    .global-nav__item {
        margin-left: 0; 
        font-size: 1.2rem;
    }

    .index-hero {
        height: 600px; 
    }
    
    .highlight-text {
        font-size: 4rem; 
        letter-spacing: 0.3em;
        margin-right: -0.3em;
    }
    .small-text, .medium-text {
        font-size: 2rem;
        letter-spacing: 0.3em;
        margin-right: -0.3em;
    }
    .index-hero p {
        font-size: 1rem;
        padding: 0 20px;
    }

    .news-bg-img {
        display: none;
    }
    .news-list {
        height: auto;
        padding: 0 20px;
    }
    .news-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px 0;
    }

    .news-date,
    .news-category {
        margin-bottom: 5px;
    }
    .news-bg-img {
        width: 300px; 
        bottom: -100px;
    }

    .event-talk, .event-sotei, .event-tera {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .event-open img {
        width: 100%;
        max-width: 300px;
        margin-bottom: 20px;
    }

    .goods-list li {
        width: calc((100% - 20px) / 2);
    }

    .info-dlist {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .footer-content {
        flex-direction: column;
        padding: 30px 0;
    }
    .footer-nav {
        align-items: center;
        text-align: center;
    }

    .pagetop {
        width: 100px;
        height: 100px;
        right: 10px;
        bottom: 10px;
    }

     .about-giga {
        padding: 20px;
        width: 95%;
    }

    .about-giga p,
    .event-open p {
        font-size: 1.1rem; 
        line-height: 1.8;
        text-align: left; 
    }

    .about-giga img {
        width: 100%; 
        height: auto;
        padding: 20px 0;
    }

    .info-dlist {
        grid-template-columns: 1fr; 
        gap: 10px;
        margin-bottom: 40px;
    }

    .info-dlist__term {
        border-left: 4px solid #4A4A4A;
        padding: 5px 0 5px 15px;
        margin-bottom: 0;
    }

    .info-dlist__desc {
        padding-left: 15px;
        margin-bottom: 20px;
        font-size: 1.1rem;
    }

    .map {
        padding: 0 15px 20px;
    }
}