@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&display=swap');

body {
  font-family: 'Inter', sans-serif;
  background: #fff;
  color: #222;
  margin: 0;
}
main {
  width: 1200px;
  margin: 0 auto;
}
section {
  margin: 100px 0;
  scroll-margin-top: 50px;
}
.section-row {
  display: flex;
  flex-direction: row;
  gap: 0;
  align-items: flex-start;
}
.section-title {
  width: 15%;
  min-width: 180px;
  font-weight: bold;
  font-size: 1.5em;
  letter-spacing: 0.03em;
  display: flex;
  align-items: flex-start;
  color: #CECECE;
}
.section-content {
  width: 85%;
}
.section-content > p:first-child {
  margin-top: 0;
}
.section-content form,
.section-content > div,
.section-content > p {
  margin-top: 0 !important;
}

/* SERVICEセクション */
.service-header {
  margin-bottom: 32px;
}
.service-header-label {
  font-size: 13px;
  color: #777;
  margin-bottom: 2px;
}
.service-header-title {
  font-size: 2.1em;
  font-weight: 700;
  margin-bottom: 8px;
}
.service-header-desc {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 32px;
}
.service-block {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  margin-bottom: 48px;
}
.service-block:last-child {
  margin-bottom: 0;
}
.service-img {
  width: 293px;
  height: 195px;
  object-fit: cover;
  border-radius: 12px;
  flex-shrink: 0;
}
.service-block-content {
  flex: 1;
}
.service-block-label {
  font-size: 13px;
  color: #777;
  margin-bottom: 2px;
}
.service-block-title {
  font-size: 2em;
  font-weight: 700;
  margin-bottom: 8px;
}
.service-block-desc {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 18px;
}
.viewmore-btn {
  padding: 10px 32px;
  border-radius: 6px;
  border: 1px solid #cecece;
  background: #fff;
  color: #222;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.04em;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
}

/* WORKSセクション */
.works-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.works-item {
  width: 100%;
  box-sizing: border-box;
  padding: 15px;
  cursor: pointer;
  transition: background 0.2s;
}
.works-item:hover {
  background: #f3f3f3;
}
.works-img {
  width: 100%;
  aspect-ratio: 1.5/1;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 8px;
}
.works-title {
  font-size: 1.25em;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.3;
}
.works-client {
  font-size: 14px;
  color: #777;
}

/* COMPANYセクション */
.company-table-wrapper {
  display: flex;
  justify-content: flex-start;
  margin-top: 0;
  padding-top: 0;
}
.company-table {
  border-collapse: collapse;
  border-spacing: 0;
  font-size: 15px;
  min-width: 700px;
  margin-top: 0;
  padding-top: 0;
}
.company-table td,
.company-table th {
  padding-top: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid #EBEBEB;
}
.company-table tr:last-child td {
  border-bottom: none;
}
.company-table th {
  border-top: none;
}
.company-label {
  color: #222;
  font-weight: 400;
  min-width: 120px;
}
.company-value {
  color: #222;
  font-weight: 400;
  min-width: 350px;
}
.company-table tbody tr:first-child td {
  border-top: 1px solid #EBEBEB;
}
.company-table tbody tr:last-child td {
  border-bottom: 1px solid #EBEBEB;
}

/* CONTACTセクション */
form > div {
  margin-bottom: 16px;
}
input[type="text"],
input[type="email"] {
  width: 100%;
  max-width: 400px;
  padding: 12px;
  margin-top: 5px;
  border: 1px solid #cecece;
  font-size: 1em;
  font-family: 'Inter', sans-serif;
  background: #F8F8F8;
  border-radius: 8px;
}
textarea {
  width: 100%;
  max-width: 700px;
  padding: 14px 8px;
  margin-top: 5px;
  border: 1px solid #cecece;
  font-size: 1em;
  font-family: 'Inter', sans-serif;
  background: #F8F8F8;
  border-radius: 8px;
}
button[type="submit"] {
  background: #114CA5;
  color: #fff;
  border: none;
  padding: 10px 32px;
  border-radius: 4px;
  font-size: 1em;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
}

/* フッター */
footer {
  text-align: center;
  margin-top: 40px;
  color: #777;
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  margin-bottom: 50px;
}
.footer-logo {
  height: 32px;
  margin-bottom: 8px;
}

/* --- モーダル用スタイル --- */
.modal-overlay {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.4);
  justify-content: center;
  align-items: center;
}
.modal-overlay.active {
  display: flex;
}
.modal {
  background: #fff;
  border-radius: 12px;
  max-width: 480px;
  width: 90vw;
  padding: 32px 28px 24px 28px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  position: relative;
  animation: modalIn 0.2s;
  max-height: 90vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
@keyframes modalIn {
  from { transform: translateY(40px); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 32px;
  color: #888;
  background: #fff;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  z-index: 1;
}
.modal-title {
  font-size: 1.3em;
  font-weight: bold;
  color: #222;
  font-family: 'Inter', sans-serif;
  margin-bottom: 25px;
  line-height: 1.2;
  text-align: left;
}
.modal-title-main {
  font-size: 1.3em;
  font-weight: 700;
  margin-bottom: 8px;
}
.modal-title-label {
  font-size: 13px;
  color: #777;
  margin-bottom: 2px;
  font-weight: 400;
}
.modal-title .en {
  display: block;
  font-size: 0.7em;
  font-weight: 500;
  color: #114CA5;
  letter-spacing: 0.04em;
  margin-top: 2px;
}
.modal-content {
  font-size: 15px;
  color: #333;
}
.modal-content-heading {
  font-size: 1.1em;
  margin-top: 2em;
  margin-bottom: 0.5em;
}
.modal-content-list {
  margin-top: 0;
  padding-left: 1.2em;
}
.modal-content p {
  margin-top: 0.35em;
}
.modal-tags {
  margin: 16px 0 10px 0;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.modal-tags span {
  display: inline-block;
  background: #114CA5;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  border-radius: 12px;
  padding: 3px 12px;
  letter-spacing: 0.04em;
  transition: background 0.2s;
}
.modal-tags .orange {
  background: #FF9900;
  color: #fff;
}
.modal-img {
  width: 100%;
  aspect-ratio: 1.5/1;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 16px;
}

/* ヘッダー */
.site-header {
  background: #fff;
  margin-top: 60px;
  margin-bottom: 100px;
}
.header-inner {
  width: 100%;
  max-width: none;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;
}
.header-logo {
  order: 1;
}
.header-logo img {
  width: 120px;
  height: auto;
  display: block;
}
.header-nav {
  order: 2;
}
.header-menu {
  display: flex;
  gap: 15px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.header-menu li {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.header-menu a {
  text-decoration: none;
  color: #CECECE;
  transition: color 0.3s ease;
}
.header-menu a:hover {
  color: #222222;
}

/* ハンバーガーメニュー */
.header-hamburger {
  order: 3;
  margin-left: 16px;
  margin-right: 16px;
}
.header-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0;
  z-index: 200;
}
.header-hamburger span {
  display: block;
  width: 28px;
  height: 2px;
  margin: 3px 0;
  background: #222;
  border-radius: 2px;
  transition: all 0.3s;
}

.header-popup-nav {
  display: none;
}

@media (max-width: 1200px) {
  main {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
  }
  .header-inner {
    width: 100%;
    padding: 18px 0px;
  }
}

@media (max-width: 900px) {
  main {
    width: 100%;
    padding: 0 25px;
    box-sizing: border-box;
  }
  .section-row {
    flex-direction: column;
    align-items: stretch;
  }
  .section-title,
  .section-content {
    width: 100%;
    min-width: 0;
  }
  .section-title {
    margin-bottom: 30px;
    font-size: 1.5em;
  }
  .service-block-label {
    font-size: 11px;
  }
  .service-block-title {
    font-size: 1.7em;
  }
  .service-block {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }
  .service-img {
    width: 100%;
    height: auto;
    max-width: 400px;
    margin: 0 auto 16px auto;
    display: block;
  }
  .service-block-content {
    width: 100%;
  }
  .service-header {
    border-bottom: 1px solid #EBEBEB;
  }
  .works-list {
    grid-template-columns: 1fr 1fr;
    gap: 20px 16px;
  }
  /* テーブルのスクロール対応 */
  .company-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
  }
  .company-table {
    width: 100%;
  }
  /* フォームの調整 */
  form {
    width: 100%;
    max-width: 600px;
    margin: 0;
  }
  input[type="text"],
  input[type="email"],
  textarea {
    width: 100%;
    box-sizing: border-box;
  }
  .header-inner {
    width: 100%;
    max-width: none;
    padding: 0;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .header-logo {
    order: 1;
  }
  .header-nav {
    order: 2;
  }
  .header-hamburger {
    order: 3;
    margin-left: 16px;
    margin-right: 0px;
  }
  .header-menu {
    display: none;
  }
  .header-hamburger {
    display: flex;
  }
  .header-popup-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255,255,255,0.98);
    z-index: 150;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    transition: opacity 0.3s;
    opacity: 0;
    pointer-events: none;
  }
  .header-popup-nav.active {
    display: flex;
    opacity: 1;
    pointer-events: auto;
  }
  .header-popup-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 32px;
    align-items: center;
  }
  .header-popup-nav li {
    font-size: 1.5em;
    font-weight: 700;
  }
  .header-popup-nav a {
    text-decoration: none;
    color: #CECECE;
    transition: color 0.3s ease;
    padding: 8px 0;
  }
  .header-popup-nav a:hover {
    color: #222222;
  }
  body.menu-open {
    overflow: hidden;
  }
  .works-item {
    padding-left: 0;
    padding-right: 0;
  }
  .works-item:hover {
    background: transparent;
  }
  footer .footer-logo {
    width: 150px;
    height: auto;
  }
}
@media (max-width: 600px) {
  main {
    width: 100%;
    padding: 0 15px;
  }
  .service-header {
    border-bottom: 1px solid #EBEBEB;
  }
  .section-title {
    font-size: 1.3em;
  }
  .service-header-title {
    font-size: 1.8em;
    margin-bottom: 10px;
  }
  .service-block-title {
    font-size: 1.7em;
  }
  .works-list {
    grid-template-columns: 1fr;
  }
  .company-table {
    min-width: 0;
    font-size: 15px;
  }
  /* スマホでのフォーム調整 */
  form {
    max-width: 100%;
    margin: 0 auto;
  }
  button[type="submit"] {
    width: 100%;
    box-sizing: border-box;
  }
  /* モーダルの余白調整 */
  .modal {
    width: calc(100% - 8vw);
    margin: 0 4vw;
    padding: 24px 20px 20px;
    max-height: 85vh;
  }
  .modal-close {
    top: 12px;
    right: 12px;
    font-size: 28px;
    width: 36px;
    height: 36px;
  }
  .header-inner {
    padding: 0px 0px;
  }
  .header-menu {
    gap: 12px;
    font-size: 13px;
  }
  .site-header {
    margin-top: 20px;
  }
  .header-logo img {
    width: 100px;
  }
  section {
    margin: 70px 0px;
  }
}

.header-hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.header-hamburger.active span:nth-child(2) {
  opacity: 0;
}
.header-hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.feature-title {
  font-weight: 500;
  margin-bottom: 4px;
}

.feature-description {
  color: #666;
  font-size: 0.9em;
  line-height: 1.4;
}

.modal-content-list li {
  margin-bottom: 5px;
}

@media screen and (max-width: 768px) {
  .site-header {
    margin-bottom: 80px;
  }
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-list li {
  margin-bottom: 30px;
}
.feature-list li:last-child {
  margin-bottom: 0;
}

.feature-list .feature-title {
  font-size: 1.2em;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-list .feature-description {
  color: #666;
  line-height: 1.7;
} 