@charset "UTF-8";

/* ==========================================================
   Premium MacBook Setup Article Style (Glassmorphism & Clean)
   ========================================================== */

/* Base Variables */
:root {
  --bg-color: #f7f9fc;
  --text-main: #2c3138;
  --text-muted: #6b7280;
  --accent-blue: #0A84FF;
  --accent-bluelight: #e5f1ff;
  --amazon-orange: #f0c14b;
  --amazon-orange-hover: #ddb347;
  --container-bg: #ffffff;
  --border-color: #e5e7eb;
  --font-base: 'Inter', 'Noto Sans JP', sans-serif;
}

/* Reset & Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: var(--font-base);
  color: var(--text-main);
  background-color: var(--bg-color);
  line-height: 1.8;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4, strong {
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* Legal Disclosure (ステマ規制対応) */
.legal-disclosure {
  background-color: #f3f4f6;
  color: #4b5563;
  font-size: 0.85rem;
  text-align: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-color);
}
.legal-disclosure span {
  display: inline-block;
  background: #e5e7eb;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
  margin-right: 8px;
  font-size: 0.75rem;
}

/* Layout */
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}
.glass-panel {
  background: var(--container-bg);
  border-radius: 24px;
  padding: 50px 40px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.03);
  border: 1px solid rgba(255,255,255,0.6);
  backdrop-filter: blur(10px);
}

/* Header Section */
header {
  text-align: center;
  margin-bottom: 50px;
}
header h1 {
  font-size: 2rem;
  line-height: 1.4;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #1d2b64 0%, #f8cdda 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
header p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* Sections & Article */
article section {
  margin-bottom: 60px;
}
h2 {
  font-size: 1.5rem;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--accent-bluelight);
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  color: #111827;
}
h3 {
  font-size: 1.25rem;
  margin-top: 40px;
  margin-bottom: 15px;
  padding-left: 12px;
  border-left: 4px solid var(--accent-blue);
  color: #1f2937;
}
p {
  margin-bottom: 15px;
}
ul, ol {
  margin-bottom: 20px;
  padding-left: 20px;
}
li {
  margin-bottom: 8px;
}
code {
  font-family: monospace;
  background: #f1f5f9;
  padding: 3px 6px;
  border-radius: 6px;
  color: #ea580c;
  font-size: 0.9em;
}

/* AdSense Placeholder */
.adsense-box {
  background: #f9fafb;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  margin: 40px 0;
  color: #94a3b8;
  font-size: 0.9rem;
  position: relative;
}
.adsense-box::before {
  content: "Google AdSense広告枠";
  display: block;
  font-weight: 600;
  margin-bottom: 5px;
  color: #64748b;
}

/* Affiliate Block (High CTR Design) */
.affiliate-block {
  background: linear-gradient(to right bottom, #ffffff, #f8fafc);
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 25px;
  margin: 30px 0;
  box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}
.affiliate-block p {
  font-size: 0.95rem;
  margin-bottom: 20px;
}
.affiliate-block strong {
  color: #0c4a6e;
}
.btn-amazon {
  display: block;
  text-align: center;
  background: linear-gradient(180deg, #f8e6b8 0%, #f3d078 100%);
  color: #111;
  text-decoration: none;
  font-weight: 700;
  padding: 16px 24px;
  border-radius: 12px;
  border: 1px solid #c89c38;
  box-shadow: 0 4px 6px rgba(240, 193, 75, 0.2);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  margin-bottom: 15px;
  position: relative;
  overflow: hidden;
}
.btn-amazon::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 50%; height: 100%;
  background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-25deg);
  animation: shine 4s infinite;
}
@keyframes shine {
  0% { left: -100%; }
  20% { left: 200%; }
  100% { left: 200%; }
}
.btn-amazon:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 15px rgba(200, 156, 56, 0.3);
  background: linear-gradient(180deg, #f9ecd1 0%, #f4d688 100%);
}
.btn-amazon span {
  font-size: 0.8rem;
  font-weight: normal;
  display: block;
  margin-top: 2px;
  color: #444;
}

/* Images */
.article-img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  margin: 10px 0 30px 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  display: block;
}
.affiliate-img {
  width: 100%;
  max-width: 320px;
  height: auto;
  border-radius: 12px;
  margin: 15px auto;
  display: block;
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
}

.affiliate-product-row {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 15px;
}
@media (min-width: 650px) {
  .affiliate-product-row {
    flex-direction: row;
    align-items: stretch;
  }
  .affiliate-product {
    flex: 1;
    display: flex;
    flex-direction: column;
  }
  .affiliate-product .btn-amazon {
    margin-top: auto;
  }
}

.placeholder-img {
  background: #f8fafc;
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 15px auto;
  width: 100%;
  max-width: 320px;
}
.placeholder-img span {
  color: #64748b;
  font-size: 0.9rem;
  font-weight: 600;
}

/* ==========================================================
   ナビゲーションメニュー & ハンバーガー (Navigation)
   ========================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}
.nav-logo {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--accent-blue);
  text-decoration: none;
  letter-spacing: -0.5px;
}
.nav-menu {
  list-style: none;
  display: flex;
  gap: 25px;
  margin: 0;
  padding: 0;
}
.nav-item a {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s ease;
  position: relative;
}
.nav-item a::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--accent-blue);
  transition: width 0.3s ease;
}
.nav-item a:hover {
  color: var(--accent-blue);
}
.nav-item a:hover::after {
  width: 100%;
}

/* ==========================================================
   モバイル用ハンバーガーアイコン (Hamburger Icon)
   ========================================================== */
.hamburger {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
  border: none;
  background: transparent;
  padding: 5px;
  z-index: 1001;
}
.hamburger span {
  display: block;
  width: 28px;
  height: 3px;
  background-color: var(--text-main);
  border-radius: 3px;
  transition: all 0.3s ease-in-out;
}

/* ==========================================================
   スクロール時のフワッとアニメーション (Scroll Reveal)
   ========================================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================
   レスポンシブデザイン (Responsive / Mobile)
   ========================================================== */
@media (max-width: 800px) {
  .hamburger {
    display: flex;
  }
  .nav-menu {
    position: fixed;
    top: 60px;
    right: -100%;
    width: 100%;
    height: calc(100vh - 60px);
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 40px;
    gap: 30px;
    transition: right 0.4s cubic-bezier(0.77, 0.2, 0.05, 1.0);
    box-shadow: -5px 0 15px rgba(0,0,0,0.05);
  }
  .nav-menu.active {
    right: 0;
  }
  .nav-item a {
    font-size: 1.2rem;
    font-weight: 600;
  }
  .hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }
}

@media (max-width: 600px) {
  .glass-panel {
    padding: 30px 20px;
    border-radius: 16px;
  }
  header h1 {
    font-size: 1.5rem;
  }
}
