/*
 Theme Name:   OAWeb Contents Form
 Theme URI:
 Description:  Theme for send OAWeb Contents.
 Author:       Barbwire Co., Ltd.
 Author URI:   http://example.com
 Template:     corporate-standard
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Tags:         light, dark, two-columns, right-sidebar, responsive-layout, accessibility-ready
 Text Domain:  oawebform
*/

header.site-header {
    margin-top: 66px;
}
header .header-content .site-branding {
    width: 100%;
}


header .header-content .contents-form-logo {
    display: flex;
    align-items: center;
    width: 100%;
    border-bottom: 4px solid #000;
}
header .header-content .contents-form-logo img {
    width: 210px;
    height: auto;
}
header .header-content .company-info {
    display: none;
}
#return_top {
    text-decoration: none;
}

.material-symbols-outlined {
    font-variation-settings:
            'FILL' 0,
            'wght' 400,
            'GRAD' 0,
            'opsz' 48
}

.content-area h1 {
    margin: 0;
    font-size: 2.2em;
}

.content-area .attention {
    padding: 1em 2em;
    background: #EBEDEF;
    margin-top: 1em;
    border-radius: 5px;
}

.content-area .attention h3 {
    margin-top: 0;
    text-align: center;
    color: #D62395;
}
.content-area .attention p {
    text-align: center;
}

#oaweb-form h2 {
    font-size: 1.5rem;
    color: #E74C3C;
    margin-top: 1em;
    padding: 5px 10px;
    border-color: #E74C3C;
    border-bottom-color: #943126;
    border-width: 1px 1px 5px 5px;
    border-style: solid;
}

#oaweb-form h3 {
    font-size: 1.2rem;
    color: #3498DB;
    margin-top: 20px;
    padding: 5px 10px;
    border-color: #3498DB;
    border-bottom-color: #21618C;
    border-width: 1px 1px 5px 5px;
    border-style: solid;
}

.material-icons {
    font-family: 'Material Icons';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;  /* Preferred icon size */
    display: inline-block;
    line-height: 1;
    text-transform: none;
    letter-spacing: normal;
    word-wrap: normal;
    white-space: nowrap;
    direction: ltr;

    /* Support for all WebKit browsers. */
    -webkit-font-smoothing: antialiased;
    /* Support for Safari and Chrome. */
    text-rendering: optimizeLegibility;

    /* Support for Firefox. */
    -moz-osx-font-smoothing: grayscale;

    /* Support for IE. */
    font-feature-settings: 'liga';
}
#oaweb-form .form-area-wrap {
    padding: 0 15px;
}
#oaweb-form .form-row {
    padding: 20px 0;
    border-width: 0 0 1px 0;
    border-style: dotted;
    border-color: #aaa;
}

#oaweb-form .form-label {
    margin: 0 0 10px 0;
}

#oaweb-form .address-zip {
    margin-bottom: .5em;
}
#oaweb-form .zip-1 {
    width: 50px;
}
#oaweb-form .zip-2 {
    width: 60px;
}
#oaweb-form [name="address-text-1"],
#oaweb-form [name="address-text-2"] {
    width: 300px;
}


#main {
    font-size: 16px;
    max-width: 940px;
    margin: 0 auto;
}

#form-controls-header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    background-color: #fff;
    box-shadow: 0 0 3px #000;
    width: 100%;
}

body.admin-bar #form-controls-header {
    top: 32px;
}

#form-controls-header {
    background: #34495E;
}


.form-controls {
    display: flex;
    padding: 10px 20px;
    justify-content: space-between;
}

.form-controls .form-button {
    display: inline-flex;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 3px;
    box-shadow: 2px 2px 2px #666;
    background: #fff;
    color: #333;
    font-size: 1em;
    font-weight: bold;
    padding: 12px 15px;

}
.form-controls .form-button.form-submit {
    color: #fff;
    background: #3498DB;
}
.form-controls .form-button.form-send {
    color: #fff;
    background: #F39C12;
}

.form-controls .form-button:before {
    font-family: 'Material Icons';
    font-size: 20px;
    margin-right: 5px;
    font-weight: normal;
}
.form-controls .form-button.form-send:before {
    content: '\e163';
}
.form-controls .form-button.form-submit:before {
    content: '\e161';
}

#oaweb-form .area {
    margin-top: 60px;
}
#oaweb-form .area:first-child {
    margin-top: 0;
}

#oaweb-form .note {
    background: rgba(0, 0, 0, .5);
    border-radius: 5px;
    padding: 10px;
    line-height: 1;
    font-size: .9em;
}

#oaweb-form .image-controls .note {
    max-width: 85%;
}

#oaweb-form .tooltip {
    position: relative;
    display: inline-block;
}
#oaweb-form .tooltip .tooltip-text {
    visibility: hidden;
    width: 120px;
    background-color: black;
    color: #fff;
    text-align: center;
    padding: 5px 0;
    border-radius: 6px;
    position: absolute;
    z-index: 1;
}
#oaweb-form .tooltip:hover .tooltip-text {
    visibility: visible;
    font-size:12px;
}

#oaweb-form .content-hidden-fields {
    display: none !important;
    z-index: 99;
    position: relative;
}

#oaweb-form [contenteditable="true"],
#oaweb-form .image-drop,
#oaweb-form .editable {
    border: 2px dashed #aaa;
    padding: 5px;
    position: relative;
}

#oaweb-form .image-error {
    border-color: #EF5350;
}

#oaweb-form *[contenteditable="true"]:after{
    font-family: 'Material Icons';
    content: '\e3c9';
    display: block;
    font-size: 20px;
    color: #5499C7;
    position: absolute;
    top: -5px;
    right: -1px;
}

#oaweb-form .image-drop:after {
    font-family: 'Material Icons';
    content: '\e3f4';
    display: block;
    font-size: 20px;
    color: #F5B041;
    position: absolute;
    top: -5px;
    right: -1px;
}


.image-wrap.is-set {
    background-size: cover;
}

.image-wrap img {
    width: 100%;
}

.bg-cover {
    width: 100%;
    height: 100%;
    backdrop-filter: grayscale(100%) blur(2px);
}

.underline-attention {
    background: linear-gradient(transparent 85%, #EF5350 70%);
}

#oaweb-form .form-error {
    margin: 10px 0;
    padding: 7px 7px 7px 12px;
    border-width: 2px 2px 2px 5px;
    border-style: solid;
    border-color: #EF5350;
    background: #FFEBEE;
}


#form-message {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,.5);
    z-index: 999;
    place-items: center;

}

#form-message.show {
    display: grid;
    animation: dialog-fadein 0.2s ease-in 0s forwards;
}

@keyframes dialog-fadein {
    0% {
        display: none;
        opacity: 0;
    }

    1% {
        display: grid;
        opacity: 0;
    }

    100% {
        display: grid;
        opacity: 1;
    }
}

#form-message .modal-window {
    width: 50%;
    max-width: 500px;
    height: 200px;
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 2px solid #666;
    box-shadow: 5px 5px 5px #666;
    border-radius: 5px;
    font-weight: bold;
}
#form-message .modal-window .error-message {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 30px;
    justify-content: space-between;
}
#form-message .modal-window .error-icon {
    font-size: 50px;
    color: #F1C40F;
}
#form-message .modal-window .close {
    padding: 5px 20px;
    border: 1px solid #2E86C1;
    color: #2E86C1;
    border-radius: 3px;
    cursor: pointer;
}

.image-controls {
    font-size: 16px;
    color: #fff;
    border-radius: 3px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: absolute;
    top: 10px;
    left: 10px;
    width: 95%;
    z-index: 10;
}

#oaweb-form .contents-title {
    font-size: 1.5rem;
    margin-top: 1em;
    font-weight: bold;
}

#oaweb-form label {
    margin-bottom: .5em;
}

#oaweb-form .required,
#oaweb-form .optional {
    display: flex;
    align-items: center;
}

#oaweb-form .required:before,
#oaweb-form .optional:before {
    display: grid;
    place-items: center;
    color: white;
    font-size: 14px;
    height: 26px;
    line-height: 20px;
    border-radius: 3px;
    padding: 2px 10px;
    margin-right: 10px;
}


#oaweb-form .required:before {
    content: "必須";
    background-color: #fd0c00;
}

#oaweb-form .optional:before {
    content: "任意";
    background-color: #81C784;
}


#oaweb-form .form-element-wrap {
    position: relative;
}

/*****************************
* プラン
******************************/
#plan .form-element-wrap > label {
    margin-right: 2em;
    cursor: pointer;
}


/*****************************
* スライド
******************************/
#sliders {
    display: grid;
    grid-gap: 40px;
}
#sliders .slide {
    position: relative;
    width: 100%;
    border: 1px solid #ccc;
}
#sliders .slide:not(.is-set) {
    background: url('assets/image/slider-sample.jpg') no-repeat;
}

#sliders .slide .slide-content {
    position: absolute;
    right: 10%;
    bottom: 5%;
    width: 45%;
    height: 50%;
    padding: 10px;
    font-size: 16px;
    line-height: 1.3;
    background: rgba(255,255,255,.9);
}

#sliders .slide .slide-content .slide-title {
    font-size: 21px;
    font-weight: bold;
    border: 1px solid #ccc;
}

#sliders .slide .slide-content .slide-text {
    margin-top: 10px;
    min-height: 10em;
    border: 1px solid #ccc;
}


#sliders .slide .image {
    position: relative;
    /* border: 3px solid #fff; */
    overflow: hidden;
    aspect-ratio: 1200 / 680;
}
.image.dragover {
    border: 3px solid #81C784 !important;
}

#oaweb-form *[contenteditable="true"].field-error,
.field-error {
    border-color: #EF5350 !important;
}

.image-controls .remove-image {
    display: block;
    color: red;
    background: #ddd;
    opacity: .7;
    border-radius: 3px;
    cursor: pointer;
}
.image-controls .remove-image .material-icons {
    display: block;
}
.image-controls .remove-image .tooltip-text {
    top: -5px;
    left: 30px;
}
.image-controls .remove-image .tooltip-text:before {
    content: "";
    position: absolute;
    top: 50%;
    right: 100%;
    margin-top: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent #555 transparent transparent;
}


/*****************************
* コンテンツ
******************************/

.contents-wrap {
    padding: 30px 5px;
    border: 1px solid #ccc;
}

.contents-wrap .contents-title {
    font-size: 2rem;
    width: 50%;
    margin: 0 auto 60px auto;
    text-align: center;
}

.contents-wrap .contents-sub-title {
    font-size: 1.2rem;
    margin-top: 20px;
}

.contents-wrap img {
    display: block;
}

/*****************************
* コンテンツ　タイプ１
******************************/

.contents-1-content .contents-1-body {
    display: flex;
}

.contents-1-content .contents-1-body .contents-1-image {
    width: 50%;
    flex-shrink: 0;
    position: relative;
}
.contents-1-content .image-wrap:not(.is-set) .contents-1-image {
    background: url(assets/image/contents-1-sample.jpg) no-repeat;
    background-size: cover;
}
.contents-1-content .contents-1-body .contents-1-image .image {
    width: 100%;
    aspect-ratio: 1280 / 940;
}

.contents-1-content .contents-1-body .contents-1-text-wrap {
    margin-left: 2em;
    margin-right: 2em;
    width: 100%;
}
.contents-1-content .contents-1-body .contents-1-sub-title {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 30px;
    border-bottom: 2px solid orange;
}
.contents-1-content .contents-1-body .contents-1-text {
    min-height: 150px;
}

/*****************************
* コンテンツ　タイプ２
******************************/

.contents-type-2-content .contents-type-2-body {
    display: grid;
    grid-gap: 48px;
    grid-template-columns: repeat( 3, minmax( 200px, 1fr ) ) ;
}
.contents-type-2-content .image-wrap.contents-type-2-image {
    position: relative;
}

.contents-type-2-content .image-wrap:not(.is-set).contents-type-2-image {
    background: url(assets/image/contents-2-sample.jpg) no-repeat;
    background-size: contain;
}

.contents-type-2-content .image-wrap .image {
    aspect-ratio: 928 / 648;
}


#oaweb-form .contents-type-2-content .contents-2-sub-title {
    font-weight: bold;
    position: absolute;
    margin: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    line-height: 1.3;
    width: 100%;
    text-align: center;
    padding: 10px;
    background-color: rgba(255,255,255,.8);
}

#oaweb-form .contents-type-2-content .contents-2-text-wrap {
    min-height: 10em;
    padding: 30px 5px;
    background: #FBFAF5;
}
#oaweb-form .contents-type-2-content .contents-2-text {
    min-height: 100px;
}

/*****************************
* コンテンツ　タイプ３
******************************/

.contents-3-content .contents-3-body {
    display: grid;
    grid-gap: 32px;
    grid-template-columns: repeat( 4, minmax( 200px, 1fr ) ) ;
}

.contents-3-content .image-wrap.contents-3-image {
    position: relative;
}

.contents-3-content .image-wrap:not(.is-set).contents-3-image {
    background: url(assets/image/contents-3-sample.jpg) no-repeat;
    background-size: contain;
}

.contents-3-content .image-wrap .image {
    aspect-ratio: 1 / 1;
}

#oaweb-form .contents-3-content .contents-3-sub-title-wrap {
    position: absolute;
    bottom: 20px;
    width: 100%;
    padding: 0 10px;
}
#oaweb-form .contents-3-content .contents-3-sub-title {
    font-size: 1rem;
    line-height: 1.3;
    text-align: center;
    padding: 10px;
    background-color: rgba(255,255,255,.6);
    margin: 0;
    font-weight: bold;
}

/*****************************
* コンテンツ　タイプ４
******************************/

.contents-4-content .contents-4-body {
    display: flex;
}

.contents-4-content .contents-4-body .contents-4-image {
    width: 50%;
    flex-shrink: 0;
}
.contents-4-content .image-wrap:not(.is-set) .contents-4-image {
    background: url(assets/image/contents-1-sample.jpg) no-repeat;
    background-size: cover;
}
.contents-4-content .contents-4-body .contents-4-image .image {
    width: 100%;
    aspect-ratio: 1280 / 940;
}

.contents-4-content .contents-4-body .contents-4-text-wrap {
    margin-left: 2em;
    margin-right: 2em;
}


/*****************************
* 診療時間
******************************/

.contents-opening-hours-content table td {
    padding: 2px;
    font-size: .9em;
}

.contents-opening-hours-content table.opening-hours td:first-child {
    width: 100%;
}