/*
======================================================================
Project Name    : LP Util
File Name       : base.css
Encoding        : UTF-8
Creation Date   : 2024/02/06
 
Copyright 2024 office-ing All rights reserved.
 
This source code or any portion thereof must not be  
reproduced or used in any manner whatsoever.
======================================================================
*/
@charset "utf-8";

/* ==========================================
 Base
============================================*/
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-gothic);
  font-size: 100%;
  font-weight: 500;
  line-height: 1.8;
  width: 100%;
  height: 100%;
  word-break: break-all;
  overflow-x: hidden;
  visibility: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  margin-bottom: 0;
  font-weight: bold;
}

/* container */
:root {
  --container-width: 1920;
  --min_w1: 375;
  --max_w1: 1100;
  --min_w2: 992;
  --max_w2: 1920;
}

/* font family */
:root {
  --font-default: "Hiragino Kaku Gothic Pro", "meiryo", "メイリオ", Meiryo, "ＭＳ Ｐゴシック", sans-serif;
  --font-serif: "Noto Serif JP", serif;
  --font-gothic: "Noto Sans JP", sans-serif;
}

/* p margin */
:root {
  --mb-p: 2em;
}

/* maker */
.mark,
mark {
  padding: 0;
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0) 70%, var(--color-yellow) 70%);
  background-color: transparent;
  color: inherit;
  padding-left: 0.2em;
  padding-right: 0.2em;
}

.mark-full {
  background-color: var(--color-yellow);
}

/* image */
.img-wrap {
  position: relative;
}

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

/* auto size */
[style*="--w"] {
  width: calc(100vw * var(--w) / var(--max_w1));
  max-width: calc(1px * var(--w));
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 992px) {
  [style*="--w"] {
    width: calc(100vw * var(--w) / var(--max_w2));
    max-width: 100%;
  }
}

picture {
  display: block;
}

a img,
button img {
  transition: 0.3s;
}

a:hover img,
button:hover img {
  filter: brightness(1.2);
}

/* paragraph */
:where(main) p {
  margin-bottom: var(--mb-p);
}

/* spacer */
hr {
  margin: 2em 0;
  border: none;
  opacity: 1;
}

/* underline */
u {
  text-underline-offset: 0.3em;
}

/* list */
ul,
ol {
  margin: 0 0 2em;
  padding: 0;
  list-style: none;
}

/* button */
.btn {
  position: relative;
  transition: 0.3s;
  border: 0;
  padding: 0;
}

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

.btn.disabled {
  pointer-events: none;
  filter: grayscale(1);
  animation: none;
}

.btn-round {
  border-radius: 100vh;
}

/* placeholder */
.form-control::placeholder {
  color: var(--color-placeholder);
}

/* shadow */
.white-shadow {
  text-shadow: 0px 0px 10px rgba(255, 255, 255, 1), 0px 0px 10px rgba(255, 255, 255, 1), 0px 0px 10px rgba(255, 255, 255, 1);
}

/* ==========================================
 Page Top
============================================*/

.pagetop {
  position: fixed;
  right: 5%;
  bottom: 5%;
  font-size: 74%;
  margin: 0;
  z-index: 10;
  opacity: 0;
  transition: 0.5s ease-in-out;
}

.pagetop.show {
  opacity: 1;
}

.pagetop a {
  padding: 1em;
  background-color: var(--color-pagetop-bg);
  color: var(--color-pagetop-text);
  text-decoration: none;
  transition: all 0.5s ease;
  border-radius: 5px;
  display: block;
  line-height: 1;
}

:where(.show-follow) .pagetop {
  bottom: 10%;
}

@media (min-width: 1100px) {
  .pagetop {
    right: 25px;
    bottom: 25px;
  }
}

/* ==========================================
 Footer
============================================*/

.footer {
  padding: 1.5em 1em;
  text-align: center;
  color: var(--color-footer-text);
  background-color: var(--color-footer-bg);
  font-size: clamp(12px, 3.2vw, 16px);
  font-weight: bold;
  margin: 0 auto;
}

.footer__menu {
  margin-bottom: 1em;
  display: flex;
  justify-content: center;
}

.footer__menu a {
  color: inherit;
  text-decoration: none;
  padding: 0.5em 1.5em;
  transition: 0.3s;
  display: block;
  position: relative;
  width: fit-content;
}

.footer__menu a:not(:last-child)::after {
  content: "/";
  content: "|";
  position: absolute;
  right: 0;
  display: none;
}

.footer__menu a:hover {
  color: var(--color-footer-bg);
  background-color: var(--color-footer-text);
}

.footer__copy {
  margin-bottom: 0;
}
