/* stamp-services.com: one stylesheet for every page.
   The look follows the WordPress site (theme "Lightning" by Vektor, as it stood on 2026-11-18): a white header with
   the site name on the left and the menu on the right, a full-width picture carousel and three ringed icons on the
   home page, a blue title band and a breadcrumb on every other page, text in the left two-thirds of the page, and a
   light grey footer under a blue rule. The font list is the theme's: Meiryo on Windows, Hiragino on a Mac, and the
   system's sans-serif elsewhere, so nothing loads from other hosts.
   build.py adds ?v=<hash> to this file's address, so a changed stylesheet is never served from cache. */

:root {
  --blue: #248de2;        /* the theme's key color: title band, icon rings, footer rule, button hover */
  --blue-line: #2e6da4;   /* the line under the current menu item */
  --blue-link: #1a6fb8;   /* the key color, darkened so links on white pass WCAG AA */
  --text: #212529;
  --heading: #333;
  --muted: #666;
  --footer-text: #464646;
  --footer-bg: #f9f9f9;
  --line: rgba(0, 0, 0, 0.05);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "メイリオ", Meiryo, "Hiragino Kaku Gothic Pro", "ヒラギノ角ゴ Pro W3", "Hiragino Sans", "Noto Sans JP", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: #fff;
}
img { max-width: 100%; height: auto; }
a { color: var(--blue-link); }
a:hover { color: var(--blue); }
h1, h2, h3 { font-weight: 500; color: var(--heading); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.skip { position: absolute; left: -9999px; top: 0; z-index: 10; background: #fff; padding: 8px 12px; }
.skip:focus { left: 8px; top: 8px; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 15px; }

/* Header */
.site-header { background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); position: relative; z-index: 2; }
.site-header .container {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  padding-top: 16px; padding-bottom: 14px; min-height: 94px;
}
.site-title {
  font-size: 32px; line-height: 48px; padding: 5px 0;
  color: var(--text); text-decoration: none;
}
.site-title:hover { color: var(--text); }
.site-nav { display: flex; flex-wrap: wrap; }
.site-nav a {
  position: relative; display: block; padding: 14px 12px;
  font-size: 14px; font-weight: bold; line-height: 1.4; color: var(--heading); text-decoration: none;
}
/* The theme's line under a menu item: full width under the current page, growing in from the left on hover. */
.site-nav a::before {
  content: ""; position: absolute; left: 0; bottom: 0; width: 0;
  border-bottom: 1px solid var(--blue-line); transition: width 0.3s ease-out;
}
.site-nav a:hover::before, .site-nav a[aria-current="page"]::before { width: 100%; }
@media (max-width: 991px) {
  .site-header .container { flex-direction: column; justify-content: center; text-align: center; }
  .site-nav { justify-content: center; }
}
@media (max-width: 575px) {
  .site-title { font-size: 26px; line-height: 1.4; }
  .site-nav a { padding: 10px 10px; }
}

/* Title band and breadcrumb (every page but the home page) */
.page-header { background: var(--blue); color: #fff; text-align: center; }
.page-header-title { margin: 0; padding: 33.6px 0; font-size: 28px; line-height: 1.1; color: #fff; }
.breadcrumb { border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.breadcrumb ol { list-style: none; margin: 0; padding: 9px 0; display: flex; flex-wrap: wrap; }
.breadcrumb li + li::before { content: "/"; padding: 0 6px; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--text); }
.breadcrumb img { vertical-align: -1px; margin-right: 2px; }

/* Page text: the left two-thirds of the container, as in the theme (its right-hand sidebar was empty). */
main { display: block; }
.entry { max-width: 730px; padding: 56px 0 64px; }
.entry::after { content: ""; display: table; clear: both; }
.entry p { line-height: 1.9; margin: 0 0 1.2em; }
.entry ul { line-height: 1.9; margin: 0 0 1.2em; }
.entry h2 { font-size: 24px; line-height: 1.2; margin: 36px 0 28.8px; clear: both; }
.entry .alignleft { float: left; margin: 0.5em 1em 0.5em 0; }
.entry figure { margin: 0 0 1em; }
.entry figure img { display: block; }
@media (max-width: 575px) {
  .entry { padding: 36px 0 44px; }
  .entry .alignleft { max-width: 40%; }
}

/* Home: the picture carousel */
.carousel { position: relative; overflow: hidden; background: #111; }
.carousel-track { display: flex; transition: transform 0.6s ease-in-out; }
.carousel-item { position: relative; flex: 0 0 100%; aspect-ratio: 2560 / 988; }
.carousel-item img { display: block; width: 100%; height: 100%; object-fit: cover; }
.carousel-caption { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); color: #fff; }
.carousel-caption h2 { margin: 0; font-size: 32px; line-height: 1.4; color: #fff; text-shadow: 0 0 2px #0a0a0a; }
.carousel-caption p { margin: 0.9em 0 0; font-size: 15px; text-shadow: 0 0 2px #0a0a0a; }
.btn-ghost {
  display: inline-block; margin-top: 21.6px; padding: 6.6px 33px;
  border: 1px solid #fff; border-radius: 4px; box-shadow: 0 0 2px #0a0a0a;
  color: #fff; font-size: 16.6px; line-height: 1.5; text-decoration: none; text-shadow: 0 0 2px #0a0a0a;
  transition: 0.3s;
}
.btn-ghost:hover, .btn-ghost:focus-visible { color: #fff; background: var(--blue); border-color: var(--blue); }
.carousel-prev, .carousel-next {
  position: absolute; top: 0; bottom: 0; width: 8%; border: 0; padding: 0; cursor: pointer;
  background: transparent center / 20px 20px no-repeat; opacity: 0.5; transition: opacity 0.15s;
}
.carousel-prev:hover, .carousel-next:hover, .carousel-prev:focus-visible, .carousel-next:focus-visible { opacity: 0.9; }
.carousel-prev { left: 0; background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath d='M5.25 0l-4 4 4 4 1.5-1.5L4.25 4l2.5-2.5L5.25 0z'/%3e%3c/svg%3e"); }
.carousel-next { right: 0; background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath d='M2.75 0l-1.5 1.5L3.75 4l-2.5 2.5L2.75 8l4-4-4-4z'/%3e%3c/svg%3e"); }
.carousel-dots { position: absolute; left: 0; right: 0; bottom: 16px; display: flex; justify-content: center; gap: 6px; }
.carousel-dots button {
  width: 30px; height: 13px; padding: 5px 0; border: 0; cursor: pointer;
  background: #fff content-box; opacity: 0.5; transition: opacity 0.6s;
}
.carousel-dots button[aria-current="true"] { opacity: 1; }
.carousel [hidden] { display: none; }
@media (max-width: 767px) {
  .carousel-caption .container { padding: 0 12%; }
  .carousel-caption h2 { font-size: 18px; }
  .carousel-caption p { font-size: 12px; }
  .btn-ghost { margin-top: 8px; padding: 3px 14px; font-size: 12px; }
  .carousel-dots { bottom: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .carousel-track, .btn-ghost, .site-nav a::before { transition: none; }
}

/* Home: the three ringed icons */
.pr-blocks { padding: 56px 0 104px; border-top: 1px solid var(--line); }
.pr-blocks .container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.pr-block { display: block; text-align: center; color: var(--heading); text-decoration: none; }
.pr-block:hover { color: var(--heading); }
.pr-icon {
  display: flex; align-items: center; justify-content: center; margin: 0 auto;
  width: 80px; height: 80px; border: 1px solid var(--blue); border-radius: 50%; transition: background 0.3s;
}
.pr-block h2 { font-size: 18px; line-height: 1.4; margin: 16.2px 0 12.6px; }
.pr-block p { font-size: 14px; line-height: 1.6; margin: 0 0 7px; }
.pr-block:hover h2 { text-decoration: underline; }
@media (max-width: 575px) {
  .pr-blocks .container { grid-template-columns: 1fr; gap: 36px; }
}

/* Footer */
.site-footer { background: var(--footer-bg); border-top: 3px solid var(--blue); }
.footer-menu .container { display: flex; flex-wrap: wrap; padding-top: 12px; padding-bottom: 10px; }
.footer-menu a {
  padding: 0 14px; font-size: 14px; line-height: 1.65; color: var(--footer-text); text-decoration: none;
  border-left: 1px solid rgba(0, 0, 0, 0.1);
}
.footer-menu a:last-child { border-right: 1px solid rgba(0, 0, 0, 0.1); }
.footer-menu a:hover { text-decoration: underline; }
.copyright { border-top: 1px solid var(--line); margin-top: 64px; padding-top: 32px; padding-bottom: 32px; text-align: center; }
.copyright p { margin: 0; font-size: 12px; }
