@charset "utf-8";
.hero p #MV {
	width: 1440px;
	height: 960px;
}
.skill-item figure img {
	width: 130px;
	height: 130px;
}
#Father   {
	width: 319px;
	height: 269px;
}
#cozy   {
	width: 370px;
	height: 217px;
}
#piclse   {
	width: 370px;
	height: 178px;
}
#pet   {
	width: 350px;
	height: 214px;
}
#studio   {
	width: 350px;
	height: 184px;
}
#contact form textarea {
	width: 1174px;
	height: 498px;
}
body {
	background-color: #D2D2D2;
}
.section-title1  {
	padding: 80px 0px;
	position: relative;
	overflow: hidden;
	background-color: transparent;
}
.section-title1 h2 {
	padding-top: 115px;
	padding-bottom: 115px;
	position: relative;
	color: #FFFFFF;
	font-weight: bold;
	font-size: 64px;
	text-align: left;
	padding-left: 220px;
	background-color: #000000;
	transform: skewY(-5deg);
	z-index: 2;
}
.section-title1:before {
	content: "";
	;
	position: absolute;
	top: 0px;
	left: 50%;
	background-color: transparent;
	transform: translateX(-50%) skewY(-5deg);
	z-index: 1;
	width: 140%;
	height: 100%;
}
.hero {
	height: 100vh;
	background-position-x: center;
	background-position-y: center;
	position: relative;
	overflow: hidden;
	background-image: url(img/mv.jpg);
	background-size: cover;
}
.band-top {
	transform: translateX(-50%) rotate(8deg);
	background-color: #CF6ED4;
	width: 200%;
	left: 50%;
	top: -200px;
	color: #FFFFFF;
	font-weight: bold;
	font-size: clamp(28px, 6vw, 120px);
	white-space: nowrap;
	z-index: 8;
	position: absolute;
	display: block;
	height: clamp(80px, 16vw, 230px);
    padding-bottom: clamp(12px, 3vw, 50px);
}
.band-bottom {
	bottom: -180px;
	transform: translateX(-50%) rotate(8deg);
	background-color: #CF6ED4;
	padding: 10px 0;
	width: 200%;
	left: 50%;
	font-weight: bold;
	font-size: clamp(28px, 6vw, 120px);
	color: #FFFFFF;
	white-space: nowrap;
	line-height: clamp(24px, 4vw, 30px);
	z-index: 10;
	position: absolute;
}
.hero-overlay  {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%,-50%);
	text-align: center;
	z-index: 10;
	background-color: #000080;
}
.hero-overlay h1 {
	color: #FFFFFF;
	font-weight: bold;
	font-size: 3.4rem;
}
#about {
	margin-top: -70px;
	position: relative;
	z-index: 1;
}
.content .photo img {
	margin: 0 180px;
	float: left;
}
.content .text {
	font-size: 18px;
	margin-right: 150px;
	padding-top: 150px;
	padding-bottom: 150px;
}
.section-title2 {
	padding: 80px 0;
	position: relative;
	background-color: transparent;
	overflow: hidden;
	width: 100vw;
}
.section-title2 h2 {
	padding-top: 115px;
	padding-bottom: 115px;
	position: relative;
	z-index: 2;
	color: #FFFFFF;
	font-weight: bold;
	font-size: 64px;
	text-align: left;
	background-color: #000080;
	transform: skewY(-5deg);
	padding-left: 220px;
}
.section-title2:before {
	width: 140%;
	height: 100%;
	position: absolute;
	top: 0px;
	left: 50%;
	z-index: 1;
	transform: translateX(-50%) skewY(-5deg);
}
.skill-items {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  justify-content: center;
  column-gap: 32px;
  width: min(1150px, 90%);
  margin: 50px auto 0;
  align-items: start;
}

.skill-item {
  text-align: center;
  width: 180px;
  padding-top: 0;
  padding-right: 75px;
  padding-left: 100px;
  padding-bottom: 0;
} /* ←これが必要 */
.skill-items .skill-item figure {
	margin: 0 auto;
}
.skill-item figure img {
	height: auto;
	margin: 0 auto;
	display: block;

}
.skill-items .skill-item p {
	font-size: 16px;
}
.section-title3 {
	padding: 80px 0;
	position: relative;
	background-color: transparent;
	overflow: hidden;
}
.section-title3 h2 {
	padding-top: 115px;
	padding-bottom: 115px;
	padding-left: 220px;
	position: relative;
	z-index: 2;
	color: #FFFFFF;
	font-weight: bold;
	font-size: 64px;
	text-align: left;
	background-color: #000000;
	transform: skewY(5deg);
}
.section-title3:before {
	width: 140%;
	height: 100%;
	position: absolute;
	left: 50%;
	z-index: 1;
	transform: translateX(50%) skewY(5deg);
}
.work-row {
    display: grid;
    column-gap: 40px;
    flex-wrap: wrap;
    margin-bottom: 60px;
    align-items:start;
    gap: 28px;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}
.work-item {
	width: 100%;
	text-align: center;
	max-width: 400px;
	padding-left: 50px;
}
.work-item figure img {
	width: 100%;
	height: auto;
	margin: 0 auto;
	display: block;
}
.work-item p {
	font-size: 15px;
	margin-top: 10px;
	justify-content: center;
	line-height: 1.4;
}
#works  h3 {
	padding-left: 70px;
}

#fortune   {
	width: 350px;
	height: auto;
	padding-right: 50px;
}
.work-btn {
	display: inline-block;
	padding: 6px 18px;
	margin-top: 10px;
	background-color: #000080;
	color: #fff;
	font-size: 14px;
	border-radius: 20px;
	font-weight: bold;
	text-decoration: none;
	transition: all 0.3s ease;
}
.work-btn:hover {
	background-color: #1D35C9;
	transform: translateY(-2px);
	-webkit-box-shadow: 0 4px 10px rgba(0,0,0,0.2);
	box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.more-wrap  {
	width: 100%;
	margin-top: 100px;
	margin-right: 0;
	margin-bottom: 0;
	text-align: left;
}
.more-btn {
	padding: 16px 30px;
	display: inline-block;
	background-color: #000080;
	color: #FFFFFF;
	border-radius: 30px;
	font-weight: 700;
	text-decoration: none;
	-webkit-box-shadow: 0 8px 14px rgba(0,0,0,.25);
	box-shadow: 0 8px 14px rgba(0,0,0,.25);
	transition: transform .2s ease, box-shadow .2s ease;
}
.more-btn:hover {
	transform: translateY(-2px);
	-webkit-box-shadow: 0 12px 18px rgba(0,0,0,.28);
	box-shadow: 0 12px 18px rgba(0,0,0,.28);
	background-color: #1D35C9;
}

/* contact見出しの中のトラだけ確実に上書き */
#contact .section-title2 {
  position: relative;
}

/* ここが本命：サイズ強制 */
#contact .section-title2 img.contact-mascot {
	width: 500px !important;      /* ←ここを変えてサイズ調整 */
	height: auto !important;
	max-width: none !important;
	display: block !important;
	/* 右側に置きたい場合（不要なら消してOK） */
	position: absolute;
	right: 6%;
	top: 40%;
	transform: translateY(-50%);
	z-index: 10;
}
#contact .contact-lead {
	margin: 26px 0 18px;
	color: #333333;
	font-weight: 600;
	text-align: center;
	font-size: 20px;
}
#contact .contact-form {
	margin: 0;
	width: fit-content;
	display: grid;
	column-gap: 18px;
}
.contact-form .field span {
	margin: 0 0 6px;
	font-size: 14px;
	color: #222222;
	font-weight: 600;
	display: block;
}
.field textarea, .field input {
	border: 2px solid #e9e9e9;
	border-radius: 22px;
	padding: 16px 20px;
	width: 100%;
	font-size: 16px;
	background-color: #FFFFFF;
	outline: none;
	transition: border-color .2s ease, box-shadow .2s ease;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}
.field textarea {
	min-height: 220px;
	resize: vertical;
}
.field input:focus, .field textarea:focus {
	border-color: #0B1C7C;
	-webkit-box-shadow: 0 0 0 4px rgba(11,28,124,.15);
	box-shadow: 0 0 0 4px rgba(11,28,124,.15);
}

.contact-submit{
  justify-self: center;
  margin-top: 6px;
  padding: 14px 42px;
  border: 0;
  border-radius: 999px;
  background: #0b1c7c;
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 10px 16px rgba(0,0,0,.25);
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}
.contact-submit:hover {
	transform: translateY(-2px);
	-webkit-box-shadow: 0 14px 22px rgba(0,0,0,.28);
	box-shadow: 0 14px 22px rgba(0,0,0,.28);
}
.contact-submit:active {
	transform: translateY(0);
	opacity: 0.9;
}

.go-top{
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 72px;
  height: 72px;

  background: url("img/gotop.png") no-repeat center / contain;
  z-index: 99999;

  /* 文字は常に消す（画像だけ見せる） */
  text-indent: -9999px;
  overflow: hidden;
  white-space: nowrap;

  /* 最初は非表示 */
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity .3s ease, transform .3s ease;
}

.go-top.is-show{
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}



.go-top:hover{
	border-radius: 12px;
	text-indent: -9999px;
	overflow: hidden;
}

.contact-inner{
  width: min(1150px, 90%);
  margin: 0 auto;
}
.contact-form .field {
	text-align: left;
}

/* アクセシビリティ：画面外に隠すテキスト */
.sr-only{
  position:absolute;
  width:1px;height:1px;
  padding:0;margin:-1px;
  overflow:hidden;clip:rect(0,0,0,0);
  white-space:nowrap;border:0;
}

/* ハンバーガーボタン（右上） */
.nav-toggle{
  position: fixed;
  right: 24px;
  top: 24px;
  z-index: 10001;

  width: 70px;
  height: 70px;
  border: none;
  border-radius: 50%;
  background: #001a8f;
  cursor: pointer;

  display: grid;
  place-content: center;
  gap: 6px;
}

.nav-toggle_bar{
  width: 24px;
  height: 3px;
  background: #fff;
  display: block;
  border-radius: 2px;
}

/* 右から出てくるナビ本体 */
.nav{
	position: fixed;
	top: 0;
	right: 0;
	height: 100vh;
	width: 240px;          /* 2枚目みたいな細め */
	background: #001a8f;
	z-index: 10000;
	transform: translateX(100%);  /* ←最初は画面外 */
	transition: transform .3s ease;
	display: grid;
	place-items: start center;
	padding-top: 80px;
}

/* リストの見た目 */
.nav ul{
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 34px;
}

.nav a{
	color: #fff;
	text-decoration: none;
	font-size: 20px;
	padding: 8px 0;
	display: block;
}

/* 開いた時 */
body.nav-open .nav{
  transform: translateX(0);
}

/* 開いた時、ボタンを×にしたい場合（任意） */
body.nav-open .nav-toggle_bar:nth-child(1){
  transform: translateY(9px) rotate(45deg);
}
body.nav-open .nav-toggle_bar:nth-child(2){
  opacity: 0;
}
body.nav-open .nav-toggle_bar:nth-child(3){
  transform: translateY(-9px) rotate(-45deg);
}
body.nav-open .nav-toggle_bar{
  transition: transform .3s ease, opacity .3s ease;
}

/* 背景をクリックで閉じたい場合用の暗幕（任意） */
.nav-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.3);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
body.nav-open .nav-overlay{
  opacity: 1;
  pointer-events: auto;
}

section{
  scroll-margin-top: -120px; /* ← 好きな分だけ調整 */
}

html{
  scroll-behavior: smooth;
}

/* ふわっとの初期状態 */
.section-title1,
.section-title2,
.section-title3{
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}

/* 表示状態（JSがこのクラスを付ける） */
.section-title1.is-visible,
.section-title2.is-visible,
.section-title3.is-visible{
  opacity: 1;
  transform: translateY(0);
}

.hero {
  position: relative;
  overflow: hidden;
}

/* 共通 */
.band-top,
.band-bottom {
  position: absolute;
  left: 50%;
  width: 250vw;          /* ← 重要：画面より大きく */
  height: 300px;         /* ← 斜め対策で大きめ */
  transform: translateX(-50%) rotate(8deg);
  background: #cf6ed4;
  overflow: hidden;
  z-index: 5;
}

/* 上の帯 */
.band-top {
  top: -220px;
}

/* 下の帯 */
.band-bottom {
  bottom: -220px;
}

/* 中の文字レーン */
.band-inner {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  font-size: 120px;
  font-weight: 800;
  color: #fff;
  will-change: transform;
}

/* 右→左 */
.band-left {
  animation: marquee-left 30s linear infinite;
}

/* 左→右 */
.band-right {
  animation: marquee-right 30s linear infinite;
}

/* アニメーション */
@keyframes marquee-left {
  from { transform: translate(0, -50%); }
  to   { transform: translate(-50%, -50%); }
}

@keyframes marquee-right {
  from { transform: translate(-50%, -50%); }
  to   { transform: translate(0, -50%); }
}

/* 下の帯（heroの外に出した版） */
.band-bottom--over{
  position: relative;      /* hero外なのでrelativeでOK */
  margin-top: -160px;      /* ←ここでheroに被せる量調整 */
  z-index: 999;            /* 前面に出す */
  pointer-events: none;    /* 帯がクリック邪魔しない */
}

html, body {
  overflow-x: hidden;
}

.hero {
  overflow: hidden;
}

/* =========================
   WORKS カード化
========================= */

/* カード全体 */
.work-item {
	border-radius: 20px;
	padding: 24px 20px 28px;
	box-shadow: 0 12px 28px rgba(0,0,0,0.12);
	transition: transform .25s ease, box-shadow .25s ease;
	background-color: #ffffff;
}


/* ホバー時（PCのみ自然に浮く） */
@media (hover: hover) {
  .work-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.18);
  }
}

/* 画像 */
.work-item figure {
  margin: 0 auto 16px;
  overflow: hidden;
  border-radius: 16px;
}

/* 画像そのもの */
.work-item figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  transition: transform .3s ease;
}

/* 画像ホバーでほんのり拡大 */
@media (hover: hover) {
  .work-item:hover figure img {
    transform: scale(1.05);
  }
}

/* テキスト */
.work-item p {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.7;
  color: #222;
}

/* ボタン余白調整 */
.work-item .work-btn {
  margin-top: 16px;
}

/* サムネクリック化（ボタンっぽさ消す） */
.work-thumb{
  all: unset;
  display: block;
  cursor: pointer;
  width: 100%;
}
.work-thumb:focus-visible{
  outline: 3px solid rgba(0,0,128,.35);
  outline-offset: 6px;
  border-radius: 16px;
}

/* ===== Modal ===== */
.modal{
  position: fixed;
  inset: 0;
  display: none;
  z-index: 20000;
}
.modal.is-open{ display:block; }

.modal__overlay{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.4);
}

.modal__box{
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
  width: min(520px, 92%);
  background: #fff;
  border-radius: 20px;
  padding: 20px 22px;
  box-shadow: 0 18px 40px rgba(0,0,0,.25);
}

.modal__close{
  margin-top: 14px;
  width: 100%;
  padding: 12px 16px;
  border: 0;
  border-radius: 999px;
  background: #0b1c7c;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}


.modal__title{
  margin: 8px 0 6px;
  font-size: 22px;
  font-weight: 800;
}
.modal__desc{
	margin: 0 0 14px;
	color: #FFFFFF;
	line-height: 1.6;
}

/* 画像ギャラリー */
.modal__gallery{
  display: grid;
  gap: 12px;
}
.modal__gallery img{
  width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 10px 18px rgba(0,0,0,.18);
}

/* ボタン */
.modal__actions{
  margin-top: 14px;
  display: flex;
  justify-content: center;
}
.modal__link{
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  background: #000080;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
}
.modal__link:hover{
  background: #1D35C9;
}

/* モーダル開いてる時スクロール止める */
body.modal-open{
  overflow: hidden;
}

/* ===== Loading Screen ===== */
.loading{
  position: fixed;
  inset: 0;
  z-index: 30000;
  background: #000;
  display: grid;
  place-items: center;
  transition: opacity .6s ease, visibility .6s ease;
}

.loading.is-hide{
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading__inner{
  text-align: center;
}

.loading__mascot{
  width: min(700px);
  height: auto;
  display: block;
  margin: 0 auto 24px;
  animation: mascot-bounce 1.0s ease-in-out infinite;
  transform-origin: 50% 100%;
}

/* ぽよぽよ（上下＋少し潰れる） */
@keyframes mascot-bounce{
  0%   { transform: translateY(0) scale(1,1); }
  15%  { transform: translateY(0) scale(1.06,.94); }
  40%  { transform: translateY(-18px) scale(.98,1.02); }
  60%  { transform: translateY(0) scale(1.04,.96); }
  75%  { transform: translateY(-8px) scale(.99,1.01); }
  100% { transform: translateY(0) scale(1,1); }
}

.loading__text{
  font-weight: 800;
  font-size: clamp(22px, 4.6vw, 44px);
  letter-spacing: .06em;
  margin: 0;
  color: #FFFFFF;
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
}

/* 点々が左→右へ点灯していく（3点） */
.loading__dots{
  width: 8.0em;          /* 点の表示幅 */
  height: 1em;
  position: relative;
  display: inline-block;
}

.loading__dots::before{
  content: "・・・・・・・";
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  overflow: hidden;      /* 幅を伸ばして点灯させる */
  animation: dots-run 1.0s steps(4) infinite;
}

/* 0→1→2→3点→0… */
@keyframes dots-run{
  0%   { width: 0; }
  100% { width: 8.0em; } /* "···" 全部出る幅（環境で微調整OK） */
}

/* 動き苦手な人向け */
@media (prefers-reduced-motion: reduce){
  .loading__mascot{ animation: none; }
  .loading__dots::before{ animation: none; width: 1.8em; }
}

/* 送信ステータス */
.form-status{
  min-height: 1.6em;
  margin: 12px 0 0;
  font-size: 14px;
  font-weight: 600;
}
.form-status.is-ok{ color: #0b1c7c; }
.form-status.is-ng{ color: #b00020; }

/* 送信中ボタン演出 */
.contact-submit{
  position: relative;
}
.contact-submit.is-loading{
  opacity: .8;
  cursor: not-allowed;
}
.contact-submit .btn-spinner{
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,.45);
  border-top-color: rgba(255,255,255,1);
  border-radius: 50%;
  margin-left: 10px;
  vertical-align: middle;
  animation: spin .8s linear infinite;
}
.contact-submit.is-loading .btn-spinner{
  display: inline-block;
}
@keyframes spin{
  to{ transform: rotate(360deg); }
}

/* Thanksセクション（最初は非表示） */
.thanks{
  display: none;
  width: min(1150px, 90%);
  margin: 30px auto 0;
  background: #fff;
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 12px 22px rgba(0,0,0,.18);
}
.thanks.is-show{
  display: block;
}


/* ✅ Contact送信結果モーダル */
.form-modal{
  position: fixed;
  inset: 0;
  z-index: 20000; /* navやgotopより上に */
  display: none;
}

.form-modal[aria-hidden="false"]{
  display: block;
}

.form-modal__overlay{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(2px);
}

.form-modal__panel{
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);

  width: min(720px, 92vw);
  padding: 28px 28px 24px;

  background: #0b0b0b; /* いまの黒系に寄せる */
  color: #fff;

  border-radius: 22px;
  box-shadow: 0 18px 36px rgba(0,0,0,.45);
  border: 1px solid rgba(255,255,255,.08);
}


.form-modal.is-open .form-modal__overlay{ opacity: 1; }
.form-modal.is-open .form-modal__panel{
  opacity: 1;
  transform: translate(-50%, -50%);
}

/* 右上の閉じるボタン（青丸） */
.form-modal__close{
  position: absolute;
  right: 16px;
  top: 16px;

  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;

  background: #001a8f;  /* nav/ボタンと同じ青 */
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;

  display: grid;
  place-items: center;

  box-shadow: 0 10px 18px rgba(0,0,0,.35);
  transition: transform .15s ease, opacity .15s ease;
}

.form-modal__close:hover{
  transform: translateY(-1px);
  opacity: .95;
}
.form-modal__close:active{
  transform: translateY(0);
}

/* タイトル */
.form-modal__title{
  margin: 0 64px 10px 0; /* ×と被らない */
  font-size: 26px;
  font-weight: 800;
  letter-spacing: .02em;
}

/* 本文 */
.form-modal__text{
  margin: 0;
  color: rgba(255,255,255,.85);
  line-height: 1.7;
  font-size: 15px;
}

/* アクション（OKボタン） */
.form-modal__actions{
  margin-top: 18px;
  display: flex;
  justify-content: center;
  gap: 12px;
}

/* OKボタン（青いピル） */
.form-modal__btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 12px 34px;
  border-radius: 999px;

  background: #0b1c7c;   /* 既存ボタンと寄せる */
  color: #fff;
  font-weight: 800;
  text-decoration: none;

  box-shadow: 0 10px 16px rgba(0,0,0,.25);
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}

.form-modal__btn:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 22px rgba(0,0,0,.28);
  background: #1D35C9;
}
.form-modal__btn:active{
  transform: translateY(0);
  opacity: .92;
}

/* 表示アニメ（ちょいプロっぽく） */
@media (prefers-reduced-motion: no-preference){
  .form-modal[aria-hidden="false"] .form-modal__panel{
    animation: modal-pop .18s ease-out both;
  }
  @keyframes modal-pop{
    from{ transform: translate(-50%, -48%) scale(.98); opacity: 0; }
    to  { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  }


.form-msg{
  margin-top: 12px;
  text-align: center;
  font-weight: 700;
  font-size: 16px;
  opacity: 0;
  transform: translateY(6px);
  transition: .2s ease;
}

.form-msg.is-show{
  opacity: 1;
  transform: translateY(0);
}

.form-msg.is-ok{ color: #0b7a2a; }
.form-msg.is-ng{ color: #b00020; }
.form-msg.is-sending{ color: #333; }


/* ===== Work Modal ===== */
#workModal{
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: none;
}

#workModal.is-open{
  display: block;
}

#workModal .modal__overlay{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
}

#workModal .modal__panel{
  position: relative;
  width: min(980px, 92vw);
  max-height: 86vh;
  margin: 6vh auto 0;
  background: #000;
  border-radius: 18px;
  padding: 22px 22px 18px;
  overflow: auto;
  box-shadow: 0 24px 48px rgba(0,0,0,.35);
}

#workModal .modal__close{
  position: sticky;
  top: 0;
  margin-left: auto;
  display: block;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: #001a8f;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}

#workModal .modal__title{
	font-size: 28px;
	font-weight: 800;
	margin: 8px 0 10px;
	color: #FFFFFF;
}

#workModal .modal__desc{
  line-height: 1.8;
  margin: 0 0 16px;
  color: #FFFFFF;
}

#workModal .modal__gallery{
  display: grid;
  gap: 14px;
}

#workModal .modal__gallery img,
#workModal .modal__gallery video{
  width: 100%;
  box-shadow: 0 10px 18px rgba(0,0,0,.18);
}

#workModal .modal__link{
  display: inline-block;
  padding: 12px 18px;
  background: #001a8f;
  color: #fff;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
}

body.modal-open{
  overflow: hidden;
}

.modal__actions{
  text-align:center;
  margin-top:24px;
}

	.modal__link{
  padding:14px 28px;
  border-radius:999px;
}
	
/* 一覧カード：サムネ枠を統一（切らない版） */
.work-item figure{
  margin: 0;
  width: 100%;
  aspect-ratio: 4 / 3;        /* ←統一したい形。16/9でもOK */
  display: grid;
  place-items: center;
  background: #f3f3f3;        /* 余白の色（カード背景に合わせて調整） */
  border-radius: 16px;
  overflow: hidden;
}

.work-item figure img{
  width: 100%;
  height: 100%;
  object-fit: contain;        /* ←切らずに全部見せる */
  display: block;
}


	
/* スマホ微調整 */
@media (max-width: 768px){
  .form-modal__panel{
    padding: 22px 18px 18px;
    border-radius: 18px;
  }
  .form-modal__title{
    font-size: 22px;
  }
  .form-modal__btn{
    width: 100%;
    max-width: 360px;
  }
}

/* モーダル中は背景スクロール止めたい場合（JSで body に modal-open 付ける想定） */
body.modal-open{
  overflow: hidden;
}


@media (max-width: 768px){

  .work-btn{
    padding: 12px 28px;
    border-radius: 30px;
    font-size: 16px;
    min-width: 180px;
    text-align: center;
  }

  .more-wrap{
    padding: 0;
    text-align: center;
  }

  .more-btn{
    padding: 18px 36px;
    font-size: 16px;
  }

  .nav{
    width: 260px;
  }

  /* どっちか1つに統一（今は2回書いてあるので） */
  section{
    scroll-margin-top: 64px;
  }
	.skill-items{
    grid-template-columns: repeat(2, 1fr);
    column-gap: 16px;
  }
  .skill-item{
    width: auto;
    padding: 0;
  }
  .skill-item figure img{
    width: 96px;
    height: 96px;
  }
  .skill-item p{
    font-size: 14px;
  }
  .contact-inner{ width: min(600px, 92%); }
  .field input, .field textarea{
    border-radius: 18px;
    padding: 14px 16px;
  }
	#about{
    padding-top: clamp(120px, 18vw, 220px);
  }
	/* aboutの中身を縦積みに */
  #about .content{
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  /* 写真：float解除して中央＋余白 */
  #about .content .photo img{
    float: none;
    display: block;
    margin: 24px auto 18px;   /* 下に隙間を作る */
    width: min(80%, 360px);   /* 大きすぎ防止（好きに調整OK） */
    height: auto;
  }

  /* テキスト：左右に余白を作って中央に */
  #about .content .text{
    margin: 0 auto;           /* 左寄り解除 */
    width: min(92%, 680px);   /* 行が長すぎないように */
    padding: 0;               /* PC用の大きいpaddingを無効化 */
    font-size: 15px;          /* 読みやすいサイズに */
    line-height: 1.8;
  }

  .work-row {
    flex-direction: column;     /* 縦並び */
    align-items: center;        /* 中央寄せ */
    gap: 60px;                  /* ← 作品同士の上下余白 */
    margin-bottom: 80px;
  }

  .work-item {
    max-width: 90%;
    padding-left: 0;
    text-align: center;
  }

  .work-item figure {
    margin: 0 auto 16px;        /* 画像とテキストの間 */
  }

  .work-item p {
    margin-top: 12px;
    line-height: 1.7;
  }

  /* CONTACT帯の中のトラ：小さくして右端に */
  #contact .section-title2{
    position: relative;
  }

  #contact .section-title2 img.contact-mascot{
    width: 0px !important;      /* 好みで 90〜140px */
    height: auto !important;
    right: 10px;                  /* 帯の右端 */
    top: 50%;                     /* 縦中央 */
    transform: translateY(-50%);
    z-index: 20;
    pointer-events: none;         /* タップ邪魔しない */
	display: none
  }

  /* contact全体の左右余白 */
  #contact .contact-inner{
    width: min(600px, 92%);
  }

  /* フォームをスマホ幅にフィット */
  #contact .contact-form{
    width: 100%;
    margin: 0 auto;
  }

  /* ここが重要：固定幅・固定高さのtextareaをスマホで上書き */
  #contact form textarea{
    width: 100% !important;
    height: auto !important;
    min-height: 200px;            /* 好みで 180〜260px */
  }

  /* inputも100%で揃える（念のため） */
  #contact form input{
    width: 100% !important;
  }

  /* 送信ボタンも中央に */
  .contact-submit{
    width: min(320px, 90%);
  }
}