/* -----------------------------
   Minimal Modern Reset
------------------------------ */

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

/* Remove default margin */
body, h1, h2, h3, h4, h5, h6, p,
ul, ol, li, figure, blockquote, dl, dd {
  margin: 0;
  padding: 0;
}

/* Remove list style */
ul, ol {
  list-style: none;
}

/* Set core body defaults */
body {
  min-height: 100vh;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* Make images easier to work with */
img, picture {
  max-width: 100%;
  display: block;
}

/* Inherit fonts */
input, button, textarea, select {
  font: inherit;
}

/* Remove default button styles */
button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

/* Links */
a {
  color: var(--color-mainc);
  text-decoration: none;
}

/* Table reset */
table {
  border-collapse: collapse;
  border-spacing: 0;
}


/* Utility base */
:root {
    --max-width: 1100px;
    --color-text: #272727;
    --color-bg: #F8F8F7;
    --color-border: #ddd;
    --color-main: #333;
    --color-mainc: #049DD8;
    --color-sub: #FFC826;
    --radius: 6px;
}
html {
    font-size: clamp( 1rem, calc( 0.75rem + 1vw ), 1.5rem );
    scroll-behavior: smooth;
}
body {
    margin: 0;
    font-family: sans-serif;
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
    /* clamp(min, fluid, max) → 画面に合わせて可変 */
    font-size: 0.7rem;
    font-family: "Helvetica Neue", "Helvetica", "Hiragino Sans", "Arial", "Yu Gothic", "Meiryo", sans-serif;
}
.container {
    width: min(1200px, 100%);
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}
header, footer {
    padding: 0;
}

section {
    padding: 80px 0;
    background: var(--color-bg);
}

/* Layout helpers */
.grid-3 {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Form */
form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}

label {
    font-weight: bold;
}

input, textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-size: 0.9rem;
    box-sizing: border-box;
}

button {
padding: 12px 32px;
border: none;
background: var(--color-main);
color: #fff;
font-size: 0.9rem;
border-radius: var(--radius);
cursor: pointer;
width: fit-content;
}

button:hover {
opacity: .85;
}

@media (max-width: 940px) {
    body {
        font-size: 0.9rem;
    }
    section { padding: 50px 0; }
}


/*======================================

TOP

======================================*/
/*------------------------
    header
------------------------*/
.glonav nav {
    display: flex;
    gap: 20px;
}

.glonav nav a {
    position: relative;
    text-decoration: none;
    color: #049DD8;
    font-weight: bold;
    padding: 20px;
    transition: 0.3s;
}

.glonav nav a:after {
    content: "";
    display: block;
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 3px;
    background: #049DD8;
}

.glonav nav a:hover:after {
    width: 100%;
    transition: 0.3s;
}


/* --- Header base --- */
#main__header {
    position: absolute;
    width: 100%;
    transition: transform .4s ease, background .3s ease;
    z-index: 999;
}
#main__header:not(.fixed) {
  transform: translateY(0);
}


#main__header.fixed {
  position: fixed;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transform: translateY(-100%);
  animation: headerSlideDown .4s ease forwards;
}

@keyframes headerSlideDown {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(0);
  }
}

.logo {
    max-width: 160px;
    width: 20vw;
    vertical-align: bottom;
}
.fixed .logo {
    width: 100px !important;
}

.main__nav {
    position: relative;
    margin: 0 auto;
    padding: 0 2%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 10;
}
.main__nav--left {
    margin-right: auto;
    z-index: 1;
}
.lang {
    display: flex;
    margin-left: 30px;
    font-weight: bold;
    color: #989898;
}

.lang a {
    color: var(--color-mainc);
    text-decoration: none;
}

.lang div {
    position: relative;
    padding: 10px;
}

.lang div:first-child:after {
    content: "";
    width: 1px;
    height: 20px;
    display: block;
    position: absolute;
    top: 50%;
    right: 0;
    background: var(--color-mainc);
    transform: translateY(-50%);
}


/*------------------------
    hamburger
------------------------*/
.hamburger {
    display: none;
    width: 30px;
    height: 30px;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    z-index: 999;
}

.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background: #049DD8;
    border-radius: 3px;
    transition: .3s;
}

/* --- 開閉時の動き --- */
.hamburger.active span:nth-child(1) {
    transform: translateY(13px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: translateY(-14px) rotate(-45deg);
}


/* --- スマホナビ --- */
@media (max-width: 940px) {
  .glonav {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    background: rgba(255,255,255, 0.7);
    padding: 0;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.4s ease; 
  }

  .glonav nav {
    flex-direction: column;
    gap: 0;
  }

  .glonav nav a {
    padding: 15px;
    text-align: center;
    display: block;
  }

  .hamburger {
    position: fixed;
    display: flex;
    right: 4%;
  }

  .lang {
    margin-right: 60px;
  }

  .glonav.open {
    display: block;
    padding-top: 10%;
    z-index: 0;
    max-height: 500px;
    opacity: 1;
    transform: translateY(0);
    z-index: 1; 
  }
}


video {
    max-width: 100%;
}
#hero {
    position: relative;
    display: flex;
    height: 100vh;
    background: none;
    padding: 0;
    align-items: end;
    line-height: 1.3;
    font-size: 0.8rem;
    text-align: left;
    overflow: hidden;
}
#hero h2 {
    margin: 0;
    font-size: 2rem;
    text-align: left;
}
.sub__copy {
    font-size: 1.2rem;
    font-weight: bold;
}
.fv__video {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    top: 0;
    left: 0;
    z-index: -1;
}

#hero .container {
    max-width: 100%;
    margin: 0 0 5% 0;
    left: 0;
    bottom: 20%;
    padding: 0;
    display: flex;
    flex-direction: column;
    .line {
        display: inline-block;
        padding: 2% 4%;
        background: rgba(255,255,255, 0.7);
    }
    .line p {
        margin-top: 10px;
    }
}

@media (max-width: 768px) {
    #hero {
        height: 70vh;
    }
    #hero .container {
        margin-bottom: 10%;
    }
    #hero h2 {
        font-size: 1.6rem;
    }
}


/*------------------------
    section
------------------------*/
.section__title {
    margin-bottom: 40px;
    text-align: center;
    color: var(--color-sub);
}
.section__title p {
    margin: 0;
}
.section__title h2 {
    margin: 0;
}
.section__title--text {
    margin-bottom: 40px;
    text-align: center;
    font-size: 0.7rem;
}
.card {
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2,2fr);
    gap: 30px;
    text-align: left;
}
.card__item {
    background: #fff;
    border-radius: 10px;
}
.card__img-area img {
  width: 100%;
  object-fit: cover;
}
.card__title {
  font-weight: bold;
  margin: 0;
}
.text-area {
    padding: 4%;
}
.col__left {
    padding-right: 20%;
    text-align: left;
}
.col__left .section__title {
    text-align: left;
}

#services {
    padding-bottom: 0;
}

table.list {
    margin: 40px auto;
    width: 100%;
    border-collapse: collapse
}
table.list th,
table.list td {
    vertical-align: top;
    padding: 4% 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}
table.list th {
    width: 30%;
}

/*------------------------
    contact
------------------------*/
#contact {
    background: #FFF;
}
.col2 {
    display: flex;
    justify-content: space-around;
    gap: 4%;
}
.col2__left {
    width: 28%;
    text-align: left;
}
.col2__right {
    width: 68%;
}
.col2__left .section__title {
    text-align: left;
}
label {
    display: inline-block;
    margin-bottom: 10px;
}
.required::before {
    display: inline-block;
    margin-right: 0.5rem;
    padding: 0 15px;
    color: #FFF;
    border-radius: 4px;
}
.required__on::before  {
    content: "必須";
    background: #ae3939;
}
.required__off::before  {
    content: "任意";
    background: #707070;
}
button[type="submit"] {
    margin: 40px auto;
    width: 300px;
    max-width: 80%;
    background: var(--color-mainc);
    border-radius: 0;
    font-weight: bold;
}

@media (max-width: 940px) {
    .section__title--text {
        font-size: 0.9rem;
    }
    .card {
        gap: 10px 3%;
    }

    .col__left .section__title,
    .col2__left .section__title {
       text-align: center;
    }
    .col__left {
        padding: 0 20px;
    }
    .col2 {
        flex-direction: column;
    }
    .col2__left,
    .col2__right {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .card {
        grid-template-columns: none;
    }
}


/*------------------------
    footer
------------------------*/
footer {
    position: relative;
    padding: 40px 0;
    background: var(--color-bg);
    text-align: center;
}
footer .container {
    display: flex;
    width: 100%;
}
.footer__nav {
    width: 100%;
    align-content: center;
}
.footer__nav ul {
    display: flex;
    width: 100%;
    gap: 30px;
    justify-content: end;
}
.footer__nav a {
    color: var(--color-main);
    text-decoration: none;
}
@media (max-width: 960px) {
    footer .logo {
        width: 30vw;
    }
    footer .container {
        margin-bottom: 30px;
        gap: 20px;
    }
    footer .container .logo {
        margin: 0 auto;
    }
    .footer__nav ul {
        margin: 0 auto;
        justify-content: flex-start;
        flex-direction: column;
        gap: 10px;
        text-align: left;
    }

}
/*======================================

下層ページ

======================================*/
.sub-page h3 {
    margin-top: 2rem;
}
.sub-page h4 {
    margin-top: 1rem;
}

.sub-page footer {
    margin-top: 100px;
}
.sub-page p {
    margin-bottom: 1rem;
}
ul.item-list {
    list-style: disc;
    margin: 0.5rem 0 0.5rem 1rem;
}
p.center {
    margin: 2rem 0;
    text-align: center;
}