:root {
  --bg: #f9f9f9;
  --black: #202020;
  --gray: #777;
  --light-gray: #dededc;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--black);
  font-family: "Helvetica Neue", "Noto Sans JP", sans-serif;
  line-height: 1.9;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

/* HEADER */

header {
  padding: 25px 7%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--light-gray);
}

.logo {
  font-size: 12px;
  letter-spacing: .25em;
}

nav {
  display: flex;
  gap: 25px;
  font-size: 10px;
  letter-spacing: .15em;
}

nav a:hover {
  opacity: .5;
}

/* MAIN */

main {
  max-width: 1200px;
  margin: auto;
  padding: 0 7%;
}

/* MAIN VISUAL */

.main-visual {
  width: 100%;
  margin-top: 45px;
  overflow: hidden;
}

.main-visual img {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: cover;
  transition: opacity .2s;
}

.main-visual img:hover {
  opacity: .7;
}

/* PROFILE */

.intro {
  padding: 65px 0 10px;
}

.intro-label {
  font-size: 10px;
  letter-spacing: .3em;
  color: var(--gray);
}

h1 {
  font-weight: 400;
  letter-spacing: .08em;
  line-height: 1.3;
  margin: 10px 0;
}

.author-name {
  font-size: clamp(24px, 3vw, 30px);
}

.intro-comment {
  font-size: 13px;
  color: var(--gray);
  line-height: 2.3;
}

/* SECTION */

section {
  margin-bottom: 150px;
}

.section-heading {
  display: flex;
  align-items: baseline;
  gap: 20px;
  border-bottom: 1px solid var(--black);
  padding-bottom: 15px;
  margin-bottom: 45px;
}

.section-heading h2 {
  font-size: 25px;
  font-weight: 400;
  letter-spacing: .2em;
  margin: 0;
}

.section-heading span {
  font-size: 10px;
  color: var(--gray);
  letter-spacing: .10em;
}

/* NEWS */

.news-section {
  margin-top: 0;
  margin-bottom: 80px;
  padding: 15px 0;
}


/* WORKS */


.works-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 50px;
  align-items: start;
}

/* 作品画像 */
.works-main-image {
  width: 100%;
  max-width: 320px;
}

.works-main-image img {
  border: 1px solid #cccccc;
  box-sizing: border-box;
}


/* 掲載履歴 */
.publication-history {
  display: flex;
  flex-direction: column;
}

.history-item {
  padding: 0 0 22px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--light-gray);
}

.history-date {
  font-size: 10px;
  color: var(--gray);
  letter-spacing: .1em;
  margin-bottom: 5px;
}

.history-title {
  font-size: 14px;
  margin-bottom: 5px;
}

.history-detail {
  font-size: 12px;
  color: var(--gray);
  line-height: 1.9;
}

/* MOBILE */
@media (max-width: 650px) {
  .works-layout {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .works-main-image {
    max-width: 280px;
    margin: 0 auto;
  }
 }



/* CONTACT */

.contact-description {
  color: var(--gray);
  font-size: 12px;
  margin-bottom: 25px;
}

.contact-email {
  display: inline-block;
  font-size: 14px;
  border-bottom: none;
}

/* LINKS */


.social-link {
  font-size: 13px;
  letter-spacing: .08em;
  padding-bottom: 5px;
  border-bottom: none;
  transition: opacity .2s;
}

.social-link:hover {
  opacity: .5;
}

.social-list {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.sns-links {
  display: flex;
  align-items: center;
  gap: 25px;
}

.booth-link {
  display: block;
}

/* FOOTER */

footer {
  border-top: 1px solid var(--light-gray);
  padding: 35px 7%;
  display: flex;
  justify-content: space-between;
  color: var(--gray);
  font-size: 9px;
  letter-spacing: .15em;
}

.footer-logo {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: opacity .3s;
}

.footer-logo:hover {
  opacity: .5;
}

/* IMAGE MODAL */

.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.94);
  z-index: 10;
  justify-content: center;
  align-items: center;
  padding: 30px;
}

.modal.open {
  display: flex;
}

.modal img {
  max-width: 90%;
  max-height: 85vh;
  object-fit: contain;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  background: none;
  border: none;
  font-size: 32px;
  cursor: pointer;
}

/* MOBILE */

@media (max-width: 650px) {
  header {
    padding: 20px 5%;
  }

  nav {
    gap: 12px;
    font-size: 9px;
  }

  main {
    padding: 0 6%;
  }

  .main-visual {
    margin-top: 25px;
  }

  .intro {
    padding: 55px 0 20px;
  }

  section {
    margin-bottom: 80px;
  }

  .works {
    grid-template-columns: repeat(2, 1fr);
    gap: 35px 13px;
  }

  .section-heading {
    margin-bottom: 30px;
  }

  .section-heading h2 {
    font-size: 21px;
  }

  footer {
    padding: 25px 6%;
  }
}

/* 開いたときはマイナスに変更 */
.news-accordion[open] .news-arrow {
  transform: rotate(45deg);
}

/* 過去ニュース一覧 */
.news-archive {
  padding: 12px 0 5px;
}

.news-archive p {
  font-size: 11px;
  opacity: 0.6;
  margin: 0 0 8px;
}

.news-item {
  font-size: 13px;
  line-height: 1.8;
  padding: 5px 0;
}