* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

body {
font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
line-height: 1.6;
background-color: #ffffff;
color: #666;
width: 80%;
max-width: 1000px;
margin: 0 auto;
}

.container {
margin-bottom: 10px;
}

/* ヘッダー */
header {
position: fixed;
top: 0;
left: 50%;
transform: translateX(-50%);
font-size: 14px;
width: 80%;
max-width: 1000px;
background-color: #ffffff;
z-index: 1000;
}

/* 上部ナビゲーション */
.header-top {
display: flex;
justify-content: space-between;
align-items: center;
padding: 10px 20px;
border-bottom: 1px solid #e0e0e0;
}

.logo {
font-size: 24px;
max-width:50%;
font-weight: bold;
color: #666;
text-decoration: none;
}

.top-menu {
display: flex;
list-style: none;
gap: 20px;
}

.top-menu a {
color: #666;
text-decoration: none;
padding: 10px 15px;
transition: all 0.3s ease;
}

.top-menu a:hover {
background-color: #ffffff;
color: #3376B6;
border-radius: 5px;
}

/* 下部ナビゲーション */
#nav02 {
background-color: #ffffff;
max-width: 1000px;
}

.main-menu {
display: flex;
list-style: none;
margin: 0;
padding: 0;
gap: 8px; /* 間隔を詰める */
justify-content: center;
align-items: center;
}

.main-menu li {
flex: 2;
position: relative;
}

.main-menu li:not(:last-child)::after {
content: '';
position: absolute;
right: 0;
top: 15%;
height: 70%;
width: 1px;
background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.3), transparent);
box-shadow: 1px 0 1px rgba(255,255,255,0.3);
}

.main-menu a {
display: block;
padding: 15px 10px;
text-align: center;
white-space: nowrap;
color: #666;
text-decoration: none;
transition: all 0.3s ease;
}

.main-menu a:hover {
background-color: #ffffff;
color: #3376B6;
}

/* ハンバーガーメニュー */
.hamburger {
display: none;
flex-direction: column;
cursor: pointer;
padding: 10px;
position: absolute;
right: 20px;
top: 50%;
transform: translateY(-50%);
z-index: 1001;
}

.hamburger span {
width: 25px;
height: 3px;
background-color: #666;
margin: 3px 0;
transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
opacity: 0;
}

.hamburger.active span:nth-child(3) {
transform: rotate(-45deg) translate(7px, -6px);
}

.mobile-menu {
display: none;
position: fixed;
top: 0;
left: 50%;
transform: translateX(-50%);
width: 80%;
max-width: 1000px;
height: 100vh;
background-color: #ffffff;
z-index: 999;
padding-top: 80px;
transition: all 0.3s ease;
opacity: 0;
visibility: hidden;
}

.mobile-menu.active {
opacity: 1;
visibility: visible;
}

.mobile-menu ul {
list-style: none;
text-align: center;
padding: 20px;
}

.mobile-menu li {
margin: 20px 0;
}

.mobile-menu a {
color: #666;
text-decoration: none;
font-size: 18px;
display: block;
padding: 15px;
transition: all 0.3s ease;
}

.mobile-menu a:hover {
background-color: #ffffff;
color: #3376B6;
border-radius: 5px;
}

/* メインコンテンツ */
main {
margin-top: 120px;
padding: 20px;
}

h1, h2 {
color: #666;
margin-bottom: 20px;
}

/* フッター */
footer {
color: #ffffff;
text-align: center;
}

footer a {
  color:#ffffff;
}

/* メインビジュアル */
.jumbotron {
  background: #fff url("../img/main_visual2025-16x9.jpg") no-repeat center;
  background-size: cover;
  width: 100%;
  position: static;
  margin-top: 0px;
}

/*section*/
.sec {
margin: 10px 0;
padding: 20px;
background-color: #f9f9f9;
border-radius: 5px;
}

.sec h2 {
font-size: 32px;
margin: 5px 20px;
color: #333;
}

.sec p {
font-size: 16px;
color: #666;
margin-bottom: 15px;
}

/* アコーデオン設定 */
.accordion-item {
margin-bottom: 20px;
background: white;
border-radius: 8px;
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
overflow: hidden;
}

.accordion-trigger {
position: relative;
cursor: pointer;
display: block;
width: 100%;
border: none;
padding: 0;
background: none;
}

.accordion-image {
width: 100%;
height: 100px;
object-fit: cover;
display: block;
}

.accordion-icon {
position: absolute;
top: 20px;
right: 20px;
width: 40px;
height: 40px;
background: rgba(255, 255, 255, 0.9);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 24px;
font-weight: bold;
color: #333;
transition: transform 0.3s ease;
}

.accordion-text-overlay {
position: absolute;
bottom: 0;
left: 0;
right: 0;
background: linear-gradient(transparent, rgba(0,0,0,0.3));
color: white;
padding: 20px 30px 15px;
text-align: center;
}

.accordion-text-overlay h3 {
margin: 0 0 5px 0;
font-size: 24px;
font-weight: bold;
text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.accordion-text-overlay p {
margin: 0;
font-size: 12px;
opacity: 0.9;
text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.accordion-content {
overflow: hidden;
transition: max-height 0.3s ease;
background: white;
}

.accordion-content-inner {
padding: 30px;
line-height: 1.6;
}

.accordion-item.active .accordion-content {
max-height: fit-content;
}

.accordion-item h2 {
margin-top: 0;
color: #333;
}

.accordion-item p {
color: #666;
margin-bottom: 15px;
}

/* テキストアコーディオン用スタイル */
.text-accordion-section {
margin-top: 0px;
}

.text-accordion-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 20px;
margin-top: 0px;
}

.text-accordion-item {
background: white;
border-radius: 12px;
box-shadow: 0 4px 15px rgba(0,0,0,0.08);
overflow: hidden;
transition: all 0.3s ease;
}

.text-accordion-item:hover {
transform: translateY(-2px);
box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.text-accordion-item details {
border: none;
}

.text-accordion-item summary {
padding: 25px 30px;
background: linear-gradient(135deg, #3376B6 0%, #764ba2 100%);
color: white;
font-size: 18px;
font-weight: 600;
cursor: pointer;
list-style: none;
position: relative;
transition: all 0.3s ease;
}

.text-accordion-item summary::-webkit-details-marker {
display: none;
}

.text-accordion-item summary::after {
content: '+';
position: absolute;
right: 30px;
top: 50%;
transform: translateY(-50%);
font-size: 24px;
font-weight: bold;
transition: transform 0.3s ease;
}

.text-accordion-item[open] summary::after {
transform: translateY(-50%) rotate(45deg);
}

.text-accordion-item summary:hover {
background: linear-gradient(135deg, #3376B6 0%, #6a4190 100%);
}

.text-accordion-content {
padding: 0;
max-height: 0;
overflow: hidden;
transition: max-height 0.4s ease, padding 0.4s ease;
}

.text-accordion-item[open] .text-accordion-content {
padding: 25px 30px;

}

.text-accordion-content-inner h4 {
margin: 0 0 15px 0;
color: #333;
font-size: 16px;
font-weight: 600;
}

.text-accordion-content-inner p {
margin: 0 0 10px 0;
line-height: 1.6;
color: #666;
font-size: 14px;
}

.text-accordion-content-inner p:last-child {
margin-bottom: 0;
}

/* レスポンシブ */
@media screen and (max-width: 991.98px) {
/*@media screen and (max-width: 768px) {*/
body {
width: 95%;
}

header {
width: 95%;
}

#nav01 .main-menu{
font-size: 14px;
padding: 10px 12px; 
}

.mobile-menu {
width: 95%;
}

.top-menu {
display: none;
}

#nav02 {
display: none;
}

.hamburger {
display: flex;
}

.mobile-menu {
display: block;
}

main {
margin-top: 80px;
padding: 10px;
}

section .sec {
margin: 20px 0;
padding: 15px;
}
/* タブレット・スマートフォン対応 */
.accordion-container,
.simple-accordion {
width: 95%;
}

.accordion-header {
height: 150px;
padding: 0 20px;
}

.accordion-title {
font-size: 20px;
}

.accordion-icon {
width: 45px;
height: 45px;
}

.accordion-icon::before {
width: 14px;
height: 14px;
}

.accordion-content-inner {
padding: 20px;
}

.simple-accordion summary {
padding: 15px;
font-size: 16px;
}

.simple-accordion .content {
padding: 15px;
}
}

/* スムーススクロール */
html {
scroll-behavior: smooth;
}

/* ナビゲーション固定時のオフセット調整 */
section[id] {
scroll-margin-top: 130px;
}

@media (max-width: 768px) {
section[id] {
scroll-margin-top: 90px;
}
}

/* Q and A type2用 シンプルなアコーディオン */
.simple-accordion-section {
margin-top: 50px;
}

.simple-accordion-item {
border: 1px solid #e0e0e0;
border-radius: 8px;
margin-bottom: 10px;
background: white;
overflow: hidden;
}

.simple-accordion-item summary {
padding: 20px;
background: #f8f9fa;
cursor: pointer;
font-weight: 500;
border: none;
list-style: none;
position: relative;
transition: background-color 0.2s ease;
}

.simple-accordion-item summary::-webkit-details-marker {
display: none;
}

.simple-accordion-item summary::after {
content: '+';
position: absolute;
right: 20px;
top: 50%;
transform: translateY(-50%);
font-size: 18px;
transition: transform 0.2s ease;
}

.simple-accordion-item[open] summary::after {
content: '-';
transform: translateY(-50%);
}

.simple-accordion-item summary:hover {
background: #f0f1f3;
}

.simple-accordion-content {
padding: 0;
max-height: 0;
overflow: hidden;
transition: max-height 0.3s ease, padding 0.3s ease;
background: white;
}

.simple-accordion-item[open] .simple-accordion-content {
padding: 20px;
max-height: fit-content;
}

.simple-accordion-content p {
margin: 0 0 10px 0;
line-height: 1.6;
color: #555;
}

.simple-accordion-content p:last-child {
margin-bottom: 0;
}
