@charset "utf-8";

#footer {
	width: 100%;
	margin: 0;
	color: black;
}

#footer .f_inner a {
	color: black;
	text-decoration: unset;
	transition: all 0.3s;
}

#footer a:hover {
	opacity: 0.6;
}

#footer .f_inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	padding: 25px 30px 40px;
	max-width: 1000px;
	margin: 0 auto;
}

#footer .f_mr_info {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 30px;
	padding-right: 10px;
	border-bottom: 1px solid #dedede;
	max-width: 360px;
}

#footer .f_mr_info > img {
	margin-right: 15px;
}

#footer .f_mr_info .f_mr_links a:not(:last-child)::after {
	content: "";
    display: inline-block;
    width: 0;
    height: 16px;
    border-left: 1px solid #787878;
    margin-left: 8px;
	margin-right: 3px;
    margin-bottom: -3px;
}

#footer .f_company_info {
	font-size: 11px;
	margin-top: 25px;
}

#footer .f_company_info .f_company_logo {
	display: flex;
	align-items: center;
	gap: 5px;
}

#footer .f_company_info .f_company_logo > a img {
	vertical-align: middle;
	margin-right: 10px;
}

#footer .f_company_info .f_company_address {
	font-size: 10px;
	margin-top: 3px;
}

#footer .f_company_info .f_company_links {
	margin-top: 2px;
}

#footer .f_company_info .f_company_links a:not(:last-child)::after {
	content: "";
    display: inline-block;
    width: 0;
    height: 12px;
    border-left: 1px solid #787878;
    margin-left: 8px;
	margin-right: 4px;
    margin-bottom: -1px;
}

#footer .f_services_info {
	display: grid;
	grid-template-columns: repeat(4, max-content);
	gap: 4px 16px;
	margin-top: 12px;
	padding-right: 10px;
}

#footer .f_services_info li a {
	display: inline-block;
	color: #000;
	font-size: 12px;
	white-space: nowrap;
	margin: 0 10px 0 0;
}

#footer .f_services_info li a svg {
	width: .5em;
	margin-right: .3rem;
	margin-bottom: -.2rem;
}

#footer .f_sns_link {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 10px;
}
#footer .f_sns_link li {
	display: inline-block;
}

#footer .f_cta_area {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	align-self: start;
	grid-row: span 2;
	padding-right: 30px;
}

#footer .f_cta_area .f_cta_inner {
	display: flex;
	flex-direction: column;
	align-items: center;
}

#footer .f_cta_area .f_cta_inner > p {
	text-align: center;
	font-size: 14px;
}

#footer .f_cta_area .f_cta_inner > p::before {
	content: "\\";
	font-family: "Segoe UI", Arial, sans-serif;
}

#footer .f_cta_area .f_btn_area {
	margin-top: 10px;
	display: flex;
	flex-direction: column;
	gap: 17px 0;
}

#footer .f_cta_area .f_btn_area a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 220px;
	padding: 7px 12px;
	box-shadow: 0px 0px 6px -2px #373737;
	border-radius: 4px;
	background-clip: padding-box;
}

#footer .f_cta_area .f_btn_area a img {
	width: 13px;
	margin-right: 4px;
}

#footer .f_copy {
	clear:both;
	color: #fff;
	background: #333;
}
#footer .f_copy p {
	padding: 10px 0;
	text-align: center;
	text-shadow: 1px 1px 1px #000;
}

@media screen and (max-width: 480px) {
	#footer .f_inner {
		display: flex;
		flex-direction: column;
		align-items: center;
		padding: 15px 20px 40px;
	}

	#footer .f_mr_info {
		width: 100%;
		margin-bottom: 20px;
		padding-right: 0;
		gap: 10px;
	}

	#footer .f_mr_info img {
		width: 140px;
	}

	#footer .f_mr_info .f_mr_links a:not(:last-child)::after {
		margin-left: 12px;
		margin-right: 7px;
	}

	#footer .f_cta_area {
		padding: 0;
		margin-bottom: 12px;
		align-self: auto;
	}

	#footer .f_cta_area .f_btn_area {
		gap: 14px 0;
	}

	#footer .f_company_info {
		width: 100%;
	}

	#footer .f_services_info {
		margin-top: 5px;
		gap: 2px 10px;
	}

	#footer .f_services_info li a {
		font-size: 11px;
	}

	#footer .f_sns_link a img {
		transform: scale(0.9);
	}
}

@media screen and (max-width: 374px) {
	#footer .f_services_info {
		grid-template-columns: repeat(3, max-content);
	}
}

/*===== topickpath ==========================================*/

div#topickpath{
	background:#eeeeee url(../images/topickpath_bg.png) repeat-x top left;
	overflow:hidden;
}
div#topickpath .outline{
	width: 960px;
	margin: 0 auto;
}
ul#topickpath_list li{
	line-height:0;
	margin:0;
	padding:0;
}
ul#topickpath_list li a{
	line-height:52px;
	padding:0 40px 0 20px;
	display:block;
	float:left;
	text-decoration:none;
	color:#333333;
	background:url(../images/topickpath_m.png) no-repeat top right;
}
ul#topickpath_list li a:hover{
	color: #0066FF;
}


/*===== pageTopLink ===========================================*/

#pageTop {
	display: none;
	position: fixed;
	bottom: 20px;
	right: 20px;
	font-size: 10px;
	font-weight: bold;
}
#pageTop a {
	background: #666;
	text-decoration: none;
	color: #fff;
	width: 100px;
	padding: 10px 20px;
	text-align: center;
	display: block;
	border-radius: 5px;
	background: #333333;
}
#pageTop a:hover {
	text-decoration: none;
	background: #999;
}


/*===== AI機能用固定ボタン ==========================================*/
.ai-support-button {
    position: fixed;
    bottom: 80px;
    right: 80px;
    z-index: 1;
    transition: all 0.3s ease;
}

.ai-support-button__link {
    display: block;
    text-decoration: none;
    color: inherit;
    position: relative;
}

.ai-support-button__tooltip {
    position: absolute;
    right: 72px;
    top: 50%;
    transform: translateX(10px) translateY(-50%);
    background: white;
    border: 2px solid #1d3937;
    border-radius: 12px;
    padding: 12px 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0.4s;
    pointer-events: none;
}

.ai-support-button__tooltip-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ai-support-button__tooltip-icon {
    width: 24px ;
    height: 24px;
    color: #1d3937;
    flex-shrink: 0;
}

.ai-support-button__tooltip-text {
    display: flex;
    flex-direction: column;
}

.ai-support-button__tooltip-title {
    font-weight: bold;
    font-size: 16px;
    color: #333;
    margin-bottom: 4px;
}

.ai-support-button__tooltip-description {
    font-size: 12px;
    color: #666;
}

.ai-support-button__button {
    width: 60px;
    height: 60px;
    margin-left: 20px;
    background: #1d3937;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(29, 57, 55, 0.4);
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ai-support-button__button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(29, 57, 55, 0.5);
}

.ai-support-button__button-icon {
    width: 28px;
    height: 28px;
    color: white;
}

.ai-support-button__badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 20px;
    height: 20px;
    background: #EF4444;
    border: 2px solid white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
    color: white;
}

/* ホバー時にツールチップを表示 */
.ai-support-button:hover .ai-support-button__tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(0) translateY(-50%);
    pointer-events: auto;
}

/* 1ヶ月ぶりログインユーザー向け：ツールチップを常時表示 */
.ai-support-button--expanded .ai-support-button__tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(0) translateY(-50%);
    pointer-events: auto;
}

/* ツールチップのバツボタン */
.ai-support-button__tooltip-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    border: none;
    background: #ccc;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    z-index: 10;
    transition: background-color 0.2s ease;
}

.ai-support-button__tooltip-close:hover {
    background: #999;
}

.ai-support-button__tooltip-close-icon {
    position: relative;
    width: 12px;
    height: 12px;
}

.ai-support-button__tooltip-close-icon::before,
.ai-support-button__tooltip-close-icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2px;
    height: 10px;
    background: #fff;
    border-radius: 1px;
}

.ai-support-button__tooltip-close-icon::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.ai-support-button__tooltip-close-icon::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

/* タブレット対応 */
@media (max-width: 1024px) and (min-width: 769px) {
    .ai-support-button__button {
        width: 54px;
        height: 54px;
    }

    .ai-support-button__button-icon {
        width: 22px;
        height: 22px;
    }
}

/* スマホ対応 */
@media (max-width: 768px) {
    .ai-support-button {
        bottom: 75px;
        right: 15px;
    }

    .ai-support-button__button {
        width: 48px;
        height: 48px;
    }

    .ai-support-button__button-icon {
        width: 20px;
        height: 20px;
    }

    .ai-support-button__tooltip {
        display: none !important; /* スマホではツールチップ非表示 */
    }
}
