/*
Theme Name: 株式会社ICHI 子テーマ
Template: ichi-blob-in
Description: 株式会社ICHI の子テーマ
Author: yusuke yaegashi
Version: 2025/12/23
*/

/* ===================================== */
/* ページID 540（検針アプリ）では親テーマの背景画像を非表示 */
body.page-id-540 header.pages {
    background-image: none !important;
    background-color: transparent;
    height: auto !important;
}

body.page-id-540 header.pages .entry-title,
body.page-id-540 header.pages h1 {
    display: none !important;
}

/* ===================================== */
/* ヒーローセクション背景画像 */
body.page-id-540 .hero {
    position: relative;
    width: 100%;
    height: 650px;
    max-height: 750px;
    background-image: url("img/hero/hero_kenshin.jpg");
    background-size: cover;
    background-position: center 10%;
    background-repeat: no-repeat;
	z-index: 1;
}

/* ヒーロー内テキスト配置 */
body.page-id-540 .hero-inner {
	display: inline-block;
	background-color: rgba(0, 60, 120, 0.5);
    padding: 0.5em 1.25em;
    border-radius: 6px;
    position: absolute;
    top: 70%;
    left: 3%;
    transform: translateY(-50%);
    max-width: 560px;
    color: #fff;
    z-index: 2;
	text-align: left;
}

/* メインコピー */
body.page-id-540 .hero-title {
    font-size: 3.4rem;
    font-weight: 350;
	letter-spacing: 0.1em;
    line-height: 1.45;
    margin-bottom: 1.4rem;
	opacity: 0.95;
}

/* 小見出し */
body.page-id-540 .hero-lead {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

/* サービス名 */
body.page-id-540 .hero-product {
    font-size: 4.6rem;
    font-weight: 700;
}

/* 特許テキスト */
body.page-id-540 .hero-note {
	display: inline-block;
	background-color: #FF4C74;
    padding: 0.25em 0.6em;
    border-radius: 4px;
    font-size: 2rem;
}

/* ヒーローセクション（SP用） */
@media (max-width: 490px) {
	/* 背景画像 */
    body.page-id-540 .hero {
        background-image: url("img/hero/hero_kenshin_sp.jpg");
        background-size: cover;
        background-position: center center;
        height: 70vh;
		min-height: 420px;
    }
	/* テキスト配置 */
    body.page-id-540 .hero-inner {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        max-width: calc(100% - 32px);
        width: auto;
        padding: 1em 1em;
        text-align: center;
    }
	/* メインコピー */
    body.page-id-540 .hero-title {
        font-size: 2.2rem;
        line-height: 1.4;
        letter-spacing: 0.05em;
	    margin-top: 1.1rem;
        margin-bottom: 1rem;
    }
	/* 小見出し */
    body.page-id-540 .hero-lead {
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
    }
	/* サービス名 */
    body.page-id-540 .hero-product {
        font-size: 3rem;
		margin-bottom: 0.8rem;
    }
	/* 特許テキスト */
    body.page-id-540 .hero-note {
        font-size: 1.1rem;
		margin-bottom: 0.8rem;
    }
}

/* problem_小型SP用 */
@media (max-width: 340px) {
	/* テキスト配置 */
	body.page-id-540 .hero-inner {
		top: 55%;
	}
	/* メインコピー */
	body.page-id-540 .hero-title {
		font-size: 2rem;
		line-height: 1.35;
	}
	/* サービス名 */
	body.page-id-540 .hero-product {
		font-size: 2.6rem;
	}
	/* 小見出し */
	/* 特許テキスト */
	body.page-id-540 .hero-lead,
	body.page-id-540 .hero-note {
		font-size: 1.05rem;
	}
}

/* ===================================== */
/* ヘッダー右側 CTA */
body.page-id-540 .header-cta {
    display: flex;
    align-items: center;
}

/* 問い合わせボタン */
body.page-id-540 .cta-contact {
    background-color: #007acc;
    color: #fff !important;
    padding: 6px 14px;
    border-radius: 4px;
    margin-right: 4px;
    font-weight: 400;
}

/* 問い合わせボタン hover対策 */
body.page-id-540 .navbar .header-cta .cta-contact:hover,
body.page-id-540 .navbar .header-cta .cta-contact:focus,
body.page-id-540 .navbar .header-cta .cta-contact:active {
    background-color: #0063a6;
    color: #fff;
    text-decoration: none;
}

/* TOPへ戻るボタン */
body.page-id-540 .cta-top {
    background-color: #f2f4f7;
    color:#444;
    padding: 6px 14px;
    border: 1px solid #d9dee5;
    border-radius: 4px;
    margin-right: 4px;
    font-weight: 400;
}

/* TOPへ戻るボタン hover対策 */
body.page-id-540 .navbar .header-cta .cta-top:hover,
body.page-id-540 .navbar .header-cta .cta-top:focus,
body.page-id-540 .navbar .header-cta .cta-top:active {
    background-color: #e6eaf0;
    color: #222;
    text-decoration: none;
}

/* 社名画像調整 */
body.page-id-540 .cta-logo img {
    height: 32px;
    width: auto;
    display: block;
}

/* 社名画像 */
body.page-id-540 .cta-logo {
    display: block;
    padding: 0.5em;
}

/* ハンバーガーメニュー内では社名画像を非表示 */
@media (max-width: 767px) {
    body.page-id-540 #metering-navbar .cta-logo {
        display: none;
    }
}

/* ページ内リンク（アンカー遷移）時に見出しが
   ヘッダーに隠れないよう表示位置を下げる */
#self-metering,
#problem,
#merit,
#workflow,
#features {
    padding-top: 60px;
    margin-top: -60px;
}

/* 画面幅が狭い場合ページ内リンク（各見出し）を非表示 */
@media (max-width: 1150px) {
    body.page-id-540 .navbar .navbar-nav:not(.navbar-right) {
        display: none;
    }
}

/* ===================================== */
/* ハンバーガーメニュー未展開時は右寄せ・横並び挙動に戻す */
body.page-id-540 #metering-navbar .header-cta {
    display: flex;
	align-items: center;
    float: right;
}

/* ハンバーガーメニュー展開時は縦並びにする */
@media (max-width: 767px) {
    body.page-id-540 #metering-navbar .header-cta {
        flex-direction: column;
        align-items: flex-start;
        float: none;
    }
}

/* ===================================== */
/* ページトップボタン */
#page-top {
    position: fixed;
    bottom: 10px;
    right: 0;
    font-size: 15px;
    z-index: 9999;
}

#page-top a {
    display: block;
    width: 100px;
    text-align: center;
    text-decoration: none;
    color: #B3E5FC;
    border-radius: 5px;
}

#page-top a:hover {
    background: #eee;
}

/* ===================================== */
/* 見出し本体のスタイル */
article h3 {
    position: relative;
    padding: 0 .5em .5em 2em;
    border-bottom: 1px solid #ccc;
}

article h3::before {
    top: .2em;
    left: .2em;
    z-index: 2;
    width: 18px;
    height: 18px;
    background: rgba(150,150,150,.5);
}

article h3::after {
    top: .7em;
    left: .7em;
    width: 13px;
    height: 13px;
    background: rgba(210,210,210,.5);
}

article h3::before,
article h3::after {
    position: absolute;
    content: '';
    border-radius: 100%;
}

/* ===================================== */
/* 見出し間の区切り */
#self-metering,
#problem,
#merit,
#workflow,
#features {
    margin-bottom: 80px;
}

/* 各セクションの見出しとlead文間の余白調整 */
#self-metering h3,
#problem h3 {
    margin-bottom: 24px;
}

/* 各セクションのlead文調整 */
#self-metering .lead,
#problem .lead {
	font-size: 16px;
    margin-bottom: 24px;
}

/* 各セクションのresultテキスト */
.section-summary {
    margin-top: 30px;
    text-align: center;
}

/* 黒字部分 */
.section-summary__lead {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

/* 赤字部分 */
.section-summary__result {
    font-size: 20px;
    font-weight: 600;
    color: #d32f2f;
}

/* ===================================== */
/* self-metering_比較イメージ全体枠 */
.self-metering__card {
	background-color: #f7f8fa;
	border-radius: 12px;
	padding: 20px 20px 24px;
	margin-bottom: 32px;
	position: relative;
}

/* self-metering_ラベル文言「検針方法の比較イメージ」 */
.self-metering__card::before {
	content: "\691c\91dd\65b9\6cd5\306e\6bd4\8f03\30a4\30e1\30fc\30b8";
	display: block;
	margin-bottom: 8px;
	font-size: 15px;
	font-weight: 600;
	color: #555;
}

/* self-metering_画像の配置エリア */
.self-metering__images {
	display: grid;
	grid-template-columns: 1fr 1fr;
	column-gap: 24px;
	row-gap: 8px;
}

/* self-metering_各画像のブロック */
.self-metering__image {
	position: relative;
}

/* self-metering_画像自体の基本指定 */
.self-metering__image img {
	width: 100%;
	height: auto;
	display: block;
}

/* self-metering_Before/Afterラベル */
.self-metering__overlay {
	position: absolute;
	top: 8px;
	left: 8px;
	background: rgba(0, 0, 0, 0.6);
	color: #fff;
	font-size: 14px;
	padding: 6px 12px;
	border-radius: 999px;
	line-height: 1;
	white-space: nowrap;
}

.self-metering__overlay--after {
	background: rgba(30, 115, 190, 0.85);
}

/* self-metering_画像下の補足キャプション */
.self-metering__image-caption {
	grid-column: 1 / -1;
	font-size: 15px;
	text-align: center;
    margin-top: 0px;
    margin-bottom: 0px;
}

/* self-metering_SP用 */
@media (max-width: 490px) {
	/* 画像の配置エリア */
	.self-metering__images {
    	grid-template-columns: 1fr;
    	row-gap: 12px;
	}
	/* Before/Afterラベル */
	.self-metering__overlay {
	position: absolute;
	font-size: 13px;
	padding: 5px 10px;
	}
	/* 画像下の補足キャプション */
	.self-metering__image-caption {
    	text-align: left;
    	font-size: 14px;
		margin-top: 6px;
	}
}

/* ===================================== */
/* problem_本文配置 */
.problem-body {
    text-align: center;
}

/* problem_課題項目のグリッドレイアウト */
.problem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 40px 0;
}

/* problem_課題カード */
.problem-item {
    border: 1px solid #ddd;
    padding: 20px;
}

/* problem_課題カード内の画像調整 */
.problem-item img {
    max-height: 210px;
    width: auto;
    max-width: 100%;
    display: block;
    margin: 0 auto;
    box-shadow: none;
}

/* problem_課題カード内の説明文 */
.problem-item p {
    font-size: 17px;
    margin: 12px 0 0px;
    font-weight: 600;
}

/* problem_SP用 */
@media (max-width: 490px) {
	/* 課題項目のグリッドレイアウト */
	.problem-grid {
		grid-template-columns: repeat(2, 1fr);
    	gap: 16px;
    	margin: 24px 0;
	}
	/* 課題カード */
	.problem-item {
		padding: 14px;
		display: flex;
		flex-direction: column;
	}
	/* 課題カード内の画像調整 */
	.problem-item img {
		max-height: 160px;
	}
	/* 課題カード内の説明文 */
	.problem-item p {
		font-size: 15px;
		margin-top: 10px;
	}
}

/* ===================================== */
/* merit_セクション色分け */
.merit-group {
    padding: 24px;
    border-radius: 16px;
    margin-bottom: 32px;
}

.merit-group.business { background: #FFEB8A; }
.merit-group.user     { background: #B8DBFF; }
.merit-group.region   { background: #DCF5CB; }

/* merit_カードUI */
.merit-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.merit-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    gap: 16px;
}

/* merit_アイコン */
.merit-card__icon img {
    width: 96px;
    height: 96px;
    opacity: 0.75;
    box-shadow: none;
}

/* merit_テキスト */
.merit-card__body {
    flex: 1;
    display: block;
}

/* merit_ユーザー・地域（横並び2カラム） */
.merit-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.merit-group.user,
.merit-group.region {
    display: grid;
    margin-bottom: 0px;
}

.merit-group.user .merit-card + .merit-card,
.merit-group.region .merit-card + .merit-card {
    margin-top: 16px;
}

.merit-group.user .merit-card,
.merit-group.region .merit-card {
    width: 100%;
}
/* merit_グループの見出し調整 */
.merit h4 {
    font-size: 20px;
    margin-bottom: 24px;
    font-weight: 600;
}

/* merit_カードタイトル調整 */
.merit h5 {
    font-size: 17px;
    margin: 12px 0 8px;
    font-weight: 600;
}

/* merit_SP用 */
@media (max-width: 490px) {
	/* カードUI */
	.merit-cards {
    	grid-template-columns: 1fr;
	}
	.merit-card {
    	flex-direction: column;
    	align-items: center;
    	text-align: center;
    	padding: 12px;
    	gap: 12px;
	}
	/* アイコン */
	.merit-card__icon img {
    	width: 64px;
    	height: 64px;
    	margin-bottom: 8px;
	}
	/* ユーザー・地域（横並び解除） */
	.merit-pair {
		grid-template-columns: 1fr;
    	gap: 32px;
	}
	.merit-group.user .merit-card,
	.merit-group.region .merit-card {
    	margin-bottom: 12px;
	}
	/* カードタイトル調整 */
	.merit h5 {
    	margin: 8px 0 6px;
	}
	/* カード説明文調整 */
	.merit-card p {
    	margin-top: 0;
	}
}

/* ===================================== */
/* workflow_見出し下余白調整 */
#workflow h3 {
    margin-bottom: 24px;
}

/* workflow_Stepカード全体 */
.workflow-step {
    position: relative;
    padding: 32px;
    border: 1px solid #e5e5e5;
    border-radius: 16px;
}

/* workflow_Step2・3カード */
.workflow-step--simple {
    padding: 24px;
}

/* workflow_Stepごとのカード背景色 */
.workflow-step--step1 {
    background: #F2F6FB;
}

.workflow-step--step2 {
    background: #DCE9F7;
}

.workflow-step--step3 {
    background: #C3D8F0;
}

/* workflow_Step番号・タイトル */
.workflow-step__title {
    position: absolute;
    top: -26px;                /* 枠の外に少し出す */
    left: 26px;                /* 枠の左揃えに合わせる */
    background: #fff;
    padding: 6px 14px;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    color: #555;
    border: 1px solid #e5e5e5;
    border-radius: 999px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

/* workflow_Step1の手順リスト全体 */
.workflow-step__list {
    display: flex;
    justify-content: space-between;
    gap: 64px;
    margin-top: 20px;
    margin-bottom: 40px;
    padding: 0;
    list-style: none;
    align-items: stretch;
}

/* workflow_Step1の手順カード */
.workflow-step__item {
    position: relative;
    flex: 1;
    text-align: center;
    background: #f9f9f9;
    border: 1px solid #e3e8f0;
    padding: 12px 10px;
    border-radius: 10px;
}

/* workflow_Step1の手順番号 */
.step-no {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
}

/* workflow_Step1の手順説明テキスト */
.step-text {
    font-size: 14px;
    line-height: 1.4;
}

/* workflow_Step1の各手順間の矢印 */
.workflow-step__item::after {
    content: "▶";
    position: absolute;
    top: 53%;
    right: -40px;
    transform: translateY(-50%);
    font-size: 22px;
    color: #999;
}

.workflow-step__item:last-child::after {
    content: none;
}

/* workflow_Step間の導線（縦ライン＋矢印） */
.workflow-connector {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 24px 0;
}

.workflow-connector__line {
    width: 2px;
    height: 24px;
    background: #cfd8e3;
}

.workflow-connector__arrow {
    width: 0;
    height: 0;
    margin-top: 4px;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid #cfd8e3;
    margin: 0 auto;
}

/* workflow_Step2のテキスト＋アイコン横並びレイアウト */
.workflow-step--cloud .workflow-step__cloud-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
}

/* workflow_Step2のテキスト */
.workflow-step__cloud-text {
    font-size: 15px;
    color: #555;
    margin: 0;
    flex: 0 0 auto;
    width: auto;
    text-align: left;
    white-space: nowrap;
}

/* workflow_Step2のアイコン */
.workflow-step--cloud .workflow-step__single-image--cloud {
    flex-shrink: 0;
}

/* workflow_Step2のアイコン画像サイズ調整 */
.workflow-step--cloud .workflow-step__single-image--cloud img {
    width: 88px;
}

/* workflow_複数画像のグリッド配置 */
.workflow-step__images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
    margin-top: 32px;
}

/* workflow_操作画面画像の共通設定 */
.workflow-step__image {
    text-align: center;
}

.workflow-step__image img {
    width: 100%;
    max-width: 240px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.workflow-step__image figcaption {
    font-size: 14px;
    margin-top: 8px;
    color: #555;
}

/* workflow_Step2のアイコン画像配置 */
.workflow-step__single-image--cloud {
    text-align: center;
    margin: 12px 0;
}

.workflow-step__single-image--cloud img {
    max-width: 280px;
    width: 100%;
    height: auto;
}

/* workflow_Step3の管理画面画像配置 */
.workflow-step__single-image--admin {
    text-align: center;
    margin: 24px 0;
}

.workflow-step__single-image--admin img {
    max-width: 560px;
    width: 100%;
    height: auto;
}

/* merit_SP用 */
@media (max-width: 490px) {
	/* Step2・3カード */
	.workflow-step--simple {
	padding: 32px;
	}
	/* Step番号・タイトル */
	.workflow-step__title {
        left: 50%;
        transform: translateX(-50%);
        font-size: 15px;
        padding: 5px 10px;
        width: max-content;
        max-width: 90%;
        text-align: center;
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
		text-wrap: balance;
	}
	/* Step1の手順リスト全体 */
    .workflow-step__list {
        flex-direction: column;
        gap: 24px;
    }
	/* Step1の各手順間の矢印 */
    .workflow-step__item::after {
		content: "▼";
		top: auto;
		right: auto;
		bottom: -24px;
		left: 50%;
		transform: translateX(-50%);
		margin: 6px 0 2px;
		font-size: 14px;
		color: #bbb;
	}
	.workflow-step__item:last-child::after {
    	content: none;
	}
	/* Step間の導線（縦ライン＋矢印） */
	.workflow-connector {
	    margin-bottom: 32px;
	}
	/* Step2のテキスト＋アイコン縦並びレイアウト */
	.workflow-step__cloud-row {
		flex-direction: column;
		text-align: center;
    }
	.workflow-step--cloud .workflow-step__cloud-row {
		gap: 0;
	}
	/* Step2のテキスト */
    .workflow-step__cloud-text {
        white-space: normal;
        text-align: center;
		margin-top: 8px;
    }
	/* Step2のアイコン画像サイズ調整 */
	.workflow-step--cloud .workflow-step__single-image--cloud img {
		width: 72px;
	}
	/* 複数画像のグリッド配置 */
	.workflow-step__images {
		grid-template-columns: repeat(2, 1fr);
		gap: 16px;
	}
	/* 操作画面画像の共通設定 */
	.workflow-step__image img {
		max-width: 100%;
	}
	.workflow-step__image figcaption {
		margin-top: 10px;
	}
	/* 複数画像のグリッド配置_2列目は中央寄せ */
	.workflow-step__image:last-child {
		grid-column: 1 / -1;
		justify-self: center;
		max-width: 60%;
	}
	/* Step3の管理画面画像配置 */
	.workflow-step__single-image--admin {
		margin-top: 36px;
		margin-bottom: 4px;
	}
}

/* ===================================== */
/* features_全体のカードレイアウト */
#features .features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

/* features_各機能カードの共通スタイル */
#features .feature-card {
    text-align: center;
    padding: 24px 20px;
    margin: 0 auto;
	border-radius: 16px;
}

/* features_縦長（アプリ画面）カード */
#features .feature-card.is-portrait {
	width: 100%;
    max-width: 420px;
	background: #F2F6FB;
}

/* features_横長（管理画面）カード */
#features .feature-card.is-landscape {
    width: 100%;
    max-width: 420px;
	background: #C3D8F0;
}

/* features_画像エリア共通設定 */
#features .feature-image {
	height: 220px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

/* features_画像共通設定 */
#features .feature-image img {
	max-height: 100%;
    height: auto;
    display: block;
}

/* features_縦長カード用画像サイズ調整 */
#features .feature-card.is-portrait .feature-image img {
    max-width: 220px;
}

/* features_横長カード用画像サイズ調整 */
#features .feature-card.is-landscape .feature-image img {
    max-width: 100%;
}

/* features_機能タイトル */
#features .feature-title {
	margin-top: 0;
    margin-bottom: 12px;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;
}

/* features_機能説明テキスト */
#features .feature-text {
	margin-bottom: 0;
    font-size: 14px;
    color: #555;
}

@media (max-width: 490px) {
    #features .features-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    #features .feature-card.is-landscape .feature-image {
        height: 160px;
    }
}

/* ===================================== */
/* ページ全体のまとめテキスト */
.page-summary {
	text-align: center;
	margin-top: 20px;
}

/* まとめテキスト本体 */
.page-summary__text {
	font-size: 19px;
	font-weight: 600;
	line-height: 1.8;
	color: #333;
}
