/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */
*,
*::before,
*::after { box-sizing: border-box; }


body {
    font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Sans",
                 "Yu Gothic", "Meiryo", sans-serif;
    background-color:#ffffff;
    font-size: 16px;
    color: #da6220;
}

.site-header {
    background-color: #ede8d1;
    color: #ffffff;
    padding: 8px 15px;
    border-bottom: 1px solid #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2000;
    gap: 12px;
    margin-bottom: 40px;
    min-height: 72px;
    padding-top: 10px;
    padding-bottom: 10px;
}

.menu-toggle {
    border: none;
    background: transparent;
    padding: 8px;
    border-radius: 10px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    width: 36px;
    padding: 0;
    border-radius: 10px;
}

.menu-icon {
    display: inline-block;
    width: 22px;
    height: 2px;
    background: #da6220;
    position: relative;
}

.menu-icon::before,
.menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: #da6220;
}

.menu-icon::before { top: -7px; }
.menu-icon::after  { top: 7px; }

.dropdown-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 180px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(0,0,0,0.12);
    padding: 8px;
    z-index: 2000;
    margin: 0;
}

.dropdown-item {
    display: flex;
    width: 100%;
    text-align: left;
    padding: 10px 12px;
    border-radius: 10px;
    text-decoration: none;
    border: none;
    background: transparent;
    cursor: pointer;
    color: #da6220;
    align-items: center;
    font-size: 0.95rem;
    line-height: 1.2;
}

.dropdown-item:hover {
    background: rgba(0,0,0,0.06);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

.nav-menu {
    display: flex;
    align-items: center;
    justify-content: right;
    gap: 12px;
    padding: 8px 15px;
    flex: 1;
}

.nav-button {
    background-color: #ffffff;
    color: #da6220;
    padding: 8px 15px;
    border-radius: 5px;
    border: none;
    line-height: 1;
    text-decoration: none;
    transition: background-color 0.2s, transform 0.1s;
    font-size: 16px;
    font-family: inherit;
    display: inline-block;
    text-align: center;
}

.nav-button:hover {
    background-color: #da6220;
    color: #ffffff;
}

.login-main {
    max-width: 420px;
    margin: 0 auto;
    padding: 24px 16px;   
}

.login-main ul {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 480px;
}
.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.login-form {
    display: flex;
    flex-direction: column;
}
.login-button {
    background-color: #da6220;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 10px;
    border: none;
    text-align: center;
    font-size: 16px;
    text-decoration: none;
    transition: background-color 0.2s, transform 0.1s;
}

.login-button:hover {
    background-color: #ffffff;
    color: #da6220;
}

.register-button {
    background-color: #da6220;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 10px;
    border: none;
    text-align: center;
    font-size: 16px;
    text-decoration: none;
    transition: background-color 0.2s, transform 0.1s;
}

.register-button:hover {
    background-color: #ffffff;
    color: #da6220;
}

.form-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.symptom-buttons, .actions {
    display: grid;
    grid-template-columns: repeat(3, 90px);
    gap: 12px;
    margin-bottom: 20px;
    justify-content: center;
}

.symptom-buttons,
.form-row,
.actions,
.footer,
.site-footer {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.symptom-button {
    background-color: #e0f2f1;
    border: 1px solid #ede8d1;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: #ede8d1;
    color: #da6220;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 22px;
}

.record-button {
    border: 1px solid #ede8d1;
    background: #ede8d1;
    color: #da6220;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    height: 38px;
    min-width: 54px;
    padding: 0 12px;
    font-size: 14px;
    font-weight: 400;
}

.symptom-button.selected {
    background-color: #009688;
    color: white;
}

.form-control {
    flex: 1;
    border: 2px solid #ede8d1;
    min-width: 0;
    width: auto;
    padding: 8px;
    border-radius: 6px;
    border: 2px solid #ede8d1;
    font-size: 15px;
}

.form-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
}

.footer {
    text-align: center;
    justify-content: center;
    margin-top: 24px;
    font-size: 14px;
    color: #555;
    
}

.actions {
    display: flex;
    justify-content: center;
    margin-top: 32px;
}

.heal-button {
    display: inline-block;
    padding: 12px 24px;
    white-space: nowrap;
    background-color: #da6220;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
}

.kids-show {
    display: flex;
    justify-content: center;
}

.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
  
.popup-content {
    background: #fff;
    padding: 20px 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    font-size: 20px;
}

.popup-message {
    margin-bottom: 20px;
    margin-top: 20px;
    font-size: 14px;
}

.summary-header {
    position: relative;
    font-size: 14px;
    margin-bottom: 32px;
    text-align: center;
    line-height: 1.4;
}

.summary-header::after {
    content: "";
    display: block;
    width: 48px;
    height: 3px;
    background-color: #ede8d1;
    margin: 12px auto 0;
    border-radius: 2px;
}

.tabs-wrap {
    border: 1px solid #ede8d1;
    border-radius: 8px;
    background: #ffffff;
    overflow: hidden;
}

.tabs {
    display: flex;
    width: 100%;
    margin: 0;
}

.tab {
    flex: 1;
    text-align: center;
    padding: 10px 0;
    background: #f5f1dc;
    color: #da6220;
    text-decoration: none;
    opacity: 0.6;
    border: none;
    border-bottom: 1px solid #ede8d1;
}

.tab + .tab {
    border-left: 1px solid #ede8d1;
}

.tab.active {
    background: #ffffff;
    opacity: 1;
    font-weight: 600;
    border-bottom-color: #ffffff;
}

.tab-content {
    border: none;
    padding: 16px;
    width: 100%;
}

.start-button {
    background-color: #da6220;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
}

.section-title {
    font-size: 14px;
    font-weight: 600;
    margin: 16px 0 10px;
    display: flex;
    justify-content: left;
  }
  
  .muted {
    color: #777;
    font-size: 13px;
  }

  .streak-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  
  .streak-card {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid #ede8d1;
    border-radius: 12px;
    background: #fff;
  }
  
  .streak-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #ede8d1;
  }
  
  .streak-label {
    font-size: 14px;
    font-weight: 600;
    color: #da6220;
  }
  
  .streak-days {
    font-size: 12px;
    color: #666;
  }

  .week-card {
    border: 1px solid #ede8d1;
    border-radius: 12px;
    background: #fff;
    padding: 10px 12px;
    margin-top: 12px;
  }
  
  .week-title {
    font-size: 13px;
    font-weight: 600;
    color: #666;
    margin-bottom: 8px;
  }
  
  .day-item {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-top: 1px solid #f2edd7;
  }
  
  .day-item:first-of-type { border-top: none; }
  
  .day-date {
    width: 74px;
    flex: 0 0 auto;
    text-align: center;
    color: #666;
  }
  
  .day-wday { display: block; font-size: 12px; }
  .day-md   { display: block; font-size: 13px; font-weight: 600; }
  
  .day-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
  }

  .tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid #ede8d1;
    background: #f8f5e6;
    font-size: 13px;
    color: #da6220;
  }

.streak-dot.headache,
.tag.headache {
  background: #c85a3a;
}

.streak-dot.cough,
.tag.cough {
  background: #b86a3c;
}

.streak-dot.runny_nose,
.tag.runny_nose {
  background: #d9a441;
}

.streak-dot.rash,
.tag.rash {
  background: #c04f6f;
}

.streak-dot.vomit,
.tag.vomit {
  background: #b87333;
}

.streak-dot.stool,
.tag.stool {
  background: #8f7a4a;
}

.streak-dot.temperature,
.tag.temperature {
  background: #a75b8a;
}

.tag.headache,
.tag.cough,
.tag.runny_nose,
.tag.rash,
.tag.vomit,
.tag.stool,
.tag.temperature {
  color: #ffffff;
  border-color: transparent;
}


.symptom-trend {
    margin-top: 32px;
    padding: 16px;
}

.kid-index {
    position: relative;
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 32px;
    text-align: center;
    line-height: 1.4;
}

.kid-index::after {
    content: "";
    display: block;
    width: 48px;
    height: 3px;
    background-color: #ede8d1;
    margin: 12px auto 0;
    border-radius: 2px;
}

.kid-item {
    list-style: none;
    width: 100%;
    margin-bottom: 16px;
}

.kid-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    padding: 12px 16px;
    background-color: #fff;
    border-radius: 12px;
}

.kid-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
  
    display: flex;
    align-items: center;
    justify-content: center;

     /* 👤用 */
    font-size: 24px;
    background: #eee;
}

.kid-name {
    font-size: 1.1rem;
    font-weight: 600;
}

.password-reset-container {
    width: 100%;
    max-width: 420px;
    padding: 32px 28px;
    margin-top: 32px;
    background: #ede8d1;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.auth-wrapper {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    background: #ffffff;
}  

.password-reset-container .field {
    margin-bottom: 20px;
}

.password-reset-container input[type="email"] {
  width: 100%;
  max-width: 280px;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
}

.password-reset-container .actions {
    margin-top: 10px;
    flex-direction: column;
}

.site-footer {
    margin-top: 40px;
    padding: 16px 0;
    text-align: center;
    font-size: 14px;
    color: #666;
}

.site-footer a {
    color: #666;
    text-decoration: none;
}
  
.site-footer a:hover {
    text-decoration: underline;
}

.policy-container {
    width: 100%;
    max-width: 760px;
    padding: 32px 28px;
    background: #ede8d1;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    margin-top: 10px;
}

.policy-container h1 {
    margin: 0 0 16px;
    font-size: 24px;
}

.policy-container h2 {
    margin: 24px 0 8px;
    font-size: 18px;
}
  
.policy-container p {
    margin: 0 0 12px;
    line-height: 1.8;
}
  
.policy-container ul,
.policy-container ol {
    margin: 0 0 12px;
    padding-left: 1.3em;
    line-height: 1.8;
}
  
.policy-container li {
    margin: 6px 0;
}

.policy-container .policy-meta {
    margin-top: 12px;
    font-size: 14px;
    color: #555;
}
  
@media (max-width: 768px) {
  .policy-container {
      max-width: 92vw;
      padding: 20px 16px;
      border-radius: 14px;
  }

  .policy-container h1 {
      font-size: 20px;
  }
}

.form-actions--oauth {
    margin-top: 12px;
    text-align: center;
}

.record-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
}
  
.record-card {
    background: #fff;
    border: 1px solid #ede8d1;
    border-radius: 14px;
    padding: 14px 14px 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.05);
}
  
.record-card__header {
    display: grid;
    gap: 6px;
    margin-bottom: 10px;
}
  
.record-period {
    font-size: 12px;
    color: #666;
}
  
.record-period__sep {
    margin: 0 6px;
    color: #999;
}
  
.record-name {
    font-size: 15px;
    font-weight: 600;
    color: #da6220;
}
  
.record-symptoms {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
  
.mini-tag {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    background: #ede8d1;
    color: #da6220;
    font-size: 12px;
    border: 1px solid rgba(218, 98, 32, 0.12);
}
  
.record-symptoms__empty {
    font-size: 12px;
    color: #777;
}

.search-button {
  display: inline-flex;
  padding: 6px 18px;
  background-color: #ede8d1;
  color: #da6220;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  align-items: center;
  margin-bottom: 50px;
}

.header-auth{
    display: flex;
    gap: 10px;
    align-items: center;
    margin-left: auto;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.logo-link img{
  height: 56px;
  width: auto;
}
  
.auth-button{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 15px;
    line-height: 1;
    border: 1px solid #da6220;
    background: #da6220;
    color: #ffffff;
}
  
.auth-button--signup{
    background: #da6220;
    color: #ffffff;
    border-color: #da6220;
}
  
.lp{
    max-width: 980px;
    margin: 0 auto;
    padding: 0 16px 48px;
}
  
.lp-hero{
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 24px;
    align-items: center;
    margin-bottom: 40px;
}
  
.lp-hero__title{
    font-size: 35px;
    margin: 0 0 10px;
    color: #da6220;
}
  
.lp-hero__lead{
    margin: 0 0 18px;
    line-height: 1.8;
    font-size: 16px;
}
  
.lp-hero__cta--center{
    justify-content: center;
}
  
.lp-cta{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 16px;
    border: 1px solid #da6220;
}
  
.lp-cta--primary{
    background: #da6220;
    color: #ffffff;
}
  
.lp-hero__note{
    margin: 8px 0 0;
    font-size: 13px;
    color: #666;
    line-height: 1.6;
}

.lp-section{
    margin: 34px 0;
}
  
.lp-section--center{
    text-align: center;
}
  
.lp-section__title{
    font-size: 22px;
    margin: 0 0 18px;
    color: #7a4a2e;
}
  
.lp-cards{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.lp-card{
    background: #ffffff;
    border: 1px solid #f0f0f0;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}
  
.lp-card__title{
    margin: 0 0 8px;
    font-size: 18px;
    color: #da6220;
}
  
.lp-card__text{
    margin: 0;
    line-height: 1.8;
    font-size: 14px;
}
  
.lp-steps{
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
}
  
.lp-step{
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 12px;
    align-items: start;
    background: #ffffff;
    border: 1px solid #f0f0f0;
    border-radius: 16px;
    padding: 14px 16px;
}
  
.lp-step__num{
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ede8d1;
    color: #da6220;
    font-weight: 700;
}
  
.lp-step__title{
    margin: 0 0 4px;
    font-size: 16px;
}
  
.lp-step__text{
    margin: 0;
    line-height: 1.8;
    font-size: 14px;
}
  
.lp-bullets{
    margin: 0;
    padding-left: 1.2em;
    line-height: 2;
    font-size: 15px;
}
  
@media (max-width: 860px){
  .lp-hero{
      grid-template-columns: 1fr;
  }
  .lp-cards{
      grid-template-columns: 1fr;
  }
}
  
/* ===== Responsive(SE〜大きめスマホ対応) ===== */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

@media (max-width: 480px) {
  .popup-content {
    width: 92vw;
    max-width: 420px;
    padding: 18px 16px;
    font-size: 18px;
  }

  .site-header {
    flex-wrap: nowrap;
    gap: 10px;
    margin-bottom: 22px;
    padding: 8px 12px;
    min-height: 64px;
  }

  .logo-link img{
    height: 44px;
  }

  .site-logo{
     height: 56px; width: auto; 
  }

  .site-logo{ height: 44px; }

  .nav-menu {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 6px 0 0;
    gap: 8px;
  }

  .nav-button {
    white-space: nowrap;
    padding: 8px 12px;
    font-size: 14px;
  }

  .header-auth {
    width: 100%;
    justify-content: flex-end;
    gap: 8px;
  }

  .auth-button {
    padding: 8px 10px;
    font-size: 13px;
  }

  .login-main {
    padding: 18px 14px;
  }

  .form-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .form-row.form-row--date {
    flex-direction: column;
    align-items: stretch;
  }

  .date-separator {
    text-align: center;
    width: 100%;
  }

  .form-control {
    width: 100%;
  }

  .record-button {
    width: 100%;
    height: 42px;
  }

  .form-actions--oauth .login-button {
    width: 100%;
  }

  .symptom-buttons {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    justify-content: stretch;
  }

  .symptom-button {
    width: 100%;
    height: 72px;
    border-radius: 18px;
    margin-bottom: 0;
    font-size: 15px;
  }

  .kid-link {
    padding: 12px 14px;
  }

  .kid-icon {
    width: 56px;
    height: 56px;
    font-size: 20px;
  }

  .kid-name {
    font-size: 1rem;
  }

  .kids-show {
    padding: 0 6px;
  }

  .tab {
    padding: 10px 0;
    font-size: 14px;
  }

  .tab-content {
    padding: 12px;
  }

  .day-item {
    flex-direction: column;
    gap: 8px;
    padding: 12px 0;
  }

  .day-date {
    width: auto;
    text-align: left;
    display: flex;
    gap: 10px;
    align-items: baseline;
  }

  .day-wday {
    display: inline;
  }

  .day-md {
    display: inline;
  }

  #symptomTrendChart {
    width: 100% !important;
    height: auto !important;
    display: block;
  }

  .symptom-trend {
    padding: 12px 10px;
  }

  .lp {
    padding: 0 14px 36px;
  }

  .lp-hero__title {
    font-size: 28px;
  }

  .lp-section__title {
    font-size: 20px;
  }

  .lp-hero__cta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
  }

  .lp-cta {
    width: 100%;
  }
}

/* ===== 481px〜768px : 普通のスマホ〜小型タブレット ===== */
@media (max-width: 768px) {
  .login-main {
    max-width: 520px;
  }

  .symptom-buttons {
    grid-template-columns: repeat(3, 1fr);
  }

  .symptom-button {
    width: 100%;
    height: 80px;
    margin-bottom: 0;
    border-radius: 20px;
  }
}

.upload-status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.spinner {
  width: 18px;
  height: 18px;
  border: 3px solid rgba(0,0,0,.15);
  border-top-color: rgba(0,0,0,.6);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.upload-error {
  margin-top: 8px;
  color: #b00020;
}

[hidden] { display: none !important; }

.kid-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.kid-edit-link{
  font-size: 13px;
  color: #da6220;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid rgba(218, 98, 32, 0.25);
  background: rgba(218, 98, 32, 0.06);
  white-space: nowrap;
}

dialog{
  width: min(92vw, 520px);
  border: none;
  border-radius: 12px;
  padding: 0;
}
.modal-inner{
  padding: 16px; 
}

.modal-footer{ 
  margin-top: 12px; 
  display:flex; 
  gap:8px; 
  justify-content: center; 
  align-items: center;
}

turbo-frame#modal dialog[open] {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(92vw, 520px);
  border: none;
  border-radius: 12px;
  padding: 0;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

turbo-frame#modal dialog::backdrop {
  background: rgba(0,0,0,0.75);
}

turbo-frame#modal .modal-inner { padding: 16px; }
turbo-frame#modal .modal-footer { margin-top: 12px; display:flex; gap:8px; justify-content: flex-end; }

.modal-inner--form{
  padding: 20px 18px;
}

.modal-title{
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 600;
  color: #da6220;
  text-align: center;
}

turbo-frame#modal .login-form{
  display: flex;
  flex-direction: column;
}

turbo-frame#modal .form-actions{
  margin-top: 14px;
}

.modal-actions{
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.modal-actions .login-button,
.modal-actions .record-button{
  width: 100%;
  max-width: 320px;
}

.modal-actions .record-button{
  height: 42px;
  border-radius: 10px;
}

turbo-frame#modal dialog,
turbo-frame#modal .modal-inner {
  color: #da6220;
}

.popup.is-hidden {
  display: none;
}

.tag.memo {
  border: none;
  cursor: pointer;
}

.today-memo {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #eee;
}

.today-memo-title {
  font-weight: bold;
  margin-bottom: 8px;
}

.today-memo-item {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 10px;
}

.today-memo-time {
  font-size: 0.85rem;
  color: #888;
}

.today-memo-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.memo-popup-item {
  text-align: left;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

.memo-popup-item:last-child {
  border-bottom: none;
}

.memo-popup-at {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 6px;
}

.memo-popup-text {
  font-size: 0.95rem;
  color: #555;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.6;
}

#memo-popup-body {
  margin: 12px 0;
  max-height: 45vh;
  overflow-y: auto;
  width: 100%;
}

#memo-popup-body, .memo-popup-text, .memo-popup-at {
  color: #555;
}

.day-more{
  text-decoration: none;
  font-weight: bold;
  padding: 2px 8px;
  color: #da6220;
}

.today-edit-wrap {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #eee;
  text-align: center;
}

.today-edit-tag {
  display: inline-flex;
  padding: 4px 12px;
  background-color: #ede8d1;
  color: #da6220;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  align-items: center;
  text-decoration: none;
}

.daily-edit-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 10px 0 16px;
  border-top: 1px solid #f2edd7;
}

.disease-name-status {
  display: flex;
  gap: 6px;
  align-items: center;
}

.disease-name-label {
  color: #777;
  font-size: 0.9rem;
}

.disease-name-value {
  font-weight: 700;
}

.disease-name-empty {
  color: #da6220;
}

.daily-edit-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin: 10px 0 16px;
  border-top: 1px solid #f2edd7;
}

.daily-edit-memo-body {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.6;
}

.daily-edit-memo-body p {
  margin: 0;
}

.symptom-button:hover,
.record-button:hover,
.heal-button:hover,
.start-button:hover {
  filter: brightness(0.97);
  cursor: pointer;
}

.symptom-button:active,
.record-button:active,
.heal-button:active,
.start-button:active {
  transform: translateY(1px);
  filter: brightness(0.94);
}
