/* 一般 */

:root{
    --maxw: 720px;
    --accent: #0a66c2;
    --bg: #f8fbff;
    --card: #ffffff;
}

body {
    font-family: 'Roboto', Arial, sans-serif;
    margin: 0;
    background: #000000;
    font-family: sans-serif;
}

.top-header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    width: 100%;
    height: 500px; /* お好みで高さ調整 */
    overflow: hidden;

    opacity: 0;                /* 透明に */
    animation: fadeIn 1s forwards;
}

.bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* 画面にフィット */
  z-index: 0;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* 上は透明 → 下は黒に */
  background: linear-gradient(to bottom, rgba(0,0,0,0) 70%, rgb(0, 0, 0) 100%);
  pointer-events: none; /* クリック操作を邪魔しない */
}

.header-content {
  position: relative;
  z-index: 1; /* 動画の上に表示 */
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 20px;
  color: white; /* テキストを白にすると見やすい */
  text-shadow: 
    2px 2px 0 black,
   -2px 2px 0 black,
    2px -2px 0 black,
   -2px -2px 0 black;
  text-align: center;
}

.top-header h1 {
    position: relative;
    left: -10px;
    bottom: 0px;
    font-size: 6rem;
    font-family:Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    letter-spacing: -2px;
    line-height: 1.1;
    margin: 0;
    z-index: 1;
    text-align: start;

    opacity: 0; /* 非表示から */
    animation: h1FadeInSlow 2s forwards;
    animation-delay: 2s; /* right-imgのアニメ後に開始 */
}

.top-header img {
    position: absolute;
    bottom: 20px;
}

.top-header .left-img {
    left: 100px;
    width: 700px;       /* 左を180pxに */

    transform: translateX(-20%);
    opacity: 0; /* 非表示から */
    animation: fadeInSlow 2s forwards;
    animation-delay: 2s; /* right-imgのアニメ後に開始 */
}

.top-header .right-img {
    right: 0px;
    width: 350px;       /* 右を150pxに */

    transform: translateX(-100%); /* 画面左の外からスタート */
    opacity: 0;
    animation: slideInRight 1s forwards;
    animation-delay: 1s; /* headerが出た後に開始 */
}

/* --- アニメーション定義 --- */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes slideInRight {
  from { transform: translateX(-100%); opacity: 0; }
  to   { transform: translateX(30%); opacity: 1; }
}

@keyframes fadeInSlow {
  from { transform: translateX(-20%); opacity: 0; }
  to   { transform: translateX(40%); opacity: 0.3; }
}

@keyframes h1FadeInSlow {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* 固定メニュー */
.menu-mark {
  position: absolute;
  top: 50%;
  right: -24px;              /* バナーの外に少し出す */
  transform: translateY(-50%);
  writing-mode: vertical-rl; /* 縦書き */
  color: white;
  font-size: 40px;
  font-weight: bolder;
  letter-spacing: 5px;
  cursor: pointer;
  transition: opacity 0.4s ease;
}

/* 展開中は「…」を消す */
.banner:hover .menu-mark {
  opacity: 0;
}

/* 垂れ幕のデザイン */
.banner {
    z-index: 999; /* ← 前面に表示する */
    position: fixed;
    top: 0;
    left: -215px; 
    width: 240px;
    height: 100%;
    background: rgb(20, 19, 19);
    color: rgb(239, 239, 239);
    padding: 20px 0;
    border: 3px solid white;
    border-radius: 10px;
    transition: left 0.4s ease; 
}

.banner:hover {
    left: 0;
}

.banner h1{
    text-align: center;
    padding-right: 50px;
    padding-top: 20px;
    padding-bottom: 60px;
}

.banner a {
    padding-left: 40px;
    color: rgb(239, 239, 239);
    text-decoration: none;
}

.banner a:hover {
    text-decoration: underline dashed;
}

#home-link {
    padding-left: 20px;
}

.banner a.actual-page {
    color: rgb(142, 189, 224);
    text-decoration:underline;
}

/* 固定Contactリンク */
.fixed-link {
    z-index: 999;
    position: fixed;   /* 画面に固定 */
    top: 10px;         /* 上からの距離 */
    right: 10px;       /* 右からの距離 */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.fixed-link .home {
    background: radial-gradient(
        circle,
        rgba(230, 238, 251, 0.95) 40%,   /* 中心は不透明 */
        rgba(230, 238, 251, 0) 100%  /* 外周で完全に透明 */
    );
    border-radius: 100%;
    padding: 2px;
    padding-bottom: 14px;
    margin-bottom: 10px;
}

.fixed-link .home img {
    width: 100px;
    margin-bottom: 1px;
    margin-left: 1px;
}

.fixed-link .contact {
    background-color: #007bffd0;
    padding: 10px 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.fixed-link .contact:hover {
    background-color: #1265bd;
    text-decoration: underline dashed;
}

.container {
    display: flex;
    justify-content: center; /* 横方向の中央寄せ */
    flex-direction: column;
    margin-left: 20px; /* 垂れ幕の幅分ずらす */
    padding: 20px;
    color: rgb(239, 239, 239);
}

/* コンテンツ定義 */
.content {
    opacity: 0;
    transition: opacity 0.3s;
    margin-top: 30px;
    margin-bottom: 140px;
}

.content.first-content {
    animation: fadeIn 1s forwards;
}

.content.active {
    animation: fadeIn 1s forwards;
}

@keyframes shadowIn {
  from { text-shadow: 0px 0px 0 rgba(165, 165, 165, 0.5); }
  to   { text-shadow: 80px 20px 0 rgb(165, 165, 165, 0.5); }
}

.container h1 {
    text-shadow: 0px 0px 0 rgb(165, 165, 165, 0.5);
    font-size: 60px;
    font-family:'Times New Roman', Times, serif;
    text-align: center;
}

.media-link{
    position: relative;
    display: flex;            /* ← ここが重要 */
    flex-direction: row;
    align-items: center;
    justify-content: center;  /* 横方向の中央寄せ（必要なら flex-start に） */
    gap: 12px;                /* ボタン間の隙間 */    
}

.media-link button{
    display: flex;
    justify-content: center; /* 横方向の中央寄せ */
    align-items: center;
    width: 50px;
    height: 50px;
    background-color: #000000;
    border: 1px solid #e6eefb;
    border-radius: 100%;
    opacity: 1;
    cursor: pointer;   
}

.media-link button img{
    width: 40px;
    height: auto;
}


.media-link button:hover {
    background-color: #2e2e2e;
}


.textbox {
    position: relative;
    display: flex;            /* ← ここが重要 */
    flex-direction: column;
    align-items: center;
    font-size: 18px;
}


.textbox strong {
    font-weight: 900;
    font-size: 20px;
}


h2{
    font-family:'Times New Roman', Times, serif;
    font-size: 42px;
}

footer {
    display: flex;
    justify-content:space-between;
    flex-direction: row;
    margin-left: 20px; /* 垂れ幕の幅分ずらす */
    margin-right: -40px;
    padding: 20px;
    padding-left: 28%;
    padding-right: 32%;
    color: rgb(239, 239, 239);
    border-top: 1px solid #e6eefb;
    background-color: #1a2632;
    
}

.info {
    font-family:Verdana, Geneva, Tahoma, sans-serif;
}

.big-spacer {
    margin-bottom: 100px;
}

.bg-image {
    position: fixed;
    top: 10%;
    width: 400px;
    opacity: 0;             /* 初期は非表示 */
    border-radius: 4px;
    filter: blur(2px);
    z-index: -1;
}

.bg-image.left {
    left: 50px;
    animation: leftAnim 4s forwards;  /* 左画像のループ */
}

.bg-image.right {
    right: 50px;
    animation: rightAnim 4s forwards; /* 右画像のループ */
}

/* 右画像のアニメーション */
@keyframes rightAnim {
    0%   { opacity: 0; transform: translateX(0); }
    75%  { opacity: 0.7; transform: translateX(10px); }
    85%  { opacity: 0.7; transform: translateX(10px); }
    100%  { opacity: 0; transform: translateX(10px); }
}

/* 左画像のアニメーション */
@keyframes leftAnim {
    0%   { opacity: 0; transform: translateX(0); }
    75%  { opacity: 0.7; transform: translateX(-10px); }
    85%  { opacity: 0.7; transform: translateX(-10px); }
    100%  { opacity: 0; transform: translateX(-10px); }
}


.result-show {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 16%;
    margin-right: 16%;
}

.result-show button {
    background-color: #000000;
    border-color: rgb(124, 124, 124);
    border-width: 2px;
}

.result-show button:hover {
    border-color: aqua;
}

.result-container {
    position: relative;
    width: 600px;
    height: 450px;
    margin: auto;
    margin-top: 100px;
    overflow: hidden;
    transition: transform 0.5s ease, opacity 0.5s ease;
    z-index: 0;
}

/* 左に動きながら縮小＆フェードアウト → 右から再登場 */
.result-container.left-move {
    animation: leftMove 1.5s ease-in-out forwards;
}

/* 右に動きながら縮小＆フェードアウト → 左から再登場 */
.result-container.right-move {
    animation: rightMove 1.5s ease-in-out forwards;
}

/* 左方向アニメーション */
@keyframes leftMove {
    0% {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
    25% {
        transform: translateX(-100px) scale(0.8);
        opacity: 0;
    }
    50% {
        transform: translateX(200px) scale(0.8);
        opacity: 0;
    }
    75% {
        transform: translateX(50px) scale(1.05);
        opacity: 0.7;
    }
    100% {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

/* 右方向アニメーション（左右反転） */
@keyframes rightMove {
    0% {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
    25% {
        transform: translateX(100px) scale(0.8);
        opacity: 0;
    }
    50% {
        transform: translateX(-200px) scale(0.8);
        opacity: 0;
    }
    75% {
        transform: translateX(-50px) scale(1.05);
        opacity: 0.7;
    }
    100% {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

.result {
    display: flex;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.result img {
    border: 8px double #e6eefb;
    border-radius: 10px;
    width: auto;
    max-width: 95%;
    height: 70%;
}

.description {
  position: absolute;
  bottom: 10px;
  left: 39%;
  right: 50%;
  color: white;
  padding: 5px 10px;
  border-radius: 5px;
}

.description.after {
  left: 40%;
  right: 50%;
}

.arrow {
  width: 80px;
  height: 80px;
  cursor: pointer;
}

.result-show button.left {
  margin-right: 10px;
  position: relative;
  z-index: 999;
}

.result-show button.right {
  margin-left: 10px;
  position: relative;
  z-index: 999;
}

.result.before {
    z-index: 2;
    animation: beforeAnim 6s infinite;
}

.result.after {
    z-index: 1;
    animation: afterAnim 6s infinite;
}


@keyframes beforeAnim {
    0%   { opacity: 1;}
    30%  { opacity: 1;}
    50%  { opacity: 0;}
    80%  { opacity: 0;}
    100%  { opacity: 1;}
}

@keyframes afterAnim {
    0%   { opacity: 0;}
    30%  { opacity: 0;}
    50%  { opacity: 1;}
    80%  { opacity: 1;}
    100%  { opacity: 0;}
}

@media screen and (max-width: 1024px) {
    .textbox {
        margin-left: 17%;
        margin-right: 16%;
    }

    .lets-know {
        margin-left: 7%;
        margin-right: 7%;
    }

    .three-buttons button {
        width: 160px;
    }

    .activity {
        margin-left: 7%;
        margin-right: 7%;
    }


    .news {
        margin-left: 7%;
        margin-right: 7%;
    }


    @keyframes slideInRight {
        from { transform: translateX(-100%); opacity: 0; }
        to   { transform: translateX(100%); opacity: 1; }
    }

    @keyframes fadeInSlow {
        from { transform: translateX(-20%); opacity: 0; }
        to   { transform: translateX(25%); opacity: 0.3; }
    }

    /* 右画像のアニメーション */
    @keyframes rightAnim {
        0%   { opacity: 0; transform: translateX(0); }
        75%  { opacity: 0.5; transform: translateX(10px); }
        85%  { opacity: 0.5; transform: translateX(10px); }
        100%  { opacity: 0; transform: translateX(10px); }
    }

    /* 左画像のアニメーション */
    @keyframes leftAnim {
        0%   { opacity: 0; transform: translateX(0); }
        75%  { opacity: 0.5; transform: translateX(-10px); }
        85%  { opacity: 0.5; transform: translateX(-10px); }
        100%  { opacity: 0; transform: translateX(-10px); }
    }

    .result-show {
        margin-left: 16%;
        margin-right: 16%;
    }


    .result img {
        width: auto;
        max-width: 95%;
        height: 70%;
    }

    .description {
    left: 35%;
    right: 50%;
    }

    .description.after {
    left: 36%;
    right: 50%;
    }

    .arrow {
    width: 50px;
    height: 50px;
    cursor: pointer;
    }
}


@media screen and (max-width: 768px) {
    @keyframes slideInRight {
        from { transform: translateX(-100%); opacity: 0; }
        to   { transform: translateX(80%); opacity: 1; }
    }

    @keyframes fadeInSlow {
        from { transform: translateX(-20%); opacity: 0; }
        to   { transform: translateX(20%); opacity: 0.3; }
    }

    .result-show {
        margin-left: 7%;
        margin-right: 7%;
    }


    .result img {
        width: auto;
        max-width: 95%;
        height: 70%;
    }

    .description {
    left: 35%;
    right: 50%;
    }

    .description.after {
    left: 36%;
    right: 50%;
    }

    .arrow {
    width: 40px;
    height: 40px;
    cursor: pointer;
    }
}


@media screen and (max-width: 700px) {
    @keyframes slideInRight {
        from { transform: translateX(-100%); opacity: 0; }
        to   { transform: translateX(60%); opacity: 1; }
    }

    @keyframes fadeInSlow {
        from { transform: translateX(-20%); opacity: 0; }
        to   { transform: translateX(-8%); opacity: 0.3; }
    }

    .header-text h1 {
        font-size: 6.5rem;
    }

    .header-text p {
        font-size: 2.2rem;
    }

    .container {
        margin-left: 50px;
        padding: 0px;
    }

    .container h1 {
        font-size: 45px;
    }

    .lets-know {
        margin-left: 0%;
        margin-right: 0%;
    }

    .three-buttons {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .three-buttons button{
        width: 180px;
    }

    .activity {
        margin-left: 0%;
        margin-right: 0%;
    }

    .news {
        margin-left: 0%;
        margin-right: 0%;
    }

    h2 {
        font-size: 30px;
    }

    .news h2 {
        font-size: 22px;
    }

    p {
        font-size: 16px;
    }

    .textbox {
        margin-left: 3%;
        margin-right: 2%;
    }

    .textbox strong {
        font-size: 18px;
    }

    @keyframes shadowIn {
        from { text-shadow: 0px 0px 0 rgba(165, 165, 165, 0.5); }
        to   { text-shadow: 40px 10px 0 rgb(165, 165, 165, 0.5); }
    }

    .info {
        display: none;
    }

    .media-link {
        margin-left: 20px;
    }

    .fixed-link {
        top: 5px;
        right: 5px;
    }

    .fixed-link .home {
        padding-bottom: 7px;
        margin-bottom: 10px;
    }

    .fixed-link .home img {
        width: 60px;
    }

    .fixed-link .contact {
        background-color: #007bff6e;
        padding: 5px 10px;
        font-size: 10px;
    }

    .result {
        top: 28px;
        height: 70%;
    }

    .result-show {
        margin-left: 0%;
        margin-right: 0%;
    }

    .result img {
        width: auto;
        max-width: 95%;
        height: 70%;
    }

    .description {
    left: 40%;
    right: 50%;
    }

    .description.after {
    left: 41%;
    right: 50%;
    }

    .arrow {
    width: 30px;
    height: 30px;
    cursor: pointer;
    }

    .result-show button.left {
        margin-bottom: 40px;
        margin-right: -60px;
        opacity: 0.6;
    }

    .result-show button.right {
        margin-bottom: 40px;
        margin-left: -60px;
        opacity: 0.6;
    }
}


@media screen and (max-width: 426px) {
    .description {
    left: 38%;
    right: 50%;
    }

    .description.after {
    left: 39%;
    right: 50%;
    }
}