@charset "UTF-8";

/* =========================================================
   こころ物流 - common.css
   共通レイアウト / ヘッダー / フッター / ローダー / パーツ
   ========================================================= */

/* ---------- Design Tokens ---------- */
:root {
  /* Base */
  --white: #ffffff;
  --ink: #23303c;
  --ink-soft: #5b6b7a;
  --line: #e3ebf1;

  /* Accent : sample.png の「青」→ ピンク */
  --pink: #ff4f97;
  --pink-dark: #e5327c;
  --pink-tint: #fff1f7;

  /* Accent : sample.png の「ピンク」→ 水色 */
  --sky: #22c3e6;
  --sky-dark: #0ba3c6;
  --sky-tint: #eefaff;

  /* Support */
  --lemon: #fff7cf;
  /* ロゴ画像の地色。ロゴを置くプレートに使い、画像との継ぎ目をなくす */
  --cream: #fdf8e5;
  --shadow-pop: 0 6px 0 rgba(35, 48, 60, .12);

  /* Metrics */
  --header-h: 74px;
  --radius: 18px;
  --radius-lg: 28px;
  --container: 1120px;
  --ease-pop: cubic-bezier(.18, .89, .32, 1.28);
}

@media (max-width: 767px) {
  :root { --header-h: 62px; }
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: "Zen Maru Gothic", "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN",
    "Hiragino Sans", "Yu Gothic UI", "Meiryo", sans-serif;
  font-size: 16px;
  line-height: 1.9;
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

h1, h2, h3, h4, p, figure, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: opacity .25s, color .25s; }
button { font: inherit; color: inherit; border: none; background: none; cursor: pointer; }
table { border-collapse: collapse; width: 100%; }

:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }

/* キーボード操作時だけ現れる本文スキップリンク */
.skip-link {
  position: fixed;
  top: 8px;
  left: 50%;
  z-index: 9999;
  translate: -50% -200%;
  padding: 12px 24px;
  border-radius: 999px;
  background: var(--pink);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  transition: translate .25s var(--ease-pop);
}

.skip-link:focus { translate: -50% 0; }

/* ---------- Layout ---------- */
.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

@media (max-width: 767px) {
  .container { width: min(100% - 32px, var(--container)); }
}

.section { padding: 96px 0; position: relative; }
.section--tint { background: var(--sky-tint); --sec-bg: var(--sky-tint); }
.section--pink { background: var(--pink-tint); --sec-bg: var(--pink-tint); }

/* 白背景との境目に、半円を並べたポップな区切りをつくる */
.section--tint::before,
.section--pink::before,
.section--tint::after,
.section--pink::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 15px;
  pointer-events: none;
}

.section--tint::before,
.section--pink::before {
  top: -14px;
  background: radial-gradient(circle at 50% 100%, var(--sec-bg) 12px, transparent 12.5px) 0 0 / 32px 15px repeat-x;
}

.section--tint::after,
.section--pink::after {
  bottom: -14px;
  background: radial-gradient(circle at 50% 0, var(--sec-bg) 12px, transparent 12.5px) 0 0 / 32px 15px repeat-x;
}

@media (max-width: 767px) {
  .section { padding: 64px 0; }
}

::selection { background: var(--pink); color: #fff; }

main { display: block; }

/* ---------- Loader ---------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 26px;
  background: var(--white);
  transition: opacity .6s ease, visibility .6s ease;
}

.loader.is-hidden { opacity: 0; visibility: hidden; }

.loader__rays {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 150vmax;
  height: 150vmax;
  translate: -50% -50%;
  background: repeating-conic-gradient(var(--sky-tint) 0 3deg, transparent 3deg 8deg);
  animation: spin 26s linear infinite;
  opacity: .8;
}

.loader__inner { position: relative; display: grid; justify-items: center; gap: 22px; }

/* ロゴ（ローダー） */
.loader__logo {
  width: 236px;
  padding: 16px 20px;
  border-radius: var(--radius);
  background: var(--cream);
  box-shadow: 0 6px 20px rgba(35, 48, 60, .08);
  animation: pop-beat 1.6s var(--ease-pop) infinite;
}

.loader__logo img { display: block; width: 100%; height: auto; }

.loader__bar {
  position: relative;
  width: 190px;
  height: 8px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}

.loader__bar::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--sky), var(--pink));
  transform-origin: left;
  animation: loader-fill 1.4s ease-in-out infinite;
}

@keyframes loader-fill {
  0% { transform: scaleX(0); }
  60% { transform: scaleX(1); }
  100% { transform: scaleX(1); opacity: 0; }
}

@keyframes pop-beat {
  0%, 100% { transform: scale(1); }
  35% { transform: scale(1.06); }
  60% { transform: scale(.98); }
}

@keyframes spin { to { rotate: 360deg; } }

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto;
  /* ドロワー（z-index:1000）より前面に置き、開いている間もロゴと閉じるボタンを見せる */
  z-index: 1100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s, border-color .3s;
}

.header.is-scrolled {
  height: calc(var(--header-h) - 10px);
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px rgba(35, 48, 60, .06);
}

.header.is-scrolled .logo__mark { width: 44px; height: 44px; }
.header.is-scrolled .logo__tag { display: none; }

/* SPはヘッダーが元から低いため縮小しない */
@media (max-width: 767px) {
  .header.is-scrolled { height: var(--header-h); }
  .header.is-scrolled .logo__mark { width: 42px; height: 42px; }
  .header.is-scrolled .logo__tag { display: block; }
}
.logo__mark, .header { transition: height .3s ease, width .3s ease, box-shadow .3s, border-color .3s, rotate .4s var(--ease-pop); }

.header__inner {
  width: min(100% - 40px, 1320px);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* ロゴ（ヘッダー） */
.logo { display: flex; align-items: center; gap: 12px; }

.logo__mark {
  width: 52px;
  height: 52px;
  object-fit: contain;
  flex-shrink: 0;
  transition: rotate .4s var(--ease-pop);
}

.logo:hover .logo__mark { rotate: -6deg; }

.logo__name {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1.2;
}

.logo__name span { color: var(--pink); }

.logo__tag {
  display: block;
  font-size: 10px;
  letter-spacing: .18em;
  color: var(--ink-soft);
  font-weight: 400;
}

@media (max-width: 767px) {
  .logo__mark { width: 42px; height: 42px; }
  .logo__name { font-size: 17px; }
  .logo__tag { font-size: 9px; letter-spacing: .12em; }
}

/* Nav (PC) */
.gnav { display: flex; align-items: center; gap: 26px; }
.gnav__list { display: flex; align-items: center; gap: 24px; }

.gnav__link {
  position: relative;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 6px 0;
}

.gnav__link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 3px;
  border-radius: 999px;
  background: var(--pink);
  translate: -50% 0;
  transition: width .3s var(--ease-pop);
}

.gnav__link:hover::after,
.gnav__link.is-current::after { width: 100%; }
.gnav__link.is-current { color: var(--pink); }

.gnav__cta { display: flex; gap: 10px; }

@media (max-width: 1100px) {
  .gnav { display: none; }
}

/* Hamburger */
.hamburger {
  display: none;
  position: relative;
  z-index: 1001;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 4px 0 var(--pink-dark);
  transition: background .3s, box-shadow .2s, translate .2s;
}

.hamburger:active { translate: 0 3px; box-shadow: 0 1px 0 var(--pink-dark); }

.hamburger span {
  position: absolute;
  left: 50%;
  width: 22px;
  height: 2.5px;
  border-radius: 999px;
  background: var(--white);
  translate: -50% 0;
  transition: transform .35s var(--ease-pop), opacity .2s;
}

.hamburger span:nth-child(1) { top: 17px; }
.hamburger span:nth-child(2) { top: 24px; }
.hamburger span:nth-child(3) { top: 31px; }

.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1100px) {
  .hamburger { display: block; }
}

/* Drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--white);
  padding: calc(var(--header-h) + 30px) 0 60px;
  overflow-x: hidden;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s ease, visibility .35s ease;
}

.drawer.is-open { opacity: 1; visibility: visible; }

.drawer__bg {
  position: absolute;
  inset: -20% -20% auto;
  height: 140%;
  background: repeating-conic-gradient(var(--sky-tint) 0 4deg, transparent 4deg 10deg);
  animation: spin 40s linear infinite;
  opacity: .7;
  pointer-events: none;
}

.drawer__inner { position: relative; }

.drawer__list {
  display: grid;
  gap: 4px;
  max-width: 520px;
  margin-inline: auto;
}

.drawer__link {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 14px;
  font-size: 20px;
  font-weight: 700;
  background: var(--white);
  border: 2px solid transparent;
  transition: border-color .25s, translate .25s var(--ease-pop);
}

.drawer__link:hover { border-color: var(--sky); translate: 6px 0; }
.drawer__link em { font-style: normal; font-size: 11px; letter-spacing: .12em; color: var(--sky-dark); }

.drawer__cta {
  display: grid;
  gap: 12px;
  max-width: 520px;
  margin: 32px auto 0;
}

.drawer__info {
  max-width: 520px;
  margin: 28px auto 0;
  text-align: center;
  font-size: 13px;
  color: var(--ink-soft);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 12px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .04em;
  text-align: center;
  transition: translate .18s var(--ease-pop), box-shadow .18s, background .25s;
}

.btn:hover { translate: 0 -2px; }
.btn:active { translate: 0 4px; }

.btn--line { background: #06c755; color: #fff; box-shadow: 0 5px 0 #049945; }
.btn--line:active { box-shadow: 0 1px 0 #049945; }

.btn--tel { background: var(--white); color: var(--ink); border: 2px solid var(--ink); box-shadow: 0 5px 0 var(--ink); }
.btn--tel:active { box-shadow: 0 1px 0 var(--ink); }

.btn--pink { background: var(--pink); color: #fff; box-shadow: 0 5px 0 var(--pink-dark); }
.btn--pink:active { box-shadow: 0 1px 0 var(--pink-dark); }

.btn--sky { background: var(--sky); color: #fff; box-shadow: 0 5px 0 var(--sky-dark); }
.btn--sky:active { box-shadow: 0 1px 0 var(--sky-dark); }

.btn--ghost { background: var(--white); color: var(--pink); border: 2px solid var(--pink); }
.btn--ghost:hover { background: var(--pink-tint); }

.btn--sm { min-height: 42px; padding: 8px 20px; font-size: 13px; }
.btn--wide { width: 100%; }
.btn--lg { min-height: 64px; font-size: 17px; padding: 14px 40px; }

.btn__icon { width: 20px; height: 20px; flex-shrink: 0; }

/* ---------- Headings ---------- */
.sec-head { text-align: center; margin-bottom: 52px; }

.sec-head__en {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .28em;
  color: var(--sky-dark);
  margin-bottom: 10px;
}

.sec-head__ja {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  font-size: clamp(24px, 4.6vw, 38px);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .02em;
}

/* sample.png の「\\ 見出し //」装飾 */
.sec-head__ja::before,
.sec-head__ja::after {
  content: "";
  width: 4px;
  height: 34px;
  border-radius: 999px;
  background: var(--pink);
  flex-shrink: 0;
}

.sec-head__ja::before { rotate: -18deg; }
.sec-head__ja::after { rotate: 18deg; }

.sec-head__lead {
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: 15px;
}

/* 帯見出し（sample.png のベタ帯） */
.band {
  display: block;
  padding: 14px 20px;
  border-radius: 12px;
  color: #fff;
  font-weight: 700;
  font-size: clamp(17px, 2.6vw, 22px);
  text-align: center;
  letter-spacing: .04em;
}

.band--pink { background: var(--pink); }
.band--sky { background: var(--sky); }

/* マーカー風の強調 */
.marker {
  background: linear-gradient(transparent 62%, var(--lemon) 62%);
  font-weight: 700;
}

.pink-txt { color: var(--pink); }
.sky-txt { color: var(--sky-dark); }

.strike { text-decoration: line-through; text-decoration-color: var(--pink); text-decoration-thickness: 3px; }

/* ---------- Card / Bubble ---------- */
.card {
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-pop);
  transition: translate .3s var(--ease-pop), border-color .3s, box-shadow .3s;
}

.card:hover { translate: 0 -6px; border-color: var(--sky); box-shadow: 0 14px 0 rgba(34, 195, 230, .16); }

.bubble {
  position: relative;
  display: inline-block;
  padding: 14px 22px;
  border: 2.5px solid var(--ink);
  border-radius: 16px;
  background: var(--white);
  font-weight: 700;
  line-height: 1.6;
}

.bubble::before,
.bubble::after {
  content: "";
  position: absolute;
  bottom: -14px;
  left: 34px;
  border: 7px solid transparent;
  border-top-color: var(--ink);
}

.bubble::after { bottom: -10px; border-top-color: var(--white); }

/* ---------- Page Head (下層共通) ---------- */
.page-head {
  position: relative;
  padding: calc(var(--header-h) + 74px) 0 74px;
  text-align: center;
  overflow: hidden;
  background: var(--white);
}

.page-head__rays {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 130vmax;
  height: 130vmax;
  translate: -50% -50%;
  background: repeating-conic-gradient(var(--sky-tint) 0 2.5deg, transparent 2.5deg 7deg);
  animation: spin 60s linear infinite;
  opacity: .85;
  pointer-events: none;
}

.page-head__inner { position: relative; }

.page-head__en {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .3em;
  color: var(--sky-dark);
}

.page-head__ja {
  margin-top: 6px;
  font-size: clamp(28px, 5.4vw, 46px);
  font-weight: 700;
  letter-spacing: .04em;
}

.page-head__ja::after {
  content: "";
  display: block;
  width: 64px;
  height: 6px;
  margin: 18px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--sky), var(--pink));
}

/* Breadcrumb */
.breadcrumb {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; color: var(--ink-soft); }
.breadcrumb li:not(:last-child)::after { content: "/"; margin-left: 8px; color: var(--line); }
.breadcrumb a:hover { color: var(--pink); }

/* ---------- Contact CTA (共通) ---------- */
.cta {
  position: relative;
  padding: 88px 0;
  background: var(--sky-tint);
  overflow: hidden;
}

.cta__inner { position: relative; text-align: center; }

.cta__title {
  font-size: clamp(22px, 4vw, 34px);
  font-weight: 700;
  line-height: 1.5;
}

.cta__lead { margin-top: 14px; color: var(--ink-soft); font-size: 15px; }

.cta__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  max-width: 760px;
  margin: 40px auto 0;
  text-align: left;
}

@media (max-width: 767px) {
  .cta__grid { grid-template-columns: 1fr; }
}

.cta__card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-pop);
  display: grid;
  gap: 12px;
  align-content: start;
}

.cta__badge {
  justify-self: start;
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  color: #fff;
  background: var(--pink);
}

.cta__card--sub .cta__badge { background: var(--sky); }

.cta__card h3 { font-size: 20px; font-weight: 700; }
.cta__card p { font-size: 13.5px; color: var(--ink-soft); line-height: 1.8; }

.cta__card p.cta__tel {
  font-size: 30px;
  color: var(--pink);
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.3;
}

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: rgba(255, 255, 255, .82); padding: 68px 0 0; }

.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, .14);
}

@media (max-width: 899px) {
  .footer__top { grid-template-columns: 1fr; gap: 36px; }
}

/* ロゴ（フッター） */
.footer__logo {
  width: 228px;
  max-width: 100%;
  padding: 14px 18px;
  border-radius: var(--radius);
  background: var(--cream);
}

.footer__logo img { display: block; width: 100%; height: auto; }

.footer__addr { margin-top: 22px; font-size: 13.5px; line-height: 2; font-style: normal; }
.footer__addr a:hover { color: var(--sky); }

.footer__nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 24px;
}

@media (max-width: 599px) {
  .footer__nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.footer__nav a { font-size: 13.5px; }
.footer__nav a:hover { color: var(--sky); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  font-size: 12px;
  color: rgba(255, 255, 255, .55);
}

/* ---------- Fixed CTA (SP) / Page Top ---------- */
.fixed-cta {
  position: fixed;
  inset: auto 0 0;
  z-index: 800;
  display: none;
  gap: 8px;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
}

.fixed-cta .btn { flex: 1; min-height: 50px; font-size: 14px; padding: 10px 12px; }

@media (max-width: 767px) {
  .fixed-cta { display: flex; }
  body { padding-bottom: 74px; }
}

.pagetop {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 810;
  width: 52px;
  height: 52px;
  display: grid;
  place-content: center;
  border-radius: 50%;
  background: var(--pink);
  color: #fff;
  box-shadow: 0 5px 0 var(--pink-dark);
  opacity: 0;
  visibility: hidden;
  translate: 0 10px;
  transition: opacity .3s, visibility .3s, translate .3s;
}

.pagetop.is-visible { opacity: 1; visibility: visible; translate: 0 0; }
.pagetop:active { translate: 0 4px; box-shadow: 0 1px 0 var(--pink-dark); }

@media (max-width: 767px) {
  .pagetop { right: 14px; bottom: 84px; width: 46px; height: 46px; }
}

/* ---------- Scroll Reveal ---------- */
.reveal {
  opacity: 0;
  translate: 0 28px;
  transition: opacity .7s ease, translate .7s var(--ease-pop);
}

.reveal.is-in { opacity: 1; translate: 0 0; }

.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
.reveal[data-delay="3"] { transition-delay: .3s; }
.reveal[data-delay="4"] { transition-delay: .4s; }
.reveal[data-delay="5"] { transition-delay: .5s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; translate: none; transition: none; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
}

/* ---------- Table (共通) ---------- */
.table-basic { font-size: 15px; }

.table-basic th,
.table-basic td {
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.table-basic th {
  width: 240px;
  font-weight: 700;
  color: var(--sky-dark);
  background: var(--sky-tint);
  border-radius: 10px 0 0 10px;
}

@media (max-width: 767px) {
  .table-basic, .table-basic tbody, .table-basic tr, .table-basic th, .table-basic td { display: block; width: 100%; }
  .table-basic th { border-bottom: none; border-radius: 10px 10px 0 0; padding: 12px 16px; }
  .table-basic td { padding: 14px 16px 22px; }
}

/* ---------- Utility ---------- */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }
.mt-56 { margin-top: 56px; }
