@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@400;700;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Yuji+Syuku&family=Zen+Old+Mincho&display=swap');

body {
  margin: 0;
  font-family: "Noto Serif JP", serif;
  font-weight: 400;
  font-style: normal;
  background: #f4f4f4;
  scroll-behavior: smooth;
  overflow: auto;
}

/* Main CSS */
.article-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 20px;
}

.article-image {
  width: 100%;
  max-width: 800px;
}

figure {
  max-width: 680px;
  display: block;
  background: #e6e6e6;
  padding:  20px 5px;
  margin: .8em 0 1.5em 0;
}

figure img{
  max-width: 100%;
}

.article-image img {
  max-width: 220px;
  height: auto;
}

.article-content {
  width: 100%;
  max-width: 800px;
  margin-top: 20px;
}

.article-part {
  margin-bottom: 30px;
}

.article-part li {
  font-weight: 500;
  color: #333;
  margin-bottom: 10px;
}

.article-part a {
  font-weight: 500;
  color: #333;
}

.article-date {
  margin: 20px;
  font-size: 0.9em;
  color: #888;
}

.article-title {
  font-weight:bold;
  margin-bottom: 40px;
}

.article-title span{
  position: relative;
  padding: 5px 10px 5px 10px;
  left: 10px;
  line-height: 1.6em;
  letter-spacing: 1.5px;
  font-family: Poppins, serif;
  background: #c9c8c8c3;
  box-shadow: -10px 0px 0px #c9c8c8c3, 10px 0px 0px #c9c8c8c3;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.article-text {
  margin-top: 20px;
  margin-bottom: 20px;
}

.article-text h2 {
  line-height: 150%;
  font-size: 1.7em;
  display: inline-block;
  font-weight:bold;
  background:#c9c8c8c3;
  border-left: solid 5px #922e2e;
  margin: 25px auto 50px;
  padding: 5px 10px 5px 10px;
}



.article-text p {
  font-size: 1em;
  line-height: 1.6;
  margin-bottom: 30px;
  letter-spacing: 1.5px;
}

blockquote {
  font-size: inherit;
  font-family: "Zen Old Mincho", serif;
  font-weight: 100;
  font-style: italic;
  margin: 1.25em 0 1.4em 0;
  padding: 20px 0 10px 100px;
  min-height: 60px;
  background: url(../img/quotes.svg) 15px -35px no-repeat;
  background-size: 100px 164px;
}

blockquote p{
  padding: 30px 45px 30px 45px;
  border-radius: 15px;
  left: 10px;
  line-height: 1.6 !important;
  letter-spacing: 1.5px !important;
  background: #e6e6e6;
}

blockquote p .source {
  display: block;
  font-size: 0.9em;
  font-style: normal;
  font-weight: 800;
  text-align: right;
  color: #333; /* A lighter grey color for the source text */
  margin-top: 10px; /* Add space between the main text and the source */
}

blockquote p .source a{
  color: #922e2e !important;
  font-weight: 900;
  text-decoration-line: underline;

}

.navigation {
  text-align: center;
  margin-top: 20px;
}

.home-button {
  width: 150px;
background-color: #333;
color: #fff;
border: 1px solid #333; /* Border added */
border-radius: 20px;
height: 40px; /* Increased height for better visibility */
justify-content: center;
align-items: center;
margin: -10px auto 10; /* Center button horizontally */
display: block; /* Change display to block */
cursor: pointer;
transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

.home-button:hover {
  background-color: #fafafa !important;
color: #333 !important;
border-color: #333 !important;
}

/* Responsive CSS */
@media (max-width: 768px) {
  .article-container {
      margin: 10px;
  }

  .article-image {
      max-width: 220px;
  }

  .article-content {
      max-width: 100%;
      margin-top: 10px;
  }

  .article-title {
      font-size: 1.5em;
      margin: 0 30px 20px 25px;
      font-weight: 800;
  }

  .article-text h2 {
      font-size: 1.5em;
      margin: 0 20px 20px 20px;
      font-weight: 600;
  }

  .article-text p {
      font-size: 1em;
      margin-bottom: 20px;
      padding-inline: 25px;
      line-height: 1.8;
      letter-spacing: 1px;
  }

  .navigation {
    display: flex;
    align-items: center;
    padding: 20px;
    background-color: #f5f5f5;
}


  .home-button {
      padding: 8px 15px;
      margin: auto;
  }
}



/*navbar and login form*/
/* Navbar Styling */
.navbar {
    font-size: 16px;
    font-weight: 700 !important;
    letter-spacing: 1.5px;
    background-color: rgba(255, 255, 255, 0.8); /* Initial background color (white with some opacity) */
    backdrop-filter: blur(10px); /* Apply blur effect */
    -webkit-backdrop-filter: blur(10px); /* For Safari */
    transition: background-color 0.3s ease;
    z-index: 1000;
    position: sticky !important;
    top: 0;
    border-bottom: 0.5px solid rgba(145, 145, 145, 0.316);
}

.navbar li {
  list-style: none;
  margin: auto;
}

.menu-bar {
  display: flex;
  flex-direction: row;
}
.navbar-brand,
.navbar-nav .nav-link {
    color: #fff;
}
.navbar-brand img{
  width: 160px !important;
  height: 50px !important;
}
.custom-btn {
  width: 150px;
background-color: #333;
color: #fff;
border: 1px solid #333; /* Border added */
border-radius: 20px;
height: 40px; /* Increased height for better visibility */
justify-content: center;
align-items: center;
margin: -10px auto 10; /* Center button horizontally */
display: block; /* Change display to block */
cursor: pointer;
transition: background-color 0.3s, color 0.3s, border-color 0.3s; /* Added border-color to the transition */
}

.custom-btn:hover{
 background-color: #fafafa !important;
color: #333 !important;
border-color: #333 !important;
}
/* Hide the navbar collapse initially */
.navbar-collapse {
    display: none;
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        display: block; 
    }
}


/* Styles for the login form */
.login-form {
  position: fixed; /* Change position to fixed */
  top: 50%; /* Position it in the middle vertically */
  left: 50%; /* Position it in the middle horizontally */
  transform: translate(-50%, -50%); /* Center it precisely */
  width: 400px; /* Set the desired width */
  max-width: 400px; /* Set maximum width to ensure responsiveness */
  background-color: #fff;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  z-index: 9999; /* Ensure form stays above background */
  display: none; /* Initially hide the form */
}

.close-button {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
}



/* Style for the blurred background */
.blurred-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  filter: blur(5px); /* Adjust the blur intensity as needed */
  z-index: 998; 
  display: none;
}

#signin {
  margin-top: 16px;
}

form{
  margin-top: 10px;
}
.form-group {
  position: relative;
  padding-right: 15px;
  margin-bottom: 20px;
  overflow: hidden;
}

.form-group:last-child {
  margin-bottom: 0px;
}

input {
  display: block;
  width: 100%;
  height: 60px;
  padding: 10px;
  margin-bottom: 10px;
  border: none;
  border-bottom: 1px solid #9999998d;
  border-left: 1px solid #9999998d;
  border-radius: 10px;
  font-family: inherit;
  box-shadow: 5px 5px 5px rgba(128, 128, 128, 0.2);
  transition: all 0.2s;
}

input::placeholder {
  color: #999;
}

/* Hover and focus styles for inputs */
input:hover,
input:focus {
  border: 1.5px solid #42212181;
  box-shadow: 8px 8px 8px rgba(204, 131, 131, 0.4);
  /* background-color: white; */
  outline: none;
}

input.form-submit {
  width: 200px;
  background-color: #333;
  color: #fff;
  font-size: 20px;
  /* margin-top: 10px; */
  border: 1px solid #333;
  border-radius: 20px;
  height: 50px;
  justify-content: center !important;
  align-items: center !important;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

input.form-submit:hover {
  background-color: #fafafa !important;
  color: #333 !important;
  border-color: #333 !important;
  box-shadow: none;
}
/* Checkbox styles */
input[type="checkbox"] {
  display: none;
}

input[type="checkbox"] + label {
  display: inline-block;
  line-height: 1.5em;
  margin-top: 6px;
}

input[type="checkbox"] + label > span {
  display: inline-block;
  width: 13px;
  height: 13px;
  margin-right: 15px;
  margin-bottom: 3px;
  border: 1px solid #999;
  border-radius: 2px;
  background: white;
}

input[type="checkbox"]:checked + label > span {
  background: white;
}

input[type="checkbox"]:checked + label > span:before {
  content: '\f26b';
  display: block;
  color: #222;
  font-size: 11px;
  text-align: center;
}

.agree-term {
  display: inline-block;
  width: auto;
}

label {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  color: #222;
}

/*like button*/
/* a {
  cursor: pointer;
} */

.middle-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.like-wrapper {
  display: flex;
  justify-content: space-around;
  flex-flow: row wrap;
  width: 50%;
}

.like-button {
  border: 2px solid #c7c7c7;
  border-radius: 40px;
  padding: 0.45rem 0.75rem;
  color: #878787;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  filter: grayscale(100%);
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
}
.like-button.liked {
  color: #ff6e6f;
  border-color: currentColor;
  filter: grayscale(0);
}
.like-button:hover {
  border-color: currentColor;
}

.like-icon {
  width: 18px;
  height: 16px;
  display: inline-block;
  position: relative;
  margin-right: 0.25em;
  font-size: 1.5rem;
  background: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjEiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAyMSAxOCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTAuMTAxIDQuNDE3UzguODk1LjIwNyA1LjExMS4yMDdjLTQuNDY1IDAtMTAuOTY3IDYuODQ2IDUuMDgyIDE3LjU5MkMyNS4yMzcgNy4wMyAxOS42NjUuMjAyIDE1LjUwMS4yMDJjLTQuMTYyIDAtNS40IDQuMjE1LTUuNCA0LjIxNXoiIGZpbGw9IiNGRjZFNkYiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvc3ZnPg==") no-repeat center;
  background-size: 100%;
  -webkit-animation: heartUnlike 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
          animation: heartUnlike 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

.liked .like-icon {
  -webkit-animation: heartPulse 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
          animation: heartPulse 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}
.liked .like-icon [class^=heart-animation-] {
  background: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjEiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAyMSAxOCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTAuMTAxIDQuNDE3UzguODk1LjIwNyA1LjExMS4yMDdjLTQuNDY1IDAtMTAuOTY3IDYuODQ2IDUuMDgyIDE3LjU5MkMyNS4yMzcgNy4wMyAxOS42NjUuMjAyIDE1LjUwMS4yMDJjLTQuMTYyIDAtNS40IDQuMjE1LTUuNCA0LjIxNXoiIGZpbGw9IiNGRjZFNkYiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvc3ZnPg==") no-repeat center;
  background-size: 100%;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 16px;
  height: 14px;
  opacity: 0;
}
.liked .like-icon [class^=heart-animation-]::before, .liked .like-icon [class^=heart-animation-]::after {
  content: "";
  background: inherit;
  background-size: 100%;
  width: inherit;
  height: inherit;
  display: inherit;
  position: relative;
  top: inherit;
  left: inherit;
  opacity: 0;
}
.liked .like-icon .heart-animation-1 {
  -webkit-animation: heartFloatMain-1 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
          animation: heartFloatMain-1 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}
.liked .like-icon .heart-animation-1::before, .liked .like-icon .heart-animation-1::after {
  width: 12px;
  height: 10px;
  visibility: hidden;
}
.liked .like-icon .heart-animation-1::before {
  opacity: 0.6;
  -webkit-animation: heartFloatSub-1 1s 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
          animation: heartFloatSub-1 1s 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}
.liked .like-icon .heart-animation-1::after {
  -webkit-animation: heartFloatSub-2 1s 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
          animation: heartFloatSub-2 1s 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
  opacity: 0.75;
}
.liked .like-icon .heart-animation-2 {
  -webkit-animation: heartFloatMain-2 1s 0.1s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
          animation: heartFloatMain-2 1s 0.1s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}
.liked .like-icon .heart-animation-2::before, .liked .like-icon .heart-animation-2::after {
  width: 10px;
  height: 8px;
  visibility: hidden;
}
.liked .like-icon .heart-animation-2::before {
  -webkit-animation: heartFloatSub-3 1s 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
          animation: heartFloatSub-3 1s 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
  opacity: 0.25;
}
.liked .like-icon .heart-animation-2::after {
  -webkit-animation: heartFloatSub-4 1s 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
          animation: heartFloatSub-4 1s 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
  opacity: 0.4;
}

@-webkit-keyframes heartPulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.5);
  }
}

@keyframes heartPulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.5);
  }
}
@-webkit-keyframes heartUnlike {
  50% {
    transform: scale(0.75);
  }
}
@keyframes heartUnlike {
  50% {
    transform: scale(0.75);
  }
}
@-webkit-keyframes heartFloatMain-1 {
  0% {
    opacity: 0;
    transform: translate(0) rotate(0);
  }
  50% {
    opacity: 1;
    transform: translate(0, -25px) rotate(-20deg);
  }
}
@keyframes heartFloatMain-1 {
  0% {
    opacity: 0;
    transform: translate(0) rotate(0);
  }
  50% {
    opacity: 1;
    transform: translate(0, -25px) rotate(-20deg);
  }
}
@-webkit-keyframes heartFloatMain-2 {
  0% {
    opacity: 0;
    transform: translate(0) rotate(0) scale(0);
  }
  50% {
    opacity: 0.9;
    transform: translate(-10px, -38px) rotate(25deg) scale(1);
  }
}
@keyframes heartFloatMain-2 {
  0% {
    opacity: 0;
    transform: translate(0) rotate(0) scale(0);
  }
  50% {
    opacity: 0.9;
    transform: translate(-10px, -38px) rotate(25deg) scale(1);
  }
}
@-webkit-keyframes heartFloatSub-1 {
  0% {
    visibility: hidden;
    transform: translate(0) rotate(0);
  }
  50% {
    visibility: visible;
    transform: translate(13px, -13px) rotate(30deg);
  }
}
@keyframes heartFloatSub-1 {
  0% {
    visibility: hidden;
    transform: translate(0) rotate(0);
  }
  50% {
    visibility: visible;
    transform: translate(13px, -13px) rotate(30deg);
  }
}
@-webkit-keyframes heartFloatSub-2 {
  0% {
    visibility: hidden;
    transform: translate(0) rotate(0);
  }
  50% {
    visibility: visible;
    transform: translate(18px, -10px) rotate(55deg);
  }
}
@keyframes heartFloatSub-2 {
  0% {
    visibility: hidden;
    transform: translate(0) rotate(0);
  }
  50% {
    visibility: visible;
    transform: translate(18px, -10px) rotate(55deg);
  }
}
@-webkit-keyframes heartFloatSub-3 {
  0% {
    visibility: hidden;
    transform: translate(0) rotate(0);
  }
  50% {
    visibility: visible;
    transform: translate(-10px, -10px) rotate(-40deg);
  }
  100% {
    transform: translate(-50px, 0);
  }
}
@keyframes heartFloatSub-3 {
  0% {
    visibility: hidden;
    transform: translate(0) rotate(0);
  }
  50% {
    visibility: visible;
    transform: translate(-10px, -10px) rotate(-40deg);
  }
  100% {
    transform: translate(-50px, 0);
  }
}
@-webkit-keyframes heartFloatSub-4 {
  0% {
    visibility: hidden;
    transform: translate(0) rotate(0);
  }
  50% {
    visibility: visible;
    transform: translate(2px, -18px) rotate(-25deg);
  }
}
@keyframes heartFloatSub-4 {
  0% {
    visibility: hidden;
    transform: translate(0) rotate(0);
  }
  50% {
    visibility: visible;
    transform: translate(2px, -18px) rotate(-25deg);
  }
}
