@charset "UTF-8";

/* ベースのスタイル
------------------------------------------------------------*/

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 1.125rem;
  line-height: 1.75;
  color: #333;
  background-color: #f6b532;
}

html, body {
  min-width: 24.375rem;
}

a {
  color: #333;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: 85.9375rem;
  margin: 0 auto;
  padding: 0 2rem;
}

@media (min-width: 768px) {
  body {
    font-size: 1.375rem;
  }
}

/* 共通のスタイル
------------------------------------------------------------*/

.section__heading {
  text-align: left;
}

.section__title {
  display: flex;
  font-family: Emblema One;
  color: #fff;
  padding: 6.25rem 0 2.5rem;
  font-size: 4.25rem;
  font-weight: normal;
}

.section__title:first-child {
  padding-top: 8.75rem;
}

.nav--sp, .nav--pc a {
  text-decoration: none;
}

@media (min-width: 768px) {
  .section__title {
    padding-top: 6.25rem;
    padding-bottom: 2.5rem;
    font-size: 5rem;
  }

  .text--break {
    display: none;
  }
}

/* ヘッダー
------------------------------------------------------------*/

.header {
  position: fixed;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 3000;
  width: 100%;
  height: 3.75rem;
  padding: 0 1.25rem;
  background-color: #f6b532;
  box-sizing: border-box;
}

.img_logo {
  vertical-align: bottom;
}

/* ナビゲーション共通 */
.global-nav {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2000;
  width: 100%;
  height: 100%;
  background-color: rgba(246, 181, 50, 0.95); /* オーバーレイ */
  opacity: 0; /* 最初は非表示 */
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.global-nav.show { /* JSで`.show`クラスが付いた時に表示 */
  opacity: 1;
  pointer-events: auto;
}

.nav__list { /* SP用のリスト配置 */
  list-style: none;
  padding: 6rem 2.5rem 2.5rem;
  margin: 0;
  text-align: center;
  font-family: Emblema One;
  font-size: 1.5rem;
}

.nav__list li {
  margin-bottom: 2.5rem;
}

/* ハンバーガーメニュー(3本線のスタイル) */
.header__hamburger { 
  position: relative;
  z-index: 3001;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 2rem;
  height: 1.25rem;
  cursor: pointer;
  background: none;
  border: none;
}

.header__hamburger span { /* 3本線のうちの1本 */
  display: block;
  height: 3px;
  width: 100%;
  background-color: #333;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.header__hamburger.is-active span:nth-child(1) {
  transform: translateY(8.5px) rotate(45deg);
}

.header__hamburger.is-active span:nth-child(2) {
  opacity: 0;
}

.header__hamburger.is-active span:nth-child(3) {
  transform: translateY(-8.5px) rotate(-45deg);
}

@media (min-width: 768px) {
  .header__logo {
    margin-left: 5rem;
  }

  .img_logo {
    width: auto;
    max-width: 12.5rem;
  }
}

@media (min-width: 1000px) {
  .header__hamburger {
    display: none;
  }

  .global-nav {
    position: static; /* position: fixed（全画面に重なる表示）から通常の横並びへ */
    opacity: 1;
    pointer-events: auto;
    height: auto;
    background-color: transparent;
    display: block;
  }

  .nav__list { /* PC用のリスト配置 */
    display: flex;
    justify-content: flex-end;
    align-items: center;
    font-size: 1.75rem;
    margin-right: 5rem;
    padding: 0;
  }

  .nav__list li {
    margin: 0 0 0 3.125rem;
  }
}

/* カバー
------------------------------------------------------------*/

.cover {
  position: relative;
  width: 100%;
  padding-top: 3.75rem;
  color: #fff;
  overflow: hidden;
}

.cover__carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.cover__carousel > div {
  display: none;
/* すべてのスライドを一旦非表示(JS動作用➀) */
}

.cover__carousel > div.active {
  display: block;
/*  1枚のスライドのみ表示に切り替え(JS動作用➁)  */
}

.cover__carousel img {
  width: 100%;
  object-fit: cover;
  display: block;
  vertical-align: bottom;
}

.cover__catch {
  position: absolute;
  top: 26%;
  left: 26%;
  transform: translate(-50%, -50%);
  color: #fff;
  filter: drop-shadow(1px 1px 1px #333);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.5;
  margin: 0;
  text-align: center;
  z-index: 10;
  pointer-events: none;
}

.dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background-color: #999;
  cursor: pointer;
}

.dots button.current {
  background-color: #fff;
}

@media (max-width: 430px) {
  .cover__carousel img {
    object-position: right center;
  }
}

@media (max-width: 767px) {
  .cover__carousel img {
    height: 25.625rem;
  }
}

@media (min-width: 768px) {
  .cover__catch {
    left: 65%;
    transform: translateX(-50%) translateY(500%);
  }

  .cover__carousel img {
    height: 43.75rem;
  }
}

@media (min-width: 768px) and (max-width: 820px) {
  .cover__catch {
    left: 60%;
    font-size: 1.5rem;
  }
}

@media (min-width: 1260px) {
  .cover__carousel img {
    object-position: center 75%;
  }
}

/* About
------------------------------------------------------------*/

.img_mp {
  width: 100%;
  height: auto;
  vertical-align: bottom;
  display: block;
  object-fit: cover;
  max-width: 27rem;
  margin: 0 auto 2.5rem auto;
}

.about__text, .about__license, .about__github {
  padding-left: 1.125rem;
}

.about__text p {
  padding-bottom: 2.8125rem;
}

.about__text p:last-child {
  padding-bottom: 0;
}

.about__license {
  padding-top: 4.375rem;
}

.about__license-title {
  font-size: 1.25rem;
  font-weight: bold;
  margin-top: 4.375rem;
}

.about__github {
  margin-top: 1.5rem;
  font-size: 1rem;
}

.about__github a {
  color: #007bff;
  text-decoration: underline;
}

.about__github a:hover {
  text-decoration: none;
}

@media (min-width: 1000px) {
  .img_mp {
    width: 27rem;
    height: 33.75rem;
  }
  
  .about__body {
    display: flex;
  }

  .about__content {
    width: 80%;
    display: flex;
    flex-direction: column;
    padding-left: 4rem;
  }
}

/* Timeline
------------------------------------------------------------*/

.timeline__list {
  display: flex;
}

.timeline__date {
  width: 42%;
  font-size: 1.1875rem;
  padding-right: 1.875rem;
}

.timeline__content {
  width: 63%;
  font-size: 1rem;
  border-left: 0.5625rem solid #fff;
  position: relative;
}

.timeline__content p {
  padding-left: 1.875rem;
  padding-bottom: 1.875rem;
}

.timeline__content::before {
  content: "";
  width: 1.5625rem;
  height: 1.5625rem;
  background: #333;
  position: absolute;
  left: -1rem;
  top: 0.375rem;
  border-radius: 100%;
}

@media (min-width: 768px) {
  .timeline__date {
    width: 17%;
    font-size: 1.5rem;
    padding-right: 3.125rem;
  }

  .timeline__content {
    width: 83%;
    font-size: 1.375rem;
  }

  .timeline__content::before {
    content: "";
    width: 1.5625rem;
    height: 1.5625rem;
    background: #333;
    position: absolute;
    left: -1rem;
    top: 0.53em;
    border-radius: 100%;
  }

  .timeline__content p {
    padding-left: 5rem;
  }
}

/* Works
------------------------------------------------------------*/

.works__title {
  display: flex;
  font-family: Emblema One;
  color: #fff;
  font-size: 3rem;
  font-weight: normal;
  margin-left: 2rem;
}

.works__description {
  margin: 2rem 0rem;
}

.works__container {
  padding: 0 1.25rem;
}

.works__caption-title {
  font-size: 1.2rem;
  font-weight: bold;
  text-align: center;
  margin: 1rem;
}

.works__caption {
  margin-bottom: 4rem;
  font-size: 1rem;
}

.works__gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2rem;
  padding: 0 1rem;
}

.works__gallery img {
  width: 100%;
  max-width: 18.75rem;
  height: auto;
  object-fit: cover;
  display: block;
  margin: 0 auto 1rem;
  transition: transform 0.3s ease;
}

.works__gallery img:hover {
  transform: scale(1.05);
}

.works__item {
  margin-bottom: 2rem;
}

.works__container > .works__item > img {
  width: 100%;
  object-fit: cover;
  margin-bottom: 1rem;
  padding: 0 1rem;
}

.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  transition: opacity 0.3s ease;
  opacity: 1;
  pointer-events: auto;
}

.popup-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
}

.popup-content {
  position: relative;
  background-color: #fff;
  width: 90%;
  max-width: 37.5rem;
  max-height: 80%;
  overflow-y: auto;
  padding: 1.25rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.9375rem;
}

.popup-image {
  width: 100%;
  height: auto;
  border-radius: 5px;
}

.popup-description {
  font-size: 1rem;
  color: #333;
  line-height: 1.5;
  text-align: left;
  padding-bottom: 1rem;
}

.popup-description strong {
  font-weight: bold;
  display: inline-block;
  margin-bottom: 0.25rem;
}

.popup-url {
  font-size: 1rem;
  word-break: break-word;
}

.close-btn {
  display: inline-block;
  color: #333;
  border: 1px solid #333;
  border-radius: 3px;
  padding: 0.0625rem 0.25rem;
  font-size: 0.875rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  line-height: 1;
  /* 縦方向の余白を詰める */
  margin: 0 auto;
}

.close-btn:hover {
  background-color: #f0f0f0;
}

.hidden {
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 767px) {
  .works__description {
    margin: 1.5rem 1rem 2rem;
  }

  .works__title {
    font-size: 2.5rem;
    padding-top: 2.5rem;
    padding-bottom: 1rem;
    line-height: 1.2;
    flex-direction: column;
    align-items: center;
  }

  .works__gallery {
    display: block;
    padding: 0;
  }

  .works__gallery img {
    width: calc(100% + 2rem);
    margin: 0 -1rem 1.5rem;
    max-width: none;
  }
}

@media (min-width: 508px) and (max-width: 767px) {
  .works__gallery img {
    width: 100%;
    margin: 0 auto 1.5rem;
  }
}

@media (min-width: 768px) and (max-width: 1000px) {
  .works__description {
    margin: 1.5rem 1rem 2rem;
  }

  .works__gallery {
    display: block;
    padding: 0 2rem;
  }

  .works__gallery img {
    max-width: 90%;
    margin: 0 auto 2rem;
  }
}

@media (min-width: 1001px) {
  .works__gallery {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: nowrap;
    padding: 0 1rem;
  }

  .works__gallery img {
    max-width: 24.0625rem;
    height: 13.75rem;
    margin: 0 auto 2rem;
  }

  .works__item {
    width: 33.33%;
    text-align: center;
  }

  .works__container {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    padding: 0 1.875rem;
  }

  .works__container > .works__item > img {
    padding: 0 1rem;
  }

  .works__caption {
    padding: 0 1.875rem;
    margin-bottom: 2rem;
  }

  .works__description {
    margin: 3rem;
  }
}

/* Contact
------------------------------------------------------------*/

.contact__description {
  margin: 0 1.1875rem;
  margin-bottom: 3.125rem;
  text-align: left;
}

.contact__buttons {
  margin: 3.125rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
  -moz-column-gap: 3.4375rem;
       column-gap: 3.4375rem;
}

.contact__buttons li {
  list-style: none;
}

.contact__buttons a {
  display: block;
  position: relative;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0.625rem;
  line-height: 0;
  color: #fff;
  background-color: #333;
  border-radius: 50%;
}

.contact__buttons img {
  position: absolute;
  top: 0.625rem;
  left: 0.5rem;
  text-align: center;
  width: 1.475rem;
  height: 1.375rem;
}

@media (min-width: 1000px) {
  .contact__content {
    display: flex;
    margin-bottom: 6.25rem;
  }

  .contact__description {
    margin-top: 3.125rem;
    font-size: 1.375rem;
  }

  .contact__buttons {
    padding-left: 3.125rem;
  }

  .contact__buttons a {
    width: 3rem;
    height: 3rem;
  }

  .contact__buttons img {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    text-align: center;
    width: 1.475rem;
    height: 1.375rem;
  }
}

/* フッター
------------------------------------------------------------*/

.footer {
  padding: 1.875rem;
  font-size: 0.875rem;
  background-color: #f6b532;
}

.footer__copyright {
  text-align: center;
  color: #333;
}

@media (min-width: 768px) {
  .footer {
    height: 5rem;
  }
}/*# sourceMappingURL=style.css.map */
