/* 
Theme Name: Handy Original
Author: handy
Description: Handyman Handy,s Original Theme
Version: 1.0
Text Domain : handyoriginal
*/

/*** 共通 ***/
html {
    scroll-behavior: smooth;
}
body {
    margin: 0;
    color: #333;
    background-color: #ecfff1;
    font-family: "Times New Roman","游明朝","Yu Mincho","游明朝体","YuMincho","ヒラギノ明朝 Pro W3","Hiragino Mincho Pro","HiraMinProN-W3","HGS明朝E","ＭＳ Ｐ明朝","MS PMincho",serif;
}
*,
*::before,
*::after {
    box-sizing: border-box;
}
.contents {
    width: 1000px;
    margin: 0 auto;
}
.entry-content .wp-block-columns figure {
    margin: 0;    
}
.font-bold {
    font-weight: bold;
}
p {
    font-size: 1.2em;
}
h3.anchor{
    display: block;
    padding-top: 70px;
    margin-top: -70px;
}

@media screen and (max-width: 1024px) { 
    .contents {
        width: 100%;
        padding: 24px;
    }
}

@media screen and (max-width: 767px) {
    body .is-layout-flex {
        gap: 0;
    }
    .contents {
        width: 100%;
    }
    .contents p {
        font-size: 15px;
    }
    .contents h2 {
        font-size: 20px;
    }
    .contents h3 {
        font-size: 16px;
    }
}

/* ヘッダー */

.header {
    background-color: #fff;
}
.header__inner {
    width: 90%;
    margin: auto;
    padding-top: 32px;
    display: flex;
    justify-content: space-between;
}
.header-image {
    position: relative;
}
.header-image img {
    display: block;
    width: 100%;
    height: auto;
}
.header-image::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    pointer-events: none;
}
.header-image-ttl {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    margin: 0;
    padding: 0;
    font-size: 48px;
    color: #eee;
    width: 100%;
    text-align: center;
}
.site-name {
    margin: 0;
    font-size: 32px;
}
.site-name a {
    color: currentColor;
    text-decoration: none;
}
.line a {
    display: flex; 
    align-items: center; 
    text-decoration: none; 
    color: #333;
    justify-content: end;
}

.line a img {
    width: 32px; 
    height: auto;
}

@media screen and (max-width: 1024px) {
    .site-name {
        font-size: 24px;
    }
}

/* ハンバーガーメニュー start */
.global-nav__list {
    text-align: right;
}
.global-nav__list li {
    display: inline-block;
    transition: 0.3s;
}
.global-nav__list li:hover {
    opacity: 0.7;
}
.global-nav__list li:not(:last-of-type) {
    margin-right: 16px;
    border-right: solid 1px;
    padding-right: 16px;
}
.global-nav__list li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
}
.menu-toggle {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 3;
}
.menu-toggle .menu-icon {
    display: block;
    width: 50px;
    height: 5px;
    background-color: #eee;
    position: relative;
    transition: all 0.3s;
}
.menu-toggle .menu-icon::before,
.menu-toggle .menu-icon::after {
    content: '';
    width: 50px;
    height: 5px;
    background-color: #eee;
    position: absolute;
    left: 0;
    transition: all 0.3s;
}
.menu-toggle .menu-icon::before {
    top: -10px;
}
.menu-toggle .menu-icon::after {
    top: 10px;
}
.menu-toggle.open .menu-icon {
    background-color: transparent;
}
.menu-toggle.open .menu-icon::before {
    transform: rotate(45deg);
    top: 0;
}
.menu-toggle.open .menu-icon::after {
    transform: rotate(-45deg);
    top: 0;
}
.tel {
    width: 90%;
    text-align: right;
    margin: 0 auto 16px;
}
.tel-link {
    color: #333;
    text-decoration: none;
}
/* PCとSPの表示切り替え用 */
@media screen and (max-width: 1024px) {
    .global-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 90%;
        height: 100%;
        background-color: rgba(0,0,0,0.7);
        z-index: 2;
        opacity: 0;
        transform: translateX(100%);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }
    .global-nav.open {
        opacity: 1;
        transform: translateX(0);
    }
    .global-nav__list {
        display: block;
        padding: 20px;
        margin-top: 20%;
        text-align: left;
    }
    .global-nav__list li {
        display: block;
        margin-bottom: 16px;
        font-size: 16px;
        font-weight: bold;
        border-bottom: solid 1px #eee;
    }
    .global-nav__list li a {
        color: #eee;
        text-decoration: none;
        padding: 10px;
    }
    .menu-toggle {
        display: block;
        height: 50px;
        background-color: rgb(0 0 0 / 0.7);
    }
    .menu-toggle.open {
        background-color: transparent;
    }
    .global-nav__list li:not(:last-of-type) {
        margin-right: 0;
        border-right: none;
        padding-right: 0;
    }
}

/* TOP */

.greeting {
    text-align: center;
    padding-top: 40px;
}
.news-section {
    margin-top: 48px;
}

.news-section h2 {
    margin: 0 0 16px;
    text-align: center;
}
.news-content {
    padding: 32px 64px;
    margin: 0 auto 32px;
    background-color: #fff;
}
.ews-content .top-news-item:not(:first-of-type) {
    margin-top: 8px;
}
 .top-news-item {
    margin-bottom: 16px;
    transition: 0.3s;
    border-bottom: solid 1px #736a5e;
}
.top-news-item:hover {
    opacity: 0.7;
}
.top-news-item a {
    text-decoration: none;
    color: #eee;
    display: block;
}
 .top-news-item__date {
    color: #AEAEAE;
    font-size: 0.8em;
    margin: 0;
}
 .top-news-item__ttl {
    margin: 0;
    color: #333333;
}
.more-news {
    text-align: right;
    margin-top: 32px;
}
.more-news a {
    text-decoration: none;
    color: #333;
}
.top-menu-section {
    margin-top: 48px;
}
.top-menu-section .wp-block-columns {
    margin-bottom: 0;
}
.top-menu-section h2,.top-menu-section h3 {
    text-align: center;
}
.widget--top-menu .wp-block-columns {
    padding: 32px 64px;
    background-color: #fff;
}
.widget--top-menu:not(:last-child) {
    margin-bottom: 16px;
}
.more-btn {
    margin-top: 32px;
    margin-bottom: 40px;
}
.more-btn a {
    position: relative;
    overflow: hidden;
    border-radius: 3px;
    border: solid 2px #000;
    text-decoration: none;
    display: block;
    max-width: 250px;
    background: #e6e6e6;
    margin: auto;
    padding: 24px 40px;
    font-family: "Noto Sans Japanese";
    font-weight: 500;
    text-align: center;
    line-height: 1.8;
    outline: none;
    transition: ease .2s;
}
.more-btn a span {
    position: relative;
    z-index: 3;
    color: #333;
}
.more-btn a:hover span {
    color: #fff;
}
.bgskew::before {
    content: '';
    position: absolute;
    top: 0;
    left: -130%;
    background: #333;
    width: 120%;
    height: 100%;
    transform: skewX(-25deg);
}
.bgskew:hover::before {
    animation: skewanime .5s forwards;
}
@keyframes skewanime {
    100% {
        left: -10%;
    }
}
@media screen and (max-width:767px) {
    .news-section {
        width: 100%;
        padding: 0;
    }
    .news-content {
        padding: 16px 32px;
    }
    .more-news {
        margin-top: 0;
    }
    .top-menu__inner .widget--top-menu h3 {
        margin-top: 0;
        margin-bottom: 0;
    }
    .widget--top-menu .wp-block-columns {
        padding: 16px 24px;
    }
    .top-menu__inner .widget--top-menu:nth-child(odd) .wp-block-columns {
        flex-direction: column-reverse;
    }
} 

/* フッター */
.footer {
    background-color: #fff;
    padding-top: 48px;
    padding-bottom: 48px;
}
.footer__inner {
    width: 1000px;
    margin: 0 auto;
}
.f_ttl {
    font-size: 32px;
    font-weight: bold;
}
#copyright {
    text-align: center;
    margin-top: 64px;
}

@media screen and (max-width: 1024px) { 
    .footer {
        padding-left: 64px;
        padding-right: 64px;
    }
    .footer__inner {
        width: 100%;
    }
}

@media screen and (max-width: 767px) {
    .footer {
        padding: 8px 16px;
    }
    .footer__inner {
        text-align: center;
    }
    .f_content {
        text-align: left;
        display: inline-block;
    }
    #copyright {
        margin-top: 16px;
    }
    .f_ttl {
        font-size: 24px;
        text-align: center;
        margin-bottom: 0;
        margin-top: 16px;
    }
}

/* 固定ぺージ */
.page-content {
    margin-top: 64px;
    margin-bottom: 64px;
}
.page .contents h1 {
    text-align: center;
}
.page .contents h2 {
    margin-top: 4rem;
    margin-bottom: 0;
}
@media screen and (max-width:767px) {
    .page .contents h1 {
        font-size: 24px;
    }
}

/* 便利屋あおやまについて */

.has-fixed-layout tbody tr td:first-of-type {
    width: 25%;
}

.has-fixed-layout {
    background-color: #fff;
}

.wp-block-list {
    background-color: #fff;
    padding: 16px 32px;
    border: solid 1px;
}

.map {
    text-align: center;
}

.map iframe {
    max-width: 100%;
}

.prfbox {
    display: flex;
    border: solid 1px;
    padding: 24px 32px;
    margin-top: 4rem;
}

.prfbox img {
    width: 25%;
}

.prfbox p {
    margin: 0 0 0 16px;
}

.flow-box {
    margin-top: 1em;
}

.step {
    background: #fff;
    padding: 0 32px 24px;
    min-height: 300px;
    border: solid 1px;
}

.step h5 {
    text-align: center;
    padding-top: 24px;
    font-size: 18px;
    margin-bottom: 16px;
    margin-top: 0;
}

.flow-element-img {
    float: left;
    width: 25%;
    padding-right: 16px;
}

.flow-element-img img {
    max-width: 100%;
}

.flow-element-anno {
    display: inline-block;
}

.flow-element-anno a {
    font-size: 18px;
    font-weight: bold;
}

.triangle {
    width: 0px;
    margin: 16px auto;
    border-top: 50px solid #000;
    border-right: 50px solid transparent;
    border-left: 50px solid transparent;
}

.wp-block-heading {
    margin-bottom: 0;
}

.reason {
    background-color: #fff;
    padding: 16px 32px;
    border: solid 1px;
    margin-top: 0;
}

@media screen and (max-width:1024px) {
    .flow-element {
        padding: 16px;
    }
}

@media screen and (max-width:768px) {
    .flow-element-img {
        float: none;
        width: 100%;
        padding-right: 0;
    }
    .step {
        padding: 0 8px;
    }
    .flow-element-txt p {
        display: inline-block;
    }
    .reason {
        padding-left: 16px;
        padding-right: 16px;
    }
    .prfbox {
        flex-direction: column-reverse;
    }
    .prfbox img {
        width: 100%;
        margin-top: 16px;
    }
    .prfbox p {
        margin: 0;
    }
}

/* よくあるご質問 */
.accordion-container {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
}

.accordion-list {
    border: solid 1px;
}

.accordion-list:not(:first-child) {
    margin-top: 10px;
}

.accordion-title {
    background: #fff;
    cursor: pointer;
    font-size: 16px;
    padding: 20px 40px;
    position: relative;
}

.accordion-title:before {
    position: absolute;
    content: '';
    top: 50%;
    right: 25px;
    height: 2px;
    width: 15px;
    background: #333;
    transform: rotate(90deg);
    transition: all .3s ease-in-out;
}

.accordion-title:after {
    position: absolute;
    content: "";
    top: 50%;
    right: 25px;
    height: 2px;
    width: 15px;
    background: #333;
    transform: all .3s ease-in-out;
}

.accordion-title.open::before {
    transform: rotate(180deg);
}

.accordion-title.open:after {
    opacity: 0;
}

.accordion-text {
    border-left: 1px solid #DDD;
    border-right: 1px solid #DDD;
    border-bottom: 1px solid #DDD;
    display: none;
    padding: 16px 32px;
    margin-left: 0;
}

.example {
    display: flex;
    justify-content: center;
}

.example > p {
    text-align: center;
    width: 50%;
}

.example > p:first-child {
    margin-right: 24px;
}

@media screen and (max-width: 768px) {
    .accordion-title {
        padding: 16px 24px;
    }
    .accordion-text {
        padding: 8px;
    }
    .example > p:first-child {
        margin-right: 16px;
    }
    .accordion-title:before,.accordion-title:after {
        right: 10px;
    }
}

/***  サービス一覧　***/
.service-navi {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    padding: 16px 24px;
    background-color: #fff;
}
.service-navi li {
    list-style: none;
    margin-bottom: 8px;
    padding-left: 18%;
}
.service-navi li a {
    text-decoration: none;
    color: #333;
}
.page-id-32 .entry-content .wp-block-columns {
    padding: 32px 64px;
    background-color: #fff;
}
.page-id-32 .entry-content h2 {
    background-color: #faf3e0;
    padding-top: 16px;
    padding-bottom: 16px;
}
@media screen and (max-width:767px) {
    .service-navi {
        display: block;
        padding: 16px;
    }
    .service-navi li {
        padding-left: 0;
    }
    .page-id-32 .entry-content .wp-block-columns {
        padding: 16px 24px;
    }
    .page-id-32 .entry-content h3 {
        text-align: center;
    }
    .page-id-32 .entry-content .wp-block-columns:nth-child(even) {
        flex-direction: column-reverse;
    }
}

/***  お問い合わせ　***/
.contact-message {
    width: 80%;
}
.wpcf7-submit {
    width: 180px;
    height: 60px;
    text-align: center;
    margin: 0 auto;
    display: block;
}
.wpcf7-previous {
    width: 180px;
    height: 60px;
    text-align: center;
    margin: 0 auto;
    display: block;
}
.wpcf7-form-control-wrap input,.wpcf7-form-control-wrap select,.wpcf7-form-control-wrap textarea {
    padding: 8px;
}

@media screen and (max-width:767px) {
    .contact-message {
        width: 100%;
    }
}

/* お知らせ一覧 */
.news-archive-content {
    text-align: center;
    padding-top: 48px;
    padding-bottom: 48px;
}
.news-archive-content .news-list {
    width: 800px;
    margin: 0 auto;
}
.news-item__date {
    font-size: 12px;
    margin-bottom: 0;
}
.news-item__ttl {
    margin-top: 0;
    margin-bottom: 0;
}
.news-archive-content .news-item {
    text-align: left;
    transition: 0.3s;
    border-bottom: solid 1px #736a5e;
}
.news-archive-content .news-item:not(:last-child) {
    margin-bottom: 32px;
}
.news-archive-content .news-item:hover {
    opacity: 0.7;
}
.news-archive-content .news-item a {
    color: #333;
    text-decoration: none;
}
@media screen and (max-width:767px) {
    .news-archive-content .news-list {
        width: 100%;
    }
    .news-archive-content .news-item:not(:last-child) {
        margin-bottom: 24px;
    }
    .news-archive-content > h1 {
        font-size: 24px;
    }
}