
section {
  margin: 80px 0 80px 0;
}

body {
    /*font-family: 'Open Sans', Helvetica, Arial, sans-serif;*/
    font-size: 17px;
    font-weight: 300;
    color: #666666;
    overflow-x: hidden;
}
a { transition: all 0.3s ease; }
a:hover, a:focus, a.active {
    color: #58d5ff;
    text-decoration: none;
}
.tm-welcome-section {
    height: 83vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #E7A7C0;
    background-image: url('../img/insertion-header.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    color: white;
    max-height: 700px;
    min-height: 400px;
}


.navbar-nav { margin-right: 0; }
.nav-link { font-size: 1.4rem; }.tm-site-description {
    font-size: 1.6rem;
    color: white;
}
.navbar-expand-sm .navbar-nav .nav-link { padding: 10px 20px; }
.navbar-nav { flex-direction: row; }
.tm-site-name { font-size: 4rem; }
.tm-search-form-container {
    border-radius: 15px;
    border: 4px solid white;
    background-color: #e8a48b;
    margin-top: -54px;
    -webkit-box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.75);
    -moz-box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.75);
    box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.75);
}
.tm-search-form-container p{
    color:white;
    padding:10px;
    text-align:center;
}


.tm-album-col {
    display: flex;
    justify-content: center;
}

/*---------------*/
/***** Sadie *****/
/*---------------*/.grid figure {
    position: relative;
    float: left;
    overflow: hidden;
    cursor: pointer;
}
.grid figure img {
    position: relative;
    display: block;
    min-height: 100%;
    max-width: 100%;
}
.grid figure figcaption {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 2em;
    color: #fff;
    backface-visibility: hidden;
}
figure.effect-sadie figcaption::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: -webkit-linear-gradient(top, rgba(72,76,97,0) 0%, rgba(72,76,97,0.8) 75%);
    background: linear-gradient(to bottom, rgba(72,76,97,0) 0%, rgba(72,76,97,0.8) 75%);
    content: '';
    opacity: 0;
    -webkit-transform: translate3d(0,50%,0);
    transform: translate3d(0,50%,0);
}
figure.effect-sadie h2 {
    font-size: 3rem;
    padding: 1.2rem;
    position: absolute;
    bottom: 10%;
    left: 0;
    width: 100%;
    opacity: 0;
    -webkit-transition: -webkit-transform 0.35s, color 0.35s;
    transition: transform 0.35s, color 0.35s;
    -webkit-transform: translate3d(0,-80%,0);
    transform: translate3d(0,-80%,0);
}
figure.effect-sadie figcaption::before,
figure.effect-sadie p {
    -webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
    transition: opacity 0.35s, transform 0.35s;
    font-size: 1.1rem;
    color:white;
}
figure.effect-sadie p {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 1.2rem;
    margin-bottom: 0;
    width: 100%;
    opacity: 0;
    -webkit-transform: translate3d(0,10px,0);
    transform: translate3d(0,10px,0);
    color:white;
}
figure.effect-sadie:hover h2 {
    opacity: 1;
    -webkit-transform: translate3d(0,-50%,0) translate3d(0,-10px,0);
    transform: translate3d(0,-50%,0) translate3d(0,-10px,0);
    color:white;
}
figure.effect-sadie:hover figcaption::before ,
figure.effect-sadie:hover p {
    opacity: 1;
    -webkit-transform: translate3d(0,0,0);
    transform: translate3d(0,0,0);
    color:white;
}


.tm-text-blue-dark { color: #006699; }




.nav-tabs .nav-item {
    margin-bottom: 20px;
    width: 100%;
}
.nav-tabs .nav-item:last-child { margin-bottom: 0; }


.nav-tabs .nav-link {
    border-radius: 0;
    border: none;
    color: #666666;
}
.nav-tabs { border-bottom: 0; }
.nav-tabs .nav-item.show .nav-link,.nav-tabs .nav-link.active,.nav-tabs .nav-link:hover {
    background-color: #EDAABC;
    color: white;
}





/* Reset restrictive max-width */
.tm-albums-container {
  max-width: 100%;
  margin: 40px auto;
  padding: 0 15px;
}

/* Ensure grid items scale properly */
.tm-album-col {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.grid figure img {
  width: 100%;
  height: auto;
  object-fit: cover;
}


/* Navbar styling */
.tm-navbar-container {
  position: fixed; /* 画面上部に固定 */
  top: 0;
  left: 0;
  width: 100%; /* 全幅 */
  z-index: 1000; /* 他の要素より前面 */
  background-color: #f9e3eb; /* ピンクテーマ */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* 影 */
}

.navbar {
  padding: 0.5rem 1rem; /* Bootstrapのパディング調整 */
}

.navbar-brand {
  font-size: 1.5rem;
  color: #d6688f;
}

.navbar-brand:hover {
  color: #b25e6d;
}

.nav-link {
  font-size: 1rem;
  color: #666666;
  padding: 10px 10px;
}

.nav-link:hover,
.nav-link.active {
  color: #d6688f;
  background-color: #edaabc;
  border-radius: 5px;
}

.navbar-toggler {
  border-color: #d6688f;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(214, 104, 143, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
/* メインコンテンツのマージン調整 */
.tm-main {
  margin-top:50px; /* ナビバーの高さに合わせる */
}

/* モバイルでの調整 */
@media (max-width: 767px) {
  .tm-main {
    margin-top: 55px; /* モバイルではナビバーがコンパクト */
  }
  .navbar-nav {
    flex-direction: column; /* モバイルで縦並び */
    text-align: center;
  }
  .nav-link {
    padding: 15px;
    width: 100%; /* メニュー項目を全幅に */
  }
}



/* モバイル向けのスタイル（追加） */
@media (max-width: 767px) {
    figure.effect-sadie figcaption::before {
        opacity: 1; /* グラデーション背景を常に表示 */
        -webkit-transform: translate3d(0,0,0); /* 初期位置に */
        transform: translate3d(0,0,0);
    }

    figure.effect-sadie h2 {
        opacity: 1; /* 常に表示 */
        -webkit-transform: translate3d(0,-50%,0) translate3d(0,-10px,0); /* ホバー時の位置を初期状態に */
        transform: translate3d(0,-50%,0) translate3d(0,-10px,0);
        color: white;
        font-size: 2rem; /* モバイルではフォントサイズを少し小さく */
    }

    figure.effect-sadie p {
        opacity: 1; /* 常に表示 */
        -webkit-transform: translate3d(0,0,0); /* 初期位置に */
        transform: translate3d(0,0,0);
        color: white;
        font-size: 0.9rem; /* モバイルではフォントサイズを少し小さく */
    }

    /* ホバーエフェクトを無効化 */
    figure.effect-sadie:hover h2,
    figure.effect-sadie:hover figcaption::before,
    figure.effect-sadie:hover p {
        opacity: 1;
        -webkit-transform: translate3d(0,0,0);
        transform: translate3d(0,0,0);
    }
}