/* カーボンマニアのトップ /carbrella/ 中野さんの案D（10/30・monozku/projects#388）。
 * 数値の出どころは Drive 20261030_カーボンマニア案D_2_数値表.md。このページの .cm-d の中だけに効く（商品ページの carbrella.css は変えない） */
@font-face { font-family: "CM Jost"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/carbrella/cm-jost-400.woff2") format("woff2"); }
@font-face { font-family: "CM Mincho"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/carbrella/cm-mincho-500.woff2?v=2") format("woff2"); }
.cm-d {
	--d-dark: #0f0f0f; --d-on-dark: #f2f2f2; --d-on-dark-soft: #cfcfcf; --d-on-dark-sub: #a6a6a6;
	--d-light1: #e6e6e6; --d-light2: #f2f2f2; --d-sub: #444444; --d-rule: #bfbfbf; --d-rule-dark: #333333;
	--d-jost: "CM Jost", "Helvetica Neue", Arial, sans-serif;
	--d-mincho: "CM Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
	--d-sans: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
	--d-twill: repeating-linear-gradient(45deg, rgba(255,255,255,.06) 0 6px, transparent 6px 12px), repeating-linear-gradient(-45deg, rgba(0,0,0,.5) 0 6px, transparent 6px 12px), #1b1b1b;
	position: relative;
	overflow-x: clip;
	background: var(--d-dark);
	color: var(--d-on-dark);
	font: 400 14px/2.4 var(--d-sans);
	letter-spacing: .06em;
	-webkit-font-smoothing: antialiased;
}
body.is-carbrella .cm-d a { color: inherit; text-decoration: none; }
body.is-carbrella .cm-d a:hover { color: inherit; opacity: .7; }
.cm-d img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cm-d h2 { display: inline-block; margin: 0; padding-bottom: 8px; border-bottom: 1px solid currentColor; color: inherit; font: 400 22px/1.4 var(--d-jost); letter-spacing: .12em; }

/* 0 ヘッダー */
.cm-d .head { position: absolute; z-index: 5; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; padding: 24px clamp(16px, 4vw, 48px); }
.cm-d .box { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 1px solid var(--d-on-dark); background: var(--d-dark); color: var(--d-on-dark); font: 400 16px/1 var(--d-jost); letter-spacing: .08em; }
.cm-d .menu { position: relative; }
.cm-d .menu summary { list-style: none; cursor: pointer; flex-direction: column; gap: 5px; }
.cm-d .menu summary::-webkit-details-marker { display: none; }
.cm-d .menu summary i { display: block; width: 20px; height: 1px; background: var(--d-on-dark); }
.cm-d .menu nav { position: absolute; right: 0; top: 47px; min-width: 200px; padding: 12px 24px; border: 1px solid var(--d-on-dark); background: var(--d-dark); }
.cm-d .menu nav a { display: block; font: 400 14px/2.6 var(--d-jost); letter-spacing: .1em; white-space: nowrap; }

/* 1 1枚目 */
.cm-d .hero { position: relative; display: grid; grid-template-columns: 1fr 1fr; min-height: 720px; }
.cm-d .hero figure { margin: 0; min-height: 0; min-width: 0; }
.cm-d .hero figure:first-child img { filter: brightness(.5); } /* 灰色の床の写真だと反転した文字が沈むので暗くする */
.cm-d .hero-text { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: #fff; mix-blend-mode: difference; pointer-events: none; }
.cm-d .hero h1 { margin: 0; color: inherit; font: 400 clamp(56px, 11vw, 160px)/.95 var(--d-jost); letter-spacing: .08em; }
.cm-d .hero .by { margin: 24px 0 0; font: 400 clamp(12px, 1.4vw, 18px)/1.4 var(--d-jost); letter-spacing: .2em; }
.cm-d .hero .tag { position: absolute; left: 0; right: 0; bottom: 48px; margin: 0; font: 500 clamp(16px, 1.8vw, 22px)/1.5 var(--d-mincho); letter-spacing: .12em; }

/* 2 About */
.cm-d .about { display: grid; grid-template-columns: clamp(24px, 8vw, 120px) 1fr clamp(24px, 8vw, 120px); background: var(--d-dark); }
.cm-d .about .band { background: var(--d-twill); }
.cm-d .about-in { min-width: 0; padding: clamp(80px, 10vw, 140px) 16px; text-align: center; }
.cm-d .about-in > * + * { margin-top: 48px; }
.cm-d .about p { margin: 0; color: var(--d-on-dark-soft); word-break: auto-phrase; text-wrap: balance; }
.cm-d .about p + p { margin-top: 1.6em; }
.cm-d .about .lead { margin-top: 48px; color: var(--d-on-dark); font: 500 clamp(18px, 2.2vw, 26px)/1.9 var(--d-mincho); letter-spacing: .1em; }
.cm-d .about .end { margin-top: 48px; color: var(--d-on-dark); font: 500 clamp(16px, 1.8vw, 22px)/1.7 var(--d-mincho); letter-spacing: .12em; }

/* 3 写真の帯 */
.cm-d .strip { display: grid; grid-template-columns: repeat(5, 1fr); height: clamp(140px, 18vw, 240px); }
.cm-d .strip figure { margin: 0; min-width: 0; overflow: hidden; }
.cm-d .strip .bw img { filter: grayscale(1); }

/* 4 Products の見出し */
.cm-d .prod-head { padding: clamp(64px, 8vw, 112px) 16px; background: var(--d-light1); color: var(--d-dark); text-align: center; }

/* 5 商品タイル */
.cm-d .tiles { display: grid; grid-template-columns: 1fr 1fr; }
.cm-d .tile { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: #262626; }
body.is-carbrella .cm-d a.tile { color: #fff; }
.cm-d .tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 55%, rgba(0,0,0,.6)); }
.cm-d .tile div { position: absolute; z-index: 1; left: 28px; right: 28px; bottom: 28px; }
.cm-d .tile small { display: block; font: 400 12px/1.6 var(--d-jost); letter-spacing: .2em; }
.cm-d .tile b { display: block; font: 500 22px/1.5 var(--d-mincho); letter-spacing: 0; }

/* 6 Information */
.cm-d .info { display: flex; flex-direction: column; align-items: center; gap: 40px; padding: clamp(64px, 8vw, 112px) clamp(16px, 8vw, 160px); background: var(--d-light2); color: var(--d-dark); }
.cm-d .news { width: 100%; max-width: 880px; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--d-rule); }
.cm-d .news li { border-bottom: 1px solid var(--d-rule); }
.cm-d .news a { display: flex; flex-wrap: wrap; gap: 4px 32px; padding: 22px 0; font-size: 15px; line-height: 1.8; letter-spacing: 0; }
.cm-d .news time { font: 400 14px/1.9 var(--d-jost); letter-spacing: .08em; color: var(--d-sub); }
.cm-d .btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.cm-d .btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 8px 32px; border: 1px solid var(--d-dark); font-size: 14px; line-height: 1.6; letter-spacing: .08em; text-align: center; word-break: auto-phrase; text-wrap: balance; }
body.is-carbrella .cm-d a.btn.fill { background: var(--d-dark); color: var(--d-on-dark); }

/* 7 大ロゴの帯 */
.cm-d .big { overflow: hidden; padding: clamp(40px, 5vw, 72px) 0; background: #fff; color: var(--d-dark); white-space: nowrap; }
.cm-d .big div { margin-left: -.06em; font: 400 clamp(96px, 17vw, 240px)/1 var(--d-jost); letter-spacing: .08em; }
.cm-d .big p { margin: 8px 0 0 -.4em; font: 400 clamp(24px, 3.6vw, 52px)/1.3 var(--d-jost); letter-spacing: .14em; }
.cm-d .sp { display: none; }

/* 8 Company（フッターを兼ねる） */
.cm-d .company { display: grid; grid-template-columns: 1fr 1fr; background: var(--d-dark); }
.cm-d .co-photo { display: flex; align-items: center; justify-content: center; min-height: 420px; background: #262626; color: var(--d-on-dark-sub); font-size: 12px; }
.cm-d .co-text { display: flex; flex-direction: column; gap: 32px; align-items: flex-start; min-width: 0; padding: clamp(48px, 6vw, 88px) clamp(16px, 5vw, 64px); }
.cm-d .co-text dl { display: grid; grid-template-columns: 96px 1fr; gap: 4px 16px; margin: 0; line-height: 1.9; }
.cm-d .co-text dt { color: var(--d-on-dark-sub); font: 400 14px/1.9 var(--d-jost); letter-spacing: .1em; }
.cm-d .co-text dd { margin: 0; }
.cm-d .co-menu { display: flex; flex-wrap: wrap; gap: 8px 24px; width: 100%; padding-top: 24px; border-top: 1px solid var(--d-rule-dark); font-size: 12px; line-height: 1.8; }

@media (max-width: 767px) {
	.cm-d .hero { grid-template-columns: 1fr; grid-template-rows: 360px 360px; min-height: 0; }
	.cm-d .hero .right img { object-position: 0% 50%; }
	/* スマホは大ロゴを2行にして、文字が切れないように幅へ収める */
	.cm-d .sp { display: inline; }
	.cm-d .big { padding-left: 16px; padding-right: 16px; }
	.cm-d .big div { margin-left: 0; font-size: 20vw; }
	.cm-d .big p { margin: 12px 0 0; font-size: 4.4vw; }
	.cm-d .about p br { display: none; }
	.cm-d .about .lead { font-size: 17px; letter-spacing: .06em; }
	.cm-d .tiles { grid-template-columns: 1fr; }
	.cm-d .company { grid-template-columns: 1fr; }
	.cm-d .co-photo { min-height: 240px; }
	.cm-d .btns { flex-direction: column; align-items: stretch; width: 100%; }
}

/* 中野さんの直し1回目（11/04・#388）: 三本線メニューの中身と Company の地図 */
.cm-d .menu nav { min-width: 260px; max-width: calc(100vw - 32px); padding: 48px 28px 20px; border-radius: 0; background: #0f0f0f; color: #f2f2f2; }
.cm-d .menu nav ul { list-style: none; margin: 0; padding: 0; }
.cm-d .menu nav .menu-group + .menu-group { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--d-rule-dark, #333); }
.cm-d .menu nav a { color: #f2f2f2; text-decoration: none; }
.cm-d .menu nav a:hover, .cm-d .menu nav a:focus-visible { opacity: .7; }
.cm-d .menu .menu-close { position: absolute; top: 8px; right: 8px; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 0; background: transparent; color: #f2f2f2; font: 300 24px/1 var(--d-jost); cursor: pointer; }
.cm-d .menu[open] nav { animation: cm-menu-in .18s ease-out; }
@keyframes cm-menu-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .cm-d .menu[open] nav { animation: none; } }
.cm-d .co-map { padding: 0; }
.cm-d .co-map iframe { display: block; width: 100%; height: 100%; min-height: 420px; border: 0; filter: grayscale(1) contrast(.95); }
@media (max-width: 767px) {
	.cm-d .co-map iframe { min-height: 320px; }
}

/* 中野さんの直し1回目・追加2（11/04・#388）
 * #5 1枚目と About の間の Makuake ボタン（終了後に外す部品。外しても FV のすぐ下に About が来るよう、余白はこの塊の中だけに持つ） */
.cm-d .fv-makuake { display: flex; justify-content: center; padding: 40px 16px; background: var(--d-dark); }
body.is-carbrella .cm-d .fv-makuake a.btn.fill { min-height: 48px; border: 1px solid var(--d-on-dark); border-radius: 0; background: var(--d-on-dark); color: var(--d-dark); }
/* #6 Company の下のメニューの下に Instagram・LINE・X（モノトーン・1つ 44px 以上） */
.cm-d .co-sns { display: flex; gap: 8px; margin: -16px 0 0 -10px; padding: 0; list-style: none; }
.cm-d .co-sns a { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; color: var(--d-on-dark); }
/* #9 写真の帯の1枚目（カーブの持ち手）を右へ寄せて、持ち手が切れないように */
.cm-d .strip figure:first-child img { object-position: 85% 50%; }
@media (max-width: 767px) {
	.cm-d .fv-makuake .btn { width: 100%; max-width: 360px; }
}
