/*
Theme Name: MC Support Corporate Theme
Theme URI: https://mc-support.com
Author: MC Support
Author URI: https://mc-support.com
Description: 株式会社MCサポート コーポレートサイト用WordPressテーマ - 保険業界特化型DXコールセンター
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mssupport
*/

:root {
    --primary: #141762;
    --accent: #00a0e9;
    --bg-light: #f8fafc;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: #1a1a1a;
    overflow-x: hidden;
    background-color: #fff;
    margin: 0;
    padding: 0;
}

/* アニメーション用クラス */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ヘッダー */
header {
    transition: all 0.3s ease;
    background: transparent;
}

header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

header.scrolled .nav-link {
    color: var(--primary);
}

header.scrolled .logo-text {
    color: var(--primary);
}

/* スクロール時のヘッダーお問い合わせボタンの調整 */
header.scrolled .header-btn-contact {
    background-color: var(--primary);
    color: white !important;
}

.nav-link {
    position: relative;
    transition: color 0.3s;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--accent);
    transition: width 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

/* ヒーローセクション */
.hero-bg {
    background: #141762;
    background-size: cover;
    background-position: center;
}

/* ボタン */
.btn-primary {
    background-color: var(--primary);
    color: white;
    transition: all 0.3s;
}

.btn-primary:hover {
    background-color: #1e2280;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(20, 23, 98, 0.2);
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    transition: all 0.3s;
}

.btn-outline:hover {
    background-color: var(--primary);
    color: white;
}

/* ヘッダー専用のお問い合わせボタン */
.header-btn-contact {
    background-color: var(--primary);
    color: white !important;
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    font-weight: bold;
    transition: all 0.3s;
    border: 1px solid rgba(255,255,255,0.2);
}

.header-btn-contact:hover {
    opacity: 0.9;
    transform: scale(1.05);
}

/* 大型CTAセクション */
.cta-box {
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease;
}

.cta-box img {
    transition: transform 0.6s ease;
}

.cta-box:hover img {
    transform: scale(1.05);
}

.cta-overlay {
    background: rgba(20, 23, 98, 0.7);
    transition: background 0.4s ease;
}

.cta-box:hover .cta-overlay {
    background: rgba(20, 23, 98, 0.85);
}

/* フォーム入力 */
.form-input {
    border: 1px solid #e2e8f0;
    padding: 0.85rem;
    border-radius: 0.375rem;
    width: 100%;
    transition: border-color 0.3s;
    background: #fff;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(20, 23, 98, 0.1);
}

/* 規約ボックス */
.policy-box {
    height: 200px;
    overflow-y: scroll;
    border: 1px solid #e2e8f0;
    padding: 1.5rem;
    font-size: 0.875rem;
    line-height: 1.6;
    color: #4a5568;
    background: #f8fafc;
    text-align: left;
}

/* チェックボックスのスタイリング */
.checkbox-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    cursor: pointer;
}

.custom-checkbox {
    width: 1.25rem;
    height: 1.25rem;
    cursor: pointer;
}

.news-item {
    transition: background-color 0.3s;
}

.news-item:hover {
    background-color: #f8fafc;
}

/* WordPress specific resets */
.alignnone,
.aligncenter,
.alignleft,
.alignright {
    display: block;
    margin: 1em auto;
}

.alignleft {
    float: left;
    margin-right: 1em;
}

.alignright {
    float: right;
    margin-left: 1em;
}

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

.wp-caption-text {
    font-size: 0.875rem;
    color: #666;
    text-align: center;
}
