/* 基本設定 */
@charset "UTF-8";
*{
    box-sizing: border-box;
}
body, html {
  margin: 0; 
  padding: 0; 
  height: 100%;


   background-image: url(アートボード\ 1back.png); 
  background-size: cover;     
  background-position: center; 
  background-repeat: no-repeat;
  background-attachment: fixed; 

  font-family: 'DotGothic16', sans-serif;
  position: relative;
  overflow-x: hidden;
}

.main {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;  
  align-items: center;      
  text-align: center;
}

.main h1 {
  font-size: 6rem;
  margin-bottom: 2rem;
  color: #fff;
  text-shadow:
    0 0 10px #00CED1,
    0 0 20px #00CED1,
    0 0 30px #fff;
}

.sf-underline {
  position: relative; 
  display: inline-block;
  color: #0ff;
  font-size: 4rem;
  padding-bottom: 10px;
  overflow: visible; 
  font-family: 'HangyakuFont', serif;
  
  color: #fff;
}
@font-face {
  font-family: 'HangyakuFont';
  src: url(hangyaku-font/Hangyaku-G3rpg.ttf) format('truetype');
}

.game4{
  height: 100px;
  width: 100px;
}


.sf-underline::after {
  content: "";
  position: absolute;     
  left: 50%;         
  bottom: 0;         
  height: 2px;
  width: 100vw;         
  background: linear-gradient(to right, #00CED1, #fff, transparent);
  animation: underline-run 1.2s linear infinite;
  pointer-events: none; 
  z-index: 10;        
  transform: translateX(-50vw);
}

@keyframes underline-run {
  0% {
    transform: translateX(-100vw);
  }
  50% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(100vw);
  }
}

P{
  color: #353333;
}

.main nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 3rem;
}

.main nav a {
  color: #00CED1;
  text-decoration: none;
  font-size: 1.5rem;
  text-shadow: 0 0 5px #00CED1;
  transition: color 0.3s ease;
  font-family: 'DotGothic16', sans-serif;
  padding: 0.5rem 1.2rem;      /* ボタンの内側余白 */
  border: 1px solid rgba(255, 255, 255, 0.7);  /* 細めの枠線 */
  box-shadow: 0 0 5px #00CED1; 
  display: inline-block;  
}

.main nav a:hover {
  color: #ff6347;
  text-shadow: 0 0 10px #ff6347;
  border-color: #ff6347; 
  box-shadow: 0 0 10px #ff6347;
}

.stone{
  height: 80px;
  padding-top: 40px;
  
}

body {
  font-family: 'Cinzel', serif;
  background-image: url
  max-width: 100%;
}
.logo {
  height: 40px; /* 小さめで控えめ♡ */
  padding: 5px 0;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.logo:hover {
  opacity: 1; /* ホバーでほんのり目立つ♡ */
}

.logo2{
  height: 300px;
  width: 600px;

}

header {
  
  padding: 15px;
  text-align: center;
  color: #FF6347;
}

header .logo {
  font-size: 2.5em;
  font-family: 'Sacramento', cursive; /* ファンタジー感のあるフォント */
}

nav ul {
  list-style: none;
  padding: 0;
}

nav ul li {
  display: inline-block;
  margin: 0 15px;
}

nav ul li a {
  text-decoration: none;
  color: #FF6347;
  font-size: 1.2em;
}

.work-list {
  max-width: 1200px;
  margin: 40px auto;
  padding: 20px;
  
  text-align: center;
}

.work-list h1 {
  font-size: 3em;
  color: #FF6347;
  margin-bottom: 20px;
 font-family: 'DotGothic16', sans-serif;
}

.work-items {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.work-item {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  background-color: #ebe4e4;
  border-radius: 15px;
  overflow: hidden;
  padding: 20px;
  transition: transform 0.3s ease-in-out;
  opacity: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  border: 2px solid  #FF6347; 
}

.work-item img {
  width: 100%;
  height: 400px;
  margin-left: 30px;
  object-fit: contain;
  border-radius: 20px;
  transition: transform 0.3s;
}

.work-item:hover {
  transform: scale(1.05);
}

.work-item:hover img {
  transform: scale(1.1);
}

.work-details {
  padding-left: 70px;
  text-align: left;
  width: 80%;
  margin: 50px;
}

.work-details h2 {
  font-size: 1.5em;
  color: #FF6347;
  margin-bottom: 10px;
  font-family: 'Alfa Slab One', serif; /* オシャレで力強いファンタジー感のフォント */
}

.work-details p {
  font-size: 1em;
  margin-bottom: 10px;
}

.work-details button {
  padding: 10px 20px;
  background-color: #00CED1;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1em;
  font-family: 'DotGothic16', sans-serif;
  transition: background-color 0.3s;
}

.work-details button:hover {
  background-color: #FF6347;
  font-family: 'DotGothic16', sans-serif;
}

footer{
  text-align: center;
  padding: 30px 20px;
  background-color: #111;
  font-size: 0.9em;
  color: #aaa;
  margin-top: 60px;
}

/* アニメーション */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fadein {
  animation: fadeIn 1.5s ease-out forwards;
  opacity: 0;
  transform: translateY(40px);
}

.fadein:nth-of-type(2) {
  animation-delay: 0.3s;
}

.fadein:nth-of-type(3) {
  animation-delay: 0.6s;
}

.fadein:nth-of-type(4) {
  animation-delay: 0.9s;
}

/* モバイル対応 */
@media screen and (max-width: 768px) {
  .work-item {
    flex-direction: column;
  }
}

@media screen and (max-width: 600px) {
  .main nav ul {
    gap: 0.5rem;        /* さらに狭く */
    padding: 0 0.5rem;  /* 画面端に近づける */
  }

  .main nav a {
    font-size: 1rem;
    padding: 0.2rem 0.6rem;
  }
}