/* ========================================
   GRACIA Partners Custom Styles
   ======================================== */

/* --- Sticky Header --- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 999;
	transition: box-shadow 0.3s ease;
}

.site-header.is-scrolled {
	box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

/* --- Hero --- */
.gp-hero {
	margin-top: 0 !important;
}

.gp-hero .wp-block-cover__inner-container {
	animation: heroFadeIn 1s ease-out;
}

@keyframes heroFadeIn {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* --- Scroll Fade-in Animation --- */
.fade-in-up {
	opacity: 0;
	transform: translateY(30px);
	transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up.is-visible {
	opacity: 1;
	transform: translateY(0);
}

/* --- Image hover --- */
.wp-block-image img {
	transition: transform 0.3s ease;
}

.wp-block-image:hover img {
	transform: scale(1.03);
}

/* --- Button hover transition --- */
.wp-block-button__link {
	transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.wp-block-button__link:hover {
	transform: translateY(-2px);
}

/* --- JIN:R Compatibility --- */
.jinr-heading {
	font-weight: 700;
	line-height: 1.4;
	color: var(--wp--preset--color--primary);
}

.d--bold {
	font-weight: 700;
}

.jinr-iconbox2,
.jinr-iconbox3 {
	padding: 1.5em;
	border-radius: 8px;
	background: var(--wp--preset--color--light-gray);
	margin-bottom: 1.5em;
}

/* JIN:R font-size classes */
.d--fontsize-14px { font-size: 14px; }
.d--fontsize-15px { font-size: 15px; }
.d--fontsize-18px { font-size: 18px; }
.d--fontsize-21px { font-size: 21px; }
.d--fontsize-27px { font-size: 27px; }
.d--fontsize-30px { font-size: 30px; }
.d--fontsize-36px { font-size: 36px; }

/* JIN:R color classes */
.d--user-color2 { color: var(--wp--preset--color--primary); }

/* --- Contact Form 7 --- */
.wpcf7 {
	max-width: 100% !important; width: 100% !important; height: auto !important; aspect-ratio: 4/3;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 select,
.wpcf7 textarea {
	width: 100%;
	padding: 0.8em 1em;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	font-size: 1rem;
	font-family: inherit;
	background: #fff;
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.wpcf7 input:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus {
	outline: none;
	border-color: var(--wp--preset--color--primary);
	box-shadow: 0 0 0 3px var(--wp--preset--color--primary-tint);
}

.wpcf7 textarea {
	min-height: 160px;
	resize: vertical;
}

.wpcf7 input[type="submit"] {
	display: inline-block;
	padding: 0.9em 2.5em;
	background: var(--wp--preset--color--primary);
	color: #fff;
	border: none;
	border-radius: 9999px;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.3s ease, transform 0.2s ease;
}

.wpcf7 input[type="submit"]:hover {
	background: var(--wp--preset--color--primary-dark);
	transform: translateY(-2px);
}

.wpcf7-form p {
	margin-bottom: 1.2em;
}

.wpcf7-form label {
	display: block;
	margin-bottom: 0.4em;
	font-weight: 500;
	font-size: 0.9rem;
}

/* --- Table styles --- */
.wp-block-table table {
	border-collapse: collapse;
	width: 100%;
}

.wp-block-table td,
.wp-block-table th {
	padding: 0.8em 1em;
	border: 1px solid #e5e7eb;
}

.wp-block-table th {
	background: var(--wp--preset--color--primary);
	color: #fff;
	font-weight: 600;
}

.wp-block-table tr:nth-child(even) td {
	background: var(--wp--preset--color--light-gray);
}

/* --- Separator short style --- */
.wp-block-separator:not(.is-style-wide):not(.is-style-dots) {
	width: 60px;
	height: 3px;
	border: none;
}

/* --- Footer links override --- */
.site-footer a {
	color: inherit;
	text-decoration: none;
}

.site-footer a:hover {
	color: var(--wp--preset--color--primary);
}

/* --- Image protection --- */
img {
	-webkit-user-drag: none;
	user-select: none;
	pointer-events: none;
}

/* --- LINE button centering --- */
.center-line-button {
	text-align: center;
	margin: 1.5em 0;
}

/* --- JIN:R list style --- */
.jinr-list {
	padding-left: 1.5em;
}

.jinr-list li {
	margin-bottom: 1em;
	line-height: 1.8;
}

/* --- Recruit page: 採用フローをステップ風に --- */
.jinr-list li strong,
.jinr-list li > br:first-of-type + strong {
	color: var(--wp--preset--color--primary);
}

/* --- Recruit page: 職種カードのボタンをセンタリング --- */
.wp-block-column .wp-block-buttons {
	justify-content: center;
}

/* --- Recruit page: セクション見出し装飾 --- */
h3.jinr-heading {
	position: relative;
	padding-bottom: 0.5em;
	border-bottom: 3px solid var(--wp--preset--color--primary);
	display: inline-block;
}

/* --- Recruit page: 2カラムセクション改善 --- */
.wp-block-columns.js--scr-animation {
	padding: 1.5em 0;
	border-bottom: 1px solid #e5e7eb;
	margin-bottom: 1.5em;
}

/* --- Block spacing (JIN:R content compatibility) --- */
.wp-block-columns .wp-block-column .d--user-color2 {
	line-height: 1.2;
}

.wp-block-heading.jinr-heading {
	margin-top: 2.5em;
	margin-bottom: 1em;
}

.entry-content p {
	line-height: 1.9;
}

/* --- CTA応募ボタン（固定フッター） --- */
.gp-fixed-cta {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 9999;
	background: rgba(43, 134, 197, 0.95);
	padding: 12px 20px;
	text-align: center;
	box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15);
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 16px;
}

.gp-fixed-cta a {
	display: inline-block;
	background: #fff;
	color: #2b86c5;
	font-weight: 700;
	font-size: 16px;
	padding: 10px 32px;
	border-radius: 30px;
	text-decoration: none;
	transition: all 0.3s;
}

.gp-fixed-cta a:hover {
	background: #edf5fa;
	transform: translateY(-1px);
}

.gp-fixed-cta .cta-text {
	color: #fff;
	font-weight: 700;
	font-size: 14px;
}

/* --- 求人カードスタイル --- */
.gp-job-card {
	background: #fff;
	border: 1px solid #d4e6f2;
	border-radius: 12px;
	padding: 28px 24px;
	text-align: center;
	transition: box-shadow 0.3s, transform 0.3s;
}

.gp-job-card:hover {
	box-shadow: 0 8px 24px rgba(43, 134, 197, 0.12);
	transform: translateY(-3px);
}

.gp-job-card h4 {
	color: #2b86c5;
	margin-bottom: 12px;
}

.gp-job-card .job-salary {
	font-size: 18px;
	font-weight: 700;
	color: #e74c3c;
	margin: 12px 0;
}

/* --- 職種カード（ボーダー付きcolumn）のホバー効果 --- */
.wp-block-column.has-border-color {
	transition: box-shadow 0.3s ease, transform 0.3s ease;
	background: #fff;
}

.wp-block-column.has-border-color:hover {
	box-shadow: 0 8px 24px rgba(43, 134, 197, 0.12);
	transform: translateY(-3px);
}

/* --- 給与ハイライト（月給の強調表示） --- */
.d--fontsize-18px strong {
	color: #e74c3c;
}

/* --- Mobile --- */
@media (max-width: 768px) {
	.site-header {
		padding-left: 1rem !important;
		padding-right: 1rem !important;
	}

	.gp-fixed-cta {
		padding: 10px 16px;
	}

	.gp-fixed-cta .cta-text {
		font-size: 12px;
	}

	.gp-fixed-cta a {
		font-size: 14px;
		padding: 8px 24px;
	}

	body {
		padding-bottom: 60px;
	}
}

@media (min-width: 769px) {
	body {
		padding-bottom: 56px;
	}
}

@media (max-width: 768px) {
        .gp-hero {
                min-height: 70vh !important;
        }

        .gp-hero .wp-block-cover__image-background {
                object-position: center center;
        }
  }
/* --- 横スクロール防止 --- */
html, body {
	overflow-x: hidden;
}

/* --- Googleマップ レスポンシブ対応 --- */
iframe {
	max-width: 100% !important; width: 100% !important; height: auto !important; aspect-ratio: 4/3;
}

/* --- Mobile: ヘッダー・フッター最適化 --- */
@media (max-width: 768px) {
	/* ヘッダーロゴ縮小 */
	.site-header .wp-block-site-logo img {
		width: 100px !important;
		height: auto !important;
	}
	.site-header {
		padding-top: 0.4rem !important;
		padding-bottom: 0.4rem !important;
	}

	/* フッターコンパクト化 */
	.site-footer {
		padding-top: var(--wp--preset--spacing--30) !important;
	}
	.site-footer .wp-block-site-logo img {
		width: 100px !important;
		height: auto !important;
	}
	.site-footer .wp-block-columns {
		gap: 0.5rem !important;
	}
	.site-footer .wp-block-column {
		margin-bottom: 0 !important;
	}
	.site-footer ul {
		line-height: 1.8 !important;
		margin-top: 0.3rem !important;
		margin-bottom: 0.5rem !important;
	}
	.site-footer h4 {
		margin-bottom: 0.2rem !important;
	}
}

/* --- フッター スマホ2カラム --- */
@media (max-width: 768px) {
	.site-footer .wp-block-columns {
		flex-wrap: wrap !important;
	}
	/* ロゴ列: 全幅 */
	.site-footer .wp-block-columns > .wp-block-column:first-child {
		flex-basis: 100% !important;
		margin-bottom: 0.8rem !important;
	}
	/* ページ・採用情報列: 2カラム横並び */
	.site-footer .wp-block-columns > .wp-block-column:nth-child(2),
	.site-footer .wp-block-columns > .wp-block-column:nth-child(3) {
		flex-basis: 48% !important;
		flex-grow: 0 !important;
	}
}
