@charset "UTF-8";

html {
  font-family: "Zen Maru Gothic", "Hiragino Maru Gothic ProN",
    "ヒラギノ丸ゴ ProN", sans-serif;
}
body {
  background-color: #fff6e5;
  color: #3d2c1e;
  font-weight: 500;
}
main {
  max-width: 28rem;
  margin: 0 auto;
  padding: 1.25rem 1.25rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
}
.title-band {
  background-color: #ffe8cc;
  border-radius: 20px;
  padding: 20px 22px;
}
h1 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.5;
  color: #7a4415;
}
.item {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: #a3733d;
  margin: 0 0 0.5rem;
}
.field {
  display: flex;
  align-items: center;
  gap: 10px;
}
select {
  flex: 1;
  min-width: 0;
  min-height: 56px;
  /* 16px未満だとiOSがフォーカス時に自動ズームする */
  font-size: 1.1875rem;
  font-weight: 700;
  color: #3d2c1e;
  padding: 0 2.5rem 0 1.125rem;
  border: 2px solid #f5d9a8;
  border-radius: 16px;
  background-color: #fff;
  box-sizing: border-box;
  /* ネイティブの矢印は端に寄りすぎるため、カスタムの矢印を内側に描く */
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%23e8a23d' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}
.unit {
  flex-shrink: 0;
  font-weight: 700;
  color: #a3733d;
}
.arrow {
  display: flex;
  justify-content: center;
  margin: -0.25rem 0;
}
#error {
  color: #d9480f;
  font-weight: 700;
}
#error:empty {
  display: none;
}
.result-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background-color: #f76707;
  border-radius: 20px;
  padding: 24px 20px;
  box-shadow: 0 6px 18px rgba(247, 103, 7, 0.25);
}
/* reset.cssの[hidden]よりdisplay: flexが後勝ちするため明示する */
.result-area[hidden] {
  display: none;
}
.result-label {
  font-size: 0.875rem;
  font-weight: 700;
  color: #ffe8cc;
}
.result-time {
  display: flex;
  align-items: baseline;
  gap: 5px;
}
#resultMinutes,
#resultSeconds {
  font-size: 2.75rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}
.result-unit {
  font-size: 1.125rem;
  font-weight: 700;
  color: #ffe8cc;
}
.examples {
  background-color: #fff;
  border: 2px solid #f5d9a8;
  border-radius: 16px;
  padding: 20px 18px;
  margin-top: 0.5rem;
}
.examples h2 {
  margin: 0 0 12px;
  font-size: 1rem;
  font-weight: 700;
  color: #7a4415;
}
.examples ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.examples li {
  font-size: 0.9375rem;
}
.examples strong {
  color: #d9480f;
  font-weight: 700;
  margin-left: 0.25em;
}
.formula {
  margin: 14px 0 0;
  font-size: 0.8125rem;
  color: #a3733d;
}
.subtitle {
  margin: 8px 0 0;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.6;
  color: #a3733d;
}
.table-wrap {
  overflow-x: auto;
}
.examples table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  white-space: nowrap;
}
.examples th,
.examples td {
  padding: 8px 6px;
  text-align: center;
  border-bottom: 1px solid #f5d9a8;
}
.examples thead th {
  background-color: #ffe8cc;
  color: #7a4415;
  font-weight: 700;
}
.examples tbody th {
  font-weight: 700;
  color: #a3733d;
}

/* --- 記事ページ ----------------------------------------------------------- */
.breadcrumb {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #a3733d;
}
.breadcrumb a {
  color: #a3733d;
}
.link-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.link-list a {
  display: block;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #d9480f;
  text-decoration: none;
  padding: 12px 14px;
  border: 2px solid #f5d9a8;
  border-radius: 12px;
  line-height: 1.5;
}
.tool {
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
}
.examples h3 {
  margin: 18px 0 8px;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #a3733d;
}
.examples p {
  margin: 0 0 12px;
  font-size: 0.9375rem;
  line-height: 1.8;
}
.examples p:last-child {
  margin-bottom: 0;
}
.examples ol {
  margin: 0;
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.9375rem;
  line-height: 1.7;
}
.examples blockquote {
  margin: 12px 0 0;
  padding: 12px 14px;
  background-color: #fff6e5;
  border-left: 4px solid #e8a23d;
  border-radius: 8px;
  font-size: 0.875rem;
  line-height: 1.7;
}
