@charset "UTF-8";
/*
 Theme Name: SANGO Child
 Theme URI: https://saruwakakun.design
 Author: SARUWAKA
 Author URI: https://saruwakakun.com
 Template: sango-theme
 Version: 3.0
*/
/*こちらはSANGOの子テーマ用CSSです。以下にCSSを記入していきましょう。*/

/* Compact language navigation in the original SANGO palette. */
.tm-language-switch{position:fixed;z-index:999;right:18px;top:18px;display:flex;align-items:center;background:#fff;border:2px solid #423429;border-radius:999px;box-shadow:0 3px 14px #42342933;font:700 14px/1.4 Arial,sans-serif;overflow:hidden}
.tm-language-switch span,.tm-language-switch a{padding:9px 15px;color:#423429;text-decoration:none}
.tm-language-switch a{background:#423429;color:#fff}
.tm-language-switch a:focus-visible{outline:3px solid #fedc5e;outline-offset:-4px}
body.admin-bar .tm-language-switch{top:50px}
body.toiletmap-english .tm-en-links{display:flex;flex-wrap:wrap;gap:8px 18px;margin:0 0 24px;padding:12px 0;border-bottom:1px solid #e0dac0;font-size:14px}
body.toiletmap-english .tm-en-links a{color:#423429;font-weight:700}
body.toiletmap-english .tm-en-notice{padding:15px 18px;background:#f6f3e7;border-left:4px solid #de5b51;line-height:1.7}
body.toiletmap-english .entry-content{overflow-wrap:break-word}
body.toiletmap-english .entry-content figure img{height:auto}
@media(max-width:600px){.tm-language-switch{right:10px;top:auto;bottom:16px;font-size:12px}.tm-language-switch span,.tm-language-switch a{padding:8px 12px}body.admin-bar .tm-language-switch{top:auto}}

/* The English home reuses SANGO's native cards and the Japanese home's artwork. */
/* Remove the earlier english.css contribution for this home. This ID intentionally differs. */
#toiletmap-en-home { margin: 0; padding: 0; }
#toiletmap-en-home .home_top { margin: 0; padding: 0; }
#toiletmap-en-home .home_top img { display: block; width: 100%; height: auto; margin: 0; }
#toiletmap-en-home .tm-en-home-sr-only,
#toiletmap-en-home .tm-en-home-tab-input {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
#toiletmap-en-home .tm-en-home-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5em 1.25em; margin: 0 0 1.25em; font-size: 0.9em; }
#toiletmap-en-home .tm-en-home-nav a { color: inherit; text-decoration: underline; text-underline-offset: 0.2em; }
#toiletmap-en-home .tm-en-home-note,
#toiletmap-en-home .tm-en-home-archive-note { margin: 1.25em 0; padding: 0; color: #545454; font-size: 0.85em; line-height: 1.7; }
#toiletmap-en-home a:focus-visible,
#toiletmap-en-home .table_wrap:focus-visible { outline: 3px solid #335588; outline-offset: 3px; }
/* These preserve the original map's relative-position marker layout. */
#toiletmap-en-home .table_wrap p { padding-left: 0; padding-right: 0; margin-top: 0; }
#toiletmap-en-home .table_wrap .mapPoint .tm-en-no-listing {
  position: relative; display: block; width: 20px; height: 20px;
  text-indent: 100%; white-space: nowrap; overflow: hidden; border-radius: 50%;
  top: 249px; left: 265px; background: #fff;
}
/* Native SANGO's script expects a hidden first tab; radio tabs keep these two panels usable. */
#toiletmap-en-home .tm-en-home-tabs > .post-tab__content { display: none !important; }
#toiletmap-en-home #en-home-tab-directory:checked ~ .tm-en-home-directory,
#toiletmap-en-home #en-home-tab-stories:checked ~ .tm-en-home-stories { display: block !important; }
#toiletmap-en-home .post-tab { display: flex; align-items: stretch; margin-top: 50px; }
#toiletmap-en-home .post-tab > label {
  display: block; flex: 1 1 50%; margin: 0; padding: 12px 8px;
  border-bottom: 3px solid #d6d6d6; background: transparent;
  color: #777; font-size: 16px; font-weight: 700; line-height: 1.5;
  text-align: center; cursor: pointer;
}
#toiletmap-en-home #en-home-tab-directory:checked ~ .post-tab label[for="en-home-tab-directory"],
#toiletmap-en-home #en-home-tab-stories:checked ~ .post-tab label[for="en-home-tab-stories"] {
  border-bottom-color: var(--sgb-main-color, #6bb6ff);
  color: var(--sgb-main-color, #6bb6ff);
}
#toiletmap-en-home #en-home-tab-directory:focus-visible ~ .post-tab label[for="en-home-tab-directory"],
#toiletmap-en-home #en-home-tab-stories:focus-visible ~ .post-tab label[for="en-home-tab-stories"] { outline: 3px solid #335588; outline-offset: 2px; }
/* c_linkto/catpost-cards intentionally inherit the site's existing SANGO styling. */
@media screen and (max-width:1024px) {
  #toiletmap-en-home .table_wrap .mapPoint { background-image: url("https://toiletmap.info/wp-content/uploads/2019/07/map-img.gif") !important; }
  #toiletmap-en-home .table_wrap .mapPoint .tm-en-no-listing { top: 279px; left: 288px; }
}
@media screen and (max-width:479px) {
  #toiletmap-en-home .table_wrap .mapPoint .tm-en-no-listing { top: 280px; left: 288px; }
  #toiletmap-en-home .post-tab { width: 92%; margin: 30px auto 10px; }
  #toiletmap-en-home .tm-en-home-nav,
  #toiletmap-en-home .tm-en-home-note { margin-left: 4%; margin-right: 4%; }
}

/* Append to the child theme's CSS. All rules are confined to English pages. */
/* Match SANGO 3.12.20 .tagcloud a while making the legend noninteractive. */
body.toiletmap-english .tagcloud .tm-en-tag-legend {
  display: inline-block;
  margin: 5px 5px 5px 0;
  padding: 2px 8px;
  border-radius: 16px;
  background: #f4f4f4;
  color: #666;
  font-size: 12px !important;
  font-weight: bold;
}
body.toiletmap-english .tagcloud .tm-en-tag-legend.tag-link-10 { background: #de5b51; color: #fff; }
body.toiletmap-english .tagcloud .tm-en-tag-legend.tag-link-12 { background: #fedc5e; color: #333; }
body.toiletmap-english .tagcloud .tm-en-tag-legend.tag-link-11 { background: #423429; color: #fff; }
body.toiletmap-english .tagcloud .tm-en-tag-note { display: block; margin-top: 5px; line-height: 1.5; font-size: 11px; }

/* Keep the original header dimensions while fitting the English name. */
body.toiletmap-english #logo .header-logo__link{font-size:16px;letter-spacing:.02em}
body.toiletmap-english .header-search__modal .searchform:before{content:"Search by keyword"}
@media(max-width:600px){body.toiletmap-english #logo .header-logo__link{font-size:12px;letter-spacing:.01em}}

/* Transparent links sit on the circles in the English map; the Japanese map is unchanged. */
body.toiletmap-english #toiletmap-en-home .table_wrap .mapPoint {
    position:relative;width:100%;height:auto;aspect-ratio:1702/924;
    background-image:url("https://toiletmap.info/wp-content/uploads/2026/10/map-img-en.png")!important;
    background-size:100% 100%;background-repeat:no-repeat;
}
body.toiletmap-english #toiletmap-en-home .table_wrap .mapPoint p {
    position:absolute;margin:0;padding:0;width:0;height:0;
}
body.toiletmap-english #toiletmap-en-home .table_wrap .mapPoint p a {
    position:absolute;top:0!important;left:0!important;transform:translate(-50%,-50%);
    width:28px;height:28px;background:transparent!important;box-shadow:none;
}
body.toiletmap-english #toiletmap-en-home .table_wrap .mapPoint .tm-en-no-listing {display:none}
body.toiletmap-english #toiletmap-en-home .table_wrap .mapPoint a:focus-visible {outline:3px solid #423429;outline-offset:2px}
@media(max-width:1024px){
    body.toiletmap-english #toiletmap-en-home .table_wrap .mapPoint {width:830px;height:450px;aspect-ratio:auto}
}
body.toiletmap-english #toiletmap-en-home .table_wrap .mapPoint .fureaikan{left:24.484412%;top:34.859057%}
body.toiletmap-english #toiletmap-en-home .table_wrap .mapPoint .takumi{left:31.733099%;top:34.8504%}
body.toiletmap-english #toiletmap-en-home .table_wrap .mapPoint .zipangu{left:31.661836%;top:68.746032%}
body.toiletmap-english #toiletmap-en-home .table_wrap .mapPoint .shin{left:57.621167%;top:45.940566%}
body.toiletmap-english #toiletmap-en-home .table_wrap .mapPoint .yellkan{left:58.047219%;top:20.630065%}
body.toiletmap-english #toiletmap-en-home .table_wrap .mapPoint .yamamoto{left:65.163008%;top:34.516882%}
body.toiletmap-english #toiletmap-en-home .table_wrap .mapPoint .lojiycafe{left:69.726144%;top:31.790314%}
body.toiletmap-english #toiletmap-en-home .table_wrap .mapPoint .public{left:82.1814%;top:41.240035%}

/* English contact section only. Keep .hissu on the translated Required labels. */
body.toiletmap-english #en-contact .wpcf7,
body.toiletmap-english #en-contact .otoiawase,
body.toiletmap-english #en-contact .oto-nyuryoku,
body.toiletmap-english #en-contact .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

body.toiletmap-english #en-contact .oto-label {
  margin: 1.1em 0 0.4em;
  font-weight: 700;
}

body.toiletmap-english #en-contact .tm-contact-required,
body.toiletmap-english #en-contact .hissu,
body.toiletmap-english #en-contact .tm-en-required {
  display: inline-block;
  float: none;
  width: auto;
  min-width: 0;
  margin: 0 0 0 0.6em;
  padding: 0.12em 0.45em;
  border-radius: 3px;
  background: #423429;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.4;
  vertical-align: middle;
}

body.toiletmap-english #en-contact input[type="text"],
body.toiletmap-english #en-contact input[type="email"],
body.toiletmap-english #en-contact input[type="tel"],
body.toiletmap-english #en-contact input[type="url"],
body.toiletmap-english #en-contact select,
body.toiletmap-english #en-contact textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0.65em 0.75em;
  border: 1px solid #bdb7b0;
  border-radius: 4px;
  background: #fff;
  color: #423429;
  font: inherit;
  font-size: 1rem;
  line-height: 1.5;
}

body.toiletmap-english #en-contact textarea {
  min-height: 10rem;
  resize: vertical;
}

body.toiletmap-english #en-contact .oto-sousin {
  margin-top: 1.2em;
}

body.toiletmap-english #en-contact .wpcf7-submit {
  width: auto;
  max-width: 100%;
  min-height: 44px;
  padding: 0.65em 1.5em;
  border: 2px solid #423429;
  border-radius: 4px;
  background: #423429;
  color: #fff;
  font: inherit;
  font-weight: 700;
  line-height: 1.4;
  white-space: normal;
  cursor: pointer;
}

body.toiletmap-english #en-contact .wpcf7-submit:hover {
  border-color: #5b493a;
  background: #5b493a;
}

body.toiletmap-english #en-contact input:focus-visible,
body.toiletmap-english #en-contact select:focus-visible,
body.toiletmap-english #en-contact textarea:focus-visible {
  outline: 3px solid #fedc5e;
  outline-offset: 3px;
}

body.toiletmap-english #en-contact .wpcf7-submit:disabled {
  opacity: 0.6;
  cursor: default;
}

body.toiletmap-english #en-contact label{font-weight:700}
body.toiletmap-english #en-contact .tm-contact-privacy{font-size:.9em;line-height:1.6}
