/* ==========================================================================
   UniArts Corporate Site - Main Stylesheet
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Variables
   -------------------------------------------------------------------------- */
:root {
  --color-primary: #0068B7;
  --color-primary-dark: #074C80;
  --color-accent: #B93A3A;
  --color-text: #333;
  --color-text-dark: #222;
  --color-bg-gray: #F5F5F5;
  --color-border: #D3D3D3;
  --color-white: #fff;
  --font-family: 'Noto Sans JP', sans-serif;
  --header-height: 60px;
  --max-width: 1160px;
}

@media (min-width: 1024px) {
  :root {
    --header-height: 80px;
  }
}

/* --------------------------------------------------------------------------
   Reset
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
html {
  font-size: 16px;
  letter-spacing: 0.05rem;
}

body {
  font-family: var(--font-family);
  color: var(--color-text);
  line-height: 1.8;
}

strong {
  color: var(--color-accent);
}

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

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

ul,
ol {
  list-style: none;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
}

.header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: var(--header-height);
}

.header__logo {
  line-height: 1;
}

.header__logo img {
  height: 40px;
  width: auto;
  display: block;
}

@media (min-width: 1024px) {
  .header__logo img {
    height: 58px;
  }
}

.header__nav {
  display: none;
}

@media (min-width: 1024px) {
  .header__nav {
    display: block;
  }

  .header__nav ul {
    display: flex;
    align-items: center;
    list-style: none;
  }

  .header__nav li {
    font-weight: 500;
    padding: 0 1em;
  }
}

.nav-highlight {
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: 4px;
  padding: 0.5em 1.5em;
}

/* --------------------------------------------------------------------------
   Hamburger
   -------------------------------------------------------------------------- */
.hamburger {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

@media (min-width: 1024px) {
  .hamburger {
    display: none;
  }
}

.hamburger__bar {
  display: block;
  width: 22px;
  height: 2px;
  background: #222;
  transition: 0.3s;
}

.hamburger__label {
  font-size: 10px;
  letter-spacing: 0.1em;
  margin-top: 2px;
}

.hamburger[aria-expanded="true"] .hamburger__bar:nth-child(1) {
  transform: rotate(45deg) translateY(6px);
}

.hamburger[aria-expanded="true"] .hamburger__bar:nth-child(2) {
  opacity: 0;
}

.hamburger[aria-expanded="true"] .hamburger__bar:nth-child(3) {
  transform: rotate(-45deg) translateY(-6px);
}

/* --------------------------------------------------------------------------
   Drawer
   -------------------------------------------------------------------------- */
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 280px;
  height: 100vh;
  background: #fff;
  z-index: 2000;
  transform: translateX(100%);
  transition: transform 0.3s;
}

.drawer[aria-hidden="false"] {
  transform: translateX(0);
}

.drawer__menu {
  list-style: none;
  padding: 40px 20px;
}

.drawer__menu li a {
  display: block;
  padding: 15px 20px;
  font-size: 16px;
  border-bottom: 1px solid #eee;
  color: #222;
}

/* --------------------------------------------------------------------------
   Drawer Overlay
   -------------------------------------------------------------------------- */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1999;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
}

.drawer-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  width: 100%;
  height: 100vh;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 50px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url(../images/hero-bg.jpg);
  background-size: cover;
  background-position: center;
  background-color: #196FBA;
  z-index: 0;
}

.hero__text {
  position: relative;
  z-index: 1;
  max-width: 80%;
  height: auto;
}

/* --------------------------------------------------------------------------
   Section
   -------------------------------------------------------------------------- */
.section {
  margin-top: 160px;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
}

#service {
  margin-top: 80px;
}

.section__title {
  text-align: center;
  font-size: 42px;
  border: none;
  font-weight: 700;
}

.section__subtitle {
  text-align: center;
  font-size: 15px;
}

@media (max-width: 782px) {
  .section {
    margin-top: 80px;
  }
}

@media (max-width: 749px) {
  .section__title {
    font-size: 22px;
  }
}

/* --------------------------------------------------------------------------
   Service Flow
   -------------------------------------------------------------------------- */
.service-flow {
  background-color: var(--color-primary-dark);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.service-flow__items {
  display: flex;
}

.service-flow__step {
  flex: 1;
  padding: 35px 0;
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  position: relative;
}

/* PC arrows on middle step */
.service-flow__step:nth-child(2)::before,
.service-flow__step:nth-child(2)::after {
  content: '';
  margin: auto;
  position: absolute;
  top: 0;
  bottom: 0;
  width: 70px;
  height: 70px;
  border-top: 3px solid #fff;
  border-right: 3px solid #fff;
  transform: rotate(45deg);
}

.service-flow__step:nth-child(2)::before {
  left: -35px;
}

.service-flow__step:nth-child(2)::after {
  right: -35px;
}

@media (max-width: 1110px) {
  .service-flow__step:nth-child(2)::before,
  .service-flow__step:nth-child(2)::after {
    width: 30px;
    height: 30px;
  }

  .service-flow__step:nth-child(2)::before {
    left: -15px;
  }

  .service-flow__step:nth-child(2)::after {
    right: -15px;
  }
}

@media (max-width: 782px) {
  .service-flow__items {
    flex-direction: column;
  }

  .service-flow__step {
    padding: 25px 0;
  }

  .service-flow__step:nth-child(2)::before,
  .service-flow__step:nth-child(2)::after {
    display: none;
  }

  /* V-shaped line between step 1 and step 2 */
  .service-flow__step:nth-child(1)::before,
  .service-flow__step:nth-child(1)::after {
    content: '';
    position: absolute;
    bottom: -3px;
    width: 50.2%;
    height: 0;
    border-top: 3px solid #fff;
  }

  .service-flow__step:nth-child(1)::before {
    left: 0;
    transform: rotate(5deg);
    transform-origin: left bottom;
  }

  .service-flow__step:nth-child(1)::after {
    right: 0;
    transform: rotate(-5deg);
    transform-origin: right bottom;
  }

  /* V-shaped line between step 2 and step 3 */
  .service-flow__step:nth-child(2)::before,
  .service-flow__step:nth-child(2)::after {
    display: block;
    content: '';
    position: absolute;
    bottom: -3px;
    width: 50.2%;
    height: 0;
    border-top: 3px solid #fff;
    top: auto;
  }

  .service-flow__step:nth-child(2)::before {
    left: 0;
    transform: rotate(5deg);
    transform-origin: left bottom;
  }

  .service-flow__step:nth-child(2)::after {
    right: 0;
    transform: rotate(-5deg);
    transform-origin: right bottom;
  }
}

/* --------------------------------------------------------------------------
   Service Diagram
   -------------------------------------------------------------------------- */
.service__diagram {
  text-align: center;
  margin-top: 30px;
}

.service__diagram img {
  max-width: 100%;
}

/* --------------------------------------------------------------------------
   Service Description
   -------------------------------------------------------------------------- */
.service__description {
  text-align: center;
}

/* --------------------------------------------------------------------------
   Message / Member Grid
   -------------------------------------------------------------------------- */
.message__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0 2em;
}

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

/* --------------------------------------------------------------------------
   Member
   -------------------------------------------------------------------------- */
.member {
  text-align: center;
}

.member__photo {
  margin: 10px auto;
}

.member__photo img {
  border-radius: 50%;
  width: 208px;
  height: 208px;
  object-fit: cover;
}

.member__photo figcaption {
  color: #222;
  text-align: center;
  font-size: 16px;
  margin-top: 8px;
}

.member__text {
  width: 90%;
  margin: 0 auto 50px;
  text-align: left;
}

.message__grid > .member:nth-last-child(-n+2) .member__text {
  margin-bottom: 0;
}

@media (max-width: 781px) {
  .message__grid > .member:nth-last-child(-n+2) .member__text {
    margin-bottom: 50px;
  }

  .message__grid > .member:last-child .member__text {
    margin-bottom: 0;
  }
}

/* --------------------------------------------------------------------------
   Company
   -------------------------------------------------------------------------- */
.company {
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.company__table table {
  width: 100%;
  border-collapse: collapse;
}

.company__table td {
  border: 1px solid var(--color-border);
  border-left: none;
  border-right: none;
  padding: 10px;
  vertical-align: top;
}

.company__table td:nth-child(odd) {
  background: var(--color-bg-gray);
  width: 190px;
}

@media (max-width: 768px) {
  .company__table td:nth-child(odd) {
    width: 110px;
  }
}

.company__subtitle {
  margin-top: 50px;
  padding: 10px;
  background-color: var(--color-bg-gray);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  font-size: 22px;
}

.company__officers {
  border-bottom: 1px solid var(--color-border);
}

.company__officers table {
  width: 100%;
  border-collapse: collapse;
}

.company__officers td {
  border: none;
  padding: 10px;
  vertical-align: top;
}

.company__officers td:nth-child(odd) {
  width: 190px;
}

@media (max-width: 768px) {
  .company__officers table,
  .company__officers tbody,
  .company__officers tr {
    display: block;
    width: 100%;
  }

  .company__officers td {
    display: block !important;
    width: 100% !important;
  }

  .company__officers td:nth-child(odd) {
    background: var(--color-bg-gray);
  }
}

.company__date {
  text-align: right;
}

/* --------------------------------------------------------------------------
   Contact Form
   -------------------------------------------------------------------------- */
.contact {
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.form-table {
  width: 100%;
}

.form-row {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1em;
}

@media (max-width: 768px) {
  .form-row {
    flex-direction: column;
  }
}

.form-label {
  width: 250px;
  flex-shrink: 0;
  font-weight: normal;
  padding-top: 0.75rem;
  line-height: 1.8;
}

.form-field {
  flex: 1;
}

@media (max-width: 768px) {
  .form-label {
    width: 100%;
    padding-top: 0;
    margin-bottom: 0.25em;
  }

  .form-field {
    width: 100%;
  }
}

.badge {
  font-size: 80%;
  margin-right: 10px;
  padding: 0 5px;
  border-radius: 3px;
  color: #fff;
}

.badge--required {
  background-color: var(--color-accent);
}

.badge--optional {
  background-color: #8A8A8A;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #ccc;
  border-radius: 3px;
  font-size: 16px;
  font-family: inherit;
}

textarea {
  min-height: 150px;
}

.scroll-box {
  height: 180px;
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  overflow: auto;
  font-size: 12px;
  background: #fff;
}

.scroll-box .privacy-heading {
  margin-top: 15px;
  font-size: 120%;
}

.form-agree {
  text-align: center;
  display: block;
}

.form-agree input[type="checkbox"] {
  position: relative;
  top: 5px;
}

.btn-submit {
  display: inline-block;
  padding: 15px 140px;
  border: none;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  position: relative;
}

.btn-submit:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.btn-submit:disabled::before {
  border-color: #999;
}

.btn-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.1);
  transition: 0.4s;
}

.btn-submit::before {
  content: '';
  width: 15px;
  height: 15px;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
  transform: rotate(45deg);
  position: absolute;
  top: 50%;
  right: 4%;
  margin-top: -7px;
}

@media (max-width: 768px) {
  .btn-submit {
    padding: 15px 80px;
  }
}

.form-actions {
  text-align: center;
  margin-top: 2em;
}

.form-actions--two {
  display: flex;
  justify-content: center;
  gap: 1em;
}

.confirm-value {
  padding: 0.75rem 0;
  line-height: 1.8;
}

.form-complete {
  text-align: center;
  padding: 80px 20px;
}

.form-complete__message {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 1em;
}

.form-complete__sub {
  font-size: 16px;
  color: #666;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer__logo {
  padding: 40px 20px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer__logo img {
  height: 40px;
  width: auto;
}

.footer__bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.footer__copyright {
  font-size: 14px;
  color: #666;
}

.footer__nav a {
  font-size: 14px;
  color: #333;
}

/* --------------------------------------------------------------------------
   Page Top
   -------------------------------------------------------------------------- */
.page-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
}

.page-top[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
}

.page-top a {
  display: flex;
  width: 50px;
  height: 50px;
  background: var(--color-primary);
  color: #fff;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.page-top__icon {
  display: inline-block;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
  width: 12px;
  height: 12px;
  transform: rotate(-45deg);
  margin-top: 4px;
}

/* --------------------------------------------------------------------------
   Breadcrumbs
   -------------------------------------------------------------------------- */
.breadcrumbs {
  padding: 10px 0;
  font-size: 13px;
  list-style: none;
  display: flex;
  gap: 0.5em;
}

.breadcrumbs li + li::before {
  content: '>';
  margin-right: 0.5em;
  color: #999;
}

/* --------------------------------------------------------------------------
   Article
   -------------------------------------------------------------------------- */
.article__title {
  font-size: 28px;
  margin-bottom: 1.5em;
}

.article__content h2 {
  font-size: 22px;
  margin-top: 2em;
  margin-bottom: 0.5em;
}

.article__content p {
  margin-bottom: 1em;
}

.article__content ol {
  margin-left: 1.5em;
  margin-bottom: 1em;
}

.article__content ul {
  margin-left: 1.5em;
  list-style: disc;
}

.article__content li {
  margin-bottom: 0.5em;
}

/* --------------------------------------------------------------------------
   Utility
   -------------------------------------------------------------------------- */
.u-noscroll {
  overflow: hidden;
}
