/* CSS Document */

/* ====== Logo ====== */

#header .logo {
    width: 23%;
    position: relative;
}
@media screen and (max-width: 600px) {
    #header .logo {
        top: -6px;
    }
}
#header .logo img {
    max-width: 173px;
    width: 100%;
    
}


/* ====== レスポンシブ対応メニュー ====== */

#global-navi {
    background:#333;
/*
    position: fixed;
    top: 0;
    right: 0px;
*/
    width: 100%;
    text-align: center;
    
    background: #FFF;
    width: 100%;
    text-align: center;
    border-top: 4px solid orange;
}

#wrapper_global_menu nav ul {
    position: relative;
}

#wrapper_global_menu nav ul li{
    display:inline-block;
    font-size: 14px;
    padding:  0;
    position: relative;
}
#wrapper_global_menu nav ul li a {
    color: #222;
    text-decoration: none;
    padding: 12px 15px;
    display: inline-block;
    transition: .3s all;
    font-weight: bold;
}

#wrapper_global_menu nav ul li a:hover {
    color: #000;
    background: #eee;
}

#wrapper_global_menu nav ul li a i {
    padding-right: 4px;
    color: #e08e0f;
}

#wrapper_global_menu nav ul li a br {
    display: none;
}

#wrapper_global_menu nav .sub-menu {
    display: none;
    position: absolute;
    top: 42px;
    z-index: 9999;
    min-width: 150px;
    box-shadow: 0 0 10px rgba(0,0,0,.1);
}

#wrapper_global_menu nav .sub-menu li {
    display: block;
}
#wrapper_global_menu nav .sub-menu li a {
    display: block;
    width: auto;
    background: #f6f6f6;
    min-width: 160px;
}


/*スマホ画面で例１のハンバーガーメニューの形にする*/
@media screen and (max-width: 600px) {
    #wrapper_global_menu nav {
        text-align: left;
        position: fixed;
        top: 0;
        right: -300px;
        width: 300px;
        height: 100%;
        padding-top: 50px;
        background:#333;
        font-size: 16px;
        box-sizing: border-box;
        z-index: 222;
    }
    #wrapper_global_menu nav ul li {
        display:block;
        padding: 0;
    }

    #wrapper_global_menu nav ul li a {
        text-decoration: none;
        color: #ddd;
        padding: 10px 20px;
        width: 100%;
    }
    
    #wrapper_global_menu nav .sub-menu li a {
        background: #444;
    }

    #wrapper_global_menu .btn-gnavi {
        position: fixed;
        top: 20px;
        right: 20px;
        width: 30px;
        height: 24px;
        z-index: 333;
        box-sizing: border-box;
        cursor: pointer;
        transition: all .4s;
    }

    #wrapper_global_menu .btn-gnavi span {
        position: absolute;
        width: 30px;
        height: 4px;
        background: #666;
        border-radius: 10px;
        transition: all .4s;
        box-shadow: 0 0 1px #fff, 0 0 1px #fff, 0 0 1px #fff, 0 0 1px #fff, 0 0 1px #fff;
    }

    #wrapper_global_menu .btn-gnavi span:nth-child(1) {
        top: 0
    }

    #wrapper_global_menu .btn-gnavi span:nth-child(2) {
        top: 10px
    }

    #wrapper_global_menu .btn-gnavi span:nth-child(3) {
        top: 20px
    }

    #wrapper_global_menu .btn-gnavi.open {
        transform: rotate(180deg)
    }

    #wrapper_global_menu .btn-gnavi.open span {
        background: #fff
    }

    #wrapper_global_menu .btn-gnavi.open span {
        width: 24px;
    }
    #wrapper_global_menu .contents section p {
        position: absolute;
        top: 50%;
        width: 30%;
        line-height: 1.4;
        font-size: 20px;
        color: #fff;
        text-shadow: 0 0 6px #666
    }

    #wrapper_global_menu .contents section:nth-child(odd) p {
        left: 10%
    }

    #wrapper_global_menu .contents section:nth-child(even) p {
        right: 10%
    }
}

/* ===== トップページのスライダー ===== */

.flexslider {
    max-width: 740px;
    width: auto;
    height: auto;
    box-shadow: 0 0 0;
    background-color: rgba(255,255,255,0);
    overflow: visible;
}

.flexslider .slides img {
    width: 100%;
    height: auto;
    box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.1);
}

/* ===== トップページ : サービス紹介 ===== */
#intro_services {
    display: flex; 
    flex-wrap: wrap;
}

#intro_services .box02 {
    margin: 0 12px 18px 0;
    float: none;
}

#intro_services .box02 img {
    width: 100%;
    height: auto;
}
@media screen and (max-width: 600px) {
    #intro_services .box02 {
        width: 100%;
        height: auto;
        margin: 10px 0;
    }
    #intro_services .box02 img {
        width: 100%;
        height: auto;
    }
}

/* ===== トップページ : Twitter ===== */
#twr {
    text-align: center;
}

#twr iframe {
    max-width: 660px !important;
    margin: 0 auto !important;
}


/* ===== トップページ : こだわり ===== */
@media screen and (max-width: 600px) {
    .resp-tabs-list li {
        width: calc(100% - 27px);
    }
}

/* ===== 画像全般 ===== */
@media screen and (max-width: 800px) {
    #wrapper img {
        max-width: 100%;
        height: auto;
    }
	iframe {
		max-width: 100%;
	}
}

/* ===== フォーム全般 ===== */
input[type="text"], textarea , select {
    margin-bottom: 10px;
    padding: 5px;
    font-size: 1em;
    border:1px solid #ddd;
    border-radius: 4px;
    background-color: #fdfdfd;
    max-width: 90%;
}

input[type="text"] {
    min-width: 200px;
}
@media screen and (max-width: 600px) {
    textarea {
        width: 100%;
    }
}
/* ===== スマホのみ電話番号リンク ===== */
@media (min-width: 600px) {
    a[href*="tel:"] {
    pointer-events: none;
    cursor: default;
    text-decoration: none;
    }
}

/* B O D Y */
body { background: #d2f7fd; }
#wrapper { padding-top: 15px; }

/* H E A D E R */
#header { border-top: 0; }
#header .head-info { display: none; }
#header .logo { float: none; margin: 0 auto; }
.head-info-contact { display: block; width: 250px; position: absolute; top: -10px; right: 0; }
.head-info-contact ul { list-style: none; }
.head-info-contact img { width: 100%; }
.head-info-contact li { width: 49%; display: inline-block; }
#header .inner { position: relative; }

/* M E N U */
#global-navi { border-top: 0 !important; }
#wrapper_global_menu nav ul { /*width: 1024px;*/ margin: 0 auto; border-top: 4px solid #bcc5ca; }
#wrapper_global_menu nav ul li a i { color: #333333 !important; }
#wrapper_global_menu nav ul li#menu-item-18857 { display: none; }

/* S I D E  B A R */
.side_news { background: #333333; border-radius: 0; }
.side_news h2, .side_news h2 .fa-large, .side_news ul li span { color: #ffffff; }
.side_news h2 { border-bottom: 0; }
.side_news ul li a { color: #ffffff; text-decoration: none !important; }
.side_news h2 i.fa-large { display: none; }
.timeline-Widget { border-radius: 0; }
.side_news ul.archives li a:before { color: #ffffff; }
.side_news ul.archives li a { color: #ffffff; }
.side_news p.info { color: #ffffff; }
.side_news ul.contacts li p { color: #ffffff; }
.side_news ul.contacts li .fa { color: #ffffff; }
#side_calendar_link a { color: #ffffff; text-decoration: none; }
#side_calendar_link a:hover { text-decoration: underline; }
#side_calendar iframe { width: 100%; height: 280px; padding: 5px; }

/* S L I D E R */
.flexslider { max-width: 100% !important; margin-bottom: 10px; }
.flexslider .slides img { border-radius: 0; }

/* C O N T E N T */
.index-line h1 { margin: 10px 0; border-bottom: solid 3px #454545; }
.box02 { width: 48%; height: auto; }
.resp-tabs-list li.resp-tab-active { background-color: #454545; }
.resp-tabs-list li { background: #bcc5ca; color: #ffffff; }
.section01 h2 em, .section01 h2 span { color: #454545; }
.section01 h2 .fa-large { color: #454545; }
.blinking{ animation:blinkingText 1.2s infinite; }
#resp-Tab { margin-bottom: 20px !important; }
.home-bottom-section { margin: 0 !important; list-style: none; }
.home-bottom-section li { width: 49%; float: left; margin-bottom: 15px !important; }
.home-bottom-section li:nth-child(even) { float: right; }
.home-bottom-section li > * { margin-bottom: 0; }
.side_weather iframe { height: 280px; }
#side_weather > div { height: 220px; overflow-y: scroll; }
.home-bottom-section-comingsoon { background: black; height: 267px; text-align: center; display: none; }
.home-bottom-section-comingsoon img { display: inline-block; margin-top: 50px; }
.home-bottom-section-comingsoon-wrapper img { display: none; }
.home-bottom-section-comingsoon-wrapper { background: url('https://miyakothailand.com/wp-content/themes/miyako3/images/rsz_big_coming_soon.jpg'); background-size: contain; background-repeat: no-repeat; background-position: center; background-color: black; height: 265px; }


@keyframes blinkingText{
    0%{     color: #ff0000;    }
    50%{    color: transparent; }
    100%{   color: #ff0000;    }
}

/* F O O T E R */
#footer .inner { max-width: 1024px; }
#footer { background: #333333; }
#footer, #footer a, #footer a:hover { color: #ffffff; }
#footer .inner>li:first-child { width: 35% !important; }
#footer .inner>li { width: 20% !important; float: left; }

@media (min-width: 320px) and (max-width: 480px) {
    /* N A V*/
    #wrapper_global_menu nav ul li a:hover i { color: #eeeeee !important; }
    #wrapper_global_menu nav ul li#menu-item-18857 { display: block; }

    /* C O N T E N T */
    #intro_services .box02 { width: 49%; margin: 0; display: inline-block; vertical-align: top !important; height: 250px !important; }
    #intro_services .box02:nth-child(odd) { float: left; }
    #intro_services .box02:nth-child(even) { float: right; }

    /* T A B S */
    .resp-tabs-list li { width: 100%; }

    /* S E C T I O N */
    .desktop_only { display: none; }
}

@media (min-width: 320px) and (max-width: 767px) {
    /* H E A D E R */
    #header .logo { margin: 0; width: 35%; }
    .head-info-contact { width: 200px; top: -10px; right: 50px; }
    .head-info-contact li { width: 48%; }
    #wrapper_global_menu .btn-gnavi { right: 10px; top: 35px; }
    
    .home-bottom-section { display: none; }
}

@media (min-width: 768px) and (max-width: 1023px) {
    /* C O N T E N T */
    /*#intro_services .box02 { margin: 0; width: 50%; }*/
    #intro_services .box02 { width: 49%; margin: 0; display: inline-block; vertical-align: top !important; /*height: 285px !important;*/ }
    #intro_services .box02:nth-child(odd) { float: left; }
    #intro_services .box02:nth-child(even) { float: right; }

    /* S E C T I O N */
    .desktop_only { display: block !important; }
    #side_calendar { display: none; }
    #side_exchange_rate { display: none; }
    #side_weather { display: none; }
    #main { width: 69%; float: left; }
    #sidebar { width: 30%; float: right; clear: none; }
}

@media (min-width: 1024px) {
    /* S E C T I O N */
    .desktop_only { display: block !important; }
    #side_calendar { display: none; }
    #side_exchange_rate { display: none; }
    #side_weather { display: none; }
}


/* ========== overwrite 2021/6/11 ============= */

@media (min-width: 1024px) {
    #header .logo {
        margin: -15px 0;
        padding: 15px 0;
        background: url(/wp-content/themes/miyako4/images/bg_companyName.jpg) 15px -24px no-repeat;
        width: 100%;
    }
}