* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  min-height: 100%;
}

body {
  background:
    radial-gradient(circle at 20% 20%, #ffffff 0, #aeb4b7 1px, transparent 2px),
    linear-gradient(135deg, #777d80, #d8dcdd 25%, #8c9295 50%, #d5d8d9 75%, #707679);
  background-size: 7px 7px, 100% 100%;
  color: #202427;
  font-family:
    "Arial Narrow",
    "Yu Gothic",
    "Hiragino Kaku Gothic ProN",
    sans-serif;
}

/* ==========================================
   愛車写真
   ========================================== */

.car-photo,
.bike-photo {
    width: 100%;
    height: 360px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.car-photo img,
.bike-photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}




.riveted-panel {
  position: relative;
  width: min(1000px, 94vw);
  margin: 25px auto;
  padding: 28px;
  border: 5px solid #555b5e;

  background:
    linear-gradient(90deg,
      rgba(255,255,255,.35),
      transparent 15%,
      rgba(0,0,0,.12) 50%,
      transparent 85%,
      rgba(255,255,255,.3)
    ),
    repeating-linear-gradient(
      0deg,
      #b8bdc0 0px,
      #cfd3d4 3px,
      #a7adaf 6px
    );

  box-shadow:
    inset 0 0 0 2px #e9ebeb,
    inset 0 0 35px rgba(0,0,0,.35),
    0 12px 35px rgba(0,0,0,.5);
}

/* リベット */
.riveted-panel::before,
.riveted-panel::after {
  content: "●    ●    ●    ●    ●    ●    ●    ●";
  position: absolute;
  left: 18px;
  right: 18px;
  color: #555b5d;
  letter-spacing: 25px;
  font-size: 13px;
  text-shadow:
    1px 1px 1px #eee,
    -1px -1px 1px #333;
  pointer-events: none;
}

.riveted-panel::before {
  top: 8px;
}

.riveted-panel::after {
  bottom: 8px;
}

.header {
  text-align: center;
  padding: 25px 10px 30px;
  border-bottom: 3px double #505658;
}

.plate-label {
  display: inline-block;
  padding: 5px 15px;
  color: #ddd;
  background: #303638;
  border: 2px solid #888f91;
  box-shadow: inset 0 0 7px #000;
  font-family: monospace;
  letter-spacing: 4px;
}

h1 {
  margin: 14px 0 4px;
  font-size: clamp(28px, 6vw, 54px);
  letter-spacing: 5px;
  text-shadow:
    2px 2px 0 #e9ebeb,
    3px 3px 0 #666;
}

.subtitle {
  margin: 0;
  font-weight: bold;
  letter-spacing: 10px;
}

.hero {
  min-height: 620px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  padding: 45px 10px;
}

.character {
  text-align: center;
  position: relative;
}

.nameplate {
  display: inline-block;
  margin-bottom: 12px;
  padding: 8px 35px;
  background: #252a2c;
  color: #ddd;
  border: 3px solid #9da3a5;
  font-family: monospace;
  letter-spacing: 6px;
  box-shadow: 3px 3px 0 #555;
}

.costume-frame {
  position: relative;
  display: inline-block;
  padding: 12px;
  background: #24292b;
  border: 5px solid #888f91;
  box-shadow:
    0 0 0 3px #333,
    10px 10px 0 rgba(0,0,0,.25);
}

.costume-frame img {
  display: block;
  width: min(520px, 75vw);
  height: auto;
  border: 2px solid #444;
}

/* 写真の人物に軍装っぽいシルエットを追加する装飾 */
.shoulder {
  position: absolute;
  bottom: 7%;
  width: 95px;
  height: 42px;
  background: linear-gradient(#4b514f, #1d2423);
  border: 3px solid #aaa;
  opacity: .9;
}

.shoulder.left {
  left: -42px;
  transform: rotate(-15deg);
}

.shoulder.right {
  right: -42px;
  transform: rotate(15deg);
}

.collar {
  position: absolute;
  left: 50%;
  bottom: 12%;
  width: 80px;
  height: 30px;
  transform: translateX(-50%);
  border-left: 12px solid #303735;
  border-right: 12px solid #303735;
}

.insignia {
  position: absolute;
  right: 8%;
  bottom: 16%;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #aaa;
  border: 3px solid #444;
  color: #252525;
  line-height: 32px;
  font-size: 20px;
}

.caption {
  font-size: 24px;
  font-weight: bold;
  letter-spacing: 4px;
  text-shadow: 1px 1px white;
}

.caption span {
  font-size: 14px;
  letter-spacing: 2px;
}

.car {
  border-top: 3px double #555;
  padding: 35px 10px;
}

.car h2 {
  text-align: center;
  letter-spacing: 6px;
}

.car-card {
  max-width: 700px;
  margin: auto;
  padding: 25px;
  background: rgba(40,45,47,.9);
  color: #e4e6e6;
  border: 4px solid #92999b;
  box-shadow:
    inset 0 0 20px #000,
    5px 5px 0 rgba(0,0,0,.25);
}

.car-card h3 {
  margin-top: 0;
  font-size: 28px;
  color: #ddd;
}

.spec {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 20px;
}

.spec div {
  padding: 12px;
  border: 1px solid #777;
  background: #303638;
}

.spec b,
.spec span {
  display: block;
}

.spec b {
  color: #999;
  font-size: 12px;
}

footer {
  padding: 20px;
  text-align: center;
  font-family: monospace;
  font-size: 12px;
  letter-spacing: 3px;
}

@media (max-width: 600px) {
  .riveted-panel {
    padding: 15px;
  }

  .hero {
    min-height: 500px;
  }

  .shoulder {
    display: none;
  }

  .spec {
    grid-template-columns: 1fr;
  }
}