
body {
  display: flex;
  flex-direction: column;
  color: #fff;
  line-height: 1.7;
  height: 100%;
  margin: 0;
}

 main {
  flex: 1;
  padding: 10px;
}

a {
  text-decoration: none;
  color: inherit;
}

/* headersrash */

  .header__bg {
    background-image: url("");
    transform: skewY(-6deg);
    transform-origin: top left;
    box-sizing: border-box;
	width: 100%;
	/* height: 1100px; */
	fill: #80deea;
  }

  .header__bg2 {
    background-color: aqua;
    transform: skewY(-6deg);
    transform-origin: top left;
    box-sizing: border-box;
	width: 100%;
	height: 100px;
  }
  .header__bg2 h2 {
    width: 65%;
    margin: 0 auto;
}

/* srash */

h4 {
  padding: 10px 0 0 0;
  font: 44px "Arial";
  text-align: center;
  letter-spacing:8px;
}

header h1, header h2 {
  position: relative;
  color: white;
}

.font-accent {
   font-size: 1.5rem;
  font-family:  'HanziPen SC';
  font-weight: 1600;
  letter-spacing: 0.05em;
text-align: center;
}


/* srash */

/* ===== Loading ===== */
#loading {
  position: fixed;
  inset: 0;
  background: #111;
  z-index: 9999;

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

  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#loading.is-hidden {
  opacity: 0;
  visibility: hidden;
}

/* 中央配置（既存 splash-inner を流用） */
#loading .splash-inner {
  text-align: center;
  color: #fff;
}

#loading h1 {
  font-size: 1.5rem;
  letter-spacing: 0.3em;
  font-weight: 500;
}

/* srash */

.f_container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 24px;
}

.services {
  padding: 30px 0px;
  background: none;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 48px;
}

/* Grid */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

/* Card */
.service-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0,0,0,0.06);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.service-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.service-card h3 {
  font-size: 1.2rem;
  margin: 20px;
  text-align: center;
}

.service-card p {
  margin: 0 20px 28px;
  color: #555;
 	text-align: center;
  line-height: 1.7;
}

/* Tablet */
@media (max-width: 1024px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 640px) {
  .service-grid {
    grid-template-columns: 1fr;
  }
}


section {
  padding: 50px 0;
}

@media (max-width: 767px){
section {
  padding: 0px 0;
  }
}
/* ===== Splash ===== */

#page {
  opacity: 0;
  transition: opacity 0.8s ease;
}

#page.is-visible {
  opacity: 1;
}

#splash {
  position: fixed;
  inset: 0;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;

  transition: opacity 0.8s ease, visibility 0.8s ease;
}

#splash.is-hidden {
  opacity: 0;
  visibility: hidden;
}

/* ロゴ */
.splash-inner img {
  animation: logoZoom 1.5s ease forwards;
}

@keyframes logoZoom {
  from {
    transform: scale(1.05);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}



/* ===== Page Hero ===== */

.page-hero {
  background: #fff;
  padding: 120px 24px 80px;
  text-align: center;
}

.page-hero h1 {
  font-size: 2.2rem;
}

/* ===== Table ===== */
.company-table {
  width: 100%;
  border-collapse: collapse;
}

.company-table th,
.company-table td {
  border-bottom: 1px solid #ddd;
  padding: 16px;
  text-align: left;
}

.company-table th {
  width: 30%;
  background: #fafafa;
}

/* ===== Company ===== */
.company {
  padding: 80px 0;
}

.company-list {
  max-width: 800px;
  margin: 0 auto;
}

.company-list > div {
  display: grid;
  grid-template-columns: 180px 1fr;
  padding: 20px 0;
  border-bottom: 1px solid #eee;
}

.company-list dt {
  font-weight: 600;
  color: #333;
}

.company-list dd {
  margin: 0;
  color: #555;
  line-height: 1.7;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .company-list > div {
    grid-template-columns: 1fr;
  }

  .company-list dt {
    margin-bottom: 8px;
  }
}
/* ===== Cards ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

/* ===== Typewriter ===== */

.card {
  background: #fff;
  border: 1px solid #eee;
  padding: 24px;
  border-radius: 6px;
}
	  
	  /* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  background: #fff;
  z-index: 1000;
  border-bottom: 1px solid #eee;
}

.header-inner {
  max-width: 1600px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}


/* ===== Typewriter ===== */


.typewriter {
  position: relative;
  white-space: nowrap;
　border-right: 2px solid #fff; /* カーソル */
}

.typewriter::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1em;
  background: #fff;
  margin-left: 6px;
  animation: blink 1s infinite;
  vertical-align: bottom;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* ===== Typewriter ===== */


.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: bold;
  color: var(--primary);
}

.logo img {
  height: 36px;
  width: auto;
}

.nav {
  display: flex;
  gap: 24px;
}

.nav a {
  font-weight: 500;
	
}


/* =====slant ===== */

.fullwidth {
  width: 100%;
  height: 30vh;
  background-size: cover;
	background-color: aqua;
  background-position: center;
  background-repeat: no-repeat;
}
.fullwidth-image-img img {
  width: 100%;
  height: 30vh;
	
  object-fit: cover;
  display: block;
}


/* ===== Hamburger ===== */

.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background-color: #000;
}

/* ===== Two Column Layout ===== */
.two-column .container {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap; /* モバイル対応 */
}

.two-column .column {
  flex: 1;
  min-width: 300px;
}

/* 左側画像 */
.about-column img {
  width: 50%;
  border-radius: 8px;
  display: block;
  object-fit: cover;
}

/* 左側画像 */
.image-column img {
  width: 100%;
  border-radius: 8px;
  display: block;
  object-fit: cover;
}

/* 右側テキスト */
.text-column h1 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 16px;
}

.text-column h2 {
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 12px;
	text-align: left;
}

.text-column p {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.two-column.geo-bg {
  position: relative;
  overflow: hidden;
  background: #f7f9fb;
}

.two-column.geo-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    rgba(0,80,160,0.15) 1px,
    transparent 1px
  );
  background-size: 40px 40px;
  opacity: 0.3;
  z-index: 0;
}


/* ===== Portfolio ===== */

.portfolio {
  padding: 50px 0;
  background: #fff;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 12px;
}

.section-lead {
  text-align: center;
  color: #666;
  margin-bottom: 48px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.portfolio-item {
  background: #fff;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.portfolio-item:hover {
  transform: translateY(-6px);
}

.portfolio-item img {
  width: 100%;
  display: block;
}

.portfolio-text {
  padding: 20px;
}

.portfolio-text h3 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.portfolio-text span {
  font-size: 0.85rem;
  color: #888;
}

/* CTA */
.portfolio-more {
  text-align: center;
  margin-top: 48px;
}

.portfolio-item {
  opacity: 0;
  transform: translateY(20px);
}

.portfolio-item.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: 0.6s ease;
}


/* ===== Responsive ===== */
@media (max-width: 768px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}


/* ボタン */
.text-column .btn-primary {
  padding: 12px 24px;
  background: var(--primary);
  color: #fff;
  border-radius: 4px;
  display: inline-block;
  font-weight: 500;
}

/* ===== Mobile ===== */
@media (max-width: 768px) {
  .two-column .container {
    flex-direction: column;
  }

  .image-column img {
    max-height: 300px; /* 任意で調整 */
  }
}


/* ===== Mobile ===== */
@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: 64px;
    right: -100%;
    width: 100%;
    height: calc(100vh - 64px);
    background: #fff;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    transition: 0.3s;
  }

  .nav.active {
    right: 0;
  }

  .hamburger {
    display: flex;
  }
}

/* ===== SVG ===== */
.handwriting-svg {
  width: 320px;
}

.handwriting-path {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: drawLine 2.2s ease forwards;
  animation-delay: 0.6s;
}

/* 書くアニメーション */
@keyframes drawLine {
  to {
    stroke-dashoffset: 0;
  }
}

/* スマホ */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2rem;
  }

  .handwriting-svg {
    width: 200px;
  }
}

.p1 { animation-delay: 0.6s; }
.p2 { animation-delay: 0.9s; }
.p3 { animation-delay: 1.2s; }


.hero {
  margin-top: 64px;
 background-color: #00cccc;
}
    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
      font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
    }

    body {
      color: var(--text);
      line-height: 1.7;
    }

    a {
      text-decoration: none;
      color: inherit;
    }

    .container {
      max-width: 1100px;
      margin: 0 auto;
    }

    h2 {
      font-size: 2rem;
      margin-bottom: 24px;
	margin-top: 20px;
      text-align: center;
      color: var(--primary);
    }

@media (max-width: 767px){
   h2 {
	   text-align: center;
    font-weight: 400;
	   font-size: 1.5rem;
	   color: lightslategray;
}
	   h3 {
    font-weight: 400;
	   font-size: 1.5rem;
	   color: lightslategray;
}

}

@media (max-width: 767px){
  .text-column  h1 {
		  text-align: center;
    font-weight: 500;
	   font-size: 1.5rem;
	   color: lightslategray;
}
  .text-column  h2 {
	  text-align: center;
    font-weight: 500;
	   font-size: 1.5rem;
	   color: lightslategray;
}
}

    /* ===== Hero (Video) ===== */

    .hero {
      position: relative;
      height: 59vh;
      overflow: hidden;
      color: #fff;
	 background-color: #00cccc;
    }

    .hero video {
      position: absolute;
      top: 50%;
      left: 50%;
      min-width: 100%;
      min-height: 70%;
      transform: translate(-50%, -50%);
      object-fit: cover;
      z-index: -2;
    }

    .hero::after {
      content: "";
      position: absolute;
      inset: 0;
      background: rgba(11, 60, 93, 0.6);
      z-index: -1;
    }

    .hero-content {
      height: 100%;
      display: flex;
      align-items: center;
    }

    .hero-inner {
      max-width: 100%;
    }

    .hero h1 {
      font-size: clamp(2rem, 4vw, 3.5rem);
      margin-bottom: 16px;
	  transform: skewY(6deg);
    }

    .hero p {
      margin-bottom: 32px;
	  transform: skewY(6deg);
    }

    .btn {
      display: inline-block;
      padding: 14px 28px;
      border-radius: 4px;
      font-weight: bold;
      transition: 0.3s;
    }

    .btn-primary {
      background: var(--accent);
      color: #fff;
    }

    .btn-primary:hover {
      opacity: 0.85;
    }

    /* ===== Service ===== */

    .service {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
      gap: 24px;
    }

    .service {
      padding: 24px;
      border: 1px solid #eee;
      border-radius: 8px;
      text-align: center;
    }

    /* ===== Contact ===== */
    form {
      max-width: 600px;
      margin: 0 auto;
    }

    label {
      display: block;
      margin-bottom: 8px;
      font-weight: bold;
    }

    input, textarea {
      width: 100%;
      padding: 12px;
      margin-bottom: 24px;
      border-radius: 4px;
      border: 1px solid #ccc;
    }

    button {
      width: 100%;
      padding: 14px;
      background: var(--primary);
      color: #fff;
      border: none;
      border-radius: 4px;
      font-size: 1rem;
      cursor: pointer;
    }

    /* ===== Map ===== */
    .map iframe {
      width: 100%;
      height: 400px;
      border: none;
    }

    /* ===== Footer ===== */
    footer {
      background: #00cccc;
      color: #fff;
      text-align: center;
      padding: 24px;
      padding: 24px 16px;
      font-size: 0.9rem;}


    /* ===== Responsive ===== */
    @media (max-width: 768px) {
      .hero-inner {
       padding: 0 16px;
      }
	   .hero {
       position: relative;
    height: 50vh;
    overflow: hidden;
    color: #fff;
    background-color: #00cccc;
      }
    }
	  
	  /* ===== Contact + Map ===== */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: stretch;
}

.contact-form,
.contact-map {
  background: #fafafa;
  padding: 24px;
  border-radius: 8px;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  min-height: 400px;
  border: none;
  border-radius: 4px;
}

/* ===== Mobile ===== */
@media (max-width: 768px) {
  .contact-wrap {
    grid-template-columns: 1fr;
  }

  .contact-map iframe {
    min-height: 300px;
  }
}

/* ===== Mobile ===== */
@media (max-width: 768px) {
  .nav {
    display: none; /* デフォルトは非表示 */
    position: fixed;
    top: 64px;
    right: -100%;
    width: 100%;
    height: calc(100vh - 64px);
    background: #fff;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    transition: 0.3s;
  }

  .nav.active {
    right: 0;
    display: flex;
  }

  .hamburger {
    display: flex;
  }

  /* ロゴの会社名を非表示に */
  .logo span {
    display: none;
  }
}

/* ===== Google Map Grayscale ===== */
.contact-map iframe {
  filter: grayscale(100%) brightness(0.95) contrast(1.1);
}
	  .popup-inner {
  transform: translateY(40px);
  transition: 0.3s ease;
}

.scroll-popup.active .popup-inner {
  transform: translateY(0);
}