/*
Theme Name: The Toilet Talk Tokyo
Theme URI: http://example.com/
Author: あなたの名前
Description: カスタムヘッダー付きのWordPressテーマ
Version: 1.0
*/

html, body {
  height: 100%;
}
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  font-family: 'Noto Sans JP', sans-serif;
}
main {
  flex: 1;
}

.site-header {
  background: #ffe600;
  padding: 20px 0;
}
.main-nav ul {
  display: flex;
  align-items: center;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav li {
  margin: 0 20px;
}
.main-nav a {
  color: #000;
  font-weight: bold;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 16px;
}
.main-nav .icon-home::before { content: "🏠"; font-size: 24px; }
.main-nav .icon-sale::before { content: "🏡"; font-size: 24px; }
.main-nav .icon-reserve::before { content: "📅"; font-size: 24px; }
.main-nav .icon-search::before { content: "🔍"; font-size: 24px; }
.main-nav .icon-ranking::before { content: "👑"; font-size: 24px; }
.main-nav .icon-sns::before { content: "✖"; font-size: 24px; }

.search-form {
  display: flex;
  align-items: center;
}
.search-form input[type="text"] {
  padding: 5px 10px;
  border: none;
  background: #222;
  color: #fff;
  margin-right: 5px;
}
.search-form button {
  background: #222;
  color: #fff;
  border: none;
  padding: 5px 15px;
  cursor: pointer;
}

.site-footer {
  background: #ffe600;
  padding: 30px 0 10px 0;
  text-align: center;
}
.footer-links {
  margin-bottom: 10px;
}
.footer-row {
  margin: 8px 0;
  font-size: 16px;
}
.footer-row a {
  color: #000;
  text-decoration: none;
  font-weight: bold;
  margin: 0 8px;
}
.footer-row a:hover {
  text-decoration: underline;
}
.site-footer p {
  margin: 20px 0 0 0;
  font-size: 14px;
  color: #222;
}

/* ハンバーガーアイコン */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
  margin: 0 10px 0 0;
}
.hamburger span {
  display: block;
  height: 4px;
  width: 28px;
  background: #000;
  margin: 5px 0;
  border-radius: 2px;
  transition: 0.3s;
}

@media (max-width: 768px) {
  .site-header {
    position: relative;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 18px;
  }
  .hamburger {
    display: flex;
    position: static;
    margin-left: auto;
    background: none;
    border: none;
    padding: 0;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    z-index: 1001;
  }
  .hamburger svg {
    width: 36px;
    height: 36px;
    display: block;
  }
  .main-nav ul {
    flex-direction: column;
    background: #ffe600;
    position: fixed;
    top: 0;
    right: 0;
    left: auto;
    width: 70vw;
    max-width: 320px;
    height: 100vh;
    padding-top: 60px;
    transform: translateX(100%);
    transition: transform 0.3s;
    box-shadow: -2px 0 8px rgba(0,0,0,0.08);
    z-index: 1000;
  }
  .main-nav.open ul {
    transform: translateX(0);
  }
  .main-nav ul li {
    margin: 18px 0;
  }
}

/* モーダルスタイル */
.portfolio-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    cursor: pointer;
}

.modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1001;
    pointer-events: none;
}

.modal-image {
    width: 95%;
    height: 95%;
    object-fit: contain;
    pointer-events: auto;
}

.modal-close {
    position: fixed;
    top: 30px;
    right: 30px;
    color: #fff;
    font-size: 50px;
    font-weight: 100;
    cursor: pointer;
    z-index: 1002;
    pointer-events: auto;
    line-height: 1;
    transition: opacity 0.3s ease, transform 0.2s ease;
    opacity: 0.8;
}

.modal-close:hover {
    opacity: 1;
    transform: scale(1.1);
}

.modal-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.3);
    color: white;
    border: none;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 28px;
    border-radius: 5px;
    transition: background-color 0.3s;
    z-index: 1002;
    pointer-events: auto;
}

.modal-nav:hover {
    background: rgba(255, 255, 255, 0.5);
}

.modal-prev {
    left: 20px;
}

.modal-next {
    right: 20px;
}

/* スライダー画像のカーソルスタイル */
.swiper-slide img {
    cursor: pointer;
} 