@charset "utf-8";

/* 共通設定 */
:root {
  --main-color: #F4EDE4;
  --accent-color: #c77a84;
  --accent-color-2: #75B1A9;
  --sub-color: #B7A99A;
  --sub-color-02: #ACD0C0;
  --text-color: #4A403A;

  --header-h: 80px;

  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;

  --font-section-top:"Poppins", sans-serif;
  --font-text:'Noto Sans JP', sans-serif;
}

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


html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;
  color: var(--text-color);
  line-height: 1.6;
  background-color: var(--main-color);
}

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

ul {
 list-style: none;
}

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

a:hover {
  opacity: 0.6;
}

/* コンテナ設定共通 */

.w-container {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
}


/* セクション設定共通 */

section {
  padding: var(--space-5) var(--space-2);
  text-align: center;
  scroll-margin-top: var(--header-h);
}
.section-title {
  font-size: clamp(32px, 6vw, 80px);
  color: var(--accent-color);
  text-shadow: 3px 3px 5px rgba(0,0,0,0.2);
  margin-bottom: var(--space-4);
}

/* セクションタイトルTOP設定共通 */
.about-top,
.works-top,
.contact-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
}
/* Toplineの装飾 */
.section-top-line {
  flex: 1;
}
.section-top-line span {
  display: block;
  height: 4px;
  margin-bottom: 10px;
  transform: skewX(-40deg);
}
.section-top-line span:nth-child(1),
.section-top-line span:nth-child(3) {
  background: var(--sub-color);
}
.section-top-line span:nth-child(2) {
  background: var(--accent-color);
}

.section-title {
  font-family: var(--font-section-top);
  font-weight: 100;
}

/* 共通設定終了 */

/**** ヘッダー開始 *****/
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-h);
  background-color: var(--main-color);
  box-shadow: 0 0 15px -5px #777;
  border-bottom: 1px solid var(--text-color);
  z-index: 9999;
}

.header-container {
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 var(--space-2);
}

.header-logo img {
  height: 50px;
}

.menu-item {
  display: inline-block; /* 必須：インライン要素のままだと移動エフェクトが効きません */
  text-decoration: none;
  color: #333;
  transition: transform 0.3s ease;
}

/* ホバーしたときの動き */
.menu-item:hover {
  transform: translateY(-4px); 
}


/* メニュー（PC） */

.menu-link-text {
  display: flex;
  gap: var(--space-3);
  font-size: 20px;
  color: #777;
}

/*  ハンバーガーボタン */

.menu-button {
  display: none;
}
/**** ヘッダー終了 ****/
/****メインビジュアル開始 ****/
.main-visual {
  margin-top: var(--header-h);
  min-height: calc(100vh - var(--header-h));
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  width: 100%;
  max-width: 100%; /* 横に広がるのを絶対に許さない */
}

.main-visual-container {
  position: relative;
  display: inline-block;
  padding: 60px;
}

/* ★サイドバーの配置設定 */
.mv-sidebar {
  position: absolute;
  left: -100px;          /* 画面左端からの距離（お好みで調整） */
  top: 70px;            /* 縦方向の中央に配置 */
  transform: translateY(-50%); /* 綺麗な中央揃え */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;           /* 線と文字の間隔 */
  z-index: 10;         /* 他の要素に隠れないように */
}

/* 縦線 */
.sidebar-line {
  width: 1px;          /* 線の太さ */
  height: 150px;       /* 線の長さ（お好みで調整） */
  background-color: #333333; /* 線の色（文字色に合わせて変更してください） */
}

/* PORTFOLIOの文字 */
.sidebar-text {
  font-size: 0.85rem;   /* 文字の大きさ */
  font-weight: 500;
  letter-spacing: 0.4em; /* 文字の感覚をあけて上品に */
  text-transform: uppercase; /* 強制的に大文字に */
  writing-mode: vertical-lr; /* 縦書きにする */
  text-orientation: upright; /* 文字の向きを真っ直ぐにする */
  color: #333333;      /* 文字の色 */
}

/* ★右下サイドバーの配置設定 */
.mv-bottom-right {
  position: absolute;
  right: -123px;          /* 画面右端からの距離（左側のPORTFOLIOのleftと合わせると綺麗です） */
  bottom: -70px;         /* 画面下端からの距離 */
  display: flex;
  align-items: center;  /* 縦方向の中央揃え */
  gap: 15px;            /* 線と日付の間隔 */
  z-index: 10;
}

/* 右下の横線 */
.bottom-line {
  width: 150px;          /* 線の長さ（お好みで調整してください） */
  height: 1px;          /* 線の太さ */
  background-color: #333333; /* 左側の縦線や文字色と合わせる */
}

/* 日付の文字 */
.bottom-date {
  font-size: 0.9rem;    /* 文字の大きさ */
  font-weight: 500;
  letter-spacing: 0.1em; /* 気持ち少しだけ文字間隔をあける */
  color: #777777;       /* 文字の色 */
  font-family: 'Helvetica Neue', Arial, sans-serif; /* 数字が綺麗に見えるフォント */
}

.center-content {
  display: flex;
  align-items: center;
  gap: 30px;
}

/* ==========================
   円
========================== */

.circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 1px solid var(--accent-color);
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--accent-color);
  font-size: 2rem;
  flex-shrink: 0;
  animation: floatAnime 5s ease-in-out infinite;
}

@keyframes floatAnime {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
  100% {
    transform: translateY(0);
  }
}

/* ==========================
   テキスト
========================== */

.main-visual-text {
  color: var(--text-color);
}

.mv-name {
  display: block;
  margin-bottom: 10px;
  font-size: 0.9rem;
  letter-spacing: 0.2em;
}

.main-visual-text h1 {
  margin: 0;
  font-size: clamp(32px, 8vw, 64px);
  font-weight: 400;
}

.main-visual-text p {
  margin-top: 8px;
  font-size: clamp(14px, 3vw, 20px);
  line-height: 1.8;
}

.sp-br {
  display: none;
}

/* ==========================
   「」装飾
========================== */

.bracket {
  position: absolute;
  width: 100px;
  height: 100px;
}

.bracket span {
  position: absolute;
  border: 0 solid var(--accent-color);
  opacity: 0;
  animation: showBracket 0.8s ease forwards;
}

.bracket span:nth-child(1) {
  top: 30px;
  left: 30px;
  width: 40px;
  height: 40px;
  animation-delay: 0s;
}

.bracket span:nth-child(2) {
  top: 15px;
  left: 15px;
  width: 70px;
  height: 70px;
  animation-delay: 0.2s;
}

.bracket span:nth-child(3) {
  top: 0;
  left: 0;
  width: 100px;
  height: 100px;
  animation-delay: 0.4s;
}

.bracket-top-left {
  top: 0;
  left: 0;
}

.bracket-top-left span {
  border-top-width: 2px;
  border-left-width: 2px;
}

.bracket-bottom-right {
  bottom: 0;
  right: 0;
}

.bracket-bottom-right span {
  border-bottom-width: 2px;
  border-right-width: 2px;
}

.bracket-bottom-right span:nth-child(1) {
  bottom: 30px;
  right: 30px;
  top: auto;
  left: auto;
}

.bracket-bottom-right span:nth-child(2) {
  bottom: 15px;
  right: 15px;
  top: auto;
  left: auto;
}

.bracket-bottom-right span:nth-child(3) {
  bottom: 0;
  right: 0;
  top: auto;
  left: auto;
}

@keyframes showBracket {
  from {
    opacity: 0;
    transform: scale(0.8);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}
/* メインビジュアル終了 */
/*---------- アバウト開始 ----------*/
.about-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  max-width: 900px;
  margin: 0 auto;
}

.profile {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.profile img {
  width: 70%;
  height: 70%;
  object-fit: contain;
}

.profile-text {
  text-align: left;
  max-width: 600px;
  line-height: 1.85;
  font-weight: 400;
  padding-left: 20px;
  padding-right: 20px;
}


.about-top img {
  max-width: 80%; 
  max-height: 80%;
  object-fit: cover;
  width: auto;
  height: auto;
}

/*---------- スキル開始 ----------*/

.skill-container {
  max-width: 700px;
  margin: 0 auto;
}

.skill-title{
  display: inline-block;
  margin: 40px;
  padding: 10px 100px;       
  font-size: 18px;         
  border-radius: 20px;     
  font-weight: bold;
  background-color: transparent; 
  border: 2px solid var(--accent-color);    
  color: var(--accent-color);               
}

.skill-name {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 12px; 
}

/* スキル名の前に「ー」をつける */
.skill-name::before {
  content: "—  ";
  color: var(--text-color); 
  font-weight: normal; /* 線が太くなりすぎるのを防ぐ */
}

/* スキル名の後に「ー」をつける */
.skill-name::after {
  content: "  —";
  color: var(--text-color);
  font-weight: normal;
}

/* 2. バー5本を横並び（メーター） */
.skill-level {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 15px; 
}

/* バー共通 */
.skill-level span {
  width: 50px;
  height: 6px;
  background-color: #e8dddd;
  border-radius: 999px;
}

/* 色付きバー */
.skill-level span.active {
  background-color: var(--accent-color);
}

/* 3. 説明テキスト */
.skill-details {
  font-size: 14px;    
  font-weight: 500;
  line-height: 1.85;      
  margin-bottom: 25px; 
  overflow-wrap: anywhere;    /* 文字の改行。万が一の画面はみ出しを絶対に防ぐ（スマホ対策） */
  word-break: auto-phrase;
}

/* 4. スキル全体 */
.skill-item {
  border-bottom: 1px solid #777777; /* 各スキルの下に線を引く */
  padding-bottom: 15px;             /* 線の上に少し余白を作る */
  margin-bottom: 40px;              /* 次のスキルとの間隔を広げる */
}

/* アバウト終了 */
/* ワークス開始 */

.works-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  max-width: 1000px;
  margin: 0 auto;
}

.works-item img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  border: 2px solid #777;
  display: block;
}

.works-text {
  text-align: left;
  margin-top: var(--space-2);
  color: var(--text-color);
}

.works-item {
  width: 100%;
}

.works-item p {
  margin-top: 10px;
  font-weight: bold;
}

.works-title {
  font-size: 18px;
  font-weight: bold;
  padding-bottom: 5px;
  margin-bottom: 5px;
  border-bottom: 1px solid #777777; /* 下の線 */
}

.works-category {
  font-size: 14px;
  color: var(--accent-color); 
  margin-bottom: 5px;
  margin-top: 5px;
  display: flex;       
  gap: 10px;           
  justify-content: left; 
}

.works-category span {
  display: inline-block;
  padding: 4px 12px;       
  font-size: 14px;         
  color: #ffffff;        
  background-color: var(--accent-color); 
  border-radius: 20px;     
  font-weight: bold;
}

.works-description {
  text-align: left;
  font-size: 13px;
  line-height: 1.6;
  font-weight: 400;
  color: var(--text-color);
  margin-top: 10px;
  padding: 10px 0;
  border-top: 1px solid #777777;    /* 上の線 */
}


/* ワークス終了 */
/*コンタクト開始 */
.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  margin-top: 30px;
  font-family: var(--font-text);
  font-size: 14px;
  letter-spacing: 0.15rem;
  color: #333;
  text-align: center;
  border-top: 1px solid #333;
  border-bottom: 1px solid #333;
  transition: all 0.3s ease;
}

.contact-btn:hover {
  opacity: 0.6;                
  letter-spacing: 0.2em;
  background-color: var(--sub-color);
  color: aliceblue;        
}

.contact-btn::after {
  content: "";
  width: 0;
  height: 0;
  /* 4つの辺のボーダーを設定 */
  border-style: solid;
  border-width: 4px 0 4px 6px; /* 上・右・下・左 の太さ */
  /* 色の設定（左側だけ色をつけ、上下は透明にする） */
  border-color: transparent transparent transparent #333333;
  transition: all 0.3s ease;
}

.contact-btn:hover::after {
  border-left-color: aliceblue;
}

/*コンタクト終了 */
/*フッター開始 */

footer {
  background: var(--sub-color);
  color: #fff;
  padding: var(--space-3);
  text-align: center;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 20px;
  height: 100%;
  padding: 0 var(--space-2);
}


.footer-container ul {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  font-size: 20px;
  color: #333;
  font-family: var(--font-text);
}

.footer-logo img {
  height: 50px;
  width: auto;
  display: block;
}

footer p {
  text-align: center;
  font-size: 14px;
  color: #ffffff;
}

/* スクロールトップのボタンの基本スタイル */
.scroll-top-btn {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 999;
  padding: 10px 15px;
  background-color: #333;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  
  /* 最初は非表示（透明）にする */
  opacity: 0;
  visibility: hidden;
  /* ふわっと表示させるためのアニメーション設定 */
  transition: opacity 0.3s, visibility 0.3s;
}

/* ボタンにこのクラスがついたら表示 */
.scroll-top-btn.is-show {
  opacity: 1;
  visibility: visible;
}

/* ホバー時の演出 */
.scroll-top-btn:hover {
  background-color: #555;
}
/*フッター終了 */
/* =====================
   works.html
===================== */
/*.works00-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
}

.section-top-line {
  flex: 1;
}
.section-top-line span {
  display: block;
  height: 4px;
  margin-bottom: 10px;
  transform: skewX(-40deg);
}
.section-top-line span:nth-child(1),
.section-top-line span:nth-child(3) {
  background: var(--sub-color);
}
.section-top-line span:nth-child(2) {
  background: var(--accent-color);
}

.section-title {
  font-family: var(--font-section-top);
  font-weight: 100;
}

#works00  {
  margin-top: var(--header-h);
  padding: 20px;
}

#works01 h1 {
  margin-bottom: 20px;
  color: var(--accent-color);
  font-family: var(--font-text);
}


.works01-content {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.works-item img {
  width: 100%;
  display: block;
  border-radius: 8px;
}

.works-item p {
  text-align: left;
  margin-top: 8px;
}

.works-item img {
  transition: 0.3s;
}

.works-item img:hover {
  transform: scale(1.03);
}*/

/*ワークスページ終了 */

/* =====================
   detail.html
===================== */
.detail {
  margin-top: var(--header-h);
  padding: 40px 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.back-btn{
  display:inline-block;
  margin-top:30px;
  padding:10px 20px;
  border:2px solid var(--accent-color);
  border-radius:999px;
}

.detail-label{
  font-size: 14px;
  color: #777;
  font-weight: bold;
}

.detail-value{
  font-size: 18px;
  color: #333;
  margin-bottom: 24px;
}

.detail-item-title {
  text-align: center;
  margin-top: 30px;
}

.detail-categories {
  display:flex;
  justify-content:center;
  gap:10px;
}
.detail-item-title span {
  display: inline-block;
  padding: 4px 12px;       
  font-size: 13px;         
  color: #ffffff;        
  background-color: var(--accent-color); 
  border-radius: 20px;     
  font-weight: bold;
}

.detail-item{
  border-bottom: 1px solid #333;
  padding: 20px 0;
}

.detail-nav {
  width: 100%;
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

/* 前後ボタンまとめ */
.detail-nav-prev-next {
  display: flex;
  gap: 550px;
}

/* 共通ボタン */
.detail-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 30px;
  border: 1px solid #333;
  border-radius: 20px;
  transition: .3s;
}

/* 次へ矢印 */
.detail-nav-btn.next::after {
  content: "";
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 5px 0 5px 7px;
  border-color: transparent transparent transparent #333;
  margin-left: 10px;
}

/* 前へ矢印 */
.detail-nav-btn.prev::before {
  content: "";
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 5px 7px 5px 0;
  border-color: transparent #333 transparent transparent;
  margin-right: 10px;
}

/* Works一覧ボタン */
.detail-nav-home {
  display: inline-block;
  padding: 10px 50px;
  border: 1px solid #333;
  border-radius: 20px;
  transition: .3s;
}

/* ホバー */
.detail-nav-btn:hover,
.detail-nav-home:hover {
  opacity: .6;
  background-color: var(--sub-color);
  color: white;
}

/* 矢印ホバー */
.detail-nav-btn.prev:hover::before {
  border-right-color: white;
}

.detail-nav-btn.next:hover::after {
  border-left-color: white;
}

/* ＊＊＊　★スマホ用の調整　＊＊＊ */
@media (max-width: 768px) {
/* モバイル版共通設定開始 */
:root {
    --header-h: 100px;
  }

body {
  overflow-x: hidden;
}

section {
  padding: 80px 16px;
}

/* 見出し統一 */
.section-title {
    font-size: 32px;
    margin-bottom: 24px;
    line-height: 1;
}

  /* セクション間の統一 */
.about-container,
.works-list,
.contact-form {
  gap: 24px;
}

#about,#works,#contact {
  padding-top: 30px;
  padding-bottom: 30px;
}

.about-top,
.works-top,
.contact-top {
    gap: 12px;
}

.about-top img,
.works-top img,
.contact-top img {
    width: 140px;
}
/* モバイル版ヘッダー設定開始 */
.header {
  width: 100% !important;
  height: var(--header-h);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  background-color:  var(--main-color);
  box-shadow: 0 0 15px -5px #777777;
  box-sizing: border-box;
}

.header-container {
  width:100%;
  max-width:none;
  padding:0 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;      
}

.header-logo img{
  width: 50px;
  flex-shrink:0;
}

/* モバイル版メインビジュアルの設定開始 */
.main-visual{
   align-items:center;
   padding: 0px;
}

.main-visual-container {
    position: relative;
    width: fit-content;
    max-width: 100%;
    padding: 40px;
}

.mv-sidebar {
    position: absolute;
    left: 20px;             /* 「」の左端に合わせる */
    top: -50px;          /* 「」の上側に回り込ませる */
    transform: none;
    flex-direction: row-reverse; /* 線を右、文字を左に並べる */
    align-items: center;
    gap: 10px;
    width: max-content;
  }

  /* 縦線を横線に変形 */
  .sidebar-line, .bottom-line {
    width: 40px;         /* 横線の長さ */
    height: 1px;         /* 線の太さ */
  }

.sidebar-text, .bottom-date {
    writing-mode: horizontal-tb; /* ★これで確実に横書きになります */
    text-orientation: mixed;     /* 向きを通常に戻す */
    letter-spacing: 0.2em;       /* スマホ用に少し文字間を調整 */
    font-size: 0.75rem;
  }

.mv-bottom-right {
  position: absolute;
  right: 20px;
  bottom: -50px;
  transform: none;
}  

.bracket {
  width: 70px;
  height: 70px;
}

.bracket-top-left {
  top:0;
  left:0;
}

.bracket-bottom-right {
  right:0;
  bottom:0;
}


.center-content {
  flex-direction: column;
  text-align: center;
  gap: 20px;
}

.circle{
  width: 50px;
  height: 50px;
  font-size: 1.4rem;
}

.sp-br {
   display: block;
}

/* ハンバーガーメニューの開閉時の設定と、デザインを設定 */
.menu-button {
  display: block; /*通常はhannbagerボタン表示*/
  width: 70px;
  height: 70px;
  border: none;
  background-color: transparent;
  background-image: url(../images/bars-solid-full.svg);/*通常はhannbagerボタン*/
  background-repeat: no-repeat;
  background-position: center;
  background-size: 80%;
  cursor: pointer;
  position: relative;
  z-index: 10001;
}

.menu-button.active {
  background-image: url(../images/xmark-solid-full.svg); /*Activeの時はXボタンに*/
}

.menu-screen {
  display: none; /*モバイルの通常はメニュー欄は消す*/
  position: fixed; 
  top: var(--header-h); 
  left: 0;
  width: 100%;
  height: calc(100vh - var(--header-h)); 
  background-color: rgba(183, 169, 154, 0.9);
}

.menu-screen.active {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.menu-link-text {
  flex-direction: column;
  gap: var(--space-3);
  padding-top: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
}

/* モバイル版　about の設定開始 */

.about-container {
   flex-direction: column;
}

/* モバイル版　works の設定開始 */
.works-list {
  grid-template-columns: 1fr;
}

.section-title {
  font-size: 32px;
}

.works01-content {
  grid-template-columns: 1fr;
}

/* モバイル版　contact の設定開始 */


.contact-form iframe {
    min-height: 950px; /* スマホは縦長になるので高さを少し広げる */
 }

/* モバイル版　contact の設定終了 */
/* モバイル版　footer の設定開始 */

.footer-container ul {
  font-size: 14px;
  gap: 12px;
}

.footer-logo img {
  height: 36px;
}

/* モバイル版　footer の設定終了 */
/* モバイル版 detail.html  の設定開始 */
.detail-nav {
    flex-direction: column;
    gap: 20px;
  }

  .detail-nav-prev-next {
    width:100%;
    gap:10px;
  }

  .detail-nav-btn {
    flex:1;
    padding:10px 15px;
    font-size:14px;
  }

  .detail-nav-home {
    width:100%;
    max-width:280px;
    text-align:center;
  }

}



