@media screen and (min-width: 481px) {
    div#sec_contents {
        width: 675px;
        padding: 50px 0 40px 45px;
    }
    .carouselWrap {
        margin: 0;
    }
    .carouselWrap {
        width: 100%;
        box-sizing: border-box;
        margin-bottom: 30px;
    }
    .ad_list {
        width: 675px;
    }
}
.case-header {
    display: flex;
    justify-content: space-between;
    background: #f5f5f5;
    padding: 0px 0px 0px 20px;
    border-left: 8px solid #71AF42;
    margin-bottom: 20px;
}
.case-header-content {
    flex: 1;
	padding: 12px 0px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}
.case-label {
    display: inline-block;
    color: #71AF42;
    font-weight: bold;
    font-size: 14px;
    /* margin-bottom: 8px; */
}
.case-client-name {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 0px;
    line-height: 1.4;
    color: #000;
}
.case-title {
    font-size: 16px;
	line-height: 1.2;
	margin-top: 8px;
    color: #333;
}
.case-header-image {
    width: 240px;
    margin-left: 10px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
	border-top: 1px solid #f5f5f5;
	border-bottom: 1px solid #f5f5f5;
	border-right: 1px solid #f5f5f5;
}
.case-header-image img {
    width: 100%;
    height: auto;
	/* height: 100%; */
    object-fit: cover;
}

/* レスポンシブ：モバイル表示時 */
@media (max-width: 480px) {
    .case-header {
        flex-direction: column-reverse;
        padding: 0;
    }
    .case-header-content {
        padding: 12px 20px;
    }
    .case-header-image {
        width: 100%;
        margin-left: 0;
        border-top: none;
        border-right: none;
        border-bottom: 1px solid #ddd;
    }
}
.case-detail-table {
    font-size: 14px !important;
    margin-bottom: 20px;
    /* border-top: 1px solid #eee; */
    font-size: 16px;
}
.case-detail-row {
    display: flex;
    align-items: baseline;
    padding: 10px 0;
    /* border-bottom: 1px solid #eee; */
}
.case-detail-label {
    width: 200px;
    font-weight: bold;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.case-detail-label i {
    color: #71AF42;
    width: 20px;
    text-align: center;
    font-size: 18px;
}
.case-detail-content {
    flex: 1;
    padding-left: 20px;
    border-left: 1px solid #ccc;
    line-height: 1.6;
}
.case-detail-content a {
    color: #333;
    text-decoration: underline;
    transition: color 0.2s ease;
}
.case-detail-content a:hover {
    text-decoration: underline;
    color: #71AF42;
}

/* 施策内容ボックス */
.case-summary-box {
    display: flex;
    border: 1px solid #ccc;
    margin-top: 20px;
    background: #fff;
	font-size: 14px;
}
.case-summary-label {
    background-color: #dcedc8;
    width: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-weight: bold;
    color: #333;
    flex-shrink: 0;
}
.case-summary-label i {
    font-size: 32px;
    margin-bottom: 10px;
    color: #71AF42;
}
.case-summary-content {
    flex: 1;
    padding: 20px;
    line-height: 1.6;
}
#download {
    margin: 30px auto 30px auto;
}
.inquiry{
	margin-bottom: 0!important;
}

/* === お気に入りボタン関連のスタイル === */
div#sec_contents {
	padding-top: 25px;
}
.company-favorite-button {
    background: none;
    border-radius: 8px;
    border: 1px solid #006DDB;
    color: #006DDB;
    padding: 2px 10px;
    cursor: pointer;
    margin-left: 10px;
}
.company-favorite-button .fa-plus {
    color: #006DDB;
    margin-right: 5px;
    font-weight: bold
}
.company-favorite-button-notice {
    font-size: 10px;
    color: #666;
}
.company-favorited-button {
    background: none;
    border-radius: 8px;
    border: 1px solid #666;
    color: #666;
    background-color: #f0f0f0;
    padding: 2px 10px;
    cursor: pointer;
	margin-left: 20px;
}
.company-favorited-button .fa-plus {
    color: #666;
    margin-right: 5px;
    font-weight: bold
}
.favorite-button-lead-add {
    background: none;
    border-radius: 8px;
    border: 1px solid #fba42e;
    color: #fba42e;
    padding: 5px 10px;
}
.favorite-button-lead-delete {
    background: none;
    border-radius: 8px;
    border: 1px solid #666;
    color: #666;
    cursor: pointer;
    width: 200px;
    height: 60px;
    position: relative; /* 基点として設定 */
}
.favorite-button-lead-add-notice {
    font-size: 10px;
    color: #666;
}
.lead-fav{
	display:flex;
	justify-content:center;
}
.lead-fav button{
	width: 200px;
	height: 60px;
	cursor: pointer;
	position: relative;
}
.lead-fav .fa-star{
	position: absolute;
	top: 10px;
	left: 12px;
	font-size: 18px;
}
.favorite-button-lead-delete .fa-star{
	font-size: 18px;
}
.lead-fav .favorite-button-lead-delete span{
	margin-left: 16px;
}
.favorite-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}
.favorite-overlay-text {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px 30px 10px 10px;  /* 右側に閉じるボタンのスペースを確保 */
    border-radius: 5px;
    font-size: 14px;
    text-align: center;
    width: 200px;
    margin-bottom: 10px;
    position: relative;  /* 閉じるボタンの位置決めのため */
}
.favorite-message-close {
    position: absolute;
    top: 5px;
    right: 5px;
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    padding: 0 5px;
	align-items: center;
    border: 0.1em solid currentColor;
    border-radius: 50%;
}
.favorite-message-close:hover {
    opacity: 0.8;
}
.favorite-message-modal-content {
    background: rgba(255, 255, 255, 1);
	border: 1px solid black;
    /* color: white; */
    padding: 15px 40px 15px 20px;
    font-size: 14px;
    text-align: center;
    min-width: 200px;
    max-width: 300px;
    position: relative;
    word-break: break-word;
    box-shadow: 8px 8px 6px rgba(0, 0, 0, 0.5);
}
@media screen and (max-width: 480px) {
	.favorite-message-modal-content {
		min-width: 100px;
		max-width: 200px;
	}
}
/* ボタンの親要素のスタイル */
.favorite-button-link {
    position: relative;
}
/* モーダルの親要素のスタイル */
.favorite-button {
    position: relative;
    z-index: 0;
}
/* ボタンを含む親要素のスタイル */
div[style*="display: flex; justify-content: center;"] {
    position: relative;
}
/* お気に入りボタン関連のコンテナ */
.favorite-button-container {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    position: relative;
	z-index: 0;
}
/* モーダル基本設定 */
.favorite-message-modal,
.company-favorite-message-modal {
    position: fixed;
    z-index: 1;
    display: none;
    width: max-content;
}
/* モーダル内のメインテキスト */
.favorite-message-text {
    font-size: 14px;
	margin-left: 5px;
}
@media screen and (max-width: 480px) {
	.favorite-message-text {
		font-size: 13px;
	}
}
/* モーダル内の注釈部分 */
.favorite-message-note {
    margin-top: 10px;
    border-top: 1px dotted #aaa;
    padding-top: 10px;
    font-size: 11px;
}
/* お気に入りボタン */
.favorite-button-lead-delete {
    background: none;
    border-radius: 8px;
    border: 1px solid #666;
    color: #666;
    cursor: pointer;
    width: 200px;
    height: 60px;
    position: relative;
}
.favorite-button-lead-delete-notice {
    font-size: 10px;
    color: #666;
}
@media screen and (max-width: 480px) {
	.lead-fav button {
		width: 150px;
		height: 50px;
	}
	.favorite-button-lead-delete {
		width: 150px;
		height: 50px;
	}
	.favorite-button-lead-add-notice {
		font-size: 8px;
	}
	.favorite-button-lead-delete-notice {
		font-size: 8px;
	}
}
.linked-agency-label {
	font-weight: bold;
	color: #FF6600;
}
div#sec_contents {
	padding-top: 25px;
}
.company-favorite-button {
    background: none;
    border-radius: 8px;
    border: 1px solid #006DDB;
    color: #006DDB;
    padding: 2px 10px;
    cursor: pointer;
    margin-left: 10px;
}
.company-favorite-button .fa-plus {
    color: #006DDB;
    margin-right: 5px;
    font-weight: bold
}
.company-favorite-button-notice {
    font-size: 10px;
    color: #666;
}
.company-favorited-button {
    background: none;
    border-radius: 8px;
    border: 1px solid #666;
    color: #666;
    background-color: #f0f0f0;
    padding: 2px 10px;
    cursor: pointer;
	margin-left: 20px;
}
.company-favorited-button .fa-plus {
    color: #666;
    margin-right: 5px;
    font-weight: bold
}
.favorite-button-lead-add {
    background: none;
    border-radius: 8px;
    border: 1px solid #fba42e;
    color: #fba42e;
    padding: 5px 10px;
}
.favorite-button-lead-delete {
    background: none;
    border-radius: 8px;
    border: 1px solid #666;
    color: #666;
    cursor: pointer;
    width: 200px;
    height: 60px;
    position: relative; /* 基点として設定 */
}
.favorite-button-lead-add-notice {
    font-size: 10px;
    color: #666;
}
.lead-fav{
	display:flex;
	justify-content:center;
}
.lead-fav button{
	width: 200px;
	height: 60px;
	cursor: pointer;
	position: relative;
}
.lead-fav .fa-star{
	position: absolute;
	top: 10px;
	left: 12px;
	font-size: 18px;
}
.favorite-button-lead-delete .fa-star{
	font-size: 18px;
}
.lead-fav .favorite-button-lead-delete span{
	margin-left: 16px;
}
.favorite-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}
.favorite-overlay-text {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px 30px 10px 10px;  /* 右側に閉じるボタンのスペースを確保 */
    border-radius: 5px;
    font-size: 14px;
    text-align: center;
    width: 200px;
    margin-bottom: 10px;
    position: relative;  /* 閉じるボタンの位置決めのため */
}
.favorite-message-close {
    position: absolute;
    top: 5px;
    right: 5px;
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    padding: 0 5px;
	align-items: center;
    border: 0.1em solid currentColor;
    border-radius: 50%;
}
.favorite-message-close:hover {
    opacity: 0.8;
}
.favorite-message-modal-content {
    background: rgba(255, 255, 255, 1);
	border: 1px solid black;
    /* color: white; */
    padding: 15px 40px 15px 20px;
    font-size: 14px;
    text-align: center;
    min-width: 200px;
    max-width: 300px;
    position: relative;
    word-break: break-word;
    box-shadow: 8px 8px 6px rgba(0, 0, 0, 0.5);
}
@media screen and (max-width: 480px) {
	.favorite-message-modal-content {
		min-width: 100px;
		max-width: 200px;
	}
}
/* ボタンの親要素のスタイル */
.favorite-button-link {
    position: relative;
}
/* モーダルの親要素のスタイル */
.favorite-button {
    position: relative;
    z-index: 0;
}
/* ボタンを含む親要素のスタイル */
div[style*="display: flex; justify-content: center;"] {
    position: relative;
}
/* お気に入りボタン関連のコンテナ */
.favorite-button-container {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    position: relative;
	z-index: 0;
}
/* モーダル基本設定 */
.favorite-message-modal,
.company-favorite-message-modal {
    position: fixed;
    z-index: 1;
    display: none;
    width: max-content;
}
/* モーダル内のメインテキスト */
.favorite-message-text {
    font-size: 14px;
	margin-left: 5px;
}
@media screen and (max-width: 480px) {
	.favorite-message-text {
		font-size: 13px;
	}
}
/* モーダル内の注釈部分 */
.favorite-message-note {
    margin-top: 10px;
    border-top: 1px dotted #aaa;
    padding-top: 10px;
    font-size: 11px;
}
/* お気に入りボタン */
.favorite-button-lead-delete {
    background: none;
    border-radius: 8px;
    border: 1px solid #666;
    color: #666;
    cursor: pointer;
    width: 200px;
    height: 60px;
    position: relative;
}
.favorite-message-close:hover {
    opacity: 0.8;
}
.agency-name-heading {
    border-left: 6px solid #71AF42;
    margin-left: -10px;
	padding-left: 10px;
}
@media screen and (max-width: 480px) {
	.agency-name-heading {
		padding-left: 10px;
	}
}
.company-name-container {
	display: flex;
	align-items: center;
}
@media screen and (max-width: 480px) {
	.company-name-container {
		display: block;
	}
}
.favorite-button-lead-delete:hover,
.favorite-button-company-delete:hover,
.favorite-button-lead-add:hover,
.company-favorite-button:hover{
	opacity: 0.8;
}

.linked-agency-info {
	margin-top: 5px;
	font-size: 12px;
	color: #666;
}

.linked-agency-label {
	font-weight: bold;
	color: #FF6600;
}