/*
Theme Name: NMG Child Theme
Theme URI: https://nmgiken.jp/
Description: 日本未来技研（NMG）専用 SWELL子テーマ。21ページのカスタムテンプレートを内包。Tailwind CDN + Phosphor Icons + Montserrat/Noto Sans JP。
Author: NMG / Felidentia Capital
Author URI: https://nmgiken.jp/
Template: swell
Version: 1.0.9
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nmg-child
*/

/* ========================================================
 * NMG Child Theme - 全テンプレート共通スタイル
 * ※ Tailwind CSS CDN を併用するため、ここでは最小限の上書きのみ
 * ======================================================== */

/* SWELL親テーマの装飾を一部リセット（NMGデザインを優先） */
body.nmg-page {
    background-color: #0A0A0F;
    color: #F5F5F0;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body.nmg-page * {
    border-radius: 0 !important;
}

/* SWELLのコンテンツラッパー幅制限を解除（NMGページはフルワイド） */
body.nmg-page .l-container,
body.nmg-page .l-mainContent,
body.nmg-page .p-articleThumb,
body.nmg-page .l-articleSection {
    max-width: none !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* SWELLのページタイトル・パンくず非表示（NMG独自ヒーロー利用のため） */
body.nmg-page .p-articleTitle,
body.nmg-page .p-breadcrumb,
body.nmg-page .l-header,
body.nmg-page .l-footer {
    display: none !important;
}

/* NMG共通テキストスタイル */
.txt-body {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 14px;
    line-height: 2.0;
}

.txt-sub-jp {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    font-weight: 500;
}

.txt-en-header {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* 背景グリッド */
.bg-grid-subtle {
    background-size: 60px 60px;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
}

/* ナビゲーション共通 */
.nav-link {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 12px;
    letter-spacing: 0.2em;
    color: rgba(245, 245, 240, 0.7);
    text-decoration: none;
    transition: color 0.2s ease;
    text-transform: uppercase;
}

.nav-link:hover,
.nav-link.active {
    color: #4A90D9;
}

/* セクション余白 */
.section-gap {
    padding-top: clamp(100px, 12vw, 180px);
    padding-bottom: clamp(100px, 12vw, 180px);
}

.section-gap-sm {
    padding-top: clamp(60px, 8vw, 120px);
    padding-bottom: clamp(60px, 8vw, 120px);
}

/* パートナーカード共通アニメーション */
.partner-card { will-change: transform; }

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 60px rgba(74, 144, 217, 0.25); }
    50% { box-shadow: 0 0 100px rgba(74, 144, 217, 0.4); }
}

[style*="pulseGlow"] { will-change: box-shadow; }

/* ============================================================
 * CF7 (Contact Form 7) Tailwind-like スタイル
 * 暗背景 + offwhite テキスト + steel アクセント
 * ============================================================ */

.cf7-wrapper {
    color: #F5F5F0;
    font-family: 'Noto Sans JP', sans-serif;
}

.cf7-wrapper p {
    margin-bottom: 1.5rem;
    color: rgba(245, 245, 240, 0.7);
    font-size: 0.875rem;
    line-height: 1.6;
}

.cf7-wrapper label {
    display: block;
    color: rgba(245, 245, 240, 0.7);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.cf7-wrapper input[type="text"],
.cf7-wrapper input[type="email"],
.cf7-wrapper input[type="tel"],
.cf7-wrapper input[type="url"],
.cf7-wrapper input[type="number"],
.cf7-wrapper input[type="date"],
.cf7-wrapper input[type="datetime-local"],
.cf7-wrapper input[type="time"],
.cf7-wrapper textarea,
.cf7-wrapper select {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.75rem 1rem;
    color: #F5F5F0;
    font-size: 0.875rem;
    font-family: inherit;
    transition: border-color 0.2s ease, background-color 0.2s ease;
    appearance: none;
}

.cf7-wrapper select {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='%234A90D9'%3E%3Cpath d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.cf7-wrapper select option {
    background: #0A0A0F;
    color: #F5F5F0;
}

.cf7-wrapper input:focus,
.cf7-wrapper textarea:focus,
.cf7-wrapper select:focus {
    border-color: #4A90D9;
    outline: none;
    background-color: rgba(255, 255, 255, 0.08);
}

.cf7-wrapper input::placeholder,
.cf7-wrapper textarea::placeholder {
    color: rgba(245, 245, 240, 0.3);
}

.cf7-wrapper textarea {
    min-height: 140px;
    resize: vertical;
    line-height: 1.7;
}

.cf7-wrapper input[type="file"] {
    display: block;
    width: 100%;
    margin-top: 0.5rem;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px dashed rgba(255, 255, 255, 0.2);
    padding: 1rem;
    color: rgba(245, 245, 240, 0.7);
    font-size: 0.875rem;
    font-family: inherit;
}

/* チェックボックス・ラジオ */
.cf7-wrapper .wpcf7-checkbox,
.cf7-wrapper .wpcf7-radio,
.cf7-wrapper .wpcf7-acceptance {
    display: block;
}

.cf7-wrapper .wpcf7-list-item {
    display: inline-flex;
    align-items: center;
    margin: 0 1.25rem 0.5rem 0;
}

.cf7-wrapper .wpcf7-list-item-label {
    margin-left: 0.5rem;
    color: rgba(245, 245, 240, 0.85);
    font-size: 0.875rem;
}

.cf7-wrapper input[type="checkbox"],
.cf7-wrapper input[type="radio"] {
    width: 1rem;
    height: 1rem;
    accent-color: #4A90D9;
    cursor: pointer;
}

/* acceptance（プライバシー同意） */
.cf7-wrapper .wpcf7-acceptance {
    margin-top: 1rem;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.03);
    border-left: 2px solid rgba(74, 144, 217, 0.5);
}

.cf7-wrapper .wpcf7-acceptance label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin: 0;
    cursor: pointer;
}

.cf7-wrapper .wpcf7-acceptance a {
    color: #4A90D9;
    text-decoration: underline;
}

/* 送信ボタン */
.cf7-wrapper input[type="submit"],
.cf7-wrapper button[type="submit"],
.cf7-wrapper .wpcf7-submit {
    display: inline-block;
    background-color: #4A90D9;
    color: white;
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    padding: 1rem 3rem;
    border: 1px solid #4A90D9;
    cursor: pointer;
    margin-top: 1.5rem;
    transition: all 0.2s ease;
    font-family: inherit;
    width: auto;
}

.cf7-wrapper input[type="submit"]:hover,
.cf7-wrapper button[type="submit"]:hover,
.cf7-wrapper .wpcf7-submit:hover {
    background-color: transparent;
    color: #4A90D9;
}

/* バリデーションエラー */
.cf7-wrapper .wpcf7-not-valid-tip {
    color: #FF6B6B;
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.cf7-wrapper .wpcf7-not-valid {
    border-color: #FF6B6B !important;
}

/* レスポンスメッセージ */
.cf7-wrapper .wpcf7-response-output {
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-color: rgba(74, 144, 217, 0.08);
    color: #F5F5F0;
    padding: 1rem 1.5rem;
    margin-top: 1.5rem;
    font-family: inherit;
    font-size: 0.875rem;
}

.cf7-wrapper .wpcf7-mail-sent-ok {
    border-color: rgba(74, 144, 217, 0.6);
    background-color: rgba(74, 144, 217, 0.15);
}

.cf7-wrapper .wpcf7-validation-errors,
.cf7-wrapper .wpcf7-mail-sent-ng {
    border-color: rgba(255, 107, 107, 0.6);
    background-color: rgba(255, 107, 107, 0.1);
}

/* スピナー */
.cf7-wrapper .wpcf7-spinner {
    background-color: rgba(74, 144, 217, 0.5);
}
