/* React画面と独立HTMLページで共用する、アプリの基本表示と外枠。 */
:root {
  --color-accent: #f28c28;
  --color-accent-text: #3d2308;
  --color-accent-dark: #99500a;
  --color-accent-soft: #fff4e8;
  --color-accent-border: #f2bd88;
  --color-accent-focus: rgba(242, 140, 40, 0.35);
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  line-height: 1.5;
  font-weight: 400;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background: #fffaf5;
  color: #101828;
}

.app-shell {
  max-width: 880px;
  margin: 0 auto;
  padding: 24px;
}

.app-header h1 {
  margin: 0;
  font-size: 2rem;
}

.app-title-link {
  color: inherit;
  text-decoration: none;
}

.app-title-link:focus-visible {
  outline: 2px solid var(--color-accent-dark);
  outline-offset: 4px;
  border-radius: 4px;
}

.app-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.panel {
  margin-top: 20px;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 18px;
  background: #fff;
}

.panel h2 {
  margin: 0;
}

.screen-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

@media (max-width: 640px) {
  .app-shell {
    padding: 12px;
  }

  .app-header-top {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }

  .app-header h1 {
    font-size: clamp(1.55rem, 8vw, 1.9rem);
    white-space: nowrap;
  }
}
