@charset "UTF-8";

:root {
  --color-black: #0d0d0d;
  --color-cream: #faf6e8;
  --color-accent: #e8720c;
  --color-accent-dark: #c95f08;
  --color-text: #1a1a1a;
  --color-muted: #666;
  --color-border: #e0dccb;
  --table-label-bg: #dcdcdc;
  --color-green: #3f8f42;
  --color-blue: #2f5bb7;
  --color-brush: rgba(232, 114, 12, 0.22);
  --max-width: 1100px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-cream);
  color: var(--color-text);
  font-family: "Hiragino Sans", "Yu Gothic", "Segoe UI", sans-serif;
  line-height: 1.8;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

/* Header */

.site-header {
  background: var(--color-black);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header .container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.logo {
  text-decoration: none;
  line-height: 1.2;
}

.logo .eyebrow {
  display: block;
  color: var(--color-accent);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  font-weight: 600;
}

.logo .brand {
  display: block;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  letter-spacing: 0.05em;
}

.site-header nav a {
  margin-left: 1.75rem;
  color: #fff;
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}

.site-header nav a:hover {
  color: var(--color-accent);
}

/* Decorative bar for interior pages (company / recruit / contact) */

.subpage-bar {
  height: 10px;
  background: var(--color-accent-dark);
}

/* Brush stroke accent behind short section headings */

main.page h1,
.scene h2.brush {
  position: relative;
  display: inline-block;
  z-index: 1;
}

main.page h1::before,
.scene h2.brush::before {
  content: "";
  position: absolute;
  left: -0.35em;
  right: -0.3em;
  bottom: 0.05em;
  height: 0.5em;
  background: var(--color-brush);
  z-index: -1;
  border-radius: 40% 60% 55% 45% / 45% 40% 60% 55%;
  transform: rotate(-1.5deg);
}

/* Hero / dark scroll sections (index page) */

.scene {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  color: #fff;
  overflow: hidden;
}

#scene-5 {
  min-height: 90vh;
}

.scene::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.55);
}

/* Hero slideshow (scene-1) */

.hero-slideshow {
  background: var(--color-black);
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease;
}

.hero-slide.is-active {
  opacity: 1;
}

/* Lighter overlay + dark text for scenes after the hero */

.scene-light::before {
  background: rgba(255, 255, 255, 0.8);
}

.scene-light {
  color: var(--color-text);
}

.scene-light .link-card,
.scene-light .link-card span {
  color: var(--color-text);
}

.scene-inner {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem;
  width: 100%;
}

.scene h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  margin: 0 0 1rem;
}

.scene h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  font-weight: 700;
  margin: 0 0 1.25rem;
}

.scene p {
  max-width: 42em;
  font-size: 1.05rem;
}

.equip-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem 2rem;
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
}

.equip-list li::before {
  content: "◇ ";
  color: var(--color-accent);
}

.strengths-scene {
  background: var(--color-cream);
}

.strengths-layout {
  display: flex;
  align-items: flex-start;
  gap: 3rem;
  margin-top: 1rem;
}

.strengths-list {
  flex: 2 1 480px;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem 2.5rem;
}

.strengths-list h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  color: var(--color-accent-dark);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.strengths-list h3::before {
  content: "";
  display: inline-block;
  width: 1.2em;
  height: 1.2em;
  flex-shrink: 0;
  background-color: var(--color-accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 2.79 1.52 4.66 2.75 6.14.5.6.99 1.18 1.25 1.66.2.36.3.75.3 1.2h5.4c0-.45.1-.84.3-1.2.26-.48.75-1.06 1.25-1.66C15.48 13.66 17 11.79 17 9a7 7 0 0 0-7-7zm-2 19h4v1a1 1 0 0 1-1 1h-2a1 1 0 0 1-1-1v-1z'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 2.79 1.52 4.66 2.75 6.14.5.6.99 1.18 1.25 1.66.2.36.3.75.3 1.2h5.4c0-.45.1-.84.3-1.2.26-.48.75-1.06 1.25-1.66C15.48 13.66 17 11.79 17 9a7 7 0 0 0-7-7zm-2 19h4v1a1 1 0 0 1-1 1h-2a1 1 0 0 1-1-1v-1z'/%3E%3C/svg%3E") no-repeat center / contain;
}

.strengths-list p {
  margin: 0;
  font-size: 0.95rem;
  max-width: none;
}

.strengths-photo {
  flex: 1 1 260px;
  align-self: center;
}

.strengths-photo img {
  width: 100%;
  border-radius: 4px;
}

.photo-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.photo-row img {
  height: 220px;
  width: 100%;
  object-fit: cover;
  border-radius: 4px;
}

.link-cards {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.link-card {
  text-decoration: none;
  color: #fff;
  display: block;
  width: 300px;
  flex: 0 0 300px;
}

.link-card img {
  height: 300px;
  width: 100%;
  object-fit: contain;
  border-radius: 4px;
}

.link-card span {
  display: none;
}

.scene-with-portrait {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  flex-wrap: wrap;
}

.scene-with-portrait .portrait {
  max-width: 320px;
  border-radius: 4px;
}

.team-block {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
}

.team-block .team-photo {
  width: 150px;
  border-radius: 4px;
}

/* Scroll buttons */

.scroll-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
  background: var(--color-accent);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 0.9rem 1.75rem;
  border-radius: 3px;
  border: none;
  font-size: 1rem;
  cursor: pointer;
}

.scroll-btn:hover {
  background: var(--color-accent-dark);
}

/* Content pages (company / recruit / contact) */

main.page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

main.page h1 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

main.page .divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin-bottom: 2rem;
}

.company-intro {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.company-intro .text {
  flex: 1 1 420px;
}

.company-intro .signature {
  text-align: right;
  font-weight: 700;
  margin-top: 1.5rem;
}

.company-intro img.portrait {
  width: 280px;
  border-radius: 4px;
  flex-shrink: 0;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2.5rem;
}

.info-table th,
.info-table td {
  border: 1px solid var(--color-border);
  padding: 1rem 1.25rem;
  text-align: left;
  vertical-align: top;
}

.info-table th {
  background: var(--table-label-bg);
  width: 12rem;
  font-weight: 600;
  white-space: nowrap;
}

.recruit-message p {
  margin: 0 0 1.25rem;
}

.contact-details {
  margin-bottom: 2rem;
  border: 2px solid var(--color-accent);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 12px rgba(232, 114, 12, 0.15);
}

.contact-details th,
.contact-details td {
  border: none;
  border-bottom: 1px solid var(--color-border);
}

.contact-details tr:last-child th,
.contact-details tr:last-child td {
  border-bottom: none;
}

.contact-details th {
  position: relative;
  padding-left: 2.8rem;
  background: #fff7ef;
  color: var(--color-accent-dark);
}

.contact-details th::before {
  content: "";
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.15em;
  height: 1.15em;
  background-color: var(--color-accent);
  -webkit-mask: var(--icon) no-repeat center / contain;
  mask: var(--icon) no-repeat center / contain;
}

.contact-details tr:nth-of-type(1) th {
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C8.14 2 5 5.14 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.86-3.14-7-7-7zm0 9.5A2.5 2.5 0 1 1 12 6a2.5 2.5 0 0 1 0 5.5z'/%3E%3C/svg%3E");
}

.contact-details tr:nth-of-type(2) th {
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.62 10.79a15.05 15.05 0 0 0 6.59 6.59l2.2-2.2a1 1 0 0 1 1.01-.24 11.36 11.36 0 0 0 3.57.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1C10.61 21 3 13.39 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1 11.36 11.36 0 0 0 .57 3.57 1 1 0 0 1-.25 1.01z'/%3E%3C/svg%3E");
}

.contact-details tr:nth-of-type(3) th {
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 2h12v6H6zM4 9h16a2 2 0 0 1 2 2v6a2 2 0 0 1-2 2h-2v3H6v-3H4a2 2 0 0 1-2-2v-6a2 2 0 0 1 2-2zm4 8h8v3H8z'/%3E%3C/svg%3E");
}

.contact-details tr:nth-of-type(4) th {
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 4h16a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2zm16 2.24-7.4 5.55a1 1 0 0 1-1.2 0L4 6.24V18h16z'/%3E%3C/svg%3E");
}

.button-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 2.5rem 0;
}

.btn {
  display: inline-block;
  padding: 1rem 2rem;
  text-decoration: none;
  font-weight: 700;
  border-radius: 3px;
  color: #fff;
  border: none;
  font-size: 1rem;
  cursor: pointer;
}

.btn-blue {
  background: var(--color-blue);
}

.btn-green {
  background: var(--color-green);
}

.btn-green:hover {
  opacity: 0.9;
}

/* Contact form */

.contact-form {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
}

.contact-form th,
.contact-form td {
  border: 1px solid var(--color-border);
  padding: 1rem 1.25rem;
  text-align: left;
  vertical-align: middle;
}

.contact-form th {
  background: var(--table-label-bg);
  width: 12rem;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--color-border);
  background: #fff;
  padding: 0.6rem 0.75rem;
  font: inherit;
  border-radius: 2px;
}

.contact-form textarea {
  min-height: 6rem;
  resize: vertical;
}

.submit-btn {
  display: block;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  background: var(--color-green);
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 1rem;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  letter-spacing: 0.2em;
}

.submit-btn:hover {
  opacity: 0.9;
}

.field-error {
  display: block;
  margin-top: 0.4rem;
  color: #c0392b;
  font-size: 0.85rem;
}

.form-error-summary {
  color: #c0392b;
  font-weight: 700;
  margin-bottom: 1rem;
}

.confirm-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 2.5rem 0;
}

.confirm-actions .btn {
  min-width: 220px;
  text-align: center;
}

/* Footer / pagetop bar */

.site-footer {
  background: #b7b7b7;
  padding: 1rem 1.5rem;
}

.site-footer .container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pagetop-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-accent);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  border-radius: 3px;
}

.pagetop-btn:hover {
  background: var(--color-accent-dark);
}

.copyright {
  color: #333;
  font-size: 0.8rem;
}

@media (max-width: 640px) {
  .scene {
    min-height: 92vh;
  }
  .equip-list {
    grid-template-columns: 1fr 1fr;
  }
  .strengths-list {
    grid-template-columns: 1fr;
  }
  .strengths-layout {
    flex-direction: column;
  }
  .strengths-photo {
    width: 100%;
  }
  .photo-row {
    grid-template-columns: 1fr;
  }
  .link-card {
    width: 100%;
    flex: 1 1 100%;
  }
  .info-table th,
  .contact-form th {
    width: 8rem;
  }
  .company-intro {
    flex-direction: column;
  }
}
