@charset "UTF-8"; html { font-size:62.5%; } body { font-size:1.4rem; margin: 0; padding: 0; } *, *::before, *::after { box-sizing:border-box; } .clearfix::after { content:''; display:block; clear:both; } p { font-size: 1.6rem; } a { text-decoration: none; } header { width: 100%; height: 6.6vw; min-height: 70px; background-color: #C4E3EA; } .hd_wrap { width: 80%; height: 100%; margin: 0 auto; display: flex; justify-content: space-between; } .logo { width: 25%; display: grid; align-items: center; } h1 { font-size: 4rem; color: #337d8e; } nav { width: 75%; } nav ul { display: flex; justify-content: space-between; height: 100%; align-items: center; } nav ul li { padding: 63.2% 0; color: #333; } nav.sp_menu { display: none; } .sp_menu ul { display: block; text-align: center; color: #fff; font-size: 1.75rem; line-height: 4.5rem; margin-top: 50px; } .sp_menu ul li { padding: 2% 0; color: #fff; } .menu-checkbox { display: none; } .drawer-icon { display: none; cursor: pointer; position: fixed; top: 34px; right: 17%; justify-content: center; align-items: center; z-index: 30; background-color: #fff; } .drawer-icon span, .drawer-icon span:before, .drawer-icon span:after { content: ''; display: block; height: 6px; width: 40px; border-radius: 3px; background-color: #2e708a; position: absolute; transition: all 0.5s ease-in-out 0s; } .drawer-icon span::before { bottom: 12px; } .drawer-icon span::after { top: 12px; } .menu-checkbox:checked ~ .drawer-icon { background-color: #3584bb; } .menu-checkbox:checked ~ .drawer-icon span { background-color: rgba(255, 255, 255, 0); } .menu-checkbox:checked ~ .drawer-icon span::before { bottom: 0; transform: rotate(-45deg); background-color: #c5eaf9; } .menu-checkbox:checked ~ .drawer-icon span::after { top: 0; transform: rotate(45deg); background-color: #c5eaf9; } .menu-background { display: none; position: fixed; z-index: 10; top: 0; left: 0; width: 100%; height: 100%; background: #000; opacity: 0; transition: all 0.5s ease-in-out 0s; } .menu-checkbox:checked ~ .menu-background { display: block; opacity: 0.3; } .menu-checkbox:checked ~ nav.sp_menu { transform: translateX(0%); } .main_img { width: 100%; height: 29.8vw; min-height: 270px; background-color: #A0C4CC; background-image: url(../images/27454430_m.jpg); background-repeat: no-repeat; background-size: cover; } .main_img h2,.sub_img h2 { width: 60%; height: 100%; margin: 0 auto; display: grid; align-items: center; color: #fff; font-size: 3.2vw; text-align: center; text-shadow: 2px 2px 4px #333; line-height: 4.5vw; } article { width: 80%; margin: 6.6vw auto 0; } section { display: flex; justify-content: space-between; margin-bottom: 2.48vw; } section:nth-child(2n){ flex-direction: row-reverse; } .st_left { width: calc(60% - 1.4vw); height: auto; background-color: #9CDCEA; padding: 4%; line-height: 3.4rem; border-radius: 12px; background-image: url(../images/154633.png); background-repeat: no-repeat; background-size: contain; background-position: center; background-blend-mode: soft-light; } .st_left p { font-size: 1.75rem; color: #505f6c; } .st_right { width: calc(40% - 1.4vw); height: 23.2vw; } .st_right img { width: 100%; height: 100%; border-radius: 12px; object-fit: cover; } .sub_img { width: 100%; height: 27.6vw; min-height: 270px; background-color: #89B3BC; background-image: url(../images/27757084_m.jpg); background-repeat: no-repeat; background-size: cover; margin-bottom: 4vw; border-radius: 12px; } section.news { display: block; } .news_wrap { width: 100%; display: flex; justify-content: space-between; margin-bottom: 2.48%; } .news_img { width: 24.54vw; height: 24.54vw; max-width: 300px; max-height: 300px; } .news_img img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; } .news_txt { width: 75.19%; background-color: #77AEEB; max-height: 300px; margin-left: 2.48%; padding: 4%; line-height: 3.4rem; border-radius: 12px; } footer { width: 100%; height: 6.6vw; min-height: 70px; background-color: #C4E3EA; margin-top: 5%; } .copy { width: 30%; height: 100%; margin: 0 auto; text-align: center; display: grid; align-items: center; } @media screen and (max-width:1279px){ article { width: 84%; } .st_right { width: calc(45% - 1.4vw); height: 28vw; } .st_left { width: calc(55% - 1.4vw); } @media screen and (max-width:1119px){ article { width: 86%; } .st_right { width: calc(47% - 1.4vw); height: 38vw; } .st_left { width: calc(53% - 1.4vw); } } @media screen and (max-width:1064px){ .news_txt { padding: 3%; } } @media screen and (max-width:1031px){ .news_txt { padding: 2%; } } @media screen and (max-width:1001px){ .news_img { width: 40vw; height: 40vw; } } @media screen and (max-width:959px){ .st_right { width: calc(50% - 1.4vw); height: 50vw; } .st_left { width: calc(50% - 1.4vw); } nav { display: none; } .drawer-icon { display: block; } nav ul { display: block; } nav.sp_menu { display: block; position: fixed; top: 0; right: 0; height: 100%; width: 50%; transform: translateX(100%); transition: all 0.8s ease-in-out 0s; background-color: #333333; opacity: .9; z-index: 20; } article { width: 88%; } } @media screen and (max-width:959px){ .st_right { width: calc(50% - 1.4vw); height: 70vw; } .main_img h2,.sub_img h2 { width: 70%; font-size: 4vw; line-height: 5.5vw; } } @media screen and (max-width:863px){ .news_img { width: 50vw; height: 50vw; max-width: 350px; max-height: 350px; } .news_txt { width: 50%; max-height: none; } } @media screen and (max-width:599px){ .main_img h2,.sub_img h2 { width: 80%; font-size: 5vw; line-height: 6.5vw; } article { width: 90%; } section { display: block; } .st_left { width: 100%; margin-bottom: 2.48vw; } .st_right { width: 100%; height: 90vw; } } @media screen and (max-width:599px){ .news_wrap { width: 100%; display: block; } .news_img { width: 100%; height: 95vw; max-width: none; max-height: none; margin-bottom: 3%; } .news_txt { width: 100%; height: auto; max-height: none; margin-left: 0; padding: 5%; } } @media screen and (max-width:450px){ .main_img h2,.sub_img h2 { width: 90%; font-size: 7vw; line-height: 8.5vw; } }