/* ページ全体 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Yu Gothic', Arial, sans-serif;
    background-color: #fff;
    color: #333;
}

main{
    min-height: 100lvh;
}

/* ヘッダー */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background-color: #ffffff;
}

header h1 a {
    font-size: 1.5rem;
    color: #000000;
    text-decoration: none;
}

header h1 a:hover{
    background-color: #ccc;
}


/*画像保存禁止設定*/
img{
    pointer-events:none;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-touch-callout:none;
    -moz-user-select:none;
    user-select: none;
}

/* ハンバーガーメニュー */

.menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
}

.menu-button {
    margin-right: 20px;
    width: 60px;
}

.hamburger-menu {
    display: flex;
    position: fixed;
    top: 0;
    right: 100%; 
    width: 30%;
    height: 100%;
    background-color: #ffffff;
    color: #9B92C6;
    z-index: 10;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    box-shadow: -4px 0px 10px rgba(0, 0, 0, 0.2);
    transition: right 0.5s ease, visibility 0.5s ease, opacity 0.5s ease; 
    visibility: hidden;
    opacity: 0;
    overflow:scroll;
}

.hamburger-menu.active {
    right: 0;
    visibility: visible;
    opacity: 0.9;
}

.hamburger-menu.closing {
    right: -100%; 
    visibility: hidden;
    opacity: 0;
}

.hamburger-menu nav ul {
    list-style: none;
    text-align: center;
    padding: 0;
}

.hamburger-menu nav ul li {
    margin: 1rem 0;
}

.hamburger-menu nav ul li .li-normal {
    text-decoration: none;
    color: #9B92C6;
    font-weight: 800;
    font-size: 2rem;
}

.hamburger-menu nav ul li .li-pressure{
    text-decoration: none;
    color: #9B92C6;
    font-weight: 800;
    font-size:2.25rem;
}

.close-menu {
    position: absolute;
    top: 20px;
    left: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    color: #9B92C6;
    cursor: pointer;
}

/* トップ部分 */
.top {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.top .img-box{
     position: absolute;
     display: flex;
     justify-content: center;
     align-items: center;
     top:15%;
     width: 100%;
}

.top .img-box img{
    max-width: 45%;
    width:900px;
    height: auto;
    z-index: 1;
}

/* 背景画像 */
.top-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.top-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* メインコンテンツ */
.main-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    margin: 5%;
}

/* ニュース */
.news-box{
    position: relative;
    width: 50%;
    text-align: center;
    margin: 0 5% 0 0;
}

.news-title {
    font-size: 2.5em;
    margin-bottom:1em;
    border-bottom: double 5px #9b92c683;
}

.news-wrapper {
    background-color: #eeedf2;
    border-radius: 8px;
    max-width: 800px;
    padding: 1.5em 1.5em 0;
    height: 300px;
    overflow:hidden; 
}

.news {
    max-height: 300px;
    padding: 1em; 
    overflow-y: scroll;
}

.news ul {
    list-style: none;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.5;
    margin: 0;
    padding: 0;
}

.news ul li {
    margin-bottom: 1.5rem;
    padding: 0.5rem;
    background-color: #ffffff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.news ul li .li-date{
    color:#8a8989;
    margin-bottom: 0;
    font-size: 1.25rem;
}

/* トピックス */
.topics-box{
    position: relative;
    width: 50%;
    text-align: center;
    margin: 0 0 0 5%;
}

.topics-title {
    font-size: 2.5em;
    margin-bottom:1em;
    border-bottom: double 5px #9b92c683;
}

.topics-wrapper {
    border-radius: 8px;
    max-width: 800px;
    width: 100%;
    height: 300px;
    position: relative;
    overflow: hidden; /* はみ出したスライドを隠す */
}

.slide{
    width: 300%;
    height: 100%;
    display: flex;
    transition: all 0.3s;
    padding:5% 0;
}

.slide div{
    width: 33.33%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slide1{
    transform: translateX(0);
}

.slide2{
    transform: translateX(-33.33%);
}

.slide3{
    transform: translateX(-66.66%);
}

.slide img{
    height:auto;
    width: 100%;
}

.indicator {
  width: 100%;
  position: absolute;
  bottom: 10px;
  display: flex;
  column-gap: 18px;
  z-index: 10;
  justify-content: center;
  align-items: center;
}

.indicator li {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  list-style: none;
  background-color: #fff;
  border: 1px #00000085 solid;
  cursor: pointer;
}

.indicator li:first-of-type {
  background-color: #00000085;
}

.prev-box,
.next-box {
  position: absolute;
  width: 80px;   /* ← クリック範囲を広げる */
  height: 100%;  /* ← スライダー全体縦方向をカバー */
  top: 0;
  z-index: 9;
  cursor: pointer;
}

.prev-box {
  left: 0;
}

.next-box {
  right: 0;
}

.next {
  position: absolute;
  width: 30px;
  height: 30px;
  right: 10px;
  bottom: 50%;
  z-index: 10;
  cursor: pointer;
  border-top: solid 5px #000;
  border-right: solid 5px #000;
  -webkit-transform: rotate(45deg) translateY(50%);
  transform: rotate(45deg) translateY(50%);
}

.prev {
  position: absolute;
  width: 30px;
  height: 30px;
  left: 27px;
  bottom: 50%;
  z-index: 10;
  cursor: pointer;
  border-top: solid 5px #000;
  border-right: solid 5px #000;
  -webkit-transform: rotate(-135deg) translateY(-50%);
  transform: rotate(-135deg) translateY(-50%);
}

/* フッター */
footer {
    background-color: #9b92c683;
    padding: 1rem;
    display: flex;
    justify-content: center;
}

.social-icons a {
    margin: 0 2rem;
    text-decoration: none;
    display: inline-block;
    line-height: 0; 
}

.social-icons img {
    width: 50px; 
    height: 50px; 
    object-fit: contain; /* アイコンのアスペクト比を維持 */
}

/* 著作権表示のスタイル */
.footer-copyright {
    background-color: #9B92C6; 
    color: #ffffff; 
    padding: 0.5rem 1rem;
    text-align: center;
    width: 100%;
    margin:0;
}

.privacy-link {
    margin-left: 20px; 
    color: #ffffff; 
}

.privacy-link a {
    color: #ffffff; 
    text-decoration:underline;
}

/* レスポンシブ対応 */
@media screen and (max-width: 600px) {
    .menu-button {
    margin-right: 10px;
    width: 40px;
    }
    
    .hamburger-menu{
        width:80%;
    }

    .top .img-box{
        top:15%;
    }

    .top .img-box img{
        max-width: 100%;
    }

    .main-content {
        flex-direction: column;
        margin: 10% 2.5% 2.5%;
    }

    .news-box{
        width:90%;
        margin:0;
    }

    .news-wrapper{
        height:300px;
    }

    .news-title{
        font-size:1.75em;
    }

    .news {
        padding: 0.5em 1em; 
    }

    .news ul {
         font-size: 1rem;
    }

    .news ul li .li-date{
         font-size: 0.75rem;
    }

    .next{
        right:0px;
        border-top: solid 3px #000;
        border-right: solid 3px #000;
    }

    .prev{
        left:17px;
        border-top: solid 3px #000;
        border-right: solid 3px #000;
    }

    .topics-box{
        width:90%;
        margin:20% 0 0;
    }

    .topics-title{
        font-size: 1.75em;
        margin-bottom:0;
    }

    .social-icons a {
        margin: 0 0.5rem;
    }

    .footer-copyright{
        font-size: 0.85em;
    }
  }


  @media screen and (max-width: 820px) and (min-width:601px) {
     .hamburger-menu{
        width:50%;
    }

    .top .img-box{
        top:20%;
    }

    .top .img-box img{
        max-width: 70%;
    }
 
    .next{
        right:0px;
    }

    .prev{
        left:17px; 
    }

    .footer-copyright{
        padding: 1.25rem 1rem;
     }

  }
