body {
  margin: 0;
  font-family: 'Helvetica Neue', sans-serif;
  background: #f7f9fb;
  color: #333;
  line-height: 1.6;
}

#static header {
  background-color: #ffffff;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

#static .logo img,
.logo img {
  height: 40px;
}
#static nav {
  background-color: #ffffff;
  box-shadow: none;
}
#static nav a {
  margin-left: 20px;
  text-decoration: none;
  color: #555;
  font-weight: 500;
  transition: color 0.3s ease;
}

#static nav a:hover {
  color: #0055aa;
  background-color: #ffffff;
}

.hero {
  background: linear-gradient(120deg, #f9f9ff 0%, #e8f1ff 100%);
  padding: 80px 20px;
  text-align: center;
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 16px;
  color: #003366;
}

.hero p {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 20px;
}

.hero a {
  display: inline-block;
  background-color: #0055aa;
  color: white;
  padding: 14px 36px;
  border-radius: 30px;
  text-decoration: none;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

.hero a:hover {
  background-color: #003f7f;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  padding: 60px 20px;
  max-width: 1100px;
  margin: auto;
}

.feature-card {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.04);
  text-align: center;
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-card h3 {
  color: #0055aa;
  margin-bottom: 12px;
  font-size: 1.2rem;
}

.feature-card p {
  font-size: 0.95rem;
  color: #555;
}

footer {
  background: #0055aa;
  color: white;
  text-align: center;
  padding: 30px 20px;
}

footer ul {
  list-style: none;
  padding: 0;
  margin: 0 0 10px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

footer ul li a {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.9rem;
  transition: opacity 0.3s;
}

footer ul li a:hover {
  opacity: 0.8;
}

footer small {
  font-size: 0.8rem;
  color: #e0e0e0;
}
/* ▼ ハンバーガーボタン */
.hamburger {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: #0055aa;
}

/* ▼ モバイル時のナビゲーション挙動 */
@media (max-width: 768px) {
  nav.nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    right: 20px;
    background: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 15px;
    z-index: 999;
  }

  nav.nav-links.active {
    display: flex;
  }

  nav.nav-links a {
    margin: 10px 0;
    font-size: 1rem;
  }

  .hamburger {
    display: block;
  }
}

.round-profile {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #ccc;
}

        nav {
            background-color: #0066cc;
            display: flex;
            justify-content: center;
            gap: 30px;
            padding: 15px 0;
            position: sticky;
            top: 0;
            z-index: 1000;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        }

        nav a {
            color: white;
            text-decoration: none;
            font-weight: bold;
            padding: 8px 12px;
            border-radius: 6px;
            transition: background 0.3s;
        }

        nav a:hover {
            background-color: #004999;
        }
    .container {
        max-width: 90%;
        margin: 40px auto;
        background: #fff;
        padding: 30px;
        border-radius: 12px;
        box-shadow: 0 0 10px rgba(0, 102, 204, 0.15);
    }
    h2 {
        color: #0066cc;
        border-bottom: 2px solid #cce5ff;
        padding-bottom: 10px;
        margin-bottom: 20px;
    }
    form#login{
      background-color: #ffffff;
      margin: 2em auto;
      padding: 2em;
      border-radius: 8px;
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
      display: block;
      max-width: 400px;
    }
    form {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        align-items: center;
        margin-bottom: 20px;
    }
    form input, form select {
        padding: 8px;
        border: 1px solid #ccc;
        border-radius: 6px;
    }
    form button {
        background: #0066cc;
        color: #fff;
        padding: 8px 16px;
        border: none;
        border-radius: 6px;
        cursor: pointer;
    }
    form button:hover {
        background: #004999;
    }
    .user-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.user-card {
    background: #fefefe;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    transition: transform 0.2s;
}

.user-card:hover {
    transform: translateY(-4px);
}

.user-card img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
    border: 2px solid #0066cc;
}

.user-card .user-info {
    font-size: 14px;
    color: #333;
}
.user-card .user-info strong {
    font-size: 16px;
    display: block;
    margin-bottom: 5px;
}
.user-card .user-info a {
    display: inline-block;
    margin-top: 10px;
    color: #0066cc;
    font-weight: bold;
    text-decoration: none;
}
.user-card .user-info a:hover {
    text-decoration: underline;
}



        nav {
            background-color: #0066cc;
            display: flex;
            justify-content: center;
            gap: 30px;
            padding: 15px 0;
            position: sticky;
            top: 0;
            z-index: 1000;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        }

        nav a {
            color: white;
            text-decoration: none;
            font-weight: bold;
            padding: 8px 12px;
            border-radius: 6px;
            transition: background 0.3s;
        }

        nav a:hover {
            background-color: #004999;
        }

        .container {
            max-width: 600px;
            margin: 50px auto;
            background: #ffffff;
            padding: 30px;
            border-radius: 12px;
            box-shadow: 0 0 10px rgba(0, 102, 204, 0.15);
        }

        h2 {
            color: #0066cc;
            border-bottom: 2px solid #cce5ff;
            padding-bottom: 10px;
            margin-bottom: 20px;
        }

        img.profile {
            width: 120px;
            height: 120px;
            border-radius: 50%;
            object-fit: cover;
            border: 3px solid #0066cc;
            margin-bottom: 15px;
        }

        .info label {
            font-weight: bold;
            color: #0066cc;
        }

        .info {
            line-height: 2;
            font-size: 16px;
        }

        .btn-link {
            display: inline-block;
            margin-top: 15px;
            text-decoration: none;
            color: white;
            background: #0066cc;
            padding: 10px 20px;
            border-radius: 8px;
            transition: background 0.3s ease;
        }

        .btn-link:hover {
            background: #004999;
        }
        .profile-intro {
    white-space: pre-wrap; /* 改行をそのまま反映 */
    background-color: #f1f8ff;
    padding: 15px;
    border-left: 4px solid #0066cc;
    border-radius: 8px;
    font-size: 15px;
    line-height: 1.8;
    margin-top: 10px;
    margin-bottom: 20px;
    color: #333;
}



    form {
      background: white;
      padding: 40px;
      border-radius: 12px;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
      width: 100%;
      max-width: 400px;
    }
h1 {
  text-align: center;
}
h1 img {
  height: 40px;
}
    h2 {
      text-align: center;
      margin-bottom: 20px;
      color: #003366;
    }

    label {
      display: block;
      margin-bottom: 6px;
      font-weight: bold;
      color: #333;
    }

    input[type="email"],
    input[type="password"] {
      width: 100%;
      padding: 10px 12px;
      margin-bottom: 20px;
      border: 1px solid #ccc;
      border-radius: 8px;
      box-sizing: border-box;
      font-size: 1rem;
    }

    button[type="submit"] {
      width: 100%;
      padding: 12px;
      background-color: #0055aa;
      color: white;
      border: none;
      border-radius: 8px;
      font-size: 1rem;
      cursor: pointer;
      transition: background 0.3s ease;
    }

    button[type="submit"]:hover {
      background-color: #003f7f;
    }
    .error {
      color: red;
      margin-top: 1em;
      font-weight: bold;
    }
    button:disabled {
      background: #aaa;
    }

    .sns-login {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 300px;
  margin: 20px auto;
}

.sns-login a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border-radius: 6px;
  color: white;
  font-weight: bold;
  text-decoration: none;
  font-size: 16px;
  transition: background-color 0.3s;
}

.google { background-color: #DB4437; }
.google:hover { background-color: #c23321; }

.twitter { background-color: #1DA1F2; }
.twitter:hover { background-color: #0d95e8; }

.line { background-color: #06C755; }
.line:hover { background-color: #05a049; }

.sns-login i {
  margin-right: 10px;
}



    form {
      background: white;
      padding: 40px;
      border-radius: 12px;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
      width: 100%;
      max-width: 400px;
    }
h1 {
  text-align: center;
}
h1 img {
  height: 40px;
}
    h2 {
      text-align: center;
      margin-bottom: 20px;
      color: #003366;
    }

    label {
      display: block;
      margin-bottom: 6px;
      font-weight: bold;
      color: #333;
    }

    input,
    input[type="email"],
    input[type="password"],
    input[type="email"]:focus,
    input[type="password"]:focus {
      width: 100%;
      padding: 10px 12px;
      margin-bottom: 20px;
      border: 1px solid #ccc;
      border-radius: 8px;
      box-sizing: border-box;
      font-size: 1rem;
    }

    button[type="submit"] {
      width: 100%;
      padding: 12px;
      background-color: #0055aa;
      color: white;
      border: none;
      border-radius: 8px;
      font-size: 1rem;
      cursor: pointer;
      transition: background 0.3s ease;
    }

    button[type="submit"]:hover {
      background-color: #003f7f;
    }
    .error {
      color: red;
      margin-top: 1em;
      font-weight: bold;
    }
    button:disabled {
      background: #aaa;
    }

    .sns-login {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 300px;
  margin: 20px auto;
}

.sns-login a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border-radius: 6px;
  color: white;
  font-weight: bold;
  text-decoration: none;
  font-size: 16px;
  transition: background-color 0.3s;
}

.google { background-color: #DB4437; }
.google:hover { background-color: #c23321; }

.twitter { background-color: #1DA1F2; }
.twitter:hover { background-color: #0d95e8; }

.line { background-color: #06C755; }
.line:hover { background-color: #05a049; }

.sns-login i {
  margin-right: 10px;
}



        nav {
            background-color: #0066cc;
            display: flex;
            justify-content: center;
            gap: 30px;
            padding: 15px 0;
            position: sticky;
            top: 0;
            z-index: 1000;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        }

        nav a {
            color: white;
            text-decoration: none;
            font-weight: bold;
            padding: 8px 12px;
            border-radius: 6px;
            transition: background 0.3s;
        }

        nav a:hover {
            background-color: #004999;
        }

    form {
      background-color: #ffffff;
      max-width: 600px;
      margin: 2em auto;
      padding: 2em;
      border-radius: 8px;
      box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }

    label {
      display: block;
      margin-top: 1em;
      font-weight: bold;
    }

    input[type="text"],
    input[type="date"],
    input[type="number"] {
      width: 100%;
      padding: 0.5em;
      margin-top: 0.3em;
      border: 1px solid #ccc;
      border-radius: 4px;
      box-sizing: border-box;
    }

    input[type="checkbox"] {
      margin-right: 0.5em;
    }

    button {
      margin-top: 2em;
      padding: 0.7em 1.5em;
      background-color: #007bff;
      color: white;
      border: none;
      border-radius: 4px;
      cursor: pointer;
      font-size: 1em;
    }

    button:hover {
      background-color: #0056b3;
    }

    .checkbox-group {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin-top: 0.5em;
    }

    .checkbox-group label {
      font-weight: normal;
      width: 48%;
    }

    @media (max-width: 600px) {
      .checkbox-group label {
        width: 100%;
      }
    }



        nav {
            background-color: #0066cc;
            display: flex;
            justify-content: center;
            gap: 30px;
            padding: 15px 0;
            position: sticky;
            top: 0;
            z-index: 1000;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        }

        nav a {
            color: white;
            text-decoration: none;
            font-weight: bold;
            padding: 8px 12px;
            border-radius: 6px;
            transition: background 0.3s;
        }

        nav a:hover {
            background-color: #004999;
        }

    form {
      background-color: #ffffff;
      max-width: 600px;
      margin: 2em auto;
      padding: 2em;
      border-radius: 8px;
      box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }
    img {
        max-width: 100%;
        height: auto;
    }
    label {
      display: block;
      margin-top: 1em;
      font-weight: bold;
    }

    input[type="text"],
    input[type="date"],
    textarea,
    input[type="number"] {
      width: 100%;
      padding: 0.5em;
      margin-top: 0.3em;
      border: 1px solid #ccc;
      border-radius: 4px;
      box-sizing: border-box;
    }
    textarea {height: 10em;}

    input[type="checkbox"] {
      margin-right: 0.5em;
    }

    button {
      margin-top: 2em;
      padding: 0.7em 1.5em;
      background-color: #007bff;
      color: white;
      border: none;
      border-radius: 4px;
      cursor: pointer;
      font-size: 1em;
    }

    button:hover {
      background-color: #0056b3;
    }

    .checkbox-group {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin-top: 0.5em;
    }

    .checkbox-group label {
      font-weight: normal;
      width: 48%;
    }

    @media (max-width: 600px) {
      .checkbox-group label {
        width: 100%;
      }
    }



        nav {
            background-color: #0066cc;
            display: flex;
            justify-content: center;
            gap: 30px;
            padding: 15px 0;
            position: sticky;
            top: 0;
            z-index: 1000;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        }

        nav a {
            color: white;
            text-decoration: none;
            font-weight: bold;
            padding: 8px 12px;
            border-radius: 6px;
            transition: background 0.3s;
        }

        nav a:hover {
            background-color: #004999;
        }

        .container {
            max-width: 600px;
            margin: 50px auto;
            background: #ffffff;
            padding: 30px;
            border-radius: 12px;
            box-shadow: 0 0 10px rgba(0, 102, 204, 0.15);
        }

        h2 {
            color: #0066cc;
            border-bottom: 2px solid #cce5ff;
            padding-bottom: 10px;
            margin-bottom: 20px;
        }

        img.round-profile {
            width: 120px;
            height: 120px;
            border-radius: 50%;
            object-fit: cover;
            border: 3px solid #0066cc;
            margin-bottom: 15px;
        }

        .info label {
            font-weight: bold;
            color: #0066cc;
        }

        .info {
            line-height: 2;
            font-size: 16px;
        }

        .btn-link {
            display: inline-block;
            margin-top: 15px;
            text-decoration: none;
            color: white;
            background: #0066cc;
            padding: 10px 20px;
            border-radius: 8px;
            transition: background 0.3s ease;
        }

        .btn-link:hover {
            background: #004999;
}



            nav {
            background-color: #0066cc;
            display: flex;
            justify-content: center;
            gap: 30px;
            padding: 15px 0;
            position: sticky;
            top: 0;
            z-index: 1000;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        }

        nav a {
            color: white;
            text-decoration: none;
            font-weight: bold;
            padding: 8px 12px;
            border-radius: 6px;
            transition: background 0.3s;
        }

        nav a:hover {
            background-color: #004999;
        }

    h2 {
      margin-top: 30px;
    }
    .container {
        max-width: 90%;
        margin: 40px auto;
        background: #fff;
        padding: 30px;
        border-radius: 12px;
        box-shadow: 0 0 10px rgba(0, 102, 204, 0.15);
    }
    .cards {
      display: flex;
      flex-wrap: wrap;
      gap: 20px;
      margin-top: 20px;
    }

    .card {
      background-color: #fff;
      border-radius: 10px;
      box-shadow: 0 2px 8px rgba(0,0,0,0.1);
      width: 250px;
      padding: 15px;
      box-sizing: border-box;
      text-align: center;
    }

    .card img {
      width: 100%;
      height: auto;
      object-fit: cover;
      border-radius: 50%;
    }

    .card .nickname {
      font-weight: bold;
      margin-top: 10px;
      font-size: 1.1em;
    }

    .card .info {
      color: #666;
      margin: 5px 0;
    }

    .card a.button {
      display: inline-block;
      margin-top: 10px;
      padding: 8px 12px;
      background-color: #007BFF;
      color: #fff;
      text-decoration: none;
      border-radius: 5px;
      font-size: 0.9em;
    }

    .card a.button:hover {
      background-color: #0056b3;
}




    nav {
      background-color: #0066cc;
      display: flex;
      justify-content: center;
      gap: 30px;
      padding: 15px 0;
      position: sticky;
      top: 0;
      z-index: 1000;
      box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

    nav a {
      color: white;
      text-decoration: none;
      font-weight: bold;
      padding: 8px 12px;
      border-radius: 6px;
      transition: background 0.3s;
    }

    nav a:hover {
      background-color: #004999;
    }

nav .logo a:hover {
    background-color: transparent;
}

    .container {
      max-width: 700px;
      margin: 50px auto;
      background: #ffffff;
      padding: 30px;
      border-radius: 12px;
      box-shadow: 0 0 10px rgba(0, 102, 204, 0.1);
    }

    h2 {
      color: #0066cc;
      border-bottom: 2px solid #cce5ff;
      padding-bottom: 10px;
      margin-bottom: 20px;
      font-size: 24px;
    }

    .chat-box {
      border: 1px solid #ddd;
      border-radius: 8px;
      padding: 15px;
      height: 300px;
      overflow-y: auto;
      background: #f0f4f8;
    }

    .message {
      margin-bottom: 15px;
      max-width: 80%;
      padding: 10px 15px;
      border-radius: 15px;
      position: relative;
      font-size: 15px;
      line-height: 1.5;
    }

    .message.self {
      background-color: #d1eaff;
      align-self: flex-end;
      margin-left: auto;
    }

    .message.other {
      background-color: #ffffff;
      border: 1px solid #ccc;
      margin-right: auto;
    }

    .timestamp {
      font-size: 12px;
      color: #888;
      margin-top: 5px;
      text-align: right;
    }

    form {
      margin-top: 20px;
      display: flex;
      flex-direction: column;
    }

    textarea {
      resize: none;
      padding: 10px;
      font-size: 15px;
      border-radius: 8px;
      border: 1px solid #ccc;
      height: 100px;
    }

    button {
      margin-top: 10px;
      background-color: #0066cc;
      color: white;
      padding: 12px;
      font-size: 16px;
      border: none;
      border-radius: 8px;
      cursor: pointer;
      transition: background-color 0.3s;
    }

    button:hover {
      background-color: #004999;
    }

.profile_input {
  text-align: left;
  display: block;
}
.profile_input label {
  margin-top: 0;
  margin-bottom: 0;
}
.profile_input input {
  width: auto;
}
.profile_input .checkbox-group label {
  width: auto;
}
form.edit_profile div {
  text-align: left;
  display: block;
  width: 100%;
}
.edit_profile input {
  width: auto;
}
.edit_profile .checkbox-group label {
  width: auto;
  margin-top: 0;
  display: inline;
}
.edit_profile button[type="submit"] {
  width: auto;
}
.container {
    max-width: 90%;
    margin: 40px auto;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: none;
}
.container form {
  max-width: 100%;
  display: block;
  box-shadow: none;
}
.container input,
.container button[type="submit"] {
  width: auto;
}
.message-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.message-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  width: 100%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  transition: box-shadow 0.2s;
}

.message-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.message-link {
  display: block;
  padding: 1rem;
  text-decoration: none;
  color: inherit;
}

.card-header {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
}

.profile-thumb {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 0.8rem;
}

.user-info .nickname {
  font-size: 1.1rem;
  font-weight: bold;
}

.user-info .role {
  font-size: 0.9rem;
  color: #666;
}

.last-message {
  font-size: 0.85rem;
  color: #999;
}
