/* ================================================
   LP専用スタイルシート
   style-lp.css
   ================================================ */

/* ------------------------------------------------
   リセットCSS
   ------------------------------------------------ */
   * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ------------------------------------------------
   基本設定
   ------------------------------------------------ */
html {
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    min-height: 100vh;
}

/* ------------------------------------------------
   LPコンテナ
   ------------------------------------------------ */
.lp-container {
    width: 100%;
    max-width: 1920px; /* 最大幅を設定（必要に応じて調整） */
    margin: 0 auto;
    overflow-x: hidden;
}

/* PC表示時のレイアウト（幅55%・中央寄せ） */
@media screen and (min-width: 769px) {
    .lp-container {
        width: 35%;
        margin: 0 auto;
    }
}

/* ------------------------------------------------
   画像セクション共通スタイル
   ------------------------------------------------ */
.lp-section {
    width: 100%;
    display: block;
    position: relative;
}

/* 画像の基本設定 */
.lp-section img {
    width: 100%;
    height: auto;
    display: block;
    vertical-align: bottom; /* 画像下の隙間を削除 */
}

/* pictureタグの設定 */
.lp-section picture {
    display: block;
    width: 100%;
}

/* セクション間の余白（デフォルトは0） */
.lp-section + .lp-section {
    margin-top: 0; /* 画像を隙間なく配置 */
}

/* ------------------------------------------------
   オプションクラス
   ------------------------------------------------ */

/* 余白付きセクション */
.lp-section.with-spacing {
    margin-bottom: 40px;
}

/* オーバーレイ付きセクション */
.lp-section.with-overlay {
    position: relative;
}

.overlay-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 1;
}

/* フェードイン効果（オプション） */
.lp-section.fade-in {
    opacity: 0;
    animation: fadeIn 1s ease-in forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* ------------------------------------------------
   リンク関連
   ------------------------------------------------ */
.lp-section a {
    display: block;
    width: 100%;
    text-decoration: none;
}

/* ホバー効果（PC用） */
.lp-section a:hover img {
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

/* フォーカス時のアウトライン（アクセシビリティ） */
.lp-section a:focus {
    outline: 2px solid #0066cc;
    outline-offset: 2px;
}

/* ------------------------------------------------
   ローディング最適化
   ------------------------------------------------ */

/* 画像読み込み前の背景色 */
.lp-section picture img {
    background-color: #f0f0f0;
}

/* レイジーロード用プレースホルダー */
.lp-section.lazy-load {
    min-height: 300px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* ------------------------------------------------
   レスポンシブ対応（タブレット・SP）
   ------------------------------------------------ */

/* タブレット（768px以下） */
@media screen and (max-width: 768px) {
    .lp-section.with-spacing {
        margin-bottom: 20px;
    }
    
    /* SPでホバー効果を無効化 */
    .lp-section a:hover img {
        opacity: 1;
    }
}

/* スマートフォン（480px以下） */
@media screen and (max-width: 480px) {
    .lp-section.with-spacing {
        margin-bottom: 15px;
    }
}

/* ------------------------------------------------
   ユーティリティクラス
   ------------------------------------------------ */

/* PC表示のみ */
.pc-only {
    display: block;
}

/* SP表示のみ */
.sp-only {
    display: none;
}

/* 中央寄せ */
.text-center {
    text-align: center;
}

/* 画像の最大幅制限 */
.lp-section.max-width-1200 {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* ------------------------------------------------
   SPでの表示切替
   ------------------------------------------------ */
@media screen and (max-width: 768px) {
    .pc-only {
        display: none;
    }
    
    .sp-only {
        display: block;
    }
}

/* ------------------------------------------------
   印刷用スタイル
   ------------------------------------------------ */
@media print {
    .lp-section {
        page-break-inside: avoid;
    }
    
    .lp-section a:after {
        content: none !important;
    }
}

/* ================================================
   Contact Form 7 カスタムスタイル
   ================================================ */

/* フォームエリア全体 */
#cf7-area {
    max-width: 800px;
    margin: 60px auto;
    padding: 40px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
}

/* フォーム見出し */
.form-heading {
    font-size: 28px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 40px;
    color: #333;
    position: relative;
    padding-bottom: 15px;
}

.form-heading:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

/* フォーム項目 */
.cf7-item {
    margin-bottom: 30px;
}

/* 質問ラベル */
.cf7-q {
    margin-bottom: 10px;
}

.cf7-q label {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    display: inline-block;
}

/* 必須マーク */
.cf7-req {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    background: #e74c3c;
    color: #ffffff;
    font-size: 11px;
    font-weight: normal;
    border-radius: 3px;
    vertical-align: middle;
}

/* 入力フィールドエリア */
.cf7-a {
    width: 100%;
}

/* 入力フィールド共通スタイル */
.form-control {
    width: 100%;
    padding: 12px 15px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #fff;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

/* フォーカス時 */
.form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* プレースホルダー */
.form-control::placeholder {
    color: #999;
    font-size: 14px;
}

/* テキストエリア */
textarea.form-control {
    min-height: 150px;
    resize: vertical;
    font-family: inherit;
}

/* 送信ボタンコンテナ */
.cf7-submit {
    text-align: center;
    margin-top: 40px;
}

/* 送信ボタン */
.cf7-submit input[type="submit"] {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    padding: 15px 60px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.cf7-submit input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.5);
}

/* エラーメッセージ */
.wpcf7-not-valid-tip {
    color: #e74c3c;
    font-size: 13px;
    margin-top: 5px;
    display: block;
}

/* 送信結果メッセージ */
.wpcf7-response-output {
    margin: 30px 0 0;
    padding: 15px 20px;
    border-radius: 5px;
    text-align: center;
    font-weight: 500;
}

.wpcf7-mail-sent-ok {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.wpcf7-mail-sent-ng,
.wpcf7-validation-errors {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* スピナー（送信中） */
.wpcf7-spinner {
    margin-left: 15px;
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
    #cf7-area {
        margin: 40px 20px;
        padding: 30px 20px;
    }
    
    .form-heading {
        font-size: 24px;
        margin-bottom: 30px;
    }
    
    .cf7-item {
        margin-bottom: 25px;
    }
    
    .cf7-q label {
        font-size: 14px;
    }
    
    .form-control {
        font-size: 16px; /* iOSズーム防止 */
        padding: 10px 12px;
    }
    
    .cf7-submit input[type="submit"] {
        width: 100%;
        padding: 15px 40px;
        font-size: 16px;
    }
}

/* スマートフォン（480px以下） */
@media screen and (max-width: 480px) {
    #cf7-area {
        margin: 30px 15px;
        padding: 25px 15px;
    }
    
    .form-heading {
        font-size: 20px;
    }
    
    .cf7-req {
        font-size: 10px;
        padding: 2px 6px;
    }
}

/* ================================================
   追従CTA（PC/SP対応）
   sticky-cta.css
   ================================================ */

/* ------------------------------------------------
   PC用追従CTA（画面右下固定）
   ------------------------------------------------ */
.sticky-cta-pc {
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 9999;
    display: none;
    animation: slideInRight 0.5s ease-out;
}

/* PC表示条件 */
@media screen and (min-width: 769px) {
    .sticky-cta-pc {
        display: block;
    }
}

/* CTAボタンデザイン（PC） */
.sticky-cta-pc .cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: #ffffff;
    padding: 18px 50px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.05em;
    box-shadow: 0 10px 25px rgba(34, 197, 94, 0.3),
                0 4px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* 矢印アイコン */
.sticky-cta-pc .cta-button::after {
    content: '▶';
    margin-left: 12px;
    font-size: 12px;
    transition: transform 0.3s ease;
}

/* ホバーエフェクト */
.sticky-cta-pc .cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(34, 197, 94, 0.4),
                0 6px 12px rgba(0, 0, 0, 0.2);
}

.sticky-cta-pc .cta-button:hover::after {
    transform: translateX(3px);
}

/* ------------------------------------------------
   SP用追従CTA（画面下部中央）
   ------------------------------------------------ */
.sticky-cta-sp {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: none;
    animation: slideInUp 0.5s ease-out;
    width: calc(100% - 40px);
    max-width: 400px;
}

/* SP表示条件 */
@media screen and (max-width: 768px) {
    .sticky-cta-sp {
        display: block;
    }
    
    /* SP表示時はPC版を非表示 */
    .sticky-cta-pc {
        display: none !important;
    }
}

/* SPボタンデザイン（緑のグラデーション） */
.sticky-cta-sp .cta-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 18px 30px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: #ffffff;
    text-align: center;
    text-decoration: none;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.05em;
    border-radius: 50px;
    box-shadow: 0 8px 20px rgba(34, 197, 94, 0.35),
                0 4px 10px rgba(0, 0, 0, 0.2),
                inset 0 -2px 0 rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.2s ease;
}

/* 立体感を出す光沢効果 */
.sticky-cta-sp .cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 50%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: left 0.5s ease;
}

/* ボタンのテキストと矢印 */
.sticky-cta-sp .cta-button-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

/* 三角矢印 */
.sticky-cta-sp .cta-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 6px 0 6px 10px;
    border-color: transparent transparent transparent #ffffff;
    transition: transform 0.3s ease;
}

/* タップエフェクト */
.sticky-cta-sp .cta-button:active {
    transform: scale(0.98);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3),
                0 2px 4px rgba(0, 0, 0, 0.2),
                inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

/* ホバー時の光沢アニメーション */
@media (hover: hover) {
    .sticky-cta-sp .cta-button:hover::before {
        left: 100%;
    }
    
    .sticky-cta-sp .cta-button:hover .cta-arrow {
        transform: translateX(2px);
    }
}

/* ------------------------------------------------
   スクロール連動表示
   ------------------------------------------------ */
.sticky-cta-pc.hidden,
.sticky-cta-sp.hidden {
    opacity: 0;
    pointer-events: none;
}

.sticky-cta-pc.hidden {
    transform: translateY(100px);
}

.sticky-cta-sp.hidden {
    transform: translateX(-50%) translateY(100px);
}

.sticky-cta-pc.visible,
.sticky-cta-sp.visible {
    opacity: 1;
    pointer-events: all;
}

.sticky-cta-pc.visible {
    transform: translateY(0);
}

.sticky-cta-sp.visible {
    transform: translateX(-50%) translateY(0);
}

/* トランジション */
.sticky-cta-pc,
.sticky-cta-sp {
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* ------------------------------------------------
   アニメーション定義
   ------------------------------------------------ */
@keyframes slideInRight {
    from {
        transform: translateX(100px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInUp {
    from {
        transform: translateX(-50%) translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

/* ------------------------------------------------
   パルスアニメーション（注目度UP）
   ------------------------------------------------ */
@keyframes pulse {
    0% {
        box-shadow: 0 8px 20px rgba(34, 197, 94, 0.35),
                    0 4px 10px rgba(0, 0, 0, 0.2);
    }
    50% {
        box-shadow: 0 8px 25px rgba(34, 197, 94, 0.5),
                    0 4px 15px rgba(0, 0, 0, 0.25);
    }
    100% {
        box-shadow: 0 8px 20px rgba(34, 197, 94, 0.35),
                    0 4px 10px rgba(0, 0, 0, 0.2);
    }
}

/* 初回表示時のパルス */
.sticky-cta-sp .cta-button {
    animation: pulse 2s ease-in-out infinite;
}

.sticky-cta-sp .cta-button:hover,
.sticky-cta-sp .cta-button:active {
    animation: none;
}

/* ------------------------------------------------
   レスポンシブ微調整
   ------------------------------------------------ */

/* タブレット縦向き */
@media screen and (max-width: 768px) and (min-width: 481px) {
    .sticky-cta-sp {
        bottom: 25px;
        max-width: 450px;
    }
    
    .sticky-cta-sp .cta-button {
        padding: 20px 35px;
        font-size: 18px;
    }
}

/* 小型スマートフォン */
@media screen and (max-width: 380px) {
    .sticky-cta-sp {
        width: calc(100% - 30px);
        bottom: 15px;
    }
    
    .sticky-cta-sp .cta-button {
        padding: 16px 25px;
        font-size: 15px;
    }
    
    .sticky-cta-sp .cta-arrow {
        border-width: 5px 0 5px 8px;
    }
}

/* ------------------------------------------------
   Safe Area対応（iPhone X以降）
   ------------------------------------------------ */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .sticky-cta-sp {
        bottom: calc(20px + env(safe-area-inset-bottom));
    }
}

/* ------------------------------------------------
   印刷時は非表示
   ------------------------------------------------ */
@media print {
    .sticky-cta-pc,
    .sticky-cta-sp {
        display: none !important;
    }
}
/* FAQセクションスタイル */
.faq-section {
    background: #ffffff;
    padding: 60px 20px;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 700;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
    font-family: 'Noto Sans JP', sans-serif;
}

.faq-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #2b5aa0;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.faq-question {
    width: 100%;
    padding: 20px;
    background: #2b5aa0;
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: left;
    font-size: 1.1rem;
    line-height: 1.5;
    transition: background-color 0.3s ease;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 700;
}

.faq-question:hover {
    background: #1e4080;
}

.faq-question[aria-expanded="true"] {
    background: #1e4080;
}

.faq-q {
    font-size: 1.2rem;
    font-weight: 700;
    flex-shrink: 0;
    font-family: 'Noto Sans JP', sans-serif;
}

.faq-text {
    flex: 1;
    font-weight: 700;
    font-family: 'Noto Sans JP', sans-serif;
}

.faq-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0;
    background: white;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer:not([hidden]) {
    padding: 20px;
    max-height: 500px;
}

.faq-answer {
    display: flex;
    gap: 15px;
}

.faq-a {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2b5aa0;
    flex-shrink: 0;
    font-family: 'Noto Sans JP', sans-serif;
}

.faq-answer-text {
    flex: 1;
    line-height: 1.8;
    color: #333;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 700;
}

/* モバイルレスポンシブ */
@media (max-width: 768px) {
    .faq-section {
        padding: 40px 15px;
    }

    .faq-title {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }

    .faq-question {
        padding: 15px;
        font-size: 0.9rem;
    }

    .faq-q, .faq-a {
        font-size: 1rem;
    }

    .faq-text {
        font-size: 0.9rem;
    }

    .faq-answer:not([hidden]) {
        padding: 15px;
    }

    .faq-answer-text {
        font-size: 0.9rem;
        line-height: 1.6;
    }
}

/* アニメーション効果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-answer:not([hidden]) .faq-answer-text {
    animation: fadeIn 0.3s ease;
}