@charset "utf-8";

/* ============================================
   モバイル用スタイルシート
   ブレークポイント: 768px以下
   ============================================ */

@media screen and (max-width: 768px) {
	/* 基本設定 */
	body {
		padding-bottom: 0; /* フッターを固定しないため不要 */
	}

	/* コンテナ */
	.container {
		padding: 0 15px;
	}

	/* ヘッダー */
	header {
		padding: 15px 0;
	}

	header .container {
		position: relative;
		display: flex;
		justify-content: space-between;
		align-items: center;
	}

	header .logo {
		max-height: 40px;
	}

	/* モバイルメニュートグルボタン */
	.mobile-menu-toggle {
		display: flex !important;
		flex-direction: column;
		justify-content: space-around;
		width: 30px;
		height: 30px;
		background: transparent;
		border: none;
		cursor: pointer;
		padding: 0;
		z-index: 101;
	}

	.mobile-menu-toggle span {
		width: 100%;
		height: 3px;
		background-color: var(--text-color);
		border-radius: 2px;
		transition: var(--transition);
	}

	.mobile-menu-toggle.active span:nth-child(1) {
		transform: rotate(45deg) translate(8px, 8px);
	}

	.mobile-menu-toggle.active span:nth-child(2) {
		opacity: 0;
	}

	.mobile-menu-toggle.active span:nth-child(3) {
		transform: rotate(-45deg) translate(7px, -7px);
	}

	/* ヘッダーナビゲーション（モバイル） */
	header .header-nav {
		position: fixed;
		top: 70px;
		left: 0;
		right: 0;
		background-color: var(--bg-color);
		border-top: 1px solid var(--border-color);
		box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
		max-height: 0;
		overflow: hidden;
		transition: max-height 0.3s ease;
	}

	header .header-nav.active {
		max-height: 500px;
	}

	header .header-nav-list {
		flex-direction: column;
		gap: 0;
		padding: 20px;
	}

	header .header-nav-list li {
		width: 100%;
		border-bottom: 1px solid var(--border-color);
	}

	header .header-nav-list li:last-child {
		border-bottom: none;
	}

	header .header-nav-list a {
		display: block;
		padding: 15px 0;
		font-size: 1rem;
	}

	header .header-nav-list .btn-contact {
		margin-left: 0;
		width: 100%;
		text-align: center;
		margin-top: 10px;
	}

	/* ヒーローセクション */
	.hero-section {
		padding: 40px 0;
	}

	.hero-title {
		font-size: 1.8rem;
	}

	.hero-subtitle {
		font-size: 1.2rem;
	}

	.hero-catchcopy {
		font-size: 1rem;
	}

	/* セクション */
	section {
		padding: 40px 0;
	}

	.section-title {
		font-size: 1.5rem;
		margin-bottom: 20px;
	}

	.subsection-title {
		font-size: 1.3rem;
	}

	.sub-subsection-title {
		font-size: 1.1rem;
	}

	/* 特徴グリッド */
	.features-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.feature-item {
		padding: 20px;
	}

	/* CTAボタン */
	.cta-buttons {
		flex-direction: column;
	}

	.cta-buttons .btn {
		width: 100%;
		text-align: center;
	}

	/* フッター（モバイル版も固定しない） */
	.fixed-footer {
		position: relative !important; /* モバイル版でも固定しない */
		bottom: auto;
		font-size: 0.85rem;
	}

	.footer-container {
		padding: 20px 15px 15px;
	}

	.footer-main {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.footer-section {
		margin-bottom: 15px;
	}

	.footer-title {
		font-size: 1rem;
		margin-bottom: 10px;
	}

	/* 追尾バナー */
	.sticky-banner {
		bottom: 20px; /* 画面下部からの固定位置 */
	}

	.sticky-banner-content {
		flex-direction: column;
		padding: 15px;
		gap: 15px;
	}

	.sticky-banner-text {
		text-align: center;
	}

	.sticky-banner-text p {
		font-size: 0.9rem;
	}

	.sticky-banner-buttons {
		flex-direction: column;
		width: 100%;
	}

	.sticky-btn {
		width: 100%;
		text-align: center;
		padding: 10px 20px;
	}

	.sticky-btn-close {
		position: absolute;
		top: 5px;
		right: 10px;
	}

	/* 固定ページ */
	.page .main_title h1,
	.page .main_title h2 {
		font-size: 1.5rem;
	}

	.page .entry-content {
		font-size: 0.95rem;
	}

	.page .entry-content h2 {
		font-size: 1.4rem;
		margin-top: 30px;
		margin-bottom: 15px;
	}

	.page .entry-content h3 {
		font-size: 1.2rem;
		margin-top: 25px;
		margin-bottom: 12px;
	}

	/* お問い合わせページ */
	.contact-form-wrapper {
		padding: 20px;
	}
}

/* タブレット用（768px ~ 1023px） */
@media screen and (min-width: 769px) and (max-width: 1023px) {
	.container {
		max-width: 960px;
		padding: 0 20px;
	}

	.features-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.footer-main {
		grid-template-columns: repeat(2, 1fr);
	}

	.sticky-banner-content {
		flex-wrap: wrap;
	}
}

