/* パーティクル背景 */
#particle-bg {
  position: fixed;
  inset: 0;
  z-index: 0; /* 背景 */
  pointer-events: none; /* クリック邪魔しない */
}

/* 重なり順 */

canvas {
  position: fixed;
  inset: 0;
  z-index: 1;        /* パーティクルはここ */
  pointer-events: none;
  filter: blur(0.3px);
  opacity: 0.7;
}

header {
  position: relative;
  z-index: 10000;  /* ← ここ超重要 */
}

main,
footer {
  position: relative;
  z-index: 1;
}

/* ↑ 重なり順ここまで */

body {
  margin: 0;
  font-family: sans-serif;
  background: #fffdf3;
  color: #2c2c6f;
}

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

.logo {
  width: 120px;   /* ロゴのサイズ調整 */
  height: auto;
}

@media screen and (min-width: 768px) {
  .logo {
    width: 150px;
  }
}


/* header */
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
}

.logo img {
  width: 140px;
}

@media screen and (min-width: 768px) {
  .logo img {
    width: 130px;
  }
}

.nav {
  display: flex;
  justify-content: flex-end;
  gap: 24px;
  list-style: none;
}

.nav a {
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  color: #2c2c6f;
}

/* SPロゴ */
.sp-logo {
  text-align: center;
  padding: 20px 0 10px;
}

.sp-logo img {
  width: 10px;
}


/* PC */
@media screen and (min-width: 768px) {
  .header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .sp-logo {
    display: none;
  }

  .nav a {
    font-size: 16px;
  }
}

@media screen and (min-width: 768px) {
  main {
    padding-top: 20px;
  }
}

/* ===============================
ハンバーガー（SPのみ）
================================== */

.hamburger {
  width: 30px;
  height: 24px;
  position: relative;
  display: none;
}

.hamburger span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 3px;
  background: #2c2c6f;
  border-radius: 2px;
  transition: 0.3s;
}

.hamburger span:nth-child(1) {
  top: 0;
}

.hamburger span:nth-child(2) {
  top: 10px;
}

.hamburger span:nth-child(3) {
  bottom: 0;
}

/* SPだけ表示 */
@media screen and (max-width: 767px) {

  .nav-wrap {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background: #fffdf3;
    transition: 0.3s;
    padding-top: 100px;

    z-index: 9999; 
  }

  .hamburger {
    display: block;
    position: relative;
    z-index: 10000; 
  }

  .nav {
    flex-direction: column;
    gap: 30px;
    align-items: center;
  }

  /* メニュー開いた時 */
  .nav-wrap.active {
    right: 0;
  }

  .hamburger {
    display: block;
  }
}

.main-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 0 40px;
}

.hamburger.active span:nth-child(1) {
  top: 10px;
  transform: rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  bottom: auto;
  top: 10px;
  transform: rotate(-45deg);
}

.hamburger span {
  transition: 0.3s;
}

.main-visual img {
  max-width: 90%;
  height: auto;
}

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

  .main-visual {
    padding: 0;
  }

  .main-visual img {
    width: 100%;
    max-width: 100%;
  }

}

/* main visual */
.sp-only { display: block; }
.pc-only { display: none; }

/* ITEM flow */

.item h2 {
  margin-top: 60px;
  margin-bottom: 20px;
}

.flow-wrap {
  overflow: hidden;
}

.flow {
  display: flex;
  gap: 20px;
  width: max-content;
}

.flow img {
  width: 200px;
}

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

.profile {
  text-align: center;
}

.profile img {
  display: inline-block;
}

.skill {
  padding: 80px 20px;
}

.skill h2 {
  font-size: 32px;
  margin-bottom: 40px;
}

.skill-wrap {
  display: flex;
  gap: 40px;
}

.skill-tags {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.skill-tags span {
  background: #6aa7c8;
  color: #fff;
  padding: 10px 20px;
  border-radius: 6px;
  width: fit-content;
}

.skill-text {
  max-width: 500px;
  line-height: 1.8;
}

/* SP */
@media screen and (max-width: 767px) {
  .skill-wrap {
    flex-direction: column;
    align-items: center;
  }

  .skill-tags {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 20px;
    margin-bottom: 40px;
  }

  .skill-tags span {
    background: #6aa7c8;
    color: #fff;
    padding: 12px 0;
    border-radius: 6px;
    width: 180px;             
    text-align: center;        
  }

  .skill-text {
    text-align: left;
  }

  .skill h2 {
    text-align: center;
    font-family: "Times New Roman", "游明朝", serif;
  }

}

@media screen and (min-width: 768px) {
  .skill {
    max-width: 1000px;
    margin: 0 auto;
  }

  .skill-wrap {
    display: flex;
    justify-content: center;
    gap: 80px;
  }

  .skill-tags {
    grid-template-columns: 1fr;
  }

  .skill h2 {
    text-align: center;
    font-family: "Times New Roman", "游明朝", serif;
  }

  .skill-tags span {
    width: 260px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0; 
  }

}

.news {
  padding: 80px 20px;
}

.news h2 {
  font-size: 28px;
}

.news-line {
  border-bottom: 2px solid #2c2c6f;
  margin: 10px 0 30px;
}

.news-box {
  background: #6aa7c8;
  color: #fff;
  position: relative;
  background: #6aa7c8;
  padding: 28px 24px;
  border-radius: 16px;
  margin: 0 auto 24px;
  max-width: 720px;
  text-align: left;
}

.news-box {
  position: relative; 
}

/* 日付 */
.news-date {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 12px;
  opacity: 0.8;
  z-index: 5; 
}

/* 見出し */
.news-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

/* 本文 */
.news-text {
  font-size: 14px;
  line-height: 1.7;
}

/* coming soon */
.coming {
  display: inline-block;
  margin-top: 6px;
  font-style: italic;
  opacity: 0.9;
}

/* news 横並び */
.news-flex {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}

/* 左テキスト */
.news-content {
  flex: 1;
  position: relative;
}

/* マップ */
.news-map {
  flex: 1;
  margin-top: 10px;
}

.news-map iframe {
  width: 100%;
  height: 200px;
  border: none;
  border-radius: 12px;
}

.news-box .date {
  font-size: 12px;
  opacity: 0.8;
}

.contact {
  padding: 120px 20px;
  text-align: center;
}

.contact p {
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

.contact-line {
  border-bottom: 2px solid #2c2c6f;
  margin: 10px auto 30px;
  width: 200px;
}

/* button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 40px;
  margin-top: 20px;
  margin-bottom: 40px;

  background: #fff;
  border: 2px solid #2c2c6f;
  border-radius: 12px;

  color: #2c2c6f;
  font-weight: 600;
  text-decoration: none;
}

/* ボタン hover */
.btn {
  transition: all 0.3s ease;
}

.btn:hover {
  background: #6fe3ff;
  color: #fff;
  border-color: #6fe3ff;
  transform: translateY(-3px); /* ちょっと浮く */
}

.btn:active {
  transform: translateY(0);
}

.btn {
  position: relative;
  overflow: visible !important; /* ← 強制 */
}

.btn-dot {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  pointer-events: none;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  animation: dot-burst 800ms ease-out forwards;
}

@keyframes dot-burst {
  to {
    transform:
      translate(-50%, -50%)
      translate(var(--x), var(--y))
      scale(0.4);
    opacity: 0;
  }
}


/* セクション見出し共通 */
.section-title {
  margin: 120px 0 60px; 
  text-align: left;
}

.section-title h2 {
  font-size: 28px;
}

.section-line {
  border-bottom: 2px solid #2c2c6f;
  width: 100%;
  margin-top: 10px;
}

/* ボタン矢印 */
.btn-arrow::after {
  content: "›";
  font-size: 20px;
  margin-left: 10px;
}

.item,
.contact,
.item-page {
  text-align: center;
}

/* PC */
@media screen and (min-width: 768px) {
  .sp-only { display: none; }
  .pc-only { display: block; }

  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* contact全体 */
.contact {
  padding: 40px 20px 50px;
  position: relative;
  overflow: hidden;
}

/* 円は後ろ */
.circle {
  z-index: 0;
}

/* 文字は前 */
.contact-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #1f3a8a;
}

/* タイトル */
.contact-title {
  font-size: 28px;
  font-weight: normal;
  margin-bottom: 8px;
}

.contact-line {
  width: 120px;
  height: 2px;
  background: #1f3a8a;
  margin: 0 auto 24px;
}

/* 説明文 */
.contact-text {
  font-size: 14px;
  line-height: 1.8;
}

/* 見出し下線 共通 */
/* 下線アニメーション */
.section-line,
.news-line,
.contact-line {
  height: 2px;
  background: #2c2c6f;
  margin: 10px auto 30px;
  width: calc(100% - 80px);
  max-width: 1000px;

  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.8s ease;
}

/* JSで付与するクラス */
.line-active {
  transform: scaleX(1);
}

/* 見出しhoverで線伸びる */
.section-title:hover .section-line,
.news:hover .news-line,
.contact:hover .contact-line {
  transform: scaleX(1);
}

/* 見出し共通（profile / news / contact） */
.section-title h2,
.news h2,
.contact h2 {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 40px;  
  text-align: left;
}

/* ボタン */
.contact-btn {
  display: inline-block;
  padding: 12px 28px;
  border: 2px solid #1f3a8a;
  border-radius: 30px;
  color: #1f3a8a;
  text-decoration: none;
  margin-bottom: 40px;
  margin-top: 0;
}

/* 下のリンク */
.contact-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 14px;
}

.link-item {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.link-item a {
  color: #1f3a8a;
  text-decoration: none;
}

.circle {
  position: absolute;
  background: #f9d6df; /* 薄ピンク */
  border-radius: 50%;
  opacity: 0.7;
  z-index: 0;
}

/* 円それぞれ */
.c1 {
  width: 200px;
  height: 200px;
  bottom: -40px;
  left: -40px;
}

.c2 {
  width: 120px;
  height: 120px;
  bottom: 40px;
  left: 120px;
}

.c3 {
  width: 160px;
  height: 160px;
  bottom: -60px;
  right: 40px;
}

.c4 {
  width: 90px;
  height: 90px;
  bottom: 80px;
  right: 140px;
}

.c5 {
  width: 140px;
  height: 140px;
  bottom: 20px;
  left: 260px;
}

.c6 {
  width: 100px;
  height: 100px;
  bottom: 140px;
  left: 40px;
}

.c7 {
  width: 180px;
  height: 180px;
  bottom: -80px;
  right: 260px;
}

.c8 {
  width: 110px;
  height: 110px;
  bottom: 160px;
  right: 80px;
}

/* google アイコン用 */
.material-symbols-outlined {
  font-size: 20px;
  vertical-align: middle;
  margin-right: 6px;
  color: #2c2c6f;
}

.news-text
.material-symbols-outlined {
  color:#fff
}

/* フッターインスタアイコン */
.ri-instagram-line {
  font-size: 26px;  
  margin-right: 6px;
  vertical-align: middle;
}

/* ===============================
ITEMページ
================================== */

.item-page {
  padding: 0px 20px 40px;
}

.item-category {
  font-size: 40px;
  margin: 70px 0 60px;
  font-family: "Times New Roman", "游明朝", serif;
}

.section-title {
  margin-top: 0;     
  margin-bottom: 40px;
}

/* 商品グリッド */
.item-grid {
  max-width: 1000px;
  margin: 0 auto;
}

/* カード */
.item-card {
  text-align: center;
}

.item-card img {
  width: 100%;
  max-width: 260px; 
  margin: 0 auto 12px;
  display: block;
}

/* 商品名 */
.item-name
.item-size {
  font-size: 14px;
  margin-bottom: 4px;
  font-family: "Times New Roman", "游明朝", serif;
}

/* 値段 */
.item-price {
  font-size: 20px;
  font-weight: 600;
  font-family: "Times New Roman", "游明朝", serif;
}

/* ===============================
ローディング全体
================================== */

#loading {
  position: fixed;
  inset: 0;
  background: #fffdf3;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

/* 渦巻き */
.spinner {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background:
    conic-gradient(
      from 0deg,
      #6fe3ff,
      rgba(111, 227, 255, 0.8),
      rgba(111, 227, 255, 0.5),
      rgba(111, 227, 255, 0.2),
      transparent
    );
  mask: radial-gradient(
    farthest-side,
    transparent calc(100% - 10px),
    #000 calc(100% - 9px)
    );
  -webkit-mask: radial-gradient(
    farthest-side,
    transparent calc(100% - 10px),
    #000 calc(100% - 9px)
  );
  animation: spin 3s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* フェードアウト */
#loading.fade-out {
  opacity: 0;
  transition: opacity 1s ease;
  pointer-events: none;
}

/* ===============================
   MODAL
================================= */

.modal {
  position: fixed;
  inset: 0;
  display: none;
  justify-content: center;
  align-items: center;

  background: rgba(0, 0, 0, 0.8);
  z-index: 99999;

  padding: 5vh 5vw; /* ← 画面端に余白を強制 */
  box-sizing: border-box;
}

.modal.active {
  display: flex;
}

.modal-content {
  position: relative;

  max-width: 100%;
  max-height: 100%;

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

#modal-img {
  display: block;

  max-width: 90vw;
  max-height: 90vh;

  width: auto;
  height: auto;

  object-fit: contain;  /* ← 見切れ防止の本体 */
}

/* 閉じるボタン */
.modal-close {
  position: absolute;
  top: -40px;
  right: 0;

  background: none;
  border: none;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
}

/* ===============================
   skill ぽよんアニメーション
================================ */

.skill-tags span {
  animation: poyon 4s ease-out infinite;
}

/* ちょっとずつズラして動かす */
.skill-tags span:nth-child(1) { animation-delay: 0.0s; }
.skill-tags span:nth-child(2) { animation-delay: 0.1s; }
.skill-tags span:nth-child(3) { animation-delay: 0.2s; }
.skill-tags span:nth-child(4) { animation-delay: 0.3s; }

@keyframes poyon {
  0% {
    transform: translateY(30px) scaleY(0.8);
    opacity: 0;
  }

  20% {
    transform: translateY(-10px) scaleY(1.1);
    opacity: 1;
  }

  35% {
    transform: translateY(5px) scaleY(0.95);
  }

  50% {
    transform: translateY(0) scaleY(1);
  }

  /* ここから止まる */
  100% {
    transform: translateY(0) scaleY(1);
  }
}