/**
Theme Name: Astra pfn
Version: 0.1.0
Template: astra
*/


/***********************************************************
* general
***********************************************************/
.pfn-no-break {
    word-break: keep-all;
}

/***********************************************************
* header and menu
***********************************************************/
/* site logo width to prevent a bug which which occurs when I set width on GUI */
header .custom-logo-link img {
    max-width: 320px;
}

/* [mobile]site logo width to prevent a bug which which occurs when I set width on GUI */
@media (max-width: 544px) {
    header .custom-logo-link img, .ast-header-break-point .site-branding img, .ast-header-break-point .custom-logo-link img {
        max-width: 240px;
    }
}

/* hide site title of header */
.site-title {
    display: none;
}

/* disable the link of header logo */
.custom-logo-link {
    pointer-events: none;
}

/* keep scroll-padding for header */
html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(70px + var(--wp-admin--admin-bar--height, 0px));
}

/* [mobile] keep scroll-padding for header */
@media (max-width: 544px) {
    html {
        scroll-padding-top: calc(57px + var(--wp-admin--admin-bar--height, 0px));
    }
}

/* [desktop] height of menu items */
.ast-desktop .ast-primary-header-bar .main-header-menu > .menu-item {
    line-height: 1.5em;
}

/* [desktop] to separate underlines of menu items */
.ast-desktop .main-header-menu .menu-link {
    padding: 0 6px;
    margin: 0 6px;    
}

/* to show boundry of mobile menu */
.ast-builder-menu-mobile .main-navigation {
    border-bottom: solid 5px #ffffff;
}

/* to move desktop menu to the right */
#masthead .ast-primary-header-bar .site-primary-header-wrap {
    padding-right: 0;
}

/* to move scroll-to-top button to the right bottom */
.ast-scroll-to-top-right {
    right: 15px;
    bottom: 15px;
}

/***********************************************************
* theme colors
***********************************************************/
/* color of home */
.ast-desktop .pfn-nav-item:nth-child(1) > a {
    border-bottom: solid 5px #ffadad;
}
.pfn-section-home,
.ast-builder-menu-mobile .main-navigation .main-header-menu .pfn-nav-item:nth-child(1) > a {
    background-color: #ffadad;
}

/* color of school */
.ast-desktop .pfn-nav-item:nth-child(2) > a {
    border-bottom: solid 5px #ffd6a5;
}
.pfn-section-school,
.ast-builder-menu-mobile .main-navigation .main-header-menu .pfn-nav-item:nth-child(2) > a {
    background-color: #ffd6a5;
}

/* color of trial */
.ast-desktop .pfn-nav-item:nth-child(3) > a {
    border-bottom: solid 5px #fcff93;
}
.pfn-section-trial,
.ast-builder-menu-mobile .main-navigation .main-header-menu .pfn-nav-item:nth-child(3) > a {
    background-color: #fcff93;
}

/* color of price */
.ast-desktop .pfn-nav-item:nth-child(4) > a {
    border-bottom: solid 5px #caffbf;
}
.pfn-section-price,
.ast-builder-menu-mobile .main-navigation .main-header-menu .pfn-nav-item:nth-child(4) > a {
    background-color: #caffbf;
}

/* color of teacher */
.ast-desktop .pfn-nav-item:nth-child(5) > a {
    border-bottom: solid 5px #9bf6ff;
}
.pfn-section-teacher,
.ast-builder-menu-mobile .main-navigation .main-header-menu .pfn-nav-item:nth-child(5) > a {
    background-color: #9bf6ff;
}

/* color of access */
.ast-desktop .pfn-nav-item:nth-child(6) > a {
    border-bottom: solid 5px #a0c4ff;
}
.pfn-section-access,
.ast-builder-menu-mobile .main-navigation .main-header-menu .pfn-nav-item:nth-child(6) > a {
    background-color: #a0c4ff;
}

/* color of contact */
.ast-desktop .pfn-nav-item:nth-child(7) > a {
    border-bottom: solid 5px #bdb2ff;
}
.pfn-section-contact,
.ast-builder-menu-mobile .main-navigation .main-header-menu .pfn-nav-item:nth-child(7) > a {
    background-color: #bdb2ff;
}

/***********************************************************
* main section
***********************************************************/
/* delete margin-bottom of column for single column layout */
@media (max-width: 544px) {
    .wp-block-columns .wp-block-column:not(:last-child) {
        margin-bottom: 0;
    }
}

/* to delete padding of main section */
.ast-single-post.ast-page-builder-template .site-main > article {
    padding-left: 0px;
    padding-right: 0px;
    padding-top: 0;
}

/***********************************************************
* article
***********************************************************/
.pfn-block-article {
    border: solid 2px #ffffff;
    padding: 20px;
}

.pfn-block-article-white {
    border-top-left-radius: 15px;
    border-bottom-right-radius: 15px;
    background-color: #ffffff;
}

.pfn-block-article-no-color{
    border-top-right-radius: 15px;
    border-bottom-left-radius: 15px;
}

.pfn-block-article .wp-block-columns>.pfn-block-article-column-left {
    flex-basis: 15%;
}

.pfn-block-article-column-left img {
    object-fit: contain;
    width: 45px;
    height: 45px;
}

.pfn-block-article .wp-block-columns>.pfn-block-article-column-right {
    flex-basis: 85%;
    align-self: center;
}

.pfn-block-article .wp-block-columns {
    margin-block-start: 0;
}

.pfn-block-article .wp-block-columns .wp-block-column:not(:last-child) {
    margin: 0;
}


/***********************************************************
* form
***********************************************************/
.wpcf7 form .wpcf7-response-output {
    margin: 2em 0.5em 1em;
    padding: 1em;
    border: none;
    font-weight: bold;
}

.wpcf7 form.init .wpcf7-response-output {
    display: none;
}

.wpcf7 form.sent .wpcf7-response-output {
    color: #46b450; /* Green */
    background:#ccffcc;
    border:2px solid #46b450;
}

.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output,
.wpcf7 form.spam .wpcf7-response-output,
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output {
    color: #dc3232; /* Red */
    background:#ffebe8;
    border:2px solid #dc3232; 
}

.wpcf7 form label {
    font-weight: bold;
}

.wpcf7 form label.required::after {
    content: "必須";
    color: #ffffff; /* Red */
    font-weight: normal;
    background-color: #dc3232; /* Red */
    margin: 0 5px;
    padding: 2px;
    font-size: 0.6em;
    vertical-align: top;
    border-radius: 4px;
}

.wpcf7 .wpcf7-not-valid-tip{
    box-sizing: border-box;
    border-radius: 5px;
    background-color: #e50031;
    color: #ffffff;
    display: block;
    font-size: 14px;
    font-weight: bold;
    margin-top: 10px;
    padding: 5px;
    position: relative;
}

.wpcf7 .wpcf7-not-valid-tip::before{
    content: "";
    border: 10px solid transparent;
    border-bottom: 15px solid #e50031;
    position: absolute;
    top: -25px;
    left: 5%;
}


.wpcf7 form.sent .pfn-form,
.wpcf7 .pfn-form-completed {
    display: none;
}

.wpcf7 form.sent .pfn-form-completed {
    display: block;
}

.wpcf7 .pfn-form-button {
    text-align: center;
}
.wpcf7 .pfn-form-button>p {
    margin: 0;
}
.wpcf7 .pfn-form-button .wpcf7-submit {
    width: 50%;
    margin-left: 48px;
}

/*  */
@media (max-width: 544px) {
    .wpcf7 span.wpcf7-list-item {
        display: block;
        padding: 5px;
    }
    .wpcf7 span.wpcf7-list-item:not(:last-child) {
        margin-bottom: 10px;
}