/*
Theme Name: ツッキー新世界
Theme URI: https://tsukky-shinsekai.com
Author: 株式会社Moook
Author URI: https://tsukky-shinsekai.com
Description: ツッキー新世界 TikTokコンサルティング・セミナー ランディングページテーマ。ナチュラル上品配色（アイボリー×テラコッタ×くすみゴールド）。40代・50代・60代向けTikTok講座・企業案件・コラムページ対応。
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tsukky-shinsekai
Tags: landing-page, blog, custom-colors, custom-menu, responsive-layout
*/

/* =====================================================
   DESIGN SYSTEM: 「ナチュラル上品」— Ivory × Terracotta × Dusty Gold
   Color: Ivory #F7F2EA × Terracotta #B65A3C × Dusty Gold #C59A5A
   Font: Noto Serif JP (headings) + Noto Sans JP (body) + Oswald (numbers)
   Philosophy: Warm, trustworthy, approachable for 40s-60s audience
   ===================================================== */

/* ── CSS Variables ─────────────────────────────────── */
:root {
  --brand-terracotta: #B65A3C;
  --brand-terracotta-dark: #9E4D32;
  --brand-gold: #C59A5A;
  --brand-gold-dark: #A07A3A;
  --brand-ivory: #F7F2EA;
  --brand-ivory-alt: #EDE8DF;
  --brand-card: #FFFDF8;
  --brand-heading: #2E2A26;
  --brand-body: #5F5A54;
  --brand-body-alt: #6B6560;
  --brand-border: #E5D8C8;
  --brand-border-light: #D4C4A8;
  --brand-muted: #9E9890;
  --brand-muted-light: #B8AFA4;
  --brand-line-green: #06C755;
  --font-serif: 'Noto Serif JP', serif;
  --font-sans: 'Noto Sans JP', sans-serif;
  --font-display: 'Oswald', sans-serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

/* ── Reset & Base ──────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--brand-ivory);
  color: var(--brand-heading);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 900;
  line-height: 1.3;
}

h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 700;
}

a {
  color: inherit;
  text-decoration: none;
}

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

ul, ol {
  list-style: none;
}

/* ── Layout ────────────────────────────────────────── */
.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
    max-width: 1200px;
  }
}

/* ── Typography Utilities ──────────────────────────── */
.font-oswald { font-family: var(--font-display); }
.font-serif-jp { font-family: var(--font-serif); }
.font-sans-jp { font-family: var(--font-sans); }
.text-gold { color: var(--brand-gold); }
.text-terracotta { color: var(--brand-terracotta); }

/* ── Gold Divider ──────────────────────────────────── */
.gold-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-gold), var(--brand-gold-dark));
  margin: 1rem 0;
}

/* ── Section Heading ───────────────────────────────── */
.section-heading {
  position: relative;
  padding-left: 1.25rem;
}
.section-heading::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--brand-terracotta);
}

/* ── Buttons ───────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--brand-terracotta);
  color: #FFFDF8;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.1rem;
  padding: 1rem 2rem;
  border-radius: 0.375rem;
  transition: all 0.2s var(--ease-out);
  border: 2px solid var(--brand-terracotta);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.btn-primary:hover {
  background: var(--brand-terracotta-dark);
  border-color: var(--brand-terracotta-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(182, 90, 60, 0.35);
}
.btn-primary:active {
  transform: scale(0.97);
}

.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--brand-gold-dark);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.1rem;
  padding: 1rem 2rem;
  border-radius: 0.375rem;
  transition: all 0.2s var(--ease-out);
  border: 2px solid var(--brand-gold);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.btn-gold:hover {
  background: var(--brand-gold);
  color: #FFFDF8;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(197, 154, 90, 0.3);
}
.btn-gold:active {
  transform: scale(0.97);
}

/* Pulse animation for primary CTA */
@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0 rgba(182, 90, 60, 0.5); }
  70%  { box-shadow: 0 0 0 12px rgba(182, 90, 60, 0); }
  100% { box-shadow: 0 0 0 0 rgba(182, 90, 60, 0); }
}
.btn-pulse {
  animation: pulse-ring 2s infinite;
}

/* LINE main button */
.btn-line-main {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  background: var(--brand-line-green);
  color: #ffffff;
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: 1.15rem;
  padding: 1.1rem 2.5rem;
  border-radius: 9999px;
  transition: all 0.2s var(--ease-out);
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 6px 24px rgba(6, 199, 85, 0.3);
  border: none;
  cursor: pointer;
}
.btn-line-main:hover {
  background: #05b34c;
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(6, 199, 85, 0.4);
}
.btn-line-main:active {
  transform: scale(0.97);
}

/* ── Scroll Animations ─────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-32px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.slide-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(32px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.slide-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ── Card Hover ────────────────────────────────────── */
.card-hover {
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}
.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(46, 42, 38, 0.12);
}

/* ── TikTok Badge ──────────────────────────────────── */
.tiktok-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #EDE8DF;
  border: 1px solid var(--brand-border);
  border-radius: 9999px;
  padding: 0.3rem 0.8rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand-body);
}

/* ── Form Inputs ───────────────────────────────────── */
.form-input {
  width: 100%;
  background: var(--brand-card);
  border: 1px solid var(--brand-border);
  border-radius: 0.375rem;
  padding: 0.875rem 1rem;
  color: var(--brand-heading);
  font-family: var(--font-sans);
  font-size: 1rem;
  transition: border-color 0.2s;
  outline: none;
  -webkit-appearance: none;
}
.form-input:focus {
  border-color: var(--brand-terracotta);
  box-shadow: 0 0 0 3px rgba(182, 90, 60, 0.15);
}
.form-input::placeholder {
  color: var(--brand-muted-light);
}

/* ── Step Circle ───────────────────────────────────── */
.step-circle {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--brand-terracotta);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: #FFFDF8;
  flex-shrink: 0;
}

/* ── FAQ Accordion ─────────────────────────────────── */
.faq-item {
  border-bottom: 1px solid var(--brand-border);
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0;
  background: none;
  border: none;
  color: var(--brand-heading);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.05rem;
  text-align: left;
  cursor: pointer;
}
.faq-question .q-label {
  color: var(--brand-terracotta);
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
}
.faq-toggle {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #9E9890;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: transform 0.2s;
  background: none;
  cursor: pointer;
}
.faq-toggle.open {
  transform: rotate(45deg);
}
.faq-answer {
  display: none;
  padding-bottom: 1.5rem;
  padding-left: 2rem;
  color: var(--brand-body-alt);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.9;
}
.faq-answer.open {
  display: block;
}
.faq-answer .a-label {
  color: var(--brand-gold);
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-right: 0.5rem;
}

/* ── Stat Number ───────────────────────────────────── */
.stat-number {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--brand-gold);
  line-height: 1;
}

/* ── Sticky Nav ────────────────────────────────────── */
.sticky-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(247, 242, 234, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--brand-border);
  transition: all 0.3s;
}

/* ── Floating LINE Button ──────────────────────────── */
.floating-line-btn {
  position: fixed;
  bottom: 1.75rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out);
  pointer-events: none;
}
.floating-line-btn.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.floating-line-btn__tooltip {
  background: #EDE8DF;
  border: 1px solid rgba(46, 42, 38, 0.2);
  border-radius: 0.5rem;
  padding: 0.5rem 0.875rem;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--brand-heading);
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(46, 42, 38, 0.10);
  opacity: 0;
  transform: translateX(8px) scale(0.95);
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
}
.floating-line-btn__button:hover + .floating-line-btn__tooltip,
.floating-line-btn:hover .floating-line-btn__tooltip {
  opacity: 1;
  transform: translateX(0) scale(1);
}
.floating-line-btn__button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #3aac59;
  box-shadow: 0 6px 24px rgba(30, 100, 60, 0.4);
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
  text-decoration: none;
  flex-shrink: 0;
  position: relative;
}
.floating-line-btn__button:hover {
  background: #2d9048;
  transform: scale(1.08);
  box-shadow: 0 8px 32px rgba(30, 100, 60, 0.55);
}
.floating-line-btn__pulse {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid #3aac59;
  animation: linePulse 2.4s ease-out infinite;
  pointer-events: none;
}

@keyframes linePulse {
  0%   { transform: scale(1); opacity: 0.7; }
  70%  { transform: scale(1.55); opacity: 0; }
  100% { transform: scale(1.55); opacity: 0; }
}

/* ── Nav Mobile Menu ───────────────────────────────── */
.nav-mobile-menu {
  display: none;
  flex-direction: column;
  background: rgba(247, 242, 234, 0.98);
  border-top: 1px solid var(--brand-border);
  padding: 1rem 0;
}
.nav-mobile-menu.open {
  display: flex;
}
.nav-mobile-menu a {
  padding: 0.75rem 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--brand-body);
  border-bottom: 1px solid var(--brand-border);
}
.nav-mobile-menu a:last-child {
  border-bottom: none;
}

/* ── Column (Blog) Styles ──────────────────────────── */
.column-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}
.column-card {
  background: var(--brand-card);
  border: 1px solid var(--brand-border);
  border-radius: 0.5rem;
  overflow: hidden;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}
.column-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(46, 42, 38, 0.12);
}
.column-card__thumb {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}
.column-card__thumb-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--brand-ivory-alt);
  display: flex;
  align-items: center;
  justify-content: center;
}
.column-card__body {
  padding: 1.25rem 1.5rem 1.5rem;
}
.column-card__cat {
  display: inline-block;
  background: var(--brand-ivory-alt);
  border: 1px solid var(--brand-border);
  border-radius: 9999px;
  padding: 0.2rem 0.75rem;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brand-terracotta);
  margin-bottom: 0.75rem;
}
.column-card__date {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--brand-muted);
  margin-bottom: 0.5rem;
}
.column-card__title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1rem;
  color: var(--brand-heading);
  line-height: 1.5;
  margin-bottom: 0.75rem;
}
.column-card__excerpt {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: var(--brand-body-alt);
  line-height: 1.7;
}

/* Single post content */
.entry-content {
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--brand-body);
  line-height: 2;
  max-width: 800px;
  margin: 0 auto;
}
.entry-content h2 {
  font-size: 1.6rem;
  color: var(--brand-heading);
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--brand-border);
}
.entry-content h3 {
  font-size: 1.2rem;
  color: var(--brand-heading);
  margin: 2rem 0 0.75rem;
}
.entry-content p {
  margin-bottom: 1.5rem;
}
.entry-content ul, .entry-content ol {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}
.entry-content ol {
  list-style: decimal;
}
.entry-content li {
  margin-bottom: 0.5rem;
}
.entry-content a {
  color: var(--brand-terracotta);
  text-decoration: underline;
}
.entry-content blockquote {
  border-left: 4px solid var(--brand-gold);
  padding: 1rem 1.5rem;
  background: var(--brand-ivory-alt);
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--brand-body-alt);
}
.entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin: 1.5rem 0;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3rem;
}
.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.375rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 700;
  border: 1px solid var(--brand-border);
  color: var(--brand-body);
  transition: all 0.2s;
}
.pagination a:hover {
  background: var(--brand-terracotta);
  color: #FFFDF8;
  border-color: var(--brand-terracotta);
}
.pagination .current {
  background: var(--brand-terracotta);
  color: #FFFDF8;
  border-color: var(--brand-terracotta);
}

/* ── WordPress Core Compatibility ──────────────────── */
.wp-block-image img {
  border-radius: 0.5rem;
}
.aligncenter {
  text-align: center;
  margin: 0 auto;
}
.alignleft {
  float: left;
  margin-right: 1.5rem;
  margin-bottom: 1rem;
}
.alignright {
  float: right;
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}
.clearfix::after {
  content: '';
  display: table;
  clear: both;
}

/* ── Responsive Utilities ──────────────────────────── */
@media (max-width: 768px) {
  html { font-size: 16px; }
  .hide-mobile { display: none !important; }
  .column-grid {
    grid-template-columns: 1fr;
  }
}
@media (min-width: 769px) {
  .hide-desktop { display: none !important; }
}
