@charset "utf-8";

/* ポートフォリオ用CSS */
/* 全体共通設定 */

:root {
    --color-white: #f9f9f9;
    --color-black: #333;
    --color-red: #C61532;
    --color-beige: #FCFAF5;
}

html {
    font-size: 16px;
    line-height: 1.8;
    font-family: sans-serif;
    background-color: var(--color-red);
    color: var(--color-black);
    scroll-behavior: smooth;
}

.wrapper {
    background-color: var(--color-beige);

}

.kaisei-tokumin-regular {
    font-family: "Kaisei Tokumin", serif;
    font-weight: 400;
    font-style: normal;
}

.kadwa-regular {
    font-family: "Kadwa", serif;
    font-weight: 400;
    font-style: normal;
}

.kadwa-bold {
    font-family: "Kadwa", serif;
    font-weight: 700;
    font-style: normal;
}

h2,
h3,
p,
ul,
dl {
    font-family: "Kaisei Tokumin", serif;
}


/* レスポンシブイメージ */
img {
    max-width: 100%;
    height: auto;
    /* border-radius: 8px; */
}



/* 見出し */
h1 {
    font-family: "Kadwa", serif;
    font-size: 128px;
    font-weight: 700;
    font-style: normal;
    text-align: center;
    margin: auto;
}

h2 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    background: transparent;
    /* border-left: solid 5px var(--color-red); */
    /*左線*/
}

h2:before {
  background-color:var(--color-red);
  border-radius: 1em;
  content: "";
  display: inline-block;
  height: 1.2em;
  margin-right: .5em;
  vertical-align: middle;
  width: .2em;
}

h3 {
    font-size: 20px;
    font-weight: bold;
}

/* header */
.topimg {
    position: relative;
}

.topimg p {
    text-align: center;
}

.topimg h1 {
    position: absolute;
    top: 50%;
    left: 50%;
    -ms-transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}

/* nav */

header {
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    background-color: var(--color-red);
    width: 100%;
    padding-bottom: 10px;
}

nav ul {
    display: flex;
    justify-content: end;
}

nav ul li a {
    margin: 10px 10px 10px 0;
    padding: 5px 10px;
    color: var(--color-beige);
    display: inline-block;
    font-size: 18px;
    position: relative;
    text-decoration: none;
}

a::after {
    background-color: var(--color-beige);
    /* 下線の色 */
    bottom: -0.5px;
    /* 要素の下端からの距離 */
    content: "";
    /* 要素に内容を追加 */
    height: 1px;
    /* 下線の高さ */
    left: 0;
    /* 要素の左端からの距離 */
    position: absolute;
    /* 絶対位置指定 */
    transform: scale(0, 1);
    /* 下線を横方向に0倍、縦方向に1倍に変形（非表示） */
    transform-origin: center top;
    /* 変形の原点を中央上に指定 */
    transition: transform .3s;
    /* 変形をアニメーション化 */
    width: 100%;
    /* 要素の幅 */
}

/* リンクにホバーした際の下線の表示 */
a:hover::after {
    transform: scale(1, 1);
    /* 下線を横方向に1倍、縦方向に1倍に変形（表示） */
}

/* コンテンツ */
.inner {
    width: 100%;
    background-color: var(--color-beige);
}

.contents {
    width: 80%;
    margin: auto;
    padding: 40px 0;
    overflow: hidden;
}

.inner_flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
}

.tategaki {
    writing-mode: vertical-rl;
    font-size: 46px;
}

.flex01 {
    flex-basis: 80%;
}

.flex50 {
    flex-basis: 50%;
}

dl {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}

/* dt {
        width: 40%;
      }
      
      dd {
        width: 60%;
      } */

.skill_list {
    display: flex;
    flex-basis: auto;
}

.skill_list dt,
.skill_list dd {
    padding: 5px;
}

.background01 {
    background: url(../images/seigaiha02_big_img.png) no-repeat center center / cover;
    background-attachment: fixed;
    position: relative;
    width: 100%;
    height: 80vh;
    /* padding-top: 50px; */
}

#skill section {
    background-color: var(--color-beige);
    /* width: 100%; */
    padding: 40px 0;
    margin: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* padding: 50px 180px; */
}


/* #skill .contents{
    background-color: var(--color-beige);
    width: 100%;
   padding: 40px 0 ;
   margin: auto;
   position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 50px 180px;
} */


/* 背景 */


.background02 {
    background-color: var(--color-beige);
    /* background-attachment: fixed; */
    width: 100%;
    height: 100vh;
}

.background03 {
    background-image: url(../images/seigaiha01_big_img.png);
    background-attachment: fixed;
    width: 100%;
    height: 100vh;
}

/* section{
    background-color: aqua;
    width: 100%;
    height: 100vh;
} */

/* .background{
    width: 90%;
    margin: auto;
    background-color: var(--color-beige);
    padding: 50px 180px;
} */

/* .skill{
    background-image: url(../images/seigaiha02_big_img.png) no-repeat center center/
    cover;
    background-attachment: fixed;
} */

/* .fix{
    min-height: 100%;
    background-attachment: fixed;
    background-repeat: repeat;
} */

/* .moyou1 {
    background-image: url(../images/seigaiha02_big_img.png);
    background-repeat: repeat;
    display: inline-block;
    min-height: 100%;
    width: 100%;
    background-attachment: fixed;
} */

.frame {
    background-color: var(--color-white);
    padding: 24px;
    box-shadow: 0 0 8px rgb(0 0 0 / 0.2);
}

.column {
    display: grid;
    gap: 40px;
}

.col3 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.col2 {
    grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));

}

.btn {
    text-align: right;
    margin-bottom: 0;
}

.btn a {
    background-color: var(--color-red);
    color: var(--color-white);
    display: inline-block;
    padding: 4px 14px;
    border-radius: 4px;
    font-weight: bold;
}


/* フォーム */
form {
    width: 600px;
    margin: 0 auto;
}

input[type=text],
input[type=email],
textarea {
    border: 1px solid #cccccc;
    background-color: var(--color-white);
    width: 100%;
    margin-top: 5px;
    padding: 4px 8px;
}

textarea {
    height: 148px;
    margin-bottom: 30px;
}

form>p {
    line-height: 1.4;
    margin-bottom: 20px;
}

.submitBtn {
    text-align: center;
}

input[type=submit] {
    background-color: var(--color-red);
    color: var(--color-white);
    padding: 18px 80px;
}

/* footer */

footer {
    background: url(../images/shikaku_img.png) repeat;
    padding-top: 20px;
}

footer p {
    text-align: center;
}

.gototop {
    margin: 0 auto;
    text-align: center;
    width: 100px;
    background-color: var(--color-beige);
    color: var(--color-black);
}