/* ===== デザイントークン ===== */
:root {
  --navy: #06204f;
  --blue-gray: #7793ad;
  --label: #556f8a;
  --ink: #414141;
  --paper: #f9f9f9;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  color: #333;
  background: #fff;
}

a[target="_blank"]::after {
  content: " ↗";
  font-size: 0.8em;
  margin-left: 4px;
  position: relative;
  top: -2px;
}

/* ローディング */
#loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

#loading.hide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s;
}

.loading-text {
  font-size: 48px;
  font-weight: 300;
  letter-spacing: 0.2em;
  color: var(--navy);
}

.loading-text span {
  display: inline-block;
  opacity: 0;
  animation: fade 1s forwards;
}

.loading-text span:nth-child(1) {
  animation-delay: 0s;
}

.loading-text span:nth-child(2) {
  animation-delay: 0.2s;
}

.loading-text span:nth-child(3) {
  animation-delay: 0.4s;
}

.sp {
  display: none;
}

/* モーダル背景 */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  animation: fadeIn 0.3s ease;
}

/* モーダルコンテンツ */
/* モーダルコンテンツ */
.modal-content {
  position: relative;
  background:
    radial-gradient(circle at 0% 0%, rgb(182 208 255 / 40%), transparent 40%), radial-gradient(circle at 20% 10%, rgba(173, 216, 230, 0.3), transparent 50%), #ffffff;
  margin: 5% auto;
  padding: 40px;
  width: 80%;
  max-width: 600px;
  border-radius: 10px;
  animation: slideIn 0.3s ease;
  max-height: 85vh;
  display: flex;
  flex-direction: column;

}

/* 中身だけをスクロールさせるラッパー */
.modal-scroll {
  overflow-y: auto;
  padding-top: 0.5rem;
  padding-right: 4px;
}

.modal-content h3 span {
  font-size: 0.7em;
  display: block;
}

/* 閉じるボタン */
.close {
  position: absolute;
  top: 0;
  right: 2%;
  font-size: 40px;
  line-height: 1;
  color: #aaa;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: color 0.3s;
  z-index: 2; 
}

.close:hover {
  color: #000;
}

.close:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
  color: #000;
}

.view-btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 12px 80px;
  background: var(--navy);
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  font-size: 14px;
  transition: background 0.3s ease, transform 0.3s ease;
}

.view-btn:hover {
  background: var(--blue-gray);
  transform: translateY(-2px);
}

/* モーダル内テキスト */
.modal-content h3 {
  font-family: 'Noto Serif JP', serif;
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 20px;
  color: #333;
}

.modal-content p {
  line-height: 1.8;
  margin-bottom: 15px;
  color: #666;
}

.modal-content a {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 30px;
  background: var(--navy);
  /* ベースの背景色 */
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.modal-content a:hover {
  background: var(--blue-gray);
}

/* アニメーション */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes fade {
  to {
    opacity: 1;
  }
}

/* メインラッパー */
.wrapper {
  display: flex;
  min-height: 100vh;
}

/* 左側固定 */
.left-fixed {
  position: fixed;
  left: 0;
  top: 0;
  width: 35%;
  height: 100vh;
  background: linear-gradient(135deg, #1c6481 0%, #100d10 50%, #1e364b 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile {
  text-align: center;
  color: #ebebeb;
}

.profile-img {
  width: 160px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto;
}

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

.profile h1 {
  font-size: 60px;
  font-weight: 300;
  margin-bottom: 10px;
  letter-spacing: 0.1em;
  font-family: 'Noto Serif JP', serif;
}


.job-title {
  font-size: 14px;
  margin-bottom: 30px;
  font-family: 'Noto Serif JP', serif;
}

.social {
  min-height: 24px;
}

/* 右側スクロール */
.right-scroll {
  margin-left: 35%;
  width: 65%;
  padding: 80px 60px;
  background: var(--paper);
}

.sec {
  margin-bottom: 120px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* フェードイン後の状態 */
.sec.fade-in {
  opacity: 1;
  transform: translateY(0);
}

.sec h2 {
  font-size: 32px;
  font-weight: 400;
  margin-bottom: 40px;
  letter-spacing: 0.1em;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--blue-gray);
  display: inline-block;
  font-family: 'Noto Serif JP', serif;
}

.sec h2::first-letter {
  color: var(--blue-gray);
}

.sec p {
  line-height: 1.8;
  color: var(--ink);
  margin-bottom: 1em;
}

/* Works */
.works {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  /* 2列 */
  gap: 25px;
}

.work {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding: 2rem 1rem;
}

.work:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}


@media (min-width: 769px) {

  .works>.work:nth-child(odd):last-child {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 28px;
    align-items: center;
    padding: 2rem;
  }

  .works>.work:nth-child(odd):last-child>img {
    height: 100%;
    max-height: 260px;
    object-fit: contain;
  }

  .works>.work:nth-child(odd):last-child>.case-visual {
    margin-bottom: 0;
    height: 100%;
  }

  .works>.work:nth-child(odd):last-child>.work-info {
    padding-top: 0;
  }
}

.work-item {
  transition: all 0.3s;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  appearance: none;
}

.work img {
  width: 100%;
  object-fit: cover;
}

.work-info {
  padding: 20px 20px 0;
}

.work-info h3 {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 8px;
  color: #333;
}

.work-info p {
  font-size: 13px;
  color: var(--ink);
  margin-bottom: 12px;
}

.case-visual {
  min-height: 180px;
  border-radius: 10px;
  padding: 24px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #eef3f7, #ffffff);
  border: 1px solid #e6edf3;
}

.case-visual span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--label);
  letter-spacing: 0.08em;
}

.case-visual strong {
  font-family: 'Noto Serif JP', serif;
  font-size: 22px;
  font-weight: 500;
  color: var(--navy);
  line-height: 1.4;
}

.case-recruit {
  background:
    linear-gradient(135deg, rgba(6, 32, 79, 0.08), rgba(119, 147, 173, 0.12)),
    #fff;
}

.case-beauty {
  background:
    linear-gradient(135deg, rgba(224, 154, 185, 0.16), rgba(255, 255, 255, 1)),
    #fff;
}

.case-chatbot {
  background:
    linear-gradient(135deg, rgba(28, 100, 129, 0.16), rgba(255, 255, 255, 1)),
    #fff;
}

.case-marketing {
  background:
    linear-gradient(135deg, rgba(6, 32, 79, 0.10), rgba(28, 100, 129, 0.10)),
    #fff;
}

/* ===== 抽象ケースカードの格上げ（実画面が出せない案件 =====
   HTMLは変更なし。この塊を削除すれば元のプレーンな枠に戻せる。 */
.case-visual {
  position: relative;
  overflow: hidden;
}

.case-visual::before,
.case-visual::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(6, 32, 79, 0.10);
  /* navy相当の淡いリング */
  pointer-events: none;
  z-index: 0;
}

.case-visual::before {
  top: -44px;
  right: -44px;
  width: 150px;
  height: 150px;
}

.case-visual::after {
  top: -14px;
  right: -14px;
  width: 88px;
  height: 88px;
  border-color: rgba(6, 32, 79, 0.07);
}

/* テキストはモチーフより前面に */
.case-visual span,
.case-visual strong {
  position: relative;
  z-index: 1;
}

/* ラベルの先頭にエディトリアルなアクセントライン（— Corporate Site の見え方） */
.case-visual span::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--label);
  flex-shrink: 0;
}

.tags {
  display: block;
  gap: 8px;
  margin-bottom: 12px;
}

.tags span {
  padding: 4px 10px;
  background: #f0f0f0;
  display: inline-block;
  font-size: 11px;
}

.work-info .btn-view {
  display: inline-block;
  padding: 8px 20px;
  background: var(--navy);
  color: #fff;
  text-decoration: none;
  border-radius: 20px;
  font-size: 12px;
  transition: background 0.3s ease;
  border: none;
  cursor: pointer;
}

.work-info .btn-view:hover {
  background: var(--blue-gray);
}

.confidential {
  background: #ffffff;
  border: 2px dashed #e0e0e0;
  border-radius: 12px;
  padding: 1.5rem;
  color: var(--ink);
  margin-top: 3rem;
}

.confidential h3 {
  font-weight: 500;
  margin-bottom: 1rem;
}

.confidential ul {
  width: 94%;
  margin: 0 auto 1rem
}

/* Skills */
.skill-group {
  margin-bottom: 40px;
}

.skill-group h3 {
  font-size: 20px;
  margin-bottom: 15px;
  font-weight: 500;
  color: var(--navy);
}

.skill-group ul {
  list-style: none;
}

.skill-group li {
  padding: 10px 0;
  color: var(--ink);
  border-bottom: 1px solid #f0f0f0;
}




/* Writing */
.writing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 25px;
}

.writing-card {
  display: flex;
  flex-direction: column;
  min-height: 320px;
}

.writing-card .work-info {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0;
}

.writing-card .work-info p {
  flex-grow: 1;
}

.writing-card .btn-link {
  align-self: flex-start;
  margin-top: auto;
  display: inline-block;
  padding: 8px 20px;
  background: var(--navy);
  color: #fff;
  text-decoration: none;
  border-radius: 20px;
  font-size: 12px;
  transition: background 0.3s ease;
}

.writing-card .btn-link:hover {
  background: var(--blue-gray);
}

/* Contact */


.contact-button {
  display: inline-block;
  margin-top: 1rem;
  padding: 12px 80px;
  background: var(--navy);
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  font-size: 14px;
  transition: background 0.3s ease, transform 0.3s ease;
}

.contact-button:hover {
  background: var(--blue-gray);
  transform: translateY(-2px);
}

.contact-note {
  margin-top: 1rem;
  font-size: 12px;
  color: #777;
}

.copyright {
  color: var(--label);
  text-align: center;
}

/* レスポンシブ */
@media (max-width: 768px) {
  .sp {
    display: block;
  }

  .wrapper {
    flex-direction: column;
  }

  .left-fixed {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 78vh;
    border-right: none;
    border-bottom: 1px solid #f0f0f0;
  }

  .right-scroll {
    margin-left: 0;
    width: 100%;
    padding: 40px 20px;
  }

  .works {
    grid-template-columns: 1fr;
  }

  .writing-grid {
    grid-template-columns: 1fr;
  }

  .confidential {
    grid-column: 1;
  }

  .contact-box {
    padding: 1.5rem;
  }

  .contact-button {
    width: 100%;
    text-align: center;
  }
}