/*
Theme Name: 食品産業センター
Theme URI: https://example.com/tenkabutsu
Author: Shokusan Project
Author URI: https://example.com
Description: A custom lightweight theme for Food Additives management.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tenkabutsu
*/

/* 
A (more) Modern CSS Reset
*/

/* Box sizing rules */
*,
*::before,
*::after {
  box-sizing: border-box;
  /* 旧reset.cssから */
  border-style: solid;
  border-width: 0;
}

/* Prevent font size inflation */
html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}

/* Remove default margin in favour of better control in authored CSS */
body, h1, h2, h3, h4, p,
figure, blockquote, dl, dd {
  margin-block-end: 0;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role='list'],
ol[role='list'] {
  list-style: none;
}

/* Set core body defaults */
body {
  min-height: 100vh;
  line-height: 1.5;
}

/* Set shorter line heights on headings and interactive elements */
h1, h2, h3, h4,
button, input, label {
  line-height: 1.1;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
  text-decoration-skip-ink: auto;
}

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

/* Inherit fonts for inputs and buttons */
input, button,
textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* Make sure textareas without a rows attribute are not tiny */
textarea:not([rows]) {
  min-height: 10em;
}

/* Anything that has been anchored to should have extra scroll margin */
:target {
  scroll-margin-block: 5ex;
}

/* 旧reset.cssから */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* variables */

:root {
    --inner-max-width: 1280px;
    --inner-max-width-narrow: 1000px;
    --inner-max-width-narrow2: 800px;
    --basic-padding-X-pc: 40px;
    --basic-padding-X-sp: 20px;
    --z-index-emulsifier-modal-close: 10002;
    --z-index-emulsifier-modal-container: 10001;
    --z-index-emulsifier-modal: 10000;
    --z-index-video-modal-close: 10002;
    --z-index-video-modal-container: 10001;
    --z-index-video-modal: 10000;
    --z-index-header: 150;
    --z-index-additives-table-thead: 100;
}

/* Basic */

* {
    margin: 0;
    padding: 0;
}
html {
    font-size: 62.5%;
}
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #fff;
    font-family: "Lato", "Noto Sans JP", sans-serif;
    line-height: 1.6;
    color: #000;
}
a {
    color: #0073aa;
    text-decoration: none;
    transition: opacity .3s ease-out;
    &:hover {
        opacity: 0.7;
    }
}
img {
    height: auto;
}

/* utility */
._pc {
  @media (max-width: 768px) {
    display: none!important;
  }
}
._sp {
  @media (min-width: 769px) {
    display: none!important;
  }
}
._nowrap {
  white-space: nowrap!important;
}
._tac {
  text-align: center!important;
}
._hide {
  display: none!important;
}

/* Container */
main {
  flex-grow: 1;
  padding-bottom: 80px;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* pagination*/
.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 64px;
  &>span,
  &>a {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    border: 1px solid #c1c1c1;
    color: #000;
    font-size: 1.6rem;
    &.current {
      background-color: #e4f0cd;
    }
    &.prev,
    &.next {
      width: auto;
      padding: 0 20px;
      @media (max-width: 768px) {
        padding: 0 10px;
      }
      &.disabled {
        background-color: #ededed;
        cursor: default;
      }
    }
    &.prev::before {
      content: "";
      width: 12px;
      height: 10px;
      background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAMCAYAAABbayygAAAABHNCSVQICAgIfAhkiAAAAFNJREFUGFdjZCAMlIFKJjDiUccOlKsB4lIgZsel0AdkChCDTAMDdIVga4AYpBAFwBSiWIPNOSCFGNZQrBBkAFFWI9tE0DPoziIYPMgaiApwDOcAAN2+C2le6mU3AAAAAElFTkSuQmCC) no-repeat center center / contain;
    }
    &.next::after {
      content: "";
      width: 10px;
      height: 12px;
      margin-left: 5px;
      background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAMCAYAAABbayygAAAABHNCSVQICAgIfAhkiAAAAFNJREFUGFdjZGBg2AzEBUB8F4hxAkagzH8g/gnE3UDcAmVjaIAphEmATAWZvgVdJbpCmDxIIYpzcCkEaUBxDj6FKM6hikKirCboGYLBQ1SAExWFAJ3bJKXveWMbAAAAAElFTkSuQmCC) no-repeat center center / contain;
    }
  }
}

/* common module */
.ttl-h1 {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 80px;
  padding: 18px var(--basic-padding-X-pc);
  background: #84bb1f;
  line-height: 1;
  color: #fff;
  font-size: 3.2rem;
  font-weight: 700;
  @media (max-width: 768px) {
    padding: 18px var(--basic-padding-X-sp);
    line-height: 1.6;
    font-size: 2rem;
  }
}
.form-select01 {
  min-height: 46px;
  padding: 10px 28px 10px 18px;
  background: #fff url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAKCAYAAACALL/6AAAABHNCSVQICAgIfAhkiAAAAIBJREFUGFeNkNEJgDAMRNMvp/DTedSJ1Im08/jZKfrnXWighkoNHBSal+QuiMgFzdCfigFdI3RDQ4fI+J8IsHZo6wAH+wzgdG7htlYlToeyAWxaoPMDWItXqQH2tgKIZZjO8oAPQI1CPKkJ+ADUaH2m38A/C4BvNdoDLADz9MrhAUP2FNgIqvH5AAAAAElFTkSuQmCC) no-repeat right 12px center / 12px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  cursor: pointer;
  line-height: 1;
  font-size: 1.6rem;
  font-weight: 400;
  appearance: none;
  @media (max-width: 768px) {
    font-size: 1.4rem;
  }
  &:focus-visible{
    outline: none;
  }
}
.form-text01 {
  min-height: 46px;
  padding: 10px;
  border: 1px solid #ccc;
  background: #fff;
  font-size: 1.6rem;
  @media (max-width: 768px) {
    font-size: 1.4rem;
  }
}

/* 個別ページ対応 */

/* セミナーでお寄せいただいたＱ＆Ａ集 */
.d2023-qa-page {
  & h1, & h2, & h3, & h4, & h5, & h6 {
    line-height: inherit;
  }
  & dt {
    font-weight: bold;
  }
}

.ancr-block {
  margin-top: -100px;
  padding-top: 100px;
}
