* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  color: #222;
  background: #efefef;
  line-height: 1.65;
}

img { display:block; max-width:100%; height:auto; }

a { color:inherit; text-decoration:none; }

.container {
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto;
}

/* ===== Header ===== */
.site-header__inner {
  height:68px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  position: relative; /* ← これ追加 */
}

.members-btn{
  position: absolute; /* ← これが必須 */
  top: 0;
  right: 0;

  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:150px;
  height:52px;
  padding:0 22px;
  border-radius:0 0 10px 10px;
  background:#db1717;
  color:#fff;
  font-size:18px;
  font-weight:700;
}

/* ===== Hero ===== */
.hero{
  width:100%;
  height:780px;
  background:
    linear-gradient(90deg, rgba(0,70,180,0.35) 0%, rgba(0,70,180,0.15) 40%, rgba(0,70,180,0) 70%),
    url("../images/top_image.jpg") center / cover no-repeat;
  display:flex;
  align-items:center;
}

.hero__inner{
  width:min(1100px, calc(100% - 40px));
  margin:0 auto;
}

.hero__copy {
  max-width: 520px;
  transform: translateY(-120px);
}

.hero__copy h1{
  margin:0;
  color:#fff;
  font-size: clamp(24px, 4.0vw, 36px);
  line-height:1.6;
  font-weight:600;
  text-shadow:0 3px 18px rgba(0,0,0,0.2);
}

/* ===== Message ===== */
.message{
  padding:80px 0;
}

.message__grid{
  display:grid;
  grid-template-columns:420px 1fr;
  gap:60px;
  align-items:center;
}

.message__image img{
  border-radius:15px;
  box-shadow:0 10px 30px rgba(0,0,0,0.15);
}

.message__content h2{
  margin:0 0 20px;
  font-size:36px;
  font-weight:800;
}

.message__content p{
  font-size:16px;
  margin:0 0 .3em;
}

.message__signature{
  margin-top:20px;
  font-weight:700;
}

/* ===== Links ===== */
.links{
  background:linear-gradient(#6ec1e4,#5fb3d7);
  padding:70px 0 90px;
}

.links h2{
  text-align:center;
  color:#fff;
  font-size:40px;
  margin-bottom:40px;
}

.banner-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:16px;
  max-width:900px;
  margin:0 auto;
}

.banner-grid a{ display:block; }

.banner-grid img{
  width:100%;
  border-radius:4px;
  box-shadow:0 4px 10px rgba(0,0,0,0.1);
  transition:.2s;
}

.banner-grid img:hover{
  transform:translateY(-3px);
}

.banner-member {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.member-title {
  text-align: center;
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  margin-top: 40px;
  margin-bottom: 16px;
  letter-spacing: 0.08em;
}

.banner-member img {
  width: 100%;
  border-radius: 4px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

@media (max-width: 560px) {
  .banner-member {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 24px;
  }
}
/* ===== Footer ===== */
.site-footer{
  padding:30px 0 40px;
  text-align:center;
  color:#666;
}

.footer-logo__img{
  height:32px;
  margin:0 auto 10px;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .site-header__inner {
    height: 60px;
  }

  .site-logo__img {
    height: 28px;
  }

  .members-btn {
    min-width: 118px;
    height: 42px;
    padding: 0 14px;
    font-size: 13px;
    border-radius: 0 0 8px 8px;
  }

  .hero {
    height: 520px;
    background-position: 58% center;
  }

  .hero__inner {
    width: min(100% - 32px, 1100px);
  }

  .hero__copy {
    max-width: 420px;
    padding-top: 10px;
  }

  .hero__copy h1 {
    font-size: clamp(28px, 5vw, 46px);
    line-height: 1.55;
  }

  .message {
    padding: 56px 0 64px;
  }

  .message__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .message__image {
    max-width: 520px;
    margin: 0 auto;
  }

  .message__content h2 {
    font-size: 34px;
    line-height: 1.45;
  }

  .message__content p {
    font-size: 16px;
    line-height: 1.9;
  }

  .links {
    padding: 54px 0 68px;
  }

  .links h2 {
    font-size: 34px;
    margin-bottom: 28px;
  }

  .banner-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

@media (max-width: 560px) {
  .container,
  .hero__inner {
    width: calc(100% - 24px);
  }

  .site-header__inner {
    height: 56px;
    gap: 10px;
  }

  .site-logo__img {
    height: 22px;
    max-width: 220px;
  }

  .members-btn {
    min-width: 88px;
    height: 36px;
    padding: 0 10px;
    font-size: 11px;
    font-weight: 700;
  }

  .hero {
    height: 260px;
    align-items: flex-start;
    padding-top: 28px;
    background-position: 62% center;
  }

  .hero__copy {
    max-width: 250px;
    padding: 0;
  }

  .hero__copy h1 {
    font-size: 14px;
    line-height: 2.0;
    letter-spacing: 0.02em;
    text-shadow: 0 2px 10px rgba(0,0,0,0.22);
  }

  .message {
    padding: 34px 0 42px;
  }

  .message__grid {
    gap: 20px;
  }

  .message__image {
    max-width: 100%;
  }

  .message__image img {
    border-radius: 10px;
  }

  .message__content h2 {
    margin-bottom: 14px;
    font-size: 22px;
  }

  .message__content p {
    font-size: 14px;
    line-height: 1.85;
    margin-bottom: 0.9em;
  }

  .message__signature {
    margin-top: 14px;
    font-size: 14px;
  }

  .links {
    padding: 36px 0 44px;
  }

  .links h2 {
    font-size: 22px;
    letter-spacing: 0.12em;
    margin-bottom: 20px;
  }

  .banner-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .banner-grid img {
    border-radius: 2px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  }

  .site-footer {
    padding: 22px 0 26px;
  }

  .footer-logo__img {
    height: 22px;
    margin-bottom: 8px;
  }

  .site-footer p {
    font-size: 11px;
    line-height: 1.7;
    margin: 2px 0;
  }
}

@media (max-width: 380px) {
  .site-logo__img {
    height: 20px;
    max-width: 190px;
  }

  .members-btn {
    min-width: 78px;
    font-size: 10px;
  }

  .hero {
    height: 232px;
    padding-top: 22px;
  }

  .hero__copy {
    max-width: 220px;
  }

  .hero__copy h1 {
    font-size: 13px;
    line-height: 1.95;
  }
}
