/* Breakthrough HP — retro badge logo */
:root {
  --red: #E60012;
  --ink: #333333;
  --white: #FFFFFF;
  --ash: #F2F2F2;
  --max: 58rem;
  --pad-x: max(1.5rem, env(safe-area-inset-left, 0px));
  --pad-r: max(1.5rem, env(safe-area-inset-right, 0px));
  --radius: 1.25rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Zen Kaku Gothic New", "Hiragino Sans", Meiryo, sans-serif;
  font-weight: 400;
  color: var(--ink);
  background: var(--white);
  line-height: 1.75;
  -webkit-text-size-adjust: 100%;
}

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

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--red);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}

.site-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding: max(0.75rem, env(safe-area-inset-top, 0px)) var(--pad-r) 0.85rem var(--pad-x);
  max-width: calc(var(--max) + 6rem);
  margin: 0 auto;
}

.logo-link {
  display: inline-flex;
  flex-shrink: 0;
}

.logo-link img {
  width: min(260px, 62vw);
  height: auto;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem 1.1rem;
  list-style: none;
  margin: 0 0 0.2rem;
  padding: 0;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav a[aria-current="page"] {
  color: var(--red);
  border-bottom: 2px solid var(--red);
  padding-bottom: 1px;
}

.hero {
  padding: 2.25rem max(2rem, var(--pad-r)) 0.5rem max(1.5rem, var(--pad-x));
  max-width: calc(var(--max) + 6rem);
  margin: 0 auto;
  overflow: visible;
}

/* 板はロゴと同じ作り: 土台の角丸四角＋右上の角丸四角を合わせた形に、白と赤の二重フチ。
   寸法はロゴの座標（土台 190×186、右上の箱 144×135、右へ34・上へ32 はみ出す）に --s を掛けたもの */
.hero-board {
  --s: 0.5;
  position: relative;
  isolation: isolate;
  color: var(--white);
  border-radius: 1.75rem;
  padding: 1.75rem 1.5rem 1.9rem;
  margin: 1.25rem 1.5rem 1.5rem 0.35rem;
  overflow: visible;
}

.hb {
  position: absolute;
  background: var(--red);
  box-shadow: 0 0 0 11px var(--red);
}

.hb::before,
.hb::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.hb::before {
  z-index: 1;
  box-shadow: 0 0 0 5px var(--white);
}

.hb::after {
  z-index: 2;
  background: var(--red);
}

.hb-base {
  inset: 0;
  border-radius: 1.75rem;
}

.hb-head {
  top: calc(-32px * var(--s));
  right: calc(-34px * var(--s));
  width: calc(144px * var(--s));
  height: calc(135px * var(--s));
  border-radius: calc(20px * var(--s));
}

.hero--home .hero-board {
  --s: 1.15;
  padding: 2.4rem 1.75rem 2.6rem;
  min-height: 12rem;
}

.hero-board__inner {
  position: relative;
  z-index: 3;
  max-width: 36rem;
  padding-right: calc(170px * var(--s));
}

.hero-board h1 {
  margin: 0 0 0.65rem;
  font-weight: 900;
  font-size: clamp(1.35rem, 4.2vw, 1.85rem);
  line-height: 1.35;
  letter-spacing: 0.02em;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.hero-board p {
  margin: 0;
  font-weight: 400;
  font-size: 0.98rem;
  line-height: 1.7;
  max-width: 36em;
}

.hero-arrow {
  position: absolute;
  top: calc(-32px * var(--s));
  right: calc(-34px * var(--s));
  width: calc(197px * var(--s));
  height: auto;
  z-index: 4;
  pointer-events: none;
  animation: arrow-out 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}

/* 下層ページ: 矢印の下端（板の上端から 163px×--s）が板の中に収まる高さを必ず確保する */
.hero:not(.hero--home) .hero-board {
  --s: 0.4;
  padding: 1.15rem 1.35rem 1.25rem;
  min-height: calc(163px * var(--s) + 10px);
}

.hero:not(.hero--home) .hero-board h1 {
  margin: 0;
  font-size: clamp(1.2rem, 3.5vw, 1.55rem);
}

/* 下層ページは板が低いので、動きの途中でも板の下にはみ出さない短い動きにする */
.hero:not(.hero--home) .hero-arrow {
  animation-name: arrow-out-short;
}

@keyframes arrow-out-short {
  from {
    transform: translate(-12%, 12%) scale(0.8);
    opacity: 0;
  }
  to {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }
}

@keyframes arrow-out {
  from {
    transform: translate(-42%, 48%) scale(0.55);
    opacity: 0;
  }
  to {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-arrow {
    animation: none;
  }
}

.main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.5rem var(--pad-r) 3rem var(--pad-x);
}

.section {
  margin: 0 0 2.75rem;
}

.sec-title {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 0 0 1rem;
  font-size: clamp(1.2rem, 3vw, 1.45rem);
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: 0.02em;
  text-wrap: balance;
}

.sec-title::before {
  content: "";
  flex-shrink: 0;
  width: 0.7rem;
  height: 0.7rem;
  margin-top: 0.38em;
  background: var(--red);
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

.lead {
  margin: 0 0 1.25rem;
  max-width: 40em;
  word-break: auto-phrase;
}

.biz-plain {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(51, 51, 51, 0.28);
}

.biz-plain li {
  padding: 1.1rem 0;
  border-bottom: 1px solid rgba(51, 51, 51, 0.28);
}

.biz-plain h3 {
  margin: 0 0 0.35rem;
  font-size: 1.08rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-wrap: balance;
}

.biz-plain p {
  margin: 0;
  max-width: 40em;
  word-break: auto-phrase;
}

.info-table,
.form-table,
.recruit-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
}

.info-table th,
.info-table td,
.form-table th,
.form-table td,
.recruit-table th,
.recruit-table td {
  border-bottom: 1px solid rgba(51, 51, 51, 0.22);
  padding: 0.85rem 0.65rem 0.85rem 0;
  vertical-align: top;
  text-align: left;
}

.info-table th,
.form-table th,
.recruit-table th {
  width: 8.5rem;
  font-weight: 700;
  padding-right: 1rem;
  white-space: nowrap;
}

.info-table td,
.recruit-table td {
  word-break: auto-phrase;
}

.form-table input[type="text"],
.form-table input[type="email"],
.form-table input[type="tel"],
.form-table select,
.form-table textarea {
  width: 100%;
  max-width: 28rem;
  font: inherit;
  color: var(--ink);
  background: var(--white);
  border: 1px solid rgba(51, 51, 51, 0.35);
  border-radius: var(--radius);
  padding: 0.55rem 0.75rem;
}

.form-table textarea {
  min-height: 8rem;
  resize: vertical;
}

.required {
  display: inline-block;
  margin-left: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--red);
  white-space: nowrap;
}

.birth-fields,
.address-fields,
.radio-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
}

.birth-fields input {
  width: 4rem !important;
  max-width: none !important;
}

.address-fields .postcode {
  width: 8rem !important;
  max-width: none !important;
}

.radio-row label {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-right: 0.75rem;
  cursor: pointer;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.35rem 0 0.75rem;
}

.btn,
.form-actions input[type="submit"],
.form-actions input[type="reset"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
  border-radius: var(--radius);
  padding: 0.7rem 1.25rem;
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--red);
  background: var(--red);
  color: var(--white);
  text-align: center;
}

.btn:hover,
.form-actions input[type="submit"]:hover {
  color: var(--white);
  filter: brightness(0.95);
}

.btn--ghost,
.form-actions input[type="reset"] {
  background: var(--white);
  color: var(--ink);
  border-color: var(--ash);
  box-shadow: 0 0 0 2px rgba(51, 51, 51, 0.35);
}

.btn--ghost:hover,
.form-actions input[type="reset"]:hover {
  color: var(--red);
}

/* 3つの事業（映像制作・ホームページ制作・コンテンツビジネス）。上に太い赤い線を引いて、はっきり3つに区切る */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem 1.75rem;
}

.pillar {
  display: flex;
  flex-direction: column;
  border-top: 6px solid var(--red);
  padding-top: 0.9rem;
}

.pillar h3 {
  margin: 0 0 0.5rem;
  font-size: 1.3rem;
  font-weight: 900;
  line-height: 1.35;
}

.pillar p {
  margin: 0 0 0.75rem;
}

.pillar ul {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  font-size: 0.93rem;
}

.pillar li {
  padding: 0.5rem 0;
  border-top: 1px solid rgba(51, 51, 51, 0.2);
}

.pillar__link {
  margin-top: auto;
  align-self: flex-start;
  font-weight: 700;
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

@media (max-width: 760px) {
  .pillars {
    grid-template-columns: 1fr;
  }
}

/* 事業内容ページ: 3つの事業への目次と、事業ごとの区切り */
.biz-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 0.75rem;
  margin: 0 0 2rem;
}

.biz-jump a {
  padding: 0.45rem 1rem;
  border: 2px solid var(--red);
  border-radius: var(--radius);
  font-weight: 700;
  color: var(--red);
  white-space: nowrap;
}

.biz-jump a:hover,
.biz-jump a:focus-visible {
  background: var(--red);
  color: var(--white);
}

.biz-group {
  border-top: 6px solid var(--red);
  padding-top: 1.25rem;
  scroll-margin-top: 1rem;
}

.biz-group .sec-title {
  font-size: clamp(1.4rem, 3.4vw, 1.75rem);
}

/* 会社概要の事業内容（3つの事業ごと） */
.biz-dl {
  margin: 0;
}

.biz-dl dt {
  font-weight: 700;
}

.biz-dl dd {
  margin: 0 0 0.75rem;
}

.biz-dl dd:last-child {
  margin-bottom: 0;
}

/* ホームページ制作の見本（画面の画像の一覧） */
.works {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 1.5rem 1.25rem;
}

.works figure {
  margin: 0;
}

.works img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(51, 51, 51, 0.25);
  border-radius: 0.6rem;
}

.works figcaption {
  margin-top: 0.5rem;
  font-weight: 700;
  font-size: 0.95rem;
}

/* 迷惑送信の対策の欄。人には見せない（PHP 側で、入力があれば送信を止める） */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* フォームの確認画面・エラー画面（PHP が出す画面） */
.form-actions .btn-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
  border-radius: var(--radius);
  padding: 0.7rem 1.25rem;
  border: 3px solid var(--ash);
  box-shadow: 0 0 0 2px rgba(51, 51, 51, 0.35);
  background: var(--white);
  color: var(--ink);
}

.form-actions .btn-back:hover {
  color: var(--red);
}

.confirm-table td {
  overflow-wrap: anywhere;
}

.form-errors {
  margin: 0 0 0.5rem;
  padding: 0.25rem 0 0.25rem 1rem;
  border-left: 4px solid var(--red);
}

.form-errors .error_messe {
  margin: 0.35rem 0;
  font-weight: 700;
  color: var(--red);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.asterisk {
  margin: 0.5rem 0 0;
  font-size: 0.88rem;
  color: var(--ink);
  max-width: 40em;
  word-break: auto-phrase;
}

.access-note {
  margin: 0 0 1rem;
  word-break: auto-phrase;
}

.map-wrap {
  width: 100%;
  max-width: 40rem;
  aspect-ratio: 16 / 10;
  background: var(--ash);
  overflow: hidden;
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.thanks-box {
  max-width: 40em;
  word-break: auto-phrase;
}

.site-footer {
  border-top: 1px solid rgba(51, 51, 51, 0.18);
  padding: 1.75rem var(--pad-r) calc(1.75rem + env(safe-area-inset-bottom, 0px)) var(--pad-x);
  max-width: calc(var(--max) + 6rem);
  margin: 0 auto;
}

.site-footer__logo {
  display: block;
  width: min(7.5rem, 28vw);
  height: auto;
  margin-bottom: 0.75rem;
}

.site-footer p {
  margin: 0;
  font-size: 0.88rem;
}

.nowrap {
  white-space: nowrap;
}

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

@media (max-width: 640px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  /* 360 幅で4項目が1行に入る大きさ */
  .nav {
    justify-content: flex-start;
    gap: 0.35rem 0.85rem;
    font-size: 0.85rem;
    white-space: nowrap;
  }

  .info-table,
  .form-table,
  .recruit-table,
  .info-table tbody,
  .form-table tbody,
  .recruit-table tbody,
  .info-table tr,
  .form-table tr,
  .recruit-table tr,
  .info-table th,
  .form-table th,
  .recruit-table th,
  .info-table td,
  .form-table td,
  .recruit-table td {
    display: block;
    width: 100%;
  }

  .info-table th,
  .form-table th,
  .recruit-table th {
    border-bottom: 0;
    padding-bottom: 0.2rem;
  }

  .info-table td,
  .form-table td,
  .recruit-table td {
    padding-top: 0.25rem;
  }

  .hero {
    padding-top: 2rem;
    padding-right: max(1.75rem, env(safe-area-inset-right, 0px));
  }

  .hero-board {
    margin-right: 1.1rem;
  }

  .hero:not(.hero--home) .hero-board {
    --s: 0.34;
  }

  .hero--home .hero-board {
    --s: 0.62;
    padding-top: 6.75rem;
  }

  .hero--home .hero-board__inner {
    padding-right: 0;
  }

  /* 360 幅で「2D・3Dアニメーションを」が1行に入る大きさ */
  .hero--home .hero-board h1 {
    font-size: 1.1rem;
  }
}

/* 文節の切れ目を <wbr> で手で入れた文。切れ目以外では改行しない */
.phrases {
  word-break: keep-all !important;
  overflow-wrap: anywhere;
  line-break: strict;
}
