@font-face {
  font-family: 'TamanegiFont';
  src: url('./assets/fonts/Tamanegi-Kaisho-Geki-FreeVer-7.woff2') format('woff2'),
       url('./assets/fonts/Tamanegi-Kaisho-Geki-FreeVer-7.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

body {
    margin: 0;
    background-color: #222;
    color: white;
    font-family: "Passion One", 'TamanegiFont', sans-serif; 
}

.main-header {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.content {
    position: relative; 
    z-index: 1; 
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.content img {
    max-width: 550px;
    width: 90%;
    height: auto;
}

.dummy-section {
    padding: 100px 50px;
    text-align: center;
}

/* 背景画像の設定（webpを使うように修正） */
.section-bg-01 { background-image: url('./assets/fugaku2.webp'); }
.section-bg-02 { background-image: url('./assets/fugaku4.webp'); }
.section-bg-03 { background-image: url('./assets/fugaku3.webp'); }
.section-bg-04 { background-image: url('./assets/fugaku1.webp'); }
.section-bg-05 { background-image: url('./assets/fugaku5.webp'); }

.section-bg-01, .section-bg-02, .section-bg-03, .section-bg-04, .section-bg-05 {
  background-size: cover;
  background-position: center center;
}

/* テキストコンテナのスタイル（レスポンシブ対応版） */
.text-container {
    background-color: rgba(216, 216, 216, 0.6);
    padding: 2em;
    border-radius: 10px;
    width: 70%;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    cursor: pointer; /* クリックできることが分かるようにカーソルを変える */
}

/* 日記セクションのリンク用スタイル */
a.text-container-link {
    display: block;
    text-decoration: none;
}
a.text-container-link .text-container {
    cursor: pointer;
}

/* h2とpの共通スタイル */
.dummy-section h2,
.dummy-section p {
    color: #272b15;
}

/* PC向けの文字サイズ */
.dummy-section h2 { font-size: 5em; }
.dummy-section p { font-size: 1.8em; }

/* スマホ向けの文字サイズ（メディアクエリを復活！） */
@media (max-width: 768px) {
  .text-container {
    width: 90%;
    padding: 1.5em;
  }
  .dummy-section h2 { font-size: 2.2em; }
  .dummy-section p { font-size: 1em; }
}

/* ポップアップのスタイル */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 100;
}
.modal-overlay.visible { display: flex; }
.modal-content {
    background-color: #cca179;
    color: #333;
    padding: 30px;
    border-radius: 10px;
    max-width: 80%;
    position: relative;
}
.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 2em;
    cursor: pointer;
}