@charset "UTF-8";

/* =====================
   変数・基本設定
===================== */
:root {
  --color-base: #F9F6F1;
  --color-main: #7A9E7E;
  --color-main-dark: #A3C1AD;
  --color-accent: #4A5D4F;
  --color-text: #3A3530;
  --color-text-sub: #7A7068;
  --color-border: #E2DDD8;
  --color-white: #FFFFFF;
  --font-ja: 'Noto Serif JP', serif;
  --font-en: 'Cormorant Garamond', serif;
  --max-width: 1200px;
  --padding-x: 40px;
}

body {
  font-family: var(--font-ja);
  background-color: var(--color-base);
  color: var(--color-text);
  line-height: 1.8;
  font-size: 1rem;
}

a {
  text-decoration: none;
}

/* =====================
   共通レイアウト
===================== */
.inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--padding-x);
}

.section-title {
  font-family: var(--font-en);
  font-size: 2.5rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--color-main);
  margin-bottom: 8px;
}

.section-sub {
  font-size: 0.85rem;
  color: var(--color-text-sub);
  letter-spacing: 0.1em;
  margin-bottom: 56px;
}

section {
  padding: 40px 0;
}

/* =====================
   PC版のみ
===================== */
.pc-only {
  display: block;
}

.sp-only {
  display: none;
}

/* =====================
   ヘッダー
===================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background-color: rgba(249, 246, 241, 0.95);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--padding-x);
  height: 64px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-logo {
  font-family: var(--font-en);
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  color: var(--color-text);
}

.nav-list {
  display: flex;
  gap: 36px;
}

.header-nav a {
  font-size: 1rem;
  letter-spacing: 0.15em;
  color: var(--color-text-sub);
  transition: color 0.2s;
}

.header-nav a:hover {
  color: var(--color-main);
}

/* =====================
   ファーストビュー
===================== */
#hero {
  padding-top: 64px;
  /* min-height: 100vh; */
  display: flex;
  align-items: center;
  background-color: var(--color-base);
  position: relative;
  overflow: hidden;
}

#hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background-color: #EDE8E1;
  z-index: 0;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--padding-x);
  display: flex;
  align-items: center;
  /* gap: 60px; */
  width: 100%;
  position: relative;
  z-index: 1;
}

.hero-text {
  flex: 1;
}

.hero-label {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--color-main);
  margin-bottom: 24px;
  display: block;
}

.hero-name {
  font-family: var(--font-en);
  font-size: 3.8rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1.2;
  margin-bottom: 24px;
  color: var(--color-text);
}

.hero-catch {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--color-text-sub);
  margin-bottom: 40px;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border: 1px solid var(--color-main);
  color: var(--color-main);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  transition: all 0.3s;
}

.hero-btn:hover {
  background-color: var(--color-main);
  color: var(--color-white);
}

.hero-img {
  width: 600px;
  /* flex-shrink: 1; */
  margin-top: 26px;
}

.hero-img img {
  width: 100%;
  height: 680px;
  object-fit: cover;
}

.hero-img {
  opacity: 0;
  transform: translateY(30px);
  transition: all 1.2s ease;
}

.hero-img.show {
  opacity: 1;
  transform: translateY(0);
}


/* =====================
   About
===================== */
#about {
  background-color: var(--color-white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-img {
  width: auto;
}

.about-img img {
  width: 100%;
  height: auto;
  object-fit: cover;
}


.about-text {
  font-size: 0.95rem;
  line-height: 2;
  color: var(--color-text-sub);
  margin-top: 24px;
}

.fadein {
  opacity: 0;
  transform: translateY(20px);
  transition: all 1s ease;
}

.fadein.show {
  opacity: 1;
  transform: translateY(0);
}

/* =====================
   Skills
===================== */
#skills {
  background-color: var(--color-base);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.skill-card {
  background-color: var(--color-white);
  /* border: 1px solid var(--color-border); */
  padding: 32px;
}

.skill-card-title {
  font-size: 1.125rem;
  letter-spacing: 0.2em;
  color: var(--color-main);
  margin-bottom: 20px;
}

.skill-content {
  display: flex;
  gap: 20px;
  margin-bottom: 24px;

}

.skill-icon {
  width: 90px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.skill-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.skill-text {
  width: 80%;
}

/* =====================
   Works
===================== */
#works {
  background-color: var(--color-white);
}


.work-card {
  display: block;
  transition: opacity 0.3s;
}

.work-card:hover {
  opacity: 0.8;
}

.work-thumb {
  display: block;
  width: 70%;
  height: auto;
  margin: 20px auto;
}


.work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  justify-content: center;
}

.work-tag {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--color-main);
  border: 1px solid var(--color-main);
  padding: 3px 10px;
}

.work-title {
  font-size: 1.05rem;
  font-weight: 400;
  margin-bottom: 8px;
  color: var(--color-text);
  text-align: center;
}

.work-desc {
  font-size: 0.85rem;
  color: var(--color-text-sub);
  line-height: 1.7;
  text-align: center;
}

.works-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  margin-bottom: 30px;
  padding-top: 20px;
}

.works-wrapper.reverse {
  flex-direction: row-reverse;
}

.works-left {
  width: 48%;
  height: auto;
  margin: 0 auto;
}

.works-right {
  width: 48%;
  height: auto;
  margin: 0 auto;
}

.works-right span {
  display: block;
  font-family: var(--font-en);
  color: var(--color-main);
  font-weight: bold;
}

.works-text {
  width: auto;
  margin-bottom: 20px;
}

.works-item {
  display: flex;
  justify-content: center;
  margin-bottom: 80px;
}

.works-btn {
  display: inline-block;
  padding: 14px 32px;
  border: 1px solid var(--color-main);
  color: var(--color-main);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  transition: all 0.3s;
  width: fit-content;
  /* margin: 0 auto 40px; */


}

.works-btn:hover {
  background-color: var(--color-main);
  color: var(--color-white);
}

/* =====================
   Contact
===================== */
#contact {
  background-color: var(--color-base);
  text-align: center;
}

.contact-text {
  font-size: 0.95rem;
  color: var(--color-text-sub);
  line-height: 2;
  margin-bottom: 48px;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 48px;
  background-color: var(--color-main);
  color: var(--color-white);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  transition: background-color 0.3s;
}

.contact-btn:hover {
  background-color: var(--color-main-dark);
}

/* =====================
   TOPへ戻るボタン
===================== */
.pagetop {
  height: 50px;
  width: 50px;
  position: fixed;
  right: 30px;
  bottom: 134px;
  background: rgba(163, 193, 173, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
  cursor: pointer;
  border: none;
  outline: none;
}

.pagetop-arrow {
  display: block;
  height: 10px;
  width: 10px;
  border-top: 2px solid rgba(58, 53, 48, 0.6);
  border-right: 2px solid rgba(58, 53, 48, 0.6);
  transform: translateY(20%) rotate(-45deg);
}

.pagetop {
  opacity: 0;
  visibility: hidden;
  transition: .3s;
}

.pagetop.show {
  opacity: 1;
  visibility: visible;
}


/* =====================
   フッター
===================== */
footer {
  background-color: var(--color-text);
  color: var(--color-base);
  text-align: center;
  padding: 32px var(--padding-x);
}

.footer-logo {
  font-family: var(--font-en);
  font-size: 1.2rem;
  letter-spacing: 0.15em;
  margin-bottom: 12px;
  color: var(--color-base);
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--color-text-sub);
  letter-spacing: 0.1em;
}

/* =====================
   作品詳細ページ共通
===================== */
.works-detail-hero {
  padding-top: 64px;
}

.works-detail-hero img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}

.works-detail-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 80px 40px;
}

.works-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.works-detail-title {
  font-size: 1.8rem;
  font-weight: 400;
  margin-bottom: 16px;
}

.works-detail-sub {
  font-size: 0.85rem;
  color: var(--color-text-sub);
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--color-border);
}

.works-detail-section {
  margin-bottom: 48px;
}

.works-detail-section h3 {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--color-main);
  margin-bottom: 16px;
}

.works-detail-section p {
  font-size: 0.95rem;
  color: var(--color-text-sub);
  line-height: 2;
}

.works-detail-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border: 1px solid var(--color-main);
  color: var(--color-main);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  margin-top: 16px;
  transition: all 0.3s;
}

.works-detail-link:hover {
  background-color: var(--color-main);
  color: var(--color-white);
}

.works-nav {
  display: flex;
  justify-content: space-between;
  padding: 40px;
  border-top: 1px solid var(--color-border);
  max-width: 800px;
  margin: 0 auto;
}

.works-nav a {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  color: var(--color-text-sub);
  transition: color 0.2s;
}

.works-nav a:hover {
  color: var(--color-main);
}

/* =====================
   SP対応 (max-width: 768px)
===================== */
@media screen and (max-width: 768px) {
  :root {
    --padding-x: 20px;
  }

  section {
    padding: 20px 0;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .section-sub {
    margin-bottom: 10px;
  }

  .pc-only {
    display: none;
  }

  .sp-only {
    display: block;
  }

  /* ヘッダー */
  ul,
  li {
    margin: 0;
    padding: 0;
  }

  .header-inner .header-nav {
    overflow-y: scroll;
    -ms-overflow-style: none;
    scrollbar-width: none;

    opacity: 0;
    visibility: hidden;

    background-color: rgba(249, 249, 249, 0.9);
    width: 100%;
    height: 100vh;

    position: fixed;
    top: 0;
    left: 0;

    text-align: center;

    transition: opacity 0.5s ease, visibility 0.5s ease;
    z-index: 100;
  }

  /* ---------- parts ---------- */

  .header-inner {
    position: relative;
  }

  .header-inner #nav-toggle {
    z-index: 101;
    width: 30px;
    height: 17px;
    position: absolute;
    top: 24px;
    right: 20px;
  }

  .header-inner .bar {
    width: 30px;
    height: 2px;
    display: block;
    position: absolute;
    left: 50%;
    background-color: var(--color-text);
    transition: all 0.3s ease;
  }

  .header-inner .bar-top {
    top: 0;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
  }

  .header-inner .bar-center {
    top: 7px;
    transform: translateX(-50%);
  }

  .header-inner .bar-bottom {
    bottom: 0;
    transform: translateX(-50%);
  }

  .header-inner #nav-toggle.close .bar-top {
    transform: translate(-50%, 10px) rotate(45deg);
  }

  .header-inner #nav-toggle.close .bar-center {
    opacity: 0;
  }

  .header-inner #nav-toggle.close .bar-center {
    display: none;
  }

  .header-inner #nav-toggle.close .bar-bottom {
    transform: translate(-50%, -5px) rotate(-45deg);
  }

  /* nav-list */
  .header-inner .header-nav {
    overflow-y: scroll;
    -ms-overflow-style: none;
    scrollbar-width: none;
    opacity: 0;
    visibility: hidden;
    background-color: rgba(249, 249, 249, 0.9);
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    text-align: center;
    transition:
      opacity 0.5s ease,
      visibility 0.5s ease;
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .header-inner .header-nav::-webkit-scrollbar {
    display: none;
  }

  .header-inner .header-nav.show {
    opacity: 1;
    visibility: visible;
  }

  .header-inner .nav-list {
    max-width: 840px;
    padding: 20px;
    margin: 0 auto;
    list-style: none;
    /* border-top: 1px solid var(--color-main); */
  }

  .header-inner .nav-link {
    display: block;
    padding: 15px 0;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid rgba(124, 124, 124, 0.4)
  }

  .header-inner .nav-list {
    display: flex;
    flex-direction: column;
    gap: 50px;
  }

  /* -------------------------------------------------
   ▼▼ ここから フェードインアニメーション ▼▼
--------------------------------------------------- */

  /* navアイテム：初期状態 */
  .nav-item {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
  }

  /* メニューが開いたとき */
  .header-nav.show .nav-item {
    opacity: 1;
    transform: translateY(0);
  }

  /* 順番に表示 */
  .header-nav.show .nav-item:nth-child(1) {
    transition-delay: 0.1s;
  }

  .header-nav.show .nav-item:nth-child(2) {
    transition-delay: 0.2s;
  }

  .header-nav.show .nav-item:nth-child(3) {
    transition-delay: 0.3s;
  }

  .header-nav.show .nav-item:nth-child(4) {
    transition-delay: 0.4s;
  }

  /* ファーストビュー */
  #hero::before {
    display: none;
  }

  .hero-inner {
    flex-direction: column;
    padding-top: 40px;
    gap: 40px;
  }

  .hero-name {
    font-size: 2.4rem;
  }

  .hero-img {
    width: 100%;
  }

  .hero-img img {
    height: 300px;
  }


  /* About */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-img{
    margin: 0 auto;
  }

  .about-img img {
    height: 230px;
    width: auto;
  }

  #about .section-title {
    order: 1;
  }

  #about .section-sub {
    order: 2;
  }

  .about-img {
    order: 4;
  }

  .about-text {
    font-size: 0.9rem;
    line-height: 2;
    color: var(--color-text-sub);
    margin-top: 20px;
    order: 3;
  }



  /* Skills */
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Works */
  .work-thumb {
    width: 100%;
    height: auto;
  }

  .works-wrapper {
    flex-direction: column;
    gap: 60px;
    /* padding-top: 20px; */
    align-items: center;
    text-align: center;
    margin-bottom: 10px;
  }

  .works-left,
  .works-right {
    width: 100%;
  }

  .works-wrapper.reverse {
    flex-direction: column;
  }

  .work-tags {
    gap: 6px;
  }

  .work-title {
    text-align: center;
  }

  .works-text {
    text-align: left;
  }
 .works-item {
  margin-bottom: 40px;
} 

  .works-right span {
    text-align: left;
  }

  /* 作品詳細 */
  .works-detail-hero img {
    height: 240px;
  }

  .works-detail-content {
    padding: 48px 20px;
  }

  /* =====================
   TOPへ戻るボタン
===================== */
  /* .pagetop {
    height: 30px;
    width: 30px;
    position: fixed;
    right: 1px;
    bottom: 134px;
    background: #fff;
    border: solid 1px rgba(58, 53, 48, 0.4);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
    cursor: pointer;
  }

  .pagetop-arrow {
    display: block;
    height: 5px;
    width: 5px;
    border-top: 2px solid var(--color-text);
    border-right: 2px solid var(--color-text);
    transform: translateY(20%) rotate(-45deg);
  } */
}