/* cocosy コーポレートサイト 共通スタイル（Figma 1440px デザイン準拠）
   外部依存は Google Fonts のみ。各ページの <head> で次を読み込むこと:
   <link href="https://fonts.googleapis.com/css2?family=Lato:wght@700;900&family=Noto+Sans+JP:wght@400;500;700;900&family=Roboto:wght@700;900&display=swap" rel="stylesheet">
*/

:root {
  --c-text: #333333;
  --c-main: #3179E4;
  --c-sky: #3FB9FF;
  --c-base: #F5F5F5;
  --c-pale: #ECF5FF;
  --c-gray: #595757;
  --c-gray-light: #888888;
  --c-gray-footer: #828282;
  --c-line: #D9D9D9;
  --c-orange: #F39800;
  --c-red: #F05A40;
  --c-mark: #F1F09A;
  --grad-main: linear-gradient(90deg, #3FB9FF 0%, #3179E4 100%);
  --shadow-card: 0 0 20px 0 rgba(0, 0, 0, 0.1);
  --font-jp: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --font-en: "Roboto", "Noto Sans JP", sans-serif;
  --font-lato: "Lato", "Noto Sans JP", sans-serif;
  --header-h: 83px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #fff;
  color: var(--c-text);
  font-family: var(--font-jp);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.04em;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button { font: inherit; letter-spacing: inherit; }

/* ---------- 汎用 ---------- */
.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.en { font-family: var(--font-en); font-weight: 700; }

/* 英字の小見出し（FOR TENANT / FOR OWNER など）グラデ文字 */
.eyebrow {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  background: var(--grad-main);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
  vertical-align: top;
}

/* セクション見出し（日本語 40px） */
.sec-title {
  font-weight: 700;
  font-size: 40px;
  line-height: 1.5;
  letter-spacing: 0.04em;
}
.sec-title .accent { color: var(--c-main); }

/* 英字の大きな透かし文字（背景用・薄グレー） */
.bg-word {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 120px;
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--c-base);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}
/* 英字の大きな透かし文字（青地用・白の縁取り） */
.bg-word--outline {
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.55);
}

/* 黄色のマーカー下線。--mk-b: 行の下端からの距離 / --mk-h: 太さ */
.mark {
  display: inline-block;
  --mk-b: 3px;
  --mk-h: 8px;
  background-image: linear-gradient(to top,
    transparent var(--mk-b),
    var(--c-mark) var(--mk-b),
    var(--c-mark) calc(var(--mk-b) + var(--mk-h)),
    transparent calc(var(--mk-b) + var(--mk-h)));
}
.mark--6 { --mk-b: 2px; --mk-h: 6px; }
.mark--8 { --mk-b: 3px; --mk-h: 8px; }
.mark--10 { --mk-b: 3px; --mk-h: 10px; }

/* ---------- ボタン ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 16px; /* 枠2px込みで高さ67px（Figma: 縦20px・枠は内側） */
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: var(--font-jp);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  white-space: nowrap;
  cursor: pointer;
  transition: opacity 0.2s;
}
.btn:hover { opacity: 0.85; }
.btn--primary { background: var(--c-main); color: #fff; border-color: var(--c-main); }
.btn--outline { background: #fff; color: var(--c-text); border-color: var(--c-main); }
.btn--white { background: #fff; color: var(--c-text); border-color: #fff; }
/* 右端の矢印（> アイコン）を付けるボタン */
.btn--arrow::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 24px;
  height: 24px;
  transform: translateY(-50%);
  background: url("../assets/chevron-cta-white.svg") center / 24px 24px no-repeat;
}
.btn--outline.btn--arrow::after,
.btn--white.btn--arrow::after { background-image: url("../assets/chevron-cta-blue.svg"); }

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  height: var(--header-h);
  background: #fff;
}
.site-header__logo { display: block; margin-left: 56px; width: 180px; height: 43px; flex: none; }
.site-header__logo img { width: auto; height: 43px; }
.site-nav { margin-left: auto; margin-right: 56px; }
.site-nav ul { display: flex; gap: 48px; }
.site-nav a {
  display: block;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: var(--c-text);
  transition: opacity 0.2s;
}
.site-nav a:hover { opacity: 0.6; }
/* 現在ページ（Figmaに専用表示なし。控えめに下線のみ。トップでは付けない） */
.site-nav a[aria-current="page"] { box-shadow: 0 2px 0 var(--c-main); }
.site-header__cta {
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0 24px;
  background: var(--c-main);
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: opacity 0.2s;
}
.site-header__cta:hover { opacity: 0.85; }
.site-header__cta img { width: 24px; height: 24px; }

/* ---------- GET STARTED 帯（全ページ共通） ---------- */
/* 帯の下部71pxはフッターの上に重なる（Figmaどおり）。.cta-wrap と .site-footer はセットで使う */
.cta-wrap {
  position: relative;
  z-index: 1;
  padding: 64px 56px 0;
  margin-bottom: -71px;
}
.cta-band {
  position: relative;
  overflow: hidden;
  min-height: 494px;
  padding-bottom: 88px;
  border-radius: 32px;
  background: #3179E4 url("../assets/cta-bg.jpg") center / cover no-repeat;
  text-align: center;
  color: #fff;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(63, 185, 255, 0.9), rgba(49, 121, 228, 0.9));
}
.cta-band > * { position: relative; }
.cta-band__en {
  padding-top: 48px;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 120px;
  line-height: 1;
  letter-spacing: 0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.55);
  white-space: nowrap;
}
.cta-band__title {
  margin-top: -56px; /* 英字の下端に重ねる（Figma: 英字top48 / 見出しtop112） */
  font-weight: 700;
  font-size: 32px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: #fff;
}
.cta-card {
  width: min(880px, 100% - 32px);
  margin: 32px auto 0; /* 見出し下端(160)→カード上端(192) */
  padding: 48px 88px 48px;
  background: #fff;
  border-radius: 16px;
  color: var(--c-text);
}
.cta-card__lead {
  font-weight: 700;
  font-size: 18px;
  line-height: 1.5;
  letter-spacing: 0.04em;
}
.cta-card__btns { display: flex; gap: 16px; margin-top: 24px; }
.cta-card__btns .btn { flex: 1 1 0; min-width: 0; }

/* ---------- フッター ---------- */
.site-footer {
  position: relative;
  background: var(--c-pale);
  padding-top: 140px;
}
.site-footer__inner {
  display: grid;
  grid-template-columns: 427px 182px 231px 215px 145px;
  align-items: start;
}
.site-footer__logo { display: block; width: 180px; height: 43px; }
.site-footer__logo img { width: auto; height: 48px; }
.site-footer__catch {
  margin-top: 32px;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.5;
  letter-spacing: 0.04em;
}
.site-footer__desc {
  margin-top: 32px;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.04em;
}
.footer-col h2 {
  position: relative;
  padding-left: 12px;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.04em;
}
.footer-col h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 4px;
  height: 13px;
  background: linear-gradient(180deg, #3FB9FF, #3179E4);
}
.footer-col li { line-height: 21px; }
.footer-col ul { margin-top: 24px; display: flex; flex-direction: column; gap: 16px; }
.footer-col a {
  display: inline-block;
  vertical-align: top;
  white-space: nowrap;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  transition: opacity 0.2s;
}
.footer-col a:hover { opacity: 0.6; }
.footer-col a.is-ext::after {
  content: "";
  display: inline-block;
  width: 13px;
  height: 13px;
  margin-left: 10px;
  vertical-align: -1px;
  background: url("../assets/external-link.svg") center / 13px 13px no-repeat;
}
.site-footer__bottom {
  margin-top: 54px; /* ロゴ列の下端(361)→白線(415) */
  border-top: 2px solid #fff;
}
.site-footer__bottom .container {
  display: flex;
  justify-content: space-between;
  padding-top: 40px;
  padding-bottom: 40px;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: var(--c-gray-footer);
}

/* ---------- 共通カード ---------- */
.card {
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-card);
}

/* ---------- スマホ用ヘッダー部品（PCでは非表示） ---------- */
.site-header__burger, .sp-menu { display: none; }
.br-sp { display: none; }

/* ---------- レスポンシブ ---------- */
@media (max-width: 1240px) {
  .site-footer__inner { grid-template-columns: minmax(0, 2.3fr) repeat(4, minmax(0, 1fr)); gap: 0 16px; }
  .site-header__logo { margin-left: 24px; }
  .site-nav { margin-right: 24px; }
  .site-nav ul { gap: 28px; }
}
/* 中間幅（769〜1000px）：ヘッダーが溢れないよう少し詰める */
@media (min-width: 769px) and (max-width: 1000px) {
  .site-header__logo { width: auto; margin-left: 16px; }
  .site-nav { margin-right: 16px; }
  .site-nav ul { gap: 16px; }
  .site-nav a { font-size: 14px; }
  .site-header__cta { padding: 0 16px; font-size: 15px; }
  .cta-wrap { padding-left: 24px; padding-right: 24px; }
  .cta-card { padding-left: 32px; padding-right: 32px; }
}

/* ---------- スマホ版（Figma 390px・768px以下） ---------- */
@media (max-width: 768px) {
  .container { width: calc(100% - 40px); }
  .br-sp { display: inline; }
  .eyebrow { font-size: 14px; }
  .sec-title { font-size: 24px; }
  .bg-word { font-size: 32px; line-height: 1; }
  .btn { font-size: 16px; padding: 14px 16px; }
  .btn--arrow::after { right: 16px; }

  /* ヘッダー（高さ61・ロゴ左20・ハンバーガー右） */
  :root { --header-h: 61px; }
  .site-header { height: var(--header-h); }
  .site-header__logo { margin-left: 20px; width: auto; height: auto; }
  .site-header__logo img { height: 32px; }
  .site-nav, .site-header__cta { display: none; }
  .site-header__burger {
    display: block;
    position: relative;
    width: 44px;
    height: 44px;
    margin-left: auto;
    margin-right: 8px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
  }
  .site-header__burger span {
    position: absolute;
    left: 10px;
    width: 24px;
    height: 2px;
    background: var(--c-main);
    transition: transform 0.25s, opacity 0.2s;
  }
  .site-header__burger span:nth-child(1) { top: 13px; }
  .site-header__burger span:nth-child(2) { top: 21px; }
  .site-header__burger span:nth-child(3) { top: 29px; }
  .site-header.is-open .site-header__burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .site-header.is-open .site-header__burger span:nth-child(2) { opacity: 0; }
  .site-header.is-open .site-header__burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  /* スマホメニュー（Figma 453:1054・ヘッダー直下に高さ436で開く） */
  .sp-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 56px 0;
    background: #fff;
    text-align: center;
    box-shadow: 0 12px 16px rgba(0, 0, 0, 0.08);
  }
  .site-header.is-open .sp-menu { display: block; }
  .sp-menu ul { display: flex; flex-direction: column; gap: 40px; }
  .sp-menu li a { display: inline-block; font-weight: 700; font-size: 15px; line-height: 23px; letter-spacing: 0.04em; }
  .sp-menu__cta {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 252px;
    height: 56px;
    margin: 56px auto 0;
    padding-right: 16px;
    border-radius: 999px;
    background: var(--c-main);
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.04em;
  }
  .sp-menu__cta img { position: absolute; right: 16px; top: 16px; width: 24px; height: 24px; }

  /* GET STARTED 帯（350x456・下56pxがフッターに重なる） */
  .cta-wrap { padding: 16px 20px 0; margin-bottom: -56px; }
  .cta-band { min-height: 0; padding-bottom: 40px; border-radius: 16px; }
  .cta-band__en { padding-top: 40px; font-size: 32px; }
  .cta-band__title { margin: -16px 0 0; padding: 0 16px; font-size: 20px; }
  .cta-card { width: calc(100% - 32px); margin-top: 24px; padding: 24px 16px; border-radius: 8px; }
  .cta-card__lead { font-size: 16px; line-height: 28px; }
  .cta-card__lead .mark { display: inline; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
  .cta-card__btns { flex-direction: column; gap: 12px; margin-top: 20px; }
  .cta-card__btns .btn { flex: none; width: 100%; }

  /* フッター（2列×2段） */
  .site-footer { padding-top: 80px; }
  .site-footer__inner { grid-template-columns: 158px 1fr; gap: 28px 0; }
  .site-footer__brand { grid-column: 1 / -1; margin-bottom: -4px; }
  .site-footer__logo { width: auto; height: auto; }
  .site-footer__logo img { height: 36px; }
  .site-footer__catch { margin-top: 16px; font-size: 16px; }
  .site-footer__desc { margin-top: 8px; }
  .footer-col h2 { font-size: 15px; line-height: 23px; }
  .footer-col h2::before { top: 5px; }
  .footer-col ul { margin-top: 8px; gap: 8px; }
  .footer-col li { line-height: 21px; }
  .site-footer__bottom { margin-top: 40px; }
  .site-footer__bottom .container { flex-direction: column-reverse; align-items: center; gap: 16px; padding-top: 24px; padding-bottom: 24px; text-align: center; }
}
