/* common.css — 全ページ共通（変数・リセット・ヘッダー・フッター・共通パーツ）
   並び：ベース → 768px以下 → 480px以下 */

/* ---------- 変数 ---------- */
:root {
  /* 色：アクセントは --accent の1色だけ変えればサイト全体に反映 */
  --ink: #0e1014;          /* 墨（濃い背景・見出し） */
  --ink-2: #1a1d24;
  --text: #22252c;         /* 本文 */
  --muted: #6b707c;        /* 補足テキスト */
  --line: #e2e4e9;         /* 罫線 */
  --paper: #ffffff;
  --paper-2: #f4f5f7;      /* 薄いグレー背景 */
  --accent: #2346ff;       /* コバルトブルー */
  --accent-dark: #1534d6;

  --font-en: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --font-sans: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", "Meiryo", sans-serif;

  --container: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --header-h: 84px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- リセット・ベース ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: .04em;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: anywhere;
  line-break: strict;
}
body.is-nav-open { overflow: hidden; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
address { font-style: normal; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
main:focus { outline: none; }

.container { width: min(100% - var(--gutter) * 2, var(--container)); margin-inline: auto; }
.section { padding-block: clamp(96px, 12vw, 160px); }
.main--offset { padding-top: var(--header-h); }
.sp-only { display: none; }

.skip-link {
  position: absolute; left: 12px; top: -100px; z-index: 1000;
  padding: 10px 16px; background: var(--ink); color: #fff; font-size: 14px;
}
.skip-link:focus { top: 12px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ---------- 見出し ---------- */
.sec-head { margin-bottom: clamp(40px, 5vw, 64px); }
.sec-head__en {
  font-family: var(--font-en);
  font-size: clamp(44px, 6.4vw, 88px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--ink);
}
.sec-head__ja {
  display: flex; align-items: center; gap: 12px;
  margin-top: 18px;
  font-size: 15px; font-weight: 600; letter-spacing: .12em;
}
.sec-head__ja::before { content: ""; width: 24px; height: 2px; background: var(--accent); }
.sec-head--center { text-align: center; }
.sec-head--center .sec-head__ja { justify-content: center; }
.sec-head--light .sec-head__en, .sec-head--light .sec-head__ja { color: #fff; }

/* ---------- ボタン・リンク ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 32px;
  font-family: var(--font-en); font-weight: 600; letter-spacing: .06em;
  color: #fff; background: var(--accent);
  border-radius: 999px;
  transition: background-color .3s var(--ease), transform .3s var(--ease);
}
.btn:hover { background: var(--accent-dark); }
.btn--sm { min-height: 44px; padding: 0 24px; font-size: 14px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 16px;
  font-size: 15px; font-weight: 600; letter-spacing: .08em;
}
.link-arrow::after {
  content: ""; flex: none;
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--line);
  background: no-repeat center / 16px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M1 8h13M9 3l5 5-5 5' fill='none' stroke='%230e1014' stroke-width='1.5'/%3E%3C/svg%3E");
  transition: background-color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.link-arrow:hover::after {
  background-color: var(--accent); border-color: var(--accent); transform: translateX(4px);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M1 8h13M9 3l5 5-5 5' fill='none' stroke='%23fff' stroke-width='1.5'/%3E%3C/svg%3E");
}

/* ---------- お知らせ一覧（トップ・ニュース一覧で共通）---------- */
.news-list { border-top: 1px solid var(--ink); }
.news-list li { border-bottom: 1px solid var(--line); }
.news-item {
  position: relative;
  display: grid; grid-template-columns: 110px 96px 1fr 24px; align-items: center; gap: 24px;
  padding: 28px 8px;
  transition: padding .4s var(--ease), background-color .4s var(--ease);
}
.news-item::after {
  content: ""; width: 24px; height: 12px;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 12'%3E%3Cpath d='M0 6h22M17 1l5 5-5 5' fill='none' stroke='%230e1014' stroke-width='1.4'/%3E%3C/svg%3E");
  transition: transform .4s var(--ease);
}
.news-item:hover { padding-inline: 20px; background: var(--paper-2); }
.news-item:hover::after { transform: translateX(4px); }
.news-item time { font-family: var(--font-en); font-size: 15px; font-weight: 500; letter-spacing: .04em; color: var(--muted); }
.news-cat {
  justify-self: start;
  padding: 3px 12px;
  font-size: 12px; font-weight: 600; letter-spacing: .06em;
  color: var(--accent); border: 1px solid currentColor; border-radius: 999px;
  white-space: nowrap;
}
.news-cat--alt { color: var(--ink); }
.news-item__title { font-weight: 500; transition: color .3s var(--ease); }
.news-item:hover .news-item__title { color: var(--accent); }

/* ---------- 下層ページの見出し（ニュース・お問い合わせなど）---------- */
.page-head {
  position: relative; overflow: hidden;
  padding: calc(var(--header-h) + clamp(64px, 9vw, 120px)) 0 clamp(48px, 6vw, 80px);
  background: var(--paper-2);
}
.page-head__en {
  font-family: var(--font-en);
  font-size: clamp(56px, 9vw, 128px);
  font-weight: 600; line-height: .95; letter-spacing: -.045em;
  color: var(--ink);
}
.page-head__ja {
  display: flex; align-items: center; gap: 12px;
  margin-top: 20px; font-size: 15px; font-weight: 600; letter-spacing: .12em;
}
.page-head__ja::before { content: ""; width: 24px; height: 2px; background: var(--accent); }
.js .page-head__en, .js .page-head__ja { opacity: 0; animation: pageHead 1.1s var(--ease-out) forwards; }
.js .page-head__ja { animation-delay: .15s; }
@keyframes pageHead { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

.breadcrumb { border-bottom: 1px solid var(--line); }
.breadcrumb ol {
  display: flex; flex-wrap: wrap; gap: 4px 0;
  width: min(100% - var(--gutter) * 2, var(--container)); margin-inline: auto;
  padding-block: 16px;
  font-size: 13px; color: var(--muted);
}
.breadcrumb li:not(:last-child)::after { content: "/"; margin-inline: 12px; color: var(--line); }
.breadcrumb a { transition: color .3s var(--ease); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb [aria-current] {
  display: inline-block; max-width: 24em; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; vertical-align: bottom;
  color: var(--text);
}

/* ---------- ヘッダー ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  height: var(--header-h);
  color: #fff;
  transition: background-color .4s var(--ease), color .4s var(--ease), transform .5s var(--ease), box-shadow .4s var(--ease);
}
.site-header__inner {
  display: flex; align-items: center; gap: 32px;
  height: 100%; padding-inline: var(--gutter);
}
/* 背景は疑似要素に持たせる（header本体に backdrop-filter を付けると、モバイルナビの position:fixed が効かなくなるため） */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
  opacity: 0;
  transition: opacity .4s var(--ease);
}
.site-header.is-scrolled, .site-header.is-solid { color: var(--ink); }
.site-header.is-scrolled::before, .site-header.is-solid::before { opacity: 1; }
.site-header.is-hidden { transform: translateY(-100%); }

.logo { display: block; flex: none; margin-right: auto; }
.logo img { width: auto; height: 48px; transition: filter .4s var(--ease); }
.logo--text { font-family: var(--font-en); font-size: 20px; font-weight: 700; letter-spacing: .02em; }
/* ロゴの白抜き：FVの上とフッターで、単色ロゴを白で表示（カラーロゴの場合は次の2行を削除） */
.site-header:not(.is-scrolled):not(.is-solid) .logo img,
.site-footer .logo img { filter: brightness(0) invert(1); }

.nav ul { display: flex; gap: clamp(20px, 2.4vw, 36px); }
.nav a {
  position: relative; display: block; padding-block: 6px;
  font-size: 14px; font-weight: 600; letter-spacing: .08em;
}
.nav__en { display: none; }
.nav__sp { display: none; }
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform .4s var(--ease);
}
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav-toggle { display: none; }

/* ---------- フッター ---------- */
.site-footer { color: rgba(255, 255, 255, .72); background: var(--ink); font-size: 14px; }
.site-footer__inner {
  display: grid; grid-template-columns: 1fr auto; gap: 48px;
  width: min(100% - var(--gutter) * 2, var(--container)); margin-inline: auto;
  padding-block: 88px 64px;
}
.site-footer__logo { margin: 0 0 20px; }
.site-footer__name { margin-bottom: 12px; color: #fff; font-size: 16px; font-weight: 600; }
.site-footer address p { line-height: 1.9; }
.site-footer a { transition: color .3s var(--ease); }
.site-footer a:hover { color: #fff; }

.sns { display: flex; gap: 12px; margin-top: 28px; }
.sns a {
  display: grid; place-items: center; width: 40px; height: 40px;
  border: 1px solid rgba(255, 255, 255, .2); border-radius: 50%;
  transition: background-color .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
}
.sns a:hover { color: #fff; background: var(--accent); border-color: var(--accent); }
.sns svg { width: 18px; height: 18px; }

.site-footer__navs { display: flex; gap: 64px; }
.site-footer__nav li + li { margin-top: 10px; }
.site-footer__nav a { color: #fff; font-weight: 600; }
.site-footer__nav--sub a { color: rgba(255, 255, 255, .6); font-weight: 400; }

.site-footer__bottom {
  display: flex; align-items: center; justify-content: space-between;
  width: min(100% - var(--gutter) * 2, var(--container)); margin-inline: auto;
  padding-block: 24px; border-top: 1px solid rgba(255, 255, 255, .12);
}
.site-footer__copy { font-family: var(--font-en); letter-spacing: .06em; }
.pagetop {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-en); font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
}
.pagetop::after {
  content: ""; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .25);
  background: no-repeat center / 12px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 15V2M3 7l5-5 5 5' fill='none' stroke='%23fff' stroke-width='1.6'/%3E%3C/svg%3E");
  transition: background-color .3s var(--ease), border-color .3s var(--ease);
}
.pagetop:hover::after { background-color: var(--accent); border-color: var(--accent); }

/* ---------- スクロール表示（data-reveal）----------
   data-reveal        … フェードアップ
   data-reveal="mask" … 画像が左から開く
   data-reveal="zoom" … 画像が少し引きながら表示 */
.js [data-reveal] {
  opacity: 0; transform: translateY(32px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
  transition-delay: var(--delay, 0s);
}
.js [data-reveal="mask"] {
  opacity: 1; transform: none;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.4s var(--ease-out);
  transition-delay: var(--delay, 0s);
}
.js [data-reveal="mask"] img { transform: scale(1.15); transition: transform 1.8s var(--ease-out); }
.js [data-reveal="zoom"] { opacity: 1; transform: none; overflow: hidden; }
.js [data-reveal="zoom"] img { transform: scale(1.12); transition: transform 2s var(--ease-out); }

.js [data-reveal].is-inview { opacity: 1; transform: none; }
.js [data-reveal="mask"].is-inview { clip-path: inset(0); }
.js [data-reveal="mask"].is-inview img,
.js [data-reveal="zoom"].is-inview img { transform: none; }

/* ============ 768px以下 ============ */
@media (max-width: 768px) {
  :root { --header-h: 64px; }
  body { font-size: 15px; }
  .pc-only { display: none; }
  .sp-only { display: inline; }

  .logo img { height: 38px; }
  .header-cta { display: none; }

  .nav-toggle {
    position: relative; z-index: 2;
    display: grid; place-items: center;
    width: 44px; height: 44px; margin-right: -8px; padding: 0;
    color: inherit; background: none; border: 0; cursor: pointer;
  }
  .nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after {
    display: block; width: 24px; height: 2px; background: currentColor;
    transition: transform .4s var(--ease), background-color .3s;
  }
  .nav-toggle__bar { position: relative; }
  .nav-toggle__bar::before, .nav-toggle__bar::after { content: ""; position: absolute; left: 0; }
  .nav-toggle__bar::before { transform: translateY(-7px); }
  .nav-toggle__bar::after { transform: translateY(7px); }
  .nav-toggle[aria-expanded="true"] { color: #fff; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar::before { transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar::after { transform: rotate(-45deg); }

  .nav {
    position: fixed; inset: 0; z-index: 1;
    display: flex; flex-direction: column; justify-content: center;
    padding: var(--header-h) var(--gutter) 40px;
    color: #fff; background: var(--ink);
    opacity: 0; visibility: hidden;
    transition: opacity .4s var(--ease), visibility .4s;
  }
  .nav.is-open { opacity: 1; visibility: visible; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav li { border-bottom: 1px solid rgba(255, 255, 255, .12); }
  .nav .nav__sp { display: block; }
  .nav__sp .nav__en { color: var(--accent); }
  .nav a {
    display: flex; align-items: baseline; justify-content: space-between;
    padding-block: 18px; font-size: 13px; color: rgba(255, 255, 255, .7);
  }
  .nav a::after { display: none; }
  .nav__en {
    display: block; order: -1;
    font-family: var(--font-en); font-size: 30px; font-weight: 600; letter-spacing: -.01em; color: #fff;
  }
  .nav li { opacity: 0; transform: translateY(16px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
  .nav.is-open li { opacity: 1; transform: none; }
  .nav.is-open li:nth-child(2) { transition-delay: .05s; }
  .nav.is-open li:nth-child(3) { transition-delay: .1s; }
  .nav.is-open li:nth-child(4) { transition-delay: .15s; }
  .nav.is-open li:nth-child(5) { transition-delay: .2s; }
  .nav.is-open li:nth-child(6) { transition-delay: .25s; }
  /* メニューが開いている間はヘッダーを透明に（ロゴは白） */
  .is-nav-open .site-header { transform: none; }
  .is-nav-open .site-header::before { opacity: 0; }
  .is-nav-open .site-header .logo { position: relative; z-index: 2; }
  .is-nav-open .site-header .logo img { filter: brightness(0) invert(1); }

  .news-item { grid-template-columns: auto 1fr 20px; gap: 8px 16px; padding: 22px 4px; }
  .news-item time { grid-column: 1; }
  .news-cat { grid-column: 2; }
  .news-item__title { grid-column: 1 / 3; grid-row: 2; }
  .news-item::after { grid-column: 3; grid-row: 1 / 3; width: 20px; }
  .news-item:hover { padding-inline: 4px; background: none; }

  .site-footer__inner { grid-template-columns: 1fr; gap: 48px; padding-block: 64px 48px; }
  .site-footer__navs { gap: 40px; }
}

/* ============ 480px以下 ============ */
@media (max-width: 480px) {
  .sec-head__en { font-size: 44px; }
  .site-footer__navs { flex-direction: column; gap: 28px; }
  .site-footer__bottom { flex-direction: column-reverse; align-items: flex-start; gap: 16px; }
}

/* ---------- 動きを減らす設定 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js [data-reveal], .js [data-reveal="mask"] { opacity: 1; transform: none; clip-path: none; }
  .js [data-reveal] img { transform: none; }
}
