@charset "utf-8";
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: #f8f8ff;
  color: #444;
  line-height: 1.6;
}

header {
  background-color: #fafafa;
  border-bottom: 10px solid #ddd;
  border-image: linear-gradient(to right, #f8f8ff 20%, #fafafa 60%, #cccccc 100%);
  border-image-slice: 1;
  padding: 1em 2em 1em 3em;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  color: #0077aa;

  flex-direction: column;
  line-height: 1.4;
}

.logo .company-name {
  text-decoration: none;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.15);
  font-weight: bold;
  font-size: 2em;
}

.logo .address {
  font-size: 0.8em;
  color: #555;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.5em;
}

nav a {
  text-decoration: none;
  color: #6699cc;
  text-shadow: 1px 1px 1px #33669944;
  font-weight: 500;
  transition: color 0.3s;
}

nav a:hover {
  color: #004466;
}

.hero {
  padding: 1em 1em;
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5em;
  color: #003344;
}

.hero h2 {
  font-size: 1.6rem;
  color: #006699;
  padding: 0.5em 0.5em 0.5em 0.5em;
  text-align: center;
  margin-bottom: 0em;
}

.hero p {
  font-size: 1rem;
  color: #555;
}

.hero img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 2em auto;
}

.section {
  padding: 2em 1em;
  max-width: 960px;
  margin: 0 auto;
}

.section h2 {
  font-size: 1.6rem;
  color: #006699;
  margin-bottom: 0.5em;
}

.section p {
  font-size: 1.1rem;
  color: #333;
}

.section2 {
  padding: 1em;
  max-width: 960px;
  margin: 0 auto;
}

.section2 h2 {
  font-size: 1.6rem;
  color: #006699;
  padding: 0.5em 0.5em 0.5em 0.5em;
  text-align: center;
  margin-bottom: 0em;
}

.section2 p {
  font-size: 1rem;
  color: #444;
  padding: 1em 0.5em 0em 0.5em;
  text-align: center;
  margin-bottom: 0em;
}


  /* cards */

  .cards {
    display: flex;
    flex-wrap: wrap;
    gap: 10%;
    padding: 2em 2em;
    justify-content: center;
  }
  
  .card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    padding: 1.5em;
    flex: 1 1 250px;
    max-width: 600px;
    text-align: center;
  }
  
  .card h3 {
    color: #006699;
  }


  .services-page .cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 2em auto;
    padding: 0 1em;
  }
  
  .services-page .card {
    background: #ffffffdd;
    border-radius: 12px;
    padding: 1em;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease;
  }
  
  .services-page .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  }
  
  .services-page .card img {
    width: 100%;
    max-width: 600px;
    border-radius: 8px;
    margin-bottom: 1em;
    object-fit: cover;
  }
  
  .services-page .card h3 {
    color: #006699;
    font-size: 1.2rem;
    margin-bottom: 0.5em;
  }
  
  .services-page .card p {
    color: #333;
    font-size: 0.95rem;
    line-height: 1.5;
  }

  /* table */

  table {
    width: 100%;
    max-width: 800px;
    margin: 2em auto;
    border-collapse: collapse;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    overflow: hidden;
  }

  table th {
    padding: 1em 1.2em;
    border-bottom: 1px solid #ddd;
    text-align: left;
    vertical-align: middle;
    background-color: #e4f7fc;
    color: #1177aa;
    width: 30%;
    font-weight: 700;
  }

  table td {
    padding: 1em 1.2em;
    border-bottom: 1px solid #ddd;
    text-align: left;
    vertical-align: middle;
  }
/*
  table th:last-child th,td {
    border-bottom: none;
  }
*/  
  .job table {
    width: 100%;
    max-width: 800px;
    margin: 2em auto 5em;
    border-collapse: collapse;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.5);
    overflow: hidden;
  }

  .job th {
    padding: 1em 1.2em;
    border-bottom: 1px solid #ddd;
    text-align: center;
    vertical-align: middle;
    background-color: #e0f7fa;
    color: #0077bb;
    width: 28%;
    font-weight: 700;
  }

  .job td {
    padding: 1em 1.2em;
    border-bottom: 1px solid #ddd;
    text-align: left;
    vertical-align: middle;
  }
/*
  .job tr:last-child th,td {
    border-bottom: none;
  }
*/

  input[type="text"], input[type="email"] {
    width: 50%;
    max-width: 600px;
    padding: 1em;
    border: 1px solid #888;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1em;
    box-sizing: border-box;

  }

  textarea {
    width: 80%;
    max-width: 800px;
    padding: 1em;
    border: 1px solid #888;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1em;
    box-sizing: border-box;
  }

  .back-to-top {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background-color: #cc8888;
  color: white;
  padding: 10px 15px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 14px;
  box-shadow: 0 3px 7px #33669966;
  /*display: none;  初期は非表示 */
  }

  body:target .back-to-top,
  html:target .back-to-top {
    display: block; /* 擬似的な表示制御（ただし限界あり） */
  }
  

  footer {
    background-color: #f0f0f0;
    text-align: center;
    padding: 0.5em;
    font-size: 0.8em;
    color: #555;
  }

  footer a{
    text-decoration: none;
  }
  
  /* レスポンシブ対応 */
  @media (max-width: 600px) {
    .container {
      flex-direction: column;
      align-items: flex-start;
    }
  
    nav ul {
      flex-direction: column;
      gap: 0.5em;
    }

/*
    .cards {
      flex-direction: column;
      align-items: center;
    }
*/

    .cards {
      display: flex;
      flex-wrap: wrap;
      gap: 10%;
      padding: 2em 2em;
      justify-content: center;
    }
    
    .card {
      background-color: #fff;
      border-radius: 12px;
      box-shadow: 0 4px 8px rgba(0,0,0,0.1);
      padding: 1.5em;
      flex: 1 1 250px;
      max-width: 600px;
      text-align: center;
    }

    input[type="text"], input[type="email"] {
      width: 80%;
      max-width: 400px;
      padding: 1em;
      border: 1px solid #888;
      border-radius: 5px;
      font-family: inherit;
      font-size: 1em;
      box-sizing: border-box;
    }

    textarea {
      width: 80%;
      max-width: 600px;
      padding: 1em;
      border: 1px solid #888;
      border-radius: 7px;
      font-family: inherit;
      font-size: 1em;
      box-sizing: border-box;
    }
  
    .services-page .cards {
      grid-template-columns: 1fr;
    }

    .services-page .card img {
      max-width: 100%;
    }

/*
    table, thead, tbody, th, td, tr {
      display: block;
      width: 100%;
    }

    th {
      background-color: transparent;
      color: #006699;
      font-weight: 700;
      padding-top: 1em;
    }

    td {
      padding-left: 50%;
      position: relative;
    }

    td::before {
      content: attr(data-label);
      position: absolute;
      left: 1em;
      top: 1em;
      font-weight: 700;
      color: #006699;
    }

    tr {
      margin-bottom: 1.5em;
      border-bottom: 2px solid #e0f7fa;
    }
*/

    .table-wrapper {
      width: 100%;
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
    }

    .table-wrapper table {
      width: 100%;
      border-collapse: collapse;
      min-width: 600px; /* 必要に応じて変更可能 */
      font-size: 0.8rem;
    }

    .table-wrapper table th, .table-wrapper table td {
      padding: 0.8em;
      border: 1px solid #ccc;
      border-right: none;
      text-align: left;
      font-size: 1em;
      word-break: break-word;
    }

    .map-container {
      position: relative;
      padding-bottom: 80%; /* アスペクト比 */
      height: 0;
      overflow: hidden;
      max-width: 100%;
    }

    .map-container iframe {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      border: 0;
    }
     /**/
  }