/* 横スクロールを防ぐ */
html, body {
  overflow-x: hidden !important;
  max-width: 100vw;
}
* {
  max-width: 100%;
  box-sizing: border-box;
}

/* トップ画像 */
.top-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 0;
  padding: 0;
  object-fit: cover;
}

/* スマホでは一番上のトップ画像を非表示 */
@media (max-width: 768px) {
  .top-image {
    display: none !important;
  }
}

/* トップヒーロー（背景＋カード） */
.top-hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: none;
}
.top-hero__bg-wrap {
  position: relative;
  width: 100%;
}
.top-hero__bg {
  width: 100%;
  height: auto;
  display: block;
}
.top-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(1200px 520px at 50% 55%, rgba(255,255,255,0.20), rgba(255,255,255,0.00) 65%);
  pointer-events: none;
  z-index: 1;
}
.top-hero__inner {
  position: absolute;
  inset: 0;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(72px, 10vh, 120px) 24px clamp(22px, 6vh, 56px);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.top-hero__copy {
  text-align: center;
  color: #2e3a34;
  text-shadow: 0 1px 0 rgba(255,255,255,0.65);
  margin-bottom: clamp(12px, 2vh, 18px);
}
.top-hero .catch-copy {
  margin: 0;
  font-size: clamp(26px, 3.2vw, 52px);
  font-weight: 800;
  letter-spacing: 0.02em;
}
.top-hero .sub-catch {
  margin: 10px 0 0;
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}
.top-hero .sub-catch-main {
  margin-left: 0 !important;
  font-size: clamp(14px, 1.2vw, 18px) !important;
}
.top-hero .sub-catch-sub {
  font-size: clamp(12px, 1.1vw, 16px);
}
.top-hero__cards {
  margin-top: clamp(28px, 5vh, 52px);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(16px, 2.4vw, 32px);
  width: min(1100px, 100%);
  padding: 0 clamp(14px, 3vw, 32px);
  box-sizing: border-box;
  transform: translate(
    clamp(260px, 24vw, 300px),
    clamp(200px, 20vh, 240px)
  );
}
.hero-switch-btn {
  margin-top: clamp(18px, 3vh, 28px);
  align-self: flex-start;
  padding: 12px 22px;
  border-radius: 999px;
  border: 2px solid rgba(46,58,52,0.9);
  background: rgba(255,255,255,0.9);
  color: #2e3a34;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(0,0,0,0.12);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.hero-switch-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.18);
  background: rgba(255,255,255,0.98);
}
.hero-switch-btn:active {
  transform: translateY(0);
  box-shadow: 0 6px 16px rgba(0,0,0,0.16);
}
.top-hero__card {
  width: clamp(160px, 16vw, 220px);
  border-radius: 22px;
  overflow: hidden;
  background: rgba(255,255,255,0.92);
  box-shadow: 0 16px 44px rgba(0,0,0,0.18);
  transform: translateZ(0);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.top-hero__card--tall {
  width: clamp(110px, 10.5vw, 160px);
}
.top-hero__card img {
  display: block;
  width: 100%;
  height: auto;
}
.top-hero__card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 60px rgba(0,0,0,0.22);
}
.top-hero__overlay {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 0;
  transform: translate(-50%, -105%);
  pointer-events: none;
  display: none !important; /* 表示を停止 */
}
.top-hero__overlay img {
  display: block;
  width: clamp(120px, 16vw, 220px);
  height: auto;
}
.top-hero.is-lp-bg .top-hero__copy {
  visibility: hidden;
  opacity: 0;
}
@media (max-width: 1100px) {
  .top-hero__cards {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
  }
  .top-hero__card {
    scroll-snap-align: center;
    flex: 0 0 auto;
  }
  .flow-container {
    justify-content: center;
    padding: 0 6vw;
  }
}
@media (max-width: 768px) {
  /* 以前の要望どおり、スマホではトップの大きい画像（ヒーロー）を非表示 */
  .top-hero {
    display: none !important;
  }
}

/* LINE相談ボタン：常に右下固定、スマホでより目立つ */
.line-consult-btn {
  position: fixed !important;
  right: 18px;
  bottom: 18px;
  z-index: 99999 !important;
  background: #06c755;
  color: #fff;
  border-radius: 50px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
  padding: 12px 28px;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: background 0.2s;
  font-weight: bold;
}
.line-consult-btn:hover {
  background: #059e44;
}
.line-consult-text {
  font-weight: bold;
  font-size: 1.1em;
  letter-spacing: 0.05em;
}
@media (min-width: 769px) {
  .line-consult-btn {
    font-size: 1rem;
    padding: 10px 22px;
    min-width: 120px;
    height: 48px;
  }
}
/* アイコングリッド PC横並び */
@media (min-width: 769px) {
  .icon-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 2vw;
    max-width: 90vw;
    margin: 0 auto;
  }
  .icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1vw 0;
  }
}
@media (max-width: 768px) {
  a.round-btn {
    margin-left: 35vw !important;
    margin-right: auto !important;
    display: inline-block !important;
  }
}
@media (max-width: 768px) {
  .flow-step {
    width: 90vw !important;
    max-width: 320px !important;
    min-height: 220px !important;
    padding: 18px 8px 18px 8px !important;
    margin-top: 32px !important;
  }
  .flow-label {
    width: 60px !important;
    height: 60px !important;
    font-size: 1rem !important;
    top: -32px !important;
    left: 12px !important;
  }
  .flow-step .flow-icon svg {
    width: 54px !important;
    height: 54px !important;
  }
}
/* 制作の流れ 各STEPタイトル・説明 スマホで下にずらす */
@media (max-width: 768px) {
  .flow-title {
    margin-top: 2vw !important;
    margin-bottom: 3vw !important;
  }
  .flow-desc {
    margin-top: 2vw !important;
    margin-bottom: 3vw !important;
  }
}
/* 制作の流れ 各STEPタイトル・説明 スマホで大きく */
@media (max-width: 768px) {
  .flow-title {
    font-size: 5vw !important;
    font-weight: bold !important;
    margin-bottom: 2vw !important;
  }
  .flow-desc {
    font-size: 3.7vw !important;
    line-height: 1.8 !important;
    margin-bottom: 0 !important;
  }
}
/* 制作の流れタイトル スマホで大きく */
@media (max-width: 768px) {
  .seisaku {
    font-size: 7vw !important;
    text-align: center !important;
    padding-top: 40%;
    margin-bottom: 4vw !important;
    font-weight: bold !important;
    letter-spacing: 0.08em;
  }
}
/* お問い合わせフォーム用スタイル */
.contact-form-section {
  background: #6b8f71;
  padding: 40px 0 30px 0;
}
.contact-form-wrap {
  max-width: 520px;
  width: 92%;
  margin: 40px auto;
  background: rgba(255,255,255,0.05);
  padding: 30px 20px;
  border-radius: 12px;
}
.contact-form-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 30px;
}
.contact-form-label {
  font-size: 1.1rem;
  margin-top: 18px;
  margin-bottom: 4px;
  display: block;
}
.contact-form-input, .contact-form-textarea {
  width: 100%;
  padding: 8px;
  border: none;
  border-radius: 4px;
  background: #fff;
  font-size: 1rem;
  margin-bottom: 8px;
}
.contact-form-textarea {
  min-height: 90px;
  resize: vertical;
}
.contact-form-checkboxes {
  margin-bottom: 10px;
}
.contact-form-checkboxes label {
  display: block;
  font-size: 1rem;
  margin-bottom: 2px;
}
.contact-form-btn {
  display: block;
  margin: 30px auto 0 auto;
  background: #fff;
  color: #222;
  border: none;
  border-radius: 20px;
  font-size: 1.2rem;
  padding: 8px 38px;
  cursor: pointer;
  box-shadow: 0 2px 8px #bbb;
  transition: background 0.2s;
}
.contact-form-btn:hover {
  background: #e0e0e0;
}
/* アイコン＋テキスト2段グリッド */
.icon-grid-section {
  margin: 60px auto 40px auto;
  width: 100%;
  max-width: 950px;
}
/* PC用デフォルト 横並び */
.icon-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px 8px;
  justify-items: center;
  align-items: start;
}
.icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-width: 90px;
  margin-bottom: 10px;
}
.icon-img {
  background: #fafbfc;
  border-radius: 50%;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  box-shadow: 0 2px 8px #eee;
}
.icon-label {
  font-size: 1.1rem;
  font-weight: bold;
  color: #222;
  text-align: center;
  line-height: 1.2;
  letter-spacing: 0.01em;
}
@media (max-width: 768px) {
  .seisaku {
    font-size: 7vw !important;
    text-align: center !important;
    margin-top: 70%;
    margin-bottom: 4vw !important;
    font-weight: bold !important;
    letter-spacing: 0.08em;
    line-height: 2.5 !important;
    padding-top: 8vw !important;
  }
  .icon-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 2px;
    justify-items: center;
    align-items: start;
  }
  .icon-label {
    font-size: 0.98rem;
  }
  .icon-img {
    width: 54px;
    height: 54px;
  }
}
@media (max-width: 600px) {
  .logo-group p {
    font-size: 8vw !important;
    margin-top: 0 !important;
    margin-left: -20%;
    margin-top: -10%;
  }
  .logo-group p {
    font-size: 8vw !important;
    margin-top: -12% !important;
    margin-left: 43% !important;
  }
}
/* 制作の流れセクション */
.flow {
  padding: 60px 0 40px 0;
  position: relative;
  font-family: 'Noto Sans JP', sans-serif;
  border-radius: 24px;
  margin: 60px 0 40px 0;
}
.flow-container {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 32px;
  flex-wrap: wrap;
  position: relative;
  padding: 0 4vw;
  max-width: 1200px;
  margin: 0 auto;
}
.flow-step {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  flex: 1 1 calc((100% - 64px) / 3);
  max-width: 360px;
  min-width: 260px;
  min-height: 390px;
  padding: 40px 24px 32px 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: 60px;
}
.flow-label {
  position: absolute;
  top: -48px;
  left: 24px;
  background: #222;
  color: #fff;
  border-radius: 50%;
  width: 90px;
  height: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: bold;
  letter-spacing: 0.05em;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  line-height: 1.1;
}
.flow-label br { display: none; }
.flow-step:nth-child(1) .flow-label,
.flow-step:nth-child(3) .flow-label {
  font-size: 1.1rem;
}
.flow-step .flow-icon {
  margin: 32px 0 18px 0;
}
.flow-title {
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: 12px;
  color: #222;
}
.flow-desc {
  font-size: 1rem;
  color: #333;
  margin-bottom: 0;
  line-height: 1.7;
}
.flow-arrow {
  display: flex;
  align-items: center;
  font-size: 2rem;
  color: #F3ECDC;
  margin: 0 0 0 0;
  height: 390px;
  align-self: center;
}
.flow-note {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -60px);
  background: #222;
  color: #fff;
  padding: 10px 28px;
  border-radius: 20px;
  font-size: 1.1rem;
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  z-index: 10;
}
@media (max-width: 1100px) {
  .flow-container {
    justify-content: center;
    padding: 0 6vw;
  }
  .flow-step {
    flex: 1 1 calc((100% - 32px) / 2);
    max-width: 440px;
  }
}
@media (max-width: 768px) {
  .seisaku {
    font-size: 7vw !important;
    text-align: center !important;
    margin-top: -20%;
    margin-bottom: 4vw !important;
    font-weight: bold !important;
    letter-spacing: 0.08em;
  }
  .seisaku .seisaku-text {
    display: inline-block;
    position: relative;
    top: 6em;
    left: -2vw;
  }
}
@media (max-width: 800px) {
  .flow-container {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }
  .flow-step {
    margin-top: 60px;
    margin-bottom: 0;
    flex: 1 1 100%;
    max-width: 520px;
    min-width: 0;
  }
  .flow-arrow {
    transform: rotate(90deg);
    margin: 0;
    height: 40px;
    font-size: 2.2rem;
  }
  .flow-note {
    font-size: 0.95rem;
    padding: 7px 18px;
    transform: translate(-50%, -40px);
  }
}
.flow-step a {
  color: #2196f3;
  text-decoration: underline;
}
/* ニュース（お知らせ）セクション */
.news-section {
  background: transparent;
  padding: 3vw 0 2vw;
  margin-bottom: 2vw;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.news-title {
  font-size: 2.4vw;
  font-weight: bold;
  color: #2e3a34;
  margin: 0 0 1.4vw;
  text-align: center;
}
.news-list {
  list-style: none;
  padding: 0;
  margin: 0;
  width: min(88vw, 960px);
  display: flex;
  flex-direction: column;
  gap: 1.1vw;
}
.news-list li {
  font-size: 1.1vw;
  color: #333;
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
  padding: 1.1vw 1.4vw;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  position: relative;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.news-list li:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(0,0,0,0.12);
}
.news-summary {
  display: flex;
  align-items: center;
  gap: 0.8vw;
  width: 100%;
}
.news-list li::after {
  content: "›";
  color: #bfbfbf;
  font-size: 1.6vw;
  font-weight: 700;
  position: absolute;
  right: 1.4vw;
  top: 1.1vw;
  transition: transform 0.3s, color 0.3s;
}
.news-list li.open::after {
  transform: rotate(90deg);
  color: #2e3a34;
}
.news-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, margin-top 0.3s ease, padding-top 0.3s ease;
  font-size: 0.95em;
  line-height: 1.7;
  color: #555;
}
.news-list li.open .news-content {
  max-height: 500px;
  margin-top: 1vw;
  padding-top: 1vw;
  border-top: 1px solid #eee;
}
.news-more {
  margin-top: 1.6vw;
  padding: 0.8vw 2.4vw;
  background: linear-gradient(90deg, #6cb5ff, #8fd3ff);
  color: #fff;
  border-radius: 999px;
  font-size: 1.1vw;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.news-more:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(0,0,0,0.16);
  filter: brightness(1.02);
}
.news-more:active {
  transform: translateY(0);
  box-shadow: 0 10px 24px rgba(0,0,0,0.14);
}
.news-date {
  color: #777;
  font-size: 0.95em;
  margin-right: 1.2em;
  white-space: nowrap;
}
.news-text {
  flex: 1;
  line-height: 1.6;
}
@media (max-width: 768px) {
  .news-title {
    font-size: 6vw;
    margin-bottom: 4vw;
    text-align: center;
  }
  .news-list {
    width: 92vw;
    gap: 3vw;
  }
  .news-list li {
    font-size: 3.6vw;
    padding: 3vw 3.4vw;
  }
  .news-list li::after {
    font-size: 5vw;
    top: 3vw;
    right: 3.4vw;
  }
  .news-list li.open .news-content {
    margin-top: 3vw;
    padding-top: 3vw;
  }
  .news-date {
    font-size: 3.2vw;
  }
  .news-more {
    margin-top: 4vw;
    padding: 2.4vw 6vw;
    font-size: 3.8vw;
  }
}

/* 「サービス内容」見出し（スマホで大きく） */
@media (max-width: 768px) {
  .service-title {
    font-size: 7vw !important;
    margin-left: 0 !important;
    text-align: center;
    margin-top: 12vw !important;
  }
}
/* 右下固定 LINE相談ボタン */
.line-consult-btn {
  position: fixed;
  right: 3vw;
  bottom: 3vw;
  z-index: 9999;
  background: #00c300;
  border-radius: 28px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
  min-width: 120px;
  height: 48px;
  transition: box-shadow 0.2s;
  padding: 0 24px;
  overflow: hidden;
  display: flex;
  align-items: center;
  text-decoration: none;
}
.line-consult-btn:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.28);
  filter: brightness(1.1);
}
.line-consult-text {
  color: #fff;
  font-size: 1.1em;
  font-weight: bold;
  letter-spacing: 0.05em;
  white-space: nowrap;
  user-select: none;
  margin-left: 10px;
  margin-top: 3px;
}
@media (max-width: 768px) {
  .logo-group p {
    font-size: 8vw !important;
  }
}
@media (max-width: 768px) {
  .main-img-pc-move {
    margin-top: 0 !important;
  }
}
@media (max-width: 768px) {
  img[src*='index.img/2.png'] {
    display: none !important;
  }
}
@media (max-width: 768px) {
  header {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    height: auto !important;
  }
  header > img,
  header > button,
  header > nav {
    order: 1 !important;
  }
}
/* ヘッダーのロゴグループ中央寄せ */
header .logo-group {
  display: flex;
  flex-direction: column;
  width: 100%;
  text-align: center;
}

@media (max-width: 768px) {
  header {
    position: relative !important;
  }
 
}
@media (max-width: 768px) {
  header {
    display: block !important;
    position: relative !important;
    height: auto !important;
    width: 100vw !important;
    min-width: 0 !important;
    align-items: unset !important;
    justify-content: unset !important;
  }
  .logo-nico {
    margin-top: 5vh !important;
    display: block !important;
  }
}
@media (max-width: 768px) {
  .logo-nico {
    margin-top: 5vh !important;
    display: block !important;
  }
}
/* ヘッダー左端のロゴ */
.header-logo {
  display: flex;
  align-items: center;
  margin-left: 2vw;
  margin-right: auto;
}

.header-logo .nico-logo {
  font-size: 2vw;
  font-weight: bold;
  color: #2e3a34;
  margin: 0;
  padding: 0;
}

@media (max-width: 768px) {
  .header-logo .nico-logo {
    font-size: 5vw;
  }
}

/* ヘッダー内のトップリンクを横並びに */
.top-links {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2vw;
  margin-left: auto;
  margin-right: 2vw;
}

.top-links a {
  white-space: nowrap;
  text-decoration: none;
}

.top-links a p {
  margin: 0;
}

@media (max-width: 768px) {
  .top-links {
    display: none !important;
  }
}
/* はじめにブロック横並び・スマホ縦並び */
.hajimeni-block {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 3vw;
  margin-top: 1vw;
}
.hajimeni-block .main-img-3 {
  margin-top: 0;
}
.hajimeni-right {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
}
@media (max-width: 768px) {
  .hajimeni-block {
    flex-direction: column;
    align-items: center;
    gap: 2vw;
    margin-top: 2vw;
  }
  .hajimeni-right {
    align-items: center;
    text-align: center;
    width: 100vw;
  }
}
/* 自己紹介文 about-nico スマホ中央寄せ */
.about-nico {
  font-size: 1.6vw;
  line-height: 1.8;
  margin: -8% auto 0 auto;
  text-align: center;
  max-width: 70vw;
  transform: translateX(4%);
}
@media (max-width: 768px) {
  .about-nico {
    margin-left: auto !important;
    margin-right: auto !important;
    margin-top: 4vw !important;
    text-align: center !important;
    font-size: 3.6vw !important;
    width: 92vw;
    display: block;
    transform: translateX(0);
  }
}
/* 3番目のメイン画像 スマホで小さく */
.main-img-3 {
  margin-top: 10%;
}
@media (max-width: 768px) {
  .main-img-3 {
    width: 40vw !important;
    height: auto !important;
    max-width: 120px !important;
    margin-top: 4vw !important;
    display: block;
  }
}
/* はじめにタイトル中央寄せ・スマホ対応 */
.hajimeni-title {
  font-size: 3vw;
  margin-left: 20%;
  margin-top: 10%;
}
@media (max-width: 768px) {
  .hajimeni-title {
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-top: 6vw !important;
    text-align: center !important;
    font-size: 6vw !important;
    width: 100vw;
    display: block !important;
    color: #2e3a34;
  }
}
/* サブキャッチ2行化（スマホで改行） */
.sub-catch-sub {
  display: inline;
}
@media (max-width: 768px) {
  .sub-catch-main {
    display: block;
    margin-bottom: 1vw;
  }
  .sub-catch-sub {
    display: block;
    margin-top: 0;
  }
    header {
        background-color: #ffffff;
        display: flex;
        height: auto;
        width: 100%;
        position: static !important;
        overflow: visible !important;
        z-index: auto !important;
    }
/* サブキャッチコピー中央寄せ */
.sub-catch {
  margin-left: 30%;
  margin-top: -3%;
  font-size: 1vw;
}
@media (max-width: 768px) {
  .sub-catch {
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-top: 2vw !important;
    text-align: center !important;
    font-size: 3.5vw !important;
    /* nav-menu: 通常フローに戻す */
    .nav-menu {
      position: static !important;
      top: auto !important;
      right: auto !important;
      left: auto !important;
      width: auto !important;
      height: auto !important;
      background: #fff;
      transition: none !important;
      z-index: auto !important;
      display: flex;
      justify-content: center;
      align-items: center;
      box-shadow: none !important;
      overflow: visible !important;
    }
    display: block;
  }
}

  }

@media (max-width: 768px) {
  .nav-menu {
    background: #fff;
    width: 100vw;
    max-width: 100vw;
    height: auto;
    box-shadow: none;
    padding: 0;
    z-index: 999;
    display: block;
    .hamburger {
        display: inline-block;
        position: static !important;
        top: auto !important;
        right: auto !important;
        width: 40px;
        height: 40px;
        background: none;
        border: none;
        z-index: auto !important;
        cursor: pointer;
    }
    text-align: center;
    overflow-x: auto;
    white-space: nowrap;
  }
  .nav-menu ul {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2vw;
    padding: 0 2vw;
    margin: 0;
    overflow-x: auto;
    white-space: nowrap;
  }
  .nav-menu ul li {
    width: auto;
    @media (max-width: 768px) {
      .nav-menu {
        position: static !important;
        left: auto !important;
        top: auto !important;
        right: auto !important;
        width: auto !important;
        max-width: 100vw;
        height: auto !important;
        min-height: auto !important;
        padding: 0;
        box-sizing: border-box;
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: auto !important;
        overflow: visible !important;
      }

      .nav-menu ul {
        gap: 6vw;
        width: 100vw;
        height: auto !important;
        min-height: auto !important;
        justify-content: center;
        align-items: center;
      }
      .hamburger {
        position: static !important;
        top: auto !important;
        right: auto !important;
        z-index: auto !important;
      }
    }
    padding: 0;
    display: inline-block;
  }
  .nav-menu ul li a {
    display: inline-block;
    font-size: 5vw;
    color: #333;
    padding: 2vw 4vw;
    text-decoration: none;
    border-bottom: none;
    background: none;
    transition: background 0.2s;
    border-radius: 20px;
  }
  .nav-menu ul li a:active,
  .nav-menu ul li a:hover {
    background: #f5f5f5;
    color: #00796b;
  }
}
@media (max-width: 768px) {
  .catch-copy {
    margin-top: 12vw !important;
    font-size: 6vw !important;
    margin-left: 0 !important;
    text-align: center !important;
  }
}
@media (max-width: 768px) {
  .main-img-pc {
    margin-top: 32px !important;
  }
}
/* PC用画像はスマホで非表示 */
.main-img-pc {
  display: block;
}
.main-img-sp {
  display: none;
}
@media (max-width: 768px) {
  .main-img-pc {
    display: none !important;
  }
  .main-img-sp {
    display: block !important;
    width: 100vw;
    height: auto;
    margin-top: 32px;
    margin-bottom: 0;
  }
}
@media (max-width: 480px) {
  .logo-nico {
    font-size: 32px !important;
    padding-top: 0 !important;
    margin-top: -4vw !important;
  }
}
@media (max-width: 480px) {
  .logo-office {
    font-size: 10px !important;
    margin-top: 5vw;
  }
}
@media (max-width: 480px) {
  .logo-office {
    font-size: 0.9vw;
    margin-top: 5vw;
  }
}
@media (max-width: 480px) {
  .logo-office {
    font-size: 2vw;
  }
}
/* ロゴテキストのグループ */
.logo-group {
  display: flex;
  flex-direction: row;
  gap: 0.5em;
  margin-left: -50%;
  margin-top: 3%;
}
.logo-nico {
  font-size: 4vw;
  margin-left: 20%;
  padding-top: 0.3%;
}
.logo-office {
  padding-top: 5%;
  font-size: 1vw;
  padding-right: 50%;
}

@media (max-width: 768px) {
  .logo-group {
    flex-direction: column;
    gap: 0;
    margin-left: 0;
  }
  .logo-nico {
    font-size: 14vw;
    padding-right: 20%;
    padding-top: 2vw;
  }
  .logo-office {
    font-size: 3vw;
    padding-top: 0.5vw;
    padding-right: 0;
  }
}
html, body {
  overflow-x: hidden !important;
}
/* ハンバーガーメニューはデフォルト非表示 */
.hamburger {
  display: none;
}

/* 768px以下で表示 */
@media (max-width: 768px) {
  .hamburger {
    display: flex !important;
  }
  .nav-menu {
    position: absolute;
    top: 0;
    right: 0;
    width: 60vw;
    max-width: 320px;
    height: 100vh;
    background: #fff;
    /* box-shadow: -2px 0 8px #ccc; */
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 999;
    display: block;
  }
  .nav-menu.open {
    transform: translateX(0);
  }
  header nav.nav-menu ul {
    flex-direction: column;
    padding: 2vw;
  }
  header nav.nav-menu ul li {
    margin: 2vw 0;
  }
}
/* ハンバーガーメニュー */
  .hamburger {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 30px;
  cursor: pointer;
  z-index: 1000;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  background: none;
  border: none;
  padding: 0;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 4px;
  background-color: #ebe1d2;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* メニュー開いた時のアニメーション */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}
header{
    background-color: transparent;
    display: flex;
    height: 7.5%;
    /* overflow: hidden; 削除 */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

header.scrolled {
    background-color: #ffffff !important;
}
body{
    background-color: #6b8f71;
    font-family: 'Zen Maru Gothic', 'ヒラギノ角ゴ ProN', Meiryo, sans-serif;
    color: #2e3a34;
    padding: 0;
    overflow-x: hidden !important;
    position: relative;
}
html, body {
    height: 100%;
    margin: 0;
    overflow-x: hidden !important;
}
/* デスクトップ画面でハンバーガーメニューを非表示 */
@media (min-width: 769px) {
  .hamburger {
    display: none !important;
  }
}
/* ハンバーガーメニュー中央寄せ（PC・スマホ共通） */
.nav-menu {
  position: absolute;
  top: 0;
  right: -100vw;
  width: 100vw;
  height: 100vh;
  background: #fff;
  transition: right 0.3s;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
}
.nav-menu.open {
  right: 0;
}
.nav-menu ul {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2vw;
  margin: 0;
  padding: 0;
  list-style: none;
  width: 100%;
  height: auto;
}

/* PCサイズでの表示 */
@media (min-width: 900px) {
    .nav-menu ul {
        display: flex;
        flex-direction: column;
        gap: 2vw;
    }
    .nav-menu li {
        margin: 0;
    }
    .nav-menu a {
        font-size: 1.2vw;
    }
}
.round-btn {
    display: inline-block;
    padding: 0.0000001% 2em;
    background: #2e3a34;
    color: #fff;
    border-radius: 2em;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: none;
    cursor: pointer;
}
.round-btn:hover {
    background: #005fa3;
    color: #fff;
}
a {
    color: #2e3a34;         /* お好みの色に変更可能 */
    text-decoration: none;
}
.card{
    background-color: #fff;
    border-radius: 1em;
    padding: 2em 1.5em 1.5em 1.5em;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    width: 400px;
    text-align: center;
}

/* スマホ対応レスポンシブ */
@media (max-width: 768px) {
  body {
    font-size: 3.5vw;
  }
  .card,
  .service-card,
  .flow-card {
    width: 90vw !important;
    min-width: unset !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
  }
  /* カードの左右に余白を追加 */
  div[style*="display: flex; gap: 5%"] {
    flex-direction: column !important;
    gap: 8vw !important;
    box-sizing: border-box !important;
  }
  .card {
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 80vw !important;
  }
  div[style*="display: flex; flex-wrap: wrap;"] > div {
    width: 90vw !important;
    min-width: unset !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  div[style*="display: flex; gap: 5%"] {
    flex-direction: column !important;
    gap: 3vw !important;
  }
  div[style*="display: flex; gap: 3%"] {
    flex-direction: column !important;
    gap: 3vw !important;
  }
  header,
  footer {
    font-size: 3vw !important;
    padding: 4vw 0 !important;
  }
  footer div,
  footer p,
  footer a {
    font-size: 3vw !important;
  }
  h1, h2, h3, h4, h5 {
    font-size: 5vw !important;
  }
  p {
    font-size: 3.5vw !important;
  }
}

/* スマホ用ヘッダー調整 */
@media (max-width: 768px) {
  header {
    height: 50px !important;
    min-height: 0 !important;
    padding: 0 2vw !important;
    position: relative;
  }
  header img {
    max-height: 40px !important;
    width: auto !important;
    padding-top: 0 !important;
  }
  header p {
    font-size: 4vw !important;
    top: 10px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    padding: 0 !important;
  }
  .hamburger {
    top: 5px !important;
    right: 5vw !important;
    width: 32px !important;
    height: 32px !important;
  }
  .hamburger span {
    width: 22px !important;
    height: 3px !important;
    margin: 4px auto !important;
  }
}

/* スマホ用ハンバーガーメニュー全画面表示修正 */
@media (max-width: 768px) {
  .nav-menu {
    position: absolute;
    left: 0;
    top: 0;
    width: 100vw;
    max-width: 100vw;
    right: -100vw;
    height: 100vh;
    min-height: 100vh;
    padding: 0;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .nav-back-btn {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 100001;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid #e6e6e6;
    background: rgba(255,255,255,0.95);
    color: #2e3a34;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 10px 24px rgba(0,0,0,0.10);
  }
  .nav-menu.open {
    right: 0;
  }
  .nav-menu ul {
    gap: 6vw;
    width: 100vw;
    height: 100vh;
    min-height: 100vh;
    justify-content: center;
    align-items: center;
  }     
}
@media (max-width: 768px) {
  html, body {
    overflow-x: hidden !important;
    width: 100vw !important;
    position: relative;
  }
}

/* スマホ：ヘッダーを常に上部固定（最終上書き） */
@media (max-width: 768px) {
  header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 99999 !important;
    background: #ffffff !important;
  }
  /* スマホ：ロゴ（nico.）を中央＆少し大きく */
  .header-logo {
    position: absolute !important;
    top: calc(50% + 4px) !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    margin: 0 !important;
    width: auto !important;
    justify-content: center !important;
  }
  .header-logo .nico-logo {
    font-size: clamp(22px, 7.5vw, 32px) !important;
    text-align: center !important;
    line-height: 1 !important;
  }
  /* 固定ヘッダー分だけ本文を下げる */
  body {
    padding-top: 56px !important;
  }
}

/* カスタムカーソル - すべての要素に適用 */
html, body, * {
  cursor: url(index.img/15.png), auto !important;
}
html *, body *, *::before, *::after {
  cursor: url(index.img/15.png), auto !important;
}
a, button, input, textarea, select, .round-btn, .contact-form-btn, .hamburger, .nav-menu, .nav-menu *, .top-links, .top-links * {
  cursor: url(index.img/15.png), pointer !important;
}