@charset "utf-8";

/* ====== 全称セレクタ ====== */

* {
    margin: 0;
    padding: 0;
    color: #7D6868;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.05em;
    line-height: 2;
    box-sizing: border-box;
}

@media screen and (max-width: 767px) {
  * {
    font-size: 3.5vw;
    line-height: 1.8;
  }
}

/* ====== 全体 ====== */

html {
  scroll-padding-top: 240px;
}

@media screen and (max-width: 767px) {
  html {
    scroll-padding-top: 150px;
  }
}

body {
  text-align: center;
  height: 100%;
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-weight: 400;
  background-color: #F7EEE5;
  animation: fadeIn 3s ease 0s 1 normal;
  -webkit-animation: fadeIn 3s ease 0s 1 normal;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  pointer-events:none;
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
}

/* --- 文字装飾 --- */

b {
  font-weight: 700;
}

ins {
  background: linear-gradient(transparent 60%, rgba(191, 125, 101, 0.3) 60%);
  font-size: 100%;
  text-decoration: none;
}

/* --- ページジャンプ --- */

#pagetop {
  position: fixed;
  right: 12em;
  bottom: 4em;
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  aspect-ratio: 1/1;
  background-color: #BF7D65;
  border-radius: 5px;
  cursor: pointer;
  color: #F7EEE5;
}

@media screen and (max-width: 767px) {
  #pagetop {
    right: 8vw;
    bottom: 12vw;
  }
}

#pagetop a {
display: block;
}

#pagetop:hover {
  opacity: 0.7;
  transition: 0.3s;
}

.arrow {
  height: 10px;
  width: 10px;
  z-index: 100;
  border-top: 3px solid #F7EEE5;
  border-right: 3px solid #F7EEE5;
  transform: translateY(20%) rotate(-45deg);
}

/* ====== レイアウト ====== */

#wrapper {
  max-width: 100%;
  flex: 1;
  margin: 0 auto;
  padding: 0 auto;
  background-color: #F7EEE5;
  box-sizing: border-box;
  position: relative;
}

#header {
  max-width: 100%;
  height: 220px;
  margin: 0 auto;
  padding: 20px 0 0 0;
  align-items: center;
}

#header h1 a {
  display: inline-block;
  width: 100%;
  height: 100%;
}

@media screen and (max-width: 767px) {
  #header {
    padding: 0.8em 0 0.5em 0.8em;
    margin: 0;
    max-width: 100%;
    height: 80px;
    display: flex;
    position: sticky;
    position: -webkit-sticky;
    top: 0; 
    z-index: 50;
    align-items: center;
    justify-content: space-between;
    background-color: #F7EEE5;
  }
}

#nav {
  text-align: center;
  font-family: "Zen Antique Soft", serif;
}

#main {
  text-align: left;
  width: 1100px;
  padding: 0 auto;
  margin: 2em auto 0 auto;
  animation: loading 1s;
}

@media screen and (max-width: 767px) {
  #main {
    max-width: 100%;
    padding: 0 1.8em;
    margin: 0 auto;
  }
}

@keyframes loading {
	0% {
    opacity: 0;
    transform: translateY(30px);
  }
	100% {
    opacity: 1;
  }
}

#footer {
  text-align: center;
  justify-content: center;
  align-items: center;
  max-width: 100%;
  height: 7em;
  margin-top: 6em;
  display: flex;
  justify-content: center;
}

#footer p {
  font-size: 14px;
  font-weight: 400;
  color: #7D6868;
}

/* ====== メニュー ====== */

/* --- PC用メニュー --- */

nav.pc {
  height: 60px;
  text-align: center;
  font-family: "Zen Antique Soft", serif;
  color: #7D6868;
}

nav.pc ul {
  list-style: none;
  display: flex;
  justify-content: center;
  height: 60px;
}

nav.pc ul li {
  width: 180px;
  height: 60px;
  text-align: center;
}

nav.pc ul li:not(:last-child) {
  position: relative;
}

nav.pc ul li:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 35%;
  background-color: rgba(162, 144, 142, 0.8);
}

nav.pc ul li a {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7D6868;
  padding: 10px;
  transition: 0.3s;
}

nav.pc ul li a:hover {
  color: #A2908E;
}

@media screen and (max-width: 767px) {
  nav.pc {
    display: none;
  }
}


/* --- スマホ用ハンバーガーメニュー --- */

nav.sp {
  display: none;
}

@media screen and (max-width: 767px) {
  .hamburger_btn {
    background-color: transparent;
    position: relative;
    cursor: pointer;
    margin: 0 0 0 auto;
    height: 60px;
    width: 60px;
    z-index: 50;
  }

  .hamburger_btn span {
    display: inline-block;
    width: 50%;
    height: 2px;
    background-color: #7D6868;
    top: 7vw;
    left: 4vw;
    transform: translate(-50%, -50%);
    transition: all 0.5s;
    position: absolute;
  }

  .hamburger_btn,
  .hamburger_btn span {
    transition: all 0.5s;
  }

  .hamburger_btn span:nth-of-type(1) {
    top: 18px;
  }

  .hamburger_btn span:nth-of-type(2) {
    top: 28px;
  }

  .hamburger_btn span:nth-of-type(3) {
    top: 38px;
  }

  nav.sp {
    display: block;
    width: 100%;
    height: 100vh;
    background-color: #F7EEE5;
    z-index: 40;
    text-decoration: none !important;
    position: fixed;
    transition: all 0.5s;
    opacity: 0;
    visibility: hidden;
    left: 0;
    top: 0;
  }

  nav.sp ul {
   position: absolute;
   top: 50%;
   left: 50%;
   width: 80%;
   transform: translate(-50%, -50%);
   list-style: none;
   text-align: center;
   padding: 0;
   margin: 0;
  }

  nav.sp li {
    text-align: center;
  }

  nav.sp li a {
   display: block;
   height: 100%;
    color: #7D6868;
    font-family: "Zen Antique Soft", serif;
   font-weight: 500;
    line-height: 2;
   font-size: 1.75em;
   padding: 0.5em;
  }

  nav.sp.active {
    opacity: 1;
    visibility: visible;
  }

  .hamburger_btn.active span:nth-of-type(1) {
   transform: translate(-15px, 10px) rotate(-45deg);
  }

  .hamburger_btn.active span:nth-of-type(2) {
   opacity: 0;
  }

  .hamburger_btn.active span:nth-of-type(3) {
   transform: translate(-15px, -10px) rotate(45deg);
  }
}

/* --- ギャラリー用サブメニュー --- */

#nav2 {
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-weight: 400;
  position: sticky;
  top: 10em;
  float: left;
  margin-left: calc(-160px - 6em);
  margin-top: -5em;
  width: 160px;
  background-color: #F7EEE5;
  border: 1px solid #A2908E;
}

.nav2_title {
  display: block;
  padding: 0.5em;
  color: #F7EEE5;
  background-color: #BF7D65;
  text-align: center;
}

#nav2 ul {
  list-style: none;
}

#nav2 ul li {
  transition: 0.3s;
  position: relative;
  text-align: center;
}

#nav2 ul li:not(:last-child)::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 10%;
  width: 80%;
  border-bottom: 1px solid #BFBFBF;
}

#nav2 ul li a {
  display: block;
  line-height: 2;
  padding: 0.5em;
  color: #7D6868;
  text-decoration: none;
  position: relative;
  z-index: 1;
}

#nav2 ul li a:hover {
  background-color: #d49882;
  color: #F7EEE5;
}

@media screen and (max-width: 767px) {
  #nav2 {
    width: 80vw;
    position: sticky;
    top: 7em;
    right: auto;
    left: auto;
    float: none;
    margin: 0 auto;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .nav2_title {
    display: none;
  }

  #nav2 ul {
    display: flex;
    justify-content: center;
    padding: 0.5em;
  }

  #nav2 ul li {
    flex: 1;
  }

  #nav2 ul li:not(:last-child)::after {
    top: 25%;
    right: 0;
    bottom: auto;
    left: auto;
    width: 0;
    height: 50%;
    border-bottom: none;
    border-right: 1px solid #BFBFBF;
  }

  #nav2.is-hidden {
    opacity: 0;
    visibility: hidden; 
  }
}

/* ====== メイン ====== */

/* --- 見出し --- */

h2 {
  font-family: "Zen Antique Soft", serif;
  font-size:60px;
  color: #A2908E;
	letter-spacing: 0.01em;
}

h2::first-letter {
  color: #BBB88D;
}

h3 {
	font-family: "Zen Antique Soft", serif;
	font-size:32px;
	color: #A2908E;
	align-self: flex-start;
	letter-spacing: 0.01em;
	margin:1em 0 0.5em 0;
}

h3::first-letter {
  color: #BF7D65;
}

@media screen and (max-width: 767px) {
  h1 {
    text-align: left;
    width: 60%;
    height: 100%;
    z-index: 45;
  }

  h1 a {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
  }

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

  h2 {
    font-size:12vw;
  }

  h3 {
    font-size: 10vw;
    text-align: left;
  }
  
}

/* --- About --- */

.about {
  display: flex;
  align-items: flex-start;
  margin-top:1.25em;
}

.about p.prof {
  margin-top: 1em;
  margin-left: 4.5em;
}

span.name {
  font-family: "Zen Antique Soft", serif;
}

@media screen and (max-width: 767px) {
  .about {
    display: flex;
    flex-flow: column;
    justify-content: center;
    align-items: center;
    margin-top:1em;
  }

  .about p.prof {
    margin: 2em 0;
  }
}

/* --- 本文 --- */

p {
  margin-top: 1.25em;
}

@media screen and (max-width:767px) {
  p {
    margin-top: 2em;
  }
}

a {
	color: #BF7D65;
	text-decoration: none;
	transition: 0.3s;
}

a:hover {
	opacity: 0.7;
}

/* ====== Gallery ====== */

.gallery {
	display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 100%;
  gap: 1.25em 1.5em;
	margin: 1.25em auto 2.5em auto;
}

@media screen and (max-width: 767px) {
  .gallery {
    width: 100%;
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --- サムネイル --- */

.card {
	border: 1px solid #BFBFBF;
	overflow: hidden;
	display: block;
}

.card img {
	width: 100%;
	height: auto;
	vertical-align: bottom;
  transition: all 0.3s ease;
}

.card a {
  display: block;
  width: 100%;
  height: 100%;
}

.card a:hover img {
  overflow: hidden;
  opacity: 0.9;
	transform: scale(1.05);
}

/* --- イラスト --- */

.illust {
	max-width: 800px;
	width: fit-content;
	text-align: center;
	display: flex;
	flex-direction: column;
	gap: 1.5em;
	justify-content: center;
	align-items: center;
	margin: 0 auto;
}

@media screen and (max-width: 767px) {
  .illust {
    max-width: 100%;
  }
}

.illust img {
	max-height: 80vh;
	width: auto;
	object-fit: contain;
	transition: all 0.3s ease;
}

.illust a {
  display: inline-block;
  line-height: 0;
  overflow: hidden;
}

.illust a:hover img {
  opacity: 0.9;
	transform: scale(1.05);
}

/* --- 小説 --- */

.novel {
	max-width: 900px;
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 1.5em;
	margin: 4.5em auto 1.5em auto;
}

.novel p {
	text-align: left;
  letter-spacing: 0.04em;
  margin-bottom: 2em;
}

@media screen and (max-width: 1920px) {
  .novel {
    width: 800px;
    font-size: 14px;
    margin: 4.5em auto 1.5em auto;
  }
}

@media screen and (max-width: 767px) {
  .novel {
    max-width: 100%;
    margin: 3em auto 1.5em auto;
  }

  .novel p {
    font-size: 1em;
  }
}

/* --- テキスト --- */

.gallery_text {
	margin: 4.5em 0 1.5em 0;
}

.comment {
	margin: 4.5em 0 1.5em 0;
	font-size: 0.8em;
	text-align: center;
}

@media screen and (max-width: 767px) {
  .gallery_text {
    margin: 3em 0;
  }
  
  .comment {
    margin: 2em 0 1.5em 0
  }
}

/* ====== ボタン ====== */

/* --- プロフィールリンクボタン --- */

.btn {
  display: inline-flex;
  align-items: center;
  position: relative;
  padding: 0.25em 1em;
  margin-right: 0.5em;
  color: #7D6868;
  text-decoration: none;
  font-size: 15px;
  border: 1px solid #A2908E;
  transition: 0.3s;
  min-width: 200px;
}

.btn .icon {
    max-height: 24px;
    width: auto;
}

.btn .text {
  flex: 1;
  text-align: center;
  color: inherit;
  transition: color 0.3s;
}

.btn:hover {
  color: #F7EEE5;
  background: #A2908E;
}

@media screen and (max-width: 767px) {
  .btn {
    min-width: 40vw;
    width: calc(50% - 0.5em);
    margin-bottom: 0.5em;
  }
  .btn:nth-of-type(even) {
    margin-right: 0;
  }
}

/* --- 戻るボタン --- */

.btn_back {
	display:block;
	margin: 5em auto 0 auto;
	padding: 0.25em 1em;
	width: 100px;
	text-align: center;
	text-decoration: none;
	font-size: 15px;
	background-color: #BF7D65;
	color: #F7EEE5;
	transition: 0.3s;
}

.btn_back:hover {
	opacity: 0.8;
}

/* --- いいねボタン --- */

.newiine_btn {
	text-align: left;
	margin-top: 1.5em;
	align-self: flex-start;
	border-color: #ED5D78;
	color: #ED5D78;
}

.newiine_btn:hover {
	background-color: rgba(237, 93, 120, 0.1);
}

.newiine_btn.newiine_type01.newiine_clickedtoday.newiine_clicked {
	background-color: #ED5D78;
	color: #F7EEE5;
}

/* ====== メールフォーム ====== */

.check {
    color:#BF7D65;
}

form {
	padding-top: 1em;
}

.contact_text {
  text-align: left;
	margin: 0 !important;
}

.contact_form {
	margin: 0.25em 0 1em 0;
}

textarea {
	max-width: 480px;
	width: 100%;
  border: 1px solid #7D6868;
  padding: 0.5rem 0.75rem;
  font-family: inherit;
  margin-top: 0.5em;
  margin-bottom: 1em;
}

input[type="submit"] {
  background-color: #BF7D65;
  color: #ffffff;
  padding: 0.5rem 2rem;
  cursor: pointer;
  transition: 0.3s;
  margin-top: 1em;
}

input[type="submit"]:hover {
  opacity: 0.8;
}