body {
    margin: 0;
    font-family: 'Noto Sans JP', sans-serif;
    display: flex;
    height: 100%;
    overflow: hidden;
    font-size: 0.9em;
}

.sidebar {
    width: 280px;
    background-color: #d3d3d3;
    color: 343a40;
    padding: 20px;
    box-sizing: border-box;
    height: 100vh;
    margin-top: 60px;
    position: fixed;
    white-space: nowrap;
    overflow-y: auto;
}

.sidebar h2 {
    margin-top: 0;
}

.sidebar ul {
    list-style-type: none;
    padding: 0;
}

.sidebar ul li {
    margin-bottom: 10px;
}

.sidebar ul li a {
    color: white;
    text-decoration: none;
}

.sidebar ul li a:hover {
    text-decoration: underline;
}

.main-content {
    flex: 1;
    padding: 20px;
    background-color: #ecf0f1;
    margin-top: 80px;
    margin-left: 280px;
    height: auto; 
    background-repeat: repeat-y;
    background-size: auto; 
    overflow: auto;
}
.select-main-content {
    flex: 1;
    padding: 20px;
    background-color: #ecf0f1;
    margin-top: 80px;
    height: auto; 
    background-repeat: repeat-y;
    background-size: auto; 
    overflow: auto;
}

.container {
    background-color: #fff;
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.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 #ccc;
    border-radius: 4px;
}
.form-control2 {
    width: 100%;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 20px;
}
.reviewform {
    width: 30%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.option-group {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.option-group input {
    flex: 2;
    margin-right: 10px;
}

.option-group select {
    flex: 1;
}

/* チャートの背景色とボーダーカラーを修正 */
.chart {
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}


.dashboard-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stats-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.input-container {
display: flex;
align-items: center;
}

.input-container input {
margin-right: 10px;
}

.chart-section, .review-table-section {
    background-color: #fff;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    flex: 1;
}

.review-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
}

.review-table th, .review-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ccc;
}

.review-table th {
    background-color: #2b6aa0;
    color: white;
    white-space: normal;
    overflow-x: auto;
}

.review-table tr:nth-child(even) {
    background-color: #f9f9f9;
}
.review-table th:nth-child(1), .review-table td:nth-child(1) { width: 40%; } /* 端末-経路 */
.review-table th:nth-child(2), .review-table td:nth-child(2) { width: 20%; } /* アクセス数 */
.review-table th:nth-child(3), .review-table td:nth-child(3) { width: 20%; } /* 前年アクセス数 */
.review-table th:nth-child(4), .review-table td:nth-child(4) { width: 20%; } /* 前年度比 */


.addquestion-table {
    width: auto;
}

.addquestion-table th, .addquestion-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ccc;
}

.addquestion-table th {
    background-color: #2b6aa0;
    color: white;
    white-space: normal;
    overflow-x: auto;
}
.addquestion-table a {
    color: white;
}
.addquestion-table tr:nth-child(even) {
    background-color: #f9f9f9;
}
.addquestion-table th:nth-child(1), .addquestion-table td:nth-child(1) { width: 7%; } /* 日付 */
.addquestion-table th:nth-child(2), .addquestion-table td:nth-child(2) { width: 3%; } /* 評価 */
.addquestion-table th:nth-child(3), .addquestion-table td:nth-child(3) { width: 18%; } /* 質問1 */
.addquestion-table th:nth-child(4), .addquestion-table td:nth-child(4) { width: 18%; } /* 質問2 */
.addquestion-table th:nth-child(5), .addquestion-table td:nth-child(5) { width: 18%; } /* 質問3 */
.addquestion-table th:nth-child(6), .addquestion-table td:nth-child(6) { width: 18%; } /* 質問4 */
.addquestion-table th:nth-child(7), .addquestion-table td:nth-child(7) { width: 18%; } /* 質問5 */


.increase {
    color: blue;
    font-weight: bold;
}

.decrease {
    color: red;
    font-weight: bold;
}

.neutral {
    color: gray;
    font-style: italic;
}

.latest-reviews-section {
    background-color: #fff;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.latest-reviews-table {
    width: 100%;
    border-collapse: collapse;
}

.latest-reviews-table th, .latest-reviews-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ccc;
}

.latest-reviews-table th {
    background-color: #2b6aa0;
    color: white;
}

.latest-reviews-table tr:nth-child(even) {
    background-color: #f9f9f9;
}


.main-menu {
    list-style-type: none;
    padding: 0;
}

.menu-item {
    position: relative;
}

.menu-item a, .sidebar ul li a {
    display: block;
    padding: 10px 0;
    text-decoration: none;
    color: #343a40;
    font-weight: 500;
    transition: background-color 0.3s;
}

.menu-item a .material-icons, .sidebar ul li a .material-icons, h2 .material-icons, h3 .material-icons, a .material-icons {
    margin-right: 10px; 
    vertical-align: middle;
}

.menu-item.deactive {
    background-color: transparent;
}

.menu-item a:hover, .sidebar ul li a:hover {
    background-color: #e2e6ea;
}

.menu-item.active a {
    background-color: #e2e6ea;
}

.menu-item.deactive a {
    background-color: transparent;
}

.menu-item .submenu a {
    background-color: transparent; 
    color: #343a40;
}

.menu-item .submenu a:hover {
    background-color: #f0f0f0;
}

.submenu {
    display: none;
    list-style-type: none;
    padding-left: 20px;
    margin-top: 10px;
}

.submenu a {
    padding: 10px 15px;
    border-left: 4px solid #4a7ebd;
    margin-bottom: 5px;
    text-decoration: none;
}



.improve-setting-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    white-space: nowrap;
    margin-bottom: 10px;
}

.improve-setting-group label {
    margin-right: 5px;
    flex: 0 0 20%;

}

.improve-setting-group input[type="text"] {
    margin-right: 5px;
    flex: 1;
}

.required-label {
    color: red;
    font-weight: bold;
    margin-left: 10px;
}
.tone-form {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}
.form-control inline {
    margin-left: -100px;
}



#message-container {
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 1000;
}

.message {
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 10px;
    color: #fff;
}

.message.success {
    background-color: #4caf50;
}

.message.error {
    background-color: #f44336;
}



h2 a {
    color: inherit;
    text-decoration: none;
}

.store-name {
    display: block;
}

.store-name-value {
    display: block;
    word-wrap: break-word; 
    white-space: normal;
    margin-right: 10px;
}


.small-text {
    font-size: 0.9em; 
    color: #666; 
    margin-left: 10px
}

.custom-textbox {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: border-color 0.3s ease;
}

.custom-textbox:focus {
    border-color: #66afe9;
    outline: none;
}

.custom-switch {
    appearance: none;
    width: 50px;
    height: 24px;
    background-color: #ccc;
    border-radius: 24px;
    position: relative;
    outline: none;
    cursor: pointer;
    margin-left: 5px;
    transition: background-color 0.3s ease;
}

.custom-switch::before {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.custom-switch:checked {
    background-color: #66afe9;
}

.custom-switch:checked::before {
    transform: translateX(26px);
}


.chart-label-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chart-container {
    flex: 1;
}

.label-container {
    flex: 1;
    padding-left: 20px;
}
.label-list {
    list-style-type: none;
    padding: 0;
}

.label-list li {
    margin-bottom: 10px;
    font-size: 18px;
}

.label-color-box {
    display: inline-block;
    width: 20px;
    height: 20px;
}

.additional-survey-container {
    text-align: right;
}

.btn-link {
    display: inline-block;
    padding: 10px 20px;
    font-size: 16px;
    background-color: #6c757d;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    cursor: pointer;
}

.btn-link:hover {
    background-color: #5a6268;
    text-decoration: none; /* ホバー時もテキストの装飾をなしに */
}

.modal {
    display: none; /* デフォルトでは非表示 */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5); /* 背景の半透明黒 */
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* 閉じるボタン */
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.add-button-container {
    margin-right: 0;
}

.add-button {
    background-color: #2b6aa0;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

.add-button:hover {
    background-color: #255982;
}

.add-button:disabled,
.add-button.disabled-button {
    background-color: #cccccc;
    color: #666666;
    cursor: not-allowed;
}

.response-item {
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.response-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

.response-content {
    margin-top: 15px;
}

.save-button {
    background-color: #2b6aa0;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    font-size: 0.9em;
    transition: background-color 0.3s ease;
}

.save-button:hover {
    background-color: #285a8e;
}

.delete-button {
    background-color: #f44336;
    color: white;
    padding: 8px 20px; /* 横長にするために幅を広く設定 */
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;

    font-size: 0.9em;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}
.delete-button:hover {
    background-color: #d32f2f;
}
.button-container {
    display: flex;
    justify-content: space-between; /* 返信 + クリアの並びと、戻るボタンを分ける */
    align-items: center;
    margin-top: 15px;
}

/* 左側のボタン（返信・クリア）をまとめる */
.left-buttons {
    display: flex;
    gap: 10px; /* 返信とクリアの間に余白を作る */
}

/* ボタン共通スタイル */
.submit-button,
.clear-button,
.back-button {
    padding: 8px 16px;
    font-size: 0.9em;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.1s ease;
    min-width: 100px; /* ボタンのサイズを統一 */
}

.submit-button {
    background-color: #2b6aa0;
    color: white;
}
.submit-button:hover {
    background-color: #1f4e78;
}

.submit-button:hover {
    background-color: #1f4e78;
}

.clear-button {
    background-color: #66b2ff; /* 淡いブルー */
    color: white;
    margin-left: 10px; /* 返信ボタンとの間隔 */
}
.clear-button:hover {
    background-color: #4a90e2;
}

/* 戻るボタン（右側に配置） */
.back-button {
    background-color: #ccc; /* グレー */
    color: black;
    text-decoration: none;
    text-align: center;
    display: inline-block;
}
.back-button:hover {
    background-color: #bbb;
}

.ai-button {
    display: inline-block;
    padding: 10px 12px;
    font-size: 12px;
    color: white;
    border: none;
    border-radius: 8px; /* 角を少し丸める */
    background-color: #666; 
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-right: 20px;
    white-space: nowrap;
}

/* ホバー時のエフェクト */
.ai-button:hover {
    background-color: #5a6268;
    text-decoration: none; 
}

.ai-support {
    display: flex;
    align-items: center;
    margin: 5 0 20;
}

.inline-label {
    display: flex;
    align-items: center;
    margin-left: 10px;
    white-space: nowrap;
}
.review-text .inline-label {
    margin-left: 0;
    margin-bottom:10px;
}

.review-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.review-text, .bool-text {
    flex: 1;
    display: flex;
    align-items: center;
}

.review-text label, .bool-text label {
    margin-right: 10px;
    white-space: nowrap;
}

.review-text select, .bool-text select {
    width: 80%;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}
table td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: center;
}
table th {    
    white-space: nowrap;
    padding: 10px;
    text-align: center;
    border: 1px solid #ddd;
    background-color: #f4f4f4;
}
table a {
    color: 6c757d;
}
/* 各列の幅を統一 */
table th:nth-child(1), table td:nth-child(1) { width: 15%; }
table th:nth-child(2), table td:nth-child(2) { width: 10%; }
table th:nth-child(3), table td:nth-child(3) { width: 40%; }
table th:nth-child(4), table td:nth-child(4) { width: 10%; }
table th:nth-child(5), table td:nth-child(5) { width: 12.5%; }
table th:nth-child(6), table td:nth-child(6) { width: 12.5%; }

.stars {
    color: gold;
}

.profile-photo {
    width: 50px;
    height: 50px;
    border-radius: 50%; /* 画像を丸くする */
    object-fit: cover; /* 画像の比率を維持しつつ、領域をカバー */
}

.review-header {
    display: flex;
    align-items: center; /* 垂直方向の位置を中央揃え */
}

.profile-photo {
    width: 50px; /* 画像サイズを小さく調整 */
    height: 50px;
    border-radius: 50%; /* 丸く表示 */
    object-fit: cover;
    margin-right: 15px; /* 画像とテキストの間に余白を追加 */
}

.reviewer-name {
    font-size: 18px;
    font-weight: bold;
}

.review-date {
    font-size: 14px;
    color: #888;
}

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #2b6aa0;
    color: white;
    padding: 2px 20px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    height: 80px; 
}


.header-logo {
    height: 80px; 
    max-width: 100%;
    display: block; 
}

.header-right {
    display: flex;
    margin-right: 50px;
    align-items: center;
}

.logout a {
    margin-left:20px;
    margin-right: 20px;
    font-size: 17px;
    color: white;
    text-decoration: none;
}

.pagination-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
}

.page-info {
    font-size: 14px;
}

.pagination {
    list-style: none;
    padding: 0;
}

.pagination li {
    display: inline;
    margin: 0 5px;
}

.pagination li a, .pagination li span {
    display: inline-block;
    padding: 8px 12px;
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.pagination li a:hover {
    background-color: #f1f1f1;
}

.pagination li.active span {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.pagination li.disabled span {
    color: #ccc;
    cursor: not-allowed;
}


.announcement-container {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    padding: 15px;
    margin-bottom: 15px;
}

.announcement-item {
    background: #eef;
    margin-bottom: 10px;
    padding: 10px;
    border-left: 4px solid #6c7ae0;
}

.announcement-item h4 {
    margin: 0;
    color: #333;
}

.announcement-item p {
    margin: 5px 0 0;
}

/* 情報メッセージ */
.announcement-item.info {
    background: #eef;
    border-left-color: #6c7ae0;
}

.announcement-item.warning {
    background: #fff4e5;
    border-left-color: #f5a623;
}

.announcement-item.error {
    background: #fdecea;
    border-left-color: #d93025;
}

.announcement-item.default {
    background: #f7f7f7;
    border-left-color: #b3b3b3;
}

.footer {
    display: none;
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: #2b6aa0;
    color: #f0f0f0;
    padding: 10px 0;

  }

  .footer a {
    color: #f0f0f0;
    text-decoration: none;
    margin: 10px;
  }
  .footer.active {
    display: block;
  }

.mobile-header {
    display: none; /* 初期状態では非表示 */
}

.exp-image {
    width: 100%;
    margin-top: 20px;
    margin-bottom: 20px;
}

.store-dropdown {
    position: relative;
    display: inline-block;
}

.store-dropdown a {
    margin-left:5px;
    margin-right: 5px;
    font-size: 17px;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.store-dropdown .material-icons {
    margin-right: 5px;
}

.store-dropdown .submenu {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 120px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.store-dropdown .submenu li {
    padding: 5px 8px;
}

.store-dropdown .submenu li a {
    color: #343a40;
    text-decoration: none;
    display: block;
    font-size:15.5px;
}

.store-dropdown .submenu li a:hover {
    background-color: #f1f1f1;
}

.store-dropdown:hover .submenu {
    display: block;
}

.account-list {
    text-align: left;
}
.account-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 10px;
    cursor: pointer;
}
.hidden-radio {
    display: none;
}
.login-status {
    font-size: 12px;
    color: #666;
}


/* モバイル & タブレット対応 */
@media (max-width: 1024px) {
    /* ヘッダーの幅調整 */
    .main-header {
        width: 95%;
    }

    /* ヘッダーの右側の要素を非表示（モバイル & タブレット） */
    .header-right {
        display: none;
    }

    /* メニューの表示 */
    .menu-toggle {
        display: block;
        cursor: pointer;
        padding: 15px;
    }

    /* サイドバーのスタイル */
    .sidebar {
        position: fixed;
        top: -100vh;
        width: 200%;
        height: auto;
        background-color: #d3d3d3;
        z-index: 1000;
        transition: top 0.5s ease-in-out;
    }

    .sidebar.active {
        top: 25px; /* ヘッダーの高さに合わせる */
    }

    /* メインコンテンツの配置 */
    .main-content {
        margin-left: 0;
        margin-top: 60px;
    }

    /* コンテナのサイズ調整 */
    .container {
        max-width: 95%;
        padding: 10px;
    }

    /* スマホ＆タブレット用のヘッダー */
    .mobile-header {
        display: flex;
    }
    .review-table-section {
        overflow-x: auto;
    }

    /* テーブルの調整 */
    table th, table td {
        padding: 8px;
        font-size: 0.8em;
        font-size: 0.85em;
    }

    table {
        display: block;
        overflow-x: auto;
        width: 100%;
        font-size: 0.8em;
        font-size: 0.85em;
    }

    .review-table {
        width: 100%;
    }

    /* テーブルの調整 */
    .addquestion-table th, .addquestion-table td {
        padding: 8px;
        font-size: 0.8em;
        font-size: 0.85em;
    }

    .addquestion-table {
        display: block;
        overflow-x: auto;
        font-size: 0.8em;
        font-size: 0.85em;
        width: 200%;
    }

    /* ダッシュボードと統計情報のレイアウト */
    .stats-container, .dashboard-container {
        flex-direction: column;
    }

    /* フォームのレイアウト調整 */
    .option-group input, .option-group select {
        width: 100%;
        margin-bottom: 10px;
    }

    .form-group label, .form-control {
        width: 100%;
        margin-bottom: 10px;
    }

    .form-control {
        padding: 8px;
    }

    /* メニューのスタイル */
    .menu-item a, .sidebar ul li a {
        padding: 5px 5px;
        font-size: 0.9em;
    }

    /* サブメニューの初期非表示 */
    .submenu {
        display: none;
    }

    .submenu a {
        padding: 10px 20px;
    }

    /* モーダルウィンドウの調整 */
    .modal-content {
        width: 90%;
        max-width: 100%;
    }
    .button-container {
        flex-direction: column; /* ボタンを縦に並べる */
        align-items: center;
        gap: 10px; /* ボタン間の間隔を調整 */
    }

    .left-buttons {
        width: 100%; /* 返信+クリアを横幅いっぱいに */
        display: flex;
        justify-content: space-between; /* 均等配置 */
    }

    .submit-button,
    .clear-button,
    .back-button {
        width: 45%; /* スマホではボタンの横幅を広げる */
        padding: 12px 20px; /* クリックしやすいサイズに */
        font-size: 1em; /* スマホでは少しフォントを大きく */
    }

    .back-button {
        width: 80%; /* 戻るボタンだけは全幅に */
    }
    .hide-on-mobile {
        display: none;
    }
    .rating {
        text-align: center;
        width: 80px; /* 横幅を狭める */
    }
    .stars {
        font-size: 10px; /* 星のサイズを調整 */
    }
}



/* デフォルトのスタイル */
@media (min-width: 1025px) {
    .menu-toggle {
        display: none;
    }