@charset "UTF-8";

* {
    margin: 0;
    padding: 0;
}

@font-face {
    font-family: 'Noto_Sans_JP';
    src: url(../font/Noto_Sans_JP/static/NotoSansJP-Medium.ttf);
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
}

/*ヘッダー*/

header {
    position: fixed;
    top: 0;
    display: flex;
    width: 100%;
    background-color: #fff;
    z-index: 999;
}

h1 {
    width: 33%;
    margin-left: 33%;
}

h1 a img {
    width: 100%;
}

nav {
    position: relative;
}

nav ul {
    display: none;
    position: absolute;
    top: 13vw;
    left: -66vw;
    width: 100vw;
    list-style-type: none;
}

nav ul li {
    position: relative;
    width: 100%;
}

nav ul li a {
    display: block;
    text-align: center;
    line-height: 4;
    font-size: 4vw;
    font-family: 'Noto_Sans_JP';
    text-decoration: none;
    color: #222;
    transition: 0.3s;
}

nav ul li a:hover {
    color: #fff;
    background-color: rgb(244, 0, 0);
    transition: 0.3s;
}

nav ul li:nth-child(2) a {
    color: red;
}

.insta {
    position: relative;
    top: 0.5vw;
    left: 24vw;
    width: 5%;
}

.insta a {
    display: block;
    text-align: center;
    color: #666;
    font-size: 9vw;
}


/*トグルボタンが押されたときに付与するクラス*/
nav.NavMenu.active ul {
	/*transform: translateY(0%);/*上から出したい場合は、transform: translateYを使う。*/
    display: block;
    background-color: rgba(255,255,255,1);
    animation: humbarger 0.8s;
}

@keyframes humbarger {
	0% { width: 10vw; }
  100% { width: 100vw; }
}

/*トグルボタンのスタイルを指定*/
.Toggle {
	position: fixed;    /* bodyに対しての絶対位置指定 */
    top: 1.5vw;
    left: 12px;
    width: 42px;
	height: 42px;
	cursor: pointer;/*divだけどカーソルが変わるようにしている*/
	z-index: 3;/*ボタンを一番上にしている(押せなくなるから)*/
}

.Toggle span {
	display: block;
	position: absolute;
	width: 22px;
	border-bottom: solid 3px #000;
	transition: .35s ease-in-out;			/*変化の速度を指定*/
	left: 6px;
}

.Toggle span:nth-child(1) {
	top: 9px;
}

.Toggle span:nth-child(2) {
	top: 18px;
}

.Toggle span:nth-child(3) {
	top: 27px;
}

/* 最初のspanをマイナス45度に */
.Toggle.active span:nth-child(1) {
	top: 18px;
	left: 6px;
	transform: rotate(-45deg);
}

/* 2番目と3番目のspanを45度に */
.Toggle.active span:nth-child(2),
.Toggle.active span:nth-child(3) {
	top: 18px;
	transform: rotate(45deg);
}

/*メイン*/

main {
    padding-top: 30%;
}

/*トップ画像*/

.news-top {
    position: relative;
    width: 100%;
    height: 55vw;
    background-size: contain;
    background-repeat: no-repeat;
    background-image: url(../images/mv-photo-item3.webp);
}

.news-top h2 {
    position: absolute;
    top: -10vw;
    left: 39%;
    font-size: 4vw;
    font-weight: 200;
    letter-spacing: 0.5em;
    font-family: 'Noto_Sans_JP';
    color: #444;
}

.news-top p {
    position: absolute;
    top: -5vw;
    left: 10%;
    font-size: 6vw;
    font-weight: 500;
    font-family: 'Noto_Sans_JP';
    color: rgb(244, 0, 0);
   
}

/*ニュース&トピックス*/

.column {
    display: flex;
    margin-top: 5%;
}

.section-left {
    width: 100%;
}

.section-left div:nth-child(5) {
    border-bottom: 1px solid #aaa;
}

.news {
    display: flex;
    width: 100%;
}

.news h2 {
    position: relative;
    margin-left: 8%;
    margin-bottom: 5%;
    letter-spacing: 0.1em;
    color: #222;
    font-size: 4vw;
    font-family: 'Noto_Sans_JP';
}

.news h2::before {
    position: absolute;
    top: -1.2vw;
    left: -7%;
    width: 10%;
    height: 3vw;
    content: "";
    background-repeat: no-repeat;
    background-size: contain;
    background-image: url(../images/section-title-decoration.svg);
}

.news-box {
    display: flex;
    margin: 0% 5%;
    padding: 2%;
    border-top: 1px solid #aaa;
}

.news-image {
    width: 30%;
}

.news-image img {
    width: 100%;
}

.news-text {
    margin-left: 5%;
}

.news-text p:nth-child(1) {
    line-height: 2.8;
    font-size: 2.8vw;
    color: #222;
    font-family: 'Noto_Sans_JP';
}

.news-text p time {
    color:  rgb(244, 0, 0);
}

.news-text p span {
    margin-left: 1em;
    margin-right: 1em;
}

.news-text p:nth-child(2) {
    line-height: 2.5;
    font-size: 2.6vw;
    color: #222;
    font-family: 'Noto_Sans_JP';
}

/*サイドバー*/

.section-right {
    display: none;
}

/*ユースエール認定企業*/

.youth-yell {
    display: flex;
    width: 82%;
    margin: 15% auto 0%;
}

.youth-yell-image {
    width: 15%;
}

.youth-yell-image img {
    width: 100%;
}

.youth-yell-text {
    width: 75%;
    margin-left: auto;
}


.youth-yell-text h3 {
    letter-spacing: 0.1em;
    color: #222;
    font-size: 4vw;
    font-family: 'Noto_Sans_JP';
}

.youth-yell-text p {
    margin-top: 2%;
    margin-bottom: 5%;
    line-height: 1.5;
    color: #222;
    font-size: 2.8vw;
    font-family: 'Noto_Sans_JP';
}

/*フッター*/

footer {
    width: 100%;
    height: 59vw;
    margin-top: 5%;
    overflow: hidden;
    background-repeat: no-repeat;
    background-size: contain;
    background-image: url(../images/footer-bg.svg);
}

.yajirushi {
    width: 1.5%;
    height: 5vw;
    margin: 0 auto;
    content: "";
    clip-path: polygon(0 0, 100% 14%, 100% 100%, 0% 100%);
    background: #ffbc0d;
    transition: 0.8s;
}

.yajirushi:hover {
    transform: scale(-1, 1);
    transition: 0.8s;
}

footer a {
    text-decoration: none;
}

footer a p {
    text-align: center;
    color:  rgb(244, 0, 0);
    font-size: 2.8vw;
    font-family: 'Noto_Sans_JP';
}

.footer-image {
    width: 50%;
    margin: 5% auto 3%;
}

.footer-image img {
    width: 100%;
}

footer address {
    text-align: center;
    line-height: 2;
    color:  #fff;
    font-size: 2.8vw;
    font-family: 'Noto_Sans_JP';
}

.mac-image-footer {
    position: relative;
    width: 100%;
}

.mac-image-footer img:nth-child(1) {
    position: absolute;
    top: 8vw;
    height: 8vw;
    animation: macanime2 40s linear infinite;
}

@keyframes macanime2 {
    0% {transform: translateX(43%);}
  100% {transform: translateX(-90%);}
}

.mac-image-footer img:nth-child(2) {
    position: absolute;
    height: 36vw;
    top: -3vw;
    left: 68vw;
    animation: swing 10s linear infinite;
    transform: rotate(20deg);
}

@keyframes swing {
    50% {transform: rotate(-20deg);}
    100% {transform: rotate(20deg);}
}

