/* ===================================
   タイ式マッサージ.COM - メインスタイル
   モダン紫×ラベンダー×ゴールド
   =================================== */

/* ---------- リセット & 基本 ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --purple:      #6e228f;
  --purple-dark: #5c187f;
  --purple-mid:  #8a30b0;
  --purple-lt:   #a848cc;
  --lavender:    #f3e8f9;
  --lavender-mid:#dfc5ed;
  --gold:        #c08820;
  --gold-mid:    #d99a10;
  --gold-lt:     #feeec0;
  --gold-bright: #fcc02c;
  --cream:       #fffbee;
  --gray-lt:     #faf5fc;
  --gray:        #cec7d8;
  --gray-mid:    #bbb3c3;
  --text:        #1F2937;
  --text-lt:     #6B7280;
  --link:        #6e228f;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.7;
}

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--gold-mid); }

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

/* ---------- レイアウト ---------- */
#container {
  width: 100%;
  background: #fff;
}

/* ヘッダー・コンテンツの横幅上限 */
.header-inner {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

/* コンテンツエリアの横幅上限 */
#main {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

/* フッターの内部コンテンツ幅制限 */
#footer ul,
#footer .copyright {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- ヘッダー ---------- */
#header {
  background: linear-gradient(135deg, var(--purple-dark) 0%, var(--purple) 55%, var(--purple-mid) 100%);
  color: #fff;
  padding: 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 14px 24px 12px;
  gap: 8px;
}

.site-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.site-title h1 {
  font-size: clamp(1.1rem, 3.5vw, 1.8rem);
  font-weight: 900;
  letter-spacing: .04em;
  color: var(--gold-lt);
  text-shadow: 0 2px 8px rgba(0,0,0,.3);
  line-height: 1.2;
}

.site-title .subtitle {
  font-size: .78rem;
  color: rgba(255,255,255,.75);
  letter-spacing: .02em;
}

.header-tagline {
  font-size: .82rem;
  color: rgba(255,255,255,.8);
  text-align: right;
}

/* ---------- 検索バー ---------- */
#searchbar {
  background: rgba(0,0,0,.18);
  padding: 16px 24px 18px;
  border-top: 1px solid rgba(255,255,255,.15);
}

#searchbar form {
  display: flex;
  gap: 8px;
  max-width: 640px;
  margin: 0 auto;
  flex-wrap: wrap;
  align-items: stretch;
}

.search-label {
  width: 100%;
  flex-basis: 100%;
  color: var(--gold-lt);
  font-size: .9rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: .03em;
  margin-bottom: 2px;
}

#searchbar input[type="text"] {
  flex: 1 1 220px;
  padding: 11px 16px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  min-width: 0;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
  color: var(--text);
}
#searchbar input[type="text"]::placeholder { color: #A78BFA; }
#searchbar input[type="text"]:focus { box-shadow: 0 0 0 3px var(--gold-lt); }

#searchbar button {
  padding: 11px 24px;
  background: linear-gradient(135deg, var(--gold-mid), var(--gold-bright));
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity .2s, transform .1s;
  box-shadow: 0 2px 8px rgba(180,83,9,.35);
  letter-spacing: .03em;
}
#searchbar button:hover { opacity: .88; transform: translateY(-1px); }

.search-note {
  font-size: .78rem;
  color: rgba(255,255,255,.65);
  text-align: center;
  margin-top: 8px;
}

/* ---------- メインコンテンツ ---------- */
#main {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 0;
}

@media (max-width: 700px) {
  #main { grid-template-columns: 1fr; }
}

/* ---------- サイドバー (left) ---------- */
#left {
  background: var(--gray-lt);
  border-right: 1px solid var(--lavender-mid);
  padding: 18px 12px;
  font-size: .82rem;
}

#left h3 {
  font-size: .82rem;
  font-weight: 700;
  color: var(--purple);
  border-left: 3px solid var(--gold-bright);
  padding-left: 7px;
  margin-bottom: 8px;
  margin-top: 16px;
  letter-spacing: .02em;
}
#left h3:first-child { margin-top: 0; }

#left ul { list-style: none; padding: 0; }
#left ul li { border-bottom: 1px solid var(--lavender-mid); }
#left ul li a {
  display: block;
  padding: 5px 6px;
  color: var(--text);
  font-size: .82rem;
  transition: background .15s, color .15s;
  border-radius: 4px;
}
#left ul li a:hover {
  background: var(--lavender);
  color: var(--purple);
  text-decoration: none;
}

/* サイドバー エリア早見 */
.side-area-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  margin-bottom: 10px;
}
.side-area-grid a {
  display: block;
  background: #fff;
  border: 1px solid var(--lavender-mid);
  text-align: center;
  padding: 5px 2px;
  font-size: .78rem;
  border-radius: 6px;
  color: var(--purple);
  font-weight: 600;
  transition: all .15s;
}
.side-area-grid a:hover {
  background: var(--purple);
  color: #fff;
  border-color: var(--purple);
  text-decoration: none;
}

/* ---------- 中央コンテンツ ---------- */
#middle {
  padding: 24px 32px;
  min-width: 0;
}

/* ---------- エリアナビ タイトル ---------- */
.page-heading {
  background: linear-gradient(90deg, var(--purple) 0%, var(--purple-mid) 100%);
  color: #fff;
  padding: 11px 18px;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: 10px 10px 0 0;
  margin-bottom: 0;
  letter-spacing: .02em;
}

/* ---------- 都道府県テーブル (トップ) ---------- */
.pref-section {
  border: 1px solid var(--lavender-mid);
  border-top: none;
  margin-bottom: 24px;
  border-radius: 0 0 10px 10px;
  overflow: hidden;
}

.pref-row {
  display: flex;
  border-bottom: 1px solid var(--lavender-mid);
  align-items: stretch;
}
.pref-row:last-child { border-bottom: none; }
.pref-row:nth-child(even) { background: #FAFAFE; }

.pref-label {
  background: var(--lavender);
  width: 80px;
  min-width: 80px;
  font-size: .8rem;
  font-weight: 700;
  padding: 7px 8px;
  border-right: 1px solid var(--lavender-mid);
  display: flex;
  align-items: center;
  color: var(--purple-dark);
}

.pref-links {
  flex: 1;
  padding: 6px 10px;
  font-size: .85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2px 0;
  align-items: center;
}

.pref-links a {
  padding: 2px 8px;
  color: var(--text);
  display: inline-block;
  border-right: 1px solid var(--gray);
  transition: color .15s;
}
.pref-links a:last-child { border-right: none; }
.pref-links a:hover { color: var(--purple); text-decoration: none; }

/* ---------- エリアページ (東京など) ---------- */
.area-nav {
  border: 1px solid var(--lavender-mid);
  border-top: none;
  margin-bottom: 20px;
  border-radius: 0 0 10px 10px;
  overflow: hidden;
}

.area-nav-row {
  display: flex;
  border-bottom: 1px solid var(--lavender-mid);
  align-items: stretch;
}
.area-nav-row:last-child { border-bottom: none; }
.area-nav-row:nth-child(even) { background: #FAFAFE; }

.area-nav-label {
  background: var(--lavender);
  width: 50px;
  min-width: 50px;
  font-size: .85rem;
  font-weight: 700;
  color: var(--purple-dark);
  padding: 6px 8px;
  border-right: 1px solid var(--lavender-mid);
  display: flex;
  align-items: center;
  justify-content: center;
}

.area-nav-links {
  flex: 1;
  padding: 5px 10px;
  font-size: .85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2px 0;
  align-items: center;
}

.area-nav-links a {
  padding: 2px 8px;
  border-right: 1px solid var(--gray);
  color: var(--text);
  transition: color .15s;
}
.area-nav-links a:last-child { border-right: none; }
.area-nav-links a:hover { color: var(--purple); text-decoration: none; }

/* ---------- 検索結果 ---------- */
.result-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.result-keyword {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--purple);
}

.result-count {
  background: linear-gradient(135deg, var(--purple), var(--purple-mid));
  color: #fff;
  font-size: .82rem;
  font-weight: 700;
  padding: 2px 12px;
  border-radius: 20px;
}

.result-back {
  font-size: .82rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border: 1px solid var(--gray-mid);
  border-radius: 6px;
  color: var(--text-lt);
  transition: all .15s;
}
.result-back:hover { background: var(--lavender); text-decoration: none; }

/* 結果セクション タイトル */
.result-section {
  margin-bottom: 24px;
}

.section-title {
  background: linear-gradient(90deg, var(--purple) 0%, var(--purple-mid) 100%);
  color: #fff;
  font-size: .95rem;
  font-weight: 700;
  padding: 10px 18px;
  margin: 0 0 0;
  border-radius: 10px 10px 0 0;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: .02em;
}

.section-title.ichioshi {
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-bright) 100%);
}
.section-title.osusume {
  background: linear-gradient(90deg, var(--purple-dark) 0%, var(--purple) 100%);
}
.section-title.list {
  background: linear-gradient(90deg, #374151 0%, #6B7280 100%);
}

.badge {
  font-size: .72rem;
  background: rgba(255,255,255,.25);
  padding: 1px 8px;
  border-radius: 12px;
  font-weight: 600;
}

/* 店舗カード */
.shop-card {
  border: 1px solid var(--gray-mid);
  border-top: none;
  padding: 16px 20px;
  background: #fff;
  transition: background .15s, box-shadow .15s;
}
.shop-card:last-child {
  border-radius: 0 0 10px 10px;
}
.shop-card:hover {
  background: var(--gray-lt);
  box-shadow: inset 3px 0 0 var(--purple-lt);
}
.shop-card + .shop-card { border-top: none; }

.shop-name {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 5px;
}
.shop-name a { color: var(--purple); }
.shop-name a:hover { color: var(--gold-mid); text-decoration: none; }

.shop-name .tag-ichioshi {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold), var(--gold-bright));
  color: #fff;
  font-size: .68rem;
  padding: 2px 8px;
  border-radius: 12px;
  margin-right: 6px;
  vertical-align: middle;
  font-weight: 700;
  letter-spacing: .03em;
}
.shop-name .tag-osusume {
  display: inline-block;
  background: linear-gradient(135deg, var(--purple), var(--purple-mid));
  color: #fff;
  font-size: .68rem;
  padding: 2px 8px;
  border-radius: 12px;
  margin-right: 6px;
  vertical-align: middle;
  font-weight: 700;
  letter-spacing: .03em;
}

.shop-meta {
  font-size: .85rem;
  color: var(--text-lt);
  line-height: 1.7;
}

.shop-meta span.label {
  font-weight: 700;
  color: var(--purple-dark);
  margin-right: 3px;
}

.shop-comment {
  font-size: .82rem;
  color: #4B5563;
  background: var(--lavender);
  border-left: 3px solid var(--gold-bright);
  padding: 8px 12px;
  margin-top: 8px;
  border-radius: 0 6px 6px 0;
}

.shop-footer {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.btn-url {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 16px;
  border-radius: 8px;
  font-size: .82rem;
  font-weight: 700;
  transition: all .15s;
  text-decoration: none;
  letter-spacing: .02em;
}

.btn-ichioshi {
  background: linear-gradient(135deg, var(--gold), var(--gold-bright));
  color: #fff;
  border: none;
  box-shadow: 0 2px 6px rgba(180,83,9,.3);
}
.btn-ichioshi:hover {
  opacity: .85;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(180,83,9,.35);
  text-decoration: none;
  color: #fff;
}

.btn-osusume {
  background: linear-gradient(135deg, var(--purple), var(--purple-mid));
  color: #fff;
  border: none;
  box-shadow: 0 2px 6px rgba(91,33,182,.3);
}
.btn-osusume:hover {
  opacity: .85;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(91,33,182,.35);
  text-decoration: none;
  color: #fff;
}

.btn-url-plain {
  background: #4B5563;
  color: #fff;
  border: none;
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
}
.btn-url-plain:hover {
  background: #374151;
  transform: translateY(-1px);
  text-decoration: none;
  color: #fff;
}

.icon-coupon {
  display: inline-block;
  background: linear-gradient(135deg, #DC2626, #EF4444);
  color: #fff;
  font-size: .68rem;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
  letter-spacing: .02em;
}

.icon-waiwai {
  display: inline-block;
  background: linear-gradient(135deg, #065F46, #059669);
  color: #fff;
  font-size: .68rem;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
}

/* 結果なし */
.no-result {
  padding: 48px 20px;
  text-align: center;
  color: var(--text-lt);
  font-size: 1rem;
}

/* ---------- フッター ---------- */
#footer {
  background: linear-gradient(135deg, var(--purple-dark) 0%, var(--purple) 100%);
  color: rgba(255,255,255,.8);
  padding: 16px 24px;
}

#footer ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

#footer ul li {
  font-size: .8rem;
}

#footer ul li a {
  color: rgba(255,255,255,.8);
  padding: 3px 12px;
  border-right: 1px solid rgba(255,255,255,.2);
  display: inline-block;
  transition: color .15s;
}
#footer ul li:last-child a { border-right: none; }
#footer ul li a:hover { color: var(--gold-lt); text-decoration: none; }

#footer .copyright {
  text-align: center;
  font-size: .78rem;
  color: rgba(255,255,255,.45);
  margin-top: 10px;
}

/* ---------- パンくず ---------- */
.breadcrumb {
  font-size: .8rem;
  padding: 8px 22px;
  background: var(--lavender);
  border-bottom: 1px solid var(--lavender-mid);
  color: var(--text-lt);
}
.breadcrumb a { color: var(--purple); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 5px; color: var(--gray-mid); }

/* ---------- 新着サロン (index) ---------- */
.top-section-title {
  font-size: .95rem;
  font-weight: 700;
  color: var(--purple);
  border-bottom: 2px solid var(--gold-bright);
  padding-bottom: 5px;
  margin: 20px 0 10px;
}

/* ---------- ボタンナビ ---------- */
.nav-buttons {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.nav-btn {
  display: inline-block;
  padding: 7px 16px;
  background: linear-gradient(135deg, var(--purple), var(--purple-mid));
  color: #fff;
  border-radius: 8px;
  font-size: .85rem;
  font-weight: 700;
  transition: opacity .15s, transform .1s;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(91,33,182,.25);
}
.nav-btn:hover {
  opacity: .85;
  transform: translateY(-1px);
  color: #fff;
  text-decoration: none;
}

.nav-btn.secondary {
  background: linear-gradient(135deg, #4B5563, #6B7280);
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
}

/* ---------- タイ式イメージ帯 ---------- */
.thai-banner {
  background: linear-gradient(135deg, var(--purple-dark) 0%, var(--purple) 100%);
  color: var(--gold-lt);
  text-align: center;
  padding: 10px;
  font-size: .88rem;
  letter-spacing: .05em;
}

/* ---------- レスポンシブ ---------- */
@media (max-width: 700px) {
  #main { grid-template-columns: 1fr; }
  #left {
    border-right: none;
    border-bottom: 1px solid var(--lavender-mid);
    padding: 12px;
  }
  #middle { padding: 14px 16px; }
  .header-inner { padding: 10px 16px 8px; }
  .site-title h1 { font-size: 1.2rem; }
  .pref-label { width: 60px; min-width: 60px; font-size: .75rem; }
  .area-nav-label { width: 38px; min-width: 38px; font-size: .78rem; }
  #searchbar { padding: 12px 16px 14px; }
}

@media (max-width: 480px) {
  #footer ul { flex-direction: column; }
  #footer ul li a { border-right: none; border-bottom: 1px solid rgba(255,255,255,.1); }
}
