@charset "UTF-8";

/* Web フォントは BaseHead.astro の <link> で読み込む */

/*------------------------------
	MARK:初期設定(reset.css)
------------------------------*/
/* 2023/10/24 ver.1.11.1 GitHub */
html,body{background-color:#fff}*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}:where([hidden]:not([hidden='until-found'])){display:none!important}:where(html){-webkit-text-size-adjust:none;tab-size:2;}:where(html:has(dialog:modal[open])){overflow:clip}:where(body){line-height:1.5;font-family: "Noto Sans JP","sans-serif"; -webkit-font-smoothing:antialiased}:where(button){all:unset}:where(input,button,textarea,select){font:inherit;color:inherit}:where(textarea){resize:vertical;resize:block}:where(button,label,select,summary,[role='button'],[role='option']){cursor:pointer}:where(:disabled){cursor:not-allowed}:where(label:has(>input:disabled),label:has(+input:disabled)){cursor:not-allowed}:where(a){color:inherit;text-underline-offset:.2ex;text-decoration:none}:where(ul,ol){list-style:none}:where(img,svg,video,canvas,audio,iframe,embed,object){display:block}:where(img,picture,svg,video){width:100%;max-inline-size:100%;block-size:auto}:where(p,h1,h2,h3,h4,h5,h6){overflow-wrap:break-word;font-size:1.6rem}:where(h2,h3,h4,h5,h6){font-weight:400}:where(hr){border:none;border-block-start:1px solid;color:inherit;block-size:0;overflow:visible}:where(dialog,[popover]){border:none;background:none;color:inherit;inset:unset;max-width:unset;max-height:unset}:where(dialog:not([open],[popover]),[popover]:not(:popover-open)){display:none!important}:where(:focus-visible){outline:3px solid CanvasText;box-shadow:0 0 0 5px Canvas;outline-offset:1px}:where(:focus-visible,:target){scroll-margin-block:8vh}:where(.visually-hidden:not(:focus-within,:active)){clip-path:inset(50%)!important;height:1px!important;width:1px!important;overflow:hidden!important;position:absolute!important;white-space:nowrap!important;border:0!important;user-select:none!important}
fieldset{all: unset;}

/*------------------------------
	MARK:ブラウザ対応
------------------------------*/
/* 2023/9/18(A (more) Modern CSS Reset) */
html{-moz-text-size-adjust:none;-webkit-text-size-adjust:none;text-size-adjust:none}body,h1,h2,h3,h4,p,figure,blockquote,dl,dd{margin-block-end:0}ul[role='list'],ol[role='list']{list-style:none}body{min-height:100dvh;line-height:1.5}h1,h2,h3,h4,button,input,label{line-height:1.1}a:not([class]){text-decoration-skip-ink:auto;color:currentColor}img,picture{max-width:100%;width:100%;display:block;font-size:1.6rem}input,button,textarea,select{font-family:inherit;font-size:inherit}textarea:not([rows]){min-height:10em}:target{scroll-margin-block:5ex}@media print{body{background-color:#fff!important}a,a:link,a:visited,a:hover{text-decoration:none!important}#tabLink{display:none!important}}


/*------------------------------
  MARK:フォント
------------------------------*/
:root {
  --font-noto: "Noto Sans JP";
  --font-lato: "Lato";
  --font-mincho: "Zen Old Mincho";
}

.font-noto{ font-family: var(--font-noto); }
.font-lato{ font-family: var(--font-lato); }
.font-mincho{ font-family: var(--font-mincho); }
.fw100{font-weight: 100;}
.fw200{font-weight: 200;}
.fw300{font-weight: 300;}
.fw400{font-weight: 400;}
.fw500{font-weight: 500;}
.fw600{font-weight: 600;}
.fw700{font-weight: 700;}
.fw800{font-weight: 800;}
.fw900{font-weight: 900;}

/*------------------------------
  MARK:カスタムプロパティ
------------------------------*/
:root {
  --black: #3f3f3f;
  --white: #fff;
  --gray: #afafaf;
  --bg-gray: #eaedef;

  --accent: #005bac;
  --blue-deep: #053875;
  --grad-blue: linear-gradient(120deg, var(--accent) 40%, var(--blue-deep) 90%);
  --grad-blue-reverse: linear-gradient(240deg, var(--accent) 40%, var(--blue-deep) 90%);
  --grad-footer: linear-gradient(180deg, var(--white) 10%, var(--bg-gray) 75%);
  
  --header-height: max(8rem,80px);
  @media screen and (max-width: 768px) {
      --header-height: 6rem;
  }

  --duration: 0.6s;
  --easing: cubic-bezier(.35,.35,0,1);
}

/*------------------------------
  MARK:全体設定
------------------------------*/
body {
  font-size: 1.6rem;
  line-height: 1.1;
  font-family: var(--font-noto), sans-serif;
  background-color: var(--white);
  color: var(--black);
  text-align: left;
  position: relative;
  width: 100%;
  overflow-x: clip;
  padding-right: var(--scrollbar-w, 0px); /* メニュー展開中だけ値が入る（menu.js） */
}

html {
  /* scrollbar-gutter: stable は付けない。Chrome 145+ では 100vw がスクロールバー幅を差し引くようになり、
     vw 基準の rem が読み込み中に揺れて全体が数 px 伸び縮みするため */
  overflow-x: clip;
}

main{
  position: relative;
  z-index: 1;
}

/*------------------------------
  MARK:ブレイクポイント
------------------------------*/
html {
  font-size: calc(100vw / 160);
  @media screen and (max-width: 768px) {
    font-size: calc(100vw / 37.5);
  }
}

/*------------------------------
  MARK:表示切り替え
------------------------------*/
.spmask { display: block; }
.sponly { display: none; }
br.spmask { display: inline; }

@media screen and (max-width: 768px) {
  br.spmask,.spmask { display: none; }
  .sponly { display: block; }
  br.sponly { display: inline; }
}

/*------------------------------
  MARK:UTIL
------------------------------*/
/*------------------------------*/
.inner{
  margin-inline: auto;
  width: 140rem;
  @media screen and (max-width: 768px) {
    padding-inline: 2rem;
    width: 100%;
  }
  &.semi-narrow{
    width: 120rem;
    @media screen and (max-width: 768px) {
      width: 100%;
    }
  }
  &.narrow{
    width: 90rem;
    @media screen and (max-width: 768px) {
      width: 100%;
    }
  }
  &.wide{
    width: 150rem;
    @media screen and (max-width: 768px) {
      width: 100%;
    }
  }
}
/*------------------------------*/
.readText{
  font-size: max(1.6rem,14px);
  line-height: 2;
  text-align: left;
  @media screen and (max-width: 768px) {
    font-size: max(1.4rem,14px);
    line-height: 1.9;
  }
  &.center{
    text-align: center;
  }
}
/*------------------------------*/
:root {
  --d: 0px;
  --dolly0: 0;
  --dolly1: 0;
  --dolly2: 0;
  --dolly3: 0;
  --dolly4: 0;
}

/*------------------------------*/
.flipMask {
  clip-path: polygon(
    50% calc(var(--flip-y, 50%) - var(--d)),
    calc(50% + var(--d)) var(--flip-y, 50%),
    50% calc(var(--flip-y, 50%) + var(--d)),
    calc(50% - var(--d)) var(--flip-y, 50%)
    );
  }
  
/*------------------------------*/
.diamond{
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  aspect-ratio: 1;
  display: inline-block;
  width: var(--w,1em);
  overflow: hidden;
  
}
/*------------------------------*/
.js-reveal [data-reveal] {
  visibility: hidden;
}
[data-reveal="diamond"] {
  scale: var(--reveal-scale, 1);
}
/*------------------------------*/
.images .diamond {
  position: absolute;
  top: calc(var(--y) * 1% - (var(--w) / 2));
  left: calc(var(--x) * 1% - (var(--w) / 2));
}
.images :is(.grad-blue, .grad-mv) {
  --parallax: 0.4;
  --parallax-bias: 1;
  --pa: min(var(--w) * var(--parallax), var(--parallax-max, 100vh));
  --pb: calc(var(--parallax-bias) * (50 - var(--y)) / 50);
  @supports (animation-timeline: view()) {
    animation: diamond-parallax linear both;
    animation-timeline: view();
    @media (prefers-reduced-motion: reduce) {
      animation: none;
    }
  }
}
@keyframes diamond-parallax {
  0% { translate: 0 calc(var(--pa) * (1 - var(--pb))); }
  25% { translate: 0 calc(var(--pa) * (0.5 - 0.25 * var(--pb))); }
  50% { translate: 0 0; }
  75% { translate: 0 calc(var(--pa) * (-0.5 - 0.25 * var(--pb))); }
  100% { translate: 0 calc(var(--pa) * (-1 - var(--pb))); }
}
/*------------------------------*/
.arrow-wrap {
  width: 1em;
  height: 1em;
  position: relative;
  overflow: hidden;
  &::before,
  &::after {
    content: "▶︎";
    font-size: 0.7em;
    display: grid;
    place-content: center;
    width: 100%;
    height: 100%;
  }
  &::after {
    position: absolute;
    top: 0;
    left: -100%;
  }
}
.arrow-box {
  --box: var(--black);
  --arrow: var(--white);
  display: grid;
  place-content: center;
  width: 4rem;
  height: 4rem;
  border: 1px solid var(--box);
  background-image: linear-gradient(var(--box), var(--box));
  background-origin: border-box;
  background-position: left;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  transition: background-size var(--duration) var(--easing);
  .arrow-wrap::before,
  .arrow-wrap::after {
    color: var(--arrow);
    transition: color 0.2s var(--easing);
  }
}
@keyframes arrow-in {
  from { translate: 0; }
  to { translate: 100%; }
}
@keyframes arrow-out-before {
  from { translate: -100%; }
  to { translate: 0; }
}
@keyframes arrow-out-after {
  from { translate: 100%; }
  to { translate: 200%; }
}
@media (any-hover: hover) {
  [data-arrow-hover]:hover .arrow-wrap::before,
  [data-arrow-hover]:hover .arrow-wrap::after {
    animation: arrow-in var(--duration) var(--easing) both;
  }
  [data-arrow-hover].is-hovered:not(:hover) .arrow-wrap::before {
    animation: arrow-out-before var(--duration) var(--easing) both;
  }
  [data-arrow-hover].is-hovered:not(:hover) .arrow-wrap::after {
    animation: arrow-out-after var(--duration) var(--easing) both;
  }
  [data-arrow-hover]:hover .arrow-box {
    background-size: 0% 100%;
    background-position: right -1px center;
    .arrow-wrap::before,
    .arrow-wrap::after {
      color: var(--box);
    }
  }
}
/*------------------------------*/
.hover-line {
  background-image: linear-gradient(to right, currentColor 100%);
  background-size: 0% 1px;
  background-position: right bottom;
  background-repeat: no-repeat;
  transition: background-size var(--duration) var(--easing);
  @media (any-hover: hover) {
    &:hover {
      background-size: 100% 1px;
      background-position: left bottom;
    }
  }
}
/*------------------------------*/
.black{color: var(--black);}
.gray{color: var(--gray);}
.white{color: var(--white);}
.accent{color: var(--accent);}

.bg-gray{ background-color: var(--bg-gray); }
.grad-blue{ 
  background-image: var(--grad-blue);
  &.reverse{
    background-image: var(--grad-blue-reverse);
  }
  &.white{
    background-image: none;
    background-color: var(--white);
  }
  &.gray{
    background-image: none;
    background-color: var(--bg-gray);
  }
}
/*------------------------------*/
[id^="anc"]{
  position: absolute;
  top: calc((var(--header-height)) * -1);
  left: 0;
  pointer-events: none;
}
:has(> [id^="anc"]){
  position: relative;
}
