html {
  scroll-behavior: smooth;
}

/* フォントの設定 */
body {
    font-family: 'M PLUS 1p', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    background-color: #ffffff; /* 白背景 */
    color: #304040;            /* evergreen */
    background-image: none;/* url("../images/background.jpg") no-repeat center center fixed;*/
    background-size: auto;
  }
  
  /* セクションの共通スタイル */
  section {
    padding: 40px 20px;
    max-width: 900px;
    margin: 0 auto;
    background-color: #ffffff; /* 白背景 */
  }

  section p {
    font-size: 0.95rem;   
    line-height: 1.7;     
    font-weight: 300;  
    color: #304040; /* evergreen */
    text-align: center;   
  }
  
  #services ul {
    text-align: center;
    padding-left: 0;        /* ← リストの左余白を消す */
    list-style-position: inside; 
  }

  #services li {
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.7;
    color: #304040; /* evergreen */
    margin: 10px auto;
  }


  h1, h2 {
    font-weight: 700;
    margin-bottom: 10px;
    text-align: center;
  }

  h1 {
    font-size: 1em;
    margin-top: 0;
  }
  
 h2:not(.page-title) {
  font-size: 1em;
  color: #444;
}
  
  /* ヒーローエリア */
  .hero {
    height: 45vh; 
    overflow: hidden;
    background: url("../images/mist-forest.jpg") no-repeat center center;
    background-size: cover;
    background-attachment: scroll; /* ← ← ← スクロールで動く */
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 90px 0 0;
    position: relative;
    }

  .hero-img {
    width: 30%;
    height: auto;
    margin-left: 10%;
    max-width: 300px;
    display: block;
    margin: 10px auto 0; 
    z-index: 1;
    position: relative;
    border: 1px solid#1A405F; /* aegean blue*/
    background:white;
  }
  
  .hero-title-img {
  width: 300px;        
  max-width: 80%;    
  height: auto;
  display: block;
  margin-bottom: 10px;
  }
  
 .floating-shape-wrap {
    position: absolute;
    top: 0;
    left: 100px;
    width: 100%;
    pointer-events: none;
 }

  .floating-shape {
   position: absolute;
   width: 500px;
   height: auto;
   animation: floatShape 6s ease-in-out infinite;
 }

 .floating-shape.back {
  opacity: 0.3;
  top: 150px;
  left: 20px;
  width: 700px;
  height: auto;
  animation-delay: 1s;
}

.floating-shape.front {
  top: 150px;
  left: 60px;
}
  
@keyframes floatShape {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(10px);
  }
}  
  
  .hero-inner {
    position: absolute;
    top: 30%;
    left: 20%;
    transform: translateY(50%);
    text-align: left;
  }

.hero-inner h1 {
    text-align: left;
    font-size: clamp(1.8rem, 4vw, 3rem);
    letter-spacing: 1px;
    color: #04202C; /* forest */
    margin-bottom: 1px;
  }
  
  .hero-inner p {
    font-size: 1.2rem;
    color:#1A405F; /* aegean blue*/
    margin-top: 1px;
    margin-left: 80px;
  }

#contact {
  padding-top: 15px;
}

#contact .page-title {
  padding-top: 15px;
  margin-top: 0;
}
  /* Worksセクション */
 .works-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 10px;
}

.work-item {
  width: 100px;
  text-align: center;
}

.work-item a {
  text-decoration: none;
  color: inherit;
  display: inline-block;
  text-align: center;
}

.work-item a:hover img {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}

.work-item a:hover p {
  color: #1A405F; /* aegean blue*/
  transition: color 0.3s ease;
}

.work-item img {
  width: auto;
  height: 60px;
  border-radius: 50%; 
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.work-item p {
  margin-top: 10px;
  font-size: 1rem;
  color: #867666; /* pewter */
  font-family: 'Homemade Apple', cursive;
  letter-spacing: 0.5px;
}

.work-link {
  text-decoration: none;
  color: inherit; /* フォントカラーそのままにする */
}

    .site-header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        background-color: rgba(255, 255, 255, 0.1); /* ← 透かす */
        backdrop-filter: blur(12px);
        z-index: 1000;
        transition: background-color 0.3s ease, box-shadow 0.3s ease;
      }
    
      .site-header.scrolled {
        background-color: rgba(255, 255, 255, 0.0);
        backdrop-filter: blur(12px);
      }
      
      .header-inner {
        max-width: 1200px;
        margin: 0 auto;
        padding:  25px 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
      }
      
      .logo a {
        font-size: 1.4rem;
        font-weight: bold;
        text-decoration: none;
        color: #333;
      }
      
      .main-nav ul {
        display: flex;
        gap: 20px;
        list-style: none;
        margin: 0;
        padding: 0;
      }

      /* ロゴ画像 */
    .logo-img {
        height: 75px;
        vertical-align: middle;
      }
  
  /* ハンバーガーボタンはPCでは非表示 */
  .menu-toggle {
    z-index: 3000;
    display: none;
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
  }
  
  /* PC用ナビは横並びで常に表示 */
  .main-nav {
    z-index: 2000; 
    display: flex;
    text-decoration: none;
    color:#1A405F; /* aegean blue*/
    font-weight: 500;
    font-size: 1.4rem; 
  }

  /* 全体のaタグ */
  a {
    color:#1A405F; /* aegean blue*/
    text-decoration: underline; /* 必要なら */
  }

  /* ホバーしたときの色*/
  a:hover {
    color: #04202C; /* forest */
  }

/* ─────────────────────────────
   スマホ対応：幅768px以下のときのスタイル
───────────────────────────── */
@media screen and (max-width: 768px) {
    section {
      padding: 60px 15px;
    }
  
    .hero-inner h1 {
      font-size: 1.8rem;
    }
  
    .hero-inner p {
      font-size: 0.95rem;
    }
  
    .works-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
  }

  .work-item {
    width: 20%; 
    max-width: 150px;
  }
  
    #services li {
      display: block;
      margin: 10px auto;
      width: fit-content;
      padding: 8px 16px;
    }
  
    .menu-toggle {
      display: block;
    }
  
    .main-nav {
      display: none;
      position: absolute;
      top: 70px;
      right: 20px;
      background:rgba(255, 255, 255, 0.85); 
      backdrop-filter: blur(10px);           
      border-radius: 75px;                   
      border: 1px solid #ddd;
      padding: 35px 25px;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
      z-index: 1001;
      transition: all 0.3s ease;
    }
    
    .main-nav.open {
      display: block;
      opacity: 1;
      transform: translateY(0);
    }
  
    .main-nav ul {
      pointer-events: auto;
      flex-direction: column;
      gap: 10px;
    }
  }

      
  .main-nav a {
    font-family: 'Sen', sans-serif;
    letter-spacing: 0.5px;
    text-decoration: none;
    color: #1A405F; /* aegean blue*/
    font-weight: 500;
    font-size: clamp(0.9rem, 1.5vw, 1.2rem); 
    pointer-events: auto; 
  }
  
  .main-nav a:hover {
    color: #1A405F; /* aegean blue*/
  }

  /* オーバーレイ背景 */
  .overlay {
    z-index: 1000;
    display: none;_
    position: fixed;
    inset: 0;
    background:rgba(255, 255, 255, 0.0);
    z-index: 1000;
    transition: opacity 0.3s ease;
  }
.overlay.show {
  display: block;
}

.site-footer {
  background-color:#ffffff; /* 白背景 */ /* 背景色をページ全体と統一 */
  padding: 40px 0;
  text-align: center;
}

.footer-inner {
  display: flex;
  justify-content: center;
  gap: 30px;
}

.footer-icon {
  width: clamp(28px, 5vw, 40px);
  height: clamp(28px, 5vw, 40px);
  transition: opacity 0.3s ease;
}

.footer-icon:hover {
  opacity: 0.7;
}

/* worksページでは heroセクションとfloating shapeを非表示 */
body.works-page .hero,
body.works-page .floating-shape-wrap {
  display: none;
}

/* works.html 専用のレイアウト */

.under-construction {
  text-align: center;
  font-size: 1.2rem;
  color: #666;
  padding: 100px 20px;
}

h2.page-title {
  font-family: 'Ms Madi', cursive;
  font-size:  clamp(2rem, 3vw, 3rem);        
  color: #999999;
  text-align: center;
  margin-bottom: 1px;
  line-height: 1.1;
  text-shadow: none;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s ease-out forwards;
  padding-top: 40px; 
}

.category-icon {
  width: 80px;
  height: auto;
  display: block;
  margin: 10px auto;
}

.work-section {
  padding: 80px 20px;
  max-width: 900px;
  margin: 0 auto;
  background-color: #ffffff; /* 白背景 */
}

.work-section h3 {
  font-family: 'Homemade Apple', cursive;
  font-size: 1rem;
  color: #867666; /* pewter に近い柔らかさ */
  text-align: center;
  margin-top: 1.2px;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}

.category-icon {
  width: 60px;
  height: auto;
  display: block;
  margin: 0 auto 20px;
}

body.works-page .work-item h3 {
  font-size: 1rem;
  color: #867666; 
  font-family: 'Homemade Apple', cursive;
  letter-spacing: 0.5px;
  text-align: center;
  margin-bottom: 10px;
}

body.works-page .work-item p {
  font-size: 0.9rem;
  color: #304040;
  font-weight: 300;
  line-height: 1.7;
  text-align: center;
}

body.works-page .work-item {
  width: 180px;
  margin: 0 auto 40px;
  padding-top: 40px;
  text-align: center;
}

body.works-page .work-item img {
  height: 60px;
  width: auto;
}

.icon-caption {
  font-size: 0.8rem;
  color: #666;
  margin-top: 0.3em;
  margin-bottom: 1em;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 20px;
  max-width: none;
  width:100%;
  margin: 0 auto;
  padding: 0 20px;
  justify-items: center;
}

.gallery-grid img {
  width: 100%;
  max-width: 160px;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  cursor: pointer;
}

.gallery-grid img:hover {
  transform: scale(1.03);
}

.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
}

.modal-content {
  max-width: 90vw;
  max-height: 80vh;
  width: auto;
  height: auto;
  display: block;
  margin: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.modal-content {
  transition: transform 0.3s ease;
}

.modal-content:hover {
  transform: scale(1.01);
}

/* ←→ボタン */
.modal .prev,
.modal .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 48px;
  color: white;
  font-weight: bold;
  cursor: pointer;
  user-select: none;
  z-index: 10001;
  padding: 10px 20px;
  background-color: rgba(0,0,0,0.3); 
  border-radius: 5px;
}

.modal .prev {
  left: 20px;
}

.modal .next {
  right: 20px;
}

 @keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/*about.htmlレイアウト*/
.about-content {
  text-align: center;
  padding: 40px 20px;
}

.about-img {
  max-width: 200px;
  width: 80%;
  height: auto;
  border-radius: 12px;
}

.about-text {
   font-size: 0.8rem;
  color: #666;
  margin-top: 0.3em;
}