/*
Theme Name: BEGOS INTERNATIONAL
Description: べゴス インターナショナル株式会社 コーポレートサイト用オリジナルテーマ
Author: BEGOS INTERNATIONAL
Version: 1.0.0
Text Domain: begos
*/

/* ==========================================================================
   Reset / base
   ========================================================================== */
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: #fff;
	color: #14110F;
	font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
	-webkit-font-smoothing: antialiased;
}
*, *::before, *::after { box-sizing: border-box; }
a { color: #C8201A; text-decoration: none; }
a:hover { color: #8E1611; }
dl, dd, dt, p, h1, h2, h3, h4, ul, li { margin: 0; padding: 0; }
li { list-style: none; }
img { border: 0; }

.site-wrap { max-width: 100%; overflow-x: hidden; }

.wide-br { display: none; }
@media (min-width: 1250px) {
	.wide-br { display: inline; }
}

/* ==========================================================================
   共通ヘッダー
   ========================================================================== */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: #fff;
}
.site-header__brand {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 20px;
	padding: 22px 32px 18px;
}

.gnav-toggle {
	display: none;
	position: absolute;
	right: 20px;
	top: 50%;
	transform: translateY(-50%);
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 5px;
	width: 40px;
	height: 40px;
	padding: 0;
	background: none;
	border: none;
	cursor: pointer;
}
.gnav-toggle span {
	display: block;
	width: 22px;
	height: 2px;
	background: #14110F;
	transition: transform .3s ease, opacity .3s ease;
}
.gnav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.gnav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.gnav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.site-header__logo-link { display: block; }
.site-header__logo { height: 72px; width: auto; display: block; }
.site-header__name {
	font-size: clamp(14px, 1.7vw, 19px);
	font-weight: 400;
	letter-spacing: 0.28em;
	color: #3A342F;
	text-indent: 0.28em;
	position: relative;
	top: -4px; /* ロゴの「INTERNATIONAL」帯との光学的中央合わせ。必ず維持すること */
}

.gnav {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	background: #FAF9F7;
	border-top: 1px solid #E2DED8;
	font-size: clamp(12px, 1.45vw, 17px);
	font-weight: 400;
	text-align: center;
	white-space: nowrap;
}
.gnav a {
	color: #14110F;
	padding: 19px 6px;
	border-right: 1px solid #E2DED8;
	line-height: 1.4;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform .4s cubic-bezier(.16,1,.3,1), color .4s ease;
}
.gnav a:hover { transform: translateY(-3px); color: #cb5c51; }

/* 会社案内・お問い合わせ: <a> 自体は動かさず内側の <span> だけが浮く */
.gnav a.gnav__item--company,
.gnav a.gnav__item--contact {
	color: #fff;
	padding: 0;
	border-right: none;
	overflow: hidden;
	transition: background-color .4s ease;
}
.gnav a.gnav__item--company:hover,
.gnav a.gnav__item--contact:hover {
	transform: none;
	color: #fff;
}
.gnav a.gnav__item--company { background: #cb5c51; }
.gnav a.gnav__item--company:hover { background: #d9877e; }
.gnav a.gnav__item--contact { background: #d64234; }
.gnav a.gnav__item--contact:hover { background: #e07064; }

.gnav__item-inner {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	padding: 19px 6px;
	box-sizing: border-box;
	text-align: center;
	transition: transform .4s cubic-bezier(.16,1,.3,1);
}
.gnav__item-oneline { display: none; }
.gnav a.gnav__item--company:hover .gnav__item-inner,
.gnav a.gnav__item--contact:hover .gnav__item-inner {
	transform: translateY(-3px);
}

/* 狭い画面: 7列だとラベルが重なるため、ハンバーガーメニューに切り替える */
@media (max-width: 600px) {
	.site-header__brand { padding-right: 68px; justify-content: center; }
	.site-header__name { display: none; }
	.gnav-toggle { display: flex; }
	.gnav {
		display: none;
		grid-template-columns: 1fr;
	}
	.gnav.is-open { display: grid; }
	.gnav a {
		border-right: none;
		border-bottom: 1px solid #E2DED8;
		white-space: normal;
		padding: 16px;
	}
	.gnav a.gnav__item--company,
	.gnav a.gnav__item--contact {
		border-bottom: none;
	}
	.gnav__item-inner { padding: 16px; }
	/* 2段ラベルは、この幅ではスペース区切りの1行表示にして行の高さを揃える */
	.gnav__item-multiline { display: none; }
	.gnav__item-oneline { display: inline; }
}

/* ==========================================================================
   トップページ: FV（ファーストビュー）
   ========================================================================== */
@keyframes heroZoom {
	from { transform: scale(1); }
	to { transform: scale(1.08); }
}
.hero {
	position: relative;
	height: min(62vh, 600px);
	min-height: 400px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #0C0A09;
	overflow: hidden;
}
.hero__bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0.55;
	animation: heroZoom 22s ease-out forwards;
}
.hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(12,10,9,0.55) 0%, rgba(12,10,9,0.25) 50%, rgba(12,10,9,0.7) 100%);
}
.hero__content { position: relative; text-align: center; padding: 0 32px; }
.hero__eyebrow {
	font-family: Oswald, sans-serif;
	font-size: clamp(11px, 1.2vw, 14px);
	letter-spacing: 0.36em;
	color: #fff;
	opacity: 0.85;
	margin-bottom: 22px;
}
.hero__title {
	color: #fff;
	font-size: clamp(30px, 5vw, 62px);
	font-weight: 900;
	line-height: 1.35;
	letter-spacing: 0.06em;
	text-wrap: balance;
}
.hero__lead {
	color: #fff;
	opacity: 0.85;
	font-size: clamp(13px, 1.4vw, 16px);
	letter-spacing: 0.14em;
	margin-top: 24px;
}

/* ==========================================================================
   トップページ: ステートメント帯
   ========================================================================== */
.statement { background: #cb5c51; color: #fff; }
.statement__inner {
	max-width: 1180px;
	margin: 0 auto;
	padding: 40px 32px;
	font-size: clamp(13px, 1.32vw, 16.5px);
	line-height: 2.1;
	font-weight: 400;
	text-align: justify;
	text-justify: inter-character;
	text-align-last: center;
}

/* ==========================================================================
   トップページ: 新着情報
   ========================================================================== */
.news-section { padding: 64px 32px 0; }
.news-section__inner { max-width: 900px; margin: 0 auto; }
.news-heading { text-align: center; margin-bottom: 32px; }
.news-heading__title { font-size: clamp(20px, 2vw, 26px); font-weight: 700; letter-spacing: 0.24em; }
.news-heading__en {
	font-family: Oswald, sans-serif;
	font-size: 12px;
	letter-spacing: 0.22em;
	color: #C8201A;
	margin-top: 8px;
}
.news-list { border-top: 1px solid #E2DED8; min-width: 0; }
.news-item {
	display: grid;
	grid-template-columns: 104px 92px 1fr;
	gap: 18px;
	align-items: baseline;
	padding: 22px 4px;
	border-bottom: 1px solid #E2DED8;
}
.news-item__date { font-family: Oswald, sans-serif; font-size: 14px; color: #8A837C; }
.news-item__cat {
	font-size: 11px;
	background: #F1EDE7;
	color: #4A443F;
	padding: 5px 0;
	text-align: center;
	letter-spacing: 0.06em;
}
.news-item__text { font-size: 15px; line-height: 1.7; }

/* 狭い画面: 日付・カテゴリーを上段、本文を下段の2段組みにする */
@media (max-width: 600px) {
	.news-item {
		display: flex;
		flex-wrap: wrap;
		column-gap: 12px;
		row-gap: 8px;
		align-items: center;
	}
	.news-item__date,
	.news-item__cat {
		flex: none;
	}
	.news-item__cat { padding: 5px 12px; }
	.news-item__text {
		flex: 1 0 100%;
		min-width: 0;
	}
}

/* ==========================================================================
   トップページ: 2本柱カード（デジタル酪農マガジン／酪農の学校ONLINE）
   ========================================================================== */
.pillars { max-width: 1180px; margin: 0 auto; padding: 88px 32px 0; }
.pillars__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 56px; }

.pillar-card__box {
	display: block;
	border: 1px solid #E2DED8;
	background: #fff;
}
.pillar-card__box--link:hover { border-color: #C8201A; }

.pillar-card__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #EFEBE5; }
.pillar-card__media img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.pillar-card__media--contain { background: #fff; }
.pillar-card__media--contain img { object-fit: contain; object-position: center; }

.pillar-card__meta {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 16px;
	border-top: 1px solid #E2DED8;
}
.pillar-card__logo { height: 24px; width: auto; display: block; }
.pillar-card__info { min-width: 0; }
.pillar-card__name {
	display: block;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: #14110F;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.pillar-card__domain {
	display: block;
	font-family: ui-monospace, monospace;
	font-size: 11px;
	color: #8A837C;
	margin-top: 4px;
}
.pillar-card__badge {
	margin-left: auto;
	flex: none;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	padding: 9px 14px;
}
.pillar-card__badge--visit { background: #C8201A; color: #fff; }
.pillar-card__badge--status { background: #F1EDE7; color: #4A443F; }

.pillar-card__body { border-top: 3px solid #14110F; margin-top: 26px; padding-top: 22px; }
.pillar-card__tag {
	font-family: Oswald, sans-serif;
	font-size: 11px;
	letter-spacing: 0.28em;
	color: #C8201A;
	margin-bottom: 10px;
}
.pillar-card__title { font-size: 21px; font-weight: 900; letter-spacing: 0.04em; line-height: 1.5; }
.pillar-card__lead { font-size: 14px; line-height: 1.95; color: #4A443F; margin-top: 14px; }
.pillar-card__list { margin-top: 24px; display: flex; flex-direction: column; gap: 18px; }
.pillar-card__list-title { font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.pillar-card__list-text { font-size: 13.5px; line-height: 1.9; color: #4A443F; }

/* ==========================================================================
   トップページ: ポートフォリオ帯
   ========================================================================== */
.portfolio-band {
	margin-top: 88px;
	background: #cb5c51;
	color: #fff;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
	align-items: stretch;
}
.portfolio-band__text {
	padding: 88px 32px;
	/* この padding-left の式で、テキスト左端が他セクション（max-width:1180px + 32px）と揃う。必ず維持すること */
	padding-left: max(32px, calc((100vw - 1180px) / 2 + 32px));
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	min-width: 0;
}
.portfolio-band__eyebrow {
	font-family: Oswald, sans-serif;
	font-size: 11px;
	letter-spacing: 0.3em;
	opacity: 0.8;
	margin-bottom: 16px;
}
.portfolio-band__title { font-size: clamp(24px, 2.6vw, 34px); font-weight: 900; letter-spacing: 0.1em; line-height: 1.5; }
.portfolio-band__lead { font-size: 14.5px; line-height: 2; margin-top: 20px; opacity: 0.96; max-width: 460px; }
.portfolio-band__btn {
	margin-top: 32px;
	display: inline-block;
	border: 1px solid rgba(255,255,255,0.7);
	color: #fff;
	padding: 14px 28px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.1em;
}
.portfolio-band__btn:hover { background: #fff; color: #cb5c51; }
.portfolio-band__media { min-width: 0; position: relative; min-height: 340px; }
/* 画面幅が狭まったときに上下へ赤い帯が出ないよう object-fit:cover を維持すること */
.portfolio-band__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

/* ==========================================================================
   共通フッター
   ========================================================================== */
.site-footer { background: #14110F; color: #fff; }
body:not(.front-page) .site-footer { margin-top: 72px; }

.site-footer__top {
	max-width: 1180px;
	margin: 0 auto;
	padding: 44px 32px;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 48px;
	align-items: start;
}
.site-footer__brand { display: flex; align-items: center; gap: 16px; }
.site-footer__logo { height: 44px; width: auto; display: block; flex: none; }
.site-footer__name {
	font-size: 13px;
	color: #fff;
	font-weight: 400;
	letter-spacing: 0.16em;
	line-height: 1.5;
	position: relative;
	top: -3px;
}
.site-footer__address { font-size: 12.5px; line-height: 1.9; margin-top: 14px; }
.site-footer__actions { display: flex; flex-wrap: wrap; align-items: stretch; gap: 14px; margin-top: 18px; }
.site-footer__mail {
	display: flex;
	align-items: center;
	gap: 10px;
	border: 1px solid rgba(255,255,255,0.55);
	color: #fff;
	padding: 0 20px;
	min-height: 42px;
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: 0.08em;
}
/* 白背景にするとアイコンが消えるので不可 */
.site-footer__mail:hover { background: rgba(255,255,255,0.14); border-color: #fff; color: #fff; }
.site-footer__mail img { width: 20px; height: 20px; object-fit: contain; display: block; flex: none; }
.site-footer__social { width: 32px; min-height: 42px; display: flex; align-items: center; justify-content: center; }
.site-footer__social:hover { opacity: 0.65; }
.site-footer__social img { width: 23px; height: 23px; object-fit: contain; display: block; }
.site-footer__social--fb { margin-left: -2px; }

.site-footer__nav {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px 24px;
	font-size: 13px;
	align-self: center;
}
.site-footer__nav a { color: #fff; display: flex; align-items: center; gap: 10px; }
.site-footer__nav-dash { width: 14px; height: 1px; background: rgba(255,255,255,0.7); display: block; flex: none; }

.site-footer__bottom { border-top: 1px solid rgba(255,255,255,0.35); }
.site-footer__bottom-inner {
	max-width: 1180px;
	margin: 0 auto;
	padding: 16px 32px;
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	justify-content: space-between;
	font-size: 12px;
}
.site-footer__copy { font-family: Oswald, sans-serif; letter-spacing: 0.1em; color: rgba(255,255,255,0.8); }

/* ==========================================================================
   下層ページ共通: ページヘッダー／パンくず
   ========================================================================== */
.page-hero { background: #14110F; color: #fff; }
.page-hero__inner { max-width: 1180px; margin: 0 auto; padding: 64px 32px; text-align: center; }
.page-hero__title { font-size: clamp(24px, 2.6vw, 34px); font-weight: 700; letter-spacing: 0.24em; }
.page-hero__en { font-family: Oswald, sans-serif; font-size: 12px; letter-spacing: 0.24em; color: #E8635C; margin-top: 12px; }

.breadcrumb { border-bottom: 1px solid #E2DED8; background: #FAF9F7; }
.breadcrumb__inner {
	max-width: 1180px;
	margin: 0 auto;
	padding: 14px 32px;
	font-size: 12px;
	color: #6B6560;
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}
.breadcrumb__inner a { color: #6B6560; }

/* 見出しブロック（左: 見出し／英字ラベル）の共通スタイル。会社案内・ポートフォリオで使用 */
.section-head__title { font-size: clamp(20px, 2vw, 26px); font-weight: 700; letter-spacing: 0.2em; }
.section-head__en { font-family: Oswald, sans-serif; font-size: 11px; letter-spacing: 0.24em; color: #C8201A; margin-top: 10px; }
.section-head--center { text-align: center; margin-bottom: 14px; }
.section-head--center-lg { margin-bottom: 40px; }
.section-head__en--brand { color: #cb5c51; }

/* ==========================================================================
   会社案内
   ========================================================================== */
.company-greeting { max-width: 1180px; margin: 0 auto; padding: 80px 32px 0; }
.company-greeting__grid { display: grid; grid-template-columns: minmax(200px, 300px) 1fr; gap: 56px; }
.company-greeting__body { min-width: 0; }
.company-greeting__lead {
	font-family: 'Noto Serif JP', serif;
	font-size: clamp(21px, 2.3vw, 30px);
	font-weight: 600;
	line-height: 1.65;
	letter-spacing: 0.02em;
	margin-bottom: 34px;
	text-wrap: balance;
}
.company-greeting__paragraphs {
	display: flex;
	flex-direction: column;
	gap: 24px;
	font-family: 'Noto Serif JP', serif;
	font-size: 15px;
	line-height: 2.15;
	color: #3A342F;
	text-wrap: pretty;
}
.company-greeting__sign { margin-top: 34px; font-size: 14px; line-height: 2; color: #6B6560; }
.company-greeting__sign-name { color: #6B6560; font-size: 16px; }

.company-profile { max-width: 1180px; margin: 0 auto; padding: 80px 32px 0; }
.company-profile__grid { display: grid; grid-template-columns: minmax(200px, 300px) 1fr; gap: 56px; }
.company-profile__dl {
	display: grid;
	grid-template-columns: minmax(120px, 180px) 1fr;
	border-top: 1px solid #E2DED8;
	min-width: 0;
}
.company-profile__dl dt { padding: 22px 4px; font-size: 14px; font-weight: 700; border-bottom: 1px solid #E2DED8; }
.company-profile__dl dd { padding: 22px 4px; font-size: 15px; line-height: 1.85; border-bottom: 1px solid #E2DED8; }
.company-profile__list { display: flex; flex-direction: column; gap: 8px; }

/* タブレット以下: 見出しブロックと本文を横並びにせず縦に積む */
@media (max-width: 880px) {
	.company-greeting__grid,
	.company-profile__grid {
		grid-template-columns: 1fr;
	}
	.company-profile__dl {
		grid-template-columns: 1fr;
	}
	.company-profile__dl dt {
		border-bottom: none;
		padding-bottom: 6px;
	}
	.company-profile__dl dd {
		padding-top: 0;
	}
}

/* ==========================================================================
   取扱商品・各種料金
   ========================================================================== */
.products-goods { max-width: 1180px; margin: 0 auto; padding: 72px 32px 0; }
.products-goods__lead { text-align: center; font-size: 13.5px; line-height: 1.95; color: #4A443F; margin-bottom: 40px; }
.products-goods__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 26px; }
.goods-card { display: block; border: 1px solid #E2DED8; background: #fff; color: #14110F; }
.goods-card:hover { border-color: #cb5c51; color: #cb5c51; }
.goods-card__ph {
	aspect-ratio: 1 / 1;
	background: repeating-linear-gradient(45deg, #EFEBE5 0 10px, #E5E0D9 10px 20px);
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: ui-monospace, monospace;
	font-size: 12px;
	color: #8A837C;
}
.goods-card__body { padding: 18px 20px 20px; border-top: 1px solid #E2DED8; }
.goods-card__title { font-size: 15px; font-weight: 700; letter-spacing: 0.04em; line-height: 1.5; }
.goods-card__desc { font-size: 12.5px; color: #6B6560; line-height: 1.8; margin-top: 6px; }
.goods-card__link { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; margin-top: 14px; }
.products-goods__note { margin-top: 26px; font-size: 12px; color: #8A837C; line-height: 1.9; }

.products-price { max-width: 1180px; margin: 0 auto; padding: 72px 32px 0; }
.products-price__placeholder { border: 1px dashed #C4BFB9; background: #FAF9F7; padding: 64px 32px; text-align: center; }
.products-price__placeholder-title { font-size: 14px; font-weight: 700; letter-spacing: 0.06em; color: #4A443F; }
.products-price__placeholder-note { font-size: 12.5px; color: #8A837C; line-height: 1.9; margin-top: 12px; }

/* ==========================================================================
   ポートフォリオ
   ========================================================================== */
.portfolio-intro { max-width: 1180px; margin: 0 auto; padding: 80px 32px 0; }
.portfolio-intro__grid { display: grid; grid-template-columns: minmax(200px, 340px) 1fr; gap: 56px; align-items: start; }
.portfolio-intro__lead { font-size: 13.5px; line-height: 1.95; color: #4A443F; margin-top: 20px; }
.portfolio-intro__btn {
	display: inline-block;
	margin-top: 22px;
	background: #d64234;
	color: #fff;
	padding: 14px 26px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.08em;
}
.portfolio-intro__btn:hover { background: #b8382c; color: #fff; }
.portfolio-intro__media { min-width: 0; }
.portfolio-intro__media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }

.portfolio-works { max-width: 1180px; margin: 0 auto; padding: 64px 32px 0; }
.portfolio-works__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; }
.work-card__ph {
	aspect-ratio: 4 / 3;
	background: repeating-linear-gradient(45deg, #EFEBE5 0 10px, #E5E0D9 10px 20px);
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: ui-monospace, monospace;
	font-size: 12px;
	color: #8A837C;
}
.work-card__title { font-size: 15px; font-weight: 700; margin-top: 16px; }
.work-card__desc { font-size: 13px; color: #6B6560; line-height: 1.8; margin-top: 6px; }

/* ==========================================================================
   汎用ページ（page.php フォールバック）
   ========================================================================== */
.generic-page { max-width: 900px; margin: 0 auto; padding: 64px 32px 88px; }
.generic-page h1 { font-size: clamp(24px, 2.6vw, 32px); font-weight: 700; letter-spacing: 0.1em; margin-bottom: 32px; }
.generic-page .entry-content { font-size: 15px; line-height: 2; color: #3A342F; }
.generic-page .entry-content p { margin-bottom: 1.6em; }

/* ==========================================================================
   準備中ページ（取扱商品・各種料金／ポートフォリオ）
   ========================================================================== */
.coming-soon {
	min-height: 52vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 120px 32px;
	text-align: center;
}
.coming-soon__label {
	font-family: Oswald, sans-serif;
	font-size: clamp(32px, 5vw, 56px);
	font-weight: 600;
	letter-spacing: 0.14em;
	color: #4A443F;
}

/* ==========================================================================
   印刷
   ========================================================================== */
@media print {
	@page { size: A4; margin: 10mm; }
	html, body { background: #fff !important; }
	.site-header { position: static !important; }
	section, article, footer, dl, li { break-inside: avoid; }
	a { text-decoration: none !important; }
}
