/*
Theme Name: Salt Plus Redesign
Theme URI: https://salt-plus.net
Author: Salt Plus
Author URI: https://salt-plus.net
Description: Salt Plus公式サイトの新デザインWordPressテーマ。福岡のHP・EC制作会社のための洗練されたデザイン。モダンで高級感のあるゴールドを基調としたカラースキームを採用。
Version: 2.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: saltplus
Tags: custom-header, custom-menu, custom-logo, featured-images, threaded-comments, translation-ready, responsive-design
*/

/*
=================================================================================
目次
=================================================================================
1. CSS Variables（CSS変数）
2. Reset & Base（リセットと基本スタイル）
3. Typography（タイポグラフィ）
4. Layout（レイアウト）
5. Components（コンポーネント）
6. Utilities（ユーティリティ）
7. WordPress Core（WordPress コアスタイル）
8. Responsive（レスポンシブ）
=================================================================================
*/

/* ===================================================================
   1. CSS Variables
   =================================================================== */
:root {
  /* Colors - Background */
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-tertiary: #1a1a1a;
  
  /* Colors - Text */
  --text-primary: #f5f5f5;
  --text-secondary: #a0a0a0;
  --text-muted: #666666;
  
  /* Colors - Accent */
  --accent-gold: #c9a962;
  --accent-gold-light: #e0c88a;
  --accent-copper: #b87333;
  
  /* Colors - Borders */
  --border-subtle: rgba(255,255,255,0.08);
  --border-accent: rgba(201,169,98,0.3);
  
  /* Gradients */
  --gradient-gold: linear-gradient(135deg, #c9a962 0%, #e0c88a 50%, #b87333 100%);
  
  /* Layout */
  --content-width: 1200px;
  --content-padding: 20px;
  --header-height: 80px;
  
  /* Transitions */
  --transition-smooth: cubic-bezier(0.22, 1, 0.36, 1);
  --transition-fast: 0.3s;
  --transition-medium: 0.4s;
  --transition-slow: 0.8s;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.15);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.2);
}

/* ===================================================================
   2. Reset & Base
   =================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: 'Shippori Mincho', serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.8;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ノイズテクスチャ */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E"); */
  opacity: 0.03;
  pointer-events: none;
  z-index: 9999;
}

/* ===================================================================
   3. Typography
   =================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 400;
  line-height: 1.4;
  margin: 0 0 1rem 0;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

h5 {
  font-size: 1.125rem;
}

h6 {
  font-size: 1rem;
}

p {
  margin: 0 0 1rem 0;
}

a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color var(--transition-fast) ease;
}

a:hover {
  color: var(--accent-gold);
}

strong, b {
  font-weight: 600;
}

em, i {
  font-style: italic;
}

/* ===================================================================
   4. Layout
   =================================================================== */
.container {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 var(--content-padding);
}

.site-main {
  padding-top: var(--header-height);
  min-height: calc(100vh - var(--header-height));
}

.content-area {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 4rem var(--content-padding);
}

/* ===================================================================
   5. Components
   =================================================================== */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Outfit', sans-serif;
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 1rem 2rem;
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
  background: transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: color var(--transition-medium) ease;
  text-decoration: none;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--accent-gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition-medium) var(--transition-smooth);
  z-index: -1;
}

.btn:hover {
  color: var(--bg-primary);
}

.btn:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

.btn-primary {
  background: var(--accent-gold);
  color: var(--bg-primary);
}

.btn-primary::before {
  background: var(--bg-primary);
}

.btn-primary:hover {
  color: var(--accent-gold);
}

/* Cards */
.card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-medium) var(--transition-smooth);
}

.card:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
}

/* ===================================================================
   6. Utilities
   =================================================================== */
.pc-only {
  display: block;
}

.sp-only {
  display: none;
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.text-left {
  text-align: left;
}

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

/* ===================================================================
   7. WordPress Core
   =================================================================== */
.alignleft {
  float: left;
  margin-right: 1.5rem;
  margin-bottom: 1rem;
}

.alignright {
  float: right;
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.wp-caption {
  max-width: 100%;
}

.wp-caption-text {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
}

.sticky {
  /* スティッキー投稿のスタイル */
}

.bypostauthor {
  /* 投稿者のコメントスタイル */
}

/* Gutenberg Blocks Support */
.wp-block-image {
  margin: 2rem 0;
}

.wp-block-quote {
  border-left: 4px solid var(--accent-gold);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--text-secondary);
}

/* ===================================================================
   8. Animations
   =================================================================== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(2deg); }
}

@keyframes lineExpand {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.8; }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity var(--transition-slow) var(--transition-smooth),
              transform var(--transition-slow) var(--transition-smooth);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===================================================================
   9. Scrollbar
   =================================================================== */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--accent-gold);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-gold-light);
}

/* ===================================================================
   10. Responsive
   =================================================================== */
@media (max-width: 768px) {
  :root {
    --header-height: 70px;
    --content-padding: 15px;
  }
  
  .pc-only {
    display: none !important;
  }
  
  .sp-only {
    display: block;
  }
  
  .site-main {
    padding-top: 70px;
  }
  
  .content-area {
    padding: 2rem var(--content-padding);
  }
}

/* ===================================================================
   11. Print Styles
   =================================================================== */
@media print {
  body::before {
    display: none;
  }
  
  .header,
  .footer,
  #page-top,
  .hamburger,
  .no-print {
    display: none !important;
  }
  
  body {
    background: white;
    color: black;
  }
}
