/* すべてのページに適用 */
body {
  font-family: "BIZ UDPGothic","Helvetica Neue",Arial,"Hiragino Kaku Gothic ProN","Hiragino Sans",Meiryo,sans-serif;
  /* ブラウザ既定の余白を消す */
  margin: 0 auto 0 auto;
  color: #4f453b;
  background-color: #fffff9;
}

a {
  text-decoration: none;
  color: #4f453b;
}

h1 {
  font-size: 60px;
  font-weight: bold;
}

h2 {
  font-size: 40px;
}

h3 {
  font-size: 32px;
}

h4 {
  font-size: 24px;
}

h5 {
  font-size: 18px;
}

p {
  font-size: 16px;
  line-height: 1.5;
}

.category {
  text-align: center;
  margin-bottom: 100px;
}

/* viewmore */
.viewmore {
  display: flex;
  align-items: center; 
  gap: 10px;
  margin-top: auto;
  margin-left: auto;
  text-decoration: none;
}

.viewmore-icon {
  width: 30px;
  height: 30px;
}

.viewmore span{
  position: relative;
  display: inline-block;
  padding-bottom: 3px;
}

.viewmore span::after{
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  /* 下線の太さ */
  height: 1px;                    
  width: 100%;
  /* 文字色のままの色 */
  background: currentColor; 
  /* 0→1で伸びる */      
  transform: scaleX(0);           
  transform-origin: left center;
  transition: transform .28s ease;
}

.viewmore:hover span::after,
.viewmore:focus-visible span::after{
  transform: scaleX(1);
}

.top-icon {
  width: 30px;
  height: 30px;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* すべてのページに適用ここまで */

/* ヘッダー */
  header{
    position: fixed;
    top: 0; 
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: #ece3d6;
  }

  .header-inner{
    /* ヘッダー横並び */
    display: flex;
    /* 最初の子要素は左端、最後の子要素は右端 */
    justify-content: space-between;
    align-items: center;
    max-width: 1580px;
    margin: 0 auto;
    padding-inline: clamp(40px, 5vw, 200px);
    padding-top: 5px;
    padding-bottom: 5px;
    
  }

  /* ロゴ */
  #logo img {
    width: 150px;
  }

  /* ナビゲーション */
  #nav-pc {
    font-size: 24px;
    font-weight: bold;
  }

  #nav-pc ul {
    display: flex;
    padding-left: 0;
  }

  #nav-pc li {
    list-style: none;
  }

  #nav-pc a {
    text-decoration: none;
    margin-left: 50px;
  }

  #nav-pc a:hover {
    /* カーソルが乗るとピンクになる */
    color: #e296ab;
  }
/* ヘッダーここまで */

/* indexメイン */
main { 
  margin: 0 auto;
  max-width: 1580px;
  padding-inline: clamp(40px, 5vw, 200px);
}

/* メインビジュアル */
#main-visual{
  margin-top: 150px;
  margin-bottom: 200px;
  display: flex;
  /* 折り返しなし */
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  margin-inline: auto;
}

#title {
  justify-self: left;
  text-align: center;
}

.title-h1-1 {
  margin: 0;
  padding-bottom: 30px;
}

.title-h1-2 {
  margin: 0;
  padding-bottom: 50px;
}

/* タイトルアニメーション */
#title h1, 
#title h4 {
  opacity: 0;
  transform: translateY(-30px); /* 上から隠す */
  animation: fadeInDown 0.8s forwards ease-out;
}

/* 表示の順番を指定 */
#title h1:nth-of-type(1) {
  animation-delay: 0.2s;
}
#title h1:nth-of-type(2) {
  animation-delay: 0.6s;
}
#title h4 {
  animation-delay: 1s;
}

/* アニメーション定義 */
@keyframes fadeInDown {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#heart {
  display: flex;
  /* 画像を右端に配置 */
  justify-content: flex-end;
  align-items: center;
}

#heart img {
  max-width: 100%;
  height: auto;
  display: block;
  animation: float 4s infinite ease-in-out;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
/* メインビジュアルここまで */

/* スキル */
#skills {
  padding-top: 110px;
  margin-top: -110px;
}

.skill-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 200px;
}

.skill-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 48%;
  margin-bottom: 70px;
}

.skill-img {
  margin: 0;
}

.skill-img img {
  width: 150px;
  height: 150px;
  height: auto;
  margin: 0;
  padding-right: 40px;
}

.skill-body {
  flex: 1;
}

.skill-name {
  margin-bottom: 30px;
}

.skill-text {
  margin: 0;
}
/* スキルここまで */

/* アバウト */
.about-body {
  display: flex;
  /* 最初の子要素は左端、最後の子要素は右端 */
  justify-content: space-between;
  gap: 50px;
  margin-bottom: 200px;
}

.about-text {
  display: flex;
  /* 要素を縦並び */
  flex-direction: column;
  justify-content: center;
  margin-top: 50px;
  width: 60%;
}

.about-text h4 {
  text-align: center;
}

.about-img img {
  max-width: 600px;
  width: 100%;
}

.about-top {
  margin-top: 70px;
  display: flex;
}

/* アバウトここまで */

/* ワークス */
.works-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 70px;
  margin-bottom: 200px;
}

.works-body {
  display: flex;
  align-items: center;
  gap: 20px;
}

.works-category {
  display: inline-block;
  padding: 7px 20px;
  color: #fffff9;
  background-color: #ebbdc3;
  border-radius: 10px;
  margin: 0;
}

.works-img {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
}

.works-img img {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
}

/* ホバー時に白いレイヤーを表示 */
.works-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: white;
  opacity: 0; /* 初期は透明 */
  transition: 0.3s ease;
  z-index: 1; 
  pointer-events: none;
}

.works-img:hover::after {
  opacity: 0.3; /* ホバー時に白く */
}
/* ワークスここまで */

/* indexメインここまで */

/* aboutメイン */
.about-category {
  text-align: center;
  margin-top: 180px;
  margin-bottom: 100px;
}

.about-body2 {
  display: flex;
  /* 最初の子要素は左端、最後の子要素は右端 */
  justify-content: space-between;
  gap: 50px;
  margin-top: 35px;
  margin-bottom: 200px;
}

.about-name {
  display: flex;
  align-items: center;
  justify-content: center; /* 全体を中央に維持*/
  gap: 8px;
}

.about-name h4 {
  margin: 0;
}

.pig {
  width: 60px;
  height: 60px;
  display: block;
  object-fit: contain;
}

.sns {
  display: flex;
  align-items: center; 
  margin-top: 70px;
  margin-left: auto;
  text-decoration: none;
}

.xlogo {
  width: 30px;
  height: 30px;
  padding-right: 30px;
}

.xlogo:hover {
  opacity: 0.6; /* 70%の濃さにする */
  transition: opacity 0.3s; /* アニメーションを付ける */
}

.instagramlogo {
  width: 30px;
  height: 30px;
  padding-right: 10px;
}

.instagramlogo:hover {
  opacity: 0.6; /* 70%の濃さにする */
  transition: opacity 0.3s; /* アニメーションを付ける */
}

/* ヒストリー */
.history-section {
  margin-bottom: 200px;
}

.history-section h3 {
  text-align: center;
  margin-bottom: 100px;
}

.history-item {
  display: flex;
  justify-content: space-between;
}

.wrapper {
  width: 100%;
	max-width: 1000px;
	margin: auto;
	padding: 10%;
	box-sizing: border-box;
}

.history-body {
  position: relative;
}

.time-line {
  width: 4px;
  height: 90%;
  position: absolute;
  top: 0;
  left: 12%;
  z-index: 999;
  transform: translateX(-50%);
  padding-top: 20px; 
}

.time-line span {
  display: block;
  width: 100%;
  height: 100%;
  background: #ece3d6;
}

.time-ball {
  position: absolute;
	background: #ebbdc3;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	top: 50%;
	transform: translate(-50%,-50%);
	left: 12%;
	z-index: 999;
}

dl{
	padding: 10px 0;
}

dl dt{
	width: 100%;
	position: absolute;
  font-weight: bold;
}

dl dd{
	width: 60%;
	margin-left: 17%;
  white-space: nowrap;
}

.history-img img {
  width: 430px;
}
/* ヒストリーここまで */

/* グッド＆バッド */
.goodbad-section {
  margin-bottom: 200px;
}

.goodbad-section h3 {
  text-align: center;
  margin-bottom: 100px;
}

.goodbad-box {
  display: flex;
  gap: 90px;
}

.goodbad-item {
  background-color: #ece3d6;
  border-radius: 20px;
  max-width: 745px;
  width: 100%;
}

.goodbad-item h4 {
  text-align: center;
}

.goodbad-body {
  display: flex;
  margin-top: 50px;
  margin-bottom: 40px;
  margin-left: 30px;
}

.goodbad-text {
  width: 80%;
}

.goodbad-text h5 {
  margin: 0;
  padding: 0;
  padding-bottom: 10px;
}

.goodbad-text p {
  margin: 0;
  margin-left: 1em;
  padding: 0;
  padding-bottom: 20px;
}

.goodbad-pig img {
  margin-top: 90%;
  margin-right: 20px;
}
/* グッド＆バッドここまで */

/* ラブ */
.love-section {
  margin-bottom: 200px;
}

.love-section h3 {
  text-align: center;
  margin-bottom: 100px;
}

.love-body {
  display: flex;
  justify-content: center;
  background-color: #ece3d6;
  border-radius: 20px;
  padding-top: 40px;
  padding-left: 10%;
  padding-bottom: 10px;
}

.love-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.love-item { 
  flex: 1;
}

.love-title h4 {
  margin: 0;
}

.love-item img {
  width: 30px;
  height: 30px;
}

.love-text li {
  padding-bottom: 20px;
}

li::marker {
  color: #4f453b;
  /* 箇条書きの●サイズを変更 */
  font-size: 30px;
}

.love-illustration img {
  width: 300px;
  height: 200px;
}
/* ラブここまで */

/* aboutメインここまで */

/* worksメイン */
.works-section {
  margin-top: 180px;
}

.works-link {
  display: flex;
  gap: 50px; 
  margin-top: 35px;
}

.works-link a {
  font-size: 18px;
  font-weight: bold;
  color: #fffff9;
  background-color: #4f453b;
  padding: 7px 10px;
  border-radius: 10px;
}

.works-link a:hover {
  background-color: #ebbdc3;
}

#website {
  padding-top: 110px;
  margin-top: -110px;
}

.works-section h3 {
  text-align: center;
  margin-bottom: 100px;
}

#banner {
  padding-top: 110px;
  margin-top: -110px;
}

#illustration {
  padding-top: 110px;
  margin-top: -110px;
}

/* works-titleメイン */
.works-title-section {
  margin-top: 180px;
  margin-bottom: 100px;
}

.works-title-item {
  margin-top: 35px;
  display: flex;
  gap: 70px;
}

.works-title-img {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

#hamburger2 {
  max-width: 200px;
}

#logo3 {
  max-width: 400px;
}

.works-title-img img {
  max-width: 790px;
  width: 100%;
}

.works-title-body {
  display: flex;
  flex-direction: column;
}

.works-title-body h2 {
  margin: 0;
  margin-bottom: 40px;
}

.works-title-body h5 {
  margin: 0;
  margin-bottom: 30px;
}

.works-explanation h5 {
  margin: 0;
}

.works-explanation p {
  margin-top: 5px;
  margin-bottom: 30px;
}

.works-explanation a:hover {
  text-decoration: underline;
}

.allview {
  display: flex;
  margin-top: 70px;
  margin-bottom: 200px;
}

/* フッター */
footer {
  display: flex;
  /* 要素を縦並び */
  flex-direction: column;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: #ece3d6;
}

.footer-inner {
  text-align: center;
}

.footer-inner h2 {
  margin-top: 70px;
}

.contact-text {
  margin-top: 60px;
  margin-bottom: 50px;
}

.contact-link {
  display: inline-block;
  padding: 10px 15px;
  color: #fffff9;
  background-color: #4f453b;
  border-radius: 20px;
}

.contact-link:hover {
  background-color: #ebbdc3;
}

.contact-link h3 {
  margin: 0;
}

.copyright {
  font-size: 14px;
  margin-top: 100px;
  margin-bottom: 50px;
}
/* フッターここまで */

/* ハンバーガーメニュー */
/* ===== 共通：チェックボックスは非表示 ===== */
.menu-toggle { display: none; }

/* ===== ハンバーガー（閉→開で「×」に変形） ===== */
.menu-btn {
  display: none; /* PCでは非表示、SPで表示 */
  width: 40px; height: 40px;
  position: relative;
  border: none;
  background: transparent;
  cursor: pointer;
}

/* ハンバーガーの見た目指定 */
.menu-btn span {
  position: absolute;
  left: 8px; right: 8px;
  height: 3px;
  background: #fffff9;
  transition: 0.3s ease;
}

/* ハンバーガーの横棒間の距離指定 */
.menu-btn span:nth-child(1) { top: 8px; }
.menu-btn span:nth-child(2) { top: 16px; }
.menu-btn span:nth-child(3) { top: 24px; }

/* チェックONで「×」に */
.menu-toggle:checked + .menu-btn span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.menu-toggle:checked + .menu-btn span:nth-child(2) {
  opacity: 0;
}
.menu-toggle:checked + .menu-btn span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ===== オーバーレイ（黒幕） ===== */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.25);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s ease;
  z-index: 1400;
}
/* 開いたら表示 */
.menu-toggle:checked ~ .menu-overlay {
  opacity: 1;
  visibility: visible;
}

/*====================
 スマートフォン用のスタイル
=====================*/
@media screen and (max-width: 767px) {
  /* ヘッダーの左右余白をスマホ向けに調整（任意） */
  .header-inner { padding: 5px 40px; }

/* ハンバーガー表示 */
  .menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: fixed;    /* ← relative ではなく fixed に */
    top: 10px;
    right: 30px;
    z-index: 1602;      
    /* nav(1501)・overlay(1400)より上 */    
    width: 40px; height: 40px;
  }

/* PCの横並びはそのまま。SP時はドロップダウンに差し替え */
  #nav-pc {
    position: fixed;
    left: 0; right: 0;
    top: 0;
    /* 上に隠しておき、チェックで下へ */
    transform: translateY(-110%);
    transition: transform 0.3s ease;
    z-index: 1501;               /* オーバーレイより前 */
    background: #ece3d6;
    padding: 50px 0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }
  
  #nav-pc ul {
    display: flex;
    /* 縦並び */
    flex-direction: column;
    gap: 20px;
    margin: 0;
    align-items: center;
    padding-left: 0;
  }

  #nav-pc li { 
  list-style: none;
  }
  #nav-pc a {
    display: flex;
    align-items: center; 
    justify-content: center;
    width: 200px;
    height: 40px;
    font-size: 18px;
    font-weight: bold;
    margin-left: 0;
    margin-right: 0;
    background-color: #fffff9;
  }

/* チェックONでドロップダウン */
  .menu-toggle:checked ~ #nav-pc {
    transform: translateY(0);
  }

/* （任意）開いてる間は背景スクロールを止める（最新ブラウザ） */
  html:has(#menu-toggle:checked) {
    overflow: hidden;
    touch-action: none;
  }

  /* ロゴ */
#logo img {
  width: 100px;
}

/* 全体共通 */
h2 {
  font-size: 24px;
}

h3 {
  font-size: 18px;
}

h5 , h4 {
  font-size: 16px;
}

p {
  font-size: 14px;
}

.viewmore-icon {
  width: 25px;
  height: 25px;
}

.viewmore span {
  font-size: 14px;
}

.top-icon {
  width: 25px;
  height: 25px;
}

/* index.html SP */
/* メイン */
.category {
  margin-bottom: 40px;
}

/* メインビジュアル　SP */
  #main-visual {
    position: relative;
    flex-direction: column;
    margin-top: 80px;
    margin-bottom: 120px;
  }

  #title h1 {
    width: 100%;
    font-size: 26px;
    flex-wrap: nowrap;
    padding-bottom: 10px;
  }

  .title-h1-2 {
    margin: 0;
    padding-bottom: 20px;
  }

  #title h4 {
    margin-bottom: 10px;
  }

  #heart {
    margin-top: 20px;
  }

/* スキル　SP */
.skill-list {
  flex-direction: column;
  margin: 0;
  margin-bottom: 120px;
}

.skill-item {
  align-items: center;
  width: 100%;
  padding: 0;
  margin-bottom: 40px;
}

.skill-img img {
  width: 75px;
  height: 75px;
  margin-right: 0;
  padding-right: 20px;
}

.skill-name {
  margin-top: 0;
  margin-bottom: 0;
  padding-bottom: 10px;
}

/* アバウト　SP */
.about-body {
  flex-direction: column;
  margin-bottom: 120px;
  gap: 25px;
}

.about-text {
  order: 2;
  margin: 0;
  width: 100%;
}

.about-text a {
  margin-top: 40px;
}

.about-img img {
  order: 1;
}

/* ワークス　SP */
.works-list {
  grid-template-columns: 1fr;
  gap: 60px;
  margin-bottom: 120px;
}

.hide-on-sp {
  display: none;
}

.works-body {
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 10px;
}

.works-category {
  margin-top: 15px;
}

.works-text {
  margin: 0;
  font-size: 14px;
}
/* index.html SP */

/* about.html SP */
.about-category {
  margin-top: 95px;
  margin-bottom: 40px;
}

.breadcrumb {
  font-size: 14px;
}

.about-body2 {
  flex-direction: column;
  gap: 25px;
  margin-top: 30px;
  margin-bottom: 120px;
}

.sns {
  margin-top: 25px;
  gap: 0;
}

.sns a {
  margin: 0;
}

/* ヒストリー */
.history-section {
  margin-bottom: 120px;
}

.history-section h3 {
  margin-bottom: 40px;
  font-size: 18px;
}

.history-item {
  flex-direction: column;
}

.time-line {
  left: 3%;
  transform: none;
}

.time-ball {
  left: 0;
  transform: translateY(-50%);
}

dl {
  position: relative;
  padding-right: 50px;
}

dl dt {
  position: relative; /* 絶対位置を解除 */
  padding-left: 50px;
  padding-bottom: 10px;
  font-size: 14px;
}

dl dd {
  position: relative; /* 絶対位置を解除 */
  white-space: normal;
  width: 100%;
  font-size: 14px;
}

.history-img img {
  width: 100%;
  margin-top: 50px;
}

/* グッド＆バッド */
.goodbad-section {
  margin-bottom: 120px;
}

.goodbad-section h3 {
  margin-bottom: 40px;
}

.goodbad-box {
  flex-direction: column;
  gap: 50px;
}

.goodbad-body {
  flex-direction: column;
  margin-left: 20px;
  margin-bottom: 20px;
}

.goodbad-text h5 {
  font-size: 14px;
}

.goodbad-text p {
  padding-bottom: 30px;
}

.goodbad-pig img {
  margin: 0;
  padding-left: 150px;
}

/* ラブ */
.love-section {
  margin-bottom: 120px;
}

.love-section h3 {
  margin-bottom: 40px;
}

.love-body {
  flex-direction: column;
  padding-left: 0;
}

.love-item img {
  width: 20px;
  height: 20px;
}

.love-title {
  justify-content: center;
  text-align: center;
}

.love-text {
  margin-top: 10px;
  margin-bottom: 40px;
}

.love-text li {
  padding-bottom: 10px;
  font-size: 14px;
}

li::marker {
  /* 箇条書きの●サイズを変更*/
  font-size: 20px;
}

.love-illustration {
  display: flex;
  justify-content: center; /* 横中央 */
  align-items: center;     /* 縦中央 */
}

.love-illustration img {
  width: 270px;
  height: 190px;
}

/* works.html SP */
.works-section {
  margin-top: 95px;
}

.works-link {
  gap: 15px;
  flex-wrap: wrap;
}

.works-link a {
  font-size: 14px;
  white-space: nowrap;
  padding: 5px 8px;
  border-radius: 7px;
}

.works-section h3 {
  margin-top: 35px;
  margin-bottom: 40px;
}

#banner {
  padding-top: 80px;
  margin-top: -80px;
}

#illustration {
  padding-top: 80px;
  margin-top: -80px;
}

/* works-title.html SP */
.works-title-section {
  margin-top: 95px;
}

.works-title-item {
  flex-direction: column;
  gap: 30px;
  margin-bottom: 30px;
}

.works-title-body h2 {
  font-size: 24px;
  margin-bottom: 40px;
}

.works-title-body h5 {
  margin-bottom: 15px;
}

#hamburger2 {
  width: 100px;
}

#logo3 {
  max-width: 200px;
}

.allview {
  margin-top: 0;
  margin-bottom: 120px;
}

/* フッター　SP */
.footer-inner h2 {
  margin-top: 35px;
}

.contact-text {
  margin-top: 30px;
  margin-bottom: 25px;
  padding-left: 40px;
  padding-right: 40px;
}

.contact-link {
  display: inline-block;
  padding: 8px 15px;
  border-radius: 10px;
}

.copyright {
  font-size: 12px;
  margin-top: 50px;
  margin-bottom: 20px;
  padding-left: 40px;
  padding-right: 40px;
}

}

/* 低モーション設定への配慮（任意） */
@media (prefers-reduced-motion: reduce) {
  .menu-btn span, .menu-overlay, #nav-pc { transition: none !important; }
}


