/*
Theme Name: Icebreak Original
Theme URI: https://icebreak-card.com/
Author: fluxy
Author URI: https://icebreak-card.com/
Description: アイスブレイクカードサイト用の最小オリジナルテーマ
Version: 1.0.0
Text Domain: icebreak-original
*/

:root {
	--ib-theme-bg: #f7f3ee;
	--ib-theme-surface: #ffffff;
	--ib-theme-border: #e6ddd3;
	--ib-theme-text: #2d241d;
	--ib-theme-text-soft: #6e6155;
	--ib-theme-accent: #2d241d;
	--ib-theme-max-width: 960px;
	--ib-theme-shadow: 0 10px 30px rgba(45, 36, 29, 0.08);
	--ib-theme-radius: 20px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	margin: 0;
	padding: 0;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	padding: 0;
	background: var(--ib-theme-bg);
	color: var(--ib-theme-text);
	font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
	line-height: 1.8;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: inherit;
	text-decoration: none;
}

a:hover {
	opacity: 0.85;
}

.site {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.site-main {
	flex: 1;
}

.ib-site-header {
	background: #ffffff;
	border-bottom: 1px solid var(--ib-theme-border);
}

.ib-site-header__inner {
	max-width: var(--ib-theme-max-width);
	margin: 0 auto;
	padding: 16px 20px;
}

.ib-site-title {
	margin: 0;
	font-size: 20px;
	line-height: 1.4;
	font-weight: 700;
}

.ib-site-title a {
	color: var(--ib-theme-text);
}

.ib-site-footer {
	margin-top: 24px;
	background: #ffffff;
	border-top: 1px solid var(--ib-theme-border);
}

.ib-site-footer__inner {
	max-width: var(--ib-theme-max-width);
	margin: 0 auto;
	padding: 16px 20px;
	font-size: 13px;
	color: var(--ib-theme-text-soft);
	text-align: center;
}

.ib-page-wrap {
	max-width: var(--ib-theme-max-width);
	margin: 0 auto;
	padding: 24px 20px 32px;
}

.ib-page-card {
	background: var(--ib-theme-surface);
	border: 1px solid var(--ib-theme-border);
	border-radius: var(--ib-theme-radius);
	box-shadow: var(--ib-theme-shadow);
	padding: 28px 24px;
}

.ib-page-title {
	margin: 0 0 18px;
	font-size: 32px;
	line-height: 1.4;
	font-weight: 700;
	color: var(--ib-theme-text);
}

.ib-page-content > *:first-child {
	margin-top: 0;
}

.ib-page-content > *:last-child {
	margin-bottom: 0;
}

/* 診断ページ群はプラグインUIをそのまま使う */
body.ib-is-app-page .site-main {
	width: 100%;
}

body.ib-is-app-page .ib-page-wrap {
	max-width: 100%;
	padding: 0;
}

body.ib-is-app-page .ib-page-card {
	background: transparent;
	border: none;
	box-shadow: none;
	border-radius: 0;
	padding: 0;
}

@media (max-width: 767px) {
	.ib-site-header__inner,
	.ib-site-footer__inner,
	.ib-page-wrap {
		padding-left: 12px;
		padding-right: 12px;
	}

	.ib-page-wrap {
		padding-top: 12px;
		padding-bottom: 20px;
	}

	.ib-page-card {
		padding: 20px 16px;
		border-radius: 16px;
	}

	.ib-page-title {
		font-size: 26px;
	}
}