@charset "utf-8";

/* =======================================
	common
======================================= */
body {
  position: relative;
  width: 100%;
  min-height: 100lvh;
  margin: 0 auto;
  text-align: center;
  color: #fbecc7;
  background: #3a0a0d;
  line-height: 1;
  font-family: "Noto Sans JP", sans-serif;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

table {
  width: 100%;
}

tr,
td {
  vertical-align: top;
}

a {
  outline: none;
  text-decoration: underline;
}

a:link {
  color: #fee75f;
  text-decoration: none;
}
a:visited {
  color: #fee75f;
  text-decoration: none;
}
a:hover {
  color: #fee75f;
  text-decoration: none;
}
a:active {
  text-decoration: none;
}

/* =======================================
	layout
======================================= */
main {
  width: 100%;
  margin: 0 auto;
  padding: 1rem;
}

/* =======================================
	header
======================================= */
header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.8rem;
  width: 100%;
  margin: 0 auto;
  padding: 1em 1em 0;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-bottom: 0.5rem;
}

.header-logo {
  width: 64%;
  margin: 0;
}

/* =======================================
	text
======================================= */
h1 {
  margin: 0;
  font-size: clamp(1.063rem, 0.481rem + 2.91vw, 1.875rem);
  font-weight: bold;
  text-align: center;
}

h2 {
  font-size: clamp(0.875rem, 0.562rem + 1.57vw, 1.313rem);
  font-weight: bold;
  margin: 2rem 0 1rem 0;
  padding: 0.6rem 0;
  border-bottom: 2px solid rgba(255, 244, 96, 0.3);
  text-align: left;
  line-height: 1.2;
}

h3 {
  color: #fbecc7;
  font-size: 1rem;
  font-weight: bold;
  margin: 1.5rem 0 0.8rem 0;
  text-align: left;
}

p {
  color: #fbecc7;
  line-height: 1.8;
  margin: 1rem 0;
  text-align: left;
  font-size: clamp(0.75rem, 0.616rem + 0.67vw, 0.938rem);
}

p.notice {
  font-size: clamp(0.625rem, 0.491rem + 0.67vw, 0.813rem);
  line-height: 1.5;
}

p.copyright {
  width: 80%;
  margin: 0 auto;
  text-align: center;
  font-size: clamp(0.625rem, 0.491rem + 0.67vw, 0.813rem);
  line-height: 1.5;
}

/* =======================================
	table
======================================= */
table,
thead,
tbody,
th,
td,
tr {
  display: block;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  background: rgba(251, 236, 199, 0.05);
  border-radius: 8px;
  overflow: visible;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  white-space: normal;
}

thead tr {
  position: absolute;
  top: -9999px;
  left: -9999px;
}

tr {
  border: none;
  border-radius: 0;
  margin-bottom: 1rem;
  padding: 0;
  background: transparent;
}

th,
td {
  text-align: left;
}

th {
  background: rgba(251, 236, 199, 0.15);
  font-weight: bold;
  font-size: 0.8rem;
  padding: 0.6rem;
}

td {
  background: rgba(251, 236, 199, 0.05);
  line-height: 1.6;
  font-size: clamp(0.75rem, 0.661rem + 0.45vw, 0.875rem);
  padding: 0.8rem;
  width: 100%;
  white-space: normal;
}

/* =======================================
	language
======================================= */
.language-selector {
  margin-top: 0;
  order: unset;
  flex-shrink: 0;
}

.language-selector select {
  background: #333;
  color: white;
  border: 1px solid #555;
  padding: 5px 10px;
  border-radius: 3px;
  font-size: 14px;
}

.language-selector select:focus {
  outline: none;
  border-color: #007bff;
}

.os-title {
  display: inline-block;
  background: rgba(254, 231, 95, 0.2);
  padding: 0.3rem 0.6rem;
  margin: 0.5rem 0;
  border-radius: 4px;
  font-weight: bold;
}

.content-fade {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.content-show {
  opacity: 1;
}

/* =======================================
	download
======================================= */
.download-button {
  display: inline-block;
  background: linear-gradient(135deg, #fff460, #ffd700);
  color: #3a0a0d;
  padding: 0.7rem 1.2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: clamp(0.75rem, 0.482rem + 1.34vw, 1.125rem);
  margin: 1em auto 3em;
  box-shadow: 0 4px 12px rgba(255, 244, 96, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: none;
  cursor: pointer;
  line-height: 1.2;
}

.download-button:link,
.download-button:visited {
  color: #3a0a0d;
}

.download-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 244, 96, 0.4);
  color: #3a0a0d;
  text-decoration: none;
}

.download-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(255, 244, 96, 0.3);
}

/* =======================================
	pagetop
======================================= */
.page-top-btn {
  position: fixed;
  bottom: 5%;
  right: 5%;
  width: 60px;
  height: 60px;
  background: none;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  padding: 0;
  overflow: hidden;
}

.page-top-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.page-top-btn.show {
  transform: translateY(0);
  opacity: 1;
}

.page-top-btn.hide {
  transform: translateY(100px);
  opacity: 0;
}

.page-top-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.page-top-btn:active {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* =======================================
	footer
======================================= */
footer {
  width: 100%;
  margin: 0 auto;
  padding: 1rem;
}

.foot-spec {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 auto 2em;
}

.foot-spec-text {
  font-size: clamp(0.7rem, 0.616rem + 0.42vw, 0.8rem);
  text-align: left;
  line-height: 1.6;
  padding: 1rem 0.5rem;
  background: rgba(251, 236, 199, 0.03);
  border-radius: 6px;
  margin: 1rem 0;
}

.spec-item {
  display: grid;
  grid-template-columns: 8em 1fr;
  gap: 0.5em;
  margin-bottom: 0.4rem;
  align-items: baseline;
}

.spec-label {
  font-weight: 500;
  color: rgba(251, 236, 199, 0.8);
  white-space: nowrap;
}

.spec-value {
  color: #fbecc7;
}

footer ul {
  margin: 0 auto 3em;
  display: flex;
  flex-direction: column;
  align-items: center;
}

footer ul li {
  width: 100%;
}

footer ul li:first-child a {
  border-top: 1px solid #fbecc7;
}

footer ul li a:link,
footer ul li a:visited {
  font-size: 12px;
  color: #fbecc7;
  display: block;
  width: 100%;
  height: 100%;
  padding: 1em 0;
  border-bottom: 1px solid #fbecc7;
}

.foot-logo {
  width: 60%;
  max-width: 240px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
}

.foot-asobism {
  width: 100%;
  margin: 0 auto 1em;
  display: flex;
  justify-content: center;
}

.foot-asobism a {
  width: 25%;
  max-width: 72px;
}

/* =======================================
	form
======================================= */
.form-wrap {
  margin: 3em auto 0;
}

.field {
  margin-bottom: 1.5rem;
}

.field label {
  display: block !important;
  font-weight: 600;
  margin-bottom: 0.5em !important;
  color: var(--color-text);
  text-align: left !important;
  padding-bottom: 0 !important;
}

input[type="text"],
input[type="email"],
select,
textarea {
  width: 100%;
  padding: 0.75rem;
  font-size: 1rem;
  border: 2px solid #ddd;
  border-radius: 8px;
  box-sizing: border-box;
  background: var(--color-bg);
  color: var(--color-text);
  transition: border-color 0.3s ease;
}

select {
  background: white;
  color: #333;
  cursor: pointer;
}

input[type="text"]:focus,
input[type="email"]:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

textarea {
  min-height: 160px;
  resize: vertical;
}

select option {
  background: white;
  color: #333;
  padding: 0.5rem;
  font-size: 1rem;
}

.error-message {
  color: red;
  font-size: 14px;
  margin-top: 0.5em;
  text-align: left;
  line-height: 1.2;
}

.actions {
  margin-top: 2rem;
  text-align: center;
}

button[type="submit"] {
  padding: 1rem 2rem;
  font-size: 1.1rem;
  border: none;
  border-radius: 8px;
  background: #fff460;
  color: #333;
  cursor: pointer;
  min-width: 150px;
  font-weight: 600;
  transition: background-color 0.3s ease, box-shadow 0.3s ease,
    transform 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

button[type="submit"]:hover {
  background: #ffe73a;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}

button[type="submit"]:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.alert {
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.alert-success {
  background: rgba(251, 236, 199, 0.15);
  border: 1px solid #fbecc7;
  text-align: left;
  font-size: 0.8rem;
  line-height: 1.2;
}

.alert-error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.alert ul,
.error-list {
  margin: 0 0 0 18px;
  padding: 0;
}

.confirmation-notice {
  font-size: 0.8rem;
  color: #fbecc7;
  margin: 1rem auto 0;
  text-align: center;
}

button[type="submit"]:disabled:hover {
  background: #fff460 !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
  transform: none !important;
}

@media screen and (min-width: 768px) {
  header {
    max-width: 960px;
    margin: 0 auto;
    flex-direction: unset;
    text-align: left;
    gap: 1.5rem;
    padding: 2rem 1em 2em 0;
    position: relative;
    display: grid;
    grid-template-columns: 150px 1fr 150px;
    grid-template-rows: 1fr;
    align-items: center;
  }

  .header-top {
    display: contents;
  }

  .header-top > a {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
  }

  .header-top > .language-selector {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
  }

  .language-selector {
    margin-top: 0;
    order: unset;
  }

  .header-logo {
    width: 100%;
  }

  header > h1 {
    font-size: 2rem;
    text-align: center;
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  }

  h2 {
    font-size: 1.5rem;
    margin: 3rem 0 1.5rem 0;
    padding: 0.8rem 0;
  }

  h3 {
    font-size: 1.2rem;
    margin: 2rem 0 1rem 0;
  }

  p {
    font-size: 0.9rem;
  }

  table {
    display: table;
    margin: 2rem 0;
    width: 100%;
    table-layout: fixed;
  }

  thead {
    display: table-header-group;
  }

  tbody {
    display: table-row-group;
  }

  thead tr,
  tbody tr {
    display: table-row;
    border: none;
    border-radius: 0;
    margin-bottom: 0;
    padding: 0;
    background: transparent;
  }

  thead tr {
    position: static;
  }

  th,
  td {
    display: table-cell;
    padding: 1rem;
    border-bottom: 1px solid rgba(251, 236, 199, 0.2);
  }

  th {
    background: rgba(251, 236, 199, 0.15);
    width: 25%;
    font-size: 0.9rem;
    vertical-align: top;
  }

  td {
    background: rgba(251, 236, 199, 0.05);
    font-size: 0.85rem;
    width: 75%;
    vertical-align: top;
  }

  tr:last-child th,
  tr:last-child td {
    border-bottom: none;
  }

  .download-button {
    padding: 1rem 2rem;
    font-size: 1rem;
    margin: 2rem 0;
  }

  main {
    max-width: 960px;
    padding: 2rem 1rem;
  }

  footer {
    max-width: 960px;
  }

  .foot-spec {
    flex-direction: row;
    align-items: flex-start;
    gap: 2rem;
    margin: 2rem auto 3rem;
    max-width: 960px;
  }

  .foot-logo {
    flex-shrink: 0;
    width: auto;
    margin: 0;
  }

  .foot-logo img {
    width: 210px;
    height: auto;
  }

  .foot-spec-text {
    font-size: 0.85rem;
    padding: 1.5rem;
    flex: 1;
    margin: 0;
  }

  .spec-item {
    grid-template-columns: 10em 1fr;
    gap: 1em;
  }

  footer ul {
    flex-direction: row;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    max-width: 960px;
    margin: 0 auto 3em;
    flex-wrap: nowrap;
  }

  footer ul li {
    flex: 1;
    display: flex;
    justify-content: center;
  }

  footer ul li a:link,
  footer ul li a:visited {
    display: inline-block;
    font-size: 13px;
    padding: 0.6rem 1.2rem;
    background: rgba(251, 236, 199, 0.08);
    border: 1px solid rgba(251, 236, 199, 0.2);
    border-radius: 6px;
    color: #fbecc7;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
  }

  footer ul li a:hover {
    background: rgba(251, 236, 199, 0.15);
    border-color: rgba(251, 236, 199, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  }

  footer ul li a:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  }

  .page-top-btn {
    width: 70px;
    height: 70px;
  }
}
