@charset "utf-8";
/* CSS Document */

/* リセット */
body {
  margin: 0;

  background-image: url("main/main_back.jpg");
  background-repeat: repeat;        /* リピート */
  background-attachment: fixed;     /* 固定（←これ重要） */
  background-size: auto;            /* 繰り返しなのでauto */
}


/* スクロールバー常時表示 */
html {
  overflow-y: scroll;
}


/* header */
header {
  height: 70px;
  background-color: #fff;
position: fixed;  /* ← これ */
  top: 0;           /* ← 上に固定 */
  left: 0;
  width: 100%;

  z-index: 100;    /* ← 他より前に出す */
	  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
	
}

/* 中央寄せ用 */
.header-inner {
  height: 100%;
  margin: 0 auto;
  position: relative;
}

/* ロゴ（中央） */
.logo {
  width: 65px;
  height: 65px;

  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
	
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* メニュー（右上） */
.menu {
  width: 100px;
  height: 44px;

  position: absolute;
  top: 13px;
  right: 52px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  color: #842437;
  cursor: pointer;
}
/* 文字 */
.menu-text {
  font-size: 24px;
  font-weight: bold;
  font-family: "Meiryo", sans-serif;
  line-height: 1; /* これ重要（ズレ防止） */
}

/* 3本線全体 */
.menu-icon {
  display: flex;
  flex-direction: column;
  justify-content: space-between;

  width: 24px;
  height: 18px; /* ←全体の高さを明示 */
}

/* 1本1本 */
.menu-icon span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #842437;
}

/* メニュー全体 */
.menu-panel {
  width: 300px;
  height: 340px;

  position: fixed;
  top: 70px; /* headerの下に出す */
  right: 0;

  display: none; /* ← 最初は非表示 */
  z-index: 1000;
}

/* 開いたとき */
.menu-panel.active {
  display: block;
}

/* 上のバー */
.menu-panel-header {
  height: 40px;
  background-color: #545454;
  color: #fff;

  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* リスト */
.menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* 各項目 */
.menu-list li {
  height: 60px;
  background-color: #F2F2F2;
}

.menu-list li a {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  height: 100%;

  text-decoration: none;
  color: #842437;
  font-size: 23px;
  font-weight: bold;
}

/* 小さい文字 */
.menu-list .small {
  font-size: 18px;
  margin-left: 8px;
}

main {
  margin-top: 100px; /* headerの高さ分 */
}

.container-large {
  max-width: 1640px;
  margin: 0 auto;
}

.container {
  ax-width: 1394px;  /* ← あなたのデザイン値 */
  margin: 0 auto;     /* ← 中央寄せ */
  padding: 0 70px;    /* ← 端の余白（重要） */
}

.news-header {
  text-align: center;
}
.news-header h2 {
  font-size: 55px;
  font-weight: bold;
  color: #373636;
	margin-bottom: 1px;
}

.news-header .sub {
  font-size: 18px;
  font-weight: bold;
  color: #373636;
  margin-top: 1px;
}

.news-list {
  margin-top: 70px;
	  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 45px 40px; /* 縦 横 */
}


.news-card {
  text-decoration: none;

}

.news-card:hover {
  opacity: 0.8;
}

.news-card img {
  width: 100%;
  aspect-ratio: 420 / 290;
  object-fit: cover;
  height: auto;
  box-shadow: 0 3px 8px rgba(0,0,0,0.2);
	border-radius: 10px;
}
.news-meta {
  display: flex;
  align-items: flex-end; 
	
}

.category_n {
  display: flex;
  align-items: center;
  background-color: #842437;
  color: #fff;
  font-size: 14px;
  font-weight: bold;
  padding: 1.8px 10px;
  border-radius: 20px;
	transform: translateY(1px);
	
}

.date {
  font-size: 16px;
	font-weight: bold;
  margin-left: 10px;
  color: #373636;
  line-height: 1;
}


.news-card h3 {
  font-size: 25px;
  font-weight: bold;
  color: #373636;
  margin-top: 7px;
  margin-bottom: 5px;
}

.news-card .text {
  font-size: 16px;
  color: #373636;
  margin-top: 3px;
  line-height: 1.5;
	
}

.news-footer {
  margin-top: 60px;
  display: flex;
  justify-content: flex-end; /* ← 右寄せ */
}

.more-btn {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 230px;
  height: 40px;

  font-size: 20px;
  font-weight: bold;
  font-family: "Meiryo", sans-serif;
  color: #fff;
  text-decoration: none;

  border-radius: 30px;

  background: linear-gradient(to right, #842437, #C24B64);
	box-shadow: 0 3px 8px rgba(0,0,0,0.2);
	margin-bottom: 60px;
}

.profile {
  background-color: #fff;
  padding-top: 150px;
  padding-bottom: 160px;
  text-align: center;
}
.profile-logo {
  width: 90%;
  max-width: 453px;
  height: auto;
  object-fit: contain;
	  display: block;
  margin: 0 auto;
}

.name {
  margin-top: 32px;
	margin-bottom: 5px;
  font-size: 23px;
  font-weight: bold;
  color: #373636;
}

.job {
  font-size: 16px;
	margin-top:3px;
  color: #373636;
}

.update-title {
  margin-top: 90px;
	margin-bottom: 1px;
  font-size: 20px;
  font-weight: bold;
  color: #373636;
}

.update-list {
  margin-top: 1px;

  display: grid;
  grid-template-columns: repeat(3, 308px);
  justify-content: center;
  gap: 40px;
}

.update-item {
  width: 308px;
  height: 280px;

  background-size: cover;
  background-position: center;
padding-top: 20px;
}

.item-title {
  font-size: 22px;
  font-weight: bold;
  color: #373636;
  line-height: 1.4;
}

.btn-group {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.square-btn {
  width: 108px;
  height: 108px;

  background-color: #842437;
  border-radius: 30px;

  color: #fff;
  font-size: 22px;
  font-weight: bold;

  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
	box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

.square-btn.small {
  font-size: 18px;
}

.tall-btn {
  width: 200px;
  height: 108px;

  background-color: #842437;
  border-radius: 30px;

  color: #fff;
  font-size: 22px;
  font-weight: bold;

  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
	box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

.item1 {
  background-image: url("main/update1.jpg");
	border-radius: 30px;
}

.item2 {
  background-image: url("main/update2.jpg");
	border-radius: 30px;
}

.item3 {
  background-image: url("main/update3.jpg");
	border-radius: 30px;
}

/* セクション全体 */
.category {
  padding: 80px 80px 10px;

}



/* 共通レイアウト */
.category-item {
  display: flex;
  max-width: 1376px;
  width: 100%;
  margin: 0 auto 137px;
  
	
}

/* 左右反転 */
.category-item.reverse {
  flex-direction: row-reverse;

}

.category-item.reverse .category-image {
  margin-right: 0;
  margin-left: 29px;
}

/* 画像側 */
.category-image {
    flex: 0 1 640px;
  height: 531px;
  margin-right: 29px; 
  position: relative;
  background-size: cover;
  background-position: center;
	min-width: 0;
}

/* 各背景画像 */
.category-image.design {
  background-image: url("main/design.png");
}

.category-image.stock {
  background-image: url("main/stock.png");
}

.category-image.character {
  background-image: url("main/character.png");
}

/* 下のラベル */
.category-label {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 103px;
  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 40px;
  font-weight: bold;
  color: #fff;

  background: linear-gradient(#373636, #797979);
}

/* テキスト側 */
.category-text {
  flex: 0 1 707px;
  display: flex;
  flex-direction: column;
  justify-content: center; /* ← 縦中央寄せ */
	min-width: 0;
	align-items: flex-start;
	
}

/* メインテキスト */
.main-text {
  font-size: 27px;
  font-weight: bold;
  color: #373636;
  line-height: 1.8;
}

/* 関連リンク */
.link-title {
  margin-top: 20px;
  font-size: 16px;
  font-weight: bold;
  color: #373636;
}

.link-list {
  margin-top: 1px;
  font-size: 18px;
  color: #373636;
  list-style: none;
  padding: 0;
}

.more-btn_r {
  display: flex;
	align-self: flex-end;
  align-items: center;
  justify-content: center;

  width: 230px;
  height: 40px;

  font-size: 20px;
  font-weight: bold;
  font-family: "Meiryo", sans-serif;
  color: #fff;
  text-decoration: none;

  border-radius: 30px;

  background: linear-gradient(to right, #842437, #C24B64);
	box-shadow: 0 3px 8px rgba(0,0,0,0.2);
	margin-bottom: 60px;
}

/* 背景 */
.contact {
  background: #fff;
  padding: 60px 20px;
	margin-left: 50px;
	margin-right:  50px;
		
}

/* 中央幅 */
.contact-inner {
  max-width: 1640px;
  margin: 0 auto;
  text-align: center;
}



/* 説明文 */
.contact-lead {
  font-size: 18px;
  color: #373636;
  margin-bottom: 90px;
  line-height: 1.8;
}

/* 小見出し */
.contact-heading {
  font-size: 28px;
  font-weight: bold;
  color: #373636;
  margin: 90px 0 20px;
	text-align: center;
}

/* カード */
.contact-cards {
 display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;

  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  margin-bottom: 150px;

}

.contact-cards a {
  width: 280px !important;
  flex: 0 0 auto; /* ← 勝手に広がらないように */
}

.contact-card {
   width: 100%;
  max-width: 280px;
  height: 260px;
  border-radius: 30px;
  background: linear-gradient(#C24B64, #842437);
  box-shadow: 0 3px 8px rgba(0,0,0,0.2);

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 10px;
color: #fff;
	
	
}

/* カード中身 */
.card-title {
  font-size: 32px;
  font-weight: bold;
}

.card-line {
  width: 245px;
  height: 1px;
  background: #fff;
  margin: 5px 0;
}

.card-text {
  font-size: 22px;
	text-align: center;
}

/* スケジュール */
.schedule-img {
   width: 100%;
  max-width:800px;
  height: auto;
  margin-bottom: 60px;
}

/* テキスト */
.contact-text {
  font-size: 18px;
  color: #373636;
  margin-bottom: 30px;
}

/* テンプレ */
.template-wrap {
  max-width: 1083px;
  margin: 0 auto;
  text-align: left;
}

/* 上部 */
.template-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.template-title {
  font-size: 20px;
  font-weight: bold;
	margin-bottom: 1px;
	text-align: left;
	
}



.template-sub {
  font-size: 16px;
  font-weight: bold;
	margin-top: 1px;
	margin-bottom: 1px;
}

/* コピー */
.copy-btn {
  width: 134px;
  height: 29px;
  border: none;
  color: #fff;
  background: linear-gradient(to right, #C24B64, #842437);
  cursor: pointer;
	border-radius: 30px;
}

/* 本文 */
.template-box {
  background: #F2F2F2;
  padding: 10px 60px 30px;
  font-size: 16px;
  color: #373636;
  margin-top: 10px;
  white-space: pre-line;
}

.copy-btn:hover {
  opacity: 0.8;
}

/* セクション間 */
.info-section {
  margin-top: 40px;
}

/* ボックス共通 */
.info-box {
  background: #F2F2F2;
  padding: 20px 60px 20px;
  margin-top: 10px;
  text-align: left;
  color: #373636;
  font-size: 16px;
  line-height: 1.7;
}




/* 下線 */
.underline {
  text-decoration: underline;
  margin-top: 10px;
}

/* 小さいテキスト */
.small-text {
  font-size: 14px;
  margin-top: 10px;
}

/* 太字 */
.bold {
  font-weight: bold;
  margin-top: 10px;
}

/* フロー */
.flow p {
  margin: 10px 0;
}

.arrow {
  margin: 5px 0;
}

/* 注意 */
.notice {
  font-size: 16px;
  color: #373636;
  line-height: 1.8;
  text-align: left;
	margin-left: 60px;
}

/* 上に60px余白 */
.cta-wrap {
  margin-top: 60px;
  text-align: center;
}

/* ボタン本体 */
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 430px;
  height: 100px;

  font-family: "Meiryo", sans-serif;
  font-size: 40px;
  font-weight: bold;
  color: #fff;
  text-decoration: none;

  border-radius: 50px;

  background: linear-gradient(to right, #C24B64, #842437);

  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);

  transition: 0.2s ease;
}

/* 控えめホバー */
.cta-btn:hover {
  filter: brightness(1.05);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
}

/* 押したときも控えめ */
.cta-btn:active {
  filter: brightness(0.98);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* フッター全体 */
.footer {
  background: #842437;
  margin-top: 60px;

  padding-top: 50px;
  padding-bottom: 50px;
}

/* 中央コンテナ */
.footer-inner {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

/* 左（サイトマップ） */
.footer-left {
	margin-left: 80px;
}

/* ナビ */
.footer-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav li {
  margin-bottom: 9px; /* 行間広め */
}

.footer-nav a {
  font-family: "Meiryo", sans-serif;
  font-size: 19px;
  font-weight: bold;
  color: #fff;
  text-decoration: none;
}

/* 右（サイト情報） */
.footer-right {
  text-align: right;
	margin-right: 80px;
}

/* ロゴ */
.footer-logo {
  width: 166px;
  height: 130px;
  object-fit: contain;
  display: block;
  margin-left: auto;
}

/* テキスト */
.footer-text {
  font-family: "Meiryo", sans-serif;
  font-size: 14px;
  color: #fff;
  margin-top: 20px;
  line-height: 1.5;
}

	.c-btn {
text-decoration: none;
  }

/* aboutボックス */
.about-inner {
  max-width: 800px;
  margin: 0 auto;
	padding-bottom: 60px;
}

/* about紹介文 */
.info-box_a {
	max-width: 800px;
  margin: 0 auto; /* ←これで中央 */
  padding: 20px 60px 20px;
  margin-top: 10px;
  text-align: left;
  color: #373636;
  font-size: 16px;
  line-height: 1.7;
}

/* aboutフォーム */
.m_b{	
	clear:both;
	width:70%;
    background: #F2F2F2;
	padding:3.5%;
	margin: 0 auto;
	margin-top: 50px;
	line-height: 1.4em;
    background: #F2F2F2;
    border-radius: 5px;
	
	}	

/* stock　キービジュ */
.kv img {
  width: 100%;
  height: auto;
  display: block;
}

/* stock　6枚作品エリア*/
.works {
  margin-top: 80px;
}

.works-grid {
  max-width: 1220px;
  margin: 0 auto;

  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 380px));
  justify-content: center;
  gap: 40px;
}

.work-item {
  position: relative;
  width: 380px;
  height: 380px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

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

  display: block; /* ←これが超重要（隙間消える） */
}

/* stock　6枚作品エリア キャプション*/
.work-label {
  position: absolute;
  bottom: 1px;
  right: 10px;
  font-size: 14px;
  font-weight: bold;
  color: #373636;
  text-align: right;
}

/* stock　更新情報 */
.update-area {
  margin-top: 100px;
  text-align: center;
}

.update-main {
  font-size: 18px;
  font-weight: bold;
  color: #373636;
	margin: 0 auto;
}

.update-sub {
  font-size: 15px;
  color: #373636;
	margin: 0 auto;
}

.update-btns {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 25px;
}

.square {
  width: 108px;
  height: 108px;
  background: #373636;
  border-radius: 30px;
  color: #fff;
  font-size: 22px;
  font-weight: bold;

  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

/* stock　クロスフォリオボタン */
.xfolio {
  margin-top: 40px;
  max-width: 1100px;
  height: 134px;
  margin-left: auto;
  margin-right: auto;

  border-radius: 67px;
  background: url("stock/xfolio_back.jpg") center/cover;
	box-shadow: 0 3px 8px rgba(0,0,0,0.2);

  position: relative; /* ←追加 */
}

.xfolio-inner {
  position: absolute; /* ←中央固定する */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  text-align: center;
}

.xfolio-inner p {
  margin: 0; /* ←これが超重要 */
}

.xfolio-title {
  font-size: 42px;
  font-weight: bold;
  color: #373636;
	  margin-bottom: 5px;

}

.xfolio-sub {
  font-size: 18px;
  font-weight: bold;
  color: #373636;

}

/* stock　公開・販売サイト */
.site-section {
  margin-top: 110px;
	margin-bottom: 100px;
}

.site-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 1000px;
 margin: 0 auto;
　justify-items: center;
}

.site-card {
  width: 308px;
  height: 270px;
  border-radius: 30px;
  background: linear-gradient(#C24B64, #F89357);
  box-shadow: 0 3px 8px rgba(0,0,0,0.2);

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 10px;
color: #fff;
}

.site-card .title {
  font-weight: bold;
  font-size: 18px;
}

.site-card.dummy {
  background: #F2F2F2; /* グレーBOX */
  box-shadow: none;
}

/* Design共通余白 */
.portfolio-link {
  margin-top: 90px;
  text-align: center;
}


/* Designボタン */
.portfolio-btn {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 1000px;
  height: 134px;
  border-radius: 67px;
  background: linear-gradient(to right, #C24B64, #F89357);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

.btn-main {
  font-size: 30px;
  font-weight: bold;
}

.btn-sub {
  font-size: 18px;
}

/* ===== メリット ===== */
.design-merit {
  margin-top: 80px;
  background: #fff;
  padding: 90px 0;
}

.merit-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.merit-item {
  display: flex;
  align-items: center;
  margin-bottom: 60px;
}

.merit-item:last-child {
  margin-bottom: 0;
}

/* Designアイコン */
.merit-icon {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: linear-gradient(to bottom, #C24B64, #842437);
  color: #fff;
  font-size: 28px;
	 font-weight: bold;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

/* Design白枠 */
.merit-icon::after {
  content: "";
  position: absolute;
  width: 76px;
  height: 76px;
  border: 2px solid #fff;
  border-radius: 50%;
	
}

/* Designテキスト */
.merit-text {
  margin-left: 20px;
}

.merit-title {
  font-size: 30px;
  font-weight: bold;
  color: #842437;
	margin: 0 auto
}

.merit-desc {
  font-size: 18px;
  color: #373636;
	margin: 0 auto
}

/* ===== Designランサーズ プロフィール ===== */
.lancers-profile {
  margin-top: 80px;
  text-align: center;
}

.lancers-title {
  font-size: 28px;
  font-weight: bold;
  color: #373636;
  margin-bottom: 20px;
}

.lancers-btn {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 800px;
  height: 134px;
  border-radius: 67px;
  background: linear-gradient(to right, #C24B64, #842437);
  color: #fff;
  text-decoration: none;
   box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

/* ===== Designパッケージ ===== */
.lancers-package {
  margin-top: 100px;
	margin-bottom: 80px;
  text-align: center;
}

.package-title {
  font-size: 28px;
  font-weight: bold;
  color: #373636;
  margin-bottom: 20px;
	
}

.package-list {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.package-list img {
  width: 308px;
  height: 175px;
  object-fit: cover;
   box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

/* ===== character　制作実績ボタン ===== */
.square_l {
  width: 292px;
  height: 108px;
  background: #373636;
  border-radius: 30px;
  color: #fff;
  font-size: 22px;
  font-weight: bold;

  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

/* ===== Characterセクション ===== */
.gallery-section {
  margin-top: 60px;
  background: #fff;
  padding: 60px 0 120px;
  text-align: center;
}

.gallery-title {
  font-size: 28px;
  font-weight: bold;
  color: #373636;
    text-align: center;
}

/* ===== Characterボタン全体 ===== */
.gallery-buttons {
  margin-top: 45px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 45px;
	padding: 0 20px;
}

.gallery-btn {
  width: 100%;
  max-width: 1000px;
  height: 150px;
  border-radius: 100px;
  overflow: hidden;
  position: relative;
  display: flex;
  text-decoration: none;

  /* Character ギャラリー背景（ */
  background: #ccc;
  background-size: cover;
  background-position: center;

   box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

/* Characterギャラリー背景画像（ */
.gallery-btn:nth-child(1) {
  background-image: url("character/gv_Girl.jpg");
}

.gallery-btn:nth-child(2) {
  background-image: url("character/gv_Cat.jpg");
}

.gallery-btn:nth-child(3) {
  background-image: url("character/gv_Goods.png");
}
/* ===== Character左ラベル ===== */
.gallery-label {
  width: 264px;
  height: 100%;
  background: #373636;
  color: #fff;

  /* 左だけ丸く */
  border-top-left-radius: 100px;
  border-bottom-left-radius: 100px;

  /* ここが重要 */
  display: flex;
  justify-content: center;
  align-items: center;

  position: relative;
}

/* Characterテキスト */
.gallery-label span {
  font-size: 25px;
  font-weight: bold;
  text-align: center;
  line-height: 1.4;

  /* 👇これが“いい感じの右寄せ” */
  transform: translateX(10px);
}

/* ===== Character　実績　モーダル背景 ===== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);

  display: none; /* 最初は非表示 */

  justify-content: flex-end; /* ← 右寄せ */
  align-items: flex-start;   /* ← 上寄せ */

  padding: 40px;
  z-index: 999;
}

/* モーダル表示用 */
.modal-overlay.active {
  display: flex;
}

/* ===== モーダル本体 ===== */
.modal-box {
  width: 650px;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  max-height: 80vh; /* ← 画面内に収める */
  display: flex;
  flex-direction: column;
}

.modal-overlay {
  z-index: 9999; /* ← これ上げる */
}
/* モーダルタイトル */
.modal-header {
  width: 100%;
  height: 65px;
  background: #373636;
  color: #fff;
  font-size: 20px;
  font-weight: bold;

  display: flex;
  align-items: center;
  justify-content: center;
}

/* モーダル中身 */

  .modal-content {
  background: #F2F2F2;
  padding: 45px 40px; /* ←左右余白しっかり */
  font-size: 16px;
  color: #373636;
  text-align: left; /* ←追加 */
overflow-y: auto; /* ← これが本命 */
}

/* モーダル各年ブロック */
.works-block {
  margin-bottom: 30px;
  line-height: 1.7;
}

.year {
  font-weight: bold;
 margin-bottom: 1px;
  text-align: left; /* ←追加 */
}

/* モーダルスクロール固定 */
.modal-content {
  overflow-y: auto;
  overscroll-behavior: contain; /* ←これ！！ */
}



/* ===== ギャラリー全体 ===== */
.gallery-wrap {
  max-width: 1220px;
  margin: 80px auto 160px;
    padding: 0 20px;
    
}

/* ===== ギャラリーグリッド ===== */
.gallery-grid {
  display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 350px));
  justify-content: center;
  gap: 80px 30px;
}

/* ===== ギャラリー1作品 ===== */
.gallery-item {
  text-align: center;
  cursor: pointer;
    width: 100%;
  max-width: 350px;
  margin: 0 auto;
}

/* ギャラリー白ベース */
.img-box {
  width: 100%;
  aspect-ratio: 1 / 1; /* 380×380の代わり */
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;

  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* ギャラリー画像 */
.img-box img {
  max-width: 300px;
  max-height: 300px;
  width: auto;
  height: auto;
}

/* ギャラリーテキスト */
.date,
.title {
  font-size: 16px;
  color: #373636;
  margin-top: 30px;
}

/* ギャラリー中間タイトル */
.gallery-title_2 {
  font-size: 28px;
  font-weight: bold;
  color: #373636;
    text-align: center;
margin-top: 70px;
	margin-bottom: 25px;
}



.title {
    margin: 0 auto
}

/* ギャラリーモーダル */
.gallery-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);

  display: flex; 
  justify-content: center;
  align-items: center;
  z-index: 9999;

  opacity: 0;
  visibility: hidden;
transition: opacity 0.25s ease;
}

/* 表示状態 */
.gallery-modal.active {
  opacity: 1;
  visibility: visible;
}

/* 画像のアニメーション */
.gallery-modal img {
  max-width: 90%;
  max-height: 90%;

  transform: scale(0.9);
transition: opacity 0.25s ease;
}

.gallery-modal.active img {
  transform: scale(1);
}


/* ページ特定位置リンク調整 */
#contact {
  scroll-margin-top: 100px; /* ヘッダーの高さ分 */
}

/* ボタンリンク調整 */
.btn-link {
  text-decoration: none;
}

/* メニューリンク調整 */
li a {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* メニューリンクホバー */
li a:hover {
  opacity: 0.7;
}

/* =========================
   基本スタイル（PC）
========================= */

/* header */
header { }

/* news */
.news { }

/* card */
.news-card { }


/* =========================
   タブレット
========================= */
@media (max-width: 1024px) {

  .news-list {
    grid-template-columns: repeat(2, 1fr);
  }

}


/* =========================
   スマホ
========================= */
@media (max-width: 768px) {

  .news-list {
    grid-template-columns: 1fr;
  }
	
	.cta-btn {
    width: 90%;
    height: 70px;
    font-size: 24px;
  }

.category-item {
    flex-direction: column;
  }

  .category-item.reverse {
    flex-direction: column;
	  flex-wrap: wrap;
  }

  .category-image,
  .category-text {
    flex: none;
    width: 100%;
  }
	
	.info-box {
    padding: 10px 20px 20px;
  }

  .template-title {
    margin-left: 20px;

	
	text-align: center;
  }

  .footer-right {
    margin-top: 40px;
    text-align: center;
  }

  .footer-logo {
    margin: 0 auto;
  }
	.contact-cards {
    flex-direction: column;
    align-items: center;
  }

  .contact-card {
    width: 100%;
    max-width: 400px;
  }
 
  .update-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .update-item {
    width: 100%;
    max-width: 308px;
    margin: 0 auto;
  }
	
  .site-grid {
    grid-template-columns: 1fr; /* 1列 */
	  max-width: 350px;
	   margin: 0 auto; 
  }

.contact-cards{
	 grid-template-columns: 1fr; /* 1列 */
	  max-width: 360px;
	   margin: 0 auto; 
	}

	.site-card.dummy {
    display: none;
  }


	@media screen and (max-width: 768px) {

  /* ===== ① ポートフォリオボタン ===== */
  .portfolio-btn {
    width: 90%;
    height: auto;
    padding: 20px;
  }

  .btn-main {
    font-size: 20px;
    text-align: center;
  }

  .btn-sub {
    font-size: 14px;
  }

  /* ===== ② メリット ===== */
  .design-merit {
    padding: 60px 20px; /* 横余白追加 */
  }

  .merit-item {
    align-items: flex-start; /* 上揃えにする */
    margin-bottom: 40px;
  }

  .merit-icon {
    width: 70px;
    height: 70px;
    flex-shrink: 0; /* ← これ重要：潰れ防止 */
  }

  .merit-icon::after {
    width: 60px;
    height: 60px;
  }

  .merit-text {
    margin-left: 15px;
  }

  .merit-title {
    font-size: 18px;
  }

  .merit-desc {
    font-size: 14px;
  }

  /* ===== ③ ランサーズボタン ===== */
  .lancers-btn {
    width: 90%;
    height: auto;
    padding: 20px;
  }

  .lancers-title {
    font-size: 20px;
  }

  /* ===== ④ パッケージ画像 ===== */
  .package-list {
    flex-direction: column;
    align-items: center;
  }

  .package-list img {
    width: 90%;
    height: auto;
  }

		.portfolio-btn,
.lancers-btn {
  margin: 0 auto;
}
		

  .gallery-section {
    padding: 60px 0 80px;
  }

  .gallery-btn {
    width: 90%;
    height: 140px;
  }

  .gallery-label {
    width: 120px;
    border-top-left-radius: 70px;
    border-bottom-left-radius: 70px;
  }

  .gallery-label span {
    font-size: 16px;
    transform: translateX(5px);
  }

}
	
 .modal-overlay {
    padding: 20px;
    align-items: center; /* スマホは中央に */
    justify-content: center;
  }

  .modal-box {
    width: 90%;
  }


  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

 /* メニュー本体を大きく */
  .menu-panel {
    width: 80vw;   /* ←画面に対して広げる */
    height: auto;
    top: 60px;
  }

  /* 各メニュー項目 */
  .menu-list li {
    height: 70px;
  }

  /* テキスト */
  .menu-list li a {
    font-size: 20px;
  }

  /* 上のバー */
  .menu-panel-header {
    height: 50px;
    font-size: 20px;
  }		

		
		
}
	
 
