/*
  © 2025 MasakeyArt
  このスタイルシートの著作権はMasakeyArtにあります。
  デザインや構造の無断転用・改変を禁止します。
  お問い合わせ: info@masakeyart.net
*/

/* リセットCSS */
/* Eric Meyer’s Reset CSS v2.0 (改良版) */
html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}

body {
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  /* 文字をなめらかに */
  -moz-osx-font-smoothing: grayscale;
}

a:hover,
a:link,
a:visited {
  text-decoration: none;
  color: #000;
}

a.upbtn {
  display: inline-block;
  /* transformが効くように */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

a.upbtn:hover {
  transform: translateY(-6px);
  /* 少し上へ */
}

@keyframes gentleBounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

a.upbtn2 {
  display: inline-block;
  transition: transform 0.3s ease;
}

a.upbtn2:hover {
  animation: gentleBounce 1.2s ease-in-out infinite;
}

ol,
ul {
  list-style: none;
}

blockquote,
q {
  quotes: none;
}

blockquote::before,
blockquote::after,
q::before,
q::after {
  content: '';
  content: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

a:focus {
  outline: none;
}

/* ボックスサイズをborder-boxに統一 */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* 画像やメディアをレスポンシブに */
img,
picture,
video,
canvas,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  all: unset;
  cursor: pointer;
}

/* フォントの基本設定 */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  font-family: "Noto Sans JP", sans-serif;
  color: #000;
  background-color: #F5FFFC;
  overflow-x: hidden;

}

.container {
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
  background: #F5FFFC;
  overflow: hidden;
}

.header {
  margin: 40px 50px;
  max-width: 1287px;
  width: 100%;
  height: 89px;
  flex-shrink: 0;
  border-radius: 57px;
  border: 1px solid #FCF9F9;
  background: #FFF;
  box-shadow: 0px 0px 6px 6px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  position: fixed;
}

.header h1 {
  margin-left: 30px;
  display: flex;
  flex-direction: row;

}

.logo {
  color: #000;
  font-size: 30px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}

.menuul {
  width: auto;
  display: flex;
  flex-direction: row;
  padding-right: 1rem;
  align-items: center;
}

.menuul li {
  color: #000;
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  padding: 0 1rem;
}

.menuul .menu_contact {
  color: #FFF;
  display: inline-block;
  background-color: #37E7C7;
  border-radius: 57px;
  padding: 13px 36px;
  margin-left: 1.5rem;
}

.kvsection {}

.kv_h2 {
  margin-top: 225px;
  color: #000;
  text-align: center;
  font-family: "Noto Sans JP";
  font-size: 79.37px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}

.copy {
  margin-top: 30px;
  color: #000;
  font-family: "Noto Sans JP";
  font-size: 37.621px;
  text-align: center;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

.copy_btm {
  padding-top: 10px;
  color: #000;
  font-family: "Noto Sans JP";
  font-size: 26.785px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

.kv_btn {
  padding-right: 15%;
  text-align: right;
}

section.kvsection {
  position: relative;
  z-index: 1;
}

.circle-bg-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1292px;
  z-index: 0;
  /* 背景へ */
  pointer-events: none;
}

.circle-bg-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2400px;
  z-index: 0;
  pointer-events: none;
}

.circle-bg-2 {
  position: absolute;
  left: 20%;
  top: 2600px;
  width: 1200px;
  opacity: 1;
  transition: all 1.2s ease-out;
  z-index: 2;
}

/* 手前のサークル */
.circle-bg-front {
  position: absolute;
  left: -300px;
  top: 400px;
  width: 1200px;
  opacity: 0;
  transition: all 1.2s ease-out;
  z-index: 2;
}

/* 背後にフェードインするサークル */
.circle-bg-behind {
  position: absolute;
  left: 40px;
  top: 400px;
  width: 1200px;
  opacity: 0;
  transform: scale(1);
  transition: all 1.5s ease-in-out 1.2s;
  /* ←1.2秒後に開始 */
  z-index: 1;
}

.circle-bg-deep {
  position: absolute;
  left: 40px;
  top: 400px;
  width: 1200px;
  opacity: 0;
  transform: scale(1.15);
  transition: opacity 1.5s ease-in-out 2.8s;
  /* ← 2.8秒遅らせて出現 */
  z-index: 0;
  /* 一番奥 */
}

.circle-bg-deep.visible {
  opacity: 0.6;
  transform: scale(1.075);
}

/* アニメ開始時 */
.circle-bg-front.visible {
  left: 50px;
  opacity: 1;
}

.circle-bg-behind.visible {
  opacity: 0.6;
  transform: scale(1.05);
  /* ちょっとだけ大きく */
}


.kvarea,
.kv_h2 {
  position: relative;
  z-index: 10;
}

.ring-animation {
  position: absolute;
  bottom: 1600px;
  /* 画面外の左下 */
  left: -100px;
  width: 1000px;
  opacity: 0;
  animation: floatRing 24s ease-in-out infinite;
  z-index: 0;
  pointer-events: none;
}

/* ring1：そのまま開始 */
.ring1 {
  animation-delay: 3s;
}

/* ring2：少し遅れて開始（6秒後など） */
.ring2 {
  animation-delay: 7s;
}

/* アニメーション定義 */
@keyframes floatRing {
  0% {
    transform: translate(0, 0);
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  80% {
    transform: translate(120vw, -120vh);
    opacity: 1;
  }

  100% {
    transform: translate(120vw, -120vh);
    opacity: 0;
  }
}

.arrow-animation {
  pointer-events: none;
  position: absolute;
  bottom: 380px;
  left: 35%;
  width: 600px;

  -webkit-mask-image: linear-gradient(to bottom, black 0%, black 70%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 0%, black 70%, transparent 100%);
  -webkit-mask-size: 100% 300%;
  /* 重要！ */
  mask-size: 100% 300%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: top;
  mask-position: top;
}

.arrow-animation.visible {
  animation: revealBrush 5s ease forwards;
}

@keyframes revealBrush {
  0% {
    -webkit-mask-position: top;
    mask-position: top;
    opacity: 0;
    -webkit-mask-image: linear-gradient(to bottom, black 0%, black 70%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 0%, black 70%, transparent 100%);
  }

  100% {
    -webkit-mask-position: bottom;
    mask-position: bottom;
    opacity: 1;
    -webkit-mask-image: none;
    mask-image: none;
  }
}

.maincontent {
  margin: 0px 120px 40px;
  max-width: 1287px;
  width: 100%;

}

.area h2 {
  color: #FFF;
  font-family: "Noto Sans JP";
  font-size: 72px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}

.area .h2under {
  color: #FFF;
  font-family: "Noto Sans JP";
  font-size: 43px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

.introunit {
  display: flex;
  flex-direction: row;
  margin-left: -100px;
}

.introunit .text {
  margin-top: 110px;
  display: flex;
  flex-direction: column;
}

.text .honbun {
  color: #000;
  font-family: "Noto Sans JP";
  font-size: 24px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  margin-bottom: 1.5rem;
}

.fukidashi {
  padding: 20px 30px;
  border-radius: 96px;
  border: 1px solid #1E1D1D;
  background: #FFF;
  display: inline-block;
  margin-right: 48%;
}

.fukidashi p {
  display: inline-block;
  color: #000;
  font-family: "Noto Sans JP";
  font-size: 24px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

.meritarea h2 {
  color: #000;
}

.meritarea .h2under {
  color: #000;
}

.meritunit {
  margin-top: 124px;
  display: flex;
  flex-direction: row;
  gap: 140px;
}

.itemcopy {
  color: #000;
  margin-top: 30px;
  text-align: center;
  font-family: "Noto Sans JP";
  font-size: 24px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  text-align: center;
}

.itemtext {
  color: #000;
  margin-top: 12px;
  text-align: center;
  font-family: "Noto Sans JP";
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  text-align: center;
}

/* 初期状態 */
.fade-in-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 2s ease, transform 1s ease;
}

/* フェードイン発動時 */
.fade-in-item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 遅延バリエーション（必要なら最大数まで） */
.fade-in-item.delay-0 {
  transition-delay: 0s;
}

.fade-in-item.delay-1 {
  transition-delay: 1s;
}

.fade-in-item.delay-2 {
  transition-delay: 2s;
}

.fade-in-item.delay-3 {
  transition-delay: 3s;
}

/* …必要に応じて追加 */

.servicearea {
  margin-top: 230px;
}

.servicearea h2 {
  color: #000;
}

.servicearea .h2under {
  color: #000;
}

.serviceunit {
  margin-top: 110px;
  display: flex;
  flex-direction: row;
  gap: 38px;
}

.serviceunit .item {
  width: 274px;
}

.serviceunit .itemtitle {
  padding: 0.5rem 1rem;
  border: 0.756px solid #000;
  background: #000;
}

.serviceunit .itemtitle p {
  color: #FFF;
  text-align: center;
  font-family: "Noto Sans JP";
  font-size: 22px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
}

.serviceunit .itemtext {
  padding: 0.75rem 1rem;
  border: 0.756px solid #000;
  background-color: #FFF;
  margin-top: 0;
}

.serviceunit .itemtext p {
  color: #000;
  text-align: center;
  font-family: "Noto Sans JP";
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

img {
  display: block;
}

.casearea {
  margin-top: 224px;
}

.casearea h2,
.casearea .h2under {
  color: #000;
}

.caseunit-slide-trac {
  margin-top: 78px;
}

.caseunit-slide-track .slide-item img {
  border-radius: 12px;
}


.caseunit-slide-track .slide-item .casetext {}

.caseunit-slider {
  overflow: hidden;
  width: 100vw;
  position: relative;
}

.caseunit-slide-track {
  display: flex;
  width: calc(35vw * 6);
  /* 6枚 × 35vw */
  animation: slideLeft 30s linear infinite;
}

.slide-item {
  flex: 0 0 35vw;
  /* 1枚の幅を35vwに */
  box-sizing: border-box;
  padding: 20px;
  margin: 0 10px;
  /* 余白を少し減らす */
}

.slide-item img {
  max-width: 100%;
  height: auto;
  margin-bottom: 12px;
}

.casetitle {
  text-align: left;
  color: #000;
  font-family: "Noto Sans JP";
  font-size: 26.5px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  margin: 1rem 0;
}

.casetext {
  color: #000;
  font-family: "Noto Sans JP";
  font-size: 16.864px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  margin-bottom: 1.5rem;
}

/* アニメーション */
@keyframes slideLeft {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(calc(-35vw * 3 - 60px));
    /* 3枚分＋マージン60pxを左へ */
  }
}

.contactarea h2 {
  color: #000;
  font-family: "Noto Sans JP";
  font-size: 71.86px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}

.contactarea .h2under {
  color: #000;
  font-family: "Noto Sans JP";
  font-size: 43.135px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

.widearea {
  margin-top: 50px;
  padding: 80px 120px 40px;
  width: 100%;
  background-color: #37E7C7;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.contactbg {
  position: absolute;
  top: -300px;
  left: -30%;
  width: 100%;
  z-index: 0;
  /* 背景へ */
  pointer-events: none;
}

.coverbase {
  margin-top: 80px;
  background-color: #FFF;
  border-radius: 62px;
  box-shadow: 0px 0px 12.1px 9px rgba(0, 0, 0, 0.05);
  position: relative;
  border: 1px solid #EAE8E8;
  z-index: 1;
}

.contactbtn {

  display: inline-block;
  flex-shrink: 0;
  padding: 30px 60px;
  border-radius: 62px;
  background: rgba(55, 231, 199, 0.13);


}

.contactbtn p {
  color: #3F3D3D;
  font-family: "Noto Sans JP";
  font-size: 28px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}

.snsunit {
  position: relative;
  margin-top: 32px;
  display: flex;
  flex-direction: row;
  gap: 12px;
  margin-bottom: 60px;
  z-index: 1;
}

footer {
  position: relative;
  z-index: 1;
  text-align: center;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

footer p {
  color: #000;
  text-align: center;
  font-family: "Noto Sans JP";
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}


/*//////////////////////////////////////////////////////////
SP
///////////////////////////////////////////////////////////*/
/* ---------------------
   ▼ スマホ（主に390px以下）用レイアウト調整
---------------------- */
@media screen and (max-width: 480px) {

  body {
    font-size: 14px;
    padding: 10px;
  }

  .container {
    width: 100%;
    padding: 0;
    margin: 0;
  }

  .section-title {
    font-size: 20px;
    text-align: center;
  }

  .button {
    width: 100%;
    font-size: 16px;
    padding: 12px 0;
  }

  header,
  footer {
    flex-direction: column;
    text-align: center;
  }



  /* 必要に応じて他の要素も調整 */
  body {}

  .maincontent {
    margin: 0px 2% 20px;
    width: 96%;
  }

  .relative {
    margin-top: 120px;
  }

  .kv_h2 {
    margin-top: 30px;
    font-size: 48px;
  }

  .copy p {
    font-size: 32px;
  }

  .copy p.copy_btm {
    font-size: 16px;
  }

  .kv_btn {
    padding-right: 10%;
    width: 90%;
  }

  .area h2,
  .widearea h2 {
    margin-top: 40px;
    color: #000;
    font-size: 58px;
    text-align: center;
    line-height: 1.2;
  }

  .area .h2under,
  .widearea .h2under {
    color: #000;
    font-size: 24px;
    text-align: center;
  }

  .introunit {
    flex-direction: column;
    margin-left: 0;
  }

  .introunit .photo {
    width: 80%;
    margin: 0 10% 0;
  }

  .introunit .text {
    margin-top: 0;

  }

  .introunit .honbun {
    font-size: 16px;
  }

  .introunit .fukidashi {
    width: 100%;
    margin-right: 0;
    text-align: center;

  }

  .introunit .fukidashi p {
    font-size: 16px;

  }

  .meritunit {
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
  }

  .meritunit .item {
    margin-bottom: 20px;
  }


  .relative {
    width: 100%;
    overflow-x: hidden;
  }

  .circle-bg-wrapper {
    width: 100%;
    left: 0;
    top: -160px;
  }

  .ring-animation {
    width: 100%;
    left: 0;
  }

  .circle-bg-wrapper .arrow {
    display: none;
  }

  .servicearea {
    margin-top: 0;
  }

  .serviceunit {
    flex-direction: column;
    gap: 0;
    margin-top: 30px;
  }

  .serviceunit .item {
    width: 100%;
    margin-bottom: 40px;
  }

  .casearea {
    margin-top: 30px;
  }

  .circle-bg-wrapper .circle-bg-2 {
    opacity: 0.05;
  }

  .caseunit-slider {
    overflow-x: hidden;
  }

  .slide-item {
    flex: 0 0 100vw;
    padding: 0;
    /* ←パディングでオーバーする可能性が高い */
  }

  .widearea {
    padding: 0;
  }

  .coverbase {

    margin-top: 60px;
    text-align: center;
    margin: 60px auto 30px;
    margin-left: 30px;
  }

  .contactbtn {
    width: 100%;
    padding: 1.5rem;
    margin: 0 auto;
  }

  .contactbg {
    display: none;
  }

  .snsunit {
    margin-left: 30px;
    margin-bottom: 30px;
  }

  footer p {
    font-size: 10px;
  }

  body {
    width: 100%;
    overflow-x: hidden;
    padding: 0;
  }

  .container {
    width: 96%;
    padding: 0 2%;
  }

  .contactbtn p {
    font-size: 16px;
  }

  .header {
 justify-content:left;
 width: 320px;
 margin: 20px;

  }
  .header h1 {
    margin-left: 10px;
  }
  .menu {
    display: none;
  }
  .header .logo {
    
  }
}