/* V2.2 */

/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

/* Document
========================================================================== */

/**
* 1. Correct the line height in all browsers.
* 2. Prevent adjustments of font size after orientation changes in iOS.
*/

html {
  line-height: 1.15; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */
}

/* Sections
========================================================================== */

/**
* Remove the margin in all browsers.
*/

body {
  margin: 0;
}

/**
* Render the `main` element consistently in IE.
*/

main {
  display: block;
}

/**
* Correct the font size and margin on `h1` elements within `section` and
* `article` contexts in Chrome, Firefox, and Safari.
*/

h1 {
  font-size: 2em;
  margin: 0.67em 0;
}

/* Grouping content
========================================================================== */

/**
* 1. Add the correct box sizing in Firefox.
* 2. Show the overflow in Edge and IE.
*/

hr {
  box-sizing: content-box; /* 1 */
  height: 0; /* 1 */
  overflow: visible; /* 2 */
}

/**
* 1. Correct the inheritance and scaling of font size in all browsers.
* 2. Correct the odd `em` font sizing in all browsers.
*/

pre {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/* Text-level semantics
========================================================================== */

/**
* Remove the gray background on active links in IE 10.
*/

a {
  background-color: transparent;
}

/**
* 1. Remove the bottom border in Chrome 57-
* 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
*/

abbr[title] {
  border-bottom: none; /* 1 */
  text-decoration: underline; /* 2 */
  text-decoration: underline dotted; /* 2 */
}

/**
* Add the correct font weight in Chrome, Edge, and Safari.
*/

b,
strong {
  font-weight: bolder;
}

/**
* 1. Correct the inheritance and scaling of font size in all browsers.
* 2. Correct the odd `em` font sizing in all browsers.
*/

code,
kbd,
samp {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/**
* Add the correct font size in all browsers.
*/

small {
  font-size: 80%;
}

/**
* Prevent `sub` and `sup` elements from affecting the line height in
* all browsers.
*/

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/* Embedded content
========================================================================== */

/**
* Remove the border on images inside links in IE 10.
*/

img {
  border-style: none;
}

/* Forms
========================================================================== */

/**
* 1. Change the font styles in all browsers.
* 2. Remove the margin in Firefox and Safari.
*/

button,
input,
optgroup,
select,
textarea {
  font-family: inherit; /* 1 */
  font-size: 100%; /* 1 */
  line-height: 1.15; /* 1 */
  margin: 0; /* 2 */
}

/**
* Show the overflow in IE.
* 1. Show the overflow in Edge.
*/

button,
input {
  /* 1 */
  overflow: visible;
}

/**
* Remove the inheritance of text transform in Edge, Firefox, and IE.
* 1. Remove the inheritance of text transform in Firefox.
*/

button,
select {
  /* 1 */
  text-transform: none;
}

/**
* Correct the inability to style clickable types in iOS and Safari.
*/

button,
[type="button"],
[type="reset"],
[type="submit"] {
  -webkit-appearance: button;
}

/**
* Remove the inner border and padding in Firefox.
*/

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

/**
* Restore the focus styles unset by the previous rule.
*/

button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
  outline: 1px dotted ButtonText;
}

/**
* Correct the padding in Firefox.
*/

fieldset {
  padding: 0.35em 0.75em 0.625em;
}

/**
* 1. Correct the text wrapping in Edge and IE.
* 2. Correct the color inheritance from `fieldset` elements in IE.
* 3. Remove the padding so developers are not caught out when they zero out
* `fieldset` elements in all browsers.
*/

legend {
  box-sizing: border-box; /* 1 */
  color: inherit; /* 2 */
  display: table; /* 1 */
  max-width: 100%; /* 1 */
  padding: 0; /* 3 */
  white-space: normal; /* 1 */
}

/**
* Add the correct vertical alignment in Chrome, Firefox, and Opera.
*/

progress {
  vertical-align: baseline;
}

/**
* Remove the default vertical scrollbar in IE 10+.
*/

textarea {
  overflow: auto;
}

/**
* 1. Add the correct box sizing in IE 10.
* 2. Remove the padding in IE 10.
*/

[type="checkbox"],
[type="radio"] {
  box-sizing: border-box; /* 1 */
  padding: 0; /* 2 */
}

/**
* Correct the cursor style of increment and decrement buttons in Chrome.
*/

[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
  height: auto;
}

/**
* 1. Correct the odd appearance in Chrome and Safari.
* 2. Correct the outline style in Safari.
*/

[type="search"] {
  -webkit-appearance: textfield; /* 1 */
  outline-offset: -2px; /* 2 */
}

/**
* Remove the inner padding in Chrome and Safari on macOS.
*/

[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

/**
* 1. Correct the inability to style clickable types in iOS and Safari.
* 2. Change font properties to `inherit` in Safari.
*/

::-webkit-file-upload-button {
  -webkit-appearance: button; /* 1 */
  font: inherit; /* 2 */
}

/* Interactive
========================================================================== */

/*
* Add the correct display in Edge, IE 10+, and Firefox.
*/

details {
  display: block;
}

/*
* Add the correct display in all browsers.
*/

summary {
  display: list-item;
}

/* Misc
========================================================================== */

/**
* Add the correct display in IE 10+.
*/

template {
  display: none;
}

/**
* Add the correct display in IE 10.
*/

[hidden] {
  display: none;
}

/* normalize終了 */
/* ここからスタート */

/* 破壊的かもしれないが、したほうが良さそう */
* {
  font-family: "Noto Sans JP", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;

  box-sizing: border-box;
}

:root {
  /* 色はお好みで */
  --color-base: #4d466c; /* 文字の基本色（青） */
  --cyan: #7c8dcacb; /* シアンのズレ影＆下線 */
  --mag: #f9ecf7; /* マゼンタのズレ影 */
  --section-padding: 10px;
}

* {
  word-break: auto-phrase;
}

body {
  background: #fffbfe;
  color: #555;
  margin-top: 50px;
}

main {
  padding: 0;
  margin: 0;
  min-height: 100vh;
}

p {
  font-size: 1.1rem;
  word-break: auto-phrase;
  line-height: 1.45;
}

h1,
h2,
h3 {
  font-family: "Kosugi Maru", sans-serif;
  font-weight: bolder;
}

.common-title {
  font-size: 3rem;
  position: relative;
  display: inline-block;
  margin-bottom: 1em;
}

.common-title:before {
  content: "";
  position: absolute;
  bottom: -15px;
  display: inline-block;
  width: 100%;
  height: 5px;
  left: 50%;
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
  background-color: #555;
  border-radius: 2px;
}

/* 見出し*/
.common-subtitle-theme {
  max-height: 30px;
  margin-bottom: 1.3rem;

  color: var(--color-base);
  /* display: inline-block; */
  align-items: center;
  gap: 12rem;
  font-size: 1.9rem;

  /* 下線をシアンで太めに */
  text-decoration: underline;
  text-decoration-color: var(--cyan);
  text-decoration-thickness: 0.18em;
  text-underline-offset: 0.08em;

  /* ネオンっぽい左右ズレ影（必要なら距離を調整） */
  text-shadow: -0.25px 0.25px 0 var(--mag), 0.25px -0.25px 0 var(--cyan);

  /*
display: flex;
justify-content: center; /* 横中央 */
}

.common-text-basic {
  font-size: 20px;
  line-height: 1.4;
}

.common-text-nomargin {
  margin: 0;
  padding: 0;
}

.common-pill {
  display: inline-block;
  /*色は用途に応じて*/
  background: #d6f0ff;
  border: 2px solid #509ccf;
  color: #007acc;
  padding: 0.25rem;
  border-radius: 30px;
  font-weight: bolder;
  cursor: pointer;
}

.common-pill:hover {
  filter: grayscale(0.05) brightness(0.98);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1); /* 影をつける */
}

.common-pill:hover span {
  /* text-decoration-thickness: 1.5px; */
}

.common-pill span {
  margin: 0 10px;
}

.common-btn.common-wide {
  width: 100%;
}

/*控え目*/
.common-btn {
  box-sizing: border-box;
  width: fit-content;
  /* display: block; */
  padding: 10px;
  cursor: pointer;
  border: none;
  border-radius: 8px;
  color: #262626;
  font-size: 16px;
  background-color: none;
  margin: 10px 0px;
  text-decoration: solid underline 1px;
  text-underline-offset: 2px;
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.1);
  display: block;
}

.common-btn-arrow {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.common-btn-arrow::after {
  position: absolute;
  right: 1.6em;
  top: 46%;
  transform: translateY(-50%);
  transform-origin: left;
  width: 1.5em;
  height: 0.5em;
  background-color: #6f675c;
  clip-path: polygon(0 100%, 100% 100%, 70% 40%, 70% 90%, 0% 90%);
  content: "";
  transition: transform 0.3s;
}

.common-btn-arrow:hover:after {
  transform: translateY(-50%) scaleX(1.4);
}

.common-btn span {
  width: fit-content;
  padding: 0 20px 0 20px;
}

.common-btn-arrow span {
  padding: 0 48px 0 20px;
}

.common-btn:hover {
  outline: gray 2px solid; /* フォーカスしたらピンクの枠を表示 */
  box-shadow: 0 3px 4px rgba(0, 0, 0, 0.15);
}
/* クリック時に下に動く効果 */
.common-btn:active {
  transform: translateY(1px);
  outline-color: #aaa; /* クリック時のアウトライン色を微妙に変更 */
}

.common-btn-rounded {
  border-radius: 1000px;
}

.wave-svg {
  display: block;
  width: 100%;
  height: 40px;
}

/* 一般の section は縦横ともに統一パディングにする */
section {
  position: relative;
  padding: 10px var(--section-padding) 60px var(--section-padding);
  text-align: center;
  margin: 0 auto;
  box-sizing: border-box;
}

section.full-bleed {
  /* margin-left: calc(50% - 50vw); */
  /* margin-right: calc(50% - 50vw); */
  /* 内側のコンテンツは左右にルートパディング分を確保 */
  padding-left: calc((50vw - 50%) + var(--section-padding));
  padding-right: calc((50vw - 50%) + var(--section-padding));
  background-color: var(--bgcolor);
  /* overflow: hidden; */
}

/* Flexのところ */
/* .common-flex-onlypcはモーダル部 */
.common-flex-container {
  justify-content: center;
  margin: 0 auto;
}

.common-flex-card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(var(--minWidth), 1fr));
  gap: var(--gap);
  max-width: calc((var(--maxWidth) + var(--gap)) * var(--itemNum));
  /* justify-content: center !important; */
}

.common-flex-element {
  width: 100%;
  box-sizing: border-box !important;
  padding: 15px;
  background-color: white;
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  max-width: var(--maxWidth);
  margin: 0 auto;
  border: rgba(0, 0, 0, 0) 2px solid;
}

.common-flex-element.common-modal-trigger:hover {
  border: gray 2px solid;
  filter: grayscale(0.05) brightness(0.97);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1); /* 影をつける */
}

.common-flex-element.common-modal-trigger:active {
  border: gray 2px solid;
  transform: translateY(1px);
}

.common-flex-icon-square img {
  border-radius: 10px;
  height: auto;
  max-width: 100%;
  aspect-ratio: 1/1;
}

.common-flex-card .common-flex-element {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: center;
}

@media (min-width: 768px) {
  .common-flex-growcard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(var(--minPCWidth), 1fr));
    gap: var(--gap);
    /* max-width: 100%; */
    max-width: calc((var(--maxPCWidth) + var(--gap)) * var(--itemPCNum));
    gap: 15px;
    grid-auto-rows: 1fr; /* 新しい行が自動で均等な高さになる */
  }
  .common-flex-growcard .common-flex-element {
    flex-direction: row;
    text-align: left;
    align-items: center;
  }
  .common-flex-growcard.common-flex-container {
    place-items: center;
  }
  .common-flex-growcard .common-flex-element {
    width: 100%;
    height: 100%;
    gap: 15px;
    max-width: var(--maxPCWidth);
  }
}

/* Common Modal */
/* モーダル裏の背景 */
#common-modal-bg {
  position: fixed;
  width: 100vw;
  height: 100vh;
  top: 0;
  left: 0;
  z-index: 998;
  background-color: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(2px);
  display: none;
}

.fade-in {
  animation: fadeIn 0.1s forwards;
}
.fade-out {
  animation: fadeOut 0.1s forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

/* モーダルコンテンツ内部 */
#common-modal-container {
  position: fixed;
  z-index: 999;
  width: 85vw;
  height: 65vh;
  /* height: 70dvh; */
  max-width: 750px;
  max-height: 450px;
  /* 画面中央配置のための設定 */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  /* 以下は元のスタイルを維持 */
  background-color: #eeeeee;
  border-radius: 20px;
  box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.1), 3px 3px 12px rgba(0, 0, 0, 0.01);
  display: none;
  /* padding: 35px 40px; */
  box-sizing: border-box;
}

.common-modal-flex2 {
  flex: 2;
}

.common-modal-flex3 {
  flex: 3;
}

#common-modal-wrapper {
  overflow-y: auto;
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  /* 何故か左側に入らなくなる */
  padding-left: 2px;
  
  /* padding: 18px; */
}

.common-modal-wrapper {
  padding: 10px;
}

.common-modal-trigger {
  cursor: pointer;
}

.common-modal-content {
  display: none;
}

@media (max-width: 767px) {
  #common-modal-container {
    width: 95vw;
    padding: 0px 3px;
    overflow: hidden;
    height: 80vh;
  }
  .common-flex-onlypc {
    display: none;
  }
}

/* https://github.com/ics-creative/220831_details_summary_accordion/blob/main/demo3-0/style.css */
/* --------アコーディオンの中身のスタイル-------- */
.common-accordion::details-content {
  transition: height 0.4s, opacity 0.4s, content-visibility 0.4s allow-discrete;
  height: 0;
  opacity: 0;
  overflow: clip;
  /* display: none; */
  /* background-color: #f0f2ff; */
}

/* --------アコーディオンの中身のスタイル（開いている時）-------- */
/* --------アコーディオンの中身のスタイル-------- */
details {
}

.common-accordion {
  margin: var(--accordion-margin) auto;
  max-width: 1200px;
  z-index: 2;
  --accordion-margin: 8px;
  --accordion-border-thickness: 2px;
  --accordion-border-radius: 20px;
  --accordion-border-color: #ddd2c2;
}

.common-accordion::details-content {
  transition: height 0.4s, opacity 0.4s, content-visibility 0.4s allow-discrete;
  height: 0;
  opacity: 0;
  overflow: clip;
  /* background-color: #f0f2ff; */
  /* display: none; */
}

/* --------アコーディオンの中身のスタイル（開いている時）-------- */
.common-accordion[open]::details-content {
  opacity: 1;
}

/* アコーディオンが開いた時のスタイル */
.common-accordion[open] .common-accordion-icon {
  transform: rotate(180deg);
}

@supports (interpolate-size: allow-keywords) {
  :root {
    interpolate-size: allow-keywords;
  }
  .common-accordion[open]::details-content {
    height: auto;
  }
}

@supports not (interpolate-size: allow-keywords) {
  .common-accordion[open]::details-content {
    height: 150px;
    overflow-y: scroll;
  }
}

.common-accordion summary {
  display: grid;
  grid-template-columns: 1fr 24px;
  gap: 6px;
  align-items: center;
  padding: 16px 24px;
  border: var(--accordion-border-color) solid var(--accordion-border-thickness);
  font-weight: bold;
  color: #11100d;
  cursor: pointer;
  background-color: #f5f4f0;
  border-radius: var(--accordion-border-radius);
  transition: border-radius 0.4s;
  font-size: 1.1rem;
}

.common-accordion[open] summary {
  border-radius: var(--accordion-border-radius) var(--accordion-border-radius) 0
    0;
}

/* Safariで表示されるデフォルトの三角形アイコンを消します */
.common-accordion summary::-webkit-details-marker {
  display: none;
}

/* --------アイコンを作ります-------- */
.common-accordion-icon {
  display: block;
  position: relative;
  width: 24px;
  margin-left: 6px;
  flex-shrink: 0;
  transform-origin: center 43%;
  transition: transform 0.4s;
}

/* アイコンのバーのスタイル */
.common-accordion-icon::before,
.common-accordion-icon::after {
  content: "";
  position: absolute;
  display: block;
  width: 15px;
  height: 3px;
  background-color: #8f8473;
}

.common-accordion-icon::before {
  left: 0;
  transform: rotate(45deg);
}

.common-accordion-icon::after {
  right: 0;
  transform: rotate(-45deg);
}

/* --------アコーディオンの中身のスタイル-------- */
.common-accordion-content {
  background-color: #fffef9;
  padding: 24px 48px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-radius: 0 0 var(--accordion-border-radius)
    var(--accordion-border-radius);
  border: var(--accordion-border-color) solid var(--accordion-border-thickness);
  position: relative;
  top: -2px;
}

/* 画面下のメニュー */
#tl-sd {
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
  height: 100vh;
  height: 100dvh;
  position: fixed;
  /* top: 100vh; */
  /* top: 100dvh; */
  top: 85vh;
  top: 85dvh;
  background-color: rgb(224, 224, 224);
  z-index: 950;
  border-radius: 16px;
  opacity: 1;
  /* transition: opacity 0.1s ease-in-out; */
}

@media (min-width: 741px) {
  #tl-sd {
    display: none;
  }
}

/* #tl-sd::after {
  content: "";
  width: 100vw;
  height: 20vh;
  background-color: rgb(224, 224, 224);
  z-index: 1001;
  box-sizing: border-box;
} */

.enable-top-transition {
  transition: top 0.6s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.1s ease-in-out;
}

#tl-sd-lever {
  text-align: center;
  margin: 0 auto;
  margin-top: 6px;
  font-size: 13px;
  /* content: "" */
  background-color: gray;
  border-radius: 8px;
  min-width: 130px;
  width: 30%;
  height: 5px;
  cursor: grab;
  pointer-events: none;
}

#tl-sd-draggable {
  position: absolute;
  top: 0;
  opacity: 0;
  cursor: grab;
  width: 100vw;
  height: 40px;
}

#tl-sd-title {
  font-size: 1.6em;
  font-weight: 700;
  padding: 0;
  margin-top: 10px;
}

#tl-sd-bg {
  position: fixed;
  width: 100vw;
  height: 100vh;
  top: 0;
  right: 0;
  background-color: rgba(0, 0, 0);
  opacity: 0;
  transition: opacity 0.3s cubic-bezier(0.19, 1, 0.22, 1);
  display: none;
  z-index: 1000;
  overflow: hidden;
}

.tl-sd-description {
  margin-block-end: 10px;
  margin-block-start: 10px;
  text-wrap: pretty;
}

#tl-sd-content {
  padding: 20px;
  padding-top: 0px;
}
