@import url('https://fonts.googleapis.com/css2?family=Playfair+Display&family=Noto+Sans&display=swap');

*{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html, body {
    width:100%;
    height: 100%;
    margin: 0;
    padding: 0;
}
body {
    font-family: 'Noto Sans', sans-serif;
    /* background-color: #fde6f3; */
    color: #2E2E2E;
    line-height: 1.6;
    background-image: url('../images/bg-flower.jpg');
    background-size: cover;
    background-position: center;
}
body::before{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    z-index: -1;
}

.apps-intro{
    display: block;
    width: 100%;
    max-width: none;
    background-color: rgba(219, 204, 230, 0.637);
    margin: 0;
    box-sizing: border-box;
}
.new-badge {
    background-color: rgb(196, 118, 115);
    color: white;
    font-size: 0.6em;
    padding: 0.2em 0.5em;
    border-radius: 10px;
    margin-left: 0.5em;
}

h1, h2 {
    font-family: 'Playfair Display', serif;
    color: #30335ad5;
    margin-bottom: 2em;
    font-weight: 800;
}
h1.kotoba-tittle,
h1.yume-tittle{
    color: #530d0d !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    /* margin-top: 1em; */
}

section {
    padding: 4em 2em;
    max-width: 800px;
    margin: auto;
    text-align: center;
}
hr{
    margin: 1rem;
}
.kotoba,
.yume{
    background-color: rgb(255, 241, 245);
    margin-top: 3em;
    margin-bottom: 3em;
}
.kotoba-sec,
.yume-sec{
    margin-bottom: 3em;
}
.kotoba-card{
    background-color: rgb(253, 220, 229);
    border-left: 5px solid #530d0d;
    padding: 1.5EM;
}
.kotoba-card ul {
    text-decoration-line: underline;
    list-style: disc inside;
    margin: 1em 0;
    padding-left: 0;
}

.kotoba-card li {
    margin-left: 0;
    padding-left: 0.5em; 
    text-indent: 0;  
}

.button{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1em;
    margin-top: 3em;
}
.kindle-button{
    width: 60%;
    background-color: #530d0d;
    color: #fde6f3;
    border-radius: 10px;
    text-decoration: none;
}
.kindle-button:hover{
    background-color: #c2cad3;
    color: #530d0d;
}

.yume-card{
    background-color: rgba(219, 204, 230, 0.637);
    border-left: 5px solid #530d0d;
    padding: 1.5EM;
}

footer {
    background-color: #b0c4d865;
    text-align: center;
    padding: 2em;
    font-size: 0.9em;
    color: #2E2E2E;
    position: relative;
    z-index: 1;
}

@keyframes fadeInBody {
    from { opacity: 0; }
    to { opacity: 1; }
}

section {
    opacity: 0;
    animation: fadeInSection 1.2s ease-in forwards;
    animation-delay: 0.8s;
}

@keyframes fadeInSection {
    to { opacity: 1; }
}

/* モバイル対応 */
@media screen and (max-width: 780px) {
  *{
    box-sizing: border-box;
  }
  body {
    padding: 10px;
  }
  main,
  .info-box,
  .word-list,
  footer {
    max-width: 100%;
    padding: 12px;
    font-size: 0.95em;
  }
  h1 {
    font-size: 1.4em;
    line-height: 1.3;
  }
  h2 {
    font-size: 1.2em;
    line-height: 1.3;
  }
  footer {
    font-size: 0.85em;
  }
}

@media screen and (max-width: 480px) {
  *{
    box-sizing: border-box;
  }
  body {
    padding: 10px;
  }
  main,
  .info-box,
  .word-list,
  footer {
    max-width: 100%;
    padding: 12px;
    font-size: 0.95em;
  }
  h1 {
    font-size: 1.2em;
    line-height: 1.3;
  }
  h2 {
    font-size: 1em;
    line-height: 1.3;
  }
  p{
    font-size: 0.8em;
  }
  footer {
    font-size: 0.85em;
  }
}
