@charset "utf-8";

/* 基本レイアウト ここから！ */
@import url(common.css);

body {
    background-image: url(images/bg.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center top;
    background-attachment: fixed; /* ←背景が固定されて動かない演出にも◎ */
    color: #666666;
  }
  

header, nav, #path, #contents, footer {
  width: 860px;
  margin: 0 auto 0 auto;
}

header h1 {
  margin: 0 0 26px 0;
  padding-top: 18px;
  text-align: center;
}
header h1 img {
    width: 200px; /* 好きな幅に調整 */
    height: auto;
  }
  

nav ul {
  list-style-type: none;
  margin: 0 0 20px 0;
  padding-left: 0;
  overflow: hidden;
  display: flex;
  gap: 20px;
  justify-content: center;
}

nav ul li {
  width: 255px;
  float: left;
}

nav ul li a {
  display: block;
  height: 0;
  padding-top: 60px;
  overflow: hidden;
}

nav ul li#nav_about a {
  background-image: url(images/nav1.png);
}

nav ul li#nav_guide a {
  background-image: url(images/nav3.png);
}

nav ul li#nav_animals a {
  background-image: url(images/nav2.png);
}

nav ul li#nav_contact a {
  background-image: url(images/nav4.png);
}

#main {
  width: 550px;
  padding: 20px;
  background-color: #ffffff;
  float: left;
}
#sub {
    width: 240px;
    float: right;
  }
  
  footer {
    padding: 20px 0;
    clear: both;
    width: 860px;
    margin: 0 auto;
    background-color: #f8e8ff; /* ← やさしいピンクパープル系 */
    text-align: center;
    color: #4b3e2e;
    font-size: 14px;
  }
  #pagetop {
    margin-bottom: 10px;
  }
  footer address {
    font-style: normal;
    margin: 10px 0;
  }
  #contents::after {
    content: "";
    display: block;
    clear: both;
  }
  
  
  footer small {
    display: block;
    margin-top: 5px;
    font-size: 12px;
  }
  #main h1 {
    margin-bottom: 30px;
    padding: 0 40px 20px 10px;
    background-repeat: no-repeat, repeat-x;
    background-position: right top, left bottom;
    background-image: url(images/bg_h1_left.png),url(images/bg_h1_bottom.png);
    font-size: 50px;
  }
  
  #about #nav_about a,
  #guide #nav_guide a,
  #animals #nav_animals a,
  #contact #nav_contact a,
  nav ul li a:hover {
    background-position: 0 -60px;
  }
  
  /* 基本レイアウト ここまで↑ */
  
  /* トップページ ここから↓ */
#news ul {
    list-style-type: none;
    padding-left: 0;
  }
  
  #news ul li {
    padding: 20px 0 20px 160px;
    border-bottom: 1px dotted #fb484e;
    text-indent: -160px;
  }
  #contents::after {
    content: "";
    display: block;
    clear: both;
  }
  #graphic ul li {
    display: none;
  }
  #graphic ul li.now {
    display: block;
  }
  #main {
    margin-bottom: 30px;
  }
  #sub {
    float: right;
    width: 240px;
  }
  img {
    display: block;
    margin: 0 auto 20px;  /* ← ここで下に余白を追加！ */
  }
  /* トップページ ここまで↑ */

  /* 「動物園について」ページ ここから↓ */

  .about_area:last-child {
    margin-bottom: 0;
  }
  .animals_area {
    background-size: cover;
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 30px;
    overflow: hidden;
    display: flex;
  justify-content: space-between; /* ← 画像の間隔が開く */
  flex-wrap: wrap;                /* ← はみ出さないように折り返す */
  margin-bottom: 30px;
  }
  .animals_area figure {
    width: 48%; /* 横に2つ並べたいから50%より少し小さく */
    margin: 0;
    background: rgba(255, 255, 255, 0.7); /* 読みやすさUP */
    padding: 10px;
    box-sizing: border-box;
    text-align: center;
  }
  
  .animals_area img {
    max-width: 100%;
    height: auto;
  }
  figcaption {
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
  }
  

  h2 {
    text-align: center;
    position: relative;
    margin: 40px 0 20px;
    font-size: 24px;
  }
  h2::before,
  h2::after {
    content: "";
    display: inline-block;
    width: 60px;
    height: 2px;
    background-color: #66c3ff;
    position: absolute;
    top: 50%;
  }
  h2::before {
    left: 0;
  }
  h2::after {
    right: 0;
  }
  /* 「動物園について」ページ ここまで↑ */
  
/* 「ガイドのご案内」ページ ここから↓ */
table thead tr th {
    background-color: #ffdd63;
  }
  
  table tbody tr:nth-child(even) td {
    background-color: #eef8fa;
  }
  table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
  }
  
  th, td {
    border: 1px solid #ccc;
    padding: 10px;
    text-align: center;
  }
  
  thead th {
    color: #333;
  }
  
  .animal_name {
    font-weight: bold;
  }
  
  /* 「ガイドのご案内」ページ ここまで↑ */

/* 「人気の動物たち」ページ ここから↓ */
.animals_area figure {
    width: 265px;
    margin: 0 0 15px 20px;
    float: left;
    overflow: hidden;
    text-align: center;
  }
  
  .animals_area figure:first-child {
    margin-left: 0;
  }
  .animals_area {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
  }
  .animals_area img {
    width: 100%;
    height: auto;
  }
  /* 「人気の動物たち」ページ ここまで↑ */

/* 「お問い合わせ」ページ ここから↓ */
input[type="text"] {
    width: 200px;
  }
  
  input[type="email"] {
    width: 300px;
  }
  textarea {
    width: 100%;
    max-width: 500px;
  }
  form p {
    margin-bottom: 15px;
  }
  
  /* 「お問い合わせ」ページ ここまで↑ */