@charset "UTF-8";

.wrapper {
  max-width: 1000px;
  padding: 0 20px;
  margin: 0 auto;
}

/* セクションタイトル */
.section-title {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 60px;
  position: relative;
}
.section-title span {
  max-width: 1000px;
  display: block;
  padding: 0 20px;
  margin: 0 auto;
}
.section-title::before {
  content: "";
  width: calc((100% - 1000px) / 2);
  height: 1px;
  background-color: #1f1f1f;
  position: absolute;
  top: 12px;
  left: 0;
}

/*-------------------------------------------
メニュー
-------------------------------------------*/
.pagelink-list {
  display: flex;
  margin-bottom: 80px;
}
.pagelink-list li {
  width: calc(100% / 4);
  border-left: solid 1px #1f1f1f;
  font-size: 14px;
  text-align: center;
  position: relative;
}
.pagelink-list li:last-child {
  border-right: solid 1px #1f1f1f;
}
.pagelink-list li::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 7px solid #1f1f1f;
  margin: 0 auto;
  position: absolute;
  bottom: -10px;
  left: 0;
  right: 0;
}
.pagelink-list li a {
  display: block;
}

/*-------------------------------------------
About Me
-------------------------------------------*/
#aboutme {
  margin-bottom: 120px;
  /*overflow: hidden;*/
  position: relative;
  min-height: 600px;
}
#aboutme .img-top {
  width: clamp(390px, 50vw, 460px);
  position: absolute;
  top: 70px;
  right: 140px;
}
#aboutme .text-area {
  width: 70%;
  background-color: #fafafa;
  padding: 0 0 10% 6%;
  margin-top: 120px;
}
#aboutme .text-area .inner {
  width: clamp(250px, 34vw, 550px);
}
#aboutme .text-area .inner .title {
  font-family: 'Zen Old Mincho', serif;
  font-size: 24px;
  line-height: 1.6;
  margin-bottom: 40px;
}
#aboutme .text-area .inner .text {
  font-size: 15px;
  line-height: 2;
  margin-bottom: 30px;
}
#aboutme .img-bottom {
  max-width: 480px;
  margin: -60px 0 0 10%;
}
#aboutme .more-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 20px auto 0;
  padding: 10px 20px;
  background: none;
  border: 1px solid #ccc;
  border-radius: 20px;
  font-size: 13px;
  color: #666;
  cursor: pointer;
  transition: background-color 0.2s ease;
  width: fit-content;
}
#aboutme .more-toggle:hover {
  background-color: #f5f5f5;
}
#aboutme .more-toggle .arrow {
  font-size: 10px;
  transition: transform 0.3s ease;
}
#aboutme .more-toggle.is-open .arrow {
  transform: rotate(180deg);
}
/* アコーディオン部分:初期状態は高さ0で隠す */
#aboutme .more-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
#aboutme .more-details.is-open {
  max-height: 1500px; /* 中身が収まる十分な値にしておく */
}

#aboutme .detail-list {
  margin-top: 16px;
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 8px;
}
#aboutme .detail-item {
  display: flex;
  padding: 10px 0;
  border-bottom: 1px dashed #ddd;
}
#aboutme .detail-item:last-child {
  border-bottom: none;
}
#aboutme .detail-item dt {
  width: 120px;
  flex-shrink: 0;
  font-size: 13px;
  color: #999;
}
#aboutme .detail-item dd {
  margin: 0;
  font-size: 14px;
  color: #333;
}
#aboutme .detail-item dd a {
  color: #6b8e9e; /* リンクがある出来事だけ色を変える */
  text-decoration: none;
  border-bottom: 1px dashed #eee;
  transition: border-color 0.2s ease, color 0.2s ease;
}
#aboutme .detail-item dd a:hover {
  color: #4d6e7d; /* ホバー時、さらに濃い色に */
  border-color: #4d6e7d;
}

/*-------------------------------------------
Works
-------------------------------------------*/
#works {
  margin-bottom: 120px;
}
#works .item {
  display: flex;
  align-items: center;
  box-shadow: 5px 5px 25px #ccc;
  margin-bottom: 40px;
}
#works .item.store {
  flex-direction: row-reverse;
}
#works .item .text {
  width: 44%;
  padding: 1% 5%;
}
#works .item .text .title-ja {
  font-size: 12px;
  margin-bottom: 5px;
}
#works .item .text .title-en {
  font-size: 32px;
  font-weight: 500;
  margin-bottom: 20px;
}
#works .item .text .description {
  font-size: 14px;
  margin-bottom: 20px;
}
#works .item .text .view-more {
  font-size: 14px;
  text-align: right;
  text-decoration: underline;
}
#works .item .img {
  width: 56%;
  overflow: hidden;
}
#works .item.interior .img {
  clip-path: polygon(20% 0, 100% 0, 100% 100%, 0 100%);
}
#works .item.store .img {
  clip-path: polygon(0 0, 100% 0, 80% 100%, 0 100%);
}
#works .item .img img {
  transition: transform 0.8s ease;
}
#works .item:hover .img img {
  transform: scale(1.1);
}

/*-------------------------------------------
Ability
-------------------------------------------*/
#ability {
  margin-bottom: 120px;
}
#ability .ability-list {
  display: flex;
  flex-wrap: wrap;
}
#ability .ability-list dt {
  width: 200px;
  border-top: solid 1px #1f1f1f;
  font-size: 15px;
  padding: 40px 0;
}
#ability .ability-list dt:last-of-type {
  border-bottom: solid 1px #1f1f1f;
}
#ability .ability-list dd {
  width: calc(100% - 200px);
  border-top: solid 1px #ccc;
  font-size: 15px;
  padding: 40px 0;
  line-height: 1.8;
}
#ability .ability-list dd:last-of-type {
  border-bottom: solid 1px #ccc;
}

/*-------------------------------------------
Certificate
-------------------------------------------*/
#certificate {
  margin-bottom: 120px;
}
#certificate .info {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 20px;
}
#certificate .info a {
  width: 90px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: solid 1px #1f1f1f;
  font-size: 12px;
}
.qualifications {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid #ddd;
}
.qualifications li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 12px;
  border-bottom: 1px solid #ddd;
  transition: background-color 0.2s ease;
}
.qualifications li:hover {
  background-color: #f9f9f9;
}
.q-name {
  font-size: 15px;
  color: #333;
}
.q-status {
  font-size: 13px;
  font-weight: bold;
  color: #fff;
  background-color: #6b8e9e; /* お好みの色に調整可能 */
  padding: 4px 14px;
  border-radius: 20px;
  white-space: nowrap;
}
.event {
  color: #333; /* 通常のテキスト色 */
}
.event a {
  color: #6b8e9e; /* リンクがある出来事だけ色を変える */
  text-decoration: none;
  border-bottom: 1px dashed #6b8e9e;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.event a:hover {
  color: #4d6e7d; /* ホバー時、さらに濃い色に */
  border-color: #4d6e7d;
}
/*-------------------------------------------
Deck
-------------------------------------------*/
#deck {
  margin-bottom: 120px;
}
#deck .head-text {
  text-align: left;
}
.deck-tab-list {
  margin-bottom: 40px;
}
.deck-tab-list {
  display: flex;
  justify-content: center;
  padding: 0 20px;
  margin-bottom: 40px;
}
.deck-tab-list li {
  width: 100%;
  max-width: 150px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: solid 1px #1f1f1f;
  border-left: solid 1px #1f1f1f;
  border-right: solid 1px #1f1f1f;
  cursor: pointer;
  font-size: 14px;
  margin-right: 10px;
  transition: all 0.3s ease;
}
.deck-tab-list li:last-child {
  margin-right: 0;
}
.deck-tab-list li:hover {
  background-color: #1f1f1f;
  color: #fff;
}
.deck-tab-list li.active {
  background-color: #1f1f1f;
  color: #fff;
}
/* 基本(PC):フル表記を表示、短縮表記を隠す */
.deck-tab-list .short {
  display: none;
}
.deck-tab-list .full {
  display: inline;
}
.deck-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.deck-item {
  position: relative;
}
.deck-item img {
  width: 100%;
}
.deck-info {
  margin-top: 8px;
}
.deck-name {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 4px;
}
.deck-source {
  font-size: 12px;
  color: #999;
  margin-bottom: 2px;
}
.deck-date {
  font-size: 12px;
  color: #bbb;
}
.tab-list .tab {
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px 4px;
  font-size: 14px;
  color: #999;
  border-bottom: 2px solid transparent;
}
/* 通常の画像は保存しにくくする */
/* モーダルを開くための画像以外は、クリック・ドラッグを防ぐ */
img:not(.modal-open) {
  user-select: none;
  -webkit-user-drag: none;
}
.deck-item img.modal-open {
  user-select: none;
  -webkit-user-drag: none;
}
.modal-container {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;   /* 見えなくしつつ、クリックも受け付けなくする */
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal-container.active {
  opacity: 1;
  visibility: visible;
}
.modal-container.active .modal-content {
  transform: translateY(0);      /* activeが付いたら本来の位置へ */
}
.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
}
.modal-content {
  position: relative;
  max-height: 80vh;
  overflow: auto;
  max-height: 90vh;
  margin: 5vh auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translateY(20px);   /* 追加:少し下にずらした状態から */
  transition: transform 0.3s ease;
}
.modal-content img {
  max-height: 80vh;
  object-fit: contain;
  border-radius: 4px;
}
.modal-caption {
  color: #fff;
  margin-top: 12px;
  font-size: 14px;
}
.modal-close {
  position: fixed; /* absoluteから変更、画面全体を基準にする */
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: #fff;
  font-size: 32px;
  cursor: pointer;
  line-height: 1;
  z-index: 1001; /* モーダルコンテンツより手前に表示 */
}
.modal-content img,
.modal-image img {
  cursor: zoom-in;
  max-width: 100%;
  margin: auto; /* 追加:これでセンタリングしつつ、全方向スクロール可能になる */
  transition: max-width 0.3s ease;
}
/* モーダル内の画像をクリックしたら拡大(トグル式のズーム)する機能  */
.modal-content img.zoomed,
.modal-image img.zoomed {
  cursor: grab;
  zoom: 200%;
}
/* ソート機能 */
.sort-control {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 16px;
}
#sortToggle {
  background: none;
  border: 1px solid #ccc;
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 13px;
  color: #666;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
#sortToggle:hover {
  background-color: #f5f5f5;
}

/*-------------------------------------------
History
-------------------------------------------*/
.history-timeline {
  position: relative;
  padding-left: 40px;
}
/* 縦の軸線 */
.history-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 8px;
  width: 2px;
  background-color: #ddd;
}
.history-timeline-year {
  margin-bottom: 40px;
}
.year {
  position: relative;
  font-size: 20px;
  margin-bottom: 16px;
  color: #333;
}
/* 年の位置に丸ポイントを表示 */
.year::before {
  content: '';
  position: absolute;
  left: -38px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: #6b8e9e; /* テーマカラーに合わせて調整可 */
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px #6b8e9e;
}
.history-timeline-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.history-timeline-list li {
  display: flex;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px dashed #eee;
}
.history-timeline-list li:last-child {
  border-bottom: none;
}
.date {
  flex-shrink: 0;
  width: 50px;
  font-size: 13px;
  color: #999;
}
.event {
  font-size: 14px;
  color: #333;
  line-height: 1.6;
}

/*-------------------------------------------
スマホでのはみ出し対策
-------------------------------------------*/
.qualifications li,
#certificate .info,
#aboutme .detail-item,
.history-timeline-list li {
  min-width: 0;
}
.q-name,
.event,
#aboutme .text-area .inner .text {
  overflow-wrap: break-word;
}

/*-------------------------------------------
タブレット
-------------------------------------------*/
@media screen and (max-width: 1024px) {
  .deck-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

/*-------------------------------------------
スマートフォン
-------------------------------------------*/
@media screen and (max-width: 767px) {
  /* セクションタイトル */
  .section-title {
    margin-bottom: 10px;
  }
  .section-title::before {
    content: none;
  }

  /*-------------------------------------------
  メニュー
  -------------------------------------------*/
  .pagelink-list {
    margin-bottom: 40px;
  }
  .pagelink-list li {
    font-size: 12px;
  }

  /*-------------------------------------------
  About Me
  -------------------------------------------*/
  #aboutme {
    margin-bottom: 60px;
    position: static;
  }
  #aboutme .img-top {
    width: 100%;
    margin-bottom: 20px;
    position: static;
  }
  #aboutme .text-area {
    width: 100%;
    padding: 20px;
    margin: 0 0 20px;
  }
  #aboutme .text-area .inner {
    width: 100%;
  }
  #aboutme .img-bottom {
    max-width: 100%;
    margin: 0 auto;
    text-align: center;
  }
  
  /*-------------------------------------------
  Works
  -------------------------------------------*/
  #works {
    margin-bottom: 60px;
  }
  #works .item {
    flex-direction: column;
    margin-bottom: 20px;
  }
  #works .item.store {
    flex-direction: column;
  }
  #works .item .text {
    width: 100%;
    padding: 20px;
  }
  #works .item .text .title-en {
    font-size: 26px;
  }
  #works .item .img {
    width: 100%;
  }
  #works .item.interior .img,
  #works .item.store .img {
    clip-path: none;
  }
  
  /*-------------------------------------------
  Ability
  -------------------------------------------*/
  #ability {
    margin-bottom: 60px;
  }
  #ability .ability-list dt {
    width: 100px;
    padding: 20px 0;
  }
  #ability .ability-list dd {
    width: calc(100% - 100px);
    padding: 20px 0;
  }

  /*-------------------------------------------
  Deck
  -------------------------------------------*/
  #deck {
    margin-bottom: 60px;
  }
  .deck-list {
    grid-template-columns: repeat(2, 1fr);
  }
  /* スマホ:短縮表記を表示、フル表記を隠す */
  .deck-tab-list .full {
    display: none;
  }
  .deck-tab-list .short {
    display: inline;
  }

  /*-------------------------------------------
  Certificate
  -------------------------------------------*/
  #certificate {
    margin-bottom: 60px;
  }
}