/*
Theme Name: オサフネ公式サイト
Author: 株式会社オサフネ
Version: 1.0
*/

:root{
    --header_bg: #F5FBFD;
    --header_menu: #000;
    --humburger_span: #000;
    --sp_header_menu_bg: #fff;

    --footer_bg:#F5FBFD;
    --footer_menu:#000;

    --btn_bg:#4DB6D6;
    --btn_bg_hover:#fff;
    --btn_txt:#fff;
    --btn_txt_hover:#4DB6D6;

    --about_span:#7BC96F;

    --works_bg:#F5FBFD;
    --works_box_bg:#fff;

    --news_bg:#fff;
    --news_underline:#000;

    --company_box_color:#7BC96F;
    --company_profile_bg:#F5FBFD;
    --company_prolile_table_border:#ddd;
    --company_profile_table_bg:#ffffff;
    --company_th:#4DB6D6;
}
header{
    background-color: var(--header_bg);
    width: 100%;
    padding: 15px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    z-index: 9999;
}

header .header_logo{
    width: 190px;
}
header .header_logo:hover{
    transition: transform 0.3s ease;
    transform: scale(1.03);
}
header .header_menu{
    display: flex;
    gap: 50px;
}
header .header_menu ul{
    display: flex;
    gap: 30px;
    list-style: none;
}
header .header_menu ul li{
    color: var(--header_menu);
    font-size: 18px;
}
header .header_menu .sns_box{
    display: flex;
    gap: 30px;
}
header .header_menu .sns_icon{
    width: 30px;
}

header .hamburger{
    background: none;
    width: 40px;
    display: none;
    height: 40px;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    border: none;
    cursor: pointer;
}
header .hamburger span{
    background-color: var(--humburger_span);
    display: block;
    width: 28px;
    height: 2px;
    border: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

@media screen and (max-width: 768px){
    header {
        display: relative;
        padding: 10px 20px;
    }
    header .header_logo{
        width: 100px;
    }
    header .hamburger{
        display: flex;
    }
    header.menu-open .header_menu{
        display: flex;
    }
    header.menu-open .hamburger span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    header.menu-open .hamburger span:nth-child(2) {
        opacity: 0;
    }
    header.menu-open .hamburger span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    header .header_menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 30px 20px;
        background-color: var(--sp_header_menu_bg);
        flex-direction: column;
        gap: 30px;
    }
    header .header_menu ul {
        flex-direction: column;
        gap: 20px;
    }
    header .sns_box {
        justify-content: center;
    }
}
footer{
    background-color: var(--footer_bg);
    width: 100%;
}
footer .footer_logo{
    width: 400px;
    margin-bottom: 20px;
    padding-top: 50px;
    margin-left: 150px;
}
footer .footer_logo:hover{
    transition: transform 0.3s ease;
    transform: scale(1.03);
}
footer .footer_inner{
    display: flex;
    justify-content: space-between;
}
footer .footer_inner .footer_left{
    margin-top: 30px;
    margin-left: 150px;
}
footer .footer_inner .footer_left .company_info p{
    font-size: 25px;
    margin-top: 20px;
}
footer .footer_inner .footer_right{
    margin-top: 30px;
    margin-right: 150px;
}
footer .footer_inner .footer_right .footer_menu ul{
    list-style: none;
}
footer .footer_inner .footer_right .footer_menu ul li{
    color: var(--footer_menu);
    font-size: 25px;
    margin-top: 20px;
}
footer .footer_inner .footer_right .footer_menu .sns_box{
    display: flex;
    gap: 30px;
    margin-top: 50px;
}
footer .footer_inner .footer_right .footer_menu .sns_icon{
    width: 50px;
}
footer .policy{
    margin-top: 50px;
    text-align: center;
    font-size: 20px;
}
footer .copy_right{
    margin-top: 30px;
    padding-bottom: 20px;
    font-size: 20px;
    text-align: center;
}
@media screen and (max-width: 768px){
    footer .footer_logo{
        width: 100px;
        margin-left: 30px;
        padding-top: 20px;
        margin-bottom: 0;
    }
    footer .footer_inner .footer_left{
        margin-left: 30px;
        margin-top: 10px;
    }
    footer .footer_inner .footer_left .company_info p{
        font-size: 15px;
        margin-top: 10px;
    }
    footer .footer_inner .footer_right{
        margin-right: 30px;
        margin-top: 10px;
    }
    footer .footer_inner .footer_right .footer_menu ul li{
        font-size: 15px;
        margin-top: 10px;
    }
    footer .footer_inner .footer_right .footer_menu .sns_box{
        gap: 10px;
        margin-top: 20px;
    }
    footer .footer_inner .footer_right .footer_menu .sns_icon{
        width: 30px;
    }
    footer .policy{
        font-size: 12px;
        margin-top: 20px;
    }
    footer .copy_right{
        margin-top: 20px;
        font-size: 12px;
    }
}
#privacy_policy_page{
    width: 100%;
}
#privacy_policy_page .policy_box{
    margin: 50px 150px;
}
#privacy_policy_page .policy_box p{
    padding-top: 10px;
    font-size: 18px;
}
#privacy_policy_page .policy_box .policy_title{
    font-size: 25px;
    padding-top: 20px;
}
#privacy_policy_page .policy_box .policy_inner{
    padding-left: 50px;
}
@media screen and (max-width: 768px){
    #privacy_policy_page .policy_box{
        margin: 30px 40px;
    }
    #privacy_policy_page .policy_box p{
        font-size: 12px;
    }
    #privacy_policy_page .policy_box .policy_title{
        font-size: 15px;
        padding-top: 10px;
    }
    #privacy_policy_page .policy_box .policy_inner{
        padding-left: 20px;
    }
}


#hero {
    width: 100%;
    height: 700px;
    overflow: hidden;
    background: linear-gradient(
        120deg,
        #ffffff 0%,
        #f5fbfd 100%
    );
}

#hero .hero_inner {
    position: relative;
    align-items: center;
    width: 100%;
    height: 100%;
}

#hero .hero_text {
    position: absolute;
    left: 8%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;

    padding: 35px 45px;
    background: rgba(255, 255, 255, 0.56);
    border-top: 2px solid #4DB6D6;
    border-bottom: 2px solid #4DB6D6;
}
#hero .hero_catch {
    margin: 0 0 15px;
    font-size: 30px;
    letter-spacing: 0.08em;
    color: #187B9E;
}

#hero .hero_text h1 {
    margin: 0;
    font-size: 60px;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: 0.05em;
    color: #4DB6D6;
}

#hero .hero_text h1 span {
    display: block;
    margin-top: 15px;
    font-size: 18px;
    font-weight: normal;
    letter-spacing: 0.08em;
    color: #187B9E;
}

#hero .hero_visual {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
}

#hero .hero_visual img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

@media screen and (max-width: 768px) {

    #hero {
        height: 600px;
    }

    #hero .hero_text {
        left: 0;
        top: 20%;
        transform: translateY(-50%);
        padding: 10px;
        width: 100%;
    }

    #hero .hero_catch {
        font-size: 20px;
        margin-bottom: 10px;
    }

    #hero .hero_text h1 {
        font-size: 36px;
    }

    #hero .hero_text h1 span {
        margin-top: 10px;
        font-size: 13px;
    }

    #hero .hero_visual {
        width: 100%;
        height: 100%;
    }

    #hero .hero_visual img {
        object-position: 80% center;
    }
}

#news{
    background-color: var(--news_bg);
    width: 100%;
    padding-top: 100px;
    padding-bottom: 50px;
}
#news .news_box{
    margin: 30px 150px;
}
#news .news_box .news_post{
    padding: 20px 20px 0;
    display: flex;
    gap: 50px;
}
#news .news_box .news_post p{
    font-size: 25px;
}
#news .news_box span{
    display: block;
    background-color: var(--news_underline);
    width: 100%;
    height: 2px;
}
@media screen and (max-width: 768px){
    #news{
        padding-bottom: 30px;
        padding-top: 50px;
    }
    #news .news_box{
        margin: 30px 30px;
    }
    #news .news_box .news_post{
        padding: 0;
        gap: 30px;
    }
    #news .news_box .news_post p{
        font-size: 15px;
    }
}
#about{
    padding: 50px 0;
    width: 100%;
}
#about .about_box{
    display: flex;
    gap: 100px;
    justify-content: center;
    align-items: center;
    padding: 50px;
}
#about .about_box img{
    width: 450px;
}
#about .about_box p{
    text-align: center;
    font-size: 20px;
}
#about .about_btn{
    width: fit-content;
    display: block;
    background-color: var(--btn_bg);
    color: var(--btn_txt);
    padding: 10px 20px;
    font-size: 20px;
    border-radius: 5px;
    margin-left: auto;
    margin-right: 150px;
}
#about .about_btn:hover{
    background-color: var(--btn_bg_hover);
    color: var(--btn_txt_hover);
    border: 1px solid var(--btn_bg);
}
#about .about_span{
    display: block;
    width: 500px;
    height: 4px;
    background-color: var(--about_span);
    margin: 0 auto;
}
@media screen and (max-width: 768px){
    #about{
        padding: 0;
    }
    #about .about_box{
        padding: 10px 40px 10px;
        gap: 8px;
    }
    #about .about_box img{
        display: none;
    }
    #about .about_box p{
        font-size: 15px;
    }
    #about .about_btn{
        padding: 5px 10px;
        font-size: 15px;
        margin: 20px auto;
    }
    #about .about_span{
        width: 150px;
        margin: 30px auto;
    }
}
#works{
    width: 100%;
    padding:50px 0;
}
#works .works{
    margin: 0 auto;
    background-color: var(--works_bg);
    padding: 50px 0;
}
#works .works .works_box{
    display: flex;
    width: 80%;
    margin: 50px auto;
    background-color: var(--works_box_bg);
    border: 1px solid #ddd;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}
#works .works .works_box .works_box_txt{
    padding: 30px;
}
#works .works .works_box .works_box_txt p{
    font-size: 18px;
}
#works .works .works_box .works_box_txt .works_box_title{
    font-size: 25px;
    padding-bottom: 20px;
}
#works .works .works_box .works_box_txt .works_box_btn{
    width: fit-content;
    display: block;
    padding: 10px 30px;
    font-size: 20px;
    border-radius: 5px;
    background-color: var(--btn_bg);
    color: var(--btn_txt);
    margin: 20px auto 0;
}
#works .works .works_box .works_box_txt .works_box_btn:hover{
    background-color: var(--btn_bg_hover);
    color: var(--btn_txt_hover);
    border: 1px solid var(--btn_bg);
}

#works .works .works_box img{
    width: 500px;
}
@media screen and (max-width: 768px){
    #works .works .works_box{
        flex-direction: column;
    }
    #works .works .works_box.reverse{
        flex-direction: column-reverse;
    }
    #works .works .works_box img{
        width: 100%;
    }
    #works .works .works_box .works_box_txt p{
        font-size: 15px;
    }
    #works .works .works_box .works_box_txt .works_box_title{
        font-size: 20px;
    }
    #works .works .works_box .works_box_txt .works_box_btn{
        padding: 3px 25px;
    }
}













#company_page{
    width: 100%;
}
#company_page .company_box{
    width: 80%;
    margin: 0 auto 50px;
    border: 1px solid #ddd;
    display: flex;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}
#company_page .company_box span{
    display: block;
    margin: 20px;
    width: 7px;
    background-color: var(--company_box_color);
    flex-shrink: 0;
}
#company_page .company_box h2{
    font-size: 20px;
    margin: 20px;
    color: var(--company_box_color);
}
#company_page .company_box p{
    font-size: 15px;
    margin: 20px;
}
#company_page .company_profile{
    background-color: var(--company_profile_bg);
    padding-bottom: 50px;
}
#company_page .company_profile table{
    border-collapse: collapse;
    margin: 0 auto;
    background-color: var(--company_profile_table_bg);
}
#company_page .company_profile table th{
    border-bottom: 1px solid var(--company_prolile_table_border);
    color: var(--company_th);
    padding: 10px 20px;
    text-align: left;
    font-size: 20px;
}
#company_page .company_profile table td{
    border-bottom: 1px solid var(--company_prolile_table_border);
    padding: 10px 20px;
    font-size: 20px;
}
.company_access {
    width: 100%;
    padding: 120px 8%;
    background: #FFF;
}

/* ACCESSの中身 */
.access_inner {
    max-width: 1200px;
    margin: 0 auto;

    display: flex;
    align-items: stretch;
    gap: 60px;
    padding-bottom: 100px;
}

/* 左側 */
.access_left {
    width: 42%;
    padding: 40px 0;
}

.access_left h3 {
    margin: 0 0 25px;

    font-size: 28px;
    font-weight: 500;
    color: #126A8A;

    padding-left: 18px;
    border-left: 4px solid #4DB6D6;
}

.access_left > p {
    margin: 0 0 35px;

    font-size: 16px;
    line-height: 1.9;
    color: #444;
}

/* 電車・車 */
.access_left h4 {
    margin: 30px 0 10px;

    font-size: 18px;
    font-weight: 500;
    color: #187B9E;
}

.access_left h4 + p {
    margin-bottom: 25px;
}

/* 右側 */
.access_right {
    width: 58%;
    min-height: 450px;
}

/* Google Map */
.access_right iframe {
    display: block;

    width: 100%;
    height: 100%;
    min-height: 450px;

    border: 0;
    border-radius: 12px;

    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}
@media screen and (max-width: 768px){
    #company_page .company_box span{
        margin: 10px;
    }
    #company_page .company_box h2{
        margin: 10px;
    }
    #company_page .company_box p{
        margin: 10px;
        font-size: 12px;
    }
    #company_page .company_profile table th{
        font-size: 12px;
        padding: 10px;
        width: 100px;
    }
    #company_page .company_profile table td{
        font-size: 12px;
        padding: 10px;
    }

    .company_access {
        padding: 80px 5%;
    }

    .company_access .title {
        margin-bottom: 45px;
    }

    /* ACCESSの中身 */
    .access_inner {
        display: block;
        padding-bottom: 60px;
    }

    /* 左側 */
    .access_left {
        width: 100%;
        padding: 0;
        margin-bottom: 40px;
    }

    .access_left h3 {
        margin: 0 0 20px;

        font-size: 24px;

        padding-left: 14px;
        border-left: 3px solid #4DB6D6;
    }

    .access_left > p {
        margin: 0 0 25px;

        font-size: 15px;
        line-height: 1.8;
    }

    /* 電車・車 */
    .access_left h4 {
        margin: 25px 0 10px;

        font-size: 17px;
    }

    .access_left h4 + p {
        margin-bottom: 20px;
    }

    /* 右側 */
    .access_right {
        width: 100%;
        min-height: 0;
    }

    /* Google Map */
    .access_right iframe {
        width: 100%;
        height: 350px;
        min-height: 0;

        border-radius: 10px;
    }

}







.contact_form {
    background-color: #fff;
    width: 60%;
    margin: 0 auto;
    padding-bottom: 100px;
}

.contact_form_item {
    margin-bottom: 30px;
}

.contact_form_item label {
    display: block;
    margin-bottom: 10px;
}

/* 必須・任意 */
.required,
.optional {
    display: inline-block;
    margin-left: 8px;
    padding: 3px 7px;
    font-size: 11px;
    font-weight: normal;
    border-radius: 3px;
}

.required {
    background-color: #333;
    color: #fff;
}

.optional {
    background-color: #ddd;
    color: #555;
}

/* CF7の入力欄を囲むspan */
.contact_form_item .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* 入力欄 */
.contact_form_item input[type="text"],
.contact_form_item input[type="email"],
.contact_form_item input[type="tel"],
.contact_form_item select,
.contact_form_item textarea {
    box-sizing: border-box;
    display: block;
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    font-family: inherit;
    font-size: 15px;
    color: #333;
    outline: none;
}

/* フォーカス */
.contact_form_item input[type="text"]:focus,
.contact_form_item input[type="email"]:focus,
.contact_form_item input[type="tel"]:focus,
.contact_form_item select:focus,
.contact_form_item textarea:focus {
    border-color: #333;
}

/* プレースホルダー */
.contact_form_item input::placeholder,
.contact_form_item textarea::placeholder {
    color: #aaa;
}

/* セレクト */
.contact_form_item select {
    cursor: pointer;
}

/* テキストエリア */
.contact_form_item textarea {
    resize: vertical;
    min-height: 180px;
    line-height: 1.7;
}

/* --------------------
   個人情報
-------------------- */

.contact_privacy {
    margin: 40px 0;
    text-align: center;
}

.contact_privacy label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
    cursor: pointer;
    font-size: 13px;
    font-weight: normal;
}
/* CF7が生成するspan */
.contact_privacy .wpcf7-form-control-wrap {
    display: inline-flex;
    width: auto;
    margin: 0;
}
/* チェックボックス */
.contact_privacy input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    cursor: pointer;
}
.contact_privacy .privacy_text {
    display: inline;
}
.contact_privacy a {
    color: #333;
    text-decoration: underline;
}

/* --------------------
   送信ボタン
-------------------- */

.contact_form_button {
    text-align: center;
}

/* CF7のsubmitはbuttonではなくinput */
.contact_form_button input[type="submit"] {
    display: inline-block;
    width: 260px;
    padding: 16px 20px;
    border: none;
    border-radius: 4px;
    background-color: #333;
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.contact_form_button input[type="submit"]:hover {
    opacity: 0.7;
}

/* --------------------
   CF7のエラー表示
-------------------- */

/* 入力欄の下に出るエラーメッセージ */
.contact_form .wpcf7-not-valid-tip {
    margin-top: 5px;
    font-size: 12px;
}

/* フォーム全体の送信結果 */
.contact_form .wpcf7-response-output {
    margin: 30px 0 0;
    padding: 15px;
    font-size: 13px;
}

/* --------------------
   スマホ
-------------------- */

@media screen and (max-width: 768px) {

    .contact_form {
        width: 80%;
        padding-bottom: 50px;
    }

    .contact_form_item {
        margin-bottom: 25px;
    }

    .contact_form_item label {
        font-size: 14px;
    }

    .contact_form_item input[type="text"],
    .contact_form_item input[type="email"],
    .contact_form_item input[type="tel"],
    .contact_form_item select,
    .contact_form_item textarea {
        padding: 13px 12px;
        font-size: 14px;
    }

    .contact_form_item textarea {
        min-height: 150px;
    }

    .contact_privacy {
        margin: 30px 0;
    }

    .contact_privacy label {
        font-size: 12px;
    }

    .contact_form_button input[type="submit"] {
        width: 100%;
        max-width: 260px;
    }
}


/* 仮 */
.news_single_box {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 20px;
}

.news_single_date {
    margin-bottom: 20px;
    font-size: 14px;
}

.news_single_title {
    margin-bottom: 40px;
    font-size: 28px;
}

.news_single_content {
    line-height: 2;
}

.news_single_back {
    text-align: center;
    margin: 40px 0 80px;
}

.news_single_back a {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
}
/* ---------------------------------- */
.news_archive_box {
    width: 80%;
    max-width: 1000px;
    margin: 80px auto;
}

.news_archive_post {
    padding: 25px 0;
    border-bottom: 1px solid #ddd;
}

.news_archive_date {
    margin-bottom: 10px;
    font-size: 14px;
}

.news_archive_title {
    margin: 0;
    font-size: 20px;
}

.news_archive_title a {
    color: inherit;
    text-decoration: none;
}

.news_archive_title a:hover {
    opacity: 0.6;
}

.news_pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 50px;
}

.news_pagination a,
.news_pagination span {
    display: inline-block;
    padding: 10px 15px;
    border: 1px solid #ddd;
    text-decoration: none;
}

.news_more {
    text-align: center;
    margin-top: 40px;
}

.news_more a {
    width: fit-content;
    display: block;
    background-color: var(--btn_bg);
    color: var(--btn_txt);
    padding: 10px 20px;
    font-size: 20px;
    border-radius: 5px;
    margin-left: auto;
    margin-right: 150px;
}

.news_more a:hover{
    background-color: var(--btn_bg_hover);
    color: var(--btn_txt_hover);
    border: 1px solid var(--btn_bg);
}
@media screen and (max-width: 768px){
    .news_more a {
        padding: 5px 10px;
        font-size: 15px;
        margin: 20px auto;
    }
}