/* =====================================================================
   タビィコム（tavii.com）— 1 ページの案内サイト
   旧サイト（Bootstrap 3 ＋ Start Bootstrap の Stylish Portfolio）の見た目を、
   必要な部分だけ書き起こしたもの. Bootstrap・jQuery・Font Awesome は使わない.
   ===================================================================== */

:root {
  --text: #333333;
  --primary: #4c9ec4;        /* 旧サイトの bg-primary（帯の色） */
  --font: "Source Sans Pro", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", Meiryo, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

html, body { width: 100%; height: 100%; }

body {
  margin: 0;
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

h1, h2, h3, h4, p { margin: 0; }

a { color: inherit; }

/* ------------------------------------------------------------- 表紙 */

.header {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 100svh;
  padding: 40px 16px;
  background: url("/images/bg.jpg") no-repeat center center / cover;
  text-align: center;
}

.header__title {
  font-size: clamp(32px, 7vw, 72px);
  font-weight: 700;
  line-height: 1.2;
}

.header__lead {
  margin-top: 14px;
  font-size: clamp(15px, 2.2vw, 19px);
  font-weight: 400;
}

.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 28px;
}

.btn {
  display: inline-block;
  padding: 10px 22px;
  font-size: 18px;
  text-decoration: none;
  transition: background-color 0.2s;
}

.btn--dark { background: rgb(0 0 0 / 40%); color: #fff; }
.btn--dark:hover, .btn--dark:focus { background: rgb(0 0 0 / 70%); }

.btn--light { background: #fff; color: var(--text); }
.btn--light:hover, .btn--light:focus { background: rgb(255 255 255 / 80%); }

/* ------------------------------------------------------------ フッター */

.footer { padding: 90px 16px; text-align: center; }

.footer__copyright { font-size: 18px; }

.footer__law { display: inline-block; margin-top: 10px; font-size: 13px; }

/* 「ページの先頭へ」. 旧サイトは Font Awesome の矢印だったが、罫線で描いて画像もライブラリも使わない */
.to-top {
  position: fixed;
  right: 5px;
  bottom: 5px;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  background: rgb(0 0 0 / 40%);
  color: #fff;
  text-decoration: none;
}

.to-top:hover, .to-top:focus { background: rgb(0 0 0 / 70%); }

.to-top::before {
  content: "";
  width: 14px;
  height: 14px;
  border-top: 3px solid currentColor;
  border-right: 3px solid currentColor;
  transform: translateY(3px) rotate(-45deg);
}

/* --------------------------------------------- 英語ページ（/english/） */

/* 表紙と同じ写真を使うが、下に本文が続くので画面いっぱいにはしない */
.header--compact {
  height: auto;
  min-height: 0;
  padding: clamp(60px, 14vh, 130px) 16px;
}

.header--compact .header__title { font-size: clamp(30px, 6vw, 56px); }

.main {
  max-width: 760px;
  margin: 0 auto;
  padding: 50px 16px 20px;
}

.main p { margin-top: 16px; }

.main a:not(.btn) { color: #2a7ea8; }

.lead { font-size: 17px; }

.heading {
  margin-top: 46px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary);
  font-size: 22px;
  font-weight: 700;
}

.profile {
  width: 100%;
  margin-top: 18px;
  border-collapse: collapse;
}

.profile th, .profile td {
  padding: 12px 4px;
  border-bottom: 1px solid #e4e4e4;
  text-align: left;
  vertical-align: top;
}

.profile th {
  width: 10em;
  padding-right: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.profile--members th { width: 12em; }

.note { display: inline-block; margin-top: 6px; color: #777; font-size: 13px; }

.list { margin: 16px 0 0; padding-left: 1.4em; }

.list li { margin-top: 6px; }

.buttons--left { justify-content: flex-start; margin-top: 46px; }

/* 狭い画面では表を縦に積む */
@media (max-width: 560px) {
  .profile, .profile tbody, .profile tr, .profile th, .profile td { display: block; width: auto; }
  .profile th { padding-bottom: 0; border-bottom: 0; }
  .profile td { padding-top: 4px; }
}

/* ------------------------------------------------------- 404 ページ */

.header--error .header__title { font-size: clamp(20px, 3vw, 24px); font-weight: 400; }
.header--error .header__status { margin-top: 10px; font-size: clamp(30px, 6vw, 42px); font-weight: 700; }
.header--error .header__message { margin-top: 10px; font-size: clamp(17px, 2.6vw, 22px); }
.header--error .header__detail { max-width: 640px; margin: 14px auto 0; font-size: 15px; }
