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

html {
    scroll-behavior: smooth;
	scroll-padding-top: 175px;
}

body {
    font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'ヒラギノ角ゴ ProN W3', Meiryo, sans-serif;
    line-height: 1.7;
    color: #333;
    background-color: #fff;
	overflow-x: hidden;  /* 横スクロールを防止 */	
}

/* オーバースクロール防止 */
html, body {
    overscroll-behavior: none;  /* スクロールの跳ね返りを防止 */
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s;
}

a:hover {
    opacity: 0.7;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ヘッダー */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 70%;
    background-color: #fff;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin: auto;
}

/* ヘッダー上部（白背景） */
.header-top {
    background-color: #fff;
    border-bottom: 2px solid #0066cc;
}

.header-top-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ロゴ */
.logo img {
    height: 60px;
}

/* ヘッダーCTA画像 */
.header-cta-image {
    max-width: 400px;
}

.header-cta-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* グローバルナビゲーション（青背景） */
.gnav {
    background-color: #0066cc;
}

.gnav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.gnav-list {
    display: flex;
    justify-content: center;
    gap: 0;
}

.gnav-list li {
    flex: 1;
    text-align: center;
}

.gnav-list a {
    display: block;
    padding: 15px 10px;
    font-size: 15px;
    font-weight: 500;
    color: #fff;
    white-space: nowrap;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    transition: background-color 0.3s;
}

.gnav-list li:last-child a {
    border-right: none;
}

.gnav-list a:hover {
    background-color: #FFC002;
    opacity: 1;
}

/* ファーストビュー */
.fv {
    margin-top: 140px;
    width: 70%;
    margin: 0 auto;
}

.fv-image img {
    width: 100%;
    display: block;
	padding-top: 10em;	
}

/* CTAリードバナー ← 追加 */
.cta-lead {
    background-color: #fff;
    padding: 40px 0;
}

.cta-lead .container {
    max-width: 1024px;
    margin: 0 auto;
    padding: 0 20px;
}

.cta-lead img {
    width: 100%;
    height: auto;
    display: block;
}

/* 画像マップのカーソル */
.cta-lead map area {
    cursor: pointer;
}

/* 共通セクションスタイル */
.section {
    position: relative;
    width: 70%;
    margin: 0 auto;
	scroll-padding-top: 175px; 
}

.section-header {
    background-color: #0066cc;
    padding: 20px 0;
    text-align: center;
}

.section-header h2 {
    color: #fff;
    font-size: 28px;
    font-weight: bold;
}

.section-image img {
    width: 80%;
    display: block;
	margin: 0 auto;
}
/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
	/* ヘッダー */
	.header {
		width: 100%;
	}
	/* ファーストビュー */
	.fv {
    width: 100%;
	}
	
	.section {
    width: 100%;
}
	
    .cta-lead {
        padding: 30px 0;
    }
    
    .cta-lead .container {
        padding: 0 15px;
    }
	.fv-image img {
 	padding-top: 1em;	
}
	.cta-lead img {
    width: 70%;
	margin: 0 auto;
}
}
#price .section-image img{
	padding: 20px 0;
}
#case .section-image img,#media .section-image img{
	width: 60%;
	padding: 35px;
}
#flow .section-image img{
	width: 65%;
	padding: 35px;
}
#faq .section-image img{
	width: 100%;
	padding: 35px;
}
#organization .section-image img{
	width: 60%;
	padding: 35px 0 5em;
}

/* お問い合わせフォーム */
.contact {
    background-color: #f9f9f9;
}

.form-wrapper {
    max-width: 700px;
    margin: 0 auto;
    padding: 60px 20px;
}

.contact-form {
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 15px;
}

.form-group label.required::after {
    content: '必須';
    background-color: #ff4444;
    color: #fff;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 3px;
    margin-left: 8px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0066cc;
}

.form-group textarea {
    resize: vertical;
    font-family: inherit;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    font-weight: normal;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 8px;
    cursor: pointer;
}

.checkbox-group a {
    color: #0066cc;
    text-decoration: underline;
}

.form-submit {
    text-align: center;
    margin-top: 35px;
}

.submit-button {
    background-color: #0066cc;
    color: #fff;
    padding: 15px 80px;
    border: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.submit-button:hover {
    background-color: #0052a3;
    transform: translateY(-2px);
}

.submit-button:active {
    transform: translateY(0);
}

/* フッター */
.footer {
    background-color: #006EAD;
    color: #fff;
    padding: 30px 0;
    text-align: center;
	transform: translateY(-50%);
}

.footer p {
    font-size: 14px;
}

/* フローティングバナー */
.floating-banner {
    position: fixed;
    z-index: 900;
    transition: opacity 0.5s ease, transform 0.5s ease;  /* ← 変更 */
    opacity: 0;  /* ← 追加 */
    pointer-events: none;  /* ← 追加 */
}

/* スクロール後に表示 */
.floating-banner.show {  /* ← 追加 */
    opacity: 1;
    pointer-events: auto;
}

.floating-banner a {
    display: block;
}

.floating-banner img {
    display: block;
    width: 45%;
    height: auto;
}

/* PC用フローティングバナー（右側固定） */
.floating-banner.pc-only {
    display: block;
    right: -145px;
    top: 70%;
	transform: translateY(-50%) translateX(100%);  /* ← 変更（右外に隠す） */
	width: 280px;
    max-width: 280px;
}

.cta-lead .pc-only,.gnav{
	display: block;
}

.cta-lead .sp-only{
	display: none;
}
.floating-banner.pc-only.show {  /* ← 追加 */
    transform: translateY(-50%) translateX(0);
}

.floating-banner.pc-only:hover {
    transform: translateY(-50%) translateX(0) scale(1.05);  /* ← 変更 */
}

/* SP用フローティングバナー（下部固定） */
.floating-banner.sp-only {
    display: none;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15);
    transform: translateY(100%);  /* ← 追加（下外に隠す） */
}

.floating-banner.sp-only.show {  /* ← 追加 */
    transform: translateY(0);
}

.floating-banner.sp-only img {
    width: 100%;
}

/* レスポンシブ対応 */
@media screen and (max-width: 1024px) {
    .logo img {
        height: 50px;
    }
    
    .header-cta-image {
        max-width: 450px;
    }
    
    .gnav-list a {
        font-size: 13px;
        padding: 12px 8px;
    }
}

@media screen and (max-width: 768px) {
	
    /* ヘッダー */
    .header-top-container {
        flex-direction: column;
        padding: 10px 15px;
        gap: 0;
    }
    
    .logo {
        width: 100%;
        text-align: center;
    }
    
    .logo img {
        height: 50px;
    }
    
    /* CTA画像はSPで非表示 */
    .header-cta-image {
        display: none;
    }
    
    /* グローバルナビ - SPではカラム落とし */
    .gnav-list {
        flex-wrap: wrap;
    }
    
    .gnav-list li {
        flex: 0 0 50%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .gnav-list li:nth-child(odd) a {
        border-right: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .gnav-list li:nth-child(even) a {
        border-right: none;
    }
    
    .gnav-list a {
        font-size: 14px;
        padding: 15px 10px;
    }
        
    /* ファーストビュー */
    .fv {
        margin-top: 55px;
    }
    
    /* セクションヘッダー */
    .section-header h2 {
        font-size: 28px;
    }
    
    /* フォーム */
    .form-wrapper {
        padding: 40px 15px;
    }
    
    .contact-form {
        padding: 25px 20px;
    }
	
	.contact-form p{
		margin:0 auto;
		font-weight:bold;
		color:#3B4C82;
	}
    
    .submit-button {
        padding: 12px 50px;
        font-size: 16px;
    }
    
    /* フローティングバナー */
    .floating-banner.pc-only,.gnav{
        display: none;
    }
    
    .floating-banner.sp-only {
        display: block;
        bottom: 0;
        left: 0;
        right: 0;
    }
	.cta-lead .pc-only{
	display: none;
	}
	
	.cta-lead .sp-only{
		display: block;
	}
    /* SPフローティングバナー分の余白をコンテンツ下部に追加 */
    body {
        padding-bottom: 180px;
    }
}

@media screen and (max-width: 480px) {
    .section-header h2 {
        font-size: 18px;
    }
    
    .contact-form {
        padding: 20px 15px;
    }
    
    .form-group label {
        font-size: 14px;
    }
    
    .form-group input,
    .form-group textarea {
        font-size: 14px;
        padding: 10px 12px;
    }
    
    .submit-button {
        width: 100%;
        padding: 12px 20px;
    }
	#price .section-image img{
	padding: 20px 0;
	}
	
	#reasons .section-image img,#case .section-image img,#media .section-image img,#organization .section-image img,#flow .section-image img,#faq .section-image img{
		width: 150%;
	}
}
