/*
Theme Name: Jisa Navi
*/

a:hover {
    opacity: .5;
}

/*================================================================================================================================
 ヘッダー
================================================================================================================================*/
#masthead .container,
#breadcrumbs .container--contents,
#main .container--contents {
    max-width: 1200px;
    width: 100%;
    padding: 0 16px;
}

.site-header {
    background-color: #000;
    color: #fdff;
}
.site-title {
    height: 50px;
    width: 200px;
}
.global__menu a {
    color: #fff;
}
.drawer-menu-button svg {
    fill: #fff;
}

.breadcrumbs {
    margin: 5px 0;
}
.breadcrumbs__list {
    padding: 5px 0 !important;
}
.breadcrumbs__list {
    margin: 0;
    overflow: hidden;
    color: var(--breadcrumbs-text);
    font-size: .75em;
    line-height: 1;
    list-style: none;
    text-overflow: ellipsis;
    white-space: nowrap
}
.breadcrumbs__list a {
    color: #62a1ff;
    font-weight: bold;
    text-decoration: none
}
.breadcrumbs__item {
    display: inline;
    margin-left: .5em
}
.breadcrumbs__item:before {
    margin-right: .5em;
    content: ">"
}
.breadcrumbs__item:first-child {
    margin-left: 0
}
.breadcrumbs__item:first-child:before {
    display: none
}

@media (max-width: 768px) {
  #masthead .container,
  #breadcrumbs .container--contents,
  #main .container--contents {
    padding: 0 .5rem;
  }
}

/*================================================================================================================================
 ドロワーメニュー
================================================================================================================================*/
.drawer-menu__header {
  margin-top: 5px;
}
#drawer-menu {
    background-color: #000;
}
#drawer-menu__menu {
    list-style: none;
    padding: 0;
}
#drawer-menu__menu li {
    border-bottom: 1px solid #fff;
}
#drawer-menu__menu a {
    box-sizing: border-box;
    color: #fff;
    display: block;
    padding: 10px;
    position: relative;
    text-decoration: none;
}
#drawer-menu__menu a:after {
    content: "";
    display: block;
    width: 8px;
    height: 8px;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
    transform: rotate(45deg);
    position: absolute;
    right: 15px;
    top: 50%;
    margin-top: -5px;
}

/*================================================================================================================================
 single-city.php
================================================================================================================================*/
/* 時差比較タイトル */
.city-infobar-title-frame {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 30px auto 0;
    padding: 0 .5rem;
}
.city-infobar-title-box {
    width: 50%;
}
.city-infobar-title-box h2 {
    font-size: 28px;
    text-align: center;
}
.city-info-title-country {
    font-size: 16px;
    font-weight: 400;
}
.city-info-title-en {
    font-size: 14px;
    font-weight: 400;
    text-align: center;
}

/* 時差比較メインエリア */
.city-infobar {
}
.city-infobar-inner {
    max-width: 1200px;
    margin: 10px auto;
    padding: 0 1rem;
    box-sizing: border-box;
}
.city-infobar-frame {
    display: flex;
    justify-content: center;
    gap: 20px;
}
.city-infobar-left,
.city-infobar-right {
    border-radius: 25px;
    flex: 1;
    max-width: 600px;
    padding: 2rem;
    color: #fff;
}
.city-infobar.bg-morning,
.bg-morning {
    background-image: linear-gradient(235deg, #fbc8d4 0%, #331b9b 100%);
}
.city-infobar.bg-daytime,
.bg-daytime {
    background-image: linear-gradient(235deg, #62beff 0%, #62a1ff 100%);
}
.city-infobar.bg-evening,
.bg-evening {
    background-image: linear-gradient(235deg, #ffb2ac 0%, #62a1ff 100%);
}
.city-infobar.bg-night,
.bg-night {
    background-image: linear-gradient(235deg, #6966ee 0%, #331b9b 100%);
}

.city-info-analog {
    display: block;
    margin: 0 auto;
}
.city-info-digital {
    font-size: 100px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
}
.city-info-date {
    font-size: 16px;
    font-weight: 400;
    text-align: center;
}
.city-info-tz {
    font-size: 16px;
    font-weight: 400;
    text-align: center;
}
.city-info-st {
    font-weight: 900;
}

/* アナログ時計 */
.clock {
    margin: 0 auto;
    max-width: 300px;
    position: relative;
    width: 100%;
}
.clock-face {
    display: block;
    width: 100%;
    height: 100%;
}
.clock-hand {
    position: absolute;
    top: 50%;
    left: 50%;
    transform-origin: 50% 100%;
    transform: translate(-50%, -100%) rotate(0deg);
}
.hour-hand {
    width: 8px;
}
.minute-hand {
    width: 8px;
}
.second-hand {
    width: 2px;
}

.city-info-difference-frame {
    margin: 50px 0 80px;
    text-align: center;
}
.city-info-difference-title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    font-weight: 900;
    line-height: 1;
}
.city-info-difference-title img {
    width: 80px;
}


/* -------------------------------------------------------- */
.sub-block {
    display: flex;
    max-width: 1200px;
    margin: 50px auto;
}
.sub-block {
    display: flex;
}
.city-time,.city-center {
    order: 2;
    width: calc(100% - 600px);
}
.city-center .city-time {
    width: 100%;
}
.sidebar-l {
    order: 1;
    width: 300px;
}
.sidebar-r {
    order: 3;
    position: relative;
    width: 300px;
}
/* 1時間ごとの比較表 */
.city-time-frame {
    margin: 0 auto;
    width: 100%;
}
.city-time-box {
    display: flex;
    margin: 0 auto;
    width: 100%;
}
.city-time-item {
    background-color: #62beff;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    margin: 0 1px 2px;
    padding: 8px 10px;
    width: 100%;
}
.city-time-1day {
    background-color: #fff;
    border-radius: 5px;
    color: #111;
    font-size: 12px;
    line-height: 1;
    margin-left: 10px;
    padding: 2px 5px;
}
.bg-title {
    background-color: #000;
    color: #fff;
    font-size: 18px;
}

/* サマータイム */
.city-dst-info {
    border: 5px solid #eee;
    border-radius: 5px 5px 0 0;
    margin: 20px 0;
}
.city-dst-info h3 {
    background-color: #eee;
    padding: 3px 10px 8px;
}
.dst-frame {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    padding: 10px;
}
.dst-img {
    width: 120px;
}
.dst-img img {
    display: block;
}
.dst-period {
    width: calc(100% - 120px);
}
.dst-status {
    font-size: 18px;
    font-weight: 900;
}
.dst-start,
.dst-end {
    font-size: 18px;
}
.dst-start {
    margin-bottom: 5px;
}
.dst-start-title,
.dst-end-title {
    background-color: #000;
    color: #fff;
    font-size: 14px;
    font-weight: 900;
    margin-right: 5px;
    padding: 5px;
}

/* アフィリエイト */
.city-affiliate-travel,
.city-affiliate-activity {
    border: 5px solid #ffe96d;
    border-radius: 5px 5px 0 0;
    margin: 20px 0;
}
.city-affiliate-travel h3,
.city-affiliate-activity h3 {
    background-color: #ffe96d;
    padding: 3px 10px 8px;
}
.city-affiliate-travel {
    margin-bottom: 20px;
}
.city-affiliate-frame {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    padding: 10px;
}
.city-affiliate-img {
    width: 120px;
}
.city-affiliate-img img {
    display: block;
}
.city-affiliate-txt {
    width: calc(100% - 120px);
}
.city-affiliate-txt ul {
    list-style: none;
    padding: 0;
}
.city-affiliate-txt li a {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 25px;
    display: block;
    font-weight: 300;
    margin: 6px;
    padding: 6px 22px;
    text-decoration: none;
}

/* 左サイドバー */
.sidebar-link-box ul {
    list-style: none;
    padding-left: 0;
}
.sidebar-link-box li:first-child {
    border-top: 1px solid #eee;
}
.sidebar-link-box li {
    border-bottom: 1px solid #eee;
}
.sidebar-link-box a {
    display: block;
    padding: 5px;
    text-decoration: none;
}

/* 右サイドバー */
.sidebar-search {
    position: sticky;
    top: 10px;
}
.sidebar-l h2,
.sidebar-r h2 {
    background-color: #000;
    color: #fff;
    font-size: 18px;
    padding: 5px 10px;
}
.sidebar-search .time-diff-search {
    border-right: 1px solid #eee;
    border-bottom: 1px solid #eee;
    border-left: 1px solid #eee;
    padding-bottom: 0;
}
@media (max-width: 1024px) {
    .city-info-digital {
        font-size: 70px;
    }
}
@media (max-width: 1023px) {
    .city-time {
        width: calc(100% - 460px);
    }
    .sidebar-l {
        width: 160px;
    }
}
@media (max-width: 768px) {
    .city-infobar-inner {
        margin: 0;
        padding: .5rem;
    }
    .city-infobar-frame {
        gap: 5px;
    }
    .city-infobar-left,
    .city-infobar-right {
        padding: 1rem .5rem;
        width: 50%;
    }
    .city-infobar h2 {
        font-size: 20px;
        line-height: 1.1;
    }
    .city-info-title-country {
        font-size: 15px;
    }
    .city-info-title-en {
      margin-top: 10px;
    }
    .city-info-tz {
        font-size: 16px;
    }
    .hour-hand {
        width: 4px;
    }
    .minute-hand {
        width: 4px;
    }
    .second-hand {
        width: 1px;
    }
    .city-info-digital {
        font-size: 9.5vw;
    }
    .city-info-difference-frame {
        margin: 10px auto;
    }
    .city-info-difference-title {
        font-size: 36px;
    }
  
    .dst-img {
        width: 80px;
    }
    .dst-period {
        width: calc(100% - 80px);
    }

    .sub-block {
        display: block;
    }
    .city-time,city-center {
        width: 100%;
    }
    .sidebar-l {
        width: 100%;
    }
    .sidebar-r {
        width: 100%;
    }
    .sidebar-l h2,
    .sidebar-r h2 {
        padding: 5px .5rem;
    }
    .sidebar-link-box a {
      font-size: 17px;
      padding: 12px .5rem;
      text-decoration: underline;
    }
}

/*================================================================================================================================
 トップページ
================================================================================================================================*/
/* ヒーローセクション */
.top-eyecatch-frame {
    background-image: url("./images/top-eyecatch.jpg");
    background-position: center top;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 50vh;
    position: relative;
    width: 100%;
    z-index: 2;
}
.top-eyecatch-frame::before {
    content: '';
    background-color: rgba(0,0,0,.3);
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}
.top-search-frame {
    position: relative;
    z-index: 3;
}
.top-search-inner {
    background-color: #fff;
    border-radius: 10px 10px 0 0;
    display: flex;
    justify-content: center;
    margin: 0 auto;
    max-width: 600px;
    padding: 10px 30px 0;
    position: relative;
    width: 100%;
}
.top-search-icon {
    position: absolute;
    top: 50px;
    right: 0;
}
.top-search-icon img {
    width: 160px;
}
.time-diff-search {
    padding: 15px;
}
.time-diff-search input[type=text] {
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: inset 0 0 1px rgba(0, 0, 0, 0.2);
    color: #666;
    font-size: 14px;
    padding: 10px;
    vertical-align: bottom;
    width: 270px;
    -webkit-appearance: none;
}
.time-diff-search__field {
    margin: 0 0 15px;
}
.time-diff-search__button {
    background-color: #62a1ff;
    border: 1px solid #62a1ff;
    border-radius: 25px;
    color: #fff;
    cursor: pointer;
    display: table-cell;
    font-size:18px;
    font-weight: bold;
    line-height: 1.4;
    margin: 20px auto;
    padding: 15px 10px 13px;
    text-decoration: none;
    text-align: center;
    -webkit-appearance: none;
    width: 100%;
}
.time-diff-search__button:hover {
    opacity: .7;
}

/* トップページのコンテンツ共通 */
.top-section {
    padding: 80px 0;
}
.top-section h2 {
    color: #000;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    font-size: 48px;
    font-weight: 900;
    margin: 10px 10px 20px;
}
.top-section h2 img {
    width: 80px;
}

/* トップページの時間 */
.top-city-frame {
    display: flex;
    flex-wrap: wrap;
    margin: 10px 0 10px 10px;
    gap: 10px;
}
.top-city-box {
    border-radius: 8px;
    color: #fff;
    width: calc(50% - 10px);
}
.top-city-box a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 10px;
    text-decoration: none;
}
.top-city-box h3 {
    font-size: 24px;
    width: calc(100% - 130px);
}
.top-city-item {
    margin-left: 10px;
    width: 120px;
}
.top-city-time {
    font-size: 28px;
    font-weight: bold;
}
.top-city-date {
    font-size: 14px;
}

/* トップページのコラム */
#top-column {
    background-image: linear-gradient(-45deg, #eccaca 0%, #62A1FE 100%);
}
#top-column h2 {
    color: #fff;
}
.top-column-frame {
    display: flex;
    flex-wrap: wrap;
}
.top-column-box {
    box-sizing: border-box;
    padding: 10px;
    position: relative;
    width: 25%;
}
.top-column-box a {
    background-color: #fff;
    border-radius: 10px;
    display: block;
    text-decoration: none;
}
.top-column-box h3 {
    padding: 10px;
}
.top-column-img img {
    border-radius: 10px 10px 0 0;
}
@media (max-width: 767px) {
    .top-search-inner {
        border-radius: 0;
    }
    .top-search-icon {
        display: none;
    }
    .top-section h2 {
        margin: 10px 0 20px;
    }
    #top-city h2 {
        font-size: 28px;
    }
    .top-section h2 img {
        width: 60px;
    }
    .top-section-h2-txt {
        width: calc(100% - 60px);
    }

    .top-city-frame {
        margin: 10px;
    }
    .top-city-box {
        border-radius: 8px;
        width: 100%;
    }

    .top-column-frame {
        display: block;
    }
    .top-column-box {
        width: 100%;
    }
    .top-column-box a {
        display: flex;
        flex-wrap: wrap;
    }
    .top-column-img {
        width: 120px;
    }
    .top-column-img img {
        border-radius: 0;
        margin-bottom: 0;
    }
    .top-column-text {
        font-size: 14px;
        padding-left: 10px;
        width: calc( 100% - 120px );
    }
  
    .time-diff-search input[type=text] {
        width: 100%;
        padding: 10px .5rem;
    }
    .time-diff-search {
        padding: 15px .5rem;
    }
}


/*================================================================================================================================
 アーカイブページ
================================================================================================================================*/
.archive-h1 {
    margin: 10px 0 0;
}
.archive-frame {
    border-left: 1px solid #ccc;
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 20px 0;
    padding: 0;
}
.archive-frame li {
    border-right: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    box-sizing: border-box;
    display: inline-block;
    width: 25%;
}
.archive-frame li:nth-child(1),
.archive-frame li:nth-child(2),
.archive-frame li:nth-child(3),
.archive-frame li:nth-child(4) {
    border-top: 1px solid #ccc;
}
.archive-frame li:nth-child(8n),
.archive-frame li:nth-child(8n-1),
.archive-frame li:nth-child(8n-2),
.archive-frame li:nth-child(8n-3) {
    background: #f1f3f7;
}
.archive-frame li a {
    display: block;
    font-size: 17px;
    padding: 10px;
    text-decoration: none;
}
.pagination {
    margin: 20px 0;
}
.timezone-groups h2 {
  margin-bottom: 15px;
}
@media (max-width: 767px) {
    .archive-frame li {
        width: 50%;
    }
    .archive-frame li:nth-child(3),
    .archive-frame li:nth-child(4) {
        border-top: 0;
    }
    .archive-frame li:nth-child(8n),
    .archive-frame li:nth-child(8n-1),
    .archive-frame li:nth-child(8n-2),
    .archive-frame li:nth-child(8n-3) {
        background: #fff;
    }
    .archive-frame li:nth-child(4n),
    .archive-frame li:nth-child(4n-1) {
        background: #f1f3f7;
    }
}

/*================================================================================================================================
 固定ページ
================================================================================================================================*/
.page-container--contents {
    margin: 20px auto;
    width: var(--theme--container--contents-width);
}

/* 国の一覧 */
.cpt-list {
  border-left: 1px solid #ddd;
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  font-size: 0;
  margin: 0 auto 30px;
}
.cpt-list li {
  border-right: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  box-sizing: border-box;
  display: inline-block;
  font-size: 15px;
  width: 33.333%;
}
.cpt-list li:nth-child(1),
.cpt-list li:nth-child(2),
.cpt-list li:nth-child(3) {
  border-top: 1px solid #ddd;
}
.cpt-list li:nth-child(6n),
.cpt-list li:nth-child(6n-1),
.cpt-list li:nth-child(6n-2) {
  background: #fafafa;
}
.cpt-list li a {
  display: block;
  padding: 10px;
}
/* 都市の一覧 */
.cpt-table-frame {
  margin: 10px auto 30px;
}
.cpt-table-frame table {
  border-collapse: collapse;
  width: 100%;
}
.cpt-table-frame tr th:nth-child(3),
.cpt-table-frame tr td:nth-child(3) {
  width: 130px;
}
.cpt-table-frame tr th:nth-child(4),
.cpt-table-frame tr td:nth-child(4) {
  width: 100px;
}
.cpt-table-frame th {
  background-color: #000;
  border: 1px solid rgba(221,221,221,1);
  color: #fff;
  font-size: 14px;
  padding: 10px;
  text-align: left;
}
.cpt-table-frame td {
  border: 1px solid rgba(221,221,221,1);
  font-size: 14px;
  padding: 10px;
}
.cpt-table-frame tr:nth-child(2n+1) {
  background-color: rgba(180,180,180,0.05);
}
.cpt-table-frame a {
  display: block;
}

/*　都市と国の一覧　ボタンデザインver */
/*
.cpt-list {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
}
.cpt-list__item a {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 25px;
  display: block;
  font-weight: 300;
  margin: 6px;
  padding: 6px 22px;
  text-decoration: none;
}
*/
@media (max-width: 500px) {
  /* 国の一覧 */
  .cpt-list li {
    width: 50%;
  }
  .cpt-list li:nth-child(1),
  .cpt-list li:nth-child(2),
  .cpt-list li:nth-child(3) {
    border-top: 0;
  }
  .cpt-list li:nth-child(6n),
  .cpt-list li:nth-child(6n-1),
  .cpt-list li:nth-child(6n-2) {
    background: #fff;
  }
  .cpt-list li:nth-child(1),
  .cpt-list li:nth-child(2) {
    border-top: 1px solid #ddd;
  }
  .cpt-list li:nth-child(4n),
  .cpt-list li:nth-child(4n-1) {
    background: #fafafa;
  }
  
  
  /* 都市の一覧 */
  .cpt-table-frame {
    background: linear-gradient(to left, rgba(255, 255, 255, 0), rgba(0, 0, 0, 0.2)) 0 0/20px 100%, linear-gradient(to right, rgba(255, 255, 255, 0), rgba(0, 0, 0, 0.2)) right/20px 100%;
    background-repeat: no-repeat;
    background-attachment: scroll;
    margin: 10px auto 30px;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
  }
  .cpt-table-frame table {
    background: linear-gradient(to left, rgba(255, 255, 255, 0), white 15px) 0 0/50px 100%, linear-gradient(to right, rgba(255, 255, 255, 0), white 15px) right/50px 100%;
    background-repeat: no-repeat;
    background-attachment: local;
    margin: 0;
  }

}


/*================================================================================================================================
 フッター
================================================================================================================================*/
.site-footer {
    background-color: #000;
    padding: 20px;
}
.site-footer ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    list-style: none;
    min-height: 200px;
    padding: 0;
}
.site-footer li {
    margin-right: 10px;
}
.site-footer a {
    color: #fff;
}
.footer-copy {
    color: #fff;
    text-align: center;
}
.footer-copy a {
    text-decoration: none;
}
@media (max-width: 767px) {
    .site-footer li {
        width: 100%;
    }
}
