* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}



.container {
    min-height: 100vh;
}

/* Hero Section */


.img-box {
  width: 100%;
}

.img-fit {
  width: 100%;   /* 親の幅にフィット */
  height: 100%;  /* 縦横比を維持して伸縮 */
  display: block;
}


#sub_top h1{
    font-size:20px;
    font-family: Raleway, sans-serif;
    text-shadow: rgba(0, 0, 0, 0.5) 0px 0px 5px;
    font-weight:400;
    margin-top:-20px;
}
@media (max-width: 960px) {
#sub_top h1{
        margin-top:-65px;
}
}
@media (max-width: 460px) {
#sub_top h1{
        margin-top:-55px;
        font-size:16px;
}
}
#sub_top.community_event2 {
	background-image: url(../img/community_event.jpg);
    background-position: left 20% bottom 37%;
}
@media (max-width: 960px) {
#sub_top.community_event2 {
    background-image:none;
}
}


/* Icon Menu Section */
.icon-menu-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 2000px) {
.icon-menu-wrapper {
    max-width: 1400px;
    margin:0 auto;
}
.cont-wrap{
      max-width: 1400px;  
}
}

.icon-menu-container {
    max-width:fit-content;
    margin: 0 auto;
}

.icon-menu-grid {
    display: grid;
	grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.menu-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
    background-color: none;
    border-radius: 0.5rem;
    
}


.menu-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.menu-card p {
    font-size: 0.875rem;
    color: #6b7280;
    text-align: center;
    font-weight:600;
}

/* Content Section */
.content-section {
    padding: 4rem 1rem;
}

.content-container {
    max-width: 72rem;
    margin: 0 auto;
}

@media(max-width: 768px) {
    .content-container {
    max-width:80%;
}
}
.wide-menu-grid {
    display: grid;
    gap: 1.5rem;
	margin-bottom: 3rem;
	place-items: center;
}
.w-80{
    width:80%;
    margin:0 auto;

}




.wide-menu-content {
    flex: 1;
}

.wide-menu-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}


.text-content {
    text-align: center;
}

.text-content h2 {
    font-size: 1.875rem;
    margin-bottom: 1rem;
}

.text-content p {
    font-size: 1.125rem;
    color: #6b7280;
}

/* Responsive Design */
@media (min-width: 768px) {
    .hero-text h1 {
        font-size: 3.75rem;
    }

    .hero-text p {
        font-size: 1.875rem;
    }

    .icon-menu-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .wide-menu-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}



.menu01 {
    display: flex;
    position: relative; 
    margin-top: calc(-20vw - 25px); /* 画面幅に応じて滑らかに変化 */
    z-index: 20;
}
.icon-img{
    width:100%;
}
@media(min-width: 1600px) {
.icon-img{
    width:90%;
}
}
 .more-btn{
        width:100px;
        margin:10px 0;
}



.text-center{
        margin:0 auto;
    }
a.btn-top  {
    display: inline-block;
    transition: all 0.3s ease;
}

a.btn-top img {
    display: block;
    transition: filter 0.3s ease;
}

a.btn-top:hover img {
    filter: brightness(0.8) !important;
}

/* オプション: カーソルがポインターになることを明示 */
a.btn-top {
    cursor: pointer;
}

/*br*/
.br-res{
    display: none;
}
@media(max-width: 575px) {
    .br-xs {
        display:block
    }
}

@media(min-width: 576px)and (max-width: 767.98px) {
    .br-sm {
        display:block
    }
}

@media(min-width: 768px)and (max-width: 991.98px) {
    .br-md {
        display:block
    }
}

@media(min-width: 992px)and (max-width: 1199.98px) {
    .br-lg {
        display:block
    }
}

@media(min-width: 1200px)and (max-width: 1399.98px) {
    .br-xl {
        display:block
    }
}

@media(min-width: 1400px) {
    .br-xxl {
        display:block
    }
}


/*グローバルナビ*/

@media screen and (min-width: 960px) {
    #g_navi ul.navi_base {
        width: 100%;
        max-width: 1400px;
        margin-left: auto;
        margin-right: auto;
        display: flex; 

    }
    
    #g_navi ul.navi_base li {
        flex: 1; /* 各liを均等に拡大 */
        text-align: center; 
        font-size:18px;
    }
    
    #g_navi ul.navi_base li a {
        display: block;
        width: 100%;
        padding: 15px 10px;
    }
}
@media(min-width:959.98px)and (max-width: 1187px) {
     #g_navi ul.navi_base li {
        font-size:13px;
}
}


/*menuナビ*/

#menu_navi {
    padding: 20px 0;
}

#menu_navi ul {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* 5列固定 */
    gap: 5px;
    margin: 0 auto;
    padding: 0;
    width: 98%;
    max-width: 1400px;
    list-style-type: none;
}

#menu_navi ul li {
    box-sizing: border-box;
        position: relative;
}

#menu_navi ul li a {
    display: block;
    font-size: 16px;
    padding: 0.5em 1em;
    color: #ffffff !important;
    font-weight: bold;
    text-align: left;
    text-decoration: none;
    transition: background-color 0.3s;
    height: 100%;
    box-sizing: border-box;
    text-align: center;
    border-radius: 10px;
    background-image: linear-gradient(135deg, #6f86d6 0%, #007095 100%);

}

#menu_navi ul li a:hover {
    background-color: #004a62;
}

/* 下層メニュー用スタイル */
#menu_navi ul li .submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    min-width: 200px;
    grid-template-columns: 1fr;
    gap: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#menu_navi ul li:hover .submenu {
    display: block;
}

#menu_navi ul li .submenu li {
    width: 100%;
}

#menu_navi ul li .submenu li a {
    background: #fff;
    color: #333 !important;
    font-weight: normal;
    border-bottom: 1px solid #e0e0e0;
    padding: 7px;
    text-align: center;
    border-radius: 0 !important;
    font-weight:700;
}

#menu_navi ul li .submenu li a:hover {
    background-color: #;
    color: #007095 !important;
    background-image: linear-gradient(to top, #e6e9f0 0%, #eef1f5 100%);
}

#menu_navi ul li .submenu li:last-child a {
    border-bottom: none;
}



/* レスポンシブ */
@media (max-width: 599px) {
    #menu_navi ul {
        grid-template-columns:repeat(2, 1fr);/* 2列 */
    }
}

@media (min-width: 600px) and (max-width: 959px) {
    #menu_navi ul {
        grid-template-columns: repeat(3, 1fr); /* 3列 */
    }
}

.thumbnail{
    width: 100%;
    aspect-ratio: 213 / 125;
    overflow: hidden;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .thumbnail {
        width: 100%;
        max-width: 300px;
    }
}
.btn-container {
  display: flex;
  gap: 20px;
  justify-content: flex-end;
  flex-wrap: wrap;
  margin-top:50px;
}

@media (max-width: 960px) {
.btn-container {
  justify-content: center; 
}
}

.btn {
  flex: 0 1 auto;
  margin-bottom:20px;
}

.new-btn2{
	  font-size: 16px;
  font-weight: bold;
  color: #FFF;
  text-align: center;
  border: 5px solid #0085B2;
  text-decoration: none;
  background-color: #0085B2;
  margin-left: auto;
  line-height: 10px;
  border-radius: 10px;
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  padding: 10px;
  max-width: 250px;
}
