/* リセットと基本設定 */
*,
::before,
::after {
  box-sizing: border-box;
  border-style: solid;
  border-width: 0;
  margin: 0;
}
body {
  font-family: "Hiragino Kaku Gothic", "Hiragino Sans", "Anton", sans-serif;
  overflow-y: auto;
  padding: 0;
}
ul {
  padding: 0;
  list-style: none;
}
a {
  background: transparent;
  text-decoration: none;
  color: inherit;
  font-size: 1.2rem;
  font-family: 'Anton', sans-serif;
  letter-spacing: 0.05em;
}

/* ヘッダー */
header.header01 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 1rem;
  min-height: 80px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  background-image: repeating-linear-gradient(to right, #a4e3e1, #a4e3e1 20px, #ffffff 20px, #ffffff 40px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 10;
}
.logo {
  width: 160px;
}
.logo img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}
nav.nav ul.item {
  display: flex;
}
li.list {
  padding-left: 1.5rem;
}

/* メニュー（スマホ） */
#menu-btn,
.nav-hidden {
  display: none;
    
}
@media (max-width: 1024px) {
  .gallery__item {
    width: calc((100% - 40px) / 3); /* 3列表示 */
  }
}
@media (max-width: 768px) {
 html,  body {
  overflow-x: hidden;
}
    .logo {
    width: 120px;
  }
  #menu-btn {
    display: block;
    width: 30px;
    height: 20px;
    position: fixed;
    top: 1rem;
    right: 0;
    z-index: 20;
  }
  #menu-btn span,
  #menu-btn span::before,
  #menu-btn span::after {
    content: "";
    height: 2px;
    width: 100%;
    border-radius: 3px;
    background: #3656a7;
    position: absolute;
    transition: 0.2s;
  }
  #menu-btn span {
    top: 0;
  }
  #menu-btn span::before {
    top: 8px;
      position: absolute;
  }
  #menu-btn span::after {
    top: 16px;
  }
  #nav-input:checked ~ #menu-btn span {
    top: 8px;
    transform: rotate(45deg);
  }
  #nav-input:checked ~ #menu-btn span::before {
    opacity: 0;
  }
  #nav-input:checked ~ #menu-btn span::after {
    top: 0;
    transform: rotate(-45deg);
  }
  nav.nav {
    width: 300px;
      max-width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    right: -100%;
    z-index: 2;
    background: #fff;
    transition: 0.5s;
  }
  #nav-input:checked ~ nav.nav {
    right: 0;
  }
    .nav-hidden.active { display: block; }
  nav.nav ul.item {
    display: block;
    padding: 4rem 2rem;
  }
  nav.nav ul.item li.list {
    padding-left: 0;
    padding-bottom: 1.5rem;
  }
    .history::before {
    left: 20px; /* 左寄せに変更 */
    transform: none;
  }
    
  .history__item::before {
    left: 50%; transform: translateX(-50%);
    
  }
  .history__item:nth-child(odd) {
  align-items: flex-start;
}
.history__item:nth-child(even) {
  align-items: flex-end;
}

  .history__item:nth-child(even),
  .history__item:nth-child(odd){
    justify-content: center;
  }   
    .circle img,
.history__image img {
  max-width: 90%;
  height: auto;
  transform: none;
    }
    .history__item {
  position: relative;
}

    .marshmallow-button{
        margin-top: 50px;
        margin-left: 20px;
    }
  .center-box {
    padding: 1rem;
  }

#nav-input {
  display: none;
}

        
  .history__text {
    margin-top: 10px;
  }
    @media (max-width: 768px) {
  .gallery__item {
    width: calc((100% - 20px) / 2); /* 2列表示に変更 */
  }

  #menu-btn {
    display: block; /* メニューボタンを表示 */
  }

  .nav-hidden {
    display: none; /* ナビゲーションは非表示のまま */
  }
}

}

/* ファーストビュー */
.fv-container {
  width: 100%;
  height: 60vh;
  background: url(./image/pengin.png) no-repeat center center;
  background-size: cover;
  position: relative;
  z-index: 1;
}

/* ひとことのスタイル */
.hitokoto {
  position: absolute;
  top: 20%;
  left: 2%; /* ← ここで「若干左寄り」に調整！ */
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.7);
  padding: 1rem 2rem;
  border-radius: 20px;
  font-size: 1.2rem;
  font-family: 'Zen Maru Gothic', sans-serif;
  color: dimgrey;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  opacity: 0;
  animation: fadeIn 2s ease-out forwards;
  animation-delay: 0.5s;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* Aboutセクション */
.about {
  padding: 1rem 0;
  margin: 0 auto;
  max-width: 1000px;
  border-radius: 10px;
  background-image: radial-gradient(#ffffff 10%, #a4e3e1 10%);
  background-size: 70px 70px;
  background-repeat: repeat;
  background-position: center;
  position: relative;
  z-index: 1;
    font-size: 1.2rem;
  color: #273c3b;
}
.about::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 10px;
  border: 2px dotted #ffffff;
  border-radius: 8px;
  pointer-events: none;
  z-index: 1;
}


h3 {
  position: relative;
  font-family: 'Anton', sans-serif;
  font-size: 2rem;
  color: #273c3b;
  text-shadow: 1px 1px 2px rgba(255,255,255,0.6);
  margin-bottom: 2.5rem;
}

h3::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 0;
  border-bottom: 2px dotted #ffffff;
}



@media (max-width: 768px)


{
  .about {
    background-size: 60px 60px;
  }
}
.center-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  padding: 2rem;
  text-align: center;
}
.circle {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 1rem;
}
.circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.center-box h2 {
  font-family: 'Anton', sans-serif;
  font-size: 2rem;
  color: #273c3b;
  margin-top: 1.5rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  position: relative;
}
.center-box h2::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  background-color: #a4e3e1;
  margin: 0.5rem auto 0;
  border-radius: 2px;
}
.center-box p {
  font-family: "Hiragino Kaku Gothic ProN", sans-serif;
  font-size: 1rem;
  line-height: 1.8;
  color: #333;
  background: rgba(255, 255, 255, 0.8);
  padding: 1rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  width: 600px;
  max-width: 90%;
  margin: 1rem auto 0;
}

.social-links {
  text-align: center;
  margin: 3rem 0;
}

.link-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  align-items: center;
}

.x-button {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background: linear-gradient(45deg, #a4e3e1, #ffd6e0);
  color: #fff;
  font-size: 1.1rem;
  font-weight: bold;
  font-family: 'Hiragino Kaku Gothic ProN', sans-serif;
  border-radius: 30px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid #fff;
}

.x-button:hover {
  background: linear-gradient(45deg, #ffa3e0, #a4e3e1);
  transform: scale(1.05);
  box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

.nico-frame iframe {
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    
    
}
.nico-card {
  text-align: center;
}

.nico-label {
  font-size: 1rem;
  font-weight: bold;
  color: #555;
  background-color: #fff8f8;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 0.5rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  font-family: 'Hiragino Kaku Gothic ProN', sans-serif;
}

.marshmallow-button {
  display: inline-block;
  background: linear-gradient(45deg, #a4e3e1, #ffd6e0);
  color: white;
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: 1rem;
  font-weight: bold;
  padding: 0.8rem 1.5rem;
  border-radius: 30px;
  text-decoration: none;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  border: 2px solid white;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: absolute;
  top: 92%;
  left: 21.5%; /* ← ここで左寄りに調整（%で微調整できる） */
  transform: translate(-10%, -10%);
}

.marshmallow-button:hover {
  transform: scale(1.2);
  box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}


/* Workセクション */
.work {
  background-color: #ffffff;
  background-image:
    linear-gradient(to right, #a4e3e1 1px, transparent 1px),
    linear-gradient(to bottom, #a4e3e1 1px, transparent 1px);
  background-size: 40px 40px; /* 方眼のサイズ（調整可能） */
  background-position: center;
    z-index: 0;
}

.center-box2 h1 {
  text-align: center;
  font-family: 'Anton', sans-serif;
  font-size: 2.5rem;
  color: #273c3b;
  margin-bottom: 2rem;
}

/* タイムライン共通スタイル */
.history {
  position: relative;
  margin: 0 auto;
  padding: 0 15px;
  max-width: 1000px;
    
}

.history::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: paleturquoise;
  transform: translateX(-50%);
  z-index: 0;
}

.history__item {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 2rem;
  position: relative;
    z-index: 0;
}

.history__item:nth-child(even) {
  justify-content: flex-end;
}

.history__item::before {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  background: paleturquoise ;
  border-radius: 50%;
  z-index: 1;
}

.history__item:nth-child(odd)::before {
  left: calc(50% - 5px);
}

.history__item:nth-child(even)::before {
  left: calc(50% - 5px);
}

.history__inner {
  max-width: 450px;
    z-index: 2;
}

.history__image img {
  display: block;
  max-width: 100%;
  box-shadow: 0 0 15px rgba(30, 29, 29, 0.33);
}

.history__text {
  padding-top: 10px;
  letter-spacing: 0.05em;
  margin-top: 15px;
  font-family: sans-serif;
}


.history__image {
  position: relative;
  z-index: 2; /* 丸より前に表示される */
}

/* スマホ表示（768px以下） */
@media (max-width: 768px) {
  .history::before {
    left: 50%;
    transform: translateX(-50%);
      content: "";
  }
 .history__inner {
    max-width: 90%;
     margin: 0 auto;}

  .history__item {
    flex-direction: column;
    margin-bottom: 2rem;
      position: relative;
  }

  .history__item:nth-child(odd) {
    align-items: flex-start;
    text-align: left;
  }

  .history__item:nth-child(even) {
    align-items: flex-end;
    text-align: right;
  }

  .history__item::before {
    position: absolute; 
    top: 10px;
    width: 10px;
    height: 10px;
    background: paleturquoise;
    border-radius: 50%;
    z-index: 0;
  }

  .history__item:nth-child(odd)::before {
    left: 0;
  }

  .history__item:nth-child(even)::before {
    right: 0;
  }

    .history__image img {
    width: 180px;
        max-width: 100%;
  height: auto;
  margin: 0 auto;
  position: relative;
  z-index: 2;
       
  }

  .history__text {
    margin-top: 10px;
  }
    .gallery__item {
  width: calc((100% - 20px) / 2);
}

}
/* Log */

* {
  padding: 0;
  margin: 0;
}


.gallery__list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px; /* 要素間の余白を統一 */
  padding: 0;
  margin: 0;
  list-style: none;
  justify-content: space-between;
  padding: 20px;
}
.gallery__item {
  width: calc((100% - 60px) / 4);
}

.gallery__item img {
  width: 100%;
    aspect-ratio: 4 / 3; /* 画像の縦横比を統一（任意） */
  object-fit: cover;
  display: block;
    border-radius: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);

}
.gallery__item a {
  transition: 0.5s;
    display: block;
}
.gallery__item a:hover {
  filter: opacity(0.7);
}
.gallery__item a:hover img {
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.15);
}
.gallery__header {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 30vh;
  text-align: center;
  color: #273C3B;
}
.section__title{
     font-size: 3rem; /* ここを調整してサイズ変更 */
  font-weight: bold;
}
/* フェードイン */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
/* ギャラリースマホ　*/

@media (max-width: 1024px) {
  .gallery__item {
    width: calc((100% - 40px) / 3); /* 3列表示 */
  }
}

@media (max-width: 768px) {
  .gallery__item {
    width: calc((100% - 20px) / 2); /* 2列表示 */
  }
}

@media (max-width: 480px) {
  .gallery__item {
   width: calc((100% - 10px) / 2); /* 2列表示に変更 */
    margin-bottom: 10px; /* 下に余白を追加（任意） */
  }
    }

#contact {
  background-color: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  text-align: center;
  padding: 2rem 1rem; /* 上下2rem、左右1remに統合 */
  box-sizing: border-box;
  max-width: 100%;
}

.contact__title {
  font-size: 2.5rem;
  font-weight: bold;
  text-align: center;
  color: #273c3b;
  margin-bottom: 1.5rem;
}

#contact2 {
  max-width: 100%;
  box-sizing: border-box;
}

 

.form-note{
    margin-bottom: 1.5rem; 
}

footer.footer01 {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  min-height: 80px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  background-image: repeating-linear-gradient(to right, #a4e3e1, #a4e3e1 20px, #ffffff 20px, #ffffff 40px);
  box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 10;
  font-size: 0.9rem;
  color: #333;
}


.gotop {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: linear-gradient(45deg, #a4e3e1, #ffd6e0);
  color: white;
  font-size: 1.5rem;
  font-weight: bold;
  text-align: center;
  line-height: 50px;
  border-radius: 50%;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  text-decoration: none;
  z-index: 9999;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid #fff;
  background: linear-gradient(45deg, #a4e3e1, #ffd6e0);
  color: white;
}
.gotop:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}
html {
  scroll-behavior: smooth;
    
}
.gotop:hover {
  transform: rotate(360deg) scale(1.1);
  transition: transform 0.6s ease;
}
/* スクロールバー全体の幅 */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

/* スクロールバーの背景（トラック） */
::-webkit-scrollbar-track {
  background: #fef6f9; /* やさしいピンク系背景 */
  border-radius: 10px;
}

/* スクロールバーのつまみ（サム） */
::-webkit-scrollbar-thumb {
  background: linear-gradient(45deg, #a4e3e1, #ffd6e0); /* うめおカラー！ */
  border-radius: 10px;
  border: 2px solid #fff; /* 白いふちどりでくっきり */
}

/* ホバー時のつまみの色変化 */
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(45deg, #87ceeb, #ffa3e0);
}
