@charset "utf-8";
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300&display=swap');
* { margin: 0; padding: 0; box-sizing: border-box; border-radius: 0; }
body { 
    font-family: Georgia, "Times New Roman", serif;
    background: #333;
}
.container {
    position: relative;
    height: 100vh;
    height: 100dvh;
    /* 1. 縦方向にオーバーフローした際にスクロールを許可 */
    overflow-y: auto; 
    /* 2. IE / Edge 用のスクロールバー非表示設定 */
    -ms-overflow-style: none;  
    /* 3. Firefox 用のスクロールバー非表示設定 */
    scrollbar-width: none;  
}
/* 4. Chrome, Safari, Opera, Blink系ブラウザ用のスクロールバー非表示設定 */
.container::-webkit-scrollbar {
    display: none;
}
header {
    position: fixed;
    display: flex;
    justify-content: center;
    height: 40px;
    line-height: 40px;
    width: 100%;
    overflow: hidden;
    background: #333;
    z-index: 1;
}
h1 {
    text-align: center;
    font-size: 32px;
    transform: skew(-15deg);
    height: 40px; line-height: 40px;
}
a.title {
    color: mediumturquoise;
}
header nav {
    display: none;
}
header nav a {
    color: white;
}

.headline-container {
  position: relative;
  margin-top: 48px;
  height: calc(100vh - 48px);
}
.bg-item {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease; /* 必要に応じてフェード効果 */
}
.bg-1 {
  background-image: url('img/takatiho.webp');
}
.bg-2 {
  background-image: url('img/takatiho2.webp');
}
.bg-3 {
  background-image: url('img/takatiho3.webp');
}
.bg-4 {
  background-image: url('img/oyaji.webp');
}
.now {
  opacity: 1;
}

/* モーダルcheckbox */
#checkbox {
    position: absolute;
    top: -50%;
}
/* 三本線メニュー */
label.modal_icon {
    position: fixed;
    top: 0; right: 0;
    width: 40px; height: 40px;
    cursor: pointer;
    z-index: 1;
}
label.modal_icon div {
    position: absolute;
    width: 100%;
    height: 4px;
    background: white;
}
label.modal_icon div:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}
label.modal_icon div:last-child {
    bottom: 0;
}
/* モーダル - 画面を暗くする */
#checkbox:checked ~ label.modal {
    position: fixed;
    z-index: 3;
    top: 0; bottom: 0;
    left: 0; right: 0;
    background: rgba(0, 0, 0, 0.7);
}
.fa-ellipsis {
    font-size: 40px;
    cursor: pointer;
}
ul {
    position: fixed;
    display: flex;
    flex-direction: column;   /* 子要素を縦並びにする */
    justify-content: center;  /* 縦方向のど真ん中 */
    align-items: center;      /* 横方向のど真ん中 */
    gap: 16px;
    top: -330px;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 280px;
    height: 280px;
    list-style: none;
    border-radius: 8px;
    /* background: url('./img/dora.png')  center / cover,#333; */
    box-shadow:
        0 0 8px  white,
        0 0 16px white,
        0 0 24px white,
        0 0 30px white;
}
#checkbox:checked ~ ul {
    z-index: 3;
    top: 50%;
    transition: top 0.5s ease;
}
ul li { font-size: 24px; }
ul a { color: mediumturquoise; }
.xmark {
    display: block;
    text-align: center;
    cursor: pointer;
    color: white;
    font-size: 36px;
}

/* menu(三本線) */
.menu {
    position: fixed;
    top: 0; left: 0;
    width: 40px; height: 40px;
    cursor: pointer;
    z-index: 2;
    transition: .3s;
}
.menu div {
    position: absolute;
    width: 100%;
    height: 4px;
    background: white;
}
.menu div:first-child {
    transition: .3s;
}
.menu div:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
    transition: .3s;
}
.menu div:last-child {
    bottom: 0;
    transition: .3s;
}
/* 三本線の変化 */
.first { top: 50%; transform: translateY(-50%) rotate(-45deg) scaleX(1.4);}
.second { opacity: 0; }
.last { top: 50%; transform: translateY(-50%) rotate(45deg) scaleX(1.4); }

/* 左サイド画面 */
aside {
    position: fixed;
    background: 
        url('img/yakei.png') right / cover,
        #555;
    top: 0;
    left: -320px;
    width: 320px;
    height: 100%;
    transition: .3s;
    z-index: 1;
    /* 1. 縦方向にオーバーフローした際にスクロールを許可 */
    overflow-y: auto; 
    /* 2. IE / Edge 用のスクロールバー非表示設定 */
    -ms-overflow-style: none;  
    /* 3. Firefox 用のスクロールバー非表示設定 */
    scrollbar-width: none;  
}
/* 4. Chrome, Safari, Opera, Blink系ブラウザ用のスクロールバー非表示設定 */
aside::-webkit-scrollbar {
    display: none;
}
.show {
    left: 0;
}
aside nav {
    margin: 48px 0 0 48px;
}
aside p {
    margin-top: 16px;
}
aside a {
    font-size: 26px;
    color: mediumturquoise;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 1);
}

main {
    position: relative;
    width: 98%; max-width: 800px;
    margin: 0 auto;
    padding-top: 164px;
}
main::before {
    position: absolute;
    content: "";
    top: 32px;
    left: 50%;
    transform: translate(-50%,0);
    width: 180px; height: 90px;
    z-index: -1;
    /* border: 1px solid #fff; */
    background: url("img/koumori.webp") no-repeat top 0 left 50% / 180px auto;
}

section {
    position: relative;
    margin-bottom: 32px;
    background: #222;
    padding: 8px 0;
    border-radius: 8px;
}
section::before {
    position: absolute;
    content: "";
    top: -20px; left: 50%;
    transform: translate(-50%, 0);
    border-width: 0px 80px 20px 80px;
    border-color: transparent transparent #222 transparent;
    border-style: solid;
}
/* section::after {
    position: absolute;
    content: "";
    top: -56px;
    left: 50%;
    width: 50px;
    height: 50px;
    background: url(./img/pin.png) center / cover;
} */
section::after {
    position: absolute;
    content: "";
    top: -14px;
    left: 50%;
    transform: translate(-50%, 0);
    border-width: 6px;
    border-color: #444;
    border-style: solid;
    border-radius: 50%;
}
.section_img {
    text-align: center;
}
section p {
    text-align: center;
    color: mediumturquoise;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 16px;
}
section a {
   color: mediumturquoise; 
}

/* 天気 */
.container_div {
   font-family: monospace;
   color: white;
   display: flex;
   gap: 8px;
   justify-content: center;
   flex-wrap: wrap;
}
.weather-item {
    border: 1px solid #aaa;
    padding: 4px 4px 0;
    border-radius: 4px;
    line-height: 16px;
}

.miike_img {
    width: 320px;
}

/* IntersectionObserver */
main section {
    margin-bottom: 80px;
    opacity: 0;
    transition: .7s;
}
main section:nth-of-type(odd) {
    transform: translateX(-200px) translateY(50px);
}
main section:nth-of-type(even) {
    transform: translateX(200px) translateY(50px);
}
main section.appear {
    opacity: 1; transform: translate(0);
}

footer {
    height: 120px;
    color: mediumturquoise;
    font-size: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: url("img/secret.svg") no-repeat left 50% bottom -16px / 100px auto, #222;
}

@media (min-width: 620px) {
    label.modal_icon {
        display: none;
    }
    header nav {
        position:fixed;
        display: flex;
        font-size: 18px;
        gap: 16px;
        right: 8px;
        height: 40px; line-height: 40px;
    }
}

@media (min-width: 760px) {
    main {
        /* border: 1px solid #888; */
        display: flex;
        flex-wrap: wrap;
        gap: 0 16px;
    }
    section {
        width: calc((100% - 16px) / 2);
    }
}