<?php
declare(strict_types=1);

/**
 * Customizer — Section Definitions.
 *
 * @package WTE_Business_Card
 * @since   1.0.0
 */

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

function wte_customizer_sections( \WP_Customize_Manager $wp_customize ): void {

	// ── Panel 1: サイト基本情報 ─────────────────────────
	$wp_customize->add_section( 'wte_section_logo', [
		'title'    => __( 'サイトタイトル・ロゴ', 'wte_' ),
		'panel'    => 'wte_panel_basic',
		'priority' => 10,
	] );

	$wp_customize->add_section( 'wte_section_owner', [
		'title'    => __( '運営者情報', 'wte_' ),
		'panel'    => 'wte_panel_basic',
		'priority' => 20,
	] );

	$wp_customize->add_section( 'wte_section_greeting', [
		'title'    => __( '代表挨拶', 'wte_' ),
		'panel'    => 'wte_panel_basic',
		'priority' => 30,
	] );

	// ── Panel 2: デザイン設定 ───────────────────────────
	$wp_customize->add_section( 'wte_section_colors', [
		'title'    => __( 'カラー設定', 'wte_' ),
		'panel'    => 'wte_panel_design',
		'priority' => 10,
	] );

	$wp_customize->add_section( 'wte_section_fonts', [
		'title'    => __( 'フォント設定', 'wte_' ),
		'panel'    => 'wte_panel_design',
		'priority' => 20,
	] );

	$wp_customize->add_section( 'wte_section_header', [
		'title'    => __( 'ヘッダー設定', 'wte_' ),
		'panel'    => 'wte_panel_design',
		'priority' => 30,
	] );

	// ── Panel 3: 事業概要 ──────────────────────────────
	$wp_customize->add_section( 'wte_section_hero', [
		'title'    => __( 'キャッチコピー・ヒーロー', 'wte_' ),
		'panel'    => 'wte_panel_business',
		'priority' => 10,
	] );

	$wp_customize->add_section( 'wte_section_services', [
		'title'    => __( 'サービス概要', 'wte_' ),
		'panel'    => 'wte_panel_business',
		'priority' => 20,
	] );

	$wp_customize->add_section( 'wte_section_appeal', [
		'title'    => __( 'アピールポイント（3点）', 'wte_' ),
		'panel'    => 'wte_panel_business',
		'priority' => 30,
	] );

	// ── Panel 4: SNS ───────────────────────────────────
	$wp_customize->add_section( 'wte_section_sns', [
		'title'    => __( 'SNSアカウント', 'wte_' ),
		'panel'    => 'wte_panel_sns',
		'priority' => 10,
	] );

	// ── Panel 5: お問い合わせ ───────────────────────────
	$wp_customize->add_section( 'wte_section_contact', [
		'title'    => __( 'お問い合わせ設定', 'wte_' ),
		'panel'    => 'wte_panel_contact',
		'priority' => 10,
	] );

	// ── Panel 6: SEO ───────────────────────────────────
	$wp_customize->add_section( 'wte_section_seo', [
		'title'    => __( 'SEO基本設定', 'wte_' ),
		'panel'    => 'wte_panel_seo',
		'priority' => 10,
	] );

	$wp_customize->add_section( 'wte_section_google', [
		'title'    => __( 'Google設定（reCAPTCHA等）', 'wte_' ),
		'panel'    => 'wte_panel_seo',
		'priority' => 20,
	] );
}
add_action( 'customize_register', 'wte_customizer_sections', 11 );
