/* css/style.css */
:root {
    --primary-color: #0056b3;
    --bg-color: #e4eff5;
    --card-bg: #ffffff;
    --text-color: #333;
    --text-muted: #666;
    --border-radius: 8px;
}

body {
  font-family: "Noto Sans JP", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
header {
    background-color: var(--primary-color);
    color: white;
    padding: 5px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0;
    padding-bottom: 0;
}

.app-info {
    display: flex;
}

.logo {
    width: 48px;
    height: 48px;
}
.app-title {
    text-align: left;
    text-indent: 0.5em;
    font-size: 1.3rem;
}

.user-info {
    font-size: 0.9rem;
}

/* Cards */
.card {
    border-radius: var(--border-radius);
    padding: 10px;
/*    max-width: 400px; */
    margin: 0 auto;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.owned-battle-items{
    background-color: #fff8dc;
}
.card h1 {
    margin-top: 0;
    font-size: 1.2rem;
    color: var(--text-muted);
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.card .btn-area {
    display: flex;
    gap: 10px;
    margin-top: 40px;
}

/* Balance Section */
.balance-amount {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--text-color);
}

.account-number {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Quick Actions */
.action-buttons {
    display: flex;
    gap: 10px;
}

.btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: background 0.3s;
    text-decoration: none;
}

.btn-clear        { color: #0056b3; background-color: #d8aed2 }
.btn-mainmenu     { color: white; background-color: #4f97df }
.btn-passchange   { color: #004494; background-color: #bbeaf0 }
.btn-delete       { color: white; background-color: #dc3545 }
.btn-submit       { color: white; background-color: #0056b3 }
.btn-submit:hover { color: white; background-color: #004494; }
.btn-normal       { color: white; background-color: #0056b3; }
.btn-normal:hover { color: white; background-color: #004494; }
.btn-cancel       { color: white; background-color: #0056b3; }
.btn-cancel:hover { color: white; background-color: #004494; }
.btn-registration { color: #004494; background-color: #d8d39e; }
.btn-registration:hover { color: #004494; background-color: #b4a711; }

/* Transaction List */
.transaction-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.transaction-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.transaction-item:last-child {
    border-bottom: none;
}

.t-info {
    display: flex;
    flex-direction: column;
}

.t-desc {
    font-weight: bold;
}

.t-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.t-amount {
    font-weight: bold;
}

.amount-plus { color: #28a745; }
.amount-minus { color: #dc3545; }

/* Forms */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    box-sizing: border-box;
    font-size: 1rem;
}


        /* ハンバーガーメニュー用スタイル */
        .hamburger-menu {
            display: inline-block;
            position: relative;
            margin-left: 15px;
            vertical-align: middle;
        }
        .hamburger-btn {
            background: none;
            border: none;
            font-size: 1.4rem;
            cursor: pointer;
            padding: 0;
            line-height: 1;
            color: inherit;
        }
        .menu-content {
            display: none;
            position: absolute;
            right: 0;
            top: 100%;
            background-color: #fff;
            min-width: 160px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.15);
            border-radius: 4px;
            z-index: 1000;
            border: 1px solid #eee;
        }
        .menu-content.show { display: block; }
        .menu-content a {
            display: block;
            padding: 12px 16px;
            text-decoration: none;
            color: #333;
            font-size: 0.95rem;
        }
        .menu-content a:hover { background-color: #f5f5f5; }
        .menu-divider {
            border-top: 1px solid #eee;
            margin: 0;
        }


        .terms-container {
            max-height: 60vh;
            overflow-y: auto;
            padding: 15px;
            border: 1px solid #ddd;
            border-radius: 4px;
            background-color: #fcfcfc;
            margin-bottom: 20px;
        }
        .terms-text {
            white-space: pre-wrap;
            font-size: 0.9rem;
            line-height: 1.6;
            color: #333;
        }

.hamburger-btn .material-icons{
        font-size: 38px;
}

.text-right{
    text-align: right;
}

.h-menu{
    padding-top:5px;
    padding-bottom:5px;
    white-space: nowrap;
}

.user-info{
    text-align: center;
    padding: 3px;
    margin: 3px 15px 3px 15px;
    background-color: #FFF8DC;
    text-decoration: none;
    font-size: 1.2em;
}
.conditions{
    margin-top:50px;
}

        .error { color: red; background: #ffe6e6; padding: 10px; border: 1px solid red; }
        .success { color: green; background: #e6ffe6; padding: 10px; border: 1px solid green; }

        .font-bold { font-weight: bold; }

        .margin20{ margin: 20px 0; }

        .hissu{ color:red; font-weight:normal;}
        .width-auto{width: auto;}
        .display-inline{display:inline;}
        .font-weight-normal{font-weight:normal;}
        .margin-left-10{margin-left:10px;}
        .text-align-center{text-align:center;} 
        .margin-top-20{margin-top: 20px;}

section h2{
    margin: 0;
}
.owned-battle-items img{
    width: 30px;
}
.owned-battle-items ul{
padding-left: 0px;
}
.owned-battle-items li{
    font-size: 1.2em;
    display: inline;
    margin-right:25px;
    white-space: nowrap;
}

.liver-menu {
    background-color: #ffe5e5;
}

.cp_ipselect04 {
  font-size: 18px;
  position: absolute;
  display: flex;
  align-items: center;
  margin: 20px 20px 20px 60px;
  border: 2px solid #1d6580;
  border-radius: 10px;
  background: linear-gradient(0deg, #d0ebf5, #ffffff); /* 上下の淡いグラデーション */
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2); /* 立体感を出す影 */
}
/***
.cp_ipselect04 {
  font-size: 18px;
  position: relative;
  display: flex;
  align-items: center;
  margin: 20px auto;
  border: 2px solid #da3c41;
  border-radius: 10px;
}
***/
/*プルダウンの三角を設定*/
.cp_ipselect04::before {
  font-size: 18px;
  position: absolute;
  right: 15px;
  content: '';
  width: 16px;
  height: 8px;
  background: #1d6580;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}
.cp_ipselect04 select {
  font-size: 18px;
  width: 100%;
  padding: 10px 45px 10px 15px;
  color: #000000;
  cursor: pointer;
  text-overflow: ellipsis;/*テキストがオーバーしたら'...'で省略*/
  z-index: 1;
  /* 標準のスタイルを無効にする */
  border: none;
  appearance: none;
  outline: none;
  background: transparent;
}
