@charset "UTF-8";
/*
    Template: swell
    Theme Name: SWELL CHILD
    Theme URI: https://swell-theme.com/
    Description: SWELLの子テーマ
    Version: 1.0.0
    Author: LOOS WEB STUDIO
    Author URI: https://loos-web-studio.com/

    License: GNU General Public License
    License URI: http://www.gnu.org/licenses/gpl.html
*/

/* ヘッダーのロゴ。ロゴの高さはここで決める（2026-10-27）。
   カスタマイザーの「ロゴの大きさ」は、SWELL ではロゴの欄の高さで、PC はメニューの高さ（＝ヘッダーの高さ）、
   スマホはヘッダーとメニュー・検索のボタンの大きさにもなる。そこでカスタマイザーの値はヘッダーの高さとして使い、
   ロゴはそれより小さくして上下に余白をとる（ユーザー「ロゴはもう少し小さくして余白も」）。
   PC: 欄 44px（ヘッダー 76px）にロゴ 32px・追従ヘッダーは欄 30px にロゴ 24px。スマホ: 欄 50px にロゴ 26px。
   スマホは、あさぎChat のロゴが横長（約5.2:1）なので、SWELL の「高さ100%・幅は自動」のままだとロゴの欄が縮んで小さくなる。 */
.-img .c-headLogo__link {
	display: flex;
	align-items: center;
	height: 100%;
}

.-img .c-headLogo__img {
	height: 32px;
	max-width: none;
}

.l-fixHeader .-img .c-headLogo__img {
	height: 24px;
}

@media (max-width: 959px) {
	.-img .c-headLogo__img {
		height: 26px;
	}
}


/* ============================================================
   サイトデザイン（案A「すっきり白×浅葱」・2026-10-27）
   ロゴの色（紺 #2C346E・浅葱色 #00A3AF）と形（丸み・吹き出し）にそろえる。
   色・見出しの型・目次・角丸・上部バーとフッターの色・FAQ と吹き出しの色は SWELL の設定で入れていて、
   ここには設定で表せない部分（丸み・グラデーション・書体・細部）だけを書く。
   ============================================================ */
:root {
	--ac-navy: #2c346e;
	--ac-teal: #00a3af;
	--ac-teal-light: #2bbdb7;
	--ac-mint: #8cd9d1;
	--ac-pale: #eaf7f7;
	--ac-pale2: #f4fbfb;
	--ac-font-round: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", sans-serif;
}

/* 見出し・記事タイトル・カードのタイトルは丸ゴシック（ロゴの TPスカイラウンドの代わり。TP の書体はウェブフォントの契約が別のため） */
.c-postTitle__ttl,
.post_content :is(h2, h3, h4),
.p-postList__title,
.p-toc__ttl,
.cap_box_ttl,
.faq_q,
.c-widget__title,
.c-secTitle {
	font-family: var(--ac-font-round);
	font-weight: 700;
	letter-spacing: 0.02em;
}

.c-postTitle__ttl,
.p-postList__title {
	color: var(--ac-navy);
}

/* ヘッダー: 影の代わりに浅葱色の下線。メニューは紺 */
.l-header {
	box-shadow: none;
	border-bottom: 3px solid var(--ac-teal);
}

.c-gnav > .menu-item > a {
	color: var(--ac-navy);
}

/* 見出し2: SWELL の「ふきだし風」を丸くし、浅葱色のグラデーションに。しっぽは左下 */
.post_content h2:where(:not([class^="swell-block-"]):not(.faq_q):not(.p-postList__title)) {
	border-radius: 16px;
	background: linear-gradient(135deg, var(--ac-teal-light), var(--ac-teal));
	padding: 0.8em 1.1em;
}

.post_content h2:where(:not([class^="swell-block-"]):not(.faq_q):not(.p-postList__title))::before {
	top: calc(100% - 1px); /* SWELL の bottom: calc(2px - 1.5em) はしっぽの高さ 1.5em 用。0.7em にしたので箱との間に白い線が出ていた（2026-11-30 ユーザー指摘）→ 箱の下端に1px 重ねる */
	bottom: auto;
	left: 2em;
	border-width: 0.7em 0.55em;
	border-top-color: var(--ac-teal-light);
}

/* 見出し3: 左の縦線を角の丸い太めの線に */
.post_content h3:where(:not([class^="swell-block-"]):not(.faq_q):not(.p-postList__title)) {
	position: relative;
	border-left: none;
	padding: 0.25em 0 0.25em 0.9em;
	color: var(--ac-navy);
}

.post_content h3:where(:not([class^="swell-block-"]):not(.faq_q):not(.p-postList__title))::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.3em;
	bottom: 0.3em;
	width: 6px;
	border-radius: 3px;
	background: var(--ac-teal);
}

/* 見出し4: 縦線の代わりにミントの丸 */
.post_content h4:where(:not([class^="swell-block-"]):not(.faq_q):not(.p-postList__title)) {
	position: relative;
	border-left: none;
	padding-left: 1.2em;
	color: var(--ac-navy);
}

.post_content h4:where(:not([class^="swell-block-"]):not(.faq_q):not(.p-postList__title))::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.42em;
	width: 0.62em;
	height: 0.62em;
	border-radius: 50%;
	background: var(--ac-mint);
}

/* 目次: 枠線の代わりに淡い浅葱色の面 */
.p-toc.-simple {
	border: none;
	border-radius: 16px;
	background: var(--ac-pale2);
}

.p-toc.-simple .p-toc__ttl {
	border-bottom-color: var(--ac-mint);
}

/* 囲み・吹き出し・表を丸く */
.post_content .cap_box_ttl {
	border-radius: 10px 10px 0 0;
}

.post_content .cap_box_content {
	border-radius: 0 10px 10px 10px;
}

.c-balloon__text {
	border-radius: 16px;
}

/* 表は border-collapse のままだと丸めた角で線が欠けるので、外枠を表に持たせてセルは右と下の線だけにする */
.post_content .wp-block-table table {
	border-collapse: separate;
	border-spacing: 0;
	border: 1px solid var(--color_border--table, #dcdcdc);
	border-radius: 12px;
	overflow: hidden;
}

.post_content .wp-block-table :is(th, td) {
	border-width: 0 1px 1px 0;
}

.post_content .wp-block-table tr > :last-child {
	border-right-width: 0;
}

.post_content .wp-block-table tbody tr:last-child > * {
	border-bottom-width: 0;
}

/* 記事カード: サムネイルを丸く、カテゴリは紺の丸いラベル */
.p-postList__thumb {
	border-radius: 14px;
	overflow: hidden;
}

.c-postThumb__cat {
	margin: 8px;
	padding: 0.2em 0.8em;
	border-radius: 999px;
	background: var(--ac-navy);
	background-image: none;
}

.page-numbers.current {
	border-radius: 10px;
}

/* フッターのコピーライト欄も紺 */
.l-footer__foot {
	background: var(--ac-navy);
	color: #d9e4ef;
}

/* ============================================================
   トップページ（2026-10-27）
   メインビジュアルは文字なしの絵（右にあさぎ）に、SWELL のスライド1枚目の見出し・説明文・ボタンを重ねる。
   PC もスマホも「左に文字・右にあさぎ」の横並び。スマホは専用の横長の絵（5:4・右半分にあさぎ）で、文字は左半分に収める。
   見出しは「自分に合う<br>AIチャットが<br class="sp_">見つかる」（sp_ の改行はスマホだけ効く）。
   ============================================================ */
.p-mainVisual__slideTitle {
	font-family: var(--ac-font-round);
	font-weight: 700;
	letter-spacing: 0.03em;
}

.p-mainVisual__slideText {
	font-weight: 500;
	line-height: 1.7;
}

.c-mvBtn__btn {
	font-weight: 700;
	letter-spacing: 0.04em;
	box-shadow: 0 4px 0 #00727b;
}

@media (min-width: 960px) {
	/* 文字は絵の左 46% まで（その右はあさぎの手）。左端はロゴ・バナーとそろえるが、画面が広いと絵が大きくなって
	   その幅が足りなくなるので、文字の幅（--ac-mv-w）を保てるところまで左へ寄せる。
	   1,920px を超えると絵の高さが 720px を超えるので、文字の幅と大きさも画面幅に合わせて大きくする。
	   余白の % はメインビジュアルの幅に対する割合。文字の枠（l-container）の幅に対してではないので、
	   以前の padding-right: 52% は 2,500px を超えると枠より広くなり、見出しが1文字ずつ折り返していた（2026-10-27）。 */
	.p-mainVisual__textLayer {
		--ac-mv-w: max(520px, 27.1vw);
		max-width: none;
		padding-left: min(
			max(var(--swl-pad_container, 48px), calc((100% - var(--container_size, 1200px)) / 2)),
			max(calc(46% - var(--ac-mv-w)), var(--swl-pad_container, 48px))
		);
		padding-right: 54%;
	}

	.p-mainVisual__slideTitle {
		font-size: max(clamp(32px, 3.2vw, 46px), 2.4vw);
		line-height: 1.35;
	}

	/* 「紹介しま／す。」のように1字だけ次の行に残さない。読点と中黒で折る */
	.p-mainVisual__slideText {
		font-size: max(clamp(15px, 1.25vw, 18px), 0.94vw);
		word-break: keep-all;
		overflow-wrap: anywhere;
		text-wrap: pretty;
	}

	.p-mainVisual .c-mvBtn__btn {
		font-size: max(14px, 0.73vw);
	}
}

@media (max-width: 959px) {
	/* 文字は絵の左半分（右半分はあさぎ）。上下は中央 */
	.p-mainVisual__textLayer {
		justify-content: center;
		padding: 0 50% 0 5vw;
		text-align: left;
	}

	.p-mainVisual__slideTitle {
		font-size: 5.4vw;
		line-height: 1.38;
		word-break: keep-all;
		overflow-wrap: anywhere;
	}

	/* 「わかり／やすく」のように言葉の途中で折らない。読点と中黒で折る */
	.p-mainVisual__slideText {
		margin-top: 0.6em;
		padding: 0;
		font-size: 3vw;
		line-height: 1.65;
		word-break: keep-all;
		overflow-wrap: anywhere;
		text-wrap: pretty;
	}

	/* ボタンは文字の幅だけで左揃え（横いっぱいに伸ばすと右のあさぎの袖に触れる） */
	.u-ta-l .c-mvBtn.p-mainVisual__slideBtn {
		margin: 3.5vw 0 0;
		text-align: left;
	}

	.p-mainVisual .c-mvBtn__btn {
		display: inline-block;
		padding: 0.6em 1.3em;
		font-size: 12px;
	}

	/* メインビジュアルの下（バナーまで）の余白を詰める */
	.home #content {
		padding-top: 2em;
	}

	.p-pickupBanners {
		margin-bottom: 2.5em;
	}
}

/* ピックアップバナー: 文字は画像に入っているので重ね表示はしない（SWELL の設定で「表示しない」）。角を丸く・影を薄く */
.p-pickupBanners .c-bannerLink {
	border-radius: 16px;
	box-shadow: 0 2px 10px rgba(0, 120, 130, 0.1);
}

/* ---- 囲みと札（2026-12-01 ユーザー「ボックスの枠線がおかしい」「画像に吹き出しを入れるときは中央が」） ----
   - 見出しつきボックス（cap_box is-style-inner）: SWELL の既定は細い線（0.8px）と角2pxで、見出しの札（角10px）と形が合わなかった → 2px の浅葱色・角12px
   - 枠つきの囲み（has-border -border04 — 記号なしの箇条書き専用・2026-12-01 から）: SWELL の既定は 4px の薄い灰色で角が四角 → グレーの細線・角12px・地は白
   - 札（段落スタイル「吹き出し2」is-style-balloon_box2）: 黒い細線 → 浅葱色の線と紺の文字。直後が画像のときは中央に置き、しっぽも中央にする */
.post_content .cap_box.is-style-inner .cap_box_content {
	border: 2px solid var(--color_main);
	border-radius: 12px;
}

.post_content .cap_box.is-style-inner .cap_box_ttl {
	border-radius: 10px 0 10px 0;
}

/* 「この記事でわかること」(cap_box is-style-intext) も角を丸める — ほかの囲みが角12pxなのに、ここだけ四角だった (2026-12-01) */
.post_content .cap_box.is-style-intext {
	border-radius: 12px;
}

/* 記号なしの箇条書き (・と番号) を入れる囲み (2026-12-01 ユーザーが見比べて「E 細線＋角丸」— 枠線だけで地は白のまま)。
   記号つきの箇条書き (◯✕△) は見出しつきボックスに入れるので、この囲みはただの箇条書き専用。エディタでは グループ → 枠線「ボーダー04」 */
.post_content .has-border.-border04 {
	border: 1px solid #d6d6d6;
	border-radius: 12px;
	background: none;
	padding: 1.1em 1.4em;
}

.post_content .is-style-balloon_box2 {
	border-color: var(--color_main);
	border-width: 1.5px;
	border-radius: 8px;
	color: var(--ac-navy);
	font-weight: 700;
}

.post_content .is-style-balloon_box2::before {
	border-color: var(--color_main);
	border-width: 0 1.5px 1.5px 0;
}

.post_content .is-style-balloon_box2:has(+ .wp-block-image) {
	margin-inline: auto;
}

.post_content .is-style-balloon_box2:has(+ .wp-block-image)::before {
	left: calc(50% - 6px);
}

@media (max-width: 600px) {
	.post_content .has-border.-border04 {
		padding: 1em 1.1em;
	}
}
