 body {
  font-family: "Shippori Mincho B1", serif;
  font-weight: 400;
  font-style: normal;
  color: #3a3a3a;
  background-color: #FAF8F4;
  font-size: 16px;
} 

main {
  margin-left: clamp(140px, 15vw, 180px);
}

section {
  margin: 120px auto;
}

/* セクション切替フェードイン */
.fadeIn {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
  transition-delay: 0.3s;
}

.fadeIn.show {
  opacity: 1;
  transform: translateY(0);
}  

.worksFadeIn {
  opacity: 0;
  transform: translateY(20px) scale(0.96);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.worksFadeIn.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}


/* =========================
   top
========================= */

#top {
  opacity: 0;
  transform: translateY(30px);
  animation: topFade 1.2s ease-out forwards;

}

@keyframes topFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ---------- ヘッダー ---------- */
.header-wrapper {
  font-family: "Cormorant SC", serif;
  font-weight: 500;
  font-style: normal;
  background: #FAF8F4;

  position:fixed;
  top: 0;
  left: 0;

  width: clamp(140px, 15vw, 180px);  
  height: 100vh; 

  display: flex;
  flex-direction: column; 
  align-items: center;
  padding-top: clamp(24px, 4vh, 40px);

  border-right: 1px solid #d6cfc2;
  z-index: 1000; 
}

.header-logo {
  height: 120px;
  width: 120px;

  display: flex;
  align-items: center;
  justify-content: center;
  
}

.header-logo-link {
  display: block;
  width: clamp(60px, 6vw, 80px);
  height: clamp(60px, 6vw, 80px);
  margin-bottom: clamp(24px, 5vh, 40px);
}

.header-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  transform: rotate(-20deg);
}

 .header-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.header-nav-link {
  color: #3c3c3c;
  text-decoration: none;
}

.header-nav-item {
  padding: 12px 0;
  text-align: left;
  font-size: 24px;

  transition: opacity 0.3s;
}

.header-nav-item:hover {
  opacity: 0.6;
  color: #D6A7A0;
}

/* ---------- メインビジュアル ---------- */
.main-visual {
  width: 100%;
  height: auto;
  display: block;
}

h1 {
  font-family: "Cormorant SC", serif;
  font-weight: 500;
  font-style: normal;

   font-size: clamp(48px, 7vw, 96px);
}

.first-name {
  position: absolute;
  top: 30%;
  left: 10%;
  color: #FAF8F4;
}

.last-name {
  position: absolute;
  top: 40%;
  left: 13%
}

.top-title {
  position: absolute;
   top: 65%;
  left: 11%;

  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
  font-style: normal;
  font-size: clamp(40px, 5vw, 90px);
}

.top-wrapper {
  position: relative; 
}


/* ---------- 中見出し ---------- */
/* トップページ 見出し全体 */
.section-title {
  margin-left: 50px;
  margin-bottom: 100px;
}

/* h2 + 線 */
.section-title-group {
  display: inline-flex;
  align-items: center;
  gap: 28px;
}

/* h2 */
.section-title h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(40px, 5vw, 56px);
  font-weight: 500;
  letter-spacing: 0.12em;
  color: #3c3c3c;
  margin: 0;
}

/* 頭文字だけ強調 */
.section-title .initial {
  font-size: 1.4em;
  color: #D6A7A0;
}

/* 横線 */
.section-line {
  width: 80px;
  height: 1px;
  background-color: #5E7864;
}

/* 日本語サブタイトル */
.section-title p {
  margin-top: 16px;
  margin-left: 120px;
  font-size: clamp(14px, 1.2vw, 16px);
  letter-spacing: 0.25em;
  color: #8a8a8a;
}

/*----------  Concept ---------- */

#concept {
  border-top: 1px solid rgba(0,0,0,0.04);
  border-bottom: 1px solid rgba(0,0,0,0.04);
  padding-bottom: 50px;
  background-color: #F0ECE4;
}

.concept-wrapper{
  margin: 0 auto;
  padding-inline: 20px;

}

.logo {
  width: 350px;
  height: 350px;
  margin-left: 20%;
}

.logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  transform: rotate(-20deg);
}

.concept-container {
  margin-left: 50%;
}

.concept-en {
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
  font-style: normal;
  font-size: 28px;
  margin: 0 0 0 1em;
}

.concept-ja {
  font-size: 36px;
  margin: 0 0 0 2em;
}

.concept-text p {
  font-size: 20px;
}


/* ---------- About ---------- */

.about-wrapper{
  margin: 0 auto;
  padding-inline: 20px;

}

.about-main-photo {
  width: 400px;
  height: 400px;
  margin-left: 50%;

  position: relative; 
  display: inline-block;
}

.about-main-photo::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: #D6A7A0; 
  top: 18px;   
  left: 18px;  
  z-index: -1; 
  border-radius: 6px; 
}

.about-photo1 {
  width: 100%;
  height: 100%;
  object-fit: contain;


  display: block;
  position: relative;
  z-index: 1;
  border-radius: 6px; /* 角丸にしたい場合 */
}

.about-container {
  margin: 0 0 100px 15%;
}

.name-ja {
  font-size: 36px;
}

.name-en {
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
  font-style: normal;
  font-size: 28px;
  margin: 0 0 0 2em;
}

.about-text {
  font-size: 20px;
}


/* viewmore ボタン */
.viewmore {
  margin-top: 40px;
  margin-left: 70%;
}

.viewmore-btn {
  font-family: "Cormorant SC", serif; 
  font-size: 28px;
  letter-spacing: 0.08em;
  display: inline-block;
  position: relative;
  padding: 0.25em 1em;
  border-top: solid 1px #5E7864;
  border-bottom: solid 1px #5E7864;
  text-decoration: none;
  color: #5E7864;
}
.viewmore-btn:before, .viewmore-btn:after {
  content: '';
  position: absolute;
  top: -7px;
  width: 2px;
  height: -webkit-calc(100% + 14px);
  height: calc(100% + 14px);
  background-color: #5E7864;
  transition: .3s;
}
.viewmore-btn:before {
  left: 7px;
}
.viewmore-btn:after {
  right: 7px;
}
.viewmore-btn:hover:before {
  top: 0px;
  left:0;
  height: 100%;
}
.viewmore-btn:hover:after {
  top: 0px;
  right: 0;
  height: 100%;
}


/* ---------- Works ---------- */

#works {
  border-top: 1px solid rgba(0,0,0,0.04);
  border-bottom: 1px solid rgba(0,0,0,0.04);
  padding-bottom: 50px;
  background-color: #F0ECE4;
}

.works-wrapper {
  display: flex;
  justify-content: center;
  flex-direction: column;

  max-width: 1200px;
  margin: 0 auto;
  padding-inline: 20px;
}

.works-column {
  display: flex;
  flex-wrap: wrap;         /* 折り返し */
  justify-content:space-around;
  margin: 60Px;
}

.works-item {
  width: 450px;
}

.works-item > a {
  color: #3a3a3a;
  text-decoration: none;
}

/* ホバー時アニメーション */
.works-item:hover .works-img {
  transform: scale(1.06);
}

.works-link {
  position: relative;
  display: block;
  overflow: hidden;   /* ← これ必須 */
  border-radius: 8px; 
  text-decoration: none;
  color: inherit;
}

.works-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.05),
    rgba(0,0,0,0.18)
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.works-item:hover .works-link::after {
  opacity: 1;
}

.works-img {
  display: block; 
  transform: scale(0.95);
  transition: transform 0.4s ease;
}

/* hover可能なデバイスのみ */
@media (hover: hover) and (pointer: fine) {
  .works-1:hover::after {
    opacity: 1;
  }
  .works-item:hover .works-img {
    transform: scale(1);
  }
}

/* 画像 */
.works-img {
  width: 100%;
  height: auto;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  
  display: block;
  transition: transform 0.5s ease;
}

/* テキスト */
.works-img-text {
  margin-top: 14px;
  margin-left: 30px;
}

.works-img-text > h5 {
  font-size: 20px;
  font-weight: bolder;
  line-height: 1.6;
  margin-bottom: 4px;
}

.works-img-text > p {
  font-family: "Cormorant Garamond", serif;
  font-size: 16px;
  color: #5E7864;
  margin: 0;
}

/* ---------- Contact ---------- */

.contact-text {
  margin-top: 40px;
  margin-left: 150px;
}

.contact-text h5 {
  font-size: 16px;
  font-weight: normal;
  line-height: 1.8;
}

#contact form {
  width: 520px;
  margin: 60px auto 0;
}

#contact form > div {
  margin-bottom: 28px;
}

#contact label {
  font-size: 16px;
  display: block;
  margin-bottom: 6px;
}

.required {
  color: #c04b4b;
}

#contact input[type="text"],
#contact input[type="email"] {
  width: 100%;
  height: 44px;
  background-color: #e0e0e0;
  border: none;
  padding: 0 12px;
  font-size: 14px;
  box-sizing: border-box;
}

#contact textarea.details {
  width: 100%;
  height: 160px;
  background-color: #e0e0e0;
  border: none;
  padding: 12px;
  font-size: 14px;
  resize: none;
  box-sizing: border-box;
}

#contact input:focus,
#contact textarea:focus {
  outline: none;
  background-color: #d8d8d8;
}

.submit {
  text-align: center;
  margin-top: 50px;
}

.submit-btn {
  background-color: #fff;
  color: #5E7864;
  border: 1px solid #5E7864;

  padding: 12px 40px;
  border-radius: 999px;
  font-size: 14px;
  letter-spacing: 0.1em;

  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.submit-btn:hover {
  background-color: #5E7864;
  color: #fff;
}





/* ---------- ページトップ ---------- */

.pagetop {
  position: fixed;
  right: 32px;
  bottom: 32px;
  z-index: 100;

  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);

  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    visibility 0.3s ease;
}

.pagetop.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.pagetop-btn {
  width: 48px;
  height: auto;
  cursor: pointer;

  transition:
    transform 0.25s ease,
    opacity 0.25s ease;

    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.15));
}

@media (hover: hover) and (pointer: fine) {
  .pagetop-btn:hover {
    transform: translateY(-4px);
    opacity: 0.85;
  }

}




/* ---------- フッター ---------- */

.footer-wrapper {
  padding: 100px 40px;
  background-color: #D6A7A0; 
  position: relative;
}

.thanks {
  text-align: center;
}

.thanks > h4 {
  font-size: 24px;
  font-weight: normal;
  letter-spacing: 0.12em;
  margin-bottom: 2px;
}

.thanks h4 span {
  color: #5E7864; 
}

.thanks h5 {
  font-family: "Cormorant SC", serif;
  font-size: 20px;
  font-weight: normal;
  letter-spacing: 0.1em;
  margin-top: 2px;
}

.thanks h5 span {
  color: #5E7864;
}

.thanks-line {
  width: 440px;
  height: 1px;
  background-color: #5E7864;
  margin: 0 auto;
}


/* ---------- コピーライト ---------- */
.copyright {
  position: absolute;
  right: 20px;
  bottom: 14px;
}

.copyright small {
  font-size: 11px;
  color: #3a3a3a;
}





/* =========================
  About
========================= */

/* ---------- セクション見出し全体 ---------- */
.section-title2 {
  text-align: center;
  margin: 80px auto;
}

/* About の横線＋見出し */
.section-title-group2 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

/* 横線 */
.section-line2 {
  width: 60px;
  height: 1px;
  background-color: #5E7864;
}

/* h2 */
.section-title2 h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(36px, 4vw, 48px);
  font-weight: 500;
  letter-spacing: 0.08em;
  color: #3c3c3c;
  margin: 0;
}

/* 頭文字だけ少し強調 */
.section-title2 .initial {
  font-size: 1.3em;
  color: #D6A7A0;
}

/* 日本語サブタイトル */
.section-title2 p {
  margin-top: 12px;
  font-size: clamp(14px, 1.2vw, 16px);
  color: #8a8a8a;
  letter-spacing: 0.2em;
}



/* ABOUT */

/* ---------- 全体 ---------- */
.about-more-wrapper {
  max-width: 1440px;

  margin: 80px auto 0;
}

#about-more {
  opacity: 0;
  transform: translateY(30px);
  animation: aboutFade 1.2s ease-out forwards;
  margin: 60px auto 120px auto;
}

@keyframes aboutFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- 写真 ---------- */
.about-more-wrapper img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;

  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

/* 左上の写真 */
.about-photo2 {
  max-width: 500px;
  width: clamp(280px, 35vw, 500px);
  aspect-ratio: 1 / 1;

  margin-top: 5%;
  margin-left: 10%;

}

/* 左下の写真 */
.about-photo3 {
  max-width: 400px;
  width: clamp(260px, 30vw, 400px);
  aspect-ratio: 4 / 5;

  margin-top: -10%;
  margin-left: 5%;
}

/* 右下の写真 */
.about-photo4 {
  max-width: 550px;
  width: clamp(300px, 40vw, 550px);
  aspect-ratio: 11 / 8;

  margin-top: -10%;
  margin-left: auto;
}

/* ---------- 名前＋最初のテキスト ---------- */
.about-more-container {
  padding-inline: clamp(16px, 5vw, 80px);
  margin-top: 5%;
  margin-left: 40%;
}

/* テキスト1 */
.about-text1 {
  max-width: 550px;
  width: 100%;
}

/* テキスト2 */
.about-text2 {
  max-width: 450px;
  width: 100%;

  margin-top: -5%;
  margin-left: 10%;
}

.name-ja {
  font-size: clamp(28px, 2.5vw, 36px);
  margin-right: 24px;

  position: relative;
}

.name-ja::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 40px;
  height: 1px;
  background: #D6A7A0;
}

.name-en {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(24px, 1.2vw, 28px);
}

.about-text1,
.about-text2 {
  font-size: clamp(14px, 1.2vw, 18px);
  line-height: 2;
  margin-top: 24px;
}




/* SKILL */

/* ---------- 全体 ---------- */
.skill-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 30px;
}


/* ---------- 各スキル ---------- */
.skill-item {
  display: flex;
  align-items: center;
  margin-bottom: 80px;
}

.skill-item-left {
  display: flex;
  justify-content: center;
  align-items: center;
}

.skill-item-right {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: row-reverse;
}

/* 円 */

.skill-ring {
  transform: rotate(-90deg); 
}

/* ---------- 外周リング ---------- */

.skill-ring circle {
  stroke-width: 10;
}

.ring-bg {
  stroke: #eee;
  fill: none;        
  stroke-width: 10;
}


.ring-progress {
  stroke: #D6A7A0;
  stroke-linecap: round;
  fill: none;        
  stroke-width: 10;

  /* 円周の長さ（2πr = 約503） */
  stroke-dasharray: 503;
  stroke-dashoffset: 503;

  animation: draw-ring 1.8s ease-out forwards;
}

.ring-center {
  fill: #fff; 
  stroke: none;
}


@keyframes draw-ring {
  to {
    stroke-dashoffset: var(--offset);
  }
}


/*------ 3/3 ------ */
.figma,
.htmlcss {
  --offset: 0;
}

/* ------ 2/3 ------ */
.photoshop,
.js,
.wp {
  --offset: 157;
}


.skill-name {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(18px, 1.2vw, 22px);
  fill: #3a3a3a;

  transform: rotate(90deg);
  transform-origin: center;
}

/* ---------- テキスト ---------- */
.skill-text {
  width: 360px;
  font-size: clamp(14px, 1.2vw, 18px);
  line-height: 1.9;
  margin: 0 40px;
}


/* ---------- スキル背景 ---------- */
.skill-item-left,
.skill-item-right {
  background: rgba(255,255,255,0.6);
  padding: 32px 40px;
  border-radius: 16px;
  margin-bottom: 80px;

  box-shadow: 0 8px 20px rgba(0,0,0,0.04);
}

/* ---------- ホバー時アニメーション ---------- */
.skill-ring {
  transition: transform 0.4s ease;
}

.skill-item-left:hover .skill-ring,
.skill-item-right:hover .skill-ring {
  transform: rotate(-90deg) translateY(-6px);
}

/* ---------- リング奥行き影 ---------- */
.ring-shadow {
  stroke: rgba(0,0,0,0.05);
  stroke-width: 10;
  fill: none;
}



/* STRENGTHS */


/* ---------- 本体 ---------- */
.strengths-wrapper {
  max-width: 1000px;
  margin: 80px auto;
  padding: 0 20px;
}

.strength-item {
  display: flex;
  margin: 64px 50px;
}

/* ---------- 左の番号（縦） ---------- */
.strength-number {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(14px, 1.2vw, 18px);
  color: #5E7864;
  writing-mode: vertical-lr;
  letter-spacing: 0.15em;
  margin-top: 10px;
  margin-left: 50px;
}

/* ---------- コンテンツ ---------- */
.strength-content {
  border-left: 1px solid #5E7864;
  padding-left: 24px;
  margin: 0;
}

/* ---------- 見出し（背景付き） ---------- */
.strength-content h3 {
  display: inline-block;
  background-color: rgba(214, 167, 160, 0.25);
  padding: 6px 14px;
  font-size: clamp(18px, 1.2vw, 22px);
  margin-bottom: 12px;

  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.12);
}


/* ---------- テキスト----------  */
.strength-content p {
  font-size: clamp(14px, 1.2vw, 18px);
  line-height: 1.9;
  margin: 0;
}




/* =========================
   works
========================= */


#works-more {
  opacity: 0;
  transform: translateY(30px);
  animation: worksFade 0.8s ease forwards;
  margin: 60px auto 120px auto;
}

@keyframes worksFade {
  from {
    opacity: 0;
    transform: translateY(30px);
    background-color: #F7F5F1;
  }
  to {
    opacity: 1;
    transform: translateY(0);
    background-color: #FAF8F4;
  }
}


#works-more .section-title2 {
  margin-bottom: 140px; /* 他より広め */
}


.work-top {
  position: relative;
  background: #F0ECE4;

  padding: 80px 0;
  margin: 120px auto ;

  display: flex;
  justify-content: center;

  box-shadow: inset 0 -1px 0 rgba(0,0,0,0.05);
}

.work-top::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 1px;
  background: rgba(0,0,0,0.08);
}

.work-top > * {
  max-width: 1300px;
  width: 100%;
}

.work-top-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 90px;
}

/* ---------- 左　画像 ---------- */


.works-image {
  max-width: 600px;
  width: clamp(280px, 35vw, 600px);
  aspect-ratio: 1 / 1;
}


/* ---------- 右　テキスト ---------- */
.work-right {
  margin-top: 24px;
}

/* 右　タイトル */
.work-title {
  font-size: clamp(28px, 5vw, 40px);
  margin-top: 24px;
}


/* ---------- 右　プラン ---------- */
.work-plan {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 80px;
}


.work-block {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;

  width: 250px;
  padding: 14px 18px;
  background: #FAF8F4;

  border-left: 3px solid #D6A7A0;

  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.work-block::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;

  width: 10px;
  height: 10px;
  background: linear-gradient(
    135deg,
    transparent 50%,
    rgba(214,167,160,0.25) 50%
  );
}

.work-block p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
}

.work-icon {
  width: 26px;
  height: auto;
  opacity: 0.85;
}

/* ---------- 下段 ---------- */

.work-bottom {
  display: flex;
  justify-content: center;
  max-width: 1000px;
  margin: 80px auto;

  background: #FAF8F7; 
  padding: 48px 0;
}

.work-info {
  display: flex;
  flex-direction: column;
  justify-content: center;

  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(0,0,0,0.05);
  overflow: hidden;
  padding: 50px 100px

}

.work-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  column-gap: 48px;
}

/* dt 左項目  */
.work-row dt {
  display: flex;
  justify-content: center;
  align-items: center;

  font-size: 20px;
  letter-spacing: 0.2em;
  padding: 12px 0;

  border-bottom: 1px solid #D6A7A0;

}

.work-row.top dt {
  border-top: 1px solid #D6A7A0;
}

/* dd 右説明  */
.work-row dd {
  font-size: 16px;
  line-height: 2;
  margin: 0;
  padding: 20px;
  width: 100%;
  border-bottom: 1px solid #ddd;
}

.work-row.top dd {
  border-top: 1px solid #ddd;
}


/*  カラーパレット  */
.color-palette {
  display: flex;
  gap: 24px;
  margin-top: 20px;
  padding: 0;
  list-style: none;

  margin-top: 24px;
  padding: 16px 20px;
  background: #F7F7F7;
  border-radius: 6px;

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background-color 0.25s ease;
}

.color-palette:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  background: #FFFFFF;
}



.color-palette li {
  display: flex;
  gap: 8px;
  align-items: center;

  min-width: 140px;
}

.chip {
  width: 32px;
  height: 24px;
  border-radius: 2px;

  transition: transform 0.25s ease;
}

.color-palette:hover .chip {
  transform: scale(1.05);
}






/* ---------- ★ 色指定 ★ ---------- */
.chip.base { background: var(--base-color); border: 1px solid #ddd; }
.chip.main { background: var(--main-color); }
.chip.accent { background: var(--accent-color); }

.ratio-fill.base { background: var(--base-color); }
.ratio-fill.main { background: var(--main-color); }
.ratio-fill.accent { background: var(--accent-color); opacity: 0.6; }

/* ---------- ★ 使用比率 ★ ---------- */

.color-palette:hover .ratio-fill.base {
  width: var(--ratio-base);
}

.color-palette:hover .ratio-fill.main {
  width: var(--ratio-main);
}

.color-palette:hover .ratio-fill.accent {
  width: var(--ratio-accent);
}


/* corporate_site */
.work-detail.corporate-site {
  --base-color: #FFFFFF;
  --main-color: #2710D5;
  --accent-color: #0D0D0D;

  --ratio-base: 70%;
  --ratio-main: 25%;
  --ratio-accent: 5%;
}

/* beauty-salon_site */
.work-detail.beauty-salon-site {
  --base-color: #FFFFFF;
  --main-color: #F0AE3E;
  --accent-color: #066aab;

  --ratio-base: 75%;
  --ratio-main: 20%;
  --ratio-accent: 5%
}

/* university-site */
.work-detail.university-site {
  --base-color: #FFFFFF;
  --main-color: #4AA0B5;
  --accent-color: #555555;

  --ratio-base: 65%;
  --ratio-main: 17%;
  --ratio-accent: 13%
}

/* photographer-portfolio-site */
.work-detail.photographer-portfolio-site {
  --base-color: #FFFFFF;
  --main-color: #000000;

  --ratio-base: 55%;
  --ratio-main: 45%;
}

/* kohare-site */
.work-detail.kohare-site {
  --base-color: #F2E8C9;
  --main-color: #D46A1C;
  --accent-color: #1C1C1C;

  --ratio-base: 60%;
  --ratio-main: 17%;
  --ratio-accent: 13%
}




.color-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.color-code {
  font-size: 12px;
  letter-spacing: 0.05em;
}

/* ---------- 使用比率バー ---------- */
.ratio-bar {
  width: 100px;
  height: 6px;
  background: rgba(0,0,0,0.08);
  border-radius: 2px;
  overflow: hidden;
}

.ratio-fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 2px;
  transition: width 0.8s ease;

  background: transparent;
  border: 1px solid #ccc;
}

.color-palette:hover .ratio-fill {
  width: var(--ratio-base);
}

.ratio-fill.accent {
  opacity: 0.6;
}

@media (hover: none) {
  .ratio-fill.base {
    width: var(--ratio-base);
  }
  .ratio-fill.main {
    width: var(--ratio-main);
  }
  .ratio-fill.accent {
    width: var(--ratio-accent);
  }

  .ratio-fill {
    transition: none; /* もしくは消す */
  }
}







.work-sample {
  display: flex;
  justify-content: center;
  max-width: 1100px;
  margin: 100px auto;

  gap: 50px;
}

.work-pc{
  height: 100%;
}

.pc-image {
  width: 750px;
  height: auto;
}

.sp-image {
  width: 250px;
  height: auto;
}

.pc-image,
.sp-image {
  box-shadow: 
    0 8px 24px rgba(0,0,0,0.08),
    0 2px 6px rgba(0,0,0,0.04);

}




/* =========================
   Smartphone
========================= */

/* =========================
   top
========================= */



@media (max-width: 1024px) {


  main {
    margin-top: 66px;
    margin-left: 0;
  }

  section {
    margin: 50px auto;
  }

  /* ---------- ヘッダー ---------- */
  .header-wrapper {

    width: 100%;
    height: 50px;
    flex-direction: row;
    justify-content: space-around;
    padding: auto 10px; 
    border-right: none;
    border-bottom: 1px solid #d6cfc2;
  }


  .header-nav-list {
    display: flex;
    gap: 25px;
  }

  .header-nav-item {
    font-size: 20px;
    padding: 0;
  }

  /* ---------- メインビジュアル ---------- */

  #top {
    margin: 60px auto;
  }

  .top-wrapper {
    display: flex;
    flex-direction: column;
  }

  .top-text {
    position: static;
    text-align: center;
    margin-top: 20px;
  }

  .first-name,
  .last-name,
  .top-title {
    position: static;
    display: block;
    color: #3a3a3a;
  }

  /* ---------- margin-lef解除 ---------- */
  .concept-container,
  .about-container,
  .logo,
  .about-main-photo,
  .viewmore {
    margin-left: 0;
  }

  .logo {
    margin: 0 auto 40px;
    width: 200px;
    height: 200px;
  }

  /* ---------- 見出し ---------- */

  .section-title {
    margin-bottom: 50px;
  }


  /* ---------- Concept ---------- */
  .concept-en {
    font-size: 24px;
  }

  .concept-ja {
    font-size: clamp(24px, 3vw, 40px);
  }

  .concept-text p {
    font-size: 16px;
  }

  .concept-container {
    text-align: center;
  }

  /* ---------- About ---------- */
  .about-main-photo {
    display: flex;
    justify-content: center;
    margin: 0 auto 40px;
    width: 280px;
    height: 280px;
  }

  .name-ja,
  .name-en {
    display: block;
  }

  .about-text {
    font-size: 16px;
  }

  .about-container {
    margin: 0;
  }

  .about-container > p {
    text-align: center;
  }

  .viewmore {
    text-align: center;
  }

  /* ---------- Works　1カラムへ ---------- */
    .works-column {
    flex-direction: column;
    margin: 0;
    gap: 40px;
    margin-bottom: 40px;
  }

  .works-item {
    width: 100%;
  }

  /* ---------- Contact ---------- */
  #contact form {
    width: 100%;
    padding-inline: 0 20px;
  }

  .contact-text {
    margin-left: 0;
    text-align: center;
  }

/* ---------- ページトップ ---------- */

.pagetop {
    right: 16px;
    bottom: 16px;
  }

  .pagetop-btn {
    width: 40px;
  }



  /*  ---------- フッター ----------*/
  .thanks h4 {
    font-size: 20PX;
  }

  .thanks h5 {
    font-size: 16px;
  }

  .thanks-line {
    width: 380px;
  }

  .footer-wrapper {
    padding: 60px 10px;
    margin: 0;
    width: 100%;
  }

  .copyright {
    position: static;
    text-align: center;
    margin-top: 40px;
  }





/* =========================
   about
========================= */

  .section-title2 {
    margin-top: 120px;
  }

  .name-ja::after {
    content: none;
  }

  .about-more-wrapper {
    margin-top: 40px;
  }


  /* ---------- 写真すべて中央寄せ ---------- */
  .about-photo2,
  .about-photo3,
  .about-photo4 {
    margin: 0 auto 32px;
    width: 90%;
    max-width: 420px;
  }

  /*  ---------- テキストブロック ---------- */
  .about-more-container {
    margin: 0 auto 40px;
    padding-inline: 16px;
    text-align: center;
  }

  .about-text1,
  .about-text2 {
    margin: 20px auto;
    padding-inline: 16px;
    text-align: center;
  }

  /* ---------- ネガティブマージン解除 ---------- */
  .about-photo3,
  .about-photo4 {
    margin-top: 0;
  }

  .name-ja,
  .name-en {
    margin: 5px 0;
  }

  /* ---------- Skill縦並び ---------- */
  .skill-item-left,
  .skill-item-right {
    flex-direction: column;
    text-align: center;
  }

  .skill-text {
    margin: 24px 0 0;
    width: 100%;
  }

  /* ---------- 縦番号を横に ---------- */
  .strength-item {
    flex-direction: column;
    margin: 48px 0;
  }

  .strength-number {
    writing-mode: horizontal-tb;
    margin: 0 0 8px;
  }

  .strength-content {
    border-left: none;
    border-top: 1px solid #5E7864;
    padding: 16px 0 0;
  }



  /* =========================
   works
========================= */

  /* ---------- 上段 ---------- */
  #works-more .section-title2 {
    margin-bottom: 0;
  }

  .work-top {
    padding: 64px 0;
    margin: 80px auto;
  }

  .work-top-inner {
    flex-direction: column;
    text-align: center;
    gap: 0;
  }

  .work-right {
    margin-top: 0;
  }

  .work-title {
    margin-top: 16px;
  }

  .work-plan {
    margin-top: 40px;
    align-items: center;
  }

  .work-block {
    max-width: 360px;
    width: 100%;
  }

  /* ---------- 下段 ---------- */
  .work-bottom {
    padding: 32px 0;
  }

  .work-info {
    padding: 32px 24px;
  }

  .work-row {
    grid-template-columns: 1fr;
    row-gap: 12px;
  }

  .work-row dt {
    justify-content: flex-start;
    font-size: 16px;
    letter-spacing: 0.1em;
    padding: 8px 0;
  }

  .work-row dd {
    padding: 0 0 20px;
    font-size: 15px;
  }

  /* ---------- カラーパレット ---------- */
  .color-palette {
    flex-direction: column;
    gap: 12px;
  }

  /* ---------- サンプル画像 ---------- */
  .work-sample {
    flex-direction: column;
    gap: 32px;
    margin: 80px auto;
  }

  .pc-image {
    width: 90%;
    margin: 30px;
    text-align: center;
  }

  .sp-image {
    width: 90%;
    margin: 30px;
    text-align: center;
  }


}