
@charset "UTF-8";

/*=============================
 共通スタイル
=============================*/
html {
  font-size: 100%;
}

body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  font-size: 20px;
}

*, *::before, *::after {
    box-sizing: border-box;
}

.page-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  position: relative;
  background-image: url(images/header-bg.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.company-name a {
  font-family: 'KouzanBrush', serif;
  font-size: 4rem;
  color: whitesmoke;
  text-decoration: none;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
}

.pc-nav {
  display: block;
}

.pc-nav .main-nav {
  display: flex;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 30px;
}

.main-nav a {
  color: white;
  text-decoration: none;
  font-size: 1.25rem;
  text-transform: uppercase;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
}

/* ハンバーガー共通スタイル */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  width: 30px;
  height: 22px;
  justify-content: center;
  align-items: center;
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 30px;
  height: 3px;
  background-color: white; /* 通常時の色 */
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* 変形時 */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
  background-color: red; /* 変形時の色（例） */
}

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

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
  background-color: red;
}


/* オーバーレイメニュー */
.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.95);
  z-index: 1000;
  justify-content: flex-start;
  align-items: flex-start;
  text-align: left;
  padding: 40px 20px;
  box-sizing: border-box;
}

.overlay.active {
  display: flex;
}

.overlay .main-nav-wrapper {
  background: rgb(226, 199, 199);
  padding: 10px 20px;
  max-width: 240px;
  width: 100%;
  box-shadow: 0 0 8px rgba(0,0,0,0.2);
  display: flex;
  align-items: stretch;
  box-sizing: border-box;
  flex-direction: column;
  gap: 20px;
}

.overlay .main-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
  align-items: stretch;
}

.overlay .main-nav a {
  font-size: 1.2rem;
  color: #333;
  text-decoration: none;
  word-break: break-word;
  white-space: normal;
  text-align: left;
  padding: 10px 0;
  width: 100%;
}


/*ホーム用*/
.main-slide,
.about-slide {
  display: none;
  position: relative;
  width: 100%;
}

.main-slide.active,
.about-slide.active {
  display: block;
  /*animation: fade 1s ease-in-out;*/
}

.hero-slide {
  display: none;
  position: relative;
  width: 100%;
}

.hero-slide.active {
  display: block;
  animation: slideInRight 1s ease forwards;
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.hero-text {
  font-size: clamp(1.2rem, 3vw, 2rem);
  margin: 0;
  line-height: 1.5;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
}

/* ナビボタン */
.slider-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  padding: 0 20px;
  box-sizing: border-box;
}

.slider-nav button {
  background: rgba(0,0,0,0.5);
  color: white;
  border: none;
  padding: 12px 18px;
  cursor: pointer;
  font-size: 24px;
  border-radius: 50%;
  transition: background 0.3s;
}

.slider-nav button:hover {
  background: rgba(0,0,0,0.8);
}

/* シースルー背景 */
.hero-overlay {
  position: absolute;
  top: 5%;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  height: 30%; /* 高さ1/3程度 */
  background-color: rgba(105, 143, 87, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  text-align: center;
  box-sizing: border-box;
  padding: 10px;
}

/* テキスト */
.hero-text {
  color: white;
  font-size: clamp(1rem, 2.5vw, 1.8rem);
  font-weight: 600;
  line-height: 1.5;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
  margin: 0;
  word-break: keep-all;
}

.hero-slide img {
  width: 100%;
  height: auto;
  object-fit: cover; /* PCなど大きな画面では全体カバー */
}

.company-title {
  text-align: center;
  margin: 40px 0;
}

.company-title h1 {
  font-size: clamp(1.5rem, 4vw, 2.5rem); /* 画面サイズに応じて可変 */
  margin: 0;
  color: #2e2e2e;
  font-weight: 700;
  letter-spacing: 0.05em;
}

#company-about {
  background-color: #f9f9f9;
  padding: 40px 20px;
}

.about-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.about-text {
  flex: 1 1 50%;
  min-width: 300px;
}

.about-text h2 {
  font-size: 1.2rem;
  line-height: 2;
  color: #444;
  letter-spacing: 0.05em;
}

.about-slideshow {
  flex: 1 1 45%;
  min-width: 300px;
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.about-slide {
  display: none;
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 00;
}

.about-slide.active {
  display: block;
  animation: slideInRight 1s ease forwards;
}

.about-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* フェードアニメーション */

/*会社概要*/
.text {
  width: 90%;
  max-width: 800px;
  margin: 40px auto;
  border: 1px solid #ccc;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  border-radius: 8px;
  overflow: hidden;
  background-color: #fff;
}

.company-info {
  background-color: #6bb7a9; /* おしゃれなグリーン系 */
  color: #fff;
  font-size: 1.5rem;
  font-weight: bold;
  text-align: center;
  padding: 16px;
  border-bottom: 1px solid #ccc;
}

.text table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
}

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

.text th {
  background-color: #f5f5f5;
  font-weight: bold;
}

/*業務内容*/
.work-block {
  padding: 30px 20px;
  background-color: #c0dcc0; /* 柔らかい緑 */
  margin: 40px auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  max-width: 1000px;
}

.work-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}

.work-content h3 {
  font-size: 1.8rem;
  color: #2e2e2e;
}

.work-content p {
  font-size: 1.1rem;
  color: #333;
  line-height: 1.8;
  max-width: 800px;
}

.work-content a {
  color: #4b69ba;
  text-decoration: underline;
}

.work-images {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.work-images img {
  width: 300px;
  height: 300px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* パートナーリンク */
.partner {
    background-color: rgb(222, 197, 197);
}

.partner-title {
  text-align: center;
  font-size: 1rem;
  margin-top: 20px;
  margin-bottom: 10px;
  color: black;
}

.partner-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.partner-links a img {
  max-width: 100%;
  height: auto;
  transition: transform 0.3s ease;
}

.partner-links a img:hover {
  transform: scale(1.05);
}

/* フッター */
.footer {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  background-image: url(images/header-bg.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.footer p {
  color: white;
}

/* お問い合わせフォーム */
.wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #f5f5f5;
  padding: 40px 20px;
}

.page-title {
  text-align: center;
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 40px;
}

form {
  width: 100%;
  max-width: 600px;
  background: white;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 0 12px rgba(0,0,0,0.12);
  text-align: center;
}

label {
  display: block;
  font-size: 22px;
  margin-bottom: 12px;
  font-weight: bold;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 18px;
  font-size: 20px;
  margin-bottom: 25px;
  border-radius: 8px;
  border: 1px solid #ccc;
  box-sizing: border-box;
}

textarea {
  height: 180px;
  resize: vertical;
}

.button {
  padding: 18px 50px;
  font-size: 22px;
  background-color: brown;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.button:hover {
  background-color: #a28080;
  color: black;
}

.location {
  display: flex;
  justify-content: center;
  margin: 50px auto;
  max-width: 1000px;
  padding: 0 20px;
}

.location-info {
  flex: 1;
  font-size: 18px;
  line-height: 1.8;
}

.location-map {
  flex: none;
  margin: 0 20px;
}

.no-scroll {
    overflow: hidden;
    height: 100px;
  }

@font-face {
    font-family: 'KouzanBrush';
    src: url(fonts/衡山毛筆フォント.ttf) format('truetype');
}



/*=============================
 スマホ用スタイル（768px以下）
=============================*/
@media (max-width: 768px) {
  .pc-nav {
    display: none;
  }

  .hamburger {
    display: flex;
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1001;
  }

  .page-header {
    justify-content: space-between;
  }

  .main-nav a {
    color: black;
  }

  .company-name a {
    font-size: 2rem;
  }

  .hero-slide img {
    height: auto; /* スマホでは高さを抑える */
    object-fit: contain; /* 全体を収めて表示（余白あり） */
  }

  .hero-overlay {
    display: none;
    height: auto;
    padding: 8px;
    top: 10%;
  }

  .hero-text {
    display: none;
    font-size: 1rem;
    line-height: 1.4;
  }

  .slider-nav button {
    padding: 10px 14px;
    font-size: 20px;
  }

  .company-title {
    margin: 30px 10px;
  }

  .company-title h1 {
    font-size: 1.6rem;
    line-height: 1.4;
  }

  .about-container {
    flex-direction: column;
    text-align: center;
  }

  .about-text, .about-slideshow {
    flex: 1 1 100%;
  }

  .about-slideshow {
    display: block; /* 明示的に表示 */
    margin-top: 20px;
    text-align: center;
  }

  .about-slideshow img {
    width: 100%;
    height: auto;
  }

  .about-text h1 {
    font-size: 1.6rem;
  }

  .about-text h2 {
    font-size: 1rem;
    line-height: 1.8;
  }

  .home {
    flex-direction: column;
    gap: 20px;
    text-align: center;
    padding: 20px 10px;
  }

  .home h2 {
    font-size: 1rem;
    max-width: 100%;
    min-width: auto;
    width: 100%;
    box-sizing: border-box;
    padding: 0 10px;
    text-align: center;
  }

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

  #company-about {
    padding: 0 10px;
  }

  #company-about h2 {
    font-size: 1.4rem;
  }

  #company-about h3 {
    font-size: 1rem;
  }

  .about-images {
    flex-direction: column;
    align-items: center;
  }

  .about-images img {
    width: 90%; /* スマホ画面にフィット */
  }

   .work-images img {
    width: 100%;
    height: auto;
  }

  form {
    padding: 20px;
  }

  label {
    font-size: 18px;
  }

  input[type="text"],
  input[type="email"],
  textarea {
    font-size: 16px;
    padding: 12px;
  }

  .button {
    width: 100%;
    padding: 14px;
    font-size: 18px;
  }

  .location {
    flex-direction: column;
    gap: 30px;
  }

  .location-info {
    font-size: 16px;
    text-align: center;
  }

  .location-map iframe {
    width: 100%;
    height: 300px;
  }

  .partner-links {
    flex-direction: column;
    gap: 20px;
  }

}
