/* ==========================================================
   Southern Cross Global(インバウンド向け) ── 海図テーマ
   カラー:白ベース + ブルー3トーン + アクセシブルなレッドオレンジ
   ・主要文字(--navy #1E5A96):白背景とのコントラスト比 7.10:1
   ・補助文字(--navy-70 #496E93):白背景とのコントラスト比 5.34:1
   ・背景(--blue-bg #2E679F):白文字とのコントラスト比 5.90:1
   ・CTA(--accent #B8325A):白文字とのコントラスト比 5.77:1
   ・濃色背景上の装飾(--accent-light #FFB3C7):濃紺とのコントラスト比 6.84:1
   ========================================================== */

:root {
  --navy-deep:  #123A68;  /* Hero・Contact用 */
  --navy:       #1E5A96;  /* 主要文字・線 */
  --blue-bg:    #2E679F;  /* Service背景 */
  --accent:       #B8325A;  /* CTA・白背景上のアクセント */
  --accent-hover: #9D294B;  /* CTAホバー */
  --accent-light: #FFB3C7;  /* 濃紺・ブルー背景上の装飾 */
  --white:      #FFFFFF;

  /* 補助文字は透明度ではなく、コントラストを確認した固定色を使用 */
  --navy-70: #496E93;
  --navy-40: rgba(30, 90, 150, .40);
  --navy-15: rgba(30, 90, 150, .15);
  --navy-05: rgba(30, 90, 150, .05);

  --font-display: "Shippori Mincho B1", serif;
  --font-body:    "Noto Sans JP", sans-serif;

  --width-content: 1080px;
}

/* ---------- リセット・基本 ---------- */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.9;
  color: var(--navy);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; }
a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--white);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px var(--accent);
}
/* ページ内リンクの移動先(セクション)には枠を出さない */
[tabindex="-1"]:focus {
  outline: none;
  box-shadow: none;
}

.container {
  max-width: var(--width-content);
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow { max-width: 720px; }

.pc-only { display: none; }
@media (min-width: 768px) {
  .pc-only { display: inline; }
}

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .95);
  border-bottom: 1px solid var(--navy-15);
  backdrop-filter: blur(6px);
}

.header-inner {
  max-width: var(--width-content);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--navy);
}
.brand-mark { width: auto; height: 44px; flex-shrink: 0; display: block; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: .04em;
  white-space: nowrap;
}

.global-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}
.global-nav a {
  text-decoration: none;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 500;
  color: var(--navy-70);
  transition: color .2s;
}
.global-nav a:hover { color: var(--accent); }

.nav-cta {
  color: var(--white) !important;
  background: var(--accent);
  padding: 8px 20px;
  border-radius: 999px;
  transition: background-color .2s;
}
.nav-cta:hover {
  background: var(--accent-hover);
  opacity: 1;
}

/* 言語切り替え(日本語 ⇄ English)。通常のメニューと区別するため枠で囲む */
.global-nav a.nav-lang {
  padding: 4px 12px;
  border: 1px solid var(--navy-40);
  border-radius: 999px;
}
.global-nav a.nav-lang:hover { border-color: var(--accent); }

/* タブレット幅ではメニューを詰めて1行に収める */
@media (min-width: 768px) and (max-width: 1023px) {
  .header-inner { padding: 14px 16px; }
  .brand { gap: 8px; }
  .brand-mark { height: 36px; }
  .brand-name { font-size: 15px; }
  .global-nav { gap: 14px; }
  .global-nav a { font-size: 13px; }
  .nav-cta { padding: 8px 14px; }
  .global-nav a.nav-lang { padding: 3px 10px; }
}

/* ハンバーガーボタン(スマホのみ表示) */
.nav-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--navy);
  cursor: pointer;
}
.nav-toggle-bar {
  position: absolute;
  left: 11px;
  width: 22px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  transition: transform .2s, opacity .2s;
}
.nav-toggle-bar:nth-child(1) { top: 14px; }
.nav-toggle-bar:nth-child(2) { top: 21px; }
.nav-toggle-bar:nth-child(3) { top: 28px; }
/* 開いているときは×印にする */
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* スマホではメニューをハンバーガーボタンで開閉する */
@media (max-width: 767px) {
  .nav-toggle { display: block; }
  .global-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 16px 20px;
    background: var(--white);
    border-bottom: 1px solid var(--navy-15);
    box-shadow: 0 12px 24px rgba(18, 58, 104, .12);
  }
  .global-nav.is-open { display: flex; }
  .global-nav a {
    padding: 14px 8px;
    font-size: 15px;
    color: var(--navy);
    border-bottom: 1px solid var(--navy-15);
  }
  .global-nav a.nav-lang {
    border: 0;
    border-bottom: 1px solid var(--navy-15);
    border-radius: 0;
    padding: 14px 8px;
  }
  .global-nav a.nav-cta {
    margin-top: 16px;
    padding: 14px 20px;
    text-align: center;
    border-bottom: 0;
  }
}

/* ---------- ボタン ---------- */
.btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  text-align: center;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--accent);
  color: var(--white);
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost {
  border: 1px solid rgba(255, 255, 255, .6);
  color: var(--white);
}
.hero .btn-primary,
.section-navy .btn-primary,
.mid-cta .btn-primary {
  border-color: var(--accent-light);
}
.btn-large {
  padding: 18px 56px;
  font-size: 16px;
}

/* ---------- ヒーロー ---------- */
.hero {
  position: relative;
  background: var(--navy-deep);
  color: var(--white);
  overflow: hidden;
}

/* 右側のロゴ。上下中央に置き、画面幅に合わせて連続的に拡大・縮小する
   (768pxで約160px → 1165px以上で320px。本文と重ならない大きさに調整) */
.hero-logo {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: max(24px, calc((100% - var(--width-content)) / 2 + 24px));
  width: clamp(160px, calc(40vw - 146px), 320px);
  height: auto;
}

.hero-inner {
  position: relative;
  max-width: var(--width-content);
  margin: 0 auto;
  padding: 96px 24px 110px;
}

.hero-eyebrow {
  margin: 0 0 20px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--white);
}
.hero-eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 2px;
  background: var(--accent-light);
  vertical-align: middle;
  margin-right: 12px;
}

.hero-title {
  margin: 0 0 28px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 5.4vw, 56px);
  line-height: 1.4;
  letter-spacing: .03em;
}

.hero-lead {
  margin: 0 0 40px;
  max-width: 640px;
  font-size: 15.5px;
  line-height: 2.1;
  color: var(--white);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* ---------- セクション共通 ---------- */
.section { padding: 88px 0; }

.section-eyebrow {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-title {
  margin: 0 0 28px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(24px, 3.6vw, 34px);
  line-height: 1.5;
  letter-spacing: .03em;
}
.title-sub {
  display: block;
  font-size: .55em;
  font-weight: 600;
  margin-top: 8px;
  opacity: .8;
}

.section-lead {
  margin: 0 0 48px;
  color: var(--navy-70);
}

/* ブルー背景セクション */
.section-navy {
  background: var(--navy-deep);
  color: var(--white);
}
.section-navy .section-lead { color: var(--white); }

.section-contact {
  background: var(--navy-deep);
}

/* ブルー背景上ではオレンジ文字のコントラストが弱いため白にする */
.section-navy .section-eyebrow,
.section-navy .problem-answer-lead {
  color: var(--white);
}

/* ---------- お悩み ---------- */
.problem-list {
  list-style: none;
  margin: 0 0 56px;
  padding: 0;
  display: grid;
  gap: 14px;
}
.problem-list li {
  padding: 18px 22px 18px 52px;
  background: var(--navy-05);
  border-left: 3px solid var(--navy-40);
  position: relative;
  font-weight: 500;
}
.problem-list li::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  border: 2px solid var(--accent);
  border-radius: 50%;
}

.problem-answer {
  max-width: 720px;
  padding: 24px 28px;
  background: var(--navy-05);
  border-left: 3px solid var(--accent);
  text-align: left;
}
.problem-answer-lead {
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 10px;
}



.problem-answer p:last-child {
  margin: 0;
  color: var(--navy-70);
}
.section-navy .problem-answer p:last-child {
  color: var(--white);
}
.section-navy .problem-answer {
  background: rgba(255, 255, 255, .09);
  border-left-color: var(--accent-light);
}
.section-contact .problem-answer {
  margin-bottom: 32px;
}

/* ---------- サービス(航路) ---------- */
.route {
  list-style: none;
  margin: 0 0 48px;
  padding: 0;
  position: relative;
}

/* 寄港地をつなぐ破線の航路 */
.route::before {
  content: "";
  position: absolute;
  left: 27px;
  top: 28px;
  bottom: 28px;
  border-left: 2px dashed var(--accent-light);
  opacity: .7;
}

.route-step {
  position: relative;
  padding: 0 0 48px 88px;
}
.route-step:last-child { padding-bottom: 0; }

.route-marker {
  position: absolute;
  left: 0;
  top: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--navy);
  border: 2px solid var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--white);
}

.route-title {
  margin: 6px 0 12px;
  font-family: var(--font-display);
  font-size: clamp(19px, 2.6vw, 24px);
  font-weight: 700;
  letter-spacing: .03em;
}

.route-step p {
  margin: 0;
  max-width: 640px;
  color: var(--white);
}

.route-note {
  margin: 0;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, .2);
  color: var(--white);
  font-size: 15px;
}

/* ---------- 対象となるお客様 ---------- */
.target-grid {
  display: grid;
  gap: 24px;
}
@media (min-width: 768px) {
  .target-grid { grid-template-columns: repeat(2, 1fr); }
}

.target-card {
  border: 1px solid var(--navy-15);
  border-top: 3px solid var(--accent);
  padding: 32px 26px;
  background: var(--white);
  box-shadow: 0 12px 28px rgba(18, 58, 104, .08);
}
.target-card h3 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.6;
}
.target-card p {
  margin: 0;
  font-size: 14.5px;
  color: var(--navy-70);
}

/* 説明文を読みやすくするため、PCでも2列を維持 */
@media (min-width: 600px) {
  .target-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .target-grid-4 { grid-template-columns: repeat(2, 1fr); }
}

.target-note {
  margin: 32px 0 0;
  font-size: 14.5px;
  color: var(--navy-70);
  text-align: left;
}

/* ---------- 中間CTA ---------- */
.mid-cta {
  margin-top: 48px;
  padding: 28px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  color: var(--white);
  background: var(--navy-deep);
  border-radius: 8px;
}
.mid-cta p { margin: 0; }
.mid-cta-title {
  margin-bottom: 6px !important;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
}
.mid-cta .btn { flex-shrink: 0; }

/* ---------- 私たちの姿勢 ---------- */
.section-stance { background: var(--navy-05); }

.stance-body p {
  max-width: 720px;
  margin: 0 0 32px;
}

.stance-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
  max-width: 720px;
}
.stance-list li {
  padding: 20px 24px;
  background: var(--white);
  border-left: 3px solid var(--accent);
}
.stance-list strong {
  display: block;
  font-family: var(--font-display);
  font-size: 16.5px;
  margin-bottom: 4px;
}

/* ---------- 自己紹介 ---------- */
.profile-grid {
  display: grid;
  gap: 40px;
  align-items: start;
}
@media (min-width: 768px) {
  .profile-grid { grid-template-columns: 280px 1fr; gap: 56px; }
}

.profile-photo svg,
.profile-photo img {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid var(--navy-15);
  border-bottom: 3px solid var(--accent);
  display: block;
  margin: 0 auto;
}

.profile-name {
  margin: 0 0 20px;
  font-size: 13.5px;
  color: var(--navy-70);
}
.profile-name-main {
  display: block;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: .06em;
  margin-top: 4px;
}

.profile-body p {
  max-width: 640px;
  margin: 0 0 20px;
}

.profile-facts {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
  max-width: 640px;
}
.profile-facts li {
  display: flex;
  gap: 16px;
  padding: 12px 16px;
  background: var(--navy-05);
  font-size: 14.5px;
}
.profile-facts li span {
  flex-shrink: 0;
  width: 88px;
  font-weight: 700;
  color: var(--accent);
}

/* ---------- 進め方 ---------- */
.section-flow { background: var(--navy-05); }
.section-flow .flow-list li { background: var(--white); }

.flow-list {
  list-style: none;
  margin: 0 0 40px;
  padding: 0;
  counter-reset: flow;
  display: grid;
  gap: 24px;
}
@media (min-width: 768px) {
  .flow-list { grid-template-columns: repeat(4, 1fr); }
}

.flow-list li {
  counter-increment: flow;
  padding: 28px 22px;
  border: 1px solid var(--navy-15);
  position: relative;
}
.flow-list li::before {
  content: counter(flow, decimal-leading-zero);
  display: block;
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--accent);
  margin-bottom: 10px;
}
.flow-list h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
}
.flow-list p {
  margin: 0;
  font-size: 14px;
  color: var(--navy-70);
}

/* ---------- お問い合わせ ---------- */
.section-contact { padding-bottom: 104px; }

.contact-form {
  margin-top: 8px;
  display: grid;
  gap: 22px;
}

.form-row label {
  display: block;
  font-weight: 700;
  font-size: 14.5px;
  margin-bottom: 8px;
}
.req {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--white);
  background: var(--accent);
  border-radius: 3px;
  vertical-align: middle;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 13px 16px;
  font: inherit;
  color: var(--navy);
  background: var(--white);
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 6px;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: 3px solid var(--accent);
  outline-offset: 1px;
  box-shadow: none;
}

/* ドロップダウン矢印：ブラウザ標準の矢印を消し、独自の三角（幅12px×高さ8px）を表示する。
   高さ52px − 枠線2px − 三角8px = 42px → 上下の余白は各21px。右の余白も21pxにそろえる。 */
.form-row select {
  height: 52px;
  padding-top: 0;
  padding-bottom: 0;
  padding-right: 48px;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M0 0h12L6 8z' fill='%231E5A96'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 12px 8px;
  background-position: right 21px center;
}

/* 20260711 追加 */
.form-note {
  margin-top: 1.25rem;
  color: var(--white);
  font-size: 0.875rem;
  line-height: 1.8;
  text-align: left;
}
/* 1文が収まらない幅では、語尾だけが残らないよう読点の位置で折り返す */
.form-note .phrase { display: inline-block; }

/* ハニーポット:画面には表示しない */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-submit {
  text-align: left;
  margin-top: 8px;
}

/* ---------- フッター ---------- */
.site-footer {
  border-top: 1px solid var(--navy-15);
  padding: 36px 0;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.footer-brand {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
}
.footer-copy {
  margin: 0;
  font-size: 12.5px;
  color: var(--navy-70);
}

/* ---------- アニメーション設定への配慮 ---------- */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}

/* ---------- スマホ調整 ---------- */
@media (max-width: 767px) {
  .header-inner { padding: 12px 16px; }
  .brand-name { font-size: 14px; }
  .brand-mark { height: 36px; }
  .section { padding: 64px 0; }
  .hero-inner { padding: 72px 24px 84px; }
  /* 見出しの最長行(約11.5文字分)が左右24pxの余白内に収まるよう、画面幅に比例させる */
  .hero-title { font-size: min(calc((100vw - 48px) / 11.5), 41px); }
  .hero-logo { display: none; }  /* 狭い画面では本文と重なるため非表示 */
  .route::before { left: 23px; }
  .route-marker { width: 48px; height: 48px; font-size: 19px; }
  .route-step { padding-left: 70px; }
  .btn { width: 100%; }
  .hero-actions { flex-direction: column; }
  .mid-cta {
    align-items: stretch;
    flex-direction: column;
    padding: 24px;
  }
  .profile-facts li {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
  .profile-facts li span { width: auto; }
  .problem-answer { padding: 22px 20px; }
  /* 英語の見出しは最長行が約19文字(約13文字分の幅)になるため、割る数を変える */
  :lang(en) .hero-title { font-size: min(calc((100vw - 48px) / 13), 38px); }
}

/* ---------- 英語ページの調整 ---------- */
/* 英語の項目名(Experience など)は日本語より長いため、見出し列を広げる */
:lang(en) .profile-facts li span { width: 104px; }
