/* Custom styles can go here */

.map-responsive {
    overflow: hidden;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    position: relative;
    height: 0;
}
.map-responsive iframe {
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    position: absolute;
}

:root {
    --bs-primary: #28a745;
    --bs-primary-rgb: 40, 167, 69;
}

body {
    background-color: #f8f9fa;
    padding-top: 70px; /* Adjust this value based on the navbar height */
    line-height: 1.5;
    word-wrap: break-word; /* はみ出す場合は改行 */
    overflow-wrap: break-word; /* word-wrapの新しい名称 */
}

.btn-primary {
    --bs-btn-bg: var(--bs-primary);
    --bs-btn-border-color: var(--bs-primary);
    --bs-btn-hover-bg: #228c3a;
    --bs-btn-hover-border-color: #228c3a;
}

a {
    color: var(--bs-primary);
}

a:hover {
    color: #228c3a;
}

.navbar-brand {
    font-weight: bold;
}

/* Carousel Hero Section */
#heroCarousel {
    position: relative;
    height: 60vh;
}
.carousel-inner, .carousel-item {
    height: 100%;
}
.hero-image {
    height: 100%;
    background-size: cover;
    background-position: center;
    /* 明度調整をキャンセル */
}
.hero-image-1 { background-image: url('../img/slide/image001.jpg'); }
.hero-image-2 { background-image: url('../img/slide/image002.jpg'); }
.hero-image-3 { background-image: url('../img/slide/image003.jpg'); }
.hero-image-4 { background-image: url('../img/slide/image004.jpg'); }
.hero-image-5 { background-image: url('../img/slide/image005.jpg'); }
.hero-image-6 { background-image: url('../img/slide/image006.jpg'); }
.hero-image-7 { background-image: url('../img/slide/image007.jpg'); }
.hero-image-8 { background-image: url('../img/slide/image008.jpg'); }
.hero-image-9 { background-image: url('../img/slide/image009.jpg'); }
.hero-image-10 { background-image: url('../img/slide/image010.jpg'); }
.hero-image-11 { background-image: url('../img/slide/image011.jpg'); }

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2); /* 透明度を上げる */
    z-index: 2;
}
.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    width: 80%;
}

.carousel-control-prev,
.carousel-control-next,
.carousel-indicators {
    z-index: 4; /* hero-content (z-index:3) より高く設定 */
}

/* Navbar Toggler Animation */
.navbar-toggler {
    outline: none !important; /* フォーカス時の枠線を消す */
    border: none !important; /* 枠線を消す */
    box-shadow: none !important; /* フォーカス時のシャドウも消す */
    padding: 0;
    height: 30px;
    width: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative; /* 子要素のposition: absolute の基準 */
    overflow: hidden; /* .hamburger--emphatic-r の overflow: hidden; に対応 */
}

.navbar-toggler .navbar-toggler-icon { /* hamburger-innerの代わりに使う */
    background-image: none;
    position: relative;
    width: 24px; /* 幅を少し狭めてみる */
    height: 2px;
    background-color: #333; /* 線の色 */
    transition: background-color 0.125s 0.175s ease-in; /* 中央の線のアニメーション */
    display: block;
    left: 0; /* 左寄せ */
}

.navbar-toggler .navbar-toggler-icon::before,
.navbar-toggler .navbar-toggler-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #333; /* 線の色 */
    transition: transform 0.125s cubic-bezier(0.6, 0.04, 0.98, 0.335),
                top 0.05s 0.125s linear; /* leftプロパティのtransitionを削除 */
    transform-origin: 50% 50%; /* 回転の起点を中央に設定 */
    left: 0; /* 左寄せ */
}

.navbar-toggler .navbar-toggler-icon::before {
    top: -7px; /* 初期位置 */
}

.navbar-toggler .navbar-toggler-icon::after {
    top: 7px; /* 初期位置 */
}

/* is-active 状態 */
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
    background-color: transparent !important; /* 中央の線を消す */
    transition-delay: 0s; /* アニメーション遅延をリセット */
    transition-timing-function: ease-out;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::before {
    left: 0; /* 水平位置を左に合わせる */
    top: 0; /* 中央に移動 */
    transform: rotate(45deg); /* 角度を調整 */
    transition: transform 0.125s 0.175s cubic-bezier(0.075, 0.82, 0.165, 1);
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::after {
    left: 0; /* 水平位置を左に合わせる */
    top: 0; /* 中央に移動 */
    transform: rotate(-45deg); /* 角度を調整 */
    transition: transform 0.125s 0.175s cubic-bezier(0.075, 0.82, 0.165, 1);
}

@media (max-width: 767.98px) { /* Bootstrapのsmブレークポイント以下 */
    .navbar-brand {
        font-size: 0.9em; /* フォントサイズを小さくする */
        white-space: normal; /* 改行を許可 */
        word-break: break-all; /* 長い単語でも改行 */
    }
    .navbar-brand img {
        width: 25px;
        height: 25px;
    }
}

/* Profile Page List Styles */
.profile-list-section ul {
    list-style-type: none; /* リストマーカーを消去 */
    padding-left: 1rem; /* 親階層は1字下げ */
}

.profile-list-section ul ul {
    padding-left: 1rem; /* 入れ子階層は1字下げ */
}

/* Custom Styles for employment.html and profile.html */

.small-text {
    font-size: 0.9em; /* 少し小さくする */
}

.compact-list-items p {
    margin-bottom: 0.25rem; /* 行間を狭くする */
    line-height: 1.3; /* 行の高さも調整 */
}

.compact-text-block p {
    margin-bottom: 0.25rem; /* 行間を狭くする */
    line-height: 1.3; /* 行の高さも調整 */
}
