/* ============================================================
   ALPHA Base株式会社 コーポレートサイト（デザイン案）
   方針: 余白と文字だけで信頼感を出す。コバルトブルー1色＋墨色。
   見出し=Shippori Mincho B1 / 本文=Noto Sans JP
   ============================================================ */

:root {
  --base-blue: #1328E8;       /* ブランドの青（旧 #0000EE を画面向けに調整） */
  --base-blue-deep: #0C1AB8;
  --ink: #0B1220;             /* 本文・フッター */
  --ink-soft: #3B4558;        /* 補助テキスト */
  --ink-mute: #5A6578;        /* ラベル */
  --paper: #FFFFFF;
  --mist: #F2F4F9;            /* 区切り用の薄い背景 */
  --line: #D9DEE8;

  --font-display: 'Shippori Mincho B1', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
  --font-body: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Hiragino Sans', 'Yu Gothic', sans-serif;

  --header-h: 68px;
  --wrap: 1120px;
  --gutter: 40px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; color-scheme: light; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.85;
  font-feature-settings: "palt";
  word-break: auto-phrase;      /* 日本語を文節で改行（未対応ブラウザは通常の改行） */
  line-break: strict;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, dl, dd, figure { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }

:focus-visible {
  outline: 3px solid var(--base-blue);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 4px;
}
.skip-link:focus { top: 12px; }

.sp-only { display: none; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }

.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  font-weight: 700;
  font-size: 20px;
  letter-spacing: .02em;
  text-decoration: none;
  color: var(--ink);
}

.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  position: relative;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  padding: 6px 0;
}
.nav-links a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--base-blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}
.nav-links a:not(.nav-cta):hover::after,
.nav-links a:not(.nav-cta).active::after { transform: scaleX(1); }

.nav-links a.nav-cta {
  background: var(--base-blue);
  color: #fff;
  padding: 9px 20px;
  border-radius: 6px;
  font-weight: 700;
  transition: background .2s ease;
}
.nav-links a.nav-cta:hover { background: var(--base-blue-deep); }

.hamburger {
  display: none;
  width: 44px; height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
  position: relative;
}
.hamburger span {
  position: absolute;
  left: 11px; right: 11px;
  height: 2px;
  background: var(--ink);
  transition: transform .2s ease, opacity .2s ease, top .2s ease;
}
.hamburger span:nth-child(1) { top: 15px; }
.hamburger span:nth-child(2) { top: 21px; }
.hamburger span:nth-child(3) { top: 27px; }
.hamburger.open span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* ---------- ヒーロー ---------- */
.hero {
  background: var(--base-blue);
  color: #fff;
  display: flex;
  align-items: center;
  min-height: min(calc(100svh - var(--header-h)), 760px);
  padding: 96px 0 104px;
}

.hero { position: relative; overflow: hidden; }
.hero__body { position: relative; z-index: 1; }
.hero__art {
  position: absolute;
  right: 0; bottom: 0;
  height: 100%;
  aspect-ratio: 1 / 1;
  pointer-events: none;
}
.hero__art img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: right bottom;
  mix-blend-mode: screen;   /* 黒を透明に扱い、白い線だけを青地に重ねる */
  opacity: .85;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 28%);
  mask-image: linear-gradient(to right, transparent 0, #000 28%);
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(26px, 7.8vw, 92px);
  line-height: 1.22;
  letter-spacing: -.01em;
}
.hero__title .ln { display: block; overflow: hidden; padding-bottom: .08em; }
.hero__title .ln > span {
  display: block;
  transform: translateY(105%);
  animation: rise .9s cubic-bezier(.2, .7, .1, 1) forwards;
}
.hero__title .ln:nth-child(2) > span { animation-delay: .12s; }

@keyframes rise { to { transform: translateY(0); } }

.hero__lead {
  margin-top: 40px;
  max-width: 31em;
  font-size: 18px;
  line-height: 1.9;
  color: rgba(255, 255, 255, .9);
}

.hero__actions {
  margin-top: 48px;
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 32px;
  border-radius: 6px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.btn--light { background: #fff; color: var(--base-blue); }
.btn--light:hover { background: var(--mist); }

.text-link {
  color: #fff;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: .3em;
  text-decoration-thickness: 1px;
}
.text-link:hover { text-decoration-thickness: 2px; }

/* ---------- セクション共通 ---------- */
.block { padding: 128px 0; }
.block--mist { background: var(--mist); }

.block__grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  column-gap: 72px;
}

.block__head { align-self: start; position: sticky; top: calc(var(--header-h) + 32px); }
.block__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 34px;
  line-height: 1.3;
}
.block__note {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-mute);
}

/* ---------- 事業内容 ---------- */
.svc { border-bottom: 1px solid var(--line); }
.svc__item {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.2fr);
  column-gap: 48px;
  padding: 36px 0;
  border-top: 1px solid var(--line);
}
.svc__item:first-child { border-top: 2px solid var(--ink); }
.svc__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  line-height: 1.55;
  text-wrap: balance;
}
.svc__text { font-size: 15.5px; line-height: 1.9; color: var(--ink-soft); max-width: 32em; }

/* ---------- 会社概要 ---------- */
.profile { width: 100%; border-collapse: collapse; }
.profile tr { border-top: 1px solid var(--line); }
.profile tr:first-child { border-top: 2px solid var(--ink); }
.profile tr:last-child { border-bottom: 1px solid var(--line); }
.profile th, .profile td { padding: 22px 0; vertical-align: top; text-align: left; }
.profile th {
  width: 9em;
  padding-right: 24px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-mute);
  white-space: nowrap;
}
.profile td { font-size: 16px; line-height: 1.85; }

/* ---------- お知らせ ---------- */
.news { border-bottom: 1px solid var(--line); }
.news__row { border-top: 1px solid var(--line); }
.news__row:first-child { border-top: 2px solid var(--ink); }

.news__line {
  display: grid;
  grid-template-columns: 6.5em 5.4em minmax(0, 1fr) 14px;
  column-gap: 20px;
  align-items: baseline;
  padding: 26px 0;
}
details.news__row > summary {
  list-style: none;
  cursor: pointer;
}
details.news__row > summary::-webkit-details-marker { display: none; }

.news__date { font-size: 14px; color: var(--ink-mute); font-variant-numeric: tabular-nums; }
.news__tag {
  display: block;
  text-align: center;
  padding: 1px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.7;
  border: 1px solid var(--ink-mute);
  color: var(--ink-mute);
}
.news__tag--key { background: var(--base-blue); border-color: var(--base-blue); color: #fff; }
.news__title { font-weight: 500; }

.news__toggle {
  position: relative;
  width: 14px; height: 14px;
  align-self: center;
}
.news__toggle::before, .news__toggle::after {
  content: "";
  position: absolute;
  background: var(--base-blue);
  left: 0; right: 0; top: 6px;
  height: 2px;
  transition: transform .2s ease;
}
.news__toggle::after { transform: rotate(90deg); }
details[open] .news__toggle::after { transform: rotate(0deg); }

.news__body {
  padding: 0 0 32px calc(6.5em + 5.4em + 40px);
  max-width: 44em;
  font-size: 15px;
  line-height: 1.9;
  color: var(--ink-soft);
}
.news__body dl {
  margin: 16px 0;
  display: grid;
  grid-template-columns: 8em minmax(0, 1fr);
  gap: 8px 16px;
}
.news__body dt { font-weight: 700; color: var(--ink); }

/* ---------- お問い合わせ ---------- */
.contact__lead { font-size: 16px; line-height: 1.9; max-width: 30em; margin-bottom: 40px; }

.form { max-width: 720px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.form__field { margin-bottom: 24px; }
.form__field label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 700; }
.req { color: var(--base-blue); margin-left: 2px; }

.form input[type="text"],
.form input[type="email"],
.form input[type="tel"],
.form select,
.form textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #B9C1D1;
  border-radius: 6px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form textarea { min-height: 180px; resize: vertical; line-height: 1.8; }
.form ::placeholder { color: #8791A3; }
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none;
  border-color: var(--base-blue);
  box-shadow: 0 0 0 3px rgba(19, 40, 232, .25);
}

.hp-field { position: absolute; left: -9999px; }

.form__submit { margin-top: 8px; }
.btn--primary { background: var(--base-blue); color: #fff; min-width: 220px; position: relative; }
.btn--primary:hover { background: var(--base-blue-deep); }
.btn--primary:disabled { cursor: progress; opacity: .85; }
.btn--primary .spinner {
  display: none;
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
.btn--primary.loading .btn-text { display: none; }
.btn--primary.loading .spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-message { display: none; margin-top: 20px; padding: 14px 18px; border-radius: 6px; font-size: 15px; }
.form-message.success { background: #E5F4EA; color: #16502B; border: 1px solid #9FD2B2; }
.form-message.error { background: #FCE9E9; color: #8A1C1C; border: 1px solid #E9A8A8; }

.contact__note { margin-top: 32px; font-size: 14px; color: var(--ink-soft); line-height: 1.9; }
.contact__note a { color: var(--ink); font-weight: 700; }

/* ---------- フッター ---------- */
.site-footer { background: var(--ink); color: #fff; padding: 56px 0 48px; }
.site-footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  flex-wrap: wrap;
}
.site-footer .wordmark { color: #fff; }
.site-footer__links { display: flex; gap: 28px; flex-wrap: wrap; }
.site-footer__links a { color: rgba(255,255,255,.85); text-decoration: none; font-size: 14px; }
.site-footer__links a:hover { color: #fff; text-decoration: underline; text-underline-offset: .3em; }
.site-footer__copy { width: 100%; margin-top: 24px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.18); font-size: 13px; color: rgba(255,255,255,.65); }

/* ---------- タブレット・スマホ ---------- */
@media (max-width: 960px) {
  :root { --gutter: 24px; }
  .block { padding: 88px 0; }
  .block__grid { grid-template-columns: 1fr; row-gap: 40px; }
  .block__head { position: static; }
  .block__title { font-size: 30px; }
}

@media (max-width: 768px) {
  :root { --gutter: 20px; --header-h: 60px; }

  .hamburger { display: block; }
  .nav-links {
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 16px 0; font-size: 16px; border-bottom: 1px solid var(--line); }
  .nav-links a:not(.nav-cta)::after { display: none; }
  .nav-links a.nav-cta { margin-top: 16px; text-align: center; padding: 14px 20px; border-bottom: 0; }

  .hero { padding: 72px 0 80px; min-height: 0; }
  .hero__art { display: none; }
  .hero__lead { font-size: 16px; margin-top: 28px; }
  .hero__actions { margin-top: 36px; gap: 24px; }
  .sp-only { display: inline; }

  .block { padding: 72px 0; }
  .svc__item { grid-template-columns: 1fr; row-gap: 10px; padding: 28px 0; }
  .svc__name { font-size: 20px; }

  .profile th { display: block; width: auto; padding: 20px 0 2px; }
  .profile td { display: block; padding: 0 0 20px; }
  .profile tr { display: block; }

  .news__line { grid-template-columns: auto minmax(0, 1fr) auto; row-gap: 6px; }
  .news__title { grid-column: 1 / -1; grid-row: 2; }
  .news__toggle { grid-column: 3; grid-row: 1; }
  .news__line > .news__date { grid-column: 1; }
  .news__body { padding-left: 0; }
  .news__body dl { grid-template-columns: 1fr; gap: 0; }
  .news__body dt { margin-top: 10px; }

  .form__row { grid-template-columns: 1fr; gap: 0; }
  .btn--primary { width: 100%; }

  .site-footer__inner { align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__title .ln > span { animation: none; transform: none; }
  * { transition: none !important; }
}


/* ===== site_redesign_d の上書き ===== */

/* ============ D案「Concrete」: 写真が主役 / コンクリートの灰色と深い赤 / 明朝 ============ */
:root {
  --base-blue: #7A1F2B;      /* 深い赤（ボタン・強調） */
  --base-blue-deep: #5E1620;
  --ink: #1B232D;
  --ink-soft: #3E4A58;
  --ink-mute: #66727F;
  --paper: #FFFFFF;
  --mist: #ECEEF1;
  --line: #D3D8DE;
  --font-display: 'Zen Old Mincho', 'Hiragino Mincho ProN', serif;
}
.hero { background: #C9CED4; color: var(--ink); min-height: min(calc(100svh - var(--header-h)), 820px); }
.hero__art { right: 0; bottom: 0; left: 0; top: 0; width: 100%; height: 100%; aspect-ratio: auto; }
.hero__art img { mix-blend-mode: normal; opacity: 1; object-fit: cover; object-position: right center; -webkit-mask-image: none; mask-image: none; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(236,238,241,.94) 0, rgba(236,238,241,.78) 34%, rgba(236,238,241,0) 64%);
}
.hero__body { z-index: 2; }
.hero__title { font-weight: 700; font-size: clamp(28px, 4.8vw, 66px); line-height: 1.38; letter-spacing: .01em; }
.hero__lead { color: var(--ink-soft); }
.btn--light { background: var(--base-blue); color: #fff; }
.btn--light:hover { background: var(--base-blue-deep); }
.text-link { color: var(--ink); }
.block__title { font-weight: 700; font-size: 34px; }
.block__grid { grid-template-columns: 1fr; row-gap: 56px; }
.block__head { position: static; }
.block__head .block__note { max-width: 34em; }
.svc { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 48px; border-bottom: 0; }
.svc__item, .svc__item:first-child { display: block; padding: 28px 0 44px; border-top: 1px solid var(--line); position: relative; }
.svc__item::before { content: ""; position: absolute; left: 0; top: -1px; width: 56px; height: 3px; background: var(--base-blue); }
.svc__name { font-weight: 700; font-size: 22px; margin-bottom: 14px; }
.profile tr:first-child { border-top: 1px solid var(--ink); }
.news__row:first-child { border-top: 1px solid var(--ink); }
.news__tag--key { background: var(--base-blue); border-color: var(--base-blue); }
#company { background: var(--mist); }
#contact { background: var(--ink); color: #fff; }
#contact .block__note, #contact .contact__lead, #contact .contact__note { color: rgba(255,255,255,.84); }
#contact .contact__note a { color: #fff; }
#contact .req { color: #F2A9B1; }
#contact .btn--primary { background: #fff; color: var(--base-blue); }
#contact .btn--primary:hover { background: var(--mist); }
#contact :focus-visible { outline-color: #fff; }
#contact .form input:focus, #contact .form select:focus, #contact .form textarea:focus { box-shadow: 0 0 0 3px rgba(255,255,255,.4); border-color: #fff; }
.site-footer { background: #11171D; }

@media (max-width: 960px) {
  .svc { grid-template-columns: 1fr; }
  .hero::before { background: linear-gradient(90deg, rgba(236,238,241,.93) 0, rgba(236,238,241,.8) 60%, rgba(236,238,241,.55) 100%); }
  .hero__art img { object-position: 70% center; }
}
@media (max-width: 768px) {
  .hero__art { display: block; }
}
