@charset "utf-8";
/*
Theme Name: Yoneyama TP
Theme URI: https://y-measure.co.jp/
Description: 株式会社米山メジャメント コーポレートサイト用オリジナルテーマ（Lightning + Lightning Child Sample から移行）。PHP 7.4〜8.5 対応。
Author: 株式会社米山メジャメント
Version: 1.0.0
Requires at least: 5.2
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: yoneyama_tp
*/

/* ==========================================================================
   テーマ共通のベーススタイル
   旧テーマ（Lightning 6.16 / Bootstrap 3 / デザインスキン origin）のうち、
   このサイトの表示に実際に効いていた値だけを再定義しています。
   固定ページ固有のクラスは assets/css/custom.css（旧「追加CSS」）を参照。
   ========================================================================== */

:root {
	--color-key: #006d37;      /* 旧カスタマイザー「キーカラー」 */
	--color-key-dark: #00562b; /* 旧カスタマイザー「キーカラー（濃）」 */
	--header-h: 110px;
}

/* --------------------------------------------------------------------------
   1. リセット / ベース（Bootstrap 3 + origin スキン相当）
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html,
body {
	/* 各ページの margin: 0 calc(50% - 50vw) による全幅表示に必須 */
	overflow-x: hidden;
}

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	font-size: 16px;
	line-height: 1.42857143;
	color: #333;
	background-color: #fff;
	word-wrap: break-word;
}

img,
video {
	max-width: 100%;
	height: auto;
	vertical-align: middle;
	border: 0;
}

a {
	color: var(--color-key-dark);
	text-decoration: none;
	background-color: transparent;
}

a:hover {
	color: var(--color-key);
}

p {
	margin: 0 0 1.2em;
	line-height: 1.8em;
}

h1,
h2,
h3,
h4 {
	font-family: inherit;
	font-weight: 500;
	line-height: 1.7em;
	color: inherit;
}

h1 {
	font-size: 36px;
	margin: 20px 0 10px;
}

h2 {
	font-size: 24px;
	margin: 1.5em 0 1.2em;
	clear: both;
}

h3 {
	font-size: 24px;
	margin: 1.5em 0 1.2em;
}

h4 {
	font-size: 20px;
	margin: 10px 0;
}

@media (max-width: 767px) {
	h1 {
		font-size: 24px;
	}

	h2 {
		font-size: 21px;
	}

	h3 {
		font-size: 20px;
	}

	h4 {
		font-size: 18px;
	}
}

hr {
	box-sizing: content-box;
	height: 0;
	margin: 20px 0;
	border: 0;
	border-top: 1px solid #eee;
}

table {
	width: 100%;
	border-collapse: collapse;
	border-spacing: 0;
	background-color: transparent;
}

th {
	text-align: left;
}

td,
th {
	padding: 0;
}

ul,
ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

button {
	font: inherit;
	cursor: pointer;
}

iframe {
	max-width: 100%;
	border: 0;
}

/* --------------------------------------------------------------------------
   2. ヘッダー（旧 .siteHeader / headfix 相当）
      position: fixed で固定し、ヘッダーの高さ分の余白を main.js が
      .site-content の padding-top に設定する（旧 _header_fixed.js と同方式）。
      ※ sticky は html/body の overflow-x: hidden と併用できないため使わない。
   -------------------------------------------------------------------------- */
.site-header {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 1000;
	width: 100%;
	background-color: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* JS 無効時の保険（PC 時のおおよそのヘッダー高） */
.site-content {
	padding-top: var(--header-h);
}

.admin-bar .site-header {
	top: 32px;
}

@media (max-width: 782px) {
	.admin-bar .site-header {
		top: 46px;
	}
}

.site-header__inner {
	position: relative;
	max-width: 1170px;
	margin: 0 auto;
	padding: 10px 15px;
}

@media (min-width: 992px) {
	.site-header__inner {
		padding-top: 20px;
		padding-bottom: 18px;
	}
}

/* 上段: ロゴ（左） + 無料相談/電話（右・.headerflex は custom.css） */
.site-header__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.site-logo {
	margin: 0;
	font-size: 32px;
	line-height: 1.5em;
	font-weight: 700;
}

.site-logo a {
	display: inline-block;
}

.site-logo img {
	max-height: 40px;
	width: auto;
}

/* 下段: グローバルナビ（PC は右寄せ横並び） */
.global-nav__list a {
	display: block;
	overflow: hidden;
	text-decoration: none;
	color: #333;
}

@media (min-width: 992px) {
	.global-nav__list {
		display: flex;
		justify-content: flex-end;
		flex-wrap: wrap;
	}

	.global-nav__list > li {
		position: relative;
	}

	.global-nav__list > li > a {
		position: relative;
		padding: 10px 1em;
		font-size: 12px;
		text-align: center;
	}

	/* キーカラーの下線（ホバー / 現在ページ） */
	.global-nav__list > li > a::after {
		content: "";
		position: absolute;
		left: 0;
		bottom: 0;
		display: block;
		width: 0;
		border-bottom: 1px solid var(--color-key);
		transition: width 0.2s;
	}

	.global-nav__list > li > a:hover::after,
	.global-nav__list > li.current-menu-item > a::after,
	.global-nav__list > li.current-menu-parent > a::after,
	.global-nav__list > li.current-menu-ancestor > a::after,
	.global-nav__list > li.current_page_parent > a::after,
	.global-nav__list > li.current_page_ancestor > a::after {
		width: 100%;
	}

	/* ドロップダウン */
	.global-nav__list > li > .sub-menu {
		display: none;
		position: absolute;
		z-index: 1000;
		left: 50%;
		width: 240px;
		margin-left: -120px;
		box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
	}

	.global-nav__list > li:hover > .sub-menu,
	.global-nav__list > li:focus-within > .sub-menu {
		display: block;
	}

	.global-nav__list .sub-menu a {
		padding: 10px 1em 10px 1.5em;
		font-size: 13px;
		background-color: #fff;
	}

	.global-nav__list .sub-menu a:hover {
		background-color: #f5f5f5;
	}
}

/* ハンバーガーボタン（旧 VK Mobile Nav の MENU ボタン相当） */
.menu-toggle {
	display: none;
	position: absolute;
	right: 15px;
	top: 50%;
	transform: translateY(-50%);
	align-items: center;
	gap: 6px;
	padding: 6px 10px;
	border: 1px solid #ccc;
	border-radius: 3px;
	background: #fff;
	font-size: 11px;
	line-height: 1;
	color: #333;
}

.menu-toggle__bars {
	position: relative;
	display: inline-block;
	width: 18px;
	height: 14px;
}

.menu-toggle__bars::before,
.menu-toggle__bars::after,
.menu-toggle__bars span {
	content: "";
	position: absolute;
	left: 0;
	width: 100%;
	height: 2px;
	background: #333;
	transition: transform 0.2s, opacity 0.2s;
}

.menu-toggle__bars::before {
	top: 0;
}

.menu-toggle__bars span {
	top: 6px;
}

.menu-toggle__bars::after {
	bottom: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before {
	transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bars span {
	opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after {
	transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 991px) {
	/* ロゴ中央寄せ。右側の MENU ボタン分の余白を確保 */
	.site-header__top {
		justify-content: center;
		padding: 0 100px;
	}

	.site-logo img {
		margin-top: 6px;
		max-width: 100%;
	}

	.menu-toggle {
		display: inline-flex;
	}
}

@media (max-width: 479px) {
	/* 幅が狭い端末ではアイコンのみ表示（ロゴとの重なり防止） */
	.menu-toggle__label {
		display: none;
	}

	.site-header__top {
		padding: 0 60px;
	}
}

@media (max-width: 991px) {

	.global-nav {
		display: none;
		position: absolute;
		left: 0;
		right: 0;
		top: 100%;
		max-height: calc(100vh - var(--header-h));
		overflow-y: auto;
		background: #fff;
		border-top: 1px solid rgba(0, 0, 0, 0.15);
		box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
	}

	.global-nav.is-open {
		display: block;
	}

	.global-nav__list a {
		padding: 12px 15px;
		border-bottom: 1px solid rgba(0, 0, 0, 0.15);
	}

	.global-nav__list .sub-menu a {
		padding-left: 2em;
		font-size: 14px;
	}

	.global-nav__list a:hover,
	.global-nav__list .current-menu-item > a {
		background-color: #f5f5f5;
	}
}

/* --------------------------------------------------------------------------
   3. コンテンツ（旧 .siteContent > .container > .col-md-12 > .entry-body）
      旧「追加CSS」で .siteContent の上下 padding と .entry-body の下 padding は 0。
      .entry-body の上 padding（1em / 2em）と左右 15px はスキン・Bootstrap の値。
   -------------------------------------------------------------------------- */
.entry-body {
	padding: 1em 15px 0;
}

@media (min-width: 768px) {
	.entry-body {
		padding-top: 2em;
	}
}

/* YouTube 等の iframe（main.js が .embed-wrap で包む） */
.embed-wrap {
	position: relative;
	width: 100%;
	margin: 0 auto;
	aspect-ratio: 16 / 9;
}

.embed-wrap iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

/* 404 */
.error-404 {
	padding: 80px 15px;
	text-align: center;
}

/* --------------------------------------------------------------------------
   4. フォーム（Contact Form 7）
      旧テーマでは lightning.min.js が input に Bootstrap の .form-control /
      .btn.btn-primary を付与し、追加CSS で border-radius:0 にしていた。
      その見た目をクラス無しで再現する。
   -------------------------------------------------------------------------- */
.wpcf7 label {
	display: inline-block;
	max-width: 100%;
	margin-bottom: 5px;
	font-weight: 700;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="email"],
.wpcf7 input[type="url"],
.wpcf7 input[type="number"],
.wpcf7 select,
.wpcf7 textarea {
	display: block;
	width: 100%;
	height: 34px;
	padding: 6px 12px;
	border: 1px solid #ccc;
	border-radius: 0;
	background-color: #fff;
	font-size: 14px;
	line-height: 1.42857143;
	color: #555;
	box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
	transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

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

.wpcf7 input:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus {
	outline: 0;
	border-color: #66afe9;
	box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(102, 175, 233, 0.6);
}

.wpcf7 input[type="submit"],
.wpcf7 input[type="button"] {
	display: inline-block;
	margin: 0 4px 4px 0;
	padding: 6px 12px;
	border: 1px solid var(--color-key-dark);
	border-radius: 4px;
	background-color: var(--color-key);
	color: #fff;
	font-size: 14px;
	line-height: 1.42857143;
	font-weight: 400;
	text-align: center;
	cursor: pointer;
}

.wpcf7 input[type="submit"]:hover,
.wpcf7 input[type="button"]:hover {
	background-color: var(--color-key-dark);
	border-color: var(--color-key);
}

.wpcf7 .wpcf7-list-item {
	margin: 0 1em 0 0;
}

/* --------------------------------------------------------------------------
   5. フッター（旧 footer.siteFooter + .sectionBox + .copySection）
   -------------------------------------------------------------------------- */
.site-footer {
	background-color: #f5f5f5;
	border-top: 3px solid var(--color-key);
}

.footer-nav {
	max-width: 1170px;
	margin: 0 auto;
	padding: 0 15px;
}

.footer-nav ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
}

.footer-nav a {
	display: block;
	padding: 1em;
	font-size: 14px;
}

@media (min-width: 768px) {
	.footer-nav li a {
		padding-top: 0;
		padding-bottom: 0;
		border-left: 1px solid #ccc;
	}

	.footer-nav li:last-child a {
		border-right: 1px solid #ccc;
	}
}

.site-footer__inner {
	max-width: 1170px;
	margin: 0 auto;
	padding: 2em 15px;
}

.copy-section {
	margin: 0;
	padding: 10px 15px;
	width: 100%;
	background-color: #d7d8d8;
	text-align: center;
}
