/* ============================================================
   ESPOIR FRONTIER — Corporate Design System v1.0
   Editorial, quiet-luxury aesthetic. Static, zero-JS.
   ============================================================ */

:root {
  /* Brand palette — from ESPOIR_FRONTIER logo v1.0: orange #EF7328 / navy #1F2733 */
  --paper: #F8F4EC;
  --paper-deep: #F0EADD;
  --ink: #1F2733;
  --ink-soft: #59626E;
  --gold: #BE5314;        /* accent (readable orange, small text) */
  --gold-soft: #EF7328;   /* brand orange (marks, hovers, large accents) */
  --hairline: rgba(31, 39, 51, 0.18);
  --hairline-soft: rgba(31, 39, 51, 0.10);
  --serif: "EB Garamond", "Noto Serif JP", "Times New Roman", serif;
  --sans: "Inter", "Noto Sans JP", "Helvetica Neue", Arial, sans-serif;
  --measure: 34em;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--gold); color: var(--paper); }

a { color: inherit; text-decoration: none; }

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

/* ---------- Layout ---------- */

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 64px);
}

/* ---------- Header ---------- */

.topline {
  border-bottom: 1px solid var(--hairline-soft);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.topline .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 40px;
  gap: 16px;
}

.topline .cities { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.lang-switch { display: flex; gap: 14px; align-items: center; white-space: nowrap; }
.lang-switch a { padding: 2px 0; border-bottom: 1px solid transparent; transition: border-color .25s, color .25s; }
.lang-switch a:hover { border-color: var(--gold); color: var(--ink); }
.lang-switch .active { color: var(--ink); border-bottom: 1px solid var(--ink); }

.masthead { text-align: center; padding: clamp(30px, 5vw, 48px) 20px clamp(18px, 3vw, 26px); }

.wordmark {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(21px, 3.2vw, 30px);
  letter-spacing: 0.34em;
  text-transform: uppercase;
  text-indent: 0.34em; /* optical centering against tracking */
}

.wordmark .accent { color: var(--gold); }

.wordmark img {
  display: block;
  margin: 0 auto;
  height: clamp(34px, 4.5vw, 48px);
  width: auto;
}

.tagline-mini {
  display: block;
  margin-top: 10px;
  font-family: var(--sans);
  font-size: 9.5px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-indent: 0.42em;
}

.mainnav {
  border-top: 1px solid var(--hairline-soft);
  border-bottom: 1px solid var(--hairline);
}

.mainnav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(22px, 4.5vw, 58px);
  padding: 15px 16px;
}

.mainnav a {
  font-size: 11.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: color .25s, border-color .25s;
}

.mainnav a:hover { color: var(--ink); border-color: var(--gold); }
.mainnav a.current { color: var(--ink); border-color: var(--ink); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: clamp(90px, 14vw, 190px) 24px clamp(100px, 15vw, 200px);
}

.hero-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
  pointer-events: none;
}

.hero-inner { position: relative; }

.eyebrow {
  font-size: 10.5px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 30px;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 6.2vw, 74px);
  line-height: 1.16;
  letter-spacing: 0.015em;
  max-width: 17em;
  margin: 0 auto;
}

.hero .sub {
  max-width: 36em;
  margin: 34px auto 0;
  color: var(--ink-soft);
  font-size: clamp(14px, 1.4vw, 16.5px);
  line-height: 1.9;
}

.hero .down {
  display: inline-block;
  margin-top: 56px;
  font-size: 10px;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 6px;
  transition: color .25s, border-color .25s;
}
.hero .down:hover { color: var(--gold); border-color: var(--gold); }

/* ---------- Page hero (interior pages) ---------- */

.page-hero {
  text-align: center;
  padding: clamp(64px, 9vw, 120px) 24px clamp(56px, 8vw, 100px);
  border-bottom: 1px solid var(--hairline-soft);
}

.page-hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 4.6vw, 54px);
  line-height: 1.2;
}

.page-hero .sub {
  max-width: 38em;
  margin: 26px auto 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.9;
}

/* ---------- Sections ---------- */

section.block { padding: clamp(70px, 10vw, 140px) 0; }
section.block + section.block { border-top: 1px solid var(--hairline-soft); }

.sec-head {
  display: flex;
  align-items: baseline;
  gap: 22px;
  margin-bottom: clamp(38px, 5vw, 64px);
}

.sec-num {
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--gold);
  white-space: nowrap;
}

.sec-head h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(24px, 3.2vw, 38px);
  line-height: 1.25;
}

.sec-head .rule { flex: 1; height: 1px; background: var(--hairline-soft); align-self: center; }

.lede {
  font-family: var(--serif);
  font-size: clamp(19px, 2.2vw, 25px);
  line-height: 1.65;
  max-width: 30em;
  font-weight: 400;
}

.prose { max-width: var(--measure); color: var(--ink-soft); }
.prose p + p { margin-top: 1.4em; }
.prose strong { color: var(--ink); font-weight: 500; }

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(36px, 6vw, 96px);
  align-items: start;
}

@media (max-width: 820px) {
  .two-col { grid-template-columns: 1fr; }
}

/* ---------- Home tiles ---------- */

.tiles {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--hairline);
  border-left: 1px solid var(--hairline);
}

.tile {
  border-bottom: 1px solid var(--hairline);
  padding: clamp(40px, 5vw, 72px) clamp(26px, 3vw, 48px);
  display: flex;
  flex-direction: column;
  min-height: 320px;
  background: transparent;
  transition: background .35s;
}

.tile:hover { background: var(--paper-deep); }

.tile .t-num {
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 26px;
}

.tile h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(21px, 2.4vw, 28px);
  margin-bottom: 16px;
}

.tile p { color: var(--ink-soft); font-size: 15px; line-height: 1.85; flex: 1; }

.tile .t-link {
  margin-top: 30px;
  font-size: 10.5px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink);
}

.tile .t-link span { color: var(--gold); transition: padding-left .3s; }
.tile:hover .t-link span { padding-left: 8px; }

@media (max-width: 820px) {
  .tiles { grid-template-columns: 1fr; }
  .tile { min-height: 0; }
}

/* ---------- Quote band ---------- */

.quote-band {
  background: var(--ink);
  color: var(--paper);
  text-align: center;
  padding: clamp(80px, 11vw, 150px) 24px;
}

.quote-band blockquote {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(22px, 3.4vw, 40px);
  line-height: 1.5;
  max-width: 24em;
  margin: 0 auto;
}

.quote-band .qmark { color: var(--gold-soft); }

.quote-band cite {
  display: block;
  margin-top: 34px;
  font-family: var(--sans);
  font-style: normal;
  font-size: 10.5px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(247, 243, 234, 0.6);
}

/* ---------- Definition table (company profile) ---------- */

.def-table { width: 100%; border-collapse: collapse; }

.def-table th, .def-table td {
  text-align: left;
  vertical-align: top;
  padding: 20px 8px;
  border-bottom: 1px solid var(--hairline-soft);
  font-weight: 300;
}

.def-table th {
  width: 32%;
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  padding-top: 25px;
  white-space: nowrap;
}

.def-table td { color: var(--ink); font-size: 15px; line-height: 1.8; }
.def-table td .note { color: var(--ink-soft); font-size: 13px; }

@media (max-width: 640px) {
  .def-table th, .def-table td { display: block; width: 100%; }
  .def-table th { padding-bottom: 2px; border-bottom: none; }
  .def-table td { padding-top: 4px; }
}

/* ---------- Pillars (business) ---------- */

.pillar {
  display: grid;
  grid-template-columns: 110px minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(20px, 4vw, 64px);
  padding: clamp(44px, 6vw, 72px) 0;
  border-bottom: 1px solid var(--hairline-soft);
}

.pillar:first-of-type { border-top: 1px solid var(--hairline); }

.pillar .p-num {
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 40px);
  color: var(--gold-soft);
  line-height: 1;
}

.pillar h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(21px, 2.4vw, 28px);
  line-height: 1.35;
}

.pillar .p-tag {
  display: block;
  margin-top: 12px;
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.pillar p { color: var(--ink-soft); font-size: 15px; }
.pillar p + p { margin-top: 1.2em; }

@media (max-width: 820px) {
  .pillar { grid-template-columns: 1fr; gap: 14px; }
}

/* ---------- Group entities ---------- */

.entity {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(24px, 5vw, 80px);
  padding: clamp(44px, 6vw, 72px) 0;
  border-bottom: 1px solid var(--hairline-soft);
}

.entity:first-of-type { border-top: 1px solid var(--hairline); }

.entity .e-city {
  font-size: 10.5px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}

.entity h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(21px, 2.6vw, 30px);
  line-height: 1.35;
}

.entity .e-role {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  color: var(--ink-soft);
}

.entity .e-body { color: var(--ink-soft); font-size: 15px; }
.entity .e-body p + p { margin-top: 1.2em; }

.entity .e-meta {
  margin-top: 22px;
  font-size: 12.5px;
  color: var(--ink-soft);
  border-top: 1px solid var(--hairline-soft);
  padding-top: 16px;
  line-height: 2;
}

@media (max-width: 820px) {
  .entity { grid-template-columns: 1fr; gap: 16px; }
}

/* ---------- Compliance strip ---------- */

.compliance {
  background: var(--paper-deep);
  border-top: 1px solid var(--hairline-soft);
  border-bottom: 1px solid var(--hairline-soft);
  padding: clamp(56px, 8vw, 100px) 0;
}

.compliance .lede { max-width: 36em; }

.compliance .prose { margin-top: 26px; }

/* ---------- Notice box ---------- */

.notice {
  border: 1px solid var(--hairline);
  padding: clamp(28px, 4vw, 44px);
  max-width: 46em;
}

.notice h4 {
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 16px;
}

.notice p { color: var(--ink-soft); font-size: 14px; }
.notice p + p { margin-top: 1em; }

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 96px);
}

@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-card h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 24px;
  margin-bottom: 20px;
}

.contact-card .c-label {
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 24px 0 6px;
}

.contact-card p { color: var(--ink-soft); font-size: 15px; }

.contact-card .tel {
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 32px);
  color: var(--ink);
  letter-spacing: 0.04em;
}

/* ---------- CTA link row ---------- */

.link-line {
  display: inline-block;
  margin-top: 40px;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 6px;
  transition: color .25s, border-color .25s;
}

.link-line:hover { color: var(--gold); border-color: var(--gold); }

/* ---------- Footer ---------- */

footer {
  border-top: 1px solid var(--hairline);
  padding: clamp(56px, 8vw, 96px) 0 46px;
  background: var(--paper);
}

.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
}

@media (max-width: 820px) { .foot-grid { grid-template-columns: 1fr; } }

.foot-wordmark {
  font-family: var(--serif);
  font-size: 17px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.foot-addr { margin-top: 20px; font-size: 12.5px; color: var(--ink-soft); line-height: 2; }

.foot-col h5 {
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 18px;
}

.foot-col ul { list-style: none; }
.foot-col li { margin-bottom: 10px; }
.foot-col a { font-size: 13.5px; color: var(--ink-soft); transition: color .25s; }
.foot-col a:hover { color: var(--ink); }

.foot-legal {
  margin-top: clamp(48px, 6vw, 72px);
  padding-top: 28px;
  border-top: 1px solid var(--hairline-soft);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
  font-size: 11px;
  color: var(--ink-soft);
}

.foot-disclaimer {
  margin-top: 20px;
  font-size: 11px;
  line-height: 1.9;
  color: var(--ink-soft);
  max-width: 62em;
}

/* ---------- お問い合わせフォーム（v2・2026-07-09再設計） ---------- */
.c-form { max-width: 680px; margin-top: clamp(32px, 4vw, 48px); }
.c-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.c-field { margin-bottom: clamp(22px, 3vw, 30px); }
.c-field label { display: block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 10px; }
.c-field .req { color: var(--gold); margin-left: 3px; }
.c-form input[type="text"], .c-form input[type="email"], .c-form textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: #fff;
  border: 1px solid var(--hairline); border-radius: 3px; padding: 14px 16px;
  transition: border-color .2s, box-shadow .2s; }
.c-form input:focus, .c-form textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(198,161,91,.14); }
.c-form textarea { resize: vertical; min-height: 160px; line-height: 1.75; }
.c-consent { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; line-height: 1.65; color: var(--ink-soft); margin: 4px 0 clamp(26px,3vw,34px); }
.c-consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--gold); flex-shrink: 0; }
.c-consent a { color: var(--ink); border-bottom: 1px solid var(--gold); }
.c-submit { font: inherit; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--paper);
  background: var(--ink); border: 0; border-radius: 3px; padding: 16px 48px; cursor: pointer; transition: background .25s, transform .1s; }
.c-submit:hover { background: var(--gold); color: var(--ink); }
.c-submit:active { transform: translateY(1px); }
.c-form-msg { padding: 16px 20px; margin-bottom: 28px; font-size: 15px; border-radius: 3px; line-height: 1.6; }
.c-form-msg.is-ok { background: rgba(76,120,60,.1); border: 1px solid rgba(76,120,60,.4); color: #2c4a20; }
.c-form-msg.is-err { background: rgba(180,60,40,.08); border: 1px solid rgba(180,60,40,.35); color: #7a1f14; }
