/* ------------------------------
   基本設定
------------------------------ */
body {
    margin: 0;
    padding: 0;
    font-family: "Noto Sans JP", sans-serif;
    background-color: #f5f5f5;
    color: #333;
}

main {
    padding: 1.5rem;
    max-width: 600px;
    margin: auto;
}

a:link, a:visited {
    color: #0066c0;
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

/* ------------------------------
   通知と警告
------------------------------ */
.notice, .alert {
    margin: 1rem;
    padding: 1rem;
    border-radius: 8px;
    font-weight: bold;
}

.notice {
    background-color: #e6f4ea;
    color: #1e4620;
}

.alert {
    background-color: #fdecea;
    color: #611a15;
}

/* ------------------------------
   ボトムナビゲーション
------------------------------ */
nav {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: #fff;
    border-top: 1px solid #ccc;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.05);
    z-index: 1000;
}

nav ul {
    display: flex;
    justify-content: space-around;
    margin: 0;
    padding: 0;
    list-style: none;
}

nav li {
    flex-grow: 1;
    text-align: center;
}

nav a {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    padding: 0.6rem 0;
    text-decoration: none;
    color: #666;
    font-size: 0.85rem;
    transition: color 0.2s ease;
}

nav a span:first-child {
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
}

nav a:hover {
    color: #007bff;
}

/* ------------------------------
   サブメニュー
------------------------------ */

ul.submenu {
    /*
    background: #fff;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    */
    padding: 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content:space-around;
}

li.submenu-item {
    list-style: none;
    text-align: center;
}

li.submenu-item a {
    font-weight: 500;
}


/* ------------------------------
   フッター
------------------------------ */
footer {
    text-align: center;
    font-size: 0.75rem;
    color: #aaa;
    padding: 0.5rem 0;
}


/* ------------------------------
   フォーム系
------------------------------ */

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
}

.form-label {
    font-weight: bold;
    margin-bottom: 6px;
}

.form-note {
    font-size: 12px;
    color: #666;
    margin-top: 2px;
}

/* テキスト系入力 */
.form-input,
.form-select,
.form-textarea {
    padding: 8px 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    box-sizing: border-box;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #0078d4;
    box-shadow: 0 0 0 2px rgba(0, 120, 212, 0.2);
}

/* テキストエリア */
.form-textarea {
    resize: vertical;
    min-height: 80px;
}

/* セレクトボックス */
.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg fill='gray' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 7l3-3 3 3H7zm0 6h6l-3 3-3-3z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5em center;
    background-size: 1em;
    padding-right: 2em;
}

/* チェックボックス・ラジオ */
.form-check-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.form-check-input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #0078d4;
}

.form-check-label {
    font-size: 14px;
    color: #333;
}

.btn {
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    border-radius: 6px;
    background-color: #0078d4;
    color: white;
    cursor: pointer;
}
.btn:hover {
    background-color: #005fa3;
}

.form-error {
    color: #c00;
    font-size: 13px;
    margin-top: 4px;
}

/* ------------------------------
   全ページ共通要素
------------------------------ */

.main-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

h1 {
    display: inline;
    margin: 0;
    padding: 0;
    font-size: 24px;
}

.section-title {
    font-size: 18px;
    margin-bottom: 12px;
}

.card {
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-weight: 500;
    color: #333;
}

.card-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
    color: #666;
}

.card-item {
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
    border-bottom: solid 1px #eee;
}

.card-link-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.card-icon {
    align-self: flex-end;
    font-size: 12.5px;
    color: #0078d4;
}

.card-note {
    text-align: right;
    font-size: 12.5px;
    color: #888;
}

/* flash アニメーションを定義 */
@keyframes flash {
    from {
        background-color: rgba(255, 255, 0, 0.3);
    }
    to {
        background-color: transparent;
    }
}

/* flash クラスをアニメーションに紐付け */
.flash {
    animation: flash 0.8s ease-out;
}
