:root {
    --color1: #333;
    --color2: #868686;
    --color3: #fff;
    --color-orange: rgba(255, 130, 0)
}

body, html {
    margin: 0;
    padding: 0;
    font-family: sans-serif;
    height: 100%;
    overflow-x: hidden; /* 横スクロール防止 */
}

body {
    display: flex;
    flex-direction: column;
}


.top-container,
.middle-container,
.bottom-container,
.middle-bottom-container{
    position: fixed;
    right: 0;
    width: calc(100% - 70px - 4vh);
}

.top-container {
    top: 0;
    height: 32vh;
}

.middle-container {
    top: 32vh;
    height: 55vh;
    display: flex;
    align-items: center;
    overflow-x: hidden;
}

.bottom-container {
    top: 87vh;
    height: 11vh;
}

.top-header {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.top-header nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

.top-header nav ul li {
    margin-left: 25px;
    position: relative; /* 点の位置決め用 */
}

.top-header nav ul li::before { /* オレンジ色の点 */
    content: '';
    position: absolute;
    left: -16px; /* テキストの左に配置 */
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background-color: var(--color-orange);
    border-radius: 50%;
}

.top-header nav ul li:first-child::before {
    display: none; /* 最初の要素の点は非表示 */
}

.top-header nav ul li a {
    color: #ffffff; /* やや明るいグレー */
    text-decoration: none;
    font-size: 0.8em;
    letter-spacing: 0.2em;
    transition: color 0.3s ease;
}

.top-header nav ul li a:hover {
    color: var(--color-orange);
}

.top-header nav ul li a.active {
    color: var(--color-orange);
    font-size: 0.9em;
}

/* ページタイトルとサブタイトルのスタイル */
.page-text {
    position: absolute;
    right: 1rem;
    bottom: 0;
    text-align: right;
}

.page-title {
    color: var(--color-orange);
    font-size: 6rem;
    font-weight: bold;
    margin-top: -1rem; /* サブタイトルとの間隔を詰める */
}

.page-subtitle {
    color: var(--color-orange);
    font-size: 1.5rem;
    font-weight: bold;
}

.main-content {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 20px;
    box-sizing: border-box;
    background: url('images/BG1.png') no-repeat center center/cover;
    z-index: -1;
}

.left-container {
    position: fixed;
    left: 0;
    top: 0;
    width: calc(70px + 4vh);
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 10000;
    box-sizing: border-box;
}

.sidebar {
    width: 70px;
    height: 71vh;
    background-color: #1a1a1a;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    margin: 2vh;
    transition: background-color 0.3s ease-in-out;
}

.logo {
    width: 100%;
    padding: 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-image {
    width: 50px;
    height: auto;
    object-fit: contain;
}

.menu-container {
    width: 100%;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hamburger-menu {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-bottom: 5px;
}

.hamburger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color2);
    color: var(--color2);
    margin: 5px 0;
    transition: background-color 0.3s ease;
}

.menu-text {
    font-size: 0.8em;
    color: #fff;
}

.map-container {
    position: relative;
    width: 70px;
    height: 25vh;
    z-index: 1000;
    box-sizing: border-box;
}

.map-placeholder {
    width: 70px;
    height: 23vh;
    background-color: #444;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8em;
    color: #888;
    margin: 0 2vh 2vh 2vh;
    background-image: url('images/map1.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer; /* クリック可能であることを示す */
    transition: opacity 0.3s ease;
}

.map-placeholder:hover {
    opacity: 0.8;
}

/* マップポップアップのスタイル */
.map-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80vw;
    height: 80vh;
    background-color: white;
    z-index: 10000;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    overflow: hidden;
}

.map-popup.show {
    display: block;
}

.map-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: var(--color-orange);
    color: white;
}

.map-popup-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #1b1b1b;
}

.map-popup-close {
    background: none;
    border: none;
    color: #1b1b1b;
    font-size: 2rem;
    font-weight: 300;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    cursor: pointer;
    line-height: 0.8;
}

.map-popup-content {
    width: 100%;
    height: calc(100% - 60px);
}

.map-popup-content iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* オーバーレイ */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
}

.overlay.show {
    display: block;
}

.member-bar {
    box-sizing: border-box;
    width: calc(100% - 2vh);
    height: calc(100% - 2vh);
    background-color: var(--color1);
    border-top-right-radius: 200px;
    border-bottom-right-radius: 200px;
    position: relative;
    z-index: 100;
    transition: background-color 0.3s ease;
}

.member-bar:hover {
    background-color: #000;
}

.member-bar:hover .members-text {
    color: var(--color-orange);
}

.member-popup {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 0;
    width: 85%;
    height: 40vh;
    background-color: #1a1a1a;
    border-radius: 15px;
    box-sizing: border-box;
    z-index: 99999;
    margin-bottom: 1rem;
}

.member-popup.show {
    display: block;
}

.member-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    justify-items: center;
    height: 100%;
    align-items: center;
    max-width: 1200px;
    padding: 0 10px;
    z-index: 1;
}

.member-card {
    text-align: left;
    width: 93%;
    z-index: 1;
}

.member-image-container {
    position: relative;
    width: 100%;
    margin-bottom: 1rem;
    padding-bottom: 100%; /* アスペクト比1:1を維持するために追加 */
    z-index: 1;
}

.member-image {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.member-image.gray {
    opacity: 1;
}

.member-image.color {
    opacity: 0;
}

.member-card:hover .member-image.gray {
    opacity: 0;
}

.member-card:hover .member-image.color {
    opacity: 1;
}

.members-text {
    color: var(--color2);
    font-size: 4rem;
    font-weight: bold;
    text-align: left;
    position: absolute;
    top: 50%;
    left: 2rem;
    transform: translateY(-50%);
    z-index: 2;
    transition: color 0.3s ease;
    cursor: pointer;
}

.member-info {
    color: #ffffff;
    text-align: left;
    position: relative;
    height: 2.8em;
    z-index: 2;
}

.member-role {
    font-size: 1rem;
    font-weight: bold;
    color: var(--color-orange);
    letter-spacing: 0.05em;
    transition: opacity 0.3s ease;
    opacity: 1;
    position: absolute;
    top: 0;
    left: 0;
    padding-left: 5px;
    z-index: 2;
}

.member-name {
    font-size: 1rem;
    font-weight: bold;
    letter-spacing: 0.05em;
    line-height: 1.4;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding-left: 5px;
    z-index: 2;
}

.member-card:hover .member-role {
    opacity: 0;
}

.member-card:hover .member-name {
    opacity: 1;
}

.footer-info {
    position: absolute;
    left: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.9);
    color: #333;
    padding: 20px 50px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.7em;
    white-space: nowrap;
}

.footer-info a {
    color: var(--color-orange);
    text-decoration: none;
}
.footer-info a:hover {
    text-decoration: underline;
}

.footer-info b {
    color: #333;
    text-decoration: none;
    font-weight: 300;
    cursor: pointer;
}

.footer-info b:hover {
    text-decoration: underline;
}

.contact-button-footer {
    background-color: #000;
    padding:5px 20px;
    border-radius: 15px; /* 角丸 */
    text-decoration: none;
    font-weight: bold;
    margin-left: 15px; /* MEMBERとの間隔 */
}

.rotating-area {
    position: fixed;
    bottom: 2vh;
    right: 2vh;
    width: 23vh;
    height: 23vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.rotating-image {
    width: 140px;
    height: 140px;
    animation: rotate 20s linear infinite;
    transition: width 0.3s ease, height 0.3s ease;
}

.rotating-area:hover .rotating-image {
    width: 100px;
    height: 100px;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* コンタクトスライドアウト */
.contact-slideout {
    position: fixed;
    top: 0;
    right: -100%;
    width: 35%;
    height: 100vh;
    background-color: var(--color-orange);
    z-index: 2000;
    transition: right 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
    margin: 1rem;
}

.contact-slideout.show {
    right: 0;
}

.contact-header {
    display: flex;
    justify-content: flex-end;
    padding: 1rem;
    position: relative;
}

/* X印までの線のスタイル */
.line-to-x {
    position: absolute;
    top: 2.8rem;
    left: 1rem;
    height: 2px;
    width: 0;
    background-color: #1b1b1b;
    transform-origin: left center;
    transition: width 0s;
}

.line-to-x.animate {
    animation: drawLine 0.8s ease-out forwards;
    animation-delay: 0.1s; /* コンタクトフォームが表示された後に開始 */
}

@keyframes drawLine {
    0% {
        width: 0;
    }
    100% {
        width: calc(100% - 8rem); /* X印の右側までの距離  */
    }
}

/* コンタクトフォームの閉じるボタン */
.contact-header .close-button {
    background: none;
    border: none;
    color: #1b1b1b;
    font-size: 3.5rem;
    font-weight: 300; /* 最も細いウェイト */
    font-family: 'Helvetica Neue', Arial, sans-serif; /* より細いフォントを適用 */
    cursor: pointer;
    padding: 0;
    line-height: 0.8; /* 高さを調整 */
    position: relative;
    z-index: 2;
}

.contact-content {
    padding: 1rem 3rem 3rem 3rem;
}

.contact-content h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #1b1b1b;
}

.contact-content p {
    font-size: 0.7rem;
    margin-bottom: 2rem;
    color: #1b1b1b;
}

.contact-content a {
    color: #1b1b1b;
    text-decoration: underline;
}

.contact-form .form-group {
    margin-bottom: 1rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.8rem;
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 4px;
    font-size: 0.8rem;
}

.contact-form textarea {
    resize: vertical;
}

.form-submit {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.submit-button {
    padding: 0.8rem 3rem;
    background-color: #1b1b1b;
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-button:hover {
    background-color: #333;
}

/* メニューポップアップのスタイル */
.menu-popup {
    position: fixed;
    top: 2vh;
    left: -500px;
    width: 30%;
    height: 96vh;
    background-color: var(--color-orange);
    z-index: 10001;
    transition: left 0.3s ease-in-out;
    overflow-y: auto;
}

.menu-popup.show {
    left: calc(70px + 3vh);
}

.menu-popup-content {
    padding: 40px 30px;
    height: 100%;
    box-sizing: border-box;
    position: relative;
}

.menu-popup-copyright {
    position: absolute;
    top: 2.5rem;
    right: 2rem;
    font-size: 0.6em;
    color: #1b1b1b;
    opacity: 0.7;
}

/* メニューの線のスタイル */
.menu-popup-content::after {
    content: '';
    position: absolute;
    top: 2rem;
    left: 2rem;
    height: 2px;
    width: 0;
    background-color: #1b1b1b;
    transform-origin: left center;
    transition: width 0s;
}

.menu-popup.show .menu-popup-content::after {
    animation: drawMenuLine 0.8s ease-out forwards;
    animation-delay: 0.1s;
}

@keyframes drawMenuLine {
    0% {
        width: 0;
    }
    100% {
        width: calc(100% - 4rem);
    }
}

.menu-popup h2 {
    color: #1a1a1a;
    font-size: 1.8em;
    margin-bottom: 30px;
    font-weight: bold;
}

.menu-items {
    display: flex;
    flex-direction: column;
    margin-bottom: 60px;
    gap: 15px;
}

.menu-item {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: 20px;
    padding: 5px 10px;
    text-decoration: none;
    background-color: var(--color-orange);
    border: 2px solid #1a1a1a;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.menu-item:hover {
    background-color: rgba(255, 160, 70);
}

.menu-item-logo {
    width: 35px;
    height: 35px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.verks-logo { background-image: url('images/verks.logo.png'); }
.vicinia-logo { background-image: url('images/vicinia.logo.png'); }
.face-logo { background-image: url('images/face.logo.png'); }
.octagon-logo { background-image: url('images/octagon.logo.png'); }
.ouron-logo { background-image: url('images/ouron.logo.png'); }

.menu-item-text {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.menu-item-title {
    display: inline;
    color: #1a1a1a;
    font-size: 0.8em;
    font-weight: bold;
}

.menu-item-subtitle {
    display: inline;
    color: #1a1a1a;
    font-size: 0.6em;
    opacity: 0.7;
}

.menu-item-arrow {
    color: #1a1a1a;
    font-size: 1.5em;
    margin-left: 15px;
}

/* OURONの特別なスタイル */
.menu-item:nth-child(5) {
    background-color: rgb(80, 50, 20);
    border-color: #1a1a1a;
}

.menu-item:nth-child(5):hover {
    background-color: rgb(100, 65, 30);
}

.menu-item:nth-child(5) .menu-item-title,
.menu-item:nth-child(5) .menu-item-subtitle,
.menu-item:nth-child(5) .menu-item-arrow {
    color: #fff;
}

.menu-nav {
    display: flex;
    flex-direction: column;
}

.nav-item {
    color: #1a1a1a;
    text-decoration: none;
    font-size: 1em;
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(26, 26, 26, 0.2);
}

.nav-item:first-child {
    border-top: 1px solid rgba(26, 26, 26, 0.2);
}

.nav-subtitle {
    color: #1a1a1a;
    font-size: 0.8em;
    opacity: 0.7;
    margin-left: 10px;
}

/* ハンバーガーメニューのアニメーション */
.hamburger-menu.active span {
    background-color: #1a1a1a;
}

.hamburger-menu.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.hamburger-menu span {
    transition: all 0.3s ease-in-out;
}

/* プライバシーポリシーポップアップのスタイル */
.privacy-content {
    padding: 20px 0;
    color: #1a1a1a;
    font-size: 0.9em;
    line-height: 1.6;
}

.privacy-content h3 {
    font-size: 1.2em;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #1a1a1a;
}

.privacy-content p {
    margin-bottom: 15px;
}

.privacy-content ul {
    margin-bottom: 15px;
    padding-left: 20px;
}

.privacy-content li {
    margin-bottom: 5px;
}


#privacy-popup {
    display: none;
    width: 50%;
}

#privacy-popup.show {
    display: block;
}

#privacy-overlay {
    display: none;
}

#privacy-overlay.show {
    display: block;
}

#contact-overlay {
    display: none;
}

#contact-overlay.show {
    display: block;
}