:root {
    --content-max-width: 97%;
    --secondary-color: #8bd321;
    --font-size-medium: 18px;
    --padding-standard: 12px;
}

/*00 baseメイン*/
.mainContent {
    width: 90vw;
    margin: 10px 5vw 0 5vw;
}
.container {
    padding-top: var(--header-height);
    max-width: 1200px;  /* コンテナの最大幅を設定 */
    margin: 0 auto;     /* 中央寄せ */
    padding: 0 20px;    /* 左右の余白 */
    padding-top: var(--header-height); 
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
/*メイン画像*/
.main-image {
    position: relative;
    width: 100%;
    height: 400px;
    margin-bottom: 40px;
    display: flex;
    align-items: center;  /* 上下中央揃え */
    margin-top: calc(var(--header-height) * -1);  /* ヘッダーの高さ分を相殺 */
    padding-top: var(--header-height);  /* ヘッダーの高さ分のパディング */
}
.main-image img {
    width: 100%;
    height: 400px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/*画像上メッセージ*/
.overlay-card {
    position: relative;
    width: 100%;
    max-width: 600px;
}
.overlay-image {
    width: 100%;
    border-radius: 10px;
}
.overlay-text {
    position: absolute;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    width: 100%;
    padding: 20px;
    border-radius: 0 0 10px 10px;
}
.overlay-title {
    font-size: 20px;
    margin: 0;
}
.overlay-description {
    font-size: 14px;
    margin: 5px 0;
}
.top-message {
    width: 100%;
    text-align: center;
}
/*メイン画像上のメッセージ*/
.overlay-content {
    position: absolute;
    top: 5%;
    bottom: 5%;
    left: 5%;  /* 左から20%の位置に配置 */
    text-align: left;  /* テキストを左揃えに */
    color: white;
    width: 60%;  /* コンテンツの幅を調整 */
    max-width: 600px;
    padding: 20px;
    background-color: rgba(209, 209, 209, 0.0);
    border-radius: 8px;
}

.overlay-title {
    font-size: 2rem;
    margin-bottom: 15px;
    font-weight: bold;
    text-align: left;  /* タイトルも左揃えに */
}

.overlay-description {
    font-size: 1rem;
    margin-bottom: 10px;
    line-height: 1.4;
    color: #fff;
    text-align: left;  /* 説明文も左揃えに */
}

.overlay-button {
    display: inline-block;
    padding: 15px 40px;
    background-color: #8bd321;  /* メインカラー */
    color: white;
    text-decoration: none;
    border-radius: 50px;  /* よりラウドに */
    margin-top: 25px;
    transition: all 0.3s ease;
    font-weight: bold;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(139, 211, 33, 0.3);  /* 目立つ影 */
    border: 2px solid transparent;
}

.overlay-button:hover {
    background-color: #ffffff;  /* メインカラー */
    color: #8bd321;
    border: 2px solid #8bd321;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 211, 33, 0.4);
}

/* メニュー */
.grid-container {
    width: 100%;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: space-between;
}
.grid-item {
    position: relative;
    flex: 1 1 calc(25% - 30px); /* 幅を設定（4列にするために25%にし、間隔を考慮） */
    height: 0; /* 高さを0に設定 */
    padding: 0;
    margin: 0;
    padding-bottom: calc(25% - 30px); /* 高さを幅の25%に設定して正方形にする */
    background-color: #ffffff; /* 背景色を設定 */
    margin-bottom: 20px; /* 下にマージンを追加 */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* 影を追加 */
    border-radius: 8px; /* 角を丸くする */
    text-align: center; /* テキストを中央揃え */
    transition: transform 0.3s; /* ホバー時のトランジション */
}
.grid-item:hover {
    transform: scale(1.05); /* ホバー時に少し拡大 */
}
.grid-item-number {
    margin: 0;
    padding: 0 0 0 50%;
    font-size: 40px;
    color: #b1b1b1;  /* 変更 */
    font-weight: bold;
}
h2.grid-item-title-left {
    margin: 0 0 0 20px; /* タイトルのマージンを設定 */
    text-align: left;
    font-size: 14px; /* タイトルのフォントサイズを設定 */
    border-bottom: none;
    padding-bottom: 0;
    color: #333;
}
h2.grid-item-title-mark {
    margin: 0; /* タイトルのマージンを設定 */
    text-align: center;
    line-height: 40px;
    font-size: 40px; /* タイトルのフォントサイズを設定 */
    border-bottom: none;
    padding-bottom: 0;
    color: #8bd321;
}
h2.grid-item-title-right {
    margin: 0 20px 0 0; /* タイトルのマージンを設定 */
    text-align: right;
    font-size: 14px; /* タイトルのフォントサイズを設定 */
    border-bottom: none;
    padding-bottom: 0;
    color: #333;
}
.grid-item-content {
    margin: 0; 
    padding: 0 0 0 20px;
    text-align: left;
    line-height: 16px;
    font-size: 15px; /* タイトルのフォントサイズを設定 */
    border-bottom: none;
    color: #333;
}

/* PC表示時はハンバーガーメニューを非表示 */
.mobile-menu,.hamburger-menu {
    display: none;
}

/*各項目*/
.content-section {
    padding:0 20px;
    margin: 60px auto;
    font-family: Arial, sans-serif;
    margin-top: -60px;  /* ヘッダーの高さ分整 */
    padding-top: 60px;  /* ヘッダー高さ分整 */
}

/* 01会社紹介 */
.company-table {
    width: 80%;
    max-width: 1200px;
    margin: 0 auto;
    border-collapse: collapse;
}
.company-row {
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
    text-align: left;
}
.company-item {
    font-weight: bold;
    font-size: 19px;
    text-align: left;
    color:  #2c2c2c;
}
.company-content {
    text-align: left;
    color:  #2c2c2c;
    font-size: 19px;
}
.company-content p {
    padding: 0 20px;
    margin: 0 ;
    line-height: 25px;
}
.company-attention{
    text-align: left;
    width: 80%;
    font-size: 16px;
}

/*事業紹介*/
/*健康とは？*/
.company-introduction {
    max-width: 80%;  /* 最大幅を80%に設定 */
    text-align: left;
    margin: 0 auto;  /* 中央揃え */
    line-height: 1.6;  /* 行間を調整 */
    font-size: 1rem;  /* フォントサイズを調整 */
    color: #333;  /* テキストの色を調整 */
}
.quote-section {
    margin: 20px 0;
    padding: 15px 20px;
    background-color: #f9f9f9;
    border-left: 5px solid #7b7b7b;
    font-style: italic;
}
.quote-section blockquote {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    color: #333;
}
.quote-section p {
    margin: 0 0 10px;
    line-height: 1.6;
}
.quote-section p:last-child {
    margin-bottom: 0;
}

/* 02健康経営 */
.health-management-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}
.health-management-table th,
.health-management-table td {
    border: 1px solid #ddd;
    padding: 12px;
    vertical-align: top;
    text-align: left;
}
.health-management-table th {
    background-color: #f2f2f2;
    font-weight: bold;
}
.health-management-table tr:nth-child(even) {
    background-color: #f9f9f9;
}
.health-management-table tr:hover {
    background-color: #e0e0e0;
}
.health-management-table td {
    line-height: 1.6;
}

/* 03サービス */
.service-container {
    display: flex; /* Flexboxを使用 */
    align-items: center; /* 垂直方向に中央揃え */
    gap: 20px; /* 要素間の隙間 */
    margin: 20px 0; /* 上下のマージン */
}
.service-content {
    flex: 2; /* 文章部分が2/3のスペースを占める */
}
.service-item-image {
    flex: 1; /* 画像部���が1/3のスペースを占める */
    width: 100%; /* 幅を100%に設定 */
    max-width: 200px; /* 最大幅を設定 */
    height: auto; /* 高さは自動 */
    border-radius: 8px; /* 角を丸くする */
}
.benefits-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}
.benefits-table th, .benefits-table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}
.benefits-table th {
    background-color: #f2f2f2;
    font-weight: bold;
}

/*03導入プラン*/
/*ご利用の流れ*/
.steps-container {
    position: relative;
    margin: 20px 0 0 0;
    padding:0;
    display: flex;
    align-items: center;
    gap: 0;
}

.step-item {
    position: relative;
    width: 25%; /* カラムの幅 */
    height: 380px; /* カラムの高さ (幅の2倍) */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-radius: 0;
    padding: 15px;
    padding-top: 30px;
    background-color: #ffffff;
    border: 1px solid #8bd321;
    border-right: none;
}
.step-item:last-child {
    position: relative;
    width: 25%; /* カラムの幅 */
    height: 380px; /* カラムの高さ (幅の2倍) */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-radius: 0;
    padding: 15px;
    padding-top: 30px;
    background-color: #ffffff;
    border: 1px solid #8bd321;
}
.step-number {
    position: absolute;
    top: -20px;
    left: 170px;
    background-color: #8bd321;
    color: #ffffff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
}
.step-image {
    width: 80%;
    height: auto;
    margin-bottom: 10px;
    border-radius: 4px;
}
.step-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin: 10px 0 5px;
}
.step-description {
    padding: 0;
    margin: 0;
    line-height: 18px;
    font-size: 15px;
    color: #666;
    text-align: left;
}

/*04参考プランと参考料金*/
/*初級プランテーブル*/
.price_plan_first_title {
    width: 100%;
    text-align: center;
    padding: 8px;
    background-color: #ffffff; /* 軽い背景色を追加 */
    color: #333333;
    font-weight: bold; /* ヘッダーのフォントを太く */
    border: none; 
    border-radius: 25px;
}

.price_plan_first_contents {
    width: 100%;
    text-align: center;
    padding: 8px;
    background-color: #ffffff; /* 軽い背景色を追加 */
    font-weight:normal; 
    color: #333333;
    border: solid 1px red; 
    border-radius: 30px;
}
/*中級以降のプランテーブル*/
#price_plan_table {
    width: 100%;
    margin: 50px 0;
    border-collapse: collapse;
}

#price_plan_table, .price_plan {
    border: 1px solid rgb(255, 255, 255);
}

th.price_plan {
    text-align: center;
    padding: 8px;
    background-color: #8bd321;
    color: #fff;
    font-weight: bold; /* ヘッダーのフォントを太く */
}

td.price_plan {
    text-align: center;
    padding: 8px;
    background-color: #ebf1ee; /* 軽い背景色を追加 */
    font-weight:normal; 
    color: #333333;
}

/*プランジャンル*/
.plans-container {
    position: relative;
    margin: 20px 0 0 0;
    padding:0;
    display: flex;
    align-items: center;
    gap: 0;
}

.plans-item {
    position: relative;
    width: 25%; /* カラムの幅 */
    height: 250px; /* カラムの高さ (幅の2倍) */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-radius: 0;
    padding: 15px;
    padding-top: 30px;
    background-color: #ffffff;
    border: none;
    border-right: none;
}
.plans-item:last-child {
    position: relative;
    width: 25%; /* カラムの幅 */
    height: 250px; /* カラムの高さ (幅の2倍) */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-radius: 0;
    padding: 15px;
    padding-top: 30px;
    background-color: #ffffff;
    border: none;
}
.plans-image {
    width: 80%;
    height: auto;
    margin-bottom: 10px;
    border-radius: 4px;
}
.plans-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin: 10px 0 5px;
}
.plans-description {
    padding: 0;
    margin: 0;
    line-height: 18px;
    font-size: 15px;
    color: #666;
    text-align: left;
}

/*05SanitasLab認定トレーナー紹介 06導入事例*/
.case-studies-container {
    margin-left: auto;
    margin-right: auto;
    width: 90%;
    height: auto;
    flex-direction: row;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between; /* アイテム間のスペースを均等にする */
}

.case-study-item {
    display: flex; /* フレックスボックスを使用 */
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center; /* 垂直方向に中央揃え */
    width: calc((100% - 40px) / 3); 
    height: auto;
    padding: 10px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,.2);
    font-size: 16px;
    flex-basis: calc(33.333% - 20px); /* 3列配置のための基本幅を計算 */
    margin-bottom: 20px; /* 下部のマージンのみ指定 */
}

.case-study-image {
    border-radius: 50%;
    width: 60%; 
    max-width: 100%; 
    height: auto; /* 高さを自動調整 */
    margin:0 20% ; /* 画像とテキストの間にスペースを追加 */
}

.case-study-item-content {
    width: 90%; 
    height:auto;
    margin:0 5%; 
}

.case-study-item h3 {
    margin: 0; /* タイトルのマージンをリセット */
    width: 100%; 
    height:auto;
}


.case-study-item p {
    margin: 5px 0 0; /* 説明のマージンを設定 */
    width: 100%; 
    height:auto;
    border-bottom: solid 1px #333;
}

/*06 Q&A*/
.faq-button-container {
    margin-top: 70px;
    padding: 10px 0;
    text-align: center; /* 子要素を中央に配置 */
}
.faq-button {
    background-color: #8bd321;
    color: white;
    border: none;
    padding: 25px 45px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 25px;
    transition: background-color 0.3s;
}
.faq-button:hover {
    background-color: #ffffff;
    color: #8bd321;
    border: none;
    padding: 28px 48px;
    cursor: pointer;
    border-radius: 5px;
    border: solid 2px #8bd321;
    font-size: 26px;
    transition: background-color 0.3s;
}
.faq-question {
    text-align: left;
    padding-left: 0;
    position: relative; /* 擬似要素を相対的に配置するために必要 */
    padding-right: 20px; /* 三角形のスペースを確保 */
}

.faq-question::after {
    content: ""; /* 擬似要素の内容を空に設定 */
    position: absolute; /* 絶対位置で配置 */
    right: 15%; /* 右端に配置 */
    top: 50%; /* 垂直中央に配置 */
    transform: translateY(-50%); /* 垂直中央に調整 */
    border-left: 5px solid transparent; /* 左側の透明なボーダー */
    border-right: 5px solid transparent; /* 右側の透明なボーダー */
    border-top: 10px solid #8bd321;/* 上側のボーダーを黒に設定（下三角形） */
    width: 0; /* 幅は0に設定 */
    height: 0; /* 高さは0に設定 */
}


.faq-item {
    border-bottom: 1px solid #ccc; /* 薄い線で区切る */
    padding: 10px 0; /* 上下の余白 */
}

.faq-answer {
    display: none; /* 初期状態で非表示 */
    margin-top: 5px; /* 上の余白 */
    padding-left: 50px;
}


/*contact.phpのレイアウト*/
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

.form-group input,
.form-group textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    width: 100%;
    box-sizing: border-box;
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.button {
    background-color: #8bd321;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 16px;
    align-self: flex-start;
    transition: background-color 0.3s;
}

.button:hover {
    background-color: #8bd321;
}