/* 基本設定 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Noto Sans JP', 'Yu Gothic UI', 'Meiryo', sans-serif;
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 1.6;
  color: #000;
  background-color: #fff;
}

#app {
  min-height: 130%;
  overflow-y: auto;
}

#nav-toggle {
  display: none;
  text-align: right;
}

.hero {
  background-image: url(media/image/24664829_m.jpg);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
  z-index: -1;
  text-shadow: 1px 1px 2px #ffffff, -1px -1px 2px #ffffff, 1px -1px 2px #ffffff, -1px 1px 2px #ffffff;
}

/** .heroの画像にブラー効果、明度を少し上げる **/
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.5);
}

.about_us {
  background-image: url(media/image/4771045_m.jpg);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
  z-index: -1;
  text-shadow: 1px 1px 2px #ffffff, -1px -1px 2px #ffffff, 1px -1px 2px #ffffff, -1px 1px 2px #ffffff;
}

/** .about_usの画像にブラー効果、明度を少し上げる **/
.about_us::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.5);
}

.works {
  background-image: url(media/image/ipadIMGL1350_TP_V.jpg);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
  z-index: -1;
  text-shadow: 1px 1px 2px #ffffff, -1px -1px 2px #ffffff, 1px -1px 2px #ffffff, -1px 1px 2px #ffffff;
}

.works::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.7);
}

.section-title {
  position: relative;
  text-align: center;
}

/* コンテナ */
.container {
  width: 70%;
  margin: 0 auto;
  padding: 10px 0;
  position: relative;
}

.container-inline {
  width: 70%;
  margin: 0 auto;
  padding: 10px 0;
  display: inline-block;
}

/* ヘッダー */
/* Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  padding: 1rem 0;
  transition: background-color 0.3s ease;
}

.nav {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links {
  position: absolute;
  right: 0;
  display: flex;
  flex-direction: column;
  list-style: none;
  background: linear-gradient(to bottom, #ffffff, #acc8f8);
  box-shadow: 0 8px 20px rgba(33, 150, 243, 0.4);
}

.nav a,
.nav-links a {
  text-decoration: none;
  font-family: 'Noto Sans JP', sans-serif;
  letter-spacing: 0.04em;
  font-weight: 600;
  position: relative;
  transition: color 0.3s ease;
}

.nav a {
  color: #000;
}

.nav-links a{
  margin: auto 0.5em;
  color: #505050;
}

.nav-links li{
  margin: 0;
  position: relative;
  border-bottom: 1px solid #000;
  transition: color 0.3s ease;
  height: 4rem;
  /** テキストの縦方向を中央ぞろえ */
  display: flex;
  align-items: center;
}



.nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #000;
  transition: width 0.3s ease;
}

.nav a:hover::after {
  width: 100%;
}

.logo {
  font-size: 1.8em;
  position: fixed;
  top: 0.5em;
  left: 20%;
  z-index: 10;
}

header ul {
  right: 20%;
  display: inline-block;
  color: black;
  float: right;
  list-style: none;
  z-index: 10;
}

header ul li {
  display: inline-block;
  margin-left: 20px;
}

header ul li a {
  text-decoration: none;
  font-weight: 700;
}

section {
  margin: 2.5% auto;
}


.top-button {
  background: none;
  border: none;
  cursor: pointer;
  position: fixed;
  top: 80%;
  right: 15%;
}

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 700, 'GRAD' 0, 'opsz' 48;
}


.company-map {
  width: 60%;
  position: relative;
  padding-top: 56.25%;
  margin: 0 auto;
}

.company-map iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50%;
}

.contact {
  text-align: center;
}

.custom-btn {
  display: inline-block;
  padding: 16px 32px;
  font-size: 1.1rem;
  color: #fff;
  background: linear-gradient(145deg, #2196f3, #21cbf3);
  border: none;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(33, 150, 243, 0.4);
  transition: all 0.3s ease;
  cursor: pointer;
  font-family: 'Noto Sans JP', sans-serif;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.custom-btn:hover {
  background: linear-gradient(145deg, #1976d2, #1ab5e6);
  box-shadow: 0 10px 25px rgba(33, 150, 243, 0.5);
  transform: translateY(-2px) scale(1.02);
}

.custom-btn:active {
  transform: scale(0.98);
  box-shadow: 0 4px 10px rgba(33, 150, 243, 0.3);
}


/* セクション */
section {
  padding: 40px 0;
}

h2 {
  font-size: 2em;
  margin-bottom: 20px;
}

form label {
  display: block;
  margin-bottom: 5px;
}

form input,
form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
}

form button {
  background-color: #007bff;
  color: white;
  padding: 10px 20px;
  border: none;
  cursor: pointer;
}

form button:hover {
  background-color: #0056b3;
}

form button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

/* フッター */
footer {
  background: rgba(255, 255, 255, 0.98);
  text-align: center;
  padding: 20px;
  font-weight: 700;
}




/* Grid Layout */
.grid-wrapper {
  margin: 0 auto;
  padding: 4rem 0;
}

.grid-container {
  display: grid;
  gap: 2rem;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
}

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

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

.grid-columns4 {
  grid-template-columns: repeat(2, 2fr);
}

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

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

/* Full-screen sections */
.fullscreen-section {
  min-height: 100vh;
  width: 100%;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fullscreen-section img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 2rem;
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}


/* Content sections */
.content-section {
  padding: 8rem 0;
}

.content-section:last-of-type {
  padding: 0;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 4rem;
}

.content-section .access {
  width: 100%;
}

.company-info {
  width: 60%;
  margin: 5% auto;
  border-top: #1c3656 1px solid;
}

.company-info th {
  width: 20%;
  min-height: 4em;
  text-align: left;
  border-bottom: #1c3656 1px solid;
}

.company-info td {
  width: 60%;
  min-height: 4em;
  text-align: left;
  border-bottom: #1c3656 1px solid;
}

.feature-item {
  margin: 8rem 0;
  padding: 8rem 0;
}


/* Media queries */
@media (max-width: 940px) {
  .grid-container {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0 1rem;
  }
  
  .nav {
    display: none;
  }
  #nav-toggle {
    display: block;
  }
  .nav-links {
    overflow: hidden;
    transition: max-height 0.5s ease-out;
  }

  .slide-down {
      max-height: 500px; /* Adjust based on content */
  }
  .slide-up {
      max-height: 0;
  }
}

@media (max-width: 768px) {
  .container {
    width: 90%;
    padding: 1em 0;
  }
  .section-title {
    font-size: 1.5em;
  }
  .feature-item div {
    font-size: 0.95rem;
    line-height: 1.8;
    text-align: left;
    padding: 0 1em;
  }
  .company-info th,
  .company-info td {
    font-size: 0.9rem;
    word-break: break-word;
  }
  .custom-btn {
    font-size: 1rem;
    padding: 12px 24px;
  }
  .company-map iframe {
    height: 300px;
  }
}
