body {
  font-family: "Noto Sans JP", "Meiryo", sans-serif;
  background: #f8fafd;
  margin: 0;
  color: #222;
}

.hero-header-overlay {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 10;
  width: 100vw;
}
.hero-header-inner {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4vw;
  height: 70px;
  background: rgba(255,255,255,0.86);
  border-radius: 0 0 22px 22px;
  box-shadow: 0 6px 28px #0b223330;
}
.header-logo {
  height: 52px;
  width: auto;
  margin: 0 18px 0 0;
  vertical-align: middle;
}
.main-nav ul {
  display: flex;
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 0;
  height: 70px;
  align-items: center;
}
.main-nav a {
  color: #17446d;
  font-weight: bold;
  text-decoration: none;
  font-size: 1.08em;
  letter-spacing: 0.07em;
  transition: color .14s;
  padding: 9px 6px;
  border-radius: 8px;
}
.main-nav a:hover, .main-nav .current {
  color: #27c4fb;
  background: #17446d0b;
}

/* --- ヒーロースライダー --- */
.hero-slider {
  position: relative;
  width: 100vw;
  height: 50vw;
  min-height: 330px;
  max-height: 550px;
  overflow: hidden;
  background: #dbefff;
}
.slider-images {
  width: 100vw;
  height: 100%;
  position: absolute;
  left: 0; top: 0;
}
.slider-img {
  position: absolute;
  left: 0; top: 0;
  width: 100vw;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s cubic-bezier(.77,0,.18,1);
  z-index: 1;
}
.slider-img.active {
  opacity: 1;
  z-index: 2;
}
.hero-overlay {
  position: absolute;
  left: 0; right: 0; top: 0; bottom: 0;
  background: linear-gradient(120deg,rgba(32,79,122,0.13) 0%,rgba(28,28,56,0.21) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}
.hero-catch {
  color: #fff;
  font-size: clamp(1.4rem, 4vw, 2.6rem);
  font-weight: bold;
  background: rgba(32,79,122,0.34);
  padding: 38px 8vw;
  border-radius: 30px;
  text-align: center;
  box-shadow: 0 8px 40px #17446d44;
  line-height: 1.25;
  letter-spacing: 0.07em;
}
.hero-message {
  margin: 36px auto 14px auto;
  font-size: 1.11em;
  text-align: center;
  line-height: 1.7;
  color: #2079c4;
  font-weight: bold;
  letter-spacing: 0.03em;
}

/* --- インスタギャラリー（2倍サイズ＆中央寄せ） --- */
.insta-gallery-row.center {
  display: flex;
  justify-content: center;
  margin-bottom: 32px;
}
.insta-thumbs-lg {
  display: flex;
  align-items: flex-end;
  position: relative;
  height: 144px;
}
.insta-thumbs-lg a {
  display: block;
  margin-right: 28px;
  transition: transform .16s;
}
.insta-thumbs-lg img {
  width: 128px;
  height: 128px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 2px 12px #2079c433;
  background: #fff;
  transition: box-shadow 0.16s;
}
.insta-thumbs-lg a:hover img {
  transform: scale(1.08);
  box-shadow: 0 8px 32px #2188e633;
}
.insta-rotated img {
  transform: rotate(-20deg);
  margin-right: 30px;
}
.insta-gradient-lg {
  position: absolute;
  right: 0;
  top: 0; bottom: 0;
  width: 56px;
  background: linear-gradient(to right, rgba(255,255,255,0.01) 0%, #f8fafd 98%);
  pointer-events: none;
  border-radius: 0 18px 18px 0;
}

/* --- 業務カード（元の大きいver.） --- */
.home-section { margin-top: 24px; }
.service-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 34px;
  margin-top: 24px;
  margin-bottom: 30px;
}
.card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 12px #0001;
  padding: 22px 14px 22px 14px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.card img {
  width: 98%;
  height: 120px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 14px;
  box-shadow: 0 2px 8px #2079c422;
}
.card h3 {
  margin-top: 8px;
  margin-bottom: 9px;
  font-size: 1.17em;
  color: #125eae;
}
.card p {
  font-size: 1em;
  color: #353c46;
  min-height: 4.4em;
}
.readmore {
  display: inline-block;
  margin-top: 10px;
  background: #2188e6;
  color: #fff;
  font-weight: bold;
  padding: 7px 24px;
  border-radius: 22px;
  text-decoration: none;
  font-size: 1em;
  letter-spacing: 0.03em;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px #2188e655;
}
.readmore:hover {
  background: #125eae;
  box-shadow: 0 4px 20px #2188e655;
}

/* --- 右下固定ボタン --- */
.fixed-contact-btn {
  position: fixed;
  right: 16px;
  bottom: 22px;
  background: linear-gradient(92deg,#2188e6,#27c4fb 88%);
  color: #fff;
  font-size: 1.13em;
  font-weight: bold;
  padding: 14px 30px;
  border-radius: 32px;
  box-shadow: 0 4px 24px #1d8fc944;
  text-align: center;
  z-index: 9999;
  text-decoration: none;
  line-height: 1.4;
  letter-spacing: 0.03em;
  transition: background 0.18s, transform 0.18s;
  cursor: pointer;
}
.fixed-contact-btn:hover {
  background: linear-gradient(92deg,#1a66b8,#27c4fb 88%);
  transform: scale(1.06);
}

footer {
  padding: 18px 0;
  text-align: center;
  color: #666;
  font-size: 0.97em;
  background: none;
  margin-top: 50px;
  border: none;
}

/* --- レスポンシブ --- */
@media (max-width: 900px) {
  .hero-header-inner { height: 40px;}
  .header-logo { height: 26px;}
  .main-nav ul { gap: 10px; height: 40px;}
  .hero-slider { min-height: 180px; max-height: 300px;}
  .insta-thumbs-lg img { width: 56px; height: 56px;}
  .insta-thumbs-lg { height: 60px;}
  .card img { height: 76px;}
}
@media (max-width: 600px) {
  .hero-header-inner { height: 34px; }
  .header-logo { height: 16px; }
  .main-nav ul { gap: 8px; height: 32px;}
  .hero-catch { padding: 8px 2vw; font-size: 1.1em;}
  .insta-thumbs-lg img { width: 38px; height: 38px;}
  .insta-thumbs-lg { height: 38px;}
  .fixed-contact-btn { font-size: 0.99em; padding: 8px 14px;}
}

/* ヒーローエリア（高さ1.5倍に） */
.hero-slider.large {
  height: 75vw;      /* 元が50vwだったので1.5倍 */
  min-height: 495px; /* 元330px*1.5 */
  max-height: 825px; /* 元550px*1.5 */
}

/* insta4だけ大きく（左右スペース調整） */
.insta-thumbs-lg .insta-big img {
  width: 256px !important;   /* 通常128px→256pxで2倍（要調整OK） */
  height: 128px !important;  /* 高さはそのまま */
  object-fit: contain;
  margin-right: 38px;
}
.insta-thumbs-lg .insta-big {
  margin-right: 20px;
  z-index: 1;
}

.insta-rotated img {
  transform: rotate(-20deg);
  margin-right: 30px;
}

/* 通常のインスタサムネイル */
.insta-thumbs-lg img:not(.insta-big img) {
  width: 128px;
  height: 128px;
}

/* スマホ時レスポンシブ */
@media (max-width: 900px) {
  .hero-slider.large { min-height: 270px; max-height: 480px; }
  .insta-thumbs-lg .insta-big img { width: 130px !important; height: 64px !important;}
  .insta-thumbs-lg img:not(.insta-big img) { width: 64px; height: 64px;}
}
.service-hero {
  margin-top: 80px;
}
.pdf-link {
  display: inline-block;
  padding: 14px 28px;
  background: #2D8F45;
  color: #fff;
  font-weight: bold;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.1rem;
  margin-top: 1em;
  transition: background 0.2s;
}
.pdf-link:hover {
  background: #216831;
}
.insta-thumbs-lg-scroll {
  display: flex;
  overflow-x: auto;
  gap: 16px;
  padding: 8px 0 12px 0;
  scrollbar-width: thin;
}
.insta-thumbs-lg-scroll a {
  flex: 0 0 auto;
  display: block;
  width: 120px;
  height: 120px;
}
.insta-thumbs-lg-scroll img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 2px 8px #0002;
}

/* スマホ調整 */
@media (max-width: 600px) {
  .insta-thumbs-lg-scroll a {
    width: 80px; height: 80px;
  }
}

/* 文字が画像に被らないように下にマージン */
.insta-gallery-row {
  margin-bottom: 36px;
}
