/*
Theme Name: Twenty Twenty-Four Gekkado
Theme URI: https://gekkado.com/
Description: Child theme for Twenty Twenty-Four used on the Gekkado website.
Template: twentytwentyfour
Version: 1.0.0
Text Domain: twentytwentyfour-gekkado
*/

body {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  line-height: 1.8;
}

h1, h2, h3 {
  line-height: 1.4;
  letter-spacing: 0.03em;
}

/* ボタンの色 */
.wp-block-button__link {
  background-color: #0073e6;
  border-color: #0073e6;
  color: #ffffff;
}

.wp-block-button__link:hover,
.wp-block-button__link:focus {
  background-color: #005bb5;
  border-color: #005bb5;
  color: #ffffff;
}

/* トップページで表示する固定ページだけはタイトル加工 */
h1.wp-block-post-title {
  font-size: var(--wp--preset--font-size--x-large) !important;
}

.wp-block-group.no-padding-top {
  padding-top: 0 !important;
}

/* お問い合わせフォームを改良 */
.contact-form {
  max-width: 640px;
  margin: 0 auto;
}

.contact-form__field {
  margin-bottom: 24px;
}

.contact-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  line-height: 1.5;
}

.contact-form__required,
.contact-form__optional {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}

.contact-form__required {
  color: #ffffff;
  background-color: #c2410c;
}

.contact-form__optional {
  color: #555555;
  background-color: #eeeeee;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1px solid #cccccc;
  border-radius: 10px;
  font: inherit;
  background-color: #ffffff;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease, background-color 0.25s ease;
}

.contact-form textarea {
  min-height: 180px;
  resize: vertical;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #0073e6;
  background-color: #fdfefe;
  box-shadow: 0 0 0 4px rgba(0, 115, 230, 0.14), 0 12px 24px rgba(17, 17, 17, 0.08);
  transform: translateY(-1px);
}

.contact-form input[type="text"]:focus-visible,
.contact-form input[type="email"]:focus-visible,
.contact-form textarea:focus-visible {
  outline: none;
}

.contact-form__actions {
  margin-top: 32px;
  text-align: center;
}

.contact-form input[type="submit"] {
  min-width: 180px;
  padding: 12px 24px;
  border: none;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  color: #ffffff;
  background-color: #111111;
}

.contact-form input[type="submit"]:hover {
  opacity: 0.85;
}

.contact-form .wpcf7-not-valid-tip {
  margin-top: 6px;
  font-size: 14px;
}

.contact-form .wpcf7-response-output {
  margin: 32px 0 0;
  padding: 16px;
  border-radius: 6px;
}
