@charset "utf-8";

/* リセット */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: sans-serif;
  overflow-x: hidden;
}
.header, .footer {
  position: fixed;
  width: 100%;
  background: transparent;
  z-index: 1000;
}
.header {
  top: 0;
  display: flex;
  justify-content: space-between;
  padding: 1em;
}
.header .logo {
  height: 30px;
  margin-left: -10px; /* 左側に60pxのマージンを追加 */
}
.header .logo img {
  height: 100%; /* 親要素の高さに合わせる */
  width: auto; /* 高さに合わせて幅を自動調整 */
}
.footer {
  bottom: 0;
  text-align: center;
  padding: 1em;
}

.menu-icon {
  font-size: 1.5em;
  cursor: pointer;
  position: relative; /* アイコンの位置を調整するためにrelativeに設定 */
}

.menu-icon img {
  width: 32px;
  height: auto;
  cursor: pointer;
  transition: opacity 0.3s ease;
  position: absolute; /* アイコンの位置を調整するためにabsoluteに設定 */
}

/* 以下のクラスを追加して、位置の調整ができるようにします */
.menu-icon.top-left img {
  top: 0;
  left: 0;
}

.menu-icon.top-right img {
  top: 0;
  right: 20px;
}

.menu-icon.bottom-left img {
  bottom: 0;
  left: 0;
}

.menu-icon.bottom-right img {
  bottom: 0;
  right: 0;
}

.menu-icon.center img {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.menu-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.95);
  color: white;
  display: none;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 999;
}
.menu-overlay.active {
  display: flex;
}

.menu-overlay nav a {
  color: white;
  text-decoration: none;
  font-size: 1.5em;
  margin: 1em 0;
  display: inline-block;
}

.menu-overlay nav a:hover {
  text-decoration: underline;
}

/* 背景スライド */
#mainimg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.slide0 {
  background: rgba(255, 255, 255, 0.9) url('../img/logo_ArLk_01B.png') no-repeat center center;
  background-size: auto 30%;
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  animation-timing-function: linear;
  animation-duration: 16s;
  animation-iteration-count: infinite;
  animation-fill-mode: both;
  animation-delay: 1.5s;
}
/*
@keyframes slide1 {
  0%   { opacity: 0; transform: scale(1); }
  10%  { opacity: 0; }
  20%  { opacity: 1; }
  45%  { opacity: 1; }
  60%  { opacity: 0; }
  100% { opacity: 0; transform: scale(1.2); }
}
@keyframes slide2 {
  0%   { opacity: 0; transform: scale(1); }
  33%  { opacity: 0; }
  43%  { opacity: 1; }
  65%  { opacity: 1; }
  83%  { opacity: 0; }
  100% { opacity: 0; transform: scale(1.2); }
}
@keyframes slide3 {
  0%   { opacity: 0; transform: scale(1); }
  55%  { opacity: 0; }
  65%  { opacity: 1; }
  85%  { opacity: 1; }
  95%  { opacity: 0; }
  100% { opacity: 0; transform: scale(1.2); }
}

@keyframes slide4 {
  0%   { opacity: 0; transform: scale(1); }
  40%  { opacity: 0; }
  50%  { opacity: 1; }
  70%  { opacity: 1; }
  90%  { opacity: 0; }
  100% { opacity: 0; transform: scale(1.2); }
}
@keyframes slide5 {
  0%   { opacity: 0; transform: scale(1); }
  50%  { opacity: 0; }
  60%  { opacity: 1; }
  75%  { opacity: 1; }
  95%  { opacity: 0; }
  100% { opacity: 0; transform: scale(1.2); }
}*/
/*
.slide1 {
  background-image: url('../img/1.jpg');
  animation-name: slide1;
}

.slide2 {
  background-image: url('../img/2.jpg');
  animation-name: slide2;
}

.slide3 {
  background-image: url('../img/3.jpg');
  animation-name: slide3;
}

.slide4 {
  background-image: url('../img/4.jpg');
  animation-name: slide4;
}

.slide5 {
  background-image: url('../img/5.jpg');
  animation-name: slide5;
}*/

@media screen and (max-height: 500px) {
  .slide0 {
    background-image: none;
  }
}

/* フローティングボタン（中央下） */
.floating-icon {
  position: fixed;
  bottom: -90px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.5);
  padding: 1em;
  border-radius: 60%;
  transition: bottom 1.0s ease;
  z-index: 1001;
  text-decoration: none; /* アンダーラインを削除 */
  color: white; /* テキストの色を白に変更 */
  font-size: 1.5em; /* フォントサイズを変更 */
}
.floating-icon.active {
  bottom: 100px;
}

/* 点滅 */
.blinking {
  -webkit-animation: blink 1.0s ease-in-out infinite alternate;
  -moz-animation: blink 1.0s ease-in-out infinite alternate;
  animation: blink 1.0s ease-in-out infinite alternate;
}
@-webkit-keyframes blink {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
@-moz-keyframes blink {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
@keyframes blink {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

/* レスポンシブ */
@media (max-width: 768px) {
  .header, .footer {
    font-size: 0.8em;
  }
  .back-icon {
    position: fixed;
    bottom: 50px;
    right: 30px;
    z-index: 1001;
  }
}

/* ギャラリーページ背景（固定・非アニメーション） */
.sub-background {
  background: url('../img/bg.jpg') no-repeat center center fixed;
  background-size: cover;
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

/* コンテンツエリア */
.content-area {
  max-width: 900px;
  margin: 120px auto 80px;
  background: rgba(231, 237, 239, 0.5);
  padding: 2em;
  position: relative;
  z-index: 1;
}

/* 各コンテンツBOX */
.content-box {
  margin-bottom: 2em;
}
.content-box h2 {
  font-size: 1.5em;
  margin-bottom: 0.5em;
}
.content-box hr {
  margin-bottom: 0.5em;
}
.content-box img {
  max-width: 100%;
  height: auto;
  display: block;
  margin-top: 0.5em;
}

.back-icon {
  position: fixed;
  bottom: 50px;
  right: 15px;
  z-index: 1001;
  text-decoration: none; /* アンダーラインを削除 */
}
.back-icon img {
  width: 35px; /* お好みでサイズ調整 */
  height: auto;
  display: block;
}








