@charset "UTF-8";
/* ==========================================================
   株式会社内外設計 暫定サイト
   ========================================================== */
:root {
  --navy: #2b3d55;
  --navy-deep: #1c2a3d;
  --text: #222;
  --muted: #555;
  --gray: #f0f0f0;
  --line: #cfd4db;
  --accent: #2f5fa7;
  --header-h: 72px;
  --en: "Jost", "Futura", "Century Gothic", sans-serif;
  --ja: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body { margin: 0; font-family: var(--ja); color: var(--text); font-size: 16px; line-height: 1.9; letter-spacing: .04em; background: #fff; -webkit-text-size-adjust: 100%; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
table { border-collapse: collapse; width: 100%; }
address { font-style: normal; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 200; background: #fff; padding: 8px 16px; }
.skip:focus { top: 8px; }
.sp-only { display: none; }
.small { font-size: 13px; font-weight: 400; }

.container { width: min(1080px, 100% - 48px); margin-inline: auto; }
.container--narrow { width: min(880px, 100% - 48px); }

/* ---------- Header ---------- */
.header { position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h); background: rgba(20, 30, 45, .55); backdrop-filter: blur(6px); color: #fff; }
.header__inner { height: 100%; width: min(1200px, 100% - 40px); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; white-space: nowrap; }
.logo__en { font-family: var(--en); font-style: italic; font-weight: 500; font-size: 24px; letter-spacing: .06em; }
.logo__ja { font-size: 15px; }
.logo__img { width: 284px; height: auto; }
.logo__tag { font-size: 10px; border: 1px solid currentColor; padding: 1px 6px; line-height: 1.5; }
.gnav ul { display: flex; gap: 28px; }
.gnav a { font-size: 14px; text-decoration: none; padding: 6px 0; position: relative; }
.gnav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transition: transform .3s; }
.gnav a:hover::after { transform: scaleX(1); }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; place-items: center; text-align: center; color: #fff;
  background: var(--navy) url(../images/hero-poster.jpg) center / cover no-repeat; overflow: hidden; }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(10, 20, 35, .25), rgba(10, 20, 35, .35)); }
.hero__body { position: relative; z-index: 2; padding: 0 20px; }
.hero__catch { font-weight: 400; font-size: clamp(24px, 3.4vw, 40px); letter-spacing: .5em; line-height: 1.7; text-shadow: 0 2px 12px rgba(0, 0, 0, .35); margin-right: -.5em; }
.hero__label { display: inline-block; margin-top: 20px; background: #fff; color: var(--text); font-size: 14px; font-weight: 500; letter-spacing: .15em; padding: 4px 14px; }

.notice { background: var(--navy-deep); color: #fff; text-align: center; padding: 15px 20px; font-size: 15px; }
.notice a { color: #fff; }

/* ---------- Section common ---------- */
.section { padding: 120px 0; overflow-x: clip; }
.section--gray { background: var(--gray); }
.section--dark { position: relative; color: #fff; background: #3a3f46 url(../images/about.jpg) center / cover no-repeat; }
.section--dark::before { content: ""; position: absolute; inset: 0; background: rgba(28, 36, 48, .86); }
.section--dark .container { position: relative; }
.en-title { font-family: var(--en); font-style: italic; font-weight: 500; font-size: clamp(30px, 4vw, 44px); letter-spacing: .22em; line-height: 1.25; margin-bottom: 32px; }
.en-title__ja { display: block; font-family: var(--ja); font-style: normal; font-size: 14px; letter-spacing: .2em; color: var(--muted); margin-top: 8px; }
.en-title--white { color: #fff; }
.en-title--sm { font-size: 26px; letter-spacing: .15em; margin-bottom: 16px; }
.section__intro { max-width: 800px; margin-bottom: 56px; }
.lead { font-size: clamp(19px, 1.9vw, 23px); line-height: 1.8; margin-bottom: 20px; }

/* ---------- Split (image + navy panel) ---------- */
.split { position: relative; width: min(1180px, 100% - 48px); margin-inline: auto; display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
.split::before { content: ""; position: absolute; top: 8%; bottom: 8%; left: -100vw; right: 25%; background: var(--gray); z-index: -1; }
.split--reverse::before { left: 25%; right: -100vw; }
.split__img { grid-column: 2; grid-row: 1; position: relative; z-index: 1; margin-bottom: 120px; }
.split__img img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.split__panel { grid-column: 1; grid-row: 1; position: relative; z-index: 2; margin-top: 160px; margin-right: -12%; }
.split__panel .en-title { margin: 0 0 24px 18%; }
.split__text { background: var(--navy); color: #fff; padding: 56px 12% 64px 18%; }
.split__text p:not(.lead) { font-size: 1em; }
.split__text p + p { margin-top: 12px; }
.split__note { opacity: .85; margin-top: 24px !important; }
.split--reverse .split__img { grid-column: 1; }
.split--reverse .split__panel { grid-column: 2; margin-right: 0; margin-left: -12%; }
.split--reverse .split__panel .en-title { text-align: right; margin: 0 18% 24px 0; }
.split--reverse .split__text { padding: 56px 18% 64px 12%; }
#about .split { margin-bottom: 40px; }

/* ---------- Points ---------- */
.points { display: grid; gap: 72px; }
.point { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.point:nth-child(even) .point__img { order: 2; }
.point__img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.point__title { font-size: 21px; font-weight: 500; margin-bottom: 16px; display: flex; align-items: baseline; gap: 14px; }
.point__title span { font-family: var(--en); font-style: italic; font-size: 32px; color: var(--accent); letter-spacing: .05em; }
.point__body p { font-size: 1em; color: #333; }
.point__body p + p { margin-top: 10px; }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.services li { display: flex; align-items: center; gap: 20px; background: #fff; padding: 14px; border-left: 3px solid var(--navy); }
.services img { flex: none; width: 128px; height: 128px; object-fit: cover; }
.services span { font-size: 1em; font-weight: 500; line-height: 1.6; }

/* ---------- Software ---------- */
.software { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.software dt { font-size: 1em; font-weight: 500; border-bottom: 1px solid rgba(255, 255, 255, .4); padding-bottom: 8px; margin-bottom: 12px; }
.software dd { font-size: 1em; line-height: 2; }

/* ---------- Record ---------- */
.record-tabs { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--navy); border-bottom-width: 2px; margin-bottom: 10px; }
.record-tabs__tab { min-height: 56px; padding: 12px 8px; background: #fff; color: var(--text); border: 0; border-left: 1px solid var(--navy); font: inherit; font-size: 17px; font-weight: 500; letter-spacing: .05em; cursor: pointer; transition: background .2s, color .2s; }
.record-tabs__tab:first-child { border-left: 0; }
.record-tabs__tab:hover { background: var(--gray); }
.record-tabs__tab[aria-selected="true"] { background: #111; color: #fff; }
.record { border-top: 1px solid var(--navy); }
.record th, .record td { padding: 28px 20px; border-bottom: 1px solid var(--navy); font-size: 1em; text-align: left; }
.record th { width: 120px; color: var(--navy); font-weight: 500; border-right: 1px solid var(--navy); padding-left: 0; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 16px; margin-top: 32px; padding: 16px 32px; min-height: 48px; border: 1px solid currentColor; text-decoration: none; font-size: 15px; letter-spacing: .1em; transition: background .3s, color .3s; }
.btn::after { content: ""; width: 28px; height: 1px; background: currentColor; transition: transform .3s; }
.btn:hover::after { transform: translateX(6px); }
.btn--light { color: #fff; }
.btn--light:hover { background: #fff; color: var(--navy); }

/* ---------- Recruit links ---------- */
.recruit-links { display: grid; gap: 12px; margin-top: 24px; }
.recruit-link { position: relative; display: flex; flex-direction: column; gap: 2px; min-height: 64px; padding: 14px 56px 14px 20px; border: 1px solid rgba(255, 255, 255, .8); color: #fff; text-decoration: none; transition: background .3s, color .3s; }
.recruit-link::after { content: ""; position: absolute; right: 20px; top: 50%; width: 24px; height: 1px; background: currentColor; transition: transform .3s; }
.recruit-link:hover { background: #fff; color: var(--navy); }
.recruit-link:hover::after { transform: translateX(6px); }
.recruit-link__target { font-size: 13px; opacity: .85; letter-spacing: .08em; }
.recruit-link__name { font-size: 17px; font-weight: 500; letter-spacing: .08em; }

/* ---------- Company ---------- */
.company th, .company td { border-bottom: 1px solid var(--line); padding: 16px 12px; vertical-align: top; font-size: 1em; line-height: 1.9; text-align: left; }
.company tr:first-child th, .company tr:first-child td { border-top: 1px solid var(--line); }
.company th { width: 30%; font-weight: 500; }
.clients { columns: 2; column-gap: 32px; }
.clients li { break-inside: avoid; }

/* ---------- Access ---------- */
.access__address { margin-bottom: 24px; }
.map { aspect-ratio: 16 / 9; background: #ddd; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Contact ---------- */
.contact { position: relative; padding: 100px 24px; background: #555 url(../images/hero.jpg) center 85% / cover no-repeat; }
.contact::before { content: ""; position: absolute; inset: 0; background: rgba(255, 255, 255, .15); backdrop-filter: grayscale(1); -webkit-backdrop-filter: grayscale(1); }
.contact__box { position: relative; width: min(800px, 100%); margin-inline: auto; background: rgba(17, 17, 17, .92); color: #fff; text-align: center; padding: 56px 32px; }
.contact__title { font-size: 24px; font-weight: 400; letter-spacing: .15em; margin-bottom: 20px; }
.contact__title .en { display: block; font-family: var(--en); font-style: italic; font-size: 14px; letter-spacing: .2em; margin-bottom: 6px; }
.contact__box > p { font-size: 1em; }
.contact__mail { margin-top: 8px; min-width: 280px; justify-content: center; }
.contact__tel { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px 40px; margin-top: 28px; font-size: 26px; letter-spacing: .08em; }
.contact__tel a { text-decoration: none; }
.contact__tel span { font-family: var(--en); font-style: italic; font-size: 14px; margin-right: 10px; vertical-align: middle; }

/* ---------- Side banner (追従お問い合わせ) ---------- */
.side-banner { position: fixed; right: 0; top: 50%; z-index: 90; transform: translateY(-50%); display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 28px 18px; background: var(--accent); color: #fff; text-decoration: none; border: 2px solid #fff; border-right: 0; border-radius: 6px 0 0 6px; box-shadow: 0 6px 24px rgba(0, 0, 0, .35); transition: background .3s, transform .3s, opacity .3s, visibility .3s, padding .3s; }
.side-banner:hover { background: #1f4a8c; padding-right: 24px; }
.side-banner.is-hidden { opacity: 0; visibility: hidden; transform: translate(100%, -50%); }
.side-banner__icon { width: 28px; height: 28px; }
.side-banner__en { writing-mode: vertical-rl; font-family: var(--en); font-style: italic; font-size: 12px; letter-spacing: .2em; opacity: .9; }
.side-banner__ja { writing-mode: vertical-rl; font-size: 17px; font-weight: 500; letter-spacing: .25em; }

/* ---------- Footer ---------- */
.footer { position: relative; background: #222; color: #ddd; font-size: 14px; padding: 40px 0 0; }
.footer__inner { width: min(880px, 100% - 48px); margin-inline: auto; }
.footer__row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin: 20px 0; flex-wrap: wrap; }
.footer__logo { margin-bottom: 14px; }
.footer__logo img { width: 180px; height: auto; }
.footer__copy { margin-top: 12px; padding: 16px 24px; border-top: 1px solid rgba(255, 255, 255, .12); text-align: center; color: #bbb; }
.footer__copy small { font-size: 13px; }

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1024px) {
  .gnav ul { gap: 18px; }
  .logo__tag { display: none; }
  .services { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  :root { --header-h: 60px; }
  body { font-size: 15px; }
  .sp-only { display: inline; }
  .pc-only { display: none; }
  .logo__en { font-size: 20px; }
  .logo__img { width: 220px; }
  .logo__ja { font-size: 13px; }

  .nav-toggle { display: grid; place-items: center; width: 48px; height: 48px; margin-right: -8px; background: none; border: 0; color: #fff; cursor: pointer; }
  .nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after { display: block; width: 24px; height: 2px; background: currentColor; transition: transform .3s, background .3s; }
  .nav-toggle__bar { position: relative; }
  .nav-toggle__bar::before, .nav-toggle__bar::after { content: ""; position: absolute; left: 0; }
  .nav-toggle__bar::before { top: -7px; }
  .nav-toggle__bar::after { top: 7px; }
  .is-nav-open .nav-toggle__bar { background: transparent; }
  .is-nav-open .nav-toggle__bar::before { transform: translateY(7px) rotate(45deg); }
  .is-nav-open .nav-toggle__bar::after { transform: translateY(-7px) rotate(-45deg); }

  .gnav { position: fixed; top: var(--header-h); left: 0; right: 0; background: rgba(20, 30, 45, .97); visibility: hidden; opacity: 0; transition: opacity .3s, visibility .3s; }
  .is-nav-open .gnav { visibility: visible; opacity: 1; }
  .gnav ul { flex-direction: column; gap: 0; padding: 8px 24px 24px; }
  .gnav a { display: block; padding: 14px 0; font-size: 15px; border-bottom: 1px solid rgba(255, 255, 255, .15); }

  .hero__catch { letter-spacing: .3em; margin-right: -.3em; }
    .section { padding: 80px 0; }

  .split, .split--reverse { grid-template-columns: 1fr; width: 100%; }
  .split::before { display: none; }
  .split__img, .split--reverse .split__img { grid-column: 1; grid-row: 1; margin: 0 0 0 24px; }
  .split--reverse .split__img { margin: 0 24px 0 0; }
  .split__img img { aspect-ratio: 4 / 3; }
  .split__panel, .split--reverse .split__panel { grid-column: 1; grid-row: 2; margin: -48px 24px 0 0; }
  .split--reverse .split__panel { margin: -48px 0 0 24px; }
  .split__panel .en-title, .split--reverse .split__panel .en-title { margin: 0 0 16px 24px; text-align: left; position: relative; z-index: 3; background: #fff; display: inline-block; padding: 8px 16px 0 0; }
  .split--reverse .split__panel .en-title { margin-left: 0; padding-left: 24px; }
  .split__text, .split--reverse .split__text { padding: 36px 24px 44px; }
  #recruit .split__panel .en-title { background: #fff; }

  .points { gap: 56px; }
  .point { grid-template-columns: 1fr; gap: 20px; }
  .point:nth-child(even) .point__img { order: 0; }

  .services { grid-template-columns: 1fr; gap: 12px; }
  .services li { gap: 16px; padding: 10px; }
  .services img { width: 96px; height: 96px; }
  .software { grid-template-columns: 1fr; gap: 24px; }

  .company th, .company td { display: block; width: 100%; }
  .company th { border-bottom: 0; padding-bottom: 0; color: var(--accent); }
  .company tr:first-child td { border-top: 0; }
  .clients { columns: 1; }
  .record-tabs__tab { font-size: 15px; min-height: 48px; }
  .record th, .record td { padding: 18px 12px; }
  .record th { width: 64px; padding-left: 0; }
    .map { aspect-ratio: 4 / 3; }

  .contact { padding: 64px 16px; }
  .contact__box { padding: 40px 20px; }
  .contact__tel { font-size: 22px; flex-direction: column; align-items: center; }
    .side-banner { top: auto; left: 0; right: 0; bottom: 0; transform: none; flex-direction: row; justify-content: center; gap: 10px; min-height: 56px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--navy); border: 0; border-radius: 0; box-shadow: 0 -2px 12px rgba(0, 0, 0, .18); }
  .side-banner:hover { padding-right: 16px; }
  .side-banner.is-hidden { transform: translateY(100%); }
  .side-banner__en, .side-banner__ja { writing-mode: horizontal-tb; }
  .side-banner__en { font-size: 12px; }
  .side-banner__ja { font-size: 15px; letter-spacing: .15em; }
  .side-banner__icon { width: 20px; height: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
