@charset "utf-8";

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* ==========================================
  共通パーツ（複数セクションで使用）
   ========================================== */

/* 文字 */
h1 {
  font-family: "Oswald", "Noto Sans JP" , sans-serif;
  font-size: clamp(48px, 10vw, 192px);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform:uppercase;
  color: #e9ebf6;
}

h2 {
  font-family: "Oswald", "Noto Sans JP" , sans-serif;
  font-size: clamp(48px, 10vw, 192px);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform:uppercase;
  color: #e9ebf6;
}

h3 {
  font-family: "Noto Sans JP" , "Oswald", sans-serif;
  font-size: clamp(18px, 1.6667vw, 32px);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform:uppercase;
  color: #e9ebf6;
}

h4 {
  font-family: "Noto Sans JP" , "Oswald", sans-serif;
  font-size: clamp(14px, 1.0417vw, 20px);
  font-weight: 500;
  letter-spacing: 1px;
  text-transform:uppercase;
  color: #e9ebf6;
}

p {
  font-family: "Noto Sans JP" , "Oswald", sans-serif;
  font-size: clamp(12px, 0.8333vw, 16px);
  font-weight: 400;
  letter-spacing: 1px;
  color: #e9ebf6;
  line-height: 2;
  text-align: justify;
}


/* 写真 */
img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* あしらい */
.black {
  color: #202020;
}

.purple {
  color: #a200ca;
}

/* 背景 */
.container {
  position: relative;
  height: 100%;
  width: 100%;
  background-image:
    url(../img/grid.svg),
    url(../img/portfolio_back.webp);
  background-attachment: fixed, fixed;
  background-position: center, center;
  background-size: 80px 80px, cover;
  background-repeat: repeat, no-repeat;
  padding-bottom: calc(82px + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 1025px) {
  .container {
    width: calc(100% - 240px);
    padding-bottom: 80px;
    padding-right: 160px;
    margin-left: 240px;
  }
}

/* ==========================================
  header
   ========================================== */

.header {
  position: fixed;
  left: 0;
  bottom: 0;
  right: 0;
  z-index: 10;
  background-image: url(../img/back.webp);
  background-size: cover;
  background-position: center;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

@media (min-width: 1025px) {
  .header {
    display: none;
  }
}

.header_box {
  position: relative;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 50px;
  padding-right: 16px;
  padding-left: 16px;
}

.header_logo {
  display: block;
  width: 54px;
  height: 34px;
}

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  width: 52px;
  height: 48px;
}

.hamburger span{
  display: block;
  width: 50px;
  height: 3px;
  background-color: #e9ebf6;
  transition: transform 0.3s ease, opacity 0.2s ease, background-color 0.3s ease;
}

.hamburger span:nth-child(2) {
  background-color: #a200ca;
}

.hamburger.is_open span:nth-child(1) {
  background-color: #a200ca;
  transform: translateY(11px) rotate(45deg);
}

.hamburger.is_open span:nth-child(2) {
  opacity: 0;
}

.hamburger.is_open span:nth-child(3) {
  transform: translateY(-11px) rotate(-45deg);
}

.hamburger:focus-visible {
  outline: 3px solid #e9ebf6;
  outline-offset: 2px;
}

.hamburger_menu {
  height: 100%;
  width: 100%;
  position: fixed;
  inset: 0;
  z-index: 1;
  overflow-y: auto;
  background-image: url(../img/back.webp);
  background-size: cover;
  background-position: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-bottom: 82px;
}

.hamburger_menu.is_open {
  opacity: 1;
  visibility: visible;
}

.hamburger_menu_nav {
  padding-top: 40%;
}

.hamburger_menu_list {
  text-align: center;
}

.hamburger_menu_list li + li {
  margin-top: 40px;
}

.hamburger_menu_list a {
  display: inline-block;
  font-family: "Oswald", sans-serif;
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 1.5px;
  color: #e9ebf6;
}

.hamburger_menu_note {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #e9ebf6;
}

.hamburger_menu_note p {
  font-size: 12px;
  line-height: 1.5;
  font-weight: 400;
}

.hamburger_menu_note p:first-of-type {
  color: #e9ebf6;
}

.hamburger_menu_copy {
  margin-top: 6px;
  font-size: 10px;
  font-weight: 400;
  font-family: "Oswald", sans-serif;
}

.hamburger_menu_copy small {
  font-size: 10px;
}

.hamburger_menu_contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px;
  background-color: #e9ebf6;
  text-align: center;
}

.hamburger_menu_contact_title {
  font-size: 20px;
  line-height: 1;
  color: #202020;
}

.hamburger_menu_contact_title::after {
  content: "";
  display: block;
  width: 50px;
  height: 3px;
  margin: 16px auto;
  background-color: #a200ca;
}

.hamburger_menu_contact_mail {
  font-size: 12px;
  letter-spacing: 1.5px;
  font-family: "Oswald", sans-serif;
}

.hamburger_menu_contact_mail a {
  color: #202020;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ==========================================
  breadcrumb（HOME以外の下層ページ共通）
   ========================================== */
.breadcrumb {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  padding: 16px;
}

@media (min-width: 1025px) {
  .breadcrumb {
    padding: 40px 0 0 40px;
  }
}

.breadcrumb_list {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 5px;
  background-image: url(../img/back.webp);
  background-size: cover;
  background-position: center;
}

.breadcrumb_item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "Oswald", sans-serif;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #e9ebf6;
}

@media (min-width: 1025px) {
  .breadcrumb_item {
    font-size: 12px;
  }
}

.breadcrumb_item a {
  color: #e9ebf6;
}

.breadcrumb_item a:hover,
.breadcrumb_item a:focus-visible {
  color: #a200ca;
}

.breadcrumb_item a:focus-visible {
  outline: 2px solid #a200ca;
  outline-offset: 2px;
}

.breadcrumb_item[aria-current="page"] {
  color: #a200ca;
}

.breadcrumb_item + .breadcrumb_item::before {
  content: "―";
  color: #595959;
}


/* ==========================================
  button
   ========================================== */

.button_home,
.button_works,
.button_pagetop {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 150px;
  padding: 16px;
  margin: 20px auto;
  background-image: url(../img/back.webp);
  background-size: cover;
  background-position: center;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 12px;
  letter-spacing: 1px;
  color: #e9ebf6;
  text-align: center;
  border-radius: 5px;
}

.button_pagetop {
  width: 100px;
}

.button_home::after,
.button_works::after,
.button_pagetop::after {
  content: "";
  display: block;
  width: 50px;
  height: 3px;
  background-color: #a200ca;
}

@media (min-width: 1025px) {
  .button_home,
  .button_works,
  .button_pagetop {
    margin: 80px auto;
  }

  .button_home,
  .button_works {
    margin-bottom: 0;
  }

  .button_home {
    margin-left: calc(50% - 35px);
    margin-right: auto;
  }

  .button_home::after,
  .button_works::after,
  .button_pagetop::after {
    height: 5px;
  }

  .button_home::after,
  .button_works::after {
    width: 100px;
  }
}


/* ==========================================
  pc_nav
   ========================================== */
.pc_nav {
  display: none;
}

@media (min-width: 1025px) {
  .pc_nav {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10;
    width: 240px;
    height: 100vh;

    background-image: url(../img/back.webp);
    background-size: cover;
    background-position: center;
  }



  .pc_nav_box {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;

  }



  .pc_nav_logo {
    display: block;
    width: 100%;
    padding: 24px;
  }



  .pc_nav_list {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 80px;
    height: 100%;
  }



  .pc_nav_link {
    display: flex;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    font-family: "Oswald", sans-serif;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #e9ebf6;
  }



  .pc_nav_link.is_active {
    border-bottom: 5px solid #a200ca;
    color: #a200ca;
  }



  .pc_nav_contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 240px;
    padding: 24px 0;
    background-color: #e9ebf6;
    gap: 8px;
  }



  .pc_nav_contact_ttl {
    font-size: 24px;
    text-align: center;
    color: #202020;
    letter-spacing: 2px;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .pc_nav_contact_ttl::after{
  content: "";
  display: block;
  width: 100px;
  height: 5px;
  background-color: #a200ca;
  }



  .pc_nav_contact_mail a {
    font-family: "Oswald", sans-serif;
    font-size: 14px;
    letter-spacing: 2px;
    color: #202020;
    text-decoration: underline;
  }

  .pc_nav_note{
    width: 100%;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 16px;
  }

  .pc_nav_note p {
    font-size: 10px;
    font-weight: 400;
    display: block;
    color: #e9ebf6;
  }

}


/* ==========================================
  footer
   ========================================== */
.footer_box{
  display: none;
}


  @media (min-width: 1025px) {
    .footer_box {
      display: flex;
      width: calc(100% - 240px);
      height: 50px;
      padding-left: 80px;
      padding-right: 160px;
      background-image: url(../img/back.webp);
      background-size: cover;
      background-position: center;
      align-items: center;
      justify-content: center;
      margin-left: 240px;
    }

    .footer_copy{
      color: #e9ebf6;
      font-family: "Oswald", sans-serif;
      font-size: 12px;
      font-weight: 400;
      letter-spacing: 2px;
    }
  }


/* ==========================================
  works card（複数ページで使い回す作品カード）
   ========================================== */
.works_ttl {
  padding-left: 16px;
}

@media (min-width: 1025px) {
  .works_ttl{
    padding-left: 0;
    padding-top: 80px;
  }
}

.works_list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

@media (min-width: 1025px) {
  .works_list {
    gap: 80px;
    flex-direction: unset;
    flex-wrap: wrap;
    justify-content: center;
  }
}

.works_item {
  height: 132px;
  width: 100%;
}

@media (min-width: 1025px) {
  .works_item {
    flex: 1 1 max(400px, 45%);
    height: fit-content;
  }
}

.works_link {
  display: flex;
  padding: 16px;
  margin-left: 16px;
  margin-right: 16px;
  border-radius: 5px;
  gap: 16px;
  background-image: url(../img/back.webp);
}

@media (min-width: 1025px) {
  .works_link {
    margin: 0;
    padding: 40px;
    gap: 40px;
  }
}

.works_text_box {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.works_item_tag {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1px;
    font-family: "Oswald", sans-serif;
    font-weight: 400;
    text-transform:uppercase;
}

.works_item_tag::after {
  content: "";
  display: block;
  width: 50px;
  height: 3px;
  background-color: #a200ca;
}

@media (min-width: 1025px) {
  .works_item_tag::after {
    width: 100px;
    height: 5px;
  }
}

.works_link_img {
  height: 100px;
  width: 100px;
  object-fit: cover;
}

@media (min-width: 1025px) {
  .works_link_img {
    height: 200px;
    width: 200px;
  }
}

.works_name {
  font-family: "Oswald" , sans-serif;
  font-size: clamp(18px, 1.6667vw, 32px);
}

.works_text {
  font-family: "Noto Sans JP" , sans-serif;
  font-weight: 400;
}


/* ==========================================
  section_index（右上固定の数字あしらい。HOME・ABOUT・WORKS共通で使用）
   ========================================== */
.section_index {
  display: none;
}

@media (min-width: 1025px) {
  .section_index {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 3;
    padding-top: 40px;
    width: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .section_index_num {
    font-family: "Oswald", sans-serif;
    font-size: 80px;
    line-height: 80px;
    font-weight: 700;
    color: #202020;
    transform: rotate(90deg);
    padding-bottom: 5px;
  }

  .section_index_box {
    display: flex;
    height: 300px;
    padding-left: 27px;
  }

  .section_index_line {
    width: 5px;
    margin-top: 16px;
    background-color: #a200ca;
  }

  .section_index_scroll {
    writing-mode: vertical-rl;
    font-family: "Oswald", sans-serif;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 5px;
    color: #e9ebf6;
    text-align: end;
    padding-bottom: 8px;
  }
}

/* ==========================================
  pagetop_row（PAGE TOPボタンの行。HOME・ABOUT・WORKS共通で使用）
   ========================================== */
.pagetop_row {
  display: none;
}

@media (min-width: 1025px) {
  .pagetop_row {
    position: absolute;
    right: 0;
    bottom: 80px;
    display: flex;
    justify-content: center;
    width: 160px;
  }

  .pagetop_row .button_pagetop {
    margin: 0;
  }
}