/* 
* Reset CSS 
*/

*,
*:before,
*:after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
  font: inherit;
}

img,
picture,
svg,
video {
  display: block;
  max-width: 100%;
}

input,
select,
textarea {
  background-color: transparent;
  outline: none;
}

button {
  cursor: pointer;
  background-color: transparent;
  outline: none;
  border: 0;
}

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

html {
  font-family: sans-serif;
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}


div,
p {
  word-break: break-word;
}

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video,
nav,
picture {
  margin: 0;
  padding: 0;
  border: 0;
  vertical-align: baseline;
}

ul,
ol,
li {
  list-style: none;
}

/* 
* Global 
*/

/* Variables */
:root {
    --color-primary: #4C4637;
    --color-accent: #CB1500;
    --color-dark-red: #6E0009;
    --color-body: #333333;
    --color-yellow-1: #F2B705;
    --color-yellow-2: #FFF1BF;
    --color-yellow-3: #FFFAEE;
    --color-white: #FFFFFF;
}

/* Container */
section,
.section {
    position: relative;
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 1920px;
    margin-inline: auto;
    padding-inline: clamp(2rem, 5vw, 10rem);
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}
.container--fluid {
    max-width: 100%;
}
/* Font */
html {
    font-size: 62.5%;
}

body {
    font-family: "Noto Sans JP", sans-serif;
    font-size: 1.4rem;
    line-height: 2.4rem;
    color: var(--color-body);
    background-color: var(--color-yellow-3);
}
h1,
h2,.heading-h2.heading-h2--lg,
h3,.heading-h3,
h4,h5,h6 {
    font-weight: 700;
}
h1 {
    font-size: 2.8rem;
    line-height: 3rem;
}
h2,
.heading-h2 {
    font-size: 2.8rem;
    line-height: 3rem;
}
h3,
.heading-h3 {
    font-size: 3.2rem;
}
.text--lg {
    font-size: 1.6rem;
}
.text--sm {
    font-size: 1.2rem;
}

@media(min-width: 980px) {
    body {
        font-size: 1.6rem;
        line-height: 3.2rem;
    }

    h1 {
        font-size: 4.8rem;
    }

    h2,
    .heading-h2 {
        font-size: 4.2rem;
        line-height: 2;
    }

    h2.lg,
    .heading-h2--lg {
        font-size: 4.8rem;
        line-height: 2;
    }

    h3,
    .heading-h3 {
        font-size: 2.1rem;
        line-height: 2;
    }

    .text--lg {
        font-size: 1.8rem;
    }
}

/* Spacing */
p:not(:last-child) {
    margin-bottom: 3.2rem;
}

/* Button */

.btn {
    position: relative;
    display: inline-block;
    min-width: 280px;
    padding: 1rem 5.2rem;
    font-size: 1.4rem;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    color: var(--color-white);
    background-color: var(--color-accent);
    border-radius: 3rem;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 0 4px 0 var(--color-dark-red);
}
.btn::before {
    content: "";
    width: 32px;
    height: 32px;
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    background-image: url("../static/img/btn-icon.svg");
}

/* 
* Header
*/
section.main-header {
    padding-block: 30px;
}

/* 
* Footer
*/
section.main-footer {
    padding-block: 30px;
}

/* 
* Home Page
*/

/* Banner */
.home-banner {
    padding-top: 20px;
    padding-bottom: 100px;
}
.home-banner .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    align-items: center;
    gap: 2rem 0;
}
.home-banner .banner__text,
.home-banner .banner__image {
    width: 100%;
}
.home-banner .banner__text {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}
@media(max-width: 767px) {
    .home-banner .banner__description {
        line-height: 2.2rem;
    }
}
@media(min-width: 980px) {
    .home-banner {
        padding-top: 40px;
        padding-bottom: 40px;
    }
    .home-banner .banner__text {
        width: 61%;
        max-width: 668px;
    }
    .home-banner .banner__description {
        max-width: 540px;
    }
    .home-banner .banner__image {
        width: 39%;
    }
   
}
@media(min-width: 1440px) {
    .home-banner .banner__image img {
        width: 523px;
        max-width: 523px;
        margin-right: calc(100% - 523px);
    }
}

/* Section: おいしさの科学とは */
.taste-science {
    padding-top: 62px;
    padding-bottom: 60px;
    background-color: var(--color-white);
    border-radius: 40px;
}
.taste-science .container {
    position: relative;
}
.taste-science img.float-image.top {
    position: absolute;
    top: -142px;
    left: 50%;
    transform: translatex(-50%);
    width: 122px;
    height: auto;
}
.taste-science .section-title {
    color: var(--color-primary);
    margin-bottom: 20px;
    text-align: center;
}
.taste-science .section-subtitle {
    color: var(--color-body);
    font-weight: 600;
    text-align: center;
    margin-bottom: 30px;
} 
.taste-science .image-content {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px 40px;
}
.taste-science .image-content.image-content-1 {
    margin-bottom: 60px;
}
.taste-science .float-image.bottom {
    margin-top: 40px;
    width: 100px;
    margin-inline: auto;
}
.taste-science .image-content__text,
.taste-science .image-content__image {
    width: 100%;
}
.taste-science .image-content__image img {
    width: 100%;
    margin-inline: auto;
}
@media(min-width: 980px) {
    .taste-science {
        padding-top: 82px;
        padding-bottom: 80px;
    }
    .taste-science img.float-image.top {
        top: -186px;
        width: 262px;
        left: 30px;
        transform: translatex(0);
    }
    .taste-science .section-title {
        line-height: 6rem;
        margin-bottom: 14px;
    }
    .taste-science .section-subtitle {
        margin-bottom: 46px;
    }
    .taste-science .section-subtitle br {
        display: none;
    }
    .taste-science .image-content:not(:last-child) {
        margin-bottom: 34px;
    }
    .taste-science .image-content__text,
    .taste-science .image-content__image {
        width: calc(50% - 20px)
    }
    .taste-science .image-content-2 .image-content__image img {
        width: 100%;
        max-width: 480px;
        margin-left: auto;
        margin-right: 0;
    }
    .taste-science .image-content-2 .image-content__text {
        order: 2;
    }
    .taste-science img.float-image.bottom {
        position: absolute;
        width: 200px;
        top: auto;
        bottom: -15px;
        left: auto;
        right: calc((100% - 40px)/4);
        transform: translateX(50%);
    }
}

/* Section: AGF®の研究開発体制 */
.research {
    margin-top: 80px;
    background-color: var(--color-yellow-2);
    border-radius: 0 40px 0 0;
}
.research .container {
    display: flex;
    flex-wrap: wrap;
    gap: 43px 40px;
    min-height: 357px;
}
.research__image img {
    margin-top: -60px;
}
.research__text {
    text-align: center;
}
.research__title {
    margin-bottom: 10px;
    text-align: center;
}
.research__description {
    text-align: left;
    margin-bottom: 40px;
}
.research__btn {
    margin-inline: auto;
}
@media(min-width: 980px) {
    .research {
        margin-top: 127px;
        border-radius: 0 80px 0 0;
    }
    .research__text, 
    .research__image {
        width: calc(50% - 20px);
    }
    .research__image {
        order: 2;
    }
    .research__text {
        padding-block: 60px;
    }
    .research__image img {
        margin-top: -47px;
    }
    .research__title {
        margin-bottom: 0;
        text-align: center;
    }
    .research__description {
        margin-bottom: 34px;
    }
}

/* Section: AGF®のスペシャリティ技術 */
.spec-tech {
    margin-top: 143px;
    background-color: var(--color-yellow-2);
    border-radius: 40px 0 0 0;
}
.spec-tech .container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px 40px;
    min-height: 357px;
}
.spec-tech__image img {
    margin-top: -83px;
}
.spec-tech__text {
    text-align: center;
}
.spec-tech__title {
    margin-bottom: 10px;
    text-align: center;
}
.spec-tech__description {
    text-align: left;
    margin-bottom: 40px;
}
.spec-tech__btn {
    margin-inline: auto;
}
@media(min-width: 980px) {
    .spec-tech {
        margin-top: 102px;
        border-radius: 80px 0 0 0;
    }
    .spec-tech__text, 
    .spec-tech__image {
        width: calc(50% - 20px);
    }
    .spec-tech__text {
        padding-block: 60px;
    }
    .spec-tech__image img {
        margin-top: -62px;
    }
    .spec-tech__title {
        margin-bottom: 0;
        text-align: center;
    }
    .spec-tech__description {
        margin-bottom: 34px;
    }
}

/*  */

.research-activities {
    margin-top: 80px;
    padding-block: 60px;
    border-radius: 40px 40px 0 0;
    background: var(--color-accent);
}
.research-activities .container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px 40px;
}
.research-activities__box {
    width: 100%;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
}
.research-activities__title {
    padding: 20px;
    text-align: center;
    color: var(--color-accent);
    background: #fff;
}
.research-activities__image img {
    width: 100%;
    aspect-ratio: 530/298;
    object-fit: cover;
}
.research-activities__btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 38px;
    height: 38px;
    font-size: 16px;
    background: #fff;
    color: var(--color-accent);
    border-radius: 100%;
    border: 2px solid var(--color-accent);
}
.research-activities__btn svg {
    width: 1em;
    height: 1em;
    object-fit: contain;
}
.research-activities__btn svg path {
    fill: currentColor;
}

@media(min-width: 980px) {
    .research-activities {
        padding-block: 80px;
        border-radius: 80px 80px 0 0;
    }
    .research-activities__box {
        width: calc(50% - 20px);
        border-radius: 16px;
    }
    .research-activities__title {
        padding-top: 30px;
        padding-bottom: 11px;
    }
    .research-activities__btn {
        width: 60px;
        height: 60px;
        font-size: 25px;
        right: 20px;
        bottom: 20px;
    }
}