/*
Theme Name: South City
Author: Yusuke Kondo (South City Co., Ltd.)
Description: South City Design By Tokyo, New Urban Style. ONLINE STORE Custom Theme
Version: 1.0.0
Text Domain: southcity
*/

/* =========================================
   1. 変数定義・リセット・ベース
   ========================================= */
:root {
  --bg-color: #f4f4f0; 
  --text-main: #1a1a1a; 
  --text-muted: #666666; 
  --border-color: #d1d1c7; 
  --btn-bg: #1a1a1a;
  --btn-text: #f4f4f0;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* =========================================
   2. タイポグラフィ
   ========================================= */
.font-oswald {
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.font-mono {
  font-family: 'Space Mono', monospace;
}
.font-serif {
  font-family: 'Noto Serif JP', serif;
}

/* =========================================
   3. 共通ヘッダー（黒ベース・白文字）
   ========================================= */
header {
  position: fixed;
  top: 0;
  width: 100%;
  height: 80px;
  padding: 0 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  background: #050505;
  border-bottom: 1px solid #222222;
  transition: background 0.3s ease, border-bottom 0.3s ease, backdrop-filter 0.3s ease;
}

header.scrolled {
  background: rgba(5, 5, 5, 0.95);
  border-bottom: 1px solid #333333;
  backdrop-filter: blur(4px);
}

.header-logo-img {
  height: 24px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -4px;
  left: 0;
  background-color: #ffffff;
  transition: width 0.3s;
}

.nav-links a:hover::after {
  width: 100%;
}

.header-cart {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  border-left: 1px solid #333333;
  padding-left: 2rem;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 101;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: #ffffff;
  transition: all 0.3s ease;
}

/* =========================================
   4. トップページ：HERO & 共通セクション
   ========================================= */
.hero {
  padding: 80px 0 0 0; 
  display: flex;
  flex-direction: column;
}

.hero-image-container {
  width: 100%;
  aspect-ratio: 32 / 9; 
  overflow: hidden;
  position: relative;
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-size: cover;
  background-position: center;
  filter: grayscale(20%) contrast(1.1);
  opacity: 0;
  transition: opacity 2.5s ease-in-out;
}

.hero-image.active {
  opacity: 1;
  z-index: 1;
}

.hero-text-overlay {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  background: rgba(244, 244, 240, 0.85); 
  backdrop-filter: blur(8px); 
  padding: 1.5rem 2rem;
  border: 1px solid var(--border-color);
  z-index: 10;
}

.hero-title {
  font-size: 3rem;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.hero-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  letter-spacing: 0.2em;
}

.spec-bar {
  display: flex;
  justify-content: space-between;
  padding: 1.5rem 3rem;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.section-container {
  padding: 8rem 3rem;
  max-width: 1600px;
  margin: 0 auto;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 400;
}

.view-all {
  font-size: 0.85rem;
  color: var(--text-main);
  text-decoration: none;
  border-bottom: 1px solid var(--text-main);
  padding-bottom: 2px;
}

/* =========================================
   5. 下層ページ全般（タイトル位置・余白）
   ========================================= */
.detail-main {
  padding: 120px 3rem 8rem;
  max-width: 1400px;
  margin: 0 auto;
}

.breadcrumbs {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 3rem !important;
  letter-spacing: 0.1em;
}

.breadcrumbs a {
  color: var(--text-muted);
  text-decoration: none;
}

.breadcrumbs span {
  margin: 0 0.5rem;
}

.detail-main .section-header {
  margin-bottom: 4rem !important;
  align-items: flex-end;
}

.detail-main .section-title {
  font-size: 3.5rem !important;
  line-height: 1;
  margin-bottom: 0 !important;
}

.detail-main .section-header span {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding-bottom: 0.2rem;
}

/* =========================================
   6. プロダクト・ギャラリー・ジャーナル関連
   ========================================= */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 4rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
}

.filter-bar a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  transition: color 0.3s;
}

.filter-bar a:hover,
.filter-bar a.active {
  color: var(--text-main);
  font-weight: 700;
  border-bottom: 2px solid var(--text-main);
  padding-bottom: 0.9rem;
  margin-bottom: -1rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4rem;
}

.product-card {
  text-decoration: none;
  color: var(--text-main);
  display: block;
}

.product-img-wrap {
  overflow: hidden;
  aspect-ratio: 4/5;
  background: #e8e8e3;
  margin-bottom: 1.5rem;
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
  mix-blend-mode: multiply;
}

.product-card:hover .product-img {
  transform: scale(1.05);
}

.product-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.product-name {
  font-size: 1.2rem;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-top: 1px dashed var(--border-color);
  padding-top: 0.5rem;
}

.journal-section {
  border-top: 1px solid var(--border-color);
  padding-top: 8rem;
}

.journal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.journal-text p {
  line-height: 2;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.journal-img {
  width: 100%;
  aspect-ratio: 16/9;
  background: #ddd;
  object-fit: cover;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.gallery-img-wrap {
  overflow: hidden;
  aspect-ratio: 4/5;
  background: #e8e8e3;
}

.gallery-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(30%);
  transition: filter 0.5s;
}

.gallery-img-wrap img:hover {
  filter: grayscale(0%);
}

/* =========================================
   7. 商品詳細ページ
   ========================================= */
.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.main-image-wrap {
  width: 100%;
  aspect-ratio: 4/5;
  background: #e8e8e3;
  overflow: hidden;
}

.main-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: multiply;
}

.thumbnail-list {
  display: flex;
  gap: 1rem;
}

.thumbnail-wrap {
  width: 80px;
  aspect-ratio: 4/5;
  background: #e8e8e3;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.3s;
}

.thumbnail-wrap:hover,
.thumbnail-wrap.active {
  opacity: 1;
}

.thumbnail-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: multiply;
}

.product-info-wrap {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.product-title {
  font-size: 2.5rem;
  line-height: 1.2;
}

.product-price-sku {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.5rem;
}

.price {
  font-size: 1.5rem;
}

.sku {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.product-desc {
  font-size: 0.95rem;
  line-height: 2;
  color: var(--text-muted);
}

.details-accordion {
  margin-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.details-row {
  border-bottom: 1px solid var(--border-color);
  padding: 1.5rem 0;
}

.details-title {
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.size-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.size-table th,
.size-table td {
  padding: 0.8rem 0;
  border-bottom: 1px dashed var(--border-color);
  text-align: left;
}

.size-table th {
  color: var(--text-muted);
  font-weight: normal;
}

/* =========================================
   8. カート & チェックアウト
   ========================================= */
.cart-container,
.checkout-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 5rem;
  align-items: start;
}

.cart-table {
  width: 100%;
  border-collapse: collapse;
}

.cart-table th {
  padding: 1rem 0;
  text-align: left;
  border-bottom: 1px solid var(--text-main);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.cart-table td {
  padding: 2rem 0;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}

.cart-item-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.cart-item-thumb {
  width: 70px;
  aspect-ratio: 4/5;
  background: #e8e8e3;
  overflow: hidden;
}

.cart-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: multiply;
}

.cart-summary {
  background: #e8e8e3;
  padding: 2.5rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 1px dashed var(--border-color);
  font-size: 0.9rem;
}

.total-row {
  border: none;
  font-weight: 700;
  color: var(--text-main);
}

/* =========================================
   9. NEWS ページ
   ========================================= */
.news-item {
  display: grid;
  grid-template-columns: 140px 280px 1fr;
  gap: 3rem;
  padding: 3rem 0;
  border-bottom: 1px solid var(--border-color);
  align-items: start;
}

.news-date {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.news-tag {
  display: inline-block;
  font-size: 0.75rem;
  border: 1px solid var(--border-color);
  padding: 0.2rem 0.5rem;
  margin-top: 0.5rem;
  letter-spacing: 0;
}

.news-thumb-wrap {
  width: 100%;
  aspect-ratio: 16/9;
  background: #e8e8e3;
  overflow: hidden;
}

.news-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(20%);
  transition: filter 0.3s;
}

.news-item:hover .news-thumb-wrap img {
  filter: grayscale(0%);
}

.news-body h2 {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.news-body h2 a {
  color: var(--text-main);
  text-decoration: none;
  transition: color 0.3s;
}

.news-body h2 a:hover {
  color: var(--text-muted);
}

.news-body p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.8;
}

/* =========================================
   10. COLLECTION ページ (PC版)
   ========================================= */
.collection-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8rem;
}

.collection-block {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 6rem;
  align-items: center;
}

.collection-block:nth-child(even) {
  grid-template-columns: 7fr 5fr;
}

.collection-img-wrap {
  aspect-ratio: 4/5 !important;
  overflow: hidden;
  background: #e8e8e3;
  width: 100%;
}

.collection-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: multiply;
  transition: transform 0.7s ease;
}

.collection-block:hover .collection-img-wrap img {
  transform: scale(1.03);
}

.collection-season {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.5rem;
}

.collection-title-text {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.collection-desc {
  color: var(--text-muted);
  line-height: 2;
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.collection-status {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.collection-block:nth-child(even) .past-img-order { order: 2; }
.collection-block:nth-child(even) .past-text-order { order: 1; }

/* =========================================
   11. 共通フッター
   ========================================= */
footer {
  background: #050505;
  color: #ffffff;
  border-top: 1px solid #222222;
  padding: 4rem 3rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 3rem;
  margin-top: 6rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid #333333;
  padding-bottom: 3rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-logo-img {
  height: 32px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
}

.footer-desc {
  font-size: 0.8rem;
  color: #aaaaaa;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  transition: color 0.3s;
}

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

.footer-bottom {
  text-align: center;
  font-size: 0.75rem;
  color: #666666;
}

/* =========================================
   12. LOOK BOOK (Editorial Design)
   ========================================= */
.lb-editorial-container {
  display: flex;
  flex-direction: column;
  gap: 12rem;
  margin-top: 4rem;
}

.lb-section {
  position: relative;
  width: 100%;
}

.lb-img-large {
  position: relative;
  width: 70%;
  aspect-ratio: 4/5;
  background: #e8e8e3;
  overflow: hidden;
}
.lb-img-large img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(10%);
}
.lb-vertical-text {
  position: absolute;
  top: 0;
  right: -80px;
  writing-mode: vertical-rl;
  font-size: 5rem;
  color: var(--text-main);
  opacity: 0.1;
  font-weight: 700;
}

.lb-caption {
  margin-top: 2rem;
  display: flex;
  gap: 3rem;
  align-items: baseline;
}
.lb-num { font-weight: 700; font-size: 1.2rem; border-bottom: 1px solid var(--text-main); }
.lb-caption p { font-size: 0.8rem; color: var(--text-muted); line-height: 1.6; }

.lb-double-wrap {
  position: relative;
  height: 800px;
  display: flex;
  justify-content: flex-end;
}
.lb-img-sub {
  position: absolute;
  overflow: hidden;
  background: #e8e8e3;
  box-shadow: 20px 20px 60px rgba(0,0,0,0.05);
}
.lb-img-sub.sub1 {
  width: 45%; aspect-ratio: 4/5; left: 0; top: 0; z-index: 2;
}
.lb-img-sub.sub2 {
  width: 50%; aspect-ratio: 4/5; right: 0; bottom: 0; z-index: 1;
}
.lb-img-sub img { width: 100%; height: 100%; object-fit: cover; }

.lb-caption-side {
  position: absolute;
  left: 0;
  bottom: -4rem;
  display: flex;
  gap: 2rem;
}

.lb-img-full {
  position: relative;
  width: 100vw;
  left: 50%;
  transform: translateX(-50%);
  height: 80vh;
  background: #1a1a1a;
  overflow: hidden;
}
.lb-img-full img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0.6;
  filter: contrast(1.2) grayscale(30%);
}
.lb-overlay-title {
  position: absolute;
  top: 50%;
  left: 10%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 8vw;
  line-height: 0.9;
  letter-spacing: -0.02em;
  text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.lb-collage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.lb-img-detail {
  width: 100%;
  aspect-ratio: 1/1;
  background: #e8e8e3;
  overflow: hidden;
}
.lb-img-detail img { width: 100%; height: 100%; object-fit: cover; }
.lb-text-block {
  padding-right: 4rem;
  font-size: 1.1rem;
  line-height: 2.2;
  color: var(--text-muted);
}

.download-box {
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 6rem 0;
  text-align: center;
  margin: 8rem 0;
}
.download-box h3 { font-size: 2rem; margin-bottom: 1rem; }
.download-box p { margin-bottom: 2.5rem; color: var(--text-muted); }

/* =========================================
   13. フォーム & ボタン類（統一スタイル）
   ========================================= */

/* --- 汎用入力フォーム共通 --- */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}
.form-group label {
  font-size: 0.8rem;
  color: var(--text-muted);
}
select,
input[type="number"],
input[type="text"],
input[type="tel"],
input[type="email"],
input[type="password"],
textarea {
  padding: 1rem;
  border: 1px solid var(--border-color);
  background: transparent;
  color: var(--text-main);
  font-family: 'Space Mono', monospace;
  font-size: 1rem;
  outline: none;
  border-radius: 0;
  appearance: none;
}
select {
  background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%231a1a1a%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E');
  background-repeat: no-repeat;
  background-position: right 1rem top 50%;
  background-size: 0.65rem auto;
  cursor: pointer;
}
.form-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1rem;
}

/* --- 白背景・黒枠線の明示化（CF7 & LOGIN/REGISTER） --- */
.wpcf7-form-control.wpcf7-text,
.wpcf7-form-control.wpcf7-textarea,
.login-container input[type="email"],
.login-container input[type="password"],
.contact-form-wrap input[type="text"],
.contact-form-wrap input[type="email"],
.contact-form-wrap textarea {
  width: 100% !important;
  padding: 1rem !important;
  border: 1px solid var(--text-main) !important;
  background-color: #ffffff !important;
  color: var(--text-main) !important;
  font-family: 'Space Mono', monospace !important;
  font-size: 1rem !important;
  border-radius: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}
.wpcf7-form-control.wpcf7-textarea,
.contact-form-wrap textarea,
.contact-form-wrap #name {
  font-family: 'Noto Serif JP', serif !important;
}

.wpcf7-form-control.wpcf7-text:focus,
.wpcf7-form-control.wpcf7-textarea:focus,
.login-container input[type="email"]:focus,
.login-container input[type="password"]:focus {
  border-width: 2px !important;
  padding: calc(1rem - 1px) !important;
}

.wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

.sc-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.wpcf7-not-valid-tip {
  color: #cc0000;
  font-size: 0.85rem;
  margin-top: 0.5rem;
  font-family: 'Space Mono', monospace;
}
.wpcf7 form .wpcf7-response-output {
  margin-top: 2rem;
  border: 1px solid var(--text-main) !important;
  border-radius: 0;
  font-family: 'Noto Serif JP', serif;
  background-color: #ffffff !important;
}

/* --- メインボタン類（黒背景・白文字・ホバー反転） --- */
.add-to-cart-btn,
.login-container .add-to-cart-btn,
.cart-container .add-to-cart-btn,
.contact-form-wrap .add-to-cart-btn,
input[type="submit"].add-to-cart-btn {
  background-color: #1a1a1a !important;
  color: #ffffff !important;
  border: 1px solid #1a1a1a !important;
  padding: 1.2rem 2rem !important;
  font-family: 'Oswald', sans-serif !important;
  font-weight: 600 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  border-radius: 0 !important;
  cursor: pointer !important;
  display: block !important;
  width: 100% !important;
  text-align: center !important;
  text-decoration: none !important;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease !important;
  margin-top: 1rem;
}

.add-to-cart-btn:hover,
.login-container .add-to-cart-btn:hover,
.cart-container .add-to-cart-btn:hover,
.contact-form-wrap .add-to-cart-btn:hover,
input[type="submit"].add-to-cart-btn:hover {
  background-color: #ffffff !important;
  color: #1a1a1a !important;
  border: 1px solid #1a1a1a !important;
}

/* --- Googleログインボタン（白背景・黒枠） --- */
.social-login-wrap {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.social-login-separator {
  position: relative;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.social-login-separator::before {
  content: '';
  position: absolute;
  top: 50%; left: 0; width: 100%; height: 1px;
  background-color: var(--border-color);
  z-index: 1;
}
.social-login-separator span {
  position: relative;
  background-color: var(--bg-color);
  padding: 0 1rem;
  z-index: 2;
}

.btn-google-login {
  background-color: #ffffff !important;
  color: #1a1a1a !important;
  border: 1px solid #1a1a1a !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 1rem !important;
  padding: 1.2rem !important;
  font-family: 'Oswald', sans-serif !important;
  font-weight: 600 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  font-size: 0.95rem !important;
  border-radius: 0 !important;
  margin-top: 1rem !important;
  width: 100% !important;
  box-shadow: none !important;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease !important;
}

.btn-google-login:hover {
  background-color: #1a1a1a !important;
  color: #ffffff !important;
  border: 1px solid #1a1a1a !important;
}

.btn-google-login:hover .google-icon {
  filter: drop-shadow(0px 0px 1px rgba(255,255,255,0.8)) !important;
}

/* =========================================
   14. POLICY / TERMS 特殊調整
   ========================================= */
.policy-container h2,
.policy-container .wp-block-heading {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  padding-bottom: 0 !important;
}

.policy-container h2::before,
.policy-container h2::after,
.policy-container .wp-block-heading::before,
.policy-container .wp-block-heading::after {
  display: none !important;
}

/* =========================================
   15. アニメーション
   ========================================= */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================
   16. レスポンシブ対応 (全ブレイクポイント統合)
   ========================================= */

/* --- 1700px以下 --- */
@media (max-width: 1700px) {
  .hero-image-container { aspect-ratio: 16 / 9; }
}

/* --- 1300px以下 (メニューのハンバーガー化) --- */
@media (max-width: 1300px) {
  header { padding: 0 1.5rem; }
  .header-right { gap: 1.5rem; }
  .header-cart { border: none; padding-left: 0; }
  .hamburger { display: flex; }
  
  .nav-links {
    position: fixed; top: 0; right: -100%; width: 100%; height: 100vh;
    background: #050505;
    flex-direction: column; justify-content: center; align-items: center;
    transition: right 0.4s ease; z-index: 100; gap: 2.5rem;
  }
  .nav-links.active { right: 0; }
  .nav-links a { font-size: 1.2rem; }

  .hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .hamburger.active span:nth-child(2) { opacity: 0; }
  .hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* --- 900px以下 (タブレット・スマホ) --- */
@media (max-width: 900px) {
  .hero { padding: 80px 0 0 0; }
  .hero-image-container { aspect-ratio: 4 / 5; }
  
  .spec-bar { flex-direction: column; gap: 0.5rem; padding: 1.5rem; }
  .section-container { padding: 4rem 1.5rem; }
  
  .section-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .detail-main .section-header { align-items: center; text-align: center; gap: 0.5rem; }
  .detail-main .section-title { font-size: 2.8rem !important; text-align: center; }
  .detail-main .section-header span { align-self: center !important; }

  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .journal-grid { grid-template-columns: 1fr; gap: 3rem; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  
  .detail-main { padding: 100px 1.5rem 4rem; }
  .product-detail-grid { grid-template-columns: 1fr; gap: 3rem; }
  
  .cart-container { grid-template-columns: 1fr; gap: 3rem; }
  .cart-table th:nth-child(2), .cart-table td:nth-child(2) { display: none; }
  
  .checkout-container { grid-template-columns: 1fr; gap: 4rem; }
  .checkout-form-side form { gap: 2rem !important; }
  .contact-form .form-row { grid-template-columns: 1fr !important; }

  .news-item { grid-template-columns: 1fr !important; gap: 1.5rem !important; padding: 2.5rem 0 !important; text-align: center; }
  .news-date { margin-bottom: 0; }
  .news-tag { margin-left: 0.5rem; margin-top: 0; }
  .news-thumb-wrap { margin: 0 auto; width: 100%; max-width: none; }
  .news-body h2 { font-size: 1.15rem !important; }

  .collection-block { display: flex !important; flex-direction: column !important; text-align: center; gap: 2rem !important; }
  .collection-img-wrap { width: 100%; }
  .past-img-order { order: 1 !important; }
  .past-text-order { order: 2 !important; }
  .collection-title-text { font-size: 2.2rem !important; }

  footer { padding: 3rem 1.5rem 1.5rem; margin-top: 3rem; }
  .footer-inner { flex-direction: column; gap: 3rem; align-items: center; text-align: center; }
  .footer-brand { align-items: center; }
  .footer-links { flex-direction: column; gap: 1.5rem; align-items: center; }

  /* Look Book (Editorial) Mobile */
  .lb-editorial-container { gap: 6rem; }
  .lb-img-large { width: 100%; }
  .lb-vertical-text { display: none; }
  .lb-double-wrap { height: 600px; }
  .lb-img-sub.sub1 { width: 60%; }
  .lb-img-sub.sub2 { width: 60%; }
  .lb-overlay-title { font-size: 15vw; left: 5%; }
  .lb-collage { grid-template-columns: 1fr; }
  .lb-text-block { padding-right: 0; }
}

/* --- 768px以下 (スマホ専用の微調整) --- */
@media (max-width: 768px) {
  /* フォーム類の強制1カラム化 */
  .sc-form-row { grid-template-columns: 1fr !important; }
  
  /* アーカイブ空状態メッセージの中央寄せ */
  .collection-grid > p.font-serif,
  .catalog-grid > p.font-serif,
  .product-grid > p.font-serif,
  .detail-main > p.font-serif,
  .empty-archive-msg {
    text-align: center !important;
    width: 100% !important;
    padding: 2rem 1rem !important;
    box-sizing: border-box;
  }

  /* POLICY / TERMS 最適化 */
  .section-header .section-title { font-size: 2.2rem !important; }
  .detail-main .breadcrumbs,
  .detail-main .section-header,
  .policy-container {
    padding: 0 1rem !important;
    box-sizing: border-box;
  }
  .policy-container div[style*="padding: 2rem"] {
    padding: 1.5rem 1rem !important;
    margin-top: 2rem !important;
  }
  .policy-container p {
    font-size: 0.85rem !important;
    line-height: 1.8 !important;
    margin-bottom: 1.5rem !important;
  }
  .policy-container h2 { font-size: 1.3rem !important; margin-bottom: 1.2rem !important; }
  .policy-container h3 { font-size: 1.05rem !important; }

  /* POLICY / TERMS 表組みのはみ出し修正（強制1カラム） */
  .policy-container div[style*="display: grid"] {
    grid-template-columns: 1fr !important;
    gap: 0.5rem !important;
  }
  .policy-container div[style*="display: grid"] > div:nth-child(odd) {
    margin-top: 1.5rem !important;
    border-bottom: 1px solid var(--text-main) !important;
    padding-bottom: 0.3rem !important;
    font-size: 0.95rem !important;
  }
  .policy-container div[style*="display: grid"] > div:first-child { margin-top: 0 !important; }
  .policy-container div[style*="display: grid"] > div:nth-child(even) {
    word-break: break-all !important;
    overflow-wrap: break-word !important;
    padding-bottom: 0.5rem !important;
    font-size: 0.9rem !important;
    line-height: 1.8 !important;
  }
}

/* --- 600px以下 (小型スマホ) --- */
@media (max-width: 600px) {
  .product-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 2.2rem; }
  .hero-text-overlay { left: 1rem; bottom: 1rem; padding: 1rem; }
  .detail-main .section-title { font-size: 2.2rem !important; }
}
/* =========================================
   17. 不具合修正：WordPressデフォルトの余計な枠線（コの字など）を全リセット
   ========================================= */

/* LOGIN, CREATE ACCOUNT, ORDER SUMMARY などの見出しに勝手につくコの字を消去 */
.detail-main h2::before,
.detail-main h2::after,
.detail-main h3::before,
.detail-main h3::after {
  display: none !important;
}

.detail-main h2, 
.detail-main h3 {
  box-shadow: none !important;
  border-top: none !important; /* 上の無駄な線を消す */
  border-left: none !important; /* 左の無駄な線を消す */
  border-right: none !important; /* 右の無駄な線を消す */
}

/* カート明細（PRODUCT, QUANTITY...）の周りにつく謎の四角い枠線を消去 */
.cart-header,
.cart-item,
.cart-items > div,
.cart-summary {
  box-shadow: none !important;
  border-top: none !important;
  border-left: none !important;
  border-right: none !important;
}

.cart-header::before,
.cart-header::after,
.cart-item::before,
.cart-item::after {
  display: none !important;
}

/* =========================================
   18. 不具合修正：ボタンの幅が間延びする（RETURN TO HOME等）問題の解消
   ========================================= */

/* 全ボタンに対する「width: 100%」の強制指定を一旦解除 */
.add-to-cart-btn,
.login-container .add-to-cart-btn,
.cart-container .add-to-cart-btn,
.contact-form-wrap .add-to-cart-btn,
input[type="submit"].add-to-cart-btn {
  width: auto !important; 
}

/* フォームの送信ボタン（ログイン、新規登録、決済へ進む等）だけは幅100%に再設定 */
.login-section .add-to-cart-btn,
.register-section .add-to-cart-btn,
.contact-form-wrap .add-to-cart-btn,
.cart-summary .add-to-cart-btn,
.checkout-container form .add-to-cart-btn {
  width: 100% !important;
}
/* =========================================
   トップページ（GALLERY等）の見出しに勝手につくコの字・枠線を全消去
   ========================================= */
.section-title::before,
.section-title::after,
.section-container h2::before,
.section-container h2::after {
  display: none !important;
}

.section-title,
.section-container h2 {
  box-shadow: none !important;
  border-top: none !important; /* 上の無駄な線を消す */
  border-left: none !important; /* 左の無駄な線を消す */
  border-right: none !important; /* 右の無駄な線を消す */
}
/* =========================================
   404ページ（h1タグ）の余計な枠線・コの字を消去
   ========================================= */
.detail-main h1::before,
.detail-main h1::after,
.contact-container h1::before,
.contact-container h1::after {
  display: none !important;
}

.detail-main h1,
.contact-container h1 {
  box-shadow: none !important;
  border: none !important;
}
/* =========================================
   POLICY / TERMS ページ：PC版の表組みに線（下線）を入れる
   ========================================= */
@media (min-width: 769px) {
  /* グリッドの全項目（左の項目名・右の内容どちらも）に下線を引く */
  .policy-container div[style*="display: grid"] > div {
    border-bottom: 1px solid var(--text-main); /* スマホ版と同じ黒線 */
    padding-bottom: 0.8rem;
  }
  
  /* 線の位置と文字のバランスを整えるための微調整 */
  .policy-container div[style*="display: grid"] {
    row-gap: 1.5rem !important; /* 行同士の隙間を少し広げて見やすくする */
  }
}
/* =========================================
   19. 不具合修正：404とNEWS詳細の戻るボタンからボックス・背景を完全消去
   ========================================= */

/* クラス名がバッティングして残ってしまう背景グレー・黒枠・影を根こそぎ上書き破壊 */
.err-fixed-wrap .add-to-cart-btn,
.single-fixed-wrap .add-to-cart-btn,
main .sc-text-only-link,
.detail-main a.sc-text-only-link {
  background: none !important;
  background-color: transparent !important; /* グレーの背景を強制消去 */
  border: none !important; /* 黒枠を強制消去 */
  border-width: 0 !important;
  box-shadow: none !important; /* 周りの薄い影を強制消去 */
  text-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  width: auto !important;
  min-width: 0 !important;
  height: auto !important;
  display: inline-block !important;
  
  /* サウスシティーらしいソリッドな文字デザインに固定 */
  color: var(--text-main) !important; 
  font-size: 1rem !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  letter-spacing: 0.1em !important;
  transition: opacity 0.3s ease !important;
}

/* マウスを乗せた時（ホバー時）も絶対にボックスを復活させない */
.err-fixed-wrap .add-to-cart-btn:hover,
.single-fixed-wrap .add-to-cart-btn:hover,
main .sc-text-only-link:hover {
  opacity: 0.5 !important;
  background: none !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* 念のため矢印（疑似要素）などが残るバグも完全に防ぐ */
.err-fixed-wrap .add-to-cart-btn::before,
.err-fixed-wrap .add-to-cart-btn::after,
.single-fixed-wrap .add-to-cart-btn::before,
.single-fixed-wrap .add-to-cart-btn::after {
  display: none !important;
  content: none !important;
}
/* =========================================
   20. サウスシティー専用：黒ボックス・白文字ボタン（404 / NEWS戻る用）
   ========================================= */

/* キャッシュを無視して強制的に黒ボックスを上書き描画する */
a.sc-black-btn,
.detail-main a.sc-black-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background-color: #1a1a1a !important; /* パキッとした黒背景 */
  color: #ffffff !important; /* 白文字 */
  padding: 1.2rem 3rem !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em !important;
  text-decoration: none !important;
  border: 1px solid #1a1a1a !important; /* 黒枠 */
  box-shadow: none !important;
  outline: none !important;
  width: auto !important;
  min-width: 260px !important;
  transition: all 0.3s ease !important;
}

/* マウスを乗せた時（タップ時）に白背景・黒文字に美しく反転させる */
a.sc-black-btn:hover,
.detail-main a.sc-black-btn:hover {
  background-color: #ffffff !important;
  color: #1a1a1a !important;
  border: 1px solid #1a1a1a !important;
  opacity: 1 !important;
}

/* 疑似要素（余計な線やアイコン）の復活を徹底阻止 */
a.sc-black-btn::before, 
a.sc-black-btn::after {
  display: none !important;
  content: none !important;
}
/* =========================================
   21. GALLERY専用：モーダル（Lightbox）
   ========================================= */
.sc-gallery-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(5, 5, 5, 0.92); /* 高級感のある深い黒透過 */
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* モーダルがアクティブな時 */
.sc-gallery-modal.is-active {
  opacity: 1;
  pointer-events: auto;
}

.sc-gallery-modal-content {
  max-width: 90%;
  max-height: 85%;
  position: relative;
  transform: scale(0.96);
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.sc-gallery-modal.is-active .sc-gallery-modal-content {
  transform: scale(1);
}

.sc-gallery-modal-img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  display: block;
  border: 1px solid #222222;
}

/* サウスシティー仕様のミニマルな×ボタン */
.sc-gallery-modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: #ffffff;
  font-family: 'Space Mono', monospace;
  font-size: 0.85rem;
  background: none;
  border: none;
  cursor: pointer;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 5px;
  transition: opacity 0.3s ease;
}

.sc-gallery-modal-close:hover {
  opacity: 0.5;
}

/* トリガーとなる画像上のカーソルをポインターに */
.gallery-modal-trigger {
  cursor: pointer;
  display: block;
}