/* ========================================
   SUMUKA 共通CSS
   全ページで使用するスタイル
   ======================================== */

/* リセット・ベース */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans JP', "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  font-weight: 400;
  color: #222;
  line-height: 1.8;
  background: #fff;
  letter-spacing: 0.05em;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s;
}

/* スキップリンク（アクセシビリティ） */
.skip-link {
  position: absolute;
  top: -100%;
  left: -100%;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  background: #E61E4D;
  color: #fff;
  padding: 10px 20px;
  z-index: 10000;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 8px 0;
}

.skip-link:focus {
  position: fixed;
  top: 0;
  left: 0;
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

/* フォーカススタイル（アクセシビリティ） */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #E61E4D;
  outline-offset: 2px;
}

/* キーボードナビゲーション用フォーカス（マウスクリック時は非表示） */
:focus:not(:focus-visible) {
  outline: none;
}

:focus-visible {
  outline: 2px solid #E61E4D;
  outline-offset: 2px;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.en {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  letter-spacing: 0.1em;
}

/* 電話番号など数字を読みやすく */
.phone-number,
.cta-phone-number,
.price,
.slide-price strong {
  font-family: 'Noto Sans JP', Arial, sans-serif;
  font-weight: 600;
  font-variant-numeric: lining-nums;
}

/* セクションのスクロールオフセット */
.section,
.photo-section,
.host-section {
  scroll-margin-top: 80px;
}

/* ========================================
   ヘッダー
   ======================================== */
.header {
  background: #fff;
  border-bottom: 1px solid #eee;
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  text-decoration: none;
}

.logo-main {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 28px;
  font-weight: 500;
  color: #E61E4D;
  letter-spacing: 0.15em;
}

.logo-sub {
  font-size: 11px;
  color: #444;
  letter-spacing: 0.1em;
  font-weight: 400;
}

/* ========================================
   ハンバーガーメニュー（イコライザースタイル）
   ======================================== */
@keyframes equalizer01 {
  0% { width: 70%; }
  10% { width: 50%; }
  20% { width: 100%; }
  30% { width: 10%; }
  40% { width: 50%; }
  50% { width: 70%; }
  60% { width: 50%; }
  70% { width: 10%; }
  80% { width: 100%; }
  90% { width: 10%; }
  100% { width: 70%; }
}

@keyframes equalizer02 {
  0% { width: 30%; }
  10% { width: 20%; }
  20% { width: 40%; }
  30% { width: 10%; }
  40% { width: 20%; }
  50% { width: 30%; }
  60% { width: 20%; }
  70% { width: 10%; }
  80% { width: 40%; }
  90% { width: 10%; }
  100% { width: 30%; }
}

#navArea {
  position: relative;
}

.toggle_btn {
  display: block;
  position: relative;
  width: 35px;
  height: 22px;
  cursor: pointer;
  z-index: 1002;
  background: transparent;
  border: none;
  padding: 0;
}

.toggle_btn span {
  display: block;
  position: absolute;
  right: 0;
  width: 30px;
  height: 2px;
  background: linear-gradient(135deg, #E61E4D 0%, #D70466 100%);
  transition: all 0.5s;
}

.toggle_btn span:nth-child(1) {
  top: 0;
  animation: equalizer01 7000ms infinite;
}

.toggle_btn span:nth-child(2) {
  top: 10px;
  width: 20px;
  animation: equalizer02 5000ms infinite;
  animation-delay: 0.33s;
}

.toggle_btn span:nth-child(3) {
  top: 20px;
  width: 15px;
  animation: equalizer02 5000ms infinite;
}

#navArea.open .toggle_btn span {
  background: linear-gradient(135deg, #E61E4D 0%, #D70466 100%);
  width: 30px;
}

#navArea.open .toggle_btn span:nth-child(1) {
  transform: translateY(10px) rotate(-45deg);
  animation: unset;
}

#navArea.open .toggle_btn span:nth-child(2) {
  opacity: 0;
  animation: unset;
}

#navArea.open .toggle_btn span:nth-child(3) {
  transform: translateY(-10px) rotate(45deg);
  animation: unset;
}

/* スライドナビ */
#navArea nav {
  display: block;
  position: fixed;
  top: 0;
  right: -95%;
  bottom: 0;
  width: 95%;
  max-width: 500px;
  background: #fff;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transition: 0.5s;
  z-index: 1001;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
}

#navArea.open nav {
  right: 0;
}

#navArea nav .inner {
  padding: 30px 25px 25px;
}

#navArea nav .nav-title {
  font-size: 20px;
  font-weight: bold;
  color: #333;
  margin-bottom: 30px;
}

#navArea nav .nav-category {
  font-size: 12px;
  font-weight: bold;
  color: #333;
  letter-spacing: 1px;
  margin-bottom: 15px;
}

#navArea nav .nav-category-primary {
  color: #E61E4D;
}

#navArea nav .nav-main-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

#navArea nav .nav-main-btn a {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #E61E4D;
  font-size: 15px;
  font-weight: 600;
}

#navArea nav .nav-main-btn .btn-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #E61E4D, #D70466);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 11px;
  font-weight: bold;
}

#navArea nav .nav-divider {
  border: none;
  border-top: 1px dashed #ccc;
  margin: 20px 0;
}

#navArea nav .nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

#navArea nav .nav-list li {
  margin-bottom: 8px;
}

#navArea nav .nav-list li a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #333;
  font-size: 15px;
  padding: 12px 0;
  text-decoration: none;
  transition: opacity 0.2s;
}

#navArea nav .nav-list li a:hover {
  opacity: 0.7;
}

#navArea nav .nav-list li a .arrow-icon {
  width: 32px;
  height: 32px;
  border: 1.5px solid #888;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #888;
  transition: all 0.2s;
}

#navArea nav .nav-list li a:hover .arrow-icon {
  border-color: #E61E4D;
  color: #E61E4D;
}

#navArea nav .nav-gallery-card {
  background: #333;
  border-radius: 12px;
  padding: 15px;
  margin-top: 25px;
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
}

#navArea nav .nav-gallery-card .card-content {
  flex: 1;
}

#navArea nav .nav-gallery-card .card-label {
  font-size: 11px;
  color: #aaa;
  letter-spacing: 1px;
  margin-bottom: 2px;
}

#navArea nav .nav-gallery-card .card-title {
  font-size: 14px;
  color: #fff;
  font-weight: 500;
}

#navArea nav .nav-gallery-card .card-arrow {
  width: 32px;
  height: 32px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #333;
}

/* マスク */
#mask {
  display: none;
}

#navArea.open #mask {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  opacity: 0.6;
  z-index: 1000;
  cursor: pointer;
  transition: all 0.5s;
}

/* ========================================
   物件一覧リンク
   ======================================== */
.nav-properties-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 25px;
  padding: 14px 20px;
  background: #f5f5f5;
  border-radius: 8px;
  color: #333;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s;
}

.nav-properties-link:hover {
  background: #eee;
  color: #E61E4D;
}

.nav-properties-arrow {
  width: 28px;
  height: 28px;
  border: 1.5px solid #888;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #888;
  transition: all 0.2s;
}

.nav-properties-link:hover .nav-properties-arrow {
  border-color: #E61E4D;
  color: #E61E4D;
}

.nav-properties-icon {
  font-size: 16px;
}

/* ========================================
   Room Type セクション（ドロップダウン）
   ======================================== */
.room-type-section {
  margin-top: 20px;
}

.room-type-header {
  font-size: 14px;
  font-weight: 600;
  color: #E61E4D;
  letter-spacing: 2px;
  margin-bottom: 0;
  padding: 14px 20px;
  background: #f5f5f5;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.3s;
}

.room-type-header:hover {
  background: #eee;
  color: #D70466;
}

.room-type-header::after {
  content: '▼';
  font-size: 10px;
  transition: transform 0.3s;
}

.room-type-section.open .room-type-header::after {
  transform: rotate(180deg);
}

.room-type-list {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.room-type-section.open .room-type-list {
  max-height: 1000px;
}

/* トップページに戻るボタン */
.nav-back-home {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 25px;
  padding: 14px 20px;
  background: #f5f5f5;
  border-radius: 8px;
  color: #333;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s;
}

.nav-back-home:hover {
  background: #eee;
  color: #E61E4D;
}

.nav-back-home .home-icon {
  font-size: 16px;
}

.room-type-item {
  display: flex;
  gap: 15px;
  padding: 15px 0;
  border-bottom: 1px solid #eee;
  text-decoration: none;
  color: #333;
  transition: all 0.3s;
}

.room-type-item:hover {
  background: #f8f8f8;
  margin: 0 -15px;
  padding: 15px;
}

.room-type-thumb {
  width: 120px;
  height: 80px;
  background: #ddd;
  border-radius: 8px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: #999;
  overflow: hidden;
}

.room-type-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.room-type-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.room-type-num {
  font-size: 11px;
  color: #5a6a7a;
  letter-spacing: 1px;
  margin-bottom: 2px;
}

.room-type-area {
  font-size: 11px;
  color: #999;
  margin-bottom: 2px;
}

.room-type-name-ja {
  font-size: 15px;
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
}

.room-type-name-en {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  font-family: Georgia, serif;
  letter-spacing: 1px;
}

.room-type-detail {
  margin-top: 8px;
}

.room-type-capacity {
  font-size: 13px;
  color: #333;
  margin-bottom: 2px;
}

.room-type-recommend {
  font-size: 11px;
  color: #5a6a7a;
  display: flex;
  align-items: center;
  gap: 4px;
}

.room-type-recommend::before {
  content: '📍';
  font-size: 10px;
}

.room-type-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #ccc;
}

/* トップページに戻るボタン */
.nav-back-home {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 25px;
  padding: 14px 20px;
  background: #f5f5f5;
  border-radius: 8px;
  color: #333;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s;
}

.nav-back-home:hover {
  background: #eee;
  color: #E61E4D;
}

/* ========================================
   パンくずリスト
   ======================================== */
.breadcrumb {
  background: #f8f8f8;
  padding: 12px 20px;
  font-size: 13px;
}

.breadcrumb-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb-item a {
  color: #666;
  text-decoration: none;
  transition: color 0.3s;
}

.breadcrumb-item a:hover {
  color: #E61E4D;
}

.breadcrumb-item::after {
  content: '>';
  color: #ccc;
  font-size: 11px;
}

.breadcrumb-item:last-child::after {
  display: none;
}

.breadcrumb-item:last-child {
  color: #333;
  font-weight: 500;
}

.breadcrumb-item:last-child a {
  color: #333;
  pointer-events: none;
}

@media screen and (max-width: 767px) {
  .breadcrumb {
    padding: 10px 15px;
    font-size: 12px;
  }

  .breadcrumb-list {
    gap: 6px;
  }
}

/* ========================================
   フッター（4カラムレイアウト）
   ======================================== */
.footer {
  background: #fff;
  color: #333;
  padding: 80px 0 40px;
  border-top: 1px solid #eee;
  margin-top: 40px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-logo {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 24px;
  letter-spacing: 0.15em;
  color: #1a3a4a;
  margin-bottom: 20px;
}

.footer-brand p {
  font-size: 13px;
  line-height: 2;
  color: #666;
}

.footer-links h4 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 12px;
  letter-spacing: 0.15em;
  margin-bottom: 25px;
  color: #c9a86c;
}

.footer-links a {
  display: block;
  font-size: 13px;
  color: #666;
  padding: 8px 0;
  transition: color 0.3s;
  text-decoration: none;
}

.footer-links a:hover {
  color: #1a3a4a;
}

.footer-bottom {
  border-top: 1px solid #eee;
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-size: 11px;
  color: #999;
}

.footer-bottom a {
  color: #999;
  text-decoration: none;
}

.footer-bottom a:hover {
  color: #1a3a4a;
}

/* ========================================
   レスポンシブ
   ======================================== */
@media screen and (max-width: 900px) {
  .header {
    padding: 1% 20px;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media screen and (max-width: 767px) {
  #navArea nav {
    right: -95%;
    width: 95%;
    max-width: 400px;
  }
}

@media screen and (max-width: 500px) {
  .footer {
    padding: 50px 0 30px;
  }
  
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 30px;
  }
  
  /* フッターブランドセクション */
  .footer-brand {
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
  }
  
  /* フッターリンクセクション（MENU, PROPERTIES, AREA） */
  .footer-links {
    text-align: left;
  }
  
  .footer-links h4 {
    text-align: center;
    margin-bottom: 15px;
  }
  
  /* リンクを2列グリッドボタン形式に */
  .footer-links-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  
  .footer-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 10px;
    background: #f5f5f5;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #333;
    text-align: center;
    transition: all 0.3s;
  }
  
  .footer-links a:hover,
  .footer-links a:active {
    background: #eee;
    color: #E61E4D;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 10px;
  }
}

/* ========================================
   固定CTAボタン（画面下部）
   ======================================== */
.fixed-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  padding: 12px 20px;
  opacity: 1;
  transform: translateY(0);
}

.fixed-cta-inner {
  max-width: 500px;
  margin: 0 auto;
}

.fixed-cta-btn {
  display: block;
  width: 100%;
  padding: 16px 20px;
  background: linear-gradient(135deg, #E61E4D, #D70466);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s;
}

.fixed-cta-btn:hover {
  background: linear-gradient(135deg, #D70466, #c00050);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(230, 30, 77, 0.4);
}

/* フッターとの重なり防止 */
body.has-fixed-cta {
  padding-bottom: 80px;
}

/* ナビメニュー開閉時に固定CTAを非表示 */
body.nav-open .fixed-cta {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

/* メニュー開いた時に背景スクロールを防止 */
html.nav-open,
body.nav-open {
  overflow: hidden;
  height: 100%;
}

@media screen and (max-width: 767px) {
  /* スマホ：スクロール時ヘッダー変化 */
  .header {
    transition: padding 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
  }

  .header.scrolled {
    padding: 8px 0;
    background: transparent;
    box-shadow: none;
    border-bottom-color: transparent;
  }

  /* スクロール時：ロゴを非表示 */
  .header.scrolled .logo {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
  }

  .logo {
    transition: opacity 0.3s, visibility 0.3s;
  }

  .logo-main {
    font-size: 16px;
  }

  .logo-sub {
    font-size: 9px;
  }

  /* ハンバーガーボタン - 初期非表示 */
  #navArea {
    position: fixed;
    top: 4%;
    right: 7%;
    transition: top 0.3s ease, right 0.3s ease, background 0.3s ease, padding 0.3s ease, border-radius 0.3s ease, border 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
    background: transparent;
    padding: 0;
    border-radius: 0;
    border-bottom: none;
    opacity: 0;
    visibility: hidden;
  }

  #navArea.loaded {
    opacity: 1;
    visibility: visible;
  }


  /* スクロール時：ハンバーガーボタンに白背景（台形） */
  .header.scrolled #navArea {
    right: 0;
    background: white;
    padding: 15px 5px 15px 3px;
    border-radius: 1%;
    border: none;
    box-shadow: 50px 2px 10px rgba(0, 0, 0, 0.3);
    clip-path: polygon(30% 10%, 100% 0, 100% 85%, 30% 85%);
    border-bottom: 13px solid #000;
    border-left: 20px solid #000;
    border-top: 7px solid rgba(181, 82, 51, 1);
  }

  /* メニュー開いた時：元の位置に戻す */
  .header.scrolled #navArea.open {
    right: 7%;
    background: transparent;
    padding: 0;
    border-radius: 0;
    border: none;
    box-shadow: none;
    clip-path: none;
  }

  /* 固定CTA表示制御 */
  .fixed-cta {
    padding: 10px 15px;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
  }

  .fixed-cta.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .fixed-cta-btn {
    padding: 14px 16px;
    font-size: 15px;
  }

  body.has-fixed-cta {
    padding-bottom: 70px;
  }
}
