/* =========================
   UNITOUR Nagoya - style.css
   ========================= */

/* ---------- Variables ---------- */
:root {
  --maxw: 1480px;
  --text: #fff;
  --overlay: rgba(0, 0, 0, 0.35);

  --btn: #1f6feb;
  --btnHover: #1a5fd1;

  --frame: #3b332c;       /* 通常：茶色がかった濃色 */
  --frameHover: #5a4f46;  /* hover：少し明るい茶 */
}

/* ---------- Base ---------- */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    "Noto Sans JP",
    "Hiragino Kaku Gothic ProN",
    "Yu Gothic",
    sans-serif;
  color: var(--text);
  background: #000;
}

/* ---------- Layout ---------- */
.hero {
  min-height: 100svh;
  background:
    linear-gradient(var(--overlay), var(--overlay)),
    url("../img/hero-bg.jpg") center / cover no-repeat;
  display: flex;
  flex-direction: column;
}

.topbar {
  width: 100%;
  padding: 18px 18px 0;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Brand ---------- */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 10px 14px;
  backdrop-filter: blur(6px);
}

.brand img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.9);
}

.brand .name {
  line-height: 1.3;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.1em;
  white-space: nowrap;
  margin-right: 20px;
}

.brand .sub {
  display: block;
  margin-top: 2px;
  font-weight: 500;
  font-size: 12px;
  opacity: 0.85;
}

/* ---------- Cards ---------- */
.cards {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 24px;

  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly; /* 余りを間隔に配分 */
  gap: 24px;                    /* 最低間隔を保証 */
  align-items: flex-start;
}

a.card {
  flex: 0 0 auto;
  max-width: 320px;
  min-width: 240px;

  text-decoration: none;
  color: inherit;

  transition: transform 0.2s ease, filter 0.2s ease;
}

/* hover / focus */
a.card:hover,
a.card:focus-visible {
  transform: translateY(-4px);
}

a.card:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.55);
  outline-offset: 6px;
  border-radius: 24px; /* thumbより少し大きく */
}

/* ---------- Thumb ---------- */
.thumb {
  width: 100%;
  aspect-ratio: 2 / 3;

  padding: 10px; /* 太めボーダー */
  background: var(--frame);
  border-radius: 18px;

  transition: background 0.25s ease, filter 0.2s ease;
}

.thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
  border-radius: 12px;
}

a.card:hover .thumb,
a.card:focus-visible .thumb {
  background: var(--frameHover);
  filter: brightness(1.05);
}

/* ---------- Card body ---------- */
.cardbody {
  padding: 12px 6px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: none;
  font-size: 20px;
}

/* ---------- Button row ---------- */
.btnrow {
  display: flex;
  justify-content: center;
}

/* CTA look (span.btn) */
.btn {
  position: relative;
  display: flex;              /* ← block から変更 */
  align-items: center;        /* ← 縦中央揃え */
  justify-content: center;    /* ← テキスト中央揃え */
  width: 100%;

  min-height: 52px;
  padding: 12px;
  padding-left: 52px;         /* icon(40) + left(6) + 余白 */

  border-radius: 999px;
  background: var(--btn);
  color: #fff;
  font-weight: 700;
  text-align: center;

  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}


a.card:hover .btn,
a.card:focus-visible .btn {
  background: var(--btnHover);
}

/* icon (absolute in btn) */
.btn .icon {
  position: absolute;
  left: 6px;
  top: 50%;
  transform: translateY(-50%);

  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: #fff;

  display: grid;
  place-items: center;
}

/* SVG base (ゆっくり回転させる) */
a.card .btn .icon svg{
  width: 40px;
  height: 40px;
  fill: var(--btn);
  transform: rotate(-60deg);
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

/* hover / focus で角度変更 */
a.card:hover .btn .icon svg,
a.card:focus-visible .btn .icon svg{
  transform: rotate(-12deg) translateX(2px);
}

/* ---------- Description ---------- */
.desc {
  font-size: 1em;
  font-weight: 400;
  font-style: normal;
  color: rgb(255, 255, 255);
  line-height: 1.5;
  text-align: center;
  margin: 0;
}

/* ---------- Mobile ---------- */
@media (max-width: 640px) {

    .wrap {
        padding: 10px;
    }
  /* brand を小さく */
  .topbar{
    padding: 10px 12px 0;
  }
  .brand{
    gap: 10px;
    padding: 8px 12px;
  }
  .brand img{
    width: 44px;
    height: 44px;
  }
  .brand .name{
    font-size: 15px;
    letter-spacing: 0.06em;
    margin-right: 10px;
  }
  .brand .sub{
    font-size: 11px;
  }
  /* カード間隔 */
  .cards{
    gap: 16px;
    padding: 0 12px 18px;
  }

  /* card の幅を下げる → thumb の縦も下がる（2:3のため） */
  a.card{
    width: min(100%, 240px);  /* 360→300（ここが縦を下げる本体） */
    min-width: 0;             /* 240の縛りを無効化 */
  }

  /* thumb を少し引き締め（見た目も軽くなる） */
  .thumb{
    padding: 8px;
    border-radius: 16px;
  }
  .thumb img{
    border-radius: 12px;
  }

  .cardbody{
    padding-top: 6px;
    gap:4px;
  }
  /* 文字・余白を少しだけ詰める */
  .btn{
    padding-left: 40px;
    font-size: 18px;
  }
  .desc{
    font-size: 14px;
    line-height: 1.2em;
  }
}

/* ---------- Reduced motion ---------- 
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}*/