@charset "utf-8";

/* =========================
    全体
========================= */

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

body {
    padding: 10px 0;
    color: #333;
    background-color: #fff;
    font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
    line-height: 1.3;
}

/* ///// 薄い青色の枠 /////*/

.container {
    width: 648px;
    min-height: 544px;
    margin-inline: auto;
    padding: 42px 0 36px;
    border: 1px solid #222;
    background-color: #dceaf7;
}

/*///// 見出し /////*/

h1 {
    font-weight: 600;
}

.container h1 {
    margin-bottom: 24px;
    text-align: center;
    font-size: 22px;
}


/* =========================
    会員登録画面
========================= */

/*///// フォーム全体の位置 /////*/

.form-content {
    width: 445px;
    margin-inline: auto;
}

/*///// 各行の共通部分 /////*/

.form-row {
    display: grid;
    position: relative;
    align-items: start;
}

.form-label {
    font-size: 16px;
    line-height: 23px;
}

.form-field {
    min-width: 0;
}

/*///// 氏名 /////*/

.name-row {
    grid-template-columns: 55px 1fr;
    margin-bottom: 24px;
}

.name-group {
    display: flex;
    align-items: center;
    gap: 20px;
}

.name-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.name-group input {
    width: 132px;
}

/*///// 性別 /////*/

.gender-row {
    grid-template-columns: 95px 1fr;
    margin-bottom: 20px;
}

.gender-group {
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 25px;
}

.gender-group label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.gender-group input {
    margin-right: 4px;
}

/*///// 住所 /////*/

.address-row {
    grid-template-columns: 55px 1fr;
    margin-bottom: 35px;
}

.address-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.address-line {
    display: grid;
    grid-template-columns: 128px auto;
    align-items: center;
    min-height: 34px;
}

.address-line label {
    white-space: nowrap;
    font-size: 15px;
}

.address-line select {
    width: 138px;
}

.address-line input {
    width: 230px;
}

.address-error {
    margin-left: 128px;
}

/*///// パスワード・メール /////*/

.normal-row {
    grid-template-columns: 145px 1fr;
    margin-bottom: 22px;
}

.normal-row .form-field > input {
    width: 267px;
}

/*///// input・select共通 /////*/

input[type="text"],
input[type="password"],
select {
    padding: 0 6px;
    height: 24px;
    border: 1px solid #222;
    border-radius: 0;
    background-color: #fff;
    font-size: 14px;
    line-height: 1.4;
}
select {
    padding: 0 2px;
}

/*///// textarea共通 /////*/
textarea {
    padding: 0 6px;
    border: 1px solid #222;
    border-radius: 0;
    background-color: #fff;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.4;
    resize: none;
}

/*///// エラー共通 /////*/

.error {
    margin: 2px 0 0;
    color: #f00;
    font-size: 14px;
    line-height: 1.2;
}

/*///// ボタン共通 /////*/

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 192px;
    height: 47px;
    border-radius: 7px;
    font-family: inherit;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
}

.button-primary {
    border: 1px solid #27599d;
    color: #fff;
    background-color: #4779c8;
}

.button-outline {
    border: 2px solid #4779c8;
    color: #27599d;
    background-color: #fff;
}

.button:hover {
    opacity: 0.85;
}

/* 会員登録画面のボタン配置 */

.button-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
}






/* =========================
    会員登録確認画面
========================= */

.confirm-content {
    width: 445px;
    margin-inline: auto;
}

.confirm-row {
    display: grid;
    grid-template-columns: 145px 1fr;
    align-items: start;
    margin-bottom: 29px;
}

.confirm-label {
    font-size: 16px;
    line-height: 23px;
}

.confirm-value {
    min-width: 0;
    font-size: 16px;
    line-height: 25px;
    word-break: break-all;
}

.confirm-name-group {
    display: flex;
    gap: 16px;
}

.confirm-value a {
    color: #0672ce;
    text-decoration: underline;
}

/* =========================
    会員登録完了画面
========================= */

.complete-container {
    min-height: 544px;
    padding: 0;
}

.complete-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 119px;
}

.complete-container .complete-content h1 {
    margin: 0;
    font-size: 22px;
    line-height: 1.4;
}

.complete-content p {
    margin: 34px 0 0;
    font-size: 16px;
    line-height: 1.5;
}

.complete-content .button {
    margin-top: 180px;
}


/* =========================
    ログイン画面
========================= */

.login-content {
    width: 445px;
    margin-inline: auto;
    padding-top: 24px;
}

.login-row {
    display: grid;
    grid-template-columns: 170px 1fr;
    align-items: start;
    margin-bottom: 22px;
}

.login-row > label {
    font-size: 16px;
    line-height: 23px;
}

.login-field > input {
    width: 267px;
}

/* =========================
    トップ画面
========================= */

.top-container {
    width: 648px;
    margin-inline: auto;
    border: 1px solid #222;
    background-color: #dceaf7;
}

.top-header {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    min-height: 61px;
    padding: 10px 18px;
    background-color: #f8dfcf;
}

.welcome-message {
    display: inline-block;
    margin-right: auto;
    width: 25%;
    word-break: break-all;
}

.top-nav {
    display: flex;
    gap: 16px;
}

/*///// リンクボタン共通 /////*/

.top-nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: auto;
    height: 38px;
    padding: 0 14px;
    border: 1px solid #222;
    color: #222;
    text-decoration: none;
    cursor: pointer;
}

.top-nav-link:hover {
    opacity: 0.75;
}

.top-main {
    margin-inline: auto;
    padding: 36px 0 36px;
    width: 445px;
    min-height: 486px;
}

.main-login {
    min-height: 425px;
}

.top-h {
    margin-top: 124px;
    text-align: center;
    color: #fff;
    font-size: 70px;
}

.top-h span {
    font-size: 50px;
}

.top-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    min-height: 61px;
    padding: 10px 18px;
    background-color: #f8dfcf;
}

.top-footer .top-nav-link {
    min-width: auto;
}

/* =========================
    スレッド作成フォーム
========================= */

.thread-content {
    width: 445px;
    margin-inline: auto;
    padding-top: 10px;
}

.thread-row {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.thread-field {
    min-width: 0;
}

.thread-row input {
    width: 290px;
}

.thread-row textarea {
    width: 354px;
    height: 200px;
}


/* =========================
    スレッド確認画面
========================= */

.thread-confirm-content {
    min-height: 260px;
}

/* =========================
    スレッド一覧画面
========================= */

.thread-search {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
}

.thread-search input {
    width: 319px;
    height: 38px;
}

.thread-search button {
    background-color: #fff;
}

.thread-list-content {
    min-height: 190px;
}

.thread-list {
    display: grid;
    margin: 50px auto 0;
    list-style: none;
}

.thread-list-item {
    display: grid;
    align-items: start;
    grid-template-columns: 42px 1fr 150px;
    margin-bottom: 16px;
    gap: 16px;
    list-style: none;
    color: #0343e2;
    word-break: break-all;
}

.thread-list-item a {
    text-decoration: none;
    color: #0343e2;
}

.thread-list-item a:hover {
    opacity: 0.7;
}

/* =========================
    スレッド詳細画面
========================= */

.detail-main {
    margin-inline: auto;
    padding: 24px 0 20px;
    width: 100%;
    min-height: 486px;
    letter-spacing: -0.04em;
}

.detail-head, .detail-body, .detail-comment {
    margin-inline: auto;
    width: 445px;
}

.detail-head {
    margin-bottom: 16px;
    text-align: center;
    word-break: break-all;
}

.detail-head h1 {
    display: inline-block;
    text-align: left;
    font-size: 17px;
}

.detail-info {
    display: flex;
    justify-content: end;
    gap: 28px;
    font-size: 15px;
    padding-right: 57px;
}

.detail-line {
    display: flex;
    justify-content: space-between;
    height: 42px;
    padding: 2px 32px 0;
    background-color: #d8d8d8;
    font-weight: 600;
}

.detail-line a {
    text-decoration: none;
    color: #30497a;
}

.detail-line div {
    color: #b3b3b3;
}

.detail-line a:hover {
    opacity: 0.7;
}

.detail-head + .detail-line {
    margin-bottom: 4px;
}

.detail-body {
    word-break: break-all;
}

.thread-info {
    margin-bottom: 4px;
    min-height: 168px;
    border: 1.5px solid #0343e2;
    border-radius: 25px;
    padding: 10px 18px;
    font-size: 15px;
    color: #0343e2;
}

.thread-name-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.thread-name-group p {
    max-width: 272px;
}

.thread-name-group time {
    white-space: nowrap;
    font-size: 14px;
    padding-top: 1px;
}

.thread-comment {
    margin-inline: auto;
    width: 405px;
    padding-top: 10px;
    border-bottom: 1px solid #cbcfd4;
}

.thread-comment .thread-name-group time {
    padding-top: 2px;
}

.likes {
    padding-left: 354px;
    min-height: 26px;
}

.like {
    border: none;
    background: none;
    cursor: pointer;
    font-size: 16px;
}

.like:hover {
    opacity: 0.7;
}

.detail-body + .detail-line {
    margin-bottom: 16px;
}

.detail-comment {
    display: grid;
    justify-items: end;
    gap: 16px;
}

.detail-comment textarea {
    width: 425px;
    height: 120px;
}

.detail-comment button {
    width: 140px;
}

/* =========================
    退会画面
========================= */

.withdraw-heading {
    margin-bottom: 48px;
    text-align: center;
    font-size: 22px;
}

.top-main form p {
    margin-bottom: 48px;
}

.top-main form {
    text-align: center;
}

.withdrawal-form button {
    width: 100px;
}


/* =========================/* =========================/* =========================/* =========================/* =========================/* =========================


/* =========================
    管理者ログイン
========================= */

/*
layout
*/
.wrapper {
    width: 648px;
    min-height: 544px;
    margin: 0 auto;
    border: 1px solid #222;
    background-color: #dceaf7;
}
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 61px;
    background-color: #d9d9d9;
    padding: 16px 18px;
}
.main {
    margin: 0 auto;
    min-height: 420px;
}
.footer {
    min-height: 61px;
    background-color: #d9d9d9;
}


/*
section
*/
.section {
    min-height: 0;
    padding: 42px 90px;
}
.section-headline {
    margin-bottom: 36px;
    text-align: center;
    font-size: 21px;
}

/*
form
*/
.form-table {
    margin-bottom: 65px;
}
.input {
    min-width: 300px;
}
.form-table tr {
    display: flex;
}
.form-table th {
    font-weight: normal;
    padding: 10px;
}
.form-table td {
    padding: 10px;
}

/*
button
*/
.form-submit {
    text-align: center;
}
.button-login {
    display: inline-block;
    text-align: center;
    padding: 8px 30px;
    border: none;
    background-color: #2f5496;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
}
.button-login:hover {
    opacity: 0.8;
}

/* =========================
    管理者トップ画面
========================= */

/*
header logo, nav
*/
.header-logo {
    text-align: center;
    font-size: 21px;
}
.header-logo, .header-nav {
    white-space: nowrap;
}
.header-user {
    display: flex;
    gap: 16px;
    padding-left: 30px;
    align-items: center;
}
.header-user p {
    word-break: break-all;
}
.header-nav a {
    display: inline-block;
    cursor: pointer;
    text-decoration: none;
    border: 1px solid #333;
    color: #333;
    padding: 6.5px 14px 8.5px;
}
.header-nav a:hover {
    opacity: 0.7;
}

/*
button link
*/
.page-transition {
    padding-top: 65px;
    text-align: center;
}
.button-common {
    display: inline-block;
    padding: 17.5px 70px 19.5px;
    border: 1.5px solid #4779c8;
    color: #4472c4;
    background-color: #fff;
    text-decoration: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    font-family: inherit;
    line-height: 1.3;
}
.button-common:hover {
    color: #fff;
    background-color: #4779c8;
    opacity: 0.8;
}

/* =========================
    会員一覧ページ
========================= */

/* -------------
    会員登録エリア
-------------- */

.section.regist {
    padding: 16px 70px 0;
}
.regist-page-transition {
    text-align: center;
}
.regist-button {
    padding: 5.5px 25px 7.5px;
    color: #fff;
    background-color: #4779c8;
}

/* -------------
    検索エリア
-------------- */

.section.search {
    padding: 16px 70px 5px;
}

/*
table
*/
.form-table.search-form {
    width: 100%;
    margin: 0 0 16px;
    border-collapse: collapse;
    border: 2px solid #333;
}
.form-table.search-form tr {
    display: table-row;
}

/*
th,td
*/
.search-form th,
.search-form td {
    height: 50px;
    border: 1px solid #333;
}
.search-form th {
    padding: 9px 5px;
    width: 120px;
    font-weight: bold;
    text-align: left;
    background-color: #d9d9d9;
}
.search-form td {
    padding: 9px 65px;
}

/*
input
*/
.search-form .input {
    min-width: 0;
    min-height: 100%;
}

/*
ID,フリーワード
*/
.input.search-form-id,
.input.search-form-keyword {
    width: 100%;
}

/*
性別欄
*/
.search-form fieldset {
    display: flex;
    align-items: center;
    gap: 9px;
    border: none;
}
.input.search-form-gender {
    width: 16px;
    height: 16px;
    cursor: pointer;
}
.search-form fieldset label {
    cursor: pointer;
}
#female {
    margin-left: 16px;
}

/*
都道府県
*/
.input.search-form-pref {
    width: 140px;
    cursor: pointer;
}

/*
検索ボタン
*/
.button-common.search-button {
    padding: 10px 45px 10px;
    font-size: 16px;
}

/* -------------
    会員一覧エリア
-------------- */

.section.results {
    padding: 14px 35px 42px;
}

/*
table
*/
.results-table {
    width: 100%;
    border: 2px solid #333;
    border-collapse: collapse;
    font-size: 12px;
}

/*
th,td
*/
.results-table th,
.results-table td {
    padding: 3px 4px;
    border: 1px dashed #333;
    word-break: break-all;
}
.results-table th {
    font-weight: normal;
    text-align: center;
    background-color: #d9d9d9;
    border-bottom: 1px solid #333;
}
.results-table td {
    background-color: #fff;
}

/*
ID
*/
.results-table th:nth-child(1),
.results-table td:nth-child(1) {
    width: 6.75%;
    text-align: center;
}

/*
氏名
*/
.results-table th:nth-child(2),
.results-table td:nth-child(2) {
    width: 18%;
    text-align: center;
}
.results-table td:nth-child(2) a {
    text-decoration: none;
}
.results-table td:nth-child(2) a:hover {
    opacity: 0.7;
}

/*
性別
*/
.results-table th:nth-child(3),
.results-table td:nth-child(3) {
    width: 6.75%;
    text-align: center;
}

/*
住所
*/
.results-table th:nth-child(4),
.results-table td:nth-child(4) {
    width: 39%;
}

/*
登録日時
*/
.results-table th:nth-child(5),
.results-table td:nth-child(5) {
    width: 16%;
    text-align: center;
}

/*
編集
*/
.result-table th:nth-child(6),
.results-table td:nth-child(6) {
    width: 6.75%;
    text-align: center;
}
.results-table td:nth-child(6) a {
    text-decoration: none;
}
.results-table td:nth-child(6) a:hover {
    opacity: 0.7;
}

/*
詳細
*/
.result-table th:nth-child(7),
.results-table td:nth-child(7) {
    width: 6.75%;
    text-align: center;
}
.results-table td:nth-child(7) a {
    text-decoration: none;
}
.results-table td:nth-child(7) a:hover {
    opacity: 0.7;
}

/*
並べ替え link
*/
.results-table th a {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    text-decoration: none;
}
.results-table th a:hover {
    text-decoration: underline;
}
.results-table th a span {
    margin-left: 2px;
    font-size: 10px;
}

/* -------------
    ページャー
-------------- */

.results-pagination {
    display: flex;
    align-items: center;
    justify-content: end;
    gap: 4px;
    margin-top: 14px;
}

/*
page link
*/
.results-pagination a,
.results-pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px 5px;
    color: #333;
    text-decoration: none;
    background-color: #fff;
    border: 1px solid #333;
}
.results-pagination a:hover {
    background-color: #ddd;
}

/*
現在番号
*/
.results-pagination .is-current {
    font-weight: bold;
    background-color: #aaa;
    color: #fff;
}

/* =========================
    会員登録・編集 入力画面
========================= */
.section.edit {
    padding: 42px 115px;
}
.section.edit input {
    height: 24px;
}

/*
row
*/
.edit-form-row,
.edit-form-row-2 {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
}
.edit-form-row:nth-child(4) {
    margin-bottom: 37px;
}
.edit-form-row-2:nth-child(7) {
    margin-bottom: 48px;
}
.edit-form-row > div:first-child {
    min-width: 32px;
}
.edit-form-row-2 > div:first-child {
    min-width: 112px;
}

/*
氏名
*/
.edit-form-name-group {
    display: flex;
    gap: 12px;
}
.edit-form-name-group input {
    width: 140px;
}
.edit-form-name-group label:nth-child(3) {
    margin-left: 12px;
}

/*
性別
*/
.edit-form-gender-group {
    display: flex;
    gap: 4px;
}
.edit-form-gender-group > label,
.edit-form-gender-group > input {
    cursor: pointer;
}

/*
都道府県
*/
.address-group {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.address-group div:nth-child(2) {
    margin-top: 21px;
}
.address-group div {
    display: flex;
    gap: 16px;
}
.address-group label {
    width: 112px;
    font-size: 14px;
    align-content: center;
}
.address-group input {
    width: 232px;
}
.address-group select {
    cursor: pointer;
}

/*
パスワード、パスワード確認、メールアドレス
*/
.edit-form-row-2 input {
    width: 280px;
}

/*
確認ボタン
*/
.button-common.edit-button {
    padding: 12px 10px 12px;
    font-size: 18px;
    min-width: 165px;
}

/*
error
*/
.address-group .error {
    margin-bottom: 21px;
}

/* =========================
    会員登録・編集 確認画面
========================= */
.section.confirm {
    padding: 42px 115px;
}

/*
dl
*/
.section.confirm dl > div {
    display: flex;
    gap: 24px;
    margin-bottom: 32px
}
.section.confirm dl > div:nth-child(6) {
    margin-bottom: 56px
}

/*
dt、dd
*/
.section.confirm dt {
    min-width: 112px;
}
.section.confirm dd {
    display: flex;
    gap: 16px;
    word-break: break-all;
}

/*
確認、前に戻るボタン
*/
.section.confirm form {
    margin-bottom: 24px;
}
.confirm-page-transition {
    text-align: center;
}
.button-common.confirm-button {
    padding: 12px 10px 12px;
    font-size: 18px;
    min-width: 165px;
}

/*
編集、削除ボタン
*/
.detail-button-area {
    display: flex;
    gap: 16px;
    justify-content: center;
}
.edit-button-area {
    text-align: center;
}