/* ==========================================================
   株式会社名仙建設 コーポレートサイト
   ========================================================== */
:root {
  --navy: #1b2a47;
  --navy-dark: #15223b;
  --navy-light: #23345a;
  --gold: #c9a24b;
  --gold-dark: #b08c3a;
  --cream: #f5f3ee;
  --white: #ffffff;
  --text: #2b3445;
  --text-light: #5c6577;
  --line: #e4e1d9;
  --red: #c0392b;
  --orange: #e67e22;
  --blue: #2980b9;
  --green: #27ae60;
  --serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --header-h: 80px;
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.9;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
svg.icon { width: 1.1em; height: 1.1em; fill: currentColor; flex-shrink: 0; }
.pc { display: inline; }
.center { text-align: center; }
.strong { font-weight: 700; }
.hp { position: absolute; left: -9999px; }

.container { width: min(100% - 48px, 1200px); margin: 0 auto; }
.container--narrow { max-width: 900px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 28px; font-weight: 700; font-size: 15px; line-height: 1.4;
  border-radius: var(--radius); border: 2px solid transparent; cursor: pointer;
  transition: background .25s, color .25s, transform .15s, box-shadow .25s;
  font-family: inherit;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.15); }
.btn--gold { background: var(--gold); color: var(--navy-dark); border-color: var(--gold); }
.btn--gold:hover { background: var(--gold-dark); border-color: var(--gold-dark); }
.btn--navy { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn--navy:hover { background: var(--navy-light); }
.btn--outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,.7); }
.btn--outline:hover { background: rgba(255,255,255,.12); }
.btn--lg { padding: 16px 34px; font-size: 16px; }
.btn--block { width: 100%; padding: 16px; font-size: 16px; }
.btn--townwork { background: #e8380d; color: #fff; border-color: #e8380d; }
.btn--townwork:hover { background: #c92e09; border-color: #c92e09; }
.btn--indeed { background: #0d6cf2; color: #fff; border-color: #0d6cf2; }
.btn--indeed:hover { background: #0a58c7; border-color: #0a58c7; }
.tag {
  display: inline-block; background: var(--navy); color: var(--gold);
  font-size: 13px; font-weight: 700; padding: 5px 14px; border-radius: 2px; letter-spacing: .02em;
}

/* ---------- Header ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(27,42,71,.97);
  transition: box-shadow .3s;
}
.header.is-scrolled { box-shadow: 0 2px 16px rgba(0,0,0,.25); }
.header__inner {
  width: min(100% - 48px, 1400px); margin: 0 auto; height: var(--header-h);
  display: flex; align-items: center; gap: 24px;
}
.header__logo img { width: 64px; height: auto; border-radius: 2px; }
.nav { margin-left: auto; }
.nav__list { display: flex; gap: 32px; }
.nav__list a {
  color: var(--white); font-weight: 500; font-size: 15px; position: relative; padding: 6px 0;
}
.nav__list a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--gold); transform: scaleX(0); transition: transform .25s; transform-origin: left;
}
.nav__list a:hover::after { transform: scaleX(1); }
.header__tel { padding: 11px 22px; font-size: 15px; }
.header__tel:hover { transform: none; }
.menu-btn {
  display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer;
  flex-direction: column; justify-content: center; align-items: center; gap: 6px; padding: 0;
}
.menu-btn span { width: 26px; height: 2px; background: var(--white); transition: transform .3s, opacity .3s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 720px; height: 92vh; max-height: 900px;
  margin-top: var(--header-h); display: flex; align-items: center; color: var(--white); overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0; background: url("../img/hero.jpg") center/cover no-repeat;
}
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(27,42,71,.88) 0%, rgba(27,42,71,.72) 45%, rgba(27,42,71,.55) 100%);
}
.hero__inner { position: relative; width: min(100% - 48px, 1400px); margin: 0 auto; padding: 60px 0; }
.hero__tag {
  color: var(--gold); font-weight: 700; font-size: 15px; letter-spacing: .05em;
  display: flex; align-items: center; gap: 14px; margin-bottom: 18px;
}
.hero__tag::before { content: ""; width: 40px; height: 2px; background: var(--gold); }
.hero__title {
  font-family: var(--serif); font-weight: 700; font-size: clamp(34px, 5vw, 64px); line-height: 1.35;
  letter-spacing: .04em; margin-bottom: 28px;
}
.hero__title em { font-style: normal; color: var(--gold); }
.hero__lead { font-size: 16px; max-width: 640px; margin-bottom: 36px; line-height: 2; }
.hero__btns { display: flex; flex-wrap: wrap; gap: 16px; }
.hero__scroll {
  position: absolute; left: 0; bottom: -40px; color: rgba(255,255,255,.6);
  font-size: 12px; letter-spacing: .2em; display: flex; align-items: center; gap: 12px;
}
.hero__scroll::after { content: ""; width: 1px; height: 40px; background: rgba(255,255,255,.4); }

/* ---------- Sections ---------- */
.section { padding: 100px 0; }
.section--white { background: var(--white); }
.section--cream { background: var(--cream); }
.section--navy { background: var(--navy); color: var(--white); }
.section__head { text-align: center; margin-bottom: 56px; }
.section__en { color: var(--gold); font-weight: 700; font-size: 13px; letter-spacing: .2em; margin-bottom: 10px; }
.section__title {
  font-family: var(--serif); font-weight: 700; font-size: clamp(28px, 3.4vw, 40px);
  letter-spacing: .06em; line-height: 1.4; color: var(--navy);
}
.section--navy .section__title { color: var(--white); }
.section__title em { font-style: normal; color: var(--gold); }
.section__head::after {
  content: ""; display: block; width: 48px; height: 3px; background: var(--gold); margin: 22px auto 0;
}
.section__lead { margin-top: 16px; color: var(--text-light); font-size: 15px; }
.section--navy .section__lead { color: rgba(255,255,255,.8); }

/* ---------- Strengths ---------- */
.strengths { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.strength {
  background: var(--cream); border: 1px solid var(--line); border-top: 3px solid var(--gold);
  padding: 32px 28px 28px; display: flex; flex-direction: column;
}
.strength__head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.strength__icon {
  width: 50px; height: 50px; background: var(--navy); display: grid; place-items: center; border-radius: 2px;
}
.strength__icon svg { width: 24px; height: 24px; fill: var(--gold); }
.strength__num { font-family: var(--serif); font-size: 32px; color: #b7bcc6; }
.strength__title {
  font-family: var(--serif); font-size: 18px; font-weight: 700; line-height: 1.6; color: var(--navy); margin-bottom: 14px;
}
.strength__text { font-size: 14px; color: var(--text-light); flex: 1; margin-bottom: 20px; }

/* ---------- Steps ---------- */
.steps { display: flex; flex-direction: column; gap: 0; margin-bottom: 48px; }
.step {
  background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--gold);
  padding: 28px 32px; display: flex; gap: 28px; position: relative;
}
.step + .step { margin-top: 44px; }
.step + .step::before {
  content: ""; position: absolute; left: 50%; top: -30px; width: 14px; height: 14px;
  border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: translateX(-50%) rotate(45deg);
}
.step__side { display: flex; flex-direction: column; align-items: center; gap: 14px; flex-shrink: 0; width: 80px; }
.step__num {
  background: var(--navy); color: var(--gold); font-size: 12px; font-weight: 700; letter-spacing: .1em;
  padding: 4px 10px; white-space: nowrap;
}
.step__icon {
  width: 46px; height: 46px; border-radius: 50%; background: var(--cream); border: 1px solid var(--line);
  display: grid; place-items: center;
}
.step__icon svg { width: 22px; height: 22px; fill: var(--navy); }
.step__title { font-family: var(--serif); font-size: 20px; color: var(--navy); margin-bottom: 8px; }
.step__body p { color: var(--text-light); font-size: 15px; }

/* ---------- Levels ---------- */
.levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 40px; }
.level { background: var(--cream); border: 1px solid var(--line); border-top: 4px solid; padding: 32px 28px; }
.level--1 { border-top-color: var(--red); }
.level--2 { border-top-color: var(--orange); }
.level--3 { border-top-color: var(--blue); }
.level__head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.level__badge { color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .08em; padding: 4px 12px; }
.level--1 .level__badge { background: var(--red); }
.level--2 .level__badge { background: var(--orange); }
.level--3 .level__badge { background: var(--blue); }
.level__icon { width: 22px; height: 22px; }
.level--1 .level__icon { fill: var(--red); }
.level--2 .level__icon { fill: var(--orange); }
.level--3 .level__icon { fill: var(--blue); }
.level__title { font-family: var(--serif); font-size: 18px; color: var(--navy); margin-bottom: 16px; }
.level__list li { font-size: 14px; color: var(--text-light); padding-left: 16px; position: relative; margin-bottom: 6px; }
.level__list li::before {
  content: ""; position: absolute; left: 0; top: .75em; border: 4px solid transparent; border-left: 6px solid var(--gold);
}
.level__ok { margin-top: 18px; color: var(--green); font-weight: 700; display: flex; align-items: center; gap: 8px; }
.level__ok::before {
  content: ""; width: 18px; height: 18px; border-radius: 50%; background: var(--green);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E");
  background-size: 12px; background-repeat: no-repeat; background-position: center;
}
.note {
  max-width: 900px; margin: 0 auto; background: var(--cream); border-left: 4px solid var(--gold);
  padding: 20px 28px; display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--text-light);
}
.note .icon { color: var(--gold); margin-top: .35em; }

/* ---------- Cases ---------- */
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.case { background: var(--navy-light); border: 1px solid rgba(255,255,255,.08); overflow: hidden; }
.case__img { aspect-ratio: 948 / 440; overflow: hidden; }
.case__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.case:hover .case__img img { transform: scale(1.05); }
.case__body { padding: 24px 26px 28px; }
.case__title { font-family: var(--serif); font-size: 18px; margin-bottom: 12px; }
.case__body p { font-size: 14px; color: rgba(255,255,255,.8); }

/* ---------- Areas ---------- */
.areas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.area { background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--navy); padding: 30px 28px; font-size: 15px; color: var(--text-light); }
.area--dark { background: var(--navy); color: rgba(255,255,255,.85); border-top-color: var(--gold); }
.area__title {
  font-family: var(--serif); font-size: 18px; color: var(--navy); display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
}
.area--dark .area__title { color: var(--white); }
.area__title .icon { color: var(--gold); }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq__item { background: var(--white); border: 1px solid var(--line); }
.faq__item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 16px;
  padding: 20px 56px 20px 24px; font-weight: 700; font-size: 16px; color: var(--navy); position: relative;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: ""; position: absolute; right: 26px; top: 50%; width: 10px; height: 10px;
  border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold);
  transform: translateY(-70%) rotate(45deg); transition: transform .3s;
}
.faq__item[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq__q {
  width: 34px; height: 34px; background: var(--navy); color: var(--gold); display: grid; place-items: center;
  font-family: var(--serif); font-size: 17px; flex-shrink: 0; border-radius: 2px;
}
.faq__a { padding: 0 24px 24px 74px; color: var(--text-light); font-size: 15px; }

/* ---------- Tables ---------- */
.info-table { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--line); font-size: 15px; }
.info-table th, .info-table td { padding: 16px 22px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.info-table th { background: var(--navy); color: var(--white); width: 180px; text-align: center; font-weight: 700; border-bottom-color: rgba(255,255,255,.12); }
.info-table td { color: var(--text-light); }
.info-table tr:last-child th, .info-table tr:last-child td { border-bottom: 0; }
.recruit__label { text-align: center; font-family: var(--serif); font-weight: 700; font-size: 18px; color: var(--navy); margin: 44px 0 20px; }
.recruit__btns { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: stretch; }
.contact__tel { background: var(--navy-light); border: 1px solid rgba(255,255,255,.1); padding: 36px 32px; display: flex; gap: 20px; align-items: flex-start; }
.contact__tel-icon { width: 52px; height: 52px; background: var(--gold); display: grid; place-items: center; flex-shrink: 0; }
.contact__tel-icon svg { width: 24px; height: 24px; fill: var(--navy-dark); }
.contact__tel-label { font-size: 13px; color: rgba(255,255,255,.75); }
.contact__tel-num { display: block; font-family: var(--serif); font-size: 34px; font-weight: 700; line-height: 1.3; margin: 4px 0 6px; }
.contact__tel-hours { font-size: 13px; color: rgba(255,255,255,.75); }
.form { background: var(--navy-light); border: 1px solid rgba(255,255,255,.1); padding: 36px 32px; }
.form__row { margin-bottom: 20px; }
.form__row label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.req { color: var(--gold); font-size: 12px; margin-left: 4px; }
.form input, .form textarea {
  width: 100%; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.25); color: var(--white);
  padding: 12px 14px; font-size: 15px; font-family: inherit; border-radius: 2px; transition: border-color .2s;
}
.form input::placeholder, .form textarea::placeholder { color: rgba(255,255,255,.4); }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--gold); }
.form textarea { resize: vertical; min-height: 120px; }
.form__status { margin-top: 14px; font-size: 14px; min-height: 1.5em; }
.form__status.is-error { color: #ff8a80; }
.form__status.is-success { color: #8de4a9; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-dark); color: rgba(255,255,255,.8); padding: 64px 0 36px; font-size: 14px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1.2fr 1fr 1fr; gap: 32px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer__brand img { width: 64px; margin-bottom: 14px; border-radius: 2px; }
.footer__title { color: var(--gold); font-size: 14px; font-weight: 700; margin-bottom: 12px; }
.footer__tel { display: block; font-size: 22px; font-weight: 700; color: var(--white); margin-bottom: 14px; }
.footer__nav li { margin-bottom: 6px; }
.footer__nav a:hover { color: var(--gold); }
.footer__copy { text-align: center; margin-top: 28px; font-size: 13px; color: rgba(255,255,255,.55); }

/* ---------- Fixed UI ---------- */
.tel-fab {
  display: none; position: fixed; right: 16px; bottom: 16px; z-index: 90;
  background: var(--gold); color: var(--navy-dark); font-weight: 700; font-size: 13px;
  padding: 10px 16px; border-radius: 999px; box-shadow: 0 4px 16px rgba(0,0,0,.3); align-items: center; gap: 8px;
}
.tel-fab svg { width: 20px; height: 20px; fill: currentColor; }
.to-top {
  position: fixed; right: 24px; bottom: 24px; width: 46px; height: 46px; background: var(--gold); border: 0;
  cursor: pointer; z-index: 80; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; border-radius: 2px;
}
.to-top.is-visible { opacity: 1; visibility: visible; }
.to-top svg { width: 28px; height: 28px; fill: var(--navy-dark); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .strengths { grid-template-columns: repeat(2, 1fr); }
  .nav__list { gap: 20px; }
}
@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .pc { display: none; }
  .header__inner { gap: 12px; }
  .header__logo img { width: 52px; }
  .header__tel { display: none; }
  .menu-btn { display: flex; margin-left: auto; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; margin: 0; z-index: 99;
    background: var(--navy); transform: translateX(100%); transition: transform .3s; overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .nav.is-open { transform: translateX(0); }
  .nav__list { flex-direction: column; gap: 0; padding: 12px 0; }
  .nav__list a { display: block; padding: 16px 28px; font-size: 17px; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav__list a::after { display: none; }
  .hero { min-height: 0; height: auto; }
  .hero__inner { padding: 80px 0 90px; }
  .hero__lead { font-size: 15px; }
  .hero__scroll { display: none; }
  .section { padding: 64px 0; }
  .section__head { margin-bottom: 36px; }
  .levels, .cases, .areas { grid-template-columns: 1fr; }
  .step { flex-direction: column; gap: 16px; padding: 22px 20px; }
  .step__side { flex-direction: row; width: auto; }
  .contact { grid-template-columns: 1fr; }
  .contact__tel-num { font-size: 28px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .tel-fab { display: inline-flex; }
  .to-top { right: 16px; bottom: 72px; width: 40px; height: 40px; }
}
@media (max-width: 600px) {
  .container { width: min(100% - 32px, 1200px); }
  .strengths { grid-template-columns: 1fr; }
  .hero__btns .btn { width: 100%; }
  .info-table th { width: 96px; padding: 12px 8px; font-size: 13px; }
  .info-table td { padding: 12px 14px; font-size: 14px; }
  .faq__item summary { padding: 16px 44px 16px 16px; font-size: 15px; }
  .faq__a { padding: 0 16px 18px 16px; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__title { font-size: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
