@charset "utf-8";
/* 全体のリセット */
	* {
		margin: 0;
		padding: 0;
		box-sizing: border-box;
	}
	
	body {
		font-family: Arial, sans-serif;
		line-height: 1.6;
		background-color: #f4f4f4;
		margin: 0;
		padding: 0;
	}

/* ヘッダー部分 */
	header {
		height: auto;
		padding: 10px 20px;
	}
	
	.header-container {
		display: flex;
		justify-content: space-between;
		align-items: center;
		position: relative;
	}
	
	.logo {
		width: 150px;
		height: auto;
		margin: 5px 10px 5px 0;
	}
	
	.logo img{
		width: 100px;
		height: auto;
		margin: 10px 10px 0px 0px;
	}
	
	.company-name {
		font-size: 40px;
	}
	
	.tel {
		font-size: 30px;
	}

/* ナビゲーションメニュー */
	nav {
		background: linear-gradient(0deg, #ff7f00, #ff4500);
		width: 100%;
		display: flex;
		justify-content: center;
		align-items: center;
		min-height: 50px; /* ここで高さを明示的に指定 */
		z-index: 1000;
	}
	
	.menu {
		display: flex;
		justify-content: center;
		width: 100%;
		padding: 0;
		margin: 0;
		list-style: none;
		z-index: 1001; /* さらに前面に */
	}
	
	.menu li {
		margin: 0 5px;
		z-index: 1002; /* さらに前面に */
	}
	
	.menu a {
		padding: 5px 5px; /* ここを減らす */
		font-size: 18px;
	}
	
	.menu a:hover {
		background-color: blue;
		color: white;
		border-radius: 5px;
	}
	
	/* main */
	main {
		max-width: 1200px;
		margin: 80px auto 0 auto;
		padding: 0 5%;
	}
	
	.container {
		text-align: center;
	}
	
	.text-group-top,
	.text-group-bottom {
		font-size: 18px;
		text-align:left;
		text-indent:10em;
		width: 100%;
		margin-bottom: 20px;
		margin-top:50px;
		z-index: 5; /* さらに前面に */
	}
	
	.text-group-center {
		width: 100%;
		display: flex;
		justify-content: center;
	}
	
	.text-group-center-img {
		width: 60%;
		max-width: 300px;
		height: auto;
	}
	
	.fade-text {
		font-size: 28px;
		color: #000;
		opacity: 0;
		position: relative;
		z-index: 1; /* メニューより後ろに配置 */
	}
	
	.line1 { left: 0px; }
	.line2 { left: 2em; }
	.line3 { left: 4em; }
	.line4 { left: 0px; }
	.line5 { left: 2em; }
	.line6 { left: 4em; }
	
	table {
		border-collapse: collapse; /* 線を重ねる */
		width: 80%;
		border: 4px solid black; /* 外枠を太く */
		margin: 10px auto 0 auto;
	}
	
	th, td {
		border: 1px solid gray; /* 通常のセルの境界線 */
		padding: 8px;
		text-align: left;
	}
	
	th {
		border-bottom: 3px solid black; /* ヘッダー下の線を太く */
	}
	
	tr:not(:last-child) td {
		border-bottom: 2px solid black; /* 各行の区切り線を太く */
	}

/* スマホ・タブレット用ハンバーガーメニュー */
	.menu-toggle {
		display: none;
		font-size: 24px;
		cursor: pointer;
		position: absolute;
		right: 20px;
		top: 15px;
	}
	
	/* 初期状態で非表示 */
	#nav-menu {
		display: none;
		width: 100%;
		background: linear-gradient(0deg, #ff7f00, #ff4500);
		position: absolute;
		top: 60px;
		left: 0;
		z-index: 1000;
	}
	
	/* メニューが開いたとき */
	#nav-menu.active {
		display: block;
	}
	
	/* スマホ用メニュー */
	.menu {
		flex-direction: column;
		align-items: center;
		width: 100%;
		padding: 0;
	}
	
	.menu li {
		width: 100%;
		text-align: center;
		padding: 10px 0;
	}
	
	.menu a {
		display: block;
		padding: 0px 15px;
		color: white;
		font-size: 18px;
		text-decoration: none;
		transition: 0.3s;
	}
	
	.menu a:hover {
		background-color: blue;
		color: white;
	}
	
	
	/* フッター */
	footer {
		background-color: #f1f1f1;
		text-align: center;
		padding: 20px 0;
		margin-top: 30px;
	}

/* === レスポンシブ対応 === */



/* ===== スマホ・タブレット用 (1024px以下) ===== */
/*
@media screen and (max-width: 1024px) {

    .menu-toggle {
        display: block; /* ハンバーガーメニューを表示 *
        font-size: 24px;
        cursor: pointer;
        position: absolute;
        right: 20px;
        top: 15px;
    }

    #nav-menu {
        display: none; /* 初期状態で非表示 *
        width: 100%;
        background: linear-gradient(0deg, #ff7f00, #ff4500);
        position: relative; /* absolute だと本文がズレるため修正 *
        top: 0; /* 位置調整 *
        left: 0;
        z-index: 1000;
    }
	
    main {
        margin-top: 10px; /* スマホ用の余白 *
    }

    #nav-menu.active {
        display: block; /* ハンバーガーメニュー開いたら表示 *
    }

    .menu {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .menu li {
        width: 100%;
        text-align: center;
        padding: 10px 0;
    }

    .menu a {
        display: block;
        padding: 10px;
        font-size: 18px;
        color: white;
        text-decoration: none;
    }

    .menu a:hover {
        background-color: blue;
        color: white;
    }
	
	.text-group-top,
	.text-group-center,
	.text-group-bottom {
		text-indent:2em;
		text-align:left;
}

*/

/* ===== PCサイズ用 (1025px以上) ===== */
@media screen and (min-width: 901px) {

    .menu-toggle { 
        display: none; /* ハンバーガーメニューを非表示 */
    }
    
    #nav-menu {
        display: flex !important; /* ここで flex を適用し直す */
        justify-content: center;
        background: linear-gradient(0deg, #ff7f00, #ff4500);
        top: 100px;
        padding: 0; /* メニューの高さ調整 */
    }
	
    main {
        margin-top: 60px; /* メニュー下に余白を作る */
    }

    .menu {
        display: flex;
        flex-direction: row; /* PC時は横並び */
        /* width: 100%; */
        justify-content: center;
    }

    .menu li {
        margin: 0 10px;
    }

    .menu a {
        display: block;
        padding: 5px 10px;
        font-size: 18px;
        color: white;
        text-decoration: none;
        transition: 0.3s;
    }

    .menu a:hover {
        background-color: blue;
        color: white;
        /* border-radius: 5px; */
    }
}