/*
Theme Name: 早志会
*/
/* この下に通常のcssを書いていく */

/* body */

* , *::before , *::after {
	padding: 0;
	margin: 0;
	box-sizing: border-box;
}

a {
	text-decoration: none;
	color: #333;
}

li {
    list-style: none;
}


/* ---------- header ---------- */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background-color: #fff;
}

header img {
    width: 300px;
}

header ul {
    display: flex;
}

header ul li {
    margin-right: 25px;
}

.hamburger {
    display : block;
    position: fixed;
    z-index : 10000;
    right : 13px;
    top   : 12px;
    width : 42px;
    height: 42px;
    cursor: pointer;
    text-align: center;
}

.hamburger span {
    display : block;
    position: absolute;
    width   : 30px;
    height  : 5px ;
    left    : 6px;
    background : #555;
    -webkit-transition: 0.3s ease-in-out;
    -moz-transition   : 0.3s ease-in-out;
    transition        : 0.3s ease-in-out;
}

.hamburger span:nth-child(1) {
    top: 10px;
}
  
.hamburger span:nth-child(2) {
    top: 20px;
}

.hamburger span:nth-child(3) {
    top: 30px;
}
  
/* ナビ開いてる時のボタン */
.hamburger.active span:nth-child(1) {
    top : 16px;
    left: 6px;
    background :#333;
    -webkit-transform: rotate(-45deg);
    -moz-transform   : rotate(-45deg);
    transform        : rotate(-45deg);
}
  
.hamburger.active span:nth-child(2),
.hamburger.active span:nth-child(3) {
    top: 16px;
    background :#333;
    -webkit-transform: rotate(45deg);
    -moz-transform   : rotate(45deg);
    transform        : rotate(45deg);
}
  
nav.globalMenuSp {
    position: fixed;
    z-index : 5000;
    top  : 0;
    left : 0;
    background-color: rgba(255 , 255 , 255 ,.9);
    text-align: center;
    width: 100%;
    height: 100vh;
    transform: translateX(-100%);
}

@keyframes slide {
    0% {
        opacity: 0;
        transform: translateX(-100%);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

nav.globalMenuSp.active {
      animation: slide .5s forwards;
}

  
nav.globalMenuSp ul {
    margin: 0 auto;
    padding: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
  
nav.globalMenuSp ul li {
    width: 100%;
    transition: .4s all;
}
  
nav.globalMenuSp ul li a {
    display: block;
    color: #333;
    padding: 5% 0;
    font-size: 2rem;
}
  
/* このクラスを、jQueryで付与・削除する */
  nav.globalMenuSp.active {
    opacity: 100;
}

@media(max-width: 768px) {
	header nav.pc_menu {
		display: none;
	}
	
	header img {
        width: 200px;
    }
}

@media(min-width: 769px) {
	header div.hamburger {
		display: none;
	}
}

/* ---------- header_last ---------- */

/* ---------- main_visual ---------- */

.main_visual img {
    width: 100%;
}

@media(max-width: 768px) {
	.main_visual img {
		height: 100vh;
		object-fit: cover;
	}
}

/* ---------- main_visual_last ---------- */

/* ---------- news ---------- */

section#news {
    margin: 5% 0;
}

#news h2 {
	text-align: left;
    font-size: 2.5rem;
    color: #284b89;
}

/* ---------- news_last ---------- */

/* ---------- profile ---------- */

section#profile {
    display: flex;
    align-items: center;
	width: 100%;
}

#profile img {
	width: 60%;
}

.profile_text {
    margin-top: 10%;
	width: 40%;
}

.profile_text h3 {
    background-color: #284b9f;
    color: #fff;
    padding: 30% 5%;
}

@media(max-width: 768px) {
	
	#profile img {
		width: 100%;
	}
	
	section#profile {
        flex-direction: column;
    }
	
	.profile_text {
        padding: 10% 5%;
        width: 90%;
        margin-top: -10%;
    }
	
	
}

/* ---------- profile_last ---------- */

/* ---------- philosophy ---------- */

section#philosophy {
    display: flex;
    width: 100%;
    margin: 10% 0;
}

#philosophy img {
    width: 50%;
}

.philosophy_text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 50%;
}

#philosophy h2 {
    font-size: 2.5rem;
    color: #284b9f;
}

#philosophy h3 {
    font-size: 1.8rem;
    color: #00a15f;
}

.philosophy_text ul {
    margin-bottom: 5%;
}

.philosophy_text ul li {
    font-weight: bold;
    line-height: 2rem;
}

button {
    width: 80%;
}

button a {
    background-color: red;
    color: #fff;
    padding: 3% 15%;
    font-size: 1.5rem;
}

@media(max-width: 768px) {
	
	section#philosophy {
        flex-direction: column;
    }
	
	#philosophy img {
		width: 100%;
	}
	
	.philosophy_text {
		width: 100%;
	}
	
	.philosophy_text {
		padding: 0 10px;
	}
	
	#philosophy h3 {
		font-size: 1.5rem;
	}
	
	.philosophy_text ul li {
		font-size: 0.85rem;
	}
}

/* ---------- philosophy_last ---------- */

/* ---------- result ---------- */

section#result {
    margin: 5% 0;
}

#result h2 {
	text-align: left;
    font-size: 2.5rem;
    color: #284b89;
}

#result h3 {
	font-size: 1.8rem;
    color: #00a15f;
	margin: 0 0 5% 5%;
}

@media(max-width: 768px) {
	
	#result h3 {
		font-size: 1.1rem;
		margin: 0 0 5% 10px;
	}
}

/* ---------- result_last ---------- */

/* ---------- access ---------- */

section#access {
    display: flex;
	justify-content: center;
    align-items: center;
}

iframe {
    width: 50%;
}

.access_text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
	padding: 3%;
}

.access_text img {
	width: 300px;
}

.sns {
    margin: 5% 0;
}

.sns img {
    width: 100px;
	padding: 10px;
}

@media(max-width: 768px) {
	section#access {
		flex-direction: column;
	}
	
	iframe {
		width: 100%;
	}
	
	.sns img {
		width: 80px;
    }
}

/* ---------- access_last ---------- */

/* ---------- footer ---------- */

footer {
    background-color: #284b89;
}

footer p {
    color: #fff;
}

/* ---------- single.php ---------- */

.wp-pagenavi {
    display: flex;
    justify-content: center;
    margin: 3% 0;
}

/* ---------- single.php_last ---------- */

.img_wrap {
	text-align: center;
}

.img_wrap img {
	width: 100%;
	max-width: 800px;
}

.btn_wrap {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

@media(max-width: 768px) {
	button.btn a {
	    background-color: #2179c1;
        width: 300px;
        display: block;
        margin-bottom: 1rem;
    }
}

@media(min-width: 769px) {
	button.btn a {
	    background-color: #2179c1;
        width: 300px;
    }
	
	button.btn {
		margin: 4rem;
	}
}
