/*
 Theme Name:   Astrid Child
 Description:  Astrid Child Theme
 Template:     astrid
 Version:      1.0.0
 Text Domain:  astrid-child
*/

/* 以下カスタムCSS */
.site-title {
  font-size: 24px;
}

h2 {
  font-size: 24px;
}

.pt30 {
  padding-top: 30px;
}

.wp-custom-header {
  text-align: center;
}

.gallery-block .gallery {
  width: 100%;
  margin-bottom: 1.5em;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  justify-items: center;
  gap: 10px;
}

@media (max-width: 768px) {
  .gallery-block .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

.gallery-block .gallery-columns-3 .gallery-item {
  max-width: 100%;
}

.gallery-item {
  position: relative;
  display: block;
  text-decoration: none;
  color: inherit;
  text-align: center;
  vertical-align: top;
  width: 100%;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item a::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 /1;
  object-fit: cover;
}

.sns-icon-wrap {
  display: grid;
  grid-template-columns: repeat(3, 85px);
  justify-content: center;
  gap: 30px;
  align-content: center;
  align-items: center;
  justify-items: center;
}

@media (max-width: 768px) {
  .sns-icon-wrap {
    margin: 0 auto;
    grid-template-columns: repeat(3, 85px);
    gap: 15px;
  }
}

.sns-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.sns-icon.sns-icon-facebook img {
  width: 70px;
  height: 70px;
}

.sns-icon.sns-icon-instagram img {
  width: 73px;
  height: 73px;
}

.sns-icon.sns-icon-line img {
  width: 85px;
  height: 85px;
}

.sns-icon a {
  display: block;
  width: 100%;
  height: 100%;
}

.media-wrapper {
  max-width: 100%;
  width: 100%;
}

.media-object {
  display: flex;
  gap: 24px;
  align-items: center;
}

.media-image-wrapper {
  flex-shrink: 0;
  width: 100%;
  max-width: 315px;
  height: 210px;
  overflow: hidden;
}

.media-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-body {
  flex-grow: 1;
  min-width: 0;
}

.media-title {
  font-size: 24px;
  font-weight: 300;
  margin-bottom: 12px;
  color: #1a1a1a;
  position: relative;
  display: inline-block;
}

.media-title-en {
  font-size: 16px;
  font-weight: normal;
}

.media-text-role {
  font-size: 14px;
  margin-bottom: 18px;
}

.media-text {
  font-size: 14px;
  line-height: 1.6;
  color: #555;
  margin-bottom: 8px;
}

.media-text-bold {
  font-family: 'arial black', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: #656D6D;
}

@media (max-width: 680px) {
  .media-object {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .media-image-wrapper {
    max-width: 100%;
    height: auto;
    aspect-ratio: 315 / 210;
  }
}


.journal-intro {
  text-align: center;
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 40px;
  color: #656D6D;
}

.journal-container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.journal-item {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  margin-bottom: 0;
  position: relative;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding: 24px;
}

.journal-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.journal-item > .journal-image-wrapper a::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.journal-item .wp-block-gallery,
.journal-item .gallery,
.journal-item .hidden-gallery {
  display: none !important;
}

.journal-image-wrapper {
  flex-shrink: 0;
  width: 100%;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.journal-image-wrapper a {
  display: flex;
  width: 100%;
  height: 100%;
  justify-content: center;
  align-items: center;
}

.journal-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.journal-body {
  flex-grow: 1;
  min-width: 0;
}

.journal-title {
  font-family: 'arial black', sans-serif;
  font-size: 18px !important;
  font-weight: bold;
  margin-top: 30px;
  margin-bottom: 16px;
  color: #656D6D;
}

.journal-details {
  list-style-type: none;
  padding-left: 0;
  margin-top: 0;
  margin-bottom: 20px;
}

.journal-details li {
  font-size: 14px;
  line-height: 1.6;
  color: #656D6D;
  margin-bottom: 8px;
  position: relative;
  padding-left: 16px;
}

.journal-details li::before {
  content: "・";
  position: absolute;
  left: 0;
  color: #656D6D;
}

.journal-details li.no-bullet {
  padding-left: 0;
}

.journal-details li.no-bullet::before {
  content: none;
}

.journal-start-date {
  font-size: 14px;
  color: #656D6D;
  margin: 0;
}

.journal-divider {
  border: 0;
  height: 1px;
  background: #e9ecef;
  margin-top: 40px;
  margin-bottom: 40px;
}

@media (max-width: 768px) {

	.journal-container {
		max-width: 100%;
		margin: 0 auto;
		padding: 0 8px;
		grid-template-columns: 1fr;
		gap: 32px;
	}
	
  .journal-item {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }

  .journal-image-wrapper {
    width: 100%;
    max-width: 315px;
  }

  .journal-body {
    width: 100%;
  }

  .journal-title {
    text-align: center;
  	margin-bottom: 30px;
  }
}
