/* ========================
   共通レイアウトと基本設定
   ======================== */
   body {
    background: #a0a0a0;
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif !important;
    font-weight: 700;
    color: black;
  }
  
  /* ========================
     リンクのスタイル設定
     ======================== */
  a {
    color: black !important;
    text-decoration: underline;
  }
  
  a:visited {
    color: black !important;
  }
  
  a:hover {
    color: black !important;
    text-decoration: underline;
  }
  
  a:active {
    color: black !important;
  }
  
  .scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
  .scrollbar::-webkit-scrollbar {
    display: none;
  }
  
  /* ========================
     PC用スタイル
     ======================== */
  @media only screen and (min-width: 769px) {
    body {
      height: 100svh;
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
      position: relative;
      cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><circle cx="10" cy="10" r="8" fill="black"/></svg>') 10 10, auto;
    }
  
    .snap-container {
      width: 100vw;
      height: 100svh;
      overflow-x: hidden;
      overflow-y: scroll;
      scroll-snap-type: y mandatory;
      scroll-behavior: smooth;
      position: relative;
      -ms-overflow-style: none;
      scrollbar-width: none;
    }
    .snap-container::-webkit-scrollbar {
      display: none;
    }
    .snap-section {
      width: 100%;
      height: 100svh;
      scroll-snap-align: start;
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
      overflow: hidden;
    }
    .snap-section img {
      width: 100%;
      height: 100%;
      object-fit: contain;
      object-position: center;
      display: block;
    }
  
    /* PC: テキストセクションはスクロール可能に */
    .snap-section.content-section {
      height: 100svh;
      overflow-y: auto;
      padding: 0;
      margin-top: 0;
      box-sizing: border-box;
      align-items: flex-start;
    }
    .snap-section.content-section p {
      padding: 5vh 5vw;
      margin: 0;
      max-width: none;
      width: 100%;
      box-sizing: border-box;
    }
  
    .snap-section:not(:first-child):not(.content-section) {
      margin-top: 2vh;
    }
    .snap-section:not(.content-section) {
      height: calc(100vh - 1vh);
    }
  
    /* 動画セクション iframe PC用設定 */
    .video-section {
      padding: 5vh 10vw;
      box-sizing: border-box;
    }
    .video-section iframe {
      width: 100%;
      height: 100%;
      border-radius: 1rem;
      box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    }
  }
  
  /* ========================
     モバイル用スタイル
     ======================== */
  @media only screen and (max-width: 768px) {
    html {
      height: auto !important;
      overflow: auto !important;
      -webkit-overflow-scrolling: touch;
    }
    
    body {
      height: auto !important;
      min-height: 100vh !important;
      display: block !important;
      overflow: auto !important;
      overflow-x: hidden !important;
      position: static !important;
      -webkit-overflow-scrolling: touch;
    }
  
    .snap-container {
      width: 100% !important;
      height: auto !important;
      min-height: 100vh !important;
      overflow: visible !important;
      scroll-snap-type: none !important;
      scroll-behavior: auto !important;
      display: block !important;
      position: static !important;
    }
  
    .snap-section {
      width: 100% !important;
      height: auto !important;
      min-height: auto !important;
      scroll-snap-align: none !important;
      display: block !important;
      overflow: visible !important;
      position: static !important;
      align-items: unset !important;
      justify-content: unset !important;
    }
  
    /* モバイル: 最初のセクション（タイトル）のみフルスクリーン */
    .snap-section:first-child {
      height: 100vh !important;
      min-height: 100vh !important;
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
    }
  
    .snap-section:first-child img {
      width: 100% !important;
      height: 100vh !important;
      object-fit: cover !important;
      object-position: center !important;
    }
  
    /* モバイル: コンテンツセクション（作品リスト）*/
    .snap-section.content-section {
      min-height: 100vh !important;
      height: auto !important;
      display: block !important;
      overflow: visible !important;
      padding: 0 !important;
      margin: 0 !important;
      position: static !important;
    }
  
    .snap-section.content-section > div {
      width: 100% !important;
      height: auto !important;
      min-height: calc(100vh - 24vh) !important;
      overflow: visible !important;
      padding: 12vh 5vw !important;
      box-sizing: border-box !important;
      display: block !important;
      position: static !important;
    }
  
    /* モバイル: その他のセクション */
    .snap-section:not(:first-child):not(.content-section) {
      height: auto !important;
      min-height: auto !important;
      margin: 2vh 0 !important;
      padding: 0 !important;
    }
  
    .snap-section:not(:first-child):not(.content-section) img {
      width: 100% !important;
      height: auto !important;
      object-fit: contain !important;
      object-position: center !important;
      margin: 0 auto !important;
    }
  }
  
  /* 動画セクション iframe 共通設定 */
  .video-section iframe {
    width: 100%;
    height: 100%;
    border: none;
  }
  
  /* タイトル背景 */
  .title-section {
    background-image: url('./title.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }
  .title-section h1 {
    text-align: center;
  }
  
  /* ========================
     見出しサイズ
     ======================== */
  h1 {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    font-size: 4rem;
    position: relative;
    z-index: 10;
    color: black;
  }
  
  @media only screen and (max-width: 768px) {
    h1 {
      font-size: 10vw !important;
    }
  }
  
  ha {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    font-size: 4rem;
    position: relative;
    z-index: 10;
    color: black; 
    background-color: #a0a0a0; 
    padding: 0.2em 1em;
    border-radius: 0;
    display: block;
    width: 100vw;
    text-align: center;
  }
  
  h2 {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    font-size: 2.5vw;
  }
  h2, h3, h4, h5, h6 {
    margin: 0;
    font-family: 'Roboto', sans-serif;
  }
  
  /* ========================
     ナビゲーション要素
     ======================== */
  /* コーナーボタン */
  .corner-button {
    position: fixed;
    background: none;
    border: none;
    font-size: 2.4rem;
    font-weight: 700;
    cursor: pointer;
    z-index: 1000;
    min-width: 4.5em;
    color: black;
    text-decoration: none;
  }
  
  .corner-button:hover {
    color: black;
    text-decoration: none;
  }
  
  .corner-button:visited {
    color: black;
    text-decoration: none;
  }
  
  .corner-button:active {
    color: black;
    text-decoration: none;
  }
  
  .corner-button.fixed.home {
    top: 2vh;
    left: 2vh;
    text-align: left;
  }
  .corner-button.fixed.about {
    top: 2vh;
    right: 2vh;
    text-align: right;
  }
  .corner-button.work {
    bottom: 2vh;
    left: 2vh;
    text-align: left;
  }
  .corner-button.contact {
    bottom: 2vh;
    right: 2vh;
    text-align: right;
  }
  
  /* スクロール案内（PC専用） */
  .scroll-instruction {
    position: fixed;
    top: 2vh;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.2rem;
    font-weight: 700;
    color: black;
    z-index: 1000;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }
  
  /* ナビゲーションドット（PC専用） */
  .navigation-dots {
    position: fixed;
    left: 3vh; 
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 1rem; 
    z-index: 1000;
  }
  
  .nav-dot {
    width: 5px;
    height: 5px;
    aspect-ratio: 1 / 1;
    display: block;
    border-radius: 50%;
    background-color: black;
    border: none;
    padding: 0;
    margin: 0;
    line-height: 0;
    box-sizing: border-box;
  }
  
  .nav-dot:hover {
    background-color: black;
    transform: scale(3);
  }
  
  .nav-dot.active {
    background-color: red;
    transform: scale(3);
  }
  
  .nav-dot.text-section {
    width: 5px;
    height: 5px;
    aspect-ratio: 1 / 1;
    display: block;
    border-radius: 50%;
    background-color: white;
    border: none;
    padding: 0;
    margin: 0;
    line-height: 0;
    box-sizing: border-box;
  }
  
  /* 言語切り替え（PC） */
  .language-buttons {
    position: absolute;
    bottom: 2vh;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.5em;
  }
  .language-button {
    background: none;
    border: none;
    font-size: 1.0rem;
    font-weight: 700;
    cursor: pointer;
  }
  .language-separator {
    font-size: 1.0rem;
    line-height: 1;
  }
  
  /* フッターボタン（モバイル専用） */
  .footer-buttons {
    display: none;
    position: fixed;
    width: 100%;
    height: auto;
    z-index: 1000;
  }
  .footer-button {
    position: fixed;
    background: none;
    border: none;
    font-size: 1.8rem;
    font-weight: 700;
    color: black;
    cursor: pointer;
    min-width: 4.5em;
    z-index: 1000;
    text-decoration: none;
  }
  
  .footer-button:hover {
    color: black;
    text-decoration: none;
  }
  
  .footer-button:visited {
    color: black;
    text-decoration: none;
  }
  
  .footer-button:active {
    color: black;
    text-decoration: none;
  }
  
  .footer-button.work {
    bottom: 2vh;
    left: 2vh;
  }
  .footer-button.contact {
    bottom: 2vh;
    right: 2vh;
  }
  .footer-language {
    position: fixed;
    bottom: 2vh;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.5em;
  }
  
  /* テキスト */
  .content-section p {
    max-width: 90%;
    margin: 0 auto;
    padding: 0 5vw;
    overflow-wrap: break-word;
    hyphens: auto;
    font-size: 2rem;
  }
  
  /* ========================
     モバイル専用の調整
     ======================== */
  @media only screen and (max-width: 768px) {
    /* PC専用要素を完全に隠す */
    .scroll-instruction {
      display: none !important;
    }
    .navigation-dots {
      display: none !important;
    }
    .language-buttons {
      display: none !important;
    }
  
    /* PC用のWorkとContactボタンを隠す */
    .corner-button.work {
      display: none !important;
    }
    .corner-button.contact {
      display: none !important;
    }
  
    /* モバイル専用要素を表示 */
    .footer-buttons {
      display: block !important;
    }
  
    /* モバイル用ボタンサイズ調整 */
    .corner-button.fixed {
      font-size: 1.8rem !important;
      color: black !important;
      text-decoration: none !important;
    }
    
    .corner-button.fixed:hover {
      color: black !important;
      text-decoration: none !important;
    }
    
    .corner-button.fixed:visited {
      color: black !important;
      text-decoration: none !important;
    }
    
    .corner-button.fixed:active {
      color: black !important;
      text-decoration: none !important;
    }
    
    .footer-button {
      font-size: 1.8rem !important;
      color: black !important;
      text-decoration: none !important;
    }
  
    .footer-button:hover {
      color: black !important;
      text-decoration: none !important;
    }
    
    .footer-button:visited {
      color: black !important;
      text-decoration: none !important;
    }
    
    .footer-button:active {
      color: black !important;
      text-decoration: none !important;
    }
  
    /* モバイル用言語スイッチを縦回転で右側に配置 */
    .footer-language {
      position: fixed !important;
      top: 50vh !important;
      right: 2vh !important;
      transform: translateY(-50%) rotate(90deg) !important;
      transform-origin: right center !important;
      display: flex !important;
      align-items: center !important;
      gap: 0.5em !important;
      z-index: 1000 !important;
      left: auto !important;
      bottom: auto !important;
    }
    .footer-language .language-button {
      background: none !important;
      border: none !important;
      font-size: 1.0rem !important;
      font-weight: 700 !important;
      cursor: pointer !important;
      color: black !important;
      text-decoration: none !important;
    }
    
    .footer-language .language-button:hover {
      color: black !important;
      text-decoration: none !important;
    }
    
    .footer-language .language-button:visited {
      color: black !important;
      text-decoration: none !important;
    }
    
    .footer-language .language-button:active {
      color: black !important;
      text-decoration: none !important;
    }
  
    /* モバイル用テキストサイズ */
    .content-section p {
      font-size: 5vw !important;
    }
  }