/*
Theme Name: Original - Salon
Theme URI: https://example.com/
Author: Your Name
Author URI: https://example.com/
Description: よくあるサロン向けのブロックテーマ(シンプルで予約CTAを含む)
Version: 3.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: original
Tags: salon, business, one-column, block-style
*/

/* ========== ベーシックリセット ==========
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; padding: 0; overflow-x: hidden; }
body {
  font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: #ffffff;
  color: #333;
  line-height: 1.8;
  font-size: 16px;
}

/* WordPress Block List Reset */
.wp-block-list {
  list-style: none !important;
  padding-left: 0 !important;
  margin-left: 0 !important;
}
.wp-block-list li {
  list-style: none !important;
  padding-left: 0 !important;
  margin-left: 0 !important;
}
.wp-block-list li::before {
  display: none !important;
  content: none !important;
}

/* Remove default WordPress padding */
.wp-site-blocks {
  padding: 0 !important;
}
.alignfull {
  margin-left: 0 !important;
  margin-right: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
}

a { color: #b96b6b; text-decoration: none; transition: all 0.3s ease; }
a:hover { color: #8a3f3f; }
img { max-width: 100%; height: auto; display: block; }

/* Hide default WordPress post content on front page */
.home .entry-content,
.home .post-content,
.home article.post,
.home .hentry {
  display: none;
}

/* ========== ヘッダー ========== */
.site-header {
  background: #ffffff;
  padding: 0;
  border-bottom: 1px solid #eee;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  position: sticky;
  top: 0;
  z-index: 999;
}
.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 24px;
}

/* モバイルメニュートグル */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}
.mobile-menu-toggle span {
  width: 28px;
  height: 3px;
  background: #333;
  border-radius: 2px;
  transition: all 0.3s ease;
}
.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}
.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* ロゴサイズ調整 */
.wp-block-site-logo img {
  max-width: 120px !important;
  width: 120px !important;
  height: auto;
}

/* ナビゲーションメニュー */
.header-right .wp-block-list.main-nav-list,
ul.main-nav-list,
.main-nav-list {
  display: flex !important;
  list-style: none !important;
  gap: 32px !important;
  margin: 0 !important;
  padding: 0 !important;
  align-items: center !important;
  flex-direction: row !important;
}
.header-right .wp-block-list.main-nav-list li,
ul.main-nav-list li,
.main-nav-list li {
  margin: 0 !important;
  padding: 0 !important;
  position: relative !important;
  list-style: none !important;
  list-style-type: none !important;
}
.header-right .wp-block-list.main-nav-list li::before,
ul.main-nav-list li::before,
.main-nav-list li::before,
.header-right .wp-block-list.main-nav-list li::marker,
ul.main-nav-list li::marker,
.main-nav-list li::marker {
  display: none !important;
  content: none !important;
}
.header-right .wp-block-list.main-nav-list li a,
ul.main-nav-list li a,
.main-nav-list li a,
.main-nav-list a {
  color: #333 !important;
  font-weight: 500 !important;
  padding: 6px 8px !important;
  transition: all 0.3s ease !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  align-items: center !important;
  position: relative !important;
  text-decoration: none !important;
  line-height: 1 !important;
  border: none !important;
  background: none !important;
}
.main-nav-list .nav-ja {
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  color: #555 !important;
  line-height: 1.3 !important;
  margin-bottom: 2px !important;
  display: block !important;
}
.main-nav-list .nav-en {
  font-size: 0.65rem !important;
  font-weight: 400 !important;
  color: #999 !important;
  text-transform: capitalize !important;
  letter-spacing: 0.02em !important;
  line-height: 1 !important;
  display: block !important;
}
.main-nav-list a:hover .nav-ja {
  color: #5a9fb5 !important;
}
.main-nav-list a:hover .nav-en {
  color: #5a9fb5 !important;
}
.site-branding { align-items: center; gap: 12px; }
.site-title { font-size: 1.35rem; margin: 0; font-weight: 600; color: #3b2b2b; }
.site-tagline { margin: 0; color: #888; font-size: 0.85rem; }
.header-right { gap: 24px; align-items: center; }
.main-nav { flex: 1; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.main-nav li { margin: 0; }
.main-nav a {
  padding: 8px 16px;
  color: #555;
  font-weight: 500;
  display: block;
  border-radius: 4px;
  transition: all 0.3s ease;
}
.main-nav a:hover {
  color: #b96b6b;
  background: #f9f5f4;
}
.main-nav .current-menu-item a,
.main-nav .current_page_item a {
  color: #b96b6b;
  background: #fff7f6;
}
.btn-reserve .wp-block-button__link {
  background: #b96b6b;
  color: #fff;
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 600;
  border: none;
}
.btn-reserve .wp-block-button__link:hover { background: #8a3f3f; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(185,107,107,0.3); }

/* ========== ヒーロー ========== */
.site-hero {
  background: linear-gradient(135deg, #f9f5f4 0%, #ffe8e1 100%);
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.site-hero .wp-block-cover__inner-container { padding: 60px 24px; max-width: 800px; margin: 0 auto; }
.hero-title {
  font-size: 2.75rem;
  margin: 0 0 16px;
  color: #3b2b2b;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.hero-subtitle {
  color: #5a4b4b;
  margin: 0 0 32px;
  font-size: 1.1rem;
  line-height: 1.8;
}
.hero-buttons { gap: 16px; }
.btn-hero-primary .wp-block-button__link {
  background: #b96b6b;
  color: #fff;
  padding: 14px 36px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.05rem;
  border: 2px solid #b96b6b;
}
.btn-hero-primary .wp-block-button__link:hover {
  background: #8a3f3f;
  border-color: #8a3f3f;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(185,107,107,0.4);
}
.btn-hero-secondary .wp-block-button__link {
  background: transparent;
  color: #b96b6b;
  padding: 14px 36px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.05rem;
  border: 2px solid #b96b6b;
}
.btn-hero-secondary .wp-block-button__link:hover {
  background: #b96b6b;
  color: #fff;
  transform: translateY(-2px);
}

/* ========== 特徴セクション ========== */
.section-features {
  padding: 0;
  background: #ffffff;
}
.section-features .wp-block-group__inner-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.feature-cards { gap: 32px; }
.feature-card { text-align: center; padding: 24px; }
.feature-icon { font-size: 3rem; margin-bottom: 16px; }
.feature-card h3 { margin: 12px 0 8px; font-size: 1.2rem; color: #3b2b2b; }
.feature-card p { color: #666; font-size: 0.95rem; }

/* ========== メニューセクション ========== */
.section-menu {
  padding: 0;
  position: relative;
}
.section-menu .wp-block-group__inner-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.section-menu::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to bottom right, #ffffff 50%, #e8f6f8 50%);
  pointer-events: none;
}
.section-title {
  font-size: 2.2rem;
  margin: 0 0 8px;
  color: #3b2b2b;
  font-weight: 700;
}
.section-subtitle {
  color: #b96b6b;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 24px;
}
.menu-cards { gap: 24px; }
.menu-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin: 0 16px;
  padding: 16px;
}
.menu-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.menu-image { aspect-ratio: 4/3; object-fit: cover; }
.menu-content { padding: 20px; }
.menu-card h3 { margin: 0 0 10px; font-size: 1.3rem; color: #3b2b2b; }
.menu-card p { color: #666; font-size: 0.95rem; line-height: 1.6; }
.menu-price {
  color: #b96b6b !important;
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  margin-top: 12px !important;
}

/* ========== CTAセクション ========== */
.section-cta {
  position: relative;
  padding: 0;
  background-color: #e8f6f8;
}
.section-cta .wp-block-group__inner-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.section-cta h2 {
  padding-top: 120px;
}

.btn-outline .wp-block-button__link {
  background: transparent;
  color: #b96b6b;
  padding: 12px 32px;
  border-radius: 50px;
  border: 2px solid #b96b6b;
  font-weight: 600;
}
.btn-outline .wp-block-button__link:hover {
  background: #b96b6b;
  color: #fff;
}

/* ========== LINEお問い合わせセクション ========== */
.section-line-contact {
  position: relative;
  padding: 0;
}
.section-line-contact .wp-block-group__inner-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.section-line-contact h2 {
  padding-top: 120px;
}
.line-contact-box {
  background: #ffffff;
  padding: 40px;
  border-radius: 16px;
  margin: 0 auto;
}
.wp-block-button.btn-line .wp-block-button__link,
.btn-line .wp-block-button__link,
.btn-line a.wp-block-button__link,
a.wp-block-button__link.btn-line {
  background: #06C755 !important;
  background-color: #06C755 !important;
  color: #ffffff !important;
  padding: 16px 40px !important;
  border-radius: 50px !important;
  font-weight: 600 !important;
  font-size: 1.1rem !important;
  transition: all 0.3s ease !important;
  border: none !important;
}
.wp-block-button.btn-line .wp-block-button__link:hover,
.btn-line .wp-block-button__link:hover,
.btn-line a.wp-block-button__link:hover {
  background: #05B04A !important;
  background-color: #05B04A !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(6, 199, 85, 0.3) !important;
}

/* ========== CTAセクション ========== */
.section-cta { padding: 0 24px; }
.section-cta h2 { font-size: 2rem; color: #3b2b2b; margin: 0 0 12px; }
.cta-columns { gap: 40px; margin-top: 32px; }
.cta-phone, .cta-online {
  background: #fff;
  padding: 32px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.phone-number {
  font-size: 2rem;
  font-weight: 700;
  color: #b96b6b;
  margin: 12px 0 8px;
}
.btn-phone .wp-block-button__link {
  background: #4CAF50;
  color: #fff;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
}
.btn-phone .wp-block-button__link:hover {
  background: #45a049;
}
.btn-online .wp-block-button__link {
  background: #b96b6b;
  color: #fff;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
}
.btn-online .wp-block-button__link:hover {
  background: #8a3f3f;
}

/* ========== 固定ページ ========== */
.page-main {
  background: #ffffff;
  min-height: 60vh;
}
.page-header {
  text-align: center;
  padding: 0 24px;
}
.page-header h1,
.page-header .wp-block-post-title {
  font-size: 2.5rem;
  color: #3b2b2b;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
}
.page-content {
  padding: 0 24px;
}
.page-content h2 {
  font-size: 1.8rem;
  color: #3b2b2b;
  font-weight: 600;
  margin: 40px 0 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #5a9fb5;
}
.page-content h3 {
  font-size: 1.4rem;
  color: #3b2b2b;
  font-weight: 600;
  margin: 32px 0 16px;
}
.page-content p {
  line-height: 1.8;
  margin: 16px 0;
  color: #555;
}
.page-content ul,
.page-content ol {
  padding-left: 24px;
  margin: 16px 0;
  line-height: 1.8;
}
.page-content li {
  margin: 8px 0;
  color: #555;
}
.page-content a {
  color: #5a9fb5;
  text-decoration: underline;
  transition: opacity 0.3s ease;
}
.page-content a:hover {
  opacity: 0.7;
}
.page-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 24px 0;
}
.page-content .wp-block-image {
  margin: 24px 0;
}

/* ========== フッター ========== */
.site-footer {
  padding: 60px 0 30px;
  background: #5a9fb5 !important;
  color: #ffffff !important;
}
.site-footer .wp-block-group__inner-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.site-footer h3 {
  color: #ffffff !important;
  font-size: 1.2rem;
  margin-bottom: 20px;
  font-weight: 600;
}
.site-footer p {
  color: #ffffff !important;
  line-height: 1.8;
  margin: 0;
}
.site-footer a {
  color: #ffffff !important;
  text-decoration: none;
  transition: opacity 0.3s ease;
}
.site-footer a:hover {
  opacity: 0.8;
  color: #ffffff !important;
}
.site-footer .wp-block-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.site-footer .wp-block-list li {
  margin-bottom: 12px;
}
.site-footer .wp-block-list a {
  display: inline-block;
  padding: 4px 0;
}
.footer-columns {
  gap: 48px;
  margin-bottom: 40px;
  padding: 0 18px;
}
.footer-separator {
  border-color: rgba(255, 255, 255, 0.3) !important;
  margin: 40px 0 30px;
}
.footer-social {
  margin-top: 16px;
  gap: 12px;
}
.footer-social .wp-social-link {
  background: rgba(255, 255, 255, 0.2) !important;
  transition: background 0.3s ease;
}
.footer-social .wp-social-link:hover {
  background: rgba(255, 255, 255, 0.4) !important;
}
.footer-social .wp-social-link svg {
  fill: #ffffff !important;
}

/* ========== 投稿カード ========== */
.post-card {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: box-shadow 0.3s ease;
}
.post-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.post-card h2, .post-card h3 { margin-top: 0; color: #3b2b2b; }

/* ========== 料金表 ========== */
.price-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  background: #fff;
}
.price-table td {
  padding: 16px;
  border-bottom: 1px solid #f0eaea;
}
.price-table td:first-child { font-weight: 500; color: #555; }
.price-table td:last-child {
  text-align: right;
  color: #b96b6b;
  font-weight: 700;
  font-size: 1.1rem;
}

/* ========== レスポンシブ ========== */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }

  .main-nav-list {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: #ffffff;
    flex-direction: column;
    gap: 0;
    padding: 80px 0 20px;
    box-shadow: -4px 0 20px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    z-index: 1000;
  }

  .main-nav-list.active {
    right: 0;
  }

  .main-nav-list li {
    width: 100%;
    border-bottom: 1px solid #f0f0f0;
  }

  .main-nav-list a {
    padding: 18px 24px;
    font-size: 1.1rem;
    border-radius: 0;
  }

  .main-nav-list a::before {
    display: none;
  }

  .header-cta {
    margin-left: auto;
  }

  .btn-reserve .wp-block-button__link {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .hero-title { font-size: 1.8rem; }
  .hero-subtitle { font-size: 1rem; }
  .section-title { font-size: 1.75rem; }
  .menu-card { margin-bottom: 20px; }
  .cta-columns { gap: 24px; }
  .footer-columns { gap: 32px; }
}

/* ========== Booking Package Services Grid ========== */
.bkp-services-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 40px 20px;
  max-width: 800px;
  margin: 0 auto;
}

.bkp-service-card {
  background: #ffffff;
  border-bottom: 1px solid #f0f0f0;
  padding: 24px 0;
  transition: background 0.3s ease;
}

.bkp-service-card:hover {
  background: #fafafa;
}

.bkp-service-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bkp-service-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 4px;
}

.bkp-service-title-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.bkp-service-time-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #d4a5a5;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 14px;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1.4;
}

.bkp-service-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #333;
  margin: 0 !important;
  line-height: 1.4;
}

.bkp-service-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: #333;
  white-space: nowrap;
}

.bkp-service-description-wrapper {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bkp-service-description-preview {
  font-size: 0.85rem;
  color: #888;
  line-height: 1.7;
  white-space: normal;
  word-wrap: break-word;
}

.bkp-service-description-full {
  font-size: 0.85rem;
  color: #888;
  line-height: 1.7;
  white-space: pre-line;
  word-wrap: break-word;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.bkp-description-toggle {
  background: none;
  border: none;
  color: #888;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 4px 0;
  text-align: left;
  transition: color 0.3s ease;
  letter-spacing: 0.1em;
}

.bkp-description-toggle:hover {
  color: #666;
}

.bkp-description-toggle.expanded .toggle-text {
  color: #b96b6b;
}

@media (max-width: 768px) {
  .bkp-services-grid {
    padding: 24px 16px;
  }

  .bkp-service-card {
    gap: 16px;
    padding: 20px 0;
  }

  .bkp-service-icon {
    width: 45px;
    height: 45px;
  }

  .bkp-service-icon .service-number {
    font-size: 0.6rem;
  }

  .bkp-service-name {
    font-size: 1rem;
  }

  .bkp-service-price {
    font-size: 1rem;
  }

  .bkp-service-description-preview,
  .bkp-service-description-full {
    font-size: 0.8rem;
  }
}
