/* ===== Design Tokens (from user) ===== */
:root {
  --font: "Noto Sans JP";


  --color-primary: #007AFF;
  --color-on-primary: #ffffff;


  --color-surface: #F0F1F1;

  --color-background: #ffffff;
  --color-on-background: #1E1E1E;

  --color-border: #A3A4AA;

  --color-attention: #ED7E00;


  --radius-btn: 4px;
  --radius-card: 8px;

  --border: 2px dashed var(--color-border);


  --shadow-1: 0px 0px 10px 0 rgba(0, 0, 0, 0.1);
  --shadow-btn: 0px 4px 4px 0 rgba(0, 0, 0, 0.25);
  --shadow-input: inset 2px 2px 4px rgba(0, 0, 0, 0.25);



  /* Layout */
  --container: 1120px;
  --gap: 24px;
  --gap-sm: 12px;
}


/* ===== Reset-ish ===== */
* {
  box-sizing: border-box;
}


html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
}


img {
  max-width: 100%;
  height: auto;
  display: block;
}


a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
li {
  margin: 0;
  padding: 0;
  list-style: none;
}


h2 {
  font-size: 1.5rem;
  font-weight: 600;
}

h3 {
  font-size: 1.25rem;
}


h4 {
  font-size: 1rem;
  font-weight: 600;
}



input,
textarea {
  background: var(--color-background);
  border: 0px solid var(--color-border);
  border-radius: var(--radius-btn);

  color: var(--color-on-background);

  box-shadow: var(--shadow-input);

  font-size: 1rem;
  line-height: 1.5;
}

input:focus,
textarea:focus {
  outline: 2px solid var(--color-primary);
}


::placeholder {
  font-family: var(--font);
  color: var(--color-background);
  opacity: 0.5;
}




/* ===== Base ===== */
body {
  font-family: var(--font), system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  color: var(--color-on-background);
  background: var(--color-background);
  line-height: 2;
  font-size: 1rem;
}





.section {
  width: 100%;
  position: relative;

  z-index: 10;
}


.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
  height: 100%;

  position: relative;
  z-index: 10;
}





.bg-title {
  width: 100%;
  position: relative;
  font-size: 8rem;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;

  margin: 0;

  z-index: 5;

  overflow: hidden;
  cursor: default;
}


.title-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding-bottom: 2rem;

  position: relative;
  top: -2rem;

  z-index: 10;

}

.title-area h2 {
  font-size: 1.5rem;
}

.title-area h3 {
  color: var(--color-primary);
  padding-bottom: 0.5rem;

  border-bottom: var(--border);
}



.title-area p {
  max-width: 800px;
}



.bg-wire {
  width: 100%;
  display: flex;
  justify-content: flex-end;

  z-index: 0;

  position: absolute;
  top: -40vh;
  right: 0;

  pointer-events: none;
  /* クリック/ホバー全部スルー */
  user-select: none;
  /* 選択不可 */
  -webkit-user-drag: none;
  /* 画像ドラッグ禁止（Safari系） */
  cursor: default;
  /* カーソルが変わらないように */
}

.bg-wire img {
  width: 80vh
}



/* ===== UI kit ===== */

.btn {
  display: flex;
  justify-content: center;
  align-items: center;

  width: auto;
  padding: 0.5rem 2rem;


  font-weight: 500;
  border-radius: var(--radius-btn);
  border: 2px solid var(--color-primary);
  background: var(--color-on-primary);
  color: var(--color-primary);
  box-shadow: var(--shadow-btn);
  transition: 0.3s;

  cursor: pointer;
}


.btn:hover {
  box-shadow: none;
}


.btn-primary {
  display: flex;
  justify-content: center;
  align-items: center;

  width: auto;
  padding: 0.75rem 2rem;


  font-weight: 500;
  border-radius: var(--radius-btn);
  background: var(--color-primary);
  color: var(--color-on-primary);
  box-shadow: var(--shadow-btn);
  transition: 0.3s;

  cursor: pointer;
}


.btn-primary:hover {
  box-shadow: none;
}


.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 16px;
}




.grid-3 {
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}


.cta {
  width: 13rem;
}


.marker {
  background: var(--color-attention);
  font-size: 1.25rem;
  margin: 0.25rem;
}

.color-blue {
  color: var(--color-primary);
}



@media (max-width: 1024px) {
  .grid-3 {
    grid-template-columns: 1fr 1fr;
  }

  .grid-3 .bottom {
    grid-column: 1 / -1;
    /* 2列分にまたぐ */
    justify-self: center;
    /* グリッドセル内で横方向中央 */
    width: fit-content;
    /* コンテンツ幅に縮める（必要なら） */
  }

  .bg-title {
    font-size: 16vw;
  }
}


@media (max-width: 768px) {

  body {
    font-size: 0.75rem;
  }


  h2 {
    font-size: 1.25rem;
    font-weight: 600;
  }

  h3 {
    font-size: 1rem;
  }


  h4 {
    font-size: 0.75rem;
    font-weight: 600;
  }


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















/* ===== 404 page ===== */
.error404 .hero {
  padding: 48px 0 24px;
  text-align: center;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}


.error404 .hero h1 {
  font-size: 1.5rem;
  margin: 0 0 8px;
}


.error404 .hero p {
  margin: 0 0 10px;
  color: #555;
}


.error404 .blocks {
  display: grid;
  gap: 24px;
  grid-template-columns: 2fr 1fr;
}


@media (max-width: 1024px) {
  .error404 .blocks {
    grid-template-columns: 1fr;
  }
}


.error404 .quick-links {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}


@media (max-width: 768px) {
  .error404 .quick-links {
    grid-template-columns: 1fr;
  }
}


.error404 .quick-links a {
  display: block;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 12px;
}


.error404 .search-box h3 {
  margin-top: 0;
}


.error404 .search-box form {
  margin-top: 8px;
}


.error404 .tag-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}


.error404 .tag-chips a {
  display: inline-block;
  padding: 6px 10px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 999px;
}


.error404 .sitemap-pages {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}


@media (max-width: 768px) {
  .error404 .sitemap-pages {
    grid-template-columns: 1fr;
  }
}


.error404 .sitemap-pages a {
  display: block;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 10px;
}