:root {
  --ivory: #f4eddf;
  --paper: #fbf7ed;
  --blue: #074f98;
  --deep: #07356c;
  --ink: #17283a;
  --line: #bbb5aa;
  --serif: "Yu Mincho", "Hiragino Mincho ProN", serif;
  --sans: "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: #ddd7ca;
  color: var(--ink);
  font: 16px/1.7 var(--sans);
}
a {
  text-decoration: none;
  color: inherit;
}
header,
main,
footer {
  max-width: 1280px;
  margin: auto;
}
header {
  height: 76px;
  background: rgba(251, 247, 237, 0.98);
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid #cec7ba;
  padding-left: 28px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 295px;
}

.logo .company-mark {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex: 0 0 48px;
}
.logo i {
  width: 44px;
  height: 44px;
  border: 3px solid var(--blue);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--blue);
  font: bold 26px Georgia;
}
.logo b,
.logo small {
  display: block;
}
.logo b {
  font: 700 20px var(--serif);
  letter-spacing: 0.13em;
}
.logo small {
  font: bold 9px Georgia;
  letter-spacing: 0.15em;
}
nav {
  display: flex;
  justify-content: flex-end;
  gap: 28px;
  flex: 1;
  padding: 0 25px;
}
nav a {
  font-size: 12px;
  font-weight: 700;
}
.nav-contact {
  align-self: stretch;
  display: flex;
  align-items: center;
  background: var(--deep);
  color: white;
  padding: 0 27px;
  font-weight: 700;
}
.hero {
  height: 610px;
  display: grid;
  grid-template-columns: 255px 1fr;
  background: var(--paper);
}
.vertical {
  padding: 52px 30px;
}
.vertical h1 {
  writing-mode: vertical-rl;
  font: 700 43px/1.6 var(--serif);
  letter-spacing: 0.12em;
  margin: 0 auto;
  color: #08376f;
}
.vertical span {
  display: block;
  width: 42px;
  height: 3px;
  background: var(--blue);
  margin: 24px 0;
}
.vertical p {
  font: 600 13px/2 var(--serif);
}
.team {
  background: url("./assets/team-hero.png") center/cover no-repeat;
}
.paper {
  background: var(--paper);
  padding: 52px 42px;
}
.title {
  text-align: center;
  margin-bottom: 30px;
}
.title h2 {
  font: 700 30px var(--serif);
  letter-spacing: 0.15em;
  margin: 0;
}
.title small {
  font: bold 10px Georgia;
  color: var(--blue);
  letter-spacing: 0.18em;
}
.cards {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 15px;
}
.cards article {
  border: 1px solid var(--line);
  background: #fff;
  padding-bottom: 18px;
  position: relative;
}
.pic {
  height: 150px;
  background: url("./assets/team-hero.png") center/cover;
}
.p1 {
  background-position: 8% 45%;
}
.p2 {
  background-position: 28% 45%;
  filter: saturate(0.55);
}
.p3 {
  background-position: 50% 45%;
}
.p4 {
  background-position: 72% 45%;
  filter: saturate(0.7);
}
.p5 {
  background-position: 94% 45%;
}
.cards i {
  font: bold 27px Georgia;
  color: var(--blue);
  display: block;
  padding: 10px 16px 0;
}
.cards h3 {
  font: 700 17px var(--serif);
  text-align: center;
  margin: 0 8px 8px;
}
.cards p {
  font-size: 12px;
  padding: 0 16px;
  margin: 0;
}
.reason {
  padding: 47px 42px;
  background: linear-gradient(145deg, #e8f1f7, var(--paper));
}
.reasons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 23px;
}
.reasons article {
  background: #ffffffc9;
  border: 1px solid #aeb8c0;
  position: relative;
  padding-bottom: 18px;
  overflow: hidden;
}
.reasons article > b {
  position: absolute;
  z-index: 2;
  font: italic 55px Georgia;
  color: #0752a02b;
  left: 7px;
  top: -15px;
}
.face {
  height: 150px;
  background: url("./assets/team-hero.png") 0 30%/500% auto;
}
.f1 {
  background-position: 2% 30%;
}
.f2 {
  background-position: 34% 30%;
}
.f3 {
  background-position: 66% 30%;
}
.f4 {
  background-position: 98% 30%;
}
.reasons h3 {
  font: 700 18px var(--serif);
  text-align: center;
  color: var(--blue);
  margin: 12px 8px 5px;
}
.reasons p {
  font-size: 12px;
  padding: 0 16px;
  margin: 0;
}
.works {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 17px;
}
.works article > div {
  height: 120px;
  background: url("./assets/team-hero.png") center/cover;
  border: 1px solid #aaa;
}
.works article:nth-child(2) > div {
  background-position: 15% 65%;
}
.works article:nth-child(3) > div {
  background-position: 45% 65%;
}
.works article:nth-child(4) > div {
  background-position: 70% 65%;
}
.works article:nth-child(5) > div {
  background-position: 95% 65%;
}
.works b,
.works small {
  display: block;
}
.works b {
  font: 700 13px var(--serif);
  color: var(--blue);
  margin-top: 8px;
}
.works small {
  font-size: 11px;
}
.outline {
  display: block;
  width: max-content;
  margin: 26px auto 0;
  border: 1px solid var(--blue);
  padding: 9px 40px;
  font-size: 13px;
  font-weight: 700;
}
.recruit {
  height: 265px;
  display: grid;
  grid-template-columns: 38% 62%;
  background: var(--paper);
  border-top: 1px solid var(--line);
}
.recruit > div:first-child {
  padding: 34px 44px;
}
.recruit h2 {
  font: 700 30px/1.45 var(--serif);
  letter-spacing: 0.13em;
  margin: 0 0 8px;
}
.recruit p {
  font-size: 12px;
}
.recruit a {
  display: inline-block;
  background: var(--deep);
  color: #fff;
  padding: 10px 28px;
  font-weight: 700;
  font-size: 13px;
}
.team-crop {
  background-position: center 34%;
}
.company {
  display: grid;
  grid-template-columns: 48% 52%;
  background: var(--paper);
  border-top: 1px solid var(--line);
}
.company > div:first-child {
  padding: 34px 44px;
}
.left {
  text-align: left;
  margin-bottom: 18px;
}
.company dl,
.jobs dl {
  margin: 0;
  border-top: 1px solid #c9c1b5;
}
.company dl > div,
.jobs dl > div {
  display: grid;
  grid-template-columns: 120px 1fr;
  padding: 8px;
  border-bottom: 1px solid #c9c1b5;
  font-size: 12px;
}
.company dd,
.jobs dd {
  margin: 0;
}
.company dt,
.jobs dt {
  font-weight: 700;
}
.company-map {
  position: relative;
  min-height: 390px;
  background: #e8e4da;
}
.company-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 390px;
  border: 0;
}
.company-map a {
  position: absolute;
  right: 14px;
  bottom: 14px;
  background: var(--deep);
  color: #fff;
  padding: 9px 16px;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 2px 8px #0004;
}
.jobs {
  border-top: 1px solid var(--line);
}
.badges {
  display: flex;
  justify-content: center;
  gap: 9px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.badges span {
  background: var(--deep);
  color: #fff;
  padding: 7px 15px;
  font-size: 13px;
  font-weight: 700;
}
.jobs dl {
  max-width: 850px;
  margin: auto;
}
.contact {
  display: grid;
  grid-template-columns: 80px 1fr 290px 190px;
  align-items: center;
  gap: 22px;
  border-top: 1px solid var(--line);
  padding: 28px 44px;
}
.phone {
  font-size: 48px;
  color: var(--blue);
}
.contact h2 {
  font: 700 27px var(--serif);
  margin: 0;
}
.contact p {
  font-size: 12px;
  margin: 0;
}
.contact > a {
  background: var(--deep);
  color: #fff;
  padding: 10px 18px;
}
.contact small,
.contact b {
  display: block;
}
.contact b {
  font: 700 21px Georgia;
}
footer {
  background: var(--deep);
  color: #fff;
  text-align: center;
  padding: 15px;
  font-size: 11px;
}
@media (max-width: 850px) {
  header {
    height: 64px;
    padding: 0 14px;
  }
  .logo {
    min-width: 0;
  }
  .logo b {
    font-size: 15px;
  }
  .logo i {
    width: 35px;
    height: 35px;
    font-size: 21px;
  }
  nav {
    display: none;
  }
  .nav-contact {
    margin-left: auto;
    padding: 0 13px;
    font-size: 12px;
  }
  .hero {
    height: 650px;
    display: block;
    position: relative;
  }
  .team {
    height: 100%;
    background-position: 60% center;
  }
  .vertical {
    position: absolute;
    z-index: 2;
    height: 100%;
    width: 47%;
    background: linear-gradient(90deg, #fbf7edf7, #fbf7edbb, transparent);
    padding: 45px 12px;
  }
  .vertical h1 {
    font-size: 35px;
  }
  .paper,
  .reason {
    padding: 45px 18px;
  }
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .cards article:last-child {
    grid-column: span 2;
  }
  .reasons {
    grid-template-columns: repeat(2, 1fr);
  }
  .works {
    display: flex;
    overflow: auto;
  }
  .works article {
    min-width: 200px;
  }
  .recruit {
    height: 430px;
    grid-template-columns: 1fr;
    grid-template-rows: 46% 54%;
  }
  .recruit > div:first-child {
    padding: 23px;
  }
  .company {
    grid-template-columns: 1fr;
  }
  .company > div:first-child {
    padding: 32px 20px;
  }
  .company-map,
  .company-map iframe {
    min-height: 320px;
  }
  .contact {
    grid-template-columns: 55px 1fr;
    padding: 28px 20px;
  }
  .contact > a,
  .contact > div:last-child {
    grid-column: 1/-1;
  }
}
@media (max-width: 520px) {
  .cards,
  .reasons {
    grid-template-columns: 1fr;
  }
  .cards article:last-child {
    grid-column: auto;
  }
  .vertical {
    width: 54%;
  }
  .vertical h1 {
    font-size: 30px;
  }
  .company dl > div,
  .jobs dl > div {
    grid-template-columns: 1fr;
    gap: 3px;
  }
}

/* Instagram contact button */
@media (min-width: 851px) {
  .contact {
    grid-template-columns: 80px 1fr 260px 170px 175px;
    gap: 16px;
  }
}
.contact .instagram-link {
  background: linear-gradient(135deg, #833ab4, #e1306c, #f77737);
}
.contact .instagram-link b {
  font-size: 16px;
}
@media (max-width: 850px) {
  .contact .fax {
    grid-column: 1/-1;
  }
  .contact .instagram-link {
    grid-column: 1/-1;
  }
}


.recruit-catch {
  font-size: 0.72em;
  line-height: 1.35;
  display: inline-block;
}
@media (max-width: 600px) {
  .recruit-catch {
    font-size: 0.62em;
    line-height: 1.35;
  }
}



/* Recruitment catchphrase: keep original vertical layout, smaller type */
.vertical h1 {
  writing-mode: vertical-rl;
  font-size: 28px;
  line-height: 1.55;
  letter-spacing: 0.08em;
}
@media (max-width: 700px) {
  .vertical h1 { font-size: 25px; }
}
@media (max-width: 520px) {
  .vertical h1 { font-size: 22px; }
}
/* LINE簡単応募ボタン */
.line-apply-btn {
  display: inline-block;
  background: #06c755;
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  padding: 16px 32px;
  border-radius: 8px;
  text-align: center;
  font-size: 18px;
}

.line-apply-btn:hover {
  opacity: 0.85;
}

@media (max-width: 600px) {
  .line-apply-btn {
    display: block;
    width: 100%;
    padding: 16px 12px;
  }
}
