* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Noto Sans JP', sans-serif;
  background: #121212;
  color: #eee;
  line-height: 1.8;
}

a {
  color: #1abc9c;
  text-decoration: none;
}
a:hover {
  color: #16a085;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0px 30px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(18, 18, 18, 0.9);
  backdrop-filter: blur(4px);
}

nav.top {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10;
}

nav ul {
  display: flex;
  gap: 30px;
  list-style: none;
}

nav ul li a {
  position: relative;
  font-weight: 600;
  font-size: 1rem;
  color: #1abc9c;
  padding: 5px 0;
  transition: color 0.3s;
}

nav ul li a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: #1abc9c;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

nav ul li a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

header {
  height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  color: #fff;
  margin-top: 80px;
}
header.top {
  background: url('top.jpg') no-repeat center center/cover;
  margin-top: 0px;
  height: 100vh;
}
header.about {
  background: url('about.jpg') no-repeat center center/cover;
}
header.contact {
  background: url('contact.jpg') no-repeat center center/cover;
}
header.price {
  background: url('price.jpg') no-repeat center center/cover;
}

header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(18, 18, 18, 0.7);
  z-index: 0;
}

header .jp-title {
  font-size: 0.9rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  margin-bottom: -0.5rem;
  z-index: 1;
  color: #ccc;
  opacity: 0.8;
  font-family: 'Noto Sans JP', sans-serif;
  font-style: italic;
}

header h1 {
  font-size: 3rem;
  z-index: 1;
  color: #fff;
  text-shadow: 0 0 10px #1abc9c;
  letter-spacing: 0.15em;
}

header p {
  font-size: 1.2rem;
  z-index: 1;
  color: #ccc;
  margin-top: 0.5rem;
}

  header.top h1 {
    font-size: 4rem;
    z-index: 1;
    text-shadow: 0 0 15px #1abc9c;
    font-family: "Brush Script MT", cursive;
    color: #eee;
    line-height: 1.6;
    letter-spacing: 0.2em;
  }
  header.top p {
    font-size: 1.5rem;
    letter-spacing: 2px;
    font-weight: 300;
    z-index: 1;
  }

main {
  max-width: 1000px;
  margin: 4rem auto;
  padding: 0 20px;
}
.site-logo {
  font-family: 'Brush Script MT', cursive;
  font-size: 2.8rem;
  color: #1abc9c;
  text-shadow: 0 0 6px rgba(26, 188, 156, 0.5);
}
section {
  margin-bottom: 3rem;
  background: #1e1e1e;
  padding: 2rem;
  border-radius: 10px;
  box-shadow:
    0 8px 15px rgba(0, 0, 0, 0.5),
    0 4px 6px rgba(26, 188, 156, 0.3);
}

section h2 {
  font-size: 1.8rem;
  color: #1abc9c;
  margin-bottom: 1rem;
  border-left: 5px solid #1abc9c;
  padding-left: 10px;
}

ul {
  padding-left: 1.5rem;
}
ul li {
  margin-bottom: 0.5rem;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

form div {
  display: flex;
  flex-direction: column;
}

label {
  font-weight: bold;
  margin-bottom: 0.3rem;
}

input, textarea, select {
  width: 100%; /* 幅を統一 */
  max-width: 100%;
  padding: 0.8rem;
  border: none;
  border-radius: 6px;
  background: #2a2a2a;
  color: #eee;
  font-size: 1rem;
  box-sizing: border-box; /* 余白計算を含める */
}

input:focus, textarea:focus {
  outline: 2px solid #148f77;
}

textarea {
  resize: vertical;
  min-height: 150px;
}

button {
  width: 100%; /* ボタンも同じ幅に */
  background: #148f77;
  color: #fff;
  padding: 0.8rem;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

button:hover {
  background: #117a65;
}

    footer {
      text-align: center;
      padding: 2rem 1rem;
      background: #111;
      color: #555;
      font-size: 0.9rem;
    }

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

.portfolio-item {
  background: #222;
  padding: 15px;
  border-radius: 8px;
  box-shadow:
    0 4px 8px rgba(0,0,0,0.6);
  transition: transform 0.3s ease;
}

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

.portfolio-item img {
  width: 100%;
  height: auto;
  border-radius: 5px;
  margin-bottom: 10px;
  object-fit: cover;
}

.portfolio-item h3 {
  color: #1abc9c;
  margin-bottom: 8px;
  font-size: 1.2rem;
}

.portfolio-item p {
  color: #ccc;
  font-size: 0.95rem;
  line-height: 1.4;
}


table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  font-size: 0.95rem;
  background: #1e1e1e;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}
.table-wrapper {
  width: 100%;
  overflow-x: auto;
}

.table-wrapper table {
  min-width: 600px;
}

th, td {
  padding: 1rem;
  text-align: left;
  vertical-align: top;
}

th {
  background: #148f77;
  color: #fff;
  font-weight: bold;
}

tr:nth-child(even) {
  background: #2a2a2a;
}

tr:nth-child(odd) {
  background: #242424;
}

tr:hover {
  background: #117a65;
  color: #fff;
  transition: background 0.3s ease;
}

.note {
  font-size: 0.85rem;
  margin-top: 0.8rem;
}
ol, ul {
  margin: 0.5rem 0 0 1.2rem;
  padding: 0;
}

form.inform span{
color:#ff3333;
}

.confirm dt {
  font-weight: bold;
  color: #1abc9c;
}

.confirm dd {
  margin-bottom: 1.2em;
  padding-left: 1em;
}


@media (max-width: 900px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .topbar {
    flex-direction: column;
    gap: 10px;
  }
  nav.top ul {
    gap: 15px;
  }
  nav ul {
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
  }
  header h1 {
    font-size: 2rem;
  }
  header.top h1 {
    font-size: 2.5rem;
  }
  header.top p {
    font-size: 0.8rem;
  }

  .site-logo {
    font-size: 1.6rem;
    top: 15px;
    left: 15px;
  }
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  th, td {
    padding: 0.6rem;
    font-size: 0.85rem;
    word-break: break-word; /* 長い単語を折り返し */
  }
}


