/*
Theme Name: Upzemi Theme 2026
Theme URI: https://upzemi.com
Description: Custom theme for Upzemi renewal 2026
Author: Upzemi
Author URI: https://upzemi.com
Version: 1.0
*/

/* Global Styles from index.html */
body {
    font-family: "Noto Sans JP", sans-serif;
    color: #1e293b;
    line-height: 1.8;
}

.section-title-center::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #00aeef, #ffd700);
    margin: 1.5rem auto 0;
}

.section-title-left::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #00aeef, #ffd700);
    margin: 1.5rem 0 0;
}

/* :target for mobile menu (JS-free) */
#mobile-menu:target {
    display: block !important;
}

/* Hide bottom CTA when menu is open */
#mobile-menu:target ~ #bottom-cta {
    display: none !important;
}

/* 固定ページ本文の見た目（Tailwind CDN運用向け） */
.upzemi-prose {
    color: #334155; /* slate-700 */
    line-height: 1.9;
    font-size: 16px;
}

.upzemi-prose > * + * {
    margin-top: 1.1em;
}

.upzemi-prose h2 {
    margin-top: 2em;
    font-size: 1.6rem;
    line-height: 1.3;
    font-weight: 900;
    color: #003366; /* up-navy */
    padding-bottom: 0.6rem;
    border-bottom: 2px solid rgba(0, 174, 239, 0.25); /* up-cyan */
}

.upzemi-prose h3 {
    margin-top: 1.6em;
    font-size: 1.25rem;
    line-height: 1.4;
    font-weight: 800;
    color: #003366;
}

.upzemi-prose a {
    color: #00aeef;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 2px solid rgba(0, 174, 239, 0.35);
}
.upzemi-prose a:hover {
    color: #ffd700;
    border-bottom-color: rgba(255, 215, 0, 0.6);
}

.upzemi-prose ul,
.upzemi-prose ol {
    padding-left: 1.3rem;
}
.upzemi-prose li + li {
    margin-top: 0.4rem;
}

.upzemi-prose blockquote {
    margin-top: 1.5em;
    padding: 1rem 1.2rem;
    background: #f8fafc; /* slate-50 */
    border-left: 4px solid #00aeef;
    border-radius: 14px;
    color: #475569; /* slate-600 */
}

.upzemi-prose table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}
.upzemi-prose th,
.upzemi-prose td {
    border: 1px solid #e2e8f0;
    padding: 0.75rem;
}
.upzemi-prose th {
    background: #f1f5f9;
    color: #0f172a;
    text-align: left;
}

/* =====================================
   UPZEMI PROSE STYLE（本文整形）
===================================== */

.upzemi-prose {
    font-size: 1.05rem;
    line-height: 1.9;
    color: #334155;
}

.upzemi-prose h2 {
    font-size: 1.8rem;
    font-weight: 900;
    color: #003366;
    margin-top: 3rem;
    margin-bottom: 1rem;
}

.upzemi-prose h3 {
    font-size: 1.4rem;
    font-weight: 800;
    color: #003366;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.upzemi-prose p {
    margin-bottom: 1.4rem;
}

.upzemi-prose ul,
.upzemi-prose ol {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.upzemi-prose li {
    margin-bottom: 0.6rem;
}

.upzemi-prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
}

.upzemi-prose th {
    background: #003366;
    color: white;
    padding: 0.8rem;
    text-align: left;
}

.upzemi-prose td {
    border: 1px solid #e2e8f0;
    padding: 0.8rem;
}

.upzemi-prose a {
    color: #00aeef;
    font-weight: 600;
    text-decoration: underline;
}

.upzemi-prose strong {
    color: #003366;
    font-weight: 800;
}

/* =========================================
   UPZEMI prose styling (content only)
========================================= */
.upzemi-prose > * {
    margin-top: 1.1em;
    margin-bottom: 1.1em;
}

.upzemi-prose h2 {
    font-size: clamp(1.5rem, 2.3vw, 2rem);
    font-weight: 900;
    color: #003366;
    letter-spacing: -0.02em;
    margin-top: 2.2em;
    margin-bottom: 0.8em;
    line-height: 1.25;
    position: relative;
    padding-bottom: 0.8em;
}
.upzemi-prose h2:after {
    content: "";
    display: block;
    width: 72px;
    height: 4px;
    margin-top: 0.8em;
    background: linear-gradient(90deg, #00aeef, #ffd700);
    border-radius: 999px;
}

.upzemi-prose h3 {
    font-size: 1.25rem;
    font-weight: 900;
    color: #003366;
    margin-top: 1.8em;
    margin-bottom: 0.6em;
}

.upzemi-prose p {
    color: #334155;
    line-height: 1.95;
    font-weight: 500;
}

.upzemi-prose a {
    color: #00aeef;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.upzemi-prose figure,
.upzemi-prose img {
    border-radius: 24px;
}

.upzemi-prose figure {
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 25px rgba(2, 6, 23, 0.08);
}

.upzemi-prose figcaption {
    font-size: 0.85rem;
    color: #64748b;
    padding: 0.75rem 1rem 1rem;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.upzemi-prose ul {
    padding-left: 1.2rem;
    color: #334155;
    font-weight: 700;
}
.upzemi-prose li {
    margin: 0.4em 0;
}
.upzemi-prose blockquote {
    margin: 1.6em 0;
    padding: 1.1rem 1.2rem;
    border-left: 6px solid #00aeef;
    background: #f8fafc;
    border-radius: 18px;
    color: #334155;
    font-weight: 700;
}

/* =========================================
   固定ページ：1カラムの横幅を最適化（狭さ解消）
   - スマホは余白16px
   - PCは最大幅を広めに（1100px）
   - 二重containerを無効化
========================================= */

/* 固定ページの本文ラッパー（想定：.upzemi-prose を付けている） */
.page .upzemi-prose {
    width: 100%;
    max-width: 1100px; /* ←ここで広げる（好みで1200pxでもOK） */
    margin-left: auto;
    margin-right: auto;
    padding-left: 16px;
    padding-right: 16px;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .page .upzemi-prose {
        padding-left: 24px;
        padding-right: 24px;
    }
}

/* “外枠カード”がさらに内側を狭めているケースの保険 */
.page .upzemi-prose .container,
.page .upzemi-prose .max-w-6xl,
.page .upzemi-prose .max-w-5xl,
.page .upzemi-prose .max-w-4xl,
.page .upzemi-prose .max-w-3xl,
.page .upzemi-prose .max-w-2xl {
    max-width: none !important;
}

/* もしセクション側が左右paddingを持っていて二重になる場合は相殺 */
.page .upzemi-prose .px-6,
.page .upzemi-prose .px-5,
.page .upzemi-prose .px-4 {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* 端末によって “カード内カード” が狭い場合：内側paddingだけ確保 */
.page .upzemi-prose .rounded-3xl,
.page .upzemi-prose .rounded-2xl {
    box-sizing: border-box;
}

/* 強制的に反映させる修正版 */
.wpcf7-form p {
    margin-bottom: 25px !important;
    font-weight: bold !important;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form select,
.wpcf7-form textarea {
    width: 100% !important;
    padding: 12px !important;
    border: 1px solid #333 !important; /* 枠線を黒めに */
    border-radius: 4px !important;
    background-color: #fff !important;
    font-size: 16px !important;
    margin-top: 8px !important;
    display: block !important;
}

/* 送信ボタンを目立たせる */
.wpcf7-submit {
    display: block !important;
    width: 280px !important;
    margin: 30px auto !important;
    padding: 15px !important;
    background-color: #ff8c00 !important; /* オレンジ */
    color: #fff !important;
    font-size: 20px !important;
    border-radius: 5px !important;
    border: none !important;
}

/* お問い合わせフォーム全体のスタイル書き換え */
#wpcf7-f145-p16-o1 .wpcf7-form {
    max-width: 900px !important;
    margin: 0 auto !important;
}

/* ラベル（項目名）を太字にして間隔をあける */
#wpcf7-f145-p16-o1 .wpcf7-form p {
    margin-bottom: 30px !important;
    font-weight: bold !important;
    color: #333 !important;
}

/* 入力枠（テキスト、メール、電話番号、セレクトボックス、本文）を強調 */
#wpcf7-f145-p16-o1 .wpcf7-form input[type="text"],
#wpcf7-f145-p16-o1 .wpcf7-form input[type="email"],
#wpcf7-f145-p16-o1 .wpcf7-form input[type="tel"],
#wpcf7-f145-p16-o1 .wpcf7-form select,
#wpcf7-f145-p16-o1 .wpcf7-form textarea {
    display: block !important;
    width: 100% !important;
    padding: 15px !important;
    border: 2px solid #999 !important; /* 枠線を太く、濃いグレーに */
    border-radius: 6px !important;
    background-color: #fcfcfc !important; /* わずかに色をつけて場所を明示 */
    font-size: 16px !important;
    margin-top: 10px !important;
    box-sizing: border-box !important;
    color: #000 !important;
}

/* 入力中（クリックした時）の枠線の色を変える */
#wpcf7-f145-p16-o1 .wpcf7-form input:focus,
#wpcf7-f145-p16-o1 .wpcf7-form textarea:focus {
    border-color: #ff9800 !important; /* オレンジ色に変化 */
    background-color: #fff !important;
    box-shadow: 0 0 8px rgba(255, 152, 0, 0.4) !important;
    outline: none !important;
}

/* 送信ボタンを大きく、目立たせる */
#wpcf7-f145-p16-o1 .wpcf7-submit {
    display: block !important;
    width: 100% !important;
    max-width: 400px !important;
    margin: 40px auto !important;
    padding: 20px !important;
    background-color: #ff9800 !important; /* 目立つオレンジ */
    color: #fff !important;
    font-size: 22px !important;
    font-weight: bold !important;
    border-radius: 50px !important;
    border: none !important;
    cursor: pointer !important;
    box-shadow: 0 4px 0 #e68a00 !important;
}

/* マウスを乗せた時の動き */
#wpcf7-f145-p16-o1 .wpcf7-submit:hover {
    background-color: #e68a00 !important;
    transform: translateY(2px) !important;
    box-shadow: none !important;
}
@supports (-webkit-touch-callout: none) {
    #philosophy {
        overflow: visible !important;
        -webkit-mask-image: -webkit-radial-gradient(
            white,
            black
        ); /* Safariの角丸安定化 */
    }
}

/* Heroの中だけ、本文系のグローバル色指定を無効化して白に戻す */
.hero-fix,
.hero-fix :is(p, li, span, a, small, strong, em) {
    color: rgba(255, 255, 255, 0.85) !important;
}
.hero-fix :is(h1, h2, h3) {
    color: #fff !important;
}
.hero-fix a {
    text-decoration-color: rgba(255, 255, 255, 0.35) !important;
}
