.wrapper .block #inputBlock .table {
    width: 100%;
    display: table;
	word-break: normal;
}

.wrapper .block #inputBlock .thead {
    display: table-header-group;
}

.wrapper .block #inputBlock .thead .tr {
    display: table-row;
}

.wrapper .block #inputBlock .thead .th {
    display: table-cell;
    color: #fff;
    background-color: #333;
    font-size: 125%;
    font-weight: 700;
    line-height: 1.3;
    padding-left: 6px;
    padding-right: 6px;
    padding-top: 11px;
    padding-bottom: 11px;
    border-left: 2px solid #fff;
    border-bottom: 3px solid #fff;
}



.wrapper .block #inputBlock .disc{
	font-size:12px;
	line-height:1;
}
@media screen and (max-width: 480px) {
.wrapper .block #inputBlock .tbody .td:first-child {
    border-left: none;
    width:50%;
}
.wrapper .block #inputBlock .tbody .td:nth-child(3) {
    border-left: none;
    width:30%;
}
.wrapper .block #inputBlock .disc{
	font-size:11px;
	line-height:1;
}
}
.wrapper .block #inputBlock .tbody {
    display: table-row-group;
}

.wrapper .block #inputBlock .tbody .tr {
    display: table-row;
}

.wrapper .block #inputBlock .tbody .td {
    display: table-cell;
    font-weight: 700;
    line-height: 1.3;
    padding-left: 6px;
    padding-right: 6px;
    padding-top: 16px;
    padding-bottom: 16px;
    border-bottom: 3px solid #fff;
    vertical-align: middle;
}

.wrapper .block #inputBlock .tbody .e {
    background-color: #eee;
    font-size: 125%;
    text-align: center;
}

.wrapper .block #inputBlock .tbody .v {
    background-color: #f9f9f9;
    font-size: 117%;
}



.form_txt_s{
	width:50px;
}
.form_txt{
}
.form_txt_l{
	width:180px!important;
}

.size_s {
    min-width: 86px!important;
}








#outputBlock {
}



.wrapper .block .table_panel {
    width: 100%;
    display: table;
	word-break: normal;
}

.wrapper .block .table_panel .tbody .td:first-child {
    border-left: none;
}

.wrapper .block .table_panel .tbody {
    display: table-row-group;
}

.wrapper .block .table_panel .tbody .tr {
    display: table-row;
}

.wrapper .block .table_panel .tbody .td {
    display: table-cell;
    width:33%;
    font-weight: 700;
    line-height: 1.3;
    padding-left: 6px;
    padding-right: 6px;
    padding-top: 8px;
    padding-bottom: 8px;
    vertical-align: middle;
    text-align: center;
    font-size: 117%;
    border-left: 2px solid #fff;
    border-bottom: 3px solid #fff;
    background-color: #eee;
}

@media screen and (max-width: 480px) {
	.wrapper .block .table_panel .tbody .tr-responsive {
		display: grid!important;
	}
	.wrapper .block .table_panel .tbody .td {
		width:100%;
	}
}

.label1 {
	font-weight: bold;
	font-size: 117%;
}
.label2 {
	font-size: 80%;
}
.value {
	font-weight: bold;
	color: #23ac38;
	font-size: 200%;
}
.value.mini {
	font-size: 140%;
}
#inputBlock .value {
	font-weight: bold;
	color: #23ac38;
	font-size: 200%!Important;
	padding-left:16px!Important;
}
span.unit {
	font-size: 50%;
}


.input-active {
    border-left: 2px solid #4CAF50; /* 例: 緑色の太いボーダー */
}

.wrapper .block #inputBlock .tbody .v.input-active {
    background-color: #e8f5e9; /* 例: 薄い緑色の背景 */
}

i.contentsI {
    font-size: 120%;
    padding: 8px;
    border: 1px solid #dee2e6;
    background-color: #fff;
    border-radius: 6px;
}

#outputBlock .tr .value span span.date {
font-size:16px;
}


.log-formula {
}

.ln, .log10, .log {
    font-weight: bold; /* 太字 */
}

.sub {
    font-size: 0.6em; /* 下付き文字のサイズ調整 */
    vertical-align: super; /* 上に寄せる */
}
.sub_low {
    font-size: 0.6em; /* 下付き文字のサイズ調整 */
}
        .formula {
            display: flex;
            justify-content: center;
            align-items: center;
            margin: 20px 0;
            font-size: 24px;
        }
        .fraction {
            display: inline-block;
            vertical-align: middle;
            text-align: center;
        }
        .fraction > span {
            display: block;
            padding: 0;
        }
        .fraction .denominator {
            border-top: 1px solid #000;
        }
        .factorial {
            font-size: 18px;
          
        }
        
#inputBlock .check_wrap {
}

.wrapper .block #outputBlock .table {
    width: 100%;
    display: table;
}

.wrapper .block #outputBlock .tbody .td:first-child {
    border-left: none;
}

.wrapper .block #outputBlock .tbody {
    display: table-row-group;
}

.wrapper .block #outputBlock .tbody .tr {
    display: table-row;
}

.wrapper .block #outputBlock .tbody .td {
    display: table-cell;
    width:25%;
    font-weight: 700;
    line-height: 1.3;
    vertical-align: middle;
    text-align: center;
    font-size: 117%;
    border-left: 2px solid #fff;
    border-bottom: 3px solid #fff;
    background-color: #eee;
		padding: 20px 4px 20px 4px;
}
.wrapper .block #outputBlock .tbody .v {
    background-color: #f9f9f9;
}

.wrapper .block #inputBlock .tbody .td:first-child {
    border-left: none;
    width: 35%;
}


@media screen and (max-width: 480px) {
	.wrapper .block #outputBlock .tbody .tr-responsive {
		display: grid!important;
	}
	.wrapper .block #outputBlock .tbody .td {
		width:100%;
        height: auto;
        vertical-align: middle;
	}
}

#main button {
    cursor: pointer;
    max-width: 120px;
    text-align: center;
}

#main button.active {
    background-color: #4CAF50;
    color: white;
}

.table_panel {
    margin-top: 20px;
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 20px;
}


/* プルダウンの基本スタイル */
.wrapper .block #inputBlock select {
    width: 100%;
    font-size: 117%;
    font-weight: 700;
    line-height: 1.5;
    padding: 12px;
    border: 2px solid #333;
    background-color: #f9f9f9;
    color: #333;
    border-radius: 4px;
    box-shadow: none;
    outline: none;
    appearance: none; /* デフォルトのプルダウン矢印を非表示にする */
}

/* プルダウンのホバー効果 */
.wrapper .block #inputBlock select:hover {
    border-color: #23ac38;
    background-color: #e8f5e9;
}

/* プルダウン選択時の効果 */
.wrapper .block #inputBlock select:focus {
    border-color: #4CAF50;
    background-color: #e8f5e9;
    box-shadow: 0 0 4px rgba(76, 175, 80, 0.5);
}

/* プルダウン用の矢印の追加 */
.wrapper .block #inputBlock select::after {
    content: "▼";
    font-size: 0.8em;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none; /* 矢印部分のクリックを無効化 */
}

.tab-table {
    width: 100%;
    display: contents;
}

/* タブボタンのスタイル */
.tab-button {
    padding: 10px 20px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    color: #333;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 5px 5px 0 0;
    margin-right: 5px;
    transition: all 0.3s ease;
}

.tab-button.active {
    background-color: #4CAF50; /* アクティブタブの背景色 */
    color: #fff;
    border-color: #4CAF50;
}

.tab-button:hover {
    background-color: #e0e0e0;
}

/* タブコンテナ全体のスタイル */
.tab-container {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
}

/* タブコンテンツエリアのスタイル */
.tab-content {
    display: none;
    padding: 20px;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 5px 5px;
    background-color: #fff;
}

.tab-content.active {
    display: block;
}

/* 入力フィールドスタイル */
.form_txt {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
    margin: 5px 0;
}

.unit-label {
    font-weight: bold;
    margin-left: 5px;
}

/* ドロップダウンのスタイル */
select#payoutFeeType {
    padding: 10px;
    font-size: 16px;
    border: 1px solid #4CAF50;
    background-color: #e8f5e9;
    color: #4CAF50;
    border-radius: 5px;
    cursor: pointer;
    appearance: none;
}

select#payoutFeeType:focus {
    outline: none;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.5);
}
.new-explanation .table-left td {
    text-align: left;
  }
  
.remark {
    font-size: 85%;
    padding: 4px 0;
    color: #666;
}

.value.mini {
    font-size: 120%;
}



.lowerCommon .btn_submit {
    width: 240px!important;
}


/* 出力ブロック全体のデザイン */
#usernameOutput {
    border-radius: 10px;
    padding: 20px;
    margin: auto;
}

/* ユーザーネームリストのスタイル */
#usernameList {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* ユーザーネームアイテム */
.username-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 8px;
    border: 1px solid #ddd;
    transition: background 0.3s ease;
}

.username-item:hover {
    background: #f1f1f1;
}

/* ユーザーネームのテキスト */
.username-text {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    overflow-wrap: break-word;
    text-align: left;
    max-width: 75%;
}

/* コピー用ボタン */
.copy-button {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s ease;
}

.copy-button:hover {
    background: #45a049;
}

.copy-button:active {
    background: #3d8b40;
}

/* コピー後のボタンスタイル */
.copy-button.copied {
    background: #28a745;
    color: white;
}
        .container {
            margin: auto;
        }
        .sns-section {
            background: white;
            border-radius: 10px;
            padding: 15px;
            margin-bottom: 20px;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        }
        .sns-title {
            font-size: 20px;
            font-weight: bold;
            text-align: left;
            padding-bottom: 10px;
            border-bottom: 2px solid #eee;
            margin-bottom: 10px;
        }
        .copy-container {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            justify-content: space-between;
        }
        .copy-box {
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: #ffffff;
            border-radius: 5px;
            padding: 10px;
            width: 100%;
            border: 1px solid #ddd;
        }
        .copy-button {
            background: #007BFF;
            color: white;
            border: none;
            padding: 8px 12px;
            border-radius: 5px;
            cursor: pointer;
            transition: background 0.3s;
        }
        .copy-button:hover {
            background: #0056b3;
        }
        .copied {
            background: #28a745 !important;
        }
        @media (max-width: 600px) {
            .copy-button {
                margin-top: 5px;
                width: 100%;
            }
        .copy-text {
        display: contents!Important;
    font-size: 2em!Important;
    padding: 0 0 0 4px!Important;
        }
        .copy-text .emoji-title {
        font-weight: normal;
    padding: 6px;
    border-radius: 4px;
    font-size: 12px!Important;
    margin-left: 0px!Important;
    vertical-align: middle;
max-width: 100px;
        }
        }
        .copied {
            background: #28a745 !important;
        }
        .copy-text {
    display: flow;
    font-size: 2.4em;
    width: fit-content;
    padding: 0 0 0 12px;
        }
        .copy-text .emoji-title {
        font-weight: normal;
    padding: 6px;
    border-radius: 4px;
    font-size: 0.5em;
    margin-left: 18px;
    vertical-align: middle;
        line-height:1.2;
        color: #999;
        }

textarea#inputText {
    width: 100%;
    height: 200px;
    font-size: 20px;
    font-family: 'Segoe UI', sans-serif;
    font-weight: 500;
    border: 2px solid #ccc;
    border-radius: 10px;
    padding: 15px;
    box-sizing: border-box;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    resize: vertical;
    transition: border-color 0.3s, box-shadow 0.3s;
}

textarea#inputText:focus {
    outline: none;
    border-color: #6699ff;
    box-shadow: 0 0 5px rgba(102, 153, 255, 0.5);
}

    :root {
      --primary-color: #4a6baf;
      --secondary-color: #f8f9fa;
      --accent-color: #ff6b6b;
      --text-color: #333;
      --border-color: #e0e0e0;
      --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
      --radius: 8px;
    }
    
    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }
    
    body {
    }
    
    .container {
      background: white;
      border-radius: var(--radius);
      box-shadow: var(--shadow);
      overflow: hidden;
      margin-bottom: 20px;
      font-family: 'Noto Sans JP', sans-serif;
    }
    
    .container .header {
      background-color: var(--primary-color);
      color: white;
      padding: 15px 20px;
      text-align: center;
    }
    
    .container .header .section-title {
      font-size: 1.5rem;
      
      color: white;
      font-weight: 700;
    }
    
    .section {
      padding: 20px;
      border-bottom: 1px solid var(--border-color);
    }
    
    .section:last-child {
      border-bottom: none;
    }
    
    .section-title {
      font-size: 1.2rem;
      font-weight: 700;
      margin-bottom: 15px;
      color: var(--primary-color);
      display: flex;
      align-items: center;
    }
    
    .section-title svg {
      margin-right: 8px;
    }
    
    .form-group {
      display: flex;
      flex-wrap: wrap;
      gap: 15px;
      margin-bottom: 15px;
    }
    
    .form-item {
      flex: 1;
      min-width: 200px;
    }
    
    label {
      display: block;
      margin-bottom: 5px;
      font-weight: 500;
    }
    
    select, input {
      width: 100%;
      padding: 10px 12px;
      border: 1px solid var(--border-color);
      border-radius: var(--radius);
      font-size: 1rem;
      transition: border 0.2s;
    }
    
    select:focus, input:focus {
      outline: none;
      border-color: var(--primary-color);
      box-shadow: 0 0 0 2px rgba(74, 107, 175, 0.2);
    }
    
    .yaku-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
      gap: 10px;
      margin-top: 15px;
    }
    
    .yaku-item {
      display: flex;
      align-items: center;
      padding: 8px 10px;
      background-color: var(--secondary-color);
      border-radius: var(--radius);
      transition: all 0.2s;
    }
    
    .yaku-item:hover {
      background-color: #e9ecef;
    }
    
    .yaku-item input {
      width: auto;
      margin-right: 8px;
    }
    
    .yaku-item label {
      margin-bottom: 0;
      cursor: pointer;
      flex: 1;
    }
    
    .result-container {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 15px;
      margin-top: 20px;
    }
    
    .result-card {
      background: white;
      border-radius: var(--radius);
      box-shadow: var(--shadow);
      padding: 15px;
      text-align: center;
    }
    
    .result-label {
      font-size: 0.9rem;
      color: #666;
      margin-bottom: 5px;
    }
    
    .result-value {
      font-size: 1.5rem;
      font-weight: 700;
      color: var(--primary-color);
    }
    
    .han-badge {
      display: inline-block;
      background-color: var(--accent-color);
      color: white;
      font-size: 0.7rem;
      font-weight: bold;
      padding: 2px 6px;
      border-radius: 10px;
      margin-left: 5px;
      vertical-align: middle;
    }
    
    .yakuman-badge {
      background-color: #d63031;
    }
    
    .tab-container {
      display: flex;
      border-bottom: 1px solid var(--border-color);
      margin-bottom: 15px;
    }
    
    .tab {
      padding: 10px 15px;
      cursor: pointer;
      border-bottom: 2px solid transparent;
      transition: all 0.2s;
    }
    
    .tab.active {
      border-bottom-color: var(--primary-color);
      color: var(--primary-color);
      font-weight: 500;
    }
    
    .tab-content {
      display: none;
    }
    
    .tab-content.active {
      display: block;
    }
    
    .selected-yaku-container {
      margin-top: 20px;
      padding: 15px;
      background-color: #f8f9fa;
      border-radius: var(--radius);
    }
    
    .selected-yaku-title {
      font-weight: 700;
      margin-bottom: 10px;
    }
    
    .selected-yaku-list {
      margin-bottom: 10px;
    }
    
    .calculation-details {
      font-size: 0.9rem;
      line-height: 1.6;
    }
    
    .yaku-name {
      display: inline-block;
      margin-right: 5px;
    }
    
    .yaku-reading {
      font-size: 0.8em;
      color: #666;
    }
    
    @media (max-width: 768px) {
      .form-group {
        flex-direction: column;
        gap: 10px;
      }
      
      .yaku-grid {
        grid-template-columns: 1fr;
      }
      
      .result-container {
        grid-template-columns: 1fr;
      }
    }
.yaku-item input:checked {
  background-color: var(--primary-color);
  color: white;
  border-radius: var(--radius);
}
.yaku-item input[type="checkbox"] {
  accent-color: var(--primary-color); /* modern browser support */
}

    /* ツールチップ */
    .tooltip {
      position: relative;
      display: inline-block;
      margin-left: 5px;
      cursor: help;
    }
    
    .tooltip-icon {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 16px;
      height: 16px;
      background-color: #ccc;
      color: white;
      border-radius: 50%;
      font-size: 12px;
      font-weight: bold;
    }
    
    .tooltip-text {
      visibility: hidden;
      width: 200px;
      background-color: #555;
      color: #fff;
      text-align: center;
      border-radius: 6px;
      padding: 5px;
      position: absolute;
      z-index: 1;
      bottom: 125%;
      left: 50%;
      margin-left: -100px;
      opacity: 0;
      transition: opacity 0.3s;
      font-size: 0.8rem;
      font-weight: normal;
    }
    
    .tooltip:hover .tooltip-text {
      visibility: visible;
      opacity: 1;
    }