/*
 * ネオエコショップ あんど屋 - デザインシステム
 * テーマ：昭和レトロ × レトロポップ
 * 「なつかしいが、あたらしい。」
 */

/* ========================================
   カスタムプロパティ（CSS変数）
   ======================================== */
:root {
  /* カラーパレット */
  --color-base: #FFF8DC;           /* クリームイエロー */
  --color-main: #FF6B35;           /* オレンジ */
  --color-accent1: #40E0D0;        /* ターコイズブルー */
  --color-accent2: #DE3163;        /* チェリーピンク */
  --color-accent3: #7CB518;        /* レトログリーン */
  --color-text: #4A3728;           /* ダークブラウン */
  --color-white: #FFFFFF;
  --color-dark: #2D1F14;
  
  /* グラデーション */
  --gradient-retro: linear-gradient(135deg, #FF6B35 0%, #DE3163 100%);
  --gradient-neon: linear-gradient(135deg, #40E0D0 0%, #7CB518 100%);
  
  /* シャドウ */
  --shadow-soft: 0 4px 20px rgba(74, 55, 40, 0.15);
  --shadow-retro: 4px 4px 0 var(--color-text);
  --shadow-neon: 0 0 20px rgba(64, 224, 208, 0.5);
  
  /* ボーダー */
  --border-retro: 3px solid var(--color-text);
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
  --border-radius-full: 50%;
  
  /* フォント */
  --font-main: 'M PLUS Rounded 1c', 'Hiragino Kaku Gothic ProN', 'メイリオ', sans-serif;
  --font-display: 'Shippori Antique B1', serif;
  
  /* スペーシング */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
  
  /* コンテナ幅 */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1200px;
}

/* ========================================
   リセット & ベーススタイル
   ======================================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  font-weight: 400;
  line-height: 1.8;
  color: var(--color-text);
  background-color: var(--color-base);
  background-image: 
    radial-gradient(circle at 20% 80%, rgba(255, 107, 53, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(64, 224, 208, 0.05) 0%, transparent 50%);
  min-height: 100vh;
}

/* 昭和風の壁紙パターン背景 */
.pattern-bg {
  background-image: 
    radial-gradient(circle, rgba(255, 107, 53, 0.1) 1px, transparent 1px);
  background-size: 20px 20px;
}

.pattern-dots {
  background-image: 
    radial-gradient(circle, var(--color-main) 2px, transparent 2px);
  background-size: 16px 16px;
}

/* ========================================
   タイポグラフィ
   ======================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
}

p {
  margin-bottom: var(--space-sm);
}

a {
  color: var(--color-main);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--color-accent2);
}

/* ========================================
   レイアウトユーティリティ
   ======================================== */
.container {
  width: 100%;
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: 0 var(--space-sm);
}

@media (min-width: 768px) {
  .container {
    padding: 0 var(--space-md);
  }
}

.section {
  padding: var(--space-lg) 0;
}

@media (min-width: 768px) {
  .section {
    padding: var(--space-xl) 0;
  }
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }

.grid {
  display: grid;
}

.text-center {
  text-align: center;
}

/* ========================================
   昭和看板風セクションタイトル
   ======================================== */
.section-title {
  position: relative;
  display: inline-block;
  margin-bottom: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  background: var(--color-main);
  color: var(--color-white);
  border-radius: var(--border-radius-sm);
  box-shadow: var(--shadow-retro);
  transform: rotate(-1deg);
}

.section-title::before {
  content: '✦';
  margin-right: 0.5em;
}

.section-title::after {
  content: '✦';
  margin-left: 0.5em;
}

/* ネオンサイン風タイトル */
.neon-title {
  color: var(--color-accent1);
  text-shadow: 
    0 0 5px var(--color-accent1),
    0 0 10px var(--color-accent1),
    0 0 20px var(--color-accent1),
    0 0 40px var(--color-accent1);
  animation: neonFlicker 3s infinite alternate;
}

@keyframes neonFlicker {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.9; }
  52% { opacity: 1; }
  54% { opacity: 0.9; }
}

/* ========================================
   ボタンスタイル
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 1em 2em;
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  border-radius: var(--border-radius-lg);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-retro);
  color: var(--color-white);
  box-shadow: var(--shadow-retro);
}

.btn-primary:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--color-text);
  color: var(--color-white);
}

.btn-secondary {
  background: var(--color-white);
  color: var(--color-main);
  border: var(--border-retro);
}

.btn-secondary:hover {
  background: var(--color-main);
  color: var(--color-white);
}

.btn-accent {
  background: var(--color-accent1);
  color: var(--color-dark);
  box-shadow: var(--shadow-retro);
}

.btn-accent:hover {
  background: var(--color-accent3);
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--color-text);
}

/* LINE風ボタン */
.btn-line {
  background: #06C755;
  color: var(--color-white);
  box-shadow: 3px 3px 0 #048c3d;
}

.btn-line:hover {
  background: #05b54e;
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 #048c3d;
  color: var(--color-white);
}

/* ========================================
   カードスタイル
   ======================================== */
.card {
  background: var(--color-white);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(74, 55, 40, 0.2);
}

.card-retro {
  border: var(--border-retro);
  box-shadow: var(--shadow-retro);
}

.card-retro:hover {
  transform: translate(-3px, -3px);
  box-shadow: 7px 7px 0 var(--color-text);
}

.card-image {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  filter: sepia(10%);
  transition: filter 0.3s ease;
}

.card:hover .card-image {
  filter: sepia(0%);
}

.card-content {
  padding: var(--space-sm);
}

.card-title {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

/* ========================================
   ヘッダー
   ======================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-base);
  border-bottom: 3px dashed var(--color-main);
  padding: var(--space-sm) 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-main);
  text-shadow: 2px 2px 0 var(--color-text);
}

.logo-sub {
  font-size: 0.75rem;
  color: var(--color-text);
}

/* ナビゲーション */
.nav {
  display: none;
}

@media (min-width: 768px) {
  .nav {
    display: flex;
    gap: var(--space-md);
  }
}

.nav-link {
  position: relative;
  padding: 0.5rem 0;
  font-weight: 500;
  color: var(--color-text);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--color-main);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover {
  color: var(--color-main);
}

/* ヘッダーアクション */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.header-phone {
  display: none;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 1rem;
  background: var(--color-accent1);
  color: var(--color-dark);
  border-radius: var(--border-radius-lg);
  font-weight: 700;
}

@media (min-width: 768px) {
  .header-phone {
    display: flex;
  }
}

.header-phone:hover {
  background: var(--color-main);
  color: var(--color-white);
}

/* モバイルメニューボタン */
.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
}

@media (min-width: 768px) {
  .menu-toggle {
    display: none;
  }
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* モバイルナビ */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 248, 220, 0.98);
  z-index: 999;
  padding: var(--space-xl) var(--space-md);
}

.mobile-nav.active {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
}

.mobile-nav-link {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
  padding: var(--space-sm);
}

.mobile-nav-link:hover {
  color: var(--color-main);
}

.mobile-nav-close {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text);
}

/* ========================================
   フッター
   ======================================== */
.footer {
  background: var(--color-dark);
  color: var(--color-base);
  padding: var(--space-lg) 0 var(--space-md);
  margin-top: auto;
}

.footer-inner {
  display: grid;
  gap: var(--space-md);
}

@media (min-width: 768px) {
  .footer-inner {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer-brand {
  margin-bottom: var(--space-md);
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--color-main);
  margin-bottom: var(--space-sm);
}

.footer-info {
  font-size: 0.9rem;
  line-height: 2;
}

.footer-info-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.footer-info-icon {
  flex-shrink: 0;
}

.footer-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-accent1);
  margin-bottom: var(--space-sm);
  padding-bottom: 0.5rem;
  border-bottom: 2px dashed var(--color-accent1);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-link {
  color: var(--color-base);
  opacity: 0.8;
  transition: all 0.3s ease;
}

.footer-link:hover {
  opacity: 1;
  color: var(--color-accent1);
  padding-left: 0.5rem;
}

.footer-line-section {
  text-align: center;
}

.footer-line-qr {
  width: 120px;
  height: 120px;
  background: var(--color-white);
  padding: 8px;
  border-radius: var(--border-radius-sm);
  margin: 0 auto var(--space-sm);
}

.footer-line-qr img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.footer-line-text {
  font-size: 0.85rem;
  opacity: 0.9;
}

.footer-bottom {
  margin-top: var(--space-md);
  padding-top: var(--space-sm);
  border-top: 1px solid rgba(255, 248, 220, 0.2);
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.7;
}

/* ========================================
   ヒーローセクション
   ======================================== */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg) 0;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 10% 20%, rgba(255, 107, 53, 0.2) 0%, transparent 30%),
    radial-gradient(circle at 90% 80%, rgba(64, 224, 208, 0.2) 0%, transparent 30%),
    radial-gradient(circle at 50% 50%, rgba(222, 49, 99, 0.1) 0%, transparent 40%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: var(--container-md);
  padding: var(--space-md);
}

.hero-badge {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background: var(--color-accent1);
  color: var(--color-dark);
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: var(--border-radius-lg);
  margin-bottom: var(--space-sm);
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 5rem);
  margin-bottom: var(--space-sm);
  background: var(--gradient-retro);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1rem, 3vw, 1.5rem);
  color: var(--color-text);
  margin-bottom: var(--space-md);
  opacity: 0.9;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm);
}

/* 装飾：レトロアイテム */
.retro-decoration {
  position: absolute;
  opacity: 0.6;
  animation: floatSlow 6s ease-in-out infinite;
}

@keyframes floatSlow {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}

.retro-decoration-1 {
  top: 10%;
  left: 5%;
  font-size: 4rem;
  animation-delay: 0s;
}

.retro-decoration-2 {
  top: 20%;
  right: 10%;
  font-size: 3rem;
  animation-delay: 1s;
}

.retro-decoration-3 {
  bottom: 15%;
  left: 15%;
  font-size: 3.5rem;
  animation-delay: 2s;
}

.retro-decoration-4 {
  bottom: 25%;
  right: 5%;
  font-size: 2.5rem;
  animation-delay: 3s;
}

/* ========================================
   商品カテゴリグリッド
   ======================================== */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
}

.category-card {
  position: relative;
  padding: var(--space-md);
  background: var(--color-white);
  border: var(--border-retro);
  border-radius: var(--border-radius-md);
  text-align: center;
  transition: all 0.3s ease;
}

.category-card::before {
  content: '';
  position: absolute;
  top: -8px;
  right: -8px;
  bottom: -8px;
  left: -8px;
  border: 2px dashed var(--color-main);
  border-radius: var(--border-radius-md);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.category-card:hover::before {
  opacity: 1;
}

.category-card:hover {
  transform: translate(-4px, -4px);
  box-shadow: 8px 8px 0 var(--color-text);
}

.category-icon {
  font-size: 3rem;
  margin-bottom: var(--space-sm);
}

.category-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.category-desc {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* ========================================
   買取フローステップ
   ======================================== */
.flow-steps {
  display: grid;
  gap: var(--space-md);
}

@media (min-width: 768px) {
  .flow-steps {
    grid-template-columns: repeat(4, 1fr);
  }
}

.flow-step {
  position: relative;
  text-align: center;
  padding: var(--space-md);
}

.flow-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: var(--gradient-retro);
  color: var(--color-white);
  font-size: 1.5rem;
  font-weight: 700;
  border-radius: var(--border-radius-full);
  margin-bottom: var(--space-sm);
  box-shadow: var(--shadow-retro);
}

.flow-step-title {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.flow-step-desc {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* 矢印装飾 */
.flow-step::after {
  content: '→';
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--color-main);
  display: none;
}

@media (min-width: 768px) {
  .flow-step:not(:last-child)::after {
    display: block;
  }
}

/* ========================================
   店舗情報カード
   ======================================== */
.shop-info-card {
  background: var(--color-white);
  border: var(--border-retro);
  border-radius: var(--border-radius-md);
  padding: var(--space-md);
  box-shadow: 6px 6px 0 var(--color-text);
}

.shop-info-row {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
  border-bottom: 1px dashed var(--color-text);
}

.shop-info-row:last-child {
  border-bottom: none;
}

.shop-info-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.shop-info-label {
  font-weight: 700;
  min-width: 100px;
}

.shop-info-value {
  flex: 1;
}

/* ========================================
   お問い合わせフォーム
   ======================================== */
.form-group {
  margin-bottom: var(--space-sm);
}

.form-label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.form-label .required {
  color: var(--color-accent2);
  font-size: 0.8em;
  margin-left: 0.25em;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 1rem;
  font-family: var(--font-main);
  font-size: 1rem;
  border: var(--border-retro);
  border-radius: var(--border-radius-sm);
  background: var(--color-white);
  transition: all 0.3s ease;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--color-main);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.2);
}

.form-textarea {
  min-height: 150px;
  resize: vertical;
}

/* ========================================
   LINE CTAセクション
   ======================================== */
.line-cta {
  background: linear-gradient(135deg, #06C755 0%, #05a549 100%);
  color: var(--color-white);
  padding: var(--space-lg);
  border-radius: var(--border-radius-lg);
  text-align: center;
}

.line-cta-title {
  font-size: 1.5rem;
  margin-bottom: var(--space-sm);
}

.line-cta-list {
  list-style: none;
  margin-bottom: var(--space-md);
}

.line-cta-list li {
  padding: 0.25rem 0;
}

.line-cta-list li::before {
  content: '✔️ ';
}

.line-qr {
  display: inline-block;
  padding: 12px;
  background: var(--color-white);
  border-radius: var(--border-radius-sm);
}

.line-qr img {
  display: block;
  width: 150px;
  height: 150px;
  object-fit: contain;
}

/* ========================================
   レスポンシブGoogle Map
   ======================================== */
.map-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  border: var(--border-retro);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-retro);
}

.map-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ========================================
   お知らせリスト
   ======================================== */
.news-list {
  list-style: none;
}

.news-item {
  display: flex;
  gap: var(--space-sm);
  padding: var(--space-sm);
  border-bottom: 1px dashed var(--color-text);
  transition: all 0.3s ease;
}

.news-item:hover {
  background: rgba(255, 107, 53, 0.05);
  padding-left: var(--space-md);
}

.news-date {
  flex-shrink: 0;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-main);
  background: rgba(255, 107, 53, 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: var(--border-radius-sm);
}

.news-title {
  flex: 1;
}

/* ========================================
   ユーティリティ
   ======================================== */
.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }

.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }

.text-main { color: var(--color-main); }
.text-accent1 { color: var(--color-accent1); }
.text-accent2 { color: var(--color-accent2); }
.text-accent3 { color: var(--color-accent3); }

.bg-white { background-color: var(--color-white); }
.bg-base { background-color: var(--color-base); }

/* スクロールアニメーション */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 吹き出し風ポップ */
.speech-bubble {
  position: relative;
  display: inline-block;
  padding: var(--space-sm) var(--space-md);
  background: var(--color-white);
  border: var(--border-retro);
  border-radius: var(--border-radius-md);
}

.speech-bubble::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 30px;
  border-width: 15px 10px 0;
  border-style: solid;
  border-color: var(--color-text) transparent transparent;
}

/* ========================================
   アクセシビリティ
   ======================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* フォーカス状態 */
:focus-visible {
  outline: 3px solid var(--color-accent1);
  outline-offset: 2px;
}
