/* Excelの歩き方 ホーム */

/* Both typefaces are cut down to the characters this page uses (see fonts-OFL.txt for the licence). */
@font-face { font-family: 'Zen Kaku Gothic New'; font-style: normal; font-weight: 500; font-display: swap; src: url(zen-500.woff2) format('woff2'); }
@font-face { font-family: 'Zen Kaku Gothic New'; font-style: normal; font-weight: 700; font-display: swap; src: url(zen-700.woff2) format('woff2'); }
@font-face { font-family: 'Zen Kaku Gothic New'; font-style: normal; font-weight: 900; font-display: swap; src: url(zen-900.woff2) format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url(mono-500.woff2) format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 700; font-display: swap; src: url(mono-700.woff2) format('woff2'); }

/* The JIN:R custom template keeps the content in a centred column. On this page the home fills the width. */
body.xlh-page #mainContent,
body.xlh-page #mainContentInner,
body.xlh-page #jinrArticle,
body.xlh-page #postContent {
	max-width: none;
	margin: 0;
	padding: 0;
}

#xlh {
	position: relative;
	font-family: 'Zen Kaku Gothic New', 'Hiragino Sans', 'Noto Sans JP', system-ui, sans-serif;
	color: #10231a;
	background: #f3f6f1;
	line-height: 1.7;
	font-size: 16px;
	font-weight: 500;
	letter-spacing: normal;
	text-align: left;
}

/* JIN:R sets these on every element, link and image of a page. The home was drawn without them. */
#xlh,
#xlh * { box-sizing: content-box; word-break: normal; }
#xlh button,
#xlh input { box-sizing: border-box; }
#xlh a { text-decoration: underline; transition-duration: 0s; will-change: auto; }
#xlh.xlh a { text-underline-offset: auto; }
#xlh img { max-width: none; }

#xlh.xlh a { color: #0f6b3d; }
/* JIN:R colours a hovered link without a class from its inline styles, which come after this file. */
#xlh.xlh a:not(.xlh-skip):hover { color: #0a4a2a; }
#xlh a:focus-visible,
#xlh button:focus-visible,
#xlh input:focus-visible { outline: 3px solid #10231a; outline-offset: 2px; }
#xlh .xlh-in:focus-visible { outline-offset: -3px; }
#xlh .xlh-on-dark:focus-visible { outline-color: #ffffff; }
#xlh input::placeholder { color: #55645c; }

#xlh .xlh-skip { position: absolute; left: -9999px; top: 8px; background: #10231a; padding: 10px 16px; border-radius: 8px; font-weight: 700; z-index: 5; }
#xlh .xlh-skip:focus { left: 12px; }
#xlh.xlh .xlh-skip,
#xlh.xlh .xlh-skip:hover { color: #ffffff; }
/* a section that a link on the page jumps to takes the focus, without a ring of its own */
#xlh section:focus { outline: none; }

#xlh [data-xlh-if] { display: contents; }
#xlh [data-xlh-if][hidden] { display: none; }

#xlh .xlh-tab { background: transparent; color: #3c4f44; box-shadow: inset 0 -3px 0 transparent; }
#xlh .xlh-tab[aria-pressed="true"] { background: #ffffff; color: #10231a; box-shadow: inset 0 -3px 0 #18a05b; }
#xlh .xlh-tab:hover { text-decoration: underline; }

#xlh .xlh-lift { transition: transform .2s ease; }
#xlh .xlh-lift:hover { transform: translateY(-4px); }
#xlh .xlh-card { box-shadow: 0 0 0 3px transparent; }
#xlh .xlh-card.is-picked { box-shadow: 0 0 0 3px #18a05b; }
#xlh .xlh-row:hover { background: #e9f6ee; box-shadow: inset 0 0 0 2px #18a05b; }

#xlh .xlh-steps-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; align-items: end; }
#xlh .xlh-fig { display: block; }
#xlh.xlh-nomini .xlh-fig { display: none; }
#xlh .xlh-path-fig { aspect-ratio: 2 / 1; }
#xlh .xlh-path-name { font-size: 13px; white-space: nowrap; }
#xlh .xlh-hero-fig { height: clamp(360px, 46vw, 580px); height: clamp(360px, min(46vw, 100svh - 250px), 580px); }
#xlh .xlh-f-a { height: 150px; }
#xlh .xlh-f-b { height: 192px; }
#xlh .xlh-f-c { height: 234px; }
#xlh .xlh-f-d { height: 276px; }
#xlh .xlh-band-fig { height: 290px; }

@media (max-width: 1099px) {
	#xlh .xlh-steps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	#xlh .xlh-f-a { height: 200px; }
	#xlh .xlh-f-b { height: 230px; }
	#xlh .xlh-f-c { height: 260px; }
	#xlh .xlh-f-d { height: 290px; }
}

@media (max-width: 620px) {
	#xlh .xlh-steps-grid { grid-template-columns: minmax(0, 1fr); }
	#xlh .xlh-path-name { font-size: 12px; }
	#xlh .xlh-nav-link { display: none; }
	#xlh .xlh-tab-name { font-size: 12.5px; }
	#xlh .xlh-f-a { height: 170px; }
	#xlh .xlh-f-b { height: 200px; }
	#xlh .xlh-f-c { height: 236px; }
	#xlh .xlh-f-d { height: 276px; }
	#xlh .xlh-band-fig { height: 216px; }
}

@media (max-width: 400px) {
	#xlh .xlh-path-name { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
	#xlh .xlh-lift { transition: none; }
	#xlh .xlh-lift:hover { transform: none; }
}
