/* ============================== */
/* 基本設定・リセット */
/* ============================== */
html,
body {
  height: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  overflow-y: scroll !important;
  overflow-x: hidden !important;
}

body {
  font-family: "Kosugi Maru", "Meiryo", "Arial", sans-serif;
  background-color: #fff;
  color: #707070;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* ============================== */
/* 基本要素 */
/* ============================== */
a,
a:visited,
a:link {
  color: #01b0cb;
  text-decoration: underline;
  transition: color 0.2s;
}
a:hover,
a:active {
  color: #009cae;
  text-decoration: underline;
}

.wp-block-group.has-global-padding {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* ============================== */
/* 全体レイアウト */
/* ============================== */
.wrapper {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
  padding-top: 80px;
  padding-bottom: 40px;
  flex: 1 0 auto;
  display: block;
}

/* ============================== */
/* ヘッダー関連 */
/* ============================== */
.header {
  width: 100%;
  background: #d3d3d3;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: bold;
  font-size: 18px;
  box-sizing: border-box;
}
.header .login {
  font-size: 14px;
  font-weight: normal;
}

#main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.8);
  padding: 15px 25px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  z-index: 1000;
}

.site-title {
  display: flex;
  align-items: center;
}
.site-title a {
  font-size: 24px;
  font-weight: bold;
  color: #707070;
  text-decoration: none;
}
.site-title .sub-title {
  font-size: 12px;
  color: #707070;
  margin-left: 10px;
}

.header-buttons {
  display: flex;
  gap: 10px;
  align-items: center;
}

.h-btn {
  display: inline-block;
  padding: 8px 15px;
  font-size: 14px;
  font-weight: bold;
  text-decoration: none !important;
  border-radius: 5px;
}
.h-btn-primary {
  background-color: #01b0cb !important;
  color: #fff !important;
}
.h-btn-primary:hover {
  background-color: #009cae !important;
}
.h-btn-secondary {
  background-color: #fff !important;
  color: #707070 !important;
  border: 1px solid #707070 !important;
}
.h-btn-secondary:hover {
  background-color: #e7e7e7 !important;
}

/* ============================== */
/* サイドバー関連 */
/* ============================== */
.side {
  flex: 0 0 220px;
  /* padding: 20px; */
  padding-right: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 160px;
  background-color: white;
  border-right: 1px solid #cccccc;
}
.side label {
  /* margin-bottom: 12px;
  font-size: 16px; */
  width: 100%;
  background: #01b0cb;
  color: #fff;
  padding: 8px 20px;
  font-weight: bold;
  font-size: 17px;
  box-sizing: border-box;
  border-radius: 5px;
  margin: 0 auto;
  max-width: 1200px;
  margin-bottom: 14px;
}

/* サイドバー内のリンク色・下線設定 */
.side .country-list a,
.side .city-list a {
  color: inherit !important;
  text-decoration: none !important;
  background: none;
  box-shadow: none;
  transition: color 0.2s;
}
.side .country-list a:hover,
.side .city-list a:hover {
  color: #01b0cb !important;
  text-decoration: none !important;
  background: none;
  box-shadow: none;
}

/* 国リスト */
.country-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  padding-left: 20px;
}

.country-btn {
  padding: 0;
  background: none;
  color: #707070 !important;
  border: none;
  border-radius: 0;
  font-size: 16px;
  text-align: left;
  font-weight: bold;
  cursor: pointer;
  margin-bottom: 0px;
  transition: none;
  text-decoration: none;
  display: flex;
  align-items: center;
}
.country-btn:hover {
  background: none;
  text-decoration: underline;
}

/* 都市リスト */
.city-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.country-list li,
.city-list li {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.country-list .city-list {
  padding-left: 35px;
  gap: 14px;
}
.country-list .city-list .city-list {
  padding-left: 20px;
  gap: 14px;
}

/* 日本地図モーダル */
#japan-map-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  z-index: 9999;
}

#japan-map-modal .modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  padding: 24px 20px 20px 20px;
  border-radius: 10px;
  max-width: 700px;
  width: 90vw;
  max-height: 560px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

#japan-map-modal .close-modal-btn {
  position: absolute;
  top: 10px;
  left: 10px;
  background: transparent;
  border: none;
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
  color: #707070;
  display: flex;
  align-items: center;
  gap: 4px;
}

#japan-map-modal .close-label {
  font-size: 14px;
  color: #aaa;
  margin-left: 4px;
  font-weight: normal;
  letter-spacing: 0.05em;
  position: relative;
  top: 1px;
  line-height: 1;
}

.japan-map-interactive {
  position: relative;
  width: 100%;
}

.japan-map-interactive img {
  display: block;
  width: 100%;
  aspect-ratio: 580 / 430;
  max-width: 580px;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
}

.region-marker {
  position: absolute;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, #01b0cb 0%, #009cae 100%);
  color: #fff !important;
  font-size: 14px;
  font-weight: bold;
  text-decoration: none !important;
  white-space: nowrap;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  box-shadow: 0 1px 8px rgba(1, 176, 203, 0.12);
  border: 2px solid #fff;
}

.region-marker:hover {
  background: linear-gradient(135deg, #009cae 0%, #01b0cb 100%);
}

/* マーカー位置サンプル（調整してOK） */
.region-marker[data-region="hokkaido"] {
  top: 17%;
  left: 71%;
}

.region-marker[data-region="tokyo"] {
  top: 61%;
  left: 78%;
}

.region-marker[data-region="osaka"] {
  top: 72%;
  left: 56%;
}

.region-marker[data-region="kyoto"] {
  top: 63%;
  left: 57%;
}

.region-marker[data-region="nara"] {
  top: 71%;
  left: 63%;
}

/* ============================== */
/* メインコンテンツ関連 */
/* ============================== */
.main-content {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 20px;
  margin: 32px auto 0 auto;
  max-width: 1200px;
  align-items: stretch;
}

.main-area {
  margin: 16px auto 0 auto;
  display: flex;
  flex-direction: row;
  gap: 3%;
  padding: 0 20px;
  max-width: 1200px;
}

.vline {
  width: 2px;
  margin-right: 18px;
  min-height: 80%;
  height: auto;
}

.spots-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0 20px;
}

.right-content {
  flex: 1;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  /* padding: 0 20px; */
  max-width: 1200px;
}

/* ============================== */
/* スポット関連 */
/* ============================== */
.spot-title {
  width: 100%;
  background: #01b0cb;
  color: #fff;
  padding: 8px 20px;
  font-weight: bold;
  font-size: 17px;
  box-sizing: border-box;
  border-radius: 5px;
  margin: 0 auto;
  max-width: 1200px;
  margin-bottom: 14px;
}

.spot-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  padding-left: 20px;
}
.spot-list a {
  text-decoration: none !important;
  color: inherit !important;
  font-size: 16px;
  font-weight: bold;
}
.spot-list a:hover {
  color: #009cae !important;
  text-decoration: underline;
}

/* ============================== */
/* 国名見出しと国旗アイコン */
/* ============================== */
.country-heading {
  display: flex;
  align-items: center;
  margin-bottom: 14px;
  font-size: 18px;
  font-weight: bold;
}
.country-heading img {
  width: 30px;
  height: auto;
  margin-right: 10px;
}

.country-flag {
  height: 1.2em;
  width: auto;
  margin-right: 8px;
  vertical-align: middle;
}

.country-flag-emoji {
  font-size: 1.2em;
  vertical-align: middle;
  margin-right: 4px;
}

/* ============================== */
/* 住所・マップ関連 */
/* ============================== */
.address-map-area {
  display: flex;
  flex-direction: row;
  gap: 2%;
  min-height: 160px;
  width: 100%;
  padding: 0;
  box-sizing: border-box;
  margin: 16px 0 0 0;
}

.address {
  flex: 2 1 0;
  /* padding: 12px 12px 0 12px; */
  font-size: 16px;
  font-weight: normal;
  min-height: 140px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.address-label {
  width: 100%;
  background-color: #f8f9fa;
  color: #01b0cb;
  padding: 8px 20px;
  font-weight: bold;
  font-size: 18px;
  box-sizing: border-box;
  border-radius: 5px;
  margin: 0 auto;
  max-width: 1200px;
  margin-bottom: 14px;
}

.map {
  background: #d3d3d3;
  width: 600px;
  height: 300px;
  padding: 0;
  box-sizing: border-box;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: normal;
  border-radius: 5px;
}
.map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ============================== */
/* セクション関連 */
/* ============================== */

.section-content {
  width: 100%;
  min-height: 140px;
  padding: 10px 14px;
  font-size: 16px;
  margin-bottom: 12px;
  border-radius: 2px;
  box-sizing: border-box;
  display: flex;
  align-items: flex-start;
}

.section-title {
  /* margin: 18px 0 8px 0;
  font-size: 16px;
  font-weight: bold; */
  width: 100%;
  background-color: #f8f9fa;
  color: #01b0cb;
  padding: 8px 20px;
  font-weight: bold;
  font-size: 18px;
  box-sizing: border-box;
  border-radius: 5px;
  margin: 0 auto;
  max-width: 1200px;
  /* margin-bottom: 14px; */
}

.section-separator {
  height: 1px;
  background-color: #cccccc;
  margin: 20px auto;
  padding: 0 20px;
  max-width: 1200px;
}

/* ============================== */
/* メイン画像 */
/* ============================== */
.main-image {
  width: 100%;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}
.main-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 5px;
}

.top-guide-img {
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  display: block !important;
  margin: 18px auto 0;
}

/* ============================== */
/* コメント関連 */
/* ============================== */
.comments-container {
  /* margin: 32px 0 0 0; */
  margin: 0 0 0 0;
  /* padding: 20px 20px; */
  width: 100%;
  color: #707070;
  border-radius: 8px;
  box-sizing: border-box;
}

.comments-title,
.comment-reply-title {
  width: 100%;
  background-color: #f8f9fa;
  color: #01b0cb;
  padding: 8px 20px;
  font-weight: bold;
  font-size: 18px;
  box-sizing: border-box;
  border-radius: 5px;
  margin: 0 auto;
  max-width: 1200px;
  margin-bottom: 14px;
}

.comment-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
}

.comment-item {
  border-bottom: 1px solid #eee;
  padding: 15px 0;
}

.comment-meta {
  font-size: 12px;
  color: #999;
  margin-bottom: 5px;
}

.comment-author {
  font-weight: bold;
  margin-right: 10px;
}

.comment-content p {
  margin: 0 0 10px 0;
}

.comment-form {
  font-size: 14px;
}
.comment-form h3.comment-reply-title {
  font-size: 18px;
  margin-bottom: 12px;
}
.comment-form p {
  font-size: 12px;
  margin: 0 0 8px 0;
}
.comment-form label {
  display: block;
  margin-bottom: 4px;
  font-weight: bold;
  font-size: 14px;
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
  width: 100%;
  padding: 8px;
  margin-bottom: 8px;
  border: 1px solid #f8f9fa;
  box-sizing: border-box;
  font-size: 14px;
}
.comment-form input[type="submit"] {
  background-color: #01b0cb;
  color: #fff;
  padding: 8px 15px;
  border: none;
  cursor: pointer;
  border-radius: 5px;
  font-size: 14px;
}
.comment-form input[type="submit"]:hover {
  background-color: #009cae;
}

/* ============================== */
/* マガジン関連（Turn.js） */
/* ============================== */

/* .magazine-container {
  width: 95vw;
  max-width: 100%;
  height: 80vh;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  overflow: hidden;
} */

.magazine-container {
  width: 95vw;
  max-width: 100%;
  height: 80vh;
  min-height: 400px;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  margin: 0 auto;
  overflow: hidden;
}

/* #magazine {
  width: 100%;
  height: 100% !important;
  max-width: 100%;
  max-height: 100% !important;
} */

#magazine {
  width: 100% !important;
  height: 100% !important;
  margin-top: 0 !important;
  max-width: none !important;
  max-height: 100% !important;
  flex: 1;
  background-color: #f8f9fa;
  background-image: url("data:image/svg+xml,%3Csvg width='180' height='180' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cpattern id='sekaiworker-color' x='0' y='0' width='180' height='180' patternUnits='userSpaceOnUse'%3E%3Ctext x='18' y='50' transform='rotate(-45 90 90)' fill='%23007bff' fill-opacity='0.12' font-family='Arial, sans-serif' font-size='16' font-weight='bold'%3ESEKAIWORKER%3C/text%3E%3Ctext x='18' y='140' transform='rotate(-45 90 90)' fill='%2328a745' fill-opacity='0.12' font-family='Arial, sans-serif' font-size='16' font-weight='bold'%3ESEKAIWORKER%3C/text%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100%25' height='100%25' fill='url(%23sekaiworker-color)'/%3E%3C/svg%3E");
  background-repeat: repeat;
}

.category-header {
  text-align: center;
  margin: 20px 0;
  padding: 15px;
  background-color: #f8f9fa;
  border-radius: 8px;
}

.category-title {
  font-size: 20px;
  color: #01b0cb;
  margin: 0;
  font-weight: bold;
}

#magazine .turn-page {
  width: 100%;
  height: 100%;
  background-color: #fff;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  padding: 0 10px;
}

#controls {
  display: flex;
  justify-content: space-between;
  z-index: 1000;
}

#magazine .page {
  height: 100%;
  box-sizing: border-box;
  top: 0;
}

.magazine-control {
  background-color: #01b0cb;
  color: #fff;
  border: none;
  padding: 285px 10px;
  margin: 0;
  cursor: pointer;
  font-size: 24px;
  border-radius: 5px;
  /* transition: background-color 0.3s ease; */
  transition: none;
}
.magazine-control:hover {
  background-color: #009cae;
}

/* .magazine-control.disabled {
  background: #ccc !important;
  color: #fff !important;
  cursor: not-allowed !important;
  pointer-events: none;
  opacity: 0.7;
}

#prev.disabled,
#next.disabled {
  background: #ccc !important;
  color: #fff !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
  opacity: 0.7 !important;
  border: none !important;
} */

.magazine-control.disabled {
  background: #ccc !important;
  color: #fff !important;
  cursor: not-allowed !important;
  pointer-events: none;
  opacity: 0.7;
}

/* ページ設定 */
.page {
  width: 100%;
  height: 100%;
  background-color: #fffef5;
  box-sizing: border-box;
  user-select: none;
  cursor: grab;
  display: flex;
  flex-direction: column;
}

.post-wrapper {
  height: 100%;
  max-height: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

/* #magazine,
#magazine .turn-page,
#magazine .page,
.turn-page-wrapper,
.post-wrapper {
  height: 100% !important;
  max-height: 100% !important;
  box-sizing: border-box !important;
} */

.post-content {
  flex: 1 1 auto;
  height: auto;
  max-height: 100%;
  overflow-y: auto;
  padding: 20px;
  box-sizing: border-box;
}

/* スクロールバー設定 */
.page .post-content::-webkit-scrollbar {
  width: 8px;
  background: #eee;
}
.page .post-content::-webkit-scrollbar-thumb {
  background: #01b0cb;
  border-radius: 4px;
}
.page .post-content::-webkit-scrollbar-thumb:hover {
  background: #009cae;
}

/* コンテンツ内の要素間隔 */
.page .post-content > * {
  margin-top: 10px;
  margin-bottom: 10px;
}
.page .post-content .wp-block-columns,
.page .post-content .wp-block-media-text {
  margin-top: 10px;
  margin-bottom: 10px;
}
.page .post-content .wp-block-column > * {
  margin-top: 10px;
  margin-bottom: 10px;
}

.post-title {
  font-size: 24px;
  font-weight: bold;
  text-align: center;
  color: #707070;
}
.post-title .post-number {
  color: #01b0cb;
  font-size: 1.2em;
}

.post-author {
  text-align: center;
}

.edit-link {
  font-size: 10px;
  margin-left: 10px;
}
.edit-link a {
  color: #aaa;
  font-weight: normal;
}

.post-content > p {
  margin-top: 15px;
  margin-bottom: 15px;
}

.page .post-content p,
.page .post-content li,
.page .post-content pre,
.page .post-content .wp-block-preformatted {
  font-size: 12px;
  color: #707070;
  line-height: 1.8;
}

/* メディア要素 */
iframe[src*="google.com/maps"] {
  display: block;
  margin: 0 auto 20px;
  width: 100%;
  max-width: 800px;
  height: 300px !important;
  aspect-ratio: unset;
  border: none;
}

.wp-block-media-text {
  max-height: 60vh;
  overflow: hidden;
}
.wp-block-media-text__media,
.wp-block-media-text__content {
  height: 100%;
  overflow: hidden;
}
.wp-block-media-text__media img {
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: cover;
  display: block;
  margin: 0 auto;
}
.wp-block-media-text__content {
  overflow-y: auto;
}

.wp-block-image img,
.wp-block-gallery img,
.post-content img {
  height: 20vh;
  max-height: 50vh;
  width: 100%;
  object-fit: cover;
  display: block;
  margin: 0 auto;
}

/* ============================== */
/* フッター */
/* ============================== */
.site-footer {
  flex-shrink: 0;
  width: 100%;
  background-color: #01b0cb;
  color: #fff;
  text-align: center;
  padding: 20px 0;
}

/* ============================== */
/* レスポンシブ設定 */
/* ============================== */
@media (max-width: 1000px) {
  .main-area,
  .address-map-area {
    flex-direction: column;
    gap: 18px;
  }
  .address,
  .map {
    min-width: 0;
    width: 100%;
    margin-right: 0;
    margin-left: 0;
  }
  .map {
    min-width: 0;
    margin-left: 0;
    margin-top: 12px;
  }
}

@media (max-width: 900px) {
  .main-content {
    flex-direction: column;
    height: auto;
  }
  .side {
    flex-direction: row;
    flex-wrap: wrap;
    min-width: 0;
    width: 100%;
    gap: 8px;
    padding-left: 2px;
  }
  .country-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }
  .country-btn {
    width: auto;
    flex: 1 0 90px;
    font-size: 14px;
    padding: 8px 0;
  }
  .vline {
    display: none;
  }
  .spots-content {
    margin-left: 0;
    margin-top: 16px;
  }
  .spot-btn {
    width: 100%;
    font-size: 14px;
    padding: 12px 0 12px 12px;
  }
  .right-content {
    margin-left: 0;
    margin-top: 16px;
  }
  .address-map-area {
    flex-direction: column;
    gap: 16px;
  }
  .map {
    width: 100%;
    min-width: 0;
    height: 250px;
    margin: 0;
  }
}

@media (max-width: 768px) {
  #main-header {
    flex-direction: column;
    height: auto;
    padding: 10px 20px;
  }
  .site-title,
  .site-title a,
  .site-title .sub-title {
    text-align: center;
    margin: 5px 0;
  }
  .header-buttons {
    flex-direction: column;
    width: 100%;
  }
  .h-btn,
  .h-btn-primary,
  .h-btn-secondary {
    width: 100%;
    text-align: center;
    margin-bottom: 10px;
  }
}
