@charset "UTF-8";
/* 
  Theme: Toilet Search Renewal
  Color Palette:
    Primary: #00B4D8 (Light Blue)
    Secondary: #0077B6 (Blue)
    Accent: #FF9F1C (Orange)
    Background: #F8F9FA (Off White)
    Text: #333333
*/
:root {
  --primary-color: #007bff;
  --secondary-color: #0077b6;
  --rating-color: #ff9100;
  --accent-color: #009936;
  --bg-color: #f8f9fa;
  --text-color: #333333;
  --white: #ffffff;
  --gray-light: #e9ecef;
  --gray-dark: #6c757d;
  --gray: #adb5bd;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --radius: 8px;
  --radius-large: 10px;
  --radius-small: 5px;
  --font-size1: 1.4rem;
  --font-size2: 1.2rem;
  --font-size3: 1rem;
  --font-size4: 0.8rem;
  --font-size5: 0.6rem;
}

/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  font-size: 16px;
  color: var(--text-color);
  line-height: 1;
  background: linear-gradient(180deg, #eefffe, #bfebff);
  background-attachment: fixed;
  font-family: "IBM Plex Sans JP", sans-serif;
  font-weight: 400;
}

h1 {
  font-size: var(--font-size1);
  font-weight: 800;
  line-height: 1;
  margin: 0.25em 0;
}

h2,
h3,
h4 {
  margin: 0.5em 0;
  line-height: 1.2em;
  font-weight: 700;
}

h2 {
  font-size: var(--font-size2);
  color: var(--accent-color);
}

h3 {
  font-size: var(--font-size3);
  color: var(--text-color);
  border-left: 4px solid var(--accent-color);
  padding-left: 8px;
}

h4 {
  font-size: var(--font-size3);
  color: var(--accent-color);
}

p {
  margin: 1em 0;
  line-height: 1.5em;
}

ul,
ol {
  margin: 0.5em 0 0.5em 1.5em;
}

ul li,
ol li,
dl dt,
dl dd {
  font-size: var(--font-size3);
  line-height: 1.2em;
  margin: 0.2em 0;
}

a {
  text-decoration: none;
  color: var(--secondary-color);
}
a:hover {
  color: var(--text-color);
  text-decoration: underline;
}
a:active {
  color: var(--accent-color);
  text-decoration: underline;
}
a:visited {
  color: var(--secondary-color);
  text-decoration: underline;
}

section {
  margin: 2em 0;
}

article {
  margin: 1em 0;
}

/* Header */
header {
  background-color: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom-right-radius: var(--radius-large);
  border-bottom-left-radius: var(--radius-large);
}
header .header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 15px;
}
header .header-container .header-logo {
  display: flex;
  align-items: center;
  font-size: 1rem;
  line-height: 1;
  margin: 0;
}
header .header-container .header-logo a img {
  height: 48px;
  margin-right: 10px;
}
header .header-container .header-logo span.catchphrase {
  font-size: 0.8em;
  font-weight: 600;
  color: var(--gray-dark);
}
header .header-container nav a {
  font-weight: bold;
  color: var(--text-color);
}
header .header-container nav a.highlight {
  color: var(--accent-color);
}
header .header-container #global_navi {
  position: fixed;
  top: 0;
  right: -100%; /* Hide off-screen */
  width: 80%;
  height: 100vh;
  border-radius: var(--radius-large) 0 0 var(--radius-large);
  background-color: var(--white);
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: right 0.3s ease;
  padding-top: 60px; /* Space for close button area if needed, or just padding */
}
header .header-container #global_navi.active {
  right: 0; /* Slide in */
}
header .header-container #global_navi ul {
  font-size: var(--font-size3);
  list-style: none;
}
header .header-container #global_navi ul li {
  border-bottom: 1px solid var(--gray-light);
  padding: 5px 0;
}
header .header-container #global_navi ul li:last-child {
  border-bottom: none;
}
header .header-container #global_navi ul li a {
  display: flex;
  align-items: center;
}
header .header-container #global_navi ul li a img {
  position: relative;
  top: -0.1em;
  margin-right: 0.5em;
  width: 20px;
  height: 20px;
}
header .header-container #global_navi_toggle {
  display: block; /* Hamburger always visible */
  width: 30px;
  height: 24px;
  position: relative;
  cursor: pointer;
  z-index: 2000;
}
header .header-container #global_navi_toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--text-color);
  position: absolute;
  transition: all 0.3s ease;
}
header .header-container #global_navi_toggle span:nth-child(1) {
  top: 0;
}
header .header-container #global_navi_toggle span:nth-child(2) {
  top: 11px;
}
header .header-container #global_navi_toggle span:nth-child(3) {
  bottom: 0;
}
header .header-container #global_navi_toggle.active span:nth-child(1) {
  top: 11px;
  transform: rotate(45deg);
}
header .header-container #global_navi_toggle.active span:nth-child(2) {
  opacity: 0;
}
header .header-container #global_navi_toggle.active span:nth-child(3) {
  top: 11px; /* bottom instead of top would require calc, simpler to use top */
  bottom: auto;
  transform: rotate(-45deg);
}

/* Main */
main {
  margin: 0 auto;
  padding: 15px;
}
main .container {
  display: block;
}
main .error-page,
main .add-toilet-page,
main .line,
main .rail_company,
main .station-info,
main .station-list,
main .toilet-info {
  display: block;
}

footer {
  background-color: var(--white);
  padding: 15px;
  margin-top: 40px;
  text-align: center;
  border-top: 1px solid var(--gray-light);
}

/* SNS Share Buttons */
.share-buttons {
  margin: 20px 0;
  padding: 20px 10px;
  border-top: 1px dashed var(--gray-light);
}
.share-buttons__title {
  font-size: var(--font-size4);
  font-weight: 700;
  color: var(--gray-dark);
  margin-bottom: 15px;
}
.share-buttons__list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.share-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  width: 60px;
  position: relative;
  transition: transform 0.2s ease;
}
.share-btn:hover {
  transform: translateY(-3px);
  text-decoration: none;
}
.share-btn__icon {
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: 12px;
  fill: var(--white);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.share-btn__label {
  font-size: 10px;
  font-weight: 700;
  color: var(--gray-dark);
}
.share-btn {
  /* Colors */
}
.share-btn--x .share-btn__icon {
  background-color: #000000;
}
.share-btn--line .share-btn__icon {
  background-color: #06c755;
}
.share-btn--facebook .share-btn__icon {
  background-color: #1877f2;
}
.share-btn--mail .share-btn__icon {
  background-color: #ea4335;
}
.share-btn--copy {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
}
.share-btn--copy .share-btn__icon {
  background-color: var(--gray-dark);
}
.share-btn {
  /* Tooltip for copy */
}
.share-btn__tooltip {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text-color);
  color: var(--white);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 10px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.share-btn__tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -4px;
  border: 4px solid transparent;
  border-top-color: var(--text-color);
}
.share-btn__tooltip.show {
  opacity: 1;
  visibility: visible;
  top: -35px;
}

.footer-container ul {
  display: flex;
  justify-content: center;
  list-style: none;
  gap: 20px;
  margin-bottom: 20px;
}

/* Components */
/* カルーセル矢印ボタン */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--gray-light);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow);
  font-size: 1rem;
  line-height: 1;
  padding: 0;
  transition: background 0.2s, opacity 0.2s;
  color: var(--text-color);
  font-family: inherit;
}
.carousel-btn:hover {
  background: var(--white);
}
.carousel-btn:disabled {
  opacity: 0.25;
  cursor: default;
}
.carousel-btn--prev {
  left: -10px;
}
.carousel-btn--next {
  right: -10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background-color: var(--gray-dark);
  border: 2px solid var(--gray-dark);
  cursor: pointer;
  color: var(--white);
  padding: 6px 14px;
  font-size: var(--font-size3);
  font-weight: 700;
  line-height: 1;
  border-radius: 2em;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  font-family: inherit;
}
.btn:visited {
  color: var(--white);
}
.btn:hover {
  text-decoration: none;
  background-color: var(--white);
  color: var(--gray-dark);
}
.btn:active {
  transform: translateY(2px);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}
.btn img {
  width: 16px;
  height: 16px;
  transition: filter 0.2s ease;
}
.btn-go-gmap {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
}
.btn-go-gmap:hover {
  color: var(--accent-color);
}
.btn-go-detail {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
}
.btn-go-detail:hover {
  color: var(--secondary-color);
}
.btn-submit-review, .btn-submit {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  padding: 12px 30px;
  font-size: 1rem;
  border-radius: 50px;
}
.btn-submit-review:hover, .btn-submit:hover {
  color: var(--accent-color);
}
.btn-open-review {
  background-color: var(--rating-color);
  border-color: var(--rating-color);
}
.btn-open-review:hover {
  color: var(--rating-color);
}
.btn-add {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
}
.btn-add:hover {
  color: var(--accent-color);
}
.btn-main {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  padding: 15px 30px;
  font-size: 1.2rem;
  border-radius: 50px;
  box-shadow: var(--shadow);
}
.btn-main:hover {
  color: var(--accent-color);
}

.badge {
  display: inline-block;
  border-radius: 4px;
  color: var(--white);
  margin-right: 5px;
}
.badge.inactive {
  opacity: 0.3;
  filter: grayscale(100%);
}

.sta-inner-toilet,
.sta-outer-toilet {
  padding: 0.1em 0.5em;
  border-radius: 0.3em;
  margin-right: 4px;
}

.sta-inner-toilet {
  background-color: #e3f2fd;
  color: #0d47a1;
}

.sta-outer-toilet {
  background-color: #e8f5e9;
  color: #1b5e20;
}

.rating {
  color: var(--white);
  background: var(--rating-color);
  padding: 0.1em 0.5em;
  border-radius: 0.3em;
  font-weight: 700;
}

.distance {
  color: var(--gray-dark);
  background: var(--gray-light);
  padding: 0.1em 0.5em;
  border-radius: 0.3em;
}

/* Detail Page */
.toilet-info h1,
.station-info h1 {
  margin-bottom: 20px;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 10px;
}

.station-info .box-card ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 0;
}
.station-info .box-card ul .sta-inner-toilet,
.station-info .box-card ul .sta-outer-toilet {
  font-weight: 700;
  padding: 0.5em 1em;
  border-radius: 0.3em;
  margin: 0;
}
.station-info .box-card ul .sta-inner-toilet .ok,
.station-info .box-card ul .sta-outer-toilet .ok {
  font-weight: 700;
}
.station-info .box-card ul .sta-inner-toilet .ng,
.station-info .box-card ul .sta-outer-toilet .ng {
  color: var(--text-color);
  font-weight: 400;
}
.station-info .box-card ul .sta-inner-toilet .unknown,
.station-info .box-card ul .sta-outer-toilet .unknown {
  font-size: 0.8em;
  color: var(--text-color);
  font-weight: 400;
}

.status-ok {
  color: var(--primary-color);
}
.status-ok::before {
  content: "● ";
  color: var(--primary-color);
}

.status-ng {
  color: var(--gray-dark);
  opacity: 0.6;
}
.status-ng::before {
  content: "✕ ";
}

.status-unknown {
  color: var(--gray-dark);
  font-size: 0.9em;
  font-weight: normal;
}

/* ===== 駅名標 ===== */
.station-sign {
  border: 0.5em solid #999;
  border-radius: var(--radius-small);
  overflow: hidden;
  margin-bottom: 20px;
  background: var(--white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.station-sign a {
  text-decoration: none;
  color: inherit;
}
.station-sign a:hover {
  text-decoration: underline;
}
.station-sign p {
  margin: 0;
}
.station-sign {
  /* ヘッダー: 会社名 ↔ 路線名 */
}
.station-sign__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--radius-large);
  border-bottom: 2px solid var(--gray);
  font-size: 0.8em;
  font-weight: 700;
  color: var(--gray-dark);
}
.station-sign {
  /* 中央: 駅名 */
}
.station-sign__main {
  text-align: center;
  padding: var(--radius-large);
  line-height: 1;
}
.station-sign__kanji {
  font-size: clamp(2rem, 10vw, 3rem);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-indent: 0.2em;
  color: var(--text-color);
  margin: 0 0 8px;
}
.station-sign__sub {
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 1em;
}
.station-sign__kana {
  font-size: 1em;
  letter-spacing: 0.1em;
  color: var(--gray-dark);
}
.station-sign__en {
  font-size: 1em;
  font-family: "Helvetica Neue", Arial, sans-serif;
  text-transform: capitalize;
  color: var(--gray-dark);
}
.station-sign {
  /* 下部: 隣接駅ナビ */
}
.station-sign__neighbors {
  display: flex;
  justify-content: space-between;
  background-color: var(--text-color);
  min-height: 3.2em;
}
.station-sign__neighbor {
  color: var(--white);
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 40%;
}
.station-sign__neighbor--next {
  align-items: flex-end;
  text-align: right;
}
.station-sign__neighbor-label {
  font-size: 0.7rem;
  color: var(--white);
  display: block;
  line-height: 1;
}
.station-sign__neighbor-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--white) !important;
  line-height: 1.3;
}
.station-sign__neighbor-name small {
  display: block;
  font-size: 0.7em;
  font-weight: 400;
  color: var(--white);
  margin-top: 2px;
}
.station-sign__neighbor-name:hover {
  text-decoration: underline !important;
}

/* 共通パーツ */
.breadcrumb {
  font-size: var(--font-size4);
  color: var(--gray-dark);
  margin-bottom: 20px;
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.breadcrumb li {
  display: flex;
  align-items: center;
  line-height: 1.4;
  /* 最初の li 以外に区切り文字を付与 */
}
.breadcrumb li:not(:first-child)::before {
  content: "›";
  margin: 0 6px;
  color: var(--gray);
  font-size: var(--font-size4);
}
.breadcrumb li {
  /* 最終項目（現在ページ）はグレー */
}
.breadcrumb li:last-child {
  color: var(--gray-dark);
  font-weight: 500;
}
.breadcrumb li a {
  color: var(--secondary-color);
  text-decoration: none;
}
.breadcrumb li a:hover {
  text-decoration: underline;
}

/* ヒーロー画像 */
.hero-image {
  position: relative;
  width: 100%;
  max-width: 600px;
  height: 400px;
  margin: 1rem auto;
  border-radius: var(--radius-large);
  overflow: hidden;
}
.hero-image img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  display: block;
}
.hero-image figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.55);
  color: var(--white);
  font-size: 0.9rem;
  text-align: center;
  backdrop-filter: blur(2px);
  box-sizing: border-box;
}

/* ボックスカード共通スタイル */
.box-card {
  background: var(--white);
  border-radius: var(--radius-large);
  padding: 15px;
  margin-bottom: 15px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--gray-light);
}
.box-card .btn {
  font-size: var(--font-size4);
}
.box-card .box-card-header {
  display: block;
}
.box-card .box-card-header div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5em;
}
.box-card .box-card-header div h4 {
  margin: 0;
  line-height: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.box-card .box-card-header div h4 img {
  position: relative;
  top: 2px;
  width: 18px;
  height: 18px;
  margin-right: 0.5em;
}
.box-card .box-card-header div p.address {
  margin: 0;
  font-size: var(--font-size4);
  color: var(--gray-dark);
}
.box-card .box-card-header div p.distance {
  white-space: nowrap;
  margin: 0;
  font-size: var(--font-size4);
}
.box-card .box-card-header div p.rating {
  white-space: nowrap;
  margin: 0;
  font-size: var(--font-size4);
}
.box-card .box-card-body ul {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 5px;
  margin: 0;
  padding: 0;
}
.box-card .box-card-body ul li {
  font-size: var(--font-size4);
  list-style: none;
}
.box-card .box-card-body ul li img {
  vertical-align: middle;
  position: relative;
  top: -2px;
  padding: 1px;
  width: 22px;
  height: 22px;
  border-radius: 5px;
  border: 1px solid var(--gray-light);
}
.box-card .box-card-footer {
  text-align: center;
  margin-top: 0.5em;
  display: block;
}

main .toilet-list,
main .station-list {
  display: flex;
  flex-wrap: nowrap;
  gap: 15px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 5px;
}
main .toilet-list::-webkit-scrollbar,
main .station-list::-webkit-scrollbar {
  display: none;
}
main .toilet-list .box-card,
main .station-list .box-card {
  width: 80%;
  flex: 0 0 80%;
  scroll-snap-align: center;
}

.station-list article .box-card-header h4 .line {
  display: inline;
  font-weight: 400;
  font-size: var(--font-size4);
  color: var(--gray-dark);
}

.reviews-status {
  border: 1px solid var(--gray-dark);
}
.reviews-status .card-header {
  text-align: center;
  margin-bottom: 10px;
}
.reviews-status .card-body ul {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 50px;
  margin: 0;
  padding: 0;
}
.reviews-status .card-body ul li {
  font-weight: 700;
  font-size: 1.2em;
  color: var(--rating-color);
  list-style: none;
  text-align: center;
}
.reviews-status .card-body ul li span {
  font-weight: normal;
  font-size: 0.6em;
}
.reviews-status .card-body ul li img {
  width: 36px;
  height: 36px;
}

.reviews-list article .box-card-header {
  display: block;
  text-align: right;
}
.reviews-list article .box-card-header span {
  font-size: var(--font-size4);
  color: var(--gray-dark);
}
.reviews-list article .box-card-body {
  margin: 0;
}
.reviews-list article .box-card-body ul {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 10px;
  margin: 3px auto;
  padding: 3px 0;
  border-top: 1px dashed var(--gray-light);
  border-bottom: 1px dashed var(--gray-light);
}
.reviews-list article .box-card-body ul li {
  line-height: 1;
}
.reviews-list article .box-card-body ul li img {
  border: none;
}
.reviews-list article .box-card-body .review-usable {
  display: none;
}
.reviews-list article .box-card-body p {
  margin: 0;
  padding: 0;
}

/* レビュー投稿フォーム */
.review-form {
  margin-top: 20px;
}
.review-form h3 {
  font-size: 1.1rem;
  margin-bottom: 15px;
  border-left: 4px solid var(--accent-color);
  padding-left: 10px;
}

.review-error-list {
  background-color: #fdecea;
  color: #c62828;
  border: 1px solid #ef9a9a;
  border-radius: var(--radius);
  padding: 12px 16px 12px 32px;
  margin-bottom: 15px;
}
.review-error-list li {
  margin: 4px 0;
  font-size: 0.9em;
}

.review-form-inner {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.review-form-inner .form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.review-form-inner .form-label {
  font-weight: bold;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
}
.review-form-inner .form-label .required {
  color: var(--accent-color);
  margin-left: 2px;
}
.review-form-inner .rating-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.review-form-inner .rating-row .rating-item {
  flex: 1;
  min-width: 180px;
}
.review-form-inner .rating-icon {
  width: 24px;
  height: 24px;
  margin-right: 8px;
  flex-shrink: 0;
}
.review-form-inner {
  /* 星評価 */
}
.review-form-inner .star-rating {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 4px;
}
.review-form-inner .star-rating input[type=radio] {
  display: none;
}
.review-form-inner .star-rating label {
  cursor: pointer;
}
.review-form-inner .star-rating label .star-icon {
  font-size: 2rem;
  color: var(--gray-light);
  transition: color 0.15s;
  display: block;
  line-height: 1;
}
.review-form-inner .star-rating {
  /* ホバー・選択時: 自身と左側（flex-direction: row-reverseなので右側DOM）を点灯 */
}
.review-form-inner .star-rating label:hover .star-icon,
.review-form-inner .star-rating label:hover ~ label .star-icon {
  color: #f5a623;
}
.review-form-inner .star-rating input[type=radio]:checked + label .star-icon,
.review-form-inner .star-rating input[type=radio]:checked + label ~ label .star-icon {
  color: #f5a623;
}
.review-form-inner {
  /* 利用可否トグル */
}
.review-form-inner .usable-toggle {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.review-form-inner .usable-toggle .usable-label {
  cursor: pointer;
}
.review-form-inner .usable-toggle .usable-label input[type=radio],
.review-form-inner .usable-toggle .usable-label input[type=checkbox] {
  display: none;
}
.review-form-inner .usable-toggle .usable-label span {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 50px;
  border: 2px solid var(--gray-light);
  font-size: 0.95rem;
  font-weight: bold;
  color: var(--gray-dark);
  transition: all 0.2s;
}
.review-form-inner .usable-toggle .usable-label input[type=radio]:checked + span,
.review-form-inner .usable-toggle .usable-label input[type=checkbox]:checked + span {
  border-color: var(--secondary-color);
  background-color: var(--secondary-color);
  color: var(--white);
}
.review-form-inner textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--gray-light);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  resize: vertical;
  box-sizing: border-box;
  transition: border-color 0.2s;
}
.review-form-inner textarea:focus {
  outline: none;
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 3px rgba(0, 119, 182, 0.1);
}
.review-form-inner input[type=text],
.review-form-inner input[type=time] {
  padding: 10px 12px;
  border: 1px solid var(--gray-light);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
}
.review-form-inner input[type=text]:focus,
.review-form-inner input[type=time]:focus {
  border-color: var(--secondary-color);
  outline: none;
}
.review-form-inner .char-count {
  font-size: 0.8em;
  color: var(--gray-dark);
  text-align: right;
  margin: 0;
}

/* ページトップに戻るボタン */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background-color: var(--secondary-color);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
}
.back-to-top img {
  width: 24px;
  height: 24px;
  filter: invert(1); /* White icon if original is black */
}
.back-to-top:hover {
  background-color: var(--primary-color);
  transform: translateY(-2px);
}
.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Map Container (Shared dimensions) */
.map-container {
  height: 400px;
  width: 100%;
  margin-bottom: 20px;
  border-radius: var(--radius-large);
  border: 1px solid var(--gray);
  position: relative;
  overflow: hidden;
  z-index: 5;
  background-color: #eee; /* Loading placeholder */
}
.map-container img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  display: block;
}
.map-container .map-item-facilities img {
  width: 16px;
  height: 16px;
  margin-right: 5px;
}
.map-container {
  /* 地図上部ボタンコンテナ */
}
.map-container .map-search-container {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px auto 0;
  pointer-events: none; /* コンテナ自体はクリックを邪魔しない */
}
.map-container .map-search-container > * {
  pointer-events: auto; /* 子要素はクリック可能に */
}
.map-container {
  /* 現在地再取得ボタン */
}
.map-container .map-relocate-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  background-color: var(--white);
  border: 2px solid var(--gray-dark);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
  cursor: pointer;
  transition: background-color 0.2s, box-shadow 0.2s;
}
.map-container .map-relocate-btn:hover {
  background-color: var(--gray-dark);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
}
.map-container .map-relocate-btn:active {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
.map-container .map-relocate-btn img {
  width: 22px;
  height: 22px;
}
.map-container .map-relocate-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.map-container {
  /* 地図上部「この場所で再検索」ボタン */
}
.map-container .map-search-btn {
  display: block;
  margin: 0;
  padding: 0.5em 1.2em;
  background-color: var(--white);
  color: var(--gray-dark);
  font-size: var(--font-size4);
  font-weight: 700;
  font-family: inherit;
  border: 2px solid var(--gray-dark);
  border-radius: 50px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.map-container .map-search-btn:hover {
  background-color: var(--gray-dark);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
}
.map-container .map-search-btn:active {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
.map-container .map-search-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.map-container {
  /* 地図中央下の「Google Mapで表示」ボタン */
}
.map-container .btn-open-gmap {
  width: 12em;
  text-align: center;
  margin: 0 auto;
  position: relative;
  bottom: 50px;
  display: block;
  padding: 0.5em 1em;
  background-color: var(--accent-color);
  color: var(--white);
  font-size: 0.8em;
  font-weight: 700;
  border-radius: 5em;
  border: 1px solid rgba(26, 115, 232, 0.3);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
  text-decoration: none;
  white-space: nowrap;
  backdrop-filter: blur(4px);
}
.map-container .btn-open-gmap:hover {
  background-color: var(--secondary-color);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
  text-decoration: none;
}
.map-container .btn-open-gmap:active {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Pagination UI */
.pagination-container {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  gap: 5px;
}

.pagination-btn {
  padding: 8px 12px;
  border: 1px solid #ddd;
  background-color: #fff;
  cursor: pointer;
  border-radius: 4px;
  font-size: 14px;
  color: #333;
  transition: all 0.2s;
}
.pagination-btn.active {
  background-color: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}
.pagination-btn:hover:not(.active) {
  background-color: #f1f1f1;
}
.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination-ellipsis {
  display: flex;
  align-items: center;
  padding: 0 5px;
  color: var(--gray);
}

/* ===== レビューモーダル ===== */
.review-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.review-modal[hidden] {
  display: none;
}

.review-modal-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.review-modal-content {
  position: relative;
  z-index: 1;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  width: min(92vw, 640px);
  max-height: 90vh;
  overflow-y: auto;
  padding: 24px;
  animation: modalSlideIn 0.25s ease;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.review-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.review-modal-header h3 {
  margin: 0;
  font-size: 1.2rem;
  border-left: 4px solid var(--accent-color);
  padding-left: 10px;
}

.review-modal-close {
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--gray-dark);
  line-height: 1;
  padding: 4px 8px;
  border-radius: 50%;
  transition: background-color 0.15s, color 0.15s;
}
.review-modal-close:hover {
  background-color: var(--gray-light);
  color: var(--text-color);
}

/* 結果画面 */
.review-modal-result {
  text-align: center;
  padding: 20px 0;
}

.review-result-icon {
  font-size: 3rem;
  margin: 0 0 12px;
  line-height: 1;
}

.review-result-msg {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 24px;
  color: var(--text-color);
}

/* ===== 近くのトイレ／駅 トグルUI ===== */
.search-toggle-container {
  display: flex;
  justify-content: center;
  margin: 10px auto;
}

.search-toggle {
  position: relative;
  display: flex;
  background-color: #e9ecef;
  border-radius: 12px;
  padding: 4px;
  width: 100%;
  max-width: 320px;
}
.search-toggle button img {
  width: 16px;
  height: 16px;
  margin-right: 5px;
  position: relative;
  top: 2px;
}

.active-slider {
  position: absolute;
  top: 4px;
  left: 4px;
  width: calc(50% - 4px);
  height: calc(100% - 8px);
  background-color: var(--primary-color);
  border-radius: 8px;
  transition: transform 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
  box-shadow: 0 2px 4px rgba(0, 123, 255, 0.3);
  z-index: 1;
}
.active-slider.route-active {
  transform: translateX(100%);
}

.toggle-item {
  flex: 1;
  border: none;
  background: none;
  padding: 12px 0;
  font-size: 14px;
  font-weight: 600;
  color: #6c757d;
  cursor: pointer;
  z-index: 2;
  transition: color 0.3s ease;
  outline: none;
  font-family: inherit;
}
.toggle-item.active {
  color: #ffffff;
}

.hidden-list {
  display: none !important;
}

/* ===== Celebration Effect ===== */
#celebration-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9998;
}

.celebration-cracker {
  position: fixed;
  bottom: -150px; /* Start off-screen */
  width: 100px;
  height: 100px;
  z-index: 9999;
  transition: bottom 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: none;
  /* Base rotation for alignment */
}
.celebration-cracker.cracker-left {
  left: 10px;
  transform: rotate(15deg);
}
.celebration-cracker.cracker-right {
  right: 10px;
  transform: rotate(-15deg) scaleX(-1);
}
.celebration-cracker {
  /* Animation Trigger */
}
.celebration-cracker.animate-pop {
  bottom: 10px;
  /* Pop animation triggers after sliding in */
}
.celebration-cracker.animate-pop.cracker-left {
  animation: crackerPopLeft 0.3s ease-out 0.5s forwards;
}
.celebration-cracker.animate-pop.cracker-right {
  animation: crackerPopRight 0.3s ease-out 0.5s forwards;
}

@keyframes crackerPopLeft {
  0% {
    transform: rotate(15deg) scale(1);
  }
  50% {
    transform: rotate(15deg) scale(1.3);
  }
  100% {
    transform: rotate(15deg) scale(1);
  }
}
@keyframes crackerPopRight {
  0% {
    transform: rotate(-15deg) scaleX(-1) scale(1);
  }
  50% {
    transform: rotate(-15deg) scaleX(-1) scale(1.3);
  }
  100% {
    transform: rotate(-15deg) scaleX(-1) scale(1);
  }
}
/* ===== 投稿ルールページ ===== */
.rules-page h1 {
  margin-bottom: 10px;
}
.rules-page {
  /* リスト内の h3 をインライン表示 */
}
.rules-page .box-card ol li {
  margin-bottom: 14px;
  line-height: 1.6;
}
.rules-page .box-card ol li h3 {
  display: inline;
  font-size: var(--font-size3);
  margin: 0;
  padding: 0;
  border: none;
}
.rules-page {
  /* 運営からのヒント（注意書き） */
}
.rules-page .note {
  font-size: var(--font-size4);
  color: var(--gray-dark);
  background-color: #f0f7ff;
  border-left: 3px solid var(--primary-color);
  padding: 8px 12px;
  border-radius: 0 var(--radius-small) var(--radius-small) 0;
  margin-top: 10px;
}

/* ===== トイレ追加ページ (全画面マップ & モーダル) ===== */
.add-toilet-full {
  position: relative;
  width: 100%;
  height: calc(100vh - 200px);
  min-height: 400px;
  background-color: #eee;
}
.add-toilet-full .full-map {
  width: 100%;
  height: 100%;
}
.add-toilet-full .map-controls {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 20;
}
.add-toilet-full .btn-map-control {
  width: 48px;
  height: 48px;
  background: var(--white);
  border: none;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.add-toilet-full .btn-map-control:hover {
  background: #f8f9fa;
}
.add-toilet-full .btn-map-control img {
  width: 24px;
  height: 24px;
}
.add-toilet-full .map-instruction {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  background: rgba(0, 0, 0, 0.7);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: bold;
  pointer-events: none;
  white-space: nowrap;
  backdrop-filter: blur(4px);
}
.add-toilet-full .map-instruction p {
  margin: 0;
}

/* InfoWindow内のボタン */
.info-window-add {
  padding: 10px;
  max-width: 200px;
}
.info-window-add strong {
  font-size: 1.1rem;
  color: var(--text-color);
  display: block;
  margin-bottom: 5px;
}
.info-window-add .address-text {
  font-size: 0.85rem;
  color: var(--gray-dark);
  margin-bottom: 12px;
  line-height: 1.4;
}
.info-window-add .btn-iw-add {
  width: 100%;
  background: var(--accent-color);
  color: var(--white);
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  font-size: 0.9rem;
  transition: opacity 0.2s;
}
.info-window-add .btn-iw-add:hover {
  opacity: 0.9;
}

/* モーダル内フォームの拡張 */
.facilities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.room-counts {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #f8f9fa;
  padding: 12px;
  border-radius: 8px;
}
.room-counts .room-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.room-counts .room-label {
  width: 40px;
  font-weight: bold;
  font-size: 0.9rem;
}
.room-counts input[type=number] {
  width: 60px;
  padding: 6px;
  border: 1px solid var(--gray-light);
  border-radius: 4px;
  text-align: center;
}
.room-counts input[type=number]:focus {
  border-color: var(--secondary-color);
  outline: none;
}

/* ===== 鉄道会社ページ専用スタイル ===== */
.rail_company .line-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}
.rail_company .line-list li a {
  display: flex;
  align-items: center;
  padding: 0.2em;
  background: var(--white);
  border-radius: var(--radius-small);
  text-decoration: none;
  color: var(--text-color);
  transition: background 0.2s;
}
.rail_company .line-list li a:hover {
  background: var(--gray-light);
}
.rail_company .line-color-mark {
  display: inline-block;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  margin-right: 8px;
  flex-shrink: 0;
}
.rail_company .line-color-mark img {
  width: 24px;
  height: 24px;
  position: relative;
  top: 4px;
  left: 4px;
}

/* ===== 路線ページ専用スタイル ===== */
.line .station-list .line,
.line .station-list .distance {
  display: none;
}

/* ===== 車内トイレ情報コンポーネント ===== */
.train-toilet-info {
  border-left: 4px solid var(--accent-color);
  background: #f0fdf4;
  margin-bottom: 20px;
}
.train-toilet-info h3 {
  margin-top: 0;
  color: var(--accent-color);
  border: none;
  padding-left: 0;
}
.train-toilet-info p {
  margin-bottom: 0;
}

/* PC・タブレット横向き: スマホ幅程度に固定 */
@media screen and (min-width: 769px) {
  body {
    background-image: url(/asset/img/img_title_bg.webp);
    background-size: auto 60vh;
    background-position: left center;
    background-repeat: no-repeat;
    background-attachment: fixed;
  }
  .page-wrapper {
    width: 460px;
    margin: 0 auto;
    background: linear-gradient(180deg, #eefffe, #bfebff);
    background-attachment: fixed;
  }
  header .header-container #global_navi_toggle {
    display: none;
  }
  header .header-container #global_navi {
    border-radius: 0 0 var(--radius-large) var(--radius-large);
    display: block;
    position: absolute;
    top: 0px;
    left: calc(50% + 240px);
    margin: 0;
    padding: 0;
    height: auto;
    width: 16em;
  }
  header .header-container #global_navi ul {
    margin: 0;
    padding: 20px;
  }
}
/* スマホ: 画面幅いっぱいに広げる */
@media screen and (max-width: 768px) {
  .page-wrapper {
    width: 100%;
    margin: 0 auto;
  }
}/*# sourceMappingURL=style.css.map */