@charset "UTF-8";

:root {
  --background-color:#edf0f0;

  --text-p:#333333;
  --text-light: #777777;
  --text-blue:#00beed;

  --line-light:#c4c3c3;
}

html{
    font-size: 100%;
}

body{
  background-color: var(--background-color);
  color: var(--text-p);

  font-family: "Noto Sans JP", sans-serif;
  font-weight: 400;
  font-style: normal;
  line-height: 2.3rem;
  letter-spacing: 0.2rem;

  margin: 0 0 6rem;
}

h1{
  font-size: 1.6rem;
  color: var(--text-p);
    
  margin-bottom: 0px;
  padding: 1.5rem;
}

h3{
  font-size: 0.9rem;
  color: var(--text-light);

  margin: 0 2rem 4rem;
}

h2{
  font-size: 1.2rem;
  color: var(--text-p);

  padding: 0rem 0rem 1rem;
  margin: 0 0 0 2rem;
}

p{
  font-size: 1rem;
  color: var(--text-p);

  line-height:1.9;
  letter-spacing: 0.25rem;
  margin: 0 0 3rem 2rem;
}

b{
  font-weight: normal;
}

a{
  color: var(--text-blue);

  font-size: 0.95rem;
  line-height: 1.2rem;
}

a:hover{
  color: rgb(255, 233, 87);
}

img{
  display:block;
  max-width: min(60vw,700px);
  max-height: min(60vw,700px);
  width: auto;
  height: auto;

  padding: 2rem;
  margin: 0 auto;
}

.dear{
  width: 100%;
  height: 100%;
  background-color: var(--background-color);
  background-size: cover;
  background-attachment: fixed;
  
  animation: fadein 4s forwards;
}

.dear2{
  width: 100%;
  height: 100%;
  background-image: url(../image/pool.jpg);
  background-size: cover;
  background-attachment: fixed;
  
  animation: fadein 1s forwards;
}

@keyframes fadein {
  0% {opacity: 0.6}
  100% {opacity: 1}
}

.youso {
  margin: 5rem 2rem;
}

.uso {
  background-color:rgba(255, 255, 255, 0.85);
  margin: 5rem 1rem;
  padding: 1.5rem;
}

.menu{
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.menu-icon{
  position: fixed;
  top: 40px;
  right: 50px;

  display: flex;
  flex-direction: column;
  justify-content: space-around;

  width: 30px;
  height: 25px;
  cursor: pointer;

  z-index: 100;
}

.bar{
  width: 30px;
  height: 1.5px;
  background-color: #222222;
  transition: transform 0.3s ease;
}

.menu-icon.active .bar:nth-child(1){
  transform: rotate(45deg);
  position: relative;
  top: 8px;
}
.menu-icon.active .bar:nth-child(2){
  opacity: 0;
}
.menu-icon.active .bar:nth-child(3){
  transform: rotate(-45deg);
  position: relative;
  top: -8px;
}

.menu-link{
  list-style-type: none;
  display: flex;
  flex-direction: column;
  background-color:#ffffff;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;

  z-index: 50;
}
.menu-link.active {
  opacity: 1;
  pointer-events: auto;
}

.menu-deco {
  position: absolute;
  transform: translateY(-50%);
  z-index: 1;
}

.menu-deco img {
  width: 20vw;
  min-width: 180px;
  max-width: 500px;
  height: auto;
}

.menu-deco.left {
  top: 75%;
  left: 20%;
}
.menu-deco.right {
  top: 85%;
  right: 20%;
}


.menu-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: -8rem;
  z-index: 50;
}

.menu-link li a {
  display: block;
  padding: 0.5rem 2rem;
  margin-bottom: 1.5rem;
  text-decoration: none;
  color: var(--text-p);
  font-size: 1.1rem;
}

.menu-link li a:hover {
  color: var(--text-light);
}

.menu-link .home a {
  margin-bottom: 5rem;
  color: var(--text-blue);
  font-size: 1.6rem;
  font-style: italic;
}

.dear-index{
  background-color:var(--background-color);
  background-image: url(../image/index.jpg);
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
}

.screen{
  position: fixed;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(to left, rgba(0, 0, 0, 0.5) 5%, rgba(255, 255, 255, 0) 60%, rgba(0, 0, 0, 0.5));
}

.clock {
  position: absolute;
  color:#ffffff;
  left: 50px;
  top: 50%;

  display: flex;
  align-items: center;

  transform: translateY(-50%) rotate(-90deg);
  transform-origin: center;

  white-space: nowrap;
  z-index: 3;
}

.index-menu {
  position: absolute;
  right: 150px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 20px;
  z-index: 10;
}

.index-link a{
  display: block;
  padding: 1rem 0 1rem 5rem;
  text-decoration: none;
  color: #ffffff;
  font-size: 1rem;
  cursor: pointer;
}
.index-link.active a{
  color: rgb(255, 233, 87);
}
.index-link a:hover{
  filter: brightness(0.8);
}


.controls {
  position: absolute;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  padding: 20px;
  
  top: 0;
  bottom: 0;
  right: 40px;
  left: auto;
  width: 120px;
  height: auto;
  flex-direction: column;
  z-index: 10;
}

.record-button {
  width: 140px;
  height: 140px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.record-button img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.record-button:hover img {
  filter: brightness(0.55);
}

.rec-indicator{
  position: absolute;
  top: 40px;
  left: 80px;
  display: flex;
  align-items: center;
  color: white;
  z-index: 10;
}

.rec-dot{
  width: 12px;
  height: 12px;
  background: #ffffff;
  border-radius: 50%;
  margin-right: 8px;
  animation: blink 3.0s infinite;
}
@keyframes blink{
  0%, 100% {opacity: 1;}
  50% {opacity: 0.2;}
}

.rec-info{
  font-size: 0.8rem;
}

@media screen and (max-width: 1100px) {
  .screen{
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5) 5%, rgba(255, 255, 255, 0) 70%, rgba(0, 0, 0, 0.5));
  }

  .clock {
    display: block;
    align-items: initial;
    transform: rotate(0deg);
    transform-origin: initial;
    white-space: normal;

    position: absolute;
    top: 15px;
    left: 0;
    right: 0;
    text-align: center;
  }
  
  .index-menu {
    left: 0;
    right: 0;
    top: 69vh;
    transform: none;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 0px;
  }

  .index-link a{
    padding: 5rem 1.2rem 1rem;
  }

  .index-menu .index-link:first-child {
    justify-self: end;
  }
  .index-menu .index-link.active {
    justify-self: center;
  }
  .index-menu .index-link:last-child {
    justify-self: start;
  }
  .index-link a {
    white-space: nowrap;
  }
  
  .controls {
    width: initial;
    flex-direction: initial;

    position: absolute;
    top: 610px;
    left: 0;
    right: 0;
    height: 120px;
    display: flex;
    align-items: center;
    padding: 5px;
  }

  .rec-indicator{
    left:initial;
    top: 30px;
    right: 40px;
  }
}

.link-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 400px;
  min-width: 200px;
  margin: 0 auto;
  padding: 20px 0;
}

.link-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  padding: 12px 16px;
  text-decoration: none;
  color: var(--text-p);
  background-color:#ffffff;
  border-radius: 5px;
  border: 1px solid #ffffff;
  align-items: center;
}

.link-item:hover {
  background-color:#cdf2ff;
  color: var(--text-light);
}

.desc {
  font-size: 0.85em;
  color: var(--text-light);
}

.filters{
  display: flex;
  position: sticky;
  top: 0;
  justify-content: center;
  text-align: center;
  margin: 0 0 1rem;
  padding: 1rem 0;
  background-color: rgba(255, 255, 255, 0.8);
  width: 100%;
  z-index: 1;
}

.filters button{
  margin: 0.5rem;
  padding: 10px;
  min-width: 50px;
  text-decoration: underline;
  cursor: pointer;
}

.filters button:hover{
  color: var(--text-light);
}

.headline{
  font-size: 1.5rem;
  font-weight: 600;
  color:#fefef4;
  text-align: center;
}

.cake{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 40px 30px;
  max-width: 1200px;
  margin: 0 auto;
}
@media screen and (max-width: 1200px) {
  .cake {
    grid-template-columns: repeat(2, 1fr);
    max-width: 700px;
  }
}
@media screen and (max-width: 1000px) {
  .cake {
    grid-template-columns: repeat(1, 1fr);
    max-width: 350px;
  }
}

.piece {
  background-color: #ffffff;
  border: 1px solid #fefef4;
  height: 450px;
  padding:40px 10px;
  position: relative;
}

.piece-img{
  width: 250px;
  height: 200px;
  object-fit: cover;
  display: block;
  border-radius: 10px;
  margin:0 auto 5px;
  padding: 1.0rem;
}

.piece p{
  color: #555;
  padding: 0 2rem;
}

.piece .piece-tag{
  color: var(--text-light);
  font-size: 0.8rem;
  margin: 0rem 0;
}

.piece .piece-title{
  font-size: 1.0rem;
  margin: 0;
}

.piece .piece-txt{
  color: var(--text-light);
  font-size: 0.85rem;
  margin: 1rem 0;
  line-height: 1.2rem;
}

.piece .links {
  position: absolute;
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  bottom: 35px;
  right: 45px;
}

.news .piece {
  background-color: #ffffff;
  margin: 20px auto;
  padding: 0;
  height: 100px;
  max-width: 800px;
  overflow: hidden;
}

.news .piece a {
  display: flex;
  gap: 16px;
  align-items: center;
  height: 100%;
  width: 100%;
}

.news-text {
  display: flex;
  flex-direction: column;
  flex: 1;
  background-color: #ffffff;
  padding: 10px 20px;
  align-items: flex-start;
}

.news-text h3 {
  color: var(--text-light);
  font-size: 0.8rem;
  margin: 0 0 10px;
}

.news-text p {
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

.news .piece:hover {
  filter: brightness(0.8);
}

.word {
  max-width: 700px;
  margin: 0 auto 40px auto;
  padding: 30px;
}

.back {
  display: block;
  margin: 0 auto;
  padding: 20px 40px;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease-in-out;
}

.back a {
  font-size: 1rem;
  text-decoration: none;
  color: #333;
}

.back:hover {
  background-color: #eee;
}