@charset "UTF-8";

/* 共通部分 */
html {
    font-size: 100%;
    height: 100%;
}
body {
    font-family: "Yu Gothic Medium", "游ゴシック Medium", YuGothic, "游ゴシック体", "ヒラギノ角ゴ Pro W3", sans-serif;
    line-height: 1.7;
    color: #432;
    margin: 0;
    padding: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}
a {
    text-decoration: none;
}
img {
    max-width: 100%;
}
.wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 4%;
}
.big-bg {
    background-size: cover;
    background-position: center top;
}
.page-title {
    font-size: 5rem;
    font-family: 'Noto Sans', sans-serif;
    text-transform: uppercase;
    font-weight: bold;
}
.sub-title {
    font-size: 1.375rem;
    padding: 0 8px 8px;
    border-bottom: 2px #C69E6E solid;
    font-weight: normal;
}
.button {
    font-size: 1.375rem;
    background: #C69E6E;
    color: #fff;
    border-radius: 5px;
    padding: 18px 32px;
}

.button:hover {
    background: #0090aa;
}
iframe {
    width: 100%;
}

/* HEADER */

/* メインナビゲーションのアコーディオンスタイル */
#main-nav {
    display: flex;
    flex-direction: column;
    width: 100%;
    background-color: #333;
    position: absolute;
    top: 85px;
    left: 0;
    max-height: 0; /* 初期状態では高さを0にして非表示 */
    overflow: hidden;
    transition: max-height 0.5s ease-out; /* 高さ変更にトランジション効果を追加 */
}

#main-nav.active {
    max-height: 500px; /* 展開時の最大高さ（必要に応じて調整） */
}

.main-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.main-nav li {
    border-bottom: 1px solid #444; /* メニュー項目間の境界線 */
}

.main-nav a {
    display: block;
    padding: 15px;
    color: #fff;
    text-decoration: none;
}

.main-nav a:hover {
    background-color: rgba(35, 23, 9, 0.8); /* ホバー時の背景色 */
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    width: auto;
    height: 60px;
    margin: 30px;
}
.main-nav {
    display: flex;
    flex-direction: column;
    font-size: 1.00rem;
    text-transform: uppercase;
    list-style: none;
}
.main-nav li {
    margin-left: 36px;
}
.main-nav a {
    color: #fff;
    text-shadow: 
    1px 1px 2px #231709, 
    -1px 1px 2px #231709, 
    -1px -1px 2px #231709, 
    1px -1px 2px #231709;
}
.main-nav a:hover {
    color: #0bd;
}

.menu-icon {
    display: block;
    width: 30px;
    height: 25px;
    position: relative;
    cursor: pointer;
    z-index: 1001;
}

.menu-icon span {
    background-color: #000;
    display: block;
    height: 3px;
    width: 100%;
    margin: 5px 0;
    transition: 0.4s;
}

/* HOME */
#home {
    background-image: url(/p/yonemura/images/index-bg.jpg);
    min-height: 100vh;
}
#home .page-title {
    text-transform: none;
    -webkit-text-stroke: 1px black;
    color: #fff;
    text-shadow: 
      3px 3px 6px #231709, 
      -3px 3px 6px #231709, 
      -3px -3px 6px #231709, 
      3px -3px 6px #231709;
}
.home-content {
    text-align: center;
    margin-top: 10%;
}
.button-container { /* 新しく追加したボタンを囲む要素 */
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 20px; /* ボタンと上のテキストとの間隔を調整 */
}
.home-content p {
    font-size: 1.5rem;
    margin: 10px 0 42px;
    color: #fff;
    text-transform: none;
    text-shadow: 
       2px 2px 2px #231709, 
       -2px 2px 2px #231709, 
       -2px -2px 2px #231709, 
       2px -2px 2px #231709;
}
/* RESEARCH */
#research {
    background-image: url(/p/yonemura/images/research-bg.jpg);
    height: 270px;
    margin-bottom: 40px;
}
#research .page-title {
    text-align: center;
}

/* 記事部分(researchなど2階層にあるすべてのページ，cssのタグ付けのネーミングをミスったかもしれません。) */
research-article {
    width: 100%;
    margin: 0;
    padding: 0; 
}
.research-info {
    position: relative;
    padding-top: 4px;
    margin-bottom: 40px;
}
.research-title {
    font-family: "Yu Mincho", "YuMincho", serif;
    font-size: 2rem;
    font-weight: normal;
}
research img {
    margin-bottom: 20px;
}
article p {
    margin-bottom: 2rem;
}

/* Members */
.members-info {
    margin-bottom: 20px;
}

.members-info h2 {
    margin: 0;
}

.members-title-1 {
    font-family: "Yu Mincho", "YuMincho", serif;
    font-size: 1.9rem;
    font-weight: bold;
}

.members-subtitle-1 {
    font-family: "Yu Mincho", "YuMincho", serif;
    font-size: 1.2rem;
    font-weight: bold;
}

.profile-container-1 {
    display: flex;
    align-items: flex-start;
}

.profile-container-1 img {
    border-radius: 50%;
    margin-right: 20px;
    width: 170px; /* 写真の大きさは調整 */
    height: 170px; /* 写真の大きさは調整 */
    object-fit: cover;
}

.members-title-2 {
    font-family: "Yu Mincho", "YuMincho", serif;
    font-size: 1.75rem;
    font-weight: normal;
}

.members-subtitle-2 {
    font-family: "Yu Mincho", "YuMincho", serif;
    font-size: 1rem;
    font-weight: normal;
}

.profile-container-2 {
    display: flex;
    align-items: flex-start;
}

.profile-container-2 img {
    border-radius: 50%;
    margin-right: 20px;
    width: 150px; /* 写真の大きさは調整 */
    height: 150px; /* 写真の大きさは調整 */
    object-fit: cover;
}

.profile-text {
    flex: 1;
}

/* NEWS */
#news {
    background-image: url(/p/yonemura/images/news-bg.jpg);
    height: 270px;
    margin-bottom: 40px;
}
#news .page-title {
    text-align: center;
}
.news-contents {
    display: flex;
    justify-content: space-between;
    margin-bottom: 50px;
}

/* 記事部分 */
article {
    width: 74%;
}
.post-info {
    position: relative;
    padding-top: 4px;
    margin-bottom: 40px;
}
.post-date {
    background: #C69E6E;
    border-radius: 50%;
    color: #fff;
    width: 100px;
    height: 100px;
    font-size: 1.625rem;
    text-align: center;
    position: absolute;
    top: 0;
    padding-top: 10px;
}
.post-date span {
    font-size: 1rem;
    border-top: 1px rgba(255,255,255,.5) solid;
    padding-top: 6px;
    display: block;
    width: 60%;
    margin: 0 auto;
}
.post-title {
    font-family: "Yu Mincho", "YuMincho", serif;
    font-size: 2rem;
    font-weight: normal;
}
.post-title,
.post-cat {
    margin-left: 120px;
}
article img {
    margin-bottom: 20px;
}
article p {
    margin-bottom: 1rem;
}

/* サイドバー */
aside {
    width: 22%;
}
.sub-menu {
    margin-bottom: 60px;
    list-style: none;
}
.sub-menu li {
    border-bottom: 1px #ddd solid;
}
.sub-menu a {
    color: #432;
    padding: 10px;
    display: block;
}
.sub-menu a:hover {
    color: #C69E6E;
}
aside p {
    padding: 12px 10px;
}

/* Gallery */
#gallery {
    background-image: url(/p/yonemura/images/gallery-bg.jpg);
    min-height: 100vh;
}
.gallery-content {
    max-width: 560px;
    margin-top: 10%;
}
.gallery-content .page-title {
    text-align: center;
}
.gallery-content p {
    font-size: 1.125rem;
    margin: 10px 0 0;
}

.grid {
    display: grid;
    gap: 26px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    margin-top: 6%;
    margin-bottom: 50px;
}

.gallery-footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 10px 0;
    width: 100%;
    position: fixed;
    bottom: 0;
    left: 0;
}

/* CONTACT */
#contact {
    background-image: url(/p/yonemura/images/contact-bg.jpg);
    min-height: 100vh;
}

/* フッター */
.footer {
    position: relative;
    inset-inline: 100%;
    width: 100vw;
    margin-inline: -100vw;    
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 10px 0;
    z-index: 1000;
    margin-top: auto; 
}
.footer-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-nav li {
    display: inline;
    margin: 0 10px;
}
.footer-nav a {
    color: #fff;
}
.footer-nav a:hover {
    color: #0bd;
}

/* モバイル版 */
@media (max-width: 1200px) {
    .menu-icon {
        display: block;
    }
    #main-nav {
        display: none;
        width: 100%;
        top: 
    }
    #main-nav.active {
        display: flex;
        flex-direction: column;
        background-color: #333;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        text-align: center;
    }
    #main-nav ul {
        margin: 0;
        padding: 0;
        list-style: none;
    }
    #main-nav li {
        margin: 0;
    }
    #main-nav a {
        padding: 10px 0;
        display: block;
        color: #fff;
    }
}

@media (max-width: 960px) {
    .page-title {
        font-size: 2.5rem;
    }
    .page-header {
        flex-direction: column;
        align-items: center;
    }
    #main-nav {
        font-size: 1rem;
        margin-top: 10px;
    }
    #main-nav li {
        margin: 0 20px;
    }
    .button {
        font-size: 1rem;
        padding: 12px 24px;
        display: block;
        margin-bottom: 10px;
    }
    .home-content {
        margin-top: 20%;
    }
    .news-contents {
        flex-direction: column;
    }
    #news .page-title {
        margin-top: 30px;
    }
    article, aside {
        width: 100%;
    }
    aside {
        margin-top: 60px;
    }
    .post-info {
        margin-bottom: 30px;
    }
    .post-date {
        width: 70px;
        height: 70px;
        font-size: 1rem;
    }
    .post-date span {
        font-size: 0.875rem;
        padding-top: 2px;
    }
    .post-title {
        font-size: 1.375rem;
    }
    .post-cat {
        font-size: 0.875rem;
        margin-top: 10px;
    }
    .post-title, .post-cat {
        margin-left: 80px;
    }
    .menu-content {
        margin-top: 20%;
    }
    #contact .page-title {
        margin-top: 40px;
    }
    #location .wrapper,
    #sns .wrapper {
        flex-direction: column;
    }
    .location-info,
    .location-map,
    .sns-box {
        width: 100%;
    }
    .sns-box {
        margin-bottom: 30px;
    }
}