@charset "utf-8";

:root {
  --ink: #080808;
  --paper: #f7f7f5;
  --paper-2: #ececec;
  --paper-row: #f4f4f1;
  --cyan: #008fa8;
  --cyan-dark: #006575;
  --magenta: #c80052;
  --magenta-dark: #8d003b;
  --yellow: #f6c400;
  --black: #080808;
  --blue: #004aa3;
  --red: #d40000;
  --white: #ffffff;
  --rule: #141414;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(0, 143, 168, .05), transparent 28%),
    linear-gradient(rgba(0, 0, 0, .035) 1px, transparent 1px),
    var(--paper);
  background-size: auto, 100% 24px, auto;
  font-family: "Yu Gothic", "Meiryo", "Hiragino Kaku Gothic ProN", sans-serif;
  font-weight: 800;
  line-height: 1.75;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration-thickness: 2px;
  text-underline-offset: .18em;
}

.zen {
  width: min(1120px, calc(100% - 28px));
  margin: 0 auto;
  padding: 18px 0 34px;
}

.zen::before {
  content: "攻略マニュアル";
  display: inline-block;
  margin: 0 12px 16px 0;
  padding: 8px 22px;
  color: #fff;
  background: var(--black);
  border-radius: 4px;
  font-size: clamp(18px, 3vw, 28px);
  line-height: 1;
  vertical-align: middle;
}

h1 {
  display: inline-block;
  margin: 0 0 16px;
  padding: 7px 20px 8px;
  background: var(--cyan-dark);
  border-radius: 4px;
  color: var(--ink);
  font-size: clamp(22px, 3.6vw, 38px);
  line-height: 1.15;
  vertical-align: middle;
}

h1::after {
  content: "";
  display: block;
  position: absolute;
}

.zen > p:first-of-type {
  clear: both;
}

.zen > h1 + p {
  margin-top: 0;
}

.page-actions a,
.zen > p:last-child a {
  display: inline-block;
  padding: 4px 12px;
  border: 2px solid var(--rule);
  background: var(--white);
  text-decoration: none;
}

h2 {
  margin: 26px 0 12px;
  padding: 8px 18px 10px;
  color: #fff;
  background: var(--cyan);
  font-size: clamp(24px, 4vw, 44px);
  line-height: 1.1;
}

h3 {
  margin: 18px 0 8px;
  padding: 6px 12px;
  border-left: 14px solid var(--blue);
  border-bottom: 3px solid var(--blue);
  background: var(--white);
  font-size: clamp(18px, 2.4vw, 26px);
  line-height: 1.25;
}

h4 {
  margin: 12px 0 8px;
  padding: 7px 12px;
  border: 0;
  background: var(--white);
  color: var(--cyan-dark);
  font-size: clamp(16px, 2vw, 21px);
  line-height: 1.35;
}

h4.point-box,
h4.column-box {
  width: 100%;
  max-width: 720px;
  margin-bottom: 0;
  padding: 6px 12px 3px;
  color: #fff;
  border-radius: 0;
  font-size: clamp(20px, 2.5vw, 28px);
}

h4.point-box {
  background: #66ad5e;
}

h4.column-box {
  background: #e88716;
}

h4.point-box + p,
h4.column-box + p {
  width: 100%;
  max-width: 720px;
  margin-top: 0;
  padding: 4px 12px 12px;
  border: 0;
  border-radius: 0;
  color: #fff;
}

h4.point-box + p {
  background: #66ad5e;
}

h4.column-box + p {
  background: #e88716;
}

p {
  margin: 8px 0 12px;
}

ul,
ol,
dl {
  margin: 10px 0 18px;
  padding: 0;
  border: 2px solid var(--rule);
  background: var(--paper-row);
  list-style: none;
}

li,
dt,
dd {
  margin: 0;
  padding: 8px 12px;
}

li:nth-child(odd),
dt:nth-of-type(odd),
dd:nth-of-type(odd) {
  background: var(--paper-row);
}

li:nth-child(even),
dt:nth-of-type(even),
dd:nth-of-type(even) {
  background: var(--paper-2);
}

li + li,
dt,
dd {
  border-top: 1px solid #c7c7c7;
}

dt {
  float: left;
  width: 9.5em;
  color: var(--magenta-dark);
}

dd {
  padding-left: 10.5em;
}

table {
  width: 100%;
  margin: 14px 0 18px;
  border-collapse: collapse;
  border: 2px solid var(--rule);
  background: var(--paper-row);
}

th,
td {
  padding: 8px 10px;
  border: 1px solid #c7c7c7;
  text-align: left;
}

thead th {
  color: #fff;
  background: var(--black);
}

tbody tr:nth-child(even) {
  background: var(--paper-2);
}

tbody tr:nth-child(odd) {
  background: var(--paper-row);
}

.zen > p:not(:first-of-type):not(:last-child) {
  max-width: 720px;
  font-size: 16px;
}

.zen > h2 + p,
.zen > h3 + p {
  padding: 10px 12px;
  border-left: 6px solid var(--cyan);
  background: var(--white);
}

.info-figure {
  display: inline-block;
  width: min(432px, 100%);
  margin: 10px 16px 16px 0;
  vertical-align: top;
}

.info-figure img {
  display: block;
  width: 100%;
  height: auto;
  cursor: zoom-in;
}

.info-figure.top-figure {
  display: block;
  width: min(720px, 100%);
  margin: 12px 0 20px;
}

.info-figure figcaption {
  margin-top: 6px;
  color: var(--magenta);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.55;
}

.info-figure.side {
  float: right;
  width: min(432px, 45%);
  margin: 0 0 12px 20px;
}

.info-figure.small {
  width: min(144px, 100%);
}

.info-figure.stack {
  display: block;
  width: min(720px, 100%);
  margin: 12px 0 18px;
}

.info-figure.side.small {
  width: min(144px, 30%);
}

h4.point-box + p + .info-figure,
h4.column-box + p + .info-figure {
  display: block;
  max-width: 720px;
  margin-top: -12px;
  margin-bottom: 12px;
  padding: 0 12px 12px;
}

h4.point-box + p + .info-figure {
  background: #66ad5e;
}

h4.column-box + p + .info-figure {
  background: #e88716;
}

h4.point-box + p + .info-figure figcaption,
h4.column-box + p + .info-figure figcaption {
  color: #fff;
}

h4.point-box + p + .info-figure.small,
h4.column-box + p + .info-figure.small {
  width: 100%;
}

h4.point-box + p + .info-figure.small img,
h4.column-box + p + .info-figure.small img {
  width: min(144px, 100%);
}

.info-figure.side + p + h2,
.info-figure.side + p + h3,
.info-figure.side + p + h4 {
  clear: both;
}

.info-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, .78);
}

.info-lightbox.open {
  display: grid;
}

.info-lightbox img {
  display: block;
  max-width: min(96vw, 1280px);
  max-height: 90vh;
  background: var(--paper);
}

.info-lightbox button {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border: 2px solid #fff;
  color: #fff;
  background: #000;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

@media (orientation: portrait), (max-width: 760px) {
  .zen {
    width: min(100% - 18px, 1120px);
    padding-top: 10px;
  }

  .zen::before,
  h1 {
    display: block;
    width: fit-content;
  }

  h2 {
    font-size: 28px;
  }

  .info-figure.side {
    float: none;
    width: min(432px, 100%);
    margin: 10px 0 16px;
  }

  .info-figure.side.small {
    width: min(144px, 100%);
  }

  dt {
    float: none;
    width: auto;
  }

  dd {
    padding-left: 12px;
  }
}
