/* labten.net static site — Grav g5_helium (preset1) の見た目を再現 */

@font-face {
  font-family: "Lato";
  src: url("fonts/lato-regular-webfont.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Lato";
  src: url("fonts/lato-bold-webfont.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "FontAwesome";
  src: url("fonts/fontawesome-webfont.woff2?v=4.7.0") format("woff2");
  font-weight: normal;
  font-style: normal;
  font-display: block;
}

:root {
  /* config/default/styles.yaml の値 */
  --bg: #ffffff;
  --text: #424753;
  --accent: #4db2b3;
  --link-hover: #424753;
  --nav-bg: #312f38;
  --nav-text: #ffffff;
  --footer-bg: #312f38;
  --footer-text: #ffffff;
  --container: 75rem;
  /* plugins/custom-css の値 */
  --font-ja: -apple-system, BlinkMacSystemFont, "Helvetica Neue", YuGothic, "ヒラギノ角ゴ ProN W3", "Hiragino Kaku Gothic ProN", Arial, "メイリオ", Meiryo, sans-serif;
  --font-title: "Lato", var(--font-ja);
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ja);
  font-size: 1rem;
  line-height: 2;
  letter-spacing: 0.02em;
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--link-hover); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- navigation ---------- */
.site-nav {
  background: var(--nav-bg);
  color: var(--nav-text);
}
.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 100px;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.main-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin: 0;
  padding: 0 0 0 0.5rem;
  list-style: none;
}
.main-menu a {
  display: inline-block;
  color: var(--nav-text);
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.6;
  border-bottom: 2px solid transparent;
}
.main-menu a:hover { border-bottom-color: rgba(255, 255, 255, 0.25); color: var(--nav-text); }
.main-menu a[aria-current="page"] { border-bottom-color: rgba(255, 255, 255, 0.3); }

.social {
  display: flex;
  gap: 1.1rem;
  padding-right: 0.25rem;
}
.social a { color: var(--accent); font-size: 2em; line-height: 1; }
.social a:hover { color: var(--nav-text); }

/* ---------- Font Awesome 4.7 subset ---------- */
.fa {
  display: inline-block;
  font: normal normal normal 14px/1 FontAwesome;
  font-size: inherit;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.fa-twitter::before { content: "\f099"; }
.fa-github::before { content: "\f09b"; }
.fa-shopping-cart::before { content: "\f07a"; }
.fa-chevron-up::before { content: "\f077"; }

/* ---------- main ---------- */
main {
  flex: 1;
  padding: 5.5rem 0 4.5rem;
}
h1, h2, h3 {
  font-family: var(--font-ja);
  font-weight: 400;
  line-height: 1.5;
  color: var(--text);
}
h2 { font-size: 2rem; margin: 2.25rem 0 1.25rem; }
h2:first-child { margin-top: 0; }
p { margin: 0 0 1.25rem; }
ul { margin: 0 0 1.5rem; padding-left: 1.5rem; }
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.875em;
  word-break: break-all;
}
.url { word-break: break-all; }

.logo { text-align: center; margin: 0 0 1.25rem; }
.logo img { width: 200px; height: 200px; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  font-size: 0.875rem;
}
.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 194px;
}
.totop a {
  color: var(--footer-text);
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1rem;
}
.totop a:hover { color: var(--accent); }
.totop .fa { margin-left: 0.35rem; }

/* ---------- responsive ---------- */
@media (max-width: 48rem) {
  main { padding: 3rem 0 3rem; }
  .container { padding-left: 1rem; padding-right: 1rem; }
  .site-nav .container { min-height: 72px; }
  .social { gap: 0.8rem; }
  .social a { font-size: 1.5em; }
  h2 { font-size: 1.6rem; }
  .site-footer .container { min-height: 120px; }
}
