@charset "UTF-8";

/* ==================共通部分==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    color: #222;
}

img {
    width: 100%;
    height: auto;
    vertical-align: bottom;
}

a {
    color: #222;
    text-decoration: none;
}
a:hover{
    opacity: 0.8;
}

h2 {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 50px;
    margin-top: 50px;
}
  
h2::before,
h2::after {
    content: '';
    flex-grow: 0.03;
    height: 1px;
    background:#2f4f4f;
}
h2::before{
    margin-right: 5px;
}
h2::after{
    margin-left: 5px;
}
.container {
    width: min(80%, 1160px);
    margin: 0 auto 100px auto;
}

/* ================== ヘッダー ==================== */
header {
    background-color: rgba(250, 250, 250, 0.9);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 99;
}

nav ul {
    display: flex;
    list-style: none;
    width: min(80%, 1160px);
    margin: 0 auto;
    padding: 0.5em 0;
    position: relative;
}

nav ul li {
    flex: 1;
    text-align: center;
}

/* ================== キービジュアル ==================== */
.key_visual {
    background-image: url(../images/key_visual.jpg);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    height: 90vh;
}
.key_visual>h1{
    position:absolute;
    top:40%;
    left: 15%;
    font-size: 18px;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.4);
}
.key_visual>p{
    position:absolute;
    top:45%;
    left: 15%; 
    font-size: 14px;
}
/* ==================選ばれる理由 ==================== */
.reason_box{
    background-image: url(../images/reason.jpg);
    background-position: center;
    background-size:cover ;
    background-repeat: no-repeat;
}
.reason_text{
    background-color: rgba(255, 255,255,0.85);
    border: solid 1px #e5e5eb ;
    margin-bottom: 30px;
    padding: 10px 0 10px 10px;
    text-align: left;
    width: 70%;
}
.reason_title{
    color: #2f4f4f;
    margin-bottom: 15px;
    display: inline-block;
    font-weight: bold; 
    font-size: 18px;
}
.reason_2thtext{
    margin-left:100px;
}
/* ================== コース ==================== */
.course_box{
    display: flex;
    text-align: center;
}
.course_figcaption{
    padding: 10px;
    margin-bottom: 100px;
}
.voice_container{
    margin-bottom: 20px;
}
.voice_box{
    display: flex;
    justify-content: space-between;
    gap: 20px;
}
.voice_box>img{
    width: 55%;
    object-fit: cover;
}
.voice_item{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-top: 20px;
}
.voice_item>p{
    line-height: 40px;
}
.voice_btn_box{
    text-align: center;
}

.voice_btn{
    display: inline-block;
    background-color: #008080;
    color:#fff ;
    line-height: 35px;
    margin: 5px 0 30px 0;
    border-radius: 20px;
    min-width: 160px;
    text-align: center;
    opacity: 0.8;
}

.voice_btn:hover{
    opacity: 1;
}
.reverse{
    flex-direction: row-reverse;
}
/* ================== 会社概要==================== */
.about_container{
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 50px;
    margin-bottom: 20px;
}
.company_box{
    flex: 1;
}
.address_box{
    flex: 1;
}
table{
    width: 100%;
}
th{
    vertical-align:top ;
    display: inline-block;
    width: 160px;
    border: solid 1px #ddd;
}
td{
    padding-left: 0.5rem;
    text-align: left;
    padding-bottom: 10px;
}
.map_box>iframe{
    width: 100%;
}
/* ================== フッター ==================== */
footer{
    text-align: center;
}



/* ================================レスポンシブ ==================================== */
@media (max-width:768px) {
/* ヘッダー */
nav ul li{
    font-size: 12px;
} 
/* ================== 選ばれる理由 ==================== */
.reason_text{
    width: 100%;
}
.reason_2thtext{
    margin-left:0;
}
/* ================== コース ==================== */
.course_box{
    display: inline-block;
}
figure>img{
    width: 60%;
    margin: auto;
    display: block;
}
.voice_box{
    display: inline-block;
}
.voice_box>img{
    width: 90%;
    margin: auto;
    display: block;
}
/* ================== 会社概要 ==================== */
.about_container{
    display: inline-block;
}
.company_box>img,
.address_box{
    padding: 0 50px 10px 50px;
}
th,
td{
    display: block;
}
}