* {
  box-sizing: border-box;
}

body {
  font-family: "Baskerville Old Face", Baskerville, "Times New Roman", serif;
  color: #fff;
  background-color: #fff;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-size: 18px;
  line-height: 1.7;
}

body.top {
  overflow: hidden;
}

/* ヘッダー&フッター */
.site-header {
  height: 70px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 40px;
  background: #fff;
}

.logo {
  font-size: 2.4rem; 
  font-weight: 600;
  color: #0ABAB5;
}

.nav a {
  margin-left: 20px;
  text-decoration: none;
  color: #0ABAB5;
  font-size: 1.14rem; 
}

.site-footer {
  height: 30px;
  display: flex;
  align-items: right;
  justify-content: right;
  font-size: 0.9rem;
  color: #0ABAB5;
}

/* 本文 */
p,
li,
dd,
.design-text,
.ict-lead,
.form-group label,
.form-group input,
.form-group textarea {
  font-size: 1.2rem;
}

/* 小さすぎる文字 */
.contents-sub,
.required,
.form-note,
.form-attention {
  font-size: 1.02rem;
}

/* ヒーロー */
.hero {
  flex: 1;
  position: relative;
  min-height: calc(100vh - 100px);
  background-image: url("/images/top_main.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

.links {
  position: relative;
  width: 100%;
  padding-left: 10%;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.hero-link {
  display: block;
  width: 100%;
  padding-top: 0vh;
  padding-bottom: 5vh;
  text-decoration: none;
  color: #000;
}

.hero-link:not(:last-child) {
  border-bottom: 2px solid rgba(255,255,255,0.4);
}

/* 変更禁止 */
.hero-link .title {
  display: block;
  font-size: clamp(4.4rem, 5vw, 4rem);
  line-height: 1.1;
  opacity: 0.8;
}

/* 変更禁止 */
.hero-link .sub {
  display: block;
  margin-top: 6px;
  font-size: 1.2rem;
  letter-spacing: 0.05em;
  opacity: 0.8;
}

/* コンテンツ */
.contents-box {
  width: 70%;
  max-height: 70vh;
  background: rgba(255,255,255,0.7);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  overflow-y: auto;
  margin: 0 auto;
}

.contents-inner {
  padding: 25px 10%;
  color: #000;
}

.contents-title {
  font-size: 2.16rem;
  margin-bottom: 0;
  line-height: 1.1;
  color: #0ABAB5;
}

.contents-sub {
  margin-top: 2px;
  margin-bottom: 30px;
  line-height: 1.2;
  margin-left: 1.6em;
}

.contents-list {
  display: grid;
  grid-template-columns: 120px 1fr;
  row-gap: 20px;
  column-gap: 32px;
  margin-left: 1em;
}

.contents-list dt {
  font-weight: 600;
}

.contents-list dd {
  margin: 0;
}

.contents-link {
  margin-top: 30px;
  font-size: 1.2rem;
  font-weight: 600;
  color: #000;
  text-decoration: none;
}

.contents-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.contents-item {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #eee;
}

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

.design-text {
  margin-top: 48px;
  line-height: 1.8;
  color: #000;
  margin-left: 1em;
}

.design-sales {
  margin-bottom: 24px;
}

.design-concept {
  margin-bottom: 32px;
  color: #000;
}

.design-links {
  display: flex;
  gap: 24px;
  margin-bottom: 40px;
}

.image-link {
  display: block;
  width: 200px;
  aspect-ratio: 2 / 1;
  overflow: hidden;
}

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

/* ICT */
.text-link {
  color: #0ABAB5;
  text-decoration: none;
}

.ict-title {
  font-size: 2.4rem;
  margin-bottom: 16px;
}

.ict-lead {
  margin-bottom: 40px;
  line-height: 1.8;
}

.ict-section {
  margin-bottom: 32px;
}

.ict-section h2 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.ict-section ul,
.ict-section ol {
  padding-left: 1.2em;
  line-height: 1.4;
}

.ict-section li {
  margin-bottom: 2px;
}

.ict-contact {
  margin: 0;
  font-size: 1.14rem;
}

.ict-contact-title {
  font-size: 1.44rem;
  font-weight: 600;
  margin: 48px 0 0 0;
}

.ict-subtitle {
  font-size: 1.14rem;
  font-weight: 600;
  margin: 0 0 4px 0;
}

/* Contact */
.contact-title {
  font-size: 2.4rem;
  margin-bottom: 32px;
}

.contact-form {
  width: 100%;
  max-width: 720px;
}

.form-group {
  display: block;
  margin-bottom: 32px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(0,0,0,0.2);
  background: rgba(255,255,255,0.65);
}

.required {
  font-size: 0.84rem;
  color: #888;
}

.form-note {
  margin-top: 6px;
  color: #666;
}

.form-attention {
  color: #666;
  margin: 32px 0;
  line-height: 1.6;
}

.form-submit button {
  padding: 10px 32px;
  font-size: 1.14rem;
  background: #0ABAB5;
  color: #fff;
  border: none;
  cursor: pointer;
}

/* hover */
.nav a:hover { opacity: 0.7; }
.form-submit button:hover { opacity: 0.85; }
.hero-link:hover { color: #0ABAB5; }
.contents-link:hover { opacity: 0.7; }
.text-link:hover { opacity: 0.7; }

/* ===== スマホ（改善済） ===== */
@media (max-width: 768px) {

  body {
    font-size: 14px;
    line-height: 1.6;
  }

  body.top {
    overflow: auto;
  }

  .site-header {
    height: auto;
    padding: 12px 16px;
    flex-direction: column;
    align-items: center;
  }

  .logo {
    font-size: 1.8rem;
  }

  .nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px 12px;
    text-align: center;
  }

  .nav a {
    margin-left: 0;
    font-size: 0.9rem;
    white-space: nowrap;
  }

  .contents-box {
    width: 90%;
    max-height: 75vh;
  }

  .contents-inner {
    padding: 40px 20px;
  }

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

  .design-links {
    flex-direction: column;
  }

  .image-link {
    width: 100%;
  }

  .form-group {
    margin-bottom: 24px;
  }

  .form-submit button {
    width: 100%;
    font-size: 0.95rem;
  }

  /* ▼ 本文を少し小さめに揃える（約13px） */
  p,
  li,
  dd,
  .design-text,
  .ict-lead,
  .form-group label,
  .form-group input,
  .form-group textarea {
    font-size: 0.9rem;
  }

}